refactor(x/rewards): move state to use collections#475
Merged
Conversation
# Conflicts: # x/rewards/ante/min_cons_fee_test.go # x/rewards/keeper/grpc_query_test.go # x/rewards/keeper/withdraw_test.go
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## main #475 +/- ##
==========================================
- Coverage 69.38% 66.00% -3.39%
==========================================
Files 70 63 -7
Lines 4139 3901 -238
==========================================
- Hits 2872 2575 -297
- Misses 1163 1199 +36
- Partials 104 127 +23
☔ View full report in Codecov by Sentry. |
zanicar
reviewed
Nov 2, 2023
zanicar
reviewed
Nov 2, 2023
zanicar
approved these changes
Nov 2, 2023
zanicar
left a comment
Contributor
There was a problem hiding this comment.
Some nitpick comments about cases where we have err == nil:
Other than that LGTM!
zanicar
approved these changes
Nov 6, 2023
spoo-bar
pushed a commit
that referenced
this pull request
Jan 22, 2024
* state works in a backwards compatible manner * migrate contract metadata to use collections * move params in a backwards compatible way * move params to use collections * flat fees moved in backwards compatible way * move flat fees fully to use collections * flat fee keys cleanup * move min cons fee in a non state breaking way * move min cons fee to use collections fully * cleanup keys.go * move blockrewards to collections in a state compatible way * move genesis to use collections * move more code to use collections * remove more code * move DeleteBLockRewardsCascade from State to Keeper * move tx rewards to collections in a safe way * more of TxRewards state moved to collections * fully migrate TxRewards to collections * checkpoint * remove GetRewardsByRewardAddr in state_rewards_record.go * remove CreateRewardsRecord in state_rewards_record.go * remove more from state_rewards_record.go * tmp commit * remove all unneeded things * finalise fast removal * fix prefix and cleanup * lint fully + CHANGELOG.md * address nits
spoo-bar
added a commit
that referenced
this pull request
Jan 23, 2024
* refactor(x/rewards): move state to use collections (#475) * state works in a backwards compatible manner * migrate contract metadata to use collections * move params in a backwards compatible way * move params to use collections * flat fees moved in backwards compatible way * move flat fees fully to use collections * flat fee keys cleanup * move min cons fee in a non state breaking way * move min cons fee to use collections fully * cleanup keys.go * move blockrewards to collections in a state compatible way * move genesis to use collections * move more code to use collections * remove more code * move DeleteBLockRewardsCascade from State to Keeper * move tx rewards to collections in a safe way * more of TxRewards state moved to collections * fully migrate TxRewards to collections * checkpoint * remove GetRewardsByRewardAddr in state_rewards_record.go * remove CreateRewardsRecord in state_rewards_record.go * remove more from state_rewards_record.go * tmp commit * remove all unneeded things * finalise fast removal * fix prefix and cleanup * lint fully + CHANGELOG.md * address nits * feat(rewards): enhance withdrawal of rewards developer experience (#502) * add proto files and backwards compat test * add changes + tests to distribution * lint * CHANGELOG.md --------- Signed-off-by: Frojdi Dymylja <33157909+fdymylja@users.noreply.github.com> * docs: ADR-008 – Improvements on rewards withdrawal experience. (#462) * add withdrawal ux improvements adr * Update ADR-008-withdrawal-ux-improvements.md Signed-off-by: Frojdi Dymylja <33157909+fdymylja@users.noreply.github.com> * Update CHANGELOG.md --------- Signed-off-by: Frojdi Dymylja <33157909+fdymylja@users.noreply.github.com> Co-authored-by: Spoorthi Satheesha <9302666+spoo-bar@users.noreply.github.com> * running swagger gen --------- Signed-off-by: Frojdi Dymylja <33157909+fdymylja@users.noreply.github.com> Co-authored-by: Frojdi Dymylja <33157909+fdymylja@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.