Skip to content

alanding1006/tokenERC721

 
 

Repository files navigation

Token Contracts

Install

npm install

Compile

%%set the following two enviorment variables
export INFURA_API_KEY=
export MNEMONIC=
npm run compile

Deploy upgradeable contract

  1. edit file./scripts/deployProxy.js
  2. run
npx hardhat run ./scripts/deployProxy.js --network metermain

Deploy

npx hardhat deploy --name ttt --symbol ttt --supply 1000000000000000000000000 --owner 0x319a0cfD7595b0085fF6003643C7eD685269F851 --network metermain

setBlackList

npx hardhat setBlackList --account 0x319a0cfD7595b0085fF6003643C7eD685269F851 --network metermain

getBlackList

npx hardhat getBlackList --account 0x319a0cfD7595b0085fF6003643C7eD685269F851 --network metermain

mint

npx hardhat mint --to 0x319a0cfD7595b0085fF6003643C7eD685269F851 --amount 10000000000000000000000 --network metermain

pause

npx hardhat pause --network metermain

unpause

npx hardhat unpause --network metermain

grantRole

npx hardhat grant --account 0x319a0cfD7595b0085fF6003643C7eD685269F851 --network metermain

revokeRole

npx hardhat revoke --account 0x319a0cfD7595b0085fF6003643C7eD685269F851 --network metermain

Publish & Verify

npx hardhat veri --network metermain

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 89.3%
  • JavaScript 8.0%
  • Solidity 2.4%
  • Shell 0.3%