@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/types/schemas.js
DELETED
|
@@ -1,679 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.userOpInfoSchema = exports.userOpDetailsSchema = exports.referencedCodeHashesSchema = exports.bundlerRpcSchema = exports.bundlerRequestSchema = exports.altoVersions = exports.pimlicoSendUserOperationNowSchema = exports.pimlicoGetUserOperationGasPriceSchema = exports.pimlicoGetUserOperationStatusSchema = exports.debugGetStakeStatusSchema = exports.debugClearReputationSchema = exports.debugDumpReputationSchema = exports.debugSetReputationSchema = exports.debugSetBundlingModeSchema = exports.debugSendBundleNowSchema = exports.debugDumpMempoolSchema = exports.debugClearMempoolSchema = exports.debugClearStateSchema = exports.getUserOperationReceiptSchema = exports.getUserOperationByHashSchema = exports.sendUserOperationSchema = exports.estimateUserOperationGasSchema = exports.supportedEntryPointsSchema = exports.chainIdSchema = exports.userOperationStatusSchema = exports.receiptSchema = exports.logSchema = exports.jsonRpcSchema = exports.userOperationSchema = exports.stateOverridesSchema = exports.hexData32Schema = exports.hexDataSchema = exports.hexNumberSchema = exports.addressSchema = exports.commaSeperatedAddressPattern = exports.hexData32Pattern = void 0;
|
|
4
|
-
const viem_1 = require("viem");
|
|
5
|
-
const zod_1 = require("zod");
|
|
6
|
-
const hexDataPattern = /^0x[0-9A-Fa-f]*$/;
|
|
7
|
-
const addressPattern = /^0x[0-9,a-f,A-F]{40}$/;
|
|
8
|
-
exports.hexData32Pattern = /^0x([0-9a-fA-F][0-9a-fA-F]){32}$/;
|
|
9
|
-
exports.commaSeperatedAddressPattern = /^(0x[0-9a-fA-F]{40})(,\s*(0x[0-9a-fA-F]{40}))*$/;
|
|
10
|
-
exports.addressSchema = zod_1.z
|
|
11
|
-
.string()
|
|
12
|
-
.regex(addressPattern, { message: "not a valid hex address" })
|
|
13
|
-
.transform((val) => (0, viem_1.getAddress)(val));
|
|
14
|
-
exports.hexNumberSchema = zod_1.z
|
|
15
|
-
.string()
|
|
16
|
-
.regex(hexDataPattern)
|
|
17
|
-
.or(zod_1.z.number())
|
|
18
|
-
.or(zod_1.z.bigint())
|
|
19
|
-
.transform((val) => BigInt(val))
|
|
20
|
-
.refine((val) => val <= viem_1.maxUint256, {
|
|
21
|
-
message: "not a valid uint256"
|
|
22
|
-
});
|
|
23
|
-
exports.hexDataSchema = zod_1.z
|
|
24
|
-
.string()
|
|
25
|
-
.regex(hexDataPattern, { message: "not valid hex data" })
|
|
26
|
-
.transform((val) => val);
|
|
27
|
-
exports.hexData32Schema = zod_1.z
|
|
28
|
-
.string()
|
|
29
|
-
.regex(exports.hexData32Pattern, { message: "not valid 32-byte hex data" })
|
|
30
|
-
.transform((val) => val);
|
|
31
|
-
exports.stateOverridesSchema = zod_1.z.record(exports.addressSchema, zod_1.z.object({
|
|
32
|
-
balance: exports.hexNumberSchema.optional(),
|
|
33
|
-
nonce: exports.hexNumberSchema.optional(),
|
|
34
|
-
code: exports.hexDataSchema.optional(),
|
|
35
|
-
state: zod_1.z.record(exports.hexData32Schema, exports.hexData32Schema).optional(),
|
|
36
|
-
stateDiff: zod_1.z.record(exports.hexData32Schema, exports.hexDataSchema).optional()
|
|
37
|
-
}));
|
|
38
|
-
const partialAuthorizationSchema = zod_1.z.union([
|
|
39
|
-
zod_1.z.object({
|
|
40
|
-
contractAddress: exports.addressSchema,
|
|
41
|
-
chainId: exports.hexNumberSchema
|
|
42
|
-
.optional()
|
|
43
|
-
.transform((val) => (val ? Number(val) : 1)),
|
|
44
|
-
nonce: exports.hexNumberSchema
|
|
45
|
-
.optional()
|
|
46
|
-
.transform((val) => (val ? Number(val) : 0)),
|
|
47
|
-
r: exports.hexDataSchema
|
|
48
|
-
.optional()
|
|
49
|
-
.transform((val) => val ?? (0, viem_1.pad)("0x", { size: 32 })),
|
|
50
|
-
s: exports.hexDataSchema
|
|
51
|
-
.optional()
|
|
52
|
-
.transform((val) => val ?? (0, viem_1.pad)("0x", { size: 32 })),
|
|
53
|
-
v: exports.hexNumberSchema.optional(),
|
|
54
|
-
yParity: exports.hexNumberSchema
|
|
55
|
-
.optional()
|
|
56
|
-
.transform((val) => (val ? Number(val) : 0))
|
|
57
|
-
}),
|
|
58
|
-
zod_1.z.object({
|
|
59
|
-
address: exports.addressSchema,
|
|
60
|
-
chainId: exports.hexNumberSchema
|
|
61
|
-
.optional()
|
|
62
|
-
.transform((val) => (val ? Number(val) : 1)),
|
|
63
|
-
nonce: exports.hexNumberSchema
|
|
64
|
-
.optional()
|
|
65
|
-
.transform((val) => (val ? Number(val) : 0)),
|
|
66
|
-
r: exports.hexDataSchema
|
|
67
|
-
.optional()
|
|
68
|
-
.transform((val) => val ?? (0, viem_1.pad)("0x", { size: 32 })),
|
|
69
|
-
s: exports.hexDataSchema
|
|
70
|
-
.optional()
|
|
71
|
-
.transform((val) => val ?? (0, viem_1.pad)("0x", { size: 32 })),
|
|
72
|
-
v: exports.hexNumberSchema.optional(),
|
|
73
|
-
yParity: exports.hexNumberSchema
|
|
74
|
-
.optional()
|
|
75
|
-
.transform((val) => (val ? Number(val) : 0))
|
|
76
|
-
})
|
|
77
|
-
]);
|
|
78
|
-
const signedAuthorizationSchema = zod_1.z.union([
|
|
79
|
-
zod_1.z.object({
|
|
80
|
-
contractAddress: exports.addressSchema,
|
|
81
|
-
chainId: exports.hexNumberSchema.transform((val) => Number(val)),
|
|
82
|
-
nonce: exports.hexNumberSchema.transform((val) => Number(val)),
|
|
83
|
-
r: exports.hexDataSchema.transform((val) => val),
|
|
84
|
-
s: exports.hexDataSchema.transform((val) => val),
|
|
85
|
-
v: exports.hexNumberSchema.optional(),
|
|
86
|
-
yParity: exports.hexNumberSchema.transform((val) => Number(val))
|
|
87
|
-
}),
|
|
88
|
-
zod_1.z.object({
|
|
89
|
-
address: exports.addressSchema,
|
|
90
|
-
chainId: exports.hexNumberSchema.transform((val) => Number(val)),
|
|
91
|
-
nonce: exports.hexNumberSchema.transform((val) => Number(val)),
|
|
92
|
-
r: exports.hexDataSchema.transform((val) => val),
|
|
93
|
-
s: exports.hexDataSchema.transform((val) => val),
|
|
94
|
-
v: exports.hexNumberSchema.optional(),
|
|
95
|
-
yParity: exports.hexNumberSchema.transform((val) => Number(val))
|
|
96
|
-
})
|
|
97
|
-
]);
|
|
98
|
-
const userOperationV06Schema = zod_1.z
|
|
99
|
-
.object({
|
|
100
|
-
sender: exports.addressSchema,
|
|
101
|
-
nonce: exports.hexNumberSchema,
|
|
102
|
-
initCode: exports.hexDataSchema,
|
|
103
|
-
callData: exports.hexDataSchema,
|
|
104
|
-
callGasLimit: exports.hexNumberSchema,
|
|
105
|
-
verificationGasLimit: exports.hexNumberSchema,
|
|
106
|
-
preVerificationGas: exports.hexNumberSchema,
|
|
107
|
-
maxPriorityFeePerGas: exports.hexNumberSchema,
|
|
108
|
-
maxFeePerGas: exports.hexNumberSchema,
|
|
109
|
-
paymasterAndData: exports.hexDataSchema,
|
|
110
|
-
signature: exports.hexDataSchema,
|
|
111
|
-
eip7702Auth: signedAuthorizationSchema.optional().nullable()
|
|
112
|
-
})
|
|
113
|
-
.strict()
|
|
114
|
-
.transform((val) => {
|
|
115
|
-
return val;
|
|
116
|
-
});
|
|
117
|
-
const userOperationV07Schema = zod_1.z
|
|
118
|
-
.object({
|
|
119
|
-
sender: exports.addressSchema,
|
|
120
|
-
nonce: exports.hexNumberSchema,
|
|
121
|
-
factory: exports.addressSchema
|
|
122
|
-
.nullable()
|
|
123
|
-
.optional()
|
|
124
|
-
.transform((val) => val ?? null),
|
|
125
|
-
factoryData: exports.hexDataSchema
|
|
126
|
-
.nullable()
|
|
127
|
-
.optional()
|
|
128
|
-
.transform((val) => val ?? null),
|
|
129
|
-
callData: exports.hexDataSchema,
|
|
130
|
-
callGasLimit: exports.hexNumberSchema,
|
|
131
|
-
verificationGasLimit: exports.hexNumberSchema,
|
|
132
|
-
preVerificationGas: exports.hexNumberSchema,
|
|
133
|
-
maxFeePerGas: exports.hexNumberSchema,
|
|
134
|
-
maxPriorityFeePerGas: exports.hexNumberSchema,
|
|
135
|
-
paymaster: exports.addressSchema
|
|
136
|
-
.nullable()
|
|
137
|
-
.optional()
|
|
138
|
-
.transform((val) => val ?? null),
|
|
139
|
-
paymasterVerificationGasLimit: exports.hexNumberSchema
|
|
140
|
-
.nullable()
|
|
141
|
-
.optional()
|
|
142
|
-
.transform((val) => val ?? null),
|
|
143
|
-
paymasterPostOpGasLimit: exports.hexNumberSchema
|
|
144
|
-
.nullable()
|
|
145
|
-
.optional()
|
|
146
|
-
.transform((val) => val ?? null),
|
|
147
|
-
paymasterData: exports.hexDataSchema
|
|
148
|
-
.nullable()
|
|
149
|
-
.optional()
|
|
150
|
-
.transform((val) => val ?? null),
|
|
151
|
-
signature: exports.hexDataSchema,
|
|
152
|
-
eip7702Auth: signedAuthorizationSchema.optional().nullable()
|
|
153
|
-
})
|
|
154
|
-
.strict()
|
|
155
|
-
.transform((val) => val);
|
|
156
|
-
const userOperationV08Schema = zod_1.z
|
|
157
|
-
.object({
|
|
158
|
-
sender: exports.addressSchema,
|
|
159
|
-
nonce: exports.hexNumberSchema,
|
|
160
|
-
factory: zod_1.z
|
|
161
|
-
.union([exports.addressSchema, zod_1.z.literal("0x7702")])
|
|
162
|
-
.nullable()
|
|
163
|
-
.optional()
|
|
164
|
-
.transform((val) => val ?? null),
|
|
165
|
-
factoryData: exports.hexDataSchema
|
|
166
|
-
.nullable()
|
|
167
|
-
.optional()
|
|
168
|
-
.transform((val) => val ?? null),
|
|
169
|
-
callData: exports.hexDataSchema,
|
|
170
|
-
callGasLimit: exports.hexNumberSchema,
|
|
171
|
-
verificationGasLimit: exports.hexNumberSchema,
|
|
172
|
-
preVerificationGas: exports.hexNumberSchema,
|
|
173
|
-
maxFeePerGas: exports.hexNumberSchema,
|
|
174
|
-
maxPriorityFeePerGas: exports.hexNumberSchema,
|
|
175
|
-
paymaster: exports.addressSchema
|
|
176
|
-
.nullable()
|
|
177
|
-
.optional()
|
|
178
|
-
.transform((val) => val ?? null),
|
|
179
|
-
paymasterVerificationGasLimit: exports.hexNumberSchema
|
|
180
|
-
.nullable()
|
|
181
|
-
.optional()
|
|
182
|
-
.transform((val) => val ?? null),
|
|
183
|
-
paymasterPostOpGasLimit: exports.hexNumberSchema
|
|
184
|
-
.nullable()
|
|
185
|
-
.optional()
|
|
186
|
-
.transform((val) => val ?? null),
|
|
187
|
-
paymasterData: exports.hexDataSchema
|
|
188
|
-
.nullable()
|
|
189
|
-
.optional()
|
|
190
|
-
.transform((val) => val ?? null),
|
|
191
|
-
signature: exports.hexDataSchema,
|
|
192
|
-
eip7702Auth: signedAuthorizationSchema.optional().nullable()
|
|
193
|
-
})
|
|
194
|
-
.strict()
|
|
195
|
-
.transform((val) => val);
|
|
196
|
-
const partialUserOperationV06Schema = zod_1.z
|
|
197
|
-
.object({
|
|
198
|
-
sender: exports.addressSchema,
|
|
199
|
-
nonce: exports.hexNumberSchema,
|
|
200
|
-
initCode: exports.hexDataSchema,
|
|
201
|
-
callData: exports.hexDataSchema,
|
|
202
|
-
callGasLimit: exports.hexNumberSchema.default(1n),
|
|
203
|
-
verificationGasLimit: exports.hexNumberSchema.default(1n),
|
|
204
|
-
preVerificationGas: exports.hexNumberSchema.default(1n),
|
|
205
|
-
maxPriorityFeePerGas: exports.hexNumberSchema.default(1n),
|
|
206
|
-
maxFeePerGas: exports.hexNumberSchema.default(1n),
|
|
207
|
-
paymasterAndData: exports.hexDataSchema,
|
|
208
|
-
signature: exports.hexDataSchema,
|
|
209
|
-
eip7702Auth: partialAuthorizationSchema.optional().nullable()
|
|
210
|
-
})
|
|
211
|
-
.strict()
|
|
212
|
-
.transform((val) => {
|
|
213
|
-
return val;
|
|
214
|
-
});
|
|
215
|
-
const partialUserOperationV07Schema = zod_1.z
|
|
216
|
-
.object({
|
|
217
|
-
sender: exports.addressSchema,
|
|
218
|
-
nonce: exports.hexNumberSchema,
|
|
219
|
-
factory: exports.addressSchema
|
|
220
|
-
.nullable()
|
|
221
|
-
.optional()
|
|
222
|
-
.transform((val) => val ?? null),
|
|
223
|
-
factoryData: exports.hexDataSchema
|
|
224
|
-
.nullable()
|
|
225
|
-
.optional()
|
|
226
|
-
.transform((val) => val ?? null),
|
|
227
|
-
callData: exports.hexDataSchema,
|
|
228
|
-
callGasLimit: exports.hexNumberSchema.default(1n),
|
|
229
|
-
verificationGasLimit: exports.hexNumberSchema.default(1n),
|
|
230
|
-
preVerificationGas: exports.hexNumberSchema.default(1n),
|
|
231
|
-
maxFeePerGas: exports.hexNumberSchema.default(1n),
|
|
232
|
-
maxPriorityFeePerGas: exports.hexNumberSchema.default(1n),
|
|
233
|
-
paymaster: exports.addressSchema
|
|
234
|
-
.nullable()
|
|
235
|
-
.optional()
|
|
236
|
-
.transform((val) => val ?? null),
|
|
237
|
-
paymasterVerificationGasLimit: exports.hexNumberSchema
|
|
238
|
-
.nullable()
|
|
239
|
-
.optional()
|
|
240
|
-
.transform((val) => val ?? null),
|
|
241
|
-
paymasterPostOpGasLimit: exports.hexNumberSchema
|
|
242
|
-
.nullable()
|
|
243
|
-
.optional()
|
|
244
|
-
.transform((val) => val ?? null),
|
|
245
|
-
paymasterData: exports.hexDataSchema
|
|
246
|
-
.nullable()
|
|
247
|
-
.optional()
|
|
248
|
-
.transform((val) => val ?? null),
|
|
249
|
-
signature: exports.hexDataSchema,
|
|
250
|
-
eip7702Auth: partialAuthorizationSchema.optional().nullable()
|
|
251
|
-
})
|
|
252
|
-
.strict()
|
|
253
|
-
.transform((val) => val);
|
|
254
|
-
const partialUserOperationV08Schema = zod_1.z
|
|
255
|
-
.object({
|
|
256
|
-
sender: exports.addressSchema,
|
|
257
|
-
nonce: exports.hexNumberSchema,
|
|
258
|
-
factory: zod_1.z
|
|
259
|
-
.union([exports.addressSchema, zod_1.z.literal("0x7702")])
|
|
260
|
-
.nullable()
|
|
261
|
-
.optional()
|
|
262
|
-
.transform((val) => val ?? null),
|
|
263
|
-
factoryData: exports.hexDataSchema
|
|
264
|
-
.nullable()
|
|
265
|
-
.optional()
|
|
266
|
-
.transform((val) => val ?? null),
|
|
267
|
-
callData: exports.hexDataSchema,
|
|
268
|
-
callGasLimit: exports.hexNumberSchema.default(1n),
|
|
269
|
-
verificationGasLimit: exports.hexNumberSchema.default(1n),
|
|
270
|
-
preVerificationGas: exports.hexNumberSchema.default(1n),
|
|
271
|
-
maxFeePerGas: exports.hexNumberSchema.default(1n),
|
|
272
|
-
maxPriorityFeePerGas: exports.hexNumberSchema.default(1n),
|
|
273
|
-
paymaster: exports.addressSchema
|
|
274
|
-
.nullable()
|
|
275
|
-
.optional()
|
|
276
|
-
.transform((val) => val ?? null),
|
|
277
|
-
paymasterVerificationGasLimit: exports.hexNumberSchema
|
|
278
|
-
.nullable()
|
|
279
|
-
.optional()
|
|
280
|
-
.transform((val) => val ?? null),
|
|
281
|
-
paymasterPostOpGasLimit: exports.hexNumberSchema
|
|
282
|
-
.nullable()
|
|
283
|
-
.optional()
|
|
284
|
-
.transform((val) => val ?? null),
|
|
285
|
-
paymasterData: exports.hexDataSchema
|
|
286
|
-
.nullable()
|
|
287
|
-
.optional()
|
|
288
|
-
.transform((val) => val ?? null),
|
|
289
|
-
signature: exports.hexDataSchema,
|
|
290
|
-
eip7702Auth: partialAuthorizationSchema.optional().nullable()
|
|
291
|
-
})
|
|
292
|
-
.strict()
|
|
293
|
-
.transform((val) => val);
|
|
294
|
-
const packerUserOperationSchema = zod_1.z
|
|
295
|
-
.object({
|
|
296
|
-
sender: exports.addressSchema,
|
|
297
|
-
nonce: exports.hexNumberSchema,
|
|
298
|
-
initCode: exports.hexDataSchema,
|
|
299
|
-
callData: exports.hexDataSchema,
|
|
300
|
-
accountGasLimits: exports.hexData32Schema,
|
|
301
|
-
preVerificationGas: exports.hexNumberSchema,
|
|
302
|
-
gasFees: exports.hexData32Schema,
|
|
303
|
-
paymasterAndData: exports.hexDataSchema,
|
|
304
|
-
signature: exports.hexDataSchema
|
|
305
|
-
})
|
|
306
|
-
.strict()
|
|
307
|
-
.transform((val) => val);
|
|
308
|
-
const partialUserOperationSchema = zod_1.z.union([
|
|
309
|
-
partialUserOperationV06Schema,
|
|
310
|
-
partialUserOperationV07Schema,
|
|
311
|
-
partialUserOperationV08Schema
|
|
312
|
-
]);
|
|
313
|
-
exports.userOperationSchema = zod_1.z.union([
|
|
314
|
-
userOperationV06Schema,
|
|
315
|
-
userOperationV07Schema,
|
|
316
|
-
userOperationV08Schema
|
|
317
|
-
]);
|
|
318
|
-
exports.jsonRpcSchema = zod_1.z
|
|
319
|
-
.object({
|
|
320
|
-
jsonrpc: zod_1.z.literal("2.0"),
|
|
321
|
-
id: zod_1.z.number(),
|
|
322
|
-
method: zod_1.z.string(),
|
|
323
|
-
params: zod_1.z
|
|
324
|
-
.array(zod_1.z.unknown())
|
|
325
|
-
.optional()
|
|
326
|
-
.transform((val) => val ?? [])
|
|
327
|
-
})
|
|
328
|
-
.strict();
|
|
329
|
-
const jsonRpcResultSchema = zod_1.z
|
|
330
|
-
.object({
|
|
331
|
-
jsonrpc: zod_1.z.literal("2.0"),
|
|
332
|
-
id: zod_1.z.number(),
|
|
333
|
-
result: zod_1.z.unknown()
|
|
334
|
-
})
|
|
335
|
-
.strict();
|
|
336
|
-
exports.logSchema = zod_1.z.object({
|
|
337
|
-
//removed: z.boolean().optional(),
|
|
338
|
-
logIndex: exports.hexNumberSchema,
|
|
339
|
-
transactionIndex: exports.hexNumberSchema,
|
|
340
|
-
transactionHash: exports.hexData32Schema,
|
|
341
|
-
blockHash: exports.hexData32Schema,
|
|
342
|
-
blockNumber: exports.hexNumberSchema,
|
|
343
|
-
address: exports.addressSchema,
|
|
344
|
-
data: exports.hexDataSchema,
|
|
345
|
-
topics: zod_1.z.array(exports.hexData32Schema)
|
|
346
|
-
});
|
|
347
|
-
exports.receiptSchema = zod_1.z.object({
|
|
348
|
-
transactionHash: exports.hexData32Schema,
|
|
349
|
-
transactionIndex: exports.hexNumberSchema,
|
|
350
|
-
blockHash: exports.hexData32Schema,
|
|
351
|
-
blockNumber: exports.hexNumberSchema,
|
|
352
|
-
from: exports.addressSchema,
|
|
353
|
-
to: exports.addressSchema.or(zod_1.z.null()),
|
|
354
|
-
cumulativeGasUsed: exports.hexNumberSchema,
|
|
355
|
-
gasUsed: exports.hexNumberSchema,
|
|
356
|
-
contractAddress: exports.addressSchema.or(zod_1.z.null()),
|
|
357
|
-
logs: zod_1.z.array(exports.logSchema),
|
|
358
|
-
logsBloom: zod_1.z.string().regex(/^0x[0-9a-f]{512}$/),
|
|
359
|
-
//root: hexData32Schema,
|
|
360
|
-
status: exports.hexNumberSchema.or(zod_1.z.null()),
|
|
361
|
-
effectiveGasPrice: exports.hexNumberSchema.nullish()
|
|
362
|
-
//type: hexNumberSchema
|
|
363
|
-
});
|
|
364
|
-
const userOperationReceiptSchema = zod_1.z
|
|
365
|
-
.object({
|
|
366
|
-
userOpHash: exports.hexData32Schema,
|
|
367
|
-
entryPoint: exports.addressSchema,
|
|
368
|
-
sender: exports.addressSchema,
|
|
369
|
-
nonce: exports.hexNumberSchema,
|
|
370
|
-
paymaster: exports.addressSchema.optional(),
|
|
371
|
-
actualGasCost: exports.hexNumberSchema,
|
|
372
|
-
actualGasUsed: exports.hexNumberSchema,
|
|
373
|
-
success: zod_1.z.boolean(),
|
|
374
|
-
reason: exports.hexDataSchema.optional(), // revert reason
|
|
375
|
-
logs: zod_1.z.array(exports.logSchema),
|
|
376
|
-
receipt: exports.receiptSchema
|
|
377
|
-
})
|
|
378
|
-
.or(zod_1.z.null());
|
|
379
|
-
exports.userOperationStatusSchema = zod_1.z.object({
|
|
380
|
-
status: zod_1.z.enum([
|
|
381
|
-
"not_found",
|
|
382
|
-
"not_submitted",
|
|
383
|
-
"submitted",
|
|
384
|
-
"rejected",
|
|
385
|
-
"reverted",
|
|
386
|
-
"included",
|
|
387
|
-
"failed"
|
|
388
|
-
]),
|
|
389
|
-
transactionHash: exports.hexData32Schema.or(zod_1.z.null())
|
|
390
|
-
});
|
|
391
|
-
const gasPriceSchema = zod_1.z.object({
|
|
392
|
-
slow: zod_1.z.object({
|
|
393
|
-
maxFeePerGas: zod_1.z.bigint(),
|
|
394
|
-
maxPriorityFeePerGas: zod_1.z.bigint()
|
|
395
|
-
}),
|
|
396
|
-
standard: zod_1.z.object({
|
|
397
|
-
maxFeePerGas: zod_1.z.bigint(),
|
|
398
|
-
maxPriorityFeePerGas: zod_1.z.bigint()
|
|
399
|
-
}),
|
|
400
|
-
fast: zod_1.z.object({
|
|
401
|
-
maxFeePerGas: zod_1.z.bigint(),
|
|
402
|
-
maxPriorityFeePerGas: zod_1.z.bigint()
|
|
403
|
-
})
|
|
404
|
-
});
|
|
405
|
-
// Combined schemas (request + response)
|
|
406
|
-
exports.chainIdSchema = zod_1.z.object({
|
|
407
|
-
method: zod_1.z.literal("eth_chainId"),
|
|
408
|
-
params: zod_1.z.tuple([]),
|
|
409
|
-
result: exports.hexNumberSchema
|
|
410
|
-
});
|
|
411
|
-
exports.supportedEntryPointsSchema = zod_1.z.object({
|
|
412
|
-
method: zod_1.z.literal("eth_supportedEntryPoints"),
|
|
413
|
-
params: zod_1.z.tuple([]),
|
|
414
|
-
result: zod_1.z.array(exports.addressSchema)
|
|
415
|
-
});
|
|
416
|
-
exports.estimateUserOperationGasSchema = zod_1.z.object({
|
|
417
|
-
method: zod_1.z.literal("eth_estimateUserOperationGas"),
|
|
418
|
-
params: zod_1.z.union([
|
|
419
|
-
zod_1.z.tuple([partialUserOperationSchema, exports.addressSchema]),
|
|
420
|
-
zod_1.z.tuple([
|
|
421
|
-
partialUserOperationSchema,
|
|
422
|
-
exports.addressSchema,
|
|
423
|
-
exports.stateOverridesSchema
|
|
424
|
-
])
|
|
425
|
-
]),
|
|
426
|
-
result: zod_1.z.union([
|
|
427
|
-
zod_1.z.object({
|
|
428
|
-
callGasLimit: exports.hexNumberSchema,
|
|
429
|
-
preVerificationGas: exports.hexNumberSchema,
|
|
430
|
-
verificationGasLimit: exports.hexNumberSchema,
|
|
431
|
-
verificationGas: exports.hexNumberSchema.optional()
|
|
432
|
-
}),
|
|
433
|
-
zod_1.z.object({
|
|
434
|
-
callGasLimit: exports.hexNumberSchema,
|
|
435
|
-
preVerificationGas: exports.hexNumberSchema,
|
|
436
|
-
verificationGasLimit: exports.hexNumberSchema,
|
|
437
|
-
paymasterVerificationGasLimit: exports.hexNumberSchema.optional(),
|
|
438
|
-
paymasterPostOpGasLimit: exports.hexNumberSchema.optional()
|
|
439
|
-
})
|
|
440
|
-
])
|
|
441
|
-
});
|
|
442
|
-
exports.sendUserOperationSchema = zod_1.z.object({
|
|
443
|
-
method: zod_1.z.literal("eth_sendUserOperation"),
|
|
444
|
-
params: zod_1.z.tuple([exports.userOperationSchema, exports.addressSchema]),
|
|
445
|
-
result: exports.hexData32Schema
|
|
446
|
-
});
|
|
447
|
-
exports.getUserOperationByHashSchema = zod_1.z.object({
|
|
448
|
-
method: zod_1.z.literal("eth_getUserOperationByHash"),
|
|
449
|
-
params: zod_1.z.tuple([
|
|
450
|
-
zod_1.z
|
|
451
|
-
.string()
|
|
452
|
-
.regex(exports.hexData32Pattern, { message: "Missing/invalid userOpHash" })
|
|
453
|
-
.transform((val) => val)
|
|
454
|
-
]),
|
|
455
|
-
result: zod_1.z
|
|
456
|
-
.object({
|
|
457
|
-
userOperation: exports.userOperationSchema,
|
|
458
|
-
entryPoint: exports.addressSchema,
|
|
459
|
-
blockNumber: exports.hexNumberSchema,
|
|
460
|
-
blockHash: exports.hexData32Schema,
|
|
461
|
-
transactionHash: exports.hexData32Schema
|
|
462
|
-
})
|
|
463
|
-
.or(zod_1.z.null())
|
|
464
|
-
});
|
|
465
|
-
exports.getUserOperationReceiptSchema = zod_1.z.object({
|
|
466
|
-
method: zod_1.z.literal("eth_getUserOperationReceipt"),
|
|
467
|
-
params: zod_1.z.tuple([
|
|
468
|
-
zod_1.z
|
|
469
|
-
.string()
|
|
470
|
-
.regex(exports.hexData32Pattern, { message: "Missing/invalid userOpHash" })
|
|
471
|
-
.transform((val) => val)
|
|
472
|
-
]),
|
|
473
|
-
result: userOperationReceiptSchema
|
|
474
|
-
});
|
|
475
|
-
exports.debugClearStateSchema = zod_1.z.object({
|
|
476
|
-
method: zod_1.z.literal("debug_bundler_clearState"),
|
|
477
|
-
params: zod_1.z.tuple([]),
|
|
478
|
-
result: zod_1.z.literal("ok")
|
|
479
|
-
});
|
|
480
|
-
exports.debugClearMempoolSchema = zod_1.z.object({
|
|
481
|
-
method: zod_1.z.literal("debug_bundler_clearMempool"),
|
|
482
|
-
params: zod_1.z.tuple([]),
|
|
483
|
-
result: zod_1.z.literal("ok")
|
|
484
|
-
});
|
|
485
|
-
exports.debugDumpMempoolSchema = zod_1.z.object({
|
|
486
|
-
method: zod_1.z.literal("debug_bundler_dumpMempool"),
|
|
487
|
-
params: zod_1.z.tuple([exports.addressSchema]),
|
|
488
|
-
result: zod_1.z.array(exports.userOperationSchema)
|
|
489
|
-
});
|
|
490
|
-
exports.debugSendBundleNowSchema = zod_1.z.object({
|
|
491
|
-
method: zod_1.z.literal("debug_bundler_sendBundleNow"),
|
|
492
|
-
params: zod_1.z.tuple([]),
|
|
493
|
-
result: zod_1.z.literal("ok")
|
|
494
|
-
});
|
|
495
|
-
exports.debugSetBundlingModeSchema = zod_1.z.object({
|
|
496
|
-
method: zod_1.z.literal("debug_bundler_setBundlingMode"),
|
|
497
|
-
params: zod_1.z.tuple([zod_1.z.enum(["manual", "auto"])]),
|
|
498
|
-
result: zod_1.z.literal("ok")
|
|
499
|
-
});
|
|
500
|
-
exports.debugSetReputationSchema = zod_1.z.object({
|
|
501
|
-
method: zod_1.z.literal("debug_bundler_setReputation"),
|
|
502
|
-
params: zod_1.z.tuple([
|
|
503
|
-
zod_1.z.array(zod_1.z.object({
|
|
504
|
-
address: exports.addressSchema,
|
|
505
|
-
opsSeen: exports.hexNumberSchema,
|
|
506
|
-
opsIncluded: exports.hexNumberSchema
|
|
507
|
-
})),
|
|
508
|
-
exports.addressSchema
|
|
509
|
-
]),
|
|
510
|
-
result: zod_1.z.literal("ok")
|
|
511
|
-
});
|
|
512
|
-
exports.debugDumpReputationSchema = zod_1.z.object({
|
|
513
|
-
method: zod_1.z.literal("debug_bundler_dumpReputation"),
|
|
514
|
-
params: zod_1.z.tuple([exports.addressSchema]),
|
|
515
|
-
result: zod_1.z.array(zod_1.z.object({
|
|
516
|
-
address: exports.addressSchema,
|
|
517
|
-
opsSeen: exports.hexNumberSchema,
|
|
518
|
-
opsIncluded: exports.hexNumberSchema,
|
|
519
|
-
status: exports.hexNumberSchema.optional()
|
|
520
|
-
}))
|
|
521
|
-
});
|
|
522
|
-
exports.debugClearReputationSchema = zod_1.z.object({
|
|
523
|
-
method: zod_1.z.literal("debug_bundler_clearReputation"),
|
|
524
|
-
params: zod_1.z.tuple([]),
|
|
525
|
-
result: zod_1.z.literal("ok")
|
|
526
|
-
});
|
|
527
|
-
exports.debugGetStakeStatusSchema = zod_1.z.object({
|
|
528
|
-
method: zod_1.z.literal("debug_bundler_getStakeStatus"),
|
|
529
|
-
params: zod_1.z.tuple([exports.addressSchema, exports.addressSchema]),
|
|
530
|
-
result: zod_1.z.object({
|
|
531
|
-
stakeInfo: zod_1.z.object({
|
|
532
|
-
addr: zod_1.z.string(),
|
|
533
|
-
stake: zod_1.z
|
|
534
|
-
.string()
|
|
535
|
-
.or(zod_1.z.number())
|
|
536
|
-
.or(zod_1.z.bigint())
|
|
537
|
-
.transform((val) => Number(val).toString()),
|
|
538
|
-
unstakeDelaySec: zod_1.z
|
|
539
|
-
.string()
|
|
540
|
-
.or(zod_1.z.number())
|
|
541
|
-
.or(zod_1.z.bigint())
|
|
542
|
-
.transform((val) => Number(val).toString())
|
|
543
|
-
}),
|
|
544
|
-
isStaked: zod_1.z.boolean()
|
|
545
|
-
})
|
|
546
|
-
});
|
|
547
|
-
exports.pimlicoGetUserOperationStatusSchema = zod_1.z.object({
|
|
548
|
-
method: zod_1.z.literal("pimlico_getUserOperationStatus"),
|
|
549
|
-
params: zod_1.z.tuple([exports.hexData32Schema]),
|
|
550
|
-
result: exports.userOperationStatusSchema
|
|
551
|
-
});
|
|
552
|
-
exports.pimlicoGetUserOperationGasPriceSchema = zod_1.z.object({
|
|
553
|
-
method: zod_1.z.literal("pimlico_getUserOperationGasPrice"),
|
|
554
|
-
params: zod_1.z.tuple([]),
|
|
555
|
-
result: gasPriceSchema
|
|
556
|
-
});
|
|
557
|
-
exports.pimlicoSendUserOperationNowSchema = zod_1.z.object({
|
|
558
|
-
method: zod_1.z.literal("pimlico_sendUserOperationNow"),
|
|
559
|
-
params: zod_1.z.tuple([exports.userOperationSchema, exports.addressSchema]),
|
|
560
|
-
result: userOperationReceiptSchema
|
|
561
|
-
});
|
|
562
|
-
exports.altoVersions = zod_1.z.enum(["v1", "v2"]);
|
|
563
|
-
// Create request and response discriminated unions from the combined schemas
|
|
564
|
-
exports.bundlerRequestSchema = zod_1.z.discriminatedUnion("method", [
|
|
565
|
-
exports.chainIdSchema.omit({ result: true }),
|
|
566
|
-
exports.supportedEntryPointsSchema.omit({ result: true }),
|
|
567
|
-
exports.estimateUserOperationGasSchema.omit({ result: true }),
|
|
568
|
-
exports.sendUserOperationSchema.omit({ result: true }),
|
|
569
|
-
exports.getUserOperationByHashSchema.omit({ result: true }),
|
|
570
|
-
exports.getUserOperationReceiptSchema.omit({ result: true }),
|
|
571
|
-
exports.debugClearStateSchema.omit({ result: true }),
|
|
572
|
-
exports.debugClearMempoolSchema.omit({ result: true }),
|
|
573
|
-
exports.debugDumpMempoolSchema.omit({ result: true }),
|
|
574
|
-
exports.debugSendBundleNowSchema.omit({ result: true }),
|
|
575
|
-
exports.debugSetBundlingModeSchema.omit({ result: true }),
|
|
576
|
-
exports.debugSetReputationSchema.omit({ result: true }),
|
|
577
|
-
exports.debugDumpReputationSchema.omit({ result: true }),
|
|
578
|
-
exports.debugClearReputationSchema.omit({ result: true }),
|
|
579
|
-
exports.debugGetStakeStatusSchema.omit({ result: true }),
|
|
580
|
-
exports.pimlicoGetUserOperationStatusSchema.omit({ result: true }),
|
|
581
|
-
exports.pimlicoGetUserOperationGasPriceSchema.omit({ result: true }),
|
|
582
|
-
exports.pimlicoSendUserOperationNowSchema.omit({ result: true })
|
|
583
|
-
]);
|
|
584
|
-
exports.bundlerRpcSchema = zod_1.z.union([
|
|
585
|
-
exports.chainIdSchema,
|
|
586
|
-
exports.supportedEntryPointsSchema,
|
|
587
|
-
exports.estimateUserOperationGasSchema,
|
|
588
|
-
exports.sendUserOperationSchema,
|
|
589
|
-
exports.getUserOperationByHashSchema,
|
|
590
|
-
exports.getUserOperationReceiptSchema,
|
|
591
|
-
exports.debugClearStateSchema,
|
|
592
|
-
exports.debugClearMempoolSchema,
|
|
593
|
-
exports.debugDumpMempoolSchema,
|
|
594
|
-
exports.debugSendBundleNowSchema,
|
|
595
|
-
exports.debugSetBundlingModeSchema,
|
|
596
|
-
exports.debugSetReputationSchema,
|
|
597
|
-
exports.debugDumpReputationSchema,
|
|
598
|
-
exports.debugClearReputationSchema,
|
|
599
|
-
exports.debugGetStakeStatusSchema,
|
|
600
|
-
exports.pimlicoGetUserOperationStatusSchema,
|
|
601
|
-
exports.pimlicoGetUserOperationGasPriceSchema,
|
|
602
|
-
exports.pimlicoSendUserOperationNowSchema
|
|
603
|
-
]);
|
|
604
|
-
const OpEventType = zod_1.z.union([
|
|
605
|
-
zod_1.z.object({
|
|
606
|
-
eventType: zod_1.z.literal("received")
|
|
607
|
-
}),
|
|
608
|
-
zod_1.z.object({
|
|
609
|
-
eventType: zod_1.z.literal("added_to_mempool")
|
|
610
|
-
}),
|
|
611
|
-
zod_1.z.object({
|
|
612
|
-
eventType: zod_1.z.literal("queued")
|
|
613
|
-
}),
|
|
614
|
-
zod_1.z.object({
|
|
615
|
-
eventType: zod_1.z.literal("failed_validation"),
|
|
616
|
-
data: zod_1.z.object({
|
|
617
|
-
reason: zod_1.z.string().optional(),
|
|
618
|
-
aaError: zod_1.z.string().optional()
|
|
619
|
-
})
|
|
620
|
-
}),
|
|
621
|
-
zod_1.z.object({
|
|
622
|
-
eventType: zod_1.z.literal("dropped"),
|
|
623
|
-
data: zod_1.z.object({
|
|
624
|
-
reason: zod_1.z.string().optional(),
|
|
625
|
-
aaError: zod_1.z.string().optional()
|
|
626
|
-
})
|
|
627
|
-
}),
|
|
628
|
-
zod_1.z.object({
|
|
629
|
-
eventType: zod_1.z.literal("submitted"),
|
|
630
|
-
transactionHash: exports.hexData32Schema
|
|
631
|
-
}),
|
|
632
|
-
zod_1.z.object({
|
|
633
|
-
eventType: zod_1.z.literal("included_onchain"),
|
|
634
|
-
transactionHash: exports.hexData32Schema,
|
|
635
|
-
data: zod_1.z.object({
|
|
636
|
-
blockNumber: zod_1.z.number()
|
|
637
|
-
})
|
|
638
|
-
}),
|
|
639
|
-
zod_1.z.object({
|
|
640
|
-
eventType: zod_1.z.literal("frontran_onchain"),
|
|
641
|
-
transactionHash: exports.hexData32Schema,
|
|
642
|
-
data: zod_1.z.object({
|
|
643
|
-
blockNumber: zod_1.z.number()
|
|
644
|
-
})
|
|
645
|
-
}),
|
|
646
|
-
zod_1.z.object({
|
|
647
|
-
eventType: zod_1.z.literal("failed_onchain"),
|
|
648
|
-
transactionHash: exports.hexData32Schema,
|
|
649
|
-
data: zod_1.z.object({
|
|
650
|
-
blockNumber: zod_1.z.number(),
|
|
651
|
-
reason: zod_1.z.string().optional(),
|
|
652
|
-
aaError: zod_1.z.string().optional()
|
|
653
|
-
})
|
|
654
|
-
}),
|
|
655
|
-
zod_1.z.object({
|
|
656
|
-
eventType: zod_1.z.literal("execution_reverted_onchain"),
|
|
657
|
-
transactionHash: exports.hexData32Schema,
|
|
658
|
-
data: zod_1.z.object({
|
|
659
|
-
blockNumber: zod_1.z.number(),
|
|
660
|
-
reason: zod_1.z.string().optional()
|
|
661
|
-
})
|
|
662
|
-
})
|
|
663
|
-
]);
|
|
664
|
-
// Types used for internal mempool.
|
|
665
|
-
exports.referencedCodeHashesSchema = zod_1.z.object({
|
|
666
|
-
addresses: zod_1.z.array(zod_1.z.string()),
|
|
667
|
-
hash: zod_1.z.string()
|
|
668
|
-
});
|
|
669
|
-
exports.userOpDetailsSchema = zod_1.z.object({
|
|
670
|
-
userOpHash: exports.hexData32Schema,
|
|
671
|
-
// timestamp when the bundling process begins (when it leaves outstanding mempool)
|
|
672
|
-
addedToMempool: zod_1.z.number(),
|
|
673
|
-
referencedContracts: exports.referencedCodeHashesSchema.optional(),
|
|
674
|
-
submissionAttempts: zod_1.z.number()
|
|
675
|
-
});
|
|
676
|
-
exports.userOpInfoSchema = exports.userOpDetailsSchema.extend({
|
|
677
|
-
userOp: exports.userOperationSchema
|
|
678
|
-
});
|
|
679
|
-
//# sourceMappingURL=schemas.js.map
|