Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor(x/feegrant): Rewrite feegrant ante handler as tx validator #19594

Closed
wants to merge 112 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
112 commits
Select commit Hold shift + click to select a range
bd96d6f
wip
likhita-809 Feb 29, 2024
200bb26
keep fee decorator only
likhita-809 Feb 29, 2024
19c7ed0
wip
likhita-809 Mar 4, 2024
5c541bc
small fix
likhita-809 Mar 6, 2024
e2cbb1f
go mod tidy
likhita-809 Mar 6, 2024
91aac94
add TxValidator for x/circuit
likhita-809 Mar 6, 2024
ddd34f6
update circuit TxValidator
likhita-809 Mar 6, 2024
91daa9e
Merge branch 'server_modular' of https://github.com/cosmos/cosmos-sdk…
likhita-809 Mar 6, 2024
b8f52ac
Fix few tests
likhita-809 Mar 6, 2024
e9ee4b5
wip: move FeeDecorator to auth
likhita-809 Mar 6, 2024
232da2b
address comments
likhita-809 Mar 6, 2024
529423c
update
likhita-809 Mar 6, 2024
0bdfded
wip: move fee decorator to feegrant module
likhita-809 Mar 8, 2024
6925fc6
remove auth dependency on feegrant ante
likhita-809 Mar 8, 2024
252911f
Merge branch 'server_modular' of https://github.com/cosmos/cosmos-sdk…
likhita-809 Mar 13, 2024
eb80d82
fix tests
likhita-809 Mar 13, 2024
db82004
refactor(x/**)!: genesis return errors (#19740)
chixiaowen Mar 13, 2024
7193d88
chore(proto): add module safe query warning (#19743)
tac0turtle Mar 13, 2024
7341ea6
Merge branch 'server_modular' of https://github.com/cosmos/cosmos-sdk…
likhita-809 Mar 13, 2024
069d6cf
build(deps): Bump github.com/cosmos/cosmos-sdk from 0.50.4 to 0.50.5 …
dependabot[bot] Mar 13, 2024
abfd79a
build(deps): Bump github.com/cosmos/cosmos-sdk from 0.50.4 to 0.50.5 …
dependabot[bot] Mar 13, 2024
10c1d7c
build(deps): Bump github.com/cosmos/cosmos-sdk from 0.50.4 to 0.50.5 …
dependabot[bot] Mar 13, 2024
9c47292
feat(x/gov): add expedited proposal quorum param (#19741)
julienrbrt Mar 13, 2024
5424b55
fix(crypto): error if incorrect ledger public key (#19691)
rootulp Mar 13, 2024
3ce9224
feat(x/accounts): Add new lockup account type (#19048)
sontrinh16 Mar 14, 2024
36981e6
test(client/v2): Fix `TestMsg` flakiness (#19753)
likhita-809 Mar 14, 2024
c807aae
refactor!: mv AddressCodecs aliases from runtime -> core (#19747)
kocubinski Mar 14, 2024
1b545a5
chore: fix spelling errors (#19756)
github-prbot Mar 14, 2024
d54335e
refactor: rename core.registry.LegacyRegistry -> core.registry.Interf…
kocubinski Mar 14, 2024
0cdf3cf
refactor(core): remove consensus events (#19757)
tac0turtle Mar 15, 2024
b239590
build(deps): Bump github.com/cometbft/cometbft from 0.38.5 to 0.38.6 …
dependabot[bot] Mar 15, 2024
59c5f6b
address few comments
likhita-809 Mar 15, 2024
6b1e9fc
refactor(store/db): remove unnecessary code and correct error handlin…
0x2d3c Mar 15, 2024
5a733e8
fix(x/upgrade): Stop treating inline JSON as a URL (#19706)
gibson042 Mar 16, 2024
26c1db6
fix: align signer extraction adapter for mempool remove (#19759)
mmsqe Mar 18, 2024
6f1658e
feat(core): match store interfaces (#19762)
tac0turtle Mar 18, 2024
25af567
chore: fix the flaky test in store/snapshots (#19774)
cool-develope Mar 18, 2024
ed6b3ab
fix(client/v2): fix comment parsing (#19377)
julienrbrt Mar 18, 2024
a7f9d92
build(deps): Bump github.com/creachadair/tomledit from 0.0.25 to 0.0.…
dependabot[bot] Mar 19, 2024
65ab253
refactor(x/staking)!: removes the use of Accounts String() method (#1…
JulianToledano Mar 19, 2024
a86c2a9
feat(store/v2): support rocksdb and pebbledb as RawDB (#19607)
alexanderbez Mar 19, 2024
a1bfe5d
feat(x/staking): allow zero unbonding time (#19779)
ocnc Mar 19, 2024
bfa734c
refactor(x/staking,genutil)!: use validatorUpdates (#19754)
chixiaowen Mar 19, 2024
3ed9f7f
build(deps): Bump actions/add-to-project from 0.6.0 to 0.6.1 (#19789)
dependabot[bot] Mar 20, 2024
0c2decd
refactor!: MsgSimulatorFn clean up (#19792)
JulianToledano Mar 20, 2024
0e1d620
build(deps): Bump rtCamp/action-slack-notify from 2.2.1 to 2.3.0 (#19…
dependabot[bot] Mar 20, 2024
fa19df1
refactor(x/authz)!: remove Accounts.String() (#19783)
JulianToledano Mar 20, 2024
3166ebb
store: keys as bytes (#19775)
tac0turtle Mar 20, 2024
4952cb2
chore: bump iavl and store to v1.1.0 (#19799)
tac0turtle Mar 20, 2024
27a231a
feat(store/v2): add the catch up process in the migration (#19454)
cool-develope Mar 20, 2024
3cf87f9
chore: fix typos (#19813)
xiaoxianBoy Mar 21, 2024
d67d145
build(deps): Bump github.com/pelletier/go-toml/v2 from 2.1.1 to 2.2.0…
dependabot[bot] Mar 21, 2024
13db28a
build(deps): Bump cosmossdk.io/store from 1.0.2 to 1.1.0 in /x/eviden…
dependabot[bot] Mar 21, 2024
9933a44
refactor(x/protocol): remove Accounts.String() (#19815)
JulianToledano Mar 21, 2024
8b4081f
fix(store/v2): clean up resources after the migration is completed (#…
cool-develope Mar 21, 2024
632c3f1
docs(collections): fixed typo in `collections/collections.go` (#19814)
meetrick Mar 21, 2024
32d63e0
build(deps): Bump github.com/cosmos/gogoproto from 1.4.11 to 1.4.12 (…
dependabot[bot] Mar 22, 2024
ac61b69
build(deps): Bump github.com/linxGnu/grocksdb from 1.8.12 to 1.8.14 i…
dependabot[bot] Mar 22, 2024
4599439
feat(x/gov): emit proposer address in submit proposal event (#19842)
akaladarshi Mar 24, 2024
ea7bdd1
fix: Do not call Remove during Walk (#19833)
facundomedica Mar 24, 2024
adc3432
fix(x/tx): default to using gogoproto.HybridResolver wherever possibl…
aaronc Mar 25, 2024
00b2b9d
chore: fix spelling errors (#19852)
github-prbot Mar 25, 2024
d1c3547
feat(x/gov): emit depositor in `proposal_deposit` event (#19853)
kienn6034 Mar 25, 2024
138db2b
chore: linting fixes (#19855)
tac0turtle Mar 25, 2024
c466887
chore(api): clean-up protos (#19858)
julienrbrt Mar 25, 2024
a82615b
fix: Do not call Remove during Walk - part 2 (#19851)
facundomedica Mar 25, 2024
160c418
refactor(x/gov)!: remove Accounts.String() (#19850)
JulianToledano Mar 26, 2024
23723be
build(deps): Bump github.com/creachadair/atomicfile from 0.3.3 to 0.3…
dependabot[bot] Mar 26, 2024
6e9528a
test(sims): fix test cases feegrant (#19863)
EmilGeorgiev Mar 26, 2024
6592541
refactor(x/distribution)!: remove Accounts.String() (#19868)
JulianToledano Mar 27, 2024
815c9c5
build(deps): Bump actions/add-to-project from 0.6.1 to 1.0.0 (#19877)
dependabot[bot] Mar 27, 2024
def211d
feat(server): add custom start handler (#19854)
julienrbrt Mar 27, 2024
39808e0
feat(x/tx): add custom type encoder (#19786)
pinosu Mar 27, 2024
8488733
feat(client): replace `event-query-tx-for` with `wait-tx` (#19870)
Pitasi Mar 27, 2024
6972e00
refactor(x/feegrant): remove Address.String() (#19886)
JulianToledano Mar 27, 2024
f630cfb
refactor(simapp): using maps.Clone to simplify codes (#19885)
cuiweixie Mar 28, 2024
705fad6
refactor(store,x/params): using maps.Copy (#19889)
cuiweixie Mar 28, 2024
4ef1209
build(deps): Bump github.com/prometheus/common from 0.50.0 to 0.51.1 …
dependabot[bot] Mar 28, 2024
d54e940
refactor(x/staking): use sdk validator updates (#19788)
julienrbrt Mar 28, 2024
b9c8d60
refactor: bump gogoproto (#19869)
raynaudoe Mar 28, 2024
cb5d34e
fix(x/accounts/defaults/lockup): rename lockup `go.mod` properly (#19…
julienrbrt Mar 28, 2024
80e1a45
chore: remove repetitive words (#19908)
carehabit Apr 1, 2024
f4af84f
refactor(x/group)!: remove Address.String() (#19916)
JulianToledano Apr 2, 2024
319e6e4
feat: Integrate grpc configuration into client.toml (#19905)
lucaslopezf Apr 2, 2024
dbff363
build(deps): Bump github.com/regen-network/gocuke from 1.1.0 to 1.1.1…
dependabot[bot] Apr 3, 2024
1574814
docs(x/mint): Fix inconsistency in mint docs (#19915)
likhita-809 Apr 3, 2024
fad30cd
refactor(x/genutil)!: remove Address.String() (#19926)
JulianToledano Apr 3, 2024
0e7b7fd
build(deps): Bump bufbuild/buf-setup-action from 1.30.0 to 1.30.1 (#1…
dependabot[bot] Apr 4, 2024
1028e27
feat(x/epochs): upstream osmosis epoch module (#19697)
hieuvubk Apr 4, 2024
6c66267
build(deps): Bump cosmossdk.io/store from 1.0.2 to 1.1.0 in /x/epochs…
dependabot[bot] Apr 4, 2024
edd1c71
feat(core): add `TxValidator` interface (#19950)
julienrbrt Apr 4, 2024
649dfaa
refactor(types): loosen module.AppModule interface (#19951)
julienrbrt Apr 4, 2024
15ad85d
fix(x/tx): don't shadow Amino marshalling error messages (#19955)
Pitasi Apr 4, 2024
558c950
chore: fix spelling errors (#19957)
github-prbot Apr 4, 2024
37131cf
build(deps): Bump golang.org/x/crypto from 0.21.0 to 0.22.0 (#19960)
dependabot[bot] Apr 5, 2024
ab45a85
fix(x/authz): non utf-8 characters in logs (#19923)
EmilGeorgiev Apr 5, 2024
6049684
feat(core,runtime): transaction service (exec mode) (#19953)
julienrbrt Apr 5, 2024
a6039bc
fix(x/epochs): Fix init genesis (#19958)
hieuvubk Apr 5, 2024
d881554
build(deps): Bump github.com/prometheus/common from 0.51.1 to 0.52.2 …
dependabot[bot] Apr 5, 2024
c753458
refactor(x/bank)!: remove Address.String() (#19954)
JulianToledano Apr 5, 2024
dcec6ad
test(types/address): add additional unit tests for address.LengthPref…
EmilGeorgiev Apr 5, 2024
cd24915
build(deps): Bump google.golang.org/grpc from 1.62.1 to 1.63.0 (#19929)
dependabot[bot] Apr 5, 2024
5d04deb
build(deps): Bump github.com/decred/dcrd/dcrec/secp256k1/v4 from 4.2.…
dependabot[bot] Apr 5, 2024
e5b0e0e
docs: reword upgrading.md (#19900)
julienrbrt Apr 8, 2024
b2835eb
chore: linting fixes (#19978)
tac0turtle Apr 8, 2024
f8fee96
build(deps): Bump google.golang.org/grpc from 1.63.0 to 1.63.2 (#19982)
dependabot[bot] Apr 9, 2024
9e9cc52
build(ci): Remove staticmajor due to false positives (#19989)
alpe Apr 9, 2024
a5d4c40
fix(simapp): use correct store keys for upgrade (#19987)
alpe Apr 9, 2024
bc4ca0c
docs: clarify gas-prices option (#19980)
turadg Apr 9, 2024
fc3ca2f
docs: fix typo in Contribution guide (#19994)
lukevenediger Apr 9, 2024
24d44b6
build(deps): Bump golang.org/x/sync from 0.6.0 to 0.7.0 (#19961)
dependabot[bot] Apr 10, 2024
a3fe9e3
Merge branch 'main' of https://github.com/cosmos/cosmos-sdk into likh…
likhita-809 Apr 10, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
9 changes: 9 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -242,6 +242,15 @@ updates:
labels:
- "A:automerge"
- dependencies
- package-ecosystem: gomod
directory: "/x/epochs"
schedule:
interval: weekly
day: wednesday
time: "03:15"
labels:
- "A:automerge"
- dependencies

# Dependencies should be up to date on release branch
- package-ecosystem: gomod
Expand Down
2 changes: 2 additions & 0 deletions .github/pr_labeler.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,8 @@
- x/tx/**/*
"C:x/upgrade":
- x/upgrade/**/*
"C:x/epochs":
- x/epochs/**/*
"Type: ADR":
- docs/architecture/**/*
"Type: Build":
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/issues.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
name: Add issue to project
runs-on: ubuntu-latest
steps:
- uses: actions/add-to-project@v0.6.0
- uses: actions/add-to-project@v1.0.0
with:
project-url: https://github.com/orgs/cosmos/projects/26
# add all issues opened to the issue board for triage and assignment
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/md-link-checker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
if: ${{ failure() }}
steps:
- name: Notify Slack on failure
uses: rtCamp/action-slack-notify@v2.2.1
uses: rtCamp/action-slack-notify@v2.3.0
env:
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}
SLACK_CHANNEL: sdk-sims
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/proto.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
timeout-minutes: 5
steps:
- uses: actions/checkout@v4
- uses: bufbuild/[email protected].0
- uses: bufbuild/[email protected].1
- uses: bufbuild/buf-lint-action@v1
with:
input: "proto"
Expand All @@ -24,7 +24,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: bufbuild/[email protected].0
- uses: bufbuild/[email protected].1
- uses: bufbuild/buf-breaking-action@v1
with:
input: "proto"
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Notify Slack on success
uses: rtCamp/action-slack-notify@v2.2.1
uses: rtCamp/action-slack-notify@v2.3.0
env:
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}
SLACK_CHANNEL: cosmos-tech
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/sims-047.yml
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ jobs:

