-
Notifications
You must be signed in to change notification settings - Fork 829
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
[mint] Update mint distribution to be daily #718
Merged
Merged
Changes from all commits
Commits
Show all changes
16 commits
Select commit
Hold shift + click to select a range
4570a04
update proto
BrandonWeng 48f9c81
Fix test
BrandonWeng a27fceb
Mints
BrandonWeng 045e06a
Address unit test comments
BrandonWeng 8285214
lint
BrandonWeng 3f45403
lint
BrandonWeng 72a7452
remove prints
BrandonWeng be26e2e
bweng-test handler
BrandonWeng 7449d33
refactor release amoujnt
BrandonWeng 69f574b
fix same day buy
BrandonWeng aea87b0
Remove
BrandonWeng e91f12e
Remove
BrandonWeng 62458f5
clean up
BrandonWeng e61b6d8
Fix
BrandonWeng f0f80ee
rename migrations
BrandonWeng 6f1cf0b
Update upgrades.go
BrandonWeng 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,6 +7,40 @@ import "gogoproto/gogo.proto"; | |
|
||
// Minter represents the most recent | ||
message Minter { | ||
string start_date = 1; // yyyy-mm-dd | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. i think we'll need to consider migration? maybe you can sync with @udpatil who did the same with x/slashing There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Ah yeah, good point, thanks! |
||
string end_date = 2; // yyyy-mm-dd | ||
string denom = 3; | ||
uint64 total_mint_amount = 4; | ||
uint64 remaining_mint_amount = 5; | ||
uint64 last_mint_amount = 6; | ||
string last_mint_date = 7; | ||
uint64 last_mint_height = 8; // yyyy-mm-dd | ||
} | ||
|
||
message ScheduledTokenRelease { | ||
string start_date = 1; // yyyy-mm-dd | ||
string end_date = 2; // yyyy-mm-dd | ||
uint64 token_release_amount = 3; | ||
} | ||
|
||
// Params holds parameters for the mint module. | ||
message Params { | ||
option (gogoproto.goproto_stringer) = false; | ||
|
||
// type of coin to mint | ||
string mint_denom = 1; | ||
// List of token release schedules | ||
repeated ScheduledTokenRelease token_release_schedule = 2 [ | ||
(gogoproto.moretags) = "yaml:\"token_release_schedule\"", | ||
(gogoproto.nullable) = false | ||
]; | ||
} | ||
|
||
|
||
// Legacy Protobufs used for migration purposes | ||
|
||
// Minter represents the most recent | ||
message Version2Minter { | ||
string last_mint_amount = 1 [ | ||
(gogoproto.moretags) = "yaml:\"last_mint_amount\"", | ||
(gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", | ||
|
@@ -23,21 +57,20 @@ message Minter { | |
]; | ||
} | ||
|
||
message ScheduledTokenRelease { | ||
message Version2ScheduledTokenRelease { | ||
string date = 1; // yyyy-mm-dd | ||
int64 token_release_amount = 2; | ||
} | ||
|
||
// Params holds parameters for the mint module. | ||
message Params { | ||
message Version2Params { | ||
option (gogoproto.goproto_stringer) = false; | ||
|
||
// type of coin to mint | ||
string mint_denom = 1; | ||
// List of token release schedules | ||
repeated ScheduledTokenRelease token_release_schedule = 2 [ | ||
repeated Version2ScheduledTokenRelease token_release_schedule = 2 [ | ||
(gogoproto.moretags) = "yaml:\"token_release_schedule\"", | ||
(gogoproto.nullable) = false | ||
]; | ||
} | ||
|
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.
Not needed anymore