Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsValidAiOpHash ¶
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.
Click to show internal directories.
Click to hide internal directories.