Documentation
¶
Index ¶
- Variables
- func GenerateKeyAndAddr(t *testing.T) (*ecdsa.PrivateKey, types.Address)
- func GetFreePort() (port int, err error)
- func RetryUntilTimeout(ctx context.Context, f func() (interface{}, bool)) (interface{}, error)
- func WaitForReceipt(ctx context.Context, client *jsonrpc.Eth, hash web3.Hash) (*web3.Receipt, error)
- func WaitUntilTxPoolEmpty(ctx context.Context, client txpoolOp.TxnPoolOperatorClient) (*txpoolOp.TxnPoolStatusResp, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrTimeout = errors.New("timeout")
)
Functions ¶
func GenerateKeyAndAddr ¶
func GetFreePort ¶ added in v0.1.0
GetFreePort asks the kernel for a free open port that is ready to use
func RetryUntilTimeout ¶
func WaitForReceipt ¶
func WaitForReceipt(ctx context.Context, client *jsonrpc.Eth, hash web3.Hash) (*web3.Receipt, error)
WaitForReceipt waits transaction receipt
func WaitUntilTxPoolEmpty ¶
func WaitUntilTxPoolEmpty(ctx context.Context, client txpoolOp.TxnPoolOperatorClient) (*txpoolOp.TxnPoolStatusResp, error)
WaitUntilTxPoolEmpty waits until node has 0 transactions in txpool, otherwise returns timeout
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.