This is a Tronbox project using the truffle plugin (for tests as this used to be truffle-based).
tronbox compile
can specify the network to choose the network you want to deploy in tronbox.js. you can add --reset to redeploy contract.
tronbox migrate --network <network>
deploy contracts will generate two contracts:Distributor and MerkleDistributor
- call Distributor:upgradeCaller(MerkleDistributor.address) to set the caller from Owner
- call MerkleDistributor:setMinter(Distributor.address) to set the minter from Owner
- call MerkleDistributor:proposewMerkleRoot(root) to propose pending root from proposalAuthority
- call MerkleDistributor:reviewPendingMerkleRoot(1) to review the pending root to root from reviewAuthority
- transfer enough BTT to Distributor for airdrop