codefortest

package
v0.0.0-...-9f791b1 Latest Latest
Warning

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

Go to latest
Published: Jun 22, 2022 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var TestEthRPCEndPoint = os.Getenv("ETHRPCENDPOINT")

TestEthRPCEndPoint :

View Source
var TestKeystorePath = os.Getenv("KEYSTORE")

TestKeystorePath :

View Source
var TestPassword = "123"

TestPassword :

Functions

func DeployRegistryContract

func DeployRegistryContract() (registryAddress common.Address, registry *contracts.TokensNetwork, secretRegistryAddress common.Address, err error)

DeployRegistryContract :

func GetEthClient

func GetEthClient() (client *helper.SafeEthClient, err error)

GetEthClient :

func NewTestDB

func NewTestDB(dbPath string) (dao models.Dao)

NewTestDB :

Types

type TestAccount

type TestAccount struct {
	Address    common.Address
	PrivateKey *ecdsa.PrivateKey
}

TestAccount :

func GetAccounts

func GetAccounts() (accounts []TestAccount, err error)

GetAccounts unlock all accounts on TestKeystorePath

func GetAccountsByAddress

func GetAccountsByAddress(address common.Address) (account TestAccount, err error)

GetAccountsByAddress : find and unlock account by TestPassword

Jump to

Keyboard shortcuts

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