Versions in this module Expand all Collapse all v0 v0.2.3 Jun 20, 2021 Changes in this version + var ErrEventNotFound = errors.New("event not found") + var ErrNoTopic = errors.New("no topic") + var ErrTransactionReverted = errors.New("transaction reverted") + func FindSingleEvent(abi *abi.ABI, receipt *types.Receipt, contractAddress common.Address, ...) error + func IsSynced(ctx context.Context, backend Backend, maxDelay time.Duration) (bool, error) + func ParseABIUnchecked(json string) abi.ABI + func ParseEvent(a *abi.ABI, eventName string, c interface{}, e types.Log) error + func WaitSynced(ctx context.Context, backend Backend, maxDelay time.Duration) error + type Backend interface + BalanceAt func(ctx context.Context, address common.Address, block *big.Int) (*big.Int, error) + BlockNumber func(ctx context.Context) (uint64, error) + HeaderByNumber func(ctx context.Context, number *big.Int) (*types.Header, error) + TransactionByHash func(ctx context.Context, hash common.Hash) (tx *types.Transaction, isPending bool, err error) + TransactionReceipt func(ctx context.Context, txHash common.Hash) (*types.Receipt, error) + type Service interface + Call func(ctx context.Context, request *TxRequest) (result []byte, err error) + Send func(ctx context.Context, request *TxRequest) (txHash common.Hash, err error) + WaitForReceipt func(ctx context.Context, txHash common.Hash) (receipt *types.Receipt, err error) + func NewService(logger logging.Logger, backend Backend, signer crypto.Signer, ...) (Service, error) + type TxRequest struct + Data []byte + GasLimit uint64 + GasPrice *big.Int + To *common.Address + Value *big.Int