Built with Saturn Dapp Dev Kit!
This code could have earned you $1,500 for that bounty! Check deployed version here.
Don't have time to learn tech and want to focus on making your business successful? We can help!
Then, in the terminal in the folder where you downloaded this git repo, run
# install dependencies npm install # to run tests, do npm run test # to build the project for release, run npm run sol-compiler # after that, to deploy WETC223 to Kotti, run node scripts/1_deploy_to_kotti.js
Most interesting files to review
contracts/ERC223.sol- this is the ERC223 token interface that we use ourselves for STRN.
test/wetc223.js- this shows how to interact with this token, as well as tests for edge cases (e.g. ensure that balance of the token and collateral is always in sync).
compiler.json- this is a configuration file for the
sol-compilertool, it allows you to select which smart contract you want to build for production usage.
scripts/1_deploy_to_kotti.js- this file shows how to deploy your created and compiled smart contract onto the Kotti testnet.