- name: Notify Slack on success
if: ${{ steps.last_status.outputs.last_status == 'failure' }}
uses: rtCamp/action-slack-notify@v2.2.1
uses: rtCamp/action-slack-notify@v2.3.0
env:
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}
SLACK_CHANNEL: sdk-sims
Expand All @@ -134,7 +134,7 @@ jobs:
if: ${{ failure() }}
steps:
- name: Notify Slack on failure
uses: rtCamp/action-slack-notify@v2.2.1
uses: rtCamp/action-slack-notify@v2.3.0
env:
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}
SLACK_CHANNEL: sdk-sims
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/sims-050.yml
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ jobs:

- name: Notify Slack on success
if: ${{ steps.last_status.outputs.last_status == 'failure' }}
uses: rtCamp/action-slack-notify@v2.2.1
uses: rtCamp/action-slack-notify@v2.3.0
env:
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}
SLACK_CHANNEL: sdk-sims
Expand All @@ -134,7 +134,7 @@ jobs:
if: ${{ failure() }}
steps:
- name: Notify Slack on failure
uses: rtCamp/action-slack-notify@v2.2.1
uses: rtCamp/action-slack-notify@v2.3.0
env:
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}
SLACK_CHANNEL: sdk-sims
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/sims-nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ jobs:

- name: Notify Slack on success
if: ${{ steps.last_status.outputs.last_status == 'failure' }}
uses: rtCamp/action-slack-notify@v2.2.1
uses: rtCamp/action-slack-notify@v2.3.0
env:
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}
SLACK_CHANNEL: sdk-sims
Expand All @@ -80,7 +80,7 @@ jobs:
if: ${{ failure() }}
steps:
- name: Notify Slack on failure
uses: rtCamp/action-slack-notify@v2.2.1
uses: rtCamp/action-slack-notify@v2.3.0
env:
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}
SLACK_CHANNEL: sdk-sims
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/sims.yml
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ jobs:

- name: Notify Slack on success
if: ${{ steps.last_status.outputs.last_status == 'failure' }}
uses: rtCamp/action-slack-notify@v2.2.1
uses: rtCamp/action-slack-notify@v2.3.0
env:
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}
SLACK_CHANNEL: sdk-sims
Expand All @@ -119,7 +119,7 @@ jobs:
if: ${{ failure() }}
steps:
- name: Notify Slack on failure
uses: rtCamp/action-slack-notify@v2.2.1
uses: rtCamp/action-slack-notify@v2.3.0
env:
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}
SLACK_CHANNEL: sdk-sims
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/starship-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ jobs:

- name: Notify Slack on success
if: ${{ steps.last_status.outputs.last_status == 'failure' }}
uses: rtCamp/action-slack-notify@v2.2.1
uses: rtCamp/action-slack-notify@v2.3.0
env:
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}
SLACK_CHANNEL: sdk-sims
Expand All @@ -85,7 +85,7 @@ jobs:
if: ${{ failure() }}
steps:
- name: Notify Slack on failure
uses: rtCamp/action-slack-notify@v2.2.1
uses: rtCamp/action-slack-notify@v2.3.0
env:
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}
SLACK_CHANNEL: sdk-sims
Expand Down
23 changes: 0 additions & 23 deletions .github/workflows/staticmajor.yml

This file was deleted.

31 changes: 31 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1222,3 +1222,34 @@ jobs:
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
with:
projectBaseDir: x/mint/

test-x-epochs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: "1.22"
check-latest: true
cache: true
cache-dependency-path: x/epochs/go.sum
- uses: technote-space/[email protected]
id: git_diff
with:
PATTERNS: |
x/epochs/**/*.go
x/epochs/go.mod
x/epochs/go.sum
- name: tests
if: env.GIT_DIFF
run: |
cd x/epochs
go test -mod=readonly -timeout 30m -coverprofile=coverage.out -covermode=atomic -tags='norace ledger test_ledger_mock' ./...
- name: sonarcloud
if: ${{ env.GIT_DIFF && !github.event.pull_request.draft && env.SONAR_TOKEN != null }}
uses: SonarSource/sonarcloud-github-action@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
with:
projectBaseDir: x/epochs/
26 changes: 23 additions & 3 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,9 @@ Every module contains its own CHANGELOG.md. Please refer to the module you are i

### Features

* (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).
* (runtime) [#19953](https://github.com/cosmos/cosmos-sdk/pull/19953) Implement `core/transaction.Service` in runtime.
* (client) [#19905](https://github.com/cosmos/cosmos-sdk/pull/19905) Add grpc client config to `client.toml`.
* (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).
* (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.
* (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`.
* (client) [#18557](https://github.com/cosmos/cosmos-sdk/pull/18557) Add `--qrcode` flag to `keys show` command to support displaying keys address QR code.
Expand All @@ -54,9 +56,15 @@ Every module contains its own CHANGELOG.md. Please refer to the module you are i
* (types) [#18768](https://github.com/cosmos/cosmos-sdk/pull/18768) Add MustValAddressFromBech32 function.
* (gRPC) [#19049](https://github.com/cosmos/cosmos-sdk/pull/19049) Add debug log prints for each gRPC request.
* (x/consensus) [#19483](https://github.com/cosmos/cosmos-sdk/pull/19483) Add consensus messages registration to consensus module.
* (types) [#19759](https://github.com/cosmos/cosmos-sdk/pull/19759) Align SignerExtractionAdapter in PriorityNonceMempool Remove.
* (client) [#19870](https://github.com/cosmos/cosmos-sdk/pull/19870) Add new query command `wait-tx`. Alias `event-query-tx-for` to `wait-tx` for backward compatibility.

### Improvements

* (types) [#19869](https://github.com/cosmos/cosmos-sdk/pull/19869) Removed `Any` type from `codec/types` and replaced it with an alias for `cosmos/gogoproto/types/any`.
* (server) [#19854](https://github.com/cosmos/cosmos-sdk/pull/19854) Add customizability to start command.
* Add `StartCmdOptions` in `server.AddCommands` instead of `servertypes.ModuleInitFlags`. To set custom flags set them in the `StartCmdOptions` struct on the `AddFlags` field.
* Add `StartCommandHandler` to `StartCmdOptions` to allow custom start command handlers. Users now have total control over how the app starts.
* (types) [#19672](https://github.com/cosmos/cosmos-sdk/pull/19672) `PreBlock` now returns only an error for consistency with server/v2. The SDK has upgraded x/upgrade accordingly. `ResponsePreBlock` hence has been removed.
* (server) [#19455](https://github.com/cosmos/cosmos-sdk/pull/19455) Allow calling back into the application struct in PostSetup.
* (types) [#19512](https://github.com/cosmos/cosmos-sdk/pull/19512) The notion of basic manager does not exist anymore (and all related helpers).
Expand Down Expand Up @@ -96,9 +104,20 @@ Every module contains its own CHANGELOG.md. Please refer to the module you are i
* (simulation) [#18196](https://github.com/cosmos/cosmos-sdk/pull/18196) Fix the problem of `validator set is empty after InitGenesis` in simulation test.
* (baseapp) [#18551](https://github.com/cosmos/cosmos-sdk/pull/18551) Fix SelectTxForProposal the calculation method of tx bytes size is inconsistent with CometBFT
* (server) [#18994](https://github.com/cosmos/cosmos-sdk/pull/18994) Update server context directly rather than a reference to a sub-object
* (crypto) [#19691](https://github.com/cosmos/cosmos-sdk/pull/19691) Fix tx sign doesn't throw an error when incorrect Ledger is used.
* [#19833](https://github.com/cosmos/cosmos-sdk/pull/19833) Fix some places in which we call Remove inside a Walk.
* [#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).

### API Breaking Changes

* (x/genutil) [#19926](https://github.com/cosmos/cosmos-sdk/pull/19926) Removal of the Address.String() method and related changes:
* Added an address codec as an argument to `CollectTxs`, `GenAppStateFromConfig`, and `AddGenesisAccount`.
* Removed the `ValidatorAddressCodec` argument from `CollectGenTxsCmd`, now utilizing the context for this purpose.
* Changed `ValidateAccountInGenesis` to accept a string instead of an `AccAddress`.
* (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.
* (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.
* (types) [#19742](https://github.com/cosmos/cosmos-sdk/pull/19742) Removes the use of `Accounts.String`
* `SimulationState` now has address and validator codecs as fields.
* (types) [#19447](https://github.com/cosmos/cosmos-sdk/pull/19447) `module.testutil.MakeTestEncodingConfig` now takes `CodecOptions` as argument.
* (types) [#19512](https://github.com/cosmos/cosmos-sdk/pull/19512) Remove basic manager and all related functions (`module.BasicManager`, `module.NewBasicManager`, `module.NewBasicManagerFromManager`, `NewGenesisOnlyAppModule`).
* The module manager now can do everything that the basic manager was doing.
Expand Down Expand Up @@ -143,12 +162,13 @@ Every module contains its own CHANGELOG.md. Please refer to the module you are i
* (types) [#18607](https://github.com/cosmos/cosmos-sdk/pull/18607) Removed address verifier from global config, moved verifier function to bech32 codec.
* (server) [#18909](https://github.com/cosmos/cosmos-sdk/pull/18909) Remove configuration endpoint on grpc reflection endpoint in favour of auth module bech32prefix endpoint already exposed.
* (crypto) [#19541](https://github.com/cosmos/cosmos-sdk/pull/19541) The deprecated `FromTmProtoPublicKey`, `ToTmProtoPublicKey`, `FromTmPubKeyInterface` and `ToTmPubKeyInterface` functions have been removed. Use their replacements (`Cmt` instead of `Tm`) instead.
* (types) [#19652](https://github.com/cosmos/cosmos-sdk/pull/19652)
* (types) [#19652](https://github.com/cosmos/cosmos-sdk/pull/19652) and [#19758](https://github.com/cosmos/cosmos-sdk/pull/19758)
* Moved`types/module.HasRegisterInterfaces` to `cosmossdk.io/core`.
* Moved `RegisterInterfaces` and `RegisterImplementations` from `InterfaceRegistry` to `cosmossdk.io/core/registry.LegacyRegistry` interface.
* Moved `RegisterInterfaces` and `RegisterImplementations` from `InterfaceRegistry` to `cosmossdk.io/core/registry.InterfaceRegistrar` interface.
* (types) [#19627](https://github.com/cosmos/cosmos-sdk/pull/19627) and [#19735](https://github.com/cosmos/cosmos-sdk/pull/19735) All genesis interfaces now don't take `codec.JsonCodec`.
* Every module has the codec already, passing it created an unneeded dependency.
* Additionally, to reflect this change, the module manager does not take a codec either.
* (runtime) [#19747](https://github.com/cosmos/cosmos-sdk/pull/19747) `runtime.ValidatorAddressCodec` and `runtime.ConsensusAddressCodec` have been moved to `core`.

### Client Breaking Changes

Expand Down
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -344,7 +344,7 @@ Members must:
* Be active contributors to the Cosmos SDK, and furthermore should be continuously making substantial contributions
to the project's codebase, review process, documentation and ADRs
* Have stake in the Cosmos SDK project, represented by:
* Being a client / user of the Comsos SDK
* Being a client / user of the Cosmos SDK
* "[giving back](https://www.debian.org/social_contract)" to the software
* Delegate representation in case of vacation or absence

Expand Down
25 changes: 22 additions & 3 deletions UPGRADING.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,13 @@ clientCtx = clientCtx.

Refer to SimApp `root_v2.go` and `root.go` for an example with an app v2 and a legacy app.

Additionally, a simplification of the start command leads to the following change:

```diff
- server.AddCommands(rootCmd, newApp, func(startCmd *cobra.Command) {})
+ server.AddCommands(rootCmd, newApp, server.StartCmdOptions[servertypes.Application]{})
```

#### Server (`app.go`)

##### Module Manager
Expand Down Expand Up @@ -141,10 +148,22 @@ There is no longer a need for the Cosmos SDK to host these protos for itself and
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).
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.

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.

### Modules

#### `**all**`

##### Simulation

`MsgSimulatorFn` has been updated to return an error. Its context argument has been removed, and an address.Codec has
been added to avoid the use of the Accounts.String() method.

```diff
-type MsgSimulatorFn func(r *rand.Rand, ctx sdk.Context, accs []Account) sdk.Msg
+type MsgSimulatorFn func(r *rand.Rand, accs []Account, cdc address.Codec) (sdk.Msg, error)
```

##### Core API

Core API has been introduced for modules since v0.47. With the deprecation of `sdk.Context`, we strongly recommend to use the `cosmossdk.io/core/appmodule` interfaces for the modules. This will allow the modules to work out of the box with server/v2 and baseapp, as well as limit their dependencies on the SDK.
Expand All @@ -166,11 +185,11 @@ If your module requires a message server or query server, it should be passed in
+govKeeper := govkeeper.NewKeeper(appCodec, runtime.NewEnvironment(runtime.NewKVStoreService(keys[govtypes.StoreKey]), logger, runtime.EnvWithRouterService(app.GRPCQueryRouter(), app.MsgServiceRouter())), app.AuthKeeper, app.BankKeeper, app.StakingKeeper, app.PoolKeeper, govConfig, authtypes.NewModuleAddress(govtypes.ModuleName).String())
```

The signature of the extension interface `HasRegisterInterfaces` has been changed to accept a `cosmossdk.io/core/registry.LegacyRegistry` instead of a `codec.InterfaceRegistry`. `HasRegisterInterfaces` is now a part of `cosmossdk.io/core/appmodule`. Modules should update their `HasRegisterInterfaces` implementation to accept a `cosmossdk.io/core/registry.LegacyRegistry` interface.
The signature of the extension interface `HasRegisterInterfaces` has been changed to accept a `cosmossdk.io/core/registry.InterfaceRegistrar` instead of a `codec.InterfaceRegistry`. `HasRegisterInterfaces` is now a part of `cosmossdk.io/core/appmodule`. Modules should update their `HasRegisterInterfaces` implementation to accept a `cosmossdk.io/core/registry.InterfaceRegistrar` interface.

```diff
-func (AppModule) RegisterInterfaces(registry codectypes.InterfaceRegistry) {
+func (AppModule) RegisterInterfaces(registry registry.LegacyRegistry) {
+func (AppModule) RegisterInterfaces(registry registry.InterfaceRegistrar) {
```

##### Dependency Injection
Expand Down Expand Up @@ -423,7 +442,7 @@ With the deprecation of the Amino JSON codec defined in [cosmos/gogoproto](https

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

**TODO: summarize proto annotation requirements.**
Read more about the available annotations [here](https://docs.cosmos.network/v0.50/build/building-modules/protobuf-annotations).

#### Stringer

Expand Down
Loading
Loading