2020-02-24 08:05:21 -08:00
|
|
|
syntax = "proto3";
|
2020-06-18 10:04:26 -07:00
|
|
|
package cosmos.mint;
|
2020-02-24 08:05:21 -08:00
|
|
|
|
2020-06-18 10:04:26 -07:00
|
|
|
option go_package = "github.com/cosmos/cosmos-sdk/x/mint/types";
|
2020-02-24 08:05:21 -08:00
|
|
|
|
2020-06-18 10:04:26 -07:00
|
|
|
import "gogoproto/gogo.proto";
|
2020-02-24 08:05:21 -08:00
|
|
|
|
|
|
|
// Minter represents the minting state.
|
|
|
|
message Minter {
|
|
|
|
// current annual inflation rate
|
|
|
|
string inflation = 1
|
|
|
|
[(gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", (gogoproto.nullable) = false];
|
|
|
|
// current annual expected provisions
|
|
|
|
string annual_provisions = 2 [
|
|
|
|
(gogoproto.moretags) = "yaml:\"annual_provisions\"",
|
|
|
|
(gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec",
|
|
|
|
(gogoproto.nullable) = false
|
|
|
|
];
|
|
|
|
}
|
|
|
|
|
|
|
|
// mint parameters
|
|
|
|
message Params {
|
|
|
|
option (gogoproto.goproto_stringer) = false;
|
|
|
|
|
|
|
|
// type of coin to mint
|
|
|
|
string mint_denom = 1;
|
|
|
|
// maximum annual change in inflation rate
|
|
|
|
string inflation_rate_change = 2 [
|
|
|
|
(gogoproto.moretags) = "yaml:\"inflation_rate_change\"",
|
|
|
|
(gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec",
|
|
|
|
(gogoproto.nullable) = false
|
|
|
|
];
|
|
|
|
// maximum inflation rate
|
|
|
|
string inflation_max = 3 [
|
|
|
|
(gogoproto.moretags) = "yaml:\"inflation_max\"",
|
|
|
|
(gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec",
|
|
|
|
(gogoproto.nullable) = false
|
|
|
|
];
|
|
|
|
// minimum inflation rate
|
|
|
|
string inflation_min = 4 [
|
|
|
|
(gogoproto.moretags) = "yaml:\"inflation_min\"",
|
|
|
|
(gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec",
|
|
|
|
(gogoproto.nullable) = false
|
|
|
|
];
|
|
|
|
// goal of percent bonded atoms
|
|
|
|
string goal_bonded = 5 [
|
|
|
|
(gogoproto.moretags) = "yaml:\"goal_bonded\"",
|
|
|
|
(gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec",
|
|
|
|
(gogoproto.nullable) = false
|
|
|
|
];
|
|
|
|
// expected blocks per year
|
|
|
|
uint64 blocks_per_year = 6 [(gogoproto.moretags) = "yaml:\"blocks_per_year\""];
|
|
|
|
}
|