From ae5543d54b3a4a5c792048699c663ee8de23ac1e Mon Sep 17 00:00:00 2001 From: Troy Kessler Date: Wed, 6 Mar 2024 14:27:18 +0100 Subject: [PATCH] chore: completed zeta and cosmoshub upgrade path --- .github/get_software_upgrades.py | 41 +++++++++++++++++ cosmoshub-4/config.yml | 78 +++++++++++++++++++++++++++++++- zeta_7000-1/config.yml | 6 +++ 3 files changed, 124 insertions(+), 1 deletion(-) create mode 100644 .github/get_software_upgrades.py diff --git a/.github/get_software_upgrades.py b/.github/get_software_upgrades.py new file mode 100644 index 0000000..46e9cec --- /dev/null +++ b/.github/get_software_upgrades.py @@ -0,0 +1,41 @@ +import requests + +rest = "https://lcd.osmosis.zone" +gov_version = "v1" + +r = requests.get("{}/cosmos/gov/{}/proposals?pagination.limit=1000".format(rest, gov_version)) +proposals = r.json()["proposals"] + +legacyUrl = "/cosmos.gov.v1.MsgExecLegacyContent" +v1SoftwareUrl = "/cosmos.upgrade.v1beta1.MsgSoftwareUpgrade" +v1beta1SoftwareUrl = "/cosmos.upgrade.v1beta1.SoftwareUpgradeProposal" +upgrades = [] + +for p in proposals: + if p["status"] != "PROPOSAL_STATUS_PASSED": + continue + + if gov_version == "v1": + for m in p["messages"]: + if m["@type"] == v1SoftwareUrl: + upgrades.append({ + "name": m["plan"]["name"], + "height": int(m["plan"]["height"]) + }) + elif m["@type"] == legacyUrl: + if m["content"]["@type"] == v1SoftwareUrl or m["content"]["@type"] == v1beta1SoftwareUrl: + upgrades.append({ + "name": m["content"]["plan"]["name"], + "height": int(m["content"]["plan"]["height"]) + }) + + if gov_version == "v1beta1": + if p["content"]["@type"] == v1beta1SoftwareUrl: + upgrades.append({ + "name": p["content"]["plan"]["name"], + "height": int(p["content"]["plan"]["height"]) + }) + +for u in upgrades: + print("- name: {}".format(u["name"])) + print(" height: {}".format(u["height"])) diff --git a/cosmoshub-4/config.yml b/cosmoshub-4/config.yml index 16e32b3..9743f28 100644 --- a/cosmoshub-4/config.yml +++ b/cosmoshub-4/config.yml @@ -7,6 +7,82 @@ properties: logo: "ar://GSK9zAQx1jOnQIhbM20qCoOFYT3EJXIJfwfvT_QhLVM" description: "Serving as the economic center of the Interchain, the Cosmos Hub is a blockchain that provides vital ecosystem services. The primary token of the Cosmos Hub is the ATOM, but the Hub will support many tokens in the future." +codebase: + git-repo: https://github.com/cosmos/gaia + settings: + # Cosmos specific settings for block and snapshot pools + cosmos-registry: https://github.com/cosmos/chain-registry/blob/master/cosmoshub/chain.json + cosmos-genesis: + name: "v4" + genesis-url: https://github.com/cosmos/mainnet/raw/master/genesis/genesis.cosmoshub-4.json.gz + cosmos-upgrades: + - name: "v4" + height: 5200791 + recommended-version: "v4.2.1" + commit: "dbd8a6fb522c571debf958837f9113c56d418f6b" + go-version: "go1.15" + ksync-engine: "tendermint" + - name: "Gravity-DEX" + height: 6910000 + recommended-version: "v5.0.8" + commit: "b72cc994f7156c8a8991e6beed2dde84ad274588" + go-version: "go1.16" + ksync-engine: "tendermint" + - name: "Vega" + height: 8695000 + recommended-version: "v6.0.4" + commit: "305668ab9d962431c79d718bb0ffdeec77a46439" + go-version: "go1.17" + ksync-engine: "tendermint" + - name: "v7-Theta" + height: 10085397 + recommended-version: "v7.1.1" + commit: "b2504c1e28eae936477c7b06ae4c0f058613a4e8" + go-version: "go1.18" + ksync-engine: "tendermint" + - name: "v8-Rho" + height: 14099412 + recommended-version: "v8.0.1" + commit: "890ab3aa2e5788537b0d2ebc9bafdc968340e0e5" + go-version: "go1.18" + ksync-engine: "tendermint" + - name: "v9-Lambda" + height: 14470501 + recommended-version: "v9.1.1" + commit: "66494d1ec72cfa0f8800aa8f1545e19d2af47e47" + go-version: "go1.18" + ksync-engine: "tendermint" + - name: "v10" + height: 15816200 + recommended-version: "v10.0.2" + commit: "a2b14cdd568273e12b80579b4e22681df95b4cb9" + go-version: "go1.20" + ksync-engine: "tendermint" + - name: "v11" + height: 16596000 + recommended-version: "v11.0.0" + commit: "541a8d86af28231c767d6db52eb88ba9496ad0c4" + go-version: "go1.20" + ksync-engine: "tendermint" + - name: "v12" + height: 16985500 + recommended-version: "v12.0.0" + commit: "6f8067d76ce30996f83645862153ccfaf5f13dd1" + go-version: "go1.20" + ksync-engine: "tendermint" + - name: "v13" + height: 17380000 + recommended-version: "v13.0.2" + commit: "2406abb61856b61904ff06c7be2a355babcc3dfc" + go-version: "go1.20" + ksync-engine: "tendermint" + - name: "v14" + height: 18262000 + recommended-version: "v14.1.0" + commit: "0d9408e9169488707f1ad423e87d0df84a30431f" + go-version: "go1.20" + ksync-engine: "tendermint" + networks: # Mainnet pools kyve-1: @@ -28,4 +104,4 @@ networks: ksync: binary-name: "gaiad" block-sync-pool: 0 - docs-url: "https://docs.cosmos.network/" \ No newline at end of file + docs-url: "https://docs.cosmos.network/" diff --git a/zeta_7000-1/config.yml b/zeta_7000-1/config.yml index dd349eb..2577af9 100644 --- a/zeta_7000-1/config.yml +++ b/zeta_7000-1/config.yml @@ -48,6 +48,12 @@ codebase: commit: "54d7613a90312cc97c6020e4cdba6a63ae1e5734" go-version: "go1.20" ksync-engine: "tendermint" + - name: "v14" + height: 2074730 + recommended-version: "v14.0.0" + commit: "1f8f76ff15fb7c339790ef5ab558bd512ab8eab0" + go-version: "go1.20" + ksync-engine: "tendermint" networks: # Testnet pools