Deploy and Manage Layer Zero contracts (counter)

Create and update .env file

  • DEPLOYER_PRIVKEY=""

Deploy Counter Contract

npx hardhat deploy --network <networkName>

Set remote contract

npx hardhat set_remote --network <networkName> --target <networkName>

Increment from contract to remote contract

npx hardhat increment --network <networkName> --target <networkName>

Get counter for a given contract

npx hardhat get_counter --network <networkName>