diff --git a/.github/workflows/test-gaia-v15-fresh-upgrade.yml b/.github/workflows/test-gaia-v15-fresh-upgrade.yml index 3a53fb16c..98ab922d1 100644 --- a/.github/workflows/test-gaia-v15-fresh-upgrade.yml +++ b/.github/workflows/test-gaia-v15-fresh-upgrade.yml @@ -14,7 +14,119 @@ concurrency: cancel-in-progress: true env: + # All chain variables COMMIT_TIMEOUT: 3 + DOWNTIME_BLOCKS: 10000 + # Provider chain variables + CHAIN_BINARY: gaiad + CHAIN_ID: testnet + DENOM: uatom + BASE_FEES: 2000 + HIGH_FEES: 10000 + GAS: auto + GAS_ADJUSTMENT: 2 + GAS_PRICE: 0.005 + VOTING_PERIOD: 10s + COSMOS_SDK: v45 + COSMOVISOR: false + # Provider nodes variables + HOME_1: /home/runner/.val1 + HOME_2: /home/runner/.val2 + HOME_3: /home/runner/.val3 + PROVIDER_SERVICE_1: gaia1.service + PROVIDER_SERVICE_2: gaia2.service + PROVIDER_SERVICE_3: gaia3.service + MNEMONIC_1: abandon abandon abandon abandon abandon abandon abandon abandon abandon abandon abandon abandon abandon abandon abandon abandon abandon abandon abandon abandon abandon abandon abandon art + MNEMONIC_2: abandon cabbage abandon cabbage abandon cabbage abandon cabbage abandon cabbage abandon cabbage abandon cabbage abandon cabbage abandon cabbage abandon cabbage abandon cabbage abandon garage + MNEMONIC_3: abandon cash abandon cash abandon cash abandon cash abandon cash abandon cash abandon cash abandon cash abandon cash abandon cash abandon cash abandon earth + MNEMONIC_RELAYER: abandon property abandon property abandon property abandon property abandon property abandon property abandon property abandon property abandon property abandon property abandon property abandon success + MNEMONIC_4: abandon property abandon property abandon property abandon property abandon property abandon property abandon property abandon property abandon property abandon property abandon property abandon success + MNEMONIC_5: abandon fame abandon fame abandon fame abandon fame abandon fame abandon fame abandon fame abandon fame abandon fame abandon fame abandon fame abandon claim + MONIKER_1: val1 + MONIKER_2: val2 + MONIKER_3: val3 + MONIKER_RELAYER: relayer + MONIKER_4: relayer + MONIKER_5: wallet5 + VALOPER_1: cosmosvaloper1r5v5srda7xfth3hn2s26txvrcrntldju7lnwmv + VALOPER_2: cosmosvaloper1ay4dpm0kjmvtpug28vgw5w32yyjxa5spq248vn + VALOPER_3: cosmosvaloper1v8zgdpzqfazvk6fgwhqqhzx0hfannrajukgdkc + WALLET_1: cosmos1r5v5srda7xfth3hn2s26txvrcrntldjumt8mhl + WALLET_2: cosmos1ay4dpm0kjmvtpug28vgw5w32yyjxa5sp97pjqq + WALLET_3: cosmos1v8zgdpzqfazvk6fgwhqqhzx0hfannrajezuc6t + WALLET_4: cosmos1ty2qlurqsxj6sgs378hxmzyxh0ds8ukc70w844 + WALLET_RELAYER: cosmos1ty2qlurqsxj6sgs378hxmzyxh0ds8ukc70w844 + VAL1_STAKE: 800000000 + VAL2_STAKE: 200000000 + VAL3_STAKE: 10000000 + VAL_FUNDS: 11000000000 + VAL_STAKE: 1000000000 + VAL_STAKE_STEP: 1000000 + VAL1_API_PORT: 25001 + VAL2_API_PORT: 25002 + VAL3_API_PORT: 25003 + VAL1_GRPC_PORT: 26001 + VAL2_GRPC_PORT: 26002 + VAL3_GRPC_PORT: 26003 + VAL1_RPC_PORT: 27001 + VAL2_RPC_PORT: 27002 + VAL3_RPC_PORT: 27003 + VAL1_P2P_PORT: 28001 + VAL2_P2P_PORT: 28002 + VAL3_P2P_PORT: 28003 + VAL1_PPROF_PORT: 29001 + VAL2_PPROF_PORT: 29002 + VAL3_PPROF_PORT: 29003 + # Consumer chain variables + ICS_120: false + ICS_200: false + ICS_310: false + ICS_330: false + ICS_400: false + RECIPIENT: cosmos1r5v5srda7xfth3hn2s26txvrcrntldjumt8mhl + # Reference ICS chain variables + CONSUMER_DENOM: ucon + CONSUMER_FEES: 500 + CONSUMER_CHAIN_V12_BINARY_URL: https://github.com/hyphacoop/cosmos-builds/releases/download/ics-v1.2.0-multiden/interchain-security-cd-linux + CONSUMER_CHAIN_V12_BINARY: consumerd_v1.2.0 + CONSUMER_CHAIN_V2_BINARY_URL: https://github.com/hyphacoop/cosmos-builds/releases/download/ics-v2.0.0/interchain-security-cd-linux + CONSUMER_CHAIN_V2_BINARY: consumerd_v2.0.0 + CONSUMER_CHAIN_V310_BINARY_URL: https://github.com/hyphacoop/cosmos-builds/releases/download/ics-v3.1.0/interchain-security-cd-linux + CONSUMER_CHAIN_V310_BINARY: consumerd_v3.1.0 + CONSUMER_CHAIN_V320_BINARY_URL: https://github.com/hyphacoop/cosmos-builds/releases/download/ics-consumer-v3.2.0/interchain-security-cd-linux + CONSUMER_CHAIN_V320_BINARY: consumerd_v3.2.0 + CONSUMER_CHAIN_V330_BINARY_URL: https://github.com/hyphacoop/cosmos-builds/releases/download/ics-consumer-v3.3.0/interchain-security-cd-linux + CONSUMER_CHAIN_V330_BINARY: consumerd_v3.3.0 + STRIDE_V18_BINARY_URL: https://github.com/hyphacoop/cosmos-builds/releases/download/stride-consumer-v18.0.0/strided-consumer-linux + ICS_TRANSFORM_BINARY_URL: https://github.com/hyphacoop/cosmos-builds/releases/download/ics-v3.3.0-transform/interchain-security-cd + ICS_TRANSFORM_BINARY: cd-transform + # Stride chain variables + STRIDE_SOV_CHAIN_BINARY_URL: https://github.com/hyphacoop/cosmos-builds/releases/download/stride-v11.0.0/stride-v11.0.0-linux-amd64 + STRIDE_CON_CHAIN_BINARY_URL: https://github.com/hyphacoop/cosmos-builds/releases/download/stride-v12.1.0/stride-v12.1.0-linux-amd64 + STRIDE_CHAIN_BINARY: strided + STRIDE_CHAIN_ID: five + STRIDE_DENOM: ustrd + STRIDE_HOME_1: /home/runner/.stride1 + STRIDE_HOME_2: /home/runner/.stride2 + STRIDE_SERVICE_1: stride1.service + STRIDE_SERVICE_2: stride2.service + STRIDE_WALLET_1: stride1r5v5srda7xfth3hn2s26txvrcrntldjucq88rn + STRIDE_WALLET_LIQUID: stride17n3vkvg6lwf98p3kanlhlyjk6zkrfla9zrhma6 + STRIDE_API_1: 35001 + STRIDE_API_2: 35002 + STRIDE_GRPC_1: 36001 + STRIDE_GRPC_2: 36002 + STRIDE_RPC_1: 37001 + STRIDE_RPC_2: 37002 + STRIDE_P2P_1: 38001 + STRIDE_P2P_2: 38002 + STRIDE_PPROF_1: 39001 + STRIDE_PPROF_2: 39002 + CHANGEOVER_HEIGHT_OFFSET: false + # Relayer variables + RELAYER: hermes + HERMES_VERSION: v1.8.0 + RLY_VERSION: "2.5.0" jobs: set-version-matrix: runs-on: ubuntu-22.04 @@ -98,121 +210,8 @@ jobs: ${{ fromJSON(needs.set-version-matrix.outputs.upgrade_versions) }} fail-fast: false env: - COMMIT_TIMEOUT: 3 - COSMOVISOR: false COSMOVISOR_VERSION: ${{ matrix.cv_version }} UPGRADE_MECHANISM: ${{ matrix.upgrade_mechanism }} - # Provider chain variables - CHAIN_BINARY: gaiad - CHAIN_ID: testnet - DENOM: uatom - BASE_FEES: 2000 - HIGH_FEES: 10000 - GAS: auto - GAS_ADJUSTMENT: 2 - GAS_PRICE: 0.005 - VOTING_PERIOD: 10s - COSMOS_SDK: v45 - # Provider node variables - HOME_1: /home/runner/.val1 - HOME_2: /home/runner/.val2 - HOME_3: /home/runner/.val3 - PROVIDER_SERVICE_1: gaia1.service - PROVIDER_SERVICE_2: gaia2.service - PROVIDER_SERVICE_3: gaia3.service - MNEMONIC_1: abandon abandon abandon abandon abandon abandon abandon abandon abandon abandon abandon abandon abandon abandon abandon abandon abandon abandon abandon abandon abandon abandon abandon art - MNEMONIC_2: abandon cabbage abandon cabbage abandon cabbage abandon cabbage abandon cabbage abandon cabbage abandon cabbage abandon cabbage abandon cabbage abandon cabbage abandon cabbage abandon garage - MNEMONIC_3: abandon cash abandon cash abandon cash abandon cash abandon cash abandon cash abandon cash abandon cash abandon cash abandon cash abandon cash abandon earth - MNEMONIC_RELAYER: abandon property abandon property abandon property abandon property abandon property abandon property abandon property abandon property abandon property abandon property abandon property abandon success - MNEMONIC_4: abandon property abandon property abandon property abandon property abandon property abandon property abandon property abandon property abandon property abandon property abandon property abandon success - MNEMONIC_5: abandon fame abandon fame abandon fame abandon fame abandon fame abandon fame abandon fame abandon fame abandon fame abandon fame abandon fame abandon claim - MONIKER_1: val1 - MONIKER_2: val2 - MONIKER_3: val3 - MONIKER_RELAYER: relayer - MONIKER_4: relayer - MONIKER_5: wallet5 - VALOPER_1: cosmosvaloper1r5v5srda7xfth3hn2s26txvrcrntldju7lnwmv - VALOPER_2: cosmosvaloper1ay4dpm0kjmvtpug28vgw5w32yyjxa5spq248vn - VALOPER_3: cosmosvaloper1v8zgdpzqfazvk6fgwhqqhzx0hfannrajukgdkc - WALLET_1: cosmos1r5v5srda7xfth3hn2s26txvrcrntldjumt8mhl - WALLET_2: cosmos1ay4dpm0kjmvtpug28vgw5w32yyjxa5sp97pjqq - WALLET_3: cosmos1v8zgdpzqfazvk6fgwhqqhzx0hfannrajezuc6t - WALLET_4: cosmos1ty2qlurqsxj6sgs378hxmzyxh0ds8ukc70w844 - WALLET_RELAYER: cosmos1ty2qlurqsxj6sgs378hxmzyxh0ds8ukc70w844 - VAL1_STAKE: 800000000 - VAL2_STAKE: 200000000 - VAL3_STAKE: 10000000 - VAL_FUNDS: 11000000000 - VAL_STAKE: 1000000000 - VAL_STAKE_STEP: 1000000 - VAL1_API_PORT: 25001 - VAL2_API_PORT: 25002 - VAL3_API_PORT: 25003 - VAL1_GRPC_PORT: 26001 - VAL2_GRPC_PORT: 26002 - VAL3_GRPC_PORT: 26003 - VAL1_RPC_PORT: 27001 - VAL2_RPC_PORT: 27002 - VAL3_RPC_PORT: 27003 - VAL1_P2P_PORT: 28001 - VAL2_P2P_PORT: 28002 - VAL3_P2P_PORT: 28003 - VAL1_PPROF_PORT: 29001 - VAL2_PPROF_PORT: 29002 - VAL3_PPROF_PORT: 29003 - # Consumer chain variables - DOWNTIME_BLOCKS: 10000 - RECIPIENT: cosmos1r5v5srda7xfth3hn2s26txvrcrntldjumt8mhl - ICS_120: false - ICS_200: false - ICS_310: false - ICS_330: false - CONSUMER_ICS: v3.1.0 - PROVIDER_ICS: v2.4.0 - # Reference ICS chain variables - CONSUMER_DENOM: ucon - CONSUMER_FEES: 500 - CONSUMER_CHAIN_V12_BINARY_URL: https://github.com/hyphacoop/cosmos-builds/releases/download/ics-v1.2.0-multiden/interchain-security-cd-linux - CONSUMER_CHAIN_V12_BINARY: consumerd_v1.2.0 - CONSUMER_CHAIN_V2_BINARY_URL: https://github.com/hyphacoop/cosmos-builds/releases/download/ics-v2.0.0/interchain-security-cd-linux - CONSUMER_CHAIN_V2_BINARY: consumerd_v2.0.0 - CONSUMER_CHAIN_V310_BINARY_URL: https://github.com/hyphacoop/cosmos-builds/releases/download/ics-v3.1.0/interchain-security-cd-linux - CONSUMER_CHAIN_V310_BINARY: consumerd_v3.1.0 - CONSUMER_CHAIN_V320_BINARY_URL: https://github.com/hyphacoop/cosmos-builds/releases/download/ics-consumer-v3.2.0/interchain-security-cd-linux - CONSUMER_CHAIN_V320_BINARY: consumerd_v3.2.0 - CONSUMER_CHAIN_V330_BINARY_URL: https://github.com/hyphacoop/cosmos-builds/releases/download/ics-consumer-v3.3.0/interchain-security-cd-linux - CONSUMER_CHAIN_V330_BINARY: consumerd_v3.3.0 - STRIDE_V18_BINARY_URL: https://github.com/hyphacoop/cosmos-builds/releases/download/stride-consumer-v18.0.0/strided-consumer-linux - ICS_TRANSFORM_BINARY_URL: https://github.com/hyphacoop/cosmos-builds/releases/download/ics-v3.3.0-transform/interchain-security-cd - ICS_TRANSFORM_BINARY: cd-transform - # Sovereign-ICS chain variables - STRIDE_SOV_CHAIN_BINARY_URL: https://github.com/hyphacoop/cosmos-builds/releases/download/stride-v11.0.0/stride-v11.0.0-linux-amd64 - STRIDE_CON_CHAIN_BINARY_URL: https://github.com/hyphacoop/cosmos-builds/releases/download/stride-v12.1.0/stride-v12.1.0-linux-amd64 - STRIDE_CHAIN_BINARY: strided - STRIDE_CHAIN_ID: five - STRIDE_DENOM: ustrd - STRIDE_HOME_1: /home/runner/.stride1 - STRIDE_HOME_2: /home/runner/.stride2 - STRIDE_SERVICE_1: stride1.service - STRIDE_SERVICE_2: stride2.service - STRIDE_WALLET_1: stride1r5v5srda7xfth3hn2s26txvrcrntldjucq88rn - STRIDE_WALLET_LIQUID: stride17n3vkvg6lwf98p3kanlhlyjk6zkrfla9zrhma6 - STRIDE_API_1: 35001 - STRIDE_API_2: 35002 - STRIDE_GRPC_1: 36001 - STRIDE_GRPC_2: 36002 - STRIDE_RPC_1: 37001 - STRIDE_RPC_2: 37002 - STRIDE_P2P_1: 38001 - STRIDE_P2P_2: 38002 - STRIDE_PPROF_1: 39001 - STRIDE_PPROF_2: 39002 - CHANGEOVER_HEIGHT_OFFSET: false - # Relayer variables - RELAYER: hermes - HERMES_VERSION: v1.7.4 - RLY_VERSION: "2.4.2" steps: - name: start-version run: echo ${{matrix.gaia_version}} @@ -304,121 +303,8 @@ jobs: ${{ fromJSON(needs.set-version-matrix.outputs.upgrade_versions) }} fail-fast: false env: - COMMIT_TIMEOUT: 3 - COSMOVISOR: false COSMOVISOR_VERSION: ${{ matrix.cv_version }} UPGRADE_MECHANISM: ${{ matrix.upgrade_mechanism }} - # Provider chain variables - CHAIN_BINARY: gaiad - CHAIN_ID: testnet - DENOM: uatom - BASE_FEES: 2000 - HIGH_FEES: 10000 - GAS: auto - GAS_ADJUSTMENT: 2 - GAS_PRICE: 0.005 - VOTING_PERIOD: 10s - COSMOS_SDK: v45 - # Provider node variables - HOME_1: /home/runner/.val1 - HOME_2: /home/runner/.val2 - HOME_3: /home/runner/.val3 - PROVIDER_SERVICE_1: gaia1.service - PROVIDER_SERVICE_2: gaia2.service - PROVIDER_SERVICE_3: gaia3.service - MNEMONIC_1: abandon abandon abandon abandon abandon abandon abandon abandon abandon abandon abandon abandon abandon abandon abandon abandon abandon abandon abandon abandon abandon abandon abandon art - MNEMONIC_2: abandon cabbage abandon cabbage abandon cabbage abandon cabbage abandon cabbage abandon cabbage abandon cabbage abandon cabbage abandon cabbage abandon cabbage abandon cabbage abandon garage - MNEMONIC_3: abandon cash abandon cash abandon cash abandon cash abandon cash abandon cash abandon cash abandon cash abandon cash abandon cash abandon cash abandon earth - MNEMONIC_RELAYER: abandon property abandon property abandon property abandon property abandon property abandon property abandon property abandon property abandon property abandon property abandon property abandon success - MNEMONIC_4: abandon property abandon property abandon property abandon property abandon property abandon property abandon property abandon property abandon property abandon property abandon property abandon success - MNEMONIC_5: abandon fame abandon fame abandon fame abandon fame abandon fame abandon fame abandon fame abandon fame abandon fame abandon fame abandon fame abandon claim - MONIKER_1: val1 - MONIKER_2: val2 - MONIKER_3: val3 - MONIKER_RELAYER: relayer - MONIKER_4: relayer - MONIKER_5: wallet5 - VALOPER_1: cosmosvaloper1r5v5srda7xfth3hn2s26txvrcrntldju7lnwmv - VALOPER_2: cosmosvaloper1ay4dpm0kjmvtpug28vgw5w32yyjxa5spq248vn - VALOPER_3: cosmosvaloper1v8zgdpzqfazvk6fgwhqqhzx0hfannrajukgdkc - WALLET_1: cosmos1r5v5srda7xfth3hn2s26txvrcrntldjumt8mhl - WALLET_2: cosmos1ay4dpm0kjmvtpug28vgw5w32yyjxa5sp97pjqq - WALLET_3: cosmos1v8zgdpzqfazvk6fgwhqqhzx0hfannrajezuc6t - WALLET_4: cosmos1ty2qlurqsxj6sgs378hxmzyxh0ds8ukc70w844 - WALLET_RELAYER: cosmos1ty2qlurqsxj6sgs378hxmzyxh0ds8ukc70w844 - VAL1_STAKE: 800000000 - VAL2_STAKE: 200000000 - VAL3_STAKE: 10000000 - VAL_FUNDS: 11000000000 - VAL_STAKE: 1000000000 - VAL_STAKE_STEP: 1000000 - VAL1_API_PORT: 25001 - VAL2_API_PORT: 25002 - VAL3_API_PORT: 25003 - VAL1_GRPC_PORT: 26001 - VAL2_GRPC_PORT: 26002 - VAL3_GRPC_PORT: 26003 - VAL1_RPC_PORT: 27001 - VAL2_RPC_PORT: 27002 - VAL3_RPC_PORT: 27003 - VAL1_P2P_PORT: 28001 - VAL2_P2P_PORT: 28002 - VAL3_P2P_PORT: 28003 - VAL1_PPROF_PORT: 29001 - VAL2_PPROF_PORT: 29002 - VAL3_PPROF_PORT: 29003 - # Consumer chain variables - DOWNTIME_BLOCKS: 10000 - RECIPIENT: cosmos1r5v5srda7xfth3hn2s26txvrcrntldjumt8mhl - ICS_120: false - ICS_200: false - ICS_310: false - ICS_330: false - CONSUMER_ICS: v3.1.0 - PROVIDER_ICS: v2.4.0 - # Reference ICS chain variables - CONSUMER_DENOM: ucon - CONSUMER_FEES: 500 - CONSUMER_CHAIN_V12_BINARY_URL: https://github.com/hyphacoop/cosmos-builds/releases/download/ics-v1.2.0-multiden/interchain-security-cd-linux - CONSUMER_CHAIN_V12_BINARY: consumerd_v1.2.0 - CONSUMER_CHAIN_V2_BINARY_URL: https://github.com/hyphacoop/cosmos-builds/releases/download/ics-v2.0.0/interchain-security-cd-linux - CONSUMER_CHAIN_V2_BINARY: consumerd_v2.0.0 - CONSUMER_CHAIN_V310_BINARY_URL: https://github.com/hyphacoop/cosmos-builds/releases/download/ics-v3.1.0/interchain-security-cd-linux - CONSUMER_CHAIN_V310_BINARY: consumerd_v3.1.0 - CONSUMER_CHAIN_V320_BINARY_URL: https://github.com/hyphacoop/cosmos-builds/releases/download/ics-consumer-v3.2.0/interchain-security-cd-linux - CONSUMER_CHAIN_V320_BINARY: consumerd_v3.2.0 - CONSUMER_CHAIN_V330_BINARY_URL: https://github.com/hyphacoop/cosmos-builds/releases/download/ics-consumer-v3.3.0/interchain-security-cd-linux - CONSUMER_CHAIN_V330_BINARY: consumerd_v3.3.0 - STRIDE_V18_BINARY_URL: https://github.com/hyphacoop/cosmos-builds/releases/download/stride-consumer-v18.0.0/strided-consumer-linux - ICS_TRANSFORM_BINARY_URL: https://github.com/hyphacoop/cosmos-builds/releases/download/ics-v3.3.0-transform/interchain-security-cd - ICS_TRANSFORM_BINARY: cd-transform - # Sovereign-ICS chain variables - STRIDE_SOV_CHAIN_BINARY_URL: https://github.com/hyphacoop/cosmos-builds/releases/download/stride-v11.0.0/stride-v11.0.0-linux-amd64 - STRIDE_CON_CHAIN_BINARY_URL: https://github.com/hyphacoop/cosmos-builds/releases/download/stride-v12.1.0/stride-v12.1.0-linux-amd64 - STRIDE_CHAIN_BINARY: strided - STRIDE_CHAIN_ID: five - STRIDE_DENOM: ustrd - STRIDE_HOME_1: /home/runner/.stride1 - STRIDE_HOME_2: /home/runner/.stride2 - STRIDE_SERVICE_1: stride1.service - STRIDE_SERVICE_2: stride2.service - STRIDE_WALLET_1: stride1r5v5srda7xfth3hn2s26txvrcrntldjucq88rn - STRIDE_WALLET_LIQUID: stride17n3vkvg6lwf98p3kanlhlyjk6zkrfla9zrhma6 - STRIDE_API_1: 35001 - STRIDE_API_2: 35002 - STRIDE_GRPC_1: 36001 - STRIDE_GRPC_2: 36002 - STRIDE_RPC_1: 37001 - STRIDE_RPC_2: 37002 - STRIDE_P2P_1: 38001 - STRIDE_P2P_2: 38002 - STRIDE_PPROF_1: 39001 - STRIDE_PPROF_2: 39002 - CHANGEOVER_HEIGHT_OFFSET: false - # Relayer variables - RELAYER: hermes - HERMES_VERSION: v1.7.4 - RLY_VERSION: "2.4.2" steps: - name: start-version run: echo ${{matrix.gaia_version}} @@ -520,121 +406,19 @@ jobs: ${{ fromJSON(needs.set-version-matrix-relayer.outputs.upgrade_versions) }} fail-fast: false env: - COMMIT_TIMEOUT: 3 - COSMOVISOR: false COSMOVISOR_VERSION: ${{ matrix.cv_version }} UPGRADE_MECHANISM: ${{ matrix.upgrade_mechanism }} - # Provider chain variables - CHAIN_BINARY: gaiad - CHAIN_ID: testnet - DENOM: uatom - BASE_FEES: 2000 - HIGH_FEES: 10000 - GAS: auto - GAS_ADJUSTMENT: 2 - GAS_PRICE: 0.005 - VOTING_PERIOD: 10s - COSMOS_SDK: v45 - # Provider node variables - HOME_1: /home/runner/.val1 - HOME_2: /home/runner/.val2 - HOME_3: /home/runner/.val3 - PROVIDER_SERVICE_1: gaia1.service - PROVIDER_SERVICE_2: gaia2.service - PROVIDER_SERVICE_3: gaia3.service - MNEMONIC_1: abandon abandon abandon abandon abandon abandon abandon abandon abandon abandon abandon abandon abandon abandon abandon abandon abandon abandon abandon abandon abandon abandon abandon art - MNEMONIC_2: abandon cabbage abandon cabbage abandon cabbage abandon cabbage abandon cabbage abandon cabbage abandon cabbage abandon cabbage abandon cabbage abandon cabbage abandon cabbage abandon garage - MNEMONIC_3: abandon cash abandon cash abandon cash abandon cash abandon cash abandon cash abandon cash abandon cash abandon cash abandon cash abandon cash abandon earth - MNEMONIC_RELAYER: abandon property abandon property abandon property abandon property abandon property abandon property abandon property abandon property abandon property abandon property abandon property abandon success - MNEMONIC_4: abandon property abandon property abandon property abandon property abandon property abandon property abandon property abandon property abandon property abandon property abandon property abandon success - MNEMONIC_5: abandon fame abandon fame abandon fame abandon fame abandon fame abandon fame abandon fame abandon fame abandon fame abandon fame abandon fame abandon claim - MONIKER_1: val1 - MONIKER_2: val2 - MONIKER_3: val3 - MONIKER_RELAYER: relayer - MONIKER_4: relayer - MONIKER_5: wallet5 - VALOPER_1: cosmosvaloper1r5v5srda7xfth3hn2s26txvrcrntldju7lnwmv - VALOPER_2: cosmosvaloper1ay4dpm0kjmvtpug28vgw5w32yyjxa5spq248vn - VALOPER_3: cosmosvaloper1v8zgdpzqfazvk6fgwhqqhzx0hfannrajukgdkc - WALLET_1: cosmos1r5v5srda7xfth3hn2s26txvrcrntldjumt8mhl - WALLET_2: cosmos1ay4dpm0kjmvtpug28vgw5w32yyjxa5sp97pjqq - WALLET_3: cosmos1v8zgdpzqfazvk6fgwhqqhzx0hfannrajezuc6t - WALLET_4: cosmos1ty2qlurqsxj6sgs378hxmzyxh0ds8ukc70w844 - WALLET_RELAYER: cosmos1ty2qlurqsxj6sgs378hxmzyxh0ds8ukc70w844 - VAL1_STAKE: 800000000 - VAL2_STAKE: 200000000 - VAL3_STAKE: 10000000 - VAL_FUNDS: 11000000000 - VAL_STAKE: 1000000000 - VAL_STAKE_STEP: 1000000 - VAL1_API_PORT: 25001 - VAL2_API_PORT: 25002 - VAL3_API_PORT: 25003 - VAL1_GRPC_PORT: 26001 - VAL2_GRPC_PORT: 26002 - VAL3_GRPC_PORT: 26003 - VAL1_RPC_PORT: 27001 - VAL2_RPC_PORT: 27002 - VAL3_RPC_PORT: 27003 - VAL1_P2P_PORT: 28001 - VAL2_P2P_PORT: 28002 - VAL3_P2P_PORT: 28003 - VAL1_PPROF_PORT: 29001 - VAL2_PPROF_PORT: 29002 - VAL3_PPROF_PORT: 29003 # Consumer chain variables - DOWNTIME_BLOCKS: 10000 - RECIPIENT: cosmos1r5v5srda7xfth3hn2s26txvrcrntldjumt8mhl - ICS_120: false - ICS_200: false - ICS_310: false - ICS_330: false + ICS_310: true CONSUMER_ICS: v3.1.0 PROVIDER_ICS: v2.4.0 # Reference ICS chain variables CONSUMER_DENOM: ucon CONSUMER_FEES: 500 - CONSUMER_CHAIN_V12_BINARY_URL: https://github.com/hyphacoop/cosmos-builds/releases/download/ics-v1.2.0-multiden/interchain-security-cd-linux - CONSUMER_CHAIN_V12_BINARY: consumerd_v1.2.0 - CONSUMER_CHAIN_V2_BINARY_URL: https://github.com/hyphacoop/cosmos-builds/releases/download/ics-v2.0.0/interchain-security-cd-linux - CONSUMER_CHAIN_V2_BINARY: consumerd_v2.0.0 CONSUMER_CHAIN_V310_BINARY_URL: https://github.com/hyphacoop/cosmos-builds/releases/download/ics-v3.1.0/interchain-security-cd-linux CONSUMER_CHAIN_V310_BINARY: consumerd_v3.1.0 - CONSUMER_CHAIN_V320_BINARY_URL: https://github.com/hyphacoop/cosmos-builds/releases/download/ics-consumer-v3.2.0/interchain-security-cd-linux - CONSUMER_CHAIN_V320_BINARY: consumerd_v3.2.0 - CONSUMER_CHAIN_V330_BINARY_URL: https://github.com/hyphacoop/cosmos-builds/releases/download/ics-consumer-v3.3.0/interchain-security-cd-linux - CONSUMER_CHAIN_V330_BINARY: consumerd_v3.3.0 - STRIDE_V18_BINARY_URL: https://github.com/hyphacoop/cosmos-builds/releases/download/stride-consumer-v18.0.0/strided-consumer-linux ICS_TRANSFORM_BINARY_URL: https://github.com/hyphacoop/cosmos-builds/releases/download/ics-v3.3.0-transform/interchain-security-cd ICS_TRANSFORM_BINARY: cd-transform - # Sovereign-ICS chain variables - STRIDE_SOV_CHAIN_BINARY_URL: https://github.com/hyphacoop/cosmos-builds/releases/download/stride-v11.0.0/stride-v11.0.0-linux-amd64 - STRIDE_CON_CHAIN_BINARY_URL: https://github.com/hyphacoop/cosmos-builds/releases/download/stride-v12.1.0/stride-v12.1.0-linux-amd64 - STRIDE_CHAIN_BINARY: strided - STRIDE_CHAIN_ID: five - STRIDE_DENOM: ustrd - STRIDE_HOME_1: /home/runner/.stride1 - STRIDE_HOME_2: /home/runner/.stride2 - STRIDE_SERVICE_1: stride1.service - STRIDE_SERVICE_2: stride2.service - STRIDE_WALLET_1: stride1r5v5srda7xfth3hn2s26txvrcrntldjucq88rn - STRIDE_WALLET_LIQUID: stride17n3vkvg6lwf98p3kanlhlyjk6zkrfla9zrhma6 - STRIDE_API_1: 35001 - STRIDE_API_2: 35002 - STRIDE_GRPC_1: 36001 - STRIDE_GRPC_2: 36002 - STRIDE_RPC_1: 37001 - STRIDE_RPC_2: 37002 - STRIDE_P2P_1: 38001 - STRIDE_P2P_2: 38002 - STRIDE_PPROF_1: 39001 - STRIDE_PPROF_2: 39002 - CHANGEOVER_HEIGHT_OFFSET: false - # Relayer variables - # RELAYER: hermes - HERMES_VERSION: v1.7.4 - RLY_VERSION: "2.4.2" steps: - name: start-version run: echo ${{matrix.gaia_version}} @@ -686,26 +470,13 @@ jobs: run: tests/v15_upgrade/setup_relayer.sh - name: Download consumer chain binaries run: | - wget $CONSUMER_CHAIN_V2_BINARY_URL -O $HOME/go/bin/$CONSUMER_CHAIN_V2_BINARY -q - chmod +x $HOME/go/bin/$CONSUMER_CHAIN_V2_BINARY wget $CONSUMER_CHAIN_V310_BINARY_URL -O $HOME/go/bin/$CONSUMER_CHAIN_V310_BINARY -q chmod +x $HOME/go/bin/$CONSUMER_CHAIN_V310_BINARY - wget $CONSUMER_CHAIN_V320_BINARY_URL -O $HOME/go/bin/$CONSUMER_CHAIN_V320_BINARY -q - chmod +x $HOME/go/bin/$CONSUMER_CHAIN_V320_BINARY - wget $CONSUMER_CHAIN_V330_BINARY_URL -O $HOME/go/bin/$CONSUMER_CHAIN_V330_BINARY -q - chmod +x $HOME/go/bin/$CONSUMER_CHAIN_V330_BINARY - wget $STRIDE_CON_CHAIN_BINARY_URL -O $HOME/go/bin/$STRIDE_CHAIN_BINARY -q - chmod +x $HOME/go/bin/$STRIDE_CHAIN_BINARY wget $ICS_TRANSFORM_BINARY_URL -O $HOME/go/bin/$ICS_TRANSFORM_BINARY -q chmod +x $HOME/go/bin/$ICS_TRANSFORM_BINARY - name: Consumer chain binary URLs run: | - echo "$CONSUMER_CHAIN_V12_BINARY runs off $CONSUMER_CHAIN_V12_BINARY_URL" - echo "$CONSUMER_CHAIN_V2_BINARY runs off $CONSUMER_CHAIN_V2_BINARY_URL" echo "$CONSUMER_CHAIN_V310_BINARY runs off $CONSUMER_CHAIN_V310_BINARY_URL" - echo "$CONSUMER_CHAIN_V320_BINARY runs off $CONSUMER_CHAIN_V320_BINARY_URL" - echo "$CONSUMER_CHAIN_V330_BINARY runs off $CONSUMER_CHAIN_V330_BINARY_URL" - echo "$STRIDE_BINARY runs off $STRIDE_CON_CHAIN_BINARY_URL" - name: Start chain env: START_VERSION: ${{matrix.gaia_version}} @@ -880,7 +651,7 @@ jobs: CON1_PPROF_PORT: 29601 CON2_PPROF_PORT: 29602 CON3_PPROF_PORT: 29603 - DOWNTIME_BLOCKS: 1000 + DOWNTIME_BLOCKS: 20 run: | export CONSUMER_CHAIN_BINARY=$CONSUMER_CHAIN_V310_BINARY tests/major_fresh_upgrade/init_consumer_assign_keys.sh @@ -949,6 +720,37 @@ jobs: channel_id=$($CHAIN_BINARY q ibc channel connections $connection_id -o json --home $HOME_1 | jq -r '.channels[] | select(.port_id=="transfer").channel_id') tests/major_fresh_upgrade/test_consumer_ibc_transfer.sh $channel_id + - name: Stop validator services + env: + CONSUMER_SERVICE_2: six_2.service + CONSUMER_SERVICE_3: six_3.service + run: | + sudo systemctl disable $CONSUMER_SERVICE_2 --now + sudo systemctl disable $CONSUMER_SERVICE_3 --now + sleep $(($COMMIT_TIMEOUT*30)) + - name: _Soft opt-out test> Validator must be jailed - 1 + run: tests/test_validator_jailed.sh $VALOPER_2 true + - name: _Soft opt-out test> Validator must not be jailed + run: tests/test_validator_jailed.sh $VALOPER_3 false + - name: Unjail validator + env: + CONSUMER_SERVICE_2: six_2.service + run: | + sudo systemctl enable $CONSUMER_SERVICE_2 --now + sleep $(($COMMIT_TIMEOUT*10)) + $CHAIN_BINARY tx slashing unjail --from $WALLET_2 --gas $GAS --gas-adjustment $GAS_ADJUSTMENT --gas-prices $GAS_PRICE$DENOM -y --home $HOME_1 + sleep $(($COMMIT_TIMEOUT*2)) + - name: _Soft opt-out test> Validator must be unjailed + run: tests/test_validator_jailed.sh $VALOPER_2 false + # - name: Stop validator services + # env: + # CONSUMER_SERVICE_2: six_2.service + # run: | + # sudo systemctl disable $CONSUMER_SERVICE_2 --now + # sleep $(($COMMIT_TIMEOUT*30)) + # - name: _Soft opt-out test> Validator must be jailed - 2 + # run: tests/test_validator_jailed.sh $VALOPER_2 true + Baseline-3b-icsv310-some-keys-assigned: runs-on: ubuntu-22.04 needs: set-version-matrix-relayer @@ -957,121 +759,20 @@ jobs: ${{ fromJSON(needs.set-version-matrix-relayer.outputs.upgrade_versions) }} fail-fast: false env: - COMMIT_TIMEOUT: 3 - COSMOVISOR: false COSMOVISOR_VERSION: ${{ matrix.cv_version }} UPGRADE_MECHANISM: ${{ matrix.upgrade_mechanism }} - # Provider chain variables - CHAIN_BINARY: gaiad - CHAIN_ID: testnet - DENOM: uatom - BASE_FEES: 2000 - HIGH_FEES: 10000 - GAS: auto - GAS_ADJUSTMENT: 2 - GAS_PRICE: 0.005 - VOTING_PERIOD: 10s - COSMOS_SDK: v45 - # Provider node variables - HOME_1: /home/runner/.val1 - HOME_2: /home/runner/.val2 - HOME_3: /home/runner/.val3 - PROVIDER_SERVICE_1: gaia1.service - PROVIDER_SERVICE_2: gaia2.service - PROVIDER_SERVICE_3: gaia3.service - MNEMONIC_1: abandon abandon abandon abandon abandon abandon abandon abandon abandon abandon abandon abandon abandon abandon abandon abandon abandon abandon abandon abandon abandon abandon abandon art - MNEMONIC_2: abandon cabbage abandon cabbage abandon cabbage abandon cabbage abandon cabbage abandon cabbage abandon cabbage abandon cabbage abandon cabbage abandon cabbage abandon cabbage abandon garage - MNEMONIC_3: abandon cash abandon cash abandon cash abandon cash abandon cash abandon cash abandon cash abandon cash abandon cash abandon cash abandon cash abandon earth - MNEMONIC_RELAYER: abandon property abandon property abandon property abandon property abandon property abandon property abandon property abandon property abandon property abandon property abandon property abandon success - MNEMONIC_4: abandon property abandon property abandon property abandon property abandon property abandon property abandon property abandon property abandon property abandon property abandon property abandon success - MNEMONIC_5: abandon fame abandon fame abandon fame abandon fame abandon fame abandon fame abandon fame abandon fame abandon fame abandon fame abandon fame abandon claim - MONIKER_1: val1 - MONIKER_2: val2 - MONIKER_3: val3 - MONIKER_RELAYER: relayer - MONIKER_4: relayer - MONIKER_5: wallet5 - VALOPER_1: cosmosvaloper1r5v5srda7xfth3hn2s26txvrcrntldju7lnwmv - VALOPER_2: cosmosvaloper1ay4dpm0kjmvtpug28vgw5w32yyjxa5spq248vn - VALOPER_3: cosmosvaloper1v8zgdpzqfazvk6fgwhqqhzx0hfannrajukgdkc - WALLET_1: cosmos1r5v5srda7xfth3hn2s26txvrcrntldjumt8mhl - WALLET_2: cosmos1ay4dpm0kjmvtpug28vgw5w32yyjxa5sp97pjqq - WALLET_3: cosmos1v8zgdpzqfazvk6fgwhqqhzx0hfannrajezuc6t - WALLET_4: cosmos1ty2qlurqsxj6sgs378hxmzyxh0ds8ukc70w844 - WALLET_RELAYER: cosmos1ty2qlurqsxj6sgs378hxmzyxh0ds8ukc70w844 - VAL1_STAKE: 800000000 - VAL2_STAKE: 200000000 - VAL3_STAKE: 10000000 - VAL_FUNDS: 11000000000 - VAL_STAKE: 1000000000 - VAL_STAKE_STEP: 1000000 - VAL1_API_PORT: 25001 - VAL2_API_PORT: 25002 - VAL3_API_PORT: 25003 - VAL1_GRPC_PORT: 26001 - VAL2_GRPC_PORT: 26002 - VAL3_GRPC_PORT: 26003 - VAL1_RPC_PORT: 27001 - VAL2_RPC_PORT: 27002 - VAL3_RPC_PORT: 27003 - VAL1_P2P_PORT: 28001 - VAL2_P2P_PORT: 28002 - VAL3_P2P_PORT: 28003 - VAL1_PPROF_PORT: 29001 - VAL2_PPROF_PORT: 29002 - VAL3_PPROF_PORT: 29003 # Consumer chain variables - DOWNTIME_BLOCKS: 10000 RECIPIENT: cosmos1r5v5srda7xfth3hn2s26txvrcrntldjumt8mhl - ICS_120: false - ICS_200: false - ICS_310: false - ICS_330: false + ICS_310: true CONSUMER_ICS: v3.1.0 PROVIDER_ICS: v2.4.0 # Reference ICS chain variables CONSUMER_DENOM: ucon CONSUMER_FEES: 500 - CONSUMER_CHAIN_V12_BINARY_URL: https://github.com/hyphacoop/cosmos-builds/releases/download/ics-v1.2.0-multiden/interchain-security-cd-linux - CONSUMER_CHAIN_V12_BINARY: consumerd_v1.2.0 - CONSUMER_CHAIN_V2_BINARY_URL: https://github.com/hyphacoop/cosmos-builds/releases/download/ics-v2.0.0/interchain-security-cd-linux - CONSUMER_CHAIN_V2_BINARY: consumerd_v2.0.0 CONSUMER_CHAIN_V310_BINARY_URL: https://github.com/hyphacoop/cosmos-builds/releases/download/ics-v3.1.0/interchain-security-cd-linux CONSUMER_CHAIN_V310_BINARY: consumerd_v3.1.0 - CONSUMER_CHAIN_V320_BINARY_URL: https://github.com/hyphacoop/cosmos-builds/releases/download/ics-consumer-v3.2.0/interchain-security-cd-linux - CONSUMER_CHAIN_V320_BINARY: consumerd_v3.2.0 - CONSUMER_CHAIN_V330_BINARY_URL: https://github.com/hyphacoop/cosmos-builds/releases/download/ics-consumer-v3.3.0/interchain-security-cd-linux - CONSUMER_CHAIN_V330_BINARY: consumerd_v3.3.0 - STRIDE_V18_BINARY_URL: https://github.com/hyphacoop/cosmos-builds/releases/download/stride-consumer-v18.0.0/strided-consumer-linux ICS_TRANSFORM_BINARY_URL: https://github.com/hyphacoop/cosmos-builds/releases/download/ics-v3.3.0-transform/interchain-security-cd ICS_TRANSFORM_BINARY: cd-transform - # Sovereign-ICS chain variables - STRIDE_SOV_CHAIN_BINARY_URL: https://github.com/hyphacoop/cosmos-builds/releases/download/stride-v11.0.0/stride-v11.0.0-linux-amd64 - STRIDE_CON_CHAIN_BINARY_URL: https://github.com/hyphacoop/cosmos-builds/releases/download/stride-v12.1.0/stride-v12.1.0-linux-amd64 - STRIDE_CHAIN_BINARY: strided - STRIDE_CHAIN_ID: five - STRIDE_DENOM: ustrd - STRIDE_HOME_1: /home/runner/.stride1 - STRIDE_HOME_2: /home/runner/.stride2 - STRIDE_SERVICE_1: stride1.service - STRIDE_SERVICE_2: stride2.service - STRIDE_WALLET_1: stride1r5v5srda7xfth3hn2s26txvrcrntldjucq88rn - STRIDE_WALLET_LIQUID: stride17n3vkvg6lwf98p3kanlhlyjk6zkrfla9zrhma6 - STRIDE_API_1: 35001 - STRIDE_API_2: 35002 - STRIDE_GRPC_1: 36001 - STRIDE_GRPC_2: 36002 - STRIDE_RPC_1: 37001 - STRIDE_RPC_2: 37002 - STRIDE_P2P_1: 38001 - STRIDE_P2P_2: 38002 - STRIDE_PPROF_1: 39001 - STRIDE_PPROF_2: 39002 - CHANGEOVER_HEIGHT_OFFSET: false - # Relayer variables - # RELAYER: hermes - HERMES_VERSION: v1.7.4 - RLY_VERSION: "2.4.2" steps: - name: start-version run: echo ${{matrix.gaia_version}} @@ -1123,26 +824,13 @@ jobs: run: tests/v15_upgrade/setup_relayer.sh - name: Download consumer chain binaries run: | - wget $CONSUMER_CHAIN_V2_BINARY_URL -O $HOME/go/bin/$CONSUMER_CHAIN_V2_BINARY -q - chmod +x $HOME/go/bin/$CONSUMER_CHAIN_V2_BINARY wget $CONSUMER_CHAIN_V310_BINARY_URL -O $HOME/go/bin/$CONSUMER_CHAIN_V310_BINARY -q chmod +x $HOME/go/bin/$CONSUMER_CHAIN_V310_BINARY - wget $CONSUMER_CHAIN_V320_BINARY_URL -O $HOME/go/bin/$CONSUMER_CHAIN_V320_BINARY -q - chmod +x $HOME/go/bin/$CONSUMER_CHAIN_V320_BINARY - wget $CONSUMER_CHAIN_V330_BINARY_URL -O $HOME/go/bin/$CONSUMER_CHAIN_V330_BINARY -q - chmod +x $HOME/go/bin/$CONSUMER_CHAIN_V330_BINARY - wget $STRIDE_CON_CHAIN_BINARY_URL -O $HOME/go/bin/$STRIDE_CHAIN_BINARY -q - chmod +x $HOME/go/bin/$STRIDE_CHAIN_BINARY wget $ICS_TRANSFORM_BINARY_URL -O $HOME/go/bin/$ICS_TRANSFORM_BINARY -q chmod +x $HOME/go/bin/$ICS_TRANSFORM_BINARY - name: Consumer chain binary URLs run: | - echo "$CONSUMER_CHAIN_V12_BINARY runs off $CONSUMER_CHAIN_V12_BINARY_URL" - echo "$CONSUMER_CHAIN_V2_BINARY runs off $CONSUMER_CHAIN_V2_BINARY_URL" echo "$CONSUMER_CHAIN_V310_BINARY runs off $CONSUMER_CHAIN_V310_BINARY_URL" - echo "$CONSUMER_CHAIN_V320_BINARY runs off $CONSUMER_CHAIN_V320_BINARY_URL" - echo "$CONSUMER_CHAIN_V330_BINARY runs off $CONSUMER_CHAIN_V330_BINARY_URL" - echo "$STRIDE_BINARY runs off $STRIDE_CON_CHAIN_BINARY_URL" - name: Start chain env: START_VERSION: ${{matrix.gaia_version}} @@ -1319,7 +1007,7 @@ jobs: CON1_PPROF_PORT: 29601 CON2_PPROF_PORT: 29602 CON3_PPROF_PORT: 29603 - DOWNTIME_BLOCKS: 1000 + DOWNTIME_BLOCKS: 20 run: | export CONSUMER_CHAIN_BINARY=$CONSUMER_CHAIN_V310_BINARY tests/major_fresh_upgrade/init_consumer_assign_some_keys.sh @@ -1388,6 +1076,29 @@ jobs: channel_id=$($CHAIN_BINARY q ibc channel connections $connection_id -o json --home $HOME_1 | jq -r '.channels[] | select(.port_id=="transfer").channel_id') tests/major_fresh_upgrade/test_consumer_ibc_transfer.sh $channel_id + - name: Stop validator services + env: + CONSUMER_SERVICE_2: six_2.service + CONSUMER_SERVICE_3: six_3.service + run: | + sudo systemctl disable $CONSUMER_SERVICE_2 --now + sudo systemctl disable $CONSUMER_SERVICE_3 --now + sleep $(($COMMIT_TIMEOUT*30)) + - name: _Soft opt-out test> Validator must be jailed - 1 + run: tests/test_validator_jailed.sh $VALOPER_2 true + - name: _Soft opt-out test> Validator must not be jailed + run: tests/test_validator_jailed.sh $VALOPER_3 false + - name: Unjail validator + env: + CONSUMER_SERVICE_2: six_2.service + run: | + sudo systemctl enable $CONSUMER_SERVICE_2 --now + sleep $(($COMMIT_TIMEOUT*10)) + $CHAIN_BINARY tx slashing unjail --from $WALLET_2 --gas $GAS --gas-adjustment $GAS_ADJUSTMENT --gas-prices $GAS_PRICE$DENOM -y --home $HOME_1 + sleep $(($COMMIT_TIMEOUT*2)) + - name: _Soft opt-out test> Validator must be unjailed + run: tests/test_validator_jailed.sh $VALOPER_2 false + Baseline-3c-icsv310-no-keys-assigned: runs-on: ubuntu-22.04 needs: set-version-matrix-relayer @@ -1396,121 +1107,20 @@ jobs: ${{ fromJSON(needs.set-version-matrix-relayer.outputs.upgrade_versions) }} fail-fast: false env: - COMMIT_TIMEOUT: 3 - COSMOVISOR: false COSMOVISOR_VERSION: ${{ matrix.cv_version }} UPGRADE_MECHANISM: ${{ matrix.upgrade_mechanism }} - # Provider chain variables - CHAIN_BINARY: gaiad - CHAIN_ID: testnet - DENOM: uatom - BASE_FEES: 2000 - HIGH_FEES: 10000 - GAS: auto - GAS_ADJUSTMENT: 2 - GAS_PRICE: 0.005 - VOTING_PERIOD: 10s - COSMOS_SDK: v45 - # Provider node variables - HOME_1: /home/runner/.val1 - HOME_2: /home/runner/.val2 - HOME_3: /home/runner/.val3 - PROVIDER_SERVICE_1: gaia1.service - PROVIDER_SERVICE_2: gaia2.service - PROVIDER_SERVICE_3: gaia3.service - MNEMONIC_1: abandon abandon abandon abandon abandon abandon abandon abandon abandon abandon abandon abandon abandon abandon abandon abandon abandon abandon abandon abandon abandon abandon abandon art - MNEMONIC_2: abandon cabbage abandon cabbage abandon cabbage abandon cabbage abandon cabbage abandon cabbage abandon cabbage abandon cabbage abandon cabbage abandon cabbage abandon cabbage abandon garage - MNEMONIC_3: abandon cash abandon cash abandon cash abandon cash abandon cash abandon cash abandon cash abandon cash abandon cash abandon cash abandon cash abandon earth - MNEMONIC_RELAYER: abandon property abandon property abandon property abandon property abandon property abandon property abandon property abandon property abandon property abandon property abandon property abandon success - MNEMONIC_4: abandon property abandon property abandon property abandon property abandon property abandon property abandon property abandon property abandon property abandon property abandon property abandon success - MNEMONIC_5: abandon fame abandon fame abandon fame abandon fame abandon fame abandon fame abandon fame abandon fame abandon fame abandon fame abandon fame abandon claim - MONIKER_1: val1 - MONIKER_2: val2 - MONIKER_3: val3 - MONIKER_RELAYER: relayer - MONIKER_4: relayer - MONIKER_5: wallet5 - VALOPER_1: cosmosvaloper1r5v5srda7xfth3hn2s26txvrcrntldju7lnwmv - VALOPER_2: cosmosvaloper1ay4dpm0kjmvtpug28vgw5w32yyjxa5spq248vn - VALOPER_3: cosmosvaloper1v8zgdpzqfazvk6fgwhqqhzx0hfannrajukgdkc - WALLET_1: cosmos1r5v5srda7xfth3hn2s26txvrcrntldjumt8mhl - WALLET_2: cosmos1ay4dpm0kjmvtpug28vgw5w32yyjxa5sp97pjqq - WALLET_3: cosmos1v8zgdpzqfazvk6fgwhqqhzx0hfannrajezuc6t - WALLET_4: cosmos1ty2qlurqsxj6sgs378hxmzyxh0ds8ukc70w844 - WALLET_RELAYER: cosmos1ty2qlurqsxj6sgs378hxmzyxh0ds8ukc70w844 - VAL1_STAKE: 800000000 - VAL2_STAKE: 200000000 - VAL3_STAKE: 10000000 - VAL_FUNDS: 11000000000 - VAL_STAKE: 1000000000 - VAL_STAKE_STEP: 1000000 - VAL1_API_PORT: 25001 - VAL2_API_PORT: 25002 - VAL3_API_PORT: 25003 - VAL1_GRPC_PORT: 26001 - VAL2_GRPC_PORT: 26002 - VAL3_GRPC_PORT: 26003 - VAL1_RPC_PORT: 27001 - VAL2_RPC_PORT: 27002 - VAL3_RPC_PORT: 27003 - VAL1_P2P_PORT: 28001 - VAL2_P2P_PORT: 28002 - VAL3_P2P_PORT: 28003 - VAL1_PPROF_PORT: 29001 - VAL2_PPROF_PORT: 29002 - VAL3_PPROF_PORT: 29003 # Consumer chain variables - DOWNTIME_BLOCKS: 10000 RECIPIENT: cosmos1r5v5srda7xfth3hn2s26txvrcrntldjumt8mhl - ICS_120: false - ICS_200: false ICS_310: false - ICS_330: false CONSUMER_ICS: v3.1.0 PROVIDER_ICS: v2.4.0 # Reference ICS chain variables CONSUMER_DENOM: ucon CONSUMER_FEES: 500 - CONSUMER_CHAIN_V12_BINARY_URL: https://github.com/hyphacoop/cosmos-builds/releases/download/ics-v1.2.0-multiden/interchain-security-cd-linux - CONSUMER_CHAIN_V12_BINARY: consumerd_v1.2.0 - CONSUMER_CHAIN_V2_BINARY_URL: https://github.com/hyphacoop/cosmos-builds/releases/download/ics-v2.0.0/interchain-security-cd-linux - CONSUMER_CHAIN_V2_BINARY: consumerd_v2.0.0 CONSUMER_CHAIN_V310_BINARY_URL: https://github.com/hyphacoop/cosmos-builds/releases/download/ics-v3.1.0/interchain-security-cd-linux CONSUMER_CHAIN_V310_BINARY: consumerd_v3.1.0 - CONSUMER_CHAIN_V320_BINARY_URL: https://github.com/hyphacoop/cosmos-builds/releases/download/ics-consumer-v3.2.0/interchain-security-cd-linux - CONSUMER_CHAIN_V320_BINARY: consumerd_v3.2.0 - CONSUMER_CHAIN_V330_BINARY_URL: https://github.com/hyphacoop/cosmos-builds/releases/download/ics-consumer-v3.3.0/interchain-security-cd-linux - CONSUMER_CHAIN_V330_BINARY: consumerd_v3.3.0 - STRIDE_V18_BINARY_URL: https://github.com/hyphacoop/cosmos-builds/releases/download/stride-consumer-v18.0.0/strided-consumer-linux ICS_TRANSFORM_BINARY_URL: https://github.com/hyphacoop/cosmos-builds/releases/download/ics-v3.3.0-transform/interchain-security-cd ICS_TRANSFORM_BINARY: cd-transform - # Sovereign-ICS chain variables - STRIDE_SOV_CHAIN_BINARY_URL: https://github.com/hyphacoop/cosmos-builds/releases/download/stride-v11.0.0/stride-v11.0.0-linux-amd64 - STRIDE_CON_CHAIN_BINARY_URL: https://github.com/hyphacoop/cosmos-builds/releases/download/stride-v12.1.0/stride-v12.1.0-linux-amd64 - STRIDE_CHAIN_BINARY: strided - STRIDE_CHAIN_ID: five - STRIDE_DENOM: ustrd - STRIDE_HOME_1: /home/runner/.stride1 - STRIDE_HOME_2: /home/runner/.stride2 - STRIDE_SERVICE_1: stride1.service - STRIDE_SERVICE_2: stride2.service - STRIDE_WALLET_1: stride1r5v5srda7xfth3hn2s26txvrcrntldjucq88rn - STRIDE_WALLET_LIQUID: stride17n3vkvg6lwf98p3kanlhlyjk6zkrfla9zrhma6 - STRIDE_API_1: 35001 - STRIDE_API_2: 35002 - STRIDE_GRPC_1: 36001 - STRIDE_GRPC_2: 36002 - STRIDE_RPC_1: 37001 - STRIDE_RPC_2: 37002 - STRIDE_P2P_1: 38001 - STRIDE_P2P_2: 38002 - STRIDE_PPROF_1: 39001 - STRIDE_PPROF_2: 39002 - CHANGEOVER_HEIGHT_OFFSET: false - # Relayer variables - # RELAYER: hermes - HERMES_VERSION: v1.7.4 - RLY_VERSION: "2.4.2" steps: - name: start-version run: echo ${{matrix.gaia_version}} @@ -1562,26 +1172,13 @@ jobs: run: tests/v15_upgrade/setup_relayer.sh - name: Download consumer chain binaries run: | - wget $CONSUMER_CHAIN_V2_BINARY_URL -O $HOME/go/bin/$CONSUMER_CHAIN_V2_BINARY -q - chmod +x $HOME/go/bin/$CONSUMER_CHAIN_V2_BINARY wget $CONSUMER_CHAIN_V310_BINARY_URL -O $HOME/go/bin/$CONSUMER_CHAIN_V310_BINARY -q chmod +x $HOME/go/bin/$CONSUMER_CHAIN_V310_BINARY - wget $CONSUMER_CHAIN_V320_BINARY_URL -O $HOME/go/bin/$CONSUMER_CHAIN_V320_BINARY -q - chmod +x $HOME/go/bin/$CONSUMER_CHAIN_V320_BINARY - wget $CONSUMER_CHAIN_V330_BINARY_URL -O $HOME/go/bin/$CONSUMER_CHAIN_V330_BINARY -q - chmod +x $HOME/go/bin/$CONSUMER_CHAIN_V330_BINARY - wget $STRIDE_CON_CHAIN_BINARY_URL -O $HOME/go/bin/$STRIDE_CHAIN_BINARY -q - chmod +x $HOME/go/bin/$STRIDE_CHAIN_BINARY wget $ICS_TRANSFORM_BINARY_URL -O $HOME/go/bin/$ICS_TRANSFORM_BINARY -q chmod +x $HOME/go/bin/$ICS_TRANSFORM_BINARY - name: Consumer chain binary URLs run: | - echo "$CONSUMER_CHAIN_V12_BINARY runs off $CONSUMER_CHAIN_V12_BINARY_URL" - echo "$CONSUMER_CHAIN_V2_BINARY runs off $CONSUMER_CHAIN_V2_BINARY_URL" echo "$CONSUMER_CHAIN_V310_BINARY runs off $CONSUMER_CHAIN_V310_BINARY_URL" - echo "$CONSUMER_CHAIN_V320_BINARY runs off $CONSUMER_CHAIN_V320_BINARY_URL" - echo "$CONSUMER_CHAIN_V330_BINARY runs off $CONSUMER_CHAIN_V330_BINARY_URL" - echo "$STRIDE_BINARY runs off $STRIDE_CON_CHAIN_BINARY_URL" - name: Start chain env: START_VERSION: ${{matrix.gaia_version}} @@ -1758,7 +1355,7 @@ jobs: CON1_PPROF_PORT: 29601 CON2_PPROF_PORT: 29602 CON3_PPROF_PORT: 29603 - DOWNTIME_BLOCKS: 1000 + DOWNTIME_BLOCKS: 20 run: | export CONSUMER_CHAIN_BINARY=$CONSUMER_CHAIN_V310_BINARY tests/major_fresh_upgrade/init_consumer_assign_no_keys.sh @@ -1826,6 +1423,31 @@ jobs: connection_id=$($CHAIN_BINARY q ibc connection connections -o json --home $HOME_1 | jq -r --arg client "$client_id" '.connections[] | select(.client_id==$client).id') channel_id=$($CHAIN_BINARY q ibc channel connections $connection_id -o json --home $HOME_1 | jq -r '.channels[] | select(.port_id=="transfer").channel_id') tests/major_fresh_upgrade/test_consumer_ibc_transfer.sh $channel_id + - name: Print relayer log + run: journalctl -u $RELAYER + + - name: Stop validator services + env: + CONSUMER_SERVICE_2: six_2.service + CONSUMER_SERVICE_3: six_3.service + run: | + sudo systemctl disable $CONSUMER_SERVICE_2 --now + sudo systemctl disable $CONSUMER_SERVICE_3 --now + sleep $(($COMMIT_TIMEOUT*30)) + - name: _Soft opt-out test> Validator must be jailed - 1 + run: tests/test_validator_jailed.sh $VALOPER_2 true + - name: _Soft opt-out test> Validator must not be jailed + run: tests/test_validator_jailed.sh $VALOPER_3 false + - name: Unjail validator + env: + CONSUMER_SERVICE_2: six_2.service + run: | + sudo systemctl enable $CONSUMER_SERVICE_2 --now + sleep $(($COMMIT_TIMEOUT*10)) + $CHAIN_BINARY tx slashing unjail --from $WALLET_2 --gas $GAS --gas-adjustment $GAS_ADJUSTMENT --gas-prices $GAS_PRICE$DENOM -y --home $HOME_1 + sleep $(($COMMIT_TIMEOUT*2)) + - name: _Soft opt-out test> Validator must be unjailed + run: tests/test_validator_jailed.sh $VALOPER_2 false Baseline-4-icsv330: runs-on: ubuntu-22.04 @@ -1835,121 +1457,20 @@ jobs: ${{ fromJSON(needs.set-version-matrix-relayer.outputs.upgrade_versions) }} fail-fast: false env: - COMMIT_TIMEOUT: 3 - COSMOVISOR: false COSMOVISOR_VERSION: ${{ matrix.cv_version }} UPGRADE_MECHANISM: ${{ matrix.upgrade_mechanism }} - # Provider chain variables - CHAIN_BINARY: gaiad - CHAIN_ID: testnet - DENOM: uatom - BASE_FEES: 2000 - HIGH_FEES: 10000 - GAS: auto - GAS_ADJUSTMENT: 2 - GAS_PRICE: 0.005 - VOTING_PERIOD: 10s - COSMOS_SDK: v45 - # Provider node variables - HOME_1: /home/runner/.val1 - HOME_2: /home/runner/.val2 - HOME_3: /home/runner/.val3 - PROVIDER_SERVICE_1: gaia1.service - PROVIDER_SERVICE_2: gaia2.service - PROVIDER_SERVICE_3: gaia3.service - MNEMONIC_1: abandon abandon abandon abandon abandon abandon abandon abandon abandon abandon abandon abandon abandon abandon abandon abandon abandon abandon abandon abandon abandon abandon abandon art - MNEMONIC_2: abandon cabbage abandon cabbage abandon cabbage abandon cabbage abandon cabbage abandon cabbage abandon cabbage abandon cabbage abandon cabbage abandon cabbage abandon cabbage abandon garage - MNEMONIC_3: abandon cash abandon cash abandon cash abandon cash abandon cash abandon cash abandon cash abandon cash abandon cash abandon cash abandon cash abandon earth - MNEMONIC_RELAYER: abandon property abandon property abandon property abandon property abandon property abandon property abandon property abandon property abandon property abandon property abandon property abandon success - MNEMONIC_4: abandon property abandon property abandon property abandon property abandon property abandon property abandon property abandon property abandon property abandon property abandon property abandon success - MNEMONIC_5: abandon fame abandon fame abandon fame abandon fame abandon fame abandon fame abandon fame abandon fame abandon fame abandon fame abandon fame abandon claim - MONIKER_1: val1 - MONIKER_2: val2 - MONIKER_3: val3 - MONIKER_RELAYER: relayer - MONIKER_4: relayer - MONIKER_5: wallet5 - VALOPER_1: cosmosvaloper1r5v5srda7xfth3hn2s26txvrcrntldju7lnwmv - VALOPER_2: cosmosvaloper1ay4dpm0kjmvtpug28vgw5w32yyjxa5spq248vn - VALOPER_3: cosmosvaloper1v8zgdpzqfazvk6fgwhqqhzx0hfannrajukgdkc - WALLET_1: cosmos1r5v5srda7xfth3hn2s26txvrcrntldjumt8mhl - WALLET_2: cosmos1ay4dpm0kjmvtpug28vgw5w32yyjxa5sp97pjqq - WALLET_3: cosmos1v8zgdpzqfazvk6fgwhqqhzx0hfannrajezuc6t - WALLET_4: cosmos1ty2qlurqsxj6sgs378hxmzyxh0ds8ukc70w844 - WALLET_RELAYER: cosmos1ty2qlurqsxj6sgs378hxmzyxh0ds8ukc70w844 - VAL1_STAKE: 800000000 - VAL2_STAKE: 200000000 - VAL3_STAKE: 10000000 - VAL_FUNDS: 11000000000 - VAL_STAKE: 1000000000 - VAL_STAKE_STEP: 1000000 - VAL1_API_PORT: 25001 - VAL2_API_PORT: 25002 - VAL3_API_PORT: 25003 - VAL1_GRPC_PORT: 26001 - VAL2_GRPC_PORT: 26002 - VAL3_GRPC_PORT: 26003 - VAL1_RPC_PORT: 27001 - VAL2_RPC_PORT: 27002 - VAL3_RPC_PORT: 27003 - VAL1_P2P_PORT: 28001 - VAL2_P2P_PORT: 28002 - VAL3_P2P_PORT: 28003 - VAL1_PPROF_PORT: 29001 - VAL2_PPROF_PORT: 29002 - VAL3_PPROF_PORT: 29003 # Consumer chain variables - DOWNTIME_BLOCKS: 10000 RECIPIENT: cosmos1r5v5srda7xfth3hn2s26txvrcrntldjumt8mhl - ICS_120: false - ICS_200: false - ICS_310: false ICS_330: false - CONSUMER_ICS: v3.1.0 + CONSUMER_ICS: v3.3.0 PROVIDER_ICS: v2.4.0 # Reference ICS chain variables CONSUMER_DENOM: ucon CONSUMER_FEES: 500 - CONSUMER_CHAIN_V12_BINARY_URL: https://github.com/hyphacoop/cosmos-builds/releases/download/ics-v1.2.0-multiden/interchain-security-cd-linux - CONSUMER_CHAIN_V12_BINARY: consumerd_v1.2.0 - CONSUMER_CHAIN_V2_BINARY_URL: https://github.com/hyphacoop/cosmos-builds/releases/download/ics-v2.0.0/interchain-security-cd-linux - CONSUMER_CHAIN_V2_BINARY: consumerd_v2.0.0 - CONSUMER_CHAIN_V310_BINARY_URL: https://github.com/hyphacoop/cosmos-builds/releases/download/ics-v3.1.0/interchain-security-cd-linux - CONSUMER_CHAIN_V310_BINARY: consumerd_v3.1.0 - CONSUMER_CHAIN_V320_BINARY_URL: https://github.com/hyphacoop/cosmos-builds/releases/download/ics-consumer-v3.2.0/interchain-security-cd-linux - CONSUMER_CHAIN_V320_BINARY: consumerd_v3.2.0 CONSUMER_CHAIN_V330_BINARY_URL: https://github.com/hyphacoop/cosmos-builds/releases/download/ics-consumer-v3.3.0/interchain-security-cd-linux CONSUMER_CHAIN_V330_BINARY: consumerd_v3.3.0 - STRIDE_V18_BINARY_URL: https://github.com/hyphacoop/cosmos-builds/releases/download/stride-consumer-v18.0.0/strided-consumer-linux ICS_TRANSFORM_BINARY_URL: https://github.com/hyphacoop/cosmos-builds/releases/download/ics-v3.3.0-transform/interchain-security-cd ICS_TRANSFORM_BINARY: cd-transform - # Sovereign-ICS chain variables - STRIDE_SOV_CHAIN_BINARY_URL: https://github.com/hyphacoop/cosmos-builds/releases/download/stride-v11.0.0/stride-v11.0.0-linux-amd64 - STRIDE_CON_CHAIN_BINARY_URL: https://github.com/hyphacoop/cosmos-builds/releases/download/stride-v12.1.0/stride-v12.1.0-linux-amd64 - STRIDE_CHAIN_BINARY: strided - STRIDE_CHAIN_ID: five - STRIDE_DENOM: ustrd - STRIDE_HOME_1: /home/runner/.stride1 - STRIDE_HOME_2: /home/runner/.stride2 - STRIDE_SERVICE_1: stride1.service - STRIDE_SERVICE_2: stride2.service - STRIDE_WALLET_1: stride1r5v5srda7xfth3hn2s26txvrcrntldjucq88rn - STRIDE_WALLET_LIQUID: stride17n3vkvg6lwf98p3kanlhlyjk6zkrfla9zrhma6 - STRIDE_API_1: 35001 - STRIDE_API_2: 35002 - STRIDE_GRPC_1: 36001 - STRIDE_GRPC_2: 36002 - STRIDE_RPC_1: 37001 - STRIDE_RPC_2: 37002 - STRIDE_P2P_1: 38001 - STRIDE_P2P_2: 38002 - STRIDE_PPROF_1: 39001 - STRIDE_PPROF_2: 39002 - CHANGEOVER_HEIGHT_OFFSET: false - # Relayer variables - # RELAYER: hermes - HERMES_VERSION: v1.7.4 - RLY_VERSION: "2.4.2" steps: - name: start-version run: echo ${{matrix.gaia_version}} @@ -2001,24 +1522,12 @@ jobs: run: tests/v15_upgrade/setup_relayer.sh - name: Download consumer chain binaries run: | - wget $CONSUMER_CHAIN_V2_BINARY_URL -O $HOME/go/bin/$CONSUMER_CHAIN_V2_BINARY -q - chmod +x $HOME/go/bin/$CONSUMER_CHAIN_V2_BINARY - wget $CONSUMER_CHAIN_V310_BINARY_URL -O $HOME/go/bin/$CONSUMER_CHAIN_V310_BINARY -q - chmod +x $HOME/go/bin/$CONSUMER_CHAIN_V310_BINARY - wget $CONSUMER_CHAIN_V320_BINARY_URL -O $HOME/go/bin/$CONSUMER_CHAIN_V320_BINARY -q - chmod +x $HOME/go/bin/$CONSUMER_CHAIN_V320_BINARY wget $CONSUMER_CHAIN_V330_BINARY_URL -O $HOME/go/bin/$CONSUMER_CHAIN_V330_BINARY -q chmod +x $HOME/go/bin/$CONSUMER_CHAIN_V330_BINARY - wget $STRIDE_CON_CHAIN_BINARY_URL -O $HOME/go/bin/$STRIDE_CHAIN_BINARY -q - chmod +x $HOME/go/bin/$STRIDE_CHAIN_BINARY wget $ICS_TRANSFORM_BINARY_URL -O $HOME/go/bin/$ICS_TRANSFORM_BINARY -q chmod +x $HOME/go/bin/$ICS_TRANSFORM_BINARY - name: Consumer chain binary URLs run: | - echo "$CONSUMER_CHAIN_V12_BINARY runs off $CONSUMER_CHAIN_V12_BINARY_URL" - echo "$CONSUMER_CHAIN_V2_BINARY runs off $CONSUMER_CHAIN_V2_BINARY_URL" - echo "$CONSUMER_CHAIN_V310_BINARY runs off $CONSUMER_CHAIN_V310_BINARY_URL" - echo "$CONSUMER_CHAIN_V320_BINARY runs off $CONSUMER_CHAIN_V320_BINARY_URL" echo "$CONSUMER_CHAIN_V330_BINARY runs off $CONSUMER_CHAIN_V330_BINARY_URL" echo "$STRIDE_BINARY runs off $STRIDE_CON_CHAIN_BINARY_URL" - name: Start chain @@ -2201,7 +1710,7 @@ jobs: CON1_PPROF_PORT: 29801 CON2_PPROF_PORT: 29802 CON3_PPROF_PORT: 29803 - DOWNTIME_BLOCKS: 100000 + DOWNTIME_BLOCKS: 20 run: | export CONSUMER_CHAIN_BINARY=$CONSUMER_CHAIN_V330_BINARY tests/major_fresh_upgrade/init_consumer_assign_keys.sh @@ -2267,7 +1776,30 @@ jobs: channel_id=$($CHAIN_BINARY q ibc channel connections $connection_id -o json --home $HOME_1 | jq -r '.channels[] | select(.port_id=="transfer").channel_id') tests/major_fresh_upgrade/test_consumer_ibc_transfer.sh $channel_id - Baseline-5-pfm: + - name: Stop validator services + env: + CONSUMER_SERVICE_2: eight_2.service + CONSUMER_SERVICE_3: eight_3.service + run: | + sudo systemctl disable $CONSUMER_SERVICE_2 --now + sudo systemctl disable $CONSUMER_SERVICE_3 --now + sleep $(($COMMIT_TIMEOUT*30)) + - name: _Soft opt-out test> Validator must be jailed - 1 + run: tests/test_validator_jailed.sh $VALOPER_2 true + - name: _Soft opt-out test> Validator must not be jailed + run: tests/test_validator_jailed.sh $VALOPER_3 false + - name: Unjail validator + env: + CONSUMER_SERVICE_2: eight_2.service + run: | + sudo systemctl enable $CONSUMER_SERVICE_2 --now + sleep $(($COMMIT_TIMEOUT*10)) + $CHAIN_BINARY tx slashing unjail --from $WALLET_2 --gas $GAS --gas-adjustment $GAS_ADJUSTMENT --gas-prices $GAS_PRICE$DENOM -y --home $HOME_1 + sleep $(($COMMIT_TIMEOUT*2)) + - name: _Soft opt-out test> Validator must be unjailed + run: tests/test_validator_jailed.sh $VALOPER_2 false + + Baseline-5-icsv400: runs-on: ubuntu-22.04 needs: set-version-matrix-relayer strategy: @@ -2275,120 +1807,361 @@ jobs: ${{ fromJSON(needs.set-version-matrix-relayer.outputs.upgrade_versions) }} fail-fast: false env: - COMMIT_TIMEOUT: 3 - COSMOVISOR: false COSMOVISOR_VERSION: ${{ matrix.cv_version }} UPGRADE_MECHANISM: ${{ matrix.upgrade_mechanism }} - # Provider chain variables - CHAIN_BINARY: gaiad - CHAIN_ID: testnet - DENOM: uatom - BASE_FEES: 2000 - HIGH_FEES: 10000 - GAS: auto - GAS_ADJUSTMENT: 2 - GAS_PRICE: 0.005 - VOTING_PERIOD: 10s - COSMOS_SDK: v45 - # Provider node variables - HOME_1: /home/runner/.val1 - HOME_2: /home/runner/.val2 - HOME_3: /home/runner/.val3 - PROVIDER_SERVICE_1: gaia1.service - PROVIDER_SERVICE_2: gaia2.service - PROVIDER_SERVICE_3: gaia3.service - MNEMONIC_1: abandon abandon abandon abandon abandon abandon abandon abandon abandon abandon abandon abandon abandon abandon abandon abandon abandon abandon abandon abandon abandon abandon abandon art - MNEMONIC_2: abandon cabbage abandon cabbage abandon cabbage abandon cabbage abandon cabbage abandon cabbage abandon cabbage abandon cabbage abandon cabbage abandon cabbage abandon cabbage abandon garage - MNEMONIC_3: abandon cash abandon cash abandon cash abandon cash abandon cash abandon cash abandon cash abandon cash abandon cash abandon cash abandon cash abandon earth - MNEMONIC_RELAYER: abandon property abandon property abandon property abandon property abandon property abandon property abandon property abandon property abandon property abandon property abandon property abandon success - MNEMONIC_4: abandon property abandon property abandon property abandon property abandon property abandon property abandon property abandon property abandon property abandon property abandon property abandon success - MNEMONIC_5: abandon fame abandon fame abandon fame abandon fame abandon fame abandon fame abandon fame abandon fame abandon fame abandon fame abandon fame abandon claim - MONIKER_1: val1 - MONIKER_2: val2 - MONIKER_3: val3 - MONIKER_RELAYER: relayer - MONIKER_4: relayer - MONIKER_5: wallet5 - VALOPER_1: cosmosvaloper1r5v5srda7xfth3hn2s26txvrcrntldju7lnwmv - VALOPER_2: cosmosvaloper1ay4dpm0kjmvtpug28vgw5w32yyjxa5spq248vn - VALOPER_3: cosmosvaloper1v8zgdpzqfazvk6fgwhqqhzx0hfannrajukgdkc - WALLET_1: cosmos1r5v5srda7xfth3hn2s26txvrcrntldjumt8mhl - WALLET_2: cosmos1ay4dpm0kjmvtpug28vgw5w32yyjxa5sp97pjqq - WALLET_3: cosmos1v8zgdpzqfazvk6fgwhqqhzx0hfannrajezuc6t - WALLET_4: cosmos1ty2qlurqsxj6sgs378hxmzyxh0ds8ukc70w844 - WALLET_RELAYER: cosmos1ty2qlurqsxj6sgs378hxmzyxh0ds8ukc70w844 - VAL1_STAKE: 800000000 - VAL2_STAKE: 200000000 - VAL3_STAKE: 10000000 - VAL_FUNDS: 11000000000 - VAL_STAKE: 1000000000 - VAL_STAKE_STEP: 1000000 - VAL1_API_PORT: 25001 - VAL2_API_PORT: 25002 - VAL3_API_PORT: 25003 - VAL1_GRPC_PORT: 26001 - VAL2_GRPC_PORT: 26002 - VAL3_GRPC_PORT: 26003 - VAL1_RPC_PORT: 27001 - VAL2_RPC_PORT: 27002 - VAL3_RPC_PORT: 27003 - VAL1_P2P_PORT: 28001 - VAL2_P2P_PORT: 28002 - VAL3_P2P_PORT: 28003 - VAL1_PPROF_PORT: 29001 - VAL2_PPROF_PORT: 29002 - VAL3_PPROF_PORT: 29003 # Consumer chain variables - DOWNTIME_BLOCKS: 10000 RECIPIENT: cosmos1r5v5srda7xfth3hn2s26txvrcrntldjumt8mhl - ICS_120: false - ICS_200: false - ICS_310: false - ICS_330: false - CONSUMER_ICS: v3.1.0 + ICS_400: true + CONSUMER_ICS: v4.0.0 PROVIDER_ICS: v2.4.0 # Reference ICS chain variables CONSUMER_DENOM: ucon CONSUMER_FEES: 500 - CONSUMER_CHAIN_V12_BINARY_URL: https://github.com/hyphacoop/cosmos-builds/releases/download/ics-v1.2.0-multiden/interchain-security-cd-linux - CONSUMER_CHAIN_V12_BINARY: consumerd_v1.2.0 - CONSUMER_CHAIN_V2_BINARY_URL: https://github.com/hyphacoop/cosmos-builds/releases/download/ics-v2.0.0/interchain-security-cd-linux - CONSUMER_CHAIN_V2_BINARY: consumerd_v2.0.0 - CONSUMER_CHAIN_V310_BINARY_URL: https://github.com/hyphacoop/cosmos-builds/releases/download/ics-v3.1.0/interchain-security-cd-linux - CONSUMER_CHAIN_V310_BINARY: consumerd_v3.1.0 - CONSUMER_CHAIN_V320_BINARY_URL: https://github.com/hyphacoop/cosmos-builds/releases/download/ics-consumer-v3.2.0/interchain-security-cd-linux - CONSUMER_CHAIN_V320_BINARY: consumerd_v3.2.0 - CONSUMER_CHAIN_V330_BINARY_URL: https://github.com/hyphacoop/cosmos-builds/releases/download/ics-consumer-v3.3.0/interchain-security-cd-linux - CONSUMER_CHAIN_V330_BINARY: consumerd_v3.3.0 - STRIDE_V18_BINARY_URL: https://github.com/hyphacoop/cosmos-builds/releases/download/stride-consumer-v18.0.0/strided-consumer-linux + CONSUMER_CHAIN_V400_BINARY_URL: https://github.com/hyphacoop/cosmos-builds/releases/download/ics-consumer-v4.0.0/interchain-security-cd-linux + CONSUMER_CHAIN_V400_BINARY: consumerd_v4.0.0 ICS_TRANSFORM_BINARY_URL: https://github.com/hyphacoop/cosmos-builds/releases/download/ics-v3.3.0-transform/interchain-security-cd ICS_TRANSFORM_BINARY: cd-transform - # Sovereign-ICS chain variables - STRIDE_SOV_CHAIN_BINARY_URL: https://github.com/hyphacoop/cosmos-builds/releases/download/stride-v11.0.0/stride-v11.0.0-linux-amd64 - STRIDE_CON_CHAIN_BINARY_URL: https://github.com/hyphacoop/cosmos-builds/releases/download/stride-v12.1.0/stride-v12.1.0-linux-amd64 - STRIDE_CHAIN_BINARY: strided - STRIDE_CHAIN_ID: five - STRIDE_DENOM: ustrd - STRIDE_HOME_1: /home/runner/.stride1 - STRIDE_HOME_2: /home/runner/.stride2 - STRIDE_SERVICE_1: stride1.service - STRIDE_SERVICE_2: stride2.service - STRIDE_WALLET_1: stride1r5v5srda7xfth3hn2s26txvrcrntldjucq88rn - STRIDE_WALLET_LIQUID: stride17n3vkvg6lwf98p3kanlhlyjk6zkrfla9zrhma6 - STRIDE_API_1: 35001 - STRIDE_API_2: 35002 - STRIDE_GRPC_1: 36001 - STRIDE_GRPC_2: 36002 - STRIDE_RPC_1: 37001 - STRIDE_RPC_2: 37002 - STRIDE_P2P_1: 38001 - STRIDE_P2P_2: 38002 - STRIDE_PPROF_1: 39001 - STRIDE_PPROF_2: 39002 - CHANGEOVER_HEIGHT_OFFSET: false - # Relayer variables - HERMES_VERSION: v1.7.4 - RLY_VERSION: "2.4.2" + steps: + - name: start-version + run: echo ${{matrix.gaia_version}} + - name: target-version + run: echo ${{matrix.upgrade_version}} + - name: target-commit + if: ${{ matrix.upgrade_version == 'main' }} + run: | + BUILD_TAG=gaiad-linux-${{matrix.upgrade_version}} + TARGET_COMMIT=$(curl -s -L -H "Accept: application/vnd.github+json" -H "X-GitHub-Api-Version: 2022-11-28" https://api.github.com/repos/hyphacoop/cosmos-builds/releases/tags/$BUILD_TAG | jq -r '.name') + echo TARGET_COMMIT: $TARGET_COMMIT + - name: Update PATH + run: | + mkdir -p $HOME/go/bin + echo "$HOME/go/bin" >> $GITHUB_PATH + echo "$HOME/.hermes" >> $GITHUB_PATH + echo "$HOME/.relayer" >> $GITHUB_PATH + - name: Bypass the grub-efi-amd64-signed package + run: sudo apt-mark hold grub-efi-amd64-signed + - name: Check out repository code + uses: actions/checkout@v3 + - name: Set up Python + uses: actions/setup-python@v3 + with: + python-version: '3.10' + - name: Install dependencies + run: | + python -m pip install --upgrade pip + python -m pip install toml-cli + - name: Install Cosmovisor > v1.3.0 + if: ${{ (matrix.upgrade_mechanism == 'cv_manual' || matrix.upgrade_mechanism == 'cv_auto') && matrix.cv_version != 'v1.3.0' }} + run: | + go install cosmossdk.io/tools/cosmovisor/cmd/cosmovisor@$COSMOVISOR_VERSION + echo "COSMOVISOR=true" >> $GITHUB_ENV + echo "$HOME_1/cosmovisor/current/bin" >> $GITHUB_PATH + - name: Install Cosmovisor v1.3.0 + if: ${{ (matrix.upgrade_mechanism == 'cv_manual' || matrix.upgrade_mechanism == 'cv_auto') && matrix.cv_version == 'v1.3.0' }} + run: | + go install github.com/cosmos/cosmos-sdk/cosmovisor/cmd/cosmovisor@$COSMOVISOR_VERSION + echo "COSMOVISOR=true" >> $GITHUB_ENV + echo "$HOME_1/cosmovisor/current/bin" >> $GITHUB_PATH + - name: Select Hermes + if: ${{ matrix.relayer == 'hermes' }} + run: echo "RELAYER=hermes" >> $GITHUB_ENV + - name: Select Go Relayer + if: ${{ matrix.relayer == 'rly' }} + run: echo "RELAYER=rly" >> $GITHUB_ENV + - name: Set up relayer + run: tests/v15_upgrade/setup_relayer.sh + - name: Download consumer chain binaries + run: | + wget $CONSUMER_CHAIN_V400_BINARY_URL -O $HOME/go/bin/$CONSUMER_CHAIN_V400_BINARY -q + chmod +x $HOME/go/bin/$CONSUMER_CHAIN_V400_BINARY + wget $ICS_TRANSFORM_BINARY_URL -O $HOME/go/bin/$ICS_TRANSFORM_BINARY -q + chmod +x $HOME/go/bin/$ICS_TRANSFORM_BINARY + - name: Consumer chain binary URLs + run: | + echo "$CONSUMER_CHAIN_V400_BINARY runs off $CONSUMER_CHAIN_V400_BINARY_URL" + - name: Start chain + env: + START_VERSION: ${{matrix.gaia_version}} + run: | + export CHAIN_BINARY_URL=https://github.com/cosmos/gaia/releases/download/$START_VERSION/gaiad-$START_VERSION-linux-amd64 + tests/major_fresh_upgrade/start_chain.sh + - name: Check Gaia log + run: sudo journalctl -u $PROVIDER_SERVICE_1 + - name: Print Gaia version + run: $CHAIN_BINARY version --long + - name: Block production check + run: tests/test_block_production.sh 127.0.0.1 $VAL1_RPC_PORT 5 # 5 blocks + + - name: Add consumer chain with ICS v4.0.0 + env: + COSMOS_SDK: v45 + CONSUMER_CHAIN_ID: nine-v400 + run: | + tests/major_fresh_upgrade/add_consumer.sh + - name: Initialize consumer chain with ICS v4.0.0 + env: + CONSUMER_CHAIN_ID: nine-v400 + CONSUMER_HOME_1: /home/runner/.nine_1 + CONSUMER_HOME_2: /home/runner/.nine_2 + CONSUMER_HOME_3: /home/runner/.nine_3 + CONSUMER_SERVICE_1: nine_1.service + CONSUMER_SERVICE_2: nine_2.service + CONSUMER_SERVICE_3: nine_3.service + CON1_API_PORT: 25901 + CON2_API_PORT: 25902 + CON3_API_PORT: 25903 + CON1_GRPC_PORT: 26901 + CON2_GRPC_PORT: 26902 + CON3_GRPC_PORT: 26903 + CON1_RPC_PORT: 27901 + CON2_RPC_PORT: 27902 + CON3_RPC_PORT: 27903 + CON1_P2P_PORT: 28901 + CON2_P2P_PORT: 28902 + CON3_P2P_PORT: 28903 + CON1_PPROF_PORT: 29901 + CON2_PPROF_PORT: 29902 + CON3_PPROF_PORT: 29903 + DOWNTIME_BLOCKS: 100000 + run: | + export CONSUMER_CHAIN_BINARY=$CONSUMER_CHAIN_V400_BINARY + tests/major_fresh_upgrade/init_consumer_assign_keys.sh + sleep 20 + - name: Prepare consumer chain nine-v400 + env: + CONSUMER_CHAIN_ID: nine-v400 + CONSUMER_HOME_1: /home/runner/.nine_1 + CONSUMER_HOME_2: /home/runner/.nine_2 + CONSUMER_HOME_3: /home/runner/.nine_3 + ICS_400: true + CONSUMER_ICS: v4.0.0 + PROVIDER_ICS: v2.4.0 + run: | + export CONSUMER_CHAIN_BINARY=$CONSUMER_CHAIN_V400_BINARY + tests/major_fresh_upgrade/prepare_consumer.sh + - name: Start consumer chain nine-v400 + env: + CONSUMER_CHAIN_ID: nine-v400 + CONSUMER_SERVICE_1: nine_1.service + CONSUMER_SERVICE_2: nine_2.service + CONSUMER_SERVICE_3: nine_3.service + run: | + sudo systemctl enable $CONSUMER_SERVICE_1 --now + sleep 5 + journalctl -u $CONSUMER_SERVICE_1 + - name: _Pre-upgrade consumer chain produces blocks> ICS v4.0.0 chain 1 + env: + CON1_RPC_PORT: 27901 + run: tests/test_block_production.sh 127.0.0.1 $CON1_RPC_PORT 5 + - name: Establish CCV channel for nine-v400 + env: + CONSUMER_CHAIN_ID: nine-v400 + run: | + client_id=$($CHAIN_BINARY q provider list-consumer-chains -o json --home $HOME_1 | jq -r --arg chain "$CONSUMER_CHAIN_ID" '.chains[] | select(.chain_id==$chain).client_id') + if [ $RELAYER == "hermes" ]; then + echo "Creating channel with Hermes..." + hermes create connection --a-chain $CONSUMER_CHAIN_ID --a-client 07-tendermint-0 --b-client $client_id + hermes create channel --a-chain $CONSUMER_CHAIN_ID --a-port consumer --b-port provider --order ordered --a-connection connection-0 --channel-version 1 + elif [ $RELAYER == "rly" ]; then + echo "Creating channel with Go relayer..." + jq --arg CHAIN "$CONSUMER_CHAIN_ID" '.src."chain-id" = $CHAIN' tests/v15_upgrade/rly-path-template.json > nine-1.json + jq --arg CLIENT "$client_id" '.dst."client-id" = $CLIENT' nine-1.json > nine-2.json + rly paths add $CHAIN_ID $CONSUMER_CHAIN_ID nine --file nine-2.json + rly transact connection nine + rly transact channel nine --src-port consumer --dst-port provider --order ordered --version 1 + fi + sudo systemctl restart $RELAYER + sleep 10 + - name: _Pre-upgrade CCV channel verified> ICS v4.0.0 chain 1 + env: + CONSUMER_HOME_1: /home/runner/.nine_1 + CON1_RPC_PORT: 27901 + run: tests/major_fresh_upgrade/test_ccv_key_assignment.sh + - name: _Pre-upgrade IBC transfer successful> ICS v4.0.0 chain 1 + env: + CONSUMER_CHAIN_ID: nine-v400 + CONSUMER_HOME_1: /home/runner/.nine_1 + RECIPIENT: consumer1r5v5srda7xfth3hn2s26txvrcrntldju7725yc + run: | + export CONSUMER_CHAIN_BINARY=$CONSUMER_CHAIN_V400_BINARY + client_id=$($CHAIN_BINARY q provider list-consumer-chains -o json --home $HOME_1 | jq -r --arg chain "$CONSUMER_CHAIN_ID" '.chains[] | select(.chain_id==$chain).client_id') + connection_id=$($CHAIN_BINARY q ibc connection connections -o json --home $HOME_1 | jq -r --arg client "$client_id" '.connections[] | select(.client_id==$client).id') + channel_id=$($CHAIN_BINARY q ibc channel connections $connection_id -o json --home $HOME_1 | jq -r '.channels[] | select(.port_id=="transfer").channel_id') + tests/major_fresh_upgrade/test_consumer_ibc_transfer.sh $channel_id + + - name: Test software upgrade for published releases + if: ${{ matrix.upgrade_version != 'main' }} + env: + DOWNLOAD_URL: https://github.com/cosmos/gaia/releases/download/${{ matrix.upgrade_version }}/gaiad-${{ matrix.upgrade_version }}-linux-amd64 + run: | + echo $DOWNLOAD_URL + tests/major_fresh_upgrade/software_upgrade.sh 127.0.0.1 $VAL1_RPC_PORT v15 + - name: Test software upgrade for main branch + if: ${{ matrix.upgrade_version == 'main' }} + env: + DOWNLOAD_URL: https://github.com/hyphacoop/cosmos-builds/releases/download/gaiad-linux-main/gaiad-linux + run: | + tests/major_fresh_upgrade/software_upgrade.sh 127.0.0.1 $VAL1_RPC_PORT v15 + + - name: _Blocks produced after upgrade + run: | + tests/test_block_production.sh 127.0.0.1 $VAL1_RPC_PORT 10 + + - name: Restart relayer + run: sudo systemctl restart $RELAYER + + - name: Flush "migration successful" lines + run: | + $CHAIN_BINARY keys list --home $HOME_1 + + - name: _CCV channel verified> ICS v4.0.0 chain 1 + env: + CONSUMER_HOME_1: /home/runner/.nine_1 + CON1_RPC_PORT: 27901 + run: tests/major_fresh_upgrade/test_ccv_key_assignment.sh + - name: _IBC transfer successful> ICS v4.0.0 chain 1 + env: + CONSUMER_CHAIN_ID: nine-v400 + CONSUMER_HOME_1: /home/runner/.nine_1 + RECIPIENT: consumer1r5v5srda7xfth3hn2s26txvrcrntldju7725yc + run: | + export CONSUMER_CHAIN_BINARY=$CONSUMER_CHAIN_V400_BINARY + client_id=$($CHAIN_BINARY q provider list-consumer-chains -o json --home $HOME_1 | jq -r --arg chain "$CONSUMER_CHAIN_ID" '.chains[] | select(.chain_id==$chain).client_id') + connection_id=$($CHAIN_BINARY q ibc connection connections -o json --home $HOME_1 | jq -r --arg client "$client_id" '.connections[] | select(.client_id==$client).id') + channel_id=$($CHAIN_BINARY q ibc channel connections $connection_id -o json --home $HOME_1 | jq -r '.channels[] | select(.port_id=="transfer").channel_id') + tests/major_fresh_upgrade/test_consumer_ibc_transfer.sh $channel_id + + - name: Add consumer chain with ICS v4.0.0 + env: + COSMOS_SDK: v47 + CONSUMER_CHAIN_ID: ten-v400 + run: | + tests/major_fresh_upgrade/add_consumer.sh + - name: Initialize consumer chain with ICS v4.0.0 + env: + CONSUMER_CHAIN_ID: ten-v400 + CONSUMER_HOME_1: /home/runner/.ten_1 + CONSUMER_HOME_2: /home/runner/.ten_2 + CONSUMER_HOME_3: /home/runner/.ten_3 + CONSUMER_SERVICE_1: ten_1.service + CONSUMER_SERVICE_2: ten_2.service + CONSUMER_SERVICE_3: ten_3.service + CON1_API_PORT: 45901 + CON2_API_PORT: 45902 + CON3_API_PORT: 45903 + CON1_GRPC_PORT: 46901 + CON2_GRPC_PORT: 46902 + CON3_GRPC_PORT: 46903 + CON1_RPC_PORT: 47901 + CON2_RPC_PORT: 47902 + CON3_RPC_PORT: 47903 + CON1_P2P_PORT: 48901 + CON2_P2P_PORT: 48902 + CON3_P2P_PORT: 48903 + CON1_PPROF_PORT: 49901 + CON2_PPROF_PORT: 49902 + CON3_PPROF_PORT: 49903 + DOWNTIME_BLOCKS: 20 + run: | + export CONSUMER_CHAIN_BINARY=$CONSUMER_CHAIN_V400_BINARY + tests/major_fresh_upgrade/init_consumer_assign_keys.sh + sleep 20 + - name: Prepare consumer chain ten-v400 + env: + CONSUMER_CHAIN_ID: ten-v400 + CONSUMER_HOME_1: /home/runner/.ten_1 + CONSUMER_HOME_2: /home/runner/.ten_2 + CONSUMER_HOME_3: /home/runner/.ten_3 + ICS_400: true + CONSUMER_ICS: v4.0.0 + PROVIDER_ICS: v3.3.0 + run: | + export CONSUMER_CHAIN_BINARY=$CONSUMER_CHAIN_V400_BINARY + tests/major_fresh_upgrade/prepare_consumer.sh + - name: Start consumer chain ten-v400 + env: + CONSUMER_CHAIN_ID: eight-v330 + CONSUMER_SERVICE_1: ten_1.service + CONSUMER_SERVICE_2: ten_2.service + CONSUMER_SERVICE_3: ten_3.service + run: | + sudo systemctl enable $CONSUMER_SERVICE_1 --now + sleep 5 + journalctl -u $CONSUMER_SERVICE_1 + - name: _Consumer chain produces blocks> ICS v4.0.0 chain 2 + env: + CON1_RPC_PORT: 47901 + run: tests/test_block_production.sh 127.0.0.1 $CON1_RPC_PORT 5 + - name: Establish CCV channel for ten-v400 + env: + CONSUMER_CHAIN_ID: ten-v400 + run: | + client_id=$($CHAIN_BINARY q provider list-consumer-chains -o json --home $HOME_1 | jq -r --arg chain "$CONSUMER_CHAIN_ID" '.chains[] | select(.chain_id==$chain).client_id') + if [ $RELAYER == "hermes" ]; then + echo "Creating channel with Hermes..." + hermes create connection --a-chain $CONSUMER_CHAIN_ID --a-client 07-tendermint-0 --b-client $client_id + hermes create channel --a-chain $CONSUMER_CHAIN_ID --a-port consumer --b-port provider --order ordered --a-connection connection-0 --channel-version 1 + elif [ $RELAYER == "rly" ]; then + echo "Creating channel with Go relayer..." + jq --arg CHAIN "$CONSUMER_CHAIN_ID" '.src."chain-id" = $CHAIN' tests/v15_upgrade/rly-path-template.json > ten-1.json + jq --arg CLIENT "$client_id" '.dst."client-id" = $CLIENT' ten-1.json > ten-2.json + rly paths add $CHAIN_ID $CONSUMER_CHAIN_ID ten --file ten-2.json + rly transact connection ten + rly transact channel ten --src-port consumer --dst-port provider --order ordered --version 1 + fi + sudo systemctl restart $RELAYER + sleep 10 + - name: _CCV channel verified> ICS v4.0.0 chain 2 + env: + CONSUMER_HOME_1: /home/runner/.ten_1 + CON1_RPC_PORT: 47901 + run: tests/major_fresh_upgrade/test_ccv_key_assignment.sh + - name: _IBC transfer successful> ICS v4.0.0 chain 2 + env: + CONSUMER_CHAIN_ID: ten-v400 + CONSUMER_HOME_1: /home/runner/.ten_1 + RECIPIENT: consumer1r5v5srda7xfth3hn2s26txvrcrntldju7725yc + run: | + export CONSUMER_CHAIN_BINARY=$CONSUMER_CHAIN_V400_BINARY + client_id=$($CHAIN_BINARY q provider list-consumer-chains -o json --home $HOME_1 | jq -r --arg chain "$CONSUMER_CHAIN_ID" '.chains[] | select(.chain_id==$chain).client_id') + connection_id=$($CHAIN_BINARY q ibc connection connections -o json --home $HOME_1 | jq -r --arg client "$client_id" '.connections[] | select(.client_id==$client).id') + channel_id=$($CHAIN_BINARY q ibc channel connections $connection_id -o json --home $HOME_1 | jq -r '.channels[] | select(.port_id=="transfer").channel_id') + tests/major_fresh_upgrade/test_consumer_ibc_transfer.sh $channel_id + + - name: Stop validator services + env: + CONSUMER_SERVICE_2: ten_2.service + CONSUMER_SERVICE_3: ten_3.service + run: | + sudo systemctl disable $CONSUMER_SERVICE_2 --now + sudo systemctl disable $CONSUMER_SERVICE_3 --now + sleep $(($COMMIT_TIMEOUT*30)) + - name: _Soft opt-out test> Validator must be jailed - 1 + run: tests/test_validator_jailed.sh $VALOPER_2 true + - name: _Soft opt-out test> Validator must not be jailed + run: tests/test_validator_jailed.sh $VALOPER_3 false + - name: Unjail validator + env: + CONSUMER_SERVICE_2: ten_2.service + run: | + sudo systemctl enable $CONSUMER_SERVICE_2 --now + sleep $(($COMMIT_TIMEOUT*10)) + $CHAIN_BINARY tx slashing unjail --from $WALLET_2 --gas $GAS --gas-adjustment $GAS_ADJUSTMENT --gas-prices $GAS_PRICE$DENOM -y --home $HOME_1 + sleep $(($COMMIT_TIMEOUT*2)) + - name: _Soft opt-out test> Validator must be unjailed + run: tests/test_validator_jailed.sh $VALOPER_2 false + + + Baseline-6-pfm: + runs-on: ubuntu-22.04 + needs: set-version-matrix-relayer + strategy: + matrix: + ${{ fromJSON(needs.set-version-matrix-relayer.outputs.upgrade_versions) }} + fail-fast: false + env: + COSMOVISOR_VERSION: ${{ matrix.cv_version }} + UPGRADE_MECHANISM: ${{ matrix.upgrade_mechanism }} steps: - name: start-version run: echo ${{matrix.gaia_version}} @@ -2586,7 +2359,7 @@ jobs: run: | tests/major_fresh_upgrade/test_pfm_transfers.sh - Baseline-6-lsm: + Baseline-7-lsm: runs-on: ubuntu-22.04 needs: set-version-matrix-relayer strategy: @@ -2594,121 +2367,19 @@ jobs: ${{ fromJSON(needs.set-version-matrix-relayer.outputs.upgrade_versions) }} fail-fast: false env: - COMMIT_TIMEOUT: 3 - COSMOVISOR: false COSMOVISOR_VERSION: ${{ matrix.cv_version }} UPGRADE_MECHANISM: ${{ matrix.upgrade_mechanism }} - # Provider chain variables - CHAIN_BINARY: gaiad - CHAIN_ID: testnet - DENOM: uatom - BASE_FEES: 2000 - HIGH_FEES: 10000 - GAS: auto - GAS_ADJUSTMENT: 2 - GAS_PRICE: 0.005 - VOTING_PERIOD: 10s - COSMOS_SDK: v45 - # Provider node variables - HOME_1: /home/runner/.val1 - HOME_2: /home/runner/.val2 - HOME_3: /home/runner/.val3 - PROVIDER_SERVICE_1: gaia1.service - PROVIDER_SERVICE_2: gaia2.service - PROVIDER_SERVICE_3: gaia3.service - MNEMONIC_1: abandon abandon abandon abandon abandon abandon abandon abandon abandon abandon abandon abandon abandon abandon abandon abandon abandon abandon abandon abandon abandon abandon abandon art - MNEMONIC_2: abandon cabbage abandon cabbage abandon cabbage abandon cabbage abandon cabbage abandon cabbage abandon cabbage abandon cabbage abandon cabbage abandon cabbage abandon cabbage abandon garage - MNEMONIC_3: abandon cash abandon cash abandon cash abandon cash abandon cash abandon cash abandon cash abandon cash abandon cash abandon cash abandon cash abandon earth - MNEMONIC_RELAYER: abandon property abandon property abandon property abandon property abandon property abandon property abandon property abandon property abandon property abandon property abandon property abandon success - MNEMONIC_4: abandon property abandon property abandon property abandon property abandon property abandon property abandon property abandon property abandon property abandon property abandon property abandon success - MNEMONIC_5: abandon fame abandon fame abandon fame abandon fame abandon fame abandon fame abandon fame abandon fame abandon fame abandon fame abandon fame abandon claim - MONIKER_1: val1 - MONIKER_2: val2 - MONIKER_3: val3 - MONIKER_RELAYER: relayer - MONIKER_4: relayer - MONIKER_5: wallet5 - VALOPER_1: cosmosvaloper1r5v5srda7xfth3hn2s26txvrcrntldju7lnwmv - VALOPER_2: cosmosvaloper1ay4dpm0kjmvtpug28vgw5w32yyjxa5spq248vn - VALOPER_3: cosmosvaloper1v8zgdpzqfazvk6fgwhqqhzx0hfannrajukgdkc - WALLET_1: cosmos1r5v5srda7xfth3hn2s26txvrcrntldjumt8mhl - WALLET_2: cosmos1ay4dpm0kjmvtpug28vgw5w32yyjxa5sp97pjqq - WALLET_3: cosmos1v8zgdpzqfazvk6fgwhqqhzx0hfannrajezuc6t - WALLET_4: cosmos1ty2qlurqsxj6sgs378hxmzyxh0ds8ukc70w844 - WALLET_RELAYER: cosmos1ty2qlurqsxj6sgs378hxmzyxh0ds8ukc70w844 - VAL1_STAKE: 800000000 - VAL2_STAKE: 200000000 - VAL3_STAKE: 10000000 - VAL_FUNDS: 11000000000 - VAL_STAKE: 1000000000 - VAL_STAKE_STEP: 1000000 - VAL1_API_PORT: 25001 - VAL2_API_PORT: 25002 - VAL3_API_PORT: 25003 - VAL1_GRPC_PORT: 26001 - VAL2_GRPC_PORT: 26002 - VAL3_GRPC_PORT: 26003 - VAL1_RPC_PORT: 27001 - VAL2_RPC_PORT: 27002 - VAL3_RPC_PORT: 27003 - VAL1_P2P_PORT: 28001 - VAL2_P2P_PORT: 28002 - VAL3_P2P_PORT: 28003 - VAL1_PPROF_PORT: 29001 - VAL2_PPROF_PORT: 29002 - VAL3_PPROF_PORT: 29003 # Consumer chain variables - DOWNTIME_BLOCKS: 10000 RECIPIENT: cosmos1r5v5srda7xfth3hn2s26txvrcrntldjumt8mhl - ICS_120: false - ICS_200: false - ICS_310: false - ICS_330: false - CONSUMER_ICS: v3.1.0 + CONSUMER_ICS: v3.2.0 PROVIDER_ICS: v2.4.0 # Reference ICS chain variables - CONSUMER_DENOM: ucon - CONSUMER_FEES: 500 - CONSUMER_CHAIN_V12_BINARY_URL: https://github.com/hyphacoop/cosmos-builds/releases/download/ics-v1.2.0-multiden/interchain-security-cd-linux - CONSUMER_CHAIN_V12_BINARY: consumerd_v1.2.0 - CONSUMER_CHAIN_V2_BINARY_URL: https://github.com/hyphacoop/cosmos-builds/releases/download/ics-v2.0.0/interchain-security-cd-linux - CONSUMER_CHAIN_V2_BINARY: consumerd_v2.0.0 - CONSUMER_CHAIN_V310_BINARY_URL: https://github.com/hyphacoop/cosmos-builds/releases/download/ics-v3.1.0/interchain-security-cd-linux - CONSUMER_CHAIN_V310_BINARY: consumerd_v3.1.0 - CONSUMER_CHAIN_V320_BINARY_URL: https://github.com/hyphacoop/cosmos-builds/releases/download/ics-consumer-v3.2.0/interchain-security-cd-linux - CONSUMER_CHAIN_V320_BINARY: consumerd_v3.2.0 - CONSUMER_CHAIN_V330_BINARY_URL: https://github.com/hyphacoop/cosmos-builds/releases/download/ics-consumer-v3.3.0/interchain-security-cd-linux - CONSUMER_CHAIN_V330_BINARY: consumerd_v3.3.0 STRIDE_V18_BINARY_URL: https://github.com/hyphacoop/cosmos-builds/releases/download/stride-consumer-v18.0.0/strided-consumer-linux ICS_TRANSFORM_BINARY_URL: https://github.com/hyphacoop/cosmos-builds/releases/download/ics-v3.3.0-transform/interchain-security-cd ICS_TRANSFORM_BINARY: cd-transform - # Sovereign-ICS chain variables - STRIDE_SOV_CHAIN_BINARY_URL: https://github.com/hyphacoop/cosmos-builds/releases/download/stride-v11.0.0/stride-v11.0.0-linux-amd64 - STRIDE_CON_CHAIN_BINARY_URL: https://github.com/hyphacoop/cosmos-builds/releases/download/stride-v12.1.0/stride-v12.1.0-linux-amd64 STRIDE_CHAIN_BINARY: strided - STRIDE_CHAIN_ID: five - STRIDE_DENOM: ustrd - STRIDE_HOME_1: /home/runner/.stride1 - STRIDE_HOME_2: /home/runner/.stride2 - STRIDE_SERVICE_1: stride1.service - STRIDE_SERVICE_2: stride2.service STRIDE_WALLET_1: stride1r5v5srda7xfth3hn2s26txvrcrntldjucq88rn STRIDE_WALLET_LIQUID: stride17n3vkvg6lwf98p3kanlhlyjk6zkrfla9zrhma6 - STRIDE_API_1: 35001 - STRIDE_API_2: 35002 - STRIDE_GRPC_1: 36001 - STRIDE_GRPC_2: 36002 - STRIDE_RPC_1: 37001 - STRIDE_RPC_2: 37002 - STRIDE_P2P_1: 38001 - STRIDE_P2P_2: 38002 - STRIDE_PPROF_1: 39001 - STRIDE_PPROF_2: 39002 - CHANGEOVER_HEIGHT_OFFSET: false - # Relayer variables - # RELAYER: hermes - HERMES_VERSION: v1.7.4 - RLY_VERSION: "2.4.2" steps: - name: start-version run: echo ${{matrix.gaia_version}} @@ -2760,25 +2431,12 @@ jobs: run: tests/v15_upgrade/setup_relayer.sh - name: Download consumer chain binaries run: | - wget $CONSUMER_CHAIN_V2_BINARY_URL -O $HOME/go/bin/$CONSUMER_CHAIN_V2_BINARY -q - chmod +x $HOME/go/bin/$CONSUMER_CHAIN_V2_BINARY - wget $CONSUMER_CHAIN_V310_BINARY_URL -O $HOME/go/bin/$CONSUMER_CHAIN_V310_BINARY -q - chmod +x $HOME/go/bin/$CONSUMER_CHAIN_V310_BINARY - wget $CONSUMER_CHAIN_V320_BINARY_URL -O $HOME/go/bin/$CONSUMER_CHAIN_V320_BINARY -q - chmod +x $HOME/go/bin/$CONSUMER_CHAIN_V320_BINARY - wget $CONSUMER_CHAIN_V330_BINARY_URL -O $HOME/go/bin/$CONSUMER_CHAIN_V330_BINARY -q - chmod +x $HOME/go/bin/$CONSUMER_CHAIN_V330_BINARY wget $STRIDE_V18_BINARY_URL -O $HOME/go/bin/$STRIDE_CHAIN_BINARY -q chmod +x $HOME/go/bin/$STRIDE_CHAIN_BINARY wget $ICS_TRANSFORM_BINARY_URL -O $HOME/go/bin/$ICS_TRANSFORM_BINARY -q chmod +x $HOME/go/bin/$ICS_TRANSFORM_BINARY - name: Consumer chain binary URLs run: | - echo "$CONSUMER_CHAIN_V12_BINARY runs off $CONSUMER_CHAIN_V12_BINARY_URL" - echo "$CONSUMER_CHAIN_V2_BINARY runs off $CONSUMER_CHAIN_V2_BINARY_URL" - echo "$CONSUMER_CHAIN_V310_BINARY runs off $CONSUMER_CHAIN_V310_BINARY_URL" - echo "$CONSUMER_CHAIN_V320_BINARY runs off $CONSUMER_CHAIN_V320_BINARY_URL" - echo "$CONSUMER_CHAIN_V330_BINARY runs off $CONSUMER_CHAIN_V330_BINARY_URL" echo "$STRIDE_BINARY runs off $STRIDE_V18_BINARY_URL" - name: Start chain env: @@ -2996,121 +2654,8 @@ jobs: ${{ fromJSON(needs.set-version-matrix.outputs.upgrade_versions) }} fail-fast: false env: - COMMIT_TIMEOUT: 3 - COSMOVISOR: false COSMOVISOR_VERSION: ${{ matrix.cv_version }} UPGRADE_MECHANISM: ${{ matrix.upgrade_mechanism }} - # Provider chain variables - CHAIN_BINARY: gaiad - CHAIN_ID: testnet - DENOM: uatom - BASE_FEES: 2000 - HIGH_FEES: 10000 - GAS: auto - GAS_ADJUSTMENT: 2 - GAS_PRICE: 0.005 - VOTING_PERIOD: 10s - COSMOS_SDK: v45 - # Provider node variables - HOME_1: /home/runner/.val1 - HOME_2: /home/runner/.val2 - HOME_3: /home/runner/.val3 - PROVIDER_SERVICE_1: gaia1.service - PROVIDER_SERVICE_2: gaia2.service - PROVIDER_SERVICE_3: gaia3.service - MNEMONIC_1: abandon abandon abandon abandon abandon abandon abandon abandon abandon abandon abandon abandon abandon abandon abandon abandon abandon abandon abandon abandon abandon abandon abandon art - MNEMONIC_2: abandon cabbage abandon cabbage abandon cabbage abandon cabbage abandon cabbage abandon cabbage abandon cabbage abandon cabbage abandon cabbage abandon cabbage abandon cabbage abandon garage - MNEMONIC_3: abandon cash abandon cash abandon cash abandon cash abandon cash abandon cash abandon cash abandon cash abandon cash abandon cash abandon cash abandon earth - MNEMONIC_RELAYER: abandon property abandon property abandon property abandon property abandon property abandon property abandon property abandon property abandon property abandon property abandon property abandon success - MNEMONIC_4: abandon property abandon property abandon property abandon property abandon property abandon property abandon property abandon property abandon property abandon property abandon property abandon success - MNEMONIC_5: abandon fame abandon fame abandon fame abandon fame abandon fame abandon fame abandon fame abandon fame abandon fame abandon fame abandon fame abandon claim - MONIKER_1: val1 - MONIKER_2: val2 - MONIKER_3: val3 - MONIKER_RELAYER: relayer - MONIKER_4: relayer - MONIKER_5: wallet5 - VALOPER_1: cosmosvaloper1r5v5srda7xfth3hn2s26txvrcrntldju7lnwmv - VALOPER_2: cosmosvaloper1ay4dpm0kjmvtpug28vgw5w32yyjxa5spq248vn - VALOPER_3: cosmosvaloper1v8zgdpzqfazvk6fgwhqqhzx0hfannrajukgdkc - WALLET_1: cosmos1r5v5srda7xfth3hn2s26txvrcrntldjumt8mhl - WALLET_2: cosmos1ay4dpm0kjmvtpug28vgw5w32yyjxa5sp97pjqq - WALLET_3: cosmos1v8zgdpzqfazvk6fgwhqqhzx0hfannrajezuc6t - WALLET_4: cosmos1ty2qlurqsxj6sgs378hxmzyxh0ds8ukc70w844 - WALLET_RELAYER: cosmos1ty2qlurqsxj6sgs378hxmzyxh0ds8ukc70w844 - VAL1_STAKE: 800000000 - VAL2_STAKE: 200000000 - VAL3_STAKE: 10000000 - VAL_FUNDS: 11000000000 - VAL_STAKE: 1000000000 - VAL_STAKE_STEP: 1000000 - VAL1_API_PORT: 25001 - VAL2_API_PORT: 25002 - VAL3_API_PORT: 25003 - VAL1_GRPC_PORT: 26001 - VAL2_GRPC_PORT: 26002 - VAL3_GRPC_PORT: 26003 - VAL1_RPC_PORT: 27001 - VAL2_RPC_PORT: 27002 - VAL3_RPC_PORT: 27003 - VAL1_P2P_PORT: 28001 - VAL2_P2P_PORT: 28002 - VAL3_P2P_PORT: 28003 - VAL1_PPROF_PORT: 29001 - VAL2_PPROF_PORT: 29002 - VAL3_PPROF_PORT: 29003 - # Consumer chain variables - DOWNTIME_BLOCKS: 10000 - RECIPIENT: cosmos1r5v5srda7xfth3hn2s26txvrcrntldjumt8mhl - ICS_120: false - ICS_200: false - ICS_310: false - ICS_330: false - CONSUMER_ICS: v3.1.0 - PROVIDER_ICS: v2.4.0 - # Reference ICS chain variables - CONSUMER_DENOM: ucon - CONSUMER_FEES: 500 - CONSUMER_CHAIN_V12_BINARY_URL: https://github.com/hyphacoop/cosmos-builds/releases/download/ics-v1.2.0-multiden/interchain-security-cd-linux - CONSUMER_CHAIN_V12_BINARY: consumerd_v1.2.0 - CONSUMER_CHAIN_V2_BINARY_URL: https://github.com/hyphacoop/cosmos-builds/releases/download/ics-v2.0.0/interchain-security-cd-linux - CONSUMER_CHAIN_V2_BINARY: consumerd_v2.0.0 - CONSUMER_CHAIN_V310_BINARY_URL: https://github.com/hyphacoop/cosmos-builds/releases/download/ics-v3.1.0/interchain-security-cd-linux - CONSUMER_CHAIN_V310_BINARY: consumerd_v3.1.0 - CONSUMER_CHAIN_V320_BINARY_URL: https://github.com/hyphacoop/cosmos-builds/releases/download/ics-consumer-v3.2.0/interchain-security-cd-linux - CONSUMER_CHAIN_V320_BINARY: consumerd_v3.2.0 - CONSUMER_CHAIN_V330_BINARY_URL: https://github.com/hyphacoop/cosmos-builds/releases/download/ics-consumer-v3.3.0/interchain-security-cd-linux - CONSUMER_CHAIN_V330_BINARY: consumerd_v3.3.0 - STRIDE_V18_BINARY_URL: https://github.com/hyphacoop/cosmos-builds/releases/download/stride-consumer-v18.0.0/strided-consumer-linux - ICS_TRANSFORM_BINARY_URL: https://github.com/hyphacoop/cosmos-builds/releases/download/ics-v3.3.0-transform/interchain-security-cd - ICS_TRANSFORM_BINARY: cd-transform - # Sovereign-ICS chain variables - STRIDE_SOV_CHAIN_BINARY_URL: https://github.com/hyphacoop/cosmos-builds/releases/download/stride-v11.0.0/stride-v11.0.0-linux-amd64 - STRIDE_CON_CHAIN_BINARY_URL: https://github.com/hyphacoop/cosmos-builds/releases/download/stride-v12.1.0/stride-v12.1.0-linux-amd64 - STRIDE_CHAIN_BINARY: strided - STRIDE_CHAIN_ID: five - STRIDE_DENOM: ustrd - STRIDE_HOME_1: /home/runner/.stride1 - STRIDE_HOME_2: /home/runner/.stride2 - STRIDE_SERVICE_1: stride1.service - STRIDE_SERVICE_2: stride2.service - STRIDE_WALLET_1: stride1r5v5srda7xfth3hn2s26txvrcrntldjucq88rn - STRIDE_WALLET_LIQUID: stride17n3vkvg6lwf98p3kanlhlyjk6zkrfla9zrhma6 - STRIDE_API_1: 35001 - STRIDE_API_2: 35002 - STRIDE_GRPC_1: 36001 - STRIDE_GRPC_2: 36002 - STRIDE_RPC_1: 37001 - STRIDE_RPC_2: 37002 - STRIDE_P2P_1: 38001 - STRIDE_P2P_2: 38002 - STRIDE_PPROF_1: 39001 - STRIDE_PPROF_2: 39002 - CHANGEOVER_HEIGHT_OFFSET: false - # Relayer variables - RELAYER: hermes - HERMES_VERSION: v1.7.4 - RLY_VERSION: "2.4.2" steps: - name: start-version run: echo ${{matrix.gaia_version}} @@ -3207,121 +2752,8 @@ jobs: ${{ fromJSON(needs.set-version-matrix.outputs.upgrade_versions) }} fail-fast: false env: - COMMIT_TIMEOUT: 3 - COSMOVISOR: false COSMOVISOR_VERSION: ${{ matrix.cv_version }} UPGRADE_MECHANISM: ${{ matrix.upgrade_mechanism }} - # Provider chain variables - CHAIN_BINARY: gaiad - CHAIN_ID: testnet - DENOM: uatom - BASE_FEES: 2000 - HIGH_FEES: 10000 - GAS: auto - GAS_ADJUSTMENT: 2 - GAS_PRICE: 0.005 - VOTING_PERIOD: 10s - COSMOS_SDK: v45 - # Provider node variables - HOME_1: /home/runner/.val1 - HOME_2: /home/runner/.val2 - HOME_3: /home/runner/.val3 - PROVIDER_SERVICE_1: gaia1.service - PROVIDER_SERVICE_2: gaia2.service - PROVIDER_SERVICE_3: gaia3.service - MNEMONIC_1: abandon abandon abandon abandon abandon abandon abandon abandon abandon abandon abandon abandon abandon abandon abandon abandon abandon abandon abandon abandon abandon abandon abandon art - MNEMONIC_2: abandon cabbage abandon cabbage abandon cabbage abandon cabbage abandon cabbage abandon cabbage abandon cabbage abandon cabbage abandon cabbage abandon cabbage abandon cabbage abandon garage - MNEMONIC_3: abandon cash abandon cash abandon cash abandon cash abandon cash abandon cash abandon cash abandon cash abandon cash abandon cash abandon cash abandon earth - MNEMONIC_RELAYER: abandon property abandon property abandon property abandon property abandon property abandon property abandon property abandon property abandon property abandon property abandon property abandon success - MNEMONIC_4: abandon property abandon property abandon property abandon property abandon property abandon property abandon property abandon property abandon property abandon property abandon property abandon success - MNEMONIC_5: abandon fame abandon fame abandon fame abandon fame abandon fame abandon fame abandon fame abandon fame abandon fame abandon fame abandon fame abandon claim - MONIKER_1: val1 - MONIKER_2: val2 - MONIKER_3: val3 - MONIKER_RELAYER: relayer - MONIKER_4: relayer - MONIKER_5: wallet5 - VALOPER_1: cosmosvaloper1r5v5srda7xfth3hn2s26txvrcrntldju7lnwmv - VALOPER_2: cosmosvaloper1ay4dpm0kjmvtpug28vgw5w32yyjxa5spq248vn - VALOPER_3: cosmosvaloper1v8zgdpzqfazvk6fgwhqqhzx0hfannrajukgdkc - WALLET_1: cosmos1r5v5srda7xfth3hn2s26txvrcrntldjumt8mhl - WALLET_2: cosmos1ay4dpm0kjmvtpug28vgw5w32yyjxa5sp97pjqq - WALLET_3: cosmos1v8zgdpzqfazvk6fgwhqqhzx0hfannrajezuc6t - WALLET_4: cosmos1ty2qlurqsxj6sgs378hxmzyxh0ds8ukc70w844 - WALLET_RELAYER: cosmos1ty2qlurqsxj6sgs378hxmzyxh0ds8ukc70w844 - VAL1_STAKE: 800000000 - VAL2_STAKE: 200000000 - VAL3_STAKE: 10000000 - VAL_FUNDS: 11000000000 - VAL_STAKE: 1000000000 - VAL_STAKE_STEP: 1000000 - VAL1_API_PORT: 25001 - VAL2_API_PORT: 25002 - VAL3_API_PORT: 25003 - VAL1_GRPC_PORT: 26001 - VAL2_GRPC_PORT: 26002 - VAL3_GRPC_PORT: 26003 - VAL1_RPC_PORT: 27001 - VAL2_RPC_PORT: 27002 - VAL3_RPC_PORT: 27003 - VAL1_P2P_PORT: 28001 - VAL2_P2P_PORT: 28002 - VAL3_P2P_PORT: 28003 - VAL1_PPROF_PORT: 29001 - VAL2_PPROF_PORT: 29002 - VAL3_PPROF_PORT: 29003 - # Consumer chain variables - DOWNTIME_BLOCKS: 10000 - RECIPIENT: cosmos1r5v5srda7xfth3hn2s26txvrcrntldjumt8mhl - ICS_120: false - ICS_200: false - ICS_310: false - ICS_330: false - CONSUMER_ICS: v3.1.0 - PROVIDER_ICS: v2.4.0 - # Reference ICS chain variables - CONSUMER_DENOM: ucon - CONSUMER_FEES: 500 - CONSUMER_CHAIN_V12_BINARY_URL: https://github.com/hyphacoop/cosmos-builds/releases/download/ics-v1.2.0-multiden/interchain-security-cd-linux - CONSUMER_CHAIN_V12_BINARY: consumerd_v1.2.0 - CONSUMER_CHAIN_V2_BINARY_URL: https://github.com/hyphacoop/cosmos-builds/releases/download/ics-v2.0.0/interchain-security-cd-linux - CONSUMER_CHAIN_V2_BINARY: consumerd_v2.0.0 - CONSUMER_CHAIN_V310_BINARY_URL: https://github.com/hyphacoop/cosmos-builds/releases/download/ics-v3.1.0/interchain-security-cd-linux - CONSUMER_CHAIN_V310_BINARY: consumerd_v3.1.0 - CONSUMER_CHAIN_V320_BINARY_URL: https://github.com/hyphacoop/cosmos-builds/releases/download/ics-consumer-v3.2.0/interchain-security-cd-linux - CONSUMER_CHAIN_V320_BINARY: consumerd_v3.2.0 - CONSUMER_CHAIN_V330_BINARY_URL: https://github.com/hyphacoop/cosmos-builds/releases/download/ics-consumer-v3.3.0/interchain-security-cd-linux - CONSUMER_CHAIN_V330_BINARY: consumerd_v3.3.0 - STRIDE_V18_BINARY_URL: https://github.com/hyphacoop/cosmos-builds/releases/download/stride-consumer-v18.0.0/strided-consumer-linux - ICS_TRANSFORM_BINARY_URL: https://github.com/hyphacoop/cosmos-builds/releases/download/ics-v3.3.0-transform/interchain-security-cd - ICS_TRANSFORM_BINARY: cd-transform - # Sovereign-ICS chain variables - STRIDE_SOV_CHAIN_BINARY_URL: https://github.com/hyphacoop/cosmos-builds/releases/download/stride-v11.0.0/stride-v11.0.0-linux-amd64 - STRIDE_CON_CHAIN_BINARY_URL: https://github.com/hyphacoop/cosmos-builds/releases/download/stride-v12.1.0/stride-v12.1.0-linux-amd64 - STRIDE_CHAIN_BINARY: strided - STRIDE_CHAIN_ID: five - STRIDE_DENOM: ustrd - STRIDE_HOME_1: /home/runner/.stride1 - STRIDE_HOME_2: /home/runner/.stride2 - STRIDE_SERVICE_1: stride1.service - STRIDE_SERVICE_2: stride2.service - STRIDE_WALLET_1: stride1r5v5srda7xfth3hn2s26txvrcrntldjucq88rn - STRIDE_WALLET_LIQUID: stride17n3vkvg6lwf98p3kanlhlyjk6zkrfla9zrhma6 - STRIDE_API_1: 35001 - STRIDE_API_2: 35002 - STRIDE_GRPC_1: 36001 - STRIDE_GRPC_2: 36002 - STRIDE_RPC_1: 37001 - STRIDE_RPC_2: 37002 - STRIDE_P2P_1: 38001 - STRIDE_P2P_2: 38002 - STRIDE_PPROF_1: 39001 - STRIDE_PPROF_2: 39002 - CHANGEOVER_HEIGHT_OFFSET: false - # Relayer variables - RELAYER: hermes - HERMES_VERSION: v1.7.4 - RLY_VERSION: "2.4.2" steps: - name: start-version run: echo ${{matrix.gaia_version}} @@ -3418,121 +2850,8 @@ jobs: ${{ fromJSON(needs.set-version-matrix.outputs.upgrade_versions) }} fail-fast: false env: - COMMIT_TIMEOUT: 3 - COSMOVISOR: false COSMOVISOR_VERSION: ${{ matrix.cv_version }} UPGRADE_MECHANISM: ${{ matrix.upgrade_mechanism }} - # Provider chain variables - CHAIN_BINARY: gaiad - CHAIN_ID: testnet - DENOM: uatom - BASE_FEES: 2000 - HIGH_FEES: 10000 - GAS: auto - GAS_ADJUSTMENT: 2 - GAS_PRICE: 0.005 - VOTING_PERIOD: 10s - COSMOS_SDK: v45 - # Provider node variables - HOME_1: /home/runner/.val1 - HOME_2: /home/runner/.val2 - HOME_3: /home/runner/.val3 - PROVIDER_SERVICE_1: gaia1.service - PROVIDER_SERVICE_2: gaia2.service - PROVIDER_SERVICE_3: gaia3.service - MNEMONIC_1: abandon abandon abandon abandon abandon abandon abandon abandon abandon abandon abandon abandon abandon abandon abandon abandon abandon abandon abandon abandon abandon abandon abandon art - MNEMONIC_2: abandon cabbage abandon cabbage abandon cabbage abandon cabbage abandon cabbage abandon cabbage abandon cabbage abandon cabbage abandon cabbage abandon cabbage abandon cabbage abandon garage - MNEMONIC_3: abandon cash abandon cash abandon cash abandon cash abandon cash abandon cash abandon cash abandon cash abandon cash abandon cash abandon cash abandon earth - MNEMONIC_RELAYER: abandon property abandon property abandon property abandon property abandon property abandon property abandon property abandon property abandon property abandon property abandon property abandon success - MNEMONIC_4: abandon property abandon property abandon property abandon property abandon property abandon property abandon property abandon property abandon property abandon property abandon property abandon success - MNEMONIC_5: abandon fame abandon fame abandon fame abandon fame abandon fame abandon fame abandon fame abandon fame abandon fame abandon fame abandon fame abandon claim - MONIKER_1: val1 - MONIKER_2: val2 - MONIKER_3: val3 - MONIKER_RELAYER: relayer - MONIKER_4: relayer - MONIKER_5: wallet5 - VALOPER_1: cosmosvaloper1r5v5srda7xfth3hn2s26txvrcrntldju7lnwmv - VALOPER_2: cosmosvaloper1ay4dpm0kjmvtpug28vgw5w32yyjxa5spq248vn - VALOPER_3: cosmosvaloper1v8zgdpzqfazvk6fgwhqqhzx0hfannrajukgdkc - WALLET_1: cosmos1r5v5srda7xfth3hn2s26txvrcrntldjumt8mhl - WALLET_2: cosmos1ay4dpm0kjmvtpug28vgw5w32yyjxa5sp97pjqq - WALLET_3: cosmos1v8zgdpzqfazvk6fgwhqqhzx0hfannrajezuc6t - WALLET_4: cosmos1ty2qlurqsxj6sgs378hxmzyxh0ds8ukc70w844 - WALLET_RELAYER: cosmos1ty2qlurqsxj6sgs378hxmzyxh0ds8ukc70w844 - VAL1_STAKE: 800000000 - VAL2_STAKE: 200000000 - VAL3_STAKE: 10000000 - VAL_FUNDS: 11000000000 - VAL_STAKE: 1000000000 - VAL_STAKE_STEP: 1000000 - VAL1_API_PORT: 25001 - VAL2_API_PORT: 25002 - VAL3_API_PORT: 25003 - VAL1_GRPC_PORT: 26001 - VAL2_GRPC_PORT: 26002 - VAL3_GRPC_PORT: 26003 - VAL1_RPC_PORT: 27001 - VAL2_RPC_PORT: 27002 - VAL3_RPC_PORT: 27003 - VAL1_P2P_PORT: 28001 - VAL2_P2P_PORT: 28002 - VAL3_P2P_PORT: 28003 - VAL1_PPROF_PORT: 29001 - VAL2_PPROF_PORT: 29002 - VAL3_PPROF_PORT: 29003 - # Consumer chain variables - DOWNTIME_BLOCKS: 10000 - RECIPIENT: cosmos1r5v5srda7xfth3hn2s26txvrcrntldjumt8mhl - ICS_120: false - ICS_200: false - ICS_310: false - ICS_330: false - CONSUMER_ICS: v3.1.0 - PROVIDER_ICS: v2.4.0 - # Reference ICS chain variables - CONSUMER_DENOM: ucon - CONSUMER_FEES: 500 - CONSUMER_CHAIN_V12_BINARY_URL: https://github.com/hyphacoop/cosmos-builds/releases/download/ics-v1.2.0-multiden/interchain-security-cd-linux - CONSUMER_CHAIN_V12_BINARY: consumerd_v1.2.0 - CONSUMER_CHAIN_V2_BINARY_URL: https://github.com/hyphacoop/cosmos-builds/releases/download/ics-v2.0.0/interchain-security-cd-linux - CONSUMER_CHAIN_V2_BINARY: consumerd_v2.0.0 - CONSUMER_CHAIN_V310_BINARY_URL: https://github.com/hyphacoop/cosmos-builds/releases/download/ics-v3.1.0/interchain-security-cd-linux - CONSUMER_CHAIN_V310_BINARY: consumerd_v3.1.0 - CONSUMER_CHAIN_V320_BINARY_URL: https://github.com/hyphacoop/cosmos-builds/releases/download/ics-consumer-v3.2.0/interchain-security-cd-linux - CONSUMER_CHAIN_V320_BINARY: consumerd_v3.2.0 - CONSUMER_CHAIN_V330_BINARY_URL: https://github.com/hyphacoop/cosmos-builds/releases/download/ics-consumer-v3.3.0/interchain-security-cd-linux - CONSUMER_CHAIN_V330_BINARY: consumerd_v3.3.0 - STRIDE_V18_BINARY_URL: https://github.com/hyphacoop/cosmos-builds/releases/download/stride-consumer-v18.0.0/strided-consumer-linux - ICS_TRANSFORM_BINARY_URL: https://github.com/hyphacoop/cosmos-builds/releases/download/ics-v3.3.0-transform/interchain-security-cd - ICS_TRANSFORM_BINARY: cd-transform - # Sovereign-ICS chain variables - STRIDE_SOV_CHAIN_BINARY_URL: https://github.com/hyphacoop/cosmos-builds/releases/download/stride-v11.0.0/stride-v11.0.0-linux-amd64 - STRIDE_CON_CHAIN_BINARY_URL: https://github.com/hyphacoop/cosmos-builds/releases/download/stride-v12.1.0/stride-v12.1.0-linux-amd64 - STRIDE_CHAIN_BINARY: strided - STRIDE_CHAIN_ID: five - STRIDE_DENOM: ustrd - STRIDE_HOME_1: /home/runner/.stride1 - STRIDE_HOME_2: /home/runner/.stride2 - STRIDE_SERVICE_1: stride1.service - STRIDE_SERVICE_2: stride2.service - STRIDE_WALLET_1: stride1r5v5srda7xfth3hn2s26txvrcrntldjucq88rn - STRIDE_WALLET_LIQUID: stride17n3vkvg6lwf98p3kanlhlyjk6zkrfla9zrhma6 - STRIDE_API_1: 35001 - STRIDE_API_2: 35002 - STRIDE_GRPC_1: 36001 - STRIDE_GRPC_2: 36002 - STRIDE_RPC_1: 37001 - STRIDE_RPC_2: 37002 - STRIDE_P2P_1: 38001 - STRIDE_P2P_2: 38002 - STRIDE_PPROF_1: 39001 - STRIDE_PPROF_2: 39002 - CHANGEOVER_HEIGHT_OFFSET: false - # Relayer variables - RELAYER: hermes - HERMES_VERSION: v1.7.4 - RLY_VERSION: "2.4.2" steps: - name: start-version run: echo ${{matrix.gaia_version}} @@ -3629,121 +2948,8 @@ jobs: ${{ fromJSON(needs.set-version-matrix.outputs.upgrade_versions) }} fail-fast: false env: - COMMIT_TIMEOUT: 3 - COSMOVISOR: false COSMOVISOR_VERSION: ${{ matrix.cv_version }} UPGRADE_MECHANISM: ${{ matrix.upgrade_mechanism }} - # Provider chain variables - CHAIN_BINARY: gaiad - CHAIN_ID: testnet - DENOM: uatom - BASE_FEES: 2000 - HIGH_FEES: 10000 - GAS: auto - GAS_ADJUSTMENT: 2 - GAS_PRICE: 0.005 - VOTING_PERIOD: 10s - COSMOS_SDK: v45 - # Provider node variables - HOME_1: /home/runner/.val1 - HOME_2: /home/runner/.val2 - HOME_3: /home/runner/.val3 - PROVIDER_SERVICE_1: gaia1.service - PROVIDER_SERVICE_2: gaia2.service - PROVIDER_SERVICE_3: gaia3.service - MNEMONIC_1: abandon abandon abandon abandon abandon abandon abandon abandon abandon abandon abandon abandon abandon abandon abandon abandon abandon abandon abandon abandon abandon abandon abandon art - MNEMONIC_2: abandon cabbage abandon cabbage abandon cabbage abandon cabbage abandon cabbage abandon cabbage abandon cabbage abandon cabbage abandon cabbage abandon cabbage abandon cabbage abandon garage - MNEMONIC_3: abandon cash abandon cash abandon cash abandon cash abandon cash abandon cash abandon cash abandon cash abandon cash abandon cash abandon cash abandon earth - MNEMONIC_RELAYER: abandon property abandon property abandon property abandon property abandon property abandon property abandon property abandon property abandon property abandon property abandon property abandon success - MNEMONIC_4: abandon property abandon property abandon property abandon property abandon property abandon property abandon property abandon property abandon property abandon property abandon property abandon success - MNEMONIC_5: abandon fame abandon fame abandon fame abandon fame abandon fame abandon fame abandon fame abandon fame abandon fame abandon fame abandon fame abandon claim - MONIKER_1: val1 - MONIKER_2: val2 - MONIKER_3: val3 - MONIKER_RELAYER: relayer - MONIKER_4: relayer - MONIKER_5: wallet5 - VALOPER_1: cosmosvaloper1r5v5srda7xfth3hn2s26txvrcrntldju7lnwmv - VALOPER_2: cosmosvaloper1ay4dpm0kjmvtpug28vgw5w32yyjxa5spq248vn - VALOPER_3: cosmosvaloper1v8zgdpzqfazvk6fgwhqqhzx0hfannrajukgdkc - WALLET_1: cosmos1r5v5srda7xfth3hn2s26txvrcrntldjumt8mhl - WALLET_2: cosmos1ay4dpm0kjmvtpug28vgw5w32yyjxa5sp97pjqq - WALLET_3: cosmos1v8zgdpzqfazvk6fgwhqqhzx0hfannrajezuc6t - WALLET_4: cosmos1ty2qlurqsxj6sgs378hxmzyxh0ds8ukc70w844 - WALLET_RELAYER: cosmos1ty2qlurqsxj6sgs378hxmzyxh0ds8ukc70w844 - VAL1_STAKE: 800000000 - VAL2_STAKE: 200000000 - VAL3_STAKE: 10000000 - VAL_FUNDS: 11000000000 - VAL_STAKE: 1000000000 - VAL_STAKE_STEP: 1000000 - VAL1_API_PORT: 25001 - VAL2_API_PORT: 25002 - VAL3_API_PORT: 25003 - VAL1_GRPC_PORT: 26001 - VAL2_GRPC_PORT: 26002 - VAL3_GRPC_PORT: 26003 - VAL1_RPC_PORT: 27001 - VAL2_RPC_PORT: 27002 - VAL3_RPC_PORT: 27003 - VAL1_P2P_PORT: 28001 - VAL2_P2P_PORT: 28002 - VAL3_P2P_PORT: 28003 - VAL1_PPROF_PORT: 29001 - VAL2_PPROF_PORT: 29002 - VAL3_PPROF_PORT: 29003 - # Consumer chain variables - DOWNTIME_BLOCKS: 10000 - RECIPIENT: cosmos1r5v5srda7xfth3hn2s26txvrcrntldjumt8mhl - ICS_120: false - ICS_200: false - ICS_310: false - ICS_330: false - CONSUMER_ICS: v3.1.0 - PROVIDER_ICS: v2.4.0 - # Reference ICS chain variables - CONSUMER_DENOM: ucon - CONSUMER_FEES: 500 - CONSUMER_CHAIN_V12_BINARY_URL: https://github.com/hyphacoop/cosmos-builds/releases/download/ics-v1.2.0-multiden/interchain-security-cd-linux - CONSUMER_CHAIN_V12_BINARY: consumerd_v1.2.0 - CONSUMER_CHAIN_V2_BINARY_URL: https://github.com/hyphacoop/cosmos-builds/releases/download/ics-v2.0.0/interchain-security-cd-linux - CONSUMER_CHAIN_V2_BINARY: consumerd_v2.0.0 - CONSUMER_CHAIN_V310_BINARY_URL: https://github.com/hyphacoop/cosmos-builds/releases/download/ics-v3.1.0/interchain-security-cd-linux - CONSUMER_CHAIN_V310_BINARY: consumerd_v3.1.0 - CONSUMER_CHAIN_V320_BINARY_URL: https://github.com/hyphacoop/cosmos-builds/releases/download/ics-consumer-v3.2.0/interchain-security-cd-linux - CONSUMER_CHAIN_V320_BINARY: consumerd_v3.2.0 - CONSUMER_CHAIN_V330_BINARY_URL: https://github.com/hyphacoop/cosmos-builds/releases/download/ics-consumer-v3.3.0/interchain-security-cd-linux - CONSUMER_CHAIN_V330_BINARY: consumerd_v3.3.0 - STRIDE_V18_BINARY_URL: https://github.com/hyphacoop/cosmos-builds/releases/download/stride-consumer-v18.0.0/strided-consumer-linux - ICS_TRANSFORM_BINARY_URL: https://github.com/hyphacoop/cosmos-builds/releases/download/ics-v3.3.0-transform/interchain-security-cd - ICS_TRANSFORM_BINARY: cd-transform - # Sovereign-ICS chain variables - STRIDE_SOV_CHAIN_BINARY_URL: https://github.com/hyphacoop/cosmos-builds/releases/download/stride-v11.0.0/stride-v11.0.0-linux-amd64 - STRIDE_CON_CHAIN_BINARY_URL: https://github.com/hyphacoop/cosmos-builds/releases/download/stride-v12.1.0/stride-v12.1.0-linux-amd64 - STRIDE_CHAIN_BINARY: strided - STRIDE_CHAIN_ID: five - STRIDE_DENOM: ustrd - STRIDE_HOME_1: /home/runner/.stride1 - STRIDE_HOME_2: /home/runner/.stride2 - STRIDE_SERVICE_1: stride1.service - STRIDE_SERVICE_2: stride2.service - STRIDE_WALLET_1: stride1r5v5srda7xfth3hn2s26txvrcrntldjucq88rn - STRIDE_WALLET_LIQUID: stride17n3vkvg6lwf98p3kanlhlyjk6zkrfla9zrhma6 - STRIDE_API_1: 35001 - STRIDE_API_2: 35002 - STRIDE_GRPC_1: 36001 - STRIDE_GRPC_2: 36002 - STRIDE_RPC_1: 37001 - STRIDE_RPC_2: 37002 - STRIDE_P2P_1: 38001 - STRIDE_P2P_2: 38002 - STRIDE_PPROF_1: 39001 - STRIDE_PPROF_2: 39002 - CHANGEOVER_HEIGHT_OFFSET: false - # Relayer variables - RELAYER: hermes - HERMES_VERSION: v1.7.4 - RLY_VERSION: "2.4.2" CB_ACCT: cosmos145hytrc49m0hn6fphp8d5h4xspwkawcuzmx498 V_ACCT: cosmos1n7qdtcnagfvs8p4t537c5yn2dylw2e7l7a2htm VESTING_TARGET: "1720000000" diff --git a/tests/generate_upgrade_matrix_fresh.py b/tests/generate_upgrade_matrix_fresh.py index 6e7a61365..fe15366b4 100755 --- a/tests/generate_upgrade_matrix_fresh.py +++ b/tests/generate_upgrade_matrix_fresh.py @@ -71,7 +71,7 @@ if upgrade not in SKIP_TARGET_VERSIONS: if RELAYER: includes.append({'gaia_version': version, 'upgrade_version': upgrade, 'upgrade_mechanism': 'binary', 'relayer': 'hermes'}) - includes.append({'gaia_version': version, 'upgrade_version': upgrade, 'upgrade_mechanism': 'binary', 'relayer': 'rly'}) + # includes.append({'gaia_version': version, 'upgrade_version': upgrade, 'upgrade_mechanism': 'binary', 'relayer': 'rly'}) else: includes.append({'gaia_version': version, 'upgrade_version': upgrade, 'upgrade_mechanism': 'binary'}) # includes.append({'gaia_version': version, 'upgrade_version': upgrade, 'upgrade_mechanism': 'cv_manual', 'cv_version': 'v1.5.0'}) @@ -84,7 +84,7 @@ else: # Add main branch build if RELAYER: includes.append({'gaia_version': version, 'upgrade_version': 'main', 'upgrade_mechanism': 'binary', 'relayer': 'hermes'}) - includes.append({'gaia_version': version, 'upgrade_version': 'main', 'upgrade_mechanism': 'binary', 'relayer': 'rly'}) + # includes.append({'gaia_version': version, 'upgrade_version': 'main', 'upgrade_mechanism': 'binary', 'relayer': 'rly'}) else: includes.append({'gaia_version': version, 'upgrade_version': 'main', 'upgrade_mechanism': 'binary'}) # includes.append({'gaia_version': version, 'upgrade_version': 'main', 'upgrade_mechanism': 'cv_manual', 'cv_version': 'v1.5.0'}) diff --git a/tests/major_fresh_upgrade/init_consumer_assign_keys.sh b/tests/major_fresh_upgrade/init_consumer_assign_keys.sh index a2abd0e84..4e76fb9d1 100755 --- a/tests/major_fresh_upgrade/init_consumer_assign_keys.sh +++ b/tests/major_fresh_upgrade/init_consumer_assign_keys.sh @@ -38,7 +38,8 @@ mv genesis-1.json $CONSUMER_HOME_1/config/genesis.json # Set slashing to $DOWNTIME_BLOCKS jq -r --arg SLASH "$DOWNTIME_BLOCKS" '.app_state.slashing.params.signed_blocks_window |= $SLASH' $CONSUMER_HOME_1/config/genesis.json > consumer-slashing.json -mv consumer-slashing.json $CONSUMER_HOME_1/config/genesis.json +jq -r '.app_state.slashing.params.downtime_jail_duration |= "10s"' consumer-slashing.json > consumer-slashing-2.json +mv consumer-slashing-2.json $CONSUMER_HOME_1/config/genesis.json # Create self-delegation accounts echo $MNEMONIC_1 | $CONSUMER_CHAIN_BINARY keys add $MONIKER_1 --keyring-backend test --home $CONSUMER_HOME_1 --recover diff --git a/tests/major_fresh_upgrade/prepare_consumer.sh b/tests/major_fresh_upgrade/prepare_consumer.sh index a2a177867..8a6e70f50 100755 --- a/tests/major_fresh_upgrade/prepare_consumer.sh +++ b/tests/major_fresh_upgrade/prepare_consumer.sh @@ -9,32 +9,6 @@ # echo "Submitting proposal..." -# if [ $COSMOS_SDK == "v45" ]; then -# echo "Preparing proposal with v45 command..." -# proposal="$CHAIN_BINARY tx gov submit-proposal consumer-addition proposal-add-$CONSUMER_CHAIN_ID.json --gas $GAS --gas-adjustment $GAS_ADJUSTMENT --gas-prices $GAS_PRICE$DENOM --from $WALLET_2 --keyring-backend test --home $HOME_1 --chain-id $CHAIN_ID -y -o json" -# elif [ $COSMOS_SDK == "v47" ]; then -# echo "Preparing proposal with v47 command..." -# proposal="$CHAIN_BINARY tx gov submit-legacy-proposal consumer-addition proposal-add-$CONSUMER_CHAIN_ID.json --gas $GAS --gas-adjustment $GAS_ADJUSTMENT --gas-prices $GAS_PRICE$DENOM --from $WALLET_2 --keyring-backend test --home $HOME_1 --chain-id $CHAIN_ID -y -o json" -# fi -# txhash=$($proposal | jq -r .txhash) -# # Wait for the proposal to go on chain -# sleep $(($COMMIT_TIMEOUT+2)) - -# # Get proposal ID from txhash -# echo "Getting proposal ID from txhash..." -# $CHAIN_BINARY q tx $txhash --home $HOME_1 -# proposal_id=$($CHAIN_BINARY q tx $txhash --home $HOME_1 --output json | jq -r '.logs[].events[] | select(.type=="submit_proposal") | .attributes[] | select(.key=="proposal_id") | .value') - -# echo "Voting on proposal $proposal_id..." -# $CHAIN_BINARY tx gov vote $proposal_id yes --gas $GAS --gas-adjustment $GAS_ADJUSTMENT --fees $BASE_FEES$DENOM --from $WALLET_1 --keyring-backend test --home $HOME_1 --chain-id $CHAIN_ID -y -# sleep $(($COMMIT_TIMEOUT+2)) -# $CHAIN_BINARY q gov tally $proposal_id --home $HOME_1 - -# echo "Waiting for proposal to pass..." -# sleep $VOTING_PERIOD -# sleep $VOTING_PERIOD -#$CHAIN_BINARY q gov proposals --home $HOME_1 - $CHAIN_BINARY q provider list-consumer-chains --home $HOME_1 echo "Collecting the CCV state..." @@ -74,6 +48,14 @@ if [ "$CONSUMER_ICS" == "v3.3.0" ]; then fi fi +if [ "$CONSUMER_ICS" == "v4.0.0" ]; then + if [ "$PROVIDER_ICS" != "v4.0.0" ]; then + echo "Patching for ICS v4.0.0 consumer" + $CONSUMER_CHAIN_BINARY genesis transform ccv.json > ccv-400-1.json + cp ccv-400-1.json ccv.json + fi +fi + echo "Patching the consumer genesis file..." jq -s '.[0].app_state.ccvconsumer = .[1] | .[0]' $CONSUMER_HOME_1/config/genesis.json ccv.json > consumer-genesis.json cp consumer-genesis.json $CONSUMER_HOME_1/config/genesis.json diff --git a/tests/major_fresh_upgrade/test_consumer_ibc_transfer.sh b/tests/major_fresh_upgrade/test_consumer_ibc_transfer.sh index 947728db3..b3461df39 100755 --- a/tests/major_fresh_upgrade/test_consumer_ibc_transfer.sh +++ b/tests/major_fresh_upgrade/test_consumer_ibc_transfer.sh @@ -64,8 +64,6 @@ if [ -z "$provider_end_balance" ]; then provider_end_balance=0 fi echo "Provider ending balance in expected denom: $provider_end_balance" -journalctl -u $RELAYER | tail -n 100 - if [ $provider_end_balance -gt $provider_start_balance ]; then echo "Provider balance has increased!" diff --git a/tests/v15_upgrade/hermes-config.toml b/tests/v15_upgrade/hermes-config.toml index 8a7b823c4..c58c28c32 100644 --- a/tests/v15_upgrade/hermes-config.toml +++ b/tests/v15_upgrade/hermes-config.toml @@ -169,6 +169,42 @@ trust_threshold = { numerator = '1', denominator = '3' } ccv_consumer_chain = true type = "CosmosSdk" +[[chains]] +id = 'nine-v400' +rpc_addr = 'http://localhost:27901' +grpc_addr = 'http://localhost:26901' +event_source = { mode = 'push', url = 'ws://localhost:27901/websocket', batch_delay = '500ms' } +rpc_timeout = '15s' +account_prefix = 'consumer' +key_name = 'wallet' +store_prefix = 'ibc' +gas_price = { price = 0.0025, denom = 'ucon' } +gas_multiplier = 1.2 +max_gas = 10000000 +clock_drift = '10s' +trusting_period = '5days' +trust_threshold = { numerator = '1', denominator = '3' } +ccv_consumer_chain = true +type = "CosmosSdk" + +[[chains]] +id = 'ten-v400' +rpc_addr = 'http://localhost:47901' +grpc_addr = 'http://localhost:46901' +event_source = { mode = 'push', url = 'ws://localhost:47901/websocket', batch_delay = '500ms' } +rpc_timeout = '15s' +account_prefix = 'consumer' +key_name = 'wallet' +store_prefix = 'ibc' +gas_price = { price = 0.0025, denom = 'ucon' } +gas_multiplier = 1.2 +max_gas = 10000000 +clock_drift = '10s' +trusting_period = '5days' +trust_threshold = { numerator = '1', denominator = '3' } +ccv_consumer_chain = true +type = "CosmosSdk" + [[chains]] id = 'testnet' rpc_addr = 'http://localhost:27001' diff --git a/tests/v15_upgrade/setup_relayer.sh b/tests/v15_upgrade/setup_relayer.sh index 71be6b717..4099e284b 100755 --- a/tests/v15_upgrade/setup_relayer.sh +++ b/tests/v15_upgrade/setup_relayer.sh @@ -24,6 +24,8 @@ if [ $RELAYER == "hermes" ]; then hermes keys add --chain six-v310 --mnemonic-file mnemonic.txt hermes keys add --chain seven-v320 --mnemonic-file mnemonic.txt hermes keys add --chain eight-v330 --mnemonic-file mnemonic.txt + hermes keys add --chain nine-v400 --mnemonic-file mnemonic.txt + hermes keys add --chain ten-v400 --mnemonic-file mnemonic.txt hermes keys add --chain pfm1 --mnemonic-file mnemonic.txt hermes keys add --chain pfm2 --mnemonic-file mnemonic.txt hermes keys add --chain pfm3 --mnemonic-file mnemonic.txt @@ -87,6 +89,22 @@ elif [ $RELAYER == "rly" ]; then cat eight-v330.json rly chains add --file eight-v330.json + # nine + jq '.value."chain-id" = "nine-v400"' tests/v15_upgrade/testnet.json > nine-1.json + jq '.value."rpc-addr" = "http://localhost:27901"' nine-1.json > nine-2.json + jq '.value."account-prefix" = "consumer"' nine-2.json > nine-3.json + jq '.value."gas-prices" = "0.005ucon"' nine-3.json > nine-v400.json + cat nine-v400.json + rly chains add --file nine-v400.json + + # ten + jq '.value."chain-id" = "ten-v400"' tests/v15_upgrade/testnet.json > ten-1.json + jq '.value."rpc-addr" = "http://localhost:47901"' ten-1.json > ten-2.json + jq '.value."account-prefix" = "consumer"' ten-2.json > ten-3.json + jq '.value."gas-prices" = "0.005ucon"' ten-3.json > ten-v400.json + cat ten-v400.json + rly chains add --file ten-v400.json + # pfm-1 jq '.value."chain-id" = "pfm1"' tests/v15_upgrade/testnet.json > p.json jq '.value."rpc-addr" = "http://localhost:27011"' p.json > pf.json @@ -115,6 +133,8 @@ elif [ $RELAYER == "rly" ]; then rly keys restore five default "$MNEMONIC_RELAYER" rly keys restore six-v310 default "$MNEMONIC_RELAYER" rly keys restore eight-v330 default "$MNEMONIC_RELAYER" + rly keys restore nine-v400 default "$MNEMONIC_RELAYER" + rly keys restore ten-v400 default "$MNEMONIC_RELAYER" rly keys restore pfm1 default "$MNEMONIC_RELAYER" rly keys restore pfm2 default "$MNEMONIC_RELAYER" rly keys restore pfm3 default "$MNEMONIC_RELAYER" diff --git a/tests/v15_upgrade/test_clawback.sh b/tests/v15_upgrade/test_clawback.sh index 444f157b9..a6e975383 100755 --- a/tests/v15_upgrade/test_clawback.sh +++ b/tests/v15_upgrade/test_clawback.sh @@ -23,20 +23,20 @@ if [ "$pre_upgrade_acc_type" != "/cosmos.vesting.v1beta1.ContinuousVestingAccoun exit 1 fi -echo "Post upgrade account type is: $post_upgrade_acc_type" +echo "Post upgrade account type is: $post_upgrade_acc2_type" if [ "$post_upgrade_acc_type" != "/cosmos.auth.v1beta1.BaseAccount" ]; then echo "Post upgrade account is not a base account" exit 2 fi # Check if account type matches -echo "Pre upgrade account2 type is: $pre_upgrade_acc_type" +echo "Pre upgrade account2 type is: $pre_upgrade_acc2_type" if [ "$pre_upgrade_acc2_type" != "/cosmos.vesting.v1beta1.ContinuousVestingAccount" ]; then echo "Pre upgrade account is not a vesting account" exit 3 fi -echo "Post upgrade account type is: $post_upgrade_acc_type" +echo "Post upgrade account2 type is: $post_upgrade_acc2_type" if [ "$post_upgrade_acc2_type" != "/cosmos.vesting.v1beta1.ContinuousVestingAccount" ]; then echo "Post upgrade account is not a vesting account, this account's type shouldn't change" exit 4 @@ -147,11 +147,3 @@ else echo "FAIL: Community pool did not increase by at least the unvested amount." exit 1 fi - -# if [ $(bc -l <<< "$post_upgrade_cp < 100000000") -eq 1 ] -# then -# echo "Community pool balance is less than 100000000uatom, funds did not returned from wallet" -# exit 7 -# else -# echo "Community pool balance is more than 100000000uatom, funds have been returned" -# fi \ No newline at end of file