filter

package
v0.0.0-...-a4145b4 Latest Latest
Warning

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

Go to latest
Published: Jul 29, 2024 License: GPL-3.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsValidAiOpHash

func IsValidAiOpHash(aiOpHash string) bool

Types

type AiOperationReceipt

type AiOperationReceipt struct {
	AiOpHash      common.Hash        `json:"aiOpHash"`
	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 GetAiOperationReceipt

func GetAiOperationReceipt(
	eth *ethclient.Client,
	aiOpHash string,
	aiMiddleware common.Address,
	blkRange uint64,
) (*AiOperationReceipt, error)

GetAiOperationReceipt filters the AiMiddleware contract for AiOperationEvents and returns a receipt for both the AiOperation and accompanying transaction.

type HashLookupResult

type HashLookupResult struct {
	AiOperation     *aiop.AiOperation `json:"aiOperation"`
	AiMiddleware    string            `json:"aiMiddleware"`
	BlockNumber     *big.Int          `json:"blockNumber"`
	BlockHash       common.Hash       `json:"blockHash"`
	TransactionHash common.Hash       `json:"transactionHash"`
}

func GetAiOperationByHash

func GetAiOperationByHash(
	eth *ethclient.Client,
	aiOpHash string,
	aiMiddleware common.Address,
	chainID *big.Int,
	blkRange uint64,
) (*HashLookupResult, error)

GetAiOperationByHash filters the AiMiddleware contract for AiOperationEvents and returns the corresponding AiOp from a given aiOpHash.

Jump to

Keyboard shortcuts

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