estimator

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Mar 31, 2024 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (

	// This is a placeholder paymasterAndData with the correct length and all non-zero bytes. It is required
	// to calculate an acceptable preVerificationGas prior to paymaster approval. Once preVerificationGas is
	// calculated and added to the op, we can generate the real paymasterAndData. Note that if we calculate
	// the preVerificationGas of the op again (with the real paymasterAndData), it will return a lower value
	// since the real paymasterAndData is a mix of zero and non-zero bytes. If we want the preVerificationGas
	// calculation to be the same with both dummy and real paymasterAndData, we need to know how to generate a
	// dummy with the correct ratio of zero to non-zero bytes ahead of time.
	DummyPaymasterAndDataHex = "" /* 428-byte string literal not displayed */
)

Functions

This section is empty.

Types

type GasEstimator

type GasEstimator struct {
	// contains filtered or unexported fields
}

func New

func New(
	signer *signer.EOA,
	rpc *rpc.Client,
	eth *ethclient.Client,
	chain *big.Int,
	ov *gas.Overhead,
) *GasEstimator

func (*GasEstimator) OverrideOpGasLimitsForPND

func (g *GasEstimator) OverrideOpGasLimitsForPND(
	op *userop.UserOperation,
	ep common.Address,
	data *contract.Data,
) (*userop.UserOperation, error)

Jump to

Keyboard shortcuts

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