Skip to content

Commit fd61bef

Browse files
authored
Merge branch 'main' into dudong2/feat/stargate-querier
2 parents a920fc7 + 40fa7c7 commit fd61bef

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

55 files changed

+1843
-602
lines changed

.github/CODEOWNERS

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
* @da1suk8 @dudong2 @loloicci @kokeshiM0chi
1+
* @da1suk8 @dudong2 @loloicci @kokeshiM0chi @170210

.github/workflows/lint.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
steps:
1515
- uses: actions/[email protected]
1616
with:
17-
go-version: 1.18
17+
go-version: '1.20'
1818
- uses: actions/checkout@v3
1919
- uses: technote-space/[email protected]
2020
id: git_diff
@@ -23,10 +23,10 @@ jobs:
2323
**/**.go
2424
go.mod
2525
go.sum
26-
- uses: golangci/golangci-lint-action@master
26+
- uses: golangci/golangci-lint-action@v3
2727
with:
2828
# Required: the version of golangci-lint is required and must be specified without patch version: we always use the latest patch version.
29-
version: v1.50.1
29+
version: v1.51
3030
args: --timeout 10m
3131
github-token: ${{ secrets.GITHUB_TOKEN }}
3232
if: env.GIT_DIFF

.github/workflows/test.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
- uses: actions/checkout@v3
2222
- uses: actions/[email protected]
2323
with:
24-
go-version: 1.18
24+
go-version: '1.20'
2525
- name: Display go version
2626
run: go version
2727
- name: Check if difference
@@ -52,7 +52,7 @@ jobs:
5252
- uses: actions/checkout@v3
5353
- uses: actions/[email protected]
5454
with:
55-
go-version: 1.18
55+
go-version: '1.20'
5656
- name: Display go version
5757
run: go version
5858
- name: Check if difference
@@ -83,7 +83,7 @@ jobs:
8383
- uses: actions/checkout@v3
8484
- uses: actions/[email protected]
8585
with:
86-
go-version: 1.18
86+
go-version: '1.20'
8787
- name: Display go version
8888
run: go version
8989
- name: Check if difference

CHANGELOG.md

+17-1
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,31 @@
33
## [Unreleased](https://github.com/Finschia/wasmd/compare/v0.1.4...HEAD)
44

55
### Features
6+
* [\#61](https://github.com/Finschia/wasmd/pull/61) bumpup ibc-go to v4
67
* [\#84](https://github.com/Finschia/wasmd/pull/84) add AcceptlistStaragteQuerier
78

89
### Improvements
10+
* [\#63](https://github.com/Finschia/wasmd/pull/63) add event checking to TestStoreCode
11+
* [\#65](https://github.com/Finschia/wasmd/pull/65) add test cases for empty request in each function
12+
* [\#66](https://github.com/Finschia/wasmd/pull/66) add test cases for invalid pagination key in some functions
13+
* [\#64](https://github.com/Finschia/wasmd/pull/64) test: add test cases to confirm output for PinnedCodes
14+
* [\#70](https://github.com/Finschia/wasmd/pull/70) add event checking to TestInstantiateContract
15+
* [\#73](https://github.com/Finschia/wasmd/pull/73) test: add the check for expPaginationTotal
16+
* [\#72](https://github.com/Finschia/wasmd/pull/72) add pagination next key test in ContractHistory
17+
* [\#75](https://github.com/Finschia/wasmd/pull/75) test: add the test case for InactiveContract
18+
* [\#74](https://github.com/Finschia/wasmd/pull/74) add event checking to TestInstantiateContract2
19+
* [\#78](https://github.com/Finschia/wasmd/pull/78) add the check for TestMigrateContract
20+
* [\#69](https://github.com/Finschia/wasmd/pull/69) refactor: refactor test cases for Params
21+
* [\#71](https://github.com/Finschia/wasmd/pull/71) add test cases in ContractsByCode
922

1023
### Bug Fixes
24+
* [\#62](https://github.com/Finschia/wasmd/pull/62) fill ContractHistory querier result's Updated field
1125
* [\#52](https://github.com/Finschia/wasmd/pull/52) fix cli_test error of wasmplus and add cli_test ci
1226

1327
### Breaking Changes
1428

1529
### Build, CI
30+
* [\#60](https://github.com/Finschia/wasmd/pull/60) Update golang version to 1.20
1631

1732
### Document Updates
1833
* [\#54](https://github.com/Finschia/wasmd/pull/54) add documentation about errors (codespace and codes)
@@ -24,10 +39,11 @@
2439
* [\#46](https://github.com/Finschia/wasmd/pull/46) add admin-related events
2540

2641
### Improvements
27-
* [\#43](https://github.com/Finschia/wasmd/pull/43) delete unnecessary test
42+
* [\#43](https://github.com/Finschia/wasmd/pull/43) delete unnecessary test
2843

2944
### Bug Fixes
3045
* [\#35](https://github.com/Finschia/wasmd/pull/35) stop wrap twice the response of handling non-plus wasm message in plus handler
46+
* [\#77](https://github.com/Finschia/wasmd/pull/77) use ctx cache in msg server integration test
3147

3248
### Document Updates
3349
* [\#44](https://github.com/Finschia/wasmd/pull/44) update notice

CONTRIBUTING.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ Please don't make Pull Requests from `main`.
115115

116116
## Dependencies
117117

118-
We use [Go 1.18 Modules](https://github.com/golang/go/wiki/Modules) to manage
118+
We use [Go 1.20 Modules](https://github.com/golang/go/wiki/Modules) to manage
119119
dependency versions.
120120

121121
The `main` branch of every repository should just build with `go get`,

Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# docker build . -t finschia/wasmd:latest
22
# docker run --rm -it finschia/wasmd:latest /bin/sh
3-
FROM golang:1.18-alpine3.15 AS go-builder
3+
FROM golang:1.20-alpine AS go-builder
44
ARG arch=x86_64
55

66
# this comes from standard alpine nightly file

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ from the `cosmos/gaia` repository, and then we change `x/wasm`.
1313
However, the `wasmd` binary should function just like `gaiad` except for the
1414
addition of the `x/wasm` module.
1515

16-
**Note**: Requires [Go 1.18+](https://golang.org/dl/)
16+
**Note**: Requires [Go 1.20+](https://golang.org/dl/)
1717

1818
For critical security issues & disclosure, see [SECURITY.md](SECURITY.md).
1919
## Compatibility with CosmWasm contracts

app/ante.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ import (
44
sdk "github.com/Finschia/finschia-sdk/types"
55
sdkerrors "github.com/Finschia/finschia-sdk/types/errors"
66
"github.com/Finschia/finschia-sdk/x/auth/ante"
7-
ibcante "github.com/Finschia/ibc-go/v3/modules/core/ante"
8-
"github.com/Finschia/ibc-go/v3/modules/core/keeper"
7+
ibcante "github.com/cosmos/ibc-go/v4/modules/core/ante"
8+
"github.com/cosmos/ibc-go/v4/modules/core/keeper"
99

1010
wasmkeeper "github.com/Finschia/wasmd/x/wasm/keeper"
1111
wasmTypes "github.com/Finschia/wasmd/x/wasm/types"

app/app.go

+83-36
Original file line numberDiff line numberDiff line change
@@ -15,24 +15,27 @@ import (
1515
tmproto "github.com/tendermint/tendermint/proto/tendermint/types"
1616
dbm "github.com/tendermint/tm-db"
1717

18-
ica "github.com/Finschia/ibc-go/v3/modules/apps/27-interchain-accounts"
19-
icacontrollerkeeper "github.com/Finschia/ibc-go/v3/modules/apps/27-interchain-accounts/controller/keeper"
20-
icacontrollertypes "github.com/Finschia/ibc-go/v3/modules/apps/27-interchain-accounts/controller/types"
21-
icahost "github.com/Finschia/ibc-go/v3/modules/apps/27-interchain-accounts/host"
22-
icahostkeeper "github.com/Finschia/ibc-go/v3/modules/apps/27-interchain-accounts/host/keeper"
23-
icahosttypes "github.com/Finschia/ibc-go/v3/modules/apps/27-interchain-accounts/host/types"
24-
icatypes "github.com/Finschia/ibc-go/v3/modules/apps/27-interchain-accounts/types"
25-
transfer "github.com/Finschia/ibc-go/v3/modules/apps/transfer"
26-
ibctransferkeeper "github.com/Finschia/ibc-go/v3/modules/apps/transfer/keeper"
27-
ibctransfertypes "github.com/Finschia/ibc-go/v3/modules/apps/transfer/types"
28-
ibc "github.com/Finschia/ibc-go/v3/modules/core"
29-
ibcclient "github.com/Finschia/ibc-go/v3/modules/core/02-client"
30-
ibcclientclient "github.com/Finschia/ibc-go/v3/modules/core/02-client/client"
31-
ibcclienttypes "github.com/Finschia/ibc-go/v3/modules/core/02-client/types"
32-
porttypes "github.com/Finschia/ibc-go/v3/modules/core/05-port/types"
33-
ibchost "github.com/Finschia/ibc-go/v3/modules/core/24-host"
34-
ibckeeper "github.com/Finschia/ibc-go/v3/modules/core/keeper"
3518
ocabci "github.com/Finschia/ostracon/abci/types"
19+
ica "github.com/cosmos/ibc-go/v4/modules/apps/27-interchain-accounts"
20+
icacontrollerkeeper "github.com/cosmos/ibc-go/v4/modules/apps/27-interchain-accounts/controller/keeper"
21+
icacontrollertypes "github.com/cosmos/ibc-go/v4/modules/apps/27-interchain-accounts/controller/types"
22+
icahost "github.com/cosmos/ibc-go/v4/modules/apps/27-interchain-accounts/host"
23+
icahostkeeper "github.com/cosmos/ibc-go/v4/modules/apps/27-interchain-accounts/host/keeper"
24+
icahosttypes "github.com/cosmos/ibc-go/v4/modules/apps/27-interchain-accounts/host/types"
25+
icatypes "github.com/cosmos/ibc-go/v4/modules/apps/27-interchain-accounts/types"
26+
ibcfee "github.com/cosmos/ibc-go/v4/modules/apps/29-fee"
27+
ibcfeekeeper "github.com/cosmos/ibc-go/v4/modules/apps/29-fee/keeper"
28+
ibcfeetypes "github.com/cosmos/ibc-go/v4/modules/apps/29-fee/types"
29+
transfer "github.com/cosmos/ibc-go/v4/modules/apps/transfer"
30+
ibctransferkeeper "github.com/cosmos/ibc-go/v4/modules/apps/transfer/keeper"
31+
ibctransfertypes "github.com/cosmos/ibc-go/v4/modules/apps/transfer/types"
32+
ibc "github.com/cosmos/ibc-go/v4/modules/core"
33+
ibcclient "github.com/cosmos/ibc-go/v4/modules/core/02-client"
34+
ibcclientclient "github.com/cosmos/ibc-go/v4/modules/core/02-client/client"
35+
ibcclienttypes "github.com/cosmos/ibc-go/v4/modules/core/02-client/types"
36+
porttypes "github.com/cosmos/ibc-go/v4/modules/core/05-port/types"
37+
ibchost "github.com/cosmos/ibc-go/v4/modules/core/24-host"
38+
ibckeeper "github.com/cosmos/ibc-go/v4/modules/core/keeper"
3639

3740
"github.com/Finschia/finschia-sdk/baseapp"
3841
"github.com/Finschia/finschia-sdk/client"
@@ -203,6 +206,7 @@ var (
203206
vesting.AppModuleBasic{},
204207
wasm.AppModuleBasic{},
205208
ica.AppModuleBasic{},
209+
ibcfee.AppModuleBasic{},
206210
)
207211

208212
// module account permissions
@@ -214,6 +218,7 @@ var (
214218
stakingtypes.NotBondedPoolName: {authtypes.Burner, authtypes.Staking},
215219
govtypes.ModuleName: {authtypes.Burner},
216220
ibctransfertypes.ModuleName: {authtypes.Minter, authtypes.Burner},
221+
ibcfeetypes.ModuleName: nil,
217222
icatypes.ModuleName: nil,
218223
wasm.ModuleName: {authtypes.Burner},
219224
}
@@ -259,6 +264,7 @@ type WasmApp struct {
259264
ParamsKeeper paramskeeper.Keeper
260265
EvidenceKeeper evidencekeeper.Keeper
261266
IBCKeeper *ibckeeper.Keeper // IBC Keeper must be a pointer in the app, so we can SetRouter on it correctly
267+
IBCFeeKeeper ibcfeekeeper.Keeper
262268
ICAControllerKeeper icacontrollerkeeper.Keeper
263269
ICAHostKeeper icahostkeeper.Keeper
264270
TransferKeeper ibctransferkeeper.Keeper
@@ -270,6 +276,7 @@ type WasmApp struct {
270276
ScopedICAHostKeeper capabilitykeeper.ScopedKeeper
271277
ScopedICAControllerKeeper capabilitykeeper.ScopedKeeper
272278
ScopedTransferKeeper capabilitykeeper.ScopedKeeper
279+
ScopedIBCFeeKeeper capabilitykeeper.ScopedKeeper
273280
ScopedWasmKeeper capabilitykeeper.ScopedKeeper
274281

275282
// make IBC modules public for test purposes
@@ -313,7 +320,7 @@ func NewWasmApp(
313320
minttypes.StoreKey, distrtypes.StoreKey, slashingtypes.StoreKey,
314321
govtypes.StoreKey, paramstypes.StoreKey, ibchost.StoreKey, upgradetypes.StoreKey,
315322
evidencetypes.StoreKey, ibctransfertypes.StoreKey, capabilitytypes.StoreKey,
316-
feegrant.StoreKey, authzkeeper.StoreKey, wasm.StoreKey, icahosttypes.StoreKey, icacontrollertypes.StoreKey,
323+
feegrant.StoreKey, authzkeeper.StoreKey, wasm.StoreKey, icahosttypes.StoreKey, icacontrollertypes.StoreKey, ibcfeetypes.StoreKey,
317324
)
318325
tkeys := sdk.NewTransientStoreKeys(paramstypes.TStoreKey)
319326
memKeys := sdk.NewMemoryStoreKeys(capabilitytypes.MemStoreKey)
@@ -448,20 +455,26 @@ func NewWasmApp(
448455
AddRoute(upgradetypes.RouterKey, upgrade.NewSoftwareUpgradeProposalHandler(app.UpgradeKeeper)).
449456
AddRoute(ibcclienttypes.RouterKey, ibcclient.NewClientProposalHandler(app.IBCKeeper.ClientKeeper))
450457

458+
// IBC Fee Module keeper
459+
app.IBCFeeKeeper = ibcfeekeeper.NewKeeper(
460+
appCodec, keys[ibcfeetypes.StoreKey], app.getSubspace(ibcfeetypes.ModuleName),
461+
app.IBCKeeper.ChannelKeeper, // may be replaced with IBC middleware
462+
app.IBCKeeper.ChannelKeeper,
463+
&app.IBCKeeper.PortKeeper, app.AccountKeeper, app.BankKeeper,
464+
)
465+
451466
// Create Transfer Keepers
452467
app.TransferKeeper = ibctransferkeeper.NewKeeper(
453468
appCodec,
454469
keys[ibctransfertypes.StoreKey],
455470
app.getSubspace(ibctransfertypes.ModuleName),
456-
app.IBCKeeper.ChannelKeeper,
471+
app.IBCFeeKeeper, // ISC4 Wrapper: fee IBC middleware
457472
app.IBCKeeper.ChannelKeeper,
458473
&app.IBCKeeper.PortKeeper,
459474
app.AccountKeeper,
460475
app.BankKeeper,
461476
scopedTransferKeeper,
462477
)
463-
transferModule := transfer.NewAppModule(app.TransferKeeper)
464-
transferIBCModule := transfer.NewIBCModule(app.TransferKeeper)
465478

466479
app.ICAHostKeeper = icahostkeeper.NewKeeper(
467480
appCodec,
@@ -477,14 +490,12 @@ func NewWasmApp(
477490
appCodec,
478491
keys[icacontrollertypes.StoreKey],
479492
app.getSubspace(icacontrollertypes.SubModuleName),
480-
app.IBCKeeper.ChannelKeeper, // may be replaced with middleware such as ics29 fee
493+
app.IBCFeeKeeper, // use ics29 fee as ics4Wrapper in middleware stack
481494
app.IBCKeeper.ChannelKeeper,
482495
&app.IBCKeeper.PortKeeper,
483496
scopedICAControllerKeeper,
484497
app.MsgServiceRouter(),
485498
)
486-
icaModule := ica.NewAppModule(&app.ICAControllerKeeper, &app.ICAHostKeeper)
487-
icaHostIBCModule := icahost.NewIBCModule(app.ICAHostKeeper)
488499

489500
// create evidence keeper with router
490501
evidenceKeeper := evidencekeeper.NewKeeper(
@@ -524,19 +535,49 @@ func NewWasmApp(
524535
wasmOpts...,
525536
)
526537

527-
// Create static IBC router, add app routes, then set and seal it
528-
ibcRouter := porttypes.NewRouter()
529-
530538
// The gov proposal types can be individually enabled
531539
if len(enabledProposals) != 0 {
532540
govRouter.AddRoute(wasm.RouterKey, wasm.NewWasmProposalHandler(app.WasmKeeper, enabledProposals))
533541
}
534-
ibcRouter.
535-
AddRoute(wasm.ModuleName, wasm.NewIBCHandler(app.WasmKeeper, app.IBCKeeper.ChannelKeeper)).
536-
AddRoute(ibctransfertypes.ModuleName, transferIBCModule).
537-
// AddRoute(icacontrollertypes.SubModuleName, icaControllerIBCModule).
538-
AddRoute(icahosttypes.SubModuleName, icaHostIBCModule)
539-
// AddRoute(intertxtypes.ModuleName, icaControllerIBCModule)
542+
543+
// Create Transfer Stack
544+
var transferStack porttypes.IBCModule
545+
transferStack = transfer.NewIBCModule(app.TransferKeeper)
546+
transferStack = ibcfee.NewIBCMiddleware(transferStack, app.IBCFeeKeeper)
547+
548+
/*
549+
// Create Interchain Accounts Stack
550+
// SendPacket, since it is originating from the application to core IBC:
551+
// icaAuthModuleKeeper.SendTx -> icaController.SendPacket -> fee.SendPacket -> channel.SendPacket
552+
553+
// Note: please do your research before using this in production app, this is a demo and not an officially
554+
// supported IBC team implementation. Do your own research before using it.
555+
var icaControllerStack porttypes.IBCModule
556+
// You will likely want to use your own reviewed and maintained ica auth module
557+
icaControllerStack = intertx.NewIBCModule(app.InterTxKeeper)
558+
icaControllerStack = icacontroller.NewIBCMiddleware(icaControllerStack, app.ICAControllerKeeper)
559+
icaControllerStack = ibcfee.NewIBCMiddleware(icaControllerStack, app.IBCFeeKeeper)
560+
*/
561+
562+
// RecvPacket, message that originates from core IBC and goes down to app, the flow is:
563+
// channel.RecvPacket -> fee.OnRecvPacket -> icaHost.OnRecvPacket
564+
var icaHostStack porttypes.IBCModule
565+
icaHostStack = icahost.NewIBCModule(app.ICAHostKeeper)
566+
icaHostStack = ibcfee.NewIBCMiddleware(icaHostStack, app.IBCFeeKeeper)
567+
568+
// Create fee enabled wasm ibc Stack
569+
var wasmStack porttypes.IBCModule
570+
wasmStack = wasm.NewIBCHandler(app.WasmKeeper, app.IBCKeeper.ChannelKeeper, app.IBCFeeKeeper)
571+
wasmStack = ibcfee.NewIBCMiddleware(wasmStack, app.IBCFeeKeeper)
572+
573+
// Create static IBC router, add app routes, then set and seal it
574+
ibcRouter := porttypes.NewRouter().
575+
AddRoute(ibctransfertypes.ModuleName, transferStack).
576+
AddRoute(wasm.ModuleName, wasmStack).
577+
// AddRoute(intertxtypes.ModuleName, icaControllerStack).
578+
// AddRoute(icacontrollertypes.SubModuleName, icaControllerStack).
579+
AddRoute(icahosttypes.SubModuleName, icaHostStack)
580+
540581
app.IBCKeeper.SetRouter(ibcRouter)
541582

