@pimlico/alto 0.0.18 → 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 -0
- package/contracts/ERC165.sol/ERC165.json +1 -0
- package/contracts/ERC20.sol/ERC20.json +1 -0
- package/contracts/Eip7702Support.sol/Eip7702Support.json +1 -0
- package/contracts/EntryPoint.sol/EntryPoint.json +1 -0
- package/contracts/EntryPointFilterOpsOverride.sol/EntryPointFilterOpsOverride06.json +1 -0
- package/contracts/EntryPointFilterOpsOverride.sol/EntryPointFilterOpsOverride07.json +1 -0
- package/contracts/EntryPointFilterOpsOverride.sol/EntryPointFilterOpsOverride08.json +1 -0
- package/contracts/EntryPointFilterOpsOverride.sol/EntryPointFilterOpsOverride09.json +1 -0
- package/contracts/EntryPointGasEstimationOverride.sol/EntryPointGasEstimationOverride06.json +1 -0
- package/contracts/EntryPointSimulations.sol/EntryPointSimulations07.json +1 -0
- package/contracts/EntryPointSimulations.sol/EntryPointSimulations08.json +1 -0
- package/contracts/EntryPointSimulations.sol/EntryPointSimulations09.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/IEntryPointFilterOpsOverride.sol/IEntryPointFilterOpsOverride08.json +1 -0
- package/contracts/IEntryPointFilterOpsOverride.sol/IEntryPointFilterOpsOverride09.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/LibBytes.sol/LibBytes.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/PimlicoSimulations.sol/PimlicoSimulations.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/SimulationOverrideHelper.sol/SimulationOverrideHelper.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/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/8dbf8a4ad39019b5.json +1 -0
- package/contracts/contracts/interfaces/IAggregator.sol/IAggregator.json +1 -0
- package/contracts/contracts/interfaces/IEntryPoint.sol/IEntryPoint.json +1 -0
- package/contracts/contracts/interfaces/INonceManager.sol/INonceManager.json +1 -0
- package/contracts/contracts/interfaces/IStakeManager.sol/IStakeManager.json +1 -0
- 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 -0
- package/contracts/interfaces/IEntryPoint.sol/IEntryPoint.json +1 -0
- package/contracts/interfaces/INonceManager.sol/INonceManager.json +1 -0
- 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 -0
- 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 -0
- package/contracts/utils/StorageSlot.sol/StorageSlot.json +1 -0
- package/contracts/v09/EntryPoint.sol/EntryPoint.json +1 -0
- package/esm/cli/alto.js +16 -7
- package/esm/cli/alto.js.map +1 -1
- package/esm/cli/config/bundler.d.ts +690 -540
- package/esm/cli/config/bundler.js +101 -66
- package/esm/cli/config/bundler.js.map +1 -1
- package/esm/cli/config/options.d.ts +2 -1
- package/esm/cli/config/options.js +207 -59
- package/esm/cli/config/options.js.map +1 -1
- package/esm/cli/customTransport.d.ts +3 -3
- package/esm/cli/customTransport.js +4 -3
- package/esm/cli/customTransport.js.map +1 -1
- package/esm/cli/deploySimulationsContract.d.ts +5 -2
- package/esm/cli/deploySimulationsContract.js +108 -40
- package/esm/cli/deploySimulationsContract.js.map +1 -1
- package/esm/cli/handler.js +94 -22
- package/esm/cli/handler.js.map +1 -1
- package/esm/cli/instrumentation.js +7 -1
- package/esm/cli/instrumentation.js.map +1 -1
- package/esm/cli/parseArgs.js.map +1 -1
- package/esm/cli/setupServer.js +63 -63
- 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 -0
- package/esm/contracts/EntryPointFilterOpsOverride.sol/EntryPointFilterOpsOverride07.json +1 -0
- package/esm/contracts/EntryPointFilterOpsOverride.sol/EntryPointFilterOpsOverride08.json +1 -0
- package/esm/contracts/EntryPointFilterOpsOverride.sol/EntryPointFilterOpsOverride09.json +1 -0
- package/esm/contracts/EntryPointGasEstimationOverride.sol/EntryPointGasEstimationOverride06.json +1 -0
- package/esm/contracts/EntryPointSimulations.sol/EntryPointSimulations07.json +1 -0
- package/esm/contracts/EntryPointSimulations.sol/EntryPointSimulations08.json +1 -0
- package/esm/contracts/EntryPointSimulations.sol/EntryPointSimulations09.json +1 -0
- package/esm/contracts/PimlicoSimulations.sol/PimlicoSimulations.json +1 -0
- package/esm/createConfig.d.ts +12 -4
- package/esm/createConfig.js +2 -0
- package/esm/createConfig.js.map +1 -1
- package/esm/executor/bundleManager.d.ts +111 -0
- package/esm/executor/bundleManager.js +354 -0
- package/esm/executor/bundleManager.js.map +1 -0
- package/esm/executor/executor.d.ts +18 -23
- package/esm/executor/executor.js +183 -119
- package/esm/executor/executor.js.map +1 -1
- package/esm/executor/executorManager.d.ts +39 -88
- package/esm/executor/executorManager.js +325 -550
- package/esm/executor/executorManager.js.map +1 -1
- package/esm/executor/filterOpsAndEstimateGas.d.ts +39 -0
- package/esm/executor/filterOpsAndEstimateGas.js +280 -0
- package/esm/executor/filterOpsAndEstimateGas.js.map +1 -0
- package/esm/executor/getBundleStatus.d.ts +25 -0
- package/esm/executor/getBundleStatus.js +35 -0
- package/esm/executor/getBundleStatus.js.map +1 -0
- 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.d.ts +3 -3
- package/esm/executor/senderManager/createMemorySenderManager.js +14 -1
- package/esm/executor/senderManager/createMemorySenderManager.js.map +1 -1
- package/esm/executor/senderManager/createRedisSenderManager.d.ts +5 -4
- package/esm/executor/senderManager/createRedisSenderManager.js +4 -7
- package/esm/executor/senderManager/createRedisSenderManager.js.map +1 -1
- package/esm/executor/senderManager/flushOnStartUp.d.ts +3 -3
- package/esm/executor/senderManager/flushOnStartUp.js +4 -4
- package/esm/executor/senderManager/flushOnStartUp.js.map +1 -1
- package/esm/executor/senderManager/index.d.ts +4 -3
- package/esm/executor/senderManager/index.js +6 -2
- package/esm/executor/senderManager/index.js.map +1 -1
- package/esm/executor/senderManager/validateAndRefill.d.ts +4 -4
- package/esm/executor/senderManager/validateAndRefill.js +3 -3
- package/esm/executor/senderManager/validateAndRefill.js.map +1 -1
- package/esm/executor/utilityWalletMonitor.d.ts +5 -5
- package/esm/executor/utilityWalletMonitor.js +1 -1
- package/esm/executor/utilityWalletMonitor.js.map +1 -1
- package/esm/executor/utils.d.ts +14 -6
- package/esm/executor/utils.js +68 -37
- package/esm/executor/utils.js.map +1 -1
- package/esm/handlers/arbitrumGasPriceManager.d.ts +4 -3
- package/esm/handlers/arbitrumGasPriceManager.js +9 -5
- package/esm/handlers/arbitrumGasPriceManager.js.map +1 -1
- package/esm/handlers/eventManager.d.ts +19 -18
- package/esm/handlers/eventManager.js +81 -61
- package/esm/handlers/eventManager.js.map +1 -1
- package/esm/handlers/gasPriceManager.d.ts +12 -10
- package/esm/handlers/gasPriceManager.js +79 -125
- package/esm/handlers/gasPriceManager.js.map +1 -1
- package/esm/handlers/mantleGasPriceManager.d.ts +5 -5
- package/esm/handlers/mantleGasPriceManager.js +4 -4
- package/esm/handlers/mantleGasPriceManager.js.map +1 -1
- package/esm/handlers/optimismManager.d.ts +2 -2
- 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 +71 -33
- package/esm/mempool/mempool.js +231 -155
- package/esm/mempool/mempool.js.map +1 -1
- package/esm/mempool/reputationManager.d.ts +36 -36
- package/esm/mempool/reputationManager.js +93 -97
- 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.d.ts +2 -2
- package/esm/rpc/createMethodHandler.js.map +1 -1
- package/esm/rpc/estimation/gasEstimationHandler.d.ts +15 -16
- package/esm/rpc/estimation/gasEstimationHandler.js +24 -24
- package/esm/rpc/estimation/gasEstimationHandler.js.map +1 -1
- package/esm/rpc/estimation/gasEstimations06.d.ts +18 -0
- package/esm/rpc/estimation/gasEstimations06.js +45 -0
- package/esm/rpc/estimation/gasEstimations06.js.map +1 -0
- package/esm/rpc/estimation/gasEstimations07.d.ts +63 -0
- package/esm/rpc/estimation/gasEstimations07.js +384 -0
- package/esm/rpc/estimation/gasEstimations07.js.map +1 -0
- package/esm/rpc/estimation/preVerificationGasCalculator.d.ts +56 -0
- package/esm/rpc/estimation/preVerificationGasCalculator.js +467 -0
- package/esm/rpc/estimation/preVerificationGasCalculator.js.map +1 -0
- package/esm/rpc/estimation/types.d.ts +25 -111
- package/esm/rpc/estimation/types.js +5 -121
- package/esm/rpc/estimation/types.js.map +1 -1
- package/esm/rpc/estimation/utils.d.ts +69 -0
- package/esm/rpc/estimation/utils.js +240 -0
- package/esm/rpc/estimation/utils.js.map +1 -0
- package/{lib/rpc/methods/pimlico_sendUserOperationNow.d.ts → esm/rpc/methods/boost_sendUserOperation.d.ts} +299 -385
- package/esm/rpc/methods/boost_sendUserOperation.js +57 -0
- package/esm/rpc/methods/boost_sendUserOperation.js.map +1 -0
- package/esm/rpc/methods/debug_bundler_clearReputation.js +2 -2
- package/esm/rpc/methods/debug_bundler_clearReputation.js.map +1 -1
- package/esm/rpc/methods/debug_bundler_clearState.js +2 -2
- 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_dumpMempool.js +1 -1
- package/esm/rpc/methods/debug_bundler_dumpMempool.js.map +1 -1
- package/esm/rpc/methods/debug_bundler_dumpReputation.js +2 -2
- package/esm/rpc/methods/debug_bundler_dumpReputation.js.map +1 -1
- package/esm/rpc/methods/debug_bundler_getStakeStatus.js +1 -2
- package/esm/rpc/methods/debug_bundler_getStakeStatus.js.map +1 -1
- package/esm/rpc/methods/debug_bundler_sendBundleNow.js +10 -2
- package/esm/rpc/methods/debug_bundler_sendBundleNow.js.map +1 -1
- package/esm/rpc/methods/debug_bundler_setBundlingMode.js +1 -1
- package/esm/rpc/methods/debug_bundler_setBundlingMode.js.map +1 -1
- package/esm/rpc/methods/debug_bundler_setReputation.js +1 -1
- package/esm/rpc/methods/debug_bundler_setReputation.js.map +1 -1
- package/esm/rpc/methods/eth_chainId.js +1 -1
- package/esm/rpc/methods/eth_chainId.js.map +1 -1
- package/esm/rpc/methods/eth_estimateUserOperationGas.d.ts +910 -301
- package/esm/rpc/methods/eth_estimateUserOperationGas.js +228 -12
- 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 +8 -8
- 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 +10 -4
- package/esm/rpc/methods/eth_getUserOperationReceipt.js.map +1 -1
- package/esm/rpc/methods/eth_sendUserOperation.d.ts +319 -2
- package/esm/rpc/methods/eth_sendUserOperation.js +223 -20
- package/esm/rpc/methods/eth_sendUserOperation.js.map +1 -1
- package/esm/rpc/methods/eth_supportedEntryPoints.js +1 -1
- package/esm/rpc/methods/eth_supportedEntryPoints.js.map +1 -1
- package/esm/rpc/methods/index.js +11 -6
- package/esm/rpc/methods/index.js.map +1 -1
- package/esm/rpc/methods/pimlico_getUserOperationGasPrice.js +1 -1
- package/esm/rpc/methods/pimlico_getUserOperationGasPrice.js.map +1 -1
- package/esm/rpc/methods/pimlico_getUserOperationStatus.d.ts +6 -6
- package/esm/rpc/methods/pimlico_getUserOperationStatus.js +3 -3
- 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 +27 -24
- package/esm/rpc/methods/pimlico_sendUserOperationNow.js.map +1 -1
- package/{lib/rpc/methods/eth_estimateUserOperationGas.d.ts → esm/rpc/methods/pimlico_simulateAssetChange.d.ts} +891 -333
- package/esm/rpc/methods/pimlico_simulateAssetChange.js +113 -0
- package/esm/rpc/methods/pimlico_simulateAssetChange.js.map +1 -0
- package/esm/rpc/rpcHandler.d.ts +30 -54
- package/esm/rpc/rpcHandler.js +137 -315
- 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 +2 -2
- 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 +20 -22
- package/esm/rpc/validation/SafeValidator.js +87 -100
- package/esm/rpc/validation/SafeValidator.js.map +1 -1
- package/esm/rpc/validation/TracerResultParserV06.d.ts +3 -3
- package/esm/rpc/validation/TracerResultParserV06.js +19 -19
- package/esm/rpc/validation/TracerResultParserV06.js.map +1 -1
- package/esm/rpc/validation/TracerResultParserV07.d.ts +3 -3
- package/esm/rpc/validation/TracerResultParserV07.js +25 -25
- package/esm/rpc/validation/TracerResultParserV07.js.map +1 -1
- package/esm/rpc/validation/UnsafeValidator.d.ts +32 -33
- package/esm/rpc/validation/UnsafeValidator.js +117 -101
- package/esm/rpc/validation/UnsafeValidator.js.map +1 -1
- package/esm/rpc/validation/tracer.d.ts +1 -1
- package/esm/store/createMempoolStore.d.ts +3 -3
- package/esm/store/createMempoolStore.js +100 -113
- package/esm/store/createMempoolStore.js.map +1 -1
- package/esm/store/index.d.ts +4 -80
- 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/outstanding/memory.d.ts +29 -0
- 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 +1661 -0
- package/esm/types/contracts/{EntryPointSimulationsV7.js → PimlicoSimulations.js} +1104 -1788
- package/esm/types/contracts/PimlicoSimulations.js.map +1 -0
- package/esm/types/contracts/index.d.ts +1 -3
- package/esm/types/contracts/index.js +1 -3
- 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 +26 -26
- package/esm/types/mempool.d.ts +14 -28
- package/esm/types/mempool.js +1 -7
- package/esm/types/mempool.js.map +1 -1
- package/esm/types/schemas.d.ts +26347 -10767
- package/esm/types/schemas.js +202 -38
- 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 +9447 -8727
- package/esm/types/validation.js +123 -161
- package/esm/types/validation.js.map +1 -1
- package/esm/utils/asyncTimeout.d.ts +5 -0
- package/esm/utils/asyncTimeout.js +23 -0
- package/esm/utils/asyncTimeout.js.map +1 -0
- package/esm/utils/bigInt.d.ts +9 -0
- package/esm/utils/bigInt.js +19 -2
- package/esm/utils/bigInt.js.map +1 -1
- package/esm/utils/eip7702.d.ts +4 -3
- package/esm/utils/eip7702.js +16 -7
- package/esm/utils/eip7702.js.map +1 -1
- package/esm/utils/entryPointOverrides.d.ts +12 -0
- package/esm/utils/entryPointOverrides.js +71 -0
- package/esm/utils/entryPointOverrides.js.map +1 -0
- package/esm/utils/helpers.d.ts +5 -3
- package/esm/utils/helpers.js +36 -13
- package/esm/utils/helpers.js.map +1 -1
- package/esm/utils/index.d.ts +2 -2
- package/esm/utils/index.js +1 -1
- package/esm/utils/index.js.map +1 -1
- package/esm/utils/metrics.d.ts +11 -9
- package/esm/utils/metrics.js +44 -25
- package/esm/utils/metrics.js.map +1 -1
- package/esm/utils/minMaxQueue/createMemoryMinMaxQueue.d.ts +2 -2
- package/esm/utils/minMaxQueue/createMemoryMinMaxQueue.js +2 -2
- package/esm/utils/minMaxQueue/createMemoryMinMaxQueue.js.map +1 -1
- package/esm/utils/minMaxQueue/createRedisMinMaxQueue.d.ts +26 -4
- package/esm/utils/minMaxQueue/createRedisMinMaxQueue.js +111 -71
- package/esm/utils/minMaxQueue/createRedisMinMaxQueue.js.map +1 -1
- package/esm/utils/minMaxQueue/index.d.ts +3 -3
- 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.d.ts +4 -0
- package/esm/utils/toViemStateOverrides.js +44 -0
- package/esm/utils/toViemStateOverrides.js.map +1 -0
- package/esm/utils/userop.d.ts +89 -87
- package/esm/utils/userop.js +207 -439
- package/esm/utils/userop.js.map +1 -1
- package/package.json +12 -7
- package/esm/executor/fastlane.d.ts +0 -9
- package/esm/executor/fastlane.js +0 -37
- package/esm/executor/fastlane.js.map +0 -1
- package/esm/executor/filterOpsAndEStimateGas.d.ts +0 -29
- package/esm/executor/filterOpsAndEStimateGas.js +0 -198
- package/esm/executor/filterOpsAndEStimateGas.js.map +0 -1
- package/esm/mempool/monitoring.d.ts +0 -14
- package/esm/mempool/monitoring.js +0 -97
- package/esm/mempool/monitoring.js.map +0 -1
- package/esm/rpc/estimation/gasEstimationsV06.d.ts +0 -19
- package/esm/rpc/estimation/gasEstimationsV06.js +0 -144
- package/esm/rpc/estimation/gasEstimationsV06.js.map +0 -1
- package/esm/rpc/estimation/gasEstimationsV07.d.ts +0 -101
- package/esm/rpc/estimation/gasEstimationsV07.js +0 -721
- package/esm/rpc/estimation/gasEstimationsV07.js.map +0 -1
- package/esm/store/createMemoryOutstandingStore.d.ts +0 -28
- package/esm/store/createMemoryOutstandingStore.js +0 -231
- 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/EntryPointSimulationsV6.d.ts +0 -34
- package/esm/types/contracts/EntryPointSimulationsV6.js +0 -48
- package/esm/types/contracts/EntryPointSimulationsV6.js.map +0 -1
- package/esm/types/contracts/EntryPointSimulationsV7.d.ts +0 -2193
- package/esm/types/contracts/EntryPointSimulationsV7.js.map +0 -1
- package/esm/types/contracts/PimlicoEntryPointSimulations.d.ts +0 -26
- package/esm/types/contracts/PimlicoEntryPointSimulations.js +0 -38
- package/esm/types/contracts/PimlicoEntryPointSimulations.js.map +0 -1
- package/esm/utils/validation.d.ts +0 -76
- package/esm/utils/validation.js +0 -484
- package/esm/utils/validation.js.map +0 -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 -2836
- package/lib/cli/config/bundler.js +0 -222
- 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 -553
- 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 -112
- 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 -285
- package/lib/executor/executor.js.map +0 -1
- package/lib/executor/executorManager.d.ts +0 -107
- package/lib/executor/executorManager.js +0 -682
- 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 -31
- package/lib/executor/utils.js +0 -170
- 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 -28
- package/lib/handlers/eventManager.js +0 -207
- package/lib/handlers/eventManager.js.map +0 -1
- package/lib/handlers/gasPriceManager.d.ts +0 -36
- package/lib/handlers/gasPriceManager.js +0 -423
- 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 -498
- 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.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.js +0 -53
- package/lib/rpc/methods/pimlico_sendUserOperationNow.js.map +0 -1
- package/lib/rpc/rpcHandler.d.ts +0 -75
- package/lib/rpc/rpcHandler.js +0 -408
- 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 -52
- package/lib/rpc/validation/SafeValidator.js +0 -350
- 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 -98
- package/lib/rpc/validation/UnsafeValidator.js +0 -326
- 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 -2193
- package/lib/types/contracts/EntryPointSimulationsV7.js +0 -2828
- 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 -26
- package/lib/types/contracts/PimlicoEntryPointSimulations.js +0 -41
- 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 -59
- 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 -20779
- package/lib/types/schemas.js +0 -638
- 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/bigInt.d.ts +0 -4
- package/lib/utils/bigInt.js +0 -19
- 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 -8
- package/lib/utils/index.js +0 -23
- 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 -28
- package/lib/utils/metrics.js +0 -192
- 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 -500
- package/lib/utils/validation.js.map +0 -1
|
@@ -1,553 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.bundlerCommand = exports.debugOptions = exports.logOptions = exports.rpcOptions = exports.serverOptions = exports.compatibilityOptions = exports.executorOptions = exports.gasEstimationOptions = exports.mempoolOptions = exports.bundlerOptions = void 0;
|
|
4
|
-
const handler_1 = require("../handler.js");
|
|
5
|
-
exports.bundlerOptions = {
|
|
6
|
-
entrypoints: {
|
|
7
|
-
description: "EntryPoint contract addresses split by commas",
|
|
8
|
-
type: "string",
|
|
9
|
-
alias: "e",
|
|
10
|
-
require: true
|
|
11
|
-
},
|
|
12
|
-
"deterministic-deployer-address": {
|
|
13
|
-
description: "Address of the deterministic deployer contract",
|
|
14
|
-
type: "string",
|
|
15
|
-
alias: "d",
|
|
16
|
-
require: false,
|
|
17
|
-
default: "0x4e59b44847b379578588920ca78fbf26c0b4956c"
|
|
18
|
-
},
|
|
19
|
-
"min-entity-stake": {
|
|
20
|
-
description: "Minimum stake required for a relay (in 10e18)",
|
|
21
|
-
type: "number",
|
|
22
|
-
require: true,
|
|
23
|
-
default: 1
|
|
24
|
-
},
|
|
25
|
-
"min-entity-unstake-delay": {
|
|
26
|
-
description: "Minimum unstake delay (seconds)",
|
|
27
|
-
type: "number",
|
|
28
|
-
require: true,
|
|
29
|
-
default: 1
|
|
30
|
-
},
|
|
31
|
-
"safe-mode": {
|
|
32
|
-
description: "Enable safe mode (enforcing all ERC-4337 rules)",
|
|
33
|
-
type: "boolean",
|
|
34
|
-
require: true,
|
|
35
|
-
default: true
|
|
36
|
-
},
|
|
37
|
-
"gas-price-bump": {
|
|
38
|
-
description: "Amount to multiply the gas prices fetched from the node",
|
|
39
|
-
type: "string",
|
|
40
|
-
require: false,
|
|
41
|
-
default: "100"
|
|
42
|
-
},
|
|
43
|
-
"gas-price-expiry": {
|
|
44
|
-
description: "Maximum that the gas prices fetched using pimlico_getUserOperationGasPrice will be accepted for (seconds)",
|
|
45
|
-
type: "number",
|
|
46
|
-
require: false,
|
|
47
|
-
default: 20
|
|
48
|
-
},
|
|
49
|
-
"gas-price-multipliers": {
|
|
50
|
-
description: "Amount to multiply the gas prices fetched using pimlico_getUserOperationGasPrice (format: slow,standard,fast)",
|
|
51
|
-
type: "string",
|
|
52
|
-
require: false,
|
|
53
|
-
default: "100,100,100"
|
|
54
|
-
},
|
|
55
|
-
"gas-price-refresh-interval": {
|
|
56
|
-
description: "How to often to refresh the gas prices (seconds). If 0, then gas prices are refreshed on every request",
|
|
57
|
-
type: "number",
|
|
58
|
-
require: false,
|
|
59
|
-
default: 0
|
|
60
|
-
},
|
|
61
|
-
"mempool-max-parallel-ops": {
|
|
62
|
-
description: "Maximum amount of parallel user ops to keep in the meempool (same sender, different nonce keys)",
|
|
63
|
-
type: "number",
|
|
64
|
-
require: false,
|
|
65
|
-
default: 10
|
|
66
|
-
},
|
|
67
|
-
"mempool-max-queued-ops": {
|
|
68
|
-
description: "Maximum amount of sequential user ops to keep in the mempool (same sender and nonce key, different nonce values)",
|
|
69
|
-
type: "number",
|
|
70
|
-
require: false,
|
|
71
|
-
default: 0
|
|
72
|
-
},
|
|
73
|
-
"enforce-unique-senders-per-bundle": {
|
|
74
|
-
description: "Include user ops with the same sender in the single bundle",
|
|
75
|
-
type: "boolean",
|
|
76
|
-
require: false,
|
|
77
|
-
default: true
|
|
78
|
-
},
|
|
79
|
-
"max-gas-per-bundle": {
|
|
80
|
-
description: "Maximum amount of gas per bundle",
|
|
81
|
-
type: "string",
|
|
82
|
-
require: false,
|
|
83
|
-
default: "20000000"
|
|
84
|
-
},
|
|
85
|
-
"rpc-methods": {
|
|
86
|
-
description: "Supported RPC methods split by commas",
|
|
87
|
-
type: "string",
|
|
88
|
-
require: false,
|
|
89
|
-
default: null
|
|
90
|
-
},
|
|
91
|
-
"enable-instant-bundling-endpoint": {
|
|
92
|
-
description: "Should the bundler enable the pimlico_sendUserOperationNow endpoint",
|
|
93
|
-
type: "boolean",
|
|
94
|
-
default: false
|
|
95
|
-
},
|
|
96
|
-
"should-check-prefund": {
|
|
97
|
-
description: "Should the bundler check userOp's prefund before accepting it",
|
|
98
|
-
type: "boolean",
|
|
99
|
-
default: true
|
|
100
|
-
}
|
|
101
|
-
};
|
|
102
|
-
exports.mempoolOptions = {
|
|
103
|
-
"redis-mempool-url": {
|
|
104
|
-
description: "Redis connection URL (required if redis-mempool is enabled)",
|
|
105
|
-
type: "string",
|
|
106
|
-
require: false
|
|
107
|
-
},
|
|
108
|
-
"redis-mempool-concurrency": {
|
|
109
|
-
description: "Number of concurrent jobs to process",
|
|
110
|
-
type: "number",
|
|
111
|
-
require: false,
|
|
112
|
-
default: 10
|
|
113
|
-
},
|
|
114
|
-
"redis-mempool-queue-name": {
|
|
115
|
-
description: "Redis mempool queue name",
|
|
116
|
-
type: "string",
|
|
117
|
-
require: false,
|
|
118
|
-
default: "outstanding-mempool"
|
|
119
|
-
},
|
|
120
|
-
"redis-gas-price-queue-url": {
|
|
121
|
-
description: "Redis connection URL (required if redis-gas-price-queue is enabled)",
|
|
122
|
-
type: "string",
|
|
123
|
-
require: false
|
|
124
|
-
},
|
|
125
|
-
"redis-gas-price-queue-name": {
|
|
126
|
-
description: "Queue name to store gas prices",
|
|
127
|
-
type: "string",
|
|
128
|
-
require: false,
|
|
129
|
-
default: "gas-price"
|
|
130
|
-
},
|
|
131
|
-
"redis-sender-manager-url": {
|
|
132
|
-
description: "Redis connection URL (required if redis-sender-manager is enabled)",
|
|
133
|
-
type: "string",
|
|
134
|
-
require: false
|
|
135
|
-
},
|
|
136
|
-
"redis-sender-manager-queue-name": {
|
|
137
|
-
description: "Queue name to executors",
|
|
138
|
-
type: "string",
|
|
139
|
-
require: false,
|
|
140
|
-
default: "sender-manager"
|
|
141
|
-
},
|
|
142
|
-
"mempool-max-parallel-ops": {
|
|
143
|
-
description: "Maximum amount of parallel user ops to keep in the mempool (same sender, different nonce keys)",
|
|
144
|
-
type: "number",
|
|
145
|
-
require: false,
|
|
146
|
-
default: 10
|
|
147
|
-
},
|
|
148
|
-
"mempool-max-queued-ops": {
|
|
149
|
-
description: "Maximum amount of sequential user ops to keep in the mempool (same sender and nonce key, different nonce values)",
|
|
150
|
-
type: "number",
|
|
151
|
-
require: false,
|
|
152
|
-
default: 0
|
|
153
|
-
},
|
|
154
|
-
"enforce-unique-senders-per-bundle": {
|
|
155
|
-
description: "Include user ops with the same sender in the single bundle",
|
|
156
|
-
type: "boolean",
|
|
157
|
-
require: false,
|
|
158
|
-
default: true
|
|
159
|
-
}
|
|
160
|
-
};
|
|
161
|
-
exports.gasEstimationOptions = {
|
|
162
|
-
"entrypoint-simulation-contract-v7": {
|
|
163
|
-
description: "Address of the EntryPoint simulations contract for v7",
|
|
164
|
-
type: "string",
|
|
165
|
-
alias: "c",
|
|
166
|
-
require: false
|
|
167
|
-
},
|
|
168
|
-
"entrypoint-simulation-contract-v8": {
|
|
169
|
-
description: "Address of the EntryPoint simulations contract for v8",
|
|
170
|
-
type: "string",
|
|
171
|
-
alias: "c",
|
|
172
|
-
require: false
|
|
173
|
-
},
|
|
174
|
-
"binary-search-tolerance-delta": {
|
|
175
|
-
description: "Defines the threshold for when to stop the gas estimation binary search",
|
|
176
|
-
type: "string",
|
|
177
|
-
require: false,
|
|
178
|
-
default: "10000"
|
|
179
|
-
},
|
|
180
|
-
"binary-search-gas-allowance": {
|
|
181
|
-
description: "Added to the initial minimum gas to determine the upper bound of the binary search",
|
|
182
|
-
type: "string",
|
|
183
|
-
require: false,
|
|
184
|
-
default: "30000000"
|
|
185
|
-
},
|
|
186
|
-
"v6-call-gas-limit-multiplier": {
|
|
187
|
-
description: "Amount to multiply the callGasLimits fetched from simulations for v6 userOperations",
|
|
188
|
-
type: "string",
|
|
189
|
-
require: true,
|
|
190
|
-
default: "100"
|
|
191
|
-
},
|
|
192
|
-
"v6-verification-gas-limit-multiplier": {
|
|
193
|
-
description: "Amount to multiply the verificationGasLimit fetched from simulations for v6 userOperations",
|
|
194
|
-
type: "string",
|
|
195
|
-
require: true,
|
|
196
|
-
default: "100"
|
|
197
|
-
},
|
|
198
|
-
"v7-call-gas-limit-multiplier": {
|
|
199
|
-
description: "Amount to multiply the callGasLimit fetched from simulations for v7 userOperations",
|
|
200
|
-
type: "string",
|
|
201
|
-
require: true,
|
|
202
|
-
default: "100"
|
|
203
|
-
},
|
|
204
|
-
"v7-verification-gas-limit-multiplier": {
|
|
205
|
-
description: "Amount to multiply the verificationGasLimits fetched from simulations for v7 userOperations",
|
|
206
|
-
type: "string",
|
|
207
|
-
require: true,
|
|
208
|
-
default: "130"
|
|
209
|
-
},
|
|
210
|
-
"v7-paymaster-verification-gas-limit-multiplier": {
|
|
211
|
-
description: "Amount to multiply the paymasterVerificationGas limits fetched from simulations for v7 userOperations",
|
|
212
|
-
type: "string",
|
|
213
|
-
require: true,
|
|
214
|
-
default: "130"
|
|
215
|
-
},
|
|
216
|
-
"v7-paymaster-post-op-gas-limit-multiplier": {
|
|
217
|
-
description: "Amount to multiply the paymasterPostOp limits fetched from simulations for v7 userOperations",
|
|
218
|
-
type: "string",
|
|
219
|
-
require: true,
|
|
220
|
-
default: "120"
|
|
221
|
-
},
|
|
222
|
-
"paymaster-gas-limit-multiplier": {
|
|
223
|
-
description: "Amount to multiply the paymaster gas limits fetched from simulations",
|
|
224
|
-
type: "string",
|
|
225
|
-
require: true,
|
|
226
|
-
default: "110"
|
|
227
|
-
},
|
|
228
|
-
"simulation-call-gas-limit": {
|
|
229
|
-
description: "UserOperation's callGasLimit used during gas estimation simulations",
|
|
230
|
-
type: "string",
|
|
231
|
-
require: true,
|
|
232
|
-
default: "10000000"
|
|
233
|
-
},
|
|
234
|
-
"simulation-verification-gas-limit": {
|
|
235
|
-
description: "UserOperation's verificationGasLimit used during gas estimation simulations",
|
|
236
|
-
type: "string",
|
|
237
|
-
require: true,
|
|
238
|
-
default: "10000000"
|
|
239
|
-
},
|
|
240
|
-
"simulation-paymaster-verification-gas-limit": {
|
|
241
|
-
description: "UserOperation's paymasterVerificationGasLimit used during gas estimation simulations",
|
|
242
|
-
type: "string",
|
|
243
|
-
require: true,
|
|
244
|
-
default: "5000000"
|
|
245
|
-
},
|
|
246
|
-
"simulation-paymaster-post-op-gas-limit": {
|
|
247
|
-
description: "UserOperation's paymasterPostOpGasLimit used during gas estimation simulations",
|
|
248
|
-
type: "string",
|
|
249
|
-
require: true,
|
|
250
|
-
default: "2000000"
|
|
251
|
-
},
|
|
252
|
-
"eth-call-sender-address": {
|
|
253
|
-
description: "For permissioned chains, eth_call simulations require a whitelisted address as the sender",
|
|
254
|
-
type: "string"
|
|
255
|
-
},
|
|
256
|
-
"split-simulation-calls": {
|
|
257
|
-
description: "Should the bundler split estimation simulations into smaller calls.",
|
|
258
|
-
type: "boolean",
|
|
259
|
-
default: false
|
|
260
|
-
}
|
|
261
|
-
};
|
|
262
|
-
exports.executorOptions = {
|
|
263
|
-
"enable-fastlane": {
|
|
264
|
-
description: "Enable bundling v0.6 userOperations using the pfl_sendRawTransactionConditional endpoint",
|
|
265
|
-
type: "boolean",
|
|
266
|
-
default: false
|
|
267
|
-
},
|
|
268
|
-
"resubmit-stuck-timeout": {
|
|
269
|
-
description: "Amount of time before retrying a failed userOperation (in ms)",
|
|
270
|
-
type: "number",
|
|
271
|
-
require: true,
|
|
272
|
-
default: 10_000
|
|
273
|
-
},
|
|
274
|
-
"aa95-gas-multiplier": {
|
|
275
|
-
description: "Amount to multiply the current gas limit by if the bundling tx fails due to AA95",
|
|
276
|
-
type: "string",
|
|
277
|
-
require: false,
|
|
278
|
-
default: "125"
|
|
279
|
-
},
|
|
280
|
-
"refilling-wallets": {
|
|
281
|
-
description: "Enable refilling wallets",
|
|
282
|
-
type: "boolean",
|
|
283
|
-
require: false,
|
|
284
|
-
default: true
|
|
285
|
-
},
|
|
286
|
-
"executor-gas-multiplier": {
|
|
287
|
-
description: "Amount to scale the gas estimations used for bundling",
|
|
288
|
-
type: "string",
|
|
289
|
-
default: "100"
|
|
290
|
-
},
|
|
291
|
-
"no-profit-bundling": {
|
|
292
|
-
description: "Bundle tx such that all beneficiary fees are spent on gas fees",
|
|
293
|
-
type: "boolean",
|
|
294
|
-
default: false
|
|
295
|
-
},
|
|
296
|
-
"refill-helper-contract": {
|
|
297
|
-
description: "Address of the Executor refill helper contract",
|
|
298
|
-
type: "string",
|
|
299
|
-
require: false
|
|
300
|
-
},
|
|
301
|
-
"executor-private-keys": {
|
|
302
|
-
description: "Private keys of the executor accounts split by commas",
|
|
303
|
-
type: "string",
|
|
304
|
-
alias: "x",
|
|
305
|
-
require: true
|
|
306
|
-
},
|
|
307
|
-
"utility-private-key": {
|
|
308
|
-
description: "Private key of the utility account",
|
|
309
|
-
type: "string",
|
|
310
|
-
alias: "u",
|
|
311
|
-
require: false
|
|
312
|
-
},
|
|
313
|
-
"utility-wallet-monitor": {
|
|
314
|
-
description: "Either to enable utility wallet monitor or not",
|
|
315
|
-
type: "boolean",
|
|
316
|
-
default: true
|
|
317
|
-
},
|
|
318
|
-
"utility-wallet-monitor-interval": {
|
|
319
|
-
description: "Interval for checking utility wallet balance",
|
|
320
|
-
type: "number",
|
|
321
|
-
default: 15 * 1000 // 15 seconds
|
|
322
|
-
},
|
|
323
|
-
"max-executors": {
|
|
324
|
-
description: "Maximum number of executor accounts to use from the list of executor private keys",
|
|
325
|
-
type: "number",
|
|
326
|
-
require: false
|
|
327
|
-
},
|
|
328
|
-
"min-executor-balance": {
|
|
329
|
-
description: "Minimum balance required for each executor account (below which the utility account will refill)",
|
|
330
|
-
type: "string"
|
|
331
|
-
},
|
|
332
|
-
"executor-refill-interval": {
|
|
333
|
-
description: "Interval to refill the signer balance (seconds)",
|
|
334
|
-
type: "number",
|
|
335
|
-
require: true,
|
|
336
|
-
default: 60 * 20
|
|
337
|
-
}
|
|
338
|
-
};
|
|
339
|
-
exports.compatibilityOptions = {
|
|
340
|
-
"chain-type": {
|
|
341
|
-
description: "Indicates what type of chain the bundler is running on",
|
|
342
|
-
type: "string",
|
|
343
|
-
choices: ["default", "op-stack", "arbitrum", "hedera", "mantle"],
|
|
344
|
-
default: "default"
|
|
345
|
-
},
|
|
346
|
-
"legacy-transactions": {
|
|
347
|
-
description: "Send a legacy transactions instead of an EIP-1559 transactions",
|
|
348
|
-
type: "boolean",
|
|
349
|
-
require: true,
|
|
350
|
-
default: false
|
|
351
|
-
},
|
|
352
|
-
"balance-override": {
|
|
353
|
-
description: "Override the sender native token balance during estimation",
|
|
354
|
-
type: "boolean",
|
|
355
|
-
require: true,
|
|
356
|
-
default: true
|
|
357
|
-
},
|
|
358
|
-
"flush-stuck-transactions-during-startup": {
|
|
359
|
-
description: "Flush stuck transactions with old nonces during bundler startup",
|
|
360
|
-
type: "boolean",
|
|
361
|
-
require: true,
|
|
362
|
-
default: false
|
|
363
|
-
},
|
|
364
|
-
"fixed-gas-limit-for-estimation": {
|
|
365
|
-
description: "Use a fixed value for gas limits during bundle transaction gas limit estimations",
|
|
366
|
-
type: "string",
|
|
367
|
-
require: false
|
|
368
|
-
},
|
|
369
|
-
"api-version": {
|
|
370
|
-
description: "API version (used for internal Pimlico versioning compatibility)",
|
|
371
|
-
type: "string",
|
|
372
|
-
require: true,
|
|
373
|
-
default: "v1,v2"
|
|
374
|
-
},
|
|
375
|
-
"is-gas-free-chain": {
|
|
376
|
-
description: "Indicates if the chain uses 0 for maxFee/maxPriorityFee",
|
|
377
|
-
type: "boolean",
|
|
378
|
-
default: false
|
|
379
|
-
},
|
|
380
|
-
"default-api-version": {
|
|
381
|
-
description: "Default API version",
|
|
382
|
-
type: "string",
|
|
383
|
-
require: false,
|
|
384
|
-
default: "v1"
|
|
385
|
-
}
|
|
386
|
-
};
|
|
387
|
-
exports.serverOptions = {
|
|
388
|
-
port: {
|
|
389
|
-
description: "Port to listen on",
|
|
390
|
-
type: "number",
|
|
391
|
-
require: true,
|
|
392
|
-
default: 3000
|
|
393
|
-
},
|
|
394
|
-
timeout: {
|
|
395
|
-
description: "Timeout for incoming requests (in ms)",
|
|
396
|
-
type: "number",
|
|
397
|
-
require: false
|
|
398
|
-
},
|
|
399
|
-
"websocket-max-payload-size": {
|
|
400
|
-
description: "Maximum payload size for websocket messages in bytes (default to 1MB)",
|
|
401
|
-
type: "number",
|
|
402
|
-
require: false
|
|
403
|
-
},
|
|
404
|
-
websocket: {
|
|
405
|
-
description: "Enable websocket server",
|
|
406
|
-
type: "boolean",
|
|
407
|
-
require: false
|
|
408
|
-
}
|
|
409
|
-
};
|
|
410
|
-
exports.rpcOptions = {
|
|
411
|
-
"rpc-url": {
|
|
412
|
-
description: "RPC url to connect to",
|
|
413
|
-
type: "string",
|
|
414
|
-
alias: "r",
|
|
415
|
-
require: true
|
|
416
|
-
},
|
|
417
|
-
"send-transaction-rpc-url": {
|
|
418
|
-
description: "RPC url to send transactions to (e.g. flashbots relay)",
|
|
419
|
-
type: "string",
|
|
420
|
-
require: false
|
|
421
|
-
},
|
|
422
|
-
"polling-interval": {
|
|
423
|
-
description: "Polling interval for querying for new blocks (ms)",
|
|
424
|
-
type: "number",
|
|
425
|
-
require: true,
|
|
426
|
-
default: 1000
|
|
427
|
-
},
|
|
428
|
-
"max-block-range": {
|
|
429
|
-
description: "Max block range for getLogs calls",
|
|
430
|
-
type: "number",
|
|
431
|
-
default: 2000,
|
|
432
|
-
require: false
|
|
433
|
-
},
|
|
434
|
-
"block-tag-support": {
|
|
435
|
-
description: "Disable sending block tag when sending eth_estimateGas call",
|
|
436
|
-
type: "boolean",
|
|
437
|
-
require: false,
|
|
438
|
-
default: true
|
|
439
|
-
},
|
|
440
|
-
"code-override-support": {
|
|
441
|
-
description: "Does the RPC support code overrides",
|
|
442
|
-
type: "boolean",
|
|
443
|
-
require: false,
|
|
444
|
-
default: true
|
|
445
|
-
}
|
|
446
|
-
};
|
|
447
|
-
exports.logOptions = {
|
|
448
|
-
"redis-queue-endpoint": {
|
|
449
|
-
description: "redis queue endpoint",
|
|
450
|
-
type: "string",
|
|
451
|
-
require: false
|
|
452
|
-
},
|
|
453
|
-
"redis-event-manager-queue-name": {
|
|
454
|
-
description: "redis event manager queue name",
|
|
455
|
-
type: "string",
|
|
456
|
-
require: false,
|
|
457
|
-
default: "UserOperationStatusBullEventsQueue"
|
|
458
|
-
},
|
|
459
|
-
json: {
|
|
460
|
-
description: "Log in JSON format",
|
|
461
|
-
type: "boolean",
|
|
462
|
-
require: true,
|
|
463
|
-
default: false
|
|
464
|
-
},
|
|
465
|
-
"log-level": {
|
|
466
|
-
description: "Default log level",
|
|
467
|
-
type: "string",
|
|
468
|
-
require: true,
|
|
469
|
-
choices: ["trace", "debug", "info", "warn", "error", "fatal"],
|
|
470
|
-
default: "info"
|
|
471
|
-
},
|
|
472
|
-
"public-client-log-level": {
|
|
473
|
-
description: "Log level for the publicClient module",
|
|
474
|
-
type: "string",
|
|
475
|
-
choices: ["trace", "debug", "info", "warn", "error", "fatal"],
|
|
476
|
-
require: false
|
|
477
|
-
},
|
|
478
|
-
"wallet-client-log-level": {
|
|
479
|
-
description: "Log level for the walletClient module",
|
|
480
|
-
type: "string",
|
|
481
|
-
choices: ["trace", "debug", "info", "warn", "error", "fatal"],
|
|
482
|
-
require: false
|
|
483
|
-
},
|
|
484
|
-
"rpc-log-level": {
|
|
485
|
-
description: "Log level for the rpc module",
|
|
486
|
-
type: "string",
|
|
487
|
-
choices: ["trace", "debug", "info", "warn", "error", "fatal"],
|
|
488
|
-
require: false
|
|
489
|
-
},
|
|
490
|
-
"mempool-log-level": {
|
|
491
|
-
description: "Log level for the mempool module",
|
|
492
|
-
type: "string",
|
|
493
|
-
choices: ["trace", "debug", "info", "warn", "error", "fatal"],
|
|
494
|
-
require: false
|
|
495
|
-
},
|
|
496
|
-
"executor-log-level": {
|
|
497
|
-
description: "Log level for the executor module",
|
|
498
|
-
type: "string",
|
|
499
|
-
choices: ["trace", "debug", "info", "warn", "error", "fatal"],
|
|
500
|
-
require: false
|
|
501
|
-
},
|
|
502
|
-
"reputation-manager-log-level": {
|
|
503
|
-
description: "Log level for the executor module",
|
|
504
|
-
type: "string",
|
|
505
|
-
choices: ["trace", "debug", "info", "warn", "error", "fatal"],
|
|
506
|
-
require: false
|
|
507
|
-
},
|
|
508
|
-
"nonce-queuer-log-level": {
|
|
509
|
-
description: "Log level for the executor module",
|
|
510
|
-
type: "string",
|
|
511
|
-
choices: ["trace", "debug", "info", "warn", "error", "fatal"],
|
|
512
|
-
require: false
|
|
513
|
-
}
|
|
514
|
-
};
|
|
515
|
-
exports.debugOptions = {
|
|
516
|
-
"bundle-mode": {
|
|
517
|
-
description: "Set if the bundler bundle user operations automatically or only when calling debug_bundler_sendBundleNow.",
|
|
518
|
-
type: "string",
|
|
519
|
-
require: true,
|
|
520
|
-
default: "auto",
|
|
521
|
-
choices: ["auto", "manual"]
|
|
522
|
-
},
|
|
523
|
-
"enable-debug-endpoints": {
|
|
524
|
-
description: "Enable debug endpoints",
|
|
525
|
-
type: "boolean",
|
|
526
|
-
require: true,
|
|
527
|
-
default: false
|
|
528
|
-
},
|
|
529
|
-
"expiration-check": {
|
|
530
|
-
description: "Should the node make expiration checks",
|
|
531
|
-
type: "boolean",
|
|
532
|
-
require: true,
|
|
533
|
-
default: true
|
|
534
|
-
},
|
|
535
|
-
"dangerous-skip-user-operation-validation": {
|
|
536
|
-
description: "Skip user operation validation, use with caution",
|
|
537
|
-
type: "boolean",
|
|
538
|
-
require: true,
|
|
539
|
-
default: false
|
|
540
|
-
},
|
|
541
|
-
"deploy-simulations-contract": {
|
|
542
|
-
description: "Should the bundler deploy the simulations contract on startup",
|
|
543
|
-
type: "boolean",
|
|
544
|
-
require: true,
|
|
545
|
-
default: true
|
|
546
|
-
}
|
|
547
|
-
};
|
|
548
|
-
exports.bundlerCommand = {
|
|
549
|
-
command: "$0",
|
|
550
|
-
describe: "Starts the bundler",
|
|
551
|
-
handler: handler_1.bundlerHandler
|
|
552
|
-
};
|
|
553
|
-
//# sourceMappingURL=options.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"options.js","sourceRoot":"","sources":["../../../cli/config/options.ts"],"names":[],"mappings":";;;AAAA,wCAA2C;AAe9B,QAAA,cAAc,GAAyC;IAChE,WAAW,EAAE;QACT,WAAW,EAAE,+CAA+C;QAC5D,I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Q,CAAC;KAC9B;IACD,wBAAwB,EAAE;QACtB,WAAW,EAAE,wBAAwB;QACrC,IAAI,EAAE,SAAS;QACf,OAAO,EAAE,IAAI;QACb,OAAO,EAAE,KAAK;KACjB;IACD,kBAAkB,EAAE;QAChB,WAAW,EAAE,wCAAwC;QACrD,IAAI,EAAE,SAAS;QACf,OAAO,EAAE,IAAI;QACb,OAAO,EAAE,IAAI;KAChB;IACD,0CAA0C,EAAE;QACxC,WAAW,EAAE,kDAAkD;QAC/D,IAAI,EAAE,SAAS;QACf,OAAO,EAAE,IAAI;QACb,OAAO,EAAE,KAAK;KACjB;IACD,6BAA6B,EAAE;QAC3B,WAAW,EACP,+DAA+D;QACnE,IAAI,EAAE,SAAS;QACf,OAAO,EAAE,IAAI;QACb,OAAO,EAAE,IAAI;KAChB;CACJ,CAAA;AAEY,QAAA,cAAc,GAA8B;IACrD,OAAO,EAAE,IAAI;IACb,QAAQ,EAAE,oBAAoB;IAC9B,OAAO,EAAE,wBAAc;CAC1B,CAAA"}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import type { Logger } from "../utils/index.js";
|
|
2
|
-
import { type HttpTransport, type HttpTransportConfig } from "viem";
|
|
3
|
-
export type RpcRequest = {
|
|
4
|
-
jsonrpc?: "2.0" | undefined;
|
|
5
|
-
method: string;
|
|
6
|
-
params?: any | undefined;
|
|
7
|
-
id?: number | undefined;
|
|
8
|
-
};
|
|
9
|
-
export declare function customTransport(
|
|
10
|
-
/** URL of the JSON-RPC API. Defaults to the chain's public RPC URL. */
|
|
11
|
-
url_: string, config: HttpTransportConfig & {
|
|
12
|
-
logger: Logger;
|
|
13
|
-
}): HttpTransport;
|
|
14
|
-
//# sourceMappingURL=customTransport.d.ts.map
|
|
@@ -1,94 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.customTransport = void 0;
|
|
4
|
-
const viem_1 = require("viem");
|
|
5
|
-
const utils_1 = require("viem/utils");
|
|
6
|
-
const contracts_1 = require("../types/contracts/index.js");
|
|
7
|
-
const EXECUTION_RESULT_SELECTOR = (0, viem_1.toFunctionSelector)((0, utils_1.formatAbiItem)((0, viem_1.getAbiItem)({
|
|
8
|
-
abi: contracts_1.EntryPointV06Abi,
|
|
9
|
-
name: "ExecutionResult"
|
|
10
|
-
})));
|
|
11
|
-
const VALIDATION_RESULT_SELECTOR = (0, viem_1.toFunctionSelector)((0, utils_1.formatAbiItem)((0, viem_1.getAbiItem)({
|
|
12
|
-
abi: contracts_1.EntryPointV06Abi,
|
|
13
|
-
name: "ValidationResult"
|
|
14
|
-
})));
|
|
15
|
-
const FAILED_OP_SELECTOR = (0, viem_1.toFunctionSelector)((0, utils_1.formatAbiItem)((0, viem_1.getAbiItem)({
|
|
16
|
-
abi: contracts_1.EntryPointV06Abi,
|
|
17
|
-
name: "FailedOp"
|
|
18
|
-
})));
|
|
19
|
-
// custom selector for when code overrides are used.
|
|
20
|
-
const CALLPHASE_REVERTED_SELECTOR = (0, viem_1.toFunctionSelector)((0, utils_1.formatAbiItem)((0, viem_1.getAbiItem)({
|
|
21
|
-
abi: contracts_1.EntryPointV06SimulationsAbi,
|
|
22
|
-
name: "CallPhaseReverted"
|
|
23
|
-
})));
|
|
24
|
-
function customTransport(
|
|
25
|
-
/** URL of the JSON-RPC API. Defaults to the chain's public RPC URL. */
|
|
26
|
-
url_, config) {
|
|
27
|
-
const { fetchOptions, key = "http", name = "HTTP JSON-RPC", retryDelay, logger } = config;
|
|
28
|
-
return ({ chain, retryCount: retryCount_, timeout: timeout_ }) => {
|
|
29
|
-
const retryCount = config.retryCount ?? retryCount_;
|
|
30
|
-
const timeout = timeout_ ?? config.timeout ?? 10_000;
|
|
31
|
-
const url = url_ || chain?.rpcUrls.default.http[0];
|
|
32
|
-
if (!url) {
|
|
33
|
-
throw new viem_1.UrlRequiredError();
|
|
34
|
-
}
|
|
35
|
-
return (0, viem_1.createTransport)({
|
|
36
|
-
key,
|
|
37
|
-
name,
|
|
38
|
-
async request({ method, params }) {
|
|
39
|
-
const body = { method, params };
|
|
40
|
-
const fn = async (body) => {
|
|
41
|
-
return [
|
|
42
|
-
await utils_1.rpc.http(url, {
|
|
43
|
-
body,
|
|
44
|
-
fetchOptions,
|
|
45
|
-
timeout
|
|
46
|
-
})
|
|
47
|
-
];
|
|
48
|
-
};
|
|
49
|
-
const [{ error, result }] = await fn(body);
|
|
50
|
-
if (error) {
|
|
51
|
-
let loggerFn = logger.error.bind(logger);
|
|
52
|
-
if ((0, viem_1.isHex)(error?.data) && error?.data?.length > 10) {
|
|
53
|
-
const errorSelector = (0, viem_1.slice)(error?.data, 0, 4);
|
|
54
|
-
if ([
|
|
55
|
-
EXECUTION_RESULT_SELECTOR,
|
|
56
|
-
VALIDATION_RESULT_SELECTOR,
|
|
57
|
-
FAILED_OP_SELECTOR,
|
|
58
|
-
CALLPHASE_REVERTED_SELECTOR
|
|
59
|
-
].includes(errorSelector)) {
|
|
60
|
-
loggerFn = logger.info.bind(logger);
|
|
61
|
-
}
|
|
62
|
-
}
|
|
63
|
-
loggerFn({
|
|
64
|
-
err: error,
|
|
65
|
-
body
|
|
66
|
-
}, "received error response");
|
|
67
|
-
throw new viem_1.RpcRequestError({
|
|
68
|
-
body,
|
|
69
|
-
error: {
|
|
70
|
-
...error,
|
|
71
|
-
// 24 Aug 2024, etherlink throws -32003 error code for eth_call
|
|
72
|
-
code: method === "eth_call" &&
|
|
73
|
-
error.code === -32003
|
|
74
|
-
? 3
|
|
75
|
-
: error.code
|
|
76
|
-
},
|
|
77
|
-
url: url
|
|
78
|
-
});
|
|
79
|
-
}
|
|
80
|
-
logger.info({ body, result }, "received response");
|
|
81
|
-
return result;
|
|
82
|
-
},
|
|
83
|
-
retryCount,
|
|
84
|
-
retryDelay,
|
|
85
|
-
timeout,
|
|
86
|
-
type: "http"
|
|
87
|
-
}, {
|
|
88
|
-
fetchOptions,
|
|
89
|
-
url
|
|
90
|
-
});
|
|
91
|
-
};
|
|
92
|
-
}
|
|
93
|
-
exports.customTransport = customTransport;
|
|
94
|
-
//# sourceMappingURL=customTransport.js.map
|