- Deploy Token.sol contract
npx hardhat run scripts/deployToken.js --network mumbai
- Update deployLockForever.js token contract address
- Deploy LockForever.sol contract
npx hardhat run scripts/deployLockForever.js --network mumbai
- Flatten files
npx hardhat flatten
- Remove license from flat file
// SPDX-License-Identifier: UNLICENSED
- Paste flatten files to Remix
- Connect MetaMask
- Deploy & Run Transactions
- Select Contract: IERC20
- At Address: (0xTokenAddress)
approve(0xLockForeverAddress, 800000000000000000000000000)
- Select Contract: LockForever
lockForever(1000000000000000000000000)
currentLockBalance()
lockBalance(0xOwnerWalletAddress)
lockRecordIds(0xOwnerWalletAddress)
lockRecordsMapping(1)