npm i- Setup env vars. See
.env.templatefile for required env vars. - Either you can export env vars or use
.envfile.
npm run compile
HEMI_SEPOLIA_RPC_URLandBLOCK_NUMBERare required to run tests.
npm run testnpm run coverage
PRIVATE_KEYandRPC urlfor chain are required to deploy contract.
- Set
HEMI_SEPOLIA_RPC_URLin.envfile - Run below command to deploy and verify contract on Hemi Sepolia.
npm run deploy:sepolia- Set
HEMI_RPC_URLin.envfile - Run below command to deploy and verify contract on Hemi.
npm run deploy:hemiBelow command will verify already deployed contract
forge verify-contract \
CONTRACT_ADDRESS \
src/SettleOTC.sol:SettleOTC \
--chain-id AddChainIdHere \
--verifier blockscout \
--verifier-url AddExplorerAPIUrlHere