@atlaseurope/crypto-payment
v1.0.0-alpha.8
Published
Crypto payment protocol
Readme
@atlaseurope/crypto-payment
npm install --save-prod @atlaseurope/crypto-paymentDevelopment
pnpm install- Smart contract compile
pnpm compileDeployment
Create .env file see .env.example for reference.
- Smart contracts hardhat commands
1. pnpm deploy-payment --network "<NETWORK_NAME>" #deploy Payment contract, after this command add deployed addr to src/network/***.json "Payment"
2. pnpm deploy-helper --network "<NETWORK_NAME>" #deploy MilestoneHelper contract, after this command add deployed addr to src/network/***.json "Helper"
3. pnpm deploy-escrow --network "<NETWORK_NAME>" #deploy Escrow contract, after this command add deployed addr to src/network/***.json "Escrow"
4.(OPTIONAL) pnpm deploy-token --network "<NETWORK_NAME>" #deploy ERC20 FakeUSDT token for testing escrow- After deployment put contract addresses to src/network/<NETWORK_NAME>.json
Build package for frontend connection
pnpm build #build packagepnpm release #public realease packageAuto tests smart contracts
pnpm test-escrow
pnpm test-classic #classic mocha, chai tests for Escrow.sol contract