-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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
Write back account changes after tracking delegation/undelegation for vesting accounts #8865
Merged
Merged
Changes from 1 commit
Commits
Show all changes
57 commits
Select commit
Hold shift + click to select a range
a77b0c3
write back account changes after tracking delegation/undelegation
gsora af5b275
add test case for delegated vesting amount
gsora 58c1b72
remove whitespace
gsora 6cfba52
Merge branch 'master' into gsora/track-delegation-vesting-accounts
9357165
Merge branch 'master' into gsora/track-delegation-vesting-accounts
bbe8232
Merge branch 'master' into gsora/track-delegation-vesting-accounts
jgimeno d4a4640
Merge branch 'master' into gsora/track-delegation-vesting-accounts
a58c500
check that undelegate updates the delegatedvesting amount
gsora 6e5d442
Merge branch 'master' into gsora/track-delegation-vesting-accounts
jgimeno c974a2e
Merge branch 'master' into gsora/track-delegation-vesting-accounts
fcb93b3
temp commit
jgimeno 3f979a8
add migrator code to auth module
gsora bcc5198
add: query way
fdymylja 313dc6d
Merge branch 'master' into gsora/track-delegation-vesting-accounts
c7d5798
implement first iteration of migration handling for vesting accounts …
gsora 0bbbc0a
add test
jgimeno 520a94a
next test iteration
jgimeno a9501d3
account for the case where delegations are greater than the original …
gsora aaa7a9c
delayed vesting test cases, first test case for continuous vesting
gsora c3fdb8a
add more tests
jgimeno 17e5c5a
prototype of periodic vesting account test
gsora f20a862
Merge branch 'master' into gsora/track-delegation-vesting-accounts
jgimeno 61ea15a
better function naming
gsora 204db7a
Merge remote-tracking branch 'origin/gsora/track-delegation-vesting-a…
gsora 6920bb9
correct func name
gsora e533951
handle error
gsora 0f03346
added remaining test for periodic vesting account
gsora c0cb1d2
Merge branch 'master' into gsora/track-delegation-vesting-accounts
8d2cc6c
x/auth/keeper: add test for periodic vesting
boz 80335ad
x/auth: add migrations module
boz 9a1c74a
x/auth/migrations: fix lint
boz 93b2ec9
x/auth/migrations: fixes
boz c10b189
x/auth/migrations: fix tests
boz b82d06f
Merge pull request #8946 from ovrclk/boz/track-delegation-vesting-acc…
gsora 3b70dbc
Merge remote-tracking branch 'origin/gsora/track-delegation-vesting-a…
gsora d99c22e
meaningful comment for Migrate1to2 function
gsora 327277d
re-introduced periodic vesting tests
gsora e8f906b
refactor auth migration to use the same directory tree/call style as …
gsora 2b7e14e
Merge branch 'master' into gsora/track-delegation-vesting-accounts
b40333f
check test Delegate() error
gsora 3c6489d
init test validator properly
gsora 60c41cc
remove vesting() function
gsora d9f55cd
import sorting
gsora fef2d00
properly support unbonding delegations
gsora bfc1860
more tests!
gsora 08926b1
Merge branch 'master' into gsora/track-delegation-vesting-accounts
jgimeno c44fe38
use account iterator instead of a big slice of accounts
gsora 5fdda3d
call auth keeper migrations in tests
gsora f6a602b
check delegations queries errors
gsora 0b946d6
Merge branch 'master' into gsora/track-delegation-vesting-accounts
jgimeno f928380
Merge branch 'master' into gsora/track-delegation-vesting-accounts
amaury1093 289e4c6
Merge branch 'master' into gsora/track-delegation-vesting-accounts
sahith-narahari 5d9d4f9
fix linter warnings
226ca8c
Merge branch 'master' into gsora/track-delegation-vesting-accounts
sahith-narahari 85b79b2
Merge branch 'master' into gsora/track-delegation-vesting-accounts
jgimeno f342589
rename migrate function to MigrateAccount
gsora 34b7961
Merge branch 'master' into gsora/track-delegation-vesting-accounts
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains 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
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.
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.
I'm a little unlcear how type assertions work - is
vacc
a copy ofacc
? If so, I believe you wantAs the call to
TrackUndelegation
alters the state ofvacc
notacc
.Same would be true on L449.
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.
It's the same underlying account in memory, so I do not believe it matters.
In fact, this is more or less the same as the original code: https://github.com/cosmos/cosmos-sdk/blob/v0.39.2/x/bank/internal/keeper/keeper.go#L78-L82
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.
Correct.