Skip to content

Commit

Permalink
bump rate-limiting to v9
Browse files Browse the repository at this point in the history
  • Loading branch information
wllmshao committed Feb 25, 2025
1 parent 3491100 commit 2a4c7e7
Show file tree
Hide file tree
Showing 48 changed files with 63 additions and 63 deletions.
6 changes: 3 additions & 3 deletions modules/rate-limiting/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ To add the rate limit module, wire it up in `app.go` in line with the following

// Import the rate limit module
import (
"github.com/cosmos/ibc-apps/modules/rate-limiting/v8/ratelimit"
ratelimitkeeper "github.com/cosmos/ibc-apps/modules/rate-limiting/v8/ratelimit/keeper"
ratelimittypes "github.com/cosmos/ibc-apps/modules/rate-limiting/v8/ratelimit/types"
"github.com/cosmos/ibc-apps/modules/rate-limiting/v9/ratelimit"
ratelimitkeeper "github.com/cosmos/ibc-apps/modules/rate-limiting/v9/ratelimit/keeper"
ratelimittypes "github.com/cosmos/ibc-apps/modules/rate-limiting/v9/ratelimit/types"
)

...
Expand Down
2 changes: 1 addition & 1 deletion modules/rate-limiting/client/cli/query.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"fmt"
"strings"

"github.com/cosmos/ibc-apps/modules/rate-limiting/v8/types"
"github.com/cosmos/ibc-apps/modules/rate-limiting/v9/types"
"github.com/spf13/cobra"

"github.com/cosmos/cosmos-sdk/client"
Expand Down
6 changes: 3 additions & 3 deletions modules/rate-limiting/depinject.go
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
package ratelimit

