cosmos-sdk/x/mint/spec/02_state.md

32 lines
779 B
Markdown
Raw Normal View History

# State
2018-10-19 11:36:00 -07:00
## Minter
2018-10-19 11:36:00 -07:00
The minter is a space for holding current inflation information.
- Minter: `0x00 -> amino(minter)`
```go
2018-10-19 11:36:00 -07:00
type Minter struct {
Inflation sdk.Dec // current annual inflation rate
AnnualProvisions sdk.Dec // current annual exptected provisions
2018-10-19 11:36:00 -07:00
}
```
## Params
2018-10-19 11:36:00 -07:00
Minting params are held in the global params store.
- Params: `mint/params -> amino(params)`
```go
2018-10-19 11:36:00 -07:00
type Params struct {
MintDenom string // type of coin to mint
InflationRateChange sdk.Dec // maximum annual change in inflation rate
InflationMax sdk.Dec // maximum inflation rate
InflationMin sdk.Dec // minimum inflation rate
GoalBonded sdk.Dec // goal of percent bonded atoms
BlocksPerYear uint64 // expected blocks per year
2018-10-19 11:36:00 -07:00
}
```