First install the dependencies.
yarn install
Also install the 0.5.12 Solidity toolchain. Install Page.
We also provide a deployment/interaction cli found in src
. To use this cli, install, then:
yarn build
yarn link
You should now have a dot-crypto
executable in your $PATH
.
Now try:
dot-crypto --help
First compile the contracts.
yarn compile
The cli has some configuration inside .cli-config.json
. Feel free to change these to fit you're needs.
Using the config dot-crypto
will deploy a new set of contracts and overwrite the .cli-config.json
file.
This also means that if you keep track of the step you can pause and resume deployment. e.g.
> dot-crypto
...
Step 4: ...
^C
> dot-crypto --step 4
... Resuming deployment
After deployment you can use the call
command like this.
dot-crypto call sunriseController mintSLD 0x1a5363cA3ceeF73b1544732e3264F6D600cF678E label
dot-crypto call registry ownerOf $(dot-crypto call registry childOf $(dot-crypto call registry root) label)
Run a ganache server in the background.
yarn ganache:start
Run the tests.
yarn test
Stop ganache server.
yarn ganache:stop