Skip to content

Commit

Permalink
chore: upgrade-18 cherry-picks round 2 (#10460)
Browse files Browse the repository at this point in the history
## Description

Cherry-picks the following commits from master:
- #10454
(d16781f)
- #10455
(1aec8d0)
 
Also adds a new upgrade name `agoric-upgrade-18-basic-2`. Also, moves
provisioning GOV4 from USE to PREPARE.

used `git cherry-pick` for the above commits

[Draft PR with reapply upgrade on top of
rc0](#10484)
  • Loading branch information
mujahidkay authored Nov 19, 2024
2 parents bf39b10 + f0dca14 commit b9b8db4
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 11 deletions.
3 changes: 3 additions & 0 deletions a3p-integration/proposals/a:upgrade-18/prepare.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,6 @@ set -uxeo pipefail
# actions are executed in the previous chain software, and the effects are
# persisted so they can be used in the steps after the upgrade is complete,
# such as in the "use" or "test" steps, or further proposal layers.

yarn
node ./addGov4
2 changes: 0 additions & 2 deletions a3p-integration/proposals/a:upgrade-18/use.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@
# Exit when any command fails
set -uxeo pipefail

node ./addGov4

# Econ Committee accept invitations for Committee and Charter
./acceptInvites.js

Expand Down
3 changes: 3 additions & 0 deletions golang/cosmos/app/upgrade.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ var upgradeNamesOfThisVersion = []string{
"agoric-upgrade-18-devnet",
"agoric-upgrade-18-emerynet",
"agoric-upgrade-18-basic",
"agoric-upgrade-18-basic-2",
"agoric-upgrade-18-a3p",
}

Expand Down Expand Up @@ -58,6 +59,8 @@ func isPrimaryUpgradeName(name string) bool {
validUpgradeName("agoric-upgrade-18-basic"),
validUpgradeName("agoric-upgrade-18-a3p"):
return true
case validUpgradeName("agoric-upgrade-18-basic-2"):
return false
default:
panic(fmt.Errorf("unexpected upgrade name %s", validUpgradeName(name)))
}
Expand Down
9 changes: 0 additions & 9 deletions packages/inter-protocol/src/proposals/add-auction.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ export const addAuction = async (
chainStorage,
chainTimerService,
economicCommitteeCreatorFacet: electorateCreatorFacet,
econCharterKit,
governedContractKits: governedContractKitsP,
priceAuthority8400,
zoe,
Expand Down Expand Up @@ -184,14 +183,6 @@ export const addAuction = async (
produceAuctioneerKit.reset();
produceAuctioneerKit.resolve(kit);

// introduce economic committee charter to new auctioneer
// cf addGovernorsToEconCharter() in committee-proposal.js
await E(E.get(econCharterKit).creatorFacet).addInstance(
kit.instance,
kit.governorCreatorFacet,
kit.label,
);

auctionInstance.reset();
await auctionInstance.resolve(governedInstance);
// belt and suspenders; the above is supposed to also do this
Expand Down
5 changes: 5 additions & 0 deletions packages/telemetry/src/slog-to-otel.js
Original file line number Diff line number Diff line change
Expand Up @@ -976,6 +976,11 @@ export const makeSlogToOtelKit = (tracer, overrideAttrs = {}) => {
spans.pop('timer-poll');
break;
}
case 'cosmic-swinget-inject-kernel-upgrade-events': {
spans.push('kernel-upgrade-events');
spans.pop('kernel-upgrade-events');
break;
}
case 'cosmic-swingset-install-bundle': {
spans.push(['install-bundle', slogAttrs.endoZipBase64Sha512]);
spans.pop('install-bundle');
Expand Down

0 comments on commit b9b8db4

Please sign in to comment.