Escrow contract for EVM Blockchains
- It's an Escrow contract with
deposit(by payer),release(by releaser),refund(by releaser) functions. - Instruction.
- Get the coverage report here.
- The Escrow SC is deployed in Rinkeby testnet. Check the details here
- The Escrow SC is verified in Rinkeby testnet. Check the details here
yarn installyarn compileyarn testCompile the smart contracts and generate TypeChain artifacts:
yarn typechainLint the Solidity code:
yarn lint:solLint the TypeScript code:
yarn lint:tsGenerate the code coverage report:
yarn coverageSee the gas usage per unit test and averate gas per method call:
REPORT_GAS=true yarn testDelete the smart contract artifacts, the coverage reports and the Hardhat cache:
yarn cleanyarn verify <network_name> <deployed_contract_address> <constructor params>For multiple arguments, follow this guide.
// on terminal-1
$ npx hardhat node
// on terminal-2
$ yarn hardhat deploy:Escrow --network localhost- Environment variables: Create a
.envfile with its values in .env.example - Deploy the contracts
yarn hardhat deploy:Escrow --network rinkeby- Environment variables: Create a
.envfile with its values in .env.example - Deploy the contracts
yarn hardhat deploy:Escrow --network mainnet