-
Notifications
You must be signed in to change notification settings - Fork 608
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
Remove claim module #1301
Remove claim module #1301
Conversation
Codecov Report
@@ Coverage Diff @@
## main #1301 +/- ##
==========================================
- Coverage 20.90% 19.74% -1.17%
==========================================
Files 196 192 -4
Lines 25425 26395 +970
==========================================
- Hits 5316 5212 -104
- Misses 19118 20212 +1094
+ Partials 991 971 -20
Continue to review full report at Codecov.
|
Should we prune all the claim module's state? |
Awesome! In the upgrade handler logic, https://github.com/osmosis-labs/osmosis/blob/main/app/app.go#L424-L432 We should check that IBC channels still work gracefully across the upgrade, but I suspect it should be fine, since module additions work just fine. |
@faddat mind resolving the conflicts and we can get this merged pls? |
Lets get this merged after #1304 , and do the deletion from the store list in this PR as well |
Happy to |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added the claims deletion logic!
Now LGTM, thanks for making this PR!
@@ -257,34 +255,6 @@ Example: | |||
snapshotAccs[address] = acc | |||
} | |||
|
|||
claimGenesis := claimtypes.GenesisState{} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh this should not have been moved to a history file. We need to undo this
@@ -313,8 +283,6 @@ Example: | |||
Add(sdk.NewCoin(appparams.BaseCoinUnit, account.Staked)). | |||
Add(sdk.NewCoin(appparams.BaseCoinUnit, account.UnbondingStake)). | |||
Add(account.Bonded...). | |||
Add(account.UnclaimedAirdrop...) | |||
snapshotAccs[addr] = account |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh no, this was an error that was missed as well :/
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What do you mean error? I removed it in the backport branch. Do we need to add it back?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yeah we needed to still run snapshotAccs[addr] = account
to update the value in the map, thats what get marshalled
* Fix bug in airdrop script from claims module removal * Fix bug in the airdrop claim script, introduced from #1301 Co-authored-by: Aleksandr Bezobchuk <[email protected]>
Closes: #903
This PR: