Skip to content
Merged
Show file tree
Hide file tree
Changes from 4 commits
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
76 changes: 62 additions & 14 deletions app/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,10 @@ import (
"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"
)

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

if Experimental {
Expand All @@ -189,10 +194,11 @@ func init() {
govtypes.ModuleName: {authtypes.Burner},
nft.ModuleName: nil,

ibctransfertypes.ModuleName: {authtypes.Minter, authtypes.Burner},
gravitytypes.ModuleName: {authtypes.Minter, authtypes.Burner},
leveragetypes.ModuleName: {authtypes.Minter, authtypes.Burner},
oracletypes.ModuleName: nil,
ibctransfertypes.ModuleName: {authtypes.Minter, authtypes.Burner},
gravitytypes.ModuleName: {authtypes.Minter, authtypes.Burner},
leveragetypes.ModuleName: {authtypes.Minter, authtypes.Burner},
oracletypes.ModuleName: nil,
ibcratelimittypes.ModuleName: nil,
}

if Experimental {
Expand Down Expand Up @@ -242,6 +248,7 @@ type UmeeApp struct {
LeverageKeeper leveragekeeper.Keeper
OracleKeeper oraclekeeper.Keeper
bech32IbcKeeper bech32ibckeeper.Keeper
ibcRateLimitKeeper ibcratelimitkeeper.Keeper

// make scoped keepers public for testing purposes
ScopedIBCKeeper capabilitykeeper.ScopedKeeper
Expand Down Expand Up @@ -303,7 +310,7 @@ func New(
authzkeeper.StoreKey, nftkeeper.StoreKey, group.StoreKey,
ibchost.StoreKey, ibctransfertypes.StoreKey,
gravitytypes.StoreKey,
leveragetypes.StoreKey, oracletypes.StoreKey, bech32ibctypes.StoreKey,
leveragetypes.StoreKey, oracletypes.StoreKey, bech32ibctypes.StoreKey, ibcratelimittypes.StoreKey,
}
if Experimental {
storeKeys = append(storeKeys, wasm.StoreKey)
Expand Down Expand Up @@ -494,13 +501,35 @@ func New(
// If evidence needs to be handled for the app, set routes in router here and seal
app.EvidenceKeeper = *evidenceKeeper

app.ibcRateLimitKeeper = ibcratelimitkeeper.NewKeeper(
appCodec,
keys[ibcratelimittypes.StoreKey], app.GetSubspace(ibcratelimittypes.ModuleName),
app.IBCKeeper.ChannelKeeper,
authtypes.NewModuleAddress(govtypes.ModuleName).String(),
)

app.IBCKeeper = ibckeeper.NewKeeper(
appCodec,
keys[ibchost.StoreKey],
app.GetSubspace(ibchost.ModuleName),
*app.StakingKeeper,
app.UpgradeKeeper,
app.ScopedIBCKeeper,
)

// Create IBC Router
// create static IBC router, add transfer route, then set and seal it
ibcRouter := ibcporttypes.NewRouter()

// Middleware Stacks

// Create an original ICS-20 transfer keeper and AppModule and then use it to
// created an Umee wrapped ICS-20 transfer keeper and AppModule.
ibcTransferKeeper := ibctransferkeeper.NewKeeper(
appCodec,
keys[ibctransfertypes.StoreKey],
app.GetSubspace(ibctransfertypes.ModuleName),
app.IBCKeeper.ChannelKeeper,
app.ibcRateLimitKeeper, // ISC4 Wrapper: IBC Rate Limit middleware
app.IBCKeeper.ChannelKeeper,
&app.IBCKeeper.PortKeeper,
app.AccountKeeper,
Expand All @@ -509,14 +538,28 @@ func New(
)

app.UIBCTransferKeeper = uibctransferkeeper.New(ibcTransferKeeper, app.BankKeeper)
ibcTransferModule := ibctransfer.NewAppModule(ibcTransferKeeper)
uibcTransferIBCModule := uibctransfer.NewIBCModule(
ibctransfer.NewIBCModule(ibcTransferKeeper), app.UIBCTransferKeeper,

// Create Transfer Stack
// SendPacket, since it is originating from the application to core IBC:
// transferKeeper.SendPacket -> ibcratelimit.SendPacket -> channel.SendPacket

// RecvPacket, message that originates from core IBC and goes down to app, the flow is the other way
// channel.RecvPacket -> ibcratelimit.OnRecvPacket -> transfer.OnRecvPacket

// transfer stack contains (from top to bottom):
// - Umee IBC Transfer
// - IBC Rate Limit Middleware

// create IBC module from bottom to top of stack
var transferStack ibcporttypes.IBCModule
transferStack = uibctransfer.NewIBCModule(
ibctransfer.NewIBCModule(ibcTransferKeeper),
app.UIBCTransferKeeper,
)
transferStack = ibcratelimit.NewIBCMiddleware(transferStack, app.ibcRateLimitKeeper)

// create static IBC router, add transfer route, then set and seal it
ibcRouter := ibcporttypes.NewRouter()
ibcRouter.AddRoute(ibctransfertypes.ModuleName, uibcTransferIBCModule)
ibcRouter.AddRoute(ibctransfertypes.ModuleName, transferStack)
// Add transfer stack to IBC Router

ibcRouter.AddRoute(wasm.ModuleName, wasm.NewIBCHandler(app.WasmKeeper, app.IBCKeeper.ChannelKeeper))
app.IBCKeeper.SetRouter(ibcRouter)
Expand Down Expand Up @@ -595,11 +638,12 @@ func New(
groupmodule.NewAppModule(appCodec, app.GroupKeeper, app.AccountKeeper, app.BankKeeper, app.interfaceRegistry),
nftmodule.NewAppModule(appCodec, app.NFTKeeper, app.AccountKeeper, app.BankKeeper, app.interfaceRegistry),

ibcTransferModule,
ibctransfer.NewAppModule(ibcTransferKeeper),
gravity.NewAppModule(app.GravityKeeper, app.BankKeeper),
leverage.NewAppModule(appCodec, app.LeverageKeeper, app.AccountKeeper, app.BankKeeper),
oracle.NewAppModule(appCodec, app.OracleKeeper, app.AccountKeeper, app.BankKeeper),
bech32ibc.NewAppModule(appCodec, app.bech32IbcKeeper),
ibcratelimit.NewAppModule(appCodec, app.ibcRateLimitKeeper),
}
if Experimental {
appModules = append(appModules,
Expand All @@ -626,6 +670,7 @@ func New(
oracletypes.ModuleName,
gravitytypes.ModuleName,
bech32ibctypes.ModuleName,
ibcratelimittypes.ModuleName,
}
endBlockers := []string{
crisistypes.ModuleName,
Expand All @@ -641,6 +686,7 @@ func New(
leveragetypes.ModuleName,
gravitytypes.ModuleName,
bech32ibctypes.ModuleName,
ibcratelimittypes.ModuleName,
}

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

if Experimental {
beginBlockers = append(beginBlockers, wasm.ModuleName)
Expand Down Expand Up @@ -975,6 +1022,7 @@ func initParamsKeeper(
paramsKeeper.Subspace(ibchost.ModuleName)
// paramsKeeper.Subspace(icacontrollertypes.SubModuleName)
// paramsKeeper.Subspace(icahosttypes.SubModuleName)
paramsKeeper.Subspace(ibcratelimittypes.ModuleName)
paramsKeeper.Subspace(gravitytypes.ModuleName)
paramsKeeper.Subspace(leveragetypes.ModuleName)
paramsKeeper.Subspace(oracletypes.ModuleName)
Expand Down
13 changes: 13 additions & 0 deletions proto/umee/ibc_rate_limit/v1beta1/genesis.proto
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
syntax = "proto3";
package umee.ibcratelimit.v1beta1;

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

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

message GenesisState {
Params params = 1 [(gogoproto.nullable) = false];
repeated RateLimit rate_limits = 2 [(gogoproto.nullable) = false];
}
18 changes: 18 additions & 0 deletions proto/umee/ibc_rate_limit/v1beta1/ibc_rate_limit.proto
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
syntax = "proto3";
package umee.ibcratelimit.v1beta1;

import "gogoproto/gogo.proto";

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

// RateLimit
message RateLimit {
string ibc_denom = 1;
uint64 outflow_limit = 2;
uint64 window = 3;
}

// Params
message Params {
bool ibc_pause = 1;
}
15 changes: 15 additions & 0 deletions proto/umee/ibc_rate_limit/v1beta1/metadata.proto
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
syntax = "proto3";
package umee.ibcratelimit.v1beta1;

import "gogoproto/gogo.proto";

option go_package = "github.com/umee-network/umee/v3/x/ibc-rate-limit/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
message Metadata {
// fee_version defines the ICS29 fee version
string fee_version = 1 [(gogoproto.moretags) = "yaml:\"fee_version\""];
// app_version defines the underlying application version, which may or may not be a JSON encoded bytestring
string app_version = 2 [(gogoproto.moretags) = "yaml:\"app_version\""];
}
57 changes: 57 additions & 0 deletions proto/umee/ibc_rate_limit/v1beta1/query.proto
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
syntax = "proto3";
package umee.ibcratelimit.v1beta1;

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


option go_package = "github.com/umee-network/umee/v3/x/ibc-rate-limit/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";
}

// 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";
}

// 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}";
}
}

// QueryParams defines the request structure for the Params gRPC service
// handler.
message QueryParams {}

// QueryParamsResponse defines the response structure for the Params gRPC
// service handler.
message QueryParamsResponse {
Params params = 1 [(gogoproto.nullable) = false];
}

// QueryRateLimitsOfIBCDenoms defines request type
message QueryRateLimitsOfIBCDenoms{}

// QueryRateLimitsOfIBCDenomsResponse defines response type
message QueryRateLimitsOfIBCDenomsResponse{
repeated RateLimit rate_limits = 1 [(gogoproto.nullable) = false];
}

// QueryRateLimitsOfIBCDenom defines request type
message QueryRateLimitsOfIBCDenom{
string ibc_denom = 1;
}

// QueryRateLimitsOfIBCDenomResponse defines response type of QueryRateLimitsOfIBCDenom
message QueryRateLimitsOfIBCDenomResponse{
RateLimit rate_limit = 1 [(gogoproto.nullable) = false];
}
58 changes: 58 additions & 0 deletions proto/umee/ibc_rate_limit/v1beta1/tx.proto
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
syntax = "proto3";
package umee.ibcratelimit.v1beta1;


import "gogoproto/gogo.proto";
import "cosmos/msg/v1/msg.proto";
import "cosmos_proto/cosmos.proto";
import "umee/ibc_rate_limit/v1beta1/ibc_rate_limit.proto";

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

option (gogoproto.goproto_getters_all) = false;
option (gogoproto.messagename_all) = true;

// Msg defines the x/ibctransfer module's Msg service.
service Msg {
// UpdateIBCDenomsRateLimit adds new rate limits for ibc denoms or
// updates the rate limits for existed ibc denoms.
rpc UpdateIBCDenomsRateLimit(MsgUpdateIBCDenomsRateLimit) returns (MsgUpdateIBCDenomsRateLimitResponse);

// UpdateIBCTransferPauseStatus
rpc UpdateIBCTransferPauseStatus(MsgUpdateIBCTransferPauseStatus) returns (MsgUpdateIBCTransferPauseStatusResponse);
}

// MsgUpdateIBCDenomsRateLimit defines the Msg/UpdateIBCDenomsRateLimit request type.
message MsgUpdateIBCDenomsRateLimit {
option (gogoproto.goproto_getters) = false;
option (gogoproto.goproto_stringer) = false;
option (cosmos.msg.v1.signer) = "authority";

// authority is the address of the governance account.
string authority = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"];
string title = 2;
string description = 3;
// new_ibc_denoms_rate_limits defines the rate limits for ibc denoms tokens.
repeated RateLimit new_ibc_denoms_rate_limits = 4 [(gogoproto.nullable) = false];
// update_ibc_denoms_rate_limits defines the new rate limits for ibc denoms tokens.
repeated RateLimit update_ibc_denoms_rate_limits = 5 [(gogoproto.nullable) = false];
}

// MsgUpdateIBCDenomsRateLimitResponse defines response type for the Msg/UpdateIBCDenomsRateLimit
message MsgUpdateIBCDenomsRateLimitResponse {};

// MsgUpdateIBCTransferPauseStatus defines request type for UpdateIBCTransferStatus
message MsgUpdateIBCTransferPauseStatus {
option (gogoproto.goproto_getters) = false;
option (gogoproto.goproto_stringer) = false;
option (cosmos.msg.v1.signer) = "authority";
// authority is the address of the governance account.
string authority = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"];
string title = 2;
string description = 3;
// ibc_pause_status defines ibc transfer pause status
bool ibc_pause_status = 4;
}

// MsgUpdateIBCTransferPauseStatusResponse definesresponse type for Msg/MsgUpdateIBCTransferPauseStatus
message MsgUpdateIBCTransferPauseStatusResponse {}
12 changes: 12 additions & 0 deletions x/ibc-rate-limit/abci.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
package ibc_rate_limit

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"
)

// EndBlocker implements EndBlock for the x/leverage module.
func EndBlocker(ctx sdk.Context, k keeper.Keeper) []abci.ValidatorUpdate {
return []abci.ValidatorUpdate{}
}
Loading