This CLI tool must use a pKey that has DEFAULT_ADMIN_ROLE
on
-
TokenManager, TokenLinker, ConfigController
-
make keys.json
{
"account": {
"privateKey": "c7d02615d6a7391257a-",
}
}
- set
config.rpc.staging_europa
andcredentials.account.privateKey
within any script - run any script from
/scripts
npm install
npm run grant
npm run check
within /roles/
, change the CHECK_ADDRESS_ROLE
to any address that you would like to check the currently assigned roles
, or an address that you would like to assign new roles
to.
Reminder: pKey must have DEFAULT_ADMIN_ROLE
to assign a new address any roles.
- set
config.rpc.staging_europa
andcredentials.account.privateKey
within any script
npm install
sudo npm install -g
roles-check --address=0xD244519000000000000000000000000000000000
roles-grant --address=0xD244519000000000000000000000000000000000
within /cli/grantRole.js
, uncomment the functions that you wish to use.
Reminder: pKey must have DEFAULT_ADMIN_ROLE
to assign a new address any roles.
node: v16.19.0 npm: 8.19.2
If you already have a private key with DEFAULT_ADMIN_ROLE
on TokenManager, TokenLinker , then you can proceed to the Skale-Chain-UI to assign the two necessary roles for the Token-Deployer
The purpose of the Token-Deployer
is to simplify the process of onboarding L1 tokens to EuropaHub in a gas-free manner and allow other Skale chains to map EuropaHub tokens to their chain within one on-chain transaction.
- Use the backup Multisig for
grantRoles
to the Token-Deployer address. Then use the Multisig or deployer key to deploy and mapERC20 tokens
easily. -
- Suggestion (red-dotted-line) : allow IMA-Schain to communicate with L1
depositbox.addERC20byAdmin()
to complete all necessary mainnet to skale chain mapping, ERC20 clone deployment, mapping L2 to L1, and ERC20 wrapper deployment within one transaction from L2.
- Suggestion (red-dotted-line) : allow IMA-Schain to communicate with L1
Below you will see the common transaction flow using GnosisSafe MSW to assign roles on L1(left image) and L2(bottom image) while interacting on Ethereum.
The proposed flow-chart (top image) will only use the Skale-Network for token deployments and token mapping.
IMA Schain
needs to communicate withIMA Mainnet.depositBoxERC20