Skip to content

Commit

Permalink
Edit readme
Browse files Browse the repository at this point in the history
  • Loading branch information
orkunkl committed Aug 4, 2021
1 parent d0b00a5 commit 4a7cdfa
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
8 changes: 6 additions & 2 deletions contracts/cw20-merkle-airdrop/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,11 @@ pub enum QueryMsg {
- `{ latest_stage: {}}` returns current airdrop stage, `{"latest_stage": ...}`
- `{ is_claimed: {stage: "stage", address: "wasm1..."}` returns if address claimed airdrop, `{"is_claimed": "true"}`

## Airdrop helper CLI
## Merkle Airdrop CLI

[Airdrop helper CLI](helpers) contains js helpers for generating root, generating and verifying proofs for given airdrop
[Merkle Airdrop CLI](helpers) contains js helpers for generating root, generating and verifying proofs for given airdrop
file.

## Test Vector Generation

Test vector can be generated using commands at [Merkle Airdrop CLI README](helpers/README.md)
4 changes: 2 additions & 2 deletions contracts/cw20-merkle-airdrop/helpers/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ Binary will be placed to path.
```json
[
{ "address": "wasm1k9hwzxs889jpvd7env8z49gad3a3633vg350tq", "amount": "100"},
{ "address": "wasm1uy9ucvgerneekxpnfwyfnpxvlsx5dzdpf0mzjd", "amount": "1010"},
{ "address": "wasm1uy9ucvgerneekxpnfwyfnpxvlsx5dzdpf0mzjd", "amount": "1010"}
]
```

Expand All @@ -42,6 +42,6 @@ PROOFS='[ "27e9b1ec8cb64709d0a8d3702344561674199fe81b885f1f9c9b2fb268795962","28
]'
merkle-airdrop-cli verifyProofs --file ../testdata/airdrop.json \
--address wasm1k9hwzxs889jpvd7env8z49gad3a3633vg350tq \
--amount 100
--amount 100 \
--proofs $PROOFS
```

0 comments on commit 4a7cdfa

Please sign in to comment.