import (
modulev1 "github.com/cosmos/ibc-apps/modules/rate-limiting/v8/api/ratelimit/module/v1"
"github.com/cosmos/ibc-apps/modules/rate-limiting/v8/keeper"
"github.com/cosmos/ibc-apps/modules/rate-limiting/v8/types"
modulev1 "github.com/cosmos/ibc-apps/modules/rate-limiting/v9/api/ratelimit/module/v1"
"github.com/cosmos/ibc-apps/modules/rate-limiting/v9/keeper"
"github.com/cosmos/ibc-apps/modules/rate-limiting/v9/types"

"cosmossdk.io/core/appmodule"
"cosmossdk.io/core/store"
Expand Down
2 changes: 1 addition & 1 deletion modules/rate-limiting/e2e/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ replace (
github.com/ChainSafe/go-schnorrkel => github.com/ChainSafe/go-schnorrkel v0.0.0-20200405005733-88cbf1b4c40d
github.com/ChainSafe/go-schnorrkel/1 => github.com/ChainSafe/go-schnorrkel v1.0.0
github.com/btcsuite/btcd => github.com/btcsuite/btcd v0.22.2 //indirect
github.com/cosmos/ibc-apps/modules/rate-limiting/v8 => ../
github.com/cosmos/ibc-apps/modules/rate-limiting/v9 => ../
github.com/gogo/protobuf => github.com/regen-network/protobuf v1.3.3-alpha.regen.1
github.com/vedhavyas/go-subkey => github.com/strangelove-ventures/go-subkey v1.0.7
)
Expand Down
2 changes: 1 addition & 1 deletion modules/rate-limiting/go.mod
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module github.com/cosmos/ibc-apps/modules/rate-limiting/v8
module github.com/cosmos/ibc-apps/modules/rate-limiting/v9

go 1.23.6

Expand Down
2 changes: 1 addition & 1 deletion modules/rate-limiting/ibc_middleware.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package ratelimit
import (
"fmt"

"github.com/cosmos/ibc-apps/modules/rate-limiting/v8/keeper"
"github.com/cosmos/ibc-apps/modules/rate-limiting/v9/keeper"

sdk "github.com/cosmos/cosmos-sdk/types"

Expand Down
2 changes: 1 addition & 1 deletion modules/rate-limiting/keeper/abci_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"fmt"
"time"

"github.com/cosmos/ibc-apps/modules/rate-limiting/v8/types"
"github.com/cosmos/ibc-apps/modules/rate-limiting/v9/types"

sdkmath "cosmossdk.io/math"
)
Expand Down
2 changes: 1 addition & 1 deletion modules/rate-limiting/keeper/blacklist.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package keeper

import (
"github.com/cosmos/ibc-apps/modules/rate-limiting/v8/types"
"github.com/cosmos/ibc-apps/modules/rate-limiting/v9/types"

"cosmossdk.io/store/prefix"

Expand Down
2 changes: 1 addition & 1 deletion modules/rate-limiting/keeper/epoch.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package keeper

import (
"github.com/cosmos/ibc-apps/modules/rate-limiting/v8/types"
"github.com/cosmos/ibc-apps/modules/rate-limiting/v9/types"

"github.com/cosmos/cosmos-sdk/runtime"
sdk "github.com/cosmos/cosmos-sdk/types"
Expand Down
2 changes: 1 addition & 1 deletion modules/rate-limiting/keeper/epoch_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package keeper_test
import (
"time"

"github.com/cosmos/ibc-apps/modules/rate-limiting/v8/types"
"github.com/cosmos/ibc-apps/modules/rate-limiting/v9/types"
)

// Tests Get/Set Hour epoch
Expand Down
2 changes: 1 addition & 1 deletion modules/rate-limiting/keeper/events.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package keeper
import (
"strings"

"github.com/cosmos/ibc-apps/modules/rate-limiting/v8/types"
"github.com/cosmos/ibc-apps/modules/rate-limiting/v9/types"

sdkmath "cosmossdk.io/math"

Expand Down
2 changes: 1 addition & 1 deletion modules/rate-limiting/keeper/flow.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package keeper

import (
"github.com/cosmos/ibc-apps/modules/rate-limiting/v8/types"
"github.com/cosmos/ibc-apps/modules/rate-limiting/v9/types"

errorsmod "cosmossdk.io/errors"
sdkmath "cosmossdk.io/math"
Expand Down
4 changes: 2 additions & 2 deletions modules/rate-limiting/keeper/flow_test.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package keeper_test

import (
"github.com/cosmos/ibc-apps/modules/rate-limiting/v8/keeper"
"github.com/cosmos/ibc-apps/modules/rate-limiting/v8/types"
"github.com/cosmos/ibc-apps/modules/rate-limiting/v9/keeper"
"github.com/cosmos/ibc-apps/modules/rate-limiting/v9/types"

sdkmath "cosmossdk.io/math"

Expand Down
2 changes: 1 addition & 1 deletion modules/rate-limiting/keeper/genesis.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package keeper
import (
"time"

"github.com/cosmos/ibc-apps/modules/rate-limiting/v8/types"
"github.com/cosmos/ibc-apps/modules/rate-limiting/v9/types"

sdk "github.com/cosmos/cosmos-sdk/types"
)
Expand Down
2 changes: 1 addition & 1 deletion modules/rate-limiting/keeper/genesis_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"strconv"
"time"

"github.com/cosmos/ibc-apps/modules/rate-limiting/v8/types"
"github.com/cosmos/ibc-apps/modules/rate-limiting/v9/types"

sdkmath "cosmossdk.io/math"
)
Expand Down
2 changes: 1 addition & 1 deletion modules/rate-limiting/keeper/grpc_query.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package keeper
import (
"context"

"github.com/cosmos/ibc-apps/modules/rate-limiting/v8/types"
"github.com/cosmos/ibc-apps/modules/rate-limiting/v9/types"

errorsmod "cosmossdk.io/errors"

Expand Down
2 changes: 1 addition & 1 deletion modules/rate-limiting/keeper/grpc_query_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"fmt"
"time"

"github.com/cosmos/ibc-apps/modules/rate-limiting/v8/types"
"github.com/cosmos/ibc-apps/modules/rate-limiting/v9/types"

transfertypes "github.com/cosmos/ibc-go/v10/modules/apps/transfer/types"
clienttypes "github.com/cosmos/ibc-go/v10/modules/core/02-client/types"
Expand Down
2 changes: 1 addition & 1 deletion modules/rate-limiting/keeper/keeper.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package keeper
import (
"fmt"

"github.com/cosmos/ibc-apps/modules/rate-limiting/v8/types"
"github.com/cosmos/ibc-apps/modules/rate-limiting/v9/types"

"cosmossdk.io/core/store"
"cosmossdk.io/log"
Expand Down
4 changes: 2 additions & 2 deletions modules/rate-limiting/keeper/keeper_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ package keeper_test
import (
"testing"

"github.com/cosmos/ibc-apps/modules/rate-limiting/v8/testing/simapp/apptesting"
"github.com/cosmos/ibc-apps/modules/rate-limiting/v8/types"
"github.com/cosmos/ibc-apps/modules/rate-limiting/v9/testing/simapp/apptesting"
"github.com/cosmos/ibc-apps/modules/rate-limiting/v9/types"
"github.com/stretchr/testify/suite"
)

Expand Down
2 changes: 1 addition & 1 deletion modules/rate-limiting/keeper/msg_server.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package keeper
import (
"context"

"github.com/cosmos/ibc-apps/modules/rate-limiting/v8/types"
"github.com/cosmos/ibc-apps/modules/rate-limiting/v9/types"

errorsmod "cosmossdk.io/errors"

Expand Down
4 changes: 2 additions & 2 deletions modules/rate-limiting/keeper/msg_server_test.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package keeper_test

import (
"github.com/cosmos/ibc-apps/modules/rate-limiting/v8/keeper"
"github.com/cosmos/ibc-apps/modules/rate-limiting/v8/types"
"github.com/cosmos/ibc-apps/modules/rate-limiting/v9/keeper"
"github.com/cosmos/ibc-apps/modules/rate-limiting/v9/types"

errorsmod "cosmossdk.io/errors"
sdkmath "cosmossdk.io/math"
Expand Down
2 changes: 1 addition & 1 deletion modules/rate-limiting/keeper/packet.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"encoding/json"
"fmt"

"github.com/cosmos/ibc-apps/modules/rate-limiting/v8/types"
"github.com/cosmos/ibc-apps/modules/rate-limiting/v9/types"

errorsmod "cosmossdk.io/errors"
sdkmath "cosmossdk.io/math"
Expand Down
4 changes: 2 additions & 2 deletions modules/rate-limiting/keeper/packet_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ import (
"fmt"
"testing"

"github.com/cosmos/ibc-apps/modules/rate-limiting/v8/keeper"
"github.com/cosmos/ibc-apps/modules/rate-limiting/v8/types"
"github.com/cosmos/ibc-apps/modules/rate-limiting/v9/keeper"
"github.com/cosmos/ibc-apps/modules/rate-limiting/v9/types"
"github.com/stretchr/testify/require"

sdkmath "cosmossdk.io/math"
Expand Down
2 changes: 1 addition & 1 deletion modules/rate-limiting/keeper/params.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package keeper

import (
"github.com/cosmos/ibc-apps/modules/rate-limiting/v8/types"
"github.com/cosmos/ibc-apps/modules/rate-limiting/v9/types"

sdk "github.com/cosmos/cosmos-sdk/types"
)
Expand Down
2 changes: 1 addition & 1 deletion modules/rate-limiting/keeper/pending_send.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"fmt"
"strings"

"github.com/cosmos/ibc-apps/modules/rate-limiting/v8/types"
"github.com/cosmos/ibc-apps/modules/rate-limiting/v9/types"

"cosmossdk.io/store/prefix"
storetypes "cosmossdk.io/store/types"
Expand Down
2 changes: 1 addition & 1 deletion modules/rate-limiting/keeper/rate_limit.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package keeper

import (
"github.com/cosmos/ibc-apps/modules/rate-limiting/v8/types"
"github.com/cosmos/ibc-apps/modules/rate-limiting/v9/types"

sdkmath "cosmossdk.io/math"
"cosmossdk.io/store/prefix"
Expand Down
2 changes: 1 addition & 1 deletion modules/rate-limiting/keeper/rate_limit_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package keeper_test
import (
"strconv"

"github.com/cosmos/ibc-apps/modules/rate-limiting/v8/types"
"github.com/cosmos/ibc-apps/modules/rate-limiting/v9/types"

sdkmath "cosmossdk.io/math"
)
Expand Down
2 changes: 1 addition & 1 deletion modules/rate-limiting/keeper/whitelist.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package keeper

import (
"github.com/cosmos/ibc-apps/modules/rate-limiting/v8/types"
"github.com/cosmos/ibc-apps/modules/rate-limiting/v9/types"

"cosmossdk.io/store/prefix"

Expand Down
2 changes: 1 addition & 1 deletion modules/rate-limiting/keeper/whitelist_test.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package keeper_test

import "github.com/cosmos/ibc-apps/modules/rate-limiting/v8/types"
import "github.com/cosmos/ibc-apps/modules/rate-limiting/v9/types"

func (s *KeeperTestSuite) TestAddressWhitelist() {
// Store addresses in whitelist
Expand Down
6 changes: 3 additions & 3 deletions modules/rate-limiting/module.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ import (
"encoding/json"
"fmt"

"github.com/cosmos/ibc-apps/modules/rate-limiting/v8/client/cli"
"github.com/cosmos/ibc-apps/modules/rate-limiting/v8/keeper"
"github.com/cosmos/ibc-apps/modules/rate-limiting/v8/types"
"github.com/cosmos/ibc-apps/modules/rate-limiting/v9/client/cli"
"github.com/cosmos/ibc-apps/modules/rate-limiting/v9/keeper"
"github.com/cosmos/ibc-apps/modules/rate-limiting/v9/types"
"github.com/gorilla/mux"
"github.com/grpc-ecosystem/grpc-gateway/runtime"
"github.com/spf13/cobra"
Expand Down
2 changes: 1 addition & 1 deletion modules/rate-limiting/proto/buf.gen.pulsar.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ version: v1
managed:
enabled: true
go_package_prefix:
default: github.com/cosmos/ibc-apps/modules/rate-limiting/v8/api
default: github.com/cosmos/ibc-apps/modules/rate-limiting/v9/api
except:
- buf.build/cosmos/cosmos-proto
- buf.build/cosmos/gogo-proto
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import "cosmos/app/v1alpha1/module.proto";

// Module is the config object of the IBC Rate Limiting module.
message Module {
option (cosmos.app.v1alpha1.module) = {go_import: "github.com/cosmos/ibc-apps/modules/rate-limiting/v8"};
option (cosmos.app.v1alpha1.module) = {go_import: "github.com/cosmos/ibc-apps/modules/rate-limiting/v9"};

// authority defines the custom module authority.
string authority = 1;
Expand Down
2 changes: 1 addition & 1 deletion modules/rate-limiting/proto/ratelimit/v1/genesis.proto
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import "gogoproto/gogo.proto";
import "ratelimit/v1/params.proto";
import "ratelimit/v1/ratelimit.proto";

option go_package = "github.com/cosmos/ibc-apps/modules/rate-limiting/v8/types";
option go_package = "github.com/cosmos/ibc-apps/modules/rate-limiting/v9/types";

// GenesisState defines the ratelimit module's genesis state.
message GenesisState {
Expand Down
2 changes: 1 addition & 1 deletion modules/rate-limiting/proto/ratelimit/v1/params.proto
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
syntax = "proto3";
package ratelimit.v1;

option go_package = "github.com/cosmos/ibc-apps/modules/rate-limiting/v8/types";
option go_package = "github.com/cosmos/ibc-apps/modules/rate-limiting/v9/types";

// Params defines the ratelimit module's parameters.
message Params {}
2 changes: 1 addition & 1 deletion modules/rate-limiting/proto/ratelimit/v1/query.proto
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import "gogoproto/gogo.proto";
import "google/api/annotations.proto";
import "ratelimit/v1/ratelimit.proto";

option go_package = "github.com/cosmos/ibc-apps/modules/rate-limiting/v8/types";
option go_package = "github.com/cosmos/ibc-apps/modules/rate-limiting/v9/types";

// Query defines the gRPC querier service.
service Query {
Expand Down
2 changes: 1 addition & 1 deletion modules/rate-limiting/proto/ratelimit/v1/ratelimit.proto
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import "gogoproto/gogo.proto";
import "google/protobuf/duration.proto";
import "google/protobuf/timestamp.proto";

option go_package = "github.com/cosmos/ibc-apps/modules/rate-limiting/v8/types";
option go_package = "github.com/cosmos/ibc-apps/modules/rate-limiting/v9/types";

// PacketDirection defines whether the transfer packet is being sent from
// this chain or is being received on this chain
Expand Down
2 changes: 1 addition & 1 deletion modules/rate-limiting/proto/ratelimit/v1/tx.proto
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import "cosmos/msg/v1/msg.proto";
import "cosmos_proto/cosmos.proto";
import "gogoproto/gogo.proto";

option go_package = "github.com/cosmos/ibc-apps/modules/rate-limiting/v8/types";
option go_package = "github.com/cosmos/ibc-apps/modules/rate-limiting/v9/types";

// Msg service for rate limit txs
service Msg {
Expand Down
2 changes: 1 addition & 1 deletion modules/rate-limiting/scripts/generate.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@ buf generate --template buf.gen.gogo.yaml
buf generate --template buf.gen.pulsar.yaml
cd ..

cp -r github.com/cosmos/ibc-apps/modules/rate-limiting/v8/* ./
cp -r github.com/cosmos/ibc-apps/modules/rate-limiting/v9/* ./
rm -rf github.com
rm -rf ratelimit
8 changes: 4 additions & 4 deletions modules/rate-limiting/testing/simapp/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ import (

dbm "github.com/cosmos/cosmos-db"
"github.com/cosmos/gogoproto/proto"
ratelimit "github.com/cosmos/ibc-apps/modules/rate-limiting/v8"
ratelimitkeeper "github.com/cosmos/ibc-apps/modules/rate-limiting/v8/keeper"
ratelimittypes "github.com/cosmos/ibc-apps/modules/rate-limiting/v8/types"
ratelimitv2 "github.com/cosmos/ibc-apps/modules/rate-limiting/v8/v2"
ratelimit "github.com/cosmos/ibc-apps/modules/rate-limiting/v9"
ratelimitkeeper "github.com/cosmos/ibc-apps/modules/rate-limiting/v9/keeper"
ratelimittypes "github.com/cosmos/ibc-apps/modules/rate-limiting/v9/types"
ratelimitv2 "github.com/cosmos/ibc-apps/modules/rate-limiting/v9/v2"
"github.com/gorilla/mux"
"github.com/rakyll/statik/fs"
"github.com/spf13/cast"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package apptesting

import (
app "github.com/cosmos/ibc-apps/modules/rate-limiting/v8/testing/simapp"
app "github.com/cosmos/ibc-apps/modules/rate-limiting/v9/testing/simapp"
"github.com/stretchr/testify/suite"

upgradetypes "cosmossdk.io/x/upgrade/types"
Expand Down
2 changes: 1 addition & 1 deletion modules/rate-limiting/testing/simapp/encoding.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package simapp

import (
appparams "github.com/cosmos/ibc-apps/modules/rate-limiting/v8/testing/simapp/params"
appparams "github.com/cosmos/ibc-apps/modules/rate-limiting/v9/testing/simapp/params"

"github.com/cosmos/cosmos-sdk/std"
)
Expand Down
2 changes: 1 addition & 1 deletion modules/rate-limiting/testing/simapp/simd/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package main
import (
"os"

"github.com/cosmos/ibc-apps/modules/rate-limiting/v8/testing/simapp"
"github.com/cosmos/ibc-apps/modules/rate-limiting/v9/testing/simapp"

"cosmossdk.io/log"

Expand Down
Loading

0 comments on commit 2a4c7e7

Please sign in to comment.