Skip to main content
logo

mint

The mint module is responsible for the creation of new units of MARS. The minting mechanism is designed to:

  • allow for a flexible inflation rate determined by market demand targeting a particular bonded-stake ratio.
  • effect a balance between market liquidity and staked supply

For more information, visit https://docs.cosmos.network/main/modules/mint

Queries

Query provides defines the gRPC querier service.

query.proto
Copy

_16
service Query {
_16
// Params returns the total set of minting parameters.
_16
rpc Params(QueryParamsRequest) returns (QueryParamsResponse) {
_16
option (google.api.http).get = "/cosmos/mint/v1beta1/params";
_16
}
_16
_16
// Inflation returns the current minting inflation value.
_16
rpc Inflation(QueryInflationRequest) returns (QueryInflationResponse) {
_16
option (google.api.http).get = "/cosmos/mint/v1beta1/inflation";
_16
}
_16
_16
// AnnualProvisions current minting annual provisions value.
_16
rpc AnnualProvisions(QueryAnnualProvisionsRequest) returns (QueryAnnualProvisionsResponse) {
_16
option (google.api.http).get = "/cosmos/mint/v1beta1/annual_provisions";
_16
}
_16
}

QueryParamsRequest

QueryParamsRequest is the request type for the Query/Params RPC method.

query.proto
Copy

_1
message QueryParamsRequest {}

QueryParamsResponse

QueryParamsResponse is the response type for the Query/Params RPC method.

query.proto
Copy

_4
message QueryParamsResponse {
_4
// params defines the parameters of the module.
_4
Params params = 1 [(gogoproto.nullable) = false];
_4
}

QueryInflationRequest

QueryInflationRequest is the request type for the Query/Inflation RPC method.

query.proto
Copy

_1
message QueryInflationRequest {}

QueryInflationResponse

QueryInflationResponse is the response type for the Query/Inflation RPC method.

query.proto
Copy

_4
message QueryInflationResponse {
_4
// inflation is the current minting inflation value.
_4
bytes inflation = 1 [(gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", (gogoproto.nullable) = false];
_4
}

QueryAnnualProvisionsRequest

QueryAnnualProvisionsRequest is the request type for the Query/AnnualProvisions RPC method.

query.proto
Copy

_1
message QueryAnnualProvisionsRequest {}

QueryAnnualProvisionsResponse

QueryAnnualProvisionsResponse is the response type for the Query/AnnualProvisions RPC method.

query.proto
Copy

_5
message QueryAnnualProvisionsResponse {
_5
// annual_provisions is the current minting annual provisions value.
_5
bytes annual_provisions = 1
_5
[(gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", (gogoproto.nullable) = false];
_5
}