config

package
v0.0.0-...-f39f649 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ClientConfig

type ClientConfig struct {
	ChainURLs    map[string]string // map[ChainID]url
	OpHost       string
	OpPort       int
	Mnemonic     string
	AccountIndex int
	UserName     string
}

func ParseClientConfig

func ParseClientConfig() (cfg ClientConfig)

func (*ClientConfig) ChainURL

func (c *ClientConfig) ChainURL(networkID string) string

ChainURL looks up the configured ethereum network URL for a network ID.

type OpClientConfig

type OpClientConfig struct {
	NetworkID string         `json:"networkID"` // Network-ID
	Contract  common.Address `json:"contract"`
	POWDepth  uint64         `json:"powDepth"`
}

OpClientConfig describes the part of the client's configuration which is sent to connecting clients by the operator.

Jump to

Keyboard shortcuts

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