Skip to content

Commit

Permalink
rewrite readme
Browse files Browse the repository at this point in the history
  • Loading branch information
NeverHappened committed Oct 24, 2023
1 parent 05ab3bd commit c2784fa
Show file tree
Hide file tree
Showing 2 changed files with 46 additions and 11 deletions.
55 changes: 45 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,22 +1,57 @@
# Transfer unclaimed airdrop funds from neutron-1 to cosmoshub-4

# Test
`make build`
## Run integration tests

`cd ./integration-tests`
Prerequisites to run tests:
- rustup
- node >= v16
- docker-compose version >= 2.22.0
- cloned repos (see below)

`yarn build`
Our integration tests need several external repos to run.

`yarn test`
You'll need to place these repos in this structure:
```
├── gaia
├── neutron
└── neutron-airdrop-transfer (this repo)
```

1. Clone gaia and checkout current version:
```sh
git clone [email protected]:cosmos/gaia.git
git fetch
git checkout v13.0.0
```

2. Clone neutron and checkout current version:
```sh
git clone [email protected]:neutron-org/neutron.git
git fetch
git checkout v1.0.4
```

# How to
how to learn denom
3. Go to this repo root and build contracts (rustup needed)
```sh
neutrond tx ibc-transfer transfer "transfer" "channel-189" "cosmos1mwfj5j8v2aafqqnjekeqtupgc6894033nvtgre" "100untrn" --chain-id pion-1 --home "~/.neutrond" --node "https://rpc-falcron.pion-1.ntrn.tech:443" --from "pion1_testnet_wallet" --keyring-backend test
gaiad q bank balances cosmos1mwfj5j8v2aafqqnjekeqtupgc6894033nvtgre --home ~/.gaiad-theta --node https://rpc.sentry-02.theta-testnet.polypore.xyz:443
cd ./neutron-airdrop-transfer
make build
```

how to query community pool:
4. Go inside PROJECT_ROOT/integration-tests folder and build docker images:
```sh
cd ./integration-tests
make build-all
```

5. Install npm packets and run tests now:
```sh
yarn
yarn test
```

## Other

How to query community pool balance:
```
## query community pool
gaiad q auth module-account distribution --chain-id theta-testnet-001 --node "https://rpc.sentry-02.theta-testnet.polypore.xyz:443"
Expand Down
2 changes: 1 addition & 1 deletion src/contract.rs
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ fn execute_claim_unclaimed(

let config = CONFIG.load(deps.storage)?;

// Generate burn submessage and return a response
// generate withdraw submessage and return a response
let claim_message = CosmosMsg::Wasm(WasmMsg::Execute {
contract_addr: config.airdrop_address.to_string(),
msg: to_binary(&cw20_merkle_airdrop::ExecuteMsg::WithdrawAll {})?,
Expand Down

0 comments on commit c2784fa

Please sign in to comment.