-
Notifications
You must be signed in to change notification settings - Fork 80
executor
marie-fourier edited this page Jan 6, 2025
·
1 revision
executor package implements ERC-4337.
- MempoolEntry - represents a user operation in the mempool.
- ReputationEntry - represents a entity's (factory, paymaster, account, aggregator) reputation
- debug.ts - handlers for
debug_requests - eth.ts - handlers for
eth_requests - skandha.ts - handlers for
skandha_requests - web3.ts - handlers for
web3_requests
- BundlingService - handles bundling and submission of userops.
-
relayers/- implements different submission methods (e.g. viaflashbotsfor MEV protection, or viafastlaneon Polygon) -
service.ts- orchestrates bundling and submission (if there are more than 1 relayers)
-
- MempoolService - mempool and reputation management.
-
service.ts- adding/replacing userops into the mempool. -
reputation.ts- handles reputation of entities and implements part of EIP-7562 related to reputation.
-
- UserOpValidation - Implements EIP-7562;
-
validators/unsafe.ts- only runssimulateValidationwithout opcode and stake check -
validators/safe.ts- complete validation with opcode and stake check -
validation/estimation.ts- runssimulateHandleOpto estimate gas usage
-
- EventsService - listens for
UserOperationEventonchain and deletes the corresponding mempool entry. - P2PService.ts - some utility functions used by
nodepackage - SubscriptionService.ts - Handles subscriptions to websocket events
Logic for loading configuration from environment variables or a config file.
Initializes all modules and services.