genesis

package
v0.9.3 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2020 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

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

Jump to

Keyboard shortcuts

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