Smart contracts for Web3 payment service.
Quick start:
yarn install
ts-node scripts/setupERC777.ts
yarn compile
yarn test-api-coin
Deploy:
create .env file with these variables configured:
- TEST_SCAN_URL: scan url for contract verifying.
- TEST_RPC_URL: blockchain rpc endpoint.
- PRIVATE_KEY: deployer's private key.
run
# generate files needed when verifying contract on scan
./scripts/flatten.sh
yarn test-deploy
Make sure deployer account has enough balance.