Zentachain - CHAIN contract with 12 Decimals.
- Ganache
- Truffle
- Infura
- Node Js // We are using v11.19.0
- Etherscan-API // Register to get your API-Key
- Docker // None required optional
- Install Openzeppelin // Commandline
$ npm install @openzeppelin/contracts
Install truffle:
$ npm install -g truffle
Compile Contract:
truffle compile
Use the --reset flag to run all migrations from the beginning:
truffle migrate --reset
Start Truffle console and interact with the contract instances:
$ truffle console
Interacting with the contract:
$ Zentachain.deployed().then(function(instance){ zentachain = instance; }) // First Command to deploy instances
$ zentachain.symbol()
$ zentachain.decimals()
$ zentachain.totalSupply()
$ zentachain.balanceOf(web3.eth.accounts[0])
$ zentachain.transfer(web3.eth.accounts[1],100,{from:web3.eth.accounts[0]})
Use hdwallet as a provider where a Web3 provider is needed.
Install truffle-hdwallet-provider module:
npm install truffle-hdwallet-provider
This truffle plugin allows you to automatically verify your smart contracts. Before running verification, make sure that you have actually deployed your contracts to a public network with Truffle.
Install the plugin with:
npm install truffle-verify