Skip to content

IEEE-CS-PESU/SiliconRushNFT

Repository files navigation

Silicon Rush NFT Smart Contract

Technologies Used -

  • HardHat

  • Solidity

  • Infura

  • Javascript

 

Getting Started -

To install all required packages -

yarn install

Add .env file in root directory and add required env variables(Refer .env.local file)

 

Replace <name> and <token> with your NFT Name and Token in deploy/01_SiliconRush.js,line numbers - 9 and 10

 

Modify baseURI, baseExtension, cost, maxSupply, maxMintAmount in contracts/SiliconRush.sol

To deploy SiliconRush -

npx hardhat deploy

OR

hh deploy

By default it contract is deployed to local HardHat Network

To deploy contract to Rinkeby Testnet

hh deploy --network rinkeby

To deploy contract to ETHEREUM Mainnet

hh deploy --network mainnet

To deploy contract to POLYGON Mumbai Testnet

hh deploy --network mumbai

To deploy contract to POLYGON Mainnet

hh deploy --network polygon

Add other blockchain network configurations in hardhat.config.js file.

 

If you want to list your custom NFT Token on OpenSea -

Modify .env file to add MNEMONIC, INFURA_KEY, NFT_CONTRACT_ADDRESS, OWNER_ADDRESS

and then run,

hh run scripts/list.js

OR

npx hardhat run scripts/list.js