simulation

package
v0.6.44 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2024 License: GPL-3.0 Imports: 23 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SimulateValidation

func SimulateValidation(
	rpc *rpc.Client,
	entryPoint common.Address,
	op *userop.UserOperation,
) (*reverts.ValidationResultRevert, error)

SimulateValidation makes a static call to Entrypoint.simulateValidation(userop) and returns the results without any state changes.

Types

type EntityStakes

EntityStakes provides a mapping for encountered entity addresses and their stake info on the EntryPoint.

type TraceInput added in v0.6.24

type TraceInput struct {
	Rpc                *rpc.Client
	EntryPoint         common.Address
	Op                 *userop.UserOperation
	ChainID            *big.Int
	IsRIP7212Supported bool
	Tracer             string
	Stakes             EntityStakes
	AltMempools        *altmempools.Directory
}

type TraceOutput added in v0.6.24

type TraceOutput struct {
	TouchedContracts []common.Address
	AltMempoolIds    []string
}

func TraceSimulateValidation

func TraceSimulateValidation(in *TraceInput) (*TraceOutput, error)

TraceSimulateValidation makes a debug_traceCall to Entrypoint.simulateValidation(userop) and returns information related to the validation phase of a UserOperation.

Jump to

Keyboard shortcuts

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