Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
84 commits
Select commit Hold shift + click to select a range
6ed9e1f
WIP: add ibc rate limit middleware to ibc transfer
gsk967 Nov 7, 2022
4ce49c9
Merge main
gsk967 Nov 9, 2022
aada85f
WIP: add cll tx,query cmds
gsk967 Nov 9, 2022
08e3d08
Merge branch 'main' into sai/ibc-rate-limit
gsk967 Nov 10, 2022
16b50cd
Merge branch 'main' into sai/ibc-rate-limit
gsk967 Nov 11, 2022
57870ca
Merge branch 'main' into sai/ibc-rate-limit
gsk967 Nov 11, 2022
8412c70
Merge branch 'main' into sai/ibc-rate-limit
gsk967 Nov 12, 2022
9a4d380
Merge branch 'main' into sai/ibc-rate-limit
gsk967 Nov 12, 2022
28e2422
Merge branch 'main' into sai/ibc-rate-limit
gsk967 Nov 12, 2022
8e24765
WIP: add check rate limits for ibc denom
gsk967 Nov 14, 2022
4ad23eb
remove ibc-rate-limits and move rate limits into ibctransfer module
gsk967 Nov 14, 2022
9bf0109
move the umme ibctransfer into ics20 folder
gsk967 Nov 14, 2022
a87ff0d
fix: fix the lint
gsk967 Nov 14, 2022
bdeaec3
refactor: change the module structure to 'authz' type of cosmos-sdk
gsk967 Nov 15, 2022
aba25e0
Merge branch 'main' into sai/ibc-rate-limit
gsk967 Nov 15, 2022
7981d0d
Merge branch 'main' into sai/ibc-rate-limit
gsk967 Nov 16, 2022
37b15b3
remove inflow_limit in rate limits
gsk967 Nov 16, 2022
ea1316e
Merge branch 'main' into sai/ibc-rate-limit
gsk967 Nov 16, 2022
ac8381c
Merge remote-tracking branch 'origin/sai/ibc-rate-limit' into sai/ibc…
gsk967 Nov 16, 2022
a8206d3
chore: check the rate limits by exchange rate
gsk967 Nov 17, 2022
990db76
Merge branch 'main' into sai/ibc-rate-limit
gsk967 Nov 17, 2022
49c2bbb
add denom exponent to calculate amount in USD
gsk967 Nov 17, 2022
b5435b1
calculating the sent amount with exponent of registerd token
gsk967 Nov 17, 2022
3143115
fix: fix the amount calculation
gsk967 Nov 17, 2022
db358cf
Merge branch 'main' into sai/ibc-rate-limit
gsk967 Nov 17, 2022
0b30201
Merge branch 'main' into sai/ibc-rate-limit
gsk967 Nov 19, 2022
bce7a99
Merge main
gsk967 Nov 22, 2022
30bbdfc
fix: fix the rate-limit reset issue
gsk967 Nov 22, 2022
c2d0bc5
Merge branch 'main' into sai/ibc-rate-limit
gsk967 Nov 23, 2022
01ce260
refactor: update the params
gsk967 Nov 23, 2022
223f094
Merge branch 'main' into sai/ibc-rate-limit
gsk967 Nov 24, 2022
7b55068
Merge branch 'main' into sai/ibc-rate-limit
gsk967 Nov 28, 2022
c4b7de8
Merge branch 'main' into sai/ibc-rate-limit
gsk967 Nov 29, 2022
b27ff0d
Merge branch 'main' into sai/ibc-rate-limit
gsk967 Dec 5, 2022
e75b6f9
Merge branch 'main' into sai/ibc-rate-limit
gsk967 Dec 23, 2022
90f82b5
fix: fix the build
gsk967 Dec 23, 2022
47f09be
Merge branch 'main' into sai/ibc-rate-limit
gsk967 Dec 27, 2022
ff6239a
chore: update the limits and quota interval
gsk967 Dec 27, 2022
ecacc9e
chore: fix the lint issues
gsk967 Dec 27, 2022
6968250
chore: fix the lint issues
gsk967 Dec 27, 2022
0e2ef16
Merge branch 'main' into sai/ibc-rate-limit
gsk967 Dec 27, 2022
eea2115
Merge branch 'main' into sai/ibc-rate-limit
gsk967 Dec 29, 2022
be02147
chore: addree the pr comments
gsk967 Dec 29, 2022
e9a8717
chore: remove the param subspace from uibc
gsk967 Dec 29, 2022
be8bc11
Merge branch 'main' into sai/ibc-rate-limit
gsk967 Dec 30, 2022
267e958
refactor: refactor the proto and logic
gsk967 Dec 30, 2022
1aeb647
chore: address the pr comments
gsk967 Dec 30, 2022
b952683
fix: fix the buf lint
gsk967 Dec 30, 2022
1b119c7
Merge branch 'main' into sai/ibc-rate-limit
gsk967 Jan 2, 2023
1db2900
Merge branch 'main' into sai/ibc-rate-limit
gsk967 Jan 10, 2023
aa1daea
Merge branch 'main' into sai/ibc-rate-limit
gsk967 Jan 11, 2023
c5bfd75
chore: get the exchange price from TokenValue of leverage
gsk967 Jan 11, 2023
860795b
Merge remote-tracking branch 'origin/sai/ibc-rate-limit' into sai/ibc…
gsk967 Jan 11, 2023
b28f8f4
Merge branch 'main' into sai/ibc-rate-limit
gsk967 Jan 11, 2023
e485b2a
chore: convert uToken to baseToken in ibc-transfer quota checking
gsk967 Jan 11, 2023
3ae43d4
chore: add typed events for emit events
gsk967 Jan 12, 2023
f1d1e54
Merge branch 'main' into sai/ibc-rate-limit
gsk967 Jan 12, 2023
64600ef
Merge branch 'main' into sai/ibc-rate-limit
gsk967 Jan 16, 2023
4da6298
Merge branch 'main' into sai/ibc-rate-limit
gsk967 Jan 16, 2023
85e7486
address the review comments
gsk967 Jan 16, 2023
16e6488
refactor the code
gsk967 Jan 17, 2023
db8e103
Merge branch 'main' into sai/ibc-rate-limit
gsk967 Jan 17, 2023
a3f01de
Merge branch 'main' into sai/ibc-rate-limit
gsk967 Jan 18, 2023
07d05c5
Merge branch 'main' into sai/ibc-rate-limit
gsk967 Jan 23, 2023
14cdcd3
address the pr comments
gsk967 Jan 23, 2023
1dee0e7
chore: fix the build issue
gsk967 Jan 23, 2023
8f052ec
chore: add tests for params
gsk967 Jan 23, 2023
0d71fd2
Merge branch 'main' into sai/ibc-rate-limit
gsk967 Jan 23, 2023
07fe9b4
Merge branch 'main' into sai/ibc-rate-limit
gsk967 Jan 24, 2023
8f1cbe9
fix: fix the update quota params
gsk967 Jan 24, 2023
14c2558
Merge remote-tracking branch 'origin/sai/ibc-rate-limit' into sai/ibc…
gsk967 Jan 24, 2023
a3c1e58
Merge branch 'main' into sai/ibc-rate-limit
gsk967 Jan 24, 2023
14badea
chore: address the pr comments
gsk967 Jan 24, 2023
78184a5
chore: fix the lint
gsk967 Jan 24, 2023
e7ca80f
Merge branch 'main' into sai/ibc-rate-limit
gsk967 Jan 27, 2023
6e8cde5
address the pr comments++
gsk967 Jan 27, 2023
d558dc9
Merge branch 'main' into sai/ibc-rate-limit
gsk967 Jan 30, 2023
b62b3db
address the pr comments
gsk967 Jan 30, 2023
9cc1660
Merge remote-tracking branch 'origin' into sai/ibc-rate-limit
gsk967 Jan 30, 2023
afcf52a
Merge remote-tracking branch 'origin/sai/ibc-rate-limit' into sai/ibc…
gsk967 Jan 30, 2023
16642e6
update reset quota
robert-zaremba Jan 30, 2023
f0ecf0a
move to Marshal to MustMarshal in uibc
gsk967 Jan 30, 2023
87d72ae
add TODO for ibc middleware acknowledgement
gsk967 Jan 30, 2023
8feec2a
add comment to outflow_sum
gsk967 Jan 30, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
remove ibc-rate-limits and move rate limits into ibctransfer module
  • Loading branch information
