Skip to content

Instantly share code, notes, and snippets.

@davepuchyr
davepuchyr / genesis.json
Last active December 22, 2021 14:18
The `iov-mainnet-ibc` genesis file
This file has been truncated, but you can view the full file.
{
"app_hash": "",
"app_state": {
"auth": {
"accounts": [
{
"@type": "/cosmos.auth.v1beta1.BaseAccount",
"account_number": "1175",
"address": "star1qqrlvl0lq0e6y65gsfh2df8ahrhmjnc7scn020",
"pub_key": {
@davepuchyr
davepuchyr / iov-mainnet-2-halt.sh
Last active June 25, 2021 08:03
Run `iov-mainnet-2-halt.sh` on your `iov-mainnet-2` nodes when https://big-dipper.iov-mainnet-2.iov.one/proposals/7 passes
#!/bin/sh
# become root
sudo su -c bash
# pick-up env vars
set -o allexport ; source /etc/systemd/system/starname.env ; set +o allexport
# inject the halt height into iovnsd.sh
sed --in-place 's/iovnsd start/iovnsd start --halt-height 4294679/' ${DIR_IOVNS}/iovnsd.sh
@davepuchyr
davepuchyr / validate-stargatenet.sh
Created June 17, 2021 16:05
Create a validator on the `stargatenet` testnet
#!/bin/bash
export USER_IOV=iov # "iov" is not recommended
# become USER_IOV
su - ${USER_IOV}
set -o allexport ; source /etc/systemd/system/starnamed.env ; set +o allexport # pick-up env vars
export PATH=${PATH}:${DIR_STARNAMED}
export LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:${DIR_STARNAMED}
@davepuchyr
davepuchyr / join-stargatenet.sh
Last active June 18, 2021 13:01
Start an IBC-enabled node for the `stargatenet` testnet
#!/bin/bash
for i in basename chgrp chmod curl grep journalctl jq sed sha256sum systemctl wget ; do [[ $(command -v $i) ]] || { echo "$i is not in PATH; PATH == $PATH; cannot proceed" ; exit -1 ; } ; done # https://unix.stackexchange.com/a/379425
sudo su -c bash # make life easier for the next ~100 lines
cd /etc/systemd/system
export USER_IOV=iov # "iov" is not recommended
export SIGNER=dave*iov # signer for the create-validator tx
@davepuchyr
davepuchyr / genesis.json
Last active December 22, 2021 14:44
Stargatenet Genesis File
This file has been truncated, but you can view the full file.
{
"app_hash": "",
"app_state": {
"auth": {
"accounts": [
{
"@type": "/cosmos.auth.v1beta1.BaseAccount",
"account_number": "1175",
"address": "star1qqrlvl0lq0e6y65gsfh2df8ahrhmjnc7scn020",
"pub_key": {
@davepuchyr
davepuchyr / validators.txt
Created December 24, 2020 08:53
Starname (IOV) Network Validators
01node-epyc ChainLayer IRISnet-Bianjie StakeWithUs
AC Validator 🚀 Cosmostation OpenTech Staking staking.blue
Anchor Staking Forbole Simply Staking Staky.io
ATEAM in3s.com Stake Capital syncnode
@davepuchyr
davepuchyr / unsafe-reset-all.sh
Created August 25, 2020 09:52
Quick start for iov-mainnet-2
#!/bin/bash
sudo su
systemctl stop starname.service
su - ${USER_IOV}
set -o allexport ; source /etc/systemd/system/starname.env ; set +o allexport # pick-up env vars
export PATH=${DIR_IOVNS}:$PATH
@davepuchyr
davepuchyr / redo3-galaxynet-v0.9.1.sh
Created August 20, 2020 18:18
Pick-up corrected genesis.json for galaxynet
#!/bin/bash
sudo su
systemctl stop starname.service
# update the persistent peer
set -o allexport ; source /etc/systemd/system/starname.env ; set +o allexport # pick-up env vars
sudo sed --in-place 's/8c059fd8d3049f6a7d81746ad35a0fd7662cad3a/c0a71edc987eb78b8c7b99b9963c6429bc9c8f1e/' ${DIR_IOVNS}/iovnsd.sh
@davepuchyr
davepuchyr / redo2-galaxynet-v0.9.1.sh
Created August 14, 2020 08:22
Pick-up new genesis_time
#!/bin/bash
sudo systemctl stop starname.service
# reset data
su ${USER_IOV}
set -o allexport ; source /etc/systemd/system/starname.env ; set +o allexport # pick-up env vars
${DIR_IOVNS}/iovnsd unsafe-reset-all --home ${DIR_WORK}
@davepuchyr
davepuchyr / redo-galaxynet-v0.9.1.sh
Created August 13, 2020 17:51
Pick-up a Big Dipper compatible genesis file
#!/bin/bash
sudo systemctl stop starname.service
# reset data
su - ${USER_IOV}
set -o allexport ; source /etc/systemd/system/starname.env ; set +o allexport # pick-up env vars
${DIR_IOVNS}/iovnsd unsafe-reset-all --home ${DIR_WORK}