This allows us to quickly create a test environment on a blockchain. We use this instead of Truffle's migrations system as none of the deployed contracts are singletons.
$ yarn run create-demo-loan
yarn run v1.0.2
warning package.json: No license field
$ ts-node create-demo-loan.ts
Deploying Token A...
Token A deployed at 0xf178723707afa80e294e745187b4cea899c8fe55
Printing token A...
Deploying Token B...
Token B deployed at 0xd4e2cf7d62742b0a8604f440dbde3585c49dbf88
Printing token B...
Deploying test loan...
Test loan at 0xd6d9520d315cdbc773b6087b0190b97b5baad6b3
Done in 144.71s
The output of this script can be then used to test the metabackend, etc.
This allows us to quickly create a test environment on a blockchain. We use this instead of Truffle's migrations system as none of the deployed contracts are singletons.
The output of this script can be then used to test the metabackend, etc.