Project on which to base new Ethereum smart contract apps.
- Includes a consistent ganache setup
- Updated Truffle Migration contract for zOS
- Easy yarn commands to manage contracts
- yarn test command runs truffle tests without migrations
Clone the repo and then install deps:
$ yarn
Copy over .envrc and allow direnv:
$ cp .envrc.example .envrc
$ direnv allow
Start ganache-cli
:
$ yarn start
If you changed the mnemonic, you should update the ADMIN_ADDRESS variable in .envrc
with another address (I use the second address listed when ganache-cli
starts).
Now start a new zos session:
$ yarn session
Push out the local contracts:
$ zos push
Migrate the contracts and bootstrap the data:
$ yarn migrate
To see what data is bootstrapped, have a look at the migrations.
zos push --network rinkeby --from <admin address>
yarn migrate-rinkeby