gsk967 committed Nov 14, 2022
commit 4ad23eb7e9e47d4cf854f61ca336768cbdeacaae
26 changes: 13 additions & 13 deletions app/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -120,16 +120,16 @@ import (
"github.com/umee-network/umee/v3/util/genmap"
uibctransfer "github.com/umee-network/umee/v3/x/ibctransfer"
uibctransferkeeper "github.com/umee-network/umee/v3/x/ibctransfer/keeper"
uibctransfertypes "github.com/umee-network/umee/v3/x/ibctransfer/types"
"github.com/umee-network/umee/v3/x/leverage"
leveragekeeper "github.com/umee-network/umee/v3/x/leverage/keeper"
leveragetypes "github.com/umee-network/umee/v3/x/leverage/types"
"github.com/umee-network/umee/v3/x/oracle"
oraclekeeper "github.com/umee-network/umee/v3/x/oracle/keeper"
oracletypes "github.com/umee-network/umee/v3/x/oracle/types"

ibcratelimit "github.com/umee-network/umee/v3/x/ibc-rate-limit"
ibcratelimitkeeper "github.com/umee-network/umee/v3/x/ibc-rate-limit/keeper"
ibcratelimittypes "github.com/umee-network/umee/v3/x/ibc-rate-limit/types"
ibcratelimit "github.com/umee-network/umee/v3/x/ibctransfer/ratelimits"
ibcratelimitkeeper "github.com/umee-network/umee/v3/x/ibctransfer/ratelimits/keeper"
)

