Documentation
¶
Index ¶
- Constants
- func GenerateCoinKey(cdc *amino.Codec, clientRoot string) (pubkey crypto.PubKey, mnemonic string, err error)
- func MakeCodec() *amino.Codec
- func QOSAppGenState(cdc *amino.Codec, appGenTxs []json.RawMessage) (appState json.RawMessage, err error)
- func QOSAppGenTx(cdc *amino.Codec, pk crypto.PubKey, genTxConfig config.GenTx) (appGenTx, cliPrint json.RawMessage, validator tmtypes.GenesisValidator, ...)
- func QOSAppInit() server.AppInit
- func RegisterCodec(cdc *amino.Codec)
- type GenesisState
- type QOSApp
- type QOSGenTx
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 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 RegisterCodec ¶
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 QOSGenTx ¶
type QOSGenTx struct {
Validator tmtypes.GenesisValidator `json:"validator"`
}
Click to show internal directories.
Click to hide internal directories.