Help us shape the future of Go! Take the 2026 Go Developer Survey

truffle

package
v1.2.2 Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2020 License: GPL-3.0 Imports: 8 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type API

type API string

API communicates with truffle test api.

func (*API) FetchPSCAddress

func (api *API) FetchPSCAddress() string

FetchPSCAddress returns psc contract address hex from truffle.

func (*API) FetchPTCAddress

func (api *API) FetchPTCAddress() string

FetchPTCAddress returns ptc address hex from truffle.

func (*API) GetTestAccounts

func (api *API) GetTestAccounts() ([]TestAccount, error)

GetTestAccounts returns all available accounts in truffle.

type TestAccount

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

TestAccount is a parsed account created by truffle.

Jump to

Keyboard shortcuts

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