Skip to content

Latest commit

 

History

History
67 lines (54 loc) · 1.27 KB

README.md

File metadata and controls

67 lines (54 loc) · 1.27 KB

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