Skip to content
This repository has been archived by the owner on May 30, 2023. It is now read-only.

Latest commit

 

History

History
83 lines (55 loc) · 1.34 KB

DEVELOPMENT.md

File metadata and controls

83 lines (55 loc) · 1.34 KB

Development

Installation

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

CLI

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)

Tests

Run a ganache server in the background.

yarn ganache:start

Run the tests.

yarn test

Stop ganache server.

yarn ganache:stop