State
Last updated
Last updated
The x/inflation
module keeps the following objects in state:
State Object | Description | Key | Value | Store |
---|---|---|---|---|
Counter to keep track of amount of past periods, based on the epochs per period.
Amount of tokens that are allocated for exponention inflation each epoch.
Identifier to trigger epoch hooks.
Amount of epochs in one period
The x/inflation
module's GenesisState
defines the state necessary for initializing the chain from a previously exported height. It contains the module parameters and the list of active incentives and their corresponding gas meters:
Period
Period Counter
[]byte{1}
[]byte{period}
KV
EpochMintProvision
Epoch mint provision bytes
[]byte{2}
[]byte{epochMintProvision}
KV
EpochIdentifier
Epoch identifier bytes
[]byte{3}
[]byte{epochIdentifier}
KV
EpochsPerPeriod
Epochs per period bytes
[]byte{4}
[]byte{epochsPerPeriod}
KV
SkippedEpochs
Number of skipped epochs bytes
[]byte{5}
[]byte{skippedEpochs}
KV