Skip to content

Instantly share code, notes, and snippets.

View nylira's full-sized avatar

Peng Zhong nylira

View GitHub Profile
@nylira
nylira / cosmos-sdk.sh
Last active August 28, 2018 04:04 — forked from zramsay/sdk.sh
Gist to install a recent version of the Cosmos SDK. Intended for use by Cosmos Hub full nodes.
#!/usr/bin/env bash
# this script is intended to be run from a Debian/Ubuntu VM with the account `pz`.
# sudo bash sdk.sh
sudo apt-get update -y
sudo apt-get upgrade -y
sudo apt-get install -y make
# get and unpack golang
@nylira
nylira / keybase.md
Created September 11, 2017 05:13
Keybase Verification

Keybase proof

I hereby claim:

  • I am nylira on github.
  • I am peng (https://keybase.io/peng) on keybase.
  • I have a public key ASC0DmfoLOhudJa6nqiXwsNWC1blE7vjDewoebiYMsXb6Qo

To claim this, I am signing this object:

basecli-mercury query account $ME3
basecli-mercury keys new mykey
ME3=$(basecli-mercury keys get mykey | awk ‘{print $2}’)
basecli-hermes tx send --name=mykey --amount=5bumblebee --to=mercury/$ME2 --sequence=2
basecli-hermes keys new mykey2
ME2=$(basecli-hermes keys get mykey2 | awk ‘{print $2}’)
basecli-hermes tx send --name=mykey --amount=5bumblebee --to=$ME2 --sequence=1
basecli-hermes query account $ME
basecli-hermes keys new mykey
ME=$(basecli-hermes keys get mykey | awk ‘{print $2}’)
echo $ME
basecli-hermes init --node=tcp://localhost:12347
rm -rf ~/.cosmos-testnets/mercury/client
tail -f mercury-tendermint.log
# wait until it slows down. then
basecli-mercury init --node=tcp://localhost:23457
basecli-mercury init --node=tcp://localhost:23457