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 ¶
FetchPSCAddress returns psc contract address hex from truffle.
func (*API) FetchPTCAddress ¶
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.
Click to show internal directories.
Click to hide internal directories.