helper

package
v0.7.3-beta1 Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultPrivateKeyRaw = "aa75e9a7d427efc732f8e4f1a5b7646adcc61fd5bae40f80d13c8419c9f43d6d"

Variables

View Source
var (
	ErrRootchainNotFound = errors.New("rootchain not found")
	ErrRootchainPortBind = errors.New("port 8545 is not bind with localhost")
)

Functions

func GetRootchainID

func GetRootchainID() (string, error)

func GetRootchainPrivateKey added in v0.8.1

func GetRootchainPrivateKey() ethgo.Key

GetRootchainPrivateKey returns rootchain account private key

func InitRootchainPrivateKey

func InitRootchainPrivateKey(rawKey string) error

InitRootchainPrivateKey initializes a private key instance from provided hex encoded private key

func IsTestMode

func IsTestMode(rootchainPrivKey string) bool

IsTestMode returns true in case provided rootchain private key is the same as DefaultPrivateKey one

func ReadRootchainIP

func ReadRootchainIP() (string, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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