Documentation ¶
Index ¶
- func ConvertValidatorAddressToBech32String(address types.Address) string
- func ConvertValidatorPubKeyToBech32String(pubKey tmcrypto.PubKey) (string, error)
- func FindAttributeByKey(event abci.Event, attrKey string) (abci.EventAttribute, error)
- func FindEventByType(events []abci.Event, eventType string) (abci.Event, error)
- func FindEventsByType(events []abci.Event, eventType string) []abci.Event
- func GetEnvOr(envKey string, orValue string) string
- func GetGenesisDocAndState(genesisPath string, node node.Node) (*tmtypes.GenesisDoc, map[string]json.RawMessage, error)
- func GetGenesisState(doc *tmtypes.GenesisDoc) (map[string]json.RawMessage, error)
- func MaxInt64(a, b int64) int64
- func ReadGenesisFileGenesisDoc(genesisPath string) (*tmtypes.GenesisDoc, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConvertValidatorAddressToBech32String ¶
ConvertValidatorAddressToBech32String converts the given validator address to its Bech32 string representation
func ConvertValidatorPubKeyToBech32String ¶
ConvertValidatorPubKeyToBech32String converts the given pubKey to a Bech32 string
func FindAttributeByKey ¶
func FindEventByType ¶
func GetEnvOr ¶
GetEnvOr returns the value of the ENV variable having the given key, or the provided orValue
func GetGenesisDocAndState ¶
func GetGenesisDocAndState(genesisPath string, node node.Node) (*tmtypes.GenesisDoc, map[string]json.RawMessage, error)
GetGenesisDocAndState reads the genesis from node or file and returns genesis doc and state
func GetGenesisState ¶
func GetGenesisState(doc *tmtypes.GenesisDoc) (map[string]json.RawMessage, error)
GetGenesisState returns the genesis state by getting it from the given genesis doc
func ReadGenesisFileGenesisDoc ¶
func ReadGenesisFileGenesisDoc(genesisPath string) (*tmtypes.GenesisDoc, error)
ReadGenesisFileGenesisDoc reads the genesis file located at the given path
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.