- Build and install the CosmWasm tooling
$ git clone https://github.com/many-things/cw-hyperlane
$ cd cw-hyperlane && cargo build && cargo wasm
$ cd scripts && pnpm install
- Deploy warp route contracts:
Deploy to a CosmWasm network (from scripts
dir):
$ DENOM="factory/neutron10sr06r3qkhn7xzpw3339wuj77hu06mzna6uht0/eclip"
$ npx tsx ./action/warp.ts new $DENOM --token-mode collateral
Deploy to an EVM network:
arbitrum:
mailbox: 0x979Ca5202784112€4738403dBec5D0F3B9daabB9
owner: OxaECcdb9Be08178f896c26b7BbD8C3D4E844d9Ba
type: synthetic
name: Eclipse Fi
symbol: ECLIP
decimals: 6
totalSupply: 0,
interchainSecurityModule: 0x53A5c239d62ff35c98E0EC9612c86517748ffF59
neutron:
foreignDeployment: 6b04c49fcfd98bc4ea9c05cd5790462a39537c00028333474aebe6ddf20b73a3 // output from CosmWasm deploy
Use the hyperlane CLI to deploy this config
$ hyperlane deploy warp --config ./warp-config.yaml ...
- Link the warp routes:
$ NEUTRON_WARP_ROUTE="neutron1dvzvf870mx9uf65uqhx40yzx9gu4xlqqq2pnx362a0ndmustww3smumrf5"
$ ARBITRUM_WARP_ROUTE="0×93ca0d85837FF83158Cd14D65B169CdB223b1921"
$ ARBITRUM_DOMAIN=42161
$ npx tsx ./action/warp.ts link $NEUTRON_WARP_ROUTE $ARBITRUM_DOMAIN $ARBITRUM_WARP_ROUTE