State
State Objects
The x/inflation
module keeps the following objects in state:
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
Period
Counter to keep track of amount of past periods, based on the epochs per period.
EpochMintProvision
Amount of tokens that are allocated for exponention inflation each epoch.
EpochIdentifier
Identifier to trigger epoch hooks.
EpochsPerPeriod
Amount of epochs in one period
Genesis State
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:
Last updated