-
Notifications
You must be signed in to change notification settings - Fork 105
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Configure statemine bridge on e2e startup #829
Conversation
console.log(`Generating addExporterConfig from RPC endpoint: ${endpoint} to outputFile: ${outputFile} based on bridgedNetwork: ${bridgedNetwork}, bridgeConfig: ${bridgeConfig}`); | ||
connect(endpoint) | ||
.then((api) => { | ||
const call = api.tx.bridgeTransfer.addExporterConfig(JSON.parse(bridgedNetwork), JSON.parse(bridgeConfig)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Taken from cumulus repo but edited here to treat bridgedNetwork
as JSON as it can be a complex type such as { "Ethereum": { "chainId": 1 } }
as opposed to a simple string like "Wococo".
echo "" | ||
echo "--------------------------------------------------" | ||
|
||
npx polkadot-js-api \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Adapted from cumulus repo scripts. Uses npx to launch node applications instead of expecting it to be in the PATH
as a global tool.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+1
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
Cumulus companion: Snowfork/cumulus#24
Adds scripts that will set up the ethereum bridge in the statemine pallet.
Resolves: SNO-433, SNO-493
Some scripts are copied over from the cumulus repo and edited.