https://rinkeby.etherscan.io/address/0xFa2bEB1ab1F5fb849Dc5981B88c2E1CdFB51f482#code
- Set initial values on scripts/deploy.ts file
- Deploy contract running on console:
node scripts/deploy.ts
- Copy address of deployed contract and paste to .env file as CONTRACT_ADDRESS
- Use transfer, approve and etc. functions
- balanceOf()
Get balance of exact address
- transfer()
Send tokens to another address
- transferFrom()
transfer tokens from one address to another
- approve()
Approve another address to spend amount from your balance
- safeApprove
Approve another address to spend amount from your balance
Safe version
- burn()
Burns tokens from another address
- mint()
Mint new tokens to another address
node scripts/deploy.js --network rinkeby
npx hardhat test
npx hardhat transfer
npx hardhat transfer-from
npx hardhat approve