-
Notifications
You must be signed in to change notification settings - Fork 814
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
Changes from 15 commits
4570a04
48f9c81
a27fceb
045e06a
8285214
3f45403
72a7452
be26e2e
7449d33
69f574b
aea87b0
e91f12e
62458f5
e61b6d8
f0f80ee
6f1cf0b
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -31,8 +31,6 @@ func MintParser(key []byte) ([]string, error) { | |
switch { | ||
case bytes.HasPrefix(key, minttypes.MinterKey): | ||
keyItems = append(keyItems, "MinterKey") | ||
case bytes.HasPrefix(key, minttypes.LastTokenReleaseDate): | ||
keyItems = append(keyItems, "LastTokenReleaseDate") | ||
Comment on lines
-34
to
-35
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. Not needed anymore |
||
default: | ||
keyItems = append(keyItems, UNRECOGNIZED) | ||
} | ||
|
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 | ||
]; | ||
} | ||
|
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.
mighht want to revert this before merge