@agoric/cosmos 0.35.0-u11wf.0 → 0.35.0-u13.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/CHANGELOG.md CHANGED
@@ -3,6 +3,50 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [0.35.0-u13.0](https://github.com/Agoric/agoric-sdk/compare/@agoric/cosmos@0.35.0-u12.0...@agoric/cosmos@0.35.0-u13.0) (2023-12-07)
7
+
8
+
9
+ ### Features
10
+
11
+ * **cosmos:** un-wire x/crisis ([#8582](https://github.com/Agoric/agoric-sdk/issues/8582)) ([19404a3](https://github.com/Agoric/agoric-sdk/commit/19404a3c5cd10d9c454f190b60cbf0aa715f605c))
12
+ * **x/swingset:** auto-provision smart wallet ([5073800](https://github.com/Agoric/agoric-sdk/commit/5073800f87c92a194a21c9cc59ad1bb570a39b95))
13
+ * **x/swingset:** refuse smart wallet messages if not provisioned ([50a5a55](https://github.com/Agoric/agoric-sdk/commit/50a5a557956562fc05b8c2defd99a0102a35153f))
14
+ * pick up return-grants from latest cosmos-sdk ([975533e](https://github.com/Agoric/agoric-sdk/commit/975533e088f96c80cf8d6f6b7c5f45665e3495ba))
15
+ * update ibc-go to v4, adapt packages and API ([6672e5c](https://github.com/Agoric/agoric-sdk/commit/6672e5cb780c8baa530ac59bff27d793e1ff8f50))
16
+
17
+
18
+ ### Bug Fixes
19
+
20
+ * handle hang-on-halt behavior from agoric-labs/cosmos-sdk[#305](https://github.com/Agoric/agoric-sdk/issues/305) ([7ae9a70](https://github.com/Agoric/agoric-sdk/commit/7ae9a705478727d1d7ace7c665861cfee14b5f28))
21
+ * update dependencies to fix tests ([9d750dd](https://github.com/Agoric/agoric-sdk/commit/9d750dd39993d380a5e889ea7faa4bb78c3257aa))
22
+
23
+
24
+ ### Reverts
25
+
26
+ * Revert "fix: handle hang-on-halt behavior from agoric-labs/cosmos-sdk#305" ([3a37f5e](https://github.com/Agoric/agoric-sdk/commit/3a37f5e472405d1d3bee2075b47ecd3632ba4073)), closes [agoric-labs/cosmos-sdk#305](https://github.com/agoric-labs/cosmos-sdk/issues/305) [agoric-labs/cosmos-sdk#305](https://github.com/agoric-labs/cosmos-sdk/issues/305)
27
+
28
+
29
+
30
+ ## [0.35.0-u12.0](https://github.com/Agoric/agoric-sdk/compare/@agoric/cosmos@0.35.0-u11wf.0...@agoric/cosmos@0.35.0-u12.0) (2023-11-10)
31
+
32
+
33
+ ### ⚠ BREAKING CHANGES
34
+
35
+ * **vstorage:** Enforce path validation
36
+
37
+ ### Features
38
+
39
+ * **cosmos:** Lower `BlockParams.MaxBytes` to 5MB ([84908e5](https://github.com/Agoric/agoric-sdk/commit/84908e5a5a181e3f64da0e298d0105fedb97570a))
40
+
41
+ ### Bug Fixes
42
+
43
+ * **vibc:** accommodate ibc-go v3 breaking changes ([f582901](https://github.com/Agoric/agoric-sdk/commit/f582901fb3835d95d493c777aac6a63fc3ee4681))
44
+ * **vibc:** put extraneous `CounterpartyChannelID` in `Counterparty` struct ([9469971](https://github.com/Agoric/agoric-sdk/commit/946997192cec0ed6b07fdaa18d8f380f460ab004))
45
+ * **vstorage:** Enforce path validation ([d8db331](https://github.com/Agoric/agoric-sdk/commit/d8db3310fb21a8546388694752889f3563733010)), closes [#8337](https://github.com/Agoric/agoric-sdk/issues/8337)
46
+ * **cosmos:** Update cosmos-sdk with fix for state-sync restore of large payloads ([e04b398](https://github.com/Agoric/agoric-sdk/commit/e04b398bf16d884fa4708c16d4c03b39cc4e0f1b)), closes [#8325](https://github.com/Agoric/agoric-sdk/issues/8325)
47
+
48
+
49
+
6
50
  ## [0.35.0-u11wf.0](https://github.com/Agoric/agoric-sdk/compare/@agoric/cosmos@0.35.0-u11.0...@agoric/cosmos@0.35.0-u11wf.0) (2023-09-23)
7
51
 
8
52
  **Note:** Version bump only for package @agoric/cosmos
package/Makefile CHANGED
@@ -106,7 +106,7 @@ t:
106
106
 
107
107
  TM_URL := file://$(shell go list -m -f '{{ .Dir }}' github.com/tendermint/tendermint)/proto/tendermint
108
108
  GOGO_PROTO_URL := file://$(shell go list -m -f '{{ .Dir }}' github.com/gogo/protobuf)
109
- IBC_PROTO_URL := file://$(shell go list -m -f '{{ .Dir }}' github.com/cosmos/ibc-go/v3)/proto/ibc/core
109
+ IBC_PROTO_URL := file://$(shell go list -m -f '{{ .Dir }}' github.com/cosmos/ibc-go/v4)/proto/ibc/core
110
110
  COSMOS_SDK_PROTO_URL := file://$(shell go list -m -f '{{ .Dir }}' github.com/cosmos/cosmos-sdk)/proto/cosmos
111
111
 
112
112
  GOGO_PROTO_TYPES = third_party/proto/gogoproto
package/ante/ante.go CHANGED
@@ -4,8 +4,8 @@ import (
4
4
  sdk "github.com/cosmos/cosmos-sdk/types"
5
5
  sdkerrors "github.com/cosmos/cosmos-sdk/types/errors"
6
6
  "github.com/cosmos/cosmos-sdk/x/auth/ante"
7
- ibcante "github.com/cosmos/ibc-go/v3/modules/core/ante"
8
- ibckeeper "github.com/cosmos/ibc-go/v3/modules/core/keeper"
7
+ ibcante "github.com/cosmos/ibc-go/v4/modules/core/ante"
8
+ ibckeeper "github.com/cosmos/ibc-go/v4/modules/core/keeper"
9
9
  )
10
10
 
11
11
  // HandlerOptions extend the SDK's AnteHandler options by requiring the IBC
@@ -217,3 +217,11 @@ func (msk mockSwingsetKeeper) GetBeansPerUnit(ctx sdk.Context) map[string]sdk.Ui
217
217
  func (msk mockSwingsetKeeper) ChargeBeans(ctx sdk.Context, addr sdk.AccAddress, beans sdk.Uint) error {
218
218
  return fmt.Errorf("not implemented")
219
219
  }
220
+
221
+ func (msk mockSwingsetKeeper) GetSmartWalletState(ctx sdk.Context, addr sdk.AccAddress) swingtypes.SmartWalletState {
222
+ panic(fmt.Errorf("not implemented"))
223
+ }
224
+
225
+ func (msk mockSwingsetKeeper) ChargeForSmartWallet(ctx sdk.Context, addr sdk.AccAddress) error {
226
+ return fmt.Errorf("not implemented")
227
+ }
package/app/app.go CHANGED
@@ -21,6 +21,7 @@ import (
21
21
  "github.com/cosmos/cosmos-sdk/server/config"
22
22
  servertypes "github.com/cosmos/cosmos-sdk/server/types"
23
23
  "github.com/cosmos/cosmos-sdk/simapp"
24
+ storetypes "github.com/cosmos/cosmos-sdk/store/types"
24
25
  sdk "github.com/cosmos/cosmos-sdk/types"
25
26
  "github.com/cosmos/cosmos-sdk/types/errors"
26
27
  "github.com/cosmos/cosmos-sdk/types/module"
@@ -43,8 +44,6 @@ import (
43
44
  "github.com/cosmos/cosmos-sdk/x/capability"
44
45
  capabilitykeeper "github.com/cosmos/cosmos-sdk/x/capability/keeper"
45
46
  capabilitytypes "github.com/cosmos/cosmos-sdk/x/capability/types"
46
- "github.com/cosmos/cosmos-sdk/x/crisis"
47
- crisiskeeper "github.com/cosmos/cosmos-sdk/x/crisis/keeper"
48
47
  crisistypes "github.com/cosmos/cosmos-sdk/x/crisis/types"
49
48
  distr "github.com/cosmos/cosmos-sdk/x/distribution"
50
49
  distrclient "github.com/cosmos/cosmos-sdk/x/distribution/client"
@@ -79,22 +78,22 @@ import (
79
78
  upgradeclient "github.com/cosmos/cosmos-sdk/x/upgrade/client"
80
79
  upgradekeeper "github.com/cosmos/cosmos-sdk/x/upgrade/keeper"
81
80
  upgradetypes "github.com/cosmos/cosmos-sdk/x/upgrade/types"
82
- ica "github.com/cosmos/ibc-go/v3/modules/apps/27-interchain-accounts"
83
-
84
- icahost "github.com/cosmos/ibc-go/v3/modules/apps/27-interchain-accounts/host"
85
- icahostkeeper "github.com/cosmos/ibc-go/v3/modules/apps/27-interchain-accounts/host/keeper"
86
- icahosttypes "github.com/cosmos/ibc-go/v3/modules/apps/27-interchain-accounts/host/types"
87
- icatypes "github.com/cosmos/ibc-go/v3/modules/apps/27-interchain-accounts/types"
88
- "github.com/cosmos/ibc-go/v3/modules/apps/transfer"
89
- ibctransferkeeper "github.com/cosmos/ibc-go/v3/modules/apps/transfer/keeper"
90
- ibctransfertypes "github.com/cosmos/ibc-go/v3/modules/apps/transfer/types"
91
- ibc "github.com/cosmos/ibc-go/v3/modules/core"
92
- ibcclient "github.com/cosmos/ibc-go/v3/modules/core/02-client"
93
- ibcclientclient "github.com/cosmos/ibc-go/v3/modules/core/02-client/client"
94
- ibcclienttypes "github.com/cosmos/ibc-go/v3/modules/core/02-client/types"
95
- porttypes "github.com/cosmos/ibc-go/v3/modules/core/05-port/types"
96
- ibchost "github.com/cosmos/ibc-go/v3/modules/core/24-host"
97
- ibckeeper "github.com/cosmos/ibc-go/v3/modules/core/keeper"
81
+ ica "github.com/cosmos/ibc-go/v4/modules/apps/27-interchain-accounts"
82
+
83
+ icahost "github.com/cosmos/ibc-go/v4/modules/apps/27-interchain-accounts/host"
84
+ icahostkeeper "github.com/cosmos/ibc-go/v4/modules/apps/27-interchain-accounts/host/keeper"
85
+ icahosttypes "github.com/cosmos/ibc-go/v4/modules/apps/27-interchain-accounts/host/types"
86
+ icatypes "github.com/cosmos/ibc-go/v4/modules/apps/27-interchain-accounts/types"
87
+ "github.com/cosmos/ibc-go/v4/modules/apps/transfer"
88
+ ibctransferkeeper "github.com/cosmos/ibc-go/v4/modules/apps/transfer/keeper"
89
+ ibctransfertypes "github.com/cosmos/ibc-go/v4/modules/apps/transfer/types"
90
+ ibc "github.com/cosmos/ibc-go/v4/modules/core"
91
+ ibcclient "github.com/cosmos/ibc-go/v4/modules/core/02-client"
92
+ ibcclientclient "github.com/cosmos/ibc-go/v4/modules/core/02-client/client"
93
+ ibcclienttypes "github.com/cosmos/ibc-go/v4/modules/core/02-client/types"
94
+ porttypes "github.com/cosmos/ibc-go/v4/modules/core/05-port/types"
95
+ ibchost "github.com/cosmos/ibc-go/v4/modules/core/24-host"
96
+ ibckeeper "github.com/cosmos/ibc-go/v4/modules/core/keeper"
98
97
  "github.com/gorilla/mux"
99
98
  "github.com/rakyll/statik/fs"
100
99
  "github.com/spf13/cast"
@@ -159,7 +158,6 @@ var (
159
158
  swingsetclient.CoreEvalProposalHandler,
160
159
  ),
161
160
  params.AppModuleBasic{},
162
- crisis.AppModuleBasic{},
163
161
  slashing.AppModuleBasic{},
164
162
  feegrantmodule.AppModuleBasic{},
165
163
  authzmodule.AppModuleBasic{},
@@ -233,7 +231,6 @@ type GaiaApp struct { // nolint: golint
233
231
  MintKeeper mintkeeper.Keeper
234
232
  DistrKeeper distrkeeper.Keeper
235
233
  GovKeeper govkeeper.Keeper
236
- CrisisKeeper crisiskeeper.Keeper
237
234
  UpgradeKeeper upgradekeeper.Keeper
238
235
  ParamsKeeper paramskeeper.Keeper
239
236
  // IBC Keeper must be a pointer in the app, so we can SetRouter on it correctly
@@ -414,12 +411,6 @@ func NewAgoricApp(
414
411
  &stakingKeeper,
415
412
  app.GetSubspace(slashingtypes.ModuleName),
416
413
  )
417
- app.CrisisKeeper = crisiskeeper.NewKeeper(
418
- app.GetSubspace(crisistypes.ModuleName),
419
- invCheckPeriod,
420
- app.BankKeeper,
421
- vbanktypes.ReservePoolName,
422
- )
423
414
  app.UpgradeKeeper = upgradekeeper.NewKeeper(
424
415
  skipUpgradeHeights,
425
416
  keys[upgradetypes.StoreKey],
@@ -595,7 +586,6 @@ func NewAgoricApp(
595
586
 
596
587
  app.EvidenceKeeper = *evidenceKeeper
597
588
 
598
- skipGenesisInvariants := cast.ToBool(appOpts.Get(crisis.FlagSkipGenesisInvariants))
599
589
  swingStoreExportDir := cast.ToString(appOpts.Get(FlagSwingStoreExportDir))
600
590
 
601
591
  // NOTE: Any module instantiated in the module manager that is later modified
@@ -611,7 +601,6 @@ func NewAgoricApp(
611
601
  vesting.NewAppModule(app.AccountKeeper, app.BankKeeper, app.StakingKeeper),
612
602
  bank.NewAppModule(appCodec, app.BankKeeper, app.AccountKeeper),
613
603
  capability.NewAppModule(appCodec, *app.CapabilityKeeper),
614
- crisis.NewAppModule(&app.CrisisKeeper, skipGenesisInvariants),
615
604
  gov.NewAppModule(appCodec, app.GovKeeper, app.AccountKeeper, app.BankKeeper),
616
605
  mint.NewAppModule(appCodec, app.MintKeeper, app.AccountKeeper),
617
606
  slashing.NewAppModule(appCodec, app.SlashingKeeper, app.AccountKeeper, app.BankKeeper, app.StakingKeeper),
@@ -641,7 +630,6 @@ func NewAgoricApp(
641
630
  // upgrades should be run first
642
631
  upgradetypes.ModuleName,
643
632
  capabilitytypes.ModuleName,
644
- crisistypes.ModuleName,
645
633
  govtypes.ModuleName,
646
634
  stakingtypes.ModuleName,
647
635
  ibctransfertypes.ModuleName,
@@ -670,7 +658,6 @@ func NewAgoricApp(
670
658
  vibc.ModuleName,
671
659
  vbank.ModuleName,
672
660
  lien.ModuleName,
673
- crisistypes.ModuleName,
674
661
  govtypes.ModuleName,
675
662
  stakingtypes.ModuleName,
676
663
  ibctransfertypes.ModuleName,
@@ -711,7 +698,6 @@ func NewAgoricApp(
711
698
  slashingtypes.ModuleName,
712
699
  govtypes.ModuleName,
713
700
  minttypes.ModuleName,
714
- crisistypes.ModuleName,
715
701
  ibctransfertypes.ModuleName,
716
702
  ibchost.ModuleName,
717
703
  icatypes.ModuleName,
@@ -732,7 +718,6 @@ func NewAgoricApp(
732
718
  app.mm.SetOrderInitGenesis(moduleOrderForGenesisAndUpgrade...)
733
719
  app.mm.SetOrderMigrations(moduleOrderForGenesisAndUpgrade...)
734
720
 
735
- app.mm.RegisterInvariants(&app.CrisisKeeper)
736
721
  app.mm.RegisterRoutes(app.Router(), app.QueryRouter(), encodingConfig.Amino)
737
722
 
738
723
  app.configurator = module.NewConfigurator(app.appCodec, app.MsgServiceRouter(), app.GRPCQueryRouter())
@@ -790,15 +775,35 @@ func NewAgoricApp(
790
775
  app.SetBeginBlocker(app.BeginBlocker)
791
776
  app.SetEndBlocker(app.EndBlocker)
792
777
 
778
+ const (
779
+ upgradeName = "agoric-upgrade-13"
780
+ upgradeNameTest = "agorictest-upgrade-13"
781
+ )
782
+
793
783
  app.UpgradeKeeper.SetUpgradeHandler(
794
784
  upgradeName,
795
- upgrade11Handler(app, upgradeName),
785
+ upgrade13Handler(app, upgradeName),
796
786
  )
797
787
  app.UpgradeKeeper.SetUpgradeHandler(
798
788
  upgradeNameTest,
799
- upgrade11Handler(app, upgradeNameTest),
789
+ upgrade13Handler(app, upgradeNameTest),
800
790
  )
801
791
 
792
+ upgradeInfo, err := app.UpgradeKeeper.ReadUpgradeInfoFromDisk()
793
+ if err != nil {
794
+ panic(err)
795
+ }
796
+ if (upgradeInfo.Name == upgradeName || upgradeInfo.Name == upgradeNameTest) && !app.UpgradeKeeper.IsSkipHeight(upgradeInfo.Height) {
797
+ storeUpgrades := storetypes.StoreUpgrades{
798
+ Deleted: []string{
799
+ crisistypes.ModuleName, // The SDK discontinued the crisis module in v0.51.0
800
+ },
801
+ }
802
+
803
+ // configure store loader that checks if version == upgradeHeight and applies store upgrades
804
+ app.SetStoreLoader(upgradetypes.UpgradeStoreLoader(upgradeInfo.Height, &storeUpgrades))
805
+ }
806
+
802
807
  if loadLatest {
803
808
  if err := app.LoadLatestVersion(); err != nil {
804
809
  tmos.Exit(fmt.Sprintf("failed to load latest version: %s", err))
@@ -819,110 +824,21 @@ func NewAgoricApp(
819
824
  return app
820
825
  }
821
826
 
822
- type swingStoreMigrationEventHandler struct {
823
- swingStore sdk.KVStore
824
- }
825
-
826
- func (eventHandler swingStoreMigrationEventHandler) OnExportStarted(height uint64, retrieveSwingStoreExport func() error) error {
827
- return retrieveSwingStoreExport()
828
- }
829
-
830
- func (eventHandler swingStoreMigrationEventHandler) OnExportRetrieved(provider swingsetkeeper.SwingStoreExportProvider) (err error) {
831
- exportDataReader, err := provider.GetExportDataReader()
832
- if err != nil {
833
- return err
834
- }
835
- defer exportDataReader.Close()
836
-
837
- var hasExportData bool
838
-
839
- for {
840
- entry, err := exportDataReader.Read()
841
- if err == io.EOF {
842
- break
843
- } else if err != nil {
844
- return err
845
- }
846
- hasExportData = true
847
- if !entry.HasValue() {
848
- return fmt.Errorf("no value for export data key %s", entry.Key())
849
- }
850
- eventHandler.swingStore.Set([]byte(entry.Key()), []byte(entry.StringValue()))
851
- }
852
- if !hasExportData {
853
- return fmt.Errorf("export data had no entries")
854
- }
855
- return nil
856
- }
857
-
858
- // upgrade11Handler performs standard upgrade actions plus custom actions for upgrade-11.
859
- func upgrade11Handler(app *GaiaApp, targetUpgrade string) func(sdk.Context, upgradetypes.Plan, module.VersionMap) (module.VersionMap, error) {
827
+ // upgrade13Handler performs standard upgrade actions plus custom actions for upgrade-13.
828
+ func upgrade13Handler(app *GaiaApp, targetUpgrade string) func(sdk.Context, upgradetypes.Plan, module.VersionMap) (module.VersionMap, error) {
860
829
  return func(ctx sdk.Context, plan upgradetypes.Plan, fromVm module.VersionMap) (module.VersionMap, error) {
861
830
  app.CheckControllerInited(false)
862
831
  // Record the plan to send to SwingSet
863
832
  app.upgradePlan = &plan
864
833
 
865
- // Perform swing-store migrations. We do this in the app upgrade handler
866
- // since it involves multiple modules (x/vstorage and x/swingset) which
867
- // don't strictly have a version change on their own.
868
-
869
- // We are at the begining of the upgrade block, so all stores are commited
870
- // as of the end of the previous block
871
- savedBlockHeight := uint64(ctx.BlockHeight() - 1)
872
-
873
- // First, repair swing-store metadata in case this node was previously
874
- // initialized from a state-sync snapshot. This is done with a check on the
875
- // block height to catch early any hangover related mismatch.
876
- // Only entries related to missing historical metadata are imported, but we
877
- // don't know what these look like here, so we provide it all.
878
- getSwingStoreExportDataFromVstorage := func() (reader agorictypes.KVEntryReader, err error) {
879
- return agorictypes.NewVstorageDataEntriesReader(
880
- app.VstorageKeeper.ExportStorageFromPrefix(ctx, swingsetkeeper.StoragePathSwingStore),
881
- ), nil
882
- }
883
-
884
- // We're not restoring any artifact to swing-store, nor have any to provide
885
- readNoArtifact := func() (artifact swingsettypes.SwingStoreArtifact, err error) {
886
- return artifact, io.EOF
887
- }
888
-
889
- err := app.SwingStoreExportsHandler.RestoreExport(
890
- swingsetkeeper.SwingStoreExportProvider{
891
- BlockHeight: savedBlockHeight,
892
- GetExportDataReader: getSwingStoreExportDataFromVstorage,
893
- ReadNextArtifact: readNoArtifact,
894
- },
895
- swingsetkeeper.SwingStoreRestoreOptions{
896
- ArtifactMode: swingsetkeeper.SwingStoreArtifactModeNone,
897
- ExportDataMode: swingsetkeeper.SwingStoreExportDataModeRepairMetadata,
898
- },
899
- )
900
- if err != nil {
901
- return nil, err
902
- }
903
-
904
- // Then migrate the swing-store shadow copy:
905
- // 1. Remove the swing-store "export data" shadow-copy entries from vstorage.
906
- // 2. Export swing-store "export-data" (as of the previous block) through a
907
- // handler that writes every entry into the swingset module's new Store.
908
- app.VstorageKeeper.RemoveEntriesWithPrefix(ctx, swingsetkeeper.StoragePathSwingStore)
909
- err = app.SwingStoreExportsHandler.InitiateExport(
910
- savedBlockHeight,
911
- swingStoreMigrationEventHandler{swingStore: app.SwingSetKeeper.GetSwingStore(ctx)},
912
- swingsetkeeper.SwingStoreExportOptions{
913
- ArtifactMode: swingsetkeeper.SwingStoreArtifactModeNone,
914
- ExportDataMode: swingsetkeeper.SwingStoreExportDataModeAll,
915
- },
916
- )
917
- if err == nil {
918
- err = swingsetkeeper.WaitUntilSwingStoreExportDone()
919
- }
834
+ // Always run module migrations
835
+ mvm, err := app.mm.RunMigrations(ctx, app.configurator, fromVm)
920
836
  if err != nil {
921
- return nil, err
837
+ return mvm, err
922
838
  }
923
839
 
924
- // Always run module migrations
925
- mvm, err := app.mm.RunMigrations(ctx, app.configurator, fromVm)
840
+ m := swingsetkeeper.NewMigrator(app.SwingSetKeeper)
841
+ err = m.MigrateParams(ctx)
926
842
  if err != nil {
927
843
  return mvm, err
928
844
  }
@@ -1261,7 +1177,6 @@ func initParamsKeeper(appCodec codec.BinaryCodec, legacyAmino *codec.LegacyAmino
1261
1177
  paramsKeeper.Subspace(distrtypes.ModuleName)
1262
1178
  paramsKeeper.Subspace(slashingtypes.ModuleName)
1263
1179
  paramsKeeper.Subspace(govtypes.ModuleName).WithKeyTable(govtypes.ParamKeyTable())
1264
- paramsKeeper.Subspace(crisistypes.ModuleName)
1265
1180
  paramsKeeper.Subspace(ibctransfertypes.ModuleName)
1266
1181
  paramsKeeper.Subspace(ibchost.ModuleName)
1267
1182
  paramsKeeper.Subspace(icahosttypes.SubModuleName)
package/app/export.go CHANGED
@@ -65,9 +65,6 @@ func (app *GaiaApp) prepForZeroHeightGenesis(ctx sdk.Context, jailAllowedAddrs [
65
65
  allowedAddrsMap[addr] = true
66
66
  }
67
67
 
68
- /* Just to be safe, assert the invariants on current state. */
69
- app.CrisisKeeper.AssertInvariants(ctx)
70
-
71
68
  /* Handle fee distribution state. */
72
69
 
73
70
  // withdraw all validator commission
package/app/sim_test.go CHANGED
@@ -6,9 +6,9 @@ import (
6
6
  "os"
7
7
  "testing"
8
8
 
9
- gaia "github.com/cosmos/gaia/v7/app"
9
+ gaia "github.com/Agoric/agoric-sdk/golang/cosmos/app"
10
10
 
11
- "github.com/cosmos/gaia/v7/app/helpers"
11
+ "github.com/Agoric/agoric-sdk/golang/cosmos/app/helpers"
12
12
  "github.com/stretchr/testify/require"
13
13
  "github.com/tendermint/tendermint/libs/log"
14
14
  "github.com/tendermint/tendermint/libs/rand"
@@ -76,8 +76,8 @@ func interBlockCacheOpt() func(*baseapp.BaseApp) {
76
76
  return baseapp.SetInterBlockCache(store.NewCommitKVStoreCacheManager())
77
77
  }
78
78
 
79
- //// TODO: Make another test for the fuzzer itself, which just has noOp txs
80
- //// and doesn't depend on the application.
79
+ // // TODO: Make another test for the fuzzer itself, which just has noOp txs
80
+ // // and doesn't depend on the application.
81
81
  func TestAppStateDeterminism(t *testing.T) {
82
82
  if !simapp.FlagEnabledValue {
83
83
  t.Skip("skipping application simulation")
@@ -24,7 +24,6 @@ import (
24
24
  "github.com/cosmos/cosmos-sdk/x/auth/types"
25
25
  vestingcli "github.com/cosmos/cosmos-sdk/x/auth/vesting/client/cli"
26
26
  banktypes "github.com/cosmos/cosmos-sdk/x/bank/types"
27
- "github.com/cosmos/cosmos-sdk/x/crisis"
28
27
  genutilcli "github.com/cosmos/cosmos-sdk/x/genutil/client/cli"
29
28
  "github.com/spf13/cast"
30
29
  "github.com/spf13/cobra"
@@ -155,7 +154,6 @@ func initRootCmd(sender Sender, rootCmd *cobra.Command, encodingConfig params.En
155
154
  }
156
155
 
157
156
  func addModuleInitFlags(startCmd *cobra.Command) {
158
- crisis.AddModuleInitFlags(startCmd)
159
157
  }
160
158
 
161
159
  func queryCommand() *cobra.Command {
package/git-revision.txt CHANGED
@@ -1 +1 @@
1
- faf9ba6ab
1
+ 5a6cdeb0c
package/go.mod CHANGED
@@ -3,10 +3,9 @@ module github.com/Agoric/agoric-sdk/golang/cosmos
3
3
  go 1.20
4
4
 
5
5
  require (
6
- github.com/armon/go-metrics v0.4.0
7
- github.com/cosmos/cosmos-sdk v0.45.11
8
- github.com/cosmos/gaia/v7 v7.0.0-00010101000000-000000000000
9
- github.com/cosmos/ibc-go/v3 v3.4.0
6
+ github.com/armon/go-metrics v0.4.1
7
+ github.com/cosmos/cosmos-sdk v0.45.16
8
+ github.com/cosmos/ibc-go/v4 v4.5.1
10
9
  github.com/gogo/protobuf v1.3.3
11
10
  github.com/golang/protobuf v1.5.2
12
11
  github.com/gorilla/mux v1.8.0
@@ -14,45 +13,59 @@ require (
14
13
  github.com/pkg/errors v0.9.1
15
14
  github.com/rakyll/statik v0.1.7
16
15
  github.com/spf13/cast v1.5.0
17
- github.com/spf13/cobra v1.6.0
18
- github.com/stretchr/testify v1.8.0
19
- github.com/tendermint/tendermint v0.34.23
16
+ github.com/spf13/cobra v1.6.1
17
+ github.com/spf13/viper v1.14.0
18
+ github.com/stretchr/testify v1.8.1
19
+ github.com/tendermint/tendermint v0.34.27
20
20
  github.com/tendermint/tm-db v0.6.7
21
- google.golang.org/genproto v0.0.0-20221014213838-99cd37c6964a
22
- google.golang.org/grpc v1.50.1
21
+ google.golang.org/genproto v0.0.0-20230125152338-dcaf20b6aeaa
22
+ google.golang.org/grpc v1.52.3
23
23
  gopkg.in/yaml.v2 v2.4.0
24
24
  )
25
25
 
26
26
  require (
27
- filippo.io/edwards25519 v1.0.0-beta.2 // indirect
28
- github.com/99designs/keyring v1.1.6 // indirect
27
+ cosmossdk.io/api v0.2.6 // indirect
28
+ cosmossdk.io/core v0.5.1 // indirect
29
+ cosmossdk.io/depinject v1.0.0-alpha.3 // indirect
30
+ filippo.io/edwards25519 v1.0.0-rc.1 // indirect
31
+ github.com/99designs/go-keychain v0.0.0-20191008050251-8e49817e8af4 // indirect
32
+ github.com/99designs/keyring v1.2.1 // indirect
29
33
  github.com/ChainSafe/go-schnorrkel v0.0.0-20200405005733-88cbf1b4c40d // indirect
30
- github.com/DataDog/zstd v1.4.5 // indirect
34
+ github.com/DataDog/zstd v1.5.0 // indirect
35
+ github.com/HdrHistogram/hdrhistogram-go v1.1.2 // indirect
31
36
  github.com/Workiva/go-datastructures v1.0.53 // indirect
32
37
  github.com/beorn7/perks v1.0.1 // indirect
33
- github.com/bgentry/speakeasy v0.1.0 // indirect
34
- github.com/btcsuite/btcd v0.22.1 // indirect
38
+ github.com/bgentry/speakeasy v0.1.1-0.20220910012023-760eaf8b6816 // indirect
39
+ github.com/btcsuite/btcd/btcec/v2 v2.3.2 // indirect
35
40
  github.com/cespare/xxhash v1.1.0 // indirect
36
41
  github.com/cespare/xxhash/v2 v2.1.2 // indirect
37
- github.com/coinbase/rosetta-sdk-go v0.7.0 // indirect
38
- github.com/confio/ics23/go v0.7.0 // indirect
42
+ github.com/cockroachdb/errors v1.9.1 // indirect
43
+ github.com/cockroachdb/logtags v0.0.0-20230118201751-21c54148d20b // indirect
44
+ github.com/cockroachdb/pebble v0.0.0-20220817183557-09c6e030a677 // indirect
45
+ github.com/cockroachdb/redact v1.1.3 // indirect
46
+ github.com/coinbase/rosetta-sdk-go v0.7.9 // indirect
47
+ github.com/cometbft/cometbft-db v0.7.0 // indirect
48
+ github.com/confio/ics23/go v0.9.1 // indirect
39
49
  github.com/cosmos/btcutil v1.0.4 // indirect
50
+ github.com/cosmos/cosmos-db v0.0.0-20221226095112-f3c38ecb5e32 // indirect
51
+ github.com/cosmos/cosmos-proto v1.0.0-beta.1 // indirect
40
52
  github.com/cosmos/go-bip39 v1.0.0 // indirect
41
53
  github.com/cosmos/gorocksdb v1.2.0 // indirect
42
- github.com/cosmos/iavl v0.19.4 // indirect
43
- github.com/cosmos/ledger-cosmos-go v0.11.1 // indirect
44
- github.com/cosmos/ledger-go v0.9.2 // indirect
54
+ github.com/cosmos/iavl v0.19.5 // indirect
55
+ github.com/cosmos/ledger-cosmos-go v0.12.2 // indirect
45
56
  github.com/creachadair/taskgroup v0.3.2 // indirect
46
- github.com/danieljoos/wincred v1.1.0 // indirect
57
+ github.com/danieljoos/wincred v1.1.2 // indirect
47
58
  github.com/davecgh/go-spew v1.1.1 // indirect
59
+ github.com/decred/dcrd/dcrec/secp256k1/v4 v4.0.1 // indirect
48
60
  github.com/desertbit/timer v0.0.0-20180107155436-c41aec40b27f // indirect
49
- github.com/dgraph-io/badger/v2 v2.2007.2 // indirect
61
+ github.com/dgraph-io/badger/v2 v2.2007.4 // indirect
50
62
  github.com/dgraph-io/ristretto v0.0.3 // indirect
51
63
  github.com/dgryski/go-farm v0.0.0-20200201041132-a6ae2369ad13 // indirect
52
64
  github.com/dustin/go-humanize v1.0.0 // indirect
53
- github.com/dvsekhvalnov/jose2go v0.0.0-20200901110807-248326c1351b // indirect
65
+ github.com/dvsekhvalnov/jose2go v1.5.0 // indirect
54
66
  github.com/felixge/httpsnoop v1.0.2 // indirect
55
- github.com/fsnotify/fsnotify v1.5.4 // indirect
67
+ github.com/fsnotify/fsnotify v1.6.0 // indirect
68
+ github.com/getsentry/sentry-go v0.17.0 // indirect
56
69
  github.com/ghodss/yaml v1.0.0 // indirect
57
70
  github.com/go-kit/kit v0.12.0 // indirect
58
71
  github.com/go-kit/log v0.2.1 // indirect
@@ -61,7 +74,7 @@ require (
61
74
  github.com/gogo/gateway v1.1.0 // indirect
62
75
  github.com/golang/glog v0.0.0-20160126235308-23def4e6c14b // indirect
63
76
  github.com/golang/snappy v0.0.4 // indirect
64
- github.com/google/btree v1.0.1 // indirect
77
+ github.com/google/btree v1.1.2 // indirect
65
78
  github.com/google/gofuzz v1.2.0 // indirect
66
79
  github.com/google/orderedcode v0.0.1 // indirect
67
80
  github.com/gorilla/handlers v1.5.1 // indirect
@@ -71,16 +84,18 @@ require (
71
84
  github.com/gtank/merlin v0.1.1 // indirect
72
85
  github.com/gtank/ristretto255 v0.1.2 // indirect
73
86
  github.com/hashicorp/go-immutable-radix v1.3.1 // indirect
74
- github.com/hashicorp/golang-lru v0.5.4 // indirect
87
+ github.com/hashicorp/golang-lru v0.5.5-0.20210104140557-80c98217689d // indirect
75
88
  github.com/hashicorp/hcl v1.0.0 // indirect
76
- github.com/hdevalence/ed25519consensus v0.0.0-20210204194344-59a8610d2b87 // indirect
89
+ github.com/hdevalence/ed25519consensus v0.0.0-20220222234857-c00d1f31bab3 // indirect
77
90
  github.com/improbable-eng/grpc-web v0.14.1 // indirect
78
91
  github.com/inconshreveable/mousetrap v1.0.1 // indirect
79
92
  github.com/jmhodges/levigo v1.0.0 // indirect
80
- github.com/keybase/go-keychain v0.0.0-20190712205309-48d3d31d256d // indirect
81
93
  github.com/klauspost/compress v1.15.11 // indirect
94
+ github.com/kr/pretty v0.3.1 // indirect
95
+ github.com/kr/text v0.2.0 // indirect
82
96
  github.com/lib/pq v1.10.6 // indirect
83
97
  github.com/libp2p/go-buffer-pool v0.1.0 // indirect
98
+ github.com/linxGnu/grocksdb v1.7.10 // indirect
84
99
  github.com/magiconair/properties v1.8.6 // indirect
85
100
  github.com/mattn/go-colorable v0.1.13 // indirect
86
101
  github.com/mattn/go-isatty v0.0.16 // indirect
@@ -93,28 +108,29 @@ require (
93
108
  github.com/pelletier/go-toml/v2 v2.0.5 // indirect
94
109
  github.com/petermattis/goid v0.0.0-20180202154549-b0b1615b78e5 // indirect
95
110
  github.com/pmezard/go-difflib v1.0.0 // indirect
96
- github.com/prometheus/client_golang v1.12.2 // indirect
97
- github.com/prometheus/client_model v0.2.0 // indirect
98
- github.com/prometheus/common v0.34.0 // indirect
111
+ github.com/prometheus/client_golang v1.14.0 // indirect
112
+ github.com/prometheus/client_model v0.3.0 // indirect
113
+ github.com/prometheus/common v0.37.0 // indirect
99
114
  github.com/prometheus/procfs v0.8.0 // indirect
100
115
  github.com/rcrowley/go-metrics v0.0.0-20201227073835-cf1acfcdf475 // indirect
101
116
  github.com/regen-network/cosmos-proto v0.3.1 // indirect
117
+ github.com/rogpeppe/go-internal v1.9.0 // indirect
102
118
  github.com/rs/cors v1.8.2 // indirect
103
119
  github.com/rs/zerolog v1.27.0 // indirect
104
120
  github.com/sasha-s/go-deadlock v0.3.1 // indirect
105
- github.com/spf13/afero v1.8.2 // indirect
121
+ github.com/spf13/afero v1.9.2 // indirect
106
122
  github.com/spf13/jwalterweatherman v1.1.0 // indirect
107
123
  github.com/spf13/pflag v1.0.5 // indirect
108
- github.com/spf13/viper v1.13.0 // indirect
109
124
  github.com/subosito/gotenv v1.4.1 // indirect
110
125
  github.com/syndtr/goleveldb v1.0.1-0.20210819022825-2ae1ddf74ef7 // indirect
111
- github.com/tendermint/btcd v0.1.1 // indirect
112
- github.com/tendermint/crypto v0.0.0-20191022145703-50d29ede1e15 // indirect
126
+ github.com/tecbot/gorocksdb v0.0.0-20191217155057-f0fad39f321c // indirect
113
127
  github.com/tendermint/go-amino v0.16.0 // indirect
114
- github.com/zondax/hid v0.9.0 // indirect
128
+ github.com/tidwall/btree v1.5.0 // indirect
129
+ github.com/zondax/hid v0.9.1 // indirect
130
+ github.com/zondax/ledger-go v0.14.1 // indirect
115
131
  go.etcd.io/bbolt v1.3.6 // indirect
116
- golang.org/x/crypto v0.1.0 // indirect
117
- golang.org/x/exp v0.0.0-20220722155223-a9213eeb770e // indirect
132
+ golang.org/x/crypto v0.5.0 // indirect
133
+ golang.org/x/exp v0.0.0-20221019170559-20944726eadf // indirect
118
134
  golang.org/x/net v0.7.0 // indirect
119
135
  golang.org/x/sys v0.5.0 // indirect
120
136
  golang.org/x/term v0.5.0 // indirect
@@ -125,14 +141,11 @@ require (
125
141
  nhooyr.io/websocket v1.8.6 // indirect
126
142
  )
127
143
 
128
- // Silence a warning on MacOS
129
- replace github.com/keybase/go-keychain => github.com/99designs/go-keychain v0.0.0-20191008050251-8e49817e8af4
130
-
131
144
  // At least until post-v0.9.0 is released with
132
145
  // https://github.com/Zondax/hid/issues/4 resolved.
133
146
  replace github.com/zondax/hid => github.com/zondax/hid v0.9.1-0.20220302062450-5552068d2266
134
147
 
135
- replace github.com/99designs/keyring => github.com/cosmos/keyring v1.1.7-0.20210622111912-ef00f8ac3d76
148
+ replace github.com/99designs/keyring => github.com/cosmos/keyring v1.2.0
136
149
 
137
150
  replace github.com/confio/ics23/go => github.com/agoric-labs/cosmos-sdk/ics23/go v0.8.0-alpha.agoric.1
138
151
 
@@ -142,14 +155,11 @@ replace google.golang.org/grpc => google.golang.org/grpc v1.33.2
142
155
 
143
156
  // At least until post-v0.34.14 is released with
144
157
  // https://github.com/tendermint/tendermint/issue/6899 resolved.
145
- replace github.com/tendermint/tendermint => github.com/agoric-labs/tendermint v0.34.23-alpha.agoric.3
158
+ replace github.com/tendermint/tendermint => github.com/agoric-labs/cometbft v0.34.27-alpha.agoric.3
146
159
 
147
160
  // We need a fork of cosmos-sdk until all of the differences are merged.
148
- replace github.com/cosmos/cosmos-sdk => github.com/agoric-labs/cosmos-sdk v0.45.11-alpha.agoric.3
149
-
150
- replace github.com/cosmos/gaia/v7 => github.com/Agoric/ag0/v7 v7.0.2-alpha.agoric.1
161
+ replace github.com/cosmos/cosmos-sdk => github.com/agoric-labs/cosmos-sdk v0.45.16-alpha.agoric.3
151
162
 
152
163
  // For testing against a local cosmos-sdk or tendermint
153
164
  // replace github.com/cosmos/cosmos-sdk => ../../../forks/cosmos-sdk
154
-
155
165
  // replace github.com/tendermint/tendermint => ../../../forks/tendermint