Open abhayks1 opened 5 years ago
token-config name should be gateway address. It's unique. Token Symbol can't be name of token-config since it's not unique. There can be multiple gateways for same token symbol. e.g. 0xae02c7b1c324a8d94a564bc8d713df89eae441fe.json
It will deploy contracts to setup gateways for an EIP20 token.
Deployer addresses in both chains should be unlocked.
It will populate token-config and write file in .mosaic directory. Proposed path:
e.g.
-deploy-libraries
is an optional argument needed to deploy library contracts. If it's passed, it should deploy MessageBus, GatewayLib and MPP library contracts. It not passed library contracts should not be deployed.if
--mosaic-config
argument is given then library contracts should be read from themosaicConfigPath
.Any of
--mosaic-config
or-deploy-libraries
is mandatory. Validation error should be thrown id both passed.Make sure proper validations are in place for the arguments.
Proposed command:
Init config could look like below:
Integration test for setup gateway
Update readme
Publish existing token configs from the repo based on originChain, auxChainId and gateway address.