From e6409d88228577cbff7c7c10d59f42a3ac469626 Mon Sep 17 00:00:00 2001 From: Songhua Hu Date: Mon, 16 May 2022 14:09:24 -0700 Subject: [PATCH] Prepare for v1.0 release --- .gitignore | 3 +- README.md | 218 +++++------------- ansible.cfg | 2 + asset_mantle.yml | 15 -- auto_compound.yml | 6 - auto_compound_for_delegation.yml | 6 - bitcanna.yml | 15 -- cerberus.yml | 15 -- certik.yml | 15 -- chihuahua.yml | 15 -- comdex.yml | 15 -- cosmos.yml | 15 -- cosmos_exporter.sample | 30 --- crescent.yml | 15 -- docs/agoric.md | 19 -- docs/akash.md | 36 --- docs/akash/upgrade_v0.16.0.md | 36 --- docs/asset_mantle.md | 26 --- docs/bitcanna.md | 65 ------ docs/celestia.md | 50 ---- docs/cerberus.md | 26 --- docs/certik.md | 37 --- docs/chihuahua.md | 30 --- docs/coho.md | 22 -- docs/comdex.md | 70 ------ docs/cosmos.md | 34 --- docs/craft.md | 45 ---- docs/crescent.md | 47 ---- docs/defund.md | 33 --- docs/deweb.md | 45 ---- docs/evmos.md | 48 ---- docs/fetch.md | 20 -- docs/general.md | 75 ------ docs/gravity.md | 36 --- docs/gravity/upgrade_v1.5.2.md | 35 --- docs/injective.md | 52 ----- docs/injective/10005_upgrade.md | 40 ---- docs/juno.md | 89 ------- docs/juno/upgrade_v4.0.0.md | 36 --- docs/kava.md | 34 --- docs/kava/kava-9-migration.md | 14 -- docs/kava/testnet-14000.md | 102 -------- docs/kichain.md | 47 ---- docs/konstellation.md | 32 --- docs/lum.md | 28 --- docs/mainnet.md | 64 ----- docs/meme.md | 22 -- docs/nomic.md | 14 -- docs/omniflix.md | 34 --- docs/osmosis.md | 46 ---- docs/penumbra.md | 29 --- docs/sifchain.md | 33 --- docs/sifchain/upgrade_v0.11.0.md | 22 -- docs/sifchain/upgrade_v0.12.1.md | 38 --- docs/sifchain/upgrade_v0.13.0.md | 36 --- docs/sifchain/upgrade_v0.13.1.md | 36 --- docs/sommelier.md | 33 --- docs/stargaze.md | 28 --- docs/terra.md | 38 --- docs/testnets.md | 34 --- docs/umee.md | 27 --- ...alidator_server_migration_best_practice.md | 23 -- evmos.yml | 15 -- fetch.yml | 15 -- galaxyd.yml | 15 -- generic_doc.md | 27 ++- generic_initialize.yml | 32 --- gravity.yml | 14 -- group_vars/{agoric_mainnet.yml => agoric.yml} | 10 + group_vars/{akash_mainnet.yml => akash.yml} | 12 +- group_vars/all.yml | 8 - ...set_mantle_mainnet.yml => assetmantle.yml} | 10 + group_vars/axelar.yml | 19 ++ .../{bitcanna_mainnet.yml => bitcanna.yml} | 12 +- .../{cerberus_mainnet.yml => cerberus.yml} | 10 + group_vars/{certik_mainnet.yml => certik.yml} | 10 + .../{chihuahua_mainnet.yml => chihuahua.yml} | 13 +- group_vars/chihuahua_testnet.yml | 10 - group_vars/{comdex_mainnet.yml => comdex.yml} | 12 +- group_vars/{cosmos_mainnet.yml => cosmos.yml} | 16 +- .../{crescent_mainnet.yml => crescent.yml} | 13 +- group_vars/{evmos_mainnet.yml => evmos.yml} | 14 +- group_vars/{fetch_mainnet.yml => fetch.yml} | 10 + .../{galaxy_mainnet.yml => galaxyd.yml} | 10 + .../{gravity_mainnet.yml => gravity.yml} | 13 +- .../{injective_mainnet.yml => injective.yml} | 15 +- group_vars/{juno_mainnet.yml => juno.yml} | 12 +- group_vars/juno_testnet.yml | 9 - group_vars/{kava_mainnet.yml => kava.yml} | 14 +- .../{kichain_mainnet.yml => kichain.yml} | 10 + ...ellation_mainnet.yml => konstellation.yml} | 12 +- group_vars/lum_mainnet.yml | 10 - group_vars/{meme_mainnet.yml => meme.yml} | 10 + group_vars/nym_mainnet.yml | 8 - .../{osmosis_mainnet.yml => osmosis.yml} | 12 +- group_vars/passage_mainnet.yml | 9 - .../{sifchain_betanet.yml => sifchain.yml} | 13 +- group_vars/sifchain_testnet.yml | 8 - .../{sommelier_mainnet.yml => sommelier.yml} | 12 +- .../{stargaze_mainnet.yml => stargaze.yml} | 17 +- group_vars/terra_mainnet.yml | 10 - group_vars/terra_testnet.yml | 10 - group_vars/testnet_vars/testnet_axelar.yml | 10 + group_vars/testnet_vars/testnet_comdex.yml | 10 + group_vars/testnet_vars/testnet_defund.yml | 10 + group_vars/testnet_vars/testnet_evmos.yml | 11 + group_vars/testnet_vars/testnet_gitopia.yml | 10 + group_vars/testnet_vars/testnet_kichain.yml | 9 + group_vars/testnet_vars/testnet_kyve.yml | 12 + group_vars/testnet_vars/testnet_umee.yml | 9 + group_vars/{umee_mainnet.yml => umee.yml} | 10 + horcrux.yml | 6 - injective.yml | 14 -- inventory.sample | 21 +- juno.yml | 15 -- kava.yml | 15 -- kichain.yml | 15 -- konstellation.yml | 15 -- lum.yml | 14 -- akash.yml => main.yml | 11 +- meme.yml | 15 -- nym.yml | 16 -- osmosis.yml | 15 -- roles/auto_compound/tasks/main.yml | 8 - .../templates/auto_compound.sh.j2 | 65 ------ .../tasks/main.yml | 8 - .../auto_compound_for_delegation.sh.j2 | 62 ----- roles/horcrux_install/tasks/main.yml | 40 ---- .../templates/horcrux.service.j2 | 15 -- roles/initialize_akash/tasks/main.yml | 25 -- roles/initialize_asset_mantle/tasks/main.yml | 25 -- roles/initialize_bitcanna/tasks/main.yml | 32 --- roles/initialize_cerberus/tasks/main.yml | 32 --- roles/initialize_certik/tasks/main.yml | 18 -- roles/initialize_chihuahua/tasks/main.yml | 32 --- roles/initialize_comdex/tasks/main.yml | 32 --- roles/initialize_cosmos/tasks/main.yml | 40 ---- roles/initialize_crescent/tasks/main.yml | 41 ---- roles/initialize_evmos/tasks/main.yml | 30 --- roles/initialize_fetch/tasks/main.yml | 18 -- roles/initialize_galaxy/tasks/main.yml | 18 -- roles/initialize_gravity/tasks/main.yml | 34 --- roles/initialize_injective/tasks/main.yml | 58 ----- roles/initialize_juno/tasks/main.yml | 25 -- roles/initialize_kava/tasks/main.yml | 33 --- roles/initialize_kichain/tasks/main.yml | 32 --- roles/initialize_konstellation/tasks/main.yml | 25 -- roles/initialize_lum/tasks/main.yml | 53 ----- roles/initialize_meme/tasks/main.yml | 25 -- roles/initialize_nym/tasks/main.yml | 18 -- roles/initialize_osmosis/tasks/main.yml | 18 -- .../templates/osmosis.service.j2 | 14 -- roles/initialize_sifchain/tasks/main.yml | 34 --- roles/initialize_sommelier/tasks/main.yml | 18 -- roles/initialize_stargaze/tasks/main.yml | 24 -- roles/initialize_terra/tasks/main.yml | 78 ------- .../templates/terrad.service.j2 | 14 -- roles/initialize_umee/tasks/main.yml | 25 -- .../tasks/main.yml | 110 ++++----- roles/node_debug/tasks/main.yaml | 4 + .../node_initialize/tasks/genesis_default.yml | 5 + roles/node_initialize/tasks/genesis_gz.yml | 14 ++ roles/node_initialize/tasks/genesis_targz.yml | 11 + roles/node_initialize/tasks/genesis_zip.yml | 17 ++ roles/node_initialize/tasks/main.yml | 64 +++++ roles/node_install/tasks/binary_default.yml | 12 + roles/node_install/tasks/binary_targz.yml | 21 ++ roles/node_install/tasks/binary_zip.yml | 26 +++ roles/node_install/tasks/main.yml | 38 +++ roles/node_launch/tasks/main.yml | 45 ++++ .../templates/cosmovisor.service.j2 | 0 roles/prepare/tasks/cosmos_software.yml | 22 +- roles/prepare/templates/profile.j2 | 4 +- roles/relayer_juno/templates/hermes.toml.j2 | 6 +- .../relayer_osmosis/templates/hermes.toml.j2 | 6 +- roles/snapshot/tasks/main.yml | 40 ---- roles/snapshot/templates/snapshot.sh.j2 | 27 --- .../standard_node_installation/tasks/main.yml | 23 -- roles/state_sync/tasks/main.yml | 8 - roles/support_cosmos_exporter/tasks/main.yml | 21 ++ .../templates/cosmos_exporter.j2 | 30 +++ roles/support_public_endpoints/tasks/main.yml | 34 +++ .../templates/api_nginx_conf.j2 | 7 + .../templates/rpc_nginx_conf.j2 | 12 + roles/support_snapshot/tasks/main.yml | 54 +++++ .../templates/snapshot.sh.j2} | 5 +- roles/support_state_sync/tasks/main.yml | 14 ++ .../templates/state_sync.sh.j2 | 1 - roles/system_update/tasks/main.yaml | 25 ++ sifchain.yml | 15 -- sommelier.yml | 15 -- stargaze.yml | 15 -- support_cosmos_exporter.yml | 6 + support_public_endpoints.yml | 6 + snapshot.yml => support_snapshot.yml | 2 +- state_sync.yml => support_state_sync.yml | 4 +- system_update.yml | 5 + terra.yml | 14 -- umee.yml | 15 -- 199 files changed, 1019 insertions(+), 3878 deletions(-) create mode 100644 ansible.cfg delete mode 100644 asset_mantle.yml delete mode 100644 auto_compound.yml delete mode 100644 auto_compound_for_delegation.yml delete mode 100644 bitcanna.yml delete mode 100644 cerberus.yml delete mode 100644 certik.yml delete mode 100644 chihuahua.yml delete mode 100644 comdex.yml delete mode 100644 cosmos.yml delete mode 100644 cosmos_exporter.sample delete mode 100644 crescent.yml delete mode 100644 docs/agoric.md delete mode 100644 docs/akash.md delete mode 100644 docs/akash/upgrade_v0.16.0.md delete mode 100644 docs/asset_mantle.md delete mode 100644 docs/bitcanna.md delete mode 100644 docs/celestia.md delete mode 100644 docs/cerberus.md delete mode 100644 docs/certik.md delete mode 100644 docs/chihuahua.md delete mode 100644 docs/coho.md delete mode 100644 docs/comdex.md delete mode 100644 docs/cosmos.md delete mode 100644 docs/craft.md delete mode 100644 docs/crescent.md delete mode 100644 docs/defund.md delete mode 100644 docs/deweb.md delete mode 100644 docs/evmos.md delete mode 100644 docs/fetch.md delete mode 100644 docs/general.md delete mode 100644 docs/gravity.md delete mode 100644 docs/gravity/upgrade_v1.5.2.md delete mode 100644 docs/injective.md delete mode 100644 docs/injective/10005_upgrade.md delete mode 100644 docs/juno.md delete mode 100644 docs/juno/upgrade_v4.0.0.md delete mode 100644 docs/kava.md delete mode 100644 docs/kava/kava-9-migration.md delete mode 100644 docs/kava/testnet-14000.md delete mode 100644 docs/kichain.md delete mode 100644 docs/konstellation.md delete mode 100644 docs/lum.md delete mode 100644 docs/mainnet.md delete mode 100644 docs/meme.md delete mode 100644 docs/nomic.md delete mode 100644 docs/omniflix.md delete mode 100644 docs/osmosis.md delete mode 100644 docs/penumbra.md delete mode 100644 docs/sifchain.md delete mode 100644 docs/sifchain/upgrade_v0.11.0.md delete mode 100644 docs/sifchain/upgrade_v0.12.1.md delete mode 100644 docs/sifchain/upgrade_v0.13.0.md delete mode 100644 docs/sifchain/upgrade_v0.13.1.md delete mode 100644 docs/sommelier.md delete mode 100644 docs/stargaze.md delete mode 100644 docs/terra.md delete mode 100644 docs/testnets.md delete mode 100644 docs/umee.md delete mode 100644 docs/validator_server_migration_best_practice.md delete mode 100644 evmos.yml delete mode 100644 fetch.yml delete mode 100644 galaxyd.yml delete mode 100644 generic_initialize.yml delete mode 100644 gravity.yml rename group_vars/{agoric_mainnet.yml => agoric.yml} (65%) rename group_vars/{akash_mainnet.yml => akash.yml} (69%) rename group_vars/{asset_mantle_mainnet.yml => assetmantle.yml} (76%) create mode 100644 group_vars/axelar.yml rename group_vars/{bitcanna_mainnet.yml => bitcanna.yml} (82%) rename group_vars/{cerberus_mainnet.yml => cerberus.yml} (88%) rename group_vars/{certik_mainnet.yml => certik.yml} (69%) rename group_vars/{chihuahua_mainnet.yml => chihuahua.yml} (84%) delete mode 100644 group_vars/chihuahua_testnet.yml rename group_vars/{comdex_mainnet.yml => comdex.yml} (85%) rename group_vars/{cosmos_mainnet.yml => cosmos.yml} (62%) rename group_vars/{crescent_mainnet.yml => crescent.yml} (84%) rename group_vars/{evmos_mainnet.yml => evmos.yml} (69%) rename group_vars/{fetch_mainnet.yml => fetch.yml} (76%) rename group_vars/{galaxy_mainnet.yml => galaxyd.yml} (75%) rename group_vars/{gravity_mainnet.yml => gravity.yml} (71%) rename group_vars/{injective_mainnet.yml => injective.yml} (67%) rename group_vars/{juno_mainnet.yml => juno.yml} (83%) delete mode 100644 group_vars/juno_testnet.yml rename group_vars/{kava_mainnet.yml => kava.yml} (88%) rename group_vars/{kichain_mainnet.yml => kichain.yml} (81%) rename group_vars/{konstellation_mainnet.yml => konstellation.yml} (83%) delete mode 100644 group_vars/lum_mainnet.yml rename group_vars/{meme_mainnet.yml => meme.yml} (80%) delete mode 100644 group_vars/nym_mainnet.yml rename group_vars/{osmosis_mainnet.yml => osmosis.yml} (90%) delete mode 100644 group_vars/passage_mainnet.yml rename group_vars/{sifchain_betanet.yml => sifchain.yml} (78%) delete mode 100644 group_vars/sifchain_testnet.yml rename group_vars/{sommelier_mainnet.yml => sommelier.yml} (82%) rename group_vars/{stargaze_mainnet.yml => stargaze.yml} (81%) delete mode 100644 group_vars/terra_mainnet.yml delete mode 100644 group_vars/terra_testnet.yml create mode 100644 group_vars/testnet_vars/testnet_axelar.yml create mode 100644 group_vars/testnet_vars/testnet_comdex.yml create mode 100644 group_vars/testnet_vars/testnet_defund.yml create mode 100644 group_vars/testnet_vars/testnet_evmos.yml create mode 100644 group_vars/testnet_vars/testnet_gitopia.yml create mode 100644 group_vars/testnet_vars/testnet_kichain.yml create mode 100644 group_vars/testnet_vars/testnet_kyve.yml create mode 100644 group_vars/testnet_vars/testnet_umee.yml rename group_vars/{umee_mainnet.yml => umee.yml} (93%) delete mode 100644 horcrux.yml delete mode 100644 injective.yml delete mode 100644 juno.yml delete mode 100644 kava.yml delete mode 100644 kichain.yml delete mode 100644 konstellation.yml delete mode 100644 lum.yml rename akash.yml => main.yml (55%) delete mode 100644 meme.yml delete mode 100644 nym.yml delete mode 100644 osmosis.yml delete mode 100644 roles/auto_compound/tasks/main.yml delete mode 100644 roles/auto_compound/templates/auto_compound.sh.j2 delete mode 100644 roles/auto_compound_for_delegation/tasks/main.yml delete mode 100644 roles/auto_compound_for_delegation/templates/auto_compound_for_delegation.sh.j2 delete mode 100644 roles/horcrux_install/tasks/main.yml delete mode 100644 roles/horcrux_install/templates/horcrux.service.j2 delete mode 100644 roles/initialize_akash/tasks/main.yml delete mode 100644 roles/initialize_asset_mantle/tasks/main.yml delete mode 100644 roles/initialize_bitcanna/tasks/main.yml delete mode 100644 roles/initialize_cerberus/tasks/main.yml delete mode 100644 roles/initialize_certik/tasks/main.yml delete mode 100644 roles/initialize_chihuahua/tasks/main.yml delete mode 100644 roles/initialize_comdex/tasks/main.yml delete mode 100644 roles/initialize_cosmos/tasks/main.yml delete mode 100644 roles/initialize_crescent/tasks/main.yml delete mode 100644 roles/initialize_evmos/tasks/main.yml delete mode 100644 roles/initialize_fetch/tasks/main.yml delete mode 100644 roles/initialize_galaxy/tasks/main.yml delete mode 100644 roles/initialize_gravity/tasks/main.yml delete mode 100644 roles/initialize_injective/tasks/main.yml delete mode 100644 roles/initialize_juno/tasks/main.yml delete mode 100644 roles/initialize_kava/tasks/main.yml delete mode 100644 roles/initialize_kichain/tasks/main.yml delete mode 100644 roles/initialize_konstellation/tasks/main.yml delete mode 100644 roles/initialize_lum/tasks/main.yml delete mode 100644 roles/initialize_meme/tasks/main.yml delete mode 100644 roles/initialize_nym/tasks/main.yml delete mode 100644 roles/initialize_osmosis/tasks/main.yml delete mode 100644 roles/initialize_osmosis/templates/osmosis.service.j2 delete mode 100644 roles/initialize_sifchain/tasks/main.yml delete mode 100644 roles/initialize_sommelier/tasks/main.yml delete mode 100644 roles/initialize_stargaze/tasks/main.yml delete mode 100644 roles/initialize_terra/tasks/main.yml delete mode 100644 roles/initialize_terra/templates/terrad.service.j2 delete mode 100644 roles/initialize_umee/tasks/main.yml rename roles/{launch_node => node_configure}/tasks/main.yml (61%) create mode 100644 roles/node_debug/tasks/main.yaml create mode 100644 roles/node_initialize/tasks/genesis_default.yml create mode 100644 roles/node_initialize/tasks/genesis_gz.yml create mode 100644 roles/node_initialize/tasks/genesis_targz.yml create mode 100644 roles/node_initialize/tasks/genesis_zip.yml create mode 100644 roles/node_initialize/tasks/main.yml create mode 100644 roles/node_install/tasks/binary_default.yml create mode 100644 roles/node_install/tasks/binary_targz.yml create mode 100644 roles/node_install/tasks/binary_zip.yml create mode 100644 roles/node_install/tasks/main.yml create mode 100644 roles/node_launch/tasks/main.yml rename roles/{launch_node => node_launch}/templates/cosmovisor.service.j2 (100%) delete mode 100644 roles/snapshot/tasks/main.yml delete mode 100644 roles/snapshot/templates/snapshot.sh.j2 delete mode 100644 roles/standard_node_installation/tasks/main.yml delete mode 100644 roles/state_sync/tasks/main.yml create mode 100644 roles/support_cosmos_exporter/tasks/main.yml create mode 100644 roles/support_cosmos_exporter/templates/cosmos_exporter.j2 create mode 100644 roles/support_public_endpoints/tasks/main.yml create mode 100644 roles/support_public_endpoints/templates/api_nginx_conf.j2 create mode 100644 roles/support_public_endpoints/templates/rpc_nginx_conf.j2 create mode 100644 roles/support_snapshot/tasks/main.yml rename roles/{snapshot/templates/snapshot_custom.sh.j2 => support_snapshot/templates/snapshot.sh.j2} (81%) create mode 100644 roles/support_state_sync/tasks/main.yml rename roles/{state_sync => support_state_sync}/templates/state_sync.sh.j2 (97%) create mode 100644 roles/system_update/tasks/main.yaml delete mode 100644 sifchain.yml delete mode 100644 sommelier.yml delete mode 100644 stargaze.yml create mode 100644 support_cosmos_exporter.yml create mode 100644 support_public_endpoints.yml rename snapshot.yml => support_snapshot.yml (79%) rename state_sync.yml => support_state_sync.yml (60%) create mode 100644 system_update.yml delete mode 100644 terra.yml delete mode 100644 umee.yml diff --git a/.gitignore b/.gitignore index 75fe095c..0b6f00eb 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ -inventory \ No newline at end of file +inventory +inventory_testnet \ No newline at end of file diff --git a/README.md b/README.md index e706ec95..88469098 100644 --- a/README.md +++ b/README.md @@ -1,186 +1,94 @@ -# Cosmos-based Node Ansible Setup +# Cosmos-based Node Ansible Setup Plus Several Supporting Playbooks -This repo is to set up the Cosmos-based node. It currently support: - -- Akash -- BitCanna -- Chihuahua -- Comdex -- Cerberus -- Evmos -- Juno -- Kava -- KiChain -- Osmosis -- Sifchain -- Terra -- Umee - -## Summary - -You run one playbook and set up a node. For example: - -```bash -ansible-playbook -i inventory juno.yml -e "target=juno_mainnet_main" -``` - -But before you rush with this easy setup, you probably want to read on so you understand the structure of this Ansible program and all the features it offers. - -## Some Preparations - -First, make sure that you have a production inventory file with your confidential server info. You will start by copying the sample inventory file (included in the repo). The sample file gives you a good idea on how to define the inventory. - -```bash -cp inventory.sample inventory -``` - -Needless to say, you need to update the dummy values in the inventory file. For each node, you need to update the server IP, validator_name and log_name (log_name is optional if you do not install Promtail). While you are free to keep the default, you might also want to update: - -1. ansible_user: The sample file assumes `ubuntu`, but feel free to use other user name. This user need sudo privilege. -1. ansible_port: The sample file assumes `22`. But if you are like me, you will have a different ssh port other than `22` to avoid port sniffing. -1. ansible_ssh_private_key_file: The sample file assumes `~/.ssh/id_rsa`, but you might have a different key location. -1. user_dir: The user's home directory. In the sample inventory file this is a computed variable based on the ansible_user. It assumes that it is not a root user and its home directory is `/home/{{ansible_user}}` -1. path: This is to make sure that the ansible_user can access the `go` executable. If your ansible_user is not `ubuntu`, you need to update it. -1. node_exporter: Default is `true`. Change it to `false` if you do not want to install node_exporter -1. promtail: Default is `true`. Change it to `false` if you do not want to install promtail -1. log_monitor: Enter your monitor server IP. It is most likely a private IP address if you use a firewall around your private virtual cloud (VPC). You do not need this if you do not install promtail - -It is beyond the scope of this guide to help you create a sudo user, alternate ssh port, create a private key, install Ansible on your machine, etc. You can do a quick online search and find the answers. In my experience, Digital Ocean have some quality guides on these topics. Stack Overflow can help you trouble-shoot if you are stuck. - -## Basic Cluster Structure - -The basic cluster structure is: - -1. Name each juno node as `juno_mainnet_main`, `juno_mainnet_backup`, etc. Group all Juno nodes into `juno_mainnet` group. -2. Name each juno node as `comdex_mainnet_main`, `Comdex_mainnet_test`, etc. Group all comdex nodes into `comdex_mainnet` group. -3. ... - -The structure allows you to target `vars` to each node, or a group cluster, or the whole cluster. Make sure that you are familiar with the files in the `group_vars` folder. They follow this clustered structure closely. - -## Playbooks +## Design Philosophy -The key Ansible playbook is `.yml` files. It will set up a fresh node from scratch. For example: +1. Extendable to most Tendermint-based chains +1. Support both mainnet and testnet +1. Stable playbooks and roles; Customisable variables +1. Support essential functions (snapshot, state-sync, public RPC/API endpoints and Cosmos Exporter) through seperate playbooks -```bash -ansible-playbook -i inventory akash.yml -e "target=akash_mainnet_main" -ansible-playbook -i inventory bitcanna.yml -e "target=bitcanna_mainnet_main" -ansible-playbook -i inventory chihuahua.yml -e "target=chihuahua_mainnet_main" -ansible-playbook -i inventory comdex.yml -e "target=comdex_mainnet_main" -ansible-playbook -i inventory cerberus.yml -e "target=cerberus_mainnet_main" -ansible-playbook -i inventory evmos.yml -e "target=evmos_mainnet_main" -ansible-playbook -i inventory juno.yml -e "target=juno_mainnet_main" -ansible-playbook -i inventory kava.yml -e "target=kava_mainnet_main" -ansible-playbook -i inventory kichain.yml -e "target=kichain_mainnet_main" -ansible-playbook -i inventory osmosis.yml -e "target=osmosis_mainnet_main" -ansible-playbook -i inventory sifchain.yml -e "target=sifchain_betanet_main" -ansible-playbook -i inventory terra.yml -e "target=terra_mainnet_main" -ansible-playbook -i inventory umee.yml -e "target=umee_mainnet_main" -``` - -If you prefer to install the node manually, you can run a 'prepare' playbook to set up a server for a cosmos-based chain without installing the node itself. - -Playbooks are: - -| Playbook | Description | -| -------------------- | ------------------------------------------------------------------------------------------- | -| `prepare.yml ` | Prepare the server with node_exporter, promtail, go, cosmovisor, and firewall rules | -| `auto_compound.yml ` | Copy an auto-compound shell script (more details below) | -| `bitcanna.yml` | Set up Bitcanna node. It includes the general `prepare` task and `bitcanna` specific task | -| `chihuahua.yml` | Set up Chihuahua node. It includes the general `prepare` task and `chihuahua` specific task | -| `comdex.yml` | Set up Comdex node. It includes the general `prepare` task and `comdex` specific task | -| `Cerberus.yml` | Set up Cerberus node. It includes the general `prepare` task and `cerberus` specific task | -| `evmos.yml` | Set up Comdex node. It includes the general `prepare` task and `evmos` specific task | -| `juno.yml` | Set up Juno node. It includes the general `prepare` task and `juno` specific task | -| `kava.yml` | Set up Kava node. It includes the general `prepare` task and `kava` specific task | -| `kichain.yml` | Set up KiChain node. It includes the general `prepare` task and `kichain` specific task | -| `osmosis.yml` | Set up Osmosis node. It includes the general `prepare` task and `osmosis` specific task | -| `sifchain.yml` | Set up Sifchain node. It includes the general `prepare` task and `sifchain` specific task | -| `terra.yml` | Set up Terra node. It includes the general `prepare` task and `terra` specific task | -| `umee.yml` | Set up Umee node. It includes the general `prepare` task and `umee` specific task | - -## Auto Compound - -The playbook will copy an auto-compound script to the user home directory. - -| Playbook | Description | -| ----------------------------------- | ------------------------------------------------------------ | -| `auto_compound.yml` | Use this playbook when auto-compounding with own validator | -| `auto_compound_for_delegation.yml ` | Use this playbook when auto-compounding with other validator | - -```bash -ansible-playbook -i inventory auto_compound.yml -e "target=chihuahua_main" -ansible-playbook -i inventory auto_compound_for_delegation.yml -e "target=chihuahua_main" -``` +## TL/DR -You can run the script on the node with the following: +You run one playbook and set up a node. ```bash -./auto_compound.sh -./auto_compound_for_delegation.sh +ansible-playbook main.yml -e "target=juno_main" ``` -Alternatively, you can add a cronjob. For example, this following cronjob will run the auto-compound script daily at midnight. In this case, make sure that your server is super secure, as you will expose your key password in the crontab. Adopt this strategy at your own risk. +## Node deployment (Validator, Backup and Relayer) -```bash -0 0 * * * /bin/bash /home//auto_compound.sh -0 0 * * * /bin/bash /home//auto_compound_for_delegation.sh -``` +For every network where we run a validator on mainnet, we run 3 nodes (Validator, Backup and Relayer). The details of our 3-node infrastructure are documented [here](https://polkachu.com/blogs/holy-trinity-a-system-approach-to-tendermint-based-chain-validation). -## Node Snapshot +Take a look at the `inventory.sample` file. You will see an example `juno` group with 3 different hosts: `juno_main`, `juno_backup`, and `juno_relayer`. Each host will have the following variables: -We also offer node snapshot service for the validator community. We run snapshot script on any networks where we run a backup node. You need to have awscli installed and configured. +1. `ansible_host`: Required. The IP address of the server. +1. `type`: Required. It can be `main`, `backup` and `realyer` (also `test` if you are adventurous). Each is opinionated in its configuration settings. +1. `prepare`: Optional. If unset, it is default to true. If `false`, it will skip setups of firewall, go, cosmovisor, node exporter, promtail, etc. The reason for the `false` option is because we run many backup/relayer nodes on the same server with setup done already. -| Playbook | Description | -| -------------- | -------------------------------------------- | -| `snapshot.yml` | Copy the snapshot shell script to the server | +Besides the above host variables, you will also specify the following `all` variables in the inventory file: -```bash -ansible-playbook -i inventory snapshot.yml -e "target=chihuahua_main_backup" -``` +1. `ansible_user`: The sample file assumes `ubuntu`, but feel free to use other user name. This user need sudo privilege. +1. `ansible_port`: The sample file assumes `22`. But if you are like me, you will have a different ssh port other than `22` to avoid port sniffing. +1. `ansible_ssh_private_key_file`: The sample file assumes `~/.ssh/id_rsa`, but you might have a different key location. +1. `var_file`: It tells the program where to look for the variable file. This is useless for the mainnet, because the var file will automatically be inferred by the network name. However, it is essentially for testnets. +1. `user_dir`: The user's home directory. In the sample inventory file this is a computed variable based on the ansible_user. It assumes that it is not a root user and its home directory is `/home/{{ansible_user}}`. +1. `path`: This is to make sure that the ansible_user can access the `go` executable. +1. `node_exporter`: Default is `true`. Change it to `false` if you do not want to install node_exporter +1. `promtail`: Default is `true`. Change it to `false` if you do not want to install promtail +1. `log_monitor`: Enter your monitor server IP if you install promtail. +1. `node_name`: This is your node name for the config.toml file. +1. `log_name`: This is the server name for the promtail service. -You can run the script on the node with the following: +One you understand the setup, please first copy it to your own inventory file so you can customize it to suit your needs: ```bash -./snapshot.sh +cp inventory.sample inventory ``` -Alternatively, you can add a cronjob. For example, this following cronjob will run the snapshot script at the midnight +When you are ready install a node, you run: ```bash -0 0 * * * /bin/bash /home//snapshot.sh +ansible-playbook main.yml -e "target=HOST_NAME" ``` -## Relayers +## Playbooks -We offer some simple scripts to upload hermes config files to our Juno and Osmosis relayers hubs. It is designed for our internal consumptions only. We installed our relayer software (Hermes) manually. However, because we update our config files rather frequently, we have decided to automate this specific task. The Ansible script is probably not helpful to you, but you might like to adapt our Hermes config file itself. For this reason, we have decided to include the playbooks here. +Playbooks are: -```bash -ansible-playbook -i inventory relayer_juno.yml -e "target=relayer_juno" -ansible-playbook -i inventory relayer_osmosis.yml -e "target=relayer_osmosis" -``` +| Playbook | Description | +| ------------------------------- | ----------------------------------------------------------------------------------- | +| `main.yml` | The main playbook to set up a node | +| `prepare.yml ` | Prepare the server with node_exporter, promtail, go, cosmovisor, and firewall rules | +| `support_cosmos_exporter.yml ` | Set up Cosmos Exporter configuration (assuming Cosmos Exporter already installed) | +| `support_public_endpoints.yml ` | Set up Nginx reverse proxy for public PRC/ API | +| `support_snapshot.yml ` | Install snapshot script and a cron job | +| `support_state_sync.yml ` | Install state-sync script | +| `system_update.yml ` | Update a server and restart if needed | +| `relayer_juno.yml ` | Set up Polkachu's Hermes config for Juno Hub | +| `relayer_osmosis.yml ` | Set up Polkachu's Hermes config for Osmosis Hub | -## Horcrux +# Pay attention -Our friend [coffeecoaster](https://github.com/coffeeroaster) has contributed this Horcrux playbook. Horcrux is a multi-party-computation (MPC) signing service for Tendermint nodes. Its github repo is [here](https://github.com/strangelove-ventures/horcrux). It is assumed that you already have a node with all the necessary toolings (Go, Comsovisor, jq, .profile setup, etc). If you install a tendermint node with one of our Ansible playbook, you have these toolings already. +Some anomaly in the injective app file. Clean up the end in the app toml file -```bash -ansible-playbook -i inventory horcrux.yml -e "target=juno_mainnet_main" -``` +Some anomaly in the axelar config or app file. Forgot which one it is -In case you do not have all the necessary toolings, then we recommend you run `prepare` playbook first. +Some anomaly in fetch becasue statesync is not supported -```bash -ansible-playbook -i inventory prepare.yml -e "target=juno_mainnet_main" -ansible-playbook -i inventory horcrux.yml -e "target=juno_mainnet_main" -``` +Kill polkadex 4, 5 -## Additional Info +This repo is to set up the Cosmos-based node. It currently support: -1. Polkachu Operation Summary table: https://polkachu.com/summary_table -1. Snapshot service: https://polkachu.com/tendermint_snapshots -1. State-Sync service: https://polkachu.com/state_sync -1. PRC: https://polkachu.com/public_rpc -1. [General](docs/general.md) -1. [Polkachu's Mainnet Setup](docs/mainnet.md) -1. [Polkachu's Testnet Setup](docs/testnets.md) -1. [Validator Server Migration Best Practice](docs/validator_server_migration_best_practice.md) +- Akash +- BitCanna +- Chihuahua +- Comdex +- Cerberus +- Evmos +- Juno +- Kava +- KiChain +- Osmosis +- Sifchain +- Terra +- Umee diff --git a/ansible.cfg b/ansible.cfg new file mode 100644 index 00000000..a9ead992 --- /dev/null +++ b/ansible.cfg @@ -0,0 +1,2 @@ +[defaults] +inventory=inventory \ No newline at end of file diff --git a/asset_mantle.yml b/asset_mantle.yml deleted file mode 100644 index e530c67d..00000000 --- a/asset_mantle.yml +++ /dev/null @@ -1,15 +0,0 @@ ---- -- name: Prepare - hosts: '{{ target }}' - become: true - gather_facts: false - roles: - - prepare - -- name: Install node - hosts: '{{ target }}' - gather_facts: false - roles: - - standard_node_installation - - initialize_asset_mantle - - launch_node diff --git a/auto_compound.yml b/auto_compound.yml deleted file mode 100644 index 1658845b..00000000 --- a/auto_compound.yml +++ /dev/null @@ -1,6 +0,0 @@ ---- -- name: Install auto-compound script - hosts: '{{ target }}' - gather_facts: false - roles: - - auto_compound diff --git a/auto_compound_for_delegation.yml b/auto_compound_for_delegation.yml deleted file mode 100644 index c37b53aa..00000000 --- a/auto_compound_for_delegation.yml +++ /dev/null @@ -1,6 +0,0 @@ ---- -- name: Install auto-compound script - hosts: '{{ target }}' - gather_facts: false - roles: - - auto_compound_for_delegation diff --git a/bitcanna.yml b/bitcanna.yml deleted file mode 100644 index fb83d1f1..00000000 --- a/bitcanna.yml +++ /dev/null @@ -1,15 +0,0 @@ ---- -- name: Prepare - hosts: '{{ target }}' - become: true - gather_facts: false - roles: - - prepare - -- name: Install node - hosts: '{{ target }}' - gather_facts: false - roles: - - standard_node_installation - - initialize_bitcanna - - launch_node diff --git a/cerberus.yml b/cerberus.yml deleted file mode 100644 index d756624a..00000000 --- a/cerberus.yml +++ /dev/null @@ -1,15 +0,0 @@ ---- -- name: Prepare - hosts: '{{ target }}' - become: true - gather_facts: false - roles: - - prepare - -- name: Install node - hosts: '{{ target }}' - gather_facts: false - roles: - - standard_node_installation - - initialize_cerberus - - launch_node diff --git a/certik.yml b/certik.yml deleted file mode 100644 index 5747f0b8..00000000 --- a/certik.yml +++ /dev/null @@ -1,15 +0,0 @@ ---- -- name: Prepare - hosts: '{{ target }}' - become: true - gather_facts: false - roles: - - prepare - -- name: Install node - hosts: '{{ target }}' - gather_facts: false - roles: - - standard_node_installation - - initialize_certik - - launch_node diff --git a/chihuahua.yml b/chihuahua.yml deleted file mode 100644 index 0598ad48..00000000 --- a/chihuahua.yml +++ /dev/null @@ -1,15 +0,0 @@ ---- -- name: Prepare - hosts: '{{ target }}' - become: true - gather_facts: false - roles: - - prepare - -- name: Install node - hosts: '{{ target }}' - gather_facts: false - roles: - - standard_node_installation - - initialize_chihuahua - - launch_node diff --git a/comdex.yml b/comdex.yml deleted file mode 100644 index 19a1ef23..00000000 --- a/comdex.yml +++ /dev/null @@ -1,15 +0,0 @@ ---- -- name: Prepare - hosts: '{{ target }}' - become: true - gather_facts: false - roles: - - prepare - -- name: Install node - hosts: '{{ target }}' - gather_facts: false - roles: - - standard_node_installation - - initialize_comdex - - launch_node diff --git a/cosmos.yml b/cosmos.yml deleted file mode 100644 index 8078a219..00000000 --- a/cosmos.yml +++ /dev/null @@ -1,15 +0,0 @@ ---- -- name: Prepare - hosts: '{{ target }}' - become: true - gather_facts: false - roles: - - prepare - -- name: Install node - hosts: '{{ target }}' - gather_facts: false - roles: - - standard_node_installation - - initialize_cosmos - - launch_node diff --git a/cosmos_exporter.sample b/cosmos_exporter.sample deleted file mode 100644 index 629be29c..00000000 --- a/cosmos_exporter.sample +++ /dev/null @@ -1,30 +0,0 @@ -[Unit] -Description=Comdex Exporter -After=network-online.target - -[Service] -User=ubuntu -TimeoutStartSec=0 -CPUWeight=95 -IOWeight=95 -ExecStart=cosmos-exporter \ - --denom=ucmdx \ - --denom-coefficient=1000000 \ - --bech-account-prefix=comdex \ - --bech-account-pubkey-prefix=comdexpub \ - --bech-consensus-node-prefix=comdexvalcons \ - --bech-consensus-node-pubkey-prefix=comdexvalconspub \ - --bech-validator-prefix=comdexvaloper \ - --bech-validator-pubkey-prefix=comdexvaloperpub \ - --listen-address=:31300 \ - --log-level=info \ - --node=localhost:31090 \ - --tendermint-rpc=http://localhost:31657 - -Restart=always -RestartSec=2 -LimitNOFILE=800000 -KillSignal=SIGTERM - -[Install] -WantedBy=multi-user.target diff --git a/crescent.yml b/crescent.yml deleted file mode 100644 index 4b74d1ae..00000000 --- a/crescent.yml +++ /dev/null @@ -1,15 +0,0 @@ ---- -- name: Prepare - hosts: '{{ target }}' - become: true - gather_facts: false - roles: - - prepare - -- name: Install node - hosts: '{{ target }}' - gather_facts: false - roles: - - standard_node_installation - - initialize_crescent - - launch_node diff --git a/docs/agoric.md b/docs/agoric.md deleted file mode 100644 index 1e0f3c8f..00000000 --- a/docs/agoric.md +++ /dev/null @@ -1,19 +0,0 @@ -## Agoric - -create validator - -```bash -ag0 tx staking create-validator \ - --amount=980000ubld \ - --pubkey=$(ag0 tendermint show-validator) \ - --moniker=" polkachu.com" \ - --website "https://polkachu.com" \ - --identity "0A6AF02D1557E5B4" \ - --details "Polkachu is the trusted staking service provider for blockchain projects. 100% refund for downtime slash. Contact us at hello@polkachu.com" \ - --commission-rate="0.01" \ - --commission-max-rate="0.10" \ - --commission-max-change-rate="0.05" \ - --min-self-delegation="1" \ - --from=polkachu \ - --chain-id=agoric-3 -``` diff --git a/docs/akash.md b/docs/akash.md deleted file mode 100644 index 901675ee..00000000 --- a/docs/akash.md +++ /dev/null @@ -1,36 +0,0 @@ -## Akash - -create validator - -```bash -akash tx staking create-validator \ - --amount=1000000uakt \ - --website "https://polkachu.com" \ - --identity "0A6AF02D1557E5B4" \ - --details "Polkachu is the trusted staking service provider for blockchain projects. 100% refund for downtime slash. Contact us at hello@polkachu.com" \ - --pubkey="$(akash tendermint show-validator)" \ - --moniker 'polkachu.com | 0% fee' \ - --chain-id="akashnet-2" \ - --commission-rate="0" \ - --commission-max-rate="0.10" \ - --commission-max-change-rate="0.05" \ - --min-self-delegation="1" \ - --gas="auto" \ - --gas-adjustment 1.15 \ - --gas-prices="0.025uakt" \ - --from=polkachu -``` - -Edit validator - -```bash -akash tx staking edit-validator \ - --website "https://polkachu.com" \ - --moniker 'polkachu.com | 0% fee' \ - --security-contact "hello@polkachu.com" \ - --chain-id="akashnet-2" \ - --gas="auto" \ - --gas-adjustment 1.3 \ - --gas-prices="0.03uakt" \ - --from=polkachu -``` diff --git a/docs/akash/upgrade_v0.16.0.md b/docs/akash/upgrade_v0.16.0.md deleted file mode 100644 index d9ea5106..00000000 --- a/docs/akash/upgrade_v0.16.0.md +++ /dev/null @@ -1,36 +0,0 @@ -# Akash v0.16.1 Upgrade - -The Upgrade is scheduled for block `5629650`. A countdown clock is [here](https://www.mintscan.io/akash/blocks/5629650) - -This guide assumes that you use cosmovisor to manage upgrades - -```bash -# get the new version -cd akash -git fetch --all -git checkout v0.16.1 -make install -``` - -# check the version - -```bash -# should be 0.16.1 -akash version -# Should be commit 1ab8ee6ebd1321d98fb899c8661316cf182a4d4d -akash version --long -``` - -# Make new directory and copy binary - -```bash -mkdir -p $HOME/.akash/cosmovisor/upgrades/akash_v0.15.0_cosmos_v0.44.x/bin -cp $(which akash) $HOME/.akash/cosmovisor/upgrades/akash_v0.15.0_cosmos_v0.44.x/bin -``` - -# check the version again - -```bash -# should be 0.16.1 -$HOME/.akash/cosmovisor/upgrades/akash_v0.15.0_cosmos_v0.44.x/bin/akash version -``` diff --git a/docs/asset_mantle.md b/docs/asset_mantle.md deleted file mode 100644 index f7d18399..00000000 --- a/docs/asset_mantle.md +++ /dev/null @@ -1,26 +0,0 @@ -## Agoric - -Create Validator - -```bash -mantleNode tx staking create-validator \ - --amount=6000000000umntl \ - --pubkey=$(mantleNode tendermint show-validator) \ - --website "https://polkachu.com" \ - --moniker='polkachu.com' \ - --identity "0A6AF02D1557E5B4" \ - --details "Polkachu is the trusted staking service provider for blockchain projects. 100% refund for downtime slash. Contact us at hello@polkachu.com" \ - --chain-id='mantle-1' \ - --commission-max-change-rate=0.05 \ - --commission-max-rate=0.1 \ - --commission-rate=0 \ - --min-self-delegation=1 \ - --from=polkachu -``` - -Delegate - -```bash -mantleNode tx staking delegate mantlevaloper1gp957czryfgyvxwn3tfnyy2f0t9g2p4pmkjlwt 500000000umntl \ - --from polkachu -``` diff --git a/docs/bitcanna.md b/docs/bitcanna.md deleted file mode 100644 index 86b5f2b6..00000000 --- a/docs/bitcanna.md +++ /dev/null @@ -1,65 +0,0 @@ -## BitCanna - -create validator - -```bash -bcnad tx staking create-validator \ - --amount 1000000ubcna \ - --commission-max-change-rate "0.01" \ - --commission-max-rate "0.10" \ - --commission-rate "0" \ - --min-self-delegation "1" \ - --website "https://polkachu.com" \ - --identity "0A6AF02D1557E5B4" \ - --details "Polkachu is the trusted staking service provider for blockchain projects. 100% refund for downtime slash. Contact us at hello@polkachu.com" \ - --pubkey=$(bcnad tendermint show-validator) \ - --moniker '🌿 polkachu.com | 0% fee 🌿' \ - --security-contact="hello@polkachu.com" \ - --chain-id bitcanna-1 \ - --gas auto \ - --gas-adjustment 1.5 \ - --gas-prices 0.001ubcna \ - --from polkachu -``` - -Delegate - -```bash -bcnad tx staking delegate bcnavaloper1gp957czryfgyvxwn3tfnyy2f0t9g2p4pxqv0cj 41000000ubcna \ - --chain-id bitcanna-1 \ - --gas auto \ - --gas-adjustment 1.5 \ - --gas-prices 0.001ubcna \ - --from polkachu -``` - -## BitCanna Testnet - -```bash -bcnad tx staking create-validator \ - --amount 1000000ubcna \ - --commission-max-change-rate 0.10 \ - --commission-max-rate 0.2 \ - --commission-rate 0.1 \ - --from bitcanna_test \ - --min-self-delegation 1 \ - --website "https://polkachu.com" \ - --identity "0A6AF02D1557E5B4" \ - --details "Polkachu is the trusted staking service provider for blockchain projects. 100% refund for downtime slash. Contact us at hello@polkachu.com" \ - --pubkey=$(bcnad tendermint show-validator) \ - --moniker 'polkachu.com' \ - --security-contact="hello@polkachu.com" \ - --chain-id bitcanna-dev-3 \ - --gas auto \ - --gas-adjustment 1.5 \ - --gas-prices 0.001ubcna -``` - -```bash -bcnad tx staking delegate bcnavaloper1jt9w26mpxxjsk63mvd4m2ynj0af09cslqvl8mh 500000000ubcna \ - --chain-id bitcanna-dev-3 \ - --gas auto \ - --gas-adjustment 1.5 \ - --gas-prices 0.001ubcna \ - --from bitcanna_test -``` diff --git a/docs/celestia.md b/docs/celestia.md deleted file mode 100644 index 04efd436..00000000 --- a/docs/celestia.md +++ /dev/null @@ -1,50 +0,0 @@ -## Lum Network - -create validator - -```bash -celestia-appd tx staking create-validator \ - --amount=1000000000celes \ - --pubkey=$(celestia-appd tendermint show-validator) \ - --moniker="polkachu.com" \ - --chain-id=devnet-2 \ - --commission-rate=0.1 \ - --commission-max-rate=0.2 \ - --commission-max-change-rate=0.01 \ - --min-self-delegation=1000000000 \ - --website "https://polkachu.com" \ - --identity "0A6AF02D1557E5B4" \ - --details "Polkachu is the trusted staking service provider for blockchain projects. 100% refund for downtime slash. Contact us at hello@polkachu.com" \ - --from=chani \ - --keyring-backend=test -``` - -Delegate - -```bash -celestia-appd tx staking delegate celesvaloper1pcmran05kpxjw8g9fja2aqk2q8e49hgzmgznxd 800000celes \ - --chain-id=devnet-2 \ - --from=chani \ - --keyring-backend=test -``` - -Unjail - -```bash - tx slashing unjail --from celes1pcmran05kpxjw8g9fja2aqk2q8e49hgz79d339 \ - --chain-id=devnet-2 \ - --from=chani \ - --keyring-backend=test -``` - -Claim rewards - -```bash -celestia-appd tx distribution withdraw-rewards celesvaloper1pcmran05kpxjw8g9fja2aqk2q8e49hgzmgznxd --commission --yes --from celestia_test --chain-id devnet-2 -``` - -Send - -```bash -celestia-appd tx bank send celestia_test celes1wgf65895h036lzvz6a925jqgc3ay4rn9c4fs5v 10000000celes --chain-id devnet-2 -``` diff --git a/docs/cerberus.md b/docs/cerberus.md deleted file mode 100644 index e7a0c713..00000000 --- a/docs/cerberus.md +++ /dev/null @@ -1,26 +0,0 @@ -## Cerberus - -GenTx - -```bash -cerberusd gentx polkachu 4000000000000ucrbrus \ ---chain-id cerberus-chain-1 \ - --moniker 'polkachu.com' \ - --commission-max-change-rate=0.05 \ - --commission-max-rate=0.20 \ - --commission-rate=0.05 \ - --website "https://polkachu.com" \ - --identity "0A6AF02D1557E5B4" \ - --details "Polkachu is the trusted staking service provider for blockchain projects. 100% refund for downtime slash. Contact us at hello@polkachu.com" \ - --security-contact="hello@polkachu.com" -``` - -Edit validator - -```bash -cerberusd tx staking edit-validator \ - --moniker="polkachu.com | Delegate beyond top 10" \ - --details "Please delegate beyond top 10 validators for decentralization. Polkachu is the trusted staking service provider for blockchain projects. 100% refund for downtime slash. Contact us at hello@polkachu.com" \ - --chain-id cerberus-chain-1 \ - --from=polkachu -``` diff --git a/docs/certik.md b/docs/certik.md deleted file mode 100644 index e6218845..00000000 --- a/docs/certik.md +++ /dev/null @@ -1,37 +0,0 @@ -## Certik - -create validator - -```bash -certik tx staking create-validator \ - --amount 2000000uctk \ - --moniker ' polkachu.com | 0% fee' \ - --commission-max-change-rate=0.01 \ - --commission-max-rate=0.10 \ - --commission-rate=0.05 \ - --min-self-delegation 1 \ - --pubkey=$(certik tendermint show-validator) \ - --website "https://polkachu.com" \ - --identity "0A6AF02D1557E5B4" \ - --details "Polkachu is the trusted staking service provider for blockchain projects. 100% refund for downtime slash. Contact us at hello@polkachu.com" \ - --security-contact="hello@polkachu.com" \ - --chain-id shentu-2.2 \ - --from polkachu -``` - -Edit - -```bash -certik tx staking edit-validator \ - --moniker ' polkachu.com' \ - --chain-id shentu-2.2 \ - --from polkachu -``` - -Delegate - -```bash -certik tx staking delegate certikvaloper1gp957czryfgyvxwn3tfnyy2f0t9g2p4p434ez9 2000000uctk \ - --chain-id shentu-2.2 \ - --from=polkachu -``` diff --git a/docs/chihuahua.md b/docs/chihuahua.md deleted file mode 100644 index fe9402cd..00000000 --- a/docs/chihuahua.md +++ /dev/null @@ -1,30 +0,0 @@ -## Chihuahua - -create validator - -```bash -chihuahuad tx staking create-validator \ - --amount=1000000000uhuahua \ - --commission-max-change-rate=0.01 \ - --commission-max-rate=0.1 \ - --commission-rate=0.01 \ - --min-self-delegation=1 \ - --website "https://polkachu.com" \ - --identity "0A6AF02D1557E5B4" \ - --details "Polkachu is the trusted staking service provider for blockchain projects. 100% refund for downtime slash. Contact us at hello@polkachu.com" \ - --pubkey `chihuahuad tendermint show-validator` \ - --moniker="polkachu.com | 1% fee" \ - --chain-id=chihuahua-1 \ - --security-contact="hello@polkachu.com" \ - --from=polkachu -``` - -Edit validator - -```bash -chihuahuad tx staking edit-validator \ - --moniker=" polkachu.com" \ - --details "Polkachu is the trusted staking service provider for blockchain projects. 100% refund for downtime slash. Please consider delegating to Polkachu validators on Akash, Juno, SifChain, Kava, BitCanna, and KiChain. Contact: hello@polkachu.com" \ - --chain-id=chihuahua-1 \ - --from=polkachu -``` diff --git a/docs/coho.md b/docs/coho.md deleted file mode 100644 index 9b565267..00000000 --- a/docs/coho.md +++ /dev/null @@ -1,22 +0,0 @@ -## Cosmic Horizon - -create validator - -```bash -cohod tx staking create-validator \ - --amount=19000000ucoho \ - --pubkey=$(cohod tendermint show-validator) \ - --moniker="polkachu-coho-testnet" \ - --moniker=" polkachu.com" \ - --website "https://polkachu.com" \ - --identity "0A6AF02D1557E5B4" \ - --details "Polkachu is the trusted staking service provider for blockchain projects. 100% refund for downtime slash. Contact us at hello@polkachu.com" \ - --security-contact "hello@polkachu.com" \ - --chain-id=darkmatter-1 \ - --commission-rate="0.10" \ - --commission-max-rate="0.20" \ - --commission-max-change-rate="0.10" \ - --min-self-delegation="1" \ - --fees 2000ucoho \ - --from=coho_test -``` diff --git a/docs/comdex.md b/docs/comdex.md deleted file mode 100644 index 8af608a5..00000000 --- a/docs/comdex.md +++ /dev/null @@ -1,70 +0,0 @@ -## Comdex - -create validator - -```bash -comdex tx staking create-validator \ - --amount 10000000ucmdx \ - --commission-max-change-rate "0.01" \ - --commission-max-rate "0.10" \ - --commission-rate "0" \ - --min-self-delegation "1" \ - --website "https://polkachu.com" \ - --identity "0A6AF02D1557E5B4" \ - --details "Polkachu is the trusted staking service provider for blockchain projects. 100% refund for downtime slash. Contact us at hello@polkachu.com" \ - --pubkey=$(comdex tendermint show-validator) \ - --moniker 'polkachu.com | 0% fee' \ - --chain-id comdex-1 \ - --fees=5000ucmdx \ - --from polkachu -``` - -Delegate - -```bash -comdex tx staking delegate comdexvaloper1gp957czryfgyvxwn3tfnyy2f0t9g2p4p3447dz 190000000ucmdx \ - --chain-id=comdex-1 \ - --fees=5000ucmdx \ - --from=polkachu -``` - -Edit validator - -```bash -comdex tx staking edit-validator \ - --moniker 'polkachu.com | 2% fee' \ - --chain-id=comdex-1 \ - --fees=5000ucmdx \ - --from=polkachu -``` - -Redelegate - -```bash -comdex tx staking redelegate 1000000000000000ucmdx \ - --chain-id=comdex-1 \ - --fees=10000ucmdx \ - --gas=auto \ - --gas-adjustment="1.5" \ - --from=polkachu -``` - -## Testnet - -```bash -comdex tx staking create-validator \ - --amount 24000000000ucmdx \ - --commission-max-change-rate "0.1" \ - --commission-max-rate "0.20" \ - --commission-rate "0.10" \ - --min-self-delegation "1" \ - --website "https://polkachu.com" \ - --identity "0A6AF02D1557E5B4" \ - --details "Polkachu is the trusted staking service provider for blockchain projects. 100% refund for downtime slash. Contact us at hello@polkachu.com" \ - --pubkey=$(comdex tendermint show-validator) \ - --moniker 'polkachu.com' \ - --chain-id comets-test \ - --fees=40000ucmdx \ - --from comdex_test \ - --node http://localhost:39657 -``` diff --git a/docs/cosmos.md b/docs/cosmos.md deleted file mode 100644 index 879931a0..00000000 --- a/docs/cosmos.md +++ /dev/null @@ -1,34 +0,0 @@ -## Certik - -create validator - -```bash -gaiad tx staking create-validator \ - --amount=1000000uatom \ - --commission-max-change-rate=0.01 \ - --commission-max-rate=0.10 \ - --commission-rate=0.05 \ - --min-self-delegation 1 \ - --pubkey=$(gaiad tendermint show-validator) \ - --moniker 'polkachu.com' \ - --website "https://polkachu.com" \ - --identity "0A6AF02D1557E5B4" \ - --details "Polkachu is the trusted staking service provider for blockchain projects. 100% refund for downtime slash. Contact us at hello@polkachu.com" \ - --security-contact="hello@polkachu.com" \ - --chain-id=cosmoshub-4 \ - --gas="auto" \ - --gas-prices="0.0025uatom" \ - --gas-adjustment 1.5 \ - --from=polkachu -``` - -```bash -gaiad tx staking edit-validator cosmosvaloper1gp957czryfgyvxwn3tfnyy2f0t9g2p4pqeemx8 \ - --commission-rate=0.04 \ - --moniker ' polkachu.com' \ - --chain-id=cosmoshub-4 \ - --gas="auto" \ - --gas-prices="0.0025uatom" \ - --gas-adjustment 1.5 \ - --from=polkachu -``` diff --git a/docs/craft.md b/docs/craft.md deleted file mode 100644 index 9ccef411..00000000 --- a/docs/craft.md +++ /dev/null @@ -1,45 +0,0 @@ -## Lum Network - -create validator - -```bash -craftd gentx craft_test 1000000uexp \ - --home="$HOME/.craftd/" \ - --keyring-backend=os \ - --chain-id=craft-testnet-1 \ - --moniker="polkachu.com" \ - --commission-max-change-rate "0.05" \ - --commission-max-rate "0.10" \ - --commission-rate "0.05" \ - --website "https://polkachu.com" \ - --identity "0A6AF02D1557E5B4" \ - --details "Polkachu is the trusted staking service provider for blockchain projects. 100% refund for downtime slash. Contact us at hello@polkachu.com" -``` - -Create Validator - -```bash -craftd tx staking create-validator \ - --amount 1000000uexp \ - --from craft_test \ - --chain-id craft-v4 \ - --pubkey $(craftd tendermint show-validator) \ - --min-self-delegation 1 \ - --commission-max-change-rate "0.05" \ - --commission-max-rate "0.10" \ - --commission-rate "0.05" \ - --website "https://polkachu.com" \ - --moniker="polkachu.com" \ - --identity "0A6AF02D1557E5B4" \ - --details "Polkachu is the trusted staking service provider for blockchain projects. 100% refund for downtime slash. Contact us at hello@polkachu.com" -``` - -Edit Validator - -```bash -craftd tx staking edit-validator \ - --moniker "polkachu.com" \ - --identity "0A6AF02D1557E5B4" \ - --from craft_test \ - --chain-id craft-v4 -``` diff --git a/docs/crescent.md b/docs/crescent.md deleted file mode 100644 index 6ce4a053..00000000 --- a/docs/crescent.md +++ /dev/null @@ -1,47 +0,0 @@ -## Cerberus - -GenTx - -```bash -crescentd add-genesis-account $(crescentd keys show crescent_test -a) 1000000ucre -``` - -```bash -crescentd gentx crescent_test 1000000ucre --chain-id mooncat-1-1 \ - --moniker 'polkachu.com' \ - --commission-max-change-rate=0.05 \ - --commission-max-rate=0.20 \ - --commission-rate=0.05 \ - --website "https://polkachu.com" \ - --identity "0A6AF02D1557E5B4" \ - --details "Polkachu is the trusted staking service provider for blockchain projects. 100% refund for downtime slash. Contact us at hello@polkachu.com" \ - --security-contact="hello@polkachu.com" \ - --pubkey=$(crescentd tendermint show-validator) -``` - -Create validator - -```bash -crescentd tx staking create-validator \ - --amount 10000000ucre \ - --moniker 'polkachu.com' \ - --commission-max-change-rate=0.05 \ - --commission-max-rate=0.10 \ - --commission-rate=0.00 \ - --min-self-delegation "1" \ - --website "https://polkachu.com" \ - --identity "0A6AF02D1557E5B4" \ - --details "Polkachu is the trusted staking service provider for blockchain projects. 100% refund for downtime slash. Contact us at hello@polkachu.com" \ - --security-contact="hello@polkachu.com" \ - --pubkey=$(crescentd tendermint show-validator) \ - --chain-id crescent-1 \ - --from polkachu -``` - -Delegate - -```bash -crescentd tx staking delegate crevaloper1gp957czryfgyvxwn3tfnyy2f0t9g2p4pr37yjn 25000000ucre \ - --chain-id crescent-1 \ - --from polkachu -``` diff --git a/docs/defund.md b/docs/defund.md deleted file mode 100644 index 2d7368ac..00000000 --- a/docs/defund.md +++ /dev/null @@ -1,33 +0,0 @@ -# Defund - -create validator - -```bash -defundd tx staking create-validator \ - --amount=1000000ufetf \ - --pubkey=$(defundd tendermint show-validator) \ - --website "https://polkachu.com" \ - --identity "0A6AF02D1557E5B4" \ - --details "Polkachu is the trusted staking service provider for blockchain projects. 100% refund for downtime slash. Contact us at hello@polkachu.com" \ - --pubkey="$(defundd tendermint show-validator)" \ - --moniker 'polkachu.com' \ - --chain-id="akashnet-2" \ - --commission-rate="0.01" \ - --commission-max-rate="0.10" \ - --commission-max-change-rate="0.05" \ - --min-self-delegation="1" \ - --chain-id=defund-private-1 \ - --gas="auto" \ - --from=defund_test -``` - -Delegate - -```bash -defundd tx staking delegate defundvaloper1jt9w26mpxxjsk63mvd4m2ynj0af09cslzrg9vj 23000000ufetf \ - --gas="auto" \ - --gas-prices 0.025ufetf \ - --gas-adjustment 1.5 \ - --from defund_test - -``` diff --git a/docs/deweb.md b/docs/deweb.md deleted file mode 100644 index 29cae7e2..00000000 --- a/docs/deweb.md +++ /dev/null @@ -1,45 +0,0 @@ -## Deweb Testnet - -create validator - -```bash -dewebd tx staking create-validator \ - --amount 1000000udws \ - --pubkey $(dewebd tendermint show-validator) \ - --moniker="polkachu.com" \ - --commission-max-change-rate 0.10 \ - --commission-max-rate 0.2 \ - --commission-rate 0.1 \ - --min-self-delegation="1" \ - --website "https://polkachu.com" \ - --identity "0A6AF02D1557E5B4" \ - --details "Polkachu is the trusted staking service provider for blockchain projects. 100% refund for downtime slash. Contact us at hello@polkachu.com" \ - --security-contact "hello@polkachu.com" \ - --chain-id deweb-testnet-0 \ - --gas auto \ - --gas-adjustment 1.5 \ - --gas-prices 0.001udws \ - --from deweb_test -``` - -Withdraw rewards - -```bash -dewebd tx distribution withdraw-rewards dewebvaloper1jt9w26mpxxjsk63mvd4m2ynj0af09cslwkjylp --commission \ - --chain-id deweb-testnet-0 \ - --gas auto \ - --gas-adjustment 1.5 \ - --gas-prices 0.001udws \ - --from deweb_test -``` - -Delegate - -```bash -dewebd tx staking delegate dewebvaloper1jt9w26mpxxjsk63mvd4m2ynj0af09cslwkjylp 113000000udws \ - --chain-id deweb-testnet-0 \ - --gas auto \ - --gas-adjustment 1.5 \ - --gas-prices 0.001udws \ - --from deweb_test -``` diff --git a/docs/evmos.md b/docs/evmos.md deleted file mode 100644 index 00835706..00000000 --- a/docs/evmos.md +++ /dev/null @@ -1,48 +0,0 @@ -## Evmos - -Claim rewards - -```bash -evmosd tx distribution withdraw-rewards evmosvaloper125fkz3mq6qxxpkmphdl3ep92t0d3y969xmt8hz --commission --from=polkachu -``` - -Delegate - -```bash -evmosd tx staking delegate evmosvaloper125fkz3mq6qxxpkmphdl3ep92t0d3y969xmt8hz 1000000aevmos \ - --from polkachu -``` - -Testnet - -Create validator - -```bash -evmosd tx staking create-validator \ - --amount=2000000000000000000atevmos \ - --pubkey=$(evmosd tendermint show-validator) \ - --commission-max-change-rate "0.05" \ - --commission-max-rate "0.10" \ - --commission-rate "0.05" \ - --min-self-delegation "1" \ - --moniker "polkachu.com" \ - --website "https://polkachu.com" \ - --identity "0A6AF02D1557E5B4" \ - --details "Polkachu is the trusted staking service provider for blockchain projects. 100% refund for downtime slash. Contact us at hello@polkachu.com" \ - --gas="auto" \ - --gas-prices="0.025atevmos" \ - --gas-adjustment="1.5" \ - --from=evmos_test -``` - -Edit validator - -```bash -evmosd tx staking edit-validator \ - --moniker "polkachu.com" \ - --website "https://polkachu.com" \ - --gas="auto" \ - --gas-prices="0.025atevmos" \ - --gas-adjustment="1.5" \ - --from=evmos_test -``` diff --git a/docs/fetch.md b/docs/fetch.md deleted file mode 100644 index 3a404805..00000000 --- a/docs/fetch.md +++ /dev/null @@ -1,20 +0,0 @@ -## Fetch - -Create Validator - -```bash -fetchd tx staking create-validator \ - --amount=278000000000000000000afet \ - --pubkey=$(fetchd tendermint show-validator) \ - --moniker='polkachu.com' \ - --website "https://polkachu.com" \ - --moniker='polkachu.com' \ - --identity "0A6AF02D1557E5B4" \ - --security-contact "hello@polkachu.com" \ - --details "Polkachu is the trusted staking service provider for blockchain projects. 100% refund for downtime slash. Contact us at hello@polkachu.com" \ - --commission-rate="0" \ - --commission-max-rate="0.10" \ - --commission-max-change-rate="0.05" \ - --min-self-delegation=1 \ - --from=polkachu -``` diff --git a/docs/general.md b/docs/general.md deleted file mode 100644 index f4488bef..00000000 --- a/docs/general.md +++ /dev/null @@ -1,75 +0,0 @@ -## General - -block height - -```bash -watch -n 60 -d "curl -s http://localhost:26657/status | jq -r .result.sync_info.latest_block_height" -``` - -Check if the chain has synced - -```bash -curl http://localhost:26657/status | jq .result.sync_info.catching_up -``` - -List Connected Peers - -```bash -curl -s localhost:26657/net_info | jq -r '.result.peers[] | .node_info.moniker, .node_info.id, .node_info.listen_addr, .remote_ip' -``` - -Check Consensus Vote - -```bash -watch -n 0.08 "curl -s localhost:26657/status | jq -r .result.sync_info.latest_block_height; curl -s localhost:26657/consensus_state | jq -r '.result.round_state.height_vote_set[0] | (.prevotes_bit_array, .precommits_bit_array)'" -``` - -Get Peer Info - -```bash -echo "$(BINARY tendermint show-node-id)@$(curl ifconfig.me):26656" -``` - -Compile Peers from a line-breaker list to a comma-delimited list (Cerberus example) - -```bash -PEERS=$(curl https://raw.githubusercontent.com/cerberus-zone/cerberus/main/networks/mainnet/peers.txt | head -n 10 | sed 's/$/,/' | tr -d '\n' | sed '$ s/.$//'); sed "s/persistent_peers = \"\"/persistent_peers = $PEERS/" ~/.cerberusd/config/config.toml -i -``` - -Get all delegations to a validator - -```bash -BINARY q staking delegations-to VALIDATOR_ADDRESS -o json | jq '.delegation_responses[].delegation | { addr: .delegator_address, shares: (.shares | tonumber| floor / 1000000)}' | jq -c -s 'sort_by(.shares) | .[]' -``` - -Get a list of all validators sorted by their voting powers - -```bash -BINARY query staking validators --limit 1000 -o json | jq -r '.validators[] | select(.status=="BOND_STATUS_BONDED") | [ (.tokens|tonumber / pow(10; 6)), .description.moniker ] | @csv' | column -t -s"," | sort -k1 -n -r | nl -``` - -Get a list of all validators sorted by their voting powers (another way) - -```bash -BINARY --node https://rpc.sifchain.finance:443 query staking validators --limit 1000 -o json | jq -r '.validators[] | [.operator_address, .status, (.tokens|tonumber / pow(10; 6)), .description.moniker] | @csv' | column -t -s"," | sort -k3 -n -r | nl -``` - -Check logs and cosmovisor status - -```bash -journalctl -u cosmovisor.service -f -journalctl -u cosmovisor.service -f | grep "committed" -systemctl status cosmovisor -``` - -Check if the node is performing fine: - -```bash -BINARY query slashing signing-infos --output json | jq | grep -``` - -Send token through IBC - -```bash -BINARY tx ibc-transfer transfer transfer channel-x 1denom --from xxx --gas xxx -``` diff --git a/docs/gravity.md b/docs/gravity.md deleted file mode 100644 index 971aef5e..00000000 --- a/docs/gravity.md +++ /dev/null @@ -1,36 +0,0 @@ -## Umee - -Create Validator - -```bash -gravity tx staking create-validator \ - --amount=1000000ugraviton \ - --pubkey=$(gravity tendermint show-validator) \ - --website "https://polkachu.com" \ - --identity "0A6AF02D1557E5B4" \ - --details "Polkachu is the trusted staking service provider for blockchain projects. 100% refund for downtime slash. Contact us at hello@polkachu.com" \ - --moniker=" polkachu.com" \ - --security-contact="hello@polkachu.com" \ - --chain-id=gravity-bridge-3 \ - --from=polkachu \ - --commission-rate="0.05" \ - --commission-max-rate="0.10" \ - --commission-max-change-rate="0.05" \ - --gas=auto \ - --min-self-delegation="1" \ - --gas-adjustment=1.4 -``` - -Delegate gravity - -```bash -gravity tx staking delegate gravityvaloper1gp957czryfgyvxwn3tfnyy2f0t9g2p4pskxg9g 1000000ugraviton \ - --chain-id=gravity-bridge-3 \ - --from polkachu -``` - -Configure gravity - -```bash -gravity tx gravity set-orchestrator-address gravityvaloper1gp957czryfgyvxwn3tfnyy2f0t9g2p4pskxg9g gravity1y0yvuwnk7g3at6yvl6ctgsvzuxaeqjkwuakeg7 0x99E43230eCec926a7FFc2E4CD22153494D5a84a3 --from polkachu --chain-id gravity-bridge-3 -``` diff --git a/docs/gravity/upgrade_v1.5.2.md b/docs/gravity/upgrade_v1.5.2.md deleted file mode 100644 index d990be42..00000000 --- a/docs/gravity/upgrade_v1.5.2.md +++ /dev/null @@ -1,35 +0,0 @@ -# Gravity v1.5.2 - -The Upgrade is scheduled for block `1888600`. A countdown clock is [here](https://www.mintscan.io/gravity/blocks/1888600) - -This guide assumes that you use cosmovisor to manage upgrades - -```bash -# get the new version -wget https://github.com/Gravity-Bridge/Gravity-Bridge/releases/download/v1.5.2/gravity-linux-amd64 -mv gravity-linux-amd64 $HOME/go/bin/gravity -chmod +x $HOME/go/bin/gravity -``` - -# check the version - -```bash -# should be v1.5.2 -gravity version -# Should be commit e6fba8cfebfbc01659f71eaad70421203f3cfc46 -gravity version --long -``` - -# Make new directory and copy binary - -```bash -mkdir -p $HOME/.gravity/cosmovisor/upgrades/mercury2.0/bin -cp $HOME/go/bin/gravity $HOME/.gravity/cosmovisor/upgrades/mercury2.0/bin -``` - -# check the version again - -```bash -# should be v1.5.2 -$HOME/.gravity/cosmovisor/upgrades/mercury2.0/bin/gravity version -``` diff --git a/docs/injective.md b/docs/injective.md deleted file mode 100644 index 73c983e8..00000000 --- a/docs/injective.md +++ /dev/null @@ -1,52 +0,0 @@ -## Injective - -create validator - -```bash -injectived tx staking create-validator \ - --moniker='polkachu-injective-mainnet' \ - --amount=1000000000000000000inj \ - --gas-prices=500000000inj \ - --pubkey=$(injectived tendermint show-validator) \ - --website "https://polkachu.com" \ - --moniker='polkachu.com' - --identity "0A6AF02D1557E5B4" \ - --details "Polkachu is the trusted staking service provider for blockchain projects. 100% refund for downtime slash. Contact us at hello@polkachu.com" \ - --chain-id='injective-1' \ - --keyring-backend=file \ - --yes \ - --node=tcp://localhost:26657 \ - --commission-max-change-rate=0.01 \ - --commission-max-rate=0.1 \ - --commission-rate=0 \ - --min-self-delegation=1 \ - --from=polkachu -``` - -Edit Validator - -```bash -injectived tx staking edit-validator \ - --moniker="polkachu.com" \ - --gas-prices=500000000inj \ - --chain-id='injective-1' \ - --from=polkachu -``` - -Register Orchestrator and Ethereum Address - -```bash -injectived tx peggy set-orchestrator-address inj125fkz3mq6qxxpkmphdl3ep92t0d3y969raza70 inj125fkz3mq6qxxpkmphdl3ep92t0d3y969raza70 0xB497abA1E4Ce24B4ADc2E16Ded30387042B881B7 \ - --chain-id=injective-1 \ - --keyring-backend=file \ - --yes \ - --node=tcp://localhost:26657 \ - --gas-prices=500000000inj \ - --from polkachu -``` - -Send Injective - -```bash -injectived tx bank send polkachu inj1cef7jxy9xg3c5dka9spdv0hpjv0nu3hsy5238p 1000000000000000000inj --chain-id=injective-1 --keyring-backend=file --yes --node=tcp://localhost:26657 --gas-prices=500000000inj -``` diff --git a/docs/injective/10005_upgrade.md b/docs/injective/10005_upgrade.md deleted file mode 100644 index 83245474..00000000 --- a/docs/injective/10005_upgrade.md +++ /dev/null @@ -1,40 +0,0 @@ -# Injective 10005 Upgrade using Cosmovisor - -The Upgrade is scheduled for block `9614200`. A countdown clock is [here](https://www.mintscan.io/injective/blocks/9614200). - -Get the new version - -```bash -wget https://github.com/InjectiveLabs/injective-chain-releases/releases/download/v1.5.0-1649280277/linux-amd64.zip -unzip linux-amd64.zip -mv injectived $HOME/go/bin -``` - -Remove unused files - -```bash -rm injective-exchange -rm peggo -rm linux-amd64.zip -``` - -Check the version - should be 568ce23 - -```bash -injectived version -Version dev (568ce23) -Compiled at 20220406-2125 using Go go1.18 (amd64) -``` - -If you are using cosmovisor, you then need to create folder and copy this new binary - -```bash -mkdir -p $DAEMON_HOME/cosmovisor/upgrades/v1.5/bin -cp /home//go/bin/injectived $DAEMON_HOME/cosmovisor/upgrades/v1.5/bin -``` - -Find out what version you are about to run - should be 568ce23 - -```bash -$DAEMON_HOME/cosmovisor/upgrades/v1.5/bin/injectived version -``` diff --git a/docs/juno.md b/docs/juno.md deleted file mode 100644 index 89d6be13..00000000 --- a/docs/juno.md +++ /dev/null @@ -1,89 +0,0 @@ -## Juno - -### Mainnet - -create validator - -```bash -junod tx staking create-validator \ - --amount 9000000ujuno \ - --commission-max-change-rate "0.01" \ - --commission-max-rate "0.10" \ - --commission-rate "0" \ - --min-self-delegation "1" \ - --website "https://polkachu.com" \ - --identity "0A6AF02D1557E5B4" \ - --details "Polkachu is the trusted staking service provider for blockchain projects. 100% refund for downtime slash. Contact us at hello@polkachu.com" \ - --pubkey=$(junod tendermint show-validator) \ - --moniker 'polkachu.com' \ - --chain-id juno-1 \ - --gas-prices 0.025ujuno \ - --from polkachu -``` - -Delegate - -```bash -junod tx staking delegate junovaloper1gp957czryfgyvxwn3tfnyy2f0t9g2p4pvzc6k3 33000000ujuno \ - --chain-id juno-1 \ - --from=polkachu \ - --gas-prices 0.025ujuno -``` - -Edit validator - -```bash -junod tx staking edit-validator \ - --moniker "polkachu.com" \ - --chain-id juno-1 \ - --from polkachu \ - --gas-prices 0.025ujuno -``` - -Get Rewards - -```bash -junod tx distribution withdraw-rewards junovaloper1gp957czryfgyvxwn3tfnyy2f0t9g2p4pvzc6k3 \ - --commission \ - --from polkachu \ - --gas-prices 0.025ujuno -``` - -Delegate - -```bash -junod tx staking delegate junovaloper1gp957czryfgyvxwn3tfnyy2f0t9g2p4pvzc6k3 6000000ujuno \ - --from polkachu \ - --gas-prices 0.025ujuno -``` - -### Testnet - -create validator - -```bash -junod tx staking create-validator \ - --amount 2000000ujunox \ - --commission-max-change-rate "0.01" \ - --commission-max-rate "0.10" \ - --commission-rate "0.05" \ - --min-self-delegation "1" \ - --website "https://polkachu.com" \ - --identity "0A6AF02D1557E5B4" \ - --details "Polkachu is the trusted staking service provider for blockchain projects. 100% refund for downtime slash. Contact us at hello@polkachu.com" \ - --pubkey=$(junod tendermint show-validator) \ - --moniker 'Polkachu' \ - --chain-id uni \ - --gas-prices 0.025ujunox \ - --from polkachu_test -``` - -Edit validator - -```bash -junod tx staking edit-validator \ - --moniker "polkachu.com | test" \ - --chain-id uni \ - --from juno_test \ - --gas-prices 0.025ujunox -``` diff --git a/docs/juno/upgrade_v4.0.0.md b/docs/juno/upgrade_v4.0.0.md deleted file mode 100644 index 65b6de5b..00000000 --- a/docs/juno/upgrade_v4.0.0.md +++ /dev/null @@ -1,36 +0,0 @@ -# Juno v4.0.0 Upgrade - -The Upgrade is scheduled for block `2951100`. A countdown clock is [here](https://www.mintscan.io/juno/blocks/2951100) - -This guide assumes that you use cosmovisor to manage upgrades - -```bash -# get the new version -cd juno -git pull -git checkout v4.0.0 -make install -``` - -# check the version - -```bash -# should be make install -junod version -# Should be commit 299fe4bdee7a7a8b45cd2776359243fdf3630e5a -junod version --long -``` - -# Make new directory and copy binary - -```bash -mkdir -p $HOME/.juno/cosmovisor/upgrades/unity/bin -cp $HOME/go/bin/junod $HOME/.juno/cosmovisor/upgrades/unity/bin -``` - -# check the version again - -```bash -# should be v4.0.0 -$HOME/.juno/cosmovisor/upgrades/unity/bin/junod version -``` diff --git a/docs/kava.md b/docs/kava.md deleted file mode 100644 index 2cf82a3c..00000000 --- a/docs/kava.md +++ /dev/null @@ -1,34 +0,0 @@ -## Kava - -create validator - -```bash -kava tx staking create-validator \ - --amount=2000000ukava \ - --min-self-delegation "1" \ - --moniker 'polkachu.com | 0% fee' \ - --website "https://polkachu.com" \ - --identity "0A6AF02D1557E5B4" \ - --details "Polkachu is the trusted staking service provider for blockchain projects. 100% refund for downtime slash. Contact us at hello@polkachu.com" \ - --pubkey=$(kvd tendermint show-validator) \ - --commission-max-change-rate "0.01" \ - --commission-max-rate "0.10" \ - --commission-rate "0" \ - --min-self-delegation="1" \ - --from=polkachu \ - --chain-id=kava-9 \ - --fees=2000ukava \ - --gas=auto \ - --gas-adjustment=1.4 -``` - -Delegate - -```bash -kava tx staking delegate kavavaloper125s8t5c6ypwee7ytun90lnhgpls2zl3vta43aj 483000000ukava \ - --from=polkachu \ - --chain-id=kava-9 \ - --fees=2000ukava \ - --gas=auto \ - --gas-adjustment=1.4 -``` diff --git a/docs/kava/kava-9-migration.md b/docs/kava/kava-9-migration.md deleted file mode 100644 index 6de0bb6a..00000000 --- a/docs/kava/kava-9-migration.md +++ /dev/null @@ -1,14 +0,0 @@ -# Kava-9 Migration - -[Official Migration Guide](https://github.com/Kava-Labs/kava/blob/master/migrate/v0_16/migrate.md) - -[Peers and Seed](https://docs.google.com/spreadsheets/d/1j-e1HTkskNRS6mlhxLLQa0loB-ShcVUjz8WVVZxvPaY/edit#gid=0) - -[Todd's Genesis File](https://share.blockpane.com/kava-9-genesis.json.gz) - -Always verify the genesis file has the right hash if you download genesis file from others - -``` -jq -S -c -M '' genesis.json | shasum -a 256 -5c688df5ae6cba9c9e5a9bab045eb367dd54ce9b7f5fab78cf3e636cf2e2b793 - -``` diff --git a/docs/kava/testnet-14000.md b/docs/kava/testnet-14000.md deleted file mode 100644 index a80d00d3..00000000 --- a/docs/kava/testnet-14000.md +++ /dev/null @@ -1,102 +0,0 @@ -# Kava Testnet-14000 - -**Prerequisites:** Make sure to have [Golang >=1.17](https://golang.org/). - -## Build from source - -You need to ensure your gopath configuration is correct. If the following **'make'** step does not work then you might have to add these lines to your .profile or .zshrc in the users home folder: - -```sh -nano ~/.profile -``` - -``` -export GOROOT=/usr/local/go -export GOPATH=$HOME/go -export GO111MODULE=on -export PATH=$PATH:/usr/local/go/bin:$HOME/go/bin -``` - -Source update .profile - -```sh -source .profile -``` - -## Submit gentx - -First, install Kava v0.16.0-alpha.0 binary - -```sh -git clone https://github.com/Kava-Labs/kava.git -cd kava -git tag -git checkout v0.16.0-alpha.0 -make install -``` - -This will build and install `kava` binary into `$GOBIN`. - -Note: When building from source, it is important to have your `$GOPATH` set correctly. When in doubt, the following should do: - -```sh -mkdir ~/go -export GOPATH=~/go -``` - -Check that you have the right Kava version installed: - -```bash - kava version - 0.16.0-alpha.0 -``` - -## Setup validator node - -Below are the instructions to generate & submit your genesis transaction - -### Generate genesis transaction (gentx) - -1. Initialize the Kava directories and create the local genesis file with the correct chain-id: - - ```bash - kava init --chain-id kava-testnet-14000 - ``` - -2. Create a local key pair: - - ```bash - kava keys add - ``` - -3. Add `1000000000000ukava` to the account - - ```bash - kava add-genesis-account $(kava keys show -a) 1000000000000ukava - ``` - -4. Create the gentx, use only `900000000000ukava`: - - ```bash - kava gentx 900000000000ukava --chain-id=kava-testnet-14000 - ``` - -5. If all goes well, you will see a message similar to the following: - - ```bash - Genesis transaction written to "/home/ubuntu/.kava/config/gentx/gentx-******.json" - ``` - -### Submit genesis transaction - -- Fork [the testnets repo](https://github.com/Kava-Labs/kava-testnets) into your Github account - -- Clone your repo using - - ```bash - git clone https://github.com//kava-testnets - ``` - -- Copy the generated gentx json file to `/14000/gentxs/` -- Commit and push to your repo -- Create a PR onto https://github.com/Kava-Labs/kava-testnets diff --git a/docs/kichain.md b/docs/kichain.md deleted file mode 100644 index 5e16d967..00000000 --- a/docs/kichain.md +++ /dev/null @@ -1,47 +0,0 @@ -## Kichain - -create validator - -```bash -kid tx staking create-validator \ - --amount=5000000uxki \ - --commission-max-change-rate=0.01 \ - --commission-max-rate=0.1 \ - --commission-rate=0 \ - --min-self-delegation=1 \ - --website "https://polkachu.com" \ - --identity "0A6AF02D1557E5B4" \ - --details "Polkachu is the trusted staking service provider for blockchain projects. 100% refund for downtime slash. Contact us at hello@polkachu.com" \ - --pubkey `kid tendermint show-validator` \ - --moniker="polkachu.com | 0% fee" \ - --chain-id=kichain-2 \ - --gas-prices=0.025uxki \ - --from=polkachu -``` - -Delegate - -```bash -kid tx staking delegate kivaloper1gp957czryfgyvxwn3tfnyy2f0t9g2p4pq8jud7 70000000uxki \ - --chain-id=kichain-2 \ - --gas-prices=0.025uxki \ - --from=polkachu -``` - -```bash -kid tx staking edit-validator \ - --commission-rate="0.05" \ - --moniker="polkachu.com | 5% fee" \ - --chain-id=kichain-2 \ - --gas-prices=0.025uxki \ - --from=polkachu -``` - -Claim rewards - -```bash -kid tx distribution withdraw-all-rewards \ - --chain-id=kichain-2 \ - --gas-prices=0.025uxki \ - --from=polkachu -``` diff --git a/docs/konstellation.md b/docs/konstellation.md deleted file mode 100644 index 733fd4d8..00000000 --- a/docs/konstellation.md +++ /dev/null @@ -1,32 +0,0 @@ -## Konstellation BetaNet - -create validator - -```bash -knstld tx staking create-validator \ - --amount 1000000udarc \ - --pubkey $(knstld tendermint show-validator) \ - --moniker="polkachu.com" \ - --commission-max-change-rate 0.10 \ - --commission-max-rate 0.2 \ - --commission-rate 0.1 \ - --min-self-delegation="1" \ - --website "https://polkachu.com" \ - --identity "0A6AF02D1557E5B4" \ - --details "Polkachu is the trusted staking service provider for blockchain projects. 100% refund for downtime slash. Contact us at hello@polkachu.com" \ - --security-contact "hello@polkachu.com" \ - --chain-id darchub \ - --from=konstellation_test \ - --fees=2udarc -``` - -Edit validator - -```bash -knstld tx staking edit-validator \ - --moniker=" polkachu.com" \ - --commission-rate 0.01 \ - --chain-id darchub \ - --fees=20udarc \ - --from=polkachu_test -``` diff --git a/docs/lum.md b/docs/lum.md deleted file mode 100644 index c0fc1f41..00000000 --- a/docs/lum.md +++ /dev/null @@ -1,28 +0,0 @@ -## Lum Network - -create validator - -```bash -lumd tx staking create-validator \ - --amount=1000000ulum \ - --pubkey=$(lumd tendermint show-validator) \ - --moniker="polkachu.com" \ - --commission-max-change-rate "0.01" \ - --commission-max-rate "0.10" \ - --commission-rate "0" \ - --min-self-delegation="1" \ - --website "https://polkachu.com" \ - --identity "0A6AF02D1557E5B4" \ - --details "Polkachu is the trusted staking service provider for blockchain projects. 100% refund for downtime slash. Contact us at hello@polkachu.com" \ - --chain-id=lum-network-1 - --from polkachu -``` - -Delegate - -```bash -lumd tx staking edit-validator \ - --details="Something something" \ - --chain-id=lum-network-1 - --from polkachu -``` diff --git a/docs/mainnet.md b/docs/mainnet.md deleted file mode 100644 index 16996e93..00000000 --- a/docs/mainnet.md +++ /dev/null @@ -1,64 +0,0 @@ -# Polkachu Mainnet Setup Notes - -## Eth bridging - -| Network | Validator key | Cosmos Orchestrator Key | Ethereum Orchestrator Key | -| --------- | ------------- | ----------------------- | ------------------------------------------ | -| Gravity | Default | Default Orchestrator | 0x99E43230eCec926a7FFc2E4CD22153494D5a84a3 | -| Sommelier | Default | Default Orchestrator | 0x99E43230eCec926a7FFc2E4CD22153494D5a84a3 | -| Umee | Default | Umee Orchestrator / Bot | 0x99E43230eCec926a7FFc2E4CD22153494D5a84a3 | -| Injective | Default | Injective Orchestrator | 0xB497abA1E4Ce24B4ADc2E16Ded30387042B881B7 | - -## Other exception - -| Network | Validator key | Reason | -| ------------- | ------------- | --------------------------------- | -| Konstellation | Test key | Mistake when setting up validator | - -## Polkachu's Relayer Setup - -We run all relayers on one machine with high CPU, memory and storage. The default ports for each testnet node will conflict. Change the following: - -`config.toml` - -- P2P: 26656 (default) -- RPC: 26657 (default) -- ABCI: 26658 (default) -- Pprof: 6060 (default) -- Prometheus: 26660 (default) - -`app.toml` - -- API server: 1317 (default) -- Rosetta API server: 8080 (default) -- gRPC server: 9090 (default) -- gRPC-web server: 9091 (default) - -Make sure the firewalls are open for prometheus port and p2p port. Make sure prometheus is set to true. - -Tips for setting up a new chain on relayers: - -1. Make sure that ports from different relayer hubs are open to each other. -1. When manually installing binary, make sure to refer to some group_vars doc for github repo, genesis file, seeds, peers and minimum-gas-price -1. For relayers, make sure that pruning is 40000/0/prime number, and the indexer is kv. -1. Make sure that RPC port (657 port) is open to the other relayers. We manage it by opening to all (0.0.0.0) in the config file and let firewall to manage the whitelist IPs (e.g., other relayers) -1. Make sure to open P2P port and Prometheus port to all -1. Add the new service as dependency for hermes service -1. Make sure to set up cosmos exporter for the new service and open the cosmos exporter port -1. Sometimes the relayer node also serves as state_sync node, PRC and API. This is not the best practice. However, this allows us to utilize underused server resources and make us manage fewer servers - -Our app.toml settings related to state-sync is as follows: - -```bash -pruning-keep-every = 2000 -snapshot-interval = 2000 -snapshot-keep-recent = 5 -``` - -Our app.toml settings related to api server is as follows (does not work on Kava): - -```bash -[api] -enabled = true -swagger = true -``` diff --git a/docs/meme.md b/docs/meme.md deleted file mode 100644 index 4a96be70..00000000 --- a/docs/meme.md +++ /dev/null @@ -1,22 +0,0 @@ -## Certik - -create validator - -```bash -memed tx staking create-validator \ ---pubkey=$(memed tendermint show-validator) \ - --chain-id meme-1 \ ---amount=1000000umeme \ - --commission-max-change-rate=0.01 \ - --commission-max-rate=0.10 \ - --commission-rate=0.05 \ - --min-self-delegation 1 \ - --moniker 'polkachu.com' \ - --pubkey=$(memed tendermint show-validator) \ - --website "https://polkachu.com" \ - --identity "0A6AF02D1557E5B4" \ - --details "Polkachu is the trusted staking service provider for blockchain projects. 100% refund for downtime slash. Contact us at hello@polkachu.com" \ - --security-contact="hello@polkachu.com" \ ---gas-prices=0.025umeme \ ---from=polkachu -``` diff --git a/docs/nomic.md b/docs/nomic.md deleted file mode 100644 index 2791966e..00000000 --- a/docs/nomic.md +++ /dev/null @@ -1,14 +0,0 @@ -## Nomic - -create validator - -```bash -nomic declare \ - CmsimrziCCtAC9B32HSry9TO+2cpESZvOa5Iu1lG+TY= \ - 150000 \ - 0.05 \ - "polkachu.com" \ - "https://polkachu.com" \ - 0A6AF02D1557E5B4 \ - "Polkachu is the trusted staking service provider for blockchain projects. 100% refund for downtime slash. Contact us at hello@polkachu.com" -``` diff --git a/docs/omniflix.md b/docs/omniflix.md deleted file mode 100644 index c424e6c1..00000000 --- a/docs/omniflix.md +++ /dev/null @@ -1,34 +0,0 @@ -## Omniflix - -create validator - -```bash -omniflixhubd tx staking create-validator \ - --amount=199000000uflix \ - --pubkey=$(omniflixhubd tendermint show-validator) \ - --moniker=" polkachu.com" \ - --website "https://polkachu.com" \ - --identity "0A6AF02D1557E5B4" \ - --details "Polkachu is the trusted staking service provider for blockchain projects. 100% refund for downtime slash. Contact us at hello@polkachu.com" \ - --security-contact="hello@polkachu.com" \ - --chain-id="flixnet-3" \ - --commission-rate="0.10" \ - --commission-max-rate="0.20" \ - --commission-max-change-rate="0.10" \ - --min-self-delegation="1" \ - --gas="auto" \ - --gas-adjustment="1.2" \ - --gas-prices="0.001uflix" \ - --from=omniflix_test -``` - -create validator - -```bash -omniflixhubd tx staking delegate omniflixvaloper1jt9w26mpxxjsk63mvd4m2ynj0af09cslnda7l8 180000000uflix \ - --chain-id="flixnet-3" \ - --gas="auto" \ - --gas-adjustment="1.2" \ - --gas-prices="0.001uflix" \ - --from=polkachu -``` diff --git a/docs/osmosis.md b/docs/osmosis.md deleted file mode 100644 index ca76bda8..00000000 --- a/docs/osmosis.md +++ /dev/null @@ -1,46 +0,0 @@ -## Osmosis - -create validator - -```bash -osmosisd tx staking create-validator \ - --amount=1000000uosmo \ - --commission-rate="0.05" \ - --commission-max-rate="0.1" \ - --commission-max-change-rate="0.01" \ - --min-self-delegation="1" \ - --pubkey=$(osmosisd tendermint show-validator) \ - --moniker="Polkachu" \ - --website "https://polkachu.com" \ - --identity "0A6AF02D1557E5B4" \ - --details "Polkachu is the trusted staking service provider for blockchain projects. 100% refund for downtime slash. Contact us at hello@polkachu.com" \ - --chain-id=osmosis-1 \ - --gas="auto" \ - --gas-adjustment="1.2" \ - --gas-prices="0.025uosmo" \ - --from=polkachu -``` - -Edit validator - -```bash -osmosisd tx staking edit-validator \ - --moniker "polkachu.com" \ - --website "https://polkachu.com" \ - --chain-id=osmosis-1 \ - --gas="auto" \ - --gas-adjustment="1.2" \ - --gas-prices="0.025uosmo" \ - --from=polkachu -``` - -Redelegate - -```bash -osmosisd tx staking redelegate osmovaloper1gp957czryfgyvxwn3tfnyy2f0t9g2p4phpkatp osmovaloper1z0sh4s80u99l6y9d3vfy582p8jejeeu6tcucs2 3939000000uosmo \ - --chain-id=osmosis-1 \ - --from=polkachu \ - --gas="auto" \ - --gas-adjustment="1.2" \ - --gas-prices="0.025uosmo" -``` diff --git a/docs/penumbra.md b/docs/penumbra.md deleted file mode 100644 index 0bcef7cc..00000000 --- a/docs/penumbra.md +++ /dev/null @@ -1,29 +0,0 @@ -## Penumbra - -Various commands - -```bash -cargo run --quiet --release --bin pcli wallet generate -``` - -```bash -cargo run --release --bin pcli wallet reset -``` - -```bash -cargo run --quiet --release --bin pcli wallet export -``` - -```bash -cargo run --quiet --release --bin pcli addr list -cargo run --quiet --release --bin pcli stake list-validators -cargo run --quiet --release --bin pcli sync -cargo run --quiet --release --bin pcli balance -cargo run --quiet --release --bin pcli tx send 1pizza --to penumbrav0t12juxkch4vfs4rjpqgpgge8jxz65gd2hjuu3kl5vgmmk8r2a5u40adkyexv0xj495wfvqq9h2wme4dqkz2s2uvq9dx76xt4zuype4vge80v0rt6jdgehys7qqlcsark -``` - -```bash -cargo run --quiet --release --bin pcli stake list-validators -cargo run --quiet --release --bin pcli stake delegate 999penumbra --to penumbravalid16c984tygaz2lur3lrxshrypj8yt68a0mqrfz076wzrc4jweqwyxsz2vp0s -cargo run --quiet --release --bin pcli stake undelegate 10delegation_penumbravalid16c984tygaz2lur3lrxshrypj8yt68a0mqrfz076wzrc4jweqwyxsz2vp0s -``` diff --git a/docs/sifchain.md b/docs/sifchain.md deleted file mode 100644 index de09f491..00000000 --- a/docs/sifchain.md +++ /dev/null @@ -1,33 +0,0 @@ -## Sifchain - -Create validator - -```bash -sifnoded tx staking create-validator \ - --amount 1000000000000000000000rowan \ - --commission-max-change-rate "0.01" \ - --commission-rate "0.02" \ - --commission-max-rate "0.1" \ - --min-self-delegation "1" \ - --website "https://polkachu.com" \ - --identity "0A6AF02D1557E5B4" \ - --details "Polkachu is the trusted staking service provider for blockchain projects. 100% refund for downtime slash. Contact us at hello@polkachu.com" \ - --pubkey=$(sifnoded tendermint show-validator) \ - --moniker 'Polkachu' \ - --chain-id sifchain-1 \ - --gas-adjustment="1.5" \ - --gas="200000" \ - --fees 100000000000000000rowan \ - --from polkachu -``` - -Delegate - -```bash -sifnoded tx staking delegate sifvaloper1gp957czryfgyvxwn3tfnyy2f0t9g2p4pfj2j90 420000000000000000000rowan \ - --chain-id sifchain-1 \ - --from=polkachu \ - --gas-adjustment="1.5" \ - --gas="200000" \ - --fees 100000000000000000rowan -``` diff --git a/docs/sifchain/upgrade_v0.11.0.md b/docs/sifchain/upgrade_v0.11.0.md deleted file mode 100644 index caefcb1d..00000000 --- a/docs/sifchain/upgrade_v0.11.0.md +++ /dev/null @@ -1,22 +0,0 @@ -# Sifchain v0.11.0 Upgrade - -The Upgrade is scheduled for block `5870400`. This guide assumes that you use cosmovisor to manage upgrades - -```bash -# get the new version -cd sifnoded -git pull -git checkout v0.11.0 -make install - -# check the version - should be 0.11.0 -# sifnoded version --long will be commit dfdb014de4fff090c559b628d903555d8ccdc957 -sifnoded version - -# if you are using cosmovisor, you then need to create folder and copy this new binary -mkdir -p $DAEMON_HOME/cosmovisor/upgrades/0.11.0/bin -cp /home//go/bin/sifnoded $DAEMON_HOME/cosmovisor/upgrades/0.11.0/bin - -# find out what version you are about to run - should be 0.11.0 -$DAEMON_HOME/cosmovisor/upgrades/0.11.0/bin/sifnoded version -``` diff --git a/docs/sifchain/upgrade_v0.12.1.md b/docs/sifchain/upgrade_v0.12.1.md deleted file mode 100644 index 633cded4..00000000 --- a/docs/sifchain/upgrade_v0.12.1.md +++ /dev/null @@ -1,38 +0,0 @@ -# Sifchain v0.12.1 Upgrade - -The Upgrade is scheduled for block `6270250`. A countdown clock is [here](https://www.mintscan.io/sifchain/blocks/6270250) - -This guide assumes that you use cosmovisor to manage upgrades - -```bash -# get the new version -cd sifnoded -git pull -git checkout v0.12.1 -make install -``` - -# check the version and checksum - -```bash -# should be 0.12.1 -sifnoded version -# Should be commit 269cfadf6a4c08879247c2b8373323ae7239a425 -sifnoded version --long -# Should be e8a98733a69c62b6782c3b87ddaaf0be215666e520d3143c7e69347456d04c8b -sha256sum sifnoded -``` - -# Make new directory and copy binary - -```bash -mkdir -p $DAEMON_HOME/cosmovisor/upgrades/0.12.1/bin -cp $HOME/go/bin/sifnoded $DAEMON_HOME/cosmovisor/upgrades/0.12.1/bin -``` - -# check the version again - -```bash -# should be 0.12.1 -$DAEMON_HOME/cosmovisor/upgrades/0.12.1/bin/sifnoded version -``` diff --git a/docs/sifchain/upgrade_v0.13.0.md b/docs/sifchain/upgrade_v0.13.0.md deleted file mode 100644 index f7e911af..00000000 --- a/docs/sifchain/upgrade_v0.13.0.md +++ /dev/null @@ -1,36 +0,0 @@ -# Sifchain v0.13.0 Upgrade - -The Upgrade is scheduled for block `6485500`. A countdown clock is [here](https://www.mintscan.io/sifchain/blocks/6485500) - -This guide assumes that you use cosmovisor to manage upgrades - -```bash -# get the new version -cd sifnoded -git pull -git checkout v0.13.0 -make install -``` - -# check the version - -```bash -# should be 0.13.0 -sifnoded version -# Should be commit cff2ed4cfdd55f84d296b5e46d7b63dfa55768e3 -sifnoded version --long -``` - -# Make new directory and copy binary - -```bash -mkdir -p $DAEMON_HOME/cosmovisor/upgrades/0.13.0/bin -cp $HOME/go/bin/sifnoded $DAEMON_HOME/cosmovisor/upgrades/0.13.0/bin -``` - -# check the version again - -```bash -# should be 0.13.0 -$DAEMON_HOME/cosmovisor/upgrades/0.13.0/bin/sifnoded version -``` diff --git a/docs/sifchain/upgrade_v0.13.1.md b/docs/sifchain/upgrade_v0.13.1.md deleted file mode 100644 index 16229206..00000000 --- a/docs/sifchain/upgrade_v0.13.1.md +++ /dev/null @@ -1,36 +0,0 @@ -# Sifchain v0.13.1 Upgrade - -The Upgrade is scheduled for block `6678500`. A countdown clock is [here](https://www.mintscan.io/sifchain/blocks/6678500) - -This guide assumes that you use cosmovisor to manage upgrades - -```bash -# get the new version -cd sifnoded -git pull -git checkout v0.13.1 -make install -``` - -# check the version - -```bash -# should be 0.13.1 -sifnoded version -# Should be commit 70cc6d46e6458a1d681b858470a65c50ba351bac -sifnoded version --long -``` - -# Make new directory and copy binary - -```bash -mkdir -p $HOME/.sifnoded/cosmovisor/upgrades/0.13.1/bin -cp $HOME/go/bin/sifnoded $HOME/.sifnoded/cosmovisor/upgrades/0.13.1/bin -``` - -# check the version again - -```bash -# should be 0.13.1 -$HOME/.sifnoded/cosmovisor/upgrades/0.13.1/bin/sifnoded version -``` diff --git a/docs/sommelier.md b/docs/sommelier.md deleted file mode 100644 index 78b459c2..00000000 --- a/docs/sommelier.md +++ /dev/null @@ -1,33 +0,0 @@ -## Sommelier - -create validator - -```bash -sommelier tx staking create-validator \ - --amount=1000000usomm \ - --pubkey=$(sommelier tendermint show-validator) \ - --moniker="polkachu.com" \ - --website "https://polkachu.com" \ - --identity "0A6AF02D1557E5B4" \ - --details "Polkachu is the trusted staking service provider for blockchain projects. 100% refund for downtime slash. Contact us at hello@polkachu.com" \ - --chain-id="sommelier-3" \ - --commission-rate="0.10" \ - --commission-max-rate="0.20" \ - --commission-max-change-rate="0.01" \ - --min-self-delegation="1" \ - --gas=300000 \ - --fees="0usomm" \ - --from=polkachu -``` - -Edit validator - -```bash -sommelier tx staking edit-validator \ - --commission-rate="0.07" \ - --moniker="polkachu.com" \ - --gas=300000 \ - --fees="0usomm" \ - --chain-id="sommelier-3" \ - --from=polkachu -``` diff --git a/docs/stargaze.md b/docs/stargaze.md deleted file mode 100644 index c5be7da3..00000000 --- a/docs/stargaze.md +++ /dev/null @@ -1,28 +0,0 @@ -## Stargaze - -create validator - -```bash -starsd tx staking create-validator \ - --amount=1000000ustars \ - --commission-rate="0.05" \ - --commission-max-rate="0.1" \ - --commission-max-change-rate="0.05" \ - --min-self-delegation="1" \ - --pubkey=$(starsd tendermint show-validator) \ - --moniker="polkachu.com" \ - --website "https://polkachu.com" \ - --identity "0A6AF02D1557E5B4" \ - --details "Polkachu is the trusted staking service provider for blockchain projects. 100% refund for downtime slash. Contact us at hello@polkachu.com" \ - --chain-id=stargaze-1 \ - --from=polkachu -``` - -Edit validator - -```bash -starsd tx staking edit-validator \ - --moniker "polkachu.com" \ - --chain-id=stargaze-1 \ - --from=polkachu -``` diff --git a/docs/terra.md b/docs/terra.md deleted file mode 100644 index 07c81ef1..00000000 --- a/docs/terra.md +++ /dev/null @@ -1,38 +0,0 @@ -## Terra - -### Testnet - -Create validator - -```bash -terrad tx staking create-validator \ - --amount=5000000uluna \ - --pubkey=$(terrad tendermint show-validator) \ - --moniker 'polkachu.com' \ - --website "https://polkachu.com" \ - --identity "0A6AF02D1557E5B4" \ - --details "Polkachu is the trusted staking service provider for blockchain projects. 100% refund for downtime slash. Contact us at hello@polkachu.com" \ - --chain-id=bombay-12 \ - --from=polkachu \ - --commission-max-change-rate "0.01" \ - --commission-rate "0.02" \ - --commission-max-rate "0.1" \ - --min-self-delegation "1" \ - --fees=3000uluna \ - --from=polkachu -``` - -Set oracle - -```bash -terrad tx oracle set-feeder terra13v9q6pek6cwu4js989d22wl8sdm48j4r9cnrg7 --from=polkachu --chain-id=bombay-12 --fees=3000uluna -``` - -```bash -npm start vote -- \ - --source http://localhost:8532/latest \ - --lcd https://lcd.terra.dev \ - --chain-id columbus-5 \ - --validator terravaloper168epm0dvd6v9kpxjz2x800sad0mq4sm9herwzz \ - --password "" -``` diff --git a/docs/testnets.md b/docs/testnets.md deleted file mode 100644 index c687f904..00000000 --- a/docs/testnets.md +++ /dev/null @@ -1,34 +0,0 @@ -## Polkachu's Testnet Setup - -We run all testnets on one machine with high CPU, memory and storage. The default ports for each testnet node will conflict. Change the following: - -`config.toml` - -- P2P: 26656 (default) -- RPC: 26657 (default) -- ABCI: 26658 (default) -- Pprof: 6060 (default) -- Prometheus: 26660 (default) - -`app.toml` - -- API server: 1317 (default) -- Rosetta API server: 8080 (default) -- gRPC server: 9090 (default) -- gRPC-web server: 9091 (default) - -| Network | Custom Port | -| ----------- | ----------- | -| BitCanna | 56 | -| Comdex | 39 | -| Defund | 45 | -| Celestia | 33 | -| Evmos | 37 | -| Kichain | 41 | -| Juno | default | -| Quicksilver | 27 | -| Deweb | 28 | - -Make sure the firewalls are open for prometheus port and p2p port - -Make sure prometheus is true. diff --git a/docs/umee.md b/docs/umee.md deleted file mode 100644 index a701b922..00000000 --- a/docs/umee.md +++ /dev/null @@ -1,27 +0,0 @@ -## Umee - -create validator - -```bash -umeed tx staking create-validator \ - --amount=5000000uumee \ - --commission-max-change-rate=0.05 \ - --commission-max-rate=0.1 \ - --commission-rate=0.02 \ - --min-self-delegation=1 \ - --website "https://polkachu.com" \ - --identity "0A6AF02D1557E5B4" \ - --details "Polkachu is the trusted staking service provider for blockchain projects. 100% refund for downtime slash. Contact us at hello@polkachu.com" \ - --pubkey `umeed tendermint show-validator` \ - --moniker=" polkachu.com" \ - --security-contact="hello@polkachu.com" \ - --chain-id=umee-1 \ - --fees=200uumee \ - --from=polkachu -``` - -Configure peggo - -```bash -umeed tx gravity set-orchestrator-address umeevaloper1gp957czryfgyvxwn3tfnyy2f0t9g2p4phlh7lv umee1xrrfek3qpz4ja8ccrjklfy064asyqq9kpytssa 0x99E43230eCec926a7FFc2E4CD22153494D5a84a3 --chain-id="umee-1" --from=polkachu --fees=200uumee -``` diff --git a/docs/validator_server_migration_best_practice.md b/docs/validator_server_migration_best_practice.md deleted file mode 100644 index 5ba539a8..00000000 --- a/docs/validator_server_migration_best_practice.md +++ /dev/null @@ -1,23 +0,0 @@ -## Validator Server Migration Best Practices - -When we run a mainnet validator for a network, we always try to run a fully-synced non-validator node as backup. Here we want to share some of my learnings in practicing validator swap with a fully synced node. - -### Scenario - -We have two nodes: validator Node A and fully-synced non-validator Node B. Both are running under the management of cosmovisor. We have a backup copy of "priv_validator_key.json" from Node A. We want to move the validator role from Node A to Node B. - -### Best Practice - -1. **Stop Node A**: Stop `cosmovisor` service on Node A. Double check the service status to make sure it is off. On block explorer, you should see the validator missing blocks. In addition, we implement two safeguards against unexpected restart. First, we change `priv_validator_key.json` to `priv_validator_key.json.backup` in the `config` folder. Second, we change `cosmovisor.service` to `cosmovisor.service.backup` in the `systemd` folder. - -2. **Change Validator Role to Node B**: Stop Node B's `cosmovisor` service. Replace Node B's `priv_validator_key.json` with the backup copy from A. Restart B's `cosmovisor` service. Make sure it is making blocks on block explorer. - -3. **Make Node A the New Non-Validator Node**: Delete `priv_validator_key.json.backup` (created from Step 1) in the `config` folder on Node A. Change `cosmovisor.service.backup` back to `cosmovisor.service` in the `systemd` folder on Node A. Restart Node A's `cosmovisor` service. Because there is no `priv_validator_key.json` on Node A at this moment, the service will create a new copy of priv_validator_key.json. Check logs to make sure that Node A is making blocks. - -4. **House Clean**: The specifics only apply to how we set up the cluster. You should adapt according to your setup. - - Swap the server name with "sudo hostname xxx" on each server (for example, between "juno_mainnet" and "juno_mainnet_backup") - - Swap the server shortcut in ~/.ssh/config file for each ssh login - - Swap the log name in the promtail.yml file on each server and restart promtail. - - Swap the server hosts in the monitoring server deployment script so Prometheus and Grafana get the servers right. Redeploy the monitoring script - - Update the server names on the server provider (Hetzner, Contabo, AWS, GCP) to avoid confusion - - Update the inventory file in the cosmos server deployment script. This is not very important since the deployment of both servers are completed. However, it is so to avoid future confusions because both servers will still be running, although in the opposite role of validator vs. non-validator. diff --git a/evmos.yml b/evmos.yml deleted file mode 100644 index fe6098b6..00000000 --- a/evmos.yml +++ /dev/null @@ -1,15 +0,0 @@ ---- -- name: Prepare - hosts: '{{ target }}' - become: true - gather_facts: false - roles: - - prepare - -- name: Install node - hosts: '{{ target }}' - gather_facts: false - roles: - - standard_node_installation - - initialize_evmos - - launch_node diff --git a/fetch.yml b/fetch.yml deleted file mode 100644 index 039a4e23..00000000 --- a/fetch.yml +++ /dev/null @@ -1,15 +0,0 @@ ---- -- name: Prepare - hosts: '{{ target }}' - become: true - gather_facts: false - roles: - - prepare - -- name: Install node - hosts: '{{ target }}' - gather_facts: false - roles: - - standard_node_installation - - initialize_fetch - - launch_node diff --git a/galaxyd.yml b/galaxyd.yml deleted file mode 100644 index 09a96f01..00000000 --- a/galaxyd.yml +++ /dev/null @@ -1,15 +0,0 @@ ---- -- name: Prepare - hosts: '{{ target }}' - become: true - gather_facts: false - roles: - - prepare - -- name: Install node - hosts: '{{ target }}' - gather_facts: false - roles: - - standard_node_installation - - initialize_galaxy - - launch_node diff --git a/generic_doc.md b/generic_doc.md index 720afb28..6aa251ea 100644 --- a/generic_doc.md +++ b/generic_doc.md @@ -35,17 +35,28 @@ BINARY tx staking create-validator \ --from polkachu ``` -galaxyd tx staking create-validator \ - --amount 3000000000uglx \ +```bash +chaind tx staking create-validator --yes \ + --amount 1000000000000tkyve \ + --pubkey=$(chaind tendermint show-validator) \ + --chain-id korellia \ + --from kyve_test \ --commission-max-change-rate "0.05" \ - --commission-max-rate "0.10" \ - --commission-rate "0.01" \ + --commission-max-rate "0.20" \ + --commission-rate "0.10" \ --min-self-delegation "1" \ - --pubkey=$(galaxyd tendermint show-validator) \ - --moniker ' polkachu.com' \ + --moniker 'polkachu.com' \ --website "https://polkachu.com" \ --identity "0A6AF02D1557E5B4" \ --details "Polkachu is the trusted staking service provider for blockchain projects. 100% refund for downtime slash. Contact us at hello@polkachu.com" \ --security-contact="hello@polkachu.com" \ - --chain-id galaxy-1 \ - --from polkachu +--gas auto \ +--gas-adjustment 1.5 \ +--gas-prices 0.001udws \ +--broadcast-mode block +``` + +```bash +chaind tx staking delegate kyvevaloper1jt9w26mpxxjsk63mvd4m2ynj0af09cslxlnsvh 1350000000000tkyve \ +--from kyve_test +``` diff --git a/generic_initialize.yml b/generic_initialize.yml deleted file mode 100644 index 0a36fa96..00000000 --- a/generic_initialize.yml +++ /dev/null @@ -1,32 +0,0 @@ ---- -- name: Initialize Node - command: '{{ daemon }} init {{ validator_name }} --chain-id {{ chain_id }} -o' - environment: - PATH: '{{ path }}' - -- name: Update minimum gas price on config file - lineinfile: - path: '{{ user_dir }}/{{ folder }}/config/app.toml' - regexp: 'minimum-gas-prices ' - line: 'minimum-gas-prices = "{{ minimum_gas_price }}"' - state: present - -- name: Update the peers - lineinfile: - path: '{{ user_dir }}/{{ folder }}/config/config.toml' - regexp: 'persistent_peers = ""' - line: 'persistent_peers = "{{ peers }}"' - state: present - -- name: Update the seeds - lineinfile: - path: '{{ user_dir }}/{{ folder }}/config/config.toml' - regexp: 'seeds = ""' - line: 'seeds = "{{ seeds }}"' - state: present - -- name: Download genesis file - get_url: - url: '{{ genesis }}' - dest: '{{ user_dir }}/{{ folder }}/config/genesis.json' - mode: '0644' diff --git a/gravity.yml b/gravity.yml deleted file mode 100644 index faaeb980..00000000 --- a/gravity.yml +++ /dev/null @@ -1,14 +0,0 @@ ---- -- name: Prepare - hosts: '{{ target }}' - become: true - gather_facts: false - roles: - - prepare - -- name: Install node - hosts: '{{ target }}' - gather_facts: false - roles: - - initialize_gravity - - launch_node diff --git a/group_vars/agoric_mainnet.yml b/group_vars/agoric.yml similarity index 65% rename from group_vars/agoric_mainnet.yml rename to group_vars/agoric.yml index f47514f6..69fb5238 100644 --- a/group_vars/agoric_mainnet.yml +++ b/group_vars/agoric.yml @@ -6,3 +6,13 @@ node_version: 'agoric-upgrade-5' repo: 'https://github.com/Agoric/ag0' genesis: 'https://main.agoric.net/genesis.json' seeds: 'a26158a5cbb1df581dd6843ac427191af76d6d5d@104.154.240.50:26656,6e26a1b4afa6889f841d7957e8c2b5d50d32d485@95.216.53.26:26656' +custom_port_prefix: 44 + +# [Optional] Cosmos exporter +denom: bld +denom_prefix: agoric + +# [Optional] Snapshot +snapshot_server: 2 +snapshot_hour: 4 +snapshot_minute: 30 diff --git a/group_vars/akash_mainnet.yml b/group_vars/akash.yml similarity index 69% rename from group_vars/akash_mainnet.yml rename to group_vars/akash.yml index 2476e047..10887ec3 100644 --- a/group_vars/akash_mainnet.yml +++ b/group_vars/akash.yml @@ -2,8 +2,18 @@ network: akash folder: '.akash' daemon: akash chain_id: 'akashnet-2' -node_version: 'v0.14.1' +node_version: 'v0.16.3' repo: 'https://github.com/ovrclk/akash' genesis: 'https://raw.githubusercontent.com/ovrclk/net/master/mainnet/genesis.json' seeds: '27eb432ccd5e895c5c659659120d68b393dd8c60@35.247.65.183:26656,8e2f56098f182ffe2f6fb09280bafe13c63eb42f@46.101.176.149:26656,fff99a2e8f3c9473e4e5ee9a99611a2e599529fd@46.166.138.218:26656' minimum_gas_price: '0.025uakt' +custom_port_prefix: 28 + +# [Optional] Cosmos exporter +denom: atk +denom_prefix: akash + +# [Optional] Snapshot +snapshot_server: 1 +snapshot_hour: 0 +snapshot_minute: 30 diff --git a/group_vars/all.yml b/group_vars/all.yml index 2f26bbd6..a71c4c5d 100644 --- a/group_vars/all.yml +++ b/group_vars/all.yml @@ -9,13 +9,5 @@ promtail_checksum: 978391a174e71cfef444ab9dc012f95d5d7eae0d682eaf1da2ea18f793452 # go go_version: '1.17.8' -# Snapshot -snapshot_endpoint: 'https://snapshots.polkachu.com' -snapshot_space: 'snapshots' - # cosmovisor cosmovisor_version: 'v1.0.0' - -# horcrux -horcrux_repo: 'https://github.com/strangelove-ventures/horcrux' -horcrux_version: 'v2.0.0-beta3' diff --git a/group_vars/asset_mantle_mainnet.yml b/group_vars/assetmantle.yml similarity index 76% rename from group_vars/asset_mantle_mainnet.yml rename to group_vars/assetmantle.yml index f9d8bf72..1cacceb0 100644 --- a/group_vars/asset_mantle_mainnet.yml +++ b/group_vars/assetmantle.yml @@ -7,3 +7,13 @@ repo: 'https://github.com/AssetMantle/node' genesis: 'https://raw.githubusercontent.com/AssetMantle/genesisTransactions/main/mantle-1/final_genesis.json' peers: '38f4504f74a9fd70f158270751c31a4d146f987c@65.21.226.249:26616,201aa01ed819a3544c77b8e12343c832a20f8136@49.12.189.127:26656,d0dc9234db7b9e5bb853afbd96055c46990aa55f@65.21.131.144:29656,7eeb595f1205c2c7230b3812badb1844185b3727@65.108.99.224:46656' minimum_gas_price: '0umntl' +custom_port_prefix: 46 + +# [Optional] Cosmos exporter +denom: mntl +denom_prefix: mantle + +# [Optional] Snapshot +snapshot_server: 2 +snapshot_hour: 5 +snapshot_minute: 0 diff --git a/group_vars/axelar.yml b/group_vars/axelar.yml new file mode 100644 index 00000000..a3e57782 --- /dev/null +++ b/group_vars/axelar.yml @@ -0,0 +1,19 @@ +network: axelar +folder: '.axelar' +daemon: axelard +chain_id: 'axelar-dojo-1' +binary: 'https://github.com/axelarnetwork/axelar-core/releases/download/v0.17.1/axelard-linux-amd64-v0.17.1' +config_file: 'https://raw.githubusercontent.com/axelarnetwork/axelarate-community/main/configuration/config.toml' +app_file: 'https://raw.githubusercontent.com/axelarnetwork/axelarate-community/main/configuration/app.toml' +genesis: 'https://axelar-mainnet.s3.us-east-2.amazonaws.com/genesis.json' +seeds: '3d67d0646cddcc203b41434aceea64ade22ba6fc@k8s-mainnet-axelarco-79b464ee93-f03cb16c57cf7cb2.elb.us-east-2.amazonaws.com:26656' +custom_port_prefix: 51 + +# [Optional] Cosmos exporter +denom: axl +denom_prefix: axelar + +# [Optional] Snapshot +snapshot_server: 1 +snapshot_hour: 6 +snapshot_minute: 30 diff --git a/group_vars/bitcanna_mainnet.yml b/group_vars/bitcanna.yml similarity index 82% rename from group_vars/bitcanna_mainnet.yml rename to group_vars/bitcanna.yml index 4e0db186..91b96f48 100644 --- a/group_vars/bitcanna_mainnet.yml +++ b/group_vars/bitcanna.yml @@ -2,9 +2,19 @@ network: bitcanna folder: '.bcna' daemon: bcnad chain_id: bitcanna-1 -node_version: v1.2 +node_version: v.1.3.1 repo: https://github.com/BitCannaGlobal/bcna genesis: 'https://raw.githubusercontent.com/BitCannaGlobal/bcna/main/genesis.json' peers: '7b2d10d188926ea25eb209f037fe4e67e16e06b6@92.222.25.18:26656,5eb75c20a77ccf960df396b187b86d6324b40123@51.68.226.61:26656,6bd989f063b89be680fb3c55c4cf1720a892b12c@161.97.96.253:26656,3cdfe02efd4432280707d2949e064a9d8db412b3@178.62.98.158:26656,d806bb39349751c142627a547c23c586a787ef26@138.68.78.210:26656,ddb620e7c7a6b5a8a53352037cde927681012ab4@65.21.229.209:37656,ecf729b2fb3c1038c55bd099b35c5d5b1d158c2b@178.62.236.228:26656,dcdc83e240eb046faabef62e4daf1cfcecfa93a2@159.65.198.245:26656' seeds: 'd6aa4c9f3ccecb0cc52109a95962b4618d69dd3f@seed1.bitcanna.io:26656,23671067d0fd40aec523290585c7d8e91034a771@seed2.bitcanna.io:26656' minimum_gas_price: '0.001ubcna' +custom_port_prefix: 30 + +# [Optional] Cosmos exporter +denom: bcna +denom_prefix: bcna + +# [Optional] Snapshot +snapshot_server: 1 +snapshot_hour: 1 +snapshot_minute: 30 diff --git a/group_vars/cerberus_mainnet.yml b/group_vars/cerberus.yml similarity index 88% rename from group_vars/cerberus_mainnet.yml rename to group_vars/cerberus.yml index c0eaae0b..c00641fa 100644 --- a/group_vars/cerberus_mainnet.yml +++ b/group_vars/cerberus.yml @@ -8,3 +8,13 @@ genesis: 'https://raw.githubusercontent.com/cerberus-zone/cerberus_genesis/main/ seeds: '4c3abff6e4a3e93b84babfc95df854861f83ac82@cerberus-seed.blockpane.com:26656' peers: 'aaa2eba32286074fb575a48e033ac2ba7f4c94e6@98.113.93.139:26661,89ee9a502d4d84e5632a1f5b17cbedfb0aaae088@116.202.133.77:26656,1d7be8ba88c4d1d36d94f493b31018b832ecb5be@116.202.223.110:26656,7bc4a76ea8ada51695bb2797ae24eec011f4bb86@194.163.175.85:26656,17e1441d760583ab5cf79a93ea01ced685948bf7@168.119.110.93:26656,d7f578c4295c7cf05164a2f786601050bf2f2356@142.132.202.98:46656,21cca2db122c48a11f426799131ef08235d46671@148.251.177.45:10656,bae90c7f3aca48e7ae8b3e28dc3b01a2143f068e@194.163.169.187:26656,2cee125f1f1d852b08ef3530154da2eb54ed72ac@66.94.127.8:26656,081e114c7452e3b148cc1a796d75f702b60b0219@85.237.192.125:26656,22e0968f91aba1b3d4d9ad2db2ae47af8cc0a81a@34.139.66.39:26656,c346db0db91a940e87e9ae7df28c3d4947672f54@65.108.121.239:26656,5180ecb20880706a14f99b8982f37a5c23da21ec@65.21.235.249:26656,f03e64d46713068da60b096d528053a57e0e5fec@157.90.36.33:29563' minimum_gas_price: '0.025ucrbrus' +custom_port_prefix: 38 + +# [Optional] Cosmos exporter +denom: crbrus +denom_prefix: cerberus + +# [Optional] Snapshot +snapshot_server: 1 +snapshot_hour: 3 +snapshot_minute: 0 diff --git a/group_vars/certik_mainnet.yml b/group_vars/certik.yml similarity index 69% rename from group_vars/certik_mainnet.yml rename to group_vars/certik.yml index e90febce..17b3cb9f 100644 --- a/group_vars/certik_mainnet.yml +++ b/group_vars/certik.yml @@ -6,3 +6,13 @@ node_version: v2.3.1 repo: https://github.com/ShentuChain/shentu.git genesis: 'https://raw.githubusercontent.com/certikfoundation/mainnet/main/shentu-2.2/genesis.json' seeds: 'b3192e1ab0cbb9f439b15c82605379018d96b4f2@3.209.12.186:26656,23419a3d9deedabce1a3cbfa0d1a3e55ef2364a7@34.229.203.57:26656' +custom_port_prefix: 40 + +# [Optional] Cosmos exporter +denom: ctk +denom_prefix: certik + +# [Optional] Snapshot +snapshot_server: 2 +snapshot_hour: 3 +snapshot_minute: 0 diff --git a/group_vars/chihuahua_mainnet.yml b/group_vars/chihuahua.yml similarity index 84% rename from group_vars/chihuahua_mainnet.yml rename to group_vars/chihuahua.yml index 2b7e7813..2a46e547 100644 --- a/group_vars/chihuahua_mainnet.yml +++ b/group_vars/chihuahua.yml @@ -8,8 +8,13 @@ genesis: 'https://raw.githubusercontent.com/ChihuahuaChain/mainnet/main/genesis. peers: 'b140eb36b20f3d201936c4757d5a1dcbf03a42f1@216.238.79.138:26656,19900e1d2b10be9c6672dae7abd1827c8e1aad1e@161.97.96.253:26656,c382a9a0d4c0606d785d2c7c2673a0825f7c53b2@88.99.94.120:26656,a5dfb048e4ed5c3b7d246aea317ab302426b37a1@137.184.250.180:26656,3bad0326026ca4e29c64c8d206c90a968f38edbe@128.199.165.78:26656,89b576c3eb72a4f0c66dc0899bec7c21552ea2a5@23.88.7.73:29538,38547b7b6868f93af1664d9ab0e718949b8853ec@54.184.20.240:30758,a9640eb569620d1f7be018a9e1919b0357a18b8c@38.146.3.160:26656,7e2239a0d4a0176fe4daf7a3fecd15ac663a8eb6@144.91.126.23:26656' seeds: '4936e377b4d4f17048f8961838a5035a4d21240c@chihuahua-seed-01.mercury-nodes.net:29540' minimum_gas_price: '0.025uhuahua' +custom_port_prefix: 29 -# auto-compound -denomination: 'uhuahua' -threshold: 1000000 -transaction_extra_flag: '--gas-prices 0.025uhuahua' +# [Optional] Cosmos exporter +denom: huahua +denom_prefix: chihuahua + +# [Optional] Snapshot +snapshot_server: 1 +snapshot_hour: 0 +snapshot_minute: 0 diff --git a/group_vars/chihuahua_testnet.yml b/group_vars/chihuahua_testnet.yml deleted file mode 100644 index 8cdd026e..00000000 --- a/group_vars/chihuahua_testnet.yml +++ /dev/null @@ -1,10 +0,0 @@ -network: chihuahua -folder: '.chihuahua' -daemon: chihuahuad -chain_id: chihuahua-1 -node_version: main -repo: https://github.com/ChihuahuaChain/chihuahua.git -genesis: 'https://raw.githubusercontent.com/ChihuahuaChain/mainnet/main/genesis.json' -peers: 'b140eb36b20f3d201936c4757d5a1dcbf03a42f1@216.238.79.138:26656,19900e1d2b10be9c6672dae7abd1827c8e1aad1e@161.97.96.253:26656,c382a9a0d4c0606d785d2c7c2673a0825f7c53b2@88.99.94.120:26656,a5dfb048e4ed5c3b7d246aea317ab302426b37a1@137.184.250.180:26656,3bad0326026ca4e29c64c8d206c90a968f38edbe@128.199.165.78:26656,89b576c3eb72a4f0c66dc0899bec7c21552ea2a5@23.88.7.73:29538,38547b7b6868f93af1664d9ab0e718949b8853ec@54.184.20.240:30758,a9640eb569620d1f7be018a9e1919b0357a18b8c@38.146.3.160:26656,7e2239a0d4a0176fe4daf7a3fecd15ac663a8eb6@144.91.126.23:26656' -seeds: '4936e377b4d4f17048f8961838a5035a4d21240c@chihuahua-seed-01.mercury-nodes.net:29540' -minimum_gas_price: '0.025uhuahua' diff --git a/group_vars/comdex_mainnet.yml b/group_vars/comdex.yml similarity index 85% rename from group_vars/comdex_mainnet.yml rename to group_vars/comdex.yml index bb70d4ad..22b15566 100644 --- a/group_vars/comdex_mainnet.yml +++ b/group_vars/comdex.yml @@ -2,9 +2,19 @@ network: comdex folder: '.comdex' daemon: comdex chain_id: comdex-1 -node_version: v0.0.4 +node_version: v0.1.1 repo: https://github.com/comdex-official/comdex.git genesis: 'https://raw.githubusercontent.com/comdex-official/networks/main/mainnet/comdex-1/genesis.json' peers: 'f74518ad134630da8d2405570f6a3639954c985f@65.0.173.217:26656,d478882a80674fa10a32da63cc20cae13e3a2a57@43.204.0.243:26656,61d743ea796ad1e1ff838c9e84adb38dfffd1d9d@15.235.9.222:26656,b8468f64788a17dbf34a891d9cd29d54b2b6485d@194.163.178.25:26656,d8b74791ee56f1b345d822f62bd9bc969668d8df@194.163.128.55:36656,81444353d70bab79742b8da447a9564583ed3d6a@164.68.105.248:26656,5b1ceb8110da4e90c38c794d574eb9418a7574d6@43.254.41.56:26656,98b4522a541a69007d87141184f146a8f04be5b9@40.112.90.170:26656,9a59b6dc59903d036dd476de26e8d2b9f1acf466@195.201.195.111:26656' seeds: 'aef35f45db2d9f5590baa088c27883ac3d5e0b33@3.108.102.92:26656,7ca14a1d156299999eba9c394ca060368022d52f@54.194.178.110:26656,08ab4552a74dd7e211fc79432918d35818a67189@52.69.58.231:26656,449a0f1b7dafc142cf23a1f6166bbbf035edfb10@13.232.85.66:26656,5b27a6d4cf33909c0e5b217789e7455e261941d1@15.222.29.207:26656' minimum_gas_price: '0.025ucmdx' +custom_port_prefix: 31 + +# [Optional] Cosmos exporter +denom: cmdx +denom_prefix: comdex + +# [Optional] Snapshot +snapshot_server: 1 +snapshot_hour: 2 +snapshot_minute: 0 diff --git a/group_vars/cosmos_mainnet.yml b/group_vars/cosmos.yml similarity index 62% rename from group_vars/cosmos_mainnet.yml rename to group_vars/cosmos.yml index a1862cb0..16f3a4ba 100644 --- a/group_vars/cosmos_mainnet.yml +++ b/group_vars/cosmos.yml @@ -2,9 +2,19 @@ network: cosmos folder: '.gaia' daemon: gaiad chain_id: cosmoshub-4 -node_version: v6.0.4 +node_version: v7.0.1 repo: 'https://github.com/cosmos/gaia' genesis: 'https://github.com/cosmos/mainnet/raw/master/genesis.cosmoshub-4.json.gz' +genesis_processing: gz minimum_gas_price: '0.0025uatom' -addrbook: 'https://quicksync.io/addrbook.cosmos.json' -peers: 'a6c9ca56d35970742f0261d0eaf012c22079fda5@207.180.196.108:26656,6e08b23315a9f0e1b23c7ed847934f7d6f848c8b@165.232.156.86:26656,ee27245d88c632a556cf72cc7f3587380c09b469@45.79.249.253:26656,538ebe0086f0f5e9ca922dae0462cc87e22f0a50@34.122.34.67:26656,d3209b9f88eec64f10555a11ecbf797bb0fa29f4@34.125.169.233:26656,bdc2c3d410ca7731411b7e46a252012323fbbf37@34.83.209.166:26656,85794737e6b318957088e645e17c0669f3b11fc@54.160.123.34:26656,5b4ed476e01c49b23851258d867cc0cfc0c10e58@206.189.4.227:26656' +peers: 'a6c9ca56d35970742f0261d0eaf012c22079fda5@207.180.196.108:26656,6e08b23315a9f0e1b23c7ed847934f7d6f848c8b@165.232.156.86:26656,ee27245d88c632a556cf72cc7f3587380c09b469@45.79.249.253:26656,538ebe0086f0f5e9ca922dae0462cc87e22f0a50@34.122.34.67:26656,d3209b9f88eec64f10555a11ecbf797bb0fa29f4@34.125.169.233:26656,bdc2c3d410ca7731411b7e46a252012323fbbf37@34.83.209.166:26656,5b4ed476e01c49b23851258d867cc0cfc0c10e58@206.189.4.227:26656' +custom_port_prefix: 49 + +# [Optional] Cosmos exporter +denom: atom +denom_prefix: cosmos + +# [Optional] Snapshot +snapshot_server: 1 +snapshot_hour: 0 +snapshot_minute: 0 diff --git a/group_vars/crescent_mainnet.yml b/group_vars/crescent.yml similarity index 84% rename from group_vars/crescent_mainnet.yml rename to group_vars/crescent.yml index 2db134a4..eb4f2526 100644 --- a/group_vars/crescent_mainnet.yml +++ b/group_vars/crescent.yml @@ -5,6 +5,17 @@ chain_id: 'crescent-1' node_version: 'v1.1.0' repo: 'https://github.com/crescent-network/crescent' genesis: 'https://github.com/crescent-network/launch/blob/main/mainnet/crescent-1/genesis.json.tar.gz?raw=true' -minimum_gas_price: '0ucre' +genesis_processing: targz +minimum_gas_price: '0.01ucre,0.01bucre' seeds: '929f22a7b04ff438da9edcfebd8089908239de44@18.180.232.184:26656' peers: '68787e8412ab97d99af7595c46514b9ab4b3df45@54.250.202.17:26656,0ed5ed53ec3542202d02d0d47ac04a2823188fc2@52.194.172.170:26656,04016e800a079c8ee5bdb9361c81c026b6177856@34.146.27.138:26656,24be64cd648958d9f685f95516cb3b248537c386@52.197.140.210:26656,83b3ba06b43fda52c048934498c6ee2bd4987d2d@3.39.144.72:26656,7e59c83196fdc61dcf9d36c42776c0616bc0fc8c@3.115.85.120:26656,06415494b86316c55245d162da065c3c0fee83fc@172.104.108.21:26656,4293ce6b47ee2603236437ab44dc499519c71e62@45.76.97.48:26656,4113f7496857d3f161921c7af8d62022551a7e6b@167.179.75.240:26656,2271e3739ea477bce0df39dd9e95f8b952a2106e@198.13.62.7:26656,b34115ba926eb12059ca0ade4d1013cac2f8d289@crescent-mainnet-01.01node.com:26656,d7556e41ba2f333379f6d87b1af3cce2ca545f79@34.88.102.246:26656,26011ac36240fb49852cc7196f71a1884434b8c4@34.84.227.139:26656,b840926fb6a2bd04fc70e501002f9286655c9179@52.199.91.143:30732,86030850dd635cab1f136979568087407a025491@46.101.153.158:26656' +custom_port_prefix: 45 + +# [Optional] Cosmos exporter +denom: cre +denom_prefix: cre + +# [Optional] Snapshot +snapshot_server: 1 +snapshot_hour: 5 +snapshot_minute: 0 diff --git a/group_vars/evmos_mainnet.yml b/group_vars/evmos.yml similarity index 69% rename from group_vars/evmos_mainnet.yml rename to group_vars/evmos.yml index 9976afd5..257c9c53 100644 --- a/group_vars/evmos_mainnet.yml +++ b/group_vars/evmos.yml @@ -2,7 +2,19 @@ network: evmos folder: '.evmosd' daemon: evmosd chain_id: evmos_9001-2 -node_version: v3.0.0 +node_version: v4.0.1 repo: https://github.com/tharsis/evmos genesis: 'https://github.com/tharsis/mainnet/blob/main/evmos_9001-2/genesis.json.zip?raw=true' +genesis_processing: zip peers: 'd8ac979da3dbe2f796e2344616096160dc5cfdc1@164.92.191.127:26656,d5d418256279900c3d1fbf2137ce7142d6f6c682@65.108.139.20:26656,1915b0217865b968646768e2761a8669d5e24bd5@65.108.44.149:26656,1a7bee67d6337d09380b824b952872bdc5dca86f@38.242.194.56:26656,b02259a11e4ee46b29668cfc957e530022a3fca1@62.171.142.145:26656,cc321917ce82b6c541c687420ad5ae0b4b5e055a@144.76.224.246:26656' +minimum_gas_price: '2500000000000aevmos' +custom_port_prefix: 34 + +# [Optional] Cosmos exporter +denom: evmos +denom_prefix: evmos + +# [Optional] Snapshot +snapshot_server: 2 +snapshot_hour: 1 +snapshot_minute: 30 diff --git a/group_vars/fetch_mainnet.yml b/group_vars/fetch.yml similarity index 76% rename from group_vars/fetch_mainnet.yml rename to group_vars/fetch.yml index 65ddfde2..3a57f71e 100644 --- a/group_vars/fetch_mainnet.yml +++ b/group_vars/fetch.yml @@ -6,3 +6,13 @@ node_version: v0.10.2 repo: https://github.com/fetchai/fetchd.git genesis: 'https://github.com/fetchai/genesis-fetchhub/blob/main/fetchhub-4/data/genesis_migrated_5300200.json?raw=true' seeds: '17693da418c15c95d629994a320e2c4f51a8069b@connect-fetchhub4.m-v2-london-c.fetch-ai.com:36456,a575c681c2861fe945f77cb3aba0357da294f1f2@connect-fetchhub4.m-v2-london-c.fetch-ai.com:36457,d7cda986c9f59ab9e05058a803c3d0300d15d8da@connect-fetchhub4.m-v2-london-c.fetch-ai.com:36458' +custom_port_prefix: 52 + +# [Optional] Cosmos exporter +denom: fet +denom_prefix: fetch + +# [Optional] Snapshot +snapshot_server: 2 +snapshot_hour: 6 +snapshot_minute: 30 diff --git a/group_vars/galaxy_mainnet.yml b/group_vars/galaxyd.yml similarity index 75% rename from group_vars/galaxy_mainnet.yml rename to group_vars/galaxyd.yml index b65dcde8..0ebe694f 100644 --- a/group_vars/galaxy_mainnet.yml +++ b/group_vars/galaxyd.yml @@ -6,3 +6,13 @@ node_version: 'v1.0.0' repo: 'https://github.com/galaxies-labs/galaxy' genesis: 'https://media.githubusercontent.com/media/galaxies-labs/networks/main/galaxy-1/genesis.json' peers: 'bf446887a7a00c8babfeba2f92ba569a206a3ea7@65.108.71.140:26676,a4bd8fed416aa29d9cc061e2b9dffa7f4b679c91@65.21.131.144:30656,1e9ee1911298a15128c8485ea47b18be08939e01@136.244.29.116:38656,574e8402e255f895680db2904168724258fd6ff8@13.125.60.249:26656' +custom_port_prefix: 48 + +# [Optional] Cosmos exporter +denom: glx +denom_prefix: galaxy + +# [Optional] Snapshot +snapshot_server: 2 +snapshot_hour: 6 +snapshot_minute: 0 diff --git a/group_vars/gravity_mainnet.yml b/group_vars/gravity.yml similarity index 71% rename from group_vars/gravity_mainnet.yml rename to group_vars/gravity.yml index 08f52280..bb1aa386 100644 --- a/group_vars/gravity_mainnet.yml +++ b/group_vars/gravity.yml @@ -2,8 +2,19 @@ network: gravity folder: '.gravity' daemon: gravity chain_id: gravity-bridge-3 -node_version: 'v1.4.0' +node_version: 'v1.5.2' repo: 'https://github.com/Gravity-Bridge/Gravity-Bridge' +binary: 'https://github.com/Gravity-Bridge/Gravity-Bridge/releases/download/v1.5.2/gravity-linux-amd64' genesis: 'https://raw.githubusercontent.com/Gravity-Bridge/gravity-docs/main/genesis.json' peers: '81396d4703a2e3cbd136c7324e4df5686fd48218@35.180.8.214:26656,c597db55d9a609b8b77c3d37ecf1fa9a67117cc0@144.217.82.4:26656,50af457247b59aa558a26a14bd7ac4bf86eeae70@195.201.164.223:26656,81eef39d2ca9a07490857d197423da4ba5e01879@15.188.134.35:26656,5adb5ad6a6fcef624866cefdb551dafdc07f7e78@15.188.198.188:26656,41b321292cbe50c5c30017cc71c404481be0e20b@3.38.12.5:26656' seeds: '2b089bfb4c7366efb402b48376a7209632380c9c@65.19.136.133:26656,63e662f5e048d4902c7c7126291cf1fc17687e3c@95.211.103.175:26656' +custom_port_prefix: 42 + +# [Optional] Cosmos exporter +denom: grav +denom_prefix: gravity + +# [Optional] Snapshot +snapshot_server: 1 +snapshot_hour: 4 +snapshot_minute: 0 diff --git a/group_vars/injective_mainnet.yml b/group_vars/injective.yml similarity index 67% rename from group_vars/injective_mainnet.yml rename to group_vars/injective.yml index 3a91defc..2f45145e 100644 --- a/group_vars/injective_mainnet.yml +++ b/group_vars/injective.yml @@ -3,7 +3,18 @@ folder: '.injectived' daemon: injectived chain_id: injective-1 genesis: https://raw.githubusercontent.com/InjectiveLabs/mainnet-config/master/10001/genesis.json -minimum_gas_price: '500000000inj' binary: https://github.com/InjectiveLabs/injective-chain-releases/releases/download/v1.5.0-1649280277/linux-amd64.zip +binary_processing: zip seeds: '2ee7586d8e5a4a2020dafddf68efdfdaa3606cc3@145.40.67.249:26656,7bb20f8e9fa73e34d0d21862528d5fba839eeb56@145.40.73.39:26656,de25916e19083d44d67e0c336199b215523f1578@145.40.68.223:26656,1a2ccd9c436eae54d6c767ad566c58dce78f8be2@145.40.68.125:26656' -app: https://raw.githubusercontent.com/InjectiveLabs/mainnet-config/10001/app.toml +app_file: https://raw.githubusercontent.com/InjectiveLabs/mainnet-config/master/10001/app.toml +minimum_gas_price: '500000000inj' +custom_port_prefix: 43 + +# [Optional] Cosmos exporter +denom: inj +denom_prefix: inj + +# [Optional] Snapshot +snapshot_server: 2 +snapshot_hour: 4 +snapshot_minute: 0 diff --git a/group_vars/juno_mainnet.yml b/group_vars/juno.yml similarity index 83% rename from group_vars/juno_mainnet.yml rename to group_vars/juno.yml index 1c4dc288..6694c6b7 100644 --- a/group_vars/juno_mainnet.yml +++ b/group_vars/juno.yml @@ -2,8 +2,18 @@ network: juno folder: '.juno' daemon: junod chain_id: juno-1 -node_version: v3.1.1 +node_version: v5.0.1 repo: https://github.com/CosmosContracts/juno genesis: 'https://raw.githubusercontent.com/CosmosContracts/mainnet/main/juno-1/genesis.json' peers: 'c12726cfc959b54c90c0831216bab970645b536c@18.223.79.98:26656,b1f46f1a1955fc773d3b73180179b0e0a07adce1@162.55.244.250:39656,7f593757c0cde8972ce929381d8ac8e446837811@178.18.255.244:26656,7b22dfc605989d66b89d2dfe118d799ea5abc2f0@167.99.210.65:26656,4bd9cac019775047d27f9b9cea66b25270ab497d@137.184.7.164:26656,bd822a8057902fbc80fd9135e335f0dfefa32342@65.21.202.159:38656,15827c6c13f919e4d9c11bcca23dff4e3e79b1b8@51.38.52.210:38656,e665df28999b2b7b40cff2fe4030682c380bf294@188.40.106.109:38656,92804ce50c85ff4c7cf149d347dd880fc3735bf4@34.94.231.154:26656,795ed214b8354e8468f46d1bbbf6e128a88fe3bd@34.127.19.222:26656,ea9c1ac0e91639b2c7957d9604655e2263abe4e1@185.181.103.136:26656' minimum_gas_price: '0.0025ujuno' +custom_port_prefix: 26 + +# [Optional] Cosmos exporter +denom: juno +denom_prefix: juno + +# [Optional] Snapshot +snapshot_server: 2 +snapshot_hour: 0 +snapshot_minute: 0 diff --git a/group_vars/juno_testnet.yml b/group_vars/juno_testnet.yml deleted file mode 100644 index 6c8c277a..00000000 --- a/group_vars/juno_testnet.yml +++ /dev/null @@ -1,9 +0,0 @@ -network: juno -folder: '.juno' -daemon: junod -chain_id: uni -node_version: v1.0.0 -repo: https://github.com/CosmosContracts/juno -genesis: 'https://raw.githubusercontent.com/CosmosContracts/testnets/main/uni/genesis.json' -peers: 'b2ef97b03c049c39a975b7845abe40fb3e48ee36@216.238.71.243:26656,34e9b3698c0a0fc7e5a8c16dc63b4d913c496c2d@206.189.151.85:26656,7ff7fd0119b104f659810ece82e9cefe2819bb33@128.199.97.8:26656,a1d3e3e6615f8eded91b012c69edb6b1bb0f5e42@161.97.187.234:26656,cdfdd1735bad77c49290e9485b8eb49fbd61ca4d@178.128.36.63:26656,4a91597dfe3ec715bbf6def225066fbb6ad86cfe@207.180.204.112:36656,15bbe91a29693284c4c13138550ea0b6a34f9c42@137.184.11.214:26656,b5377aa9885c69e154820d19be6c87c3d3c34d14@65.108.85.61:26656' -minimum_gas_price: '0.025ujunox' diff --git a/group_vars/kava_mainnet.yml b/group_vars/kava.yml similarity index 88% rename from group_vars/kava_mainnet.yml rename to group_vars/kava.yml index d5ff8707..529268a2 100644 --- a/group_vars/kava_mainnet.yml +++ b/group_vars/kava.yml @@ -5,6 +5,16 @@ chain_id: kava-9 node_version: v0.16.1 repo: https://github.com/kava-labs/kava genesis: 'https://kava-genesis-files.s3.amazonaws.com/kava-9/genesis.json' -peers: '881edc411e2af6606908f2f0a082d59c5db4ab92@52.2.60.226:26656,3ebd25eb40a0439211d1d5400c2b0e68d366a56d@3.232.57.129:26656,c030f0da6ec31da2ecdeb2196599452e83190002@35.175.26.208:26656,00b776c22bdee28266fa53c9e1dcd50a87a0e5a2@54.85.46.17:26656,cf93303f122c477f6a20d7058285053fb881f337@3.34.163.178:26656,cf93303f122c477f6a20d7058285053fb881f337@52.52.252.68:26656,a5d0441b07c9a1e9d1399064e7d66b6a5c67a34f@35.178.127.120:50056,8b5c4a890c8ae7efbbe3360af71be1c3c3a9e12e@121.78.241.68:46656,50e4cad7d5e28f7b6495168f92e12bf810e293fd@142.132.152.187:10856,f7c894901f450b92614fd051d10854d168ec30b5@65.21.94.20:10856,145edb65935b528534049b80f6ce1d155fcc93e3@141.94.132.35:36656,11f965df6fb3091e0fa3a1e4c129ff697939b827@54.185.38.14:26656,d3658cb9c63cf43b0c707401649809a6007a7c12@94.130.67.43:26656,21ec4a9c54d0445ec671e2d07230f29e3a6984aa@173.249.29.13:26656,1074a6f31d2c7df6e21ce0e574a5cb75f1763be1@13.56.31.21:26656,1291ef230910953545fb3d83c4e989578da978a1@35.157.56.248:26656,d5db8898d40054c07442f3364b32f7fac2752f5e@188.34.178.92:26656,a2284de0eb3c127c891a352c58c703c4092c7067@65.21.240.10:26656,c6d5a2c7f321bb8abf52a342d52195089c0b4e61@3.141.176.120:26656,edee419731ed920b54a380cb404cb6be8fe894af@54.177.194.124:26656,46e166ec70ca091c3e64771de9d70cbbb9e4bb9f@13.209.122.197:26656,761442bbc74502169a8284e8a56d63f853624354@52.9.68.222:26656,7ac881dda2eb3d5f94e9df102cb29a85a17a5b14@185.234.69.27:26656,8ba9721048eb1e464196b75a77c7be3f6d654e13@95.216.16.245:21656,5f2f2fb27c80fd374abd0313070f3131bee940fa@54.69.100.187:26202,9f5c9ef6071496c6063c747f1bbdb4c3151d6b0f@18.157.145.60:26202,8463c6ac92187ac1549e6524d6ba16af75394ac9@54.254.87.231:26202,df4ef34a61ec3aa6dc19fecbb49b2cf929b6aac1@35.232.163.218:26656,3443628a434abff5578cc7737576fc08ac423dce@141.94.101.216:26656,4f4b567edcc417ff5ff21d26fb56237e60da81b3@132.145.126.161:26656' -minimum_gas_price: '0.001ukava' seeds: '3e142cb029fa327750001d8e6cc45b992a527632@23.20.105.65:26656' +peers: '881edc411e2af6606908f2f0a082d59c5db4ab92@52.2.60.226:26656,3ebd25eb40a0439211d1d5400c2b0e68d366a56d@3.232.57.129:26656,c030f0da6ec31da2ecdeb2196599452e83190002@35.175.26.208:26656,00b776c22bdee28266fa53c9e1dcd50a87a0e5a2@54.85.46.17:26656,cf93303f122c477f6a20d7058285053fb881f337@3.34.163.178:26656,cf93303f122c477f6a20d7058285053fb881f337@52.52.252.68:26656,a5d0441b07c9a1e9d1399064e7d66b6a5c67a34f@35.178.127.120:50056,8b5c4a890c8ae7efbbe3360af71be1c3c3a9e12e@121.78.241.68:46656,50e4cad7d5e28f7b6495168f92e12bf810e293fd@142.132.152.187:10856,f7c894901f450b92614fd051d10854d168ec30b5@65.21.94.20:10856,145edb65935b528534049b80f6ce1d155fcc93e3@141.94.132.35:36656,11f965df6fb3091e0fa3a1e4c129ff697939b827@54.185.38.14:26656,d3658cb9c63cf43b0c707401649809a6007a7c12@94.130.67.43:26656,21ec4a9c54d0445ec671e2d07230f29e3a6984aa@173.249.29.13:26656,1074a6f31d2c7df6e21ce0e574a5cb75f1763be1@13.56.31.21:26656,1291ef230910953545fb3d83c4e989578da978a1@35.157.56.248:26656,d5db8898d40054c07442f3364b32f7fac2752f5e@188.34.178.92:26656,a2284de0eb3c127c891a352c58c703c4092c7067@65.21.240.10:26656,c6d5a2c7f321bb8abf52a342d52195089c0b4e61@3.141.176.120:26656,edee419731ed920b54a380cb404cb6be8fe894af@54.177.194.124:26656,46e166ec70ca091c3e64771de9d70cbbb9e4bb9f@13.209.122.197:26656,761442bbc74502169a8284e8a56d63f853624354@52.9.68.222:26656,7ac881dda2eb3d5f94e9df102cb29a85a17a5b14@185.234.69.27:26656,8ba9721048eb1e464196b75a77c7be3f6d654e13@95.216.16.245:21656,5f2f2fb27c80fd374abd0313070f3131bee940fa@54.69.100.187:26202,9f5c9ef6071496c6063c747f1bbdb4c3151d6b0f@18.157.145.60:26202,8463c6ac92187ac1549e6524d6ba16af75394ac9@54.254.87.231:26202,df4ef34a61ec3aa6dc19fecbb49b2cf929b6aac1@35.232.163.218:26656,3443628a434abff5578cc7737576fc08ac423dce@141.94.101.216:26656,4f4b567edcc417ff5ff21d26fb56237e60da81b3@132.145.126.161:26656,702db8086ce36976bdb26e4f5f9560403a7b1f18@65.108.138.80:39656' +minimum_gas_price: '0.001ukava' +custom_port_prefix: 39 + +# [Optional] Cosmos exporter +denom: kava +denom_prefix: kava + +# [Optional] Snapshot +snapshot_server: 2 +snapshot_hour: 0 +snapshot_minute: 30 diff --git a/group_vars/kichain_mainnet.yml b/group_vars/kichain.yml similarity index 81% rename from group_vars/kichain_mainnet.yml rename to group_vars/kichain.yml index a42ceebe..5da69b16 100644 --- a/group_vars/kichain_mainnet.yml +++ b/group_vars/kichain.yml @@ -8,3 +8,13 @@ genesis: 'https://github.com/KiFoundation/ki-networks/raw/v0.1/Mainnet/kichain-2 peers: '81396d4703a2e3cbd136c7324e4df5686fd48218@35.180.8.214:26656,c597db55d9a609b8b77c3d37ecf1fa9a67117cc0@144.217.82.4:26656,50af457247b59aa558a26a14bd7ac4bf86eeae70@195.201.164.223:26656,81eef39d2ca9a07490857d197423da4ba5e01879@15.188.134.35:26656,5adb5ad6a6fcef624866cefdb551dafdc07f7e78@15.188.198.188:26656,41b321292cbe50c5c30017cc71c404481be0e20b@3.38.12.5:26656' seeds: '24cbccfa8813accd0ebdb09e7cdb54cff2e8fcd9@51.89.166.197:26656' minimum_gas_price: '0.025uxki' +custom_port_prefix: 35 + +# [Optional] Cosmos exporter +denom: xki +denom_prefix: ki + +# [Optional] Snapshot +snapshot_server: 1 +snapshot_hour: 2 +snapshot_minute: 30 diff --git a/group_vars/konstellation_mainnet.yml b/group_vars/konstellation.yml similarity index 83% rename from group_vars/konstellation_mainnet.yml rename to group_vars/konstellation.yml index d271503c..ffb3cfff 100644 --- a/group_vars/konstellation_mainnet.yml +++ b/group_vars/konstellation.yml @@ -2,8 +2,18 @@ network: konstellation folder: '.knstld' daemon: knstld chain_id: darchub -node_version: v0.4.3 +node_version: v0.5.0 repo: https://github.com/konstellation/konstellation genesis: 'https://raw.githubusercontent.com/Konstellation/konstellation/master/config/genesis.json' peers: '00f7f4506d84f9d1458201946e1194564b444ce0@node14.konstellation.tech:26656,06fed4bbe81ead6073a7254e860331179af74f4c@node3.konstellation.tech:26656,0f4eef8db37ec7ef9f6d3324689db2847ee8f795@node10.konstellation.tech:26656,1c9aff1ea9d1cafd584aa61a70582e7c4b0c8675@node5.konstellation.tech:26656,7e8119050ecb80450ad476b50423b9230c10c8d0@node11.konstellation.tech:26656,a32dda75cf5ffe4ab0ff9a0969e525807e01f2e5@node2.konstellation.tech:26656,d4a713a657883cca49d71b1b2cab4ab5e94b0843@node4.konstellation.tech:26656,dbb7589202f6c751f2b93c6bbcd0e660676ab91c@node12.konstellation.tech:26656,f2c2ebec24507d54fea88976e9f93f0fbfa0d6d0@node13.konstellation.tech:26656' minimum_gas_price: '0.0001udarc' +custom_port_prefix: 33 + +# [Optional] Cosmos exporter +denom: darc +denom_prefix: darc + +# [Optional] Snapshot +snapshot_server: 1 +snapshot_hour: 3 +snapshot_minute: 30 diff --git a/group_vars/lum_mainnet.yml b/group_vars/lum_mainnet.yml deleted file mode 100644 index 583faceb..00000000 --- a/group_vars/lum_mainnet.yml +++ /dev/null @@ -1,10 +0,0 @@ -network: lum -folder: '.lumd' -daemon: lumd -chain_id: lum-network-1 -node_version: v1.0.5 -repo: https://github.com/lum-network/chain.git -genesis: 'https://raw.githubusercontent.com/lum-network/mainnet/master/genesis.json' -seeds: '19ad16527c98b782ee35df56b65a3a251bd99971@peer-1.mainnet.lum.network:26656' -peers: 'b47626b9d78ed7ed3c413304387026f907c70cbe@peer-0.mainnet.lum.network:26656,5ea36d78ae774c9086c2d3fc8b91f12aa4bf3029@46.101.251.76:26656,a7f8832cb8842f9fb118122354fff22d3051fb83@3.36.179.104:26656,9afac13ba62fbfaf8d06867c30007162511093c0@54.214.134.223:26656,433c60a5bc0a693484b7af26208922b84773117e@34.209.132.0:26656,8fafab32895a31a0d7f17de58eddb492c6ced6d1@185.194.219.83:36656,c06eae3d9ea779710bca44e03f57e961b59d63f1@82.65.223.126:46656,4166de0e7721b6eec9c776abf2c38c40e7f820c5@202.61.239.130:26656,5a29947212a2615e43dac54deb55356a162e173a@35.181.76.160:26656,2cda4d97de0449878da10e456b176dd0720fbcec@62.171.129.174:26656' -minimum_gas_price: '0.001ulum' diff --git a/group_vars/meme_mainnet.yml b/group_vars/meme.yml similarity index 80% rename from group_vars/meme_mainnet.yml rename to group_vars/meme.yml index ceb2a1ad..f85fd751 100644 --- a/group_vars/meme_mainnet.yml +++ b/group_vars/meme.yml @@ -7,3 +7,13 @@ repo: https://github.com/memecosmos/meme genesis: 'https://github.com/memecosmos/mainnet/raw/main/meme-1/genesis.json' peers: '8db6d048af7c3cbbded64a13e107deac0ecd4e0b@157.230.58.197:26656,0bff1a09a775f3f48125e2608e5425d9916be9ec@157.230.58.200:26656,f51b8d710dd6a556694a5bd414c0e21753027b95@188.166.97.38:26656,7f8d0d370ea72608fa74d0b6698a7979ab510449@188.166.104.46:26656,bbce4f689582db49d7a93cb2baf94d95aa72f43b@137.184.13.23:26656,81ca4565e35d3c3f9cf6cf6d8d1fe7e6c4a2e490@207.148.2.119:26656,1e2a4e7c513d1ba267fe2e689d4dfe6d6105f644@155.138.255.208:26656' minimum_gas_price: '0.025umeme' +custom_port_prefix: 47 + +# [Optional] Cosmos exporter +denom: meme +denom_prefix: meme + +# [Optional] Snapshot +snapshot_server: 1 +snapshot_hour: 6 +snapshot_minute: 0 diff --git a/group_vars/nym_mainnet.yml b/group_vars/nym_mainnet.yml deleted file mode 100644 index 0890d551..00000000 --- a/group_vars/nym_mainnet.yml +++ /dev/null @@ -1,8 +0,0 @@ -network: nym -folder: '.nyxd' -daemon: nyxd -chain_id: nyx -node_version: v0.23.0 -repo: https://github.com/CosmWasm/wasmd.git -genesis: 'https://nymtech.net/genesis/genesis.json' -peers: 'dc0af6cde717420e9f8d35a3e0883aee0e5dbff3@15.235.14.66:26656' diff --git a/group_vars/osmosis_mainnet.yml b/group_vars/osmosis.yml similarity index 90% rename from group_vars/osmosis_mainnet.yml rename to group_vars/osmosis.yml index 68d74200..51636bf3 100644 --- a/group_vars/osmosis_mainnet.yml +++ b/group_vars/osmosis.yml @@ -2,7 +2,17 @@ network: osmosis folder: '.osmosisd' daemon: osmosisd chain_id: osmosis-1 -node_version: v6.0.1 +node_version: v7.2.1 repo: https://github.com/osmosis-labs/osmosis genesis: 'https://github.com/osmosis-labs/networks/raw/main/osmosis-1/genesis.json' peers: '24b778409a1132a9fb6445ac184ae1af4f48982b@3.66.211.32:29656,e542d0ad7b48f555b58c2e5f498b50795ea2814d@209.151.155.113:26656,1d7258ffb7fc88ec7155f43146c7a85159834072@34.215.234.11:30772,ccab34fd32277870183c57606b41c16c6a985238@142.44.212.67:26656,55eea69c21b46000c1594d8b4a448563b075d9e3@34.107.19.235:26656,ce683222ec2e05c52cd6c05e77361f2991634d84@95.216.80.82:26656,75a0e6b11cfd7527d3103c4d5c0a4550d75a744c@18.184.164.161:26656,8f538eaf07ab02a8d4d2e5dbf165bffa4b2f5982@3.68.158.112:26656,e3543d311db6ba912ede2a43698225228aca4c37@116.203.77.250:26656,b5de5643eb6eb54c6be905d7b2f919e1bfee1777@195.201.161.56:26656,7f1abfa677eff970926728e71f213b22c9e7c32e@45.79.201.141:26656,5a7d50b78393652383fc81e5f914cc9b38e6fb5d@167.71.167.106:26656,d9dbd30f7e9ae99dc05645f48f4637c2f4a14645@172.65.199.39:26656,5d49690d276618f1e22ed8c1d5b19fe5ed69e784@148.72.165.77:26656,0235caea65a8b279b46b79600d702427b322d791@63.32.91.9:26656,3c740565eb15a185c107971a3780f52b3dd7c61a@54.177.131.90:32351,d90e6f6c5825bf0259a7b98f318f94fa6f25178c@18.193.129.158:29656,be89866255219b441b1d2bcf90cd7d7dd90d7e4d@3.249.154.86:26656,86dd585aa15afedfa7a27fab0ff48dffa1a333a3@51.158.107.31:26656,7a7c7d118c277242fbd3e8efcda216dd2793d882@195.201.56.108:26656,ffd72a2c9672d6c7d29d6f94afea95ac338ba6dc@176.34.75.138:26656,0d20c72662bbf768518d948925ca195bd8467457@135.125.104.217:34656,3c3b955ef8316bb8785acde7a8ee4bc5480a68a5@110.42.139.232:26656,b7f2ffa619cbfce0d6a40c1a09a74cf45d86f4bb@52.9.118.174:26656,26d24fcc90ba79ab20a9919e228621eefa5258ba@3.143.37.54:26656' +custom_port_prefix: 25 + +# [Optional] Cosmos exporter +denom: osmo +denom_prefix: osmo + +# [Optional] Snapshot +snapshot_server: 2 +snapshot_hour: 1 +snapshot_minute: 0 diff --git a/group_vars/passage_mainnet.yml b/group_vars/passage_mainnet.yml deleted file mode 100644 index 4438f0b2..00000000 --- a/group_vars/passage_mainnet.yml +++ /dev/null @@ -1,9 +0,0 @@ -network: passage -folder: '.passage' -daemon: passage -chain_id: passage-1 -node_version: v1.0.0 -repo: https://github.com/envadiv/Passage3D -genesis: '' -peers: '' -minimum_gas_price: '' diff --git a/group_vars/sifchain_betanet.yml b/group_vars/sifchain.yml similarity index 78% rename from group_vars/sifchain_betanet.yml rename to group_vars/sifchain.yml index f3eb0f9c..0542e017 100644 --- a/group_vars/sifchain_betanet.yml +++ b/group_vars/sifchain.yml @@ -2,8 +2,19 @@ network: sifchain folder: '.sifnoded' daemon: sifnoded chain_id: sifchain-1 -node_version: v0.12.1 +node_version: v0.13.1 repo: https://github.com/Sifchain/sifnode.git genesis: 'https://raw.githubusercontent.com/Sifchain/networks/master/betanet/sifchain-1/genesis.json.gz' +genesis_processing: gz peers: '0d4981bdaf4d5d73bad00af3b1fa9d699e4d3bc0@44.235.108.41:26656,bcc2d07a14a8a0b3aa202e9ac106dec0bef91fda@13.55.247.60:26656,663dec65b754aceef5fcccb864048305208e7eb2@34.248.110.88:26656,0120f0a48e7e81cc98829ef4f5b39480f11ecd5a@52.76.185.17:26656,6535497f0152293d773108774a705b86c2249a9c@44.238.121.65:26656,fdf5cffc2b20a20fab954d3b6785e9c382762d14@34.255.133.248:26656,8c240f71f9e060277ce18dc09d82d3bbb05d1972@13.211.43.177:26656,9fbcb6bd5a7f20a716564157c4f6296d2faf5f64@18.138.208.95:26656' minimum_gas_price: '0.001rowan' +custom_port_prefix: 32 + +# [Optional] Cosmos exporter +denom: rowan +denom_prefix: sif + +# [Optional] Snapshot +snapshot_server: 1 +snapshot_hour: 1 +snapshot_minute: 00 diff --git a/group_vars/sifchain_testnet.yml b/group_vars/sifchain_testnet.yml deleted file mode 100644 index 23aa355d..00000000 --- a/group_vars/sifchain_testnet.yml +++ /dev/null @@ -1,8 +0,0 @@ -network: sifnoded -folder: '.sifnoded' -daemon: sifnoded -chain_id: sifchain-testnet-1 -node_version: testnet-0.9.0 -repo: https://github.com/Sifchain/sifnode.git -genesis: 'https://raw.githubusercontent.com/Sifchain/networks/master/testnet/sifchain-testnet-1/genesis.json.gz' -peers: 'b4caebe07ab25126e4e6053bf955833198f18ed0@54.216.30.38:26656,b6f113a30e7019b034e8b31cd2541aebebaacb60@54.66.212.111:26656,ffcc2fab592d512eca7f903fd494d85a93e19cfe@122.248.219.121:26656,a2864737f01d3977211e2ea624dd348595dd4f73@3.222.8.87:26656' diff --git a/group_vars/sommelier_mainnet.yml b/group_vars/sommelier.yml similarity index 82% rename from group_vars/sommelier_mainnet.yml rename to group_vars/sommelier.yml index 7042056a..06d105a6 100644 --- a/group_vars/sommelier_mainnet.yml +++ b/group_vars/sommelier.yml @@ -2,7 +2,17 @@ network: sommelier folder: '.sommelier' daemon: 'sommelier' chain_id: sommelier-3 -node_version: 'v3.1.1' +node_version: 'v4.0.1' repo: 'https://github.com/PeggyJV/sommelier' genesis: 'https://raw.githubusercontent.com/PeggyJV/sommelier/main/contrib/mainnet/sommelier-3/genesis.json' peers: '877561c4a8f9e66548d467a4057ba4789e586c3d@185.146.148.109:26656,759a61eade50cb48e2a6f974fab679096d1de916@35.233.221.80:26656,14ac13745a563876740b72637ab9a3539542fe2b@35.247.55.203:26656,bebf759f5706137168e3a7158e4495865a04cca9@35.230.37.28:26656,80340e014f8433ce023b93e0e8644feac9ac6dd0@3.65.177.133:26656,b23c862feba8ef4179bb8b9e37523e65c432c810@sommelier.standardcryptovc.com:26656,a96d69179e4b72f728b9dd4dbe40400701515fee@80.64.208.51:26656,048d66b8b8b1b6bf5d088dd04e91cc52d38a09d8@35.215.30.79:26656,b2900b9e964c12dc2de17fd974bb452bca894f83@51.79.231.186:26656,e1d1dd22a63b1899ac51c8c96416f77c8ef98231@34.75.110.74:26656' +custom_port_prefix: 41 + +# [Optional] Cosmos exporter +denom: somm +denom_prefix: somm + +# [Optional] Snapshot +snapshot_server: 2 +snapshot_hour: 3 +snapshot_minute: 30 diff --git a/group_vars/stargaze_mainnet.yml b/group_vars/stargaze.yml similarity index 81% rename from group_vars/stargaze_mainnet.yml rename to group_vars/stargaze.yml index 41940cb7..925a17e3 100644 --- a/group_vars/stargaze_mainnet.yml +++ b/group_vars/stargaze.yml @@ -2,14 +2,19 @@ network: stargaze folder: '.starsd' daemon: starsd chain_id: stargaze-1 -node_version: 'v1.0.0' +node_version: 'v5.0.0' repo: 'https://github.com/public-awesome/stargaze' genesis: 'https://raw.githubusercontent.com/public-awesome/mainnet/main/stargaze-1/genesis.tar.gz' +genesis_processing: targz peers: '1d73521c565b37a53038fc730bcd207a3db361b6@144.91.91.30:26656,524dd60331c56d198deabbb70238c2cc69119cca@161.97.122.216:36656,0c9ebd7b36f96d0279dbf6dc38572f5797c096c1@65.108.42.168:26656,320e4b81ab327dd2593a39de0d3ae718fdb9347c@176.9.168.220:26656,b8eeb6d99594c218c0373d8ec4c1e81031b92198@68.183.92.46:26656,387c32677c54dd4627366ffdf8e2dda68e71af69@54.193.168.147:26656,e28635dc537dce1d6f1cf44b7b335a530d923fa1@15.165.94.246:26656,413562a502b4a47ec3375bfae6aa01bc47bc6979@204.236.141.188:26656,ca93b9bed1a98184f36ca31a6cc6dad2e289a2d4@94.130.165.103:26656' seeds: 'd5fc4f479c4e212c96dff5704bb2468ea03b8ae3@sg-seed.blockpane.com:26656,babc3f3f7804933265ec9c40ad94f4da8e9e0017@stargaze.seed.rhinostake.com:16656' +custom_port_prefix: 37 -# For auto compound script -denomination: 'ustars' -threshold: 1000000 -transaction_extra_flag: '' -delegated_validator: 'starsvaloper1qe8uuf5x69c526h4nzxwv4ltftr73v7qlh8sg9' +# [Optional] Cosmos exporter +denom: stars +denom_prefix: stars + +# [Optional] Snapshot +snapshot_server: 2 +snapshot_hour: 2 +snapshot_minute: 30 diff --git a/group_vars/terra_mainnet.yml b/group_vars/terra_mainnet.yml deleted file mode 100644 index e6599b67..00000000 --- a/group_vars/terra_mainnet.yml +++ /dev/null @@ -1,10 +0,0 @@ -network: terra -folder: '.terra' -daemon: terrad -chain_id: terra -node_version: v0.5.11-oracle -repo: https://github.com/terra-money/core -genesis: 'https://columbus-genesis.s3.ap-northeast-1.amazonaws.com/columbus-5-genesis.json' -peers: '' -minimum_gas_price: '0.01133uluna,0.15uusd,0.104938usdr,169.77ukrw,428.571umnt,0.125ueur,0.98ucny,16.37ujpy,0.11ugbp,10.88uinr,0.19ucad,0.14uchf,0.19uaud,0.2usgd,4.62uthb,1.25usek,1.25unok,0.9udkk,2180.0uidr,7.6uphp,1.17uhkd' -address_book: 'https://network.terra.dev/addrbook.json' diff --git a/group_vars/terra_testnet.yml b/group_vars/terra_testnet.yml deleted file mode 100644 index 716c29c4..00000000 --- a/group_vars/terra_testnet.yml +++ /dev/null @@ -1,10 +0,0 @@ -network: terra -folder: '.terra' -daemon: terrad -chain_id: terra -node_version: v0.5.11-oracle -repo: https://github.com/terra-money/core -genesis: 'https://raw.githubusercontent.com/terra-money/testnet/master/bombay-12/genesis.json' -peers: '' -minimum_gas_price: '0.01133uluna,0.15uusd,0.104938usdr,169.77ukrw,428.571umnt,0.125ueur,0.98ucny,16.37ujpy,0.11ugbp,10.88uinr,0.19ucad,0.14uchf,0.19uaud,0.2usgd,4.62uthb,1.25usek,1.25unok,0.9udkk,2180.0uidr,7.6uphp,1.17uhkd' -address_book: 'https://raw.githubusercontent.com/terra-money/testnet/master/bombay-12/addrbook.json' diff --git a/group_vars/testnet_vars/testnet_axelar.yml b/group_vars/testnet_vars/testnet_axelar.yml new file mode 100644 index 00000000..c57da3d4 --- /dev/null +++ b/group_vars/testnet_vars/testnet_axelar.yml @@ -0,0 +1,10 @@ +network: axelar +folder: '.axelar' +daemon: axelard +chain_id: 'axelar-testnet-casablanca-1' +binary: 'https://github.com/axelarnetwork/axelar-core/releases/download/v0.17.3/axelard-linux-amd64-v0.17.3' +config_file: 'https://raw.githubusercontent.com/axelarnetwork/axelarate-community/main/configuration/config.toml' +app_file: 'https://raw.githubusercontent.com/axelarnetwork/axelarate-community/main/configuration/app.toml' +genesis: 'https://raw.githubusercontent.com/axelarnetwork/axelarate-community/main/resources/testnet-2/genesis.json' +seeds: '95c90e528c54e2ebaa0427e034c8facc75e6da3f@aa96e735f68464b09955026986b15632-1865235038.us-east-2.elb.amazonaws.com:26656' +custom_port_prefix: 51 diff --git a/group_vars/testnet_vars/testnet_comdex.yml b/group_vars/testnet_vars/testnet_comdex.yml new file mode 100644 index 00000000..cd03cad6 --- /dev/null +++ b/group_vars/testnet_vars/testnet_comdex.yml @@ -0,0 +1,10 @@ +network: comdex +folder: '.comdex' +daemon: comdex +chain_id: comets-test +node_version: v0.1.0 +repo: https://github.com/comdex-official/comdex.git +genesis: 'https://raw.githubusercontent.com/comdex-official/networks/main/testnet/comets-test/genesis_final.json' +peers: '3659590cd1466671a49421089e55f1392e1cad0e@15.207.189.210:26656,8b1ccf5cf3a3ba65ee074f46ea8c6c164d867104@52.201.166.91:26656,5307ce50bd8a6f7bb5a922e3f7109b5f3241c425@13.51.118.56:26656,9c25a7ab94a315f683c3693e17aec6b2c91c851c@52.77.115.73:26656' +minimum_gas_price: '0.2ucmdx' +custom_port_prefix: 31 diff --git a/group_vars/testnet_vars/testnet_defund.yml b/group_vars/testnet_vars/testnet_defund.yml new file mode 100644 index 00000000..84256085 --- /dev/null +++ b/group_vars/testnet_vars/testnet_defund.yml @@ -0,0 +1,10 @@ +network: defund +folder: '.defund' +daemon: defundd +chain_id: defund-private-1 +node_version: v0.0.2 +repo: https://github.com/defund-labs/defund +genesis: 'https://raw.githubusercontent.com/defund-labs/defund/v0.0.2/testnet/private/genesis.json' +peers: '111ba4e5ae97d5f294294ea6ca03c17506465ec5@208.68.39.221:26656,f114c02efc5aa7ee3ee6733d806a1fae2fbfb66b@5.189.178.222:46656,8980faac5295875a5ecd987a99392b9da56c9848@85.10.216.151:26656,3c3170f0bcbdcc1bef12ed7b92e8e03d634adf4e@65.108.103.236:27656' +seeds: '8e1590558d8fede2f8c9405b7ef550ff455ce842@51.79.30.9:26656,bfffaf3b2c38292bd0aa2a3efe59f210f49b5793@51.91.208.71:26656,106c6974096ca8224f20a85396155979dbd2fb09@198.244.141.176:26656' +custom_port_prefix: 12 diff --git a/group_vars/testnet_vars/testnet_evmos.yml b/group_vars/testnet_vars/testnet_evmos.yml new file mode 100644 index 00000000..e173f0bb --- /dev/null +++ b/group_vars/testnet_vars/testnet_evmos.yml @@ -0,0 +1,11 @@ +network: evmos +folder: '.evmosd' +daemon: evmosd +chain_id: evmos_9000-4 +node_version: v4.0.1 +repo: https://github.com/tharsis/evmos +genesis: 'https://github.com/tharsis/testnets/blob/main/evmos_9000-4/genesis.zip?raw=true' +genesis_processing: zip +peers: '3a6b22e1569d9f85e9e97d1d204a1c457d860926@bd-evmos-testnet-seed-node-01.bdnodes.net:26656' +seeds: '3a6b22e1569d9f85e9e97d1d204a1c457d860926@bd-evmos-testnet-seed-node-01.bdnodes.net:26656' +custom_port_prefix: 34 diff --git a/group_vars/testnet_vars/testnet_gitopia.yml b/group_vars/testnet_vars/testnet_gitopia.yml new file mode 100644 index 00000000..f2c9fc1e --- /dev/null +++ b/group_vars/testnet_vars/testnet_gitopia.yml @@ -0,0 +1,10 @@ +network: gitopia +folder: '.gitopia' +daemon: gitopiad +chain_id: gitopia-janus-testnet-1 +node_version: v0.13.0 +repo: gitopia://gitopia1dlpc7ps63kj5v0kn5v8eq9sn2n8v8r5z9jmwff/gitopia +genesis: 'missing_genesis' +peers: 'missing_peers' +minimum_gas_price: '0.001utlore' +custom_port_prefix: 13 diff --git a/group_vars/testnet_vars/testnet_kichain.yml b/group_vars/testnet_vars/testnet_kichain.yml new file mode 100644 index 00000000..d628a10b --- /dev/null +++ b/group_vars/testnet_vars/testnet_kichain.yml @@ -0,0 +1,9 @@ +network: kichain +folder: '.kid' +daemon: kid +chain_id: kichain-t-4 +node_version: 2.0.0-testnet +repo: https://github.com/KiFoundation/ki-tools.git +genesis: 'https://raw.githubusercontent.com/KiFoundation/ki-networks/v0.1/Testnet/kichain-t-4/genesis.json' +peers: '46b25d81510f8dcc535ca0924961b266e4f59244@135.125.183.94:26656,ada3bbf64f963e764bfe003276354bd121e80ae0@95.111.248.200:26656,276f6fb420b3595b63c2a13d35868cb530a31578@65.21.159.19:26656,7e5710ee0b1576a78a21a89e1588b6c95ee69873@194.163.137.193:26656' +custom_port_prefix: 35 diff --git a/group_vars/testnet_vars/testnet_kyve.yml b/group_vars/testnet_vars/testnet_kyve.yml new file mode 100644 index 00000000..30f0d753 --- /dev/null +++ b/group_vars/testnet_vars/testnet_kyve.yml @@ -0,0 +1,12 @@ +network: kyve +folder: '.kyve' +daemon: chaind +chain_id: korellia +node_version: v0.0.1 +repo: https://github.com/KYVENetwork/chain +binary: https://github.com/KYVENetwork/chain/releases/download/v0.0.1/chain_linux_amd64.tar.gz +binary_processing: targz +genesis: 'https://github.com/KYVENetwork/chain/releases/download/v0.0.1/genesis.json' +peers: '67cd50cac0eff503a7c9efd537d369cc7a3ebe96@34.83.162.159:26656,08f30f7119ae1317082d50fac6a08e6f2400126f@34.83.251.68:26656,08840edc6775bd7a298269f3343c554e5af0359f@35.202.178.94:26656,2e5320f284b65e388d968626825f3ffbf3f3f985@34.97.181.238:26656' +seeds: 'e56574f922ff41c68b80700266dfc9e01ecae383@3.73.27.185:26656' +custom_port_prefix: 10 diff --git a/group_vars/testnet_vars/testnet_umee.yml b/group_vars/testnet_vars/testnet_umee.yml new file mode 100644 index 00000000..43cac1c7 --- /dev/null +++ b/group_vars/testnet_vars/testnet_umee.yml @@ -0,0 +1,9 @@ +network: umee +folder: '.umee' +daemon: umeed +chain_id: umeemania-1 +node_version: v2.0.1 +repo: https://github.com/umee-network/umee.git +genesis: 'https://raw.githubusercontent.com/umee-network/testnets/main/networks/umeemania-1/genesis.json' +peers: '67cd50cac0eff503a7c9efd537d369cc7a3ebe96@34.83.162.159:26656,08f30f7119ae1317082d50fac6a08e6f2400126f@34.83.251.68:26656,08840edc6775bd7a298269f3343c554e5af0359f@35.202.178.94:26656,2e5320f284b65e388d968626825f3ffbf3f3f985@34.97.181.238:26656' +custom_port_prefix: 36 diff --git a/group_vars/umee_mainnet.yml b/group_vars/umee.yml similarity index 93% rename from group_vars/umee_mainnet.yml rename to group_vars/umee.yml index e0c70ccf..d973695c 100644 --- a/group_vars/umee_mainnet.yml +++ b/group_vars/umee.yml @@ -7,3 +7,13 @@ repo: https://github.com/umee-network/umee.git genesis: 'https://github.com/umee-network/mainnet/raw/main/genesis.json' peers: '06169345b4ae8a59f5132bae78a63733767dc952@51.195.60.123:26656,8b6baf477cd6c5fde18573a57767e0bb0083a8ce@116.202.36.138:26656,f00230b900b2e03a0ebfb0cec024bc0229f4043f@135.181.223.194:26656,31c2b4851604cb0f88909116bc2029b2af392767@194.163.166.56:26656,e324ca5fad08769325921ed042b76bdb1df41e12@162.55.131.220:26656,4720fe172f90026e72723c38d75f4f20611bc792@88.198.70.2:26656,7d2b275cea5dc30a90c9657220b2ef9cf02dfe87@157.90.179.182:26656,d9c0fc2da0bf7b22b92f3cd89b4e98ff089fe446@65.21.132.226:56656,ae41472c094737bef61450c11f1b4978c0a3550d@18.144.151.186:26656,f6b22c8d26370afd0b3e5e78697e19f7a2fb8c73@144.217.74.27:26656,d0659fc256c3e6f99def7a7b16500097065a67e9@195.201.170.172:26656,5ec673b49eea3198f7c0df0782d62e0b7a7d5b9f@51.195.60.117:26656,cce3ded2638edcaf804e4fa18a4a988cd19e9ee1@148.251.152.54:26656,66377bf9c7d2106f8fb2814d105b934e2cf9bde8@78.46.66.6:26656,6dfab3a8a1d692c6270758757cb2026005a10622@65.108.106.252:26656,b7c7e560f13988dc00c6892c813ff6c459521917@44.231.119.182:26656,60349afbb66bfa51d466a1807b6034c8a8446b41@34.215.214.32:26656,96391162797cbdf10982cda8866913be471fbdd4@44.230.43.94:26656,9f86f8acfa46ac5380796328fe0d7daff5038f56@3.37.216.115:26656,629ce04f882462999de6791b0c4010dba5dafaaf@142.132.201.53:26656,77F54319D6F62C17036CA71B3F88365F652BF79F@169.197.142.149:26656,912b7279934187f8c94eacdc21a2e0bdee245eef@54.241.232.181:26656,94a928e1f5ebbc5fae12400c7d8bbdad8b197ad2@52.79.49.253:26656,870c0a786dc941f8ebecd2772c41c014b6cf8899@51.210.118.65:26656,47dd32dc5aa926ff76d8e53a4bc1fcf596cb254c@38.242.205.238:26656,efbcd2de6981fa7f692771e1b845c780c310e2fe@176.9.17.230:26656,08554ecf7c4c33cc809bceefc044c9bd23b933bd@34.146.11.20:26656,da42a6b213dd0e0dcd3b5d6feb662d7bf7a8cee6@34.93.115.217:26656,22d50ffd5abb3a2bef8186816d1aa914092c5ecf@35.189.2.114:26656,f1dc58164af33f2db6c5a5bd6b2646399b18bbb4@35.187.48.177:26656,6b785fc3a088de3a5e8d222a980936f2187b8c56@34.65.213.164:26656,1d85a200deaefa6ceb20328a0fd83787ce329aa6@34.152.15.182:26656,b3f810438aa53685bba63705f3c29ec122e1e40c@34.127.76.180:26656,831e037739cb6047f9b2d28e38c4cd7e7a550d04@35.199.126.245:26656' minimum_gas_price: '0.001uumee' +custom_port_prefix: 36 + +# [Optional] Cosmos exporter +denom: umee +denom_prefix: umee + +# [Optional] Snapshot +snapshot_server: 2 +snapshot_hour: 2 +snapshot_minute: 0 diff --git a/horcrux.yml b/horcrux.yml deleted file mode 100644 index 17972656..00000000 --- a/horcrux.yml +++ /dev/null @@ -1,6 +0,0 @@ ---- -- name: Install node - hosts: '{{ target }}' - gather_facts: false - roles: - - horcrux_install diff --git a/injective.yml b/injective.yml deleted file mode 100644 index 2fcd1200..00000000 --- a/injective.yml +++ /dev/null @@ -1,14 +0,0 @@ ---- -- name: Prepare - hosts: '{{ target }}' - become: true - gather_facts: false - roles: - - prepare - -- name: Install node - hosts: '{{ target }}' - gather_facts: false - roles: - - initialize_injective - - launch_node diff --git a/inventory.sample b/inventory.sample index 5c840a9d..c575a778 100644 --- a/inventory.sample +++ b/inventory.sample @@ -1,20 +1,23 @@ -# Here we use Juno as an example setup. You can copy the structure for other networks -[juno_mainnet_main] -10.0.0.1 validator_name=YOUR_NODE_MONIKER log_name=YOUR_LOG_NAME +[juno] +juno_main ansible_host=10.0.0.1 type=main +juno_backup ansible_host=10.0.0.2 type=backup prepare=false +juno_relayer ansible_host=10.0.0.3 type=relayer prepare=false -[juno_mainnet_backup] -10.0.0.2 validator_name=YOUR_BACKUP_NODE_MONIKER log_name=YOUR_BACKUP_LOG_NAME +[backups] +backup_1 ansible_host=10.0.0.2 -[juno_mainnet:children] -juno_mainnet_main -juno_mainnet_backup +[relayers] +relayer_1 ansible_host=10.0.0.3 [all:vars] ansible_user=ubuntu ansible_port=22 ansible_ssh_private_key_file="~/.ssh/id_rsa" -user_dir="/home/{{ ansible_user }}" +var_file="group_vars/{{ network }}.yml" +user_dir="/home/{{ansible_user}}" path="/sbin:/usr/sbin:/bin:/usr/bin:/usr/local/bin:/usr/local/go/bin:{{ user_dir }}/go/bin" node_exporter=true promtail=true log_monitor=http://10.0.0.100:3100 +node_name="BRAND-{{ network }}-{{ type }}" +log_name="PREFIX_{{ network }}_{{ type }}" diff --git a/juno.yml b/juno.yml deleted file mode 100644 index 7f493cf8..00000000 --- a/juno.yml +++ /dev/null @@ -1,15 +0,0 @@ ---- -- name: Prepare - hosts: '{{ target }}' - become: true - gather_facts: false - roles: - - prepare - -- name: Install node - hosts: '{{ target }}' - gather_facts: false - roles: - - standard_node_installation - - initialize_juno - - launch_node diff --git a/kava.yml b/kava.yml deleted file mode 100644 index 760279ae..00000000 --- a/kava.yml +++ /dev/null @@ -1,15 +0,0 @@ ---- -- name: Prepare - hosts: '{{ target }}' - become: true - gather_facts: false - roles: - - prepare - -- name: Install node - hosts: '{{ target }}' - gather_facts: false - roles: - - standard_node_installation - - initialize_kava - - launch_node diff --git a/kichain.yml b/kichain.yml deleted file mode 100644 index b6a00463..00000000 --- a/kichain.yml +++ /dev/null @@ -1,15 +0,0 @@ ---- -- name: Prepare - hosts: '{{ target }}' - become: true - gather_facts: false - roles: - - prepare - -- name: Install node - hosts: '{{ target }}' - gather_facts: false - roles: - - standard_node_installation - - initialize_kichain - - launch_node diff --git a/konstellation.yml b/konstellation.yml deleted file mode 100644 index 7799c1a7..00000000 --- a/konstellation.yml +++ /dev/null @@ -1,15 +0,0 @@ ---- -- name: Prepare - hosts: '{{ target }}' - become: true - gather_facts: false - roles: - - prepare - -- name: Install node - hosts: '{{ target }}' - gather_facts: false - roles: - - standard_node_installation - - initialize_konstellation - - launch_node diff --git a/lum.yml b/lum.yml deleted file mode 100644 index 1f48f883..00000000 --- a/lum.yml +++ /dev/null @@ -1,14 +0,0 @@ ---- -- name: Prepare - hosts: '{{ target }}' - become: true - gather_facts: false - roles: - - prepare - -- name: Install node - hosts: '{{ target }}' - gather_facts: false - roles: - - initialize_lum - - launch_node diff --git a/akash.yml b/main.yml similarity index 55% rename from akash.yml rename to main.yml index e563c024..96fc4254 100644 --- a/akash.yml +++ b/main.yml @@ -6,10 +6,13 @@ roles: - prepare -- name: Install node +- name: Main hosts: '{{ target }}' gather_facts: false + vars_files: + - '{{ var_file }}' roles: - - standard_node_installation - - initialize_akash - - launch_node + - node_install + - node_initialize + - node_configure + - node_launch diff --git a/meme.yml b/meme.yml deleted file mode 100644 index dfbc3ed4..00000000 --- a/meme.yml +++ /dev/null @@ -1,15 +0,0 @@ ---- -- name: Prepare - hosts: '{{ target }}' - become: true - gather_facts: false - roles: - - prepare - -- name: Install node - hosts: '{{ target }}' - gather_facts: false - roles: - - standard_node_installation - - initialize_meme - - launch_node diff --git a/nym.yml b/nym.yml deleted file mode 100644 index da029e15..00000000 --- a/nym.yml +++ /dev/null @@ -1,16 +0,0 @@ ---- -- name: Prepare - hosts: '{{ target }}' - become: true - gather_facts: false - roles: - - prepare - -# Pause: you will manually install the node here because Nym binary installation is not conventional - -- name: Install node - hosts: '{{ target }}' - gather_facts: false - roles: - - initialize_nym - - launch_node diff --git a/osmosis.yml b/osmosis.yml deleted file mode 100644 index 17d10a14..00000000 --- a/osmosis.yml +++ /dev/null @@ -1,15 +0,0 @@ ---- -- name: Prepare - hosts: '{{ target }}' - become: true - gather_facts: false - roles: - - prepare - -- name: Install node - hosts: '{{ target }}' - gather_facts: false - roles: - - standard_node_installation - - initialize_osmosis - - launch_node diff --git a/roles/auto_compound/tasks/main.yml b/roles/auto_compound/tasks/main.yml deleted file mode 100644 index d85c5cb1..00000000 --- a/roles/auto_compound/tasks/main.yml +++ /dev/null @@ -1,8 +0,0 @@ ---- -- name: Copy auto_compound file - template: - src: 'auto_compound.sh.j2' - dest: '{{ user_dir }}/auto_compound.sh' - owner: '{{ ansible_user }}' - group: '{{ ansible_user }}' - mode: '0700' diff --git a/roles/auto_compound/templates/auto_compound.sh.j2 b/roles/auto_compound/templates/auto_compound.sh.j2 deleted file mode 100644 index f6772df3..00000000 --- a/roles/auto_compound/templates/auto_compound.sh.j2 +++ /dev/null @@ -1,65 +0,0 @@ -#!/bin/bash -e - -# Constants -KEY=${1} -PASSPHRASE=${2} -DENOM="{{ denomination }}" -THRESHOLD="{{ threshold }}" -BINARY="{{ daemon }}" -CHAIN_ID="{{ chain_id }}" -TRANSACNTION_EXTRA_FLAG="{{ transaction_extra_flag }}" - -# Get account address -KEY_STATUS=$(echo ${PASSPHRASE} | $BINARY keys show ${KEY} --output json) -ACCOUNT_ADDRESS=$(echo ${KEY_STATUS} | jq -r ".address") - -# Get validator operator -VALIDATOR_STATUS=$(echo ${PASSPHRASE} | $BINARY keys show ${KEY} --bech val --output json) -VALIDATOR=$(echo ${VALIDATOR_STATUS} | jq -r ".address") - -# Get account balance -ACCOUNT_BANK=$($BINARY q bank balances ${ACCOUNT_ADDRESS} --output json) -ACCOUNT_BALANCE=$(echo ${ACCOUNT_BANK} | jq -r ".balances[] | select(.denom == \"${DENOM}\") | .amount" || true) - -# Get rewards amount excluding commission -REWARDS_STATUS=$($BINARY q distribution rewards ${ACCOUNT_ADDRESS} ${VALIDATOR} --output json) -REWARDS_BALANCE=$(echo ${REWARDS_STATUS} | jq -r ".rewards[] | select(.denom == \"${DENOM}\") | .amount" || true) -REWARDS_BALANCE=${REWARDS_BALANCE%.*} - -# Some debug info just in case -echo "======================================================" -echo "ACCOUNT: ${KEY}" -echo "ACCOUNT_ADDRESS: ${ACCOUNT_ADDRESS}" -echo "VALIDATOR: ${VALIDATOR}" -echo "======================================================" -echo "ACCOUNT_BALANCE: ${ACCOUNT_BALANCE}${DENOM}" -echo "REWARDS_BALANCE: ${REWARDS_BALANCE}${DENOM}" -echo - -# Claim rewards if the amount is more than the threshold -if [ $REWARDS_BALANCE -gt $THRESHOLD ] -then - echo "Withdrawing rewards... ${REWARDS_BALANCE}${DENOM}" - echo ${PASSPHRASE} | $BINARY tx distribution withdraw-rewards ${VALIDATOR} --commission --yes --from ${KEY} --chain-id ${CHAIN_ID} ${TRANSACNTION_EXTRA_FLAG} --broadcast-mode async -fi - -# Sleep a bit for the transaction to propogate -sleep 20 - -# Get the new account balance -ACCOUNT_BANK_NEW=$($BINARY q bank balances ${ACCOUNT_ADDRESS} --output json) -ACCOUNT_BALANCE_NEW=$(echo ${ACCOUNT_BANK_NEW} | jq -r ".balances[] | select(.denom == \"${DENOM}\") | .amount" || true) - -# Some debug info -echo "======================================================" -echo "Account balance new: ${ACCOUNT_BALANCE_NEW}${DENOM} " -echo "======================================================" -echo - -# Delegate the maximum amount to compount the rewards if passing the threshold -if [ $ACCOUNT_BALANCE_NEW -gt $THRESHOLD ] -then - DELEGATION_AMOUNT=$((${ACCOUNT_BALANCE_NEW} - ${THRESHOLD})) - echo "delegating rewards... ${DELEGATION_AMOUNT}${DENOM}" - echo ${PASSPHRASE} | $BINARY tx staking delegate ${VALIDATOR} ${DELEGATION_AMOUNT}${DENOM} --yes --from ${KEY} --chain-id ${CHAIN_ID} ${TRANSACNTION_EXTRA_FLAG} --broadcast-mode async -fi diff --git a/roles/auto_compound_for_delegation/tasks/main.yml b/roles/auto_compound_for_delegation/tasks/main.yml deleted file mode 100644 index 4011e9d7..00000000 --- a/roles/auto_compound_for_delegation/tasks/main.yml +++ /dev/null @@ -1,8 +0,0 @@ ---- -- name: Copy auto_compound file - template: - src: 'auto_compound_for_delegation.sh.j2' - dest: '{{ user_dir }}/auto_compound_for_delegation.sh' - owner: '{{ ansible_user }}' - group: '{{ ansible_user }}' - mode: '0700' diff --git a/roles/auto_compound_for_delegation/templates/auto_compound_for_delegation.sh.j2 b/roles/auto_compound_for_delegation/templates/auto_compound_for_delegation.sh.j2 deleted file mode 100644 index 351f6a0c..00000000 --- a/roles/auto_compound_for_delegation/templates/auto_compound_for_delegation.sh.j2 +++ /dev/null @@ -1,62 +0,0 @@ -#!/bin/bash -e - -# Constants -KEY=${1} -PASSPHRASE=${2} -DENOM="{{ denomination }}" -THRESHOLD="{{ threshold}}" -BINARY="{{ daemon }}" -CHAIN_ID="{{ chain_id }}" -TRANSACNTION_EXTRA_FLAG="{{ transaction_extra_flag }}" -VALIDATOR="{{ delegated_validator }}" - -# Get account address -KEY_STATUS=$(echo ${PASSPHRASE} | $BINARY keys show ${KEY} --output json) -ACCOUNT_ADDRESS=$(echo ${KEY_STATUS} | jq -r ".address") - -# Get account balance -ACCOUNT_BANK=$($BINARY q bank balances ${ACCOUNT_ADDRESS} --output json) -ACCOUNT_BALANCE=$(echo ${ACCOUNT_BANK} | jq -r ".balances[] | select(.denom == \"${DENOM}\") | .amount" || true) - -# Get rewards amount excluding commission -REWARDS_STATUS=$($BINARY q distribution rewards ${ACCOUNT_ADDRESS} ${VALIDATOR} --output json) -REWARDS_BALANCE=$(echo ${REWARDS_STATUS} | jq -r ".rewards[] | select(.denom == \"${DENOM}\") | .amount" || true) -REWARDS_BALANCE=${REWARDS_BALANCE%.*} - -# Some debug info just in case -echo "======================================================" -echo "ACCOUNT: ${KEY}" -echo "ACCOUNT_ADDRESS: ${ACCOUNT_ADDRESS}" -echo "VALIDATOR: ${VALIDATOR}" -echo "======================================================" -echo "ACCOUNT_BALANCE: ${ACCOUNT_BALANCE}${DENOM}" -echo "REWARDS_BALANCE: ${REWARDS_BALANCE}${DENOM}" -echo - -# Claim rewards if the amount is more than the threshold -if [ $REWARDS_BALANCE -gt $THRESHOLD ] -then - echo "Withdrawing rewards... ${REWARDS_BALANCE}${DENOM}" - echo ${PASSPHRASE} | $BINARY tx distribution withdraw-rewards ${VALIDATOR} --yes --from ${KEY} --chain-id ${CHAIN_ID} ${TRANSACNTION_EXTRA_FLAG} --broadcast-mode async -fi - -# Sleep a bit for the transaction to propogate -sleep 20 - -# Get the new account balance -ACCOUNT_BANK_NEW=$($BINARY q bank balances ${ACCOUNT_ADDRESS} --output json) -ACCOUNT_BALANCE_NEW=$(echo ${ACCOUNT_BANK_NEW} | jq -r ".balances[] | select(.denom == \"${DENOM}\") | .amount" || true) - -# Some debug info -echo "======================================================" -echo "Account balance new: ${ACCOUNT_BALANCE_NEW}${DENOM} " -echo "======================================================" -echo - -# Delegate the maximum amount to compount the rewards if passing the threshold -if [ $ACCOUNT_BALANCE_NEW -gt $THRESHOLD ] -then - DELEGATION_AMOUNT=$((${ACCOUNT_BALANCE_NEW} - ${THRESHOLD})) - echo "delegating rewards... ${DELEGATION_AMOUNT}${DENOM}" - echo ${PASSPHRASE} | $BINARY tx staking delegate ${VALIDATOR} ${DELEGATION_AMOUNT}${DENOM} --yes --from ${KEY} --chain-id ${CHAIN_ID} ${TRANSACNTION_EXTRA_FLAG} --broadcast-mode async -fi diff --git a/roles/horcrux_install/tasks/main.yml b/roles/horcrux_install/tasks/main.yml deleted file mode 100644 index f5d0cf4e..00000000 --- a/roles/horcrux_install/tasks/main.yml +++ /dev/null @@ -1,40 +0,0 @@ ---- -- name: Make sure the folder does not exist - file: - state: absent - path: '{{ user_dir }}/horcrux' - -- name: Clone horcrux repo - git: - repo: '{{ horcrux_repo }}' - dest: '{{ user_dir }}/horcrux' - -- name: Install horcrux - command: '{{ item }}' - args: - chdir: '{{ user_dir }}/horcrux' - with_items: - - 'git fetch' - - 'git checkout {{ horcrux_version }}' - - 'make install' - environment: - PATH: '{{ path }}' - GOPATH: '{{ user_dir }}/go' - -- name: Copy horcrux service file - become: true - template: - src: 'horcrux.service.j2' - dest: '/etc/systemd/system/horcrux.service' - owner: root - group: root - mode: 600 - -- name: stop horcrux service - become: true - systemd: - name: horcrux - state: stopped - daemon_reload: true - enabled: true - changed_when: false diff --git a/roles/horcrux_install/templates/horcrux.service.j2 b/roles/horcrux_install/templates/horcrux.service.j2 deleted file mode 100644 index adaf6c28..00000000 --- a/roles/horcrux_install/templates/horcrux.service.j2 +++ /dev/null @@ -1,15 +0,0 @@ -[Unit] -Description=MPC Signer node -After=network.target - -[Service] -Type=simple -User={{ ansible_user }} -WorkingDirectory={{ user_dir }} -ExecStart={{ user_dir }}/go/bin/horcrux cosigner start -Restart=on-failure -RestartSec=3 -LimitNOFILE=4096 - -[Install] -WantedBy=multi-user.target diff --git a/roles/initialize_akash/tasks/main.yml b/roles/initialize_akash/tasks/main.yml deleted file mode 100644 index 73134166..00000000 --- a/roles/initialize_akash/tasks/main.yml +++ /dev/null @@ -1,25 +0,0 @@ ---- -- name: Initialize Node - command: '{{ daemon }} init {{ validator_name }} --chain-id {{ chain_id }} -o' - environment: - PATH: '{{ path }}' - -- name: Download genesis file - get_url: - url: '{{ genesis }}' - dest: '{{ user_dir }}/{{ folder }}/config/genesis.json' - mode: '0644' - -- name: Update minimum gas price on config file - lineinfile: - path: '{{ user_dir }}/{{ folder }}/config/app.toml' - regexp: 'minimum-gas-prices ' - line: 'minimum-gas-prices = "{{ minimum_gas_price }}"' - state: present - -- name: Update seeds on the config.toml file - lineinfile: - path: '{{ user_dir }}/{{ folder }}/config/config.toml' - regexp: 'seeds = ""' - line: 'seeds = "{{ seeds }}"' - state: present diff --git a/roles/initialize_asset_mantle/tasks/main.yml b/roles/initialize_asset_mantle/tasks/main.yml deleted file mode 100644 index d4e231ba..00000000 --- a/roles/initialize_asset_mantle/tasks/main.yml +++ /dev/null @@ -1,25 +0,0 @@ ---- -- name: Initialize Node - command: '{{ daemon }} init {{ validator_name }} --chain-id {{ chain_id }} -o' - environment: - PATH: '{{ path }}' - -- name: Download genesis file - get_url: - url: '{{ genesis }}' - dest: '{{ user_dir }}/{{ folder }}/config/genesis.json' - mode: '0644' - -- name: Update minimum gas price on config file - lineinfile: - path: '{{ user_dir }}/{{ folder }}/config/app.toml' - regexp: 'minimum-gas-prices ' - line: 'minimum-gas-prices = "{{ minimum_gas_price }}"' - state: present - -- name: Update the config.toml file - lineinfile: - path: '{{ user_dir }}/{{ folder }}/config/config.toml' - regexp: 'persistent_peers = ""' - line: 'persistent_peers = "{{ peers }}"' - state: present diff --git a/roles/initialize_bitcanna/tasks/main.yml b/roles/initialize_bitcanna/tasks/main.yml deleted file mode 100644 index 0a311a0c..00000000 --- a/roles/initialize_bitcanna/tasks/main.yml +++ /dev/null @@ -1,32 +0,0 @@ ---- -- name: Initialize Node - command: '{{ daemon }} init {{ validator_name }} --chain-id {{ chain_id }} -o' - environment: - PATH: '{{ path }}' - -- name: Download genesis file - get_url: - url: '{{ genesis }}' - dest: '{{ user_dir }}/{{ folder }}/config/genesis.json' - mode: '0644' - -- name: Update minimum gas price on config file - lineinfile: - path: '{{ user_dir }}/{{ folder }}/config/app.toml' - regexp: 'minimum-gas-prices ' - line: 'minimum-gas-prices = "{{ minimum_gas_price }}"' - state: present - -- name: Update seeds on the config.toml file - lineinfile: - path: '{{ user_dir }}/{{ folder }}/config/config.toml' - regexp: 'seeds = ""' - line: 'seeds = "{{ seeds }}"' - state: present - -- name: Update the config.toml file - lineinfile: - path: '{{ user_dir }}/{{ folder }}/config/config.toml' - regexp: 'persistent_peers = ""' - line: 'persistent_peers = "{{ peers }}"' - state: present diff --git a/roles/initialize_cerberus/tasks/main.yml b/roles/initialize_cerberus/tasks/main.yml deleted file mode 100644 index 7dde19ba..00000000 --- a/roles/initialize_cerberus/tasks/main.yml +++ /dev/null @@ -1,32 +0,0 @@ ---- -- name: Initialize Node - command: '{{ daemon }} init {{ validator_name }} --chain-id {{ chain_id }} -o' - environment: - PATH: '{{ path }}' - -- name: Download genesis file - get_url: - url: '{{ genesis }}' - dest: '{{ user_dir }}/{{ folder }}/config/genesis.json' - mode: '0644' - -- name: Update seeds on the config.toml file - lineinfile: - path: '{{ user_dir }}/{{ folder }}/config/config.toml' - regexp: 'seeds = ""' - line: 'seeds = "{{ seeds }}"' - state: present - -- name: Update the config.toml file - lineinfile: - path: '{{ user_dir }}/{{ folder }}/config/config.toml' - regexp: 'persistent_peers = ""' - line: 'persistent_peers = "{{ peers }}"' - state: present - -- name: Update minimum gas price on config file - lineinfile: - path: '{{ user_dir }}/{{ folder }}/config/app.toml' - regexp: 'minimum-gas-prices ' - line: 'minimum-gas-prices = "{{ minimum_gas_price }}"' - state: present diff --git a/roles/initialize_certik/tasks/main.yml b/roles/initialize_certik/tasks/main.yml deleted file mode 100644 index c497a31e..00000000 --- a/roles/initialize_certik/tasks/main.yml +++ /dev/null @@ -1,18 +0,0 @@ ---- -- name: Initialize Node - command: '{{ daemon }} init {{ validator_name }} --chain-id {{ chain_id }} -o' - environment: - PATH: '{{ path }}' - -- name: Download genesis file - get_url: - url: '{{ genesis }}' - dest: '{{ user_dir }}/{{ folder }}/config/genesis.json' - mode: '0644' - -- name: Update seeds on the config.toml file - lineinfile: - path: '{{ user_dir }}/{{ folder }}/config/config.toml' - regexp: 'seeds = ""' - line: 'seeds = "{{ seeds }}"' - state: present diff --git a/roles/initialize_chihuahua/tasks/main.yml b/roles/initialize_chihuahua/tasks/main.yml deleted file mode 100644 index 7dde19ba..00000000 --- a/roles/initialize_chihuahua/tasks/main.yml +++ /dev/null @@ -1,32 +0,0 @@ ---- -- name: Initialize Node - command: '{{ daemon }} init {{ validator_name }} --chain-id {{ chain_id }} -o' - environment: - PATH: '{{ path }}' - -- name: Download genesis file - get_url: - url: '{{ genesis }}' - dest: '{{ user_dir }}/{{ folder }}/config/genesis.json' - mode: '0644' - -- name: Update seeds on the config.toml file - lineinfile: - path: '{{ user_dir }}/{{ folder }}/config/config.toml' - regexp: 'seeds = ""' - line: 'seeds = "{{ seeds }}"' - state: present - -- name: Update the config.toml file - lineinfile: - path: '{{ user_dir }}/{{ folder }}/config/config.toml' - regexp: 'persistent_peers = ""' - line: 'persistent_peers = "{{ peers }}"' - state: present - -- name: Update minimum gas price on config file - lineinfile: - path: '{{ user_dir }}/{{ folder }}/config/app.toml' - regexp: 'minimum-gas-prices ' - line: 'minimum-gas-prices = "{{ minimum_gas_price }}"' - state: present diff --git a/roles/initialize_comdex/tasks/main.yml b/roles/initialize_comdex/tasks/main.yml deleted file mode 100644 index 9963fbee..00000000 --- a/roles/initialize_comdex/tasks/main.yml +++ /dev/null @@ -1,32 +0,0 @@ ---- -- name: Initialize Node - command: '{{ daemon }} init {{ validator_name }} --chain-id {{ chain_id }} -o' - environment: - PATH: '{{ path }}' - -- name: Update minimum gas price on config file - lineinfile: - path: '{{ user_dir }}/{{ folder }}/config/app.toml' - regexp: 'minimum-gas-prices ' - line: 'minimum-gas-prices = "{{ minimum_gas_price }}"' - state: present - -- name: Update the config.toml file - lineinfile: - path: '{{ user_dir }}/{{ folder }}/config/config.toml' - regexp: 'persistent_peers = ""' - line: 'persistent_peers = "{{ peers }}"' - state: present - -- name: Download genesis file - get_url: - url: '{{ genesis }}' - dest: '{{ user_dir }}/{{ folder }}/config/genesis.json' - mode: '0644' - -- name: Update seeds on the config.toml file - lineinfile: - path: '{{ user_dir }}/{{ folder }}/config/config.toml' - regexp: 'seeds = ""' - line: 'seeds = "{{ seeds }}"' - state: present diff --git a/roles/initialize_cosmos/tasks/main.yml b/roles/initialize_cosmos/tasks/main.yml deleted file mode 100644 index f527bc58..00000000 --- a/roles/initialize_cosmos/tasks/main.yml +++ /dev/null @@ -1,40 +0,0 @@ ---- -- name: Initialize Node - command: '{{ daemon }} init {{ validator_name }} --chain-id {{ chain_id }} -o' - environment: - PATH: '{{ path }}' - -- name: Update minimum gas price on config file - lineinfile: - path: '{{ user_dir }}/{{ folder }}/config/app.toml' - regexp: 'minimum-gas-prices ' - line: 'minimum-gas-prices = "{{ minimum_gas_price }}"' - state: present - -- name: Download genesis file - get_url: - url: '{{ genesis }}' - dest: '/tmp/genesis.json.gz' - mode: '0700' - -- name: unarchive genesis file - shell: 'gunzip /tmp/genesis.json.gz -f' - -- name: copy the genesis file - copy: - remote_src: true - src: /tmp/genesis.json - dest: '{{ user_dir }}/{{ folder }}/config' - -- name: Download addrbook file - get_url: - url: '{{ addrbook }}' - dest: '{{ user_dir }}/{{ folder }}/config/addrbook.json' - mode: '0644' - -- name: Update the peers - lineinfile: - path: '{{ user_dir }}/{{ folder }}/config/config.toml' - regexp: 'persistent_peers = ""' - line: 'persistent_peers = "{{ peers }}"' - state: present diff --git a/roles/initialize_crescent/tasks/main.yml b/roles/initialize_crescent/tasks/main.yml deleted file mode 100644 index 060f69fd..00000000 --- a/roles/initialize_crescent/tasks/main.yml +++ /dev/null @@ -1,41 +0,0 @@ ---- -- name: Initialize Node - command: '{{ daemon }} init {{ validator_name }} --chain-id {{ chain_id }} -o' - environment: - PATH: '{{ path }}' - -- name: Download genesis file - get_url: - url: '{{ genesis }}' - dest: '/tmp/genesis.json.tar.gz' - mode: '0700' - -- name: unarchive genesis file - shell: 'tar -zxvf /tmp/genesis.json.tar.gz' - -- name: copy the genesis file - copy: - remote_src: true - src: /tmp/genesis.json - dest: '{{ user_dir }}/{{ folder }}/config' - -- name: Update minimum gas price on config file - lineinfile: - path: '{{ user_dir }}/{{ folder }}/config/app.toml' - regexp: 'minimum-gas-prices ' - line: 'minimum-gas-prices = "{{ minimum_gas_price }}"' - state: present - -- name: Update seeds on the config.toml file - lineinfile: - path: '{{ user_dir }}/{{ folder }}/config/config.toml' - regexp: 'seeds = ""' - line: 'seeds = "{{ seeds }}"' - state: present - -- name: Update peers on the config.toml file - lineinfile: - path: '{{ user_dir }}/{{ folder }}/config/config.toml' - regexp: 'persistent_peers = ""' - line: 'persistent_peers = "{{ peers }}"' - state: present diff --git a/roles/initialize_evmos/tasks/main.yml b/roles/initialize_evmos/tasks/main.yml deleted file mode 100644 index e4b8d93e..00000000 --- a/roles/initialize_evmos/tasks/main.yml +++ /dev/null @@ -1,30 +0,0 @@ ---- -- name: Initialize Node - command: '{{ daemon }} init {{ validator_name }} --chain-id {{ chain_id }} -o' - environment: - PATH: '{{ path }}' - -- name: Update the config.toml file - lineinfile: - path: '{{ user_dir }}/{{ folder }}/config/config.toml' - regexp: 'persistent_peers = ""' - line: 'persistent_peers = "{{ peers }}"' - state: present - -- name: install unzip - apt: - name: unzip - state: present - -- name: download genesis zip file - get_url: - url: '{{ genesis }}' - dest: '/tmp/genesis.zip' - mode: '0700' - -- name: unarchive genesis - unarchive: - src: '/tmp/genesis.zip' - remote_src: yes - dest: '{{ user_dir }}/{{ folder }}/config' - mode: '0644' diff --git a/roles/initialize_fetch/tasks/main.yml b/roles/initialize_fetch/tasks/main.yml deleted file mode 100644 index c497a31e..00000000 --- a/roles/initialize_fetch/tasks/main.yml +++ /dev/null @@ -1,18 +0,0 @@ ---- -- name: Initialize Node - command: '{{ daemon }} init {{ validator_name }} --chain-id {{ chain_id }} -o' - environment: - PATH: '{{ path }}' - -- name: Download genesis file - get_url: - url: '{{ genesis }}' - dest: '{{ user_dir }}/{{ folder }}/config/genesis.json' - mode: '0644' - -- name: Update seeds on the config.toml file - lineinfile: - path: '{{ user_dir }}/{{ folder }}/config/config.toml' - regexp: 'seeds = ""' - line: 'seeds = "{{ seeds }}"' - state: present diff --git a/roles/initialize_galaxy/tasks/main.yml b/roles/initialize_galaxy/tasks/main.yml deleted file mode 100644 index d81d7632..00000000 --- a/roles/initialize_galaxy/tasks/main.yml +++ /dev/null @@ -1,18 +0,0 @@ ---- -- name: Initialize Node - command: '{{ daemon }} init {{ validator_name }} --chain-id {{ chain_id }} -o' - environment: - PATH: '{{ path }}' - -- name: Download genesis file - get_url: - url: '{{ genesis }}' - dest: '{{ user_dir }}/{{ folder }}/config/genesis.json' - mode: '0644' - -- name: Update the config.toml file - lineinfile: - path: '{{ user_dir }}/{{ folder }}/config/config.toml' - regexp: 'persistent_peers = ""' - line: 'persistent_peers = "{{ peers }}"' - state: present diff --git a/roles/initialize_gravity/tasks/main.yml b/roles/initialize_gravity/tasks/main.yml deleted file mode 100644 index 2906f8de..00000000 --- a/roles/initialize_gravity/tasks/main.yml +++ /dev/null @@ -1,34 +0,0 @@ ---- -- name: Download binary file - get_url: - url: 'https://github.com/Gravity-Bridge/Gravity-Bridge/releases/download/{{ node_version }}/gravity-linux-amd64' - dest: '/tmp/gravity' - mode: '0755' - -- name: Copy binary file - become: true - copy: - src: '/tmp/gravity' - dest: '/home/ubuntu/go/bin/' - owner: '{{ ansible_user }}' - group: '{{ ansible_user }}' - remote_src: true - mode: '0755' - -- name: Initialize Node - command: '{{ daemon }} init {{ validator_name }} --chain-id {{ chain_id }} -o' - environment: - PATH: '{{ path }}' - -- name: Download genesis file - get_url: - url: '{{ genesis }}' - dest: '{{ user_dir }}/{{ folder }}/config/genesis.json' - mode: '0644' - -- name: Update seeds on the config.toml file - lineinfile: - path: '{{ user_dir }}/{{ folder }}/config/config.toml' - regexp: 'seeds = ""' - line: 'seeds = "{{ seeds }}"' - state: present diff --git a/roles/initialize_injective/tasks/main.yml b/roles/initialize_injective/tasks/main.yml deleted file mode 100644 index 1dc3b35b..00000000 --- a/roles/initialize_injective/tasks/main.yml +++ /dev/null @@ -1,58 +0,0 @@ ---- -- name: install unzip - apt: - name: unzip - state: present - -- name: download binary - get_url: - url: '{{ binary }}' - dest: '/tmp/binary.zip' - mode: '0700' - force: yes - -- name: unarchive binary - unarchive: - src: '/tmp/binary.zip' - remote_src: yes - dest: '/tmp' - mode: '0644' - -- name: copy the binary file - copy: - remote_src: true - src: /tmp/injectived - dest: '{{ user_dir }}/go/bin' - mode: '0700' - -- name: Initialize Node - command: '{{ daemon }} init {{ validator_name }} --chain-id {{ chain_id }} -o' - environment: - PATH: '{{ path }}' - -- name: Download genesis file - get_url: - url: '{{ genesis }}' - dest: '{{ user_dir }}/{{ folder }}/config/genesis.json' - mode: '0644' - -- name: Update minimum gas price on config file - lineinfile: - path: '{{ user_dir }}/{{ folder }}/config/app.toml' - regexp: 'minimum-gas-prices ' - line: 'minimum-gas-prices = "{{ minimum_gas_price }}"' - state: present - -- name: Update the seeds - lineinfile: - path: '{{ user_dir }}/{{ folder }}/config/config.toml' - regexp: 'seeds = ""' - line: 'seeds = "{{ seeds }}"' - state: present - -- name: Update commit_timeout - lineinfile: - path: '{{ user_dir }}/{{ folder }}/config/config.toml' - regexp: 'timeout_commit = "1s"' - line: 'timeout_commit = "1500ms"' - state: present diff --git a/roles/initialize_juno/tasks/main.yml b/roles/initialize_juno/tasks/main.yml deleted file mode 100644 index 2b5d1335..00000000 --- a/roles/initialize_juno/tasks/main.yml +++ /dev/null @@ -1,25 +0,0 @@ ---- -- name: Initialize Node - command: '{{ daemon }} init {{ validator_name }} --chain-id {{ chain_id }} -o' - environment: - PATH: '{{ path }}' - -- name: Update minimum gas price on config file - lineinfile: - path: '{{ user_dir }}/{{ folder }}/config/app.toml' - regexp: 'minimum-gas-prices ' - line: 'minimum-gas-prices = "{{ minimum_gas_price }}"' - state: present - -- name: Update the config.toml file - lineinfile: - path: '{{ user_dir }}/{{ folder }}/config/config.toml' - regexp: 'persistent_peers = ""' - line: 'persistent_peers = "{{ peers }}"' - state: present - -- name: Download genesis file - get_url: - url: '{{ genesis }}' - dest: '{{ user_dir }}/{{ folder }}/config/genesis.json' - mode: '0644' diff --git a/roles/initialize_kava/tasks/main.yml b/roles/initialize_kava/tasks/main.yml deleted file mode 100644 index 93c12394..00000000 --- a/roles/initialize_kava/tasks/main.yml +++ /dev/null @@ -1,33 +0,0 @@ ---- -- name: Initialize Node - command: '{{ daemon }} init {{ validator_name }} --chain-id {{ chain_id }} -o' - environment: - PATH: '{{ path }}' - -- name: Update app.toml file - lineinfile: - path: '{{ user_dir }}/{{ folder }}/config/app.toml' - regexp: 'minimum-gas-prices ' - line: 'minimum-gas-prices = "{{ minimum_gas_price }}"' - state: present - -- name: Update persistent peers on the config.toml file - lineinfile: - path: '{{ user_dir }}/{{ folder }}/config/config.toml' - regexp: 'persistent_peers = ' - line: 'persistent_peers = "{{ peers }}"' - state: present - -- name: Update seeds on the config.toml file - lineinfile: - path: '{{ user_dir }}/{{ folder }}/config/config.toml' - regexp: 'seeds = ' - line: 'seeds = "{{ seeds }}"' - state: present - -- name: Download genesis file - get_url: - url: '{{ genesis }}' - dest: '{{ user_dir }}/{{ folder }}/config/genesis.json' - mode: '0644' - force: true diff --git a/roles/initialize_kichain/tasks/main.yml b/roles/initialize_kichain/tasks/main.yml deleted file mode 100644 index 0a311a0c..00000000 --- a/roles/initialize_kichain/tasks/main.yml +++ /dev/null @@ -1,32 +0,0 @@ ---- -- name: Initialize Node - command: '{{ daemon }} init {{ validator_name }} --chain-id {{ chain_id }} -o' - environment: - PATH: '{{ path }}' - -- name: Download genesis file - get_url: - url: '{{ genesis }}' - dest: '{{ user_dir }}/{{ folder }}/config/genesis.json' - mode: '0644' - -- name: Update minimum gas price on config file - lineinfile: - path: '{{ user_dir }}/{{ folder }}/config/app.toml' - regexp: 'minimum-gas-prices ' - line: 'minimum-gas-prices = "{{ minimum_gas_price }}"' - state: present - -- name: Update seeds on the config.toml file - lineinfile: - path: '{{ user_dir }}/{{ folder }}/config/config.toml' - regexp: 'seeds = ""' - line: 'seeds = "{{ seeds }}"' - state: present - -- name: Update the config.toml file - lineinfile: - path: '{{ user_dir }}/{{ folder }}/config/config.toml' - regexp: 'persistent_peers = ""' - line: 'persistent_peers = "{{ peers }}"' - state: present diff --git a/roles/initialize_konstellation/tasks/main.yml b/roles/initialize_konstellation/tasks/main.yml deleted file mode 100644 index 5f1e7158..00000000 --- a/roles/initialize_konstellation/tasks/main.yml +++ /dev/null @@ -1,25 +0,0 @@ ---- -- name: Initialize Node - command: '{{ daemon }} init {{ validator_name }} --chain-id {{ chain_id }} -o' - environment: - PATH: '{{ path }}' - -- name: Download genesis file - get_url: - url: '{{ genesis }}' - dest: '{{ user_dir }}/{{ folder }}/config/genesis.json' - mode: '0644' - -- name: Update the config.toml file - lineinfile: - path: '{{ user_dir }}/{{ folder }}/config/config.toml' - regexp: 'persistent_peers = ""' - line: 'persistent_peers = "{{ peers }}"' - state: present - -- name: Update minimum gas price on config file - lineinfile: - path: '{{ user_dir }}/{{ folder }}/config/app.toml' - regexp: 'minimum-gas-prices ' - line: 'minimum-gas-prices = "{{ minimum_gas_price }}"' - state: present diff --git a/roles/initialize_lum/tasks/main.yml b/roles/initialize_lum/tasks/main.yml deleted file mode 100644 index 64b2e6a2..00000000 --- a/roles/initialize_lum/tasks/main.yml +++ /dev/null @@ -1,53 +0,0 @@ ---- -- name: Make sure the folder does not exist - become: true - file: - state: absent - path: '{{ user_dir }}/{{ network }}' - -- name: Clone node repo - git: - repo: '{{ repo }}' - dest: '{{ user_dir }}/{{ network }}' - -- name: Install node - command: '{{ item }}' - args: - chdir: '{{ user_dir }}/{{ network }}' - with_items: - - 'git fetch' - - 'git checkout {{ node_version }}' - - 'go mod tidy' - - 'make install' - environment: - PATH: '{{ path }}' - GOPATH: '{{ user_dir }}/go' - -- name: Initialize Node - command: '{{ daemon }} init {{ validator_name }} --chain-id {{ chain_id }} -o' - environment: - PATH: '{{ path }}' -- name: Download genesis file - get_url: - url: '{{ genesis }}' - dest: '{{ user_dir }}/{{ folder }}/config/genesis.json' - mode: '0644' -- name: Update minimum gas price on config file - lineinfile: - path: '{{ user_dir }}/{{ folder }}/config/app.toml' - regexp: 'minimum-gas-prices ' - line: 'minimum-gas-prices = "{{ minimum_gas_price }}"' - state: present -- name: Update seeds on the config.toml file - lineinfile: - path: '{{ user_dir }}/{{ folder }}/config/config.toml' - regexp: 'seeds = ""' - line: 'seeds = "{{ seeds }}"' - state: present - -- name: Update the config.toml file - lineinfile: - path: '{{ user_dir }}/{{ folder }}/config/config.toml' - regexp: 'persistent_peers = ""' - line: 'persistent_peers = "{{ peers }}"' - state: present diff --git a/roles/initialize_meme/tasks/main.yml b/roles/initialize_meme/tasks/main.yml deleted file mode 100644 index 2b5d1335..00000000 --- a/roles/initialize_meme/tasks/main.yml +++ /dev/null @@ -1,25 +0,0 @@ ---- -- name: Initialize Node - command: '{{ daemon }} init {{ validator_name }} --chain-id {{ chain_id }} -o' - environment: - PATH: '{{ path }}' - -- name: Update minimum gas price on config file - lineinfile: - path: '{{ user_dir }}/{{ folder }}/config/app.toml' - regexp: 'minimum-gas-prices ' - line: 'minimum-gas-prices = "{{ minimum_gas_price }}"' - state: present - -- name: Update the config.toml file - lineinfile: - path: '{{ user_dir }}/{{ folder }}/config/config.toml' - regexp: 'persistent_peers = ""' - line: 'persistent_peers = "{{ peers }}"' - state: present - -- name: Download genesis file - get_url: - url: '{{ genesis }}' - dest: '{{ user_dir }}/{{ folder }}/config/genesis.json' - mode: '0644' diff --git a/roles/initialize_nym/tasks/main.yml b/roles/initialize_nym/tasks/main.yml deleted file mode 100644 index fb0a2912..00000000 --- a/roles/initialize_nym/tasks/main.yml +++ /dev/null @@ -1,18 +0,0 @@ ---- -- name: Initialize Node - command: '{{ daemon }} init {{ validator_name }} --chain-id {{ chain_id }} -o' - environment: - PATH: '{{ path }}' - -- name: Download genesis file - get_url: - url: '{{ genesis }}' - dest: '{{ user_dir }}/{{ folder }}/config/genesis.json' - mode: '0644' - -- name: Update seeds on the config.toml file - lineinfile: - path: '{{ user_dir }}/{{ folder }}/config/config.toml' - regexp: 'persistent_peers = ""' - line: 'persistent_peers = "{{ peers }}"' - state: present diff --git a/roles/initialize_osmosis/tasks/main.yml b/roles/initialize_osmosis/tasks/main.yml deleted file mode 100644 index d81d7632..00000000 --- a/roles/initialize_osmosis/tasks/main.yml +++ /dev/null @@ -1,18 +0,0 @@ ---- -- name: Initialize Node - command: '{{ daemon }} init {{ validator_name }} --chain-id {{ chain_id }} -o' - environment: - PATH: '{{ path }}' - -- name: Download genesis file - get_url: - url: '{{ genesis }}' - dest: '{{ user_dir }}/{{ folder }}/config/genesis.json' - mode: '0644' - -- name: Update the config.toml file - lineinfile: - path: '{{ user_dir }}/{{ folder }}/config/config.toml' - regexp: 'persistent_peers = ""' - line: 'persistent_peers = "{{ peers }}"' - state: present diff --git a/roles/initialize_osmosis/templates/osmosis.service.j2 b/roles/initialize_osmosis/templates/osmosis.service.j2 deleted file mode 100644 index b2506ca9..00000000 --- a/roles/initialize_osmosis/templates/osmosis.service.j2 +++ /dev/null @@ -1,14 +0,0 @@ -[Unit] -Description=Osmosis Daemon -After=network-online.target - -[Service] -User={{ ansible_user }} -ExecStart={{ user_dir }}/go/bin/osmosisd start -Restart=on-abort - -[Install] -WantedBy=multi-user.target - -[Service] -LimitNOFILE=65535 diff --git a/roles/initialize_sifchain/tasks/main.yml b/roles/initialize_sifchain/tasks/main.yml deleted file mode 100644 index 4bcf7f08..00000000 --- a/roles/initialize_sifchain/tasks/main.yml +++ /dev/null @@ -1,34 +0,0 @@ ---- -- name: Initialize Node - command: '{{ daemon }} init {{ validator_name }} --chain-id {{ chain_id }} -o' - environment: - PATH: '{{ path }}' - -- name: Update minimum gas price on config file - lineinfile: - path: '/home/{{ ansible_user }}/{{ folder }}/config/app.toml' - regexp: 'minimum-gas-prices ' - line: 'minimum-gas-prices = "{{ minimum_gas_price }}"' - state: present - -- name: Update the config.toml file - lineinfile: - path: '{{ user_dir }}/{{ folder }}/config/config.toml' - regexp: 'persistent_peers = ""' - line: 'persistent_peers = "{{ peers }}"' - state: present - -- name: Download genesis file - get_url: - url: '{{ genesis }}' - dest: '/tmp/genesis.json.gz' - mode: '0700' - -- name: unarchive genesis file - shell: 'gunzip /tmp/genesis.json.gz -f' - -- name: copy the genesis file - copy: - remote_src: true - src: /tmp/genesis.json - dest: '{{ user_dir }}/.sifnoded/config' diff --git a/roles/initialize_sommelier/tasks/main.yml b/roles/initialize_sommelier/tasks/main.yml deleted file mode 100644 index d81d7632..00000000 --- a/roles/initialize_sommelier/tasks/main.yml +++ /dev/null @@ -1,18 +0,0 @@ ---- -- name: Initialize Node - command: '{{ daemon }} init {{ validator_name }} --chain-id {{ chain_id }} -o' - environment: - PATH: '{{ path }}' - -- name: Download genesis file - get_url: - url: '{{ genesis }}' - dest: '{{ user_dir }}/{{ folder }}/config/genesis.json' - mode: '0644' - -- name: Update the config.toml file - lineinfile: - path: '{{ user_dir }}/{{ folder }}/config/config.toml' - regexp: 'persistent_peers = ""' - line: 'persistent_peers = "{{ peers }}"' - state: present diff --git a/roles/initialize_stargaze/tasks/main.yml b/roles/initialize_stargaze/tasks/main.yml deleted file mode 100644 index 5e488239..00000000 --- a/roles/initialize_stargaze/tasks/main.yml +++ /dev/null @@ -1,24 +0,0 @@ ---- -- name: Initialize Node - command: '{{ daemon }} init {{ validator_name }} --chain-id {{ chain_id }} -o' - environment: - PATH: '{{ path }}' - -- name: Download genesis file - get_url: - url: '{{ genesis }}' - dest: '/tmp/genesis.tar.gz' - mode: '0700' - -- name: unarchive genesis file - unarchive: - src: '/tmp/genesis.tar.gz' - dest: '{{ user_dir }}/{{ folder }}/config' - remote_src: true - -- name: Update the config.toml file - lineinfile: - path: '{{ user_dir }}/{{ folder }}/config/config.toml' - regexp: 'persistent_peers = ""' - line: 'persistent_peers = "{{ peers }}"' - state: present diff --git a/roles/initialize_terra/tasks/main.yml b/roles/initialize_terra/tasks/main.yml deleted file mode 100644 index 78a67779..00000000 --- a/roles/initialize_terra/tasks/main.yml +++ /dev/null @@ -1,78 +0,0 @@ ---- -- name: Increase the maximum files terrad can open I - become: yes - lineinfile: - path: /etc/security/limits.conf - regexp: '\* soft nofile 65535' - line: '* soft nofile 65535' - -- name: Increase the maximum files terrad can open II - become: yes - lineinfile: - path: /etc/security/limits.conf - regexp: '\* hard nofile 65535' - line: '* hard nofile 65535' - -- name: Initialize Node - command: '{{ daemon }} init {{ validator_name }} -o' - environment: - PATH: '{{ path }}' - -- name: Download genesis file - get_url: - url: '{{ genesis }}' - dest: '{{ user_dir }}/{{ folder }}/config/genesis.json' - force: yes - mode: '0644' - -- name: Download address book - get_url: - url: '{{ address_book }}' - dest: '{{ user_dir }}/{{ folder }}/config/addrbook.json' - force: yes - mode: '0644' - -- name: Update minimum gas price on config file - lineinfile: - path: '{{ user_dir }}/{{ folder }}/config/app.toml' - regexp: 'minimum-gas-prices ' - line: 'minimum-gas-prices = "{{ minimum_gas_price }}"' - state: present - -# Launch Node -- name: register public ip - uri: - url: 'https://api.ipify.org?format=json' - register: public_ip - -- name: Set up external address - lineinfile: - path: '{{ user_dir }}/{{ folder }}/config/config.toml' - regexp: 'external_address = ""' - line: 'external_address = "{{ public_ip.json.ip }}:26656"' - state: present - -- name: Enable prometheus on the config.toml file - lineinfile: - path: '{{ user_dir }}/{{ folder }}/config/config.toml' - regexp: 'prometheus = false' - line: 'prometheus = true' - state: present - -- name: copy terrad service file - become: yes - template: - src: 'terrad.service.j2' - dest: '/etc/systemd/system/terrad.service' - owner: root - group: root - mode: '0600' - -- name: start terrad service - become: true - systemd: - name: terrad - state: restarted - daemon_reload: yes - enabled: yes - changed_when: false diff --git a/roles/initialize_terra/templates/terrad.service.j2 b/roles/initialize_terra/templates/terrad.service.j2 deleted file mode 100644 index 7a425c19..00000000 --- a/roles/initialize_terra/templates/terrad.service.j2 +++ /dev/null @@ -1,14 +0,0 @@ -[Unit] -Description=Terra Daemon -After=network-online.target - -[Service] -User={{ ansible_user }} -ExecStart={{ user_dir }}/go/bin/terrad start -Restart=on-abort - -[Install] -WantedBy=multi-user.target - -[Service] -LimitNOFILE=65535 diff --git a/roles/initialize_umee/tasks/main.yml b/roles/initialize_umee/tasks/main.yml deleted file mode 100644 index 833bf1cf..00000000 --- a/roles/initialize_umee/tasks/main.yml +++ /dev/null @@ -1,25 +0,0 @@ ---- -- name: Initialize Node - command: '{{ daemon }} init {{ validator_name }} --chain-id {{ chain_id }} -o' - environment: - PATH: '{{ path }}' - -- name: Update minimum gas price on config file - lineinfile: - path: '/home/{{ ansible_user }}/{{ folder }}/config/app.toml' - regexp: 'minimum-gas-prices ' - line: 'minimum-gas-prices = "{{ minimum_gas_price }}"' - state: present - -- name: Update the config.toml file - lineinfile: - path: '/home/{{ ansible_user }}/{{ folder }}/config/config.toml' - regexp: 'persistent_peers = ""' - line: 'persistent_peers = "{{ peers }}"' - state: present - -- name: Download genesis file - get_url: - url: '{{ genesis }}' - dest: '/home/{{ ansible_user }}/{{ folder }}/config/genesis.json' - mode: '0644' diff --git a/roles/launch_node/tasks/main.yml b/roles/node_configure/tasks/main.yml similarity index 61% rename from roles/launch_node/tasks/main.yml rename to roles/node_configure/tasks/main.yml index 2f08b4c1..14879c19 100644 --- a/roles/launch_node/tasks/main.yml +++ b/roles/node_configure/tasks/main.yml @@ -10,15 +10,6 @@ regexp: 'external_address = "' line: 'external_address = "{{ public_ip.json.ip }}:{{ custom_port_prefix }}656"' state: present - when: custom_port_prefix is defined - -- name: Set up external address - lineinfile: - path: '{{ user_dir }}/{{ folder }}/config/config.toml' - regexp: 'external_address = "' - line: 'external_address = "{{ public_ip.json.ip }}:26656"' - state: present - when: custom_port_prefix is not defined - name: Adjust config.toml port when needed lineinfile: @@ -46,7 +37,6 @@ old: 'pprof_laddr = "localhost:6060"', new: 'pprof_laddr = "localhost:{{ custom_port_prefix }}060"', } - when: custom_port_prefix is defined - name: Adjust app.toml ports when needed lineinfile: @@ -70,17 +60,34 @@ old: 'address = "0.0.0.0:9091"', new: 'address = "0.0.0.0:{{ custom_port_prefix }}091"', } - when: custom_port_prefix is defined -- name: open prometheus port - become: true - command: 'ufw allow {{ custom_port_prefix }}660/tcp' - when: custom_port_prefix is defined +- name: Adjust pruning setting + lineinfile: + path: '{{ user_dir }}/{{ folder }}/config/app.toml' + regexp: '{{ item.old }}' + line: '{{ item.new }}' + state: present + loop: + - { old: 'pruning = "', new: 'pruning = "custom"' } + - { old: 'pruning-keep-recent = "', new: 'pruning-keep-recent = "100"' } + - { old: 'pruning-interval = "', new: 'pruning-interval = "19"' } + - { old: 'snapshot-interval = ', new: 'snapshot-interval = 0' } + when: type is defined and (type == 'backup' or type == 'main') -- name: open prometheus port - become: true - command: 'ufw allow {{ custom_port_prefix }}656/tcp' - when: custom_port_prefix is defined +- name: Adjust pruning setting + lineinfile: + path: '{{ user_dir }}/{{ folder }}/config/app.toml' + regexp: '{{ item.old }}' + line: '{{ item.new }}' + state: present + loop: + - { old: 'pruning = "', new: 'pruning = "custom"' } + - { old: 'pruning-keep-recent = "', new: 'pruning-keep-recent = "40000"' } + - { old: 'pruning-keep-every = "', new: 'pruning-keep-every = "2000"' } + - { old: 'pruning-interval = "', new: 'pruning-interval = "17"' } + - { old: 'snapshot-interval = ', new: 'snapshot-interval = 2000' } + - { old: 'snapshot-keep-recent = ', new: 'snapshot-keep-recent= 5' } + when: type is defined and type == 'relayer' - name: Adjust pruning setting lineinfile: @@ -90,9 +97,12 @@ state: present loop: - { old: 'pruning = "', new: 'pruning = "custom"' } - - { old: 'pruning-keep-recent = "', new: 'pruning-keep-recent = "100"' } - - { old: 'pruning-interval = "', new: 'pruning-interval = "10"' } - when: (pruning is defined) and (pruning|bool is true) + - { old: 'pruning-keep-recent = "', new: 'pruning-keep-recent = "8000"' } + - { old: 'pruning-keep-every = "', new: 'pruning-keep-every = "2000"' } + - { old: 'pruning-interval = "', new: 'pruning-interval = "17"' } + - { old: 'snapshot-interval = ', new: 'snapshot-interval = 2000' } + - { old: 'snapshot-keep-recent = ', new: 'snapshot-keep-recent= 2' } + when: type is defined and type == 'test' - name: Adjust indexer setting lineinfile: @@ -102,55 +112,19 @@ state: present loop: - { old: 'indexer = "', new: 'indexer = "null"' } - when: (no_indexer is defined) and (no_indexer|bool is true) + when: (type == 'main') or (type == 'backup') + +- name: Open RPC port for relayer + lineinfile: + path: '{{ user_dir }}/{{ folder }}/config/config.toml' + regexp: '{{ custom_port_prefix }}657' + line: 'laddr = "tcp://0.0.0.0:{{ custom_port_prefix }}657"' + state: present + when: (type == 'relayer') and (custom_port_prefix is defined) - name: Enable prometheus on the config.toml file lineinfile: path: '{{ user_dir }}/{{ folder }}/config/config.toml' - regexp: 'prometheus =' + regexp: '^prometheus =' line: 'prometheus = true' state: present - -- name: Create cosmovisor directories - file: - path: '{{ item }}' - state: directory - mode: '0755' - with_items: - - '{{ user_dir }}/{{ folder }}/cosmovisor/genesis/bin' - - '{{ user_dir }}/{{ folder }}/cosmovisor/upgrades' - -- name: copy daemon file to cosmovisor - copy: - src: '{{ user_dir }}/go/bin/{{ daemon }}' - dest: '{{ user_dir }}/{{ folder }}/cosmovisor/genesis/bin' - remote_src: true - mode: '0755' - -- name: copy cosmovisor service file - become: true - template: - src: 'cosmovisor.service.j2' - dest: '/etc/systemd/system/{{ network }}.service' - owner: root - group: root - mode: '0600' - when: custom_port_prefix is defined - -- name: start cosmovisor service - become: true - systemd: - name: cosmovisor - state: restarted - daemon_reload: yes - enabled: yes - when: custom_port_prefix is not defined - -- name: start cosmovisor service - become: true - systemd: - name: '{{ network }}' - state: restarted - daemon_reload: yes - enabled: yes - when: custom_port_prefix is defined diff --git a/roles/node_debug/tasks/main.yaml b/roles/node_debug/tasks/main.yaml new file mode 100644 index 00000000..8e02e2df --- /dev/null +++ b/roles/node_debug/tasks/main.yaml @@ -0,0 +1,4 @@ +--- +- name: debug + debug: + var: var_file diff --git a/roles/node_initialize/tasks/genesis_default.yml b/roles/node_initialize/tasks/genesis_default.yml new file mode 100644 index 00000000..2b0d97bb --- /dev/null +++ b/roles/node_initialize/tasks/genesis_default.yml @@ -0,0 +1,5 @@ +- name: regular genesis download + get_url: + url: '{{ genesis }}' + dest: '{{ user_dir }}/{{ folder }}/config/genesis.json' + mode: '0644' diff --git a/roles/node_initialize/tasks/genesis_gz.yml b/roles/node_initialize/tasks/genesis_gz.yml new file mode 100644 index 00000000..94579d06 --- /dev/null +++ b/roles/node_initialize/tasks/genesis_gz.yml @@ -0,0 +1,14 @@ +- name: Download genesis gz file + get_url: + url: '{{ genesis }}' + dest: '/tmp/genesis.json.gz' + mode: '0700' + +- name: unarchive genesis file + shell: 'gunzip /tmp/genesis.json.gz -f' + +- name: copy the genesis file + copy: + remote_src: true + src: /tmp/genesis.json + dest: '{{ user_dir }}/{{ folder }}/config' diff --git a/roles/node_initialize/tasks/genesis_targz.yml b/roles/node_initialize/tasks/genesis_targz.yml new file mode 100644 index 00000000..8a6c8827 --- /dev/null +++ b/roles/node_initialize/tasks/genesis_targz.yml @@ -0,0 +1,11 @@ +- name: Download genesis file + get_url: + url: '{{ genesis }}' + dest: '/tmp/genesis.tar.gz' + mode: '0700' + +- name: unarchive genesis file + unarchive: + src: '/tmp/genesis.tar.gz' + dest: '{{ user_dir }}/{{ folder }}/config' + remote_src: true diff --git a/roles/node_initialize/tasks/genesis_zip.yml b/roles/node_initialize/tasks/genesis_zip.yml new file mode 100644 index 00000000..3ec7e596 --- /dev/null +++ b/roles/node_initialize/tasks/genesis_zip.yml @@ -0,0 +1,17 @@ +- name: Install unzip + apt: + name: unzip + state: latest + +- name: download genesis zip file + get_url: + url: '{{ genesis }}' + dest: '/tmp/genesis.zip' + mode: '0700' + +- name: unarchive genesis + unarchive: + src: '/tmp/genesis.zip' + remote_src: yes + dest: '{{ user_dir }}/{{ folder }}/config' + mode: '0644' diff --git a/roles/node_initialize/tasks/main.yml b/roles/node_initialize/tasks/main.yml new file mode 100644 index 00000000..4df9eb53 --- /dev/null +++ b/roles/node_initialize/tasks/main.yml @@ -0,0 +1,64 @@ +--- +- name: Ensure that the folder does not exist + file: + path: '{{ user_dir }}/{{ folder }}' + state: absent + +- name: Initialize Node + command: '{{ daemon }} init {{ node_name }} --chain-id {{ chain_id }} -o' + environment: + PATH: '{{ path }}' + +- name: Download config file + get_url: + url: '{{ config_file }}' + dest: '{{ user_dir }}/{{ folder }}/config/config.toml' + mode: '0644' + when: config_file is defined + +- name: Download app file + get_url: + url: '{{ app_file }}' + dest: '{{ user_dir }}/{{ folder }}/config/app.toml' + mode: '0644' + when: app_file is defined + +- name: Update minimum gas price on config file + lineinfile: + path: '{{ user_dir }}/{{ folder }}/config/app.toml' + regexp: '^minimum-gas-prices =' + line: 'minimum-gas-prices = "{{ minimum_gas_price }}"' + state: present + when: minimum_gas_price is defined + +- name: Update peers in config.toml file + lineinfile: + path: '{{ user_dir }}/{{ folder }}/config/config.toml' + regexp: '^persistent_peers =' + line: 'persistent_peers = "{{ peers }}"' + state: present + when: peers is defined + +- name: Update seeds in config.toml file + lineinfile: + path: '{{ user_dir }}/{{ folder }}/config/config.toml' + regexp: '^seeds =' + line: 'seeds = "{{ seeds }}"' + state: present + when: seeds is defined + +- name: regular genesis download + include_tasks: genesis_default.yml + when: genesis_processing is undefined + +- name: zip genesis download + include_tasks: genesis_zip.yml + when: genesis_processing is defined and genesis_processing == "zip" + +- name: gz genesis download + include_tasks: genesis_gz.yml + when: genesis_processing is defined and genesis_processing == "gz" + +- name: targz genesis download + include_tasks: genesis_targz.yml + when: genesis_processing is defined and genesis_processing == "targz" diff --git a/roles/node_install/tasks/binary_default.yml b/roles/node_install/tasks/binary_default.yml new file mode 100644 index 00000000..428e28d2 --- /dev/null +++ b/roles/node_install/tasks/binary_default.yml @@ -0,0 +1,12 @@ +--- +- name: Download binary file + get_url: + url: '{{ binary }}' + dest: '/tmp/{{ daemon }}' + +- name: Copy binary + copy: + remote_src: true + src: '/tmp/{{ daemon }}' + dest: '{{ user_dir }}/go/bin/{{ daemon }}' + mode: '0755' diff --git a/roles/node_install/tasks/binary_targz.yml b/roles/node_install/tasks/binary_targz.yml new file mode 100644 index 00000000..769d96c8 --- /dev/null +++ b/roles/node_install/tasks/binary_targz.yml @@ -0,0 +1,21 @@ +--- +- name: download binary + get_url: + url: '{{ binary }}' + dest: '/tmp/binary.tar.gz' + mode: '0700' + force: yes + +- name: unarchive binary file + unarchive: + src: '/tmp/binary.tar.gz' + dest: '/tmp/' + mode: '0755' + remote_src: true + +- name: Copy binary + copy: + remote_src: true + src: '/tmp/{{ daemon }}' + dest: '{{ user_dir }}/go/bin/{{ daemon }}' + mode: '0755' diff --git a/roles/node_install/tasks/binary_zip.yml b/roles/node_install/tasks/binary_zip.yml new file mode 100644 index 00000000..19912bf6 --- /dev/null +++ b/roles/node_install/tasks/binary_zip.yml @@ -0,0 +1,26 @@ +--- +- name: install unzip + apt: + name: unzip + state: present + +- name: download binary + get_url: + url: '{{ binary }}' + dest: '/tmp/binary.zip' + mode: '0700' + force: yes + +- name: unarchive binary + unarchive: + src: '/tmp/binary.zip' + remote_src: yes + dest: '/tmp' + mode: '0644' + +- name: Copy binary + copy: + remote_src: true + src: '/tmp/{{ daemon }}' + dest: '{{ user_dir }}/go/bin/{{ daemon }}' + mode: '0755' diff --git a/roles/node_install/tasks/main.yml b/roles/node_install/tasks/main.yml new file mode 100644 index 00000000..70c54785 --- /dev/null +++ b/roles/node_install/tasks/main.yml @@ -0,0 +1,38 @@ +--- +- name: Install from source + block: + - name: Make sure the folder does not exist + become: true + file: + state: absent + path: '{{ user_dir }}/{{ network }}' + + - name: Clone node repo + git: + repo: '{{ repo }}' + dest: '{{ user_dir }}/{{ network }}' + + - name: Install node + command: '{{ item }}' + args: + chdir: '{{ user_dir }}/{{ network }}' + with_items: + - 'git fetch' + - 'git checkout {{ node_version }}' + - 'make install' + environment: + PATH: '{{ path }}' + GOPATH: '{{ user_dir }}/go' + when: binary is undefined + +- name: Install from binary + include_tasks: binary_default.yml + when: binary is defined and binary_processing is not defined + +- name: Install from binary zipped + include_tasks: binary_zip.yml + when: binary is defined and binary_processing is defined and binary_processing == 'zip' + +- name: Install from binary tar gz + include_tasks: binary_targz.yml + when: binary is defined and binary_processing is defined and binary_processing == 'targz' diff --git a/roles/node_launch/tasks/main.yml b/roles/node_launch/tasks/main.yml new file mode 100644 index 00000000..5a2369ee --- /dev/null +++ b/roles/node_launch/tasks/main.yml @@ -0,0 +1,45 @@ +--- +- name: Set service name + set_fact: + service: "{{ 'cosmovisor' if type is defined and type == 'main' else network }}" + +- name: open prometheus port + become: true + command: 'ufw allow {{ custom_port_prefix }}660/tcp' + +- name: open p2p port + become: true + command: 'ufw allow {{ custom_port_prefix }}656/tcp' + +- name: Create cosmovisor directories + file: + path: '{{ item }}' + state: directory + mode: '0755' + with_items: + - '{{ user_dir }}/{{ folder }}/cosmovisor/genesis/bin' + - '{{ user_dir }}/{{ folder }}/cosmovisor/upgrades' + +- name: copy daemon file to cosmovisor + copy: + src: '{{ user_dir }}/go/bin/{{ daemon }}' + dest: '{{ user_dir }}/{{ folder }}/cosmovisor/genesis/bin' + remote_src: true + mode: '0755' + +- name: copy service file + become: true + template: + src: 'cosmovisor.service.j2' + dest: '/etc/systemd/system/{{ service }}.service' + owner: root + group: root + mode: '0644' + +- name: start cosmovisor service + become: true + systemd: + name: '{{ service }}' + state: restarted + daemon_reload: yes + enabled: yes diff --git a/roles/launch_node/templates/cosmovisor.service.j2 b/roles/node_launch/templates/cosmovisor.service.j2 similarity index 100% rename from roles/launch_node/templates/cosmovisor.service.j2 rename to roles/node_launch/templates/cosmovisor.service.j2 diff --git a/roles/prepare/tasks/cosmos_software.yml b/roles/prepare/tasks/cosmos_software.yml index 962e68ae..53394009 100644 --- a/roles/prepare/tasks/cosmos_software.yml +++ b/roles/prepare/tasks/cosmos_software.yml @@ -49,10 +49,18 @@ group: '{{ ansible_user }}' mode: '0600' -- name: copy cosmovisor service file - template: - src: 'cosmovisor.service.j2' - dest: '/etc/systemd/system/cosmovisor.service' - owner: root - group: root - mode: '0600' +- name: Add DAEMON_NAME line in .profile + lineinfile: + path: '{{ user_dir }}/.profile' + regexp: 'export DAEMON_NAME=' + line: 'export DAEMON_NAME={{ daemon }}' + state: present + when: daemon is defined + +- name: Add DAEMON_HOME line in .profile + lineinfile: + path: '{{ user_dir }}/.profile' + regexp: 'export DAEMON_HOME=' + line: 'export DAEMON_HOME=$HOME/{{ folder }}' + state: present + when: folder is defined diff --git a/roles/prepare/templates/profile.j2 b/roles/prepare/templates/profile.j2 index b591b07c..2e348b29 100644 --- a/roles/prepare/templates/profile.j2 +++ b/roles/prepare/templates/profile.j2 @@ -19,6 +19,4 @@ fi export GOROOT=/usr/local/go export GOPATH=$HOME/go export GO111MODULE=on -export PATH=$PATH:/usr/local/go/bin:$HOME/go/bin -export DAEMON_NAME={{ daemon }} -export DAEMON_HOME=$HOME/{{ folder }} +export PATH=$PATH:/usr/local/go/bin:$HOME/go/bin \ No newline at end of file diff --git a/roles/relayer_juno/templates/hermes.toml.j2 b/roles/relayer_juno/templates/hermes.toml.j2 index 7a3856d1..4d9d66a1 100644 --- a/roles/relayer_juno/templates/hermes.toml.j2 +++ b/roles/relayer_juno/templates/hermes.toml.j2 @@ -297,9 +297,9 @@ list = [ [[chains]] id = 'umee-1' -rpc_addr = 'http://127.0.0.1:36657' -grpc_addr = 'http://127.0.0.1:36090' -websocket_addr = 'ws://127.0.0.1:36657/websocket' +rpc_addr = 'http://{{ cosmos_relayer_ip }}:36657' +grpc_addr = 'http://{{ cosmos_relayer_ip }}:36090' +websocket_addr = 'ws://{{ cosmos_relayer_ip }}:36657/websocket' rpc_timeout = '20s' account_prefix = 'umee' diff --git a/roles/relayer_osmosis/templates/hermes.toml.j2 b/roles/relayer_osmosis/templates/hermes.toml.j2 index 49fb4921..83aa0f0a 100644 --- a/roles/relayer_osmosis/templates/hermes.toml.j2 +++ b/roles/relayer_osmosis/templates/hermes.toml.j2 @@ -330,9 +330,9 @@ list = [ [[chains]] id = 'umee-1' -rpc_addr = 'http://{{ juno_relayer_ip }}:36657' -grpc_addr = 'http://{{ juno_relayer_ip }}:36090' -websocket_addr = 'ws://{{ juno_relayer_ip }}:36657/websocket' +rpc_addr = 'http://{{ cosmos_relayer_ip }}:36657' +grpc_addr = 'http://{{ cosmos_relayer_ip }}:36090' +websocket_addr = 'ws://{{ cosmos_relayer_ip }}:36657/websocket' rpc_timeout = '20s' account_prefix = 'umee' diff --git a/roles/snapshot/tasks/main.yml b/roles/snapshot/tasks/main.yml deleted file mode 100644 index 5b55633c..00000000 --- a/roles/snapshot/tasks/main.yml +++ /dev/null @@ -1,40 +0,0 @@ ---- -- name: Install jq and awscli - become: true - apt: - name: - - awscli - - jq - state: present - update_cache: yes - -- name: Install snapd - become: true - apt: - name: snapd - state: present - update_cache: yes - -- name: Install lz4 - become: true - snap: - name: lz4 - state: present - -- name: Copy snapshot script - template: - src: 'snapshot.sh.j2' - dest: '{{ user_dir }}/snapshot.sh' - owner: '{{ ansible_user }}' - group: '{{ ansible_user }}' - mode: '0700' - when: custom_port_prefix is not defined - -- name: Copy snapshot script - template: - src: 'snapshot_custom.sh.j2' - dest: '{{ user_dir }}/snapshot_{{ network }}.sh' - owner: '{{ ansible_user }}' - group: '{{ ansible_user }}' - mode: '0700' - when: custom_port_prefix is defined diff --git a/roles/snapshot/templates/snapshot.sh.j2 b/roles/snapshot/templates/snapshot.sh.j2 deleted file mode 100644 index 20ff995c..00000000 --- a/roles/snapshot/templates/snapshot.sh.j2 +++ /dev/null @@ -1,27 +0,0 @@ -#!/bin/bash - -# This is for crontab -# 0 0 * * * /bin/bash {{ user_dir }}/snapshot.sh - -# Make sure the service is running -sudo service cosmovisor start -sleep 5 - -# Get block height -BLOCK_HEIGHT=$(curl -s http://localhost:26657/status | jq -r .result.sync_info.latest_block_height) - -# Stop service -sudo service cosmovisor stop - -# Compress the folder -FILENAME=$(echo {{ network }}_${BLOCK_HEIGHT}.tar.lz4) -cd {{ user_dir }}/{{ folder }} -tar cvf - data | lz4 > "{{ user_dir }}/$FILENAME" - -# Restart the service -sudo service cosmovisor start - -# Transfer the file and then remove the file -cd {{ user_dir }}/ -aws s3 --endpoint="{{ snapshot_endpoint }}" --acl="public-read" cp $FILENAME "s3://{{ snapshot_space }}/{{ network }}/" -rm $FILENAME diff --git a/roles/standard_node_installation/tasks/main.yml b/roles/standard_node_installation/tasks/main.yml deleted file mode 100644 index 8174bf1f..00000000 --- a/roles/standard_node_installation/tasks/main.yml +++ /dev/null @@ -1,23 +0,0 @@ ---- -- name: Make sure the folder does not exist - become: true - file: - state: absent - path: '{{ user_dir }}/{{ network }}' - -- name: Clone node repo - git: - repo: '{{ repo }}' - dest: '{{ user_dir }}/{{ network }}' - -- name: Install node - command: '{{ item }}' - args: - chdir: '{{ user_dir }}/{{ network }}' - with_items: - - 'git fetch' - - 'git checkout {{ node_version }}' - - 'make install' - environment: - PATH: '{{ path }}' - GOPATH: '{{ user_dir }}/go' diff --git a/roles/state_sync/tasks/main.yml b/roles/state_sync/tasks/main.yml deleted file mode 100644 index 1d7863be..00000000 --- a/roles/state_sync/tasks/main.yml +++ /dev/null @@ -1,8 +0,0 @@ ---- -- name: Copy state_sync file - template: - src: 'state_sync.sh.j2' - dest: '{{ user_dir }}/state_sync_{{ network }}.sh' - owner: '{{ ansible_user }}' - group: '{{ ansible_user }}' - mode: '0700' diff --git a/roles/support_cosmos_exporter/tasks/main.yml b/roles/support_cosmos_exporter/tasks/main.yml new file mode 100644 index 00000000..ecbddb58 --- /dev/null +++ b/roles/support_cosmos_exporter/tasks/main.yml @@ -0,0 +1,21 @@ +--- +- name: Copy cosmos exporter file + become: true + template: + src: 'cosmos_exporter.j2' + dest: '/etc/systemd/system/exporter_{{network}}.service' + owner: 'root' + group: 'root' + mode: '0644' + +- name: open cosmos exporter port + become: true + command: 'ufw allow {{ custom_port_prefix }}300/tcp' + +- name: start cosmos exporter service + become: true + systemd: + name: 'exporter_{{network}}' + state: restarted + daemon_reload: yes + enabled: yes diff --git a/roles/support_cosmos_exporter/templates/cosmos_exporter.j2 b/roles/support_cosmos_exporter/templates/cosmos_exporter.j2 new file mode 100644 index 00000000..249290a3 --- /dev/null +++ b/roles/support_cosmos_exporter/templates/cosmos_exporter.j2 @@ -0,0 +1,30 @@ +[Unit] +Description=Axelar Exporter +After=network-online.target + +[Service] +User=ubuntu +TimeoutStartSec=0 +CPUWeight=95 +IOWeight=95 +ExecStart=cosmos-exporter \ + --denom={{denom}} \ + --denom-coefficient=1000000 \ + --bech-account-prefix={{denom_prefix}} \ + --bech-account-pubkey-prefix={{denom_prefix}}pub \ + --bech-consensus-node-prefix={{denom_prefix}}valcons \ + --bech-consensus-node-pubkey-prefix={{denom_prefix}}valconspub \ + --bech-validator-prefix={{denom_prefix}}valoper \ + --bech-validator-pubkey-prefix={{denom_prefix}}valoperpub \ + --listen-address=:{{custom_port_prefix}}300 \ + --log-level=info \ + --node=localhost:{{custom_port_prefix}}090 \ + --tendermint-rpc=http://localhost:{{custom_port_prefix}}657 + +Restart=always +RestartSec=2 +LimitNOFILE=800000 +KillSignal=SIGTERM + +[Install] +WantedBy=multi-user.target \ No newline at end of file diff --git a/roles/support_public_endpoints/tasks/main.yml b/roles/support_public_endpoints/tasks/main.yml new file mode 100644 index 00000000..b69c82cf --- /dev/null +++ b/roles/support_public_endpoints/tasks/main.yml @@ -0,0 +1,34 @@ +--- +- name: install nginx package + become: true + apt: + name: nginx + state: present + update_cache: yes + +- name: Copy nginx config file for rpc + become: true + template: + src: 'rpc_nginx_conf.j2' + dest: '/etc/nginx/sites-enabled/{{network}}-rpc' + owner: 'root' + group: 'root' + mode: '0644' + +- name: Copy nginx config file for api + become: true + template: + src: 'api_nginx_conf.j2' + dest: '/etc/nginx/sites-enabled/{{network}}-api' + owner: 'root' + group: 'root' + mode: '0644' + +- name: restart nginx service + become: true + systemd: + name: nginx + state: restarted + daemon_reload: yes + enabled: yes + changed_when: false diff --git a/roles/support_public_endpoints/templates/api_nginx_conf.j2 b/roles/support_public_endpoints/templates/api_nginx_conf.j2 new file mode 100644 index 00000000..dbb0b484 --- /dev/null +++ b/roles/support_public_endpoints/templates/api_nginx_conf.j2 @@ -0,0 +1,7 @@ +server { + listen 80; + server_name {{network}}-api.polkachu.com; + location / { + proxy_pass http://127.0.0.1:{{custom_port_prefix}}317; + } +} \ No newline at end of file diff --git a/roles/support_public_endpoints/templates/rpc_nginx_conf.j2 b/roles/support_public_endpoints/templates/rpc_nginx_conf.j2 new file mode 100644 index 00000000..b8d6b497 --- /dev/null +++ b/roles/support_public_endpoints/templates/rpc_nginx_conf.j2 @@ -0,0 +1,12 @@ +server { + listen 80; + server_name {{network}}-rpc.polkachu.com; + location / { + proxy_redirect off; + proxy_set_header Host $host; + proxy_set_header X-Real-IP $remote_addr; + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; + proxy_set_header X-Forwarded-Proto $scheme; + proxy_pass http://127.0.0.1:{{custom_port_prefix}}657; + } +} \ No newline at end of file diff --git a/roles/support_snapshot/tasks/main.yml b/roles/support_snapshot/tasks/main.yml new file mode 100644 index 00000000..d75d4d85 --- /dev/null +++ b/roles/support_snapshot/tasks/main.yml @@ -0,0 +1,54 @@ +--- +- set_fact: + snapshot_endpoint: 'https://snapshots.polkachu.com' + snapshot_profile: '--profile=minio1' + when: snapshot_server == 1 + +- set_fact: + snapshot_endpoint: 'https://snapshots2.polkachu.com' + snapshot_profile: '--profile=minio2' + when: snapshot_server == 2 + +- name: Install jq and awscli + become: true + apt: + name: + - awscli + - jq + state: present + update_cache: yes + +- name: Install snapd + become: true + apt: + name: snapd + state: present + update_cache: yes + +- name: Install lz4 + become: true + snap: + name: lz4 + state: present + +- name: Create directory + file: + path: '{{ user_dir }}/snapshot' + state: directory + mode: '0755' + +- name: Copy snapshot script + template: + src: 'snapshot.sh.j2' + dest: '{{ user_dir }}/snapshot/{{ network }}.sh' + owner: '{{ ansible_user }}' + group: '{{ ansible_user }}' + mode: '0700' + +- name: Create cronjob + cron: + user: '{{ ansible_user }}' + name: '{{ network }} snapshot' + minute: '{{ snapshot_minute }}' + hour: '{{ snapshot_hour }}' + job: '/bin/bash {{ user_dir }}/snapshot/{{ network }}.sh' diff --git a/roles/snapshot/templates/snapshot_custom.sh.j2 b/roles/support_snapshot/templates/snapshot.sh.j2 similarity index 81% rename from roles/snapshot/templates/snapshot_custom.sh.j2 rename to roles/support_snapshot/templates/snapshot.sh.j2 index b27db847..bc55742c 100644 --- a/roles/snapshot/templates/snapshot_custom.sh.j2 +++ b/roles/support_snapshot/templates/snapshot.sh.j2 @@ -1,8 +1,5 @@ #!/bin/bash -# This is for crontab -# 0 0 * * * /bin/bash {{ user_dir }}/snapshot_{{ network }}.sh - # Make sure the service is running sudo service {{ network }} start sleep 5 @@ -23,5 +20,5 @@ sudo service {{ network }} start # Transfer the file and then remove the file cd {{ user_dir }}/ -aws s3 --endpoint="{{ snapshot_endpoint }}" --acl="public-read" cp $FILENAME "s3://{{ snapshot_space }}/{{ network }}/" +aws s3 --endpoint="{{ snapshot_endpoint }}" --acl="public-read" cp $FILENAME "s3://snapshots/{{ network }}/" {{ snapshot_profile }} rm $FILENAME diff --git a/roles/support_state_sync/tasks/main.yml b/roles/support_state_sync/tasks/main.yml new file mode 100644 index 00000000..a926b9b6 --- /dev/null +++ b/roles/support_state_sync/tasks/main.yml @@ -0,0 +1,14 @@ +--- +- name: Create directory + file: + path: '{{ user_dir }}/state_sync' + state: directory + mode: '0755' + +- name: Copy state_sync file + template: + src: 'state_sync.sh.j2' + dest: '{{ user_dir }}/state_sync/{{ network }}.sh' + owner: '{{ ansible_user }}' + group: '{{ ansible_user }}' + mode: '0700' diff --git a/roles/state_sync/templates/state_sync.sh.j2 b/roles/support_state_sync/templates/state_sync.sh.j2 similarity index 97% rename from roles/state_sync/templates/state_sync.sh.j2 rename to roles/support_state_sync/templates/state_sync.sh.j2 index e10a6c41..dbb46fbd 100644 --- a/roles/state_sync/templates/state_sync.sh.j2 +++ b/roles/support_state_sync/templates/state_sync.sh.j2 @@ -1,6 +1,5 @@ #!/bin/bash -# Set variable SNAP_RPC="https://{{ network }}-rpc.polkachu.com:443" LATEST_HEIGHT=$(curl -s $SNAP_RPC/block | jq -r .result.block.header.height); \ diff --git a/roles/system_update/tasks/main.yaml b/roles/system_update/tasks/main.yaml new file mode 100644 index 00000000..f2781f3c --- /dev/null +++ b/roles/system_update/tasks/main.yaml @@ -0,0 +1,25 @@ +--- +- name: Update apt repo and cache + apt: + update_cache: true + cache_valid_time: 3600 + +- name: Upgrade all packages on servers + apt: + upgrade: dist + +- name: Check if a reboot is needed on all servers + stat: + path: '/var/run/reboot-required' + get_md5: no + register: reboot_required_file + +- name: Reboot the box if kernel updated + reboot: + msg: 'Reboot initiated by Ansible for kernel updates' + connect_timeout: 5 + reboot_timeout: 300 + pre_reboot_delay: 0 + post_reboot_delay: 30 + test_command: uptime + when: reboot_required_file.stat.exists diff --git a/sifchain.yml b/sifchain.yml deleted file mode 100644 index c1664be4..00000000 --- a/sifchain.yml +++ /dev/null @@ -1,15 +0,0 @@ ---- -- name: Prepare - hosts: '{{ target }}' - become: true - gather_facts: false - roles: - - prepare - -- name: Install node - hosts: '{{ target }}' - gather_facts: false - roles: - - standard_node_installation - - initialize_sifchain - - launch_node diff --git a/sommelier.yml b/sommelier.yml deleted file mode 100644 index 8e17a417..00000000 --- a/sommelier.yml +++ /dev/null @@ -1,15 +0,0 @@ ---- -- name: Prepare - hosts: '{{ target }}' - become: true - gather_facts: false - roles: - - prepare - -- name: Install node - hosts: '{{ target }}' - gather_facts: false - roles: - - standard_node_installation - - initialize_sommelier - - launch_node diff --git a/stargaze.yml b/stargaze.yml deleted file mode 100644 index dedbb471..00000000 --- a/stargaze.yml +++ /dev/null @@ -1,15 +0,0 @@ ---- -- name: Prepare - hosts: '{{ target }}' - become: true - gather_facts: false - roles: - - prepare - -- name: Install node - hosts: '{{ target }}' - gather_facts: false - roles: - - standard_node_installation - - initialize_stargaze - - launch_node diff --git a/support_cosmos_exporter.yml b/support_cosmos_exporter.yml new file mode 100644 index 00000000..4788dabc --- /dev/null +++ b/support_cosmos_exporter.yml @@ -0,0 +1,6 @@ +--- +- name: Install Cosmos Exporter + hosts: '{{ target }}' + gather_facts: false + roles: + - support_cosmos_exporter diff --git a/support_public_endpoints.yml b/support_public_endpoints.yml new file mode 100644 index 00000000..2cd11a5e --- /dev/null +++ b/support_public_endpoints.yml @@ -0,0 +1,6 @@ +--- +- name: Make public endpoints available + hosts: '{{ target }}' + gather_facts: false + roles: + - support_public_endpoints diff --git a/snapshot.yml b/support_snapshot.yml similarity index 79% rename from snapshot.yml rename to support_snapshot.yml index 0225780f..0d6a4da9 100644 --- a/snapshot.yml +++ b/support_snapshot.yml @@ -3,4 +3,4 @@ hosts: '{{ target }}' gather_facts: false roles: - - snapshot + - support_snapshot diff --git a/state_sync.yml b/support_state_sync.yml similarity index 60% rename from state_sync.yml rename to support_state_sync.yml index b70de6ec..0acb5fc3 100644 --- a/state_sync.yml +++ b/support_state_sync.yml @@ -2,5 +2,7 @@ - name: Install state sync script hosts: '{{ target }}' gather_facts: false + vars_files: + - '{{ var_file }}' roles: - - state_sync + - support_state_sync diff --git a/system_update.yml b/system_update.yml new file mode 100644 index 00000000..5e307b1c --- /dev/null +++ b/system_update.yml @@ -0,0 +1,5 @@ +--- +- hosts: '{{ target }}' + become: true + roles: + - system_update diff --git a/terra.yml b/terra.yml deleted file mode 100644 index 85b85f9d..00000000 --- a/terra.yml +++ /dev/null @@ -1,14 +0,0 @@ ---- -- name: Prepare - hosts: '{{ target }}' - become: true - gather_facts: false - roles: - - prepare - -- name: Install node - hosts: '{{ target }}' - gather_facts: false - roles: - - standard_node_installation - - initialize_terra diff --git a/umee.yml b/umee.yml deleted file mode 100644 index 4b1aa6dc..00000000 --- a/umee.yml +++ /dev/null @@ -1,15 +0,0 @@ ---- -- name: Prepare - hosts: '{{ target }}' - become: true - gather_facts: false - roles: - - prepare - -- name: Install node - hosts: '{{ target }}' - gather_facts: false - roles: - - standard_node_installation - - initialize_umee - - launch_node