@pimlico/alto 0.0.19 → 0.0.21
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/{880955d5786bfdae.json → 031b289b93191224.json} +1 -1
- package/contracts/build-info/181f3522c3744403.json +1 -0
- package/contracts/build-info/a2db592afab5c9de.json +1 -0
- 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 +17 -6
- package/esm/cli/alto.js.map +1 -1
- package/esm/cli/config/bundler.d.ts +459 -321
- package/esm/cli/config/bundler.js +125 -91
- package/esm/cli/config/bundler.js.map +1 -1
- package/esm/cli/config/options.d.ts +4 -1
- package/esm/cli/config/options.js +233 -106
- 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 +76 -80
- package/esm/cli/handler.js.map +1 -1
- package/esm/cli/multiRpcTransport.d.ts +7 -0
- package/esm/cli/multiRpcTransport.js +52 -0
- package/esm/cli/multiRpcTransport.js.map +1 -0
- package/esm/cli/setupServer.js +92 -70
- package/esm/cli/setupServer.js.map +1 -1
- package/esm/cli/shutDown.d.ts +20 -0
- package/esm/cli/shutDown.js +285 -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} +56 -37
- package/esm/executor/bundleManager.js +393 -0
- package/esm/executor/bundleManager.js.map +1 -0
- package/esm/executor/executor.d.ts +4 -3
- package/esm/executor/executor.js +47 -23
- package/esm/executor/executor.js.map +1 -1
- package/esm/executor/executorManager.d.ts +20 -15
- package/esm/executor/executorManager.js +248 -67
- 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/getBundleStatus.d.ts +5 -1
- package/esm/executor/getBundleStatus.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 +45 -26
- package/esm/executor/senderManager/createRedisSenderManager.js.map +1 -1
- package/esm/executor/senderManager/flushOnStartUp.js +7 -5
- 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 +268 -85
- package/esm/executor/senderManager/validateAndRefill.js.map +1 -1
- package/esm/executor/utils.d.ts +8 -3
- package/esm/executor/utils.js +59 -27
- 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/citreaManager.d.ts +10 -0
- package/esm/handlers/citreaManager.js +17 -0
- package/esm/handlers/citreaManager.js.map +1 -0
- 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 +17 -10
- package/esm/handlers/gasPriceManager.js +245 -99
- 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 +61 -22
- package/esm/mempool/mempool.js +223 -133
- 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} +134 -48
- 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 +56 -53
- package/esm/rpc/estimation/utils.js.map +1 -1
- package/esm/rpc/methods/boost_sendUserOperation.d.ts +304 -0
- package/esm/rpc/methods/boost_sendUserOperation.js +1 -1
- package/esm/rpc/methods/boost_sendUserOperation.js.map +1 -1
- 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 +61 -30
- 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 +34 -34
- package/esm/rpc/methods/eth_getUserOperationReceipt.js +1 -1
- package/esm/rpc/methods/eth_sendUserOperation.d.ts +307 -3
- package/esm/rpc/methods/eth_sendUserOperation.js +153 -48
- 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 +338 -34
- package/esm/rpc/methods/pimlico_sendUserOperationNow.js +26 -29
- 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 +38 -26
- package/esm/rpc/rpcHandler.js +97 -44
- 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 +76 -41
- package/esm/rpc/validation/UnsafeValidator.js.map +1 -1
- package/esm/store/createMempoolStore.d.ts +1 -1
- package/esm/store/createMempoolStore.js +79 -140
- 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 +19 -0
- package/esm/store/processing/memory.js +83 -0
- package/esm/store/processing/memory.js.map +1 -0
- package/esm/store/processing/redis.d.ts +26 -0
- package/esm/store/processing/redis.js +123 -0
- package/esm/store/processing/redis.js.map +1 -0
- package/esm/store/processing/types.d.ts +12 -0
- package/esm/store/processing/types.js +2 -0
- package/esm/store/processing/types.js.map +1 -0
- package/esm/store/types.d.ts +52 -0
- package/esm/store/types.js +2 -0
- package/esm/store/types.js.map +1 -0
- package/esm/types/contracts/Multicall3.d.ts +34 -0
- package/esm/types/contracts/Multicall3.js +31 -0
- package/esm/types/contracts/Multicall3.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/contracts/index.d.ts +1 -1
- package/esm/types/contracts/index.js +1 -1
- package/esm/types/contracts/index.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 +13184 -4741
- package/esm/types/schemas.js +116 -27
- 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 +7 -1
- package/esm/utils/helpers.js +36 -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 +4 -1
- package/esm/utils/metrics.js +34 -7
- 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 +110 -56
- package/esm/utils/userop.js +161 -249
- 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 +0 -326
- package/esm/executor/userOpMonitor.js.map +0 -1
- package/esm/executor/utilityWalletMonitor.d.ts +0 -19
- package/esm/executor/utilityWalletMonitor.js +0 -38
- package/esm/executor/utilityWalletMonitor.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/types/contracts/CallEngine.d.ts +0 -28
- package/esm/types/contracts/CallEngine.js +0 -37
- package/esm/types/contracts/CallEngine.js.map +0 -1
- package/esm/utils/preVerificationGasCalulator.js.map +0 -1
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { type Address, type ApiVersion, type UserOperation } from "../../types/index.js";
|
|
2
|
-
import type
|
|
2
|
+
import { type Hex } from "viem";
|
|
3
3
|
import type { RpcHandler } from "../rpcHandler.js";
|
|
4
|
-
export declare function addToMempoolIfValid({ rpcHandler, userOp, entryPoint, apiVersion,
|
|
4
|
+
export declare function addToMempoolIfValid({ rpcHandler, userOp, entryPoint, apiVersion, isBoosted }: {
|
|
5
5
|
rpcHandler: RpcHandler;
|
|
6
6
|
userOp: UserOperation;
|
|
7
7
|
entryPoint: Address;
|
|
8
8
|
apiVersion: ApiVersion;
|
|
9
|
-
|
|
9
|
+
isBoosted?: boolean;
|
|
10
10
|
}): Promise<{
|
|
11
11
|
userOpHash: Hex;
|
|
12
12
|
result: "added" | "queued";
|
|
@@ -585,6 +585,208 @@ export declare const ethSendUserOperationHandler: {
|
|
|
585
585
|
yParity: string | number | bigint;
|
|
586
586
|
v?: string | number | bigint | undefined;
|
|
587
587
|
} | null | undefined;
|
|
588
|
+
}>, import("zod").ZodEffects<import("zod").ZodObject<{
|
|
589
|
+
sender: import("zod").ZodEffects<import("zod").ZodString, `0x${string}`, string>;
|
|
590
|
+
nonce: import("zod").ZodEffects<import("zod").ZodEffects<import("zod").ZodUnion<[import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodNumber]>, import("zod").ZodBigInt]>, bigint, string | number | bigint>, bigint, string | number | bigint>;
|
|
591
|
+
factory: import("zod").ZodEffects<import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodUnion<[import("zod").ZodEffects<import("zod").ZodString, `0x${string}`, string>, import("zod").ZodLiteral<"0x7702">]>>>, `0x${string}` | null, string | null | undefined>;
|
|
592
|
+
factoryData: import("zod").ZodEffects<import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodEffects<import("zod").ZodString, `0x${string}`, string>>>, `0x${string}` | null, string | null | undefined>;
|
|
593
|
+
callData: import("zod").ZodEffects<import("zod").ZodString, `0x${string}`, string>;
|
|
594
|
+
callGasLimit: import("zod").ZodEffects<import("zod").ZodEffects<import("zod").ZodUnion<[import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodNumber]>, import("zod").ZodBigInt]>, bigint, string | number | bigint>, bigint, string | number | bigint>;
|
|
595
|
+
verificationGasLimit: import("zod").ZodEffects<import("zod").ZodEffects<import("zod").ZodUnion<[import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodNumber]>, import("zod").ZodBigInt]>, bigint, string | number | bigint>, bigint, string | number | bigint>;
|
|
596
|
+
preVerificationGas: import("zod").ZodEffects<import("zod").ZodEffects<import("zod").ZodUnion<[import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodNumber]>, import("zod").ZodBigInt]>, bigint, string | number | bigint>, bigint, string | number | bigint>;
|
|
597
|
+
maxFeePerGas: import("zod").ZodEffects<import("zod").ZodEffects<import("zod").ZodUnion<[import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodNumber]>, import("zod").ZodBigInt]>, bigint, string | number | bigint>, bigint, string | number | bigint>;
|
|
598
|
+
maxPriorityFeePerGas: import("zod").ZodEffects<import("zod").ZodEffects<import("zod").ZodUnion<[import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodNumber]>, import("zod").ZodBigInt]>, bigint, string | number | bigint>, bigint, string | number | bigint>;
|
|
599
|
+
paymaster: import("zod").ZodEffects<import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodEffects<import("zod").ZodString, `0x${string}`, string>>>, `0x${string}` | null, string | null | undefined>;
|
|
600
|
+
paymasterVerificationGasLimit: import("zod").ZodEffects<import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodEffects<import("zod").ZodEffects<import("zod").ZodUnion<[import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodNumber]>, import("zod").ZodBigInt]>, bigint, string | number | bigint>, bigint, string | number | bigint>>>, bigint | null, string | number | bigint | null | undefined>;
|
|
601
|
+
paymasterPostOpGasLimit: import("zod").ZodEffects<import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodEffects<import("zod").ZodEffects<import("zod").ZodUnion<[import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodNumber]>, import("zod").ZodBigInt]>, bigint, string | number | bigint>, bigint, string | number | bigint>>>, bigint | null, string | number | bigint | null | undefined>;
|
|
602
|
+
paymasterData: import("zod").ZodEffects<import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodEffects<import("zod").ZodString, `0x${string}`, string>>>, `0x${string}` | null, string | null | undefined>;
|
|
603
|
+
paymasterSignature: import("zod").ZodEffects<import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodEffects<import("zod").ZodString, `0x${string}`, string>>>, `0x${string}` | null, string | null | undefined>;
|
|
604
|
+
signature: import("zod").ZodEffects<import("zod").ZodString, `0x${string}`, string>;
|
|
605
|
+
eip7702Auth: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodObject<{
|
|
606
|
+
contractAddress: import("zod").ZodEffects<import("zod").ZodString, `0x${string}`, string>;
|
|
607
|
+
chainId: import("zod").ZodEffects<import("zod").ZodEffects<import("zod").ZodEffects<import("zod").ZodUnion<[import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodNumber]>, import("zod").ZodBigInt]>, bigint, string | number | bigint>, bigint, string | number | bigint>, number, string | number | bigint>;
|
|
608
|
+
nonce: import("zod").ZodEffects<import("zod").ZodEffects<import("zod").ZodEffects<import("zod").ZodUnion<[import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodNumber]>, import("zod").ZodBigInt]>, bigint, string | number | bigint>, bigint, string | number | bigint>, number, string | number | bigint>;
|
|
609
|
+
r: import("zod").ZodEffects<import("zod").ZodEffects<import("zod").ZodString, `0x${string}`, string>, `0x${string}`, string>;
|
|
610
|
+
s: import("zod").ZodEffects<import("zod").ZodEffects<import("zod").ZodString, `0x${string}`, string>, `0x${string}`, string>;
|
|
611
|
+
v: import("zod").ZodOptional<import("zod").ZodEffects<import("zod").ZodEffects<import("zod").ZodUnion<[import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodNumber]>, import("zod").ZodBigInt]>, bigint, string | number | bigint>, bigint, string | number | bigint>>;
|
|
612
|
+
yParity: import("zod").ZodEffects<import("zod").ZodEffects<import("zod").ZodEffects<import("zod").ZodUnion<[import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodNumber]>, import("zod").ZodBigInt]>, bigint, string | number | bigint>, bigint, string | number | bigint>, number, string | number | bigint>;
|
|
613
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
614
|
+
nonce: number;
|
|
615
|
+
contractAddress: `0x${string}`;
|
|
616
|
+
chainId: number;
|
|
617
|
+
r: `0x${string}`;
|
|
618
|
+
s: `0x${string}`;
|
|
619
|
+
yParity: number;
|
|
620
|
+
v?: bigint | undefined;
|
|
621
|
+
}, {
|
|
622
|
+
nonce: string | number | bigint;
|
|
623
|
+
contractAddress: string;
|
|
624
|
+
chainId: string | number | bigint;
|
|
625
|
+
r: string;
|
|
626
|
+
s: string;
|
|
627
|
+
yParity: string | number | bigint;
|
|
628
|
+
v?: string | number | bigint | undefined;
|
|
629
|
+
}>, import("zod").ZodObject<{
|
|
630
|
+
address: import("zod").ZodEffects<import("zod").ZodString, `0x${string}`, string>;
|
|
631
|
+
chainId: import("zod").ZodEffects<import("zod").ZodEffects<import("zod").ZodEffects<import("zod").ZodUnion<[import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodNumber]>, import("zod").ZodBigInt]>, bigint, string | number | bigint>, bigint, string | number | bigint>, number, string | number | bigint>;
|
|
632
|
+
nonce: import("zod").ZodEffects<import("zod").ZodEffects<import("zod").ZodEffects<import("zod").ZodUnion<[import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodNumber]>, import("zod").ZodBigInt]>, bigint, string | number | bigint>, bigint, string | number | bigint>, number, string | number | bigint>;
|
|
633
|
+
r: import("zod").ZodEffects<import("zod").ZodEffects<import("zod").ZodString, `0x${string}`, string>, `0x${string}`, string>;
|
|
634
|
+
s: import("zod").ZodEffects<import("zod").ZodEffects<import("zod").ZodString, `0x${string}`, string>, `0x${string}`, string>;
|
|
635
|
+
v: import("zod").ZodOptional<import("zod").ZodEffects<import("zod").ZodEffects<import("zod").ZodUnion<[import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodNumber]>, import("zod").ZodBigInt]>, bigint, string | number | bigint>, bigint, string | number | bigint>>;
|
|
636
|
+
yParity: import("zod").ZodEffects<import("zod").ZodEffects<import("zod").ZodEffects<import("zod").ZodUnion<[import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodNumber]>, import("zod").ZodBigInt]>, bigint, string | number | bigint>, bigint, string | number | bigint>, number, string | number | bigint>;
|
|
637
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
638
|
+
address: `0x${string}`;
|
|
639
|
+
nonce: number;
|
|
640
|
+
chainId: number;
|
|
641
|
+
r: `0x${string}`;
|
|
642
|
+
s: `0x${string}`;
|
|
643
|
+
yParity: number;
|
|
644
|
+
v?: bigint | undefined;
|
|
645
|
+
}, {
|
|
646
|
+
address: string;
|
|
647
|
+
nonce: string | number | bigint;
|
|
648
|
+
chainId: string | number | bigint;
|
|
649
|
+
r: string;
|
|
650
|
+
s: string;
|
|
651
|
+
yParity: string | number | bigint;
|
|
652
|
+
v?: string | number | bigint | undefined;
|
|
653
|
+
}>]>>>;
|
|
654
|
+
}, "strict", import("zod").ZodTypeAny, {
|
|
655
|
+
sender: `0x${string}`;
|
|
656
|
+
factory: `0x${string}` | null;
|
|
657
|
+
paymaster: `0x${string}` | null;
|
|
658
|
+
nonce: bigint;
|
|
659
|
+
callData: `0x${string}`;
|
|
660
|
+
callGasLimit: bigint;
|
|
661
|
+
verificationGasLimit: bigint;
|
|
662
|
+
preVerificationGas: bigint;
|
|
663
|
+
maxFeePerGas: bigint;
|
|
664
|
+
maxPriorityFeePerGas: bigint;
|
|
665
|
+
signature: `0x${string}`;
|
|
666
|
+
paymasterVerificationGasLimit: bigint | null;
|
|
667
|
+
paymasterPostOpGasLimit: bigint | null;
|
|
668
|
+
factoryData: `0x${string}` | null;
|
|
669
|
+
paymasterData: `0x${string}` | null;
|
|
670
|
+
paymasterSignature: `0x${string}` | null;
|
|
671
|
+
eip7702Auth?: {
|
|
672
|
+
nonce: number;
|
|
673
|
+
contractAddress: `0x${string}`;
|
|
674
|
+
chainId: number;
|
|
675
|
+
r: `0x${string}`;
|
|
676
|
+
s: `0x${string}`;
|
|
677
|
+
yParity: number;
|
|
678
|
+
v?: bigint | undefined;
|
|
679
|
+
} | {
|
|
680
|
+
address: `0x${string}`;
|
|
681
|
+
nonce: number;
|
|
682
|
+
chainId: number;
|
|
683
|
+
r: `0x${string}`;
|
|
684
|
+
s: `0x${string}`;
|
|
685
|
+
yParity: number;
|
|
686
|
+
v?: bigint | undefined;
|
|
687
|
+
} | null | undefined;
|
|
688
|
+
}, {
|
|
689
|
+
sender: string;
|
|
690
|
+
nonce: string | number | bigint;
|
|
691
|
+
callData: string;
|
|
692
|
+
callGasLimit: string | number | bigint;
|
|
693
|
+
verificationGasLimit: string | number | bigint;
|
|
694
|
+
preVerificationGas: string | number | bigint;
|
|
695
|
+
maxFeePerGas: string | number | bigint;
|
|
696
|
+
maxPriorityFeePerGas: string | number | bigint;
|
|
697
|
+
signature: string;
|
|
698
|
+
factory?: string | null | undefined;
|
|
699
|
+
factoryData?: string | null | undefined;
|
|
700
|
+
paymaster?: string | null | undefined;
|
|
701
|
+
paymasterVerificationGasLimit?: string | number | bigint | null | undefined;
|
|
702
|
+
paymasterPostOpGasLimit?: string | number | bigint | null | undefined;
|
|
703
|
+
paymasterData?: string | null | undefined;
|
|
704
|
+
paymasterSignature?: string | null | undefined;
|
|
705
|
+
eip7702Auth?: {
|
|
706
|
+
nonce: string | number | bigint;
|
|
707
|
+
contractAddress: string;
|
|
708
|
+
chainId: string | number | bigint;
|
|
709
|
+
r: string;
|
|
710
|
+
s: string;
|
|
711
|
+
yParity: string | number | bigint;
|
|
712
|
+
v?: string | number | bigint | undefined;
|
|
713
|
+
} | {
|
|
714
|
+
address: string;
|
|
715
|
+
nonce: string | number | bigint;
|
|
716
|
+
chainId: string | number | bigint;
|
|
717
|
+
r: string;
|
|
718
|
+
s: string;
|
|
719
|
+
yParity: string | number | bigint;
|
|
720
|
+
v?: string | number | bigint | undefined;
|
|
721
|
+
} | null | undefined;
|
|
722
|
+
}>, {
|
|
723
|
+
sender: `0x${string}`;
|
|
724
|
+
factory: `0x${string}` | null;
|
|
725
|
+
paymaster: `0x${string}` | null;
|
|
726
|
+
nonce: bigint;
|
|
727
|
+
callData: `0x${string}`;
|
|
728
|
+
callGasLimit: bigint;
|
|
729
|
+
verificationGasLimit: bigint;
|
|
730
|
+
preVerificationGas: bigint;
|
|
731
|
+
maxFeePerGas: bigint;
|
|
732
|
+
maxPriorityFeePerGas: bigint;
|
|
733
|
+
signature: `0x${string}`;
|
|
734
|
+
paymasterVerificationGasLimit: bigint | null;
|
|
735
|
+
paymasterPostOpGasLimit: bigint | null;
|
|
736
|
+
factoryData: `0x${string}` | null;
|
|
737
|
+
paymasterData: `0x${string}` | null;
|
|
738
|
+
paymasterSignature: `0x${string}` | null;
|
|
739
|
+
eip7702Auth?: {
|
|
740
|
+
nonce: number;
|
|
741
|
+
contractAddress: `0x${string}`;
|
|
742
|
+
chainId: number;
|
|
743
|
+
r: `0x${string}`;
|
|
744
|
+
s: `0x${string}`;
|
|
745
|
+
yParity: number;
|
|
746
|
+
v?: bigint | undefined;
|
|
747
|
+
} | {
|
|
748
|
+
address: `0x${string}`;
|
|
749
|
+
nonce: number;
|
|
750
|
+
chainId: number;
|
|
751
|
+
r: `0x${string}`;
|
|
752
|
+
s: `0x${string}`;
|
|
753
|
+
yParity: number;
|
|
754
|
+
v?: bigint | undefined;
|
|
755
|
+
} | null | undefined;
|
|
756
|
+
}, {
|
|
757
|
+
sender: string;
|
|
758
|
+
nonce: string | number | bigint;
|
|
759
|
+
callData: string;
|
|
760
|
+
callGasLimit: string | number | bigint;
|
|
761
|
+
verificationGasLimit: string | number | bigint;
|
|
762
|
+
preVerificationGas: string | number | bigint;
|
|
763
|
+
maxFeePerGas: string | number | bigint;
|
|
764
|
+
maxPriorityFeePerGas: string | number | bigint;
|
|
765
|
+
signature: string;
|
|
766
|
+
factory?: string | null | undefined;
|
|
767
|
+
factoryData?: string | null | undefined;
|
|
768
|
+
paymaster?: string | null | undefined;
|
|
769
|
+
paymasterVerificationGasLimit?: string | number | bigint | null | undefined;
|
|
770
|
+
paymasterPostOpGasLimit?: string | number | bigint | null | undefined;
|
|
771
|
+
paymasterData?: string | null | undefined;
|
|
772
|
+
paymasterSignature?: string | null | undefined;
|
|
773
|
+
eip7702Auth?: {
|
|
774
|
+
nonce: string | number | bigint;
|
|
775
|
+
contractAddress: string;
|
|
776
|
+
chainId: string | number | bigint;
|
|
777
|
+
r: string;
|
|
778
|
+
s: string;
|
|
779
|
+
yParity: string | number | bigint;
|
|
780
|
+
v?: string | number | bigint | undefined;
|
|
781
|
+
} | {
|
|
782
|
+
address: string;
|
|
783
|
+
nonce: string | number | bigint;
|
|
784
|
+
chainId: string | number | bigint;
|
|
785
|
+
r: string;
|
|
786
|
+
s: string;
|
|
787
|
+
yParity: string | number | bigint;
|
|
788
|
+
v?: string | number | bigint | undefined;
|
|
789
|
+
} | null | undefined;
|
|
588
790
|
}>]>, import("zod").ZodEffects<import("zod").ZodString, `0x${string}`, string>], null>;
|
|
589
791
|
result: import("zod").ZodEffects<import("zod").ZodString, `0x${string}`, string>;
|
|
590
792
|
}, "strip", import("zod").ZodTypeAny, {
|
|
@@ -684,6 +886,40 @@ export declare const ethSendUserOperationHandler: {
|
|
|
684
886
|
yParity: number;
|
|
685
887
|
v?: bigint | undefined;
|
|
686
888
|
} | null | undefined;
|
|
889
|
+
} | {
|
|
890
|
+
sender: `0x${string}`;
|
|
891
|
+
factory: `0x${string}` | null;
|
|
892
|
+
paymaster: `0x${string}` | null;
|
|
893
|
+
nonce: bigint;
|
|
894
|
+
callData: `0x${string}`;
|
|
895
|
+
callGasLimit: bigint;
|
|
896
|
+
verificationGasLimit: bigint;
|
|
897
|
+
preVerificationGas: bigint;
|
|
898
|
+
maxFeePerGas: bigint;
|
|
899
|
+
maxPriorityFeePerGas: bigint;
|
|
900
|
+
signature: `0x${string}`;
|
|
901
|
+
paymasterVerificationGasLimit: bigint | null;
|
|
902
|
+
paymasterPostOpGasLimit: bigint | null;
|
|
903
|
+
factoryData: `0x${string}` | null;
|
|
904
|
+
paymasterData: `0x${string}` | null;
|
|
905
|
+
paymasterSignature: `0x${string}` | null;
|
|
906
|
+
eip7702Auth?: {
|
|
907
|
+
nonce: number;
|
|
908
|
+
contractAddress: `0x${string}`;
|
|
909
|
+
chainId: number;
|
|
910
|
+
r: `0x${string}`;
|
|
911
|
+
s: `0x${string}`;
|
|
912
|
+
yParity: number;
|
|
913
|
+
v?: bigint | undefined;
|
|
914
|
+
} | {
|
|
915
|
+
address: `0x${string}`;
|
|
916
|
+
nonce: number;
|
|
917
|
+
chainId: number;
|
|
918
|
+
r: `0x${string}`;
|
|
919
|
+
s: `0x${string}`;
|
|
920
|
+
yParity: number;
|
|
921
|
+
v?: bigint | undefined;
|
|
922
|
+
} | null | undefined;
|
|
687
923
|
}, `0x${string}`];
|
|
688
924
|
method: "eth_sendUserOperation";
|
|
689
925
|
}, {
|
|
@@ -783,6 +1019,40 @@ export declare const ethSendUserOperationHandler: {
|
|
|
783
1019
|
yParity: string | number | bigint;
|
|
784
1020
|
v?: string | number | bigint | undefined;
|
|
785
1021
|
} | null | undefined;
|
|
1022
|
+
} | {
|
|
1023
|
+
sender: string;
|
|
1024
|
+
nonce: string | number | bigint;
|
|
1025
|
+
callData: string;
|
|
1026
|
+
callGasLimit: string | number | bigint;
|
|
1027
|
+
verificationGasLimit: string | number | bigint;
|
|
1028
|
+
preVerificationGas: string | number | bigint;
|
|
1029
|
+
maxFeePerGas: string | number | bigint;
|
|
1030
|
+
maxPriorityFeePerGas: string | number | bigint;
|
|
1031
|
+
signature: string;
|
|
1032
|
+
factory?: string | null | undefined;
|
|
1033
|
+
factoryData?: string | null | undefined;
|
|
1034
|
+
paymaster?: string | null | undefined;
|
|
1035
|
+
paymasterVerificationGasLimit?: string | number | bigint | null | undefined;
|
|
1036
|
+
paymasterPostOpGasLimit?: string | number | bigint | null | undefined;
|
|
1037
|
+
paymasterData?: string | null | undefined;
|
|
1038
|
+
paymasterSignature?: string | null | undefined;
|
|
1039
|
+
eip7702Auth?: {
|
|
1040
|
+
nonce: string | number | bigint;
|
|
1041
|
+
contractAddress: string;
|
|
1042
|
+
chainId: string | number | bigint;
|
|
1043
|
+
r: string;
|
|
1044
|
+
s: string;
|
|
1045
|
+
yParity: string | number | bigint;
|
|
1046
|
+
v?: string | number | bigint | undefined;
|
|
1047
|
+
} | {
|
|
1048
|
+
address: string;
|
|
1049
|
+
nonce: string | number | bigint;
|
|
1050
|
+
chainId: string | number | bigint;
|
|
1051
|
+
r: string;
|
|
1052
|
+
s: string;
|
|
1053
|
+
yParity: string | number | bigint;
|
|
1054
|
+
v?: string | number | bigint | undefined;
|
|
1055
|
+
} | null | undefined;
|
|
786
1056
|
}, string];
|
|
787
1057
|
method: "eth_sendUserOperation";
|
|
788
1058
|
}>;
|
|
@@ -884,6 +1154,40 @@ export declare const ethSendUserOperationHandler: {
|
|
|
884
1154
|
yParity: number;
|
|
885
1155
|
v?: bigint | undefined;
|
|
886
1156
|
} | null | undefined;
|
|
1157
|
+
}> | import("type-fest/source/readonly-deep").ReadonlyObjectDeep<{
|
|
1158
|
+
sender: `0x${string}`;
|
|
1159
|
+
factory: `0x${string}` | null;
|
|
1160
|
+
paymaster: `0x${string}` | null;
|
|
1161
|
+
nonce: bigint;
|
|
1162
|
+
callData: `0x${string}`;
|
|
1163
|
+
callGasLimit: bigint;
|
|
1164
|
+
verificationGasLimit: bigint;
|
|
1165
|
+
preVerificationGas: bigint;
|
|
1166
|
+
maxFeePerGas: bigint;
|
|
1167
|
+
maxPriorityFeePerGas: bigint;
|
|
1168
|
+
signature: `0x${string}`;
|
|
1169
|
+
paymasterVerificationGasLimit: bigint | null;
|
|
1170
|
+
paymasterPostOpGasLimit: bigint | null;
|
|
1171
|
+
factoryData: `0x${string}` | null;
|
|
1172
|
+
paymasterData: `0x${string}` | null;
|
|
1173
|
+
paymasterSignature: `0x${string}` | null;
|
|
1174
|
+
eip7702Auth?: {
|
|
1175
|
+
nonce: number;
|
|
1176
|
+
contractAddress: `0x${string}`;
|
|
1177
|
+
chainId: number;
|
|
1178
|
+
r: `0x${string}`;
|
|
1179
|
+
s: `0x${string}`;
|
|
1180
|
+
yParity: number;
|
|
1181
|
+
v?: bigint | undefined;
|
|
1182
|
+
} | {
|
|
1183
|
+
address: `0x${string}`;
|
|
1184
|
+
nonce: number;
|
|
1185
|
+
chainId: number;
|
|
1186
|
+
r: `0x${string}`;
|
|
1187
|
+
s: `0x${string}`;
|
|
1188
|
+
yParity: number;
|
|
1189
|
+
v?: bigint | undefined;
|
|
1190
|
+
} | null | undefined;
|
|
887
1191
|
}>, `0x${string}`];
|
|
888
1192
|
apiVersion: ApiVersion;
|
|
889
1193
|
}) => `0x${string}` | Promise<`0x${string}`>;
|
|
@@ -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, isBoosted = false }) => {
|
|
6
55
|
// PVG validation is skipped for v1
|
|
7
|
-
if (apiVersion === "v1" ||
|
|
56
|
+
if (apiVersion === "v1" || isBoosted) {
|
|
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,
|
|
@@ -28,11 +89,20 @@ const validatePvg = async (apiVersion, rpcHandler, userOp, entryPoint, boost = f
|
|
|
28
89
|
}
|
|
29
90
|
return [true, ""];
|
|
30
91
|
};
|
|
31
|
-
const getUserOpValidationResult = async (rpcHandler, userOp, entryPoint) => {
|
|
32
|
-
const queuedUserOps = await rpcHandler.mempool.
|
|
92
|
+
const getUserOpValidationResult = async ({ rpcHandler, userOp, entryPoint }) => {
|
|
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,
|
|
@@ -43,63 +113,95 @@ const getUserOpValidationResult = async (rpcHandler, userOp, entryPoint) => {
|
|
|
43
113
|
validationResult
|
|
44
114
|
};
|
|
45
115
|
};
|
|
46
|
-
export async function addToMempoolIfValid({ rpcHandler, userOp, entryPoint, apiVersion,
|
|
116
|
+
export async function addToMempoolIfValid({ rpcHandler, userOp, entryPoint, apiVersion, isBoosted = false }) {
|
|
47
117
|
rpcHandler.ensureEntryPointIsSupported(entryPoint);
|
|
118
|
+
// Validate userOp fields (sync - fail fast before expensive async checks)
|
|
119
|
+
const [fieldsValid, fieldsError] = rpcHandler.validateUserOpFields({
|
|
120
|
+
userOp,
|
|
121
|
+
entryPoint,
|
|
122
|
+
isBoosted
|
|
123
|
+
});
|
|
124
|
+
if (!fieldsValid) {
|
|
125
|
+
throw new RpcError(fieldsError, ERC7769Errors.InvalidFields);
|
|
126
|
+
}
|
|
127
|
+
const userOpHash = getUserOpHash({
|
|
128
|
+
userOp,
|
|
129
|
+
entryPointAddress: entryPoint,
|
|
130
|
+
chainId: rpcHandler.config.chainId
|
|
131
|
+
});
|
|
132
|
+
const userOpInfo = {
|
|
133
|
+
userOp,
|
|
134
|
+
userOpHash,
|
|
135
|
+
addedToMempool: Date.now(),
|
|
136
|
+
submissionAttempts: 0
|
|
137
|
+
};
|
|
48
138
|
// Execute multiple async operations in parallel
|
|
49
|
-
const [
|
|
50
|
-
|
|
139
|
+
const [{ queuedUserOps, validationResult }, currentNonceSeq, [isPvgValid, pvgError], [isGasPriceValid, gasPriceError], [isEip7702AuthValid, eip7702AuthError], [isChainRulesValid, chainRulesError]] = await Promise.all([
|
|
140
|
+
getUserOpValidationResult({ rpcHandler, userOp, entryPoint }),
|
|
141
|
+
rpcHandler.getNonceSeq({ userOp, entryPoint }),
|
|
142
|
+
validatePvg({
|
|
143
|
+
apiVersion,
|
|
144
|
+
rpcHandler,
|
|
51
145
|
userOp,
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
146
|
+
entryPoint,
|
|
147
|
+
isBoosted,
|
|
148
|
+
config: rpcHandler.config
|
|
55
149
|
}),
|
|
56
|
-
|
|
57
|
-
rpcHandler.getNonceSeq(userOp, entryPoint),
|
|
58
|
-
validatePvg(apiVersion, rpcHandler, userOp, entryPoint, boost),
|
|
59
|
-
rpcHandler.preMempoolChecks(userOp, apiVersion, boost),
|
|
150
|
+
rpcHandler.validateUserOpGasPrice({ userOp, apiVersion, isBoosted }),
|
|
60
151
|
rpcHandler.validateEip7702Auth({
|
|
61
152
|
userOp,
|
|
62
|
-
|
|
153
|
+
validateSignature: true
|
|
154
|
+
}),
|
|
155
|
+
validateChainRules({
|
|
156
|
+
rpcHandler,
|
|
157
|
+
userOp,
|
|
158
|
+
entryPoint,
|
|
159
|
+
config: rpcHandler.config
|
|
63
160
|
})
|
|
64
161
|
]);
|
|
65
162
|
// Validate eip7702Auth
|
|
66
|
-
if (!
|
|
67
|
-
rpcHandler.eventManager.emitFailedValidation(userOpHash,
|
|
68
|
-
throw new RpcError(
|
|
163
|
+
if (!isEip7702AuthValid) {
|
|
164
|
+
rpcHandler.eventManager.emitFailedValidation(userOpHash, eip7702AuthError);
|
|
165
|
+
throw new RpcError(eip7702AuthError, ERC7769Errors.InvalidFields);
|
|
69
166
|
}
|
|
70
|
-
//
|
|
71
|
-
if (!
|
|
72
|
-
rpcHandler.eventManager.emitFailedValidation(userOpHash,
|
|
73
|
-
throw new RpcError(
|
|
167
|
+
// Gas price validation
|
|
168
|
+
if (!isGasPriceValid) {
|
|
169
|
+
rpcHandler.eventManager.emitFailedValidation(userOpHash, gasPriceError);
|
|
170
|
+
throw new RpcError(gasPriceError, ERC7769Errors.InvalidFields);
|
|
74
171
|
}
|
|
75
172
|
// PreVerificationGas validation
|
|
76
|
-
if (!
|
|
77
|
-
rpcHandler.eventManager.emitFailedValidation(userOpHash,
|
|
78
|
-
throw new RpcError(
|
|
173
|
+
if (!isPvgValid) {
|
|
174
|
+
rpcHandler.eventManager.emitFailedValidation(userOpHash, pvgError);
|
|
175
|
+
throw new RpcError(pvgError, ERC7769Errors.SimulateValidation);
|
|
79
176
|
}
|
|
80
177
|
// Nonce validation
|
|
81
178
|
const [, userOpNonceSeq] = getNonceKeyAndSequence(userOp.nonce);
|
|
82
179
|
if (userOpNonceSeq < currentNonceSeq) {
|
|
83
180
|
const reason = "UserOperation failed validation with reason: AA25 invalid account nonce";
|
|
84
181
|
rpcHandler.eventManager.emitFailedValidation(userOpHash, reason, "AA25");
|
|
85
|
-
throw new RpcError(reason,
|
|
182
|
+
throw new RpcError(reason, ERC7769Errors.SimulateValidation);
|
|
86
183
|
}
|
|
87
184
|
if (userOpNonceSeq > currentNonceSeq + 10n) {
|
|
88
185
|
const reason = "UserOperation failed validaiton with reason: AA25 invalid account nonce";
|
|
89
186
|
rpcHandler.eventManager.emitFailedValidation(userOpHash, reason, "AA25");
|
|
90
|
-
throw new RpcError(reason,
|
|
187
|
+
throw new RpcError(reason, ERC7769Errors.SimulateValidation);
|
|
91
188
|
}
|
|
92
189
|
if (userOpNonceSeq > currentNonceSeq + BigInt(queuedUserOps.length)) {
|
|
93
|
-
rpcHandler.mempool.add(
|
|
190
|
+
rpcHandler.mempool.add({ userOpInfo, entryPoint });
|
|
94
191
|
rpcHandler.eventManager.emitQueued(userOpHash);
|
|
95
192
|
return { result: "queued", userOpHash };
|
|
96
193
|
}
|
|
194
|
+
// Chain rules validation
|
|
195
|
+
if (!isChainRulesValid) {
|
|
196
|
+
rpcHandler.eventManager.emitFailedValidation(userOpHash, chainRulesError);
|
|
197
|
+
throw new RpcError(chainRulesError, ERC7769Errors.InvalidFields);
|
|
198
|
+
}
|
|
97
199
|
// userOp validation
|
|
98
200
|
if (rpcHandler.config.dangerousSkipUserOperationValidation) {
|
|
99
|
-
const [isMempoolAddSuccess, mempoolAddError] = await rpcHandler.mempool.add(
|
|
201
|
+
const [isMempoolAddSuccess, mempoolAddError] = await rpcHandler.mempool.add({ userOpInfo, entryPoint });
|
|
100
202
|
if (!isMempoolAddSuccess) {
|
|
101
203
|
rpcHandler.eventManager.emitFailedValidation(userOpHash, mempoolAddError, getAAError(mempoolAddError));
|
|
102
|
-
throw new RpcError(mempoolAddError,
|
|
204
|
+
throw new RpcError(mempoolAddError, ERC7769Errors.InvalidFields);
|
|
103
205
|
}
|
|
104
206
|
return { result: "added", userOpHash };
|
|
105
207
|
}
|
|
@@ -107,10 +209,13 @@ export async function addToMempoolIfValid({ rpcHandler, userOp, entryPoint, apiV
|
|
|
107
209
|
rpcHandler.reputationManager.checkReputation(userOp, entryPoint, validationResult);
|
|
108
210
|
await rpcHandler.mempool.checkEntityMultipleRoleViolation(entryPoint, userOp);
|
|
109
211
|
// Finally, add to mempool
|
|
110
|
-
const [isMempoolAddSuccess, mempoolAddError] = await rpcHandler.mempool.add(
|
|
212
|
+
const [isMempoolAddSuccess, mempoolAddError] = await rpcHandler.mempool.add({
|
|
213
|
+
userOpInfo,
|
|
214
|
+
entryPoint
|
|
215
|
+
});
|
|
111
216
|
if (!isMempoolAddSuccess) {
|
|
112
217
|
rpcHandler.eventManager.emitFailedValidation(userOpHash, mempoolAddError, getAAError(mempoolAddError));
|
|
113
|
-
throw new RpcError(mempoolAddError,
|
|
218
|
+
throw new RpcError(mempoolAddError, ERC7769Errors.InvalidFields);
|
|
114
219
|
}
|
|
115
220
|
return { result: "added", userOpHash };
|
|
116
221
|
}
|
|
@@ -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,kBAAkB,EAAE,MAAM,wCAAwC,CAAA;AAC3E,OAAO,EACH,sBAAsB,EACtB,aAAa,EACb,wBAAwB,EAC3B,MAAM,oBAAoB,CAAA;AAC3B,OAAO,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAA;AAC5D,OAAO,EACH,yBAAyB,EACzB,kBAAkB,EAClB,YAAY,EACf,MAAM,4CAA4C,CAAA;AAGnD,MAAM,kBAAkB,GAAG,KAAK,EAAE,EAC9B,UAAU,EACV,MAAM,EACN,UAAU,EACV,MAAM,EAMT,EAA8B,EAAE;IAC7B,4BAA4B;IAC5B,IAAI,MAAM,CAAC,SAAS,KAAK,OAAO,EAAE,CAAC;QAC/B,MAAM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