Skip to content

hemilabs/settle-otc

Settle OTC

Setup

Install packages

npm i

Env vars

  • Setup env vars. See .env.template file for required env vars.
  • Either you can export env vars or use .env file.

Compile contracts

npm run compile

Test

HEMI_SEPOLIA_RPC_URL and BLOCK_NUMBER are required to run tests.

npm run test

Coverage Report

npm run coverage

Deploy

PRIVATE_KEY and RPC url for chain are required to deploy contract.

Hemi Testnet

  • Set HEMI_SEPOLIA_RPC_URL in .env file
  • Run below command to deploy and verify contract on Hemi Sepolia.
npm run deploy:sepolia

Hemi Mainnet deployment

  • Set HEMI_RPC_URL in .env file
  • Run below command to deploy and verify contract on Hemi.
npm run deploy:hemi

Manual verify via forge

Below command will verify already deployed contract

forge verify-contract \
CONTRACT_ADDRESS \
src/SettleOTC.sol:SettleOTC \
--chain-id AddChainIdHere \ 
--verifier blockscout \
--verifier-url AddExplorerAPIUrlHere

About

Smart contract for SettleOTC

Resources

Code of conduct

Contributing

Security policy

Stars

Watchers

Forks