The Minter message is used to store the data of the current inflation in the blockchain. The Minter entity consists of the following fields:
inflation: current inflation rate of the chain.
phase_step: Phase of inflation that the chain is working with.
phase_provisions: Expected provisions of the current phase.
truncated_tokens: Holds the truncated value of the mint calculations of the phases.
The proto for the Order Book messages is as follows:
// Minter represents the minting state.message Minter {// inflation is the current annual inflation rate.string inflation =1 [(gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec",(gogoproto.nullable) = false ];// phase_step is the index of phases slice + 1.int32 phase_step =2;// phase_provisions is the current phase expected provisions.string phase_provisions =3 [(gogoproto.moretags) = "yaml:\"phase_provisions\"",(gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec",(gogoproto.nullable) = false ];// truncated_tokens holds current truncated tokens because of Dec to Int// conversion in the minting.string truncated_tokens =4 [(gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec",(gogoproto.nullable) = false ];}
Phase
The Phase message is used to store the data of a particular phase in the parameters in the blockchain. The Phase entity consists of the following fields:
inflation: The inflation rate of the phase.
year_ocefficient: The coefficient of a year (ex. 0.75 == 9 months).
// Phase defines the phase parameters for the module.message Phase {option(gogoproto.goproto_stringer)=false;// inflation is the current phase inflation rate.string inflation =1 [(gogoproto.moretags) = "yaml:\"inflation\"",(gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec",(gogoproto.nullable) = false ];// year_coefficient is the proportion of a complete year.string year_coefficient =2 [(gogoproto.moretags) = "yaml:\"year_coefficient\"",(gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec",(gogoproto.nullable) = false ];}