Documentation ¶
Index ¶
- func BhclearAppGenStateJSON(cdc *codec.Codec, genDoc tmtypes.GenesisDoc, appGenTxs []json.RawMessage) (appState json.RawMessage, err error)
- func BhclearValidateGenesisState(genesisState GenesisState) error
- func CollectStdTxs(cdc *codec.Codec, moniker string, genTxsDir string, genDoc tmtypes.GenesisDoc) (appGenTxs []custodianunit.StdTx, persistentPeers string, err error)
- type GenesisState
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BhclearAppGenStateJSON ¶
func BhclearAppGenStateJSON(cdc *codec.Codec, genDoc tmtypes.GenesisDoc, appGenTxs []json.RawMessage) ( appState json.RawMessage, err error)
Marshal BhclearAppGenState reuslt
func BhclearValidateGenesisState ¶
func BhclearValidateGenesisState(genesisState GenesisState) error
BhclearValidateGenesisState ensures that the genesis state obeys the expected invariants
func CollectStdTxs ¶
func CollectStdTxs(cdc *codec.Codec, moniker string, genTxsDir string, genDoc tmtypes.GenesisDoc) ( appGenTxs []custodianunit.StdTx, persistentPeers string, err error)
CollectStdTxs processes and validates application's genesis StdTxs and returns the list of appGenTxs, and persistent peers required to generate genesis.json.
Types ¶
type GenesisState ¶
type GenesisState struct { CustodianUnitData custodianunit.GenesisState `json:"custodian_units"` TokenData token.GenesisState `json:"token"` GenTxs []json.RawMessage `json:"gen_txs"` }
GenesisState represents chain state at the start of the chain. Any initial state (custodianunit balances) are stored here.
func BhclearAppGenState ¶
func BhclearAppGenState(cdc *codec.Codec, genDoc tmtypes.GenesisDoc, appGenTxs []json.RawMessage) ( genesisState GenesisState, err error)
Create the finial Genesis file after including genTxs
func NewDefaultGenesisState ¶
func NewDefaultGenesisState() GenesisState
NewDefaultGenesisState generates the default state for bhclear.
func NewGenesisState ¶
func NewGenesisState(cuData custodianunit.GenesisState, tokenData token.GenesisState) GenesisState
NewGenesisState generates state according inputs
Click to show internal directories.
Click to hide internal directories.