@agoric/cosmos 0.34.2-dev-fbea810.0 → 0.34.2-dev-70e543c.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/app/upgrade.go CHANGED
@@ -180,6 +180,29 @@ func unreleasedUpgradeHandler(app *GaiaApp, targetUpgrade string) func(sdk.Conte
180
180
  "@agoric/builders/scripts/vats/upgrade-bank.js",
181
181
  ),
182
182
  )
183
+
184
+ // terminationTargets is a slice of "$boardID:$instanceKitLabel" strings.
185
+ var terminationTargets []string
186
+ switch getVariantFromUpgradeName(targetUpgrade) {
187
+ case "MAINNET":
188
+ // v111 "zcf-b1-4522b-stkATOM-USD_price_feed"
189
+ terminationTargets = []string{"board052184:stkATOM-USD_price_feed"}
190
+ case "A3P_INTEGRATION":
191
+ terminationTargets = []string{"board04091:stATOM-USD_price_feed"}
192
+ }
193
+ if len(terminationTargets) > 0 {
194
+ args := []vm.Jsonable{terminationTargets}
195
+ terminationStep, err := buildProposalStepWithArgs(
196
+ "@agoric/vats/src/proposals/terminate-governed-instance.js",
197
+ // defaultProposalBuilder(powers, targets)
198
+ "defaultProposalBuilder",
199
+ args...,
200
+ )
201
+ if err != nil {
202
+ return module.VersionMap{}, err
203
+ }
204
+ CoreProposalSteps = append(CoreProposalSteps, terminationStep)
205
+ }
183
206
  }
184
207
 
185
208
  app.upgradeDetails = &upgradeDetails{
package/git-revision.txt CHANGED
@@ -1 +1 @@
1
- fbea810
1
+ 70e543c
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agoric/cosmos",
3
- "version": "0.34.2-dev-fbea810.0+fbea810",
3
+ "version": "0.34.2-dev-70e543c.0+70e543c",
4
4
  "description": "Connect JS to the Cosmos blockchain SDK",
5
5
  "parsers": {
6
6
  "js": "mjs"
@@ -38,5 +38,5 @@
38
38
  "typeCoverage": {
39
39
  "atLeast": 0
40
40
  },
41
- "gitHead": "fbea810678db7e06c8409ed9c163dad88a181ad1"
41
+ "gitHead": "70e543c8f952246ab36454f8f04ea2589f401d2f"
42
42
  }