util

package
v0.0.0-...-1a1e56d Latest Latest
Warning

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

Go to latest
Published: Feb 2, 2021 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultFaucetValue = "10000000000000000000000000000000000"

Functions

func ConnectMember

func ConnectMember(host string, infos string) (map[string]interface{}, []string)

func FetchGenesis

func FetchGenesis(host string) string

func JsonDump

func JsonDump(obj interface{}) string

func JsonLoad

func JsonLoad(file string) (map[string]interface{}, error)

func JsonPrettyDump

func JsonPrettyDump(obj interface{}) string

func NewConfig

func NewConfig() (*config, error)

func NewManager

func NewManager(handler com.CompleteHandler) (*manager, error)

Types

type Infos

type Infos struct {
	Name        string            `json:"name"`
	Address     string            `json:"address"`
	PublicKey   string            `json:"publicKey"`
	Host        string            `json:"host"`
	IsValidator bool              `json:"validator"`
	Faucets     map[string]string `json:"faucets"`
}

func FetchInfos

func FetchInfos(host string) *Infos

func NewInfos

func NewInfos(publicKey string, address string) *Infos

func ParseInfos

func ParseInfos(message string) *Infos

func (*Infos) Enode

func (infos *Infos) Enode() string

Jump to

Keyboard shortcuts

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