Relaying increments of a counter between two EVM blockchains. Example is using Mumbai -> Mumbai configuration.
- NodeJS v16+
- Truffle v5.6.5
- Two wallets, for AMB role and ADMIN role
Automatic relay:
- Rust v1.65+
- One more wallet for DAPP role
cd amb
edit env.example and rename to .env
npm run deploy
Make a note of contract addresses
npm run test
npm run compile (if not done in previous steps)
npm run build
Edit relayer/env.relayer.example rename to relayer/.env.relayer
npm run relayer
open new shell console
npm run increment
Magic should happen at N2!