Introduction of Classic Delta Smart Contracts
npm install
To start a private testnet, make sure ganache-cli is properly installed. If you haven't done so before, install it by:
npm install -g ganache-cli
npm run ganache
truffle test --network ganache
truffle console --network live
web3.eth.getBlockNumber((e, block) => { console.log(block)})
web3.eth._requestManager.provider.addresses[0]
Migrating the code to Ganache test network can be done only after starting ganache-CLI by:
npm run ganache
Migration command to just started ganache network:
truffle migrate --reset --network ganache
Make sure you have specified a .env file according to .env.example provided. Then run the following command:
truffle migrate --reset --network live