Skip to content

stackosofficial/node-nft-contract

Repository files navigation

CONFIGURE THE DEPLOYMENT

Step 1

Clone this repo and install dependencies:

git clone https://github.com/stackosofficial/node-nft-contract
cd ./STACKNFT
npm install

Step 2

Rename .env.template to .env, open it and then enter your:

  1. Rinkeby node URL (e.g. from Alchemy or Infura)
    • If you use non-archival node, remove blockNumber from hardhat config. Alchemy should be archival by default.
  2. Matic node URL (e.g. from Alchemy or Infura)
  3. The private key of the account which will send the deployment transaction
  4. POLYGONSCAN or ETHERSCAN api key depends where you wish to deploy, matic or rinkeby (get one here)

Step 3: Testing locally

  1. Run tests npx hardhat test

Step 4

  1. Open the file scripts/deploy.js and fill settings with your details
  2. Adjust chainlink fee variable in contracts/StackOsNFT.sol (see actual fees here)

DEPLOYMENT AND VERIFICATION

Verification will run automatically after deployment.

Rinkeby testnet:

npx hardhat run --network rinkeby scripts/deploy.js

Matic:

npx hardhat run --network matic scripts/deploy.js

DEPLOYMENT AND VERIFICATION of FAKE ROUTER

Mainnet:

run the following script from the owner of the Exchange contract

To setup FakeRouter run the following script from the owner of the Exchange contract to test it locally:

npx hardhat run scripts/setupFakeRouter.js

And run this to setup on polygon:

npx hardhat run scripts/setupFakeRouter.js --network matic

this script is here to revert change and set default dfyn router in case of problems:

npx hardhat run scripts/setupDefaultRouter.js --network matic

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •