Skip to content

Commit 9897209

Browse files
authored
Merge branch 'main' into lucas/telemetry_emit_enablement
2 parents af0ba45 + 868f948 commit 9897209

File tree

322 files changed

+15119
-2513
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

322 files changed

+15119
-2513
lines changed

.github/dependabot.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -242,6 +242,15 @@ updates:
242242
labels:
243243
- "A:automerge"
244244
- dependencies
245+
- package-ecosystem: gomod
246+
directory: "/x/epochs"
247+
schedule:
248+
interval: weekly
249+
day: wednesday
250+
time: "03:15"
251+
labels:
252+
- "A:automerge"
253+
- dependencies
245254

246255
# Dependencies should be up to date on release branch
247256
- package-ecosystem: gomod

.github/pr_labeler.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,8 @@
6262
- x/tx/**/*
6363
"C:x/upgrade":
6464
- x/upgrade/**/*
65+
"C:x/epochs":
66+
- x/epochs/**/*
6567
"Type: ADR":
6668
- docs/architecture/**/*
6769
"Type: Build":

.github/workflows/proto.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
timeout-minutes: 5
1616
steps:
1717
- uses: actions/checkout@v4
18-
- uses: bufbuild/buf-setup-action@v1.30.0
18+
- uses: bufbuild/buf-setup-action@v1.30.1
1919
- uses: bufbuild/buf-lint-action@v1
2020
with:
2121
input: "proto"
@@ -24,7 +24,7 @@ jobs:
2424
runs-on: ubuntu-latest
2525
steps:
2626
- uses: actions/checkout@v4
27-
- uses: bufbuild/buf-setup-action@v1.30.0
27+
- uses: bufbuild/buf-setup-action@v1.30.1
2828
- uses: bufbuild/buf-breaking-action@v1
2929
with:
3030
input: "proto"

.github/workflows/staticmajor.yml

Lines changed: 0 additions & 23 deletions
This file was deleted.

.github/workflows/test.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1222,3 +1222,34 @@ jobs:
12221222
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
12231223
with:
12241224
projectBaseDir: x/mint/
1225+
1226+
test-x-epochs:
1227+
runs-on: ubuntu-latest
1228+
steps:
1229+
- uses: actions/checkout@v4
1230+
- uses: actions/setup-go@v5
1231+
with:
1232+
go-version: "1.22"
1233+
check-latest: true
1234+
cache: true
1235+
cache-dependency-path: x/epochs/go.sum
1236+
- uses: technote-space/get-diff-action@v6.1.2
1237+
id: git_diff
1238+
with:
1239+
PATTERNS: |
1240+
x/epochs/**/*.go
1241+
x/epochs/go.mod
1242+
x/epochs/go.sum
1243+
- name: tests
1244+
if: env.GIT_DIFF
1245+
run: |
1246+
cd x/epochs
1247+
go test -mod=readonly -timeout 30m -coverprofile=coverage.out -covermode=atomic -tags='norace ledger test_ledger_mock' ./...
1248+
- name: sonarcloud
1249+
if: ${{ env.GIT_DIFF && !github.event.pull_request.draft && env.SONAR_TOKEN != null }}
1250+
uses: SonarSource/sonarcloud-github-action@master
1251+
env:
1252+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
1253+
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
1254+
with:
1255+
projectBaseDir: x/epochs/

CHANGELOG.md

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,9 @@ Every module contains its own CHANGELOG.md. Please refer to the module you are i
4242

4343
### Features
4444

