Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( KeyActive = []byte("Active") KeyPeriods = []byte("Periods") DefaultActive = false DefaultPeriods = Periods{} DefaultPreviousBlockTime = tmtime.Canonical(time.Unix(0, 0)) GovDenom = cdptypes.DefaultGovDenom )
Parameter keys and default values
Functions ¶
This section is empty.
Types ¶
type GenesisState ¶
type GenesisState struct { Params Params `json:"params" yaml:"params"` PreviousBlockTime time.Time `json:"previous_block_time" yaml:"previous_block_time"` }
GenesisState is the state that must be provided at genesis.
func DefaultGenesisState ¶
func DefaultGenesisState() GenesisState
DefaultGenesisState returns a default genesis state
func NewGenesisState ¶
func NewGenesisState(params Params, previousBlockTime time.Time) GenesisState
NewGenesisState returns a new genesis state
type Params ¶
type Params struct { Active bool `json:"active" yaml:"active"` Periods Periods `json:"periods" yaml:"periods"` }
Params governance parameters for kavadist module
func DefaultParams ¶
func DefaultParams() Params
DefaultParams returns default params for kavadist module
type Period ¶
type Period struct { Start time.Time `json:"start" yaml:"start"` // example "2020-03-01T15:20:00Z" End time.Time `json:"end" yaml:"end"` // example "2020-06-01T15:20:00Z" Inflation sdk.Dec `json:"inflation" yaml:"inflation"` // example "1.000000003022265980" - 10% inflation }
Period stores the specified start and end dates, and the inflation, expressed as a decimal representing the yearly APR of KAVA tokens that will be minted during that period
Click to show internal directories.
Click to hide internal directories.