Documentation
¶
Overview ¶
Package gas implements helper functions for calculating gas parameters based on Ethereum protocol values.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Overhead ¶
type Overhead struct {
// contains filtered or unexported fields
}
Overhead provides helper methods for calculating gas limits based on pre-defined parameters.
func NewDefaultOverhead ¶
func NewDefaultOverhead() *Overhead
NewDefaultOverhead returns an instance of Overhead using parameters defined by the Ethereum protocol.
func (*Overhead) CalcPreVerificationGas ¶
func (ov *Overhead) CalcPreVerificationGas(op *userop.UserOperation) *big.Int
CalcPreVerificationGas returns an expected gas cost for processing a UserOperation from a batch.
func (*Overhead) NonZeroValueCall ¶
NonZeroValueCall returns an expected gas cost of using the CALL opcode in the context of EIP-4337. See https://github.com/wolflo/evm-opcodes/blob/main/gas.md#aa-1-call.
Click to show internal directories.
Click to hide internal directories.