mint
Protobuf Documentation
Table of Contents
mint/v1beta1/mint.proto
Minter
Minter represents the minting state.
At the beginning of the chain (first block) the mint module will recalculate the annual_provisions
and
target_supply
based on the genesis total token supply and the inflation configured.
By default inflation is set to 15%. If the genesis total token supply is 200M token, the annual_provision
will be 30M
and target_supply
230M.
Field | Type | Label | Description |
---|---|---|---|
inflation | string | current annual inflation rate | |
annual_provisions | string | current annual expected provisions | |
target_supply | string | target supply at end of period |
Params
Params holds parameters for the mint module.
Configure the annual reduction factor will update at the each end of year the new token distribution rate by reducing
the actual inflation by the annual_reduction_factor
configured.
By default, annual_reduction_factor
is 20%. For example, with an initial inflation of 15%, at the end of the year,
new inflation will be 12%.
Field | Type | Label | Description |
---|---|---|---|
mint_denom | string | type of coin to mint | |
annual_reduction_factor | string | annual reduction factor inflation rate change | |
blocks_per_year | uint64 | expected blocks per year |
mint/v1beta1/genesis.proto
GenesisState
GenesisState defines the mint module's genesis state.
Field | Type | Label | Description |
---|---|---|---|
minter | Minter | minter is a space for holding current inflation information. | |
params | Params | params defines all the paramaters of the module. |
mint/v1beta1/query.proto
QueryAnnualProvisionsRequest
QueryAnnualProvisionsRequest is the request type for the Query/AnnualProvisions RPC method.
QueryAnnualProvisionsResponse
QueryAnnualProvisionsResponse is the response type for the Query/AnnualProvisions RPC method.
Field | Type | Label | Description |
---|---|---|---|
annual_provisions | bytes | annual_provisions is the current minting annual provisions value. |
QueryInflationRequest
QueryInflationRequest is the request type for the Query/Inflation RPC method.
QueryInflationResponse
QueryInflationResponse is the response type for the Query/Inflation RPC method.
Field | Type | Label | Description |
---|---|---|---|
inflation | bytes | inflation is the current minting inflation value. |
QueryParamsRequest
QueryParamsRequest is the request type for the Query/Params RPC method.
QueryParamsResponse
QueryParamsResponse is the response type for the Query/Params RPC method.
Field | Type | Label | Description |
---|---|---|---|
params | Params | params defines the parameters of the module. |
Query
Query provides defines the gRPC querier service.
Method Name | Request Type | Response Type | Description | HTTP Verb | Endpoint |
---|---|---|---|---|---|
Params | QueryParamsRequest | QueryParamsResponse | Params returns the total set of minting parameters. | GET | /cosmos/mint/v1beta1/params |
Inflation | QueryInflationRequest | QueryInflationResponse | Inflation returns the current minting inflation value. | GET | /cosmos/mint/v1beta1/inflation |
AnnualProvisions | QueryAnnualProvisionsRequest | QueryAnnualProvisionsResponse | AnnualProvisions current minting annual provisions value. | GET | /cosmos/mint/v1beta1/annual_provisions |