/smart-contracts

On-chain system contracts and examples

Primary LanguageSolidityMIT LicenseMIT

Dev:

  • $ git clone https://github.com/DOSNetwork/smart-contracts
  • $ npm install
  • $ npm -g install truffle
  • $ npm -g install ganache-cli or installing its graphic interface
  • Required truffle/solcjs version: >= 0.5

Compile:

  • $ truffle compile

Deploy to local development network:

  • $ ganache-cli
  • $ truffle migrate --reset

Deploy to rinkeby testnet without dryrun:

  • $ truffle compile --all
  • $ truffle migrate --reset --network rinkeby --skip-dry-run

Deploy to mainnet without dryrun:

  • $ truffle compile --all
  • $ truffle migrate --reset --network live --skip-dry-run

Test:

  • $ ganache-cli -a 20; // Config more than 10 test accounts
  • $ truffle test

Deployed:

See deployed.json.