filter

package
v0.6.33-beta.1 Latest Latest
Warning

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

Go to latest
Published: Jan 26, 2024 License: GPL-3.0 Imports: 15 Imported by: 2 modules, 1 package

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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,
) (*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,
) (*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