Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BeginBlocker ¶
func BeginBlocker(ctx context.Context, req abci.RequestBeginBlock)
BeginBlocker: 挖矿奖励
func InitGenesis ¶
func InitGenesis(ctx context.Context, data GenesisState)
Types ¶
type GenesisState ¶
type GenesisState struct {
Params minttypes.MintParams `json:"params"`
FirstBlockTime int64 `json:"first_block_time"` //UTC().UNIX()
AppliedQOSAmount uint64 `json:"applied_qos_amount"`
}
func DefaultGenesisState ¶
func DefaultGenesisState() GenesisState
func ExportGenesis ¶
func ExportGenesis(ctx context.Context) GenesisState
func NewGenesisState ¶
func NewGenesisState(params minttypes.MintParams) GenesisState
Click to show internal directories.
Click to hide internal directories.