helper

package
v0.7.3-beta3 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	TestModeFlag = "test"
)

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 GetRootchainTestPrivKey

func GetRootchainTestPrivKey() (ethgo.Key, error)

GetRootchainTestPrivKey initializes a private key instance from hardcoded test account hex encoded private key

func ReadRootchainIP

func ReadRootchainIP() (string, error)

func ValidateSecretFlags

func ValidateSecretFlags(isTestMode bool, accountDir, accountConfigPath string) error

ValidateSecretFlags validates provided secret flags. In case isTestMode is set to true, test account is being used and no need to specify secrets, otherwise they must be present.

Types

This section is empty.

Jump to

Keyboard shortcuts

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