45-
* (runtime) [#19571](https://github.com/cosmos/cosmos-sdk/pull/19571) Implement `core/router.Service` it in runtime. This service is present in all modules (when using depinject).
45+
* (runtime) [#19953](https://github.com/cosmos/cosmos-sdk/pull/19953) Implement `core/transaction.Service` in runtime.
46+
* (client) [#19905](https://github.com/cosmos/cosmos-sdk/pull/19905) Add grpc client config to `client.toml`.
47+
* (runtime) [#19571](https://github.com/cosmos/cosmos-sdk/pull/19571) Implement `core/router.Service` in runtime. This service is present in all modules (when using depinject).
4648
* (types) [#19164](https://github.com/cosmos/cosmos-sdk/pull/19164) Add a ValueCodec for the math.Uint type that can be used in collections maps.
4749
* (types) [#19281](https://github.com/cosmos/cosmos-sdk/pull/19281) Added a new method, `IsGT`, for `types.Coin`. This method is used to check if a `types.Coin` is greater than another `types.Coin`.
4850
* (client) [#18557](https://github.com/cosmos/cosmos-sdk/pull/18557) Add `--qrcode` flag to `keys show` command to support displaying keys address QR code.
@@ -94,6 +96,7 @@ Every module contains its own CHANGELOG.md. Please refer to the module you are i
9496
* (types) [#18963](https://github.com/cosmos/cosmos-sdk/pull/18963) Swap out amino json encoding of `ABCIMessageLogs` for std lib json encoding
9597
* (x/auth) [#19651](https://github.com/cosmos/cosmos-sdk/pull/19651) Allow empty public keys in `GetSignBytesAdapter`.
9698
* (x/genutil) [#19735](https://github.com/cosmos/cosmos-sdk/pull/19735) Update genesis api to match new `appmodule.HasGenesis` interface.
99+
* (server) [#19966](https://github.com/cosmos/cosmos-sdk/pull/19966) Return BlockHeader by shallow copy in server Context.
97100

98101
### Bug Fixes
99102

@@ -109,9 +112,14 @@ Every module contains its own CHANGELOG.md. Please refer to the module you are i
109112
* (crypto) [#19691](https://github.com/cosmos/cosmos-sdk/pull/19691) Fix tx sign doesn't throw an error when incorrect Ledger is used.
110113
* [#19833](https://github.com/cosmos/cosmos-sdk/pull/19833) Fix some places in which we call Remove inside a Walk.
111114
* [#19851](https://github.com/cosmos/cosmos-sdk/pull/19851) Fix some places in which we call Remove inside a Walk (x/staking and x/gov).
115+
* (baseapp) [#19970](https://github.com/cosmos/cosmos-sdk/pull/19970) Fix default config values to use no-op mempool as default.
112116

113117
### API Breaking Changes
114118

119+
* (x/genutil) [#19926](https://github.com/cosmos/cosmos-sdk/pull/19926) Removal of the Address.String() method and related changes:
120+
* Added an address codec as an argument to `CollectTxs`, `GenAppStateFromConfig`, and `AddGenesisAccount`.
121+
* Removed the `ValidatorAddressCodec` argument from `CollectGenTxsCmd`, now utilizing the context for this purpose.
122+
* Changed `ValidateAccountInGenesis` to accept a string instead of an `AccAddress`.
115123
* (server) [#19854](https://github.com/cosmos/cosmos-sdk/pull/19854) Remove `servertypes.ModuleInitFlags` types and from `server.AddCommands` as `StartCmdOptions` already achieves the same goal.
116124
* (types) [#19792](https://github.com/cosmos/cosmos-sdk/pull/19792) In `MsgSimulatorFn` `sdk.Context` argument is replaced for an `address.Codec`. It also returns an error.
117125
* (types) [#19742](https://github.com/cosmos/cosmos-sdk/pull/19742) Removes the use of `Accounts.String`
@@ -167,6 +175,7 @@ Every module contains its own CHANGELOG.md. Please refer to the module you are i
167175
* Every module has the codec already, passing it created an unneeded dependency.
168176
* Additionally, to reflect this change, the module manager does not take a codec either.
169177
* (runtime) [#19747](https://github.com/cosmos/cosmos-sdk/pull/19747) `runtime.ValidatorAddressCodec` and `runtime.ConsensusAddressCodec` have been moved to `core`.
178+
* (baseapp) [#19993](https://github.com/cosmos/cosmos-sdk/pull/19993) Indicate pruning with error code "not found" rather than "invalid request".
170179

171180
### Client Breaking Changes
172181

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -344,7 +344,7 @@ Members must:
344344
* Be active contributors to the Cosmos SDK, and furthermore should be continuously making substantial contributions
345345
to the project's codebase, review process, documentation and ADRs
346346
* Have stake in the Cosmos SDK project, represented by:
347-
* Being a client / user of the Comsos SDK
347+
* Being a client / user of the Cosmos SDK
348348
* "[giving back](https://www.debian.org/social_contract)" to the software
349349
* Delegate representation in case of vacation or absence
350350

UPGRADING.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,8 @@ There is no longer a need for the Cosmos SDK to host these protos for itself and
148148
That package containing proto v2 generated code, but the SDK now uses [buf generated go SDK instead](https://buf.build/docs/bsr/generated-sdks/go).
149149
If you were depending on `cosmossdk.io/api/tendermint`, please use the buf generated go SDK instead, or ask CometBFT host the generated proto v2 code.
150150

151+
The `codectypes.Any` has moved to `github.com/cosmos/gogoproto/types/any`. Module developers can update the `buf.gen.gogo.yaml` configuration files by adjusting the corresponding `opt` option to `Mgoogle/protobuf/any.proto=github.com/cosmos/gogoproto/types/any` for directly mapping the`Any` type to its new location. This change is optional as `codectypes.Any` is aliased to `gogoproto.Any` in the SDK.
152+
151153
### Modules
152154

153155
#### `**all**`
@@ -440,10 +442,7 @@ With the deprecation of the Amino JSON codec defined in [cosmos/gogoproto](https
440442

441443
For core SDK types equivalence is asserted by generative testing of [SignableTypes](https://github.com/cosmos/cosmos-sdk/blob/v0.50.0-beta.0/tests/integration/rapidgen/rapidgen.go#L102) in [TestAminoJSON_Equivalence](https://github.com/cosmos/cosmos-sdk/blob/v0.50.0-beta.0/tests/integration/tx/aminojson/aminojson_test.go#L94).
442444

443-
Due to the `Any` type moving to the `github.com/cosmos/gogoproto/types/any` repository, module developers must update the `buf.gen.gogo.yaml` configuration files by adjusting the corresponding `opt` option to `Mgoogle/protobuf/any.proto=github.com/cosmos/gogoproto/types/any` for correct mapping to the new `Any` type location.
444-
445-
446-
**TODO: summarize proto annotation requirements.**
445+
Read more about the available annotations [here](https://docs.cosmos.network/v0.50/build/building-modules/protobuf-annotations).
447446

448447
#### Stringer
449448

0 commit comments

Comments
 (0)