- recover your Token contract and added mint function to mint token to simpleDistributor contract.
- recover simpleDistributor contract from your contract address.
- test build with typescript. from token deploy to claim, can test step by step.
- call original contract form your token address and contract address in Rinkeby. and implement test with typescript.
- deploy script is build.
- assum share of user is same(from your backend)
- you have to increase nonce manually to test original contract for last claim contract.
You used merkle tree, user's is in list of share list. so decrease search deep and algorithm complexibity. implemented on-chain verification with smart contract and local verification with merkletreejs.
- Test:
- npx hardhat compile
- npx hardhat test
- Deploy to linkeby:
- npx hardhat run --network rinkeby scripts/deploy.ts