Skip to content

DeltaCamp/nftery-contracts

Repository files navigation

Base Contract Project

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

Local Usage

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.

Deploying to rinkeby

zos push --network rinkeby --from <admin address>
yarn migrate-rinkeby

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published