JediBridge:
https://rinkeby.etherscan.io/address/0xb6BA15f0484a14E6e28974938806500c281C05ff#code
- Set validator address on scripts/deploy.ts file
- Deploy four contracts running on console:
node scripts/deploy.ts
- Copy address of deployed contract and paste to .env file as CONTRACT_ADDRESS_BRIDGE
- Use swap and redeem functions
- swap()
Swap ERC20 tokens to other chain
- redeem()
Recieve swapped tokens
- includeToken()
Add supported ERC20 Token
- excludeToken()
Remove ERC20 Token from supported list
- updateChainById()
Updates state of allowed chain between supported and unsupported
node scripts/deploy.js
npx hardhat test --network hardhat
npx hardhat swap
npx hardhat redeem