app

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Dec 24, 2018 License: Apache-2.0 Imports: 29 Imported by: 5

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MakeCodec

func MakeCodec() *amino.Codec

func QOSAppGenState

func QOSAppGenState(cdc *amino.Codec, appGenTxs []json.RawMessage) (appState json.RawMessage, err error)

app_state初始配置项生成

func QOSAppGenTx

func QOSAppGenTx(cdc *amino.Codec, pk crypto.PubKey, genTxConfig config.GenTx) (
	appGenTx, cliPrint json.RawMessage, validator tmtypes.GenesisValidator, err error)

Generate a genesis transaction

func QOSAppInit

func QOSAppInit() server.AppInit

func RegisterCodec

func RegisterCodec(cdc *amino.Codec)

Types

type GenesisState

type GenesisState struct {
	CAPubKey   crypto.PubKey         `json:"ca_pub_key"`
	Accounts   []*account.QOSAccount `json:"accounts"`
	Validators []types.Validator     `json:"validators"`

	SPOConfig   types.SPOConfig   `json:"spo_config"`
	StakeConfig types.StakeConfig `json:"stake_config"`
}

QOS初始状态

type QOSApp

type QOSApp struct {
	*baseabci.BaseApp
}

func NewApp

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

type QOSGenTx

type QOSGenTx struct {
	Validator tmtypes.GenesisValidator `json:"validator"`
}

Jump to

Keyboard shortcuts

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