var (
Expand Down Expand Up @@ -175,7 +175,7 @@ func init() {
leverage.AppModuleBasic{},
oracle.AppModuleBasic{},
bech32ibc.AppModuleBasic{},
ibcratelimit.AppModuleBasic{},
uibctransfer.AppModuleBasic{},
}

if Experimental {
Expand All @@ -197,7 +197,7 @@ func init() {
gravitytypes.ModuleName: {authtypes.Minter, authtypes.Burner},
leveragetypes.ModuleName: {authtypes.Minter, authtypes.Burner},
oracletypes.ModuleName: nil,
ibcratelimittypes.ModuleName: nil,
uibctransfertypes.ModuleName: nil,
}

if Experimental {
Expand Down Expand Up @@ -309,7 +309,7 @@ func New(
authzkeeper.StoreKey, nftkeeper.StoreKey, group.StoreKey,
ibchost.StoreKey, ibctransfertypes.StoreKey,
gravitytypes.StoreKey,
leveragetypes.StoreKey, oracletypes.StoreKey, bech32ibctypes.StoreKey, ibcratelimittypes.StoreKey,
leveragetypes.StoreKey, oracletypes.StoreKey, bech32ibctypes.StoreKey, uibctransfertypes.StoreKey,
}
if Experimental {
storeKeys = append(storeKeys, wasm.StoreKey)
Expand Down Expand Up @@ -503,7 +503,7 @@ func New(

app.ibcRateLimitKeeper = ibcratelimitkeeper.NewKeeper(
appCodec,
keys[ibcratelimittypes.StoreKey], app.GetSubspace(ibcratelimittypes.ModuleName),
keys[uibctransfertypes.StoreKey], app.GetSubspace(uibctransfertypes.ModuleName),
app.IBCKeeper.ChannelKeeper,
authtypes.NewModuleAddress(govtypes.ModuleName).String(),
)
Expand Down Expand Up @@ -641,7 +641,7 @@ func New(
leverage.NewAppModule(appCodec, app.LeverageKeeper, app.AccountKeeper, app.BankKeeper),
oracle.NewAppModule(appCodec, app.OracleKeeper, app.AccountKeeper, app.BankKeeper, Experimental),
bech32ibc.NewAppModule(appCodec, app.bech32IbcKeeper),
ibcratelimit.NewAppModule(appCodec, app.ibcRateLimitKeeper),
uibctransfer.NewAppModule(appCodec, app.ibcRateLimitKeeper),
}
if Experimental {
appModules = append(appModules,
Expand All @@ -668,7 +668,7 @@ func New(
oracletypes.ModuleName,
gravitytypes.ModuleName,
bech32ibctypes.ModuleName,
ibcratelimittypes.ModuleName,
uibctransfertypes.ModuleName,
}
endBlockers := []string{
crisistypes.ModuleName,
Expand All @@ -684,7 +684,7 @@ func New(
leveragetypes.ModuleName,
gravitytypes.ModuleName,
bech32ibctypes.ModuleName,
ibcratelimittypes.ModuleName,
uibctransfertypes.ModuleName,
}

// NOTE: The genutils module must occur after staking so that pools are
Expand All @@ -705,7 +705,7 @@ func New(
leveragetypes.ModuleName,
gravitytypes.ModuleName,
bech32ibctypes.ModuleName,
ibcratelimittypes.ModuleName,
uibctransfertypes.ModuleName,
}
orderMigrations := []string{
capabilitytypes.ModuleName, authtypes.ModuleName, banktypes.ModuleName, distrtypes.ModuleName,
Expand All @@ -719,7 +719,7 @@ func New(
leveragetypes.ModuleName,
gravitytypes.ModuleName,
bech32ibctypes.ModuleName,
ibcratelimittypes.ModuleName}
uibctransfertypes.ModuleName}

if Experimental {
beginBlockers = append(beginBlockers, wasm.ModuleName)
Expand Down Expand Up @@ -1020,7 +1020,7 @@ func initParamsKeeper(
paramsKeeper.Subspace(ibchost.ModuleName)
// paramsKeeper.Subspace(icacontrollertypes.SubModuleName)
// paramsKeeper.Subspace(icahosttypes.SubModuleName)
paramsKeeper.Subspace(ibcratelimittypes.ModuleName)
paramsKeeper.Subspace(uibctransfertypes.ModuleName)
paramsKeeper.Subspace(gravitytypes.ModuleName)
paramsKeeper.Subspace(leveragetypes.ModuleName)
paramsKeeper.Subspace(oracletypes.ModuleName)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
syntax = "proto3";
package umee.ibcratelimit.v1beta1;
package umee.ibctransfer.v1;

import "gogoproto/gogo.proto";
import "umee/ibc_rate_limit/v1beta1/ibc_rate_limit.proto";
import "umee/ibctransfer/v1/ibc_rate_limit.proto";

option go_package = "github.com/umee-network/umee/v3/x/ibc-rate-limit/types";
option go_package = "github.com/umee-network/umee/v3/x/ibctransfer/types";
option (gogoproto.goproto_getters_all) = false;

message GenesisState {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
syntax = "proto3";
package umee.ibcratelimit.v1beta1;
package umee.ibctransfer.v1;

import "gogoproto/gogo.proto";
import "google/protobuf/duration.proto";
import "google/protobuf/timestamp.proto";

option go_package = "github.com/umee-network/umee/v3/x/ibc-rate-limit/types";
option go_package = "github.com/umee-network/umee/v3/x/ibctransfer/types";

// RateLimit is format of ibc rate limit
message RateLimit {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
syntax = "proto3";
package umee.ibcratelimit.v1beta1;
package umee.ibctransfer.v1;

import "gogoproto/gogo.proto";

option go_package = "github.com/umee-network/umee/v3/x/ibc-rate-limit/types";
option go_package = "github.com/umee-network/umee/v3/x/ibctransfer/types";

// Metadata defines the ICS29 channel specific metadata encoded into the channel version bytestring
// See ICS004: https://github.com/cosmos/ibc/tree/master/spec/core/ics-004-channel-and-packet-semantics#Versioning
Expand Down
Original file line number Diff line number Diff line change
@@ -1,29 +1,29 @@
syntax = "proto3";
package umee.ibcratelimit.v1beta1;
package umee.ibctransfer.v1;

import "google/api/annotations.proto";
import "gogoproto/gogo.proto";
import "umee/ibc_rate_limit/v1beta1/ibc_rate_limit.proto";
import "umee/ibctransfer/v1/ibc_rate_limit.proto";

option go_package = "github.com/umee-network/umee/v3/x/ibc-rate-limit/types";
option go_package = "github.com/umee-network/umee/v3/x/ibctransfer/types";

option (gogoproto.goproto_getters_all) = false;

// Query defines the gRPC querier service.
service Query {
// Params queries the parameters of the x/ibc-rate-limit module.
rpc Params(QueryParams) returns (QueryParamsResponse) {
option (google.api.http).get = "/umee/ibc_rate_limit/v1/params";
option (google.api.http).get = "/umee/ibctransfer/v1/params";
}

// RateLimitsOfIBCDenoms queries the rate limits of ibc denoms.
rpc RateLimitsOfIBCDenoms(QueryRateLimitsOfIBCDenoms) returns (QueryRateLimitsOfIBCDenomsResponse) {
option (google.api.http).get = "/umee/ibc_rate_limit/v1/rate_limits";
option (google.api.http).get = "/umee/ibctransfer/v1/rate_limits";
}

// RateLimitsOfIBCDenom queries the rate limits of ibc denom.
rpc RateLimitsOfIBCDenom(QueryRateLimitsOfIBCDenom) returns (QueryRateLimitsOfIBCDenomResponse) {
option (google.api.http).get = "/umee/ibc_rate_limit/v1/rate_limits/{ibc_denom}";
option (google.api.http).get = "/umee/ibctransfer/v1/rate_limits/{ibc_denom}";
}
}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
syntax = "proto3";
package umee.ibcratelimit.v1beta1;
package umee.ibctransfer.v1;

import "gogoproto/gogo.proto";
import "google/protobuf/duration.proto";
import "cosmos/msg/v1/msg.proto";
import "cosmos_proto/cosmos.proto";
import "umee/ibc_rate_limit/v1beta1/ibc_rate_limit.proto";
import "umee/ibctransfer/v1/ibc_rate_limit.proto";

option go_package = "github.com/umee-network/umee/v3/x/ibc-rate-limit/types";
option go_package = "github.com/umee-network/umee/v3/x/ibctransfer/types";

option (gogoproto.goproto_getters_all) = false;
option (gogoproto.messagename_all) = true;
Expand Down
14 changes: 0 additions & 14 deletions x/ibc-rate-limit/types/expected_keepers.go

This file was deleted.

4 changes: 2 additions & 2 deletions x/ibc-rate-limit/abci.go → x/ibctransfer/abci.go
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
package ibc_rate_limit
package ibctransfer

import (
sdk "github.com/cosmos/cosmos-sdk/types"
abci "github.com/tendermint/tendermint/abci/types"
"github.com/umee-network/umee/v3/x/ibc-rate-limit/keeper"
"github.com/umee-network/umee/v3/x/ibctransfer/ratelimits/keeper"
)

// BeginBlock implements BeginBlock for the x/ibc-rate-limit module.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"github.com/cosmos/cosmos-sdk/client/flags"
"github.com/spf13/cobra"
"github.com/umee-network/umee/v3/util/cli"
"github.com/umee-network/umee/v3/x/ibc-rate-limit/types"
"github.com/umee-network/umee/v3/x/ibctransfer/types"
)

// GetQueryCmd returns the CLI query commands for the x/ibc-rate-limit module.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ import (
"github.com/cosmos/cosmos-sdk/client/flags"
"github.com/cosmos/cosmos-sdk/client/tx"
"github.com/spf13/cobra"
"github.com/umee-network/umee/v3/x/ibc-rate-limit/types"
"github.com/umee-network/umee/v3/x/ibctransfer/types"
)

// GetTxCmd returns the CLI transaction commands for the x/ibc-rate-limit module.
// GetTxCmd returns the CLI transaction commands for the x/ibctransfer module.
func GetTxCmd() *cobra.Command {
cmd := &cobra.Command{
Use: types.ModuleName,
Expand Down
6 changes: 3 additions & 3 deletions x/ibc-rate-limit/genesis.go → x/ibctransfer/genesis.go
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
package ibc_rate_limit
package ibctransfer

import (
sdk "github.com/cosmos/cosmos-sdk/types"
"github.com/umee-network/umee/v3/x/ibc-rate-limit/keeper"
"github.com/umee-network/umee/v3/x/ibc-rate-limit/types"
"github.com/umee-network/umee/v3/x/ibctransfer/ratelimits/keeper"
"github.com/umee-network/umee/v3/x/ibctransfer/types"
)

// InitGenesis initializes the x/leverage module's state from a provided genesis
Expand Down
12 changes: 6 additions & 6 deletions x/ibc-rate-limit/module.go → x/ibctransfer/module.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package ibc_rate_limit
package ibctransfer

import (
"context"
Expand All @@ -13,9 +13,9 @@ import (
"github.com/grpc-ecosystem/grpc-gateway/runtime"
"github.com/spf13/cobra"
abci "github.com/tendermint/tendermint/abci/types"
"github.com/umee-network/umee/v3/x/ibc-rate-limit/client/cli"
"github.com/umee-network/umee/v3/x/ibc-rate-limit/keeper"
"github.com/umee-network/umee/v3/x/ibc-rate-limit/types"
"github.com/umee-network/umee/v3/x/ibctransfer/client/cli"
"github.com/umee-network/umee/v3/x/ibctransfer/ratelimits/keeper"
"github.com/umee-network/umee/v3/x/ibctransfer/types"
)

var (
Expand Down Expand Up @@ -140,12 +140,12 @@ func (AppModule) Route() sdk.Route {
return sdk.Route{}
}

// BeginBlock executes all ABCI BeginBlock logic respective to the x/ibc-rate-limit module.
// BeginBlock executes all ABCI BeginBlock logic respective to the x/ibctransfer module.
func (am AppModule) BeginBlock(ctx sdk.Context, _ abci.RequestBeginBlock) {
BeginBlock(ctx, am.keeper)
}

// EndBlock executes all ABCI EndBlock logic respective to the x/ibc-rate-limit module.
// EndBlock executes all ABCI EndBlock logic respective to the x/ibctransfer module.
// It returns no validator updates.
func (am AppModule) EndBlock(ctx sdk.Context, _ abci.RequestEndBlock) []abci.ValidatorUpdate {
return EndBlocker(ctx, am.keeper)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ import (
channeltypes "github.com/cosmos/ibc-go/v5/modules/core/04-channel/types"
porttypes "github.com/cosmos/ibc-go/v5/modules/core/05-port/types"
"github.com/cosmos/ibc-go/v5/modules/core/exported"
"github.com/umee-network/umee/v3/x/ibc-rate-limit/keeper"
"github.com/umee-network/umee/v3/x/ibc-rate-limit/types"
"github.com/umee-network/umee/v3/x/ibctransfer/ratelimits/keeper"
"github.com/umee-network/umee/v3/x/ibctransfer/types"
)

type IBCMiddleware struct {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
context "context"

sdk "github.com/cosmos/cosmos-sdk/types"
"github.com/umee-network/umee/v3/x/ibc-rate-limit/types"
"github.com/umee-network/umee/v3/x/ibctransfer/types"
"google.golang.org/grpc/codes"
"google.golang.org/grpc/status"
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
storetypes "github.com/cosmos/cosmos-sdk/store/types"
sdk "github.com/cosmos/cosmos-sdk/types"
paramtypes "github.com/cosmos/cosmos-sdk/x/params/types"
"github.com/umee-network/umee/v3/x/ibc-rate-limit/types"
"github.com/umee-network/umee/v3/x/ibctransfer/types"
)

type Keeper struct {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
sdk "github.com/cosmos/cosmos-sdk/types"
govtypes "github.com/cosmos/cosmos-sdk/x/gov/types"

"github.com/umee-network/umee/v3/x/ibc-rate-limit/types"
"github.com/umee-network/umee/v3/x/ibctransfer/types"
)

var _ types.MsgServer = msgServer{}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package keeper

import (
sdk "github.com/cosmos/cosmos-sdk/types"
"github.com/umee-network/umee/v3/x/ibc-rate-limit/types"
"github.com/umee-network/umee/v3/x/ibctransfer/types"
)

// SetParams sets the x/ibc-rate-limit module's parameters.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
transfertypes "github.com/cosmos/ibc-go/v5/modules/apps/transfer/types"
"github.com/cosmos/ibc-go/v5/modules/core/exported"

"github.com/umee-network/umee/v3/x/ibc-rate-limit/types"
"github.com/umee-network/umee/v3/x/ibctransfer/types"
)

// GetRateLimitsOfIBCDenoms returns rate limits of all registered ibc denoms.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
capabilitytypes "github.com/cosmos/cosmos-sdk/x/capability/types"
ibcexported "github.com/cosmos/ibc-go/v5/modules/core/exported"

"github.com/umee-network/umee/v3/x/ibc-rate-limit/types"
"github.com/umee-network/umee/v3/x/ibctransfer/types"
)

// SendPacket wraps IBC ChannelKeeper's SendPacket function
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
9 changes: 9 additions & 0 deletions x/ibctransfer/types/expected_keepers.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ package types
import (
sdk "github.com/cosmos/cosmos-sdk/types"
"github.com/cosmos/cosmos-sdk/x/bank/types"
capabilitytypes "github.com/cosmos/cosmos-sdk/x/capability/types"
ibcexported "github.com/cosmos/ibc-go/v5/modules/core/exported"
)

// BankKeeper defines the expected x/bank keeper interface.
Expand All @@ -11,3 +13,10 @@ type BankKeeper interface {
SetDenomMetaData(ctx sdk.Context, denomMetaData types.Metadata)
IterateAllDenomMetaData(ctx sdk.Context, cb func(types.Metadata) bool)
}

// ICS4Wrapper defines the expected ICS4Wrapper for middleware
type ICS4Wrapper interface {
WriteAcknowledgement(ctx sdk.Context, chanCap *capabilitytypes.Capability, packet ibcexported.PacketI, acknowledgement ibcexported.Acknowledgement) error
SendPacket(ctx sdk.Context, channelCap *capabilitytypes.Capability, packet ibcexported.PacketI) error
GetAppVersion(ctx sdk.Context, portID, channelID string) (string, bool)
}
File renamed without changes.
Loading