transaction

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Mar 2, 2023 License: GPL-3.0 Imports: 14 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateRawHandleOps

func CreateRawHandleOps(
	eoa *signer.EOA,
	eth *ethclient.Client,
	chainID *big.Int,
	entryPoint common.Address,
	batch []*userop.UserOperation,
	beneficiary common.Address,
	gas uint64,
	baseFee *big.Int,
) (string, error)

CreateRawHandleOps returns a raw transaction string that calls handleOps() on the EntryPoint with a given batch, gas limit, and tip.

func EstimateHandleOpsGas

func EstimateHandleOpsGas(
	eoa *signer.EOA,
	eth *ethclient.Client,
	chainID *big.Int,
	entryPoint common.Address,
	batch []*userop.UserOperation,
	beneficiary common.Address,
) (gas uint64, revert *reverts.FailedOpRevert, err error)

EstimateHandleOpsGas returns a gas estimate required to call handleOps() with a given batch. A failed call will return the cause of the revert.

func HandleOps

func HandleOps(
	eoa *signer.EOA,
	eth *ethclient.Client,
	chainID *big.Int,
	entryPoint common.Address,
	batch []*userop.UserOperation,
	beneficiary common.Address,
	gas uint64,
) (txn *types.Transaction, revert *reverts.FailedOpRevert, err error)

HandleOps calls handleOps() on the EntryPoint with a given batch, gas limit, and tip. A failed call will return the cause of the revert.

Types

This section is empty.

Jump to

Keyboard shortcuts

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