Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var CompletionChecker = BlockHandlerFunc( func(ctx context.Context, node devnet.Node, block *requests.Block, transaction *jsonrpc.RPCTransaction) error { traceResults, err := node.TraceTransaction(transaction.Hash) if err != nil { return fmt.Errorf("Failed to trace transaction: %s: %w", transaction.Hash, err) } for _, traceResult := range traceResults { if traceResult.TransactionHash == transaction.Hash { if len(traceResult.Error) != 0 { return fmt.Errorf("Transaction error: %s", traceResult.Error) } break } } return nil })
Functions ¶
Types ¶
type BlockHandler ¶
type BlockHandlerFunc ¶
type TxFn ¶
type TxFn func(_ *core.BlockGen, backend bind.ContractBackend) (types.Transaction, bool)
type TxGen ¶
type TxGen struct { Fn TxFn Key *ecdsa.PrivateKey }
Click to show internal directories.
Click to hide internal directories.