Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/bittorrent/btfs-airdrop
https://github.com/bittorrent/btfs-airdrop
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/bittorrent/btfs-airdrop
- Owner: bittorrent
- Created: 2022-01-11T09:45:17.000Z (almost 3 years ago)
- Default Branch: v1.0.0
- Last Pushed: 2023-01-06T10:39:30.000Z (almost 2 years ago)
- Last Synced: 2024-03-29T08:51:56.698Z (9 months ago)
- Language: Solidity
- Size: 24.4 KB
- Stars: 3
- Watchers: 4
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# airdrop
## Compile
This is a Tronbox project using the truffle plugin (for tests as this used to be truffle-based).
```sh
tronbox compile
```## Deploy
can specify the network to choose the network you want to deploy in tronbox.js. you can add --reset to redeploy contract.
```sh
tronbox migrate --network
```## Operation
deploy contracts will generate two contracts:Distributor and MerkleDistributor
1. call Distributor:upgradeCaller(MerkleDistributor.address) to set the caller from Owner
2. call MerkleDistributor:setMinter(Distributor.address) to set the minter from Owner
3. call MerkleDistributor:proposewMerkleRoot(root) to propose pending root from proposalAuthority
4. call MerkleDistributor:reviewPendingMerkleRoot(1) to review the pending root to root from reviewAuthority
5. transfer enough BTT to Distributor for airdrop