Skip to content

nftcloner/contracts

Repository files navigation

NFT Cloner - Smart Contracts

Development

Install dependencies

yarn

Compile typescript, contracts, and generate typechain wrappers

yarn build

Run tests

yarn test

Environment Setup

Copy .env.example to .env and fill in fields

Commands

# compiling
npx hardhat compile

# deploying
npx hardhat deploy

# verifying on etherscan
npx hardhat verify --network goerli {DEPLOYED_ADDRESS}

# replace `goerli` with `mainnet` to productionize

Automated Testnet Deployments

The contracts are deployed to Rinkeby on each push to master and each PR using the account 0x7f686f9B2740e09469a4A5A0F2eDE2d317D4aeE5. This account's mnemonic is stored in GitHub Actions as a secret and is injected as the environment variable MNEMONIC. This mnemonic shouldn't be considered safe for mainnet use.