Realize ERC20-Token publishing and some major methods about Multi-Party Payment Protocol(MPP) based on thorify.Implemented for reference only.
First of all, thor client needs to be installed locally. To install thor:follow this link.
Start with solo mode,there will be 10 initial accounts for test.
bin/thor solo
Deploy ERC20-Token
npm run erc20-deploy
Airdrop token
npm run erc20-airdrop
Approve token and spend
npm run erc20-approve
Burn token
npm run erc20-burn
Get transfer log
npm run erc20-eventlog
Deploy test shopping contract
npm run mpp-deploy
Shopping paid by user
npm run mpp-shopping
Shopping paid by contract
npm run mpp-paidbycontract
Shopping paid by sponsor
npm run mpp-paidbysponsor