From 5abf29c678d9f6ab5edd9af0988c443be498d324 Mon Sep 17 00:00:00 2001 From: Chris Hibbert Date: Wed, 30 Oct 2024 16:59:07 -0700 Subject: [PATCH] Add configuration for emeryNet to upgrade.go and build scripts (#10376) ## Description In order to test Upgrade 18 on EmeryNet, we need configuration parameters that match. ### Security Considerations N/A ### Scaling Considerations N/A ### Documentation Considerations N/A ### Testing Considerations For testing ### Upgrade Considerations as part of upgrade. --- golang/cosmos/app/upgrade.go | 6 +++++- .../inter-protocol/replace-electorate-core.js | 13 +++++++++++++ .../scripts/inter-protocol/updatePriceFeeds.js | 7 +++++++ 3 files changed, 25 insertions(+), 1 deletion(-) diff --git a/golang/cosmos/app/upgrade.go b/golang/cosmos/app/upgrade.go index 25c9dcb6702..f661bf4bddc 100644 --- a/golang/cosmos/app/upgrade.go +++ b/golang/cosmos/app/upgrade.go @@ -18,6 +18,7 @@ var upgradeNamesOfThisVersion = []string{ "UNRELEASED_A3P_INTEGRATION", "UNRELEASED_main", "UNRELEASED_devnet", + "UNRELEASED_emerynet", "UNRELEASED_REAPPLY", } @@ -55,7 +56,8 @@ func isPrimaryUpgradeName(name string) bool { case validUpgradeName("UNRELEASED_BASIC"), validUpgradeName("UNRELEASED_A3P_INTEGRATION"), validUpgradeName("UNRELEASED_main"), - validUpgradeName("UNRELEASED_devnet"): + validUpgradeName("UNRELEASED_devnet"), + validUpgradeName("UNRELEASED_emerynet"): return true case validUpgradeName("UNRELEASED_REAPPLY"): return false @@ -113,6 +115,8 @@ func getVariantFromUpgradeName(upgradeName string) string { return "MAINNET" case "UNRELEASED_devnet": return "DEVNET" + case "UNRELEASED_emerynet": + return "EMERYNET" // Noupgrade for this version. case "UNRELEASED_BASIC": return "" diff --git a/packages/builders/scripts/inter-protocol/replace-electorate-core.js b/packages/builders/scripts/inter-protocol/replace-electorate-core.js index e02e7a8df3d..76f07d6d008 100644 --- a/packages/builders/scripts/inter-protocol/replace-electorate-core.js +++ b/packages/builders/scripts/inter-protocol/replace-electorate-core.js @@ -6,6 +6,7 @@ * where [ENVIRONMENT] is one of the following: * - MAINNET * - DEVNET + * - EMERYNET * - A3P_INTEGRATION * - BOOTSTRAP_TEST * @@ -47,6 +48,18 @@ const configurations = { addressesToRemove: ['agoric1w8wktaur4zf8qmmtn3n7x3r0jhsjkjntcm3u6h'], }, }, + EMERYNET: { + committeeName: 'Economic Committee', + voterAddresses: { + gov1: 'agoric1ldmtatp24qlllgxmrsjzcpe20fvlkp448zcuce', + gov2: 'agoric140dmkrz2e42ergjj7gyvejhzmjzurvqeq82ang', + gov4: 'agoric1f0h5zgxyg3euxsqzs0506uj4cmu56y30pqx46s', + }, + highPrioritySendersConfig: { + addressesToAdd: ['agoric1f0h5zgxyg3euxsqzs0506uj4cmu56y30pqx46s'], + addressesToRemove: ['agoric1w8wktaur4zf8qmmtn3n7x3r0jhsjkjntcm3u6h'], + }, + }, A3P_INTEGRATION: { committeeName: 'Economic Committee', voterAddresses: { diff --git a/packages/builders/scripts/inter-protocol/updatePriceFeeds.js b/packages/builders/scripts/inter-protocol/updatePriceFeeds.js index ffb8b2548cf..6b5f0c2e442 100644 --- a/packages/builders/scripts/inter-protocol/updatePriceFeeds.js +++ b/packages/builders/scripts/inter-protocol/updatePriceFeeds.js @@ -34,6 +34,13 @@ const configurations = { ], inBrandNames: ['ATOM', 'stTIA', 'stkATOM'], }, + EMERYNET: { + oracleAddresses: [ + 'agoric1ldmtatp24qlllgxmrsjzcpe20fvlkp448zcuce', // GOV1 + 'agoric140dmkrz2e42ergjj7gyvejhzmjzurvqeq82ang', // GOV2 + ], + inBrandNames: ['ATOM', 'stATOM', 'stOSMO', 'stTIA', 'stkATOM'], + }, }; const { keys } = Object;