app

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2018 License: Apache-2.0 Imports: 31 Imported by: 5

Documentation

Index

Constants

View Source
const (
	DefaultAccountName = "Arya"
	DefaultAccountPass = "12345678"
)

Variables

This section is empty.

Functions

func GenerateCoinKey

func GenerateCoinKey(cdc *amino.Codec, clientRoot string) (pubkey crypto.PubKey, mnemonic string, err error)

默认地址

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"`
}

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