eth

package
v0.0.0-...-5ade1b4 Latest Latest
Warning

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

Go to latest
Published: Sep 9, 2020 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitializeKeystore

func InitializeKeystore(datadir string, accountJSON string, accountPass string) (*keystore.KeyStore, error)

InitializeKeystore imports, creates or opens the keystore and unlock the first account If no account is found in the keystore, one is created.

Types

type NetworkConfiguration

type NetworkConfiguration struct {
	NetworkID       uint64
	NetworkName     string
	GenesisBlock    *core.Genesis
	ContractAddress common.Address
	// contains filtered or unexported fields
}

NetworkConfiguration defines the Ethereum network specific configuration needed by the bridge

func GetEthNetworkConfiguration

func GetEthNetworkConfiguration(networkname string) (networkconfig NetworkConfiguration, err error)

GetEthNetworkConfiguration returns the EthNetworkConAfiguration for a specific network

func (NetworkConfiguration) GetBootnodes

func (config NetworkConfiguration) GetBootnodes(bootnodes []string) ([]*enode.Node, error)

GetBootnodes returns the bootnodes for the specific network as slice of *discv5.Node The default bootnodes can be overridden by passing a non nil or empty bootnodes parameter

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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