542583
app.GovKeeper = govkeeper.NewKeeper(
@@ -579,8 +620,10 @@ func NewWasmApp(
579620
authzmodule.NewAppModule(appCodec, app.AuthzKeeper, app.AccountKeeper, app.BankKeeper, app.interfaceRegistry),
580621
ibc.NewAppModule(app.IBCKeeper),
581622
params.NewAppModule(app.ParamsKeeper),
582-
transferModule,
583-
icaModule,
623+
transfer.NewAppModule(app.TransferKeeper),
624+
ibcfee.NewAppModule(app.IBCFeeKeeper),
625+
ica.NewAppModule(&app.ICAControllerKeeper, &app.ICAHostKeeper),
626+
// intertx.NewAppModule(appCodec, app.InterTxKeeper),
584627
crisis.NewAppModule(&app.CrisisKeeper, skipGenesisInvariants), // always be last to make sure that it checks for all invariants and not only part of them
585628
)
586629

@@ -609,6 +652,7 @@ func NewWasmApp(
609652
ibctransfertypes.ModuleName,
610653
ibchost.ModuleName,
611654
icatypes.ModuleName,
655+
ibcfeetypes.ModuleName,
612656
// intertxtypes.ModuleName,
613657
wasm.ModuleName,
614658
)
@@ -634,6 +678,7 @@ func NewWasmApp(
634678
ibctransfertypes.ModuleName,
635679
ibchost.ModuleName,
636680
icatypes.ModuleName,
681+
ibcfeetypes.ModuleName,
637682
// intertxtypes.ModuleName,
638683
wasm.ModuleName,
639684
)
@@ -666,6 +711,8 @@ func NewWasmApp(
666711
ibctransfertypes.ModuleName,
667712
ibchost.ModuleName,
668713
icatypes.ModuleName,
714+
ibcfeetypes.ModuleName,
715+
// intertxtypes.ModuleName,
669716
// wasm after ibc transfer
670717
wasm.ModuleName,
671718
)
@@ -698,7 +745,7 @@ func NewWasmApp(
698745
evidence.NewAppModule(app.EvidenceKeeper),
699746
wasm.NewAppModule(appCodec, &app.WasmKeeper, app.StakingKeeper, app.AccountKeeper, app.BankKeeper),
700747
ibc.NewAppModule(app.IBCKeeper),
701-
transferModule,
748+
transfer.NewAppModule(app.TransferKeeper),
702749
)
703750

704751
app.sm.RegisterStoreDecoders()

app/sim_test.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,9 @@ import (
3434
"github.com/Finschia/finschia-sdk/x/simulation"
3535
slashingtypes "github.com/Finschia/finschia-sdk/x/slashing/types"
3636
stakingtypes "github.com/Finschia/finschia-sdk/x/staking/types"
37-
ibctransfertypes "github.com/Finschia/ibc-go/v3/modules/apps/transfer/types"
38-
ibchost "github.com/Finschia/ibc-go/v3/modules/core/24-host"
3937
"github.com/Finschia/ostracon/libs/log"
38+
ibctransfertypes "github.com/cosmos/ibc-go/v4/modules/apps/transfer/types"
39+
ibchost "github.com/cosmos/ibc-go/v4/modules/core/24-host"
4040

4141
"github.com/Finschia/wasmd/x/wasm"
4242
wasmtypes "github.com/Finschia/wasmd/x/wasm/types"

app/test_access.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ import (
99
bankkeeper "github.com/Finschia/finschia-sdk/x/bank/keeper"
1010
capabilitykeeper "github.com/Finschia/finschia-sdk/x/capability/keeper"
1111
stakingkeeper "github.com/Finschia/finschia-sdk/x/staking/keeper"
12-
ibctransferkeeper "github.com/Finschia/ibc-go/v3/modules/apps/transfer/keeper"
13-
ibckeeper "github.com/Finschia/ibc-go/v3/modules/core/keeper"
12+
ibctransferkeeper "github.com/cosmos/ibc-go/v4/modules/apps/transfer/keeper"
13+
ibckeeper "github.com/cosmos/ibc-go/v4/modules/core/keeper"
1414

1515
"github.com/Finschia/wasmd/app/params"
1616
"github.com/Finschia/wasmd/x/wasm"

0 commit comments

Comments
 (0)