filter

package
v0.6.47 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 18, 2024 License: GPL-3.0 Imports: 15 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsValidUserOpHash added in v0.6.33

func IsValidUserOpHash(userOpHash string) bool

Types

type HashLookupResult

type HashLookupResult struct {
	UserOperation   *userop.UserOperation `json:"userOperation"`
	EntryPoint      string                `json:"entryPoint"`
	BlockNumber     *big.Int              `json:"blockNumber"`
	BlockHash       common.Hash           `json:"blockHash"`
	TransactionHash common.Hash           `json:"transactionHash"`
}

func GetUserOperationByHash

func GetUserOperationByHash(
	eth *ethclient.Client,
	userOpHash string,
	entryPoint common.Address,
	chainID *big.Int,
	blkRange uint64,
) (*HashLookupResult, error)

GetUserOperationByHash filters the EntryPoint contract for UserOperationEvents and returns the corresponding UserOp from a given userOpHash.

type UserOperationReceipt

type UserOperationReceipt struct {
	UserOpHash    common.Hash        `json:"userOpHash"`
	Sender        common.Address     `json:"sender"`
	Paymaster     common.Address     `json:"paymaster"`
	Nonce         string             `json:"nonce"`
	Success       bool               `json:"success"`
	ActualGasCost string             `json:"actualGasCost"`
	ActualGasUsed string             `json:"actualGasUsed"`
	From          common.Address     `json:"from"`
	Receipt       *parsedTransaction `json:"receipt"`
	Logs          []*types.Log       `json:"logs"`
}

func GetUserOperationReceipt

func GetUserOperationReceipt(
	eth *ethclient.Client,
	userOpHash string,
	entryPoint common.Address,
	blkRange uint64,
) (*UserOperationReceipt, error)

GetUserOperationReceipt filters the EntryPoint contract for UserOperationEvents and returns a receipt for both the UserOperation and accompanying transaction.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL