Skip to content

Commit 2fd66cf

Browse files
committed
deps: use ibc-apps rate limiter import
1 parent af4d2fd commit 2fd66cf

File tree

7 files changed

+13
-13
lines changed

7 files changed

+13
-13
lines changed

app/keepers/keepers.go

+6-6
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@ import (
55
"os"
66
"strings"
77

8-
ratelimit "github.com/Stride-Labs/ibc-rate-limiting/ratelimit"
9-
ratelimitkeeper "github.com/Stride-Labs/ibc-rate-limiting/ratelimit/keeper"
10-
ratelimittypes "github.com/Stride-Labs/ibc-rate-limiting/ratelimit/types"
8+
ratelimit "github.com/cosmos/ibc-apps/modules/rate-limiting/v8"
9+
ratelimitkeeper "github.com/cosmos/ibc-apps/modules/rate-limiting/v8/keeper"
10+
ratelimittypes "github.com/cosmos/ibc-apps/modules/rate-limiting/v8/types"
1111
feemarketkeeper "github.com/skip-mev/feemarket/x/feemarket/keeper"
1212
feemarkettypes "github.com/skip-mev/feemarket/x/feemarket/types"
1313

@@ -419,9 +419,9 @@ func NewAppKeeper(
419419

420420
// Create RateLimit keeper
421421
appKeepers.RatelimitKeeper = *ratelimitkeeper.NewKeeper(
422-
appCodec, // BinaryCodec
423-
appKeepers.keys[ratelimittypes.StoreKey], // StoreKey
424-
appKeepers.GetSubspace(ratelimittypes.ModuleName), // param Subspace
422+
appCodec, // BinaryCodec
423+
runtime.NewKVStoreService(appKeepers.keys[ratelimittypes.StoreKey]), // StoreKey
424+
appKeepers.GetSubspace(ratelimittypes.ModuleName), // param Subspace
425425
govAuthority, // authority
426426
appKeepers.BankKeeper,
427427
appKeepers.IBCKeeper.ChannelKeeper, // ChannelKeeper

app/keepers/keys.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
package keepers
22

33
import (
4-
ratelimittypes "github.com/Stride-Labs/ibc-rate-limiting/ratelimit/types"
4+
ratelimittypes "github.com/cosmos/ibc-apps/modules/rate-limiting/v8/types"
55
feemarkettypes "github.com/skip-mev/feemarket/x/feemarket/types"
66

77
routertypes "github.com/cosmos/ibc-apps/middleware/packet-forward-middleware/v8/packetforward/types"

app/modules.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
package gaia
22

33
import (
4-
ratelimittypes "github.com/Stride-Labs/ibc-rate-limiting/ratelimit/types"
4+
ratelimittypes "github.com/cosmos/ibc-apps/modules/rate-limiting/v8/types"
55
feemarket "github.com/skip-mev/feemarket/x/feemarket"
66
feemarkettypes "github.com/skip-mev/feemarket/x/feemarket/types"
77

go.mod

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,14 +18,14 @@ require (
1818
cosmossdk.io/x/tx v0.13.3
1919
cosmossdk.io/x/upgrade v0.1.4
2020
github.com/CosmWasm/wasmd v0.50.0
21-
github.com/Stride-Labs/ibc-rate-limiting v0.0.0-20240402205850-be547630b007
2221
github.com/cometbft/cometbft v0.38.9
2322
github.com/cometbft/cometbft-db v0.12.0
2423
github.com/cosmos/cosmos-db v1.0.2
2524
github.com/cosmos/cosmos-sdk v0.50.8
2625
github.com/cosmos/go-bip39 v1.0.0
2726
github.com/cosmos/gogoproto v1.5.0
2827
github.com/cosmos/ibc-apps/middleware/packet-forward-middleware/v8 v8.0.2
28+
github.com/cosmos/ibc-apps/modules/rate-limiting/v8 v8.0.0
2929
github.com/cosmos/ibc-go/modules/capability v1.0.0
3030
github.com/cosmos/ibc-go/v8 v8.3.2
3131
github.com/cosmos/interchain-security/v5 v5.1.0

go.sum

+2-2
Original file line numberDiff line numberDiff line change
@@ -258,8 +258,6 @@ github.com/OneOfOne/xxhash v1.2.2/go.mod h1:HSdplMjZKSmBqAxg5vPj2TmRDmfkzw+cTzAE
258258
github.com/Shopify/sarama v1.19.0/go.mod h1:FVkBWblsNy7DGZRfXLU0O9RCGt5g3g3yEuWXgklEdEo=
259259
github.com/Shopify/toxiproxy v2.1.4+incompatible/go.mod h1:OXgGpZ6Cli1/URJOF1DMxUHB2q5Ap20/P/eIdh4G0pI=
260260
github.com/StackExchange/wmi v0.0.0-20180116203802-5d049714c4a6/go.mod h1:3eOhrUMpNV+6aFIbp5/iudMxNCF27Vw2OZgy4xEx0Fg=
261-
github.com/Stride-Labs/ibc-rate-limiting v0.0.0-20240402205850-be547630b007 h1:6BNsNF5ZI3YPnVq+oJKbtelWoEkuplUzoQH9VTxqHp0=
262-
github.com/Stride-Labs/ibc-rate-limiting v0.0.0-20240402205850-be547630b007/go.mod h1:r2Mgt9zNLQsUWlx4OhEIzvNm+JE+4fy4h4t6xBAPv5A=
263261
github.com/VictoriaMetrics/fastcache v1.6.0/go.mod h1:0qHz5QP0GMX4pfmMA/zt5RgfNuXJrTP0zS7DqpHGGTw=
264262
github.com/VividCortex/gohistogram v1.0.0 h1:6+hBz+qvs0JOrrNhhmR7lFxo5sINxBCGXrdtl/UvroE=
265263
github.com/VividCortex/gohistogram v1.0.0/go.mod h1:Pf5mBqqDxYaXu3hDrrU+w6nw50o/4+TcAqDqk/vUH7g=
@@ -433,6 +431,8 @@ github.com/cosmos/iavl v1.1.2 h1:zL9FK7C4L/P4IF1Dm5fIwz0WXCnn7Bp1M2FxH0ayM7Y=
433431
github.com/cosmos/iavl v1.1.2/go.mod h1:jLeUvm6bGT1YutCaL2fIar/8vGUE8cPZvh/gXEWDaDM=
434432
github.com/cosmos/ibc-apps/middleware/packet-forward-middleware/v8 v8.0.2 h1:dyLNlDElY6+5zW/BT/dO/3Ad9FpQblfh+9dQpYQodbA=
435433
github.com/cosmos/ibc-apps/middleware/packet-forward-middleware/v8 v8.0.2/go.mod h1:82hPO/tRawbuFad2gPwChvpZ0JEIoNi91LwVneAYCeM=
434+
github.com/cosmos/ibc-apps/modules/rate-limiting/v8 v8.0.0 h1:AQO9NIAP3RFqvBCj7IqM/V1LCxmuvcvGUdu0RIEz/c0=
435+
github.com/cosmos/ibc-apps/modules/rate-limiting/v8 v8.0.0/go.mod h1:/ZpKJSW/SKPkFS7jTqkPVn7kOHUUfRNzu+8aS7YOL8o=
436436
github.com/cosmos/ibc-go/modules/capability v1.0.0 h1:r/l++byFtn7jHYa09zlAdSeevo8ci1mVZNO9+V0xsLE=
437437
github.com/cosmos/ibc-go/modules/capability v1.0.0/go.mod h1:D81ZxzjZAe0ZO5ambnvn1qedsFQ8lOwtqicG6liLBco=
438438
github.com/cosmos/ibc-go/v8 v8.3.2 h1:8X1oHHKt2Bh9hcExWS89rntLaCKZp2EjFTUSxKlPhGI=

tests/e2e/chain.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import (
44
"fmt"
55
"os"
66

7-
ratelimittypes "github.com/Stride-Labs/ibc-rate-limiting/ratelimit/types"
7+
ratelimittypes "github.com/cosmos/ibc-apps/modules/rate-limiting/v8/types"
88

99
tmrand "github.com/cometbft/cometbft/libs/rand"
1010

tests/e2e/query.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import (
77
"net/http"
88
"strings"
99

10-
ratelimittypes "github.com/Stride-Labs/ibc-rate-limiting/ratelimit/types"
10+
ratelimittypes "github.com/cosmos/ibc-apps/modules/rate-limiting/v8/types"
1111

1212
icacontrollertypes "github.com/cosmos/ibc-go/v8/modules/apps/27-interchain-accounts/controller/types"
1313
providertypes "github.com/cosmos/interchain-security/v5/x/ccv/provider/types"

0 commit comments

Comments
 (0)