@proofi/solidity v0.1.4
Proofi - Solidity Smart Contracts
Installation
Install dependencies
$ npm installYou could also choose to install Truffle and Ganache globally:
$ npm install -g truffle truffle-plugin-verify ganache-cli @openzeppelin/contractsNote:
if you install truffle and ganache globally, all the project's dependencies (such as @openzeppelin/contracts) will also need to be installed globally, otherwise truffle verify won't work properly.
Run tests
$ npm testConfiguration
Create a .env file (look at .env.example for reference) or set environment variables:
MNEMONIC="..."
INFURA_ID="..."
ETHERSCAN_API_KEY="..."- Deployment to rinkeby is done via Infura.
- Create an Etherscan API key for contract verification.
Deployment
Ganache
Ganache is a personal Ethereum blockchain for development and tests.
$ npm run migrate:devRinkeby
Deploy the identity provider contract and 3 demo NFTs on the Rinkeby Ethereum testnet. Make sure your wallet has enough ETH to pay for the GAS and LINK to pay the chainlink fee.
$ npm run migrate:rinkebyKovan
Deploy the identity provider contract and 3 demo NFTs on the Kovan Ethereum testnet. Make sure your wallet has enough ETH to pay for the GAS and LINK to pay the chainlink fee.
$ npm run migrate:kovanEthereum mainnet
$ npm run deploy