Skip to content
This repository has been archived by the owner on Aug 12, 2024. It is now read-only.

Document how to claim airdrop tokens #70

Closed
ethanfrey opened this issue Aug 17, 2020 · 2 comments · Fixed by #71
Closed

Document how to claim airdrop tokens #70

ethanfrey opened this issue Aug 17, 2020 · 2 comments · Fixed by #71
Assignees
Milestone

Comments

@ethanfrey
Copy link
Member

We gave people tokens with gaia addresses.

We need to stake on gaiaflex, which is a different binary and not sharing the same keychain.

Go through this process and see if we can get tokens.

@ethanfrey ethanfrey added this to the gaia-flex milestone Aug 17, 2020
@ethanfrey ethanfrey self-assigned this Aug 17, 2020
@ethanfrey
Copy link
Member Author

ethanfrey commented Aug 17, 2020

My notes here:

# TODO: set GAIA_KEYNAME with whatever name you used on the gaia keychain...
GAIA_ADDRESS=$(gaiacli keys show -a GAIA_KEYNAME)
echo $GAIA_ADDRESS
gaiaflex keys add validator

gaiaflex config node https://rpc.gaia-flex.cosmwasm.com:443
gaiaflex config trust-node true

# ensure the data is here
gaiaflex query account $GAIA_ADDRESS
# set ACCOUNT_NUMBER from the response
ACCOUNT_NUMBER=$(gaiaflex query account $GAIA_ADDRESS -o json | jq -r .value.account_number)
echo $ACCOUNT_NUMBER

# multistep signing process
# create the proper transfer with gaiaflex
gaiaflex tx send $GAIA_ADDRESS $(gaiaflex keys show -a validator) 9999000000umuon --fees 5000umuon --chain-id gaia-flex --generate-only > airdrop.json

# sign it with the same binary you used  (this may be some multisig step depending on your voting key - can be done on offline computers)
gaiacli tx sign -a $ACCOUNT_NUMBER -s 0 --offline --from gaia-flex-demo --chain-id gaia-flex airdrop.json > airdrop_signed.json

# submit the signed airdrop claim tx from online gaiaflex machine
gaiaflex tx broadcast airdrop_signed.json

# and see the money arrived
gaiaflex query account $(gaiaflex keys show -a validator)

@ethanfrey
Copy link
Member Author

To stake...

Set MONIKER to whatever you want to be called. And then get the VAL_PUBKEY from the validator like:

root@validator$ ./show_validator.sh
# copy this as VAL_PUBKEY in your local shell

Then run a command like:

gaiaflex tx staking create-validator \
  --amount=3000000000umuon \
  --pubkey=${VAL_PUBKEY} \
  --moniker=$MONIKER \
  --chain-id=gaia-flex \
  --commission-rate="0.10" \
  --commission-max-rate="0.20" \
  --commission-max-change-rate="0.01" \
  --min-self-delegation="1" \
  --gas="400000" \
  --fees="20000umuon" \
  --from=validator

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant