-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
Separate vesting from auth, add custom vesting schedules #5040
Merged
Merged
Changes from 44 commits
Commits
Show all changes
64 commits
Select commit
Hold shift + click to select a range
40ed336
ADR 11: Generalize Gen Accounts implementation
fedekunze 90a3882
move CLI cmd to auth
fedekunze 8e92e02
delete genaccount module
fedekunze e1e4993
add some tests
fedekunze 84f92dd
more fixes
fedekunze 19fd7c8
register codec
fedekunze 7085b9c
Merge branch 'master' of https://github.com/cosmos/cosmos-sdk into fe…
fedekunze 0b6bbb5
Apply suggestions from code review
fedekunze e6bf7c4
address comments from review
fedekunze ac7aaef
Merge branch 'fedekunze/ADR-11-generalize-gen-accs' of https://github…
fedekunze e9d215a
remove genaccounts command
fedekunze 5a69363
keep legacy genaccount migrations
fedekunze 6c4b702
update genutil migration
fedekunze 4e5e1a2
format
fedekunze 6288793
migrate
fedekunze fe125bf
iterator
fedekunze e905853
feat: separate vesting from auth
karzak fb0e13d
fix: lint
karzak 1198733
Update godoc
alexanderbez f07fabc
Update godoc
alexanderbez 2979564
Remove RegisterAccountTypeCodec call from supply
alexanderbez 3636574
Merge branch 'master' into fedekunze/ADR-11-generalize-gen-accs
alexanderbez da91323
re-add RegisterAccountTypeCodec
alexanderbez 42b04ee
Update godoc
alexanderbez a65b323
Merge branch 'origin/fedekunze/ADR-11-generalize-gen-accs' into kd-se…
karzak 4a53d93
apply changes from code review
karzak 47b44d4
Merge remote-tracking branch 'origin/master' into kd-separate-vesting
karzak 97b7a05
Merge remote-tracking branch 'origin/master' into kd-separate-vesting
karzak 9dfd712
Merge remote-tracking branch 'origin/master' into kd-separate-vesting
karzak 1de8470
fix: lint
karzak d7cf2ce
Merge remote-tracking branch 'origin/master' into kd-separate-vesting
karzak a69a107
feat: add periodic vesting account to spec
karzak ab06e07
address code review comments
karzak 0e17f46
fix: lint
karzak f7b3feb
fix coin denoms in benchmark test
karzak 385d4e4
fix validation of vesting periods
karzak 88121bd
remove private methods from BaseVestingAccount
karzak 076adae
Merge remote-tracking branch 'origin' into kd-separate-vesting
karzak 2c35f8c
add simulation account generator function
karzak 836f66d
lint
karzak 29752ed
address review comments
karzak 9054871
lint
karzak 70940d0
lint
karzak 3619dd5
address review comments
karzak 655b0c1
address review comments
karzak fc06172
autogen alias file
karzak 1f72304
Merge branch 'master' into kd-separate-vesting
fedekunze d78dba5
Merge branch 'master' into kd-separate-vesting
fedekunze c40ce3b
address review comments
karzak 56a9220
lint spec
karzak e856664
address review comments
karzak 914981b
Merge branch 'master' into kd-separate-vesting
alexanderbez 9eebfb9
address review comments
karzak 3f482d4
update spec to reflect changes
karzak f2ffb05
separate vesting codec from auth
karzak 6b0629d
Merge branch 'master' into kd-separate-vesting
fedekunze 4392ae1
address review comments
karzak 3fe741e
Merge branch 'kd-separate-vesting' of github.com:Kava-Labs/cosmos-sdk…
karzak cc6fdd0
address review comments
karzak 1e6c27c
update spendable coins name for vesting accounts
karzak 432fdca
move vesting amount validation to contructor
karzak dd905b0
Update changelog
karzak e1f67c9
Merge branch 'master' into kd-separate-vesting
fedekunze a374f5f
Merge remote-tracking branch 'origin' into kd-separate-vesting
karzak 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
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
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
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
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
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
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
Oops, something went wrong.
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.
Can we avoid requiring auth to register anything related to vesting? Vesting should be completely opt-in if possible.
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.
how'd would you make it opt-in then. By defining a
module.go
in vesting?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.
The two options I see are
module.go
, which was rejected previously in e905853#r325162521vesting
to callRegisterCodec
outside the normal module manager pattern, as in ab06e07#r329289047IMO, registering vesting types in
auth
doesn't makes sense, as a downstream consumer could build an app that doesn't want vesting, and would find the inclusion of vesting an anti-pattern. The tradeoff is that it needs to be clearly communicated that submodules have to be manually registered.