nomad-xyz / nomad-monorepo

Contracts, off-chain agents, and libraries for Nomad
https://nomad.xyz
77 stars 16 forks source link

feature: add token verification script to nomad-xapps #192

Open luketchang opened 2 years ago

luketchang commented 2 years ago

Adds command to verify token on moonbeam. Note that we cannot call hardhat verify directly because we must pass in empty bytes buffer which is not possible through CLI.

All changes outside of hardhat.config.ts and package.json are the result of recompiling contracts.

To add command to verify a new network's token, create command in nomad-xapps package.json: verify:<network>-token": "hardhat clean && hardhat verify-token --network <network> --token-beacon <token_beacon_for_network_bridgerouter> --contract-address

Run command: npm run verify:<network>-token <token contract address>