mint

package
v0.0.7 Latest Latest
Warning

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

Go to latest
Published: Aug 28, 2019 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ModuleName      = "mint"
	Cdc             = types.Cdc
	RegisterCodec   = types.RegisterCodec
	NewGenesisState = types.NewGenesisState
	DefaultGenesis  = types.DefaultGenesisState
	ValidateGenesis = types.ValidateGenesis

	MapperName = types.MapperName
	NewMapper  = mapper.NewMapper
	GetMapper  = mapper.GetMapper
)

Functions

func BeginBlocker

func BeginBlocker(ctx context.Context, req abci.RequestBeginBlock)

BeginBlocker: 挖矿奖励

func ExportGenesis

func ExportGenesis(ctx context.Context) types.GenesisState

func InitGenesis

func InitGenesis(ctx context.Context, data types.GenesisState)

func NewAppModule added in v0.0.6

func NewAppModule() types.AppModule

Types

type AppModule added in v0.0.6

type AppModule struct {
	AppModuleBasic
}

app module

func (AppModule) BeginBlock added in v0.0.6

func (am AppModule) BeginBlock(ctx context.Context, req abci.RequestBeginBlock)

func (AppModule) EndBlock added in v0.0.6

func (AppModule) ExportGenesis added in v0.0.6

func (am AppModule) ExportGenesis(ctx context.Context) json.RawMessage

func (AppModule) InitGenesis added in v0.0.6

func (am AppModule) InitGenesis(ctx context.Context, bapp *baseabci.BaseApp, data json.RawMessage) []abci.ValidatorUpdate

func (AppModule) RegisterInvariants added in v0.0.6

func (am AppModule) RegisterInvariants(ir types.InvariantRegistry)

func (AppModule) RegisterQuerier added in v0.0.6

func (am AppModule) RegisterQuerier(qr types.QueryRegistry)

type AppModuleBasic added in v0.0.6

type AppModuleBasic struct{}

app module basics object

func (AppModuleBasic) DefaultGenesis added in v0.0.6

func (amb AppModuleBasic) DefaultGenesis() json.RawMessage

func (AppModuleBasic) GetMapperAndHooks added in v0.0.6

func (amb AppModuleBasic) GetMapperAndHooks() types.MapperWithHooks

func (AppModuleBasic) GetQueryCmds added in v0.0.6

func (amb AppModuleBasic) GetQueryCmds(cdc *amino.Codec) []*cobra.Command

func (AppModuleBasic) GetTxCmds added in v0.0.6

func (amb AppModuleBasic) GetTxCmds(cdc *amino.Codec) []*cobra.Command

func (AppModuleBasic) Name added in v0.0.6

func (amb AppModuleBasic) Name() string

func (AppModuleBasic) RegisterCodec added in v0.0.6

func (amb AppModuleBasic) RegisterCodec(cdc *amino.Codec)

func (AppModuleBasic) ValidateGenesis added in v0.0.6

func (amb AppModuleBasic) ValidateGenesis(bz json.RawMessage) error

type GenesisState

type GenesisState = types.GenesisState

type InflationPhrase added in v0.0.6

type InflationPhrase = types.InflationPhrase

type InflationPhrases added in v0.0.6

type InflationPhrases = types.InflationPhrases

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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