@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
package/lib/cli/setupServer.js
DELETED
|
@@ -1,266 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.setupServer = void 0;
|
|
4
|
-
const executor_1 = require("../executor/index.js");
|
|
5
|
-
const handlers_1 = require("../handlers/index.js");
|
|
6
|
-
const mempool_1 = require("../mempool/index.js");
|
|
7
|
-
const rpc_1 = require("../rpc/index.js");
|
|
8
|
-
const validateAndRefill_1 = require("../executor/senderManager/validateAndRefill.js");
|
|
9
|
-
const flushOnStartUp_1 = require("../executor/senderManager/flushOnStartUp.js");
|
|
10
|
-
const createMempoolStore_1 = require("../store/createMempoolStore.js");
|
|
11
|
-
const getReputationManager = (config) => {
|
|
12
|
-
if (config.safeMode) {
|
|
13
|
-
return new mempool_1.ReputationManager(config);
|
|
14
|
-
}
|
|
15
|
-
return new mempool_1.NullReputationManager();
|
|
16
|
-
};
|
|
17
|
-
const getValidator = ({ config, senderManager, metrics, gasPriceManager }) => {
|
|
18
|
-
if (config.safeMode) {
|
|
19
|
-
return new rpc_1.SafeValidator({
|
|
20
|
-
config,
|
|
21
|
-
senderManager,
|
|
22
|
-
metrics,
|
|
23
|
-
gasPriceManager
|
|
24
|
-
});
|
|
25
|
-
}
|
|
26
|
-
return new rpc_1.UnsafeValidator({
|
|
27
|
-
config,
|
|
28
|
-
metrics,
|
|
29
|
-
gasPriceManager
|
|
30
|
-
});
|
|
31
|
-
};
|
|
32
|
-
const getMonitor = ({ config }) => {
|
|
33
|
-
return new mempool_1.Monitor({ config });
|
|
34
|
-
};
|
|
35
|
-
const getMempool = ({ config, monitor, reputationManager, validator, metrics, eventManager }) => {
|
|
36
|
-
return new mempool_1.Mempool({
|
|
37
|
-
config,
|
|
38
|
-
monitor,
|
|
39
|
-
store: (0, createMempoolStore_1.createMempoolStore)({ config, metrics }),
|
|
40
|
-
reputationManager,
|
|
41
|
-
validator,
|
|
42
|
-
eventManager
|
|
43
|
-
});
|
|
44
|
-
};
|
|
45
|
-
const getEventManager = ({ config, metrics }) => {
|
|
46
|
-
return new handlers_1.EventManager({ config, metrics });
|
|
47
|
-
};
|
|
48
|
-
const getExecutor = ({ mempool, config, reputationManager, metrics, gasPriceManager, eventManager }) => {
|
|
49
|
-
return new executor_1.Executor({
|
|
50
|
-
mempool,
|
|
51
|
-
config,
|
|
52
|
-
reputationManager,
|
|
53
|
-
metrics,
|
|
54
|
-
gasPriceManager,
|
|
55
|
-
eventManager
|
|
56
|
-
});
|
|
57
|
-
};
|
|
58
|
-
const getExecutorManager = ({ config, executor, mempool, monitor, senderManager, reputationManager, metrics, gasPriceManager, eventManager }) => {
|
|
59
|
-
return new executor_1.ExecutorManager({
|
|
60
|
-
config,
|
|
61
|
-
executor,
|
|
62
|
-
mempool,
|
|
63
|
-
monitor,
|
|
64
|
-
senderManager,
|
|
65
|
-
reputationManager,
|
|
66
|
-
metrics,
|
|
67
|
-
gasPriceManager,
|
|
68
|
-
eventManager
|
|
69
|
-
});
|
|
70
|
-
};
|
|
71
|
-
const getRpcHandler = ({ config, validator, mempool, executor, monitor, executorManager, reputationManager, metrics, gasPriceManager, eventManager }) => {
|
|
72
|
-
return new rpc_1.RpcHandler({
|
|
73
|
-
config,
|
|
74
|
-
validator,
|
|
75
|
-
mempool,
|
|
76
|
-
executor,
|
|
77
|
-
monitor,
|
|
78
|
-
executorManager,
|
|
79
|
-
reputationManager,
|
|
80
|
-
metrics,
|
|
81
|
-
eventManager,
|
|
82
|
-
gasPriceManager
|
|
83
|
-
});
|
|
84
|
-
};
|
|
85
|
-
const getServer = ({ config, rpcEndpoint, registry, metrics }) => {
|
|
86
|
-
return new rpc_1.Server({
|
|
87
|
-
config,
|
|
88
|
-
rpcEndpoint,
|
|
89
|
-
registry,
|
|
90
|
-
metrics
|
|
91
|
-
});
|
|
92
|
-
};
|
|
93
|
-
const setupServer = async ({ config, registry, metrics, senderManager, gasPriceManager }) => {
|
|
94
|
-
const validator = getValidator({
|
|
95
|
-
config,
|
|
96
|
-
senderManager,
|
|
97
|
-
metrics,
|
|
98
|
-
gasPriceManager
|
|
99
|
-
});
|
|
100
|
-
const reputationManager = getReputationManager(config);
|
|
101
|
-
const eventManager = getEventManager({
|
|
102
|
-
config,
|
|
103
|
-
metrics
|
|
104
|
-
});
|
|
105
|
-
// When running with horizontal scaling enabled, only one instance should have this flag enabled,
|
|
106
|
-
// otherwise all instances will try to refill wallets.
|
|
107
|
-
if (config.refillingWallets) {
|
|
108
|
-
const rootLogger = config.getLogger({ module: "root" }, { level: config.logLevel });
|
|
109
|
-
try {
|
|
110
|
-
await (0, validateAndRefill_1.validateAndRefillWallets)({
|
|
111
|
-
metrics,
|
|
112
|
-
config,
|
|
113
|
-
senderManager,
|
|
114
|
-
gasPriceManager
|
|
115
|
-
});
|
|
116
|
-
}
|
|
117
|
-
catch (error) {
|
|
118
|
-
rootLogger.error({ error: error instanceof Error ? error.stack : error }, "Error during initial wallet validation and refill");
|
|
119
|
-
}
|
|
120
|
-
setInterval(async () => {
|
|
121
|
-
try {
|
|
122
|
-
await (0, validateAndRefill_1.validateAndRefillWallets)({
|
|
123
|
-
metrics,
|
|
124
|
-
config,
|
|
125
|
-
senderManager,
|
|
126
|
-
gasPriceManager
|
|
127
|
-
});
|
|
128
|
-
}
|
|
129
|
-
catch (error) {
|
|
130
|
-
rootLogger.error({ error: error instanceof Error ? error.stack : error }, "Error during scheduled wallet validation and refill");
|
|
131
|
-
}
|
|
132
|
-
}, config.executorRefillInterval * 1000);
|
|
133
|
-
}
|
|
134
|
-
const monitor = getMonitor({ config });
|
|
135
|
-
const mempool = getMempool({
|
|
136
|
-
config,
|
|
137
|
-
monitor,
|
|
138
|
-
reputationManager,
|
|
139
|
-
validator,
|
|
140
|
-
metrics,
|
|
141
|
-
eventManager
|
|
142
|
-
});
|
|
143
|
-
const executor = getExecutor({
|
|
144
|
-
mempool,
|
|
145
|
-
config,
|
|
146
|
-
reputationManager,
|
|
147
|
-
metrics,
|
|
148
|
-
gasPriceManager,
|
|
149
|
-
eventManager
|
|
150
|
-
});
|
|
151
|
-
const executorManager = getExecutorManager({
|
|
152
|
-
config,
|
|
153
|
-
executor,
|
|
154
|
-
mempool,
|
|
155
|
-
monitor,
|
|
156
|
-
senderManager,
|
|
157
|
-
reputationManager,
|
|
158
|
-
metrics,
|
|
159
|
-
gasPriceManager,
|
|
160
|
-
eventManager
|
|
161
|
-
});
|
|
162
|
-
const rpcEndpoint = getRpcHandler({
|
|
163
|
-
config,
|
|
164
|
-
validator,
|
|
165
|
-
mempool,
|
|
166
|
-
executor,
|
|
167
|
-
monitor,
|
|
168
|
-
executorManager,
|
|
169
|
-
reputationManager,
|
|
170
|
-
metrics,
|
|
171
|
-
gasPriceManager,
|
|
172
|
-
eventManager
|
|
173
|
-
});
|
|
174
|
-
if (config.flushStuckTransactionsDuringStartup) {
|
|
175
|
-
(0, flushOnStartUp_1.flushOnStartUp)({
|
|
176
|
-
senderManager,
|
|
177
|
-
gasPriceManager,
|
|
178
|
-
config
|
|
179
|
-
});
|
|
180
|
-
}
|
|
181
|
-
const rootLogger = config.getLogger({ module: "root" }, { level: config.logLevel });
|
|
182
|
-
const walletsLength = senderManager.getAllWallets().length;
|
|
183
|
-
rootLogger.info(`Initialized ${walletsLength} executor wallets`);
|
|
184
|
-
const server = getServer({
|
|
185
|
-
config,
|
|
186
|
-
rpcEndpoint,
|
|
187
|
-
registry,
|
|
188
|
-
metrics
|
|
189
|
-
});
|
|
190
|
-
server.start();
|
|
191
|
-
const gracefulShutdown = async (signal) => {
|
|
192
|
-
rootLogger.info(`${signal} received, shutting down`);
|
|
193
|
-
await server.stop();
|
|
194
|
-
rootLogger.info("server stopped");
|
|
195
|
-
for (const entryPoint of config.entrypoints) {
|
|
196
|
-
const outstanding = [...(await mempool.dumpOutstanding(entryPoint))];
|
|
197
|
-
const submitted = [...(await mempool.dumpSubmittedOps(entryPoint))];
|
|
198
|
-
const processing = [...(await mempool.dumpProcessing(entryPoint))];
|
|
199
|
-
await executorManager.dropUserOps(entryPoint, [
|
|
200
|
-
...outstanding.map((userOp) => ({
|
|
201
|
-
...userOp,
|
|
202
|
-
reason: "shutdown"
|
|
203
|
-
})),
|
|
204
|
-
...submitted.map((userOp) => ({
|
|
205
|
-
...userOp,
|
|
206
|
-
reason: "shutdown"
|
|
207
|
-
})),
|
|
208
|
-
...processing.map((userOp) => ({
|
|
209
|
-
...userOp,
|
|
210
|
-
reason: "shutdown"
|
|
211
|
-
}))
|
|
212
|
-
]);
|
|
213
|
-
rootLogger.info({
|
|
214
|
-
outstanding: outstanding.length,
|
|
215
|
-
submitted: submitted.length,
|
|
216
|
-
processing: processing.length
|
|
217
|
-
}, "dumping mempool before shutdown");
|
|
218
|
-
}
|
|
219
|
-
// mark all executors as processed
|
|
220
|
-
for (const account of senderManager.getActiveWallets()) {
|
|
221
|
-
await senderManager.markWalletProcessed(account);
|
|
222
|
-
}
|
|
223
|
-
process.exit(0);
|
|
224
|
-
};
|
|
225
|
-
const signals = ["SIGINT", "SIGTERM"];
|
|
226
|
-
// Handle regular termination signals
|
|
227
|
-
signals.forEach((signal) => {
|
|
228
|
-
process.on(signal, async () => {
|
|
229
|
-
try {
|
|
230
|
-
await gracefulShutdown(signal);
|
|
231
|
-
}
|
|
232
|
-
catch (error) {
|
|
233
|
-
rootLogger.error({ error: error instanceof Error ? error.stack : error }, `Error during ${signal} shutdown`);
|
|
234
|
-
process.exit(1);
|
|
235
|
-
}
|
|
236
|
-
});
|
|
237
|
-
});
|
|
238
|
-
// Handle unhandled rejections with the actual rejection reason
|
|
239
|
-
process.on("unhandledRejection", async (err) => {
|
|
240
|
-
rootLogger.error({
|
|
241
|
-
err
|
|
242
|
-
}, `Unhandled Promise Rejection`);
|
|
243
|
-
try {
|
|
244
|
-
await gracefulShutdown("unhandledRejection");
|
|
245
|
-
}
|
|
246
|
-
catch (err) {
|
|
247
|
-
rootLogger.error({ err }, `Error during unhandledRejection shutdown`);
|
|
248
|
-
process.exit(1);
|
|
249
|
-
}
|
|
250
|
-
});
|
|
251
|
-
// Handle uncaught exceptions with the actual error
|
|
252
|
-
process.on("uncaughtException", async (err) => {
|
|
253
|
-
rootLogger.error({ err }, `Uncaught Exception`);
|
|
254
|
-
try {
|
|
255
|
-
await gracefulShutdown("uncaughtException");
|
|
256
|
-
}
|
|
257
|
-
catch (err) {
|
|
258
|
-
rootLogger.error({
|
|
259
|
-
err
|
|
260
|
-
}, `Error during uncaughtException shutdown`);
|
|
261
|
-
process.exit(1);
|
|
262
|
-
}
|
|
263
|
-
});
|
|
264
|
-
};
|
|
265
|
-
exports.setupServer = setupServer;
|
|
266
|
-
//# sourceMappingURL=setupServer.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"setupServer.js","sourceRoot":"","sources":["../../cli/setupServer.ts"],"names":[],"mappings":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mBAAmB,EAAE,KAAK,EAAE,GAAG,EAAE,EAAE;QAC1C,UAAU,CAAC,KAAK,CAAC,EAAE,GAAG,EAAE,EAAE,oBAAoB,CAAC,CAAA;QAC/C,IAAI,CAAC;YACD,MAAM,gBAAgB,CAAC,mBAAmB,CAAC,CAAA;QAC/C,CAAC;QAAC,OAAO,GAAG,EAAE,CAAC;YACX,UAAU,CAAC,KAAK,CACZ;gBACI,GAAG;aACN,EACD,yCAAyC,CAC5C,CAAA;YACD,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAA;QACnB,CAAC;IACL,CAAC,CAAC,CAAA;AACN,CAAC,CAAA;AAlOY,QAAA,WAAW,eAkOvB"}
|
package/lib/cli/util.d.ts
DELETED
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import type { Argv, Options } from "yargs";
|
|
2
|
-
export type CliCommandOptions<OwnArgs> = Required<{
|
|
3
|
-
[key in keyof OwnArgs]: Options;
|
|
4
|
-
}>;
|
|
5
|
-
export interface CliCommand<OwnArgs = Record<never, never>, ParentArgs = Record<never, never>, R = any> {
|
|
6
|
-
command: string;
|
|
7
|
-
describe: string;
|
|
8
|
-
examples?: {
|
|
9
|
-
command: string;
|
|
10
|
-
description: string;
|
|
11
|
-
}[];
|
|
12
|
-
options?: CliCommandOptions<OwnArgs>;
|
|
13
|
-
subcommands?: CliCommand<any, OwnArgs & ParentArgs>[];
|
|
14
|
-
handler?: (args: OwnArgs & ParentArgs) => Promise<R>;
|
|
15
|
-
}
|
|
16
|
-
/**
|
|
17
|
-
* Register a CliCommand type to yargs. Recursively registers subcommands too.
|
|
18
|
-
* @param yargs
|
|
19
|
-
* @param cliCommand
|
|
20
|
-
*/
|
|
21
|
-
export declare function registerCommandToYargs(yargs: Argv<any>, cliCommand: CliCommand<any, any>): void;
|
|
22
|
-
//# sourceMappingURL=util.d.ts.map
|
package/lib/cli/util.js
DELETED
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.registerCommandToYargs = void 0;
|
|
4
|
-
/**
|
|
5
|
-
* Register a CliCommand type to yargs. Recursively registers subcommands too.
|
|
6
|
-
* @param yargs
|
|
7
|
-
* @param cliCommand
|
|
8
|
-
*/
|
|
9
|
-
function registerCommandToYargs(
|
|
10
|
-
// biome-ignore lint/suspicious/noExplicitAny: it's a generic type
|
|
11
|
-
yargs,
|
|
12
|
-
// biome-ignore lint/suspicious/noExplicitAny: it's a generic type
|
|
13
|
-
cliCommand) {
|
|
14
|
-
yargs.command({
|
|
15
|
-
command: cliCommand.command,
|
|
16
|
-
describe: cliCommand.describe,
|
|
17
|
-
builder: (yargsBuilder) => {
|
|
18
|
-
yargsBuilder.options(cliCommand.options || {});
|
|
19
|
-
for (const subcommand of cliCommand.subcommands || []) {
|
|
20
|
-
registerCommandToYargs(yargsBuilder, subcommand);
|
|
21
|
-
}
|
|
22
|
-
if (cliCommand.examples) {
|
|
23
|
-
for (const example of cliCommand.examples) {
|
|
24
|
-
yargsBuilder.example(`$0 ${example.command}`, example.description);
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
return yargs;
|
|
28
|
-
},
|
|
29
|
-
// eslint-disable-next-line @typescript-eslint/no-empty-function
|
|
30
|
-
handler: cliCommand.handler || function emptyHandler() { }
|
|
31
|
-
});
|
|
32
|
-
}
|
|
33
|
-
exports.registerCommandToYargs = registerCommandToYargs;
|
|
34
|
-
//# sourceMappingURL=util.js.map
|
package/lib/cli/util.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"util.js","sourceRoot":"","sources":["../../cli/util.ts"],"names":[],"mappings":";;;AAuBA;;;;GAIG;AACH,SAAgB,sBAAsB;AAClC,kEAAkE;AAClE,KAAgB;AAChB,kEAAkE;AAClE,UAAgC;IAEhC,KAAK,CAAC,OAAO,CAAC;QACV,OAAO,EAAE,UAAU,CAAC,OAAO;QAC3B,QAAQ,EAAE,UAAU,CAAC,QAAQ;QAC7B,OAAO,EAAE,CAAC,YAAY,EAAE,EAAE;YACtB,YAAY,CAAC,OAAO,CAAC,UAAU,CAAC,OAAO,IAAI,EAAE,CAAC,CAAA;YAC9C,KAAK,MAAM,UAAU,IAAI,UAAU,CAAC,WAAW,IAAI,EAAE,EAAE,CAAC;gBACpD,sBAAsB,CAAC,YAAY,EAAE,UAAU,CAAC,CAAA;YACpD,CAAC;YACD,IAAI,UAAU,CAAC,QAAQ,EAAE,CAAC;gBACtB,KAAK,MAAM,OAAO,IAAI,UAAU,CAAC,QAAQ,EAAE,CAAC;oBACxC,YAAY,CAAC,OAAO,CAChB,MAAM,OAAO,CAAC,OAAO,EAAE,EACvB,OAAO,CAAC,WAAW,CACtB,CAAA;gBACL,CAAC;YACL,CAAC;YACD,OAAO,KAAK,CAAA;QAChB,CAAC;QACD,gEAAgE;QAChE,OAAO,EAAE,UAAU,CAAC,OAAO,IAAI,SAAS,YAAY,KAAU,CAAC;KAClE,CAAC,CAAA;AACN,CAAC;AA3BD,wDA2BC"}
|
package/lib/createConfig.d.ts
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import type { IOptions } from "./cli/index.js";
|
|
2
|
-
import type { CamelCasedProperties } from "./cli/parseArgs.js";
|
|
3
|
-
import type { Bindings, ChildLoggerOptions, Logger } from "pino";
|
|
4
|
-
import type { Chain, PublicClient, Transport, WalletClient } from "viem";
|
|
5
|
-
export type AltoConfig = Readonly<CamelCasedProperties<IOptions>> & {
|
|
6
|
-
getLogger: <ChildCustomLevels extends string = never>(bindings: Bindings, options?: ChildLoggerOptions<ChildCustomLevels>) => Logger<ChildCustomLevels>;
|
|
7
|
-
readonly publicClient: PublicClient<Transport, Chain>;
|
|
8
|
-
readonly walletClient: WalletClient<Transport, Chain>;
|
|
9
|
-
readonly chainId: number;
|
|
10
|
-
};
|
|
11
|
-
export declare function createConfig(config: CamelCasedProperties<IOptions> & {
|
|
12
|
-
logger: Logger;
|
|
13
|
-
publicClient: PublicClient<Transport, Chain>;
|
|
14
|
-
walletClient: WalletClient<Transport, Chain>;
|
|
15
|
-
}): AltoConfig;
|
|
16
|
-
//# sourceMappingURL=createConfig.d.ts.map
|
package/lib/createConfig.js
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.createConfig = void 0;
|
|
4
|
-
function createConfig(config) {
|
|
5
|
-
const { logger, ...rest } = config;
|
|
6
|
-
return {
|
|
7
|
-
...rest,
|
|
8
|
-
chainId: config.publicClient.chain.id,
|
|
9
|
-
getLogger: (bindings, options) => logger.child(bindings, options)
|
|
10
|
-
};
|
|
11
|
-
}
|
|
12
|
-
exports.createConfig = createConfig;
|
|
13
|
-
//# sourceMappingURL=createConfig.js.map
|
package/lib/createConfig.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"createConfig.js","sourceRoot":"","sources":["../createConfig.ts"],"names":[],"mappings":";;;AAeA,SAAgB,YAAY,CACxB,MAIC;IAED,MAAM,EAAE,MAAM,EAAE,GAAG,IAAI,EAAE,GAAG,MAAM,CAAA;IAElC,OAAO;QACH,GAAG,IAAI;QACP,OAAO,EAAE,MAAM,CAAC,YAAY,CAAC,KAAK,CAAC,EAAE;QACrC,SAAS,EAAE,CAAC,QAAQ,EAAE,OAAO,EAAE,EAAE,CAAC,MAAM,CAAC,KAAK,CAAC,QAAQ,EAAE,OAAO,CAAC;KACpE,CAAA;AACL,CAAC;AAdD,oCAcC"}
|
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
import type { EventManager, GasPriceManager } from "../handlers/index.js";
|
|
2
|
-
import type { InterfaceReputationManager, Mempool } from "../mempool/index.js";
|
|
3
|
-
import type { Address, BundleResult, UserOperation, GasPriceParameters, UserOperationBundle, UserOpInfo } from "../types/index.js";
|
|
4
|
-
import type { Logger, Metrics } from "../utils/index.js";
|
|
5
|
-
import { type Account } from "viem";
|
|
6
|
-
import type { AltoConfig } from "../createConfig.js";
|
|
7
|
-
import type { SignedAuthorizationList } from "viem";
|
|
8
|
-
type HandleOpsTxParams = {
|
|
9
|
-
gas: bigint;
|
|
10
|
-
account: Account;
|
|
11
|
-
nonce: number;
|
|
12
|
-
userOps: UserOpInfo[];
|
|
13
|
-
isUserOpV06: boolean;
|
|
14
|
-
isReplacementTx: boolean;
|
|
15
|
-
entryPoint: Address;
|
|
16
|
-
};
|
|
17
|
-
type HandleOpsGasParams = {
|
|
18
|
-
type: "legacy";
|
|
19
|
-
gasPrice: bigint;
|
|
20
|
-
maxFeePerGas?: undefined;
|
|
21
|
-
maxPriorityFeePerGas?: undefined;
|
|
22
|
-
} | {
|
|
23
|
-
type: "eip1559";
|
|
24
|
-
maxFeePerGas: bigint;
|
|
25
|
-
maxPriorityFeePerGas: bigint;
|
|
26
|
-
gasPrice?: undefined;
|
|
27
|
-
} | {
|
|
28
|
-
type: "eip7702";
|
|
29
|
-
maxFeePerGas: bigint;
|
|
30
|
-
maxPriorityFeePerGas: bigint;
|
|
31
|
-
gasPrice?: undefined;
|
|
32
|
-
authorizationList: SignedAuthorizationList;
|
|
33
|
-
};
|
|
34
|
-
export declare class Executor {
|
|
35
|
-
config: AltoConfig;
|
|
36
|
-
logger: Logger;
|
|
37
|
-
metrics: Metrics;
|
|
38
|
-
reputationManager: InterfaceReputationManager;
|
|
39
|
-
gasPriceManager: GasPriceManager;
|
|
40
|
-
mempool: Mempool;
|
|
41
|
-
eventManager: EventManager;
|
|
42
|
-
constructor({ config, mempool, reputationManager, metrics, gasPriceManager, eventManager }: {
|
|
43
|
-
config: AltoConfig;
|
|
44
|
-
mempool: Mempool;
|
|
45
|
-
reputationManager: InterfaceReputationManager;
|
|
46
|
-
metrics: Metrics;
|
|
47
|
-
gasPriceManager: GasPriceManager;
|
|
48
|
-
eventManager: EventManager;
|
|
49
|
-
});
|
|
50
|
-
cancelOps(_entryPoint: Address, _ops: UserOperation[]): Promise<void>;
|
|
51
|
-
sendHandleOpsTransaction({ txParam, gasOpts }: {
|
|
52
|
-
txParam: HandleOpsTxParams;
|
|
53
|
-
gasOpts: HandleOpsGasParams;
|
|
54
|
-
}): Promise<`0x${string}`>;
|
|
55
|
-
bundle({ executor, userOpBundle, nonce, gasPriceParams, gasLimitSuggestion, isReplacementTx }: {
|
|
56
|
-
executor: Account;
|
|
57
|
-
userOpBundle: UserOperationBundle;
|
|
58
|
-
nonce: number;
|
|
59
|
-
gasPriceParams: GasPriceParameters;
|
|
60
|
-
gasLimitSuggestion?: bigint;
|
|
61
|
-
isReplacementTx: boolean;
|
|
62
|
-
}): Promise<BundleResult>;
|
|
63
|
-
}
|
|
64
|
-
export {};
|
|
65
|
-
//# sourceMappingURL=executor.d.ts.map
|