Documentation ¶
Index ¶
- Constants
- Variables
- func BaseCoinAppGenState(cdc *amino.Codec, appGenTxs BaseCoinGenTx) (appState json.RawMessage, err error)
- func GenerateCoinKey(cdc *amino.Codec, clientRoot string) (addr types.Address, mnemonic string, err error)
- func NewAppAccount() account.Account
- type AppAccount
- type BaseCoinGenTx
- type GenesisAccount
- type GenesisState
Constants ¶
View Source
const ( DefaultAccountName = "Jia" DefaultAccountPass = "12345678" )
Variables ¶
View Source
var ( EventActionSend = "send" AttributeKeySender = "sender" AttributeKeyReceiver = "receiver" )
View Source
var ( DefaultCLIHome = os.ExpandEnv("$HOME/.basecli") DefaultNodeHome = os.ExpandEnv("$HOME/.basecoind") )
Functions ¶
func BaseCoinAppGenState ¶ added in v0.0.2
func BaseCoinAppGenState(cdc *amino.Codec, appGenTxs BaseCoinGenTx) (appState json.RawMessage, err error)
func GenerateCoinKey ¶
func NewAppAccount ¶
Types ¶
type AppAccount ¶
type AppAccount struct { account.BaseAccount `json:"base_account"` Coins types.BaseCoins `json:"coins"` }
func (*AppAccount) GetCoins ¶
func (acc *AppAccount) GetCoins() types.BaseCoins
type BaseCoinGenTx ¶
type GenesisAccount ¶
type GenesisAccount struct { Address types.AccAddress `json:"address"` Coins types.BaseCoins `json:"coins"` }
初始账户
func NewGenesisAccount ¶
func NewGenesisAccount(aa *AppAccount) *GenesisAccount
给定 AppAccpunt 创建 GenesisAccount
func (*GenesisAccount) ToAppAccount ¶
func (ga *GenesisAccount) ToAppAccount() (acc *AppAccount, err error)
给定 GenesisAccount 创建 AppAccpunt
type GenesisState ¶
type GenesisState struct { CAPubKey crypto.PubKey `json:"pub_key"` Accounts []*GenesisAccount `json:"accounts"` }
QOS初始状态
Click to show internal directories.
Click to hide internal directories.