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

feat!: port LSM module to SDK v0.50.x #13

Open
wants to merge 40 commits into
base: release/v0.50.x
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
40 commits
Select commit Hold shift + click to select a range
4dde922
feat!: port LSM module to SDK `v0.50.x`
dusan-maksimovic Feb 9, 2024
0b4805a
feat!: port LSM module to SDK v0.50.x
dusan-maksimovic Feb 22, 2024
4ed9ed1
feat!: port LSM module to SDK v0.50.x
stana-miric Feb 23, 2024
2cd3503
feat!: port LSM module to SDK v0.50.x
stana-miric Feb 27, 2024
b6287db
feat!: lint fix
stana-miric Feb 28, 2024
404f42f
feat!: minor test fix
stana-miric Feb 29, 2024
d8bfb8a
build(deps): Bump github.com/cosmos/gogoproto from 1.4.12 to 1.5.0 (#…
dependabot[bot] Jun 6, 2024
4beb330
test: fix TokenizeShare simulation
stana-miric Jun 6, 2024
75529c2
feat!: facilitate the tokenization of vested delegation in the LSM m…
stana-miric Jun 6, 2024
009804e
refactor!: update staking code
stana-miric Jun 6, 2024
aeb1e8f
refactor(x/authz,x/feegrant): provide updated keeper in depinject (#2…
julienrbrt Jun 7, 2024
c750799
fix tests
stana-miric Jun 10, 2024
01833c2
minor fixes
stana-miric Jun 10, 2024
ed92360
chore: merge v0.50.7 into feat/lsm/v0.50.x
stana-miric Jun 10, 2024
867c65b
lint fix, cosmos api version update
stana-miric Jun 11, 2024
c5253e8
docs: Update high level overview and introduction (backport #20535) (…
mergify[bot] Jun 12, 2024
048beb8
fix cli problem
stana-miric Jun 13, 2024
e76481f
fix(math): Backport of pull requests #17352 and #18214
stana-miric Jun 13, 2024
ea16396
fix: Properly parse json in the wait-tx command. (backport #20631) (#…
mergify[bot] Jun 13, 2024
30b4f73
(Backport)fix(x/authz)!: limit expired authz grant pruning to 200 per…
stana-miric Jun 13, 2024
5e0f767
docs: remove Ineffective code block (backport #20703) (#20711)
mergify[bot] Jun 18, 2024
e97f2e3
Update x/distribution/client/cli/tx.go
stana-miric Jun 18, 2024
93b0474
Update CHANGELOG.md
stana-miric Jun 18, 2024
9b03115
Update CHANGELOG.md
stana-miric Jun 18, 2024
d6428f7
feat(client): Add flag & reading mnemonic from file (backport #20690)…
mergify[bot] Jun 18, 2024
ab3600e
chore: replace gogo protobuf imports (#15)
sainoe Jun 18, 2024
020da0a
lint and changelog comment fix
stana-miric Jun 18, 2024
5db395b
fix: nested multisig signatures using CLI (backport #20438) (#20692)
mergify[bot] Jun 19, 2024
5d349c2
feat(client/v2): get keyring from context (backport #19646) (#20727)
mergify[bot] Jun 19, 2024
0e6db14
docs(x/group): orm codespace comment (backport #20749) (#20751)
mergify[bot] Jun 23, 2024
e4c342e
feat: parse home flag earlier (backport #20771) (#20777)
mergify[bot] Jun 25, 2024
ba5b444
build(deps): Bump github.com/cometbft/cometbft from 0.38.7 to 0.38.8 …
dependabot[bot] Jun 28, 2024
1c16683
build(deps): Bump github.com/cometbft/cometbft from 0.38.8 to 0.38.9 …
dependabot[bot] Jul 2, 2024
c51f58c
fix(simulation): fix the problem of `validator set is empty after Ini…
mergify[bot] Jul 5, 2024
6986270
fix(simulation): Fix all problems `make test-sim-custom-genesis-fast`…
mergify[bot] Jul 11, 2024
c64d101
chore: prepare v0.50.8 (#20910)
julienrbrt Jul 15, 2024
e6c0d2c
Merge branch 'feature/v0.50.x-lsm' into feat/lsm/v0.50.x
MSalopek Jul 17, 2024
7c8339c
appease linter
MSalopek Jul 17, 2024
5c8fcb4
update changelogs
MSalopek Jul 17, 2024
2150531
appease linter
MSalopek Jul 17, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 0 additions & 8 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -434,14 +434,6 @@ jobs:
run: |
cd simapp
go test -mod=readonly -timeout 30m -tags='app_v1 norace ledger test_ledger_mock rocksdb_build' ./...
- 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: simapp/

test-collections:
runs-on: ubuntu-latest
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
*.swm
*.swn
*.pyc
*.fail

# private files
private[.-]*
Expand Down
40 changes: 40 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,45 @@ Ref: https://keepachangelog.com/en/1.0.0/

## [Unreleased]

## [v0.50.8-lsm](https://github.com/cosmos/cosmos-sdk/releases/tag/v0.50.8)-lsm

This is a special cosmos-sdk release with support LSM and some backports.

Previous version: [v0.47.16-ics-lsm](https://github.com/cosmos/cosmos-sdk/tree/v0.47.16-ics-lsm)
Previous feature branch: [feature/v0.47.x-ics-lsm](https://github.com/cosmos/cosmos-sdk/tree/feature/v0.47.x-ics-lsm).
Initial v0.47.x LSM update PR: [#18694](https://github.com/cosmos/cosmos-sdk/pull/18694)

## Features
* (x/staking) [#20975](https://github.com/cosmos/cosmos-sdk/pull/20975) Port x/staking LSM changes

## Improvements
Backported PRs from main that were included on [feature/v0.47.x-ics-lsm](https://github.com/cosmos/cosmos-sdk/tree/feature/v0.47.x-ics-lsm)
* https://github.com/cosmos/cosmos-sdk/pull/19056
* https://github.com/cosmos/cosmos-sdk/pull/19076
* https://github.com/cosmos/cosmos-sdk/pull/19491
* https://github.com/cosmos/cosmos-sdk/pull/19614
* https://github.com/cosmos/cosmos-sdk/pull/20444


## [v0.50.8](https://github.com/cosmos/cosmos-sdk/releases/tag/v0.50.8) - 2024-07-15

## Features

* (client) [#20690](https://github.com/cosmos/cosmos-sdk/pull/20690) Import mnemonic from file

## Improvements

* (x/authz,x/feegrant) [#20590](https://github.com/cosmos/cosmos-sdk/pull/20590) Provide updated keeper in depinject for authz and feegrant modules.
* [#20631](https://github.com/cosmos/cosmos-sdk/pull/20631) Fix json parsing in the wait-tx command.
* (x/auth) [#20438](https://github.com/cosmos/cosmos-sdk/pull/20438) Add `--skip-signature-verification` flag to multisign command to allow nested multisigs.

## Bug Fixes

* (simulation) [#17911](https://github.com/cosmos/cosmos-sdk/pull/17911) Fix all problems with executing command `make test-sim-custom-genesis-fast` for simulation test.
* (simulation) [#18196](https://github.com/cosmos/cosmos-sdk/pull/18196) Fix the problem of `validator set is empty after InitGenesis` in simulation test.

## [v0.50.7](https://github.com/cosmos/cosmos-sdk/releases/tag/v0.50.7) - 2024-06-04
* (x/authz) [#513](https://github.com/osmosis-labs/cosmos-sdk/pull/513) Limit expired authz grant pruning to 200 per block.

### Improvements

Expand Down Expand Up @@ -131,6 +169,7 @@ Ref: https://keepachangelog.com/en/1.0.0/

### Improvements

* (x/staking) [#20444](https://github.com/cosmos/cosmos-sdk/pull/20444) Disable tokenization of shares from redelegations.
* (x/bank) [#18956](https://github.com/cosmos/cosmos-sdk/pull/18956) Introduced a new `DenomOwnersByQuery` query method for `DenomOwners`, which accepts the denom value as a query string parameter, resolving issues with denoms containing slashes.
* (x/gov) [#18707](https://github.com/cosmos/cosmos-sdk/pull/18707) Improve genesis validation.
* (x/auth/tx) [#18772](https://github.com/cosmos/cosmos-sdk/pull/18772) Remove misleading gas wanted from tx simulation failure log.
Expand Down Expand Up @@ -283,6 +322,7 @@ Ref: https://keepachangelog.com/en/1.0.0/

### State Machine Breaking

* (x/staking) [#19614](https://github.com/cosmos/cosmos-sdk/pull/19614) Facilitate the tokenization of vested delegation in the LSM module.
* (x/gov) [#18146](https://github.com/cosmos/cosmos-sdk/pull/18146) Add denom check to reject denoms outside of those listed in `MinDeposit`. A new `MinDepositRatio` param is added (with a default value of `0.001`) and now deposits are required to be at least `MinDepositRatio*MinDeposit` to be accepted.
* (x/group,x/gov) [#16235](https://github.com/cosmos/cosmos-sdk/pull/16235) A group and gov proposal is rejected if the proposal metadata title and summary do not match the proposal title and summary.
* (baseapp) [#15930](https://github.com/cosmos/cosmos-sdk/pull/15930) change vote info provided by prepare and process proposal to the one in the block.
Expand Down
10 changes: 5 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -277,9 +277,9 @@ test-sim-nondeterminism-streaming:

test-sim-custom-genesis-fast:
@echo "Running custom genesis simulation..."
@echo "By default, ${HOME}/.gaiad/config/genesis.json will be used."
@cd ${CURRENT_DIR}/simapp && go test -mod=readonly -run TestFullAppSimulation -Genesis=${HOME}/.gaiad/config/genesis.json \
-Enabled=true -NumBlocks=100 -BlockSize=200 -Commit=true -Seed=99 -Period=5 -v -timeout 24h
@echo "By default, ${HOME}/.simapp/config/genesis.json will be used."
@cd ${CURRENT_DIR}/simapp && go test -mod=readonly -run TestFullAppSimulation -Genesis=${HOME}/.simapp/config/genesis.json \
-Enabled=true -NumBlocks=100 -BlockSize=200 -Commit=true -Seed=99 -Period=5 -SigverifyTx=false -v -timeout 24h

test-sim-import-export: runsim
@echo "Running application import/export simulation. This may take several minutes..."
Expand All @@ -291,8 +291,8 @@ test-sim-after-import: runsim

test-sim-custom-genesis-multi-seed: runsim
@echo "Running multi-seed custom genesis simulation..."
@echo "By default, ${HOME}/.gaiad/config/genesis.json will be used."
@cd ${CURRENT_DIR}/simapp && $(BINDIR)/runsim -Genesis=${HOME}/.gaiad/config/genesis.json -SimAppPkg=. -ExitOnFail 400 5 TestFullAppSimulation
@echo "By default, ${HOME}/.simapp/config/genesis.json will be used."
@cd ${CURRENT_DIR}/simapp && $(BINDIR)/runsim -Genesis=${HOME}/.simapp/config/genesis.json -SigverifyTx=false -SimAppPkg=. -ExitOnFail 400 5 TestFullAppSimulation

test-sim-multi-seed-long: runsim
@echo "Running long multi-seed application simulation. This may take awhile!"
Expand Down
10 changes: 4 additions & 6 deletions RELEASE_NOTES.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Cosmos SDK v0.50.7 Release Notes
# Cosmos SDK v0.50.8 Release Notes

💬 [**Release Discussion**](https://github.com/orgs/cosmos/discussions/58)

Expand All @@ -8,14 +8,12 @@ For this month patch release of the v0.50.x line, a few improvements were added

Notably, we added and fixed the following:

* Add extra checks in x/consensus `MsgUpdateParams` to prevent footguns when updating the consensus parameters.
* Forgetting a field in a x/consensus parameter change gov proposal could lead to a chain halt.
* The fix is in theory consensus breaking, but in practice, it is only a footgun prevention (the path only triggers if the proposal was executed and was invalid). Please ensure that all validators are on v0.50.7 before the execution of a `x/consensus` params update proposal.
* Remove txs from the mempool when they fail in RecheckTX
* Allow to import private key from mnemonic file using `<appd> keys add testing --recover --source ./mnemonic.txt`
* Fixed the json parsing in `simd q wait-tx`

## 📝 Changelog

Check out the [changelog](https://github.com/cosmos/cosmos-sdk/blob/v0.50.7/CHANGELOG.md) for an exhaustive list of changes, or [compare changes](https://github.com/cosmos/cosmos-sdk/compare/release/v0.50.6...v0.50.7) from the last release.
Check out the [changelog](https://github.com/cosmos/cosmos-sdk/blob/v0.50.8/CHANGELOG.md) for an exhaustive list of changes, or [compare changes](https://github.com/cosmos/cosmos-sdk/compare/v0.50.7...v0.50.8) from the last release.

Refer to the [upgrading guide](https://github.com/cosmos/cosmos-sdk/blob/release/v0.50.x/UPGRADING.md) when migrating from `v0.47.x` to `v0.50.1`.
Note, that the next SDK release, v0.51, will not include `x/params` migration, when migrating from < v0.47, v0.50.x **or** v0.47.x, is a mandatory migration.
Loading
Loading