@pimlico/alto 0.0.19 → 0.0.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/contracts/EIP712.sol/EIP712.json +1 -1
- package/contracts/ERC165.sol/ERC165.json +1 -1
- package/contracts/ERC20.sol/ERC20.json +1 -1
- package/contracts/Eip7702Support.sol/Eip7702Support.json +1 -1
- package/contracts/EntryPoint.sol/EntryPoint.json +1 -1
- package/contracts/EntryPointFilterOpsOverride.sol/EntryPointFilterOpsOverride06.json +1 -1
- package/contracts/EntryPointFilterOpsOverride.sol/EntryPointFilterOpsOverride07.json +1 -1
- package/contracts/EntryPointFilterOpsOverride.sol/EntryPointFilterOpsOverride08.json +1 -1
- package/contracts/EntryPointFilterOpsOverride.sol/EntryPointFilterOpsOverride09.json +1 -0
- package/contracts/EntryPointGasEstimationOverride.sol/EntryPointGasEstimationOverride06.json +1 -1
- package/contracts/EntryPointSimulations.sol/EntryPointSimulations07.json +1 -1
- package/contracts/EntryPointSimulations.sol/EntryPointSimulations08.json +1 -1
- package/contracts/EntryPointSimulations.sol/EntryPointSimulations09.json +1 -0
- package/contracts/Exec.sol/Exec.json +1 -1
- package/contracts/IAccount.sol/IAccount.json +1 -1
- package/contracts/IAccountExecute.sol/IAccountExecute.json +1 -1
- package/contracts/IAggregator.sol/IAggregator.json +1 -1
- package/contracts/IERC165.sol/IERC165.json +1 -1
- package/contracts/IERC5267.sol/IERC5267.json +1 -1
- package/contracts/IEntryPoint.sol/IEntryPoint.json +1 -1
- package/contracts/IEntryPointFilterOpsOverride.sol/IEntryPointFilterOpsOverride08.json +1 -0
- package/contracts/IEntryPointFilterOpsOverride.sol/IEntryPointFilterOpsOverride09.json +1 -0
- package/contracts/IEntryPointSimulations.sol/IEntryPointSimulations.json +1 -1
- package/contracts/INonceManager.sol/INonceManager.json +1 -1
- package/contracts/IPaymaster.sol/IPaymaster.json +1 -1
- package/contracts/ISenderCreator.sol/ISenderCreator.json +1 -1
- package/contracts/IStakeManager.sol/IStakeManager.json +1 -1
- package/contracts/LibBytes.sol/LibBytes.json +1 -1
- package/contracts/Math.sol/Math.json +1 -1
- package/contracts/MessageHashUtils.sol/MessageHashUtils.json +1 -1
- package/contracts/NonceManager.sol/NonceManager.json +1 -1
- package/contracts/Panic.sol/Panic.json +1 -1
- package/contracts/PimlicoSimulations.sol/PimlicoSimulations.json +1 -1
- package/contracts/ReentrancyGuard.sol/ReentrancyGuard.json +1 -1
- package/contracts/ReentrancyGuardTransient.sol/ReentrancyGuardTransient.json +1 -1
- package/contracts/SafeCast.sol/SafeCast.json +1 -1
- package/contracts/SenderCreator.sol/SenderCreator.json +1 -1
- package/contracts/ShortStrings.sol/ShortStrings.json +1 -1
- package/contracts/SignedMath.sol/SignedMath.json +1 -1
- package/contracts/SimulationOverrideHelper.sol/SimulationOverrideHelper.json +1 -0
- package/contracts/StakeManager.sol/StakeManager.json +1 -1
- package/contracts/StorageSlot.sol/StorageSlot.json +1 -1
- package/contracts/Strings.sol/Strings.json +1 -1
- package/contracts/TransientSlot.sol/TransientSlot.json +1 -1
- package/contracts/UserOperation.sol/UserOperationLib.json +1 -1
- package/contracts/UserOperationLib.sol/UserOperationLib.json +1 -1
- package/contracts/account-abstraction-v9/contracts/interfaces/IAggregator.sol/IAggregator.json +1 -0
- package/contracts/account-abstraction-v9/contracts/interfaces/IEntryPoint.sol/IEntryPoint.json +1 -0
- package/contracts/account-abstraction-v9/contracts/interfaces/INonceManager.sol/INonceManager.json +1 -0
- package/contracts/account-abstraction-v9/contracts/interfaces/IStakeManager.sol/IStakeManager.json +1 -0
- package/contracts/build-info/{880955d5786bfdae.json → 031b289b93191224.json} +1 -1
- package/contracts/build-info/181f3522c3744403.json +1 -0
- package/contracts/build-info/a2db592afab5c9de.json +1 -0
- package/contracts/contracts/interfaces/IAggregator.sol/IAggregator.json +1 -1
- package/contracts/contracts/interfaces/IEntryPoint.sol/IEntryPoint.json +1 -1
- package/contracts/contracts/interfaces/INonceManager.sol/INonceManager.json +1 -1
- package/contracts/contracts/interfaces/IStakeManager.sol/IStakeManager.json +1 -1
- package/contracts/core/Eip7702Support.sol/Eip7702Support.json +1 -0
- package/contracts/core/NonceManager.sol/NonceManager.json +1 -0
- package/contracts/core/SenderCreator.sol/SenderCreator.json +1 -0
- package/contracts/core/StakeManager.sol/StakeManager.json +1 -0
- package/contracts/core/UserOperationLib.sol/UserOperationLib.json +1 -0
- package/contracts/interfaces/IAccount.sol/IAccount.json +1 -0
- package/contracts/interfaces/IAccountExecute.sol/IAccountExecute.json +1 -0
- package/contracts/interfaces/IAggregator.sol/IAggregator.json +1 -1
- package/contracts/interfaces/IEntryPoint.sol/IEntryPoint.json +1 -1
- package/contracts/interfaces/INonceManager.sol/INonceManager.json +1 -1
- package/contracts/interfaces/IPaymaster.sol/IPaymaster.json +1 -0
- package/contracts/interfaces/ISenderCreator.sol/ISenderCreator.json +1 -0
- package/contracts/interfaces/IStakeManager.sol/IStakeManager.json +1 -1
- package/contracts/overrides/Eip7702Support.sol/Eip7702Support.json +1 -0
- package/contracts/overrides/NonceManager.sol/NonceManager.json +1 -0
- package/contracts/overrides/SenderCreator.sol/SenderCreator.json +1 -0
- package/contracts/overrides/StakeManager.sol/StakeManager.json +1 -0
- package/contracts/overrides/UserOperationLib.sol/UserOperationLib.json +1 -0
- package/contracts/utils/Exec.sol/Exec.json +1 -1
- package/contracts/utils/StorageSlot.sol/StorageSlot.json +1 -0
- package/contracts/v09/EntryPoint.sol/EntryPoint.json +1 -0
- package/esm/cli/alto.js +17 -6
- package/esm/cli/alto.js.map +1 -1
- package/esm/cli/config/bundler.d.ts +459 -321
- package/esm/cli/config/bundler.js +125 -91
- package/esm/cli/config/bundler.js.map +1 -1
- package/esm/cli/config/options.d.ts +4 -1
- package/esm/cli/config/options.js +233 -106
- package/esm/cli/config/options.js.map +1 -1
- package/esm/cli/customTransport.d.ts +3 -3
- package/esm/cli/deploySimulationsContract.d.ts +1 -0
- package/esm/cli/deploySimulationsContract.js +41 -5
- package/esm/cli/deploySimulationsContract.js.map +1 -1
- package/esm/cli/handler.js +76 -80
- package/esm/cli/handler.js.map +1 -1
- package/esm/cli/multiRpcTransport.d.ts +7 -0
- package/esm/cli/multiRpcTransport.js +52 -0
- package/esm/cli/multiRpcTransport.js.map +1 -0
- package/esm/cli/setupServer.js +92 -70
- package/esm/cli/setupServer.js.map +1 -1
- package/esm/cli/shutDown.d.ts +20 -0
- package/esm/cli/shutDown.js +285 -0
- package/esm/cli/shutDown.js.map +1 -0
- package/esm/contracts/EntryPointFilterOpsOverride.sol/EntryPointFilterOpsOverride06.json +1 -1
- package/esm/contracts/EntryPointFilterOpsOverride.sol/EntryPointFilterOpsOverride07.json +1 -1
- package/esm/contracts/EntryPointFilterOpsOverride.sol/EntryPointFilterOpsOverride08.json +1 -1
- package/esm/contracts/EntryPointFilterOpsOverride.sol/EntryPointFilterOpsOverride09.json +1 -0
- package/esm/contracts/EntryPointGasEstimationOverride.sol/EntryPointGasEstimationOverride06.json +1 -1
- package/esm/contracts/EntryPointSimulations.sol/EntryPointSimulations07.json +1 -1
- package/esm/contracts/EntryPointSimulations.sol/EntryPointSimulations08.json +1 -1
- package/esm/contracts/EntryPointSimulations.sol/EntryPointSimulations09.json +1 -0
- package/esm/contracts/PimlicoSimulations.sol/PimlicoSimulations.json +1 -1
- package/esm/createConfig.d.ts +9 -2
- package/esm/createConfig.js.map +1 -1
- package/esm/executor/{userOpMonitor.d.ts → bundleManager.d.ts} +56 -37
- package/esm/executor/bundleManager.js +393 -0
- package/esm/executor/bundleManager.js.map +1 -0
- package/esm/executor/executor.d.ts +4 -3
- package/esm/executor/executor.js +47 -23
- package/esm/executor/executor.js.map +1 -1
- package/esm/executor/executorManager.d.ts +20 -15
- package/esm/executor/executorManager.js +248 -67
- package/esm/executor/executorManager.js.map +1 -1
- package/esm/executor/filterOpsAndEstimateGas.d.ts +17 -2
- package/esm/executor/filterOpsAndEstimateGas.js +100 -77
- package/esm/executor/filterOpsAndEstimateGas.js.map +1 -1
- package/esm/executor/getBundleStatus.d.ts +5 -1
- package/esm/executor/getBundleStatus.js.map +1 -1
- package/esm/executor/index.d.ts +1 -0
- package/esm/executor/index.js +1 -0
- package/esm/executor/index.js.map +1 -1
- package/esm/executor/senderManager/createMemorySenderManager.js +13 -0
- package/esm/executor/senderManager/createMemorySenderManager.js.map +1 -1
- package/esm/executor/senderManager/createRedisSenderManager.d.ts +2 -1
- package/esm/executor/senderManager/createRedisSenderManager.js +45 -26
- package/esm/executor/senderManager/createRedisSenderManager.js.map +1 -1
- package/esm/executor/senderManager/flushOnStartUp.js +7 -5
- package/esm/executor/senderManager/flushOnStartUp.js.map +1 -1
- package/esm/executor/senderManager/index.d.ts +1 -0
- package/esm/executor/senderManager/index.js +6 -2
- package/esm/executor/senderManager/index.js.map +1 -1
- package/esm/executor/senderManager/validateAndRefill.js +268 -85
- package/esm/executor/senderManager/validateAndRefill.js.map +1 -1
- package/esm/executor/utils.d.ts +8 -3
- package/esm/executor/utils.js +59 -27
- package/esm/executor/utils.js.map +1 -1
- package/esm/handlers/arbitrumGasPriceManager.d.ts +3 -2
- package/esm/handlers/arbitrumGasPriceManager.js +6 -2
- package/esm/handlers/arbitrumGasPriceManager.js.map +1 -1
- package/esm/handlers/citreaManager.d.ts +10 -0
- package/esm/handlers/citreaManager.js +17 -0
- package/esm/handlers/citreaManager.js.map +1 -0
- package/esm/handlers/eventManager.d.ts +9 -9
- package/esm/handlers/eventManager.js +59 -60
- package/esm/handlers/eventManager.js.map +1 -1
- package/esm/handlers/gasPriceManager.d.ts +17 -10
- package/esm/handlers/gasPriceManager.js +245 -99
- package/esm/handlers/gasPriceManager.js.map +1 -1
- package/esm/handlers/mantleGasPriceManager.d.ts +4 -4
- package/esm/handlers/mantleGasPriceManager.js +4 -4
- package/esm/handlers/mantleGasPriceManager.js.map +1 -1
- package/esm/handlers/optimismManager.d.ts +1 -1
- package/esm/handlers/optimismManager.js +1 -1
- package/esm/handlers/optimismManager.js.map +1 -1
- package/esm/mempool/index.d.ts +1 -1
- package/esm/mempool/index.js +1 -1
- package/esm/mempool/index.js.map +1 -1
- package/esm/mempool/mempool.d.ts +61 -22
- package/esm/mempool/mempool.js +223 -133
- package/esm/mempool/mempool.js.map +1 -1
- package/esm/mempool/reputationManager.d.ts +14 -14
- package/esm/mempool/reputationManager.js +36 -39
- package/esm/mempool/reputationManager.js.map +1 -1
- package/esm/mempool/statusManager.d.ts +20 -0
- package/esm/mempool/statusManager.js +143 -0
- package/esm/mempool/statusManager.js.map +1 -0
- package/esm/receiptCache/createMemoryReceiptCache.d.ts +3 -0
- package/esm/receiptCache/createMemoryReceiptCache.js +30 -0
- package/esm/receiptCache/createMemoryReceiptCache.js.map +1 -0
- package/esm/receiptCache/createRedisReceiptCache.d.ts +10 -0
- package/esm/receiptCache/createRedisReceiptCache.js +56 -0
- package/esm/receiptCache/createRedisReceiptCache.js.map +1 -0
- package/esm/receiptCache/index.d.ts +11 -0
- package/esm/receiptCache/index.js +21 -0
- package/esm/receiptCache/index.js.map +1 -0
- package/esm/rpc/createMethodHandler.js.map +1 -1
- package/esm/rpc/estimation/gasEstimationHandler.d.ts +2 -4
- package/esm/rpc/estimation/gasEstimationHandler.js.map +1 -1
- package/esm/rpc/estimation/gasEstimations06.d.ts +6 -7
- package/esm/rpc/estimation/gasEstimations06.js +1 -5
- package/esm/rpc/estimation/gasEstimations06.js.map +1 -1
- package/esm/rpc/estimation/gasEstimations07.d.ts +13 -41
- package/esm/rpc/estimation/gasEstimations07.js +27 -34
- package/esm/rpc/estimation/gasEstimations07.js.map +1 -1
- package/esm/{utils/preVerificationGasCalulator.d.ts → rpc/estimation/preVerificationGasCalculator.d.ts} +20 -6
- package/esm/{utils/preVerificationGasCalulator.js → rpc/estimation/preVerificationGasCalculator.js} +134 -48
- package/esm/rpc/estimation/preVerificationGasCalculator.js.map +1 -0
- package/esm/rpc/estimation/types.d.ts +4 -2
- package/esm/rpc/estimation/utils.d.ts +10 -8
- package/esm/rpc/estimation/utils.js +56 -53
- package/esm/rpc/estimation/utils.js.map +1 -1
- package/esm/rpc/methods/boost_sendUserOperation.d.ts +304 -0
- package/esm/rpc/methods/boost_sendUserOperation.js +1 -1
- package/esm/rpc/methods/boost_sendUserOperation.js.map +1 -1
- package/esm/rpc/methods/debug_bundler_clearReputation.js +1 -1
- package/esm/rpc/methods/debug_bundler_clearReputation.js.map +1 -1
- package/esm/rpc/methods/debug_bundler_clearState.js +1 -1
- package/esm/rpc/methods/debug_bundler_clearState.js.map +1 -1
- package/esm/rpc/methods/debug_bundler_dumpMempool.d.ts +338 -0
- package/esm/rpc/methods/debug_bundler_dumpReputation.js +1 -1
- package/esm/rpc/methods/debug_bundler_dumpReputation.js.map +1 -1
- package/esm/rpc/methods/eth_estimateUserOperationGas.d.ts +622 -14
- package/esm/rpc/methods/eth_estimateUserOperationGas.js +61 -30
- package/esm/rpc/methods/eth_estimateUserOperationGas.js.map +1 -1
- package/esm/rpc/methods/eth_getUserOperationByHash.d.ts +621 -11
- package/esm/rpc/methods/eth_getUserOperationByHash.js.map +1 -1
- package/esm/rpc/methods/eth_getUserOperationReceipt.d.ts +34 -34
- package/esm/rpc/methods/eth_getUserOperationReceipt.js +1 -1
- package/esm/rpc/methods/eth_sendUserOperation.d.ts +307 -3
- package/esm/rpc/methods/eth_sendUserOperation.js +153 -48
- package/esm/rpc/methods/eth_sendUserOperation.js.map +1 -1
- package/esm/rpc/methods/pimlico_getUserOperationStatus.js +1 -1
- package/esm/rpc/methods/pimlico_getUserOperationStatus.js.map +1 -1
- package/esm/rpc/methods/pimlico_sendUserOperationNow.d.ts +338 -34
- package/esm/rpc/methods/pimlico_sendUserOperationNow.js +26 -29
- package/esm/rpc/methods/pimlico_sendUserOperationNow.js.map +1 -1
- package/esm/rpc/methods/pimlico_simulateAssetChange.d.ts +620 -12
- package/esm/rpc/methods/pimlico_simulateAssetChange.js +14 -19
- package/esm/rpc/methods/pimlico_simulateAssetChange.js.map +1 -1
- package/esm/rpc/rpcHandler.d.ts +38 -26
- package/esm/rpc/rpcHandler.js +97 -44
- package/esm/rpc/rpcHandler.js.map +1 -1
- package/esm/rpc/server.d.ts +5 -5
- package/esm/rpc/server.js +15 -11
- package/esm/rpc/server.js.map +1 -1
- package/esm/rpc/validation/BundlerCollectorTracerV06.js +1 -1
- package/esm/rpc/validation/BundlerCollectorTracerV06.js.map +1 -1
- package/esm/rpc/validation/BundlerCollectorTracerV07.js +1 -1
- package/esm/rpc/validation/BundlerCollectorTracerV07.js.map +1 -1
- package/esm/rpc/validation/SafeValidator.d.ts +13 -14
- package/esm/rpc/validation/SafeValidator.js +24 -24
- package/esm/rpc/validation/SafeValidator.js.map +1 -1
- package/esm/rpc/validation/TracerResultParserV06.d.ts +2 -2
- package/esm/rpc/validation/TracerResultParserV06.js +11 -11
- package/esm/rpc/validation/TracerResultParserV06.js.map +1 -1
- package/esm/rpc/validation/TracerResultParserV07.d.ts +2 -2
- package/esm/rpc/validation/TracerResultParserV07.js +13 -13
- package/esm/rpc/validation/TracerResultParserV07.js.map +1 -1
- package/esm/rpc/validation/UnsafeValidator.d.ts +18 -14
- package/esm/rpc/validation/UnsafeValidator.js +76 -41
- package/esm/rpc/validation/UnsafeValidator.js.map +1 -1
- package/esm/store/createMempoolStore.d.ts +1 -1
- package/esm/store/createMempoolStore.js +79 -140
- package/esm/store/createMempoolStore.js.map +1 -1
- package/esm/store/index.d.ts +4 -75
- package/esm/store/index.js +4 -1
- package/esm/store/index.js.map +1 -1
- package/esm/store/outstanding/index.d.ts +13 -0
- package/esm/store/outstanding/index.js +16 -0
- package/esm/store/outstanding/index.js.map +1 -0
- package/esm/store/{createMemoryOutstandingStore.d.ts → outstanding/memory.d.ts} +14 -13
- package/esm/store/outstanding/memory.js +263 -0
- package/esm/store/outstanding/memory.js.map +1 -0
- package/esm/store/outstanding/redis.d.ts +11 -0
- package/esm/store/outstanding/redis.js +229 -0
- package/esm/store/outstanding/redis.js.map +1 -0
- package/esm/store/outstanding/types.d.ts +19 -0
- package/esm/store/outstanding/types.js +2 -0
- package/esm/store/outstanding/types.js.map +1 -0
- package/esm/store/processing/index.d.ts +11 -0
- package/esm/store/processing/index.js +17 -0
- package/esm/store/processing/index.js.map +1 -0
- package/esm/store/processing/memory.d.ts +19 -0
- package/esm/store/processing/memory.js +83 -0
- package/esm/store/processing/memory.js.map +1 -0
- package/esm/store/processing/redis.d.ts +26 -0
- package/esm/store/processing/redis.js +123 -0
- package/esm/store/processing/redis.js.map +1 -0
- package/esm/store/processing/types.d.ts +12 -0
- package/esm/store/processing/types.js +2 -0
- package/esm/store/processing/types.js.map +1 -0
- package/esm/store/types.d.ts +52 -0
- package/esm/store/types.js +2 -0
- package/esm/store/types.js.map +1 -0
- package/esm/types/contracts/Multicall3.d.ts +34 -0
- package/esm/types/contracts/Multicall3.js +31 -0
- package/esm/types/contracts/Multicall3.js.map +1 -0
- package/esm/types/contracts/PimlicoSimulations.d.ts +81 -0
- package/esm/types/contracts/PimlicoSimulations.js +105 -0
- package/esm/types/contracts/PimlicoSimulations.js.map +1 -1
- package/esm/types/contracts/index.d.ts +1 -1
- package/esm/types/contracts/index.js +1 -1
- package/esm/types/contracts/index.js.map +1 -1
- package/esm/types/gasPrice.js +0 -18
- package/esm/types/gasPrice.js.map +1 -1
- package/esm/types/interfaces.d.ts +15 -10
- package/esm/types/mempool.d.ts +3 -0
- package/esm/types/schemas.d.ts +13184 -4741
- package/esm/types/schemas.js +116 -27
- package/esm/types/schemas.js.map +1 -1
- package/esm/types/utils.d.ts +2 -5
- package/esm/types/utils.js +16 -18
- package/esm/types/utils.js.map +1 -1
- package/esm/types/validation.d.ts +7646 -6912
- package/esm/types/validation.js +122 -152
- package/esm/types/validation.js.map +1 -1
- package/esm/utils/eip7702.d.ts +2 -1
- package/esm/utils/eip7702.js +14 -8
- package/esm/utils/eip7702.js.map +1 -1
- package/esm/utils/entryPointOverrides.js +18 -4
- package/esm/utils/entryPointOverrides.js.map +1 -1
- package/esm/utils/helpers.d.ts +7 -1
- package/esm/utils/helpers.js +36 -11
- package/esm/utils/helpers.js.map +1 -1
- package/esm/utils/index.d.ts +0 -1
- package/esm/utils/index.js +0 -1
- package/esm/utils/index.js.map +1 -1
- package/esm/utils/metrics.d.ts +4 -1
- package/esm/utils/metrics.js +34 -7
- package/esm/utils/metrics.js.map +1 -1
- package/esm/utils/minMaxQueue/createMemoryMinMaxQueue.js +8 -9
- package/esm/utils/minMaxQueue/createMemoryMinMaxQueue.js.map +1 -1
- package/esm/utils/minMaxQueue/createRedisMinMaxQueue.d.ts +24 -2
- package/esm/utils/minMaxQueue/createRedisMinMaxQueue.js +85 -64
- package/esm/utils/minMaxQueue/createRedisMinMaxQueue.js.map +1 -1
- package/esm/utils/minMaxQueue/index.d.ts +2 -2
- package/esm/utils/minMaxQueue/index.js +4 -3
- package/esm/utils/minMaxQueue/index.js.map +1 -1
- package/esm/utils/rpc-reply.d.ts +3 -3
- package/esm/utils/rpc-reply.js.map +1 -1
- package/esm/utils/toViemStateOverrides.js +7 -7
- package/esm/utils/toViemStateOverrides.js.map +1 -1
- package/esm/utils/userop.d.ts +110 -56
- package/esm/utils/userop.js +161 -249
- package/esm/utils/userop.js.map +1 -1
- package/package.json +4 -2
- package/contracts/build-info/7710b5a048396e70.json +0 -1
- package/esm/executor/userOpMonitor.js +0 -326
- package/esm/executor/userOpMonitor.js.map +0 -1
- package/esm/executor/utilityWalletMonitor.d.ts +0 -19
- package/esm/executor/utilityWalletMonitor.js +0 -38
- package/esm/executor/utilityWalletMonitor.js.map +0 -1
- package/esm/mempool/monitoring.d.ts +0 -15
- package/esm/mempool/monitoring.js +0 -118
- package/esm/mempool/monitoring.js.map +0 -1
- package/esm/store/createMemoryOutstandingStore.js +0 -240
- package/esm/store/createMemoryOutstandingStore.js.map +0 -1
- package/esm/store/createRedisOutstandingStore.d.ts +0 -27
- package/esm/store/createRedisOutstandingStore.js +0 -344
- package/esm/store/createRedisOutstandingStore.js.map +0 -1
- package/esm/store/createRedisStore.d.ts +0 -9
- package/esm/store/createRedisStore.js +0 -131
- package/esm/store/createRedisStore.js.map +0 -1
- package/esm/store/createStore.d.ts +0 -6
- package/esm/store/createStore.js +0 -66
- package/esm/store/createStore.js.map +0 -1
- package/esm/types/contracts/CallEngine.d.ts +0 -28
- package/esm/types/contracts/CallEngine.js +0 -37
- package/esm/types/contracts/CallEngine.js.map +0 -1
- package/esm/utils/preVerificationGasCalulator.js.map +0 -1
package/esm/utils/userop.d.ts
CHANGED
|
@@ -1,65 +1,114 @@
|
|
|
1
|
-
import { type PackedUserOperation, type UserOperation, type
|
|
2
|
-
import { type Address, type Hex, type
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
export declare function
|
|
6
|
-
export declare function
|
|
7
|
-
export declare function
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
export declare function
|
|
15
|
-
|
|
16
|
-
|
|
1
|
+
import { type PackedUserOperation, type UserOperation, type UserOperation06, type UserOperation07, type UserOperation08, type UserOperation09 } from "../types/index.js";
|
|
2
|
+
import { type Address, type Hex, type TransactionReceipt } from "viem";
|
|
3
|
+
import { type EntryPointVersion } from "viem/account-abstraction";
|
|
4
|
+
import type { AltoConfig } from "../createConfig.js";
|
|
5
|
+
export declare function isVersion06(operation: UserOperation): operation is UserOperation06;
|
|
6
|
+
export declare function isVersion07(operation: UserOperation): operation is UserOperation07;
|
|
7
|
+
export declare function isVersion08(operation: UserOperation, entryPointAddress: Address): operation is UserOperation07;
|
|
8
|
+
export declare function isVersion09(operation: UserOperation, entryPointAddress: Address): operation is UserOperation07;
|
|
9
|
+
export declare function validatePaymasterSignature({ userOp, entryPoint }: {
|
|
10
|
+
userOp: UserOperation;
|
|
11
|
+
entryPoint: Address;
|
|
12
|
+
}): string | null;
|
|
13
|
+
export declare function isDeployment(userOp: UserOperation): boolean;
|
|
14
|
+
export declare function toViemUserOp(userOp: UserOperation07 | UserOperation08 | UserOperation09): {
|
|
15
|
+
paymaster: `0x${string}` | undefined;
|
|
16
|
+
paymasterData: `0x${string}` | undefined;
|
|
17
|
+
paymasterVerificationGasLimit: bigint | undefined;
|
|
18
|
+
paymasterPostOpGasLimit: bigint | undefined;
|
|
19
|
+
factory: `0x${string}` | undefined;
|
|
20
|
+
factoryData: `0x${string}` | undefined;
|
|
21
|
+
authorization: {
|
|
22
|
+
address: `0x${string}`;
|
|
23
|
+
chainId: number;
|
|
24
|
+
nonce: number;
|
|
25
|
+
r: `0x${string}`;
|
|
26
|
+
s: `0x${string}`;
|
|
27
|
+
yParity: number;
|
|
28
|
+
v: bigint | undefined;
|
|
29
|
+
} | undefined;
|
|
30
|
+
sender: `0x${string}`;
|
|
31
|
+
nonce: bigint;
|
|
32
|
+
callData: `0x${string}`;
|
|
17
33
|
callGasLimit: bigint;
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
export declare function unpackGasLimits(gasLimits: Hex): {
|
|
21
|
-
maxPriorityFeePerGas: bigint;
|
|
34
|
+
verificationGasLimit: bigint;
|
|
35
|
+
preVerificationGas: bigint;
|
|
22
36
|
maxFeePerGas: bigint;
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
37
|
+
maxPriorityFeePerGas: bigint;
|
|
38
|
+
signature: `0x${string}`;
|
|
39
|
+
eip7702Auth?: {
|
|
40
|
+
nonce: number;
|
|
41
|
+
contractAddress: `0x${string}`;
|
|
42
|
+
chainId: number;
|
|
43
|
+
r: `0x${string}`;
|
|
44
|
+
s: `0x${string}`;
|
|
45
|
+
yParity: number;
|
|
46
|
+
v?: bigint | undefined;
|
|
47
|
+
} | {
|
|
48
|
+
address: `0x${string}`;
|
|
49
|
+
nonce: number;
|
|
50
|
+
chainId: number;
|
|
51
|
+
r: `0x${string}`;
|
|
52
|
+
s: `0x${string}`;
|
|
53
|
+
yParity: number;
|
|
54
|
+
v?: bigint | undefined;
|
|
55
|
+
} | null | undefined;
|
|
30
56
|
} | {
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
57
|
+
paymasterSignature: `0x${string}` | undefined;
|
|
58
|
+
paymaster: `0x${string}` | undefined;
|
|
59
|
+
paymasterData: `0x${string}` | undefined;
|
|
60
|
+
paymasterVerificationGasLimit: bigint | undefined;
|
|
61
|
+
paymasterPostOpGasLimit: bigint | undefined;
|
|
62
|
+
factory: `0x${string}` | undefined;
|
|
63
|
+
factoryData: `0x${string}` | undefined;
|
|
64
|
+
authorization: {
|
|
65
|
+
address: `0x${string}`;
|
|
66
|
+
chainId: number;
|
|
67
|
+
nonce: number;
|
|
68
|
+
r: `0x${string}`;
|
|
69
|
+
s: `0x${string}`;
|
|
70
|
+
yParity: number;
|
|
71
|
+
v: bigint | undefined;
|
|
72
|
+
} | undefined;
|
|
73
|
+
sender: `0x${string}`;
|
|
74
|
+
nonce: bigint;
|
|
75
|
+
callData: `0x${string}`;
|
|
76
|
+
callGasLimit: bigint;
|
|
77
|
+
verificationGasLimit: bigint;
|
|
78
|
+
preVerificationGas: bigint;
|
|
79
|
+
maxFeePerGas: bigint;
|
|
80
|
+
maxPriorityFeePerGas: bigint;
|
|
81
|
+
signature: `0x${string}`;
|
|
82
|
+
eip7702Auth?: {
|
|
83
|
+
nonce: number;
|
|
84
|
+
contractAddress: `0x${string}`;
|
|
85
|
+
chainId: number;
|
|
86
|
+
r: `0x${string}`;
|
|
87
|
+
s: `0x${string}`;
|
|
88
|
+
yParity: number;
|
|
89
|
+
v?: bigint | undefined;
|
|
90
|
+
} | {
|
|
91
|
+
address: `0x${string}`;
|
|
92
|
+
nonce: number;
|
|
93
|
+
chainId: number;
|
|
94
|
+
r: `0x${string}`;
|
|
95
|
+
s: `0x${string}`;
|
|
96
|
+
yParity: number;
|
|
97
|
+
v?: bigint | undefined;
|
|
98
|
+
} | null | undefined;
|
|
35
99
|
};
|
|
36
|
-
export declare function toPackedUserOp(
|
|
100
|
+
export declare function toPackedUserOp(unpacked: UserOperation07 | UserOperation08 | UserOperation09): PackedUserOperation;
|
|
37
101
|
export declare function deepHexlify(obj: any): any;
|
|
38
102
|
export declare function getAddressFromInitCodeOrPaymasterAndData(data: Hex): Address | null;
|
|
39
|
-
export declare
|
|
40
|
-
userOp: UserOperationV06;
|
|
41
|
-
entryPointAddress: Address;
|
|
42
|
-
chainId: number;
|
|
43
|
-
}) => `0x${string}`;
|
|
44
|
-
export declare const getUserOpHashV07: ({ userOp, entryPointAddress, chainId }: {
|
|
45
|
-
userOp: PackedUserOperation;
|
|
46
|
-
entryPointAddress: Address;
|
|
47
|
-
chainId: number;
|
|
48
|
-
}) => `0x${string}`;
|
|
49
|
-
export declare const getUserOpHashV08: ({ userOp, entryPointAddress, publicClient }: {
|
|
50
|
-
userOp: UserOperationV07;
|
|
51
|
-
entryPointAddress: Address;
|
|
52
|
-
chainId: number;
|
|
53
|
-
publicClient: PublicClient;
|
|
54
|
-
}) => Promise<`0x${string}`>;
|
|
55
|
-
export declare const getUserOpHash: ({ userOp, entryPointAddress, chainId, publicClient }: {
|
|
103
|
+
export declare function getUserOpHash({ userOp, entryPointAddress, chainId }: {
|
|
56
104
|
userOp: UserOperation;
|
|
57
105
|
entryPointAddress: Address;
|
|
58
106
|
chainId: number;
|
|
59
|
-
|
|
60
|
-
}) => `0x${string}` | Promise<`0x${string}`>;
|
|
107
|
+
}): Hex;
|
|
61
108
|
export declare const getNonceKeyAndSequence: (nonce: bigint) => bigint[];
|
|
62
|
-
export declare function
|
|
109
|
+
export declare function hasPaymaster(userOp: UserOperation): boolean;
|
|
110
|
+
export declare function calculateRequiredPrefund(userOp: UserOperation): bigint;
|
|
111
|
+
export declare function toUnpackedUserOp(packedUserOp: PackedUserOperation): UserOperation07;
|
|
63
112
|
export declare function parseUserOpReceipt(userOpHash: Hex, receipt: TransactionReceipt): {
|
|
64
113
|
sender: `0x${string}`;
|
|
65
114
|
userOpHash: `0x${string}`;
|
|
@@ -71,20 +120,20 @@ export declare function parseUserOpReceipt(userOpHash: Hex, receipt: Transaction
|
|
|
71
120
|
logs: {
|
|
72
121
|
address: `0x${string}`;
|
|
73
122
|
data: `0x${string}`;
|
|
123
|
+
transactionHash: `0x${string}`;
|
|
74
124
|
logIndex: bigint;
|
|
75
125
|
transactionIndex: bigint;
|
|
76
|
-
transactionHash: `0x${string}`;
|
|
77
126
|
blockHash: `0x${string}`;
|
|
78
127
|
blockNumber: bigint;
|
|
79
128
|
topics: `0x${string}`[];
|
|
80
129
|
}[];
|
|
81
130
|
receipt: {
|
|
82
|
-
to: `0x${string}` | null;
|
|
83
131
|
gasUsed: bigint;
|
|
132
|
+
to: `0x${string}` | null;
|
|
84
133
|
status: bigint | null;
|
|
134
|
+
transactionHash: `0x${string}`;
|
|
85
135
|
contractAddress: `0x${string}` | null;
|
|
86
136
|
transactionIndex: bigint;
|
|
87
|
-
transactionHash: `0x${string}`;
|
|
88
137
|
blockHash: `0x${string}`;
|
|
89
138
|
blockNumber: bigint;
|
|
90
139
|
from: `0x${string}`;
|
|
@@ -92,9 +141,9 @@ export declare function parseUserOpReceipt(userOpHash: Hex, receipt: Transaction
|
|
|
92
141
|
logs: {
|
|
93
142
|
address: `0x${string}`;
|
|
94
143
|
data: `0x${string}`;
|
|
144
|
+
transactionHash: `0x${string}`;
|
|
95
145
|
logIndex: bigint;
|
|
96
146
|
transactionIndex: bigint;
|
|
97
|
-
transactionHash: `0x${string}`;
|
|
98
147
|
blockHash: `0x${string}`;
|
|
99
148
|
blockNumber: bigint;
|
|
100
149
|
topics: `0x${string}`[];
|
|
@@ -105,4 +154,9 @@ export declare function parseUserOpReceipt(userOpHash: Hex, receipt: Transaction
|
|
|
105
154
|
paymaster?: `0x${string}` | undefined;
|
|
106
155
|
reason?: `0x${string}` | undefined;
|
|
107
156
|
};
|
|
157
|
+
export declare const getViemEntryPointVersion: (userOp: UserOperation, entryPoint: Address) => EntryPointVersion;
|
|
158
|
+
export declare const getEntryPointSimulationsAddress: ({ version, config }: {
|
|
159
|
+
version: EntryPointVersion;
|
|
160
|
+
config: AltoConfig;
|
|
161
|
+
}) => Address | undefined;
|
|
108
162
|
//# sourceMappingURL=userop.d.ts.map
|