Skip to content

Commit

Permalink
feat: add early contributors to merkleroot
Browse files Browse the repository at this point in the history
  • Loading branch information
swr1bm86 committed May 31, 2022
1 parent 67150ee commit 65df3b7
Show file tree
Hide file tree
Showing 14 changed files with 65,997 additions and 297 deletions.
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,12 @@ Here is a list of the main scripts to run:
- This will create the Merkle Tree: `yarn execute localhost scripts/getMerkleRoot data/nft_holders.json data/votes_and_poap_holders.json`
- This script sets the merkle root hash on the contract: `yarn execute localhost scripts/setMerkleRoot`

### Generating Airdrop Data

Before deployment, we need to generate airdrop data first

1. `./generate-airdrop.sh rinkeby` the script use `mainnet` as the default network
2. Copy JSON data from `packages/hardhat/data/out/airdrop_ui_rinkeby.json` to `packages/next-app/src/data/airdrop.ts`
### Deploying

To deploy to Rinkeby, these are the steps:
Expand Down
17 changes: 17 additions & 0 deletions generate-airdrop.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
set -e
set -x

network="${1:-mainnet}"

yarn execute $network scripts/getMerkleRoot.ts \
$(pwd)/packages/hardhat/data/nft_holders.json \
$(pwd)/packages/hardhat/data/votes_and_poap_holders.json \
$(pwd)/packages/hardhat/data/final_early_contributor_amounts.json

yarn execute $network scripts/generateAirdropForUI.ts \
$(pwd)/packages/hardhat/data/nft_holders.json \
$(pwd)/packages/hardhat/data/votes_and_poap_holders.json \
$(pwd)/packages/hardhat/data/final_early_contributor_amounts.json

yarn execute $network scripts/airdropSumCheck \
$(pwd)/packages/hardhat/data/out/airdrop_$network.json
Loading

0 comments on commit 65df3b7

Please sign in to comment.