Skip to content

Commit e0d15c2

Browse files
authored
Merge branch 'main' into docs/add-v19
2 parents 9fe1134 + 8535cad commit e0d15c2

21 files changed

+51
-77
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
- Bump [ibc-rate-limiting](https://github.com/cosmos/ibc-apps/blob/main/modules/rate-limiting) to
2+
[v8](https://github.com/cosmos/ibc-apps/releases/tag/modules/rate-limiting/v8.0.0)
3+
([\#3227](https://github.com/cosmos/gaia/pull/3227))

.github/dependabot.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ updates:
2121
directory: "/"
2222
schedule:
2323
interval: daily
24-
target-branch: "release/v17.2.x"
24+
target-branch: "release/v18.1.x"
2525
# Only allow automated security-related dependency updates on release branches.
2626
open-pull-requests-limit: 0
2727
labels:
@@ -31,8 +31,8 @@ updates:
3131
directory: "/"
3232
schedule:
3333
interval: daily
34-
target-branch: "release/v18.x"
34+
target-branch: "release/v19.x"
3535
# Only allow automated security-related dependency updates on release branches.
3636
open-pull-requests-limit: 0
3737
labels:
38-
- dependencies
38+
- dependencies

.github/workflows/docker-push.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ jobs:
3232
if: "${{ env.GITHUB_EVENT_NAME != 'schedule' }}"
3333

3434
- name: Log in to the Container registry
35-
uses: docker/login-action@v3.2.0
35+
uses: docker/login-action@v3.3.0
3636
with:
3737
registry: ${{ env.REGISTRY }}
3838
username: ${{ github.actor }}
@@ -46,7 +46,7 @@ jobs:
4646
flavor: "latest=false"
4747

4848
- name: Build and push docker image
49-
uses: docker/build-push-action@v6.3.0
49+
uses: docker/build-push-action@v6.4.1
5050
with:
5151
context: .
5252
file: Dockerfile

.mergify.yml

+6-15
Original file line numberDiff line numberDiff line change
@@ -24,29 +24,20 @@ pull_request_rules:
2424
{{ title }} (#{{ number }})
2525
{{ body }}
2626
27-
- name: Backport patches to the release/v17.3.x branch
28-
conditions:
29-
- base=main
30-
- label=A:backport/v17.3.x
31-
actions:
32-
backport:
33-
branches:
34-
- release/v17.3.x
35-
36-
- name: Backport patches to the release/v18.x branch
27+
- name: Backport patches to the release/v18.1.x branch
3728
conditions:
3829
- base=main
39-
- label=A:backport/v18.x
30+
- label=A:backport/v18.1.x
4031
actions:
4132
backport:
4233
branches:
43-
- release/v18.x
34+
- release/v18.1.x
4435

45-
- name: Backport patches to the release/v18.1.x branch
36+
- name: Backport patches to the release/v19.x branch
4637
conditions:
4738
- base=main
48-
- label=A:backport/v18.1.x
39+
- label=A:backport/v19.x
4940
actions:
5041
backport:
5142
branches:
52-
- release/v18.1.x
43+
- release/v19.x

RELEASE_PROCESS.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,7 @@ The intention of the Stable Release Policy is to ensure that all major release s
242242
are maintained with the following categories of fixes:
243243
244244
- Tooling improvements (including code formatting, linting, static analysis and updates to testing frameworks)
245-
- Performance enhancements for running archival and synching nodes
245+
- Performance enhancements for running archival and syncing nodes
246246
- Test and benchmarking suites, ensuring that fixes are sound and there are no performance regressions
247247
- Library updates including point releases for core libraries such as IBC-Go, Cosmos SDK, Tendermint and other dependencies
248248
- General maintenance improvements, that are deemed necessary by the stewarding team, that help align different releases and reduce the workload on the stewarding team

ante/gov_vote_ante.go

-1
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,6 @@ func (g GovVoteDecorator) ValidateVoteMsgs(ctx sdk.Context, msgs []sdk.Msg) erro
103103
// break the iteration if maxDelegationsChecked were already checked
104104
return delegationCount >= maxDelegationsChecked
105105
})
106-
107106
if err != nil {
108107
return err
109108
}

app/keepers/keepers.go

+6-6
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,15 @@ 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"
118
feemarketkeeper "github.com/skip-mev/feemarket/x/feemarket/keeper"
129
feemarkettypes "github.com/skip-mev/feemarket/x/feemarket/types"
1310

1411
pfmrouter "github.com/cosmos/ibc-apps/middleware/packet-forward-middleware/v8/packetforward"
1512
pfmrouterkeeper "github.com/cosmos/ibc-apps/middleware/packet-forward-middleware/v8/packetforward/keeper"
1613
pfmroutertypes "github.com/cosmos/ibc-apps/middleware/packet-forward-middleware/v8/packetforward/types"
14+
ratelimit "github.com/cosmos/ibc-apps/modules/rate-limiting/v8"
15+
ratelimitkeeper "github.com/cosmos/ibc-apps/modules/rate-limiting/v8/keeper"
16+
ratelimittypes "github.com/cosmos/ibc-apps/modules/rate-limiting/v8/types"
1717
capabilitykeeper "github.com/cosmos/ibc-go/modules/capability/keeper"
1818
capabilitytypes "github.com/cosmos/ibc-go/modules/capability/types"
1919
ica "github.com/cosmos/ibc-go/v8/modules/apps/27-interchain-accounts"
@@ -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,10 +1,10 @@
11
package keepers
22

33
import (
4-
ratelimittypes "github.com/Stride-Labs/ibc-rate-limiting/ratelimit/types"
54
feemarkettypes "github.com/skip-mev/feemarket/x/feemarket/types"
65

76
routertypes "github.com/cosmos/ibc-apps/middleware/packet-forward-middleware/v8/packetforward/types"
7+
ratelimittypes "github.com/cosmos/ibc-apps/modules/rate-limiting/v8/types"
88
capabilitytypes "github.com/cosmos/ibc-go/modules/capability/types"
99
icacontrollertypes "github.com/cosmos/ibc-go/v8/modules/apps/27-interchain-accounts/controller/types"
1010
icahosttypes "github.com/cosmos/ibc-go/v8/modules/apps/27-interchain-accounts/host/types"

app/modules.go

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

33
import (
4-
ratelimittypes "github.com/Stride-Labs/ibc-rate-limiting/ratelimit/types"
54
feemarket "github.com/skip-mev/feemarket/x/feemarket"
65
feemarkettypes "github.com/skip-mev/feemarket/x/feemarket/types"
76

87
pfmroutertypes "github.com/cosmos/ibc-apps/middleware/packet-forward-middleware/v8/packetforward/types"
8+
ratelimittypes "github.com/cosmos/ibc-apps/modules/rate-limiting/v8/types"
99
"github.com/cosmos/ibc-go/modules/capability"
1010
capabilitytypes "github.com/cosmos/ibc-go/modules/capability/types"
1111
icatypes "github.com/cosmos/ibc-go/v8/modules/apps/27-interchain-accounts/types"

cmd/gaiad/cmd/root.go

+6-22
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@ import (
3737
"github.com/cosmos/cosmos-sdk/codec"
3838
addresscodec "github.com/cosmos/cosmos-sdk/codec/address"
3939
codectypes "github.com/cosmos/cosmos-sdk/codec/types"
40-
"github.com/cosmos/cosmos-sdk/crypto/keyring"
4140
"github.com/cosmos/cosmos-sdk/server"
4241
serverconfig "github.com/cosmos/cosmos-sdk/server/config"
4342
servertypes "github.com/cosmos/cosmos-sdk/server/types"
@@ -46,7 +45,7 @@ import (
4645
"github.com/cosmos/cosmos-sdk/types/tx/signing"
4746
authcmd "github.com/cosmos/cosmos-sdk/x/auth/client/cli"
4847
"github.com/cosmos/cosmos-sdk/x/auth/tx"
49-
txmodule "github.com/cosmos/cosmos-sdk/x/auth/tx/config"
48+
authtxconfig "github.com/cosmos/cosmos-sdk/x/auth/tx/config"
5049
"github.com/cosmos/cosmos-sdk/x/auth/types"
5150
banktypes "github.com/cosmos/cosmos-sdk/x/bank/types"
5251
"github.com/cosmos/cosmos-sdk/x/crisis"
@@ -86,7 +85,6 @@ func NewRootCmd() *cobra.Command {
8685
initClientCtx := client.Context{}.
8786
WithCodec(tempApplication.AppCodec()).
8887
WithInterfaceRegistry(tempApplication.InterfaceRegistry()).
89-
WithTxConfig(tempApplication.GetTxConfig()).
9088
WithLegacyAmino(tempApplication.LegacyAmino()).
9189
WithInput(os.Stdin).
9290
WithAccountRetriever(types.AccountRetriever{}).
@@ -117,10 +115,10 @@ func NewRootCmd() *cobra.Command {
117115
if !initClientCtx.Offline {
118116
txConfigOpts := tx.ConfigOptions{
119117
EnabledSignModes: append(tx.DefaultSignModes, signing.SignMode_SIGN_MODE_TEXTUAL),
120-
TextualCoinMetadataQueryFn: txmodule.NewGRPCCoinMetadataQueryFn(initClientCtx),
118+
TextualCoinMetadataQueryFn: authtxconfig.NewGRPCCoinMetadataQueryFn(initClientCtx),
121119
}
122120
txConfigWithTextual, err := tx.NewTxConfigWithOptions(
123-
codec.NewProtoCodec(tempApplication.InterfaceRegistry()),
121+
initClientCtx.Codec,
124122
txConfigOpts,
125123
)
126124
if err != nil {
@@ -142,36 +140,22 @@ func NewRootCmd() *cobra.Command {
142140

143141
initRootCmd(rootCmd, tempApplication.ModuleBasics, tempApplication.AppCodec(), tempApplication.InterfaceRegistry(), tempApplication.GetTxConfig())
144142

145-
autoCliOpts, err := enrichAutoCliOpts(tempApplication.AutoCliOpts(), initClientCtx)
146-
if err != nil {
147-
panic(err)
148-
}
149-
143+
autoCliOpts := enrichAutoCliOpts(tempApplication.AutoCliOpts(), initClientCtx)
150144
if err := autoCliOpts.EnhanceRootCommand(rootCmd); err != nil {
151145
panic(err)
152146
}
153147

154148
return rootCmd
155149
}
156150

157-
func enrichAutoCliOpts(autoCliOpts autocli.AppOptions, clientCtx client.Context) (autocli.AppOptions, error) {
151+
func enrichAutoCliOpts(autoCliOpts autocli.AppOptions, clientCtx client.Context) autocli.AppOptions {
158152
autoCliOpts.AddressCodec = addresscodec.NewBech32Codec(sdk.GetConfig().GetBech32AccountAddrPrefix())
159153
autoCliOpts.ValidatorAddressCodec = addresscodec.NewBech32Codec(sdk.GetConfig().GetBech32ValidatorAddrPrefix())
160154
autoCliOpts.ConsensusAddressCodec = addresscodec.NewBech32Codec(sdk.GetConfig().GetBech32ConsensusAddrPrefix())
161155

162-
var err error
163-
clientCtx, err = config.ReadFromClientConfig(clientCtx)
164-
if err != nil {
165-
return autocli.AppOptions{}, err
166-
}
167-
168156
autoCliOpts.ClientCtx = clientCtx
169-
autoCliOpts.Keyring, err = keyring.NewAutoCLIKeyring(clientCtx.Keyring)
170-
if err != nil {
171-
return autocli.AppOptions{}, err
172-
}
173157

174-
return autoCliOpts, nil
158+
return autoCliOpts
175159
}
176160

177161
// initCometConfig helps to override default CometBFT Config values.

cmd/gaiad/cmd/testnet_set_local_validator.go

+1-2
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,6 @@ func init() {
6363
}
6464

6565
func testnetUnsafeStartLocalValidatorCmd(ac appCreator) *cobra.Command {
66-
6766
cmd := server.StartCmd(ac.newTestingApp, gaia.DefaultNodeHome)
6867
cmd.Use = "unsafe-start-local-validator"
6968
cmd.Short = "Updates chain's application and consensus state with provided validator info and starts the node"
@@ -167,7 +166,7 @@ func (a appCreator) newTestingApp(
167166
panic(err)
168167
}
169168

170-
//Update consensus state
169+
// Update consensus state
171170
err = updateConsensusState(logger, appOpts, gaiaApp.CommitMultiStore().LatestVersion(), args)
172171
if err != nil {
173172
panic(err)

docs/docs/architecture/adr/adr-001-interchain-accounts.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ There are future releases of Interchain Accounts which are expected to be backwa
4747
## Development
4848

4949
- Integration requirements
50-
- Development has occured in [IBC-go](https://github.com/cosmos/ibc-go) and progress tracked on the project board there.
50+
- Development has occurred in [IBC-go](https://github.com/cosmos/ibc-go) and progress tracked on the project board there.
5151
- Testing (Simulations, Core Team Testing, Partner Testing)
5252
- Simulations and Core Team tested this module
5353
- Audits (Internal Dev review, Third-party review, Bug Bounty)

docs/docs/architecture/adr/adr-003-ica-controller.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ Enabling the ICA Controller module on the Hub would support various use cases. O
1818

1919
## Decision
2020

21-
The ICA Controller module will be included in the application, so the Hub will have both ICA Host and Controller modules. The implementation will use the Controller module's built-in authentication mechanism, since we don't have a need for custom authentication logic. According to this, users will directly use `MsgRegisterInterchainAccount` and `MsgSendTx` messages defined by the Controller module. The possibility provided by the Controller module to define underlaying application to have custom processing of IBC messages exchanged by the Controller module (e.g. `OnChanOpenInit`, `OnAcknowledgementPacket`, etc.) will not be used, since there is currently no need for this.
21+
The ICA Controller module will be included in the application, so the Hub will have both ICA Host and Controller modules. The implementation will use the Controller module's built-in authentication mechanism, since we don't have a need for custom authentication logic. According to this, users will directly use `MsgRegisterInterchainAccount` and `MsgSendTx` messages defined by the Controller module. The possibility provided by the Controller module to define underlying application to have custom processing of IBC messages exchanged by the Controller module (e.g. `OnChanOpenInit`, `OnAcknowledgementPacket`, etc.) will not be used, since there is currently no need for this.
2222

2323
```go
2424
// ICA Controller keeper

docs/docs/governance/best-practices.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ It will be important to balance two things: being detailed and being concise. Yo
7777

7878
Each major proposal type has a rough template available on the forum: [Text](https://forum.cosmos.network/t/about-the-signaling-text-category/5947), [community pool spend](https://forum.cosmos.network/t/about-the-community-spend-category/5949), [parameter change](https://forum.cosmos.network/t/about-the-parameter-change-category/5950), [software upgrade](https://forum.cosmos.network/t/about-the-software-upgrade-category/5951).
7979

80-
Each proposal should contain a summmary with key details about what the proposal hopes to change. If you were viewing only the summary with no other context, it should be a good start to being able to make a decision.
80+
Each proposal should contain a summary with key details about what the proposal hopes to change. If you were viewing only the summary with no other context, it should be a good start to being able to make a decision.
8181

8282
Assume that many people will stop reading at this point. However it is important to provide in-depth information. The on-chain proposal text should also include a link to an un-editable version of the text, such as an IPFS pin, and a link to where discussion about the idea is happening.
8383

docs/docs/governance/formatting.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ You can update these CosmosHub modules using `submit-legacy-proposal`:
9393
* provider
9494
:::
9595

96-
**Note:** The chages outlined here must be submitted using `submit-legacy-proposal`.
96+
**Note:** The changes outlined here must be submitted using `submit-legacy-proposal`.
9797

9898
For `param-change` proposals, there are arguably seven (7) components, though three are nested beneath 'Changes':
9999

go.mod

+4-4
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ go 1.22.3
44

55
require (
66
cosmossdk.io/api v0.7.5
7-
cosmossdk.io/client/v2 v2.0.0-beta.1.0.20240124105859-5ad1805d0e79
7+
cosmossdk.io/client/v2 v2.0.0-beta.3
88
cosmossdk.io/core v0.11.0
99
cosmossdk.io/errors v1.0.1
1010
cosmossdk.io/log v1.3.1
@@ -16,16 +16,16 @@ require (
1616
cosmossdk.io/x/evidence v0.1.1
1717
cosmossdk.io/x/feegrant v0.1.1
1818
cosmossdk.io/x/tx v0.13.3
19-
cosmossdk.io/x/upgrade v0.1.3
19+
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
@@ -34,7 +34,7 @@ require (
3434
github.com/ory/dockertest/v3 v3.10.0
3535
github.com/prometheus/client_golang v1.19.0
3636
github.com/rakyll/statik v0.1.7
37-
github.com/skip-mev/feemarket v1.0.3
37+
github.com/skip-mev/feemarket v1.0.4
3838
github.com/spf13/cast v1.6.0
3939
github.com/spf13/cobra v1.8.1
4040
github.com/spf13/pflag v1.0.5

0 commit comments

Comments
 (0)