Skip to content

Latest commit

 

History

History
66 lines (43 loc) · 1.34 KB

README.md

File metadata and controls

66 lines (43 loc) · 1.34 KB

Solidity Smart Contract

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

Ganache

Ganache is a personal Ethereum blockchain for development and tests.

$ npm run migrate:dev

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.

ChainLink Faucet

$ npm run migrate:kovan

Ethereum mainnet

$ npm run deploy