- Clone the project:
git clone repo_link
- Install the dependencies:
npm install
- Run the tests:
npm test
- Compile the contracts:
npm run compile
- Add appropriate values for keys in .env file:
PRIVATE_KEY_TESTNET=''
ETHERSCAN_API_KEY=''
INFURA_PROJECT=''
OWNER_ADDRESS=''
PRIVATE_KEY_MAINNET=''
PRIVATE_KEY_TESTNET_BUYER=''
- Rinkeby:
npx hardhat run scripts/1-deploy.js --network rinkeby
- Mainnet:
npx hardhat run scripts/1-deploy.js --network mainnet
- Rinkeby:
npx hardhat verify --network rinkeby <DEPLOYED_SC_ADDRESS> "nftName" "nftSymbol" "feeRecipientAddress" "platformFee"
- Mainnet:
npx hardhat verify --network mainnet <DEPLOYED_SC_ADDRESS> "nftName" "nftSymbol" "feeRecipientAddress" "platformFee"
- Set NFT_CONTRACT_ADDRESS == <DEPLOYED_SC_ADDRESS> in the script and run:
node scripts/perform-redeem.js