@proofi/solidity
v0.1.4
Published
## Installation
Downloads
1
Readme
Proofi - Solidity Smart Contracts
Installation
Install dependencies
$ npm install
You could also choose to install Truffle and Ganache globally:
$ npm install -g truffle truffle-plugin-verify ganache-cli @openzeppelin/contracts
Note:
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 test
Configuration
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:dev
Rinkeby
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:rinkeby
Kovan
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:kovan
Ethereum mainnet
$ npm run deploy