pnpm install
- Smart contract compile
yarn compile
Create .env
file see .env.example
for reference.
- Smart contracts hardhat commands
1. yarn deploy-payment --network "<NETWORK_NAME>" #deploy Payment contract
2. yarn deploy-simple-escrow --network "<NETWORK_NAME>" #deploy Escrow contract
3.(OPTIONAL) yarn deploy-token --network "<NETWORK_NAME>" #deploy ERC20 FakeUSDT token for testing escrow
- After deployment put contract addresses to src/network/<NETWORK_NAME>.json
yarn build #build package
yarn release #public realease package