app

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: 24 Imported by: 5

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitGenesis added in v0.0.4

func InitGenesis(ctx context.Context, state GenesisState) []abci.ValidatorUpdate

func MakeCodec

func MakeCodec() *amino.Codec

func RegisterCodec

func RegisterCodec(cdc *amino.Codec)

func ValidGenesis added in v0.0.4

func ValidGenesis(state GenesisState) error

Types

type GenesisState

type GenesisState struct {
	Accounts         []*types.QOSAccount       `json:"accounts"`
	MintData         mint.GenesisState         `json:"mint"`
	StakeData        stake.GenesisState        `json:"stake"`
	QCPData          qcp.GenesisState          `json:"qcp"`
	QSCData          qsc.GenesisState          `json:"qsc"`
	ApproveData      approve.GenesisState      `json:"approve"`
	DistributionData distribution.GenesisState `json:"distribution"`
}

QOS初始状态

func NewDefaultGenesisState added in v0.0.4

func NewDefaultGenesisState() GenesisState

func NewGenesisState added in v0.0.4

func NewGenesisState(accounts []*types.QOSAccount,
	mintData mint.GenesisState,
	stakeData stake.GenesisState,
	qcpData qcp.GenesisState,
	qscData qsc.GenesisState,
	approveData approve.GenesisState,
	distributionData distribution.GenesisState,
) GenesisState

type QOSApp

type QOSApp struct {
	*baseabci.BaseApp
}

func NewApp

func NewApp(logger log.Logger, db dbm.DB, traceStore io.Writer) *QOSApp

func (*QOSApp) ExportAppStates added in v0.0.4

func (app *QOSApp) ExportAppStates(forZeroHeight bool) (appState json.RawMessage, err error)

Jump to

Keyboard shortcuts

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