mint

package
v0.0.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 25, 2019 License: Apache-2.0 Imports: 5 Imported by: 0

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL