Documentation
¶
Index ¶
- func GetMakerTestKey(t *testing.T) *ecdsa.PrivateKey
- func GetTakerTestKey(t *testing.T) *ecdsa.PrivateKey
- func GetTestKeyByIndex(t *testing.T, index int) *ecdsa.PrivateKey
- func MineTransaction(t *testing.T, ec bind.DeployBackend, tx *ethtypes.Transaction) *ethtypes.Receipt
- func NewEthClient(t *testing.T) (*ethclient.Client, *big.Int)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetMakerTestKey ¶
func GetMakerTestKey(t *testing.T) *ecdsa.PrivateKey
GetMakerTestKey returns the first ganache test key allocated to a package
func GetTakerTestKey ¶
func GetTakerTestKey(t *testing.T) *ecdsa.PrivateKey
GetTakerTestKey returns the second ganache test key allocated to a package
func GetTestKeyByIndex ¶
func GetTestKeyByIndex(t *testing.T, index int) *ecdsa.PrivateKey
GetTestKeyByIndex returns the ganache test key allocated to a package by index
func MineTransaction ¶
func MineTransaction(t *testing.T, ec bind.DeployBackend, tx *ethtypes.Transaction) *ethtypes.Receipt
MineTransaction is a test helper that blocks until the transaction is included in a block and returns the receipt. Errors are checked including the status.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.