@pimlico/alto 0.0.0-main.20250428T212302 → 0.0.0-main.20250429T114818
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 -0
- package/contracts/ERC165.sol/ERC165.json +1 -0
- package/contracts/Eip7702Support.sol/Eip7702Support.json +1 -0
- package/contracts/EntryPoint.sol/EntryPoint.json +1 -0
- package/contracts/EntryPointCodeOverride.sol/EntryPointCodeOverride.json +1 -0
- package/contracts/EntryPointSimulations.sol/EntryPointSimulations.json +1 -0
- package/contracts/Exec.sol/Exec.json +1 -0
- package/contracts/IAccount.sol/IAccount.json +1 -0
- package/contracts/IAccountExecute.sol/IAccountExecute.json +1 -0
- package/contracts/IAggregator.sol/IAggregator.json +1 -0
- package/contracts/IERC165.sol/IERC165.json +1 -0
- package/contracts/IERC5267.sol/IERC5267.json +1 -0
- package/contracts/IEntryPoint.sol/IEntryPoint.json +1 -0
- package/contracts/IEntryPointSimulations.sol/IEntryPointSimulations.json +1 -0
- package/contracts/INonceManager.sol/INonceManager.json +1 -0
- package/contracts/IPaymaster.sol/IPaymaster.json +1 -0
- package/contracts/ISenderCreator.sol/ISenderCreator.json +1 -0
- package/contracts/IStakeManager.sol/IStakeManager.json +1 -0
- package/contracts/Math.sol/Math.json +1 -0
- package/contracts/MessageHashUtils.sol/MessageHashUtils.json +1 -0
- package/contracts/NonceManager.sol/NonceManager.json +1 -0
- package/contracts/Panic.sol/Panic.json +1 -0
- package/contracts/PimlicoEntryPointSimulationsV7.sol/PimlicoEntryPointSimulationsV7.json +1 -0
- package/contracts/PimlicoEntryPointSimulationsV8.sol/PimlicoEntryPointSimulationsV8.json +1 -0
- package/contracts/ReentrancyGuard.sol/ReentrancyGuard.json +1 -0
- package/contracts/ReentrancyGuardTransient.sol/ReentrancyGuardTransient.json +1 -0
- package/contracts/SafeCast.sol/SafeCast.json +1 -0
- package/contracts/SenderCreator.sol/SenderCreator.json +1 -0
- package/contracts/ShortStrings.sol/ShortStrings.json +1 -0
- package/contracts/SignedMath.sol/SignedMath.json +1 -0
- package/contracts/StakeManager.sol/StakeManager.json +1 -0
- package/contracts/StorageSlot.sol/StorageSlot.json +1 -0
- package/contracts/Strings.sol/Strings.json +1 -0
- package/contracts/TransientSlot.sol/TransientSlot.json +1 -0
- package/contracts/UserOperation.sol/UserOperationLib.json +1 -0
- package/contracts/UserOperationLib.sol/UserOperationLib.json +1 -0
- package/contracts/build-info/0c52dc19c74a9a932ddddcca463ce398.json +1 -0
- package/contracts/build-info/a1d9af887789a0ade8ffbc8b045f0780.json +1 -0
- package/contracts/interfaces/IEntryPoint.sol/IEntryPoint.json +1 -0
- package/esm/cli/deploySimulationsContract.js +14 -5
- package/esm/cli/deploySimulationsContract.js.map +1 -1
- package/package.json +2 -1
- package/lib/cli/alto.d.ts +0 -7
- package/lib/cli/alto.js +0 -141
- package/lib/cli/alto.js.map +0 -1
- package/lib/cli/config/bundler.d.ts +0 -2872
- package/lib/cli/config/bundler.js +0 -242
- package/lib/cli/config/bundler.js.map +0 -1
- package/lib/cli/config/index.d.ts +0 -3
- package/lib/cli/config/index.js +0 -19
- package/lib/cli/config/index.js.map +0 -1
- package/lib/cli/config/options.d.ts +0 -13
- package/lib/cli/config/options.js +0 -587
- package/lib/cli/config/options.js.map +0 -1
- package/lib/cli/customTransport.d.ts +0 -14
- package/lib/cli/customTransport.js +0 -94
- package/lib/cli/customTransport.js.map +0 -1
- package/lib/cli/deploySimulationsContract.d.ts +0 -13
- package/lib/cli/deploySimulationsContract.js +0 -100
- package/lib/cli/deploySimulationsContract.js.map +0 -1
- package/lib/cli/handler.d.ts +0 -3
- package/lib/cli/handler.js +0 -157
- package/lib/cli/handler.js.map +0 -1
- package/lib/cli/index.d.ts +0 -4
- package/lib/cli/index.js +0 -20
- package/lib/cli/index.js.map +0 -1
- package/lib/cli/instrumentation.d.ts +0 -2
- package/lib/cli/instrumentation.js +0 -47
- package/lib/cli/instrumentation.js.map +0 -1
- package/lib/cli/parseArgs.d.ts +0 -8
- package/lib/cli/parseArgs.js +0 -25
- package/lib/cli/parseArgs.js.map +0 -1
- package/lib/cli/setupServer.d.ts +0 -13
- package/lib/cli/setupServer.js +0 -266
- package/lib/cli/setupServer.js.map +0 -1
- package/lib/cli/util.d.ts +0 -22
- package/lib/cli/util.js +0 -34
- package/lib/cli/util.js.map +0 -1
- package/lib/createConfig.d.ts +0 -16
- package/lib/createConfig.js +0 -13
- package/lib/createConfig.js.map +0 -1
- package/lib/executor/executor.d.ts +0 -65
- package/lib/executor/executor.js +0 -301
- package/lib/executor/executor.js.map +0 -1
- package/lib/executor/executorManager.d.ts +0 -108
- package/lib/executor/executorManager.js +0 -702
- package/lib/executor/executorManager.js.map +0 -1
- package/lib/executor/fastlane.d.ts +0 -9
- package/lib/executor/fastlane.js +0 -41
- package/lib/executor/fastlane.js.map +0 -1
- package/lib/executor/filterOpsAndEStimateGas.d.ts +0 -29
- package/lib/executor/filterOpsAndEStimateGas.js +0 -225
- package/lib/executor/filterOpsAndEStimateGas.js.map +0 -1
- package/lib/executor/index.d.ts +0 -5
- package/lib/executor/index.js +0 -21
- package/lib/executor/index.js.map +0 -1
- package/lib/executor/senderManager/createMemorySenderManager.d.ts +0 -8
- package/lib/executor/senderManager/createMemorySenderManager.js +0 -45
- package/lib/executor/senderManager/createMemorySenderManager.js.map +0 -1
- package/lib/executor/senderManager/createRedisSenderManager.d.ts +0 -8
- package/lib/executor/senderManager/createRedisSenderManager.js +0 -85
- package/lib/executor/senderManager/createRedisSenderManager.js.map +0 -1
- package/lib/executor/senderManager/flushOnStartUp.d.ts +0 -9
- package/lib/executor/senderManager/flushOnStartUp.js +0 -37
- package/lib/executor/senderManager/flushOnStartUp.js.map +0 -1
- package/lib/executor/senderManager/index.d.ts +0 -15
- package/lib/executor/senderManager/index.js +0 -25
- package/lib/executor/senderManager/index.js.map +0 -1
- package/lib/executor/senderManager/validateAndRefill.d.ts +0 -11
- package/lib/executor/senderManager/validateAndRefill.js +0 -115
- package/lib/executor/senderManager/validateAndRefill.js.map +0 -1
- package/lib/executor/utilityWalletMonitor.d.ts +0 -19
- package/lib/executor/utilityWalletMonitor.js +0 -42
- package/lib/executor/utilityWalletMonitor.js.map +0 -1
- package/lib/executor/utils.d.ts +0 -34
- package/lib/executor/utils.js +0 -167
- package/lib/executor/utils.js.map +0 -1
- package/lib/handlers/arbitrumGasPriceManager.d.ts +0 -14
- package/lib/handlers/arbitrumGasPriceManager.js +0 -39
- package/lib/handlers/arbitrumGasPriceManager.js.map +0 -1
- package/lib/handlers/eventManager.d.ts +0 -29
- package/lib/handlers/eventManager.js +0 -225
- package/lib/handlers/eventManager.js.map +0 -1
- package/lib/handlers/gasPriceManager.d.ts +0 -36
- package/lib/handlers/gasPriceManager.js +0 -391
- package/lib/handlers/gasPriceManager.js.map +0 -1
- package/lib/handlers/index.d.ts +0 -3
- package/lib/handlers/index.js +0 -19
- package/lib/handlers/index.js.map +0 -1
- package/lib/handlers/mantleGasPriceManager.d.ts +0 -23
- package/lib/handlers/mantleGasPriceManager.js +0 -44
- package/lib/handlers/mantleGasPriceManager.js.map +0 -1
- package/lib/handlers/optimismManager.d.ts +0 -10
- package/lib/handlers/optimismManager.js +0 -21
- package/lib/handlers/optimismManager.js.map +0 -1
- package/lib/index.d.ts +0 -2
- package/lib/index.js +0 -4
- package/lib/index.js.map +0 -1
- package/lib/mempool/index.d.ts +0 -4
- package/lib/mempool/index.js +0 -20
- package/lib/mempool/index.js.map +0 -1
- package/lib/mempool/mempool.d.ts +0 -191
- package/lib/mempool/mempool.js +0 -499
- package/lib/mempool/mempool.js.map +0 -1
- package/lib/mempool/monitoring.d.ts +0 -14
- package/lib/mempool/monitoring.js +0 -101
- package/lib/mempool/monitoring.js.map +0 -1
- package/lib/mempool/reputationManager.d.ts +0 -121
- package/lib/mempool/reputationManager.js +0 -472
- package/lib/mempool/reputationManager.js.map +0 -1
- package/lib/rpc/createMethodHandler.d.ts +0 -31
- package/lib/rpc/createMethodHandler.js +0 -34
- package/lib/rpc/createMethodHandler.js.map +0 -1
- package/lib/rpc/estimation/gasEstimationHandler.d.ts +0 -30
- package/lib/rpc/estimation/gasEstimationHandler.js +0 -50
- package/lib/rpc/estimation/gasEstimationHandler.js.map +0 -1
- package/lib/rpc/estimation/gasEstimationsV06.d.ts +0 -19
- package/lib/rpc/estimation/gasEstimationsV06.js +0 -148
- package/lib/rpc/estimation/gasEstimationsV06.js.map +0 -1
- package/lib/rpc/estimation/gasEstimationsV07.d.ts +0 -101
- package/lib/rpc/estimation/gasEstimationsV07.js +0 -727
- package/lib/rpc/estimation/gasEstimationsV07.js.map +0 -1
- package/lib/rpc/estimation/types.d.ts +0 -120
- package/lib/rpc/estimation/types.js +0 -125
- package/lib/rpc/estimation/types.js.map +0 -1
- package/lib/rpc/index.d.ts +0 -4
- package/lib/rpc/index.js +0 -20
- package/lib/rpc/index.js.map +0 -1
- package/lib/rpc/methods/debug_bundler_clearReputation.d.ts +0 -22
- package/lib/rpc/methods/debug_bundler_clearReputation.js +0 -15
- package/lib/rpc/methods/debug_bundler_clearReputation.js.map +0 -1
- package/lib/rpc/methods/debug_bundler_clearState.d.ts +0 -22
- package/lib/rpc/methods/debug_bundler_clearState.js +0 -16
- package/lib/rpc/methods/debug_bundler_clearState.js.map +0 -1
- package/lib/rpc/methods/debug_bundler_dumpMempool.d.ts +0 -973
- package/lib/rpc/methods/debug_bundler_dumpMempool.js +0 -16
- package/lib/rpc/methods/debug_bundler_dumpMempool.js.map +0 -1
- package/lib/rpc/methods/debug_bundler_dumpReputation.d.ts +0 -57
- package/lib/rpc/methods/debug_bundler_dumpReputation.js +0 -16
- package/lib/rpc/methods/debug_bundler_dumpReputation.js.map +0 -1
- package/lib/rpc/methods/debug_bundler_getStakeStatus.d.ts +0 -79
- package/lib/rpc/methods/debug_bundler_getStakeStatus.js +0 -25
- package/lib/rpc/methods/debug_bundler_getStakeStatus.js.map +0 -1
- package/lib/rpc/methods/debug_bundler_sendBundleNow.d.ts +0 -22
- package/lib/rpc/methods/debug_bundler_sendBundleNow.js +0 -15
- package/lib/rpc/methods/debug_bundler_sendBundleNow.js.map +0 -1
- package/lib/rpc/methods/debug_bundler_setBundlingMode.d.ts +0 -22
- package/lib/rpc/methods/debug_bundler_setBundlingMode.js +0 -16
- package/lib/rpc/methods/debug_bundler_setBundlingMode.js.map +0 -1
- package/lib/rpc/methods/debug_bundler_setReputation.d.ts +0 -46
- package/lib/rpc/methods/debug_bundler_setReputation.js +0 -16
- package/lib/rpc/methods/debug_bundler_setReputation.js.map +0 -1
- package/lib/rpc/methods/eth_chainId.d.ts +0 -22
- package/lib/rpc/methods/eth_chainId.js +0 -13
- package/lib/rpc/methods/eth_chainId.js.map +0 -1
- package/lib/rpc/methods/eth_estimateUserOperationGas.d.ts +0 -1891
- package/lib/rpc/methods/eth_estimateUserOperationGas.js +0 -26
- package/lib/rpc/methods/eth_estimateUserOperationGas.js.map +0 -1
- package/lib/rpc/methods/eth_getUserOperationByHash.d.ts +0 -1775
- package/lib/rpc/methods/eth_getUserOperationByHash.js +0 -101
- package/lib/rpc/methods/eth_getUserOperationByHash.js.map +0 -1
- package/lib/rpc/methods/eth_getUserOperationReceipt.d.ts +0 -412
- package/lib/rpc/methods/eth_getUserOperationReceipt.js +0 -14
- package/lib/rpc/methods/eth_getUserOperationReceipt.js.map +0 -1
- package/lib/rpc/methods/eth_sendUserOperation.d.ts +0 -878
- package/lib/rpc/methods/eth_sendUserOperation.js +0 -44
- package/lib/rpc/methods/eth_sendUserOperation.js.map +0 -1
- package/lib/rpc/methods/eth_supportedEntryPoints.d.ts +0 -22
- package/lib/rpc/methods/eth_supportedEntryPoints.js +0 -13
- package/lib/rpc/methods/eth_supportedEntryPoints.js.map +0 -1
- package/lib/rpc/methods/index.d.ts +0 -3
- package/lib/rpc/methods/index.js +0 -44
- package/lib/rpc/methods/index.js.map +0 -1
- package/lib/rpc/methods/pimlico_getUserOperationGasPrice.d.ts +0 -131
- package/lib/rpc/methods/pimlico_getUserOperationGasPrice.js +0 -33
- package/lib/rpc/methods/pimlico_getUserOperationGasPrice.js.map +0 -1
- package/lib/rpc/methods/pimlico_getUserOperationStatus.d.ts +0 -43
- package/lib/rpc/methods/pimlico_getUserOperationStatus.js +0 -14
- package/lib/rpc/methods/pimlico_getUserOperationStatus.js.map +0 -1
- package/lib/rpc/methods/pimlico_sendUserOperationNow.d.ts +0 -1268
- package/lib/rpc/methods/pimlico_sendUserOperationNow.js +0 -55
- package/lib/rpc/methods/pimlico_sendUserOperationNow.js.map +0 -1
- package/lib/rpc/rpcHandler.d.ts +0 -75
- package/lib/rpc/rpcHandler.js +0 -391
- package/lib/rpc/rpcHandler.js.map +0 -1
- package/lib/rpc/server.d.ts +0 -26
- package/lib/rpc/server.js +0 -283
- package/lib/rpc/server.js.map +0 -1
- package/lib/rpc/validation/BundlerCollectorTracerV06.d.ts +0 -102
- package/lib/rpc/validation/BundlerCollectorTracerV06.js +0 -262
- package/lib/rpc/validation/BundlerCollectorTracerV06.js.map +0 -1
- package/lib/rpc/validation/BundlerCollectorTracerV07.d.ts +0 -102
- package/lib/rpc/validation/BundlerCollectorTracerV07.js +0 -261
- package/lib/rpc/validation/BundlerCollectorTracerV07.js.map +0 -1
- package/lib/rpc/validation/SafeValidator.d.ts +0 -51
- package/lib/rpc/validation/SafeValidator.js +0 -327
- package/lib/rpc/validation/SafeValidator.js.map +0 -1
- package/lib/rpc/validation/TracerResultParserV06.d.ts +0 -13
- package/lib/rpc/validation/TracerResultParserV06.js +0 -582
- package/lib/rpc/validation/TracerResultParserV06.js.map +0 -1
- package/lib/rpc/validation/TracerResultParserV07.d.ts +0 -33
- package/lib/rpc/validation/TracerResultParserV07.js +0 -599
- package/lib/rpc/validation/TracerResultParserV07.js.map +0 -1
- package/lib/rpc/validation/UnsafeValidator.d.ts +0 -97
- package/lib/rpc/validation/UnsafeValidator.js +0 -303
- package/lib/rpc/validation/UnsafeValidator.js.map +0 -1
- package/lib/rpc/validation/index.d.ts +0 -3
- package/lib/rpc/validation/index.js +0 -19
- package/lib/rpc/validation/index.js.map +0 -1
- package/lib/rpc/validation/tracer.d.ts +0 -125
- package/lib/rpc/validation/tracer.js +0 -112
- package/lib/rpc/validation/tracer.js.map +0 -1
- package/lib/store/createMemoryOutstandingStore.d.ts +0 -28
- package/lib/store/createMemoryOutstandingStore.js +0 -236
- package/lib/store/createMemoryOutstandingStore.js.map +0 -1
- package/lib/store/createMempoolStore.d.ts +0 -8
- package/lib/store/createMempoolStore.js +0 -199
- package/lib/store/createMempoolStore.js.map +0 -1
- package/lib/store/createRedisOutstandingStore.d.ts +0 -27
- package/lib/store/createRedisOutstandingStore.js +0 -349
- package/lib/store/createRedisOutstandingStore.js.map +0 -1
- package/lib/store/createRedisStore.d.ts +0 -9
- package/lib/store/createRedisStore.js +0 -138
- package/lib/store/createRedisStore.js.map +0 -1
- package/lib/store/createStore.d.ts +0 -6
- package/lib/store/createStore.js +0 -70
- package/lib/store/createStore.js.map +0 -1
- package/lib/store/index.d.ts +0 -81
- package/lib/store/index.js +0 -6
- package/lib/store/index.js.map +0 -1
- package/lib/types/contracts/ArbitrumL1FeeAbi.d.ts +0 -32
- package/lib/types/contracts/ArbitrumL1FeeAbi.js +0 -45
- package/lib/types/contracts/ArbitrumL1FeeAbi.js.map +0 -1
- package/lib/types/contracts/CallEngine.d.ts +0 -28
- package/lib/types/contracts/CallEngine.js +0 -40
- package/lib/types/contracts/CallEngine.js.map +0 -1
- package/lib/types/contracts/CodeHashGetter.d.ts +0 -37
- package/lib/types/contracts/CodeHashGetter.js +0 -48
- package/lib/types/contracts/CodeHashGetter.js.map +0 -1
- package/lib/types/contracts/EntryPoint.d.ts +0 -1789
- package/lib/types/contracts/EntryPoint.js +0 -2307
- package/lib/types/contracts/EntryPoint.js.map +0 -1
- package/lib/types/contracts/EntryPointSimulationsV6.d.ts +0 -34
- package/lib/types/contracts/EntryPointSimulationsV6.js +0 -51
- package/lib/types/contracts/EntryPointSimulationsV6.js.map +0 -1
- package/lib/types/contracts/EntryPointSimulationsV7.d.ts +0 -2076
- package/lib/types/contracts/EntryPointSimulationsV7.js +0 -2678
- package/lib/types/contracts/EntryPointSimulationsV7.js.map +0 -1
- package/lib/types/contracts/IAccountExecute.d.ts +0 -53
- package/lib/types/contracts/IAccountExecute.js +0 -71
- package/lib/types/contracts/IAccountExecute.js.map +0 -1
- package/lib/types/contracts/IPaymaster.d.ts +0 -3
- package/lib/types/contracts/IPaymaster.js +0 -120
- package/lib/types/contracts/IPaymaster.js.map +0 -1
- package/lib/types/contracts/MantleBvmGasPriceOracle.d.ts +0 -219
- package/lib/types/contracts/MantleBvmGasPriceOracle.js +0 -180
- package/lib/types/contracts/MantleBvmGasPriceOracle.js.map +0 -1
- package/lib/types/contracts/OpL1FeeAbi.d.ts +0 -114
- package/lib/types/contracts/OpL1FeeAbi.js +0 -77
- package/lib/types/contracts/OpL1FeeAbi.js.map +0 -1
- package/lib/types/contracts/PimlicoEntryPointSimulations.d.ts +0 -25
- package/lib/types/contracts/PimlicoEntryPointSimulations.js +0 -42
- package/lib/types/contracts/PimlicoEntryPointSimulations.js.map +0 -1
- package/lib/types/contracts/SenderCreator.d.ts +0 -4
- package/lib/types/contracts/SenderCreator.js +0 -26
- package/lib/types/contracts/SenderCreator.js.map +0 -1
- package/lib/types/contracts/SimpleAccountFactory.d.ts +0 -57
- package/lib/types/contracts/SimpleAccountFactory.js +0 -79
- package/lib/types/contracts/SimpleAccountFactory.js.map +0 -1
- package/lib/types/contracts/TestOpcodesAccount.d.ts +0 -4
- package/lib/types/contracts/TestOpcodesAccount.js +0 -284
- package/lib/types/contracts/TestOpcodesAccount.js.map +0 -1
- package/lib/types/contracts/TestOpcodesAccountFactory.d.ts +0 -4
- package/lib/types/contracts/TestOpcodesAccountFactory.js +0 -26
- package/lib/types/contracts/TestOpcodesAccountFactory.js.map +0 -1
- package/lib/types/contracts/TestStorageAccount.d.ts +0 -4
- package/lib/types/contracts/TestStorageAccount.js +0 -316
- package/lib/types/contracts/TestStorageAccount.js.map +0 -1
- package/lib/types/contracts/index.d.ts +0 -17
- package/lib/types/contracts/index.js +0 -33
- package/lib/types/contracts/index.js.map +0 -1
- package/lib/types/gasPrice.d.ts +0 -110
- package/lib/types/gasPrice.js +0 -55
- package/lib/types/gasPrice.js.map +0 -1
- package/lib/types/index.d.ts +0 -11
- package/lib/types/index.js +0 -27
- package/lib/types/index.js.map +0 -1
- package/lib/types/interfaces.d.ts +0 -58
- package/lib/types/interfaces.js +0 -3
- package/lib/types/interfaces.js.map +0 -1
- package/lib/types/mempool.d.ts +0 -60
- package/lib/types/mempool.js +0 -11
- package/lib/types/mempool.js.map +0 -1
- package/lib/types/schemas.d.ts +0 -20785
- package/lib/types/schemas.js +0 -679
- package/lib/types/schemas.js.map +0 -1
- package/lib/types/utils.d.ts +0 -25
- package/lib/types/utils.js +0 -35
- package/lib/types/utils.js.map +0 -1
- package/lib/types/validation.d.ts +0 -14327
- package/lib/types/validation.js +0 -312
- package/lib/types/validation.js.map +0 -1
- package/lib/utils/asyncTimeout.d.ts +0 -5
- package/lib/utils/asyncTimeout.js +0 -51
- package/lib/utils/asyncTimeout.js.map +0 -1
- package/lib/utils/bigInt.d.ts +0 -8
- package/lib/utils/bigInt.js +0 -24
- package/lib/utils/bigInt.js.map +0 -1
- package/lib/utils/eip7702.d.ts +0 -4
- package/lib/utils/eip7702.js +0 -21
- package/lib/utils/eip7702.js.map +0 -1
- package/lib/utils/fastify-rpc-decorators.d.ts +0 -19
- package/lib/utils/fastify-rpc-decorators.js +0 -23
- package/lib/utils/fastify-rpc-decorators.js.map +0 -1
- package/lib/utils/helpers.d.ts +0 -15
- package/lib/utils/helpers.js +0 -59
- package/lib/utils/helpers.js.map +0 -1
- package/lib/utils/index.d.ts +0 -9
- package/lib/utils/index.js +0 -24
- package/lib/utils/index.js.map +0 -1
- package/lib/utils/logger.d.ts +0 -6
- package/lib/utils/logger.js +0 -85
- package/lib/utils/logger.js.map +0 -1
- package/lib/utils/metrics.d.ts +0 -29
- package/lib/utils/metrics.js +0 -199
- package/lib/utils/metrics.js.map +0 -1
- package/lib/utils/minMaxQueue/createMemoryMinMaxQueue.d.ts +0 -6
- package/lib/utils/minMaxQueue/createMemoryMinMaxQueue.js +0 -57
- package/lib/utils/minMaxQueue/createMemoryMinMaxQueue.js.map +0 -1
- package/lib/utils/minMaxQueue/createRedisMinMaxQueue.d.ts +0 -7
- package/lib/utils/minMaxQueue/createRedisMinMaxQueue.js +0 -105
- package/lib/utils/minMaxQueue/createRedisMinMaxQueue.js.map +0 -1
- package/lib/utils/minMaxQueue/index.d.ts +0 -12
- package/lib/utils/minMaxQueue/index.js +0 -16
- package/lib/utils/minMaxQueue/index.js.map +0 -1
- package/lib/utils/rpc-reply.d.ts +0 -16
- package/lib/utils/rpc-reply.js +0 -41
- package/lib/utils/rpc-reply.js.map +0 -1
- package/lib/utils/userop.d.ts +0 -138
- package/lib/utils/userop.js +0 -620
- package/lib/utils/userop.js.map +0 -1
- package/lib/utils/validation.d.ts +0 -76
- package/lib/utils/validation.js +0 -491
- package/lib/utils/validation.js.map +0 -1
|
@@ -1,327 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.SafeValidator = void 0;
|
|
4
|
-
const types_1 = require("../../types/index.js");
|
|
5
|
-
const utils_1 = require("../../utils/index.js");
|
|
6
|
-
const viem_1 = require("viem");
|
|
7
|
-
const gasEstimationsV07_1 = require("../estimation/gasEstimationsV07.js");
|
|
8
|
-
const BundlerCollectorTracerV07_1 = require("./BundlerCollectorTracerV07.js");
|
|
9
|
-
const TracerResultParserV06_1 = require("./TracerResultParserV06.js");
|
|
10
|
-
const TracerResultParserV07_1 = require("./TracerResultParserV07.js");
|
|
11
|
-
const UnsafeValidator_1 = require("./UnsafeValidator.js");
|
|
12
|
-
const tracer_1 = require("./tracer.js");
|
|
13
|
-
class SafeValidator extends UnsafeValidator_1.UnsafeValidator {
|
|
14
|
-
senderManager;
|
|
15
|
-
constructor({ config, senderManager, metrics, gasPriceManager }) {
|
|
16
|
-
super({
|
|
17
|
-
config,
|
|
18
|
-
metrics,
|
|
19
|
-
gasPriceManager
|
|
20
|
-
});
|
|
21
|
-
this.senderManager = senderManager;
|
|
22
|
-
}
|
|
23
|
-
async validateUserOperation({ userOperation, queuedUserOperations, entryPoint, referencedContracts }) {
|
|
24
|
-
try {
|
|
25
|
-
const validationResult = await this.getValidationResult({
|
|
26
|
-
userOperation,
|
|
27
|
-
queuedUserOperations,
|
|
28
|
-
entryPoint,
|
|
29
|
-
codeHashes: referencedContracts
|
|
30
|
-
});
|
|
31
|
-
this.metrics.userOperationsValidationSuccess.inc();
|
|
32
|
-
return validationResult;
|
|
33
|
-
}
|
|
34
|
-
catch (e) {
|
|
35
|
-
this.metrics.userOperationsValidationFailure.inc();
|
|
36
|
-
throw e;
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
async getCodeHashes(addresses) {
|
|
40
|
-
const deployData = (0, viem_1.encodeDeployData)({
|
|
41
|
-
abi: types_1.CodeHashGetterAbi,
|
|
42
|
-
bytecode: types_1.CodeHashGetterBytecode,
|
|
43
|
-
args: [addresses]
|
|
44
|
-
});
|
|
45
|
-
const wallet = await this.senderManager.getWallet();
|
|
46
|
-
let hash = "";
|
|
47
|
-
try {
|
|
48
|
-
await this.config.publicClient.call({
|
|
49
|
-
account: wallet,
|
|
50
|
-
data: deployData
|
|
51
|
-
});
|
|
52
|
-
}
|
|
53
|
-
catch (e) {
|
|
54
|
-
const error = e;
|
|
55
|
-
// biome-ignore lint/suspicious/noExplicitAny: it's a generic type
|
|
56
|
-
hash = error.walk().data;
|
|
57
|
-
}
|
|
58
|
-
this.senderManager.markWalletProcessed(wallet);
|
|
59
|
-
return {
|
|
60
|
-
hash,
|
|
61
|
-
addresses
|
|
62
|
-
};
|
|
63
|
-
}
|
|
64
|
-
async getValidationResultV07({ userOperation, queuedUserOperations, entryPoint, preCodeHashes }) {
|
|
65
|
-
if (preCodeHashes && preCodeHashes.addresses.length > 0) {
|
|
66
|
-
const { hash } = await this.getCodeHashes(preCodeHashes.addresses);
|
|
67
|
-
if (hash !== preCodeHashes.hash) {
|
|
68
|
-
throw new types_1.RpcError("code hashes mismatch", types_1.ValidationErrors.OpcodeValidation);
|
|
69
|
-
}
|
|
70
|
-
}
|
|
71
|
-
const [res, tracerResult] = await this.getValidationResultWithTracerV07(userOperation, queuedUserOperations, entryPoint);
|
|
72
|
-
const [contractAddresses, storageMap] = (0, TracerResultParserV07_1.tracerResultParserV07)(userOperation, tracerResult, res, entryPoint.toLowerCase());
|
|
73
|
-
const codeHashes = preCodeHashes || (await this.getCodeHashes(contractAddresses));
|
|
74
|
-
// biome-ignore lint/suspicious/noExplicitAny: it's a generic type
|
|
75
|
-
if (res === "0x") {
|
|
76
|
-
throw new Error("simulateValidation reverted with no revert string!");
|
|
77
|
-
}
|
|
78
|
-
if (res.returnInfo.accountSigFailed) {
|
|
79
|
-
throw new types_1.RpcError("Invalid UserOp signature", types_1.ValidationErrors.InvalidSignature);
|
|
80
|
-
}
|
|
81
|
-
if (res.returnInfo.paymasterSigFailed) {
|
|
82
|
-
throw new types_1.RpcError("Invalid UserOp paymasterData", types_1.ValidationErrors.InvalidSignature);
|
|
83
|
-
}
|
|
84
|
-
return {
|
|
85
|
-
...res,
|
|
86
|
-
referencedContracts: codeHashes,
|
|
87
|
-
storageMap
|
|
88
|
-
};
|
|
89
|
-
}
|
|
90
|
-
async getValidationResultV06({ userOperation, entryPoint, preCodeHashes }) {
|
|
91
|
-
if (preCodeHashes && preCodeHashes.addresses.length > 0) {
|
|
92
|
-
const { hash } = await this.getCodeHashes(preCodeHashes.addresses);
|
|
93
|
-
if (hash !== preCodeHashes.hash) {
|
|
94
|
-
throw new types_1.RpcError("code hashes mismatch", types_1.ValidationErrors.OpcodeValidation);
|
|
95
|
-
}
|
|
96
|
-
}
|
|
97
|
-
const [res, tracerResult] = await this.getValidationResultWithTracerV06(userOperation, entryPoint);
|
|
98
|
-
const [contractAddresses, storageMap] = (0, TracerResultParserV06_1.tracerResultParserV06)(userOperation, tracerResult, res, entryPoint.toLowerCase());
|
|
99
|
-
const codeHashes = preCodeHashes || (await this.getCodeHashes(contractAddresses));
|
|
100
|
-
// biome-ignore lint/suspicious/noExplicitAny: it's a generic type
|
|
101
|
-
if (res === "0x") {
|
|
102
|
-
throw new Error("simulateValidation reverted with no revert string!");
|
|
103
|
-
}
|
|
104
|
-
const validationResult = {
|
|
105
|
-
...res,
|
|
106
|
-
referencedContracts: codeHashes,
|
|
107
|
-
storageMap
|
|
108
|
-
};
|
|
109
|
-
if (validationResult.returnInfo.sigFailed) {
|
|
110
|
-
throw new types_1.RpcError("Invalid UserOp signature or paymaster signature", types_1.ValidationErrors.InvalidSignature);
|
|
111
|
-
}
|
|
112
|
-
const now = Date.now() / 1000;
|
|
113
|
-
this.logger.debug({
|
|
114
|
-
validAfter: validationResult.returnInfo.validAfter,
|
|
115
|
-
validUntil: validationResult.returnInfo.validUntil,
|
|
116
|
-
now: now
|
|
117
|
-
});
|
|
118
|
-
if (validationResult.returnInfo.validAfter > now - 5) {
|
|
119
|
-
throw new types_1.RpcError("User operation is not valid yet", types_1.ValidationErrors.ExpiresShortly);
|
|
120
|
-
}
|
|
121
|
-
if (validationResult.returnInfo.validUntil < now + 30) {
|
|
122
|
-
throw new types_1.RpcError("expires too soon", types_1.ValidationErrors.ExpiresShortly);
|
|
123
|
-
}
|
|
124
|
-
return validationResult;
|
|
125
|
-
}
|
|
126
|
-
async getValidationResultWithTracerV06(userOperation, entryPoint) {
|
|
127
|
-
const stateOverrides = (0, utils_1.getAuthorizationStateOverrides)({
|
|
128
|
-
userOperations: [userOperation]
|
|
129
|
-
});
|
|
130
|
-
const tracerResult = await (0, tracer_1.debug_traceCall)(this.config.publicClient, {
|
|
131
|
-
from: viem_1.zeroAddress,
|
|
132
|
-
to: entryPoint,
|
|
133
|
-
data: (0, viem_1.encodeFunctionData)({
|
|
134
|
-
abi: types_1.EntryPointV06Abi,
|
|
135
|
-
functionName: "simulateValidation",
|
|
136
|
-
args: [userOperation]
|
|
137
|
-
})
|
|
138
|
-
}, {
|
|
139
|
-
tracer: BundlerCollectorTracerV07_1.bundlerCollectorTracer,
|
|
140
|
-
stateOverrides
|
|
141
|
-
});
|
|
142
|
-
const lastResult = tracerResult.calls.slice(-1)[0];
|
|
143
|
-
if (lastResult.type !== "REVERT") {
|
|
144
|
-
throw new Error("Invalid response. simulateCall must revert");
|
|
145
|
-
}
|
|
146
|
-
const data = lastResult.data;
|
|
147
|
-
if (data === "0x") {
|
|
148
|
-
// biome-ignore lint/suspicious/noExplicitAny: it's a generic type
|
|
149
|
-
return [data, tracerResult];
|
|
150
|
-
}
|
|
151
|
-
try {
|
|
152
|
-
const { errorName, args: errorArgs } = (0, viem_1.decodeErrorResult)({
|
|
153
|
-
abi: types_1.EntryPointV06Abi,
|
|
154
|
-
data
|
|
155
|
-
});
|
|
156
|
-
const errFullName = `${errorName}(${errorArgs.toString()})`;
|
|
157
|
-
const errorResult = this.parseErrorResultV06(userOperation, {
|
|
158
|
-
errorName,
|
|
159
|
-
errorArgs
|
|
160
|
-
});
|
|
161
|
-
if (!errorName.includes("Result")) {
|
|
162
|
-
// a real error, not a result.
|
|
163
|
-
throw new Error(errFullName);
|
|
164
|
-
}
|
|
165
|
-
// @ts-ignore
|
|
166
|
-
return [errorResult, tracerResult];
|
|
167
|
-
// biome-ignore lint/suspicious/noExplicitAny: it's a generic type
|
|
168
|
-
}
|
|
169
|
-
catch (e) {
|
|
170
|
-
// if already parsed, throw as is
|
|
171
|
-
if (e.code != null) {
|
|
172
|
-
throw e;
|
|
173
|
-
}
|
|
174
|
-
throw new types_1.RpcError(data);
|
|
175
|
-
}
|
|
176
|
-
}
|
|
177
|
-
parseErrorResultV06(userOperation,
|
|
178
|
-
// biome-ignore lint/suspicious/noExplicitAny: it's a generic type
|
|
179
|
-
errorResult) {
|
|
180
|
-
if (!errorResult?.errorName?.startsWith("ValidationResult")) {
|
|
181
|
-
// parse it as FailedOp
|
|
182
|
-
// if its FailedOp, then we have the paymaster param... otherwise its an Error(string)
|
|
183
|
-
let paymaster = errorResult.errorArgs.paymaster;
|
|
184
|
-
if (paymaster === viem_1.zeroAddress) {
|
|
185
|
-
paymaster = undefined;
|
|
186
|
-
}
|
|
187
|
-
// eslint-disable-next-line
|
|
188
|
-
const msg = errorResult.errorArgs[1] ?? errorResult.toString();
|
|
189
|
-
if (paymaster == null) {
|
|
190
|
-
throw new types_1.RpcError(`account validation failed: ${msg}`, types_1.ValidationErrors.SimulateValidation);
|
|
191
|
-
}
|
|
192
|
-
throw new types_1.RpcError(`paymaster validation failed: ${msg}`, types_1.ValidationErrors.SimulatePaymasterValidation, {
|
|
193
|
-
paymaster
|
|
194
|
-
});
|
|
195
|
-
}
|
|
196
|
-
const [returnInfo, senderInfo, factoryInfo, paymasterInfo, aggregatorInfo // may be missing (exists only SimulationResultWithAggregator)
|
|
197
|
-
] = errorResult.errorArgs;
|
|
198
|
-
// extract address from "data" (first 20 bytes)
|
|
199
|
-
// add it as "addr" member to the "stakeinfo" struct
|
|
200
|
-
// if no address, then return "undefined" instead of struct.
|
|
201
|
-
function fillEntity(data, info) {
|
|
202
|
-
const addr = (0, utils_1.getAddressFromInitCodeOrPaymasterAndData)(data);
|
|
203
|
-
return addr == null
|
|
204
|
-
? undefined
|
|
205
|
-
: {
|
|
206
|
-
...info,
|
|
207
|
-
addr
|
|
208
|
-
};
|
|
209
|
-
}
|
|
210
|
-
function fillEntityAggregator(data, info) {
|
|
211
|
-
const addr = (0, utils_1.getAddressFromInitCodeOrPaymasterAndData)(data);
|
|
212
|
-
return addr == null
|
|
213
|
-
? undefined
|
|
214
|
-
: {
|
|
215
|
-
aggregator: data,
|
|
216
|
-
stakeInfo: {
|
|
217
|
-
...info,
|
|
218
|
-
addr
|
|
219
|
-
}
|
|
220
|
-
};
|
|
221
|
-
}
|
|
222
|
-
return {
|
|
223
|
-
returnInfo,
|
|
224
|
-
senderInfo: {
|
|
225
|
-
...senderInfo,
|
|
226
|
-
addr: userOperation.sender
|
|
227
|
-
},
|
|
228
|
-
factoryInfo: fillEntity(userOperation.initCode, factoryInfo),
|
|
229
|
-
paymasterInfo: fillEntity(userOperation.paymasterAndData, paymasterInfo),
|
|
230
|
-
aggregatorInfo: fillEntityAggregator(aggregatorInfo?.actualAggregator, aggregatorInfo?.stakeInfo)
|
|
231
|
-
};
|
|
232
|
-
}
|
|
233
|
-
async getValidationResultWithTracerV07(userOperation, queuedUserOperations, entryPoint) {
|
|
234
|
-
const packedUserOperation = (0, utils_1.toPackedUserOperation)(userOperation);
|
|
235
|
-
const packedQueuedUserOperations = queuedUserOperations.map((uop) => (0, utils_1.toPackedUserOperation)(uop));
|
|
236
|
-
const entryPointSimulationsCallData = (0, viem_1.encodeFunctionData)({
|
|
237
|
-
abi: types_1.EntryPointV07SimulationsAbi,
|
|
238
|
-
functionName: "simulateValidationLast",
|
|
239
|
-
args: [[...packedQueuedUserOperations, packedUserOperation]]
|
|
240
|
-
});
|
|
241
|
-
const callData = (0, viem_1.encodeFunctionData)({
|
|
242
|
-
abi: types_1.PimlicoEntryPointSimulationsAbi,
|
|
243
|
-
functionName: "simulateEntryPoint",
|
|
244
|
-
args: [entryPoint, [entryPointSimulationsCallData]]
|
|
245
|
-
});
|
|
246
|
-
const isV8 = (0, utils_1.isVersion08)(userOperation, entryPoint);
|
|
247
|
-
const entryPointSimulationsAddress = isV8
|
|
248
|
-
? this.config.entrypointSimulationContractV8
|
|
249
|
-
: this.config.entrypointSimulationContractV7;
|
|
250
|
-
const stateOverrides = (0, utils_1.getAuthorizationStateOverrides)({
|
|
251
|
-
userOperations: [userOperation]
|
|
252
|
-
});
|
|
253
|
-
const tracerResult = await (0, tracer_1.debug_traceCall)(this.config.publicClient, {
|
|
254
|
-
from: viem_1.zeroAddress,
|
|
255
|
-
to: entryPointSimulationsAddress,
|
|
256
|
-
data: callData
|
|
257
|
-
}, {
|
|
258
|
-
tracer: BundlerCollectorTracerV07_1.bundlerCollectorTracer,
|
|
259
|
-
stateOverrides
|
|
260
|
-
});
|
|
261
|
-
this.logger.info(`tracerResult: ${JSON.stringify(tracerResult, (_k, v) => typeof v === "bigint" ? v.toString() : v)}`);
|
|
262
|
-
const lastResult = tracerResult.calls.slice(-1)[0];
|
|
263
|
-
if (lastResult.type !== "REVERT") {
|
|
264
|
-
throw new Error("Invalid response. simulateCall must revert");
|
|
265
|
-
}
|
|
266
|
-
const resultData = lastResult.data;
|
|
267
|
-
const simulateValidationResult = (0, gasEstimationsV07_1.getSimulateValidationResult)(resultData);
|
|
268
|
-
if (simulateValidationResult.status === "failed") {
|
|
269
|
-
let errorCode = types_1.ValidationErrors.SimulateValidation;
|
|
270
|
-
const errorMessage = simulateValidationResult.data;
|
|
271
|
-
if (errorMessage.includes("AA24")) {
|
|
272
|
-
errorCode = types_1.ValidationErrors.InvalidSignature;
|
|
273
|
-
}
|
|
274
|
-
if (errorMessage.includes("AA31")) {
|
|
275
|
-
errorCode = types_1.ValidationErrors.PaymasterDepositTooLow;
|
|
276
|
-
}
|
|
277
|
-
throw new types_1.RpcError(errorMessage, errorCode);
|
|
278
|
-
}
|
|
279
|
-
const validationResult = simulateValidationResult.data;
|
|
280
|
-
const mergedValidation = this.mergeValidationDataValues(validationResult.returnInfo.accountValidationData, validationResult.returnInfo.paymasterValidationData);
|
|
281
|
-
const res = {
|
|
282
|
-
returnInfo: {
|
|
283
|
-
...validationResult.returnInfo,
|
|
284
|
-
accountSigFailed: mergedValidation.accountSigFailed,
|
|
285
|
-
paymasterSigFailed: mergedValidation.paymasterSigFailed,
|
|
286
|
-
validUntil: mergedValidation.validUntil,
|
|
287
|
-
validAfter: mergedValidation.validAfter
|
|
288
|
-
},
|
|
289
|
-
senderInfo: {
|
|
290
|
-
...validationResult.senderInfo,
|
|
291
|
-
addr: userOperation.sender
|
|
292
|
-
},
|
|
293
|
-
factoryInfo: userOperation.factory && validationResult.factoryInfo
|
|
294
|
-
? {
|
|
295
|
-
...validationResult.factoryInfo,
|
|
296
|
-
addr: userOperation.factory
|
|
297
|
-
}
|
|
298
|
-
: undefined,
|
|
299
|
-
paymasterInfo: userOperation.paymaster && validationResult.paymasterInfo
|
|
300
|
-
? {
|
|
301
|
-
...validationResult.paymasterInfo,
|
|
302
|
-
addr: userOperation.paymaster
|
|
303
|
-
}
|
|
304
|
-
: undefined,
|
|
305
|
-
aggregatorInfo: validationResult.aggregatorInfo,
|
|
306
|
-
storageMap: {}
|
|
307
|
-
};
|
|
308
|
-
// this.validateStorageAccessList(userOperation, res, accessList)
|
|
309
|
-
if (res.returnInfo.accountSigFailed) {
|
|
310
|
-
throw new types_1.RpcError("Invalid UserOp signature", types_1.ValidationErrors.InvalidSignature);
|
|
311
|
-
}
|
|
312
|
-
if (res.returnInfo.paymasterSigFailed) {
|
|
313
|
-
throw new types_1.RpcError("Invalid UserOp paymasterData", types_1.ValidationErrors.InvalidSignature);
|
|
314
|
-
}
|
|
315
|
-
const now = Math.floor(Date.now() / 1000);
|
|
316
|
-
if (res.returnInfo.validAfter > now - 5) {
|
|
317
|
-
throw new types_1.RpcError(`User operation is not valid yet, validAfter=${res.returnInfo.validAfter}, now=${now}`, types_1.ValidationErrors.ExpiresShortly);
|
|
318
|
-
}
|
|
319
|
-
if (res.returnInfo.validUntil == null ||
|
|
320
|
-
res.returnInfo.validUntil < now + 30) {
|
|
321
|
-
throw new types_1.RpcError(`UserOperation expires too soon, validUntil=${res.returnInfo.validUntil}, now=${now}`, types_1.ValidationErrors.ExpiresShortly);
|
|
322
|
-
}
|
|
323
|
-
return [res, tracerResult];
|
|
324
|
-
}
|
|
325
|
-
}
|
|
326
|
-
exports.SafeValidator = SafeValidator;
|
|
327
|
-
//# sourceMappingURL=SafeValidator.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"SafeValidator.js","sourceRoot":"","sources":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AAI,EAAE,aAAa,CAAC,SAAS;iBAChC;gBACH,CAAC,CAAC,SAAS;YACnB,cAAc,EAAE,gBAAgB,CAAC,cAAc;YAC/C,UAAU,EAAE,EAAE;SACjB,CAAA;QAED,iEAAiE;QAEjE,IAAI,GAAG,CAAC,UAAU,CAAC,gBAAgB,EAAE,CAAC;YAClC,MAAM,IAAI,gBAAQ,CACd,0BAA0B,EAC1B,wBAAgB,CAAC,gBAAgB,CACpC,CAAA;QACL,CAAC;QAED,IAAI,GAAG,CAAC,UAAU,CAAC,kBAAkB,EAAE,CAAC;YACpC,MAAM,IAAI,gBAAQ,CACd,8BAA8B,EAC9B,wBAAgB,CAAC,gBAAgB,CACpC,CAAA;QACL,CAAC;QAED,MAAM,GAAG,GAAG,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,GAAG,EAAE,GAAG,IAAI,CAAC,CAAA;QAEzC,IAAI,GAAG,CAAC,UAAU,CAAC,UAAU,GAAG,GAAG,GAAG,CAAC,EAAE,CAAC;YACtC,MAAM,IAAI,gBAAQ,CACd,+CAA+C,GAAG,CAAC,UAAU,CAAC,UAAU,SAAS,GAAG,EAAE,EACtF,wBAAgB,CAAC,cAAc,CAClC,CAAA;QACL,CAAC;QAED,IACI,GAAG,CAAC,UAAU,CAAC,UAAU,IAAI,IAAI;YACjC,GAAG,CAAC,UAAU,CAAC,UAAU,GAAG,GAAG,GAAG,EAAE,EACtC,CAAC;YACC,MAAM,IAAI,gBAAQ,CACd,8CAA8C,GAAG,CAAC,UAAU,CAAC,UAAU,SAAS,GAAG,EAAE,EACrF,wBAAgB,CAAC,cAAc,CAClC,CAAA;QACL,CAAC;QAED,OAAO,CAAC,GAAG,EAAE,YAAY,CAAC,CAAA;IAC9B,CAAC;CACJ;AA5hBD,sCA4hBC"}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { type StorageMap, type UserOperationV06, type ValidationResult } from "../../types/index.js";
|
|
2
|
-
import { type Address } from "viem";
|
|
3
|
-
import type { BundlerTracerResult } from "./BundlerCollectorTracerV06.js";
|
|
4
|
-
/**
|
|
5
|
-
* parse collected simulation traces and revert if they break our rules
|
|
6
|
-
* @param userOperation the userOperation that was used in this simulation
|
|
7
|
-
* @param tracerResults the tracer return value
|
|
8
|
-
* @param validationResult output from simulateValidation
|
|
9
|
-
* @param entryPoint the entryPoint that hosted the "simulatedValidation" traced call.
|
|
10
|
-
* @return list of contract addresses referenced by this UserOp
|
|
11
|
-
*/
|
|
12
|
-
export declare function tracerResultParserV06(userOperation: UserOperationV06, tracerResults: BundlerTracerResult, validationResult: ValidationResult, entryPointAddress: Address): [string[], StorageMap];
|
|
13
|
-
//# sourceMappingURL=TracerResultParserV06.d.ts.map
|