utils

package
v0.0.0-...-3e5f652 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DisplayInfo

func DisplayInfo(info PrintInfo) error

func ReadFile

func ReadFile(name string) ([]byte, error)

func ReadJson

func ReadJson(name string, obj interface{}) error

func WriteFile

func WriteFile(name string, dir string, contents []byte) error

Types

type PrintInfo

type PrintInfo struct {
	Moniker    string          `json:"moniker" yaml:"moniker"`
	ChainID    string          `json:"chain_id" yaml:"chain_id"`
	NodeID     string          `json:"node_id" yaml:"node_id"`
	GenTxsDir  string          `json:"gentxs_dir" yaml:"gentxs_dir"`
	AppMessage json.RawMessage `json:"app_message" yaml:"app_message"`
}

func NewPrintInfo

func NewPrintInfo(moniker, chainID, nodeID, genTxsDir string,
	appMessage json.RawMessage) PrintInfo

Jump to

Keyboard shortcuts

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