Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Validator ¶
type Validator struct {
// contains filtered or unexported fields
}
Validator exposes modules to perform basic Client and Bundler checks as specified in EIP-4337. It is intended for bundlers that are independent of an Ethereum node and hence relies on a given ethClient to query blockchain state.
func New ¶
func New( db *badger.DB, rpc *rpc.Client, ov *gas.Overhead, alt *altmempools.Directory, maxVerificationGas *big.Int, maxBatchGasLimit *big.Int, isRIP7212Supported bool, tracer string, repConst *entities.ReputationConstants, logger logr.Logger, ) *Validator
New returns a Standalone instance with methods that can be used in Client and Bundler modules to perform standard checks as specified in EIP-4337.
func (*Validator) OpValues ¶
func (v *Validator) OpValues() modules.UserOpHandlerFunc
OpValues returns a UserOpHandler that runs through some first line sanity checks for new UserOps received by the Client. This should be one of the first modules executed by the Client.
func (*Validator) ToStandaloneCheck ¶
func (v *Validator) ToStandaloneCheck() *checks.Standalone
Click to show internal directories.
Click to hide internal directories.