Skip to content

Commit 1592bba

Browse files
committed
update deps cosmos-sdk, ibc-go
1 parent 8d1068c commit 1592bba

File tree

17 files changed

+400
-387
lines changed

17 files changed

+400
-387
lines changed

app/app.go

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -173,9 +173,7 @@ func NewApplication(
173173

174174
app.moduleManager = module.NewManager(appModules(app, encodingConfiguration, skipGenesisInvariants)...)
175175

176-
app.moduleManager.SetOrderPreBlockers(
177-
upgradetypes.ModuleName,
178-
)
176+
app.moduleManager.SetOrderPreBlockers(orderPreBlockers()...)
179177
app.moduleManager.SetOrderBeginBlockers(orderBeginBlockers()...)
180178
app.moduleManager.SetOrderEndBlockers(orderEndBlockers()...)
181179
app.moduleManager.SetOrderInitGenesis(orderInitGenesis()...)

app/encoding.go

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,13 @@ package app
88
import (
99
"github.com/cosmos/cosmos-sdk/std"
1010
grouptypes "github.com/cosmos/cosmos-sdk/x/group"
11-
interchainquerytypes "github.com/persistenceOne/persistence-sdk/v5/x/interchainquery/types"
12-
"github.com/persistenceOne/persistence-sdk/v5/x/lsm/distribution"
13-
"github.com/persistenceOne/persistence-sdk/v5/x/lsm/staking"
14-
oracletypes "github.com/persistenceOne/persistence-sdk/v5/x/oracle/types"
15-
liquidstakeibctypes "github.com/persistenceOne/pstake-native/v5/x/liquidstakeibc/types"
16-
lscosmostypes "github.com/persistenceOne/pstake-native/v5/x/lscosmos/types"
17-
ratesynctypes "github.com/persistenceOne/pstake-native/v5/x/ratesync/types"
11+
interchainquerytypes "github.com/persistenceOne/persistence-sdk/v6/x/interchainquery/types"
12+
"github.com/persistenceOne/persistence-sdk/v6/x/lsm/distribution"
13+
"github.com/persistenceOne/persistence-sdk/v6/x/lsm/staking"
14+
oracletypes "github.com/persistenceOne/persistence-sdk/v6/x/oracle/types"
15+
liquidstakeibctypes "github.com/persistenceOne/pstake-native/v6/x/liquidstakeibc/types"
16+
lscosmostypes "github.com/persistenceOne/pstake-native/v6/x/lscosmos/types"
17+
ratesynctypes "github.com/persistenceOne/pstake-native/v6/x/ratesync/types"
1818

1919
"github.com/persistenceOne/persistenceCore/v16/app/params"
2020
)

app/keepers/keepers.go

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,8 @@ import (
3232
crisistypes "github.com/cosmos/cosmos-sdk/x/crisis/types"
3333
distributionkeeper "github.com/cosmos/cosmos-sdk/x/distribution/keeper"
3434
distributiontypes "github.com/cosmos/cosmos-sdk/x/distribution/types"
35+
epochskeeper "github.com/cosmos/cosmos-sdk/x/epochs/keeper"
36+
epochstypes "github.com/cosmos/cosmos-sdk/x/epochs/types"
3537
govkeeper "github.com/cosmos/cosmos-sdk/x/gov/keeper"
3638
govtypes "github.com/cosmos/cosmos-sdk/x/gov/types"
3739
govv1 "github.com/cosmos/cosmos-sdk/x/gov/types/v1"
@@ -69,12 +71,10 @@ import (
6971
ibcexported "github.com/cosmos/ibc-go/v10/modules/core/exported"
7072
ibckeeper "github.com/cosmos/ibc-go/v10/modules/core/keeper"
7173
ibctm "github.com/cosmos/ibc-go/v10/modules/light-clients/07-tendermint"
72-
epochskeeper "github.com/persistenceOne/persistence-sdk/v5/x/epochs/keeper"
73-
epochstypes "github.com/persistenceOne/persistence-sdk/v5/x/epochs/types"
74-
"github.com/persistenceOne/persistence-sdk/v5/x/halving"
75-
halvingtypes "github.com/persistenceOne/persistence-sdk/v5/x/halving/types"
76-
liquidstakekeeper "github.com/persistenceOne/pstake-native/v5/x/liquidstake/keeper"
77-
liquidstaketypes "github.com/persistenceOne/pstake-native/v5/x/liquidstake/types"
74+
"github.com/persistenceOne/persistence-sdk/v6/x/halving"
75+
halvingtypes "github.com/persistenceOne/persistence-sdk/v6/x/halving/types"
76+
liquidstakekeeper "github.com/persistenceOne/pstake-native/v6/x/liquidstake/keeper"
77+
liquidstaketypes "github.com/persistenceOne/pstake-native/v6/x/liquidstake/types"
7878
"github.com/spf13/cast"
7979

8080
"github.com/persistenceOne/persistenceCore/v16/app/constants"
@@ -290,7 +290,8 @@ func NewAppKeeper(
290290
appKeepers.LiquidKeeper.Hooks()),
291291
)
292292

293-
appKeepers.EpochsKeeper = epochskeeper.NewKeeper(appKeepers.keys[epochstypes.StoreKey])
293+
sdkEpochsKeeper := epochskeeper.NewKeeper(runtime.NewKVStoreService(appKeepers.keys[epochstypes.StoreKey]), appCodec)
294+
appKeepers.EpochsKeeper = &sdkEpochsKeeper
294295

295296
appKeepers.IBCKeeper = ibckeeper.NewKeeper(
296297
appCodec,

app/keepers/keys.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ import (
1212
consensusparamstypes "github.com/cosmos/cosmos-sdk/x/consensus/types"
1313
crisistypes "github.com/cosmos/cosmos-sdk/x/crisis/types"
1414
distributiontypes "github.com/cosmos/cosmos-sdk/x/distribution/types"
15+
epochstypes "github.com/cosmos/cosmos-sdk/x/epochs/types"
1516
govtypes "github.com/cosmos/cosmos-sdk/x/gov/types"
1617
minttypes "github.com/cosmos/cosmos-sdk/x/mint/types"
1718
paramstypes "github.com/cosmos/cosmos-sdk/x/params/types"
@@ -24,9 +25,8 @@ import (
2425
icahosttypes "github.com/cosmos/ibc-go/v10/modules/apps/27-interchain-accounts/host/types"
2526
ibctransfertypes "github.com/cosmos/ibc-go/v10/modules/apps/transfer/types"
2627
ibcexported "github.com/cosmos/ibc-go/v10/modules/core/exported"
27-
epochstypes "github.com/persistenceOne/persistence-sdk/v5/x/epochs/types"
28-
"github.com/persistenceOne/persistence-sdk/v5/x/halving"
29-
liquidstaketypes "github.com/persistenceOne/pstake-native/v5/x/liquidstake/types"
28+
"github.com/persistenceOne/persistence-sdk/v6/x/halving"
29+
liquidstaketypes "github.com/persistenceOne/pstake-native/v6/x/liquidstake/types"
3030
)
3131

3232
func (appKeepers *AppKeepers) GenerateKeys() {

app/keepers/modules.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ import (
1313
"github.com/cosmos/cosmos-sdk/x/consensus"
1414
"github.com/cosmos/cosmos-sdk/x/crisis"
1515
"github.com/cosmos/cosmos-sdk/x/distribution"
16+
"github.com/cosmos/cosmos-sdk/x/epochs"
1617
"github.com/cosmos/cosmos-sdk/x/genutil"
1718
genutiltypes "github.com/cosmos/cosmos-sdk/x/genutil/types"
1819
"github.com/cosmos/cosmos-sdk/x/gov"
@@ -29,9 +30,8 @@ import (
2930
"github.com/cosmos/ibc-go/v10/modules/apps/transfer"
3031
ibc "github.com/cosmos/ibc-go/v10/modules/core"
3132
ibctm "github.com/cosmos/ibc-go/v10/modules/light-clients/07-tendermint"
32-
"github.com/persistenceOne/persistence-sdk/v5/x/epochs"
33-
"github.com/persistenceOne/persistence-sdk/v5/x/halving"
34-
"github.com/persistenceOne/pstake-native/v5/x/liquidstake"
33+
"github.com/persistenceOne/persistence-sdk/v6/x/halving"
34+
"github.com/persistenceOne/pstake-native/v6/x/liquidstake"
3535
)
3636

3737
// AppModuleBasics defines the module BasicManager is in charge of setting up basic,
@@ -63,7 +63,7 @@ var AppModuleBasics = append([]module.AppModuleBasic{
6363
wasm.AppModuleBasic{},
6464
halving.AppModuleBasic{},
6565
ica.AppModuleBasic{},
66-
epochs.AppModuleBasic{},
66+
epochs.AppModule{},
6767
liquid.AppModuleBasic{},
6868
liquidstake.AppModuleBasic{},
6969
consensus.AppModuleBasic{},

app/modules.go

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@ import (
2424
crisistypes "github.com/cosmos/cosmos-sdk/x/crisis/types"
2525
"github.com/cosmos/cosmos-sdk/x/distribution"
2626
distributiontypes "github.com/cosmos/cosmos-sdk/x/distribution/types"
27+
"github.com/cosmos/cosmos-sdk/x/epochs"
28+
epochstypes "github.com/cosmos/cosmos-sdk/x/epochs/types"
2729
"github.com/cosmos/cosmos-sdk/x/genutil"
2830
genutiltypes "github.com/cosmos/cosmos-sdk/x/genutil/types"
2931
"github.com/cosmos/cosmos-sdk/x/gov"
@@ -48,12 +50,10 @@ import (
4850
ibc "github.com/cosmos/ibc-go/v10/modules/core"
4951
ibcexported "github.com/cosmos/ibc-go/v10/modules/core/exported"
5052
ibctm "github.com/cosmos/ibc-go/v10/modules/light-clients/07-tendermint"
51-
"github.com/persistenceOne/persistence-sdk/v5/x/epochs"
52-
epochstypes "github.com/persistenceOne/persistence-sdk/v5/x/epochs/types"
53-
"github.com/persistenceOne/persistence-sdk/v5/x/halving"
53+
"github.com/persistenceOne/persistence-sdk/v6/x/halving"
5454
appparams "github.com/persistenceOne/persistenceCore/v16/app/params"
55-
"github.com/persistenceOne/pstake-native/v5/x/liquidstake"
56-
liquidstaketypes "github.com/persistenceOne/pstake-native/v5/x/liquidstake/types"
55+
"github.com/persistenceOne/pstake-native/v6/x/liquidstake"
56+
liquidstaketypes "github.com/persistenceOne/pstake-native/v6/x/liquidstake/types"
5757
)
5858

5959
var ModuleAccountPermissions = map[string][]string{
@@ -125,6 +125,13 @@ func overrideSimulationModules(
125125
}
126126
}
127127

128+
func orderPreBlockers() []string {
129+
return []string{
130+
upgradetypes.ModuleName,
131+
authtypes.ModuleName,
132+
}
133+
}
134+
128135
func orderBeginBlockers() []string {
129136
return []string{
130137
upgradetypes.ModuleName,

go.mod

Lines changed: 24 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -9,30 +9,30 @@ require (
99
cosmossdk.io/client/v2 v2.0.0-beta.7
1010
cosmossdk.io/core v0.11.3
1111
cosmossdk.io/errors v1.0.2
12-
cosmossdk.io/log v1.5.1
12+
cosmossdk.io/log v1.6.1
1313
cosmossdk.io/math v1.5.3
1414
cosmossdk.io/store v1.1.2
1515
cosmossdk.io/tools/confix v0.1.2
1616
cosmossdk.io/x/evidence v0.1.1
1717
cosmossdk.io/x/feegrant v0.1.1
18-
cosmossdk.io/x/tx v0.13.7
19-
cosmossdk.io/x/upgrade v0.1.4
20-
github.com/CosmWasm/wasmd v0.55.1
18+
cosmossdk.io/x/tx v0.14.0
19+
cosmossdk.io/x/upgrade v0.2.0
20+
github.com/CosmWasm/wasmd v0.60.1
2121
github.com/cometbft/cometbft v0.38.19
2222
github.com/cosmos/cosmos-db v1.1.3
23-
github.com/cosmos/cosmos-sdk v0.50.14
23+
github.com/cosmos/cosmos-sdk v0.53.4
2424
github.com/cosmos/gaia/v24 v24.0.0
2525
github.com/cosmos/gogoproto v1.7.0
2626
github.com/cosmos/ibc-apps/middleware/packet-forward-middleware/v10 v10.1.0
2727
github.com/cosmos/ibc-apps/modules/ibc-hooks/v10 v10.0.0-20250919123430-5596e0a03585
28-
github.com/cosmos/ibc-go/v10 v10.1.1
28+
github.com/cosmos/ibc-go/v10 v10.4.0
2929
github.com/cosmos/rosetta v0.50.12
30-
github.com/persistenceOne/persistence-sdk/v5 v5.1.0
31-
github.com/persistenceOne/pstake-native/v5 v5.1.1
30+
github.com/persistenceOne/persistence-sdk/v6 v6.0.0-rc0
31+
github.com/persistenceOne/pstake-native/v6 v6.0.0-rc0
3232
github.com/prometheus/client_golang v1.23.0
3333
github.com/spf13/cast v1.9.2
34-
github.com/spf13/cobra v1.9.1
35-
github.com/spf13/pflag v1.0.7
34+
github.com/spf13/cobra v1.10.1
35+
github.com/spf13/pflag v1.0.9
3636
github.com/spf13/viper v1.20.1
3737
github.com/stretchr/testify v1.11.1
3838
google.golang.org/protobuf v1.36.10
@@ -47,8 +47,9 @@ require (
4747
cloud.google.com/go/iam v1.5.2 // indirect
4848
cloud.google.com/go/monitoring v1.24.2 // indirect
4949
cloud.google.com/go/storage v1.50.0 // indirect
50-
cosmossdk.io/collections v0.4.0 // indirect
51-
cosmossdk.io/depinject v1.2.0 // indirect
50+
cosmossdk.io/collections v1.2.1 // indirect
51+
cosmossdk.io/depinject v1.2.1 // indirect
52+
cosmossdk.io/schema v1.1.0 // indirect
5253
filippo.io/edwards25519 v1.1.0 // indirect
5354
github.com/99designs/go-keychain v0.0.0-20191008050251-8e49817e8af4 // indirect
5455
github.com/99designs/keyring v1.2.2 // indirect
@@ -61,11 +62,11 @@ require (
6162
github.com/Microsoft/go-winio v0.6.2 // indirect
6263
github.com/PuerkitoBio/purell v1.1.1 // indirect
6364
github.com/PuerkitoBio/urlesc v0.0.0-20170810143723-de5bf2ad4578 // indirect
64-
github.com/aws/aws-sdk-go v1.44.224 // indirect
65+
github.com/aws/aws-sdk-go v1.49.0 // indirect
6566
github.com/beorn7/perks v1.0.1 // indirect
6667
github.com/bgentry/go-netrc v0.0.0-20140422174119-9fd32a8b3d3d // indirect
6768
github.com/bgentry/speakeasy v0.2.0 // indirect
68-
github.com/bits-and-blooms/bitset v1.17.0 // indirect
69+
github.com/bits-and-blooms/bitset v1.22.0 // indirect
6970
github.com/bytedance/gopkg v0.1.3 // indirect
7071
github.com/bytedance/sonic v1.14.1 // indirect
7172
github.com/bytedance/sonic/loader v0.3.0 // indirect
@@ -75,7 +76,7 @@ require (
7576
github.com/cloudwego/base64x v0.1.6 // indirect
7677
github.com/cncf/xds/go v0.0.0-20250501225837-2ac532fd4443 // indirect
7778
github.com/cockroachdb/apd/v2 v2.0.2 // indirect
78-
github.com/cockroachdb/errors v1.11.3 // indirect
79+
github.com/cockroachdb/errors v1.12.0 // indirect
7980
github.com/cockroachdb/fifo v0.0.0-20240816210425-c5d0cb0b6fc0 // indirect
8081
github.com/cockroachdb/logtags v0.0.0-20241215232642-bb51bb14a506 // indirect
8182
github.com/cockroachdb/pebble v1.1.5 // indirect
@@ -105,7 +106,7 @@ require (
105106
github.com/emicklei/dot v1.6.2 // indirect
106107
github.com/envoyproxy/go-control-plane/envoy v1.32.4 // indirect
107108
github.com/envoyproxy/protoc-gen-validate v1.2.1 // indirect
108-
github.com/ethereum/go-ethereum v1.15.5 // indirect
109+
github.com/ethereum/go-ethereum v1.15.11 // indirect
109110
github.com/fatih/color v1.17.0 // indirect
110111
github.com/felixge/httpsnoop v1.0.4 // indirect
111112
github.com/fsnotify/fsnotify v1.9.0 // indirect
@@ -121,7 +122,6 @@ require (
121122
github.com/gogo/googleapis v1.4.1 // indirect
122123
github.com/gogo/protobuf v1.3.2 // indirect
123124
github.com/golang/groupcache v0.0.0-20241129210726-2c02b8208cf8 // indirect
124-
github.com/golang/mock v1.6.0 // indirect
125125
github.com/golang/protobuf v1.5.4 // indirect
126126
github.com/golang/snappy v0.0.5-0.20231225225746-43d5d4cd4e0e // indirect
127127
github.com/google/btree v1.1.3 // indirect
@@ -150,7 +150,7 @@ require (
150150
github.com/hashicorp/go-version v1.7.0 // indirect
151151
github.com/hashicorp/golang-lru v1.0.2 // indirect
152152
github.com/hashicorp/golang-lru/v2 v2.0.7 // indirect
153-
github.com/hashicorp/yamux v0.1.1 // indirect
153+
github.com/hashicorp/yamux v0.1.2 // indirect
154154
github.com/hdevalence/ed25519consensus v0.2.0 // indirect
155155
github.com/holiman/uint256 v1.3.2 // indirect
156156
github.com/huandu/skiplist v1.2.1 // indirect
@@ -169,6 +169,7 @@ require (
169169
github.com/manifoldco/promptui v0.9.0 // indirect
170170
github.com/mattn/go-colorable v0.1.14 // indirect
171171
github.com/mattn/go-isatty v0.0.20 // indirect
172+
github.com/mdp/qrterminal/v3 v3.2.1 // indirect
172173
github.com/minio/highwayhash v1.0.3 // indirect
173174
github.com/mitchellh/go-homedir v1.1.0 // indirect
174175
github.com/mitchellh/mapstructure v1.5.0 // indirect
@@ -216,9 +217,11 @@ require (
216217
go.opentelemetry.io/otel/sdk v1.37.0 // indirect
217218
go.opentelemetry.io/otel/sdk/metric v1.37.0 // indirect
218219
go.opentelemetry.io/otel/trace v1.37.0 // indirect
220+
go.uber.org/mock v0.5.2 // indirect
219221
go.uber.org/multierr v1.11.0 // indirect
220222
go.uber.org/zap v1.27.0 // indirect
221-
golang.org/x/arch v0.15.0 // indirect
223+
go.yaml.in/yaml/v2 v2.4.2 // indirect
224+
golang.org/x/arch v0.17.0 // indirect
222225
golang.org/x/crypto v0.41.0 // indirect
223226
golang.org/x/exp v0.0.0-20250305212735-054e65f0b394 // indirect
224227
golang.org/x/net v0.43.0 // indirect
@@ -238,7 +241,8 @@ require (
238241
gotest.tools/v3 v3.5.2 // indirect
239242
nhooyr.io/websocket v1.8.17 // indirect
240243
pgregory.net/rapid v1.2.0 // indirect
241-
sigs.k8s.io/yaml v1.4.0 // indirect
244+
rsc.io/qr v0.2.0 // indirect
245+
sigs.k8s.io/yaml v1.6.0 // indirect
242246
)
243247

244248
replace (
@@ -247,6 +251,3 @@ replace (
247251
// Downgraded to avoid bugs in following commits which caused simulations to fail.
248252
github.com/syndtr/goleveldb => github.com/syndtr/goleveldb v1.0.1-0.20210819022825-2ae1ddf74ef7
249253
)
250-
251-
// replace with persistence's LSM fork
252-
replace github.com/cosmos/gaia/v24 => github.com/persistenceOne/gaia/v24 v24.0.0-liquid-fix

0 commit comments

Comments
 (0)