@pimlico/alto 0.0.19 → 0.0.20
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/contracts/EIP712.sol/EIP712.json +1 -1
- package/contracts/ERC165.sol/ERC165.json +1 -1
- package/contracts/ERC20.sol/ERC20.json +1 -1
- package/contracts/Eip7702Support.sol/Eip7702Support.json +1 -1
- package/contracts/EntryPoint.sol/EntryPoint.json +1 -1
- package/contracts/EntryPointFilterOpsOverride.sol/EntryPointFilterOpsOverride06.json +1 -1
- package/contracts/EntryPointFilterOpsOverride.sol/EntryPointFilterOpsOverride07.json +1 -1
- package/contracts/EntryPointFilterOpsOverride.sol/EntryPointFilterOpsOverride08.json +1 -1
- package/contracts/EntryPointFilterOpsOverride.sol/EntryPointFilterOpsOverride09.json +1 -0
- package/contracts/EntryPointGasEstimationOverride.sol/EntryPointGasEstimationOverride06.json +1 -1
- package/contracts/EntryPointSimulations.sol/EntryPointSimulations07.json +1 -1
- package/contracts/EntryPointSimulations.sol/EntryPointSimulations08.json +1 -1
- package/contracts/EntryPointSimulations.sol/EntryPointSimulations09.json +1 -0
- package/contracts/Exec.sol/Exec.json +1 -1
- package/contracts/IAccount.sol/IAccount.json +1 -1
- package/contracts/IAccountExecute.sol/IAccountExecute.json +1 -1
- package/contracts/IAggregator.sol/IAggregator.json +1 -1
- package/contracts/IERC165.sol/IERC165.json +1 -1
- package/contracts/IERC5267.sol/IERC5267.json +1 -1
- package/contracts/IEntryPoint.sol/IEntryPoint.json +1 -1
- package/contracts/IEntryPointFilterOpsOverride.sol/IEntryPointFilterOpsOverride08.json +1 -0
- package/contracts/IEntryPointFilterOpsOverride.sol/IEntryPointFilterOpsOverride09.json +1 -0
- package/contracts/IEntryPointSimulations.sol/IEntryPointSimulations.json +1 -1
- package/contracts/INonceManager.sol/INonceManager.json +1 -1
- package/contracts/IPaymaster.sol/IPaymaster.json +1 -1
- package/contracts/ISenderCreator.sol/ISenderCreator.json +1 -1
- package/contracts/IStakeManager.sol/IStakeManager.json +1 -1
- package/contracts/LibBytes.sol/LibBytes.json +1 -1
- package/contracts/Math.sol/Math.json +1 -1
- package/contracts/MessageHashUtils.sol/MessageHashUtils.json +1 -1
- package/contracts/NonceManager.sol/NonceManager.json +1 -1
- package/contracts/Panic.sol/Panic.json +1 -1
- package/contracts/PimlicoSimulations.sol/PimlicoSimulations.json +1 -1
- package/contracts/ReentrancyGuard.sol/ReentrancyGuard.json +1 -1
- package/contracts/ReentrancyGuardTransient.sol/ReentrancyGuardTransient.json +1 -1
- package/contracts/SafeCast.sol/SafeCast.json +1 -1
- package/contracts/SenderCreator.sol/SenderCreator.json +1 -1
- package/contracts/ShortStrings.sol/ShortStrings.json +1 -1
- package/contracts/SignedMath.sol/SignedMath.json +1 -1
- package/contracts/SimulationOverrideHelper.sol/SimulationOverrideHelper.json +1 -0
- package/contracts/StakeManager.sol/StakeManager.json +1 -1
- package/contracts/StorageSlot.sol/StorageSlot.json +1 -1
- package/contracts/Strings.sol/Strings.json +1 -1
- package/contracts/TransientSlot.sol/TransientSlot.json +1 -1
- package/contracts/UserOperation.sol/UserOperationLib.json +1 -1
- package/contracts/UserOperationLib.sol/UserOperationLib.json +1 -1
- package/contracts/account-abstraction-v9/contracts/interfaces/IAggregator.sol/IAggregator.json +1 -0
- package/contracts/account-abstraction-v9/contracts/interfaces/IEntryPoint.sol/IEntryPoint.json +1 -0
- package/contracts/account-abstraction-v9/contracts/interfaces/INonceManager.sol/INonceManager.json +1 -0
- package/contracts/account-abstraction-v9/contracts/interfaces/IStakeManager.sol/IStakeManager.json +1 -0
- package/contracts/build-info/338795fc743ca612.json +1 -0
- package/contracts/build-info/44a9648cfe32a468.json +1 -0
- package/contracts/build-info/{880955d5786bfdae.json → 8dbf8a4ad39019b5.json} +1 -1
- package/contracts/contracts/interfaces/IAggregator.sol/IAggregator.json +1 -1
- package/contracts/contracts/interfaces/IEntryPoint.sol/IEntryPoint.json +1 -1
- package/contracts/contracts/interfaces/INonceManager.sol/INonceManager.json +1 -1
- package/contracts/contracts/interfaces/IStakeManager.sol/IStakeManager.json +1 -1
- package/contracts/core/Eip7702Support.sol/Eip7702Support.json +1 -0
- package/contracts/core/NonceManager.sol/NonceManager.json +1 -0
- package/contracts/core/SenderCreator.sol/SenderCreator.json +1 -0
- package/contracts/core/StakeManager.sol/StakeManager.json +1 -0
- package/contracts/core/UserOperationLib.sol/UserOperationLib.json +1 -0
- package/contracts/interfaces/IAccount.sol/IAccount.json +1 -0
- package/contracts/interfaces/IAccountExecute.sol/IAccountExecute.json +1 -0
- package/contracts/interfaces/IAggregator.sol/IAggregator.json +1 -1
- package/contracts/interfaces/IEntryPoint.sol/IEntryPoint.json +1 -1
- package/contracts/interfaces/INonceManager.sol/INonceManager.json +1 -1
- package/contracts/interfaces/IPaymaster.sol/IPaymaster.json +1 -0
- package/contracts/interfaces/ISenderCreator.sol/ISenderCreator.json +1 -0
- package/contracts/interfaces/IStakeManager.sol/IStakeManager.json +1 -1
- package/contracts/overrides/Eip7702Support.sol/Eip7702Support.json +1 -0
- package/contracts/overrides/NonceManager.sol/NonceManager.json +1 -0
- package/contracts/overrides/SenderCreator.sol/SenderCreator.json +1 -0
- package/contracts/overrides/StakeManager.sol/StakeManager.json +1 -0
- package/contracts/overrides/UserOperationLib.sol/UserOperationLib.json +1 -0
- package/contracts/utils/Exec.sol/Exec.json +1 -1
- package/contracts/utils/StorageSlot.sol/StorageSlot.json +1 -0
- package/contracts/v09/EntryPoint.sol/EntryPoint.json +1 -0
- package/esm/cli/alto.js +13 -6
- package/esm/cli/alto.js.map +1 -1
- package/esm/cli/config/bundler.d.ts +190 -148
- package/esm/cli/config/bundler.js +72 -83
- package/esm/cli/config/bundler.js.map +1 -1
- package/esm/cli/config/options.d.ts +2 -1
- package/esm/cli/config/options.js +105 -68
- package/esm/cli/config/options.js.map +1 -1
- package/esm/cli/customTransport.d.ts +3 -3
- package/esm/cli/deploySimulationsContract.d.ts +1 -0
- package/esm/cli/deploySimulationsContract.js +41 -5
- package/esm/cli/deploySimulationsContract.js.map +1 -1
- package/esm/cli/handler.js +48 -52
- package/esm/cli/handler.js.map +1 -1
- package/esm/cli/setupServer.js +46 -47
- package/esm/cli/setupServer.js.map +1 -1
- package/esm/cli/shutDown.d.ts +20 -0
- package/esm/cli/shutDown.js +260 -0
- package/esm/cli/shutDown.js.map +1 -0
- package/esm/contracts/EntryPointFilterOpsOverride.sol/EntryPointFilterOpsOverride06.json +1 -1
- package/esm/contracts/EntryPointFilterOpsOverride.sol/EntryPointFilterOpsOverride07.json +1 -1
- package/esm/contracts/EntryPointFilterOpsOverride.sol/EntryPointFilterOpsOverride08.json +1 -1
- package/esm/contracts/EntryPointFilterOpsOverride.sol/EntryPointFilterOpsOverride09.json +1 -0
- package/esm/contracts/EntryPointGasEstimationOverride.sol/EntryPointGasEstimationOverride06.json +1 -1
- package/esm/contracts/EntryPointSimulations.sol/EntryPointSimulations07.json +1 -1
- package/esm/contracts/EntryPointSimulations.sol/EntryPointSimulations08.json +1 -1
- package/esm/contracts/EntryPointSimulations.sol/EntryPointSimulations09.json +1 -0
- package/esm/contracts/PimlicoSimulations.sol/PimlicoSimulations.json +1 -1
- package/esm/createConfig.d.ts +9 -2
- package/esm/createConfig.js.map +1 -1
- package/esm/executor/{userOpMonitor.d.ts → bundleManager.d.ts} +38 -32
- package/esm/executor/{userOpMonitor.js → bundleManager.js} +127 -99
- package/esm/executor/bundleManager.js.map +1 -0
- package/esm/executor/executor.d.ts +4 -3
- package/esm/executor/executor.js +33 -20
- package/esm/executor/executor.js.map +1 -1
- package/esm/executor/executorManager.d.ts +17 -15
- package/esm/executor/executorManager.js +130 -55
- package/esm/executor/executorManager.js.map +1 -1
- package/esm/executor/filterOpsAndEstimateGas.d.ts +17 -2
- package/esm/executor/filterOpsAndEstimateGas.js +100 -77
- package/esm/executor/filterOpsAndEstimateGas.js.map +1 -1
- package/esm/executor/index.d.ts +1 -0
- package/esm/executor/index.js +1 -0
- package/esm/executor/index.js.map +1 -1
- package/esm/executor/senderManager/createMemorySenderManager.js +13 -0
- package/esm/executor/senderManager/createMemorySenderManager.js.map +1 -1
- package/esm/executor/senderManager/createRedisSenderManager.d.ts +2 -1
- package/esm/executor/senderManager/createRedisSenderManager.js +3 -6
- package/esm/executor/senderManager/createRedisSenderManager.js.map +1 -1
- package/esm/executor/senderManager/flushOnStartUp.js +4 -4
- package/esm/executor/senderManager/flushOnStartUp.js.map +1 -1
- package/esm/executor/senderManager/index.d.ts +1 -0
- package/esm/executor/senderManager/index.js +6 -2
- package/esm/executor/senderManager/index.js.map +1 -1
- package/esm/executor/senderManager/validateAndRefill.js +2 -2
- package/esm/executor/senderManager/validateAndRefill.js.map +1 -1
- package/esm/executor/utilityWalletMonitor.d.ts +4 -4
- package/esm/executor/utilityWalletMonitor.js +1 -1
- package/esm/executor/utilityWalletMonitor.js.map +1 -1
- package/esm/executor/utils.d.ts +7 -2
- package/esm/executor/utils.js +57 -26
- package/esm/executor/utils.js.map +1 -1
- package/esm/handlers/arbitrumGasPriceManager.d.ts +3 -2
- package/esm/handlers/arbitrumGasPriceManager.js +6 -2
- package/esm/handlers/arbitrumGasPriceManager.js.map +1 -1
- package/esm/handlers/eventManager.d.ts +9 -9
- package/esm/handlers/eventManager.js +59 -60
- package/esm/handlers/eventManager.js.map +1 -1
- package/esm/handlers/gasPriceManager.d.ts +8 -9
- package/esm/handlers/gasPriceManager.js +68 -80
- package/esm/handlers/gasPriceManager.js.map +1 -1
- package/esm/handlers/mantleGasPriceManager.d.ts +4 -4
- package/esm/handlers/mantleGasPriceManager.js +4 -4
- package/esm/handlers/mantleGasPriceManager.js.map +1 -1
- package/esm/handlers/optimismManager.d.ts +1 -1
- package/esm/handlers/optimismManager.js +1 -1
- package/esm/handlers/optimismManager.js.map +1 -1
- package/esm/mempool/index.d.ts +1 -1
- package/esm/mempool/index.js +1 -1
- package/esm/mempool/index.js.map +1 -1
- package/esm/mempool/mempool.d.ts +57 -22
- package/esm/mempool/mempool.js +180 -134
- package/esm/mempool/mempool.js.map +1 -1
- package/esm/mempool/reputationManager.d.ts +14 -14
- package/esm/mempool/reputationManager.js +36 -39
- package/esm/mempool/reputationManager.js.map +1 -1
- package/esm/mempool/statusManager.d.ts +20 -0
- package/esm/mempool/statusManager.js +143 -0
- package/esm/mempool/statusManager.js.map +1 -0
- package/esm/receiptCache/createMemoryReceiptCache.d.ts +3 -0
- package/esm/receiptCache/createMemoryReceiptCache.js +30 -0
- package/esm/receiptCache/createMemoryReceiptCache.js.map +1 -0
- package/esm/receiptCache/createRedisReceiptCache.d.ts +10 -0
- package/esm/receiptCache/createRedisReceiptCache.js +56 -0
- package/esm/receiptCache/createRedisReceiptCache.js.map +1 -0
- package/esm/receiptCache/index.d.ts +11 -0
- package/esm/receiptCache/index.js +21 -0
- package/esm/receiptCache/index.js.map +1 -0
- package/esm/rpc/createMethodHandler.js.map +1 -1
- package/esm/rpc/estimation/gasEstimationHandler.d.ts +2 -4
- package/esm/rpc/estimation/gasEstimationHandler.js.map +1 -1
- package/esm/rpc/estimation/gasEstimations06.d.ts +6 -7
- package/esm/rpc/estimation/gasEstimations06.js +1 -5
- package/esm/rpc/estimation/gasEstimations06.js.map +1 -1
- package/esm/rpc/estimation/gasEstimations07.d.ts +13 -41
- package/esm/rpc/estimation/gasEstimations07.js +27 -34
- package/esm/rpc/estimation/gasEstimations07.js.map +1 -1
- package/esm/{utils/preVerificationGasCalulator.d.ts → rpc/estimation/preVerificationGasCalculator.d.ts} +20 -6
- package/esm/{utils/preVerificationGasCalulator.js → rpc/estimation/preVerificationGasCalculator.js} +95 -47
- package/esm/rpc/estimation/preVerificationGasCalculator.js.map +1 -0
- package/esm/rpc/estimation/types.d.ts +4 -2
- package/esm/rpc/estimation/utils.d.ts +10 -8
- package/esm/rpc/estimation/utils.js +54 -48
- package/esm/rpc/estimation/utils.js.map +1 -1
- package/esm/rpc/methods/boost_sendUserOperation.d.ts +304 -0
- package/esm/rpc/methods/debug_bundler_clearReputation.js +1 -1
- package/esm/rpc/methods/debug_bundler_clearReputation.js.map +1 -1
- package/esm/rpc/methods/debug_bundler_clearState.js +1 -1
- package/esm/rpc/methods/debug_bundler_clearState.js.map +1 -1
- package/esm/rpc/methods/debug_bundler_dumpMempool.d.ts +338 -0
- package/esm/rpc/methods/debug_bundler_dumpReputation.js +1 -1
- package/esm/rpc/methods/debug_bundler_dumpReputation.js.map +1 -1
- package/esm/rpc/methods/eth_estimateUserOperationGas.d.ts +622 -14
- package/esm/rpc/methods/eth_estimateUserOperationGas.js +50 -29
- package/esm/rpc/methods/eth_estimateUserOperationGas.js.map +1 -1
- package/esm/rpc/methods/eth_getUserOperationByHash.d.ts +621 -11
- package/esm/rpc/methods/eth_getUserOperationByHash.js.map +1 -1
- package/esm/rpc/methods/eth_getUserOperationReceipt.d.ts +26 -26
- package/esm/rpc/methods/eth_getUserOperationReceipt.js +1 -1
- package/esm/rpc/methods/eth_sendUserOperation.d.ts +305 -1
- package/esm/rpc/methods/eth_sendUserOperation.js +132 -36
- package/esm/rpc/methods/eth_sendUserOperation.js.map +1 -1
- package/esm/rpc/methods/pimlico_getUserOperationStatus.js +1 -1
- package/esm/rpc/methods/pimlico_getUserOperationStatus.js.map +1 -1
- package/esm/rpc/methods/pimlico_sendUserOperationNow.d.ts +330 -26
- package/esm/rpc/methods/pimlico_sendUserOperationNow.js +15 -27
- package/esm/rpc/methods/pimlico_sendUserOperationNow.js.map +1 -1
- package/esm/rpc/methods/pimlico_simulateAssetChange.d.ts +620 -12
- package/esm/rpc/methods/pimlico_simulateAssetChange.js +14 -19
- package/esm/rpc/methods/pimlico_simulateAssetChange.js.map +1 -1
- package/esm/rpc/rpcHandler.d.ts +21 -22
- package/esm/rpc/rpcHandler.js +15 -17
- package/esm/rpc/rpcHandler.js.map +1 -1
- package/esm/rpc/server.d.ts +5 -5
- package/esm/rpc/server.js +15 -11
- package/esm/rpc/server.js.map +1 -1
- package/esm/rpc/validation/BundlerCollectorTracerV06.js +1 -1
- package/esm/rpc/validation/BundlerCollectorTracerV06.js.map +1 -1
- package/esm/rpc/validation/BundlerCollectorTracerV07.js +1 -1
- package/esm/rpc/validation/BundlerCollectorTracerV07.js.map +1 -1
- package/esm/rpc/validation/SafeValidator.d.ts +13 -14
- package/esm/rpc/validation/SafeValidator.js +24 -24
- package/esm/rpc/validation/SafeValidator.js.map +1 -1
- package/esm/rpc/validation/TracerResultParserV06.d.ts +2 -2
- package/esm/rpc/validation/TracerResultParserV06.js +11 -11
- package/esm/rpc/validation/TracerResultParserV06.js.map +1 -1
- package/esm/rpc/validation/TracerResultParserV07.d.ts +2 -2
- package/esm/rpc/validation/TracerResultParserV07.js +13 -13
- package/esm/rpc/validation/TracerResultParserV07.js.map +1 -1
- package/esm/rpc/validation/UnsafeValidator.d.ts +18 -14
- package/esm/rpc/validation/UnsafeValidator.js +71 -40
- package/esm/rpc/validation/UnsafeValidator.js.map +1 -1
- package/esm/store/createMempoolStore.d.ts +1 -1
- package/esm/store/createMempoolStore.js +63 -139
- package/esm/store/createMempoolStore.js.map +1 -1
- package/esm/store/index.d.ts +4 -75
- package/esm/store/index.js +4 -1
- package/esm/store/index.js.map +1 -1
- package/esm/store/outstanding/index.d.ts +13 -0
- package/esm/store/outstanding/index.js +16 -0
- package/esm/store/outstanding/index.js.map +1 -0
- package/esm/store/{createMemoryOutstandingStore.d.ts → outstanding/memory.d.ts} +14 -13
- package/esm/store/outstanding/memory.js +263 -0
- package/esm/store/outstanding/memory.js.map +1 -0
- package/esm/store/outstanding/redis.d.ts +11 -0
- package/esm/store/outstanding/redis.js +229 -0
- package/esm/store/outstanding/redis.js.map +1 -0
- package/esm/store/outstanding/types.d.ts +19 -0
- package/esm/store/outstanding/types.js +2 -0
- package/esm/store/outstanding/types.js.map +1 -0
- package/esm/store/processing/index.d.ts +11 -0
- package/esm/store/processing/index.js +17 -0
- package/esm/store/processing/index.js.map +1 -0
- package/esm/store/processing/memory.d.ts +16 -0
- package/esm/store/processing/memory.js +58 -0
- package/esm/store/processing/memory.js.map +1 -0
- package/esm/store/processing/redis.d.ts +23 -0
- package/esm/store/processing/redis.js +85 -0
- package/esm/store/processing/redis.js.map +1 -0
- package/esm/store/processing/types.d.ts +10 -0
- package/esm/store/processing/types.js +2 -0
- package/esm/store/processing/types.js.map +1 -0
- package/esm/store/types.d.ts +50 -0
- package/esm/store/types.js +2 -0
- package/esm/store/types.js.map +1 -0
- package/esm/types/contracts/PimlicoSimulations.d.ts +81 -0
- package/esm/types/contracts/PimlicoSimulations.js +105 -0
- package/esm/types/contracts/PimlicoSimulations.js.map +1 -1
- package/esm/types/gasPrice.js +0 -18
- package/esm/types/gasPrice.js.map +1 -1
- package/esm/types/interfaces.d.ts +15 -10
- package/esm/types/mempool.d.ts +3 -0
- package/esm/types/schemas.d.ts +13174 -4732
- package/esm/types/schemas.js +113 -25
- package/esm/types/schemas.js.map +1 -1
- package/esm/types/utils.d.ts +2 -5
- package/esm/types/utils.js +16 -18
- package/esm/types/utils.js.map +1 -1
- package/esm/types/validation.d.ts +7646 -6912
- package/esm/types/validation.js +122 -152
- package/esm/types/validation.js.map +1 -1
- package/esm/utils/eip7702.d.ts +2 -1
- package/esm/utils/eip7702.js +14 -8
- package/esm/utils/eip7702.js.map +1 -1
- package/esm/utils/entryPointOverrides.js +18 -4
- package/esm/utils/entryPointOverrides.js.map +1 -1
- package/esm/utils/helpers.d.ts +2 -1
- package/esm/utils/helpers.js +30 -11
- package/esm/utils/helpers.js.map +1 -1
- package/esm/utils/index.d.ts +0 -1
- package/esm/utils/index.js +0 -1
- package/esm/utils/index.js.map +1 -1
- package/esm/utils/metrics.d.ts +2 -1
- package/esm/utils/metrics.js +15 -8
- package/esm/utils/metrics.js.map +1 -1
- package/esm/utils/minMaxQueue/createMemoryMinMaxQueue.js +8 -9
- package/esm/utils/minMaxQueue/createMemoryMinMaxQueue.js.map +1 -1
- package/esm/utils/minMaxQueue/createRedisMinMaxQueue.d.ts +24 -2
- package/esm/utils/minMaxQueue/createRedisMinMaxQueue.js +85 -64
- package/esm/utils/minMaxQueue/createRedisMinMaxQueue.js.map +1 -1
- package/esm/utils/minMaxQueue/index.d.ts +2 -2
- package/esm/utils/minMaxQueue/index.js +4 -3
- package/esm/utils/minMaxQueue/index.js.map +1 -1
- package/esm/utils/rpc-reply.d.ts +3 -3
- package/esm/utils/rpc-reply.js.map +1 -1
- package/esm/utils/toViemStateOverrides.js +7 -7
- package/esm/utils/toViemStateOverrides.js.map +1 -1
- package/esm/utils/userop.d.ts +87 -55
- package/esm/utils/userop.js +138 -248
- package/esm/utils/userop.js.map +1 -1
- package/package.json +4 -2
- package/contracts/build-info/7710b5a048396e70.json +0 -1
- package/esm/executor/userOpMonitor.js.map +0 -1
- package/esm/mempool/monitoring.d.ts +0 -15
- package/esm/mempool/monitoring.js +0 -118
- package/esm/mempool/monitoring.js.map +0 -1
- package/esm/store/createMemoryOutstandingStore.js +0 -240
- package/esm/store/createMemoryOutstandingStore.js.map +0 -1
- package/esm/store/createRedisOutstandingStore.d.ts +0 -27
- package/esm/store/createRedisOutstandingStore.js +0 -344
- package/esm/store/createRedisOutstandingStore.js.map +0 -1
- package/esm/store/createRedisStore.d.ts +0 -9
- package/esm/store/createRedisStore.js +0 -131
- package/esm/store/createRedisStore.js.map +0 -1
- package/esm/store/createStore.d.ts +0 -6
- package/esm/store/createStore.js +0 -66
- package/esm/store/createStore.js.map +0 -1
- package/esm/utils/preVerificationGasCalulator.js.map +0 -1
|
@@ -1,25 +1,86 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import { ERC7769Errors, RpcError, sendUserOperationSchema } from "../../types/index.js";
|
|
2
|
+
import { getAAError } from "../../utils/index.js";
|
|
3
|
+
import { slice } from "viem";
|
|
4
|
+
import { getFilterOpsResult } from "../../executor/filterOpsAndEstimateGas.js";
|
|
5
|
+
import { getNonceKeyAndSequence, getUserOpHash, getViemEntryPointVersion } from "../../utils/userop.js";
|
|
4
6
|
import { createMethodHandler } from "../createMethodHandler.js";
|
|
5
|
-
|
|
7
|
+
import { calcExecutionPvgComponent, calcL2PvgComponent, calcMonadPvg } from "../estimation/preVerificationGasCalculator.js";
|
|
8
|
+
const validateChainRules = async ({ rpcHandler, userOp, entryPoint, config }) => {
|
|
9
|
+
// Monad-specific validation
|
|
10
|
+
if (config.chainType === "monad") {
|
|
11
|
+
const { gasPriceManager } = rpcHandler;
|
|
12
|
+
const { publicClient, utilityWalletAddress } = config;
|
|
13
|
+
const senderCode = await publicClient.getCode({
|
|
14
|
+
address: userOp.sender
|
|
15
|
+
});
|
|
16
|
+
const is7702Delegated = senderCode && slice(senderCode, 0, 3) === "0xef0100";
|
|
17
|
+
if (is7702Delegated || userOp.eip7702Auth) {
|
|
18
|
+
// Need to do a balance reserve check for 7702 userOps
|
|
19
|
+
try {
|
|
20
|
+
const userOpInfo = {
|
|
21
|
+
userOp,
|
|
22
|
+
userOpHash: getUserOpHash({
|
|
23
|
+
userOp,
|
|
24
|
+
entryPointAddress: entryPoint,
|
|
25
|
+
chainId: rpcHandler.config.chainId
|
|
26
|
+
}),
|
|
27
|
+
addedToMempool: Date.now(),
|
|
28
|
+
submissionAttempts: 0
|
|
29
|
+
};
|
|
30
|
+
const userOpBundle = {
|
|
31
|
+
entryPoint,
|
|
32
|
+
version: getViemEntryPointVersion(userOp, entryPoint),
|
|
33
|
+
userOps: [userOpInfo],
|
|
34
|
+
submissionAttempts: 0
|
|
35
|
+
};
|
|
36
|
+
await getFilterOpsResult({
|
|
37
|
+
userOpBundle,
|
|
38
|
+
config,
|
|
39
|
+
networkBaseFee: await gasPriceManager.getBaseFee(),
|
|
40
|
+
beneficiary: utilityWalletAddress
|
|
41
|
+
});
|
|
42
|
+
}
|
|
43
|
+
catch {
|
|
44
|
+
return [
|
|
45
|
+
false,
|
|
46
|
+
"Balance reserve error: userOp.sender needs atleast 10 MON at the end of transaction."
|
|
47
|
+
];
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
// Add more chain-specific validations here in the future
|
|
52
|
+
return [true, ""];
|
|
53
|
+
};
|
|
54
|
+
const validatePvg = async ({ apiVersion, rpcHandler, userOp, entryPoint, config, boost = false }) => {
|
|
6
55
|
// PVG validation is skipped for v1
|
|
7
56
|
if (apiVersion === "v1" || boost) {
|
|
8
57
|
return [true, ""];
|
|
9
58
|
}
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
59
|
+
let requiredPvg;
|
|
60
|
+
if (config.chainType === "monad") {
|
|
61
|
+
// Monad consumes the entire gasLimit, so PVG is calculated differently
|
|
62
|
+
requiredPvg = await calcMonadPvg({
|
|
63
|
+
userOp,
|
|
64
|
+
config,
|
|
65
|
+
entryPoint,
|
|
66
|
+
validate: true
|
|
67
|
+
});
|
|
68
|
+
}
|
|
69
|
+
else {
|
|
70
|
+
const executionGasComponent = calcExecutionPvgComponent({
|
|
71
|
+
userOp,
|
|
72
|
+
supportsEip7623: rpcHandler.config.supportsEip7623,
|
|
73
|
+
config: rpcHandler.config
|
|
74
|
+
});
|
|
75
|
+
const l2GasComponent = await calcL2PvgComponent({
|
|
76
|
+
config: rpcHandler.config,
|
|
77
|
+
userOp,
|
|
78
|
+
entryPoint,
|
|
79
|
+
gasPriceManager: rpcHandler.gasPriceManager,
|
|
80
|
+
validate: true
|
|
81
|
+
});
|
|
82
|
+
requiredPvg = executionGasComponent + l2GasComponent;
|
|
83
|
+
}
|
|
23
84
|
if (requiredPvg > userOp.preVerificationGas) {
|
|
24
85
|
return [
|
|
25
86
|
false,
|
|
@@ -29,10 +90,19 @@ const validatePvg = async (apiVersion, rpcHandler, userOp, entryPoint, boost = f
|
|
|
29
90
|
return [true, ""];
|
|
30
91
|
};
|
|
31
92
|
const getUserOpValidationResult = async (rpcHandler, userOp, entryPoint) => {
|
|
32
|
-
const queuedUserOps = await rpcHandler.mempool.
|
|
93
|
+
const queuedUserOps = await rpcHandler.mempool.getQueuedOutstandingUserOps({
|
|
33
94
|
userOp,
|
|
34
95
|
entryPoint
|
|
35
96
|
});
|
|
97
|
+
// Log queued userOps.
|
|
98
|
+
if (queuedUserOps.length > 0) {
|
|
99
|
+
const queuedHashes = queuedUserOps.map((userOp) => getUserOpHash({
|
|
100
|
+
userOp,
|
|
101
|
+
entryPointAddress: entryPoint,
|
|
102
|
+
chainId: rpcHandler.config.chainId
|
|
103
|
+
}));
|
|
104
|
+
rpcHandler.logger.info({ queuedHashes }, "Found queuedUserOps");
|
|
105
|
+
}
|
|
36
106
|
const validationResult = await rpcHandler.validator.validateUserOp({
|
|
37
107
|
userOp,
|
|
38
108
|
queuedUserOps,
|
|
@@ -45,61 +115,84 @@ const getUserOpValidationResult = async (rpcHandler, userOp, entryPoint) => {
|
|
|
45
115
|
};
|
|
46
116
|
export async function addToMempoolIfValid({ rpcHandler, userOp, entryPoint, apiVersion, boost = false }) {
|
|
47
117
|
rpcHandler.ensureEntryPointIsSupported(entryPoint);
|
|
118
|
+
const userOpHash = getUserOpHash({
|
|
119
|
+
userOp,
|
|
120
|
+
entryPointAddress: entryPoint,
|
|
121
|
+
chainId: rpcHandler.config.chainId
|
|
122
|
+
});
|
|
123
|
+
const userOpInfo = {
|
|
124
|
+
userOp,
|
|
125
|
+
userOpHash,
|
|
126
|
+
addedToMempool: Date.now(),
|
|
127
|
+
submissionAttempts: 0
|
|
128
|
+
};
|
|
48
129
|
// Execute multiple async operations in parallel
|
|
49
|
-
const [
|
|
50
|
-
getUserOpHash({
|
|
51
|
-
userOp,
|
|
52
|
-
entryPointAddress: entryPoint,
|
|
53
|
-
chainId: rpcHandler.config.chainId,
|
|
54
|
-
publicClient: rpcHandler.config.publicClient
|
|
55
|
-
}),
|
|
130
|
+
const [{ queuedUserOps, validationResult }, currentNonceSeq, [pvgSuccess, pvgErrorReason], [preMempoolSuccess, preMempoolError], [validEip7702Auth, validEip7702AuthError], [chainRulesSuccess, chainRulesError]] = await Promise.all([
|
|
56
131
|
getUserOpValidationResult(rpcHandler, userOp, entryPoint),
|
|
57
132
|
rpcHandler.getNonceSeq(userOp, entryPoint),
|
|
58
|
-
validatePvg(
|
|
133
|
+
validatePvg({
|
|
134
|
+
apiVersion,
|
|
135
|
+
rpcHandler,
|
|
136
|
+
userOp,
|
|
137
|
+
entryPoint,
|
|
138
|
+
boost,
|
|
139
|
+
config: rpcHandler.config
|
|
140
|
+
}),
|
|
59
141
|
rpcHandler.preMempoolChecks(userOp, apiVersion, boost),
|
|
60
142
|
rpcHandler.validateEip7702Auth({
|
|
61
143
|
userOp,
|
|
62
144
|
validateSender: true
|
|
145
|
+
}),
|
|
146
|
+
validateChainRules({
|
|
147
|
+
rpcHandler,
|
|
148
|
+
userOp,
|
|
149
|
+
entryPoint,
|
|
150
|
+
config: rpcHandler.config
|
|
63
151
|
})
|
|
64
152
|
]);
|
|
65
153
|
// Validate eip7702Auth
|
|
66
154
|
if (!validEip7702Auth) {
|
|
67
155
|
rpcHandler.eventManager.emitFailedValidation(userOpHash, validEip7702AuthError);
|
|
68
|
-
throw new RpcError(validEip7702AuthError,
|
|
156
|
+
throw new RpcError(validEip7702AuthError, ERC7769Errors.InvalidFields);
|
|
69
157
|
}
|
|
70
158
|
// Pre mempool validation
|
|
71
159
|
if (!preMempoolSuccess) {
|
|
72
160
|
rpcHandler.eventManager.emitFailedValidation(userOpHash, preMempoolError);
|
|
73
|
-
throw new RpcError(preMempoolError);
|
|
161
|
+
throw new RpcError(preMempoolError, ERC7769Errors.InvalidFields);
|
|
74
162
|
}
|
|
75
163
|
// PreVerificationGas validation
|
|
76
164
|
if (!pvgSuccess) {
|
|
77
165
|
rpcHandler.eventManager.emitFailedValidation(userOpHash, pvgErrorReason);
|
|
78
|
-
throw new RpcError(pvgErrorReason,
|
|
166
|
+
throw new RpcError(pvgErrorReason, ERC7769Errors.SimulateValidation);
|
|
79
167
|
}
|
|
80
168
|
// Nonce validation
|
|
81
169
|
const [, userOpNonceSeq] = getNonceKeyAndSequence(userOp.nonce);
|
|
82
170
|
if (userOpNonceSeq < currentNonceSeq) {
|
|
83
171
|
const reason = "UserOperation failed validation with reason: AA25 invalid account nonce";
|
|
84
172
|
rpcHandler.eventManager.emitFailedValidation(userOpHash, reason, "AA25");
|
|
85
|
-
throw new RpcError(reason,
|
|
173
|
+
throw new RpcError(reason, ERC7769Errors.SimulateValidation);
|
|
86
174
|
}
|
|
87
175
|
if (userOpNonceSeq > currentNonceSeq + 10n) {
|
|
88
176
|
const reason = "UserOperation failed validaiton with reason: AA25 invalid account nonce";
|
|
89
177
|
rpcHandler.eventManager.emitFailedValidation(userOpHash, reason, "AA25");
|
|
90
|
-
throw new RpcError(reason,
|
|
178
|
+
throw new RpcError(reason, ERC7769Errors.SimulateValidation);
|
|
91
179
|
}
|
|
92
180
|
if (userOpNonceSeq > currentNonceSeq + BigInt(queuedUserOps.length)) {
|
|
93
|
-
rpcHandler.mempool.add(
|
|
181
|
+
rpcHandler.mempool.add({ userOpInfo, entryPoint });
|
|
94
182
|
rpcHandler.eventManager.emitQueued(userOpHash);
|
|
95
183
|
return { result: "queued", userOpHash };
|
|
96
184
|
}
|
|
185
|
+
// Chain rules validation
|
|
186
|
+
if (!chainRulesSuccess) {
|
|
187
|
+
rpcHandler.eventManager.emitFailedValidation(userOpHash, chainRulesError);
|
|
188
|
+
throw new RpcError(chainRulesError, ERC7769Errors.InvalidFields);
|
|
189
|
+
}
|
|
97
190
|
// userOp validation
|
|
98
191
|
if (rpcHandler.config.dangerousSkipUserOperationValidation) {
|
|
99
|
-
const [isMempoolAddSuccess, mempoolAddError] = await rpcHandler.mempool.add(
|
|
192
|
+
const [isMempoolAddSuccess, mempoolAddError] = await rpcHandler.mempool.add({ userOpInfo, entryPoint });
|
|
100
193
|
if (!isMempoolAddSuccess) {
|
|
101
194
|
rpcHandler.eventManager.emitFailedValidation(userOpHash, mempoolAddError, getAAError(mempoolAddError));
|
|
102
|
-
throw new RpcError(mempoolAddError,
|
|
195
|
+
throw new RpcError(mempoolAddError, ERC7769Errors.InvalidFields);
|
|
103
196
|
}
|
|
104
197
|
return { result: "added", userOpHash };
|
|
105
198
|
}
|
|
@@ -107,10 +200,13 @@ export async function addToMempoolIfValid({ rpcHandler, userOp, entryPoint, apiV
|
|
|
107
200
|
rpcHandler.reputationManager.checkReputation(userOp, entryPoint, validationResult);
|
|
108
201
|
await rpcHandler.mempool.checkEntityMultipleRoleViolation(entryPoint, userOp);
|
|
109
202
|
// Finally, add to mempool
|
|
110
|
-
const [isMempoolAddSuccess, mempoolAddError] = await rpcHandler.mempool.add(
|
|
203
|
+
const [isMempoolAddSuccess, mempoolAddError] = await rpcHandler.mempool.add({
|
|
204
|
+
userOpInfo,
|
|
205
|
+
entryPoint
|
|
206
|
+
});
|
|
111
207
|
if (!isMempoolAddSuccess) {
|
|
112
208
|
rpcHandler.eventManager.emitFailedValidation(userOpHash, mempoolAddError, getAAError(mempoolAddError));
|
|
113
|
-
throw new RpcError(mempoolAddError,
|
|
209
|
+
throw new RpcError(mempoolAddError, ERC7769Errors.InvalidFields);
|
|
114
210
|
}
|
|
115
211
|
return { result: "added", userOpHash };
|
|
116
212
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"eth_sendUserOperation.js","sourceRoot":"","sources":["../../../rpc/methods/eth_sendUserOperation.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"eth_sendUserOperation.js","sourceRoot":"","sources":["../../../rpc/methods/eth_sendUserOperation.ts"],"names":[],"mappings":"AAAA,OAAO,EAGH,aAAa,EAEb,QAAQ,EAKR,uBAAuB,EAC1B,MAAM,aAAa,CAAA;AACpB,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAA;AACxC,OAAO,EAAY,KAAK,EAAE,MAAM,MAAM,CAAA;AAEtC,OAAO,EAAE,kBA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D,MAAM,IAAI,QAAQ,CAAC,eAAe,EAAE,aAAa,CAAC,aAAa,CAAC,CAAA;IACpE,CAAC;IAED,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,UAAU,EAAE,CAAA;AAC1C,CAAC;AAED,MAAM,CAAC,MAAM,2BAA2B,GAAG,mBAAmB,CAAC;IAC3D,MAAM,EAAE,uBAAuB;IAC/B,MAAM,EAAE,uBAAuB;IAC/B,OAAO,EAAE,KAAK,EAAE,EAAE,UAAU,EAAE,MAAM,EAAE,UAAU,EAAE,EAAE,EAAE;QAClD,MAAM,CAAC,MAAM,EAAE,UAAU,CAAC,GAAG,MAAM,CAAA;QAEnC,IAAI,MAAM,GAAoC,UAAU,CAAA;QACxD,IAAI,CAAC;YACD,MAAM,EAAE,MAAM,EAAE,UAAU,EAAE,GAAG,MAAM,mBAAmB,CAAC;gBACrD,UAAU;gBACV,MAAM;gBACN,UAAU;gBACV,UAAU;aACb,CAAC,CAAA;YAEF,MAAM,GAAG,MAAM,CAAA;YAEf,UAAU,CAAC,YAAY,CAAC,YAAY,CAAC,UAAU,CAAC,CAAA;YAEhD,OAAO,UAAU,CAAA;QACrB,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YACb,MAAM,GAAG,UAAU,CAAA;YACnB,MAAM,KAAK,CAAA;QACf,CAAC;gBAAS,CAAC;YACP,UAAU,CAAC,OAAO,CAAC,eAAe;iBAC7B,MAAM,CAAC;gBACJ,MAAM;gBACN,IAAI,EAAE,MAAM,CAAC,WAAW,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,SAAS;aAChD,CAAC;iBACD,GAAG,EAAE,CAAA;QACd,CAAC;IACL,CAAC;CACJ,CAAC,CAAA"}
|
|
@@ -5,7 +5,7 @@ export const pimlicoGetUserOperationStatusHandler = createMethodHandler({
|
|
|
5
5
|
schema: pimlicoGetUserOperationStatusSchema,
|
|
6
6
|
handler: ({ rpcHandler, params }) => {
|
|
7
7
|
const [userOpHash] = params;
|
|
8
|
-
return rpcHandler.
|
|
8
|
+
return rpcHandler.statusManager.get(userOpHash);
|
|
9
9
|
}
|
|
10
10
|
});
|
|
11
11
|
//# sourceMappingURL=pimlico_getUserOperationStatus.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pimlico_getUserOperationStatus.js","sourceRoot":"","sources":["../../../rpc/methods/pimlico_getUserOperationStatus.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mCAAmC,EAAE,MAAM,aAAa,CAAA;AACjE,OAAO,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAA;AAE5D,MAAM,CAAC,MAAM,oCAAoC,GAAG,mBAAmB,CAAC;IACpE,MAAM,EAAE,gCAAgC;IACxC,MAAM,EAAE,mCAAmC;IAC3C,OAAO,EAAE,CAAC,EAAE,UAAU,EAAE,MAAM,EAAE,EAAE,EAAE;QAChC,MAAM,CAAC,UAAU,CAAC,GAAG,MAAM,CAAA;QAC3B,OAAO,UAAU,CAAC,
|
|
1
|
+
{"version":3,"file":"pimlico_getUserOperationStatus.js","sourceRoot":"","sources":["../../../rpc/methods/pimlico_getUserOperationStatus.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mCAAmC,EAAE,MAAM,aAAa,CAAA;AACjE,OAAO,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAA;AAE5D,MAAM,CAAC,MAAM,oCAAoC,GAAG,mBAAmB,CAAC;IACpE,MAAM,EAAE,gCAAgC;IACxC,MAAM,EAAE,mCAAmC;IAC3C,OAAO,EAAE,CAAC,EAAE,UAAU,EAAE,MAAM,EAAE,EAAE,EAAE;QAChC,MAAM,CAAC,UAAU,CAAC,GAAG,MAAM,CAAA;QAC3B,OAAO,UAAU,CAAC,aAAa,CAAC,GAAG,CAAC,UAAU,CAAC,CAAA;IACnD,CAAC;CACJ,CAAC,CAAA"}
|