@agoric/cosmos 0.34.2-dev-e543d46.0 → 0.34.2-dev-e06691f.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 +27 -0
- package/git-revision.txt +1 -1
- package/go.mod +1 -1
- package/go.sum +2 -2
- package/package.json +2 -2
package/app/upgrade.go
CHANGED
|
@@ -171,6 +171,26 @@ func replacePriceFeedsCoreProposal(upgradeName string) (vm.CoreProposalStep, err
|
|
|
171
171
|
)
|
|
172
172
|
}
|
|
173
173
|
|
|
174
|
+
func terminateGovernorCoreProposal(upgradeName string) (vm.CoreProposalStep, error) {
|
|
175
|
+
// targets is a slice of "$boardID:$instanceKitLabel" strings.
|
|
176
|
+
var targets []string
|
|
177
|
+
switch getVariantFromUpgradeName(upgradeName) {
|
|
178
|
+
case "MAINNET":
|
|
179
|
+
targets = []string{"board052184:stkATOM-USD_price_feed"}
|
|
180
|
+
case "A3P_INTEGRATION":
|
|
181
|
+
targets = []string{"board04091:stATOM-USD_price_feed"}
|
|
182
|
+
default:
|
|
183
|
+
return nil, nil
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
return buildProposalStepWithArgs(
|
|
187
|
+
"@agoric/builders/scripts/vats/terminate-governor-instance.js",
|
|
188
|
+
// Request `defaultProposalBuilder(powers, targets)`.
|
|
189
|
+
"defaultProposalBuilder",
|
|
190
|
+
[]any{targets},
|
|
191
|
+
)
|
|
192
|
+
}
|
|
193
|
+
|
|
174
194
|
// func upgradeMintHolderCoreProposal(upgradeName string) (vm.CoreProposalStep, error) {
|
|
175
195
|
// variant := getVariantFromUpgradeName(upgradeName)
|
|
176
196
|
|
|
@@ -285,6 +305,13 @@ func unreleasedUpgradeHandler(app *GaiaApp, targetUpgrade string) func(sdk.Conte
|
|
|
285
305
|
// "@agoric/builders/scripts/vats/upgrade-asset-reserve.js",
|
|
286
306
|
// ),
|
|
287
307
|
// )
|
|
308
|
+
|
|
309
|
+
terminateOldGovernor, err := terminateGovernorCoreProposal(targetUpgrade)
|
|
310
|
+
if err != nil {
|
|
311
|
+
return nil, err
|
|
312
|
+
} else if terminateOldGovernor != nil {
|
|
313
|
+
CoreProposalSteps = append(CoreProposalSteps, terminateOldGovernor)
|
|
314
|
+
}
|
|
288
315
|
}
|
|
289
316
|
|
|
290
317
|
app.upgradeDetails = &upgradeDetails{
|
package/git-revision.txt
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
e06691f
|
package/go.mod
CHANGED
|
@@ -198,7 +198,7 @@ replace (
|
|
|
198
198
|
// use cometbft
|
|
199
199
|
// Use our fork at least until post-v0.34.14 is released with
|
|
200
200
|
// https://github.com/tendermint/tendermint/issue/6899 resolved.
|
|
201
|
-
github.com/tendermint/tendermint => github.com/agoric-labs/cometbft v0.34.30-alpha.agoric.
|
|
201
|
+
github.com/tendermint/tendermint => github.com/agoric-labs/cometbft v0.34.30-alpha.agoric.2
|
|
202
202
|
|
|
203
203
|
// For testing against a local cosmos-sdk, ibc-go, or cometbft
|
|
204
204
|
// github.com/cosmos/cosmos-sdk => ../../../forks/cosmos-sdk
|
package/go.sum
CHANGED
|
@@ -230,8 +230,8 @@ github.com/Zilliqa/gozilliqa-sdk v1.2.1-0.20201201074141-dd0ecada1be6/go.mod h1:
|
|
|
230
230
|
github.com/adlio/schema v1.3.3 h1:oBJn8I02PyTB466pZO1UZEn1TV5XLlifBSyMrmHl/1I=
|
|
231
231
|
github.com/aead/siphash v1.0.1/go.mod h1:Nywa3cDsYNNK3gaciGTWPwHt0wlpNV15vwmswBAUSII=
|
|
232
232
|
github.com/afex/hystrix-go v0.0.0-20180502004556-fa1af6a1f4f5/go.mod h1:SkGFH1ia65gfNATL8TAiHDNxPzPdmEL5uirI2Uyuz6c=
|
|
233
|
-
github.com/agoric-labs/cometbft v0.34.30-alpha.agoric.
|
|
234
|
-
github.com/agoric-labs/cometbft v0.34.30-alpha.agoric.
|
|
233
|
+
github.com/agoric-labs/cometbft v0.34.30-alpha.agoric.2 h1:JxNpTyzHIGXcaSmdb5jtygGn7cRSbiceVa+dn8pN1BM=
|
|
234
|
+
github.com/agoric-labs/cometbft v0.34.30-alpha.agoric.2/go.mod h1:myvkihZD8eg9jKE3WFaugkNoL5nvEqlP7Jbjg98pCek=
|
|
235
235
|
github.com/agoric-labs/cosmos-sdk v0.46.16-alpha.agoric.2.5 h1:cwbONQaVbGEPzfVqvTY9PGcLZptlR9LTPunZ9La0QCg=
|
|
236
236
|
github.com/agoric-labs/cosmos-sdk v0.46.16-alpha.agoric.2.5/go.mod h1:Yny/YE+GJ+y/++UgvraITGzfLhXCnwETSWw3dAY5NDg=
|
|
237
237
|
github.com/agoric-labs/cosmos-sdk/ics23/go v0.8.0-alpha.agoric.1 h1:2jvHI/2d+psWAZy6FQ0vXJCHUtfU3ZbbW+pQFL04arQ=
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@agoric/cosmos",
|
|
3
|
-
"version": "0.34.2-dev-
|
|
3
|
+
"version": "0.34.2-dev-e06691f.0+e06691f",
|
|
4
4
|
"description": "Connect JS to the Cosmos blockchain SDK",
|
|
5
5
|
"parsers": {
|
|
6
6
|
"js": "mjs"
|
|
@@ -39,5 +39,5 @@
|
|
|
39
39
|
"typeCoverage": {
|
|
40
40
|
"atLeast": 0
|
|
41
41
|
},
|
|
42
|
-
"gitHead": "
|
|
42
|
+
"gitHead": "e06691f3bb13d315a4b557b4711c33cabc94979c"
|
|
43
43
|
}
|