truffle

package
v0.21.1 Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2019 License: GPL-3.0 Imports: 8 Imported by: 0

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