@pimlico/alto 0.0.19 → 0.0.20

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (337) hide show
  1. package/contracts/EIP712.sol/EIP712.json +1 -1
  2. package/contracts/ERC165.sol/ERC165.json +1 -1
  3. package/contracts/ERC20.sol/ERC20.json +1 -1
  4. package/contracts/Eip7702Support.sol/Eip7702Support.json +1 -1
  5. package/contracts/EntryPoint.sol/EntryPoint.json +1 -1
  6. package/contracts/EntryPointFilterOpsOverride.sol/EntryPointFilterOpsOverride06.json +1 -1
  7. package/contracts/EntryPointFilterOpsOverride.sol/EntryPointFilterOpsOverride07.json +1 -1
  8. package/contracts/EntryPointFilterOpsOverride.sol/EntryPointFilterOpsOverride08.json +1 -1
  9. package/contracts/EntryPointFilterOpsOverride.sol/EntryPointFilterOpsOverride09.json +1 -0
  10. package/contracts/EntryPointGasEstimationOverride.sol/EntryPointGasEstimationOverride06.json +1 -1
  11. package/contracts/EntryPointSimulations.sol/EntryPointSimulations07.json +1 -1
  12. package/contracts/EntryPointSimulations.sol/EntryPointSimulations08.json +1 -1
  13. package/contracts/EntryPointSimulations.sol/EntryPointSimulations09.json +1 -0
  14. package/contracts/Exec.sol/Exec.json +1 -1
  15. package/contracts/IAccount.sol/IAccount.json +1 -1
  16. package/contracts/IAccountExecute.sol/IAccountExecute.json +1 -1
  17. package/contracts/IAggregator.sol/IAggregator.json +1 -1
  18. package/contracts/IERC165.sol/IERC165.json +1 -1
  19. package/contracts/IERC5267.sol/IERC5267.json +1 -1
  20. package/contracts/IEntryPoint.sol/IEntryPoint.json +1 -1
  21. package/contracts/IEntryPointFilterOpsOverride.sol/IEntryPointFilterOpsOverride08.json +1 -0
  22. package/contracts/IEntryPointFilterOpsOverride.sol/IEntryPointFilterOpsOverride09.json +1 -0
  23. package/contracts/IEntryPointSimulations.sol/IEntryPointSimulations.json +1 -1
  24. package/contracts/INonceManager.sol/INonceManager.json +1 -1
  25. package/contracts/IPaymaster.sol/IPaymaster.json +1 -1
  26. package/contracts/ISenderCreator.sol/ISenderCreator.json +1 -1
  27. package/contracts/IStakeManager.sol/IStakeManager.json +1 -1
  28. package/contracts/LibBytes.sol/LibBytes.json +1 -1
  29. package/contracts/Math.sol/Math.json +1 -1
  30. package/contracts/MessageHashUtils.sol/MessageHashUtils.json +1 -1
  31. package/contracts/NonceManager.sol/NonceManager.json +1 -1
  32. package/contracts/Panic.sol/Panic.json +1 -1
  33. package/contracts/PimlicoSimulations.sol/PimlicoSimulations.json +1 -1
  34. package/contracts/ReentrancyGuard.sol/ReentrancyGuard.json +1 -1
  35. package/contracts/ReentrancyGuardTransient.sol/ReentrancyGuardTransient.json +1 -1
  36. package/contracts/SafeCast.sol/SafeCast.json +1 -1
  37. package/contracts/SenderCreator.sol/SenderCreator.json +1 -1
  38. package/contracts/ShortStrings.sol/ShortStrings.json +1 -1
  39. package/contracts/SignedMath.sol/SignedMath.json +1 -1
  40. package/contracts/SimulationOverrideHelper.sol/SimulationOverrideHelper.json +1 -0
  41. package/contracts/StakeManager.sol/StakeManager.json +1 -1
  42. package/contracts/StorageSlot.sol/StorageSlot.json +1 -1
  43. package/contracts/Strings.sol/Strings.json +1 -1
  44. package/contracts/TransientSlot.sol/TransientSlot.json +1 -1
  45. package/contracts/UserOperation.sol/UserOperationLib.json +1 -1
  46. package/contracts/UserOperationLib.sol/UserOperationLib.json +1 -1
  47. package/contracts/account-abstraction-v9/contracts/interfaces/IAggregator.sol/IAggregator.json +1 -0
  48. package/contracts/account-abstraction-v9/contracts/interfaces/IEntryPoint.sol/IEntryPoint.json +1 -0
  49. package/contracts/account-abstraction-v9/contracts/interfaces/INonceManager.sol/INonceManager.json +1 -0
  50. package/contracts/account-abstraction-v9/contracts/interfaces/IStakeManager.sol/IStakeManager.json +1 -0
  51. package/contracts/build-info/338795fc743ca612.json +1 -0
  52. package/contracts/build-info/44a9648cfe32a468.json +1 -0
  53. package/contracts/build-info/{880955d5786bfdae.json → 8dbf8a4ad39019b5.json} +1 -1
  54. package/contracts/contracts/interfaces/IAggregator.sol/IAggregator.json +1 -1
  55. package/contracts/contracts/interfaces/IEntryPoint.sol/IEntryPoint.json +1 -1
  56. package/contracts/contracts/interfaces/INonceManager.sol/INonceManager.json +1 -1
  57. package/contracts/contracts/interfaces/IStakeManager.sol/IStakeManager.json +1 -1
  58. package/contracts/core/Eip7702Support.sol/Eip7702Support.json +1 -0
  59. package/contracts/core/NonceManager.sol/NonceManager.json +1 -0
  60. package/contracts/core/SenderCreator.sol/SenderCreator.json +1 -0
  61. package/contracts/core/StakeManager.sol/StakeManager.json +1 -0
  62. package/contracts/core/UserOperationLib.sol/UserOperationLib.json +1 -0
  63. package/contracts/interfaces/IAccount.sol/IAccount.json +1 -0
  64. package/contracts/interfaces/IAccountExecute.sol/IAccountExecute.json +1 -0
  65. package/contracts/interfaces/IAggregator.sol/IAggregator.json +1 -1
  66. package/contracts/interfaces/IEntryPoint.sol/IEntryPoint.json +1 -1
  67. package/contracts/interfaces/INonceManager.sol/INonceManager.json +1 -1
  68. package/contracts/interfaces/IPaymaster.sol/IPaymaster.json +1 -0
  69. package/contracts/interfaces/ISenderCreator.sol/ISenderCreator.json +1 -0
  70. package/contracts/interfaces/IStakeManager.sol/IStakeManager.json +1 -1
  71. package/contracts/overrides/Eip7702Support.sol/Eip7702Support.json +1 -0
  72. package/contracts/overrides/NonceManager.sol/NonceManager.json +1 -0
  73. package/contracts/overrides/SenderCreator.sol/SenderCreator.json +1 -0
  74. package/contracts/overrides/StakeManager.sol/StakeManager.json +1 -0
  75. package/contracts/overrides/UserOperationLib.sol/UserOperationLib.json +1 -0
  76. package/contracts/utils/Exec.sol/Exec.json +1 -1
  77. package/contracts/utils/StorageSlot.sol/StorageSlot.json +1 -0
  78. package/contracts/v09/EntryPoint.sol/EntryPoint.json +1 -0
  79. package/esm/cli/alto.js +13 -6
  80. package/esm/cli/alto.js.map +1 -1
  81. package/esm/cli/config/bundler.d.ts +190 -148
  82. package/esm/cli/config/bundler.js +72 -83
  83. package/esm/cli/config/bundler.js.map +1 -1
  84. package/esm/cli/config/options.d.ts +2 -1
  85. package/esm/cli/config/options.js +105 -68
  86. package/esm/cli/config/options.js.map +1 -1
  87. package/esm/cli/customTransport.d.ts +3 -3
  88. package/esm/cli/deploySimulationsContract.d.ts +1 -0
  89. package/esm/cli/deploySimulationsContract.js +41 -5
  90. package/esm/cli/deploySimulationsContract.js.map +1 -1
  91. package/esm/cli/handler.js +48 -52
  92. package/esm/cli/handler.js.map +1 -1
  93. package/esm/cli/setupServer.js +46 -47
  94. package/esm/cli/setupServer.js.map +1 -1
  95. package/esm/cli/shutDown.d.ts +20 -0
  96. package/esm/cli/shutDown.js +260 -0
  97. package/esm/cli/shutDown.js.map +1 -0
  98. package/esm/contracts/EntryPointFilterOpsOverride.sol/EntryPointFilterOpsOverride06.json +1 -1
  99. package/esm/contracts/EntryPointFilterOpsOverride.sol/EntryPointFilterOpsOverride07.json +1 -1
  100. package/esm/contracts/EntryPointFilterOpsOverride.sol/EntryPointFilterOpsOverride08.json +1 -1
  101. package/esm/contracts/EntryPointFilterOpsOverride.sol/EntryPointFilterOpsOverride09.json +1 -0
  102. package/esm/contracts/EntryPointGasEstimationOverride.sol/EntryPointGasEstimationOverride06.json +1 -1
  103. package/esm/contracts/EntryPointSimulations.sol/EntryPointSimulations07.json +1 -1
  104. package/esm/contracts/EntryPointSimulations.sol/EntryPointSimulations08.json +1 -1
  105. package/esm/contracts/EntryPointSimulations.sol/EntryPointSimulations09.json +1 -0
  106. package/esm/contracts/PimlicoSimulations.sol/PimlicoSimulations.json +1 -1
  107. package/esm/createConfig.d.ts +9 -2
  108. package/esm/createConfig.js.map +1 -1
  109. package/esm/executor/{userOpMonitor.d.ts → bundleManager.d.ts} +38 -32
  110. package/esm/executor/{userOpMonitor.js → bundleManager.js} +127 -99
  111. package/esm/executor/bundleManager.js.map +1 -0
  112. package/esm/executor/executor.d.ts +4 -3
  113. package/esm/executor/executor.js +33 -20
  114. package/esm/executor/executor.js.map +1 -1
  115. package/esm/executor/executorManager.d.ts +17 -15
  116. package/esm/executor/executorManager.js +130 -55
  117. package/esm/executor/executorManager.js.map +1 -1
  118. package/esm/executor/filterOpsAndEstimateGas.d.ts +17 -2
  119. package/esm/executor/filterOpsAndEstimateGas.js +100 -77
  120. package/esm/executor/filterOpsAndEstimateGas.js.map +1 -1
  121. package/esm/executor/index.d.ts +1 -0
  122. package/esm/executor/index.js +1 -0
  123. package/esm/executor/index.js.map +1 -1
  124. package/esm/executor/senderManager/createMemorySenderManager.js +13 -0
  125. package/esm/executor/senderManager/createMemorySenderManager.js.map +1 -1
  126. package/esm/executor/senderManager/createRedisSenderManager.d.ts +2 -1
  127. package/esm/executor/senderManager/createRedisSenderManager.js +3 -6
  128. package/esm/executor/senderManager/createRedisSenderManager.js.map +1 -1
  129. package/esm/executor/senderManager/flushOnStartUp.js +4 -4
  130. package/esm/executor/senderManager/flushOnStartUp.js.map +1 -1
  131. package/esm/executor/senderManager/index.d.ts +1 -0
  132. package/esm/executor/senderManager/index.js +6 -2
  133. package/esm/executor/senderManager/index.js.map +1 -1
  134. package/esm/executor/senderManager/validateAndRefill.js +2 -2
  135. package/esm/executor/senderManager/validateAndRefill.js.map +1 -1
  136. package/esm/executor/utilityWalletMonitor.d.ts +4 -4
  137. package/esm/executor/utilityWalletMonitor.js +1 -1
  138. package/esm/executor/utilityWalletMonitor.js.map +1 -1
  139. package/esm/executor/utils.d.ts +7 -2
  140. package/esm/executor/utils.js +57 -26
  141. package/esm/executor/utils.js.map +1 -1
  142. package/esm/handlers/arbitrumGasPriceManager.d.ts +3 -2
  143. package/esm/handlers/arbitrumGasPriceManager.js +6 -2
  144. package/esm/handlers/arbitrumGasPriceManager.js.map +1 -1
  145. package/esm/handlers/eventManager.d.ts +9 -9
  146. package/esm/handlers/eventManager.js +59 -60
  147. package/esm/handlers/eventManager.js.map +1 -1
  148. package/esm/handlers/gasPriceManager.d.ts +8 -9
  149. package/esm/handlers/gasPriceManager.js +68 -80
  150. package/esm/handlers/gasPriceManager.js.map +1 -1
  151. package/esm/handlers/mantleGasPriceManager.d.ts +4 -4
  152. package/esm/handlers/mantleGasPriceManager.js +4 -4
  153. package/esm/handlers/mantleGasPriceManager.js.map +1 -1
  154. package/esm/handlers/optimismManager.d.ts +1 -1
  155. package/esm/handlers/optimismManager.js +1 -1
  156. package/esm/handlers/optimismManager.js.map +1 -1
  157. package/esm/mempool/index.d.ts +1 -1
  158. package/esm/mempool/index.js +1 -1
  159. package/esm/mempool/index.js.map +1 -1
  160. package/esm/mempool/mempool.d.ts +57 -22
  161. package/esm/mempool/mempool.js +180 -134
  162. package/esm/mempool/mempool.js.map +1 -1
  163. package/esm/mempool/reputationManager.d.ts +14 -14
  164. package/esm/mempool/reputationManager.js +36 -39
  165. package/esm/mempool/reputationManager.js.map +1 -1
  166. package/esm/mempool/statusManager.d.ts +20 -0
  167. package/esm/mempool/statusManager.js +143 -0
  168. package/esm/mempool/statusManager.js.map +1 -0
  169. package/esm/receiptCache/createMemoryReceiptCache.d.ts +3 -0
  170. package/esm/receiptCache/createMemoryReceiptCache.js +30 -0
  171. package/esm/receiptCache/createMemoryReceiptCache.js.map +1 -0
  172. package/esm/receiptCache/createRedisReceiptCache.d.ts +10 -0
  173. package/esm/receiptCache/createRedisReceiptCache.js +56 -0
  174. package/esm/receiptCache/createRedisReceiptCache.js.map +1 -0
  175. package/esm/receiptCache/index.d.ts +11 -0
  176. package/esm/receiptCache/index.js +21 -0
  177. package/esm/receiptCache/index.js.map +1 -0
  178. package/esm/rpc/createMethodHandler.js.map +1 -1
  179. package/esm/rpc/estimation/gasEstimationHandler.d.ts +2 -4
  180. package/esm/rpc/estimation/gasEstimationHandler.js.map +1 -1
  181. package/esm/rpc/estimation/gasEstimations06.d.ts +6 -7
  182. package/esm/rpc/estimation/gasEstimations06.js +1 -5
  183. package/esm/rpc/estimation/gasEstimations06.js.map +1 -1
  184. package/esm/rpc/estimation/gasEstimations07.d.ts +13 -41
  185. package/esm/rpc/estimation/gasEstimations07.js +27 -34
  186. package/esm/rpc/estimation/gasEstimations07.js.map +1 -1
  187. package/esm/{utils/preVerificationGasCalulator.d.ts → rpc/estimation/preVerificationGasCalculator.d.ts} +20 -6
  188. package/esm/{utils/preVerificationGasCalulator.js → rpc/estimation/preVerificationGasCalculator.js} +95 -47
  189. package/esm/rpc/estimation/preVerificationGasCalculator.js.map +1 -0
  190. package/esm/rpc/estimation/types.d.ts +4 -2
  191. package/esm/rpc/estimation/utils.d.ts +10 -8
  192. package/esm/rpc/estimation/utils.js +54 -48
  193. package/esm/rpc/estimation/utils.js.map +1 -1
  194. package/esm/rpc/methods/boost_sendUserOperation.d.ts +304 -0
  195. package/esm/rpc/methods/debug_bundler_clearReputation.js +1 -1
  196. package/esm/rpc/methods/debug_bundler_clearReputation.js.map +1 -1
  197. package/esm/rpc/methods/debug_bundler_clearState.js +1 -1
  198. package/esm/rpc/methods/debug_bundler_clearState.js.map +1 -1
  199. package/esm/rpc/methods/debug_bundler_dumpMempool.d.ts +338 -0
  200. package/esm/rpc/methods/debug_bundler_dumpReputation.js +1 -1
  201. package/esm/rpc/methods/debug_bundler_dumpReputation.js.map +1 -1
  202. package/esm/rpc/methods/eth_estimateUserOperationGas.d.ts +622 -14
  203. package/esm/rpc/methods/eth_estimateUserOperationGas.js +50 -29
  204. package/esm/rpc/methods/eth_estimateUserOperationGas.js.map +1 -1
  205. package/esm/rpc/methods/eth_getUserOperationByHash.d.ts +621 -11
  206. package/esm/rpc/methods/eth_getUserOperationByHash.js.map +1 -1
  207. package/esm/rpc/methods/eth_getUserOperationReceipt.d.ts +26 -26
  208. package/esm/rpc/methods/eth_getUserOperationReceipt.js +1 -1
  209. package/esm/rpc/methods/eth_sendUserOperation.d.ts +305 -1
  210. package/esm/rpc/methods/eth_sendUserOperation.js +132 -36
  211. package/esm/rpc/methods/eth_sendUserOperation.js.map +1 -1
  212. package/esm/rpc/methods/pimlico_getUserOperationStatus.js +1 -1
  213. package/esm/rpc/methods/pimlico_getUserOperationStatus.js.map +1 -1
  214. package/esm/rpc/methods/pimlico_sendUserOperationNow.d.ts +330 -26
  215. package/esm/rpc/methods/pimlico_sendUserOperationNow.js +15 -27
  216. package/esm/rpc/methods/pimlico_sendUserOperationNow.js.map +1 -1
  217. package/esm/rpc/methods/pimlico_simulateAssetChange.d.ts +620 -12
  218. package/esm/rpc/methods/pimlico_simulateAssetChange.js +14 -19
  219. package/esm/rpc/methods/pimlico_simulateAssetChange.js.map +1 -1
  220. package/esm/rpc/rpcHandler.d.ts +21 -22
  221. package/esm/rpc/rpcHandler.js +15 -17
  222. package/esm/rpc/rpcHandler.js.map +1 -1
  223. package/esm/rpc/server.d.ts +5 -5
  224. package/esm/rpc/server.js +15 -11
  225. package/esm/rpc/server.js.map +1 -1
  226. package/esm/rpc/validation/BundlerCollectorTracerV06.js +1 -1
  227. package/esm/rpc/validation/BundlerCollectorTracerV06.js.map +1 -1
  228. package/esm/rpc/validation/BundlerCollectorTracerV07.js +1 -1
  229. package/esm/rpc/validation/BundlerCollectorTracerV07.js.map +1 -1
  230. package/esm/rpc/validation/SafeValidator.d.ts +13 -14
  231. package/esm/rpc/validation/SafeValidator.js +24 -24
  232. package/esm/rpc/validation/SafeValidator.js.map +1 -1
  233. package/esm/rpc/validation/TracerResultParserV06.d.ts +2 -2
  234. package/esm/rpc/validation/TracerResultParserV06.js +11 -11
  235. package/esm/rpc/validation/TracerResultParserV06.js.map +1 -1
  236. package/esm/rpc/validation/TracerResultParserV07.d.ts +2 -2
  237. package/esm/rpc/validation/TracerResultParserV07.js +13 -13
  238. package/esm/rpc/validation/TracerResultParserV07.js.map +1 -1
  239. package/esm/rpc/validation/UnsafeValidator.d.ts +18 -14
  240. package/esm/rpc/validation/UnsafeValidator.js +71 -40
  241. package/esm/rpc/validation/UnsafeValidator.js.map +1 -1
  242. package/esm/store/createMempoolStore.d.ts +1 -1
  243. package/esm/store/createMempoolStore.js +63 -139
  244. package/esm/store/createMempoolStore.js.map +1 -1
  245. package/esm/store/index.d.ts +4 -75
  246. package/esm/store/index.js +4 -1
  247. package/esm/store/index.js.map +1 -1
  248. package/esm/store/outstanding/index.d.ts +13 -0
  249. package/esm/store/outstanding/index.js +16 -0
  250. package/esm/store/outstanding/index.js.map +1 -0
  251. package/esm/store/{createMemoryOutstandingStore.d.ts → outstanding/memory.d.ts} +14 -13
  252. package/esm/store/outstanding/memory.js +263 -0
  253. package/esm/store/outstanding/memory.js.map +1 -0
  254. package/esm/store/outstanding/redis.d.ts +11 -0
  255. package/esm/store/outstanding/redis.js +229 -0
  256. package/esm/store/outstanding/redis.js.map +1 -0
  257. package/esm/store/outstanding/types.d.ts +19 -0
  258. package/esm/store/outstanding/types.js +2 -0
  259. package/esm/store/outstanding/types.js.map +1 -0
  260. package/esm/store/processing/index.d.ts +11 -0
  261. package/esm/store/processing/index.js +17 -0
  262. package/esm/store/processing/index.js.map +1 -0
  263. package/esm/store/processing/memory.d.ts +16 -0
  264. package/esm/store/processing/memory.js +58 -0
  265. package/esm/store/processing/memory.js.map +1 -0
  266. package/esm/store/processing/redis.d.ts +23 -0
  267. package/esm/store/processing/redis.js +85 -0
  268. package/esm/store/processing/redis.js.map +1 -0
  269. package/esm/store/processing/types.d.ts +10 -0
  270. package/esm/store/processing/types.js +2 -0
  271. package/esm/store/processing/types.js.map +1 -0
  272. package/esm/store/types.d.ts +50 -0
  273. package/esm/store/types.js +2 -0
  274. package/esm/store/types.js.map +1 -0
  275. package/esm/types/contracts/PimlicoSimulations.d.ts +81 -0
  276. package/esm/types/contracts/PimlicoSimulations.js +105 -0
  277. package/esm/types/contracts/PimlicoSimulations.js.map +1 -1
  278. package/esm/types/gasPrice.js +0 -18
  279. package/esm/types/gasPrice.js.map +1 -1
  280. package/esm/types/interfaces.d.ts +15 -10
  281. package/esm/types/mempool.d.ts +3 -0
  282. package/esm/types/schemas.d.ts +13174 -4732
  283. package/esm/types/schemas.js +113 -25
  284. package/esm/types/schemas.js.map +1 -1
  285. package/esm/types/utils.d.ts +2 -5
  286. package/esm/types/utils.js +16 -18
  287. package/esm/types/utils.js.map +1 -1
  288. package/esm/types/validation.d.ts +7646 -6912
  289. package/esm/types/validation.js +122 -152
  290. package/esm/types/validation.js.map +1 -1
  291. package/esm/utils/eip7702.d.ts +2 -1
  292. package/esm/utils/eip7702.js +14 -8
  293. package/esm/utils/eip7702.js.map +1 -1
  294. package/esm/utils/entryPointOverrides.js +18 -4
  295. package/esm/utils/entryPointOverrides.js.map +1 -1
  296. package/esm/utils/helpers.d.ts +2 -1
  297. package/esm/utils/helpers.js +30 -11
  298. package/esm/utils/helpers.js.map +1 -1
  299. package/esm/utils/index.d.ts +0 -1
  300. package/esm/utils/index.js +0 -1
  301. package/esm/utils/index.js.map +1 -1
  302. package/esm/utils/metrics.d.ts +2 -1
  303. package/esm/utils/metrics.js +15 -8
  304. package/esm/utils/metrics.js.map +1 -1
  305. package/esm/utils/minMaxQueue/createMemoryMinMaxQueue.js +8 -9
  306. package/esm/utils/minMaxQueue/createMemoryMinMaxQueue.js.map +1 -1
  307. package/esm/utils/minMaxQueue/createRedisMinMaxQueue.d.ts +24 -2
  308. package/esm/utils/minMaxQueue/createRedisMinMaxQueue.js +85 -64
  309. package/esm/utils/minMaxQueue/createRedisMinMaxQueue.js.map +1 -1
  310. package/esm/utils/minMaxQueue/index.d.ts +2 -2
  311. package/esm/utils/minMaxQueue/index.js +4 -3
  312. package/esm/utils/minMaxQueue/index.js.map +1 -1
  313. package/esm/utils/rpc-reply.d.ts +3 -3
  314. package/esm/utils/rpc-reply.js.map +1 -1
  315. package/esm/utils/toViemStateOverrides.js +7 -7
  316. package/esm/utils/toViemStateOverrides.js.map +1 -1
  317. package/esm/utils/userop.d.ts +87 -55
  318. package/esm/utils/userop.js +138 -248
  319. package/esm/utils/userop.js.map +1 -1
  320. package/package.json +4 -2
  321. package/contracts/build-info/7710b5a048396e70.json +0 -1
  322. package/esm/executor/userOpMonitor.js.map +0 -1
  323. package/esm/mempool/monitoring.d.ts +0 -15
  324. package/esm/mempool/monitoring.js +0 -118
  325. package/esm/mempool/monitoring.js.map +0 -1
  326. package/esm/store/createMemoryOutstandingStore.js +0 -240
  327. package/esm/store/createMemoryOutstandingStore.js.map +0 -1
  328. package/esm/store/createRedisOutstandingStore.d.ts +0 -27
  329. package/esm/store/createRedisOutstandingStore.js +0 -344
  330. package/esm/store/createRedisOutstandingStore.js.map +0 -1
  331. package/esm/store/createRedisStore.d.ts +0 -9
  332. package/esm/store/createRedisStore.js +0 -131
  333. package/esm/store/createRedisStore.js.map +0 -1
  334. package/esm/store/createStore.d.ts +0 -6
  335. package/esm/store/createStore.js +0 -66
  336. package/esm/store/createStore.js.map +0 -1
  337. package/esm/utils/preVerificationGasCalulator.js.map +0 -1
@@ -1,7 +1,6 @@
1
1
  import { RpcError, gasStationResult } from "../types/index.js";
2
- import { maxBigInt, minBigInt } from "../utils/index.js";
2
+ import { maxBigInt, minBigInt, scaleBigIntByPercent } from "../utils/index.js";
3
3
  import * as sentry from "@sentry/node";
4
- import { parseGwei } from "viem";
5
4
  import { polygon } from "viem/chains";
6
5
  import { createMinMaxQueue } from "../utils/minMaxQueue/index.js";
7
6
  import { ArbitrumManager } from "./arbitrumGasPriceManager.js";
@@ -23,22 +22,22 @@ export class GasPriceManager {
23
22
  });
24
23
  this.baseFeePerGasQueue = createMinMaxQueue({
25
24
  config,
26
- keyPrefix: "base-fee-per-gas-queue"
25
+ queueName: "base-fee-per-gas-queue"
27
26
  });
28
27
  this.maxFeePerGasQueue = createMinMaxQueue({
29
28
  config,
30
- keyPrefix: "max-fee-per-gas-queue"
29
+ queueName: "max-fee-per-gas-queue"
31
30
  });
32
31
  this.maxPriorityFeePerGasQueue = createMinMaxQueue({
33
32
  config,
34
- keyPrefix: "max-priority-fee-per-gas-queue"
33
+ queueName: "max-priority-fee-per-gas-queue"
35
34
  });
36
35
  // Periodically update gas prices if specified
37
36
  if (this.config.gasPriceRefreshInterval > 0) {
38
37
  setInterval(async () => {
39
38
  try {
40
39
  if (this.config.legacyTransactions === false) {
41
- await this.updateBaseFee();
40
+ await this.tryUpdateBaseFee();
42
41
  }
43
42
  await this.tryUpdateGasPrice();
44
43
  }
@@ -57,20 +56,12 @@ export class GasPriceManager {
57
56
  await Promise.all([
58
57
  this.tryUpdateGasPrice(),
59
58
  this.config.legacyTransactions === false
60
- ? this.updateBaseFee()
59
+ ? this.tryUpdateBaseFee()
61
60
  : Promise.resolve()
62
61
  ]);
63
62
  }
64
- catch (error) {
65
- this.logger.error(error, "Error during gas price initialization");
66
- }
67
- }
68
- getDefaultGasFee(chainId) {
69
- switch (chainId) {
70
- case polygon.id:
71
- return parseGwei("31");
72
- default:
73
- return 0n;
63
+ catch (err) {
64
+ this.logger.error({ err }, "Error during gas price initialization");
74
65
  }
75
66
  }
76
67
  async getPolygonGasPriceParameters() {
@@ -87,28 +78,25 @@ export class GasPriceManager {
87
78
  }
88
79
  }
89
80
  bumpTheGasPrice(gasPriceParameters) {
90
- const bumpAmount = this.config.gasPriceBump;
91
- const maxPriorityFeePerGas = maxBigInt(gasPriceParameters.maxPriorityFeePerGas, this.getDefaultGasFee(this.config.chainId));
92
- const maxFeePerGas = maxBigInt(gasPriceParameters.maxFeePerGas, maxPriorityFeePerGas);
93
- const result = {
94
- maxFeePerGas: (maxFeePerGas * bumpAmount) / 100n,
95
- maxPriorityFeePerGas: (maxPriorityFeePerGas * bumpAmount) / 100n
96
- };
97
- if (this.config.floorMaxFeePerGas ||
98
- this.config.floorMaxPriorityFeePerGas) {
99
- const maxFeePerGas = this.config.floorMaxFeePerGas
100
- ? maxBigInt(this.config.floorMaxFeePerGas, result.maxFeePerGas)
101
- : result.maxFeePerGas;
102
- const maxPriorityFeePerGas = this.config.floorMaxPriorityFeePerGas
103
- ? maxBigInt(this.config.floorMaxPriorityFeePerGas, result.maxPriorityFeePerGas)
104
- : result.maxPriorityFeePerGas;
105
- return {
106
- // Ensure that maxFeePerGas is always greater or equal than maxPriorityFeePerGas
107
- maxFeePerGas: maxBigInt(maxFeePerGas, maxPriorityFeePerGas),
108
- maxPriorityFeePerGas
109
- };
81
+ let [maxFeePerGas, maxPriorityFeePerGas] = [
82
+ gasPriceParameters.maxFeePerGas,
83
+ gasPriceParameters.maxPriorityFeePerGas
84
+ ];
85
+ // Apply bump percentage
86
+ maxPriorityFeePerGas = scaleBigIntByPercent(maxPriorityFeePerGas, this.config.gasPriceBump);
87
+ maxFeePerGas = scaleBigIntByPercent(maxFeePerGas, this.config.gasPriceBump);
88
+ // Apply floor values if configured
89
+ if (this.config.floorMaxPriorityFeePerGas) {
90
+ maxPriorityFeePerGas = maxBigInt(this.config.floorMaxPriorityFeePerGas, maxPriorityFeePerGas);
91
+ }
92
+ if (this.config.floorMaxFeePerGas) {
93
+ maxFeePerGas = maxBigInt(this.config.floorMaxFeePerGas, maxFeePerGas);
110
94
  }
111
- return result;
95
+ return {
96
+ // Ensure that maxFeePerGas is always greater or equal than maxPriorityFeePerGas
97
+ maxFeePerGas: maxBigInt(maxFeePerGas, maxPriorityFeePerGas),
98
+ maxPriorityFeePerGas
99
+ };
112
100
  }
113
101
  async getFallBackMaxPriorityFeePerGas(publicClient, gasPrice) {
114
102
  const feeHistory = await publicClient.getFeeHistory({
@@ -133,7 +121,7 @@ export class GasPriceManager {
133
121
  }
134
122
  catch (e) {
135
123
  sentry.captureException(e);
136
- this.logger.error("failed to fetch legacy gasPrices from estimateFeesPerGas", { error: e });
124
+ this.logger.error({ error: e }, "failed to fetch legacy gasPrices from estimateFeesPerGas");
137
125
  gasPrice = undefined;
138
126
  }
139
127
  if (gasPrice === undefined) {
@@ -155,16 +143,28 @@ export class GasPriceManager {
155
143
  async estimateGasPrice() {
156
144
  let maxFeePerGas;
157
145
  let maxPriorityFeePerGas;
146
+ const { publicClient, staticMaxPriorityFeePerGas } = this.config;
158
147
  try {
159
- const fees = await this.config.publicClient.estimateFeesPerGas({
160
- chain: this.config.publicClient.chain
148
+ let chain;
149
+ // If staticMaxPriorityFeePerGas is set, use it as a static value instead of RPC estimation.
150
+ if (staticMaxPriorityFeePerGas) {
151
+ chain = {
152
+ ...publicClient.chain,
153
+ fees: {
154
+ ...publicClient.chain.fees,
155
+ maxPriorityFeePerGas: staticMaxPriorityFeePerGas
156
+ }
157
+ };
158
+ }
159
+ const fees = await publicClient.estimateFeesPerGas({
160
+ chain
161
161
  });
162
162
  maxFeePerGas = fees.maxFeePerGas;
163
163
  maxPriorityFeePerGas = fees.maxPriorityFeePerGas;
164
164
  }
165
165
  catch (e) {
166
166
  sentry.captureException(e);
167
- this.logger.error("failed to fetch eip-1559 gasPrices from estimateFeesPerGas", { error: e });
167
+ this.logger.error({ error: e }, "failed to fetch eip-1559 gasPrices from estimateFeesPerGas");
168
168
  maxFeePerGas = undefined;
169
169
  maxPriorityFeePerGas = undefined;
170
170
  }
@@ -172,7 +172,7 @@ export class GasPriceManager {
172
172
  this.logger.warn("maxPriorityFeePerGas is undefined, using fallback value");
173
173
  try {
174
174
  maxPriorityFeePerGas =
175
- await this.getFallBackMaxPriorityFeePerGas(this.config.publicClient, maxFeePerGas ?? 0n);
175
+ await this.getFallBackMaxPriorityFeePerGas(publicClient, maxFeePerGas ?? 0n);
176
176
  }
177
177
  catch (e) {
178
178
  this.logger.error("failed to get fallback maxPriorityFeePerGas");
@@ -184,8 +184,7 @@ export class GasPriceManager {
184
184
  this.logger.warn("maxFeePerGas is undefined, using fallback value");
185
185
  try {
186
186
  maxFeePerGas =
187
- (await this.config.publicClient.getGasPrice()) +
188
- maxPriorityFeePerGas;
187
+ (await publicClient.getGasPrice()) + maxPriorityFeePerGas;
189
188
  }
190
189
  catch (e) {
191
190
  this.logger.error("failed to get fallback maxFeePerGas");
@@ -200,41 +199,21 @@ export class GasPriceManager {
200
199
  }
201
200
  // This method throws if it can't get a valid RPC response.
202
201
  async innerGetGasPrice() {
203
- let maxFeePerGas = 0n;
204
- let maxPriorityFeePerGas = 0n;
205
202
  if (this.config.chainId === polygon.id) {
206
203
  const polygonEstimate = await this.getPolygonGasPriceParameters();
207
204
  if (polygonEstimate) {
208
- const gasPrice = this.bumpTheGasPrice({
209
- maxFeePerGas: polygonEstimate.maxFeePerGas,
210
- maxPriorityFeePerGas: polygonEstimate.maxPriorityFeePerGas
211
- });
212
- return {
213
- maxFeePerGas: maxBigInt(gasPrice.maxFeePerGas, maxFeePerGas),
214
- maxPriorityFeePerGas: maxBigInt(gasPrice.maxPriorityFeePerGas, maxPriorityFeePerGas)
215
- };
205
+ return this.bumpTheGasPrice(polygonEstimate);
216
206
  }
217
207
  }
218
208
  if (this.config.legacyTransactions) {
219
- const gasPrice = this.bumpTheGasPrice(await this.getLegacyTransactionGasPrice());
220
- return {
221
- maxFeePerGas: maxBigInt(gasPrice.maxFeePerGas, maxFeePerGas),
222
- maxPriorityFeePerGas: maxBigInt(gasPrice.maxPriorityFeePerGas, maxPriorityFeePerGas)
223
- };
209
+ const legacyGasPrice = await this.getLegacyTransactionGasPrice();
210
+ return this.bumpTheGasPrice(legacyGasPrice);
224
211
  }
225
- const estimatedPrice = await this.estimateGasPrice();
226
- maxFeePerGas = estimatedPrice.maxFeePerGas;
227
- maxPriorityFeePerGas = estimatedPrice.maxPriorityFeePerGas;
228
- const gasPrice = this.bumpTheGasPrice({
229
- maxFeePerGas,
230
- maxPriorityFeePerGas
231
- });
232
- return {
233
- maxFeePerGas: maxBigInt(gasPrice.maxFeePerGas, maxFeePerGas),
234
- maxPriorityFeePerGas: maxBigInt(gasPrice.maxPriorityFeePerGas, maxPriorityFeePerGas)
235
- };
212
+ const estimatedGasPrice = await this.estimateGasPrice();
213
+ return this.bumpTheGasPrice(estimatedGasPrice);
236
214
  }
237
- async updateBaseFee() {
215
+ // This method throws if it can't get a valid RPC response.
216
+ async tryUpdateBaseFee() {
238
217
  try {
239
218
  const latestBlock = await this.config.publicClient.getBlock();
240
219
  if (latestBlock.baseFeePerGas === null) {
@@ -246,6 +225,7 @@ export class GasPriceManager {
246
225
  }
247
226
  catch (e) {
248
227
  this.logger.error(e, "Failed to update base fee");
228
+ sentry.captureException(e);
249
229
  throw e;
250
230
  }
251
231
  }
@@ -255,17 +235,19 @@ export class GasPriceManager {
255
235
  return 0n;
256
236
  }
257
237
  if (this.config.gasPriceRefreshInterval === 0) {
258
- return await this.updateBaseFee();
238
+ return await this.tryUpdateBaseFee();
259
239
  }
260
240
  let baseFee = await this.baseFeePerGasQueue.getLatestValue();
261
241
  if (!baseFee) {
262
- baseFee = await this.updateBaseFee();
242
+ baseFee = await this.tryUpdateBaseFee();
263
243
  }
264
244
  return baseFee;
265
245
  }
266
246
  catch (e) {
267
- this.logger.error(e, "Failed to get base fee");
268
- throw new RpcError("Failed to get base fee");
247
+ this.logger.error(e, "Failed to get base fee, returning 0n");
248
+ // Save 0n to the queue for the missing baseFee case
249
+ this.baseFeePerGasQueue.saveValue(0n);
250
+ return 0n;
269
251
  }
270
252
  }
271
253
  // This method throws if it can't get a valid RPC response.
@@ -308,11 +290,17 @@ export class GasPriceManager {
308
290
  return await this.innerGetGasPrice();
309
291
  }
310
292
  async getMaxBaseFeePerGas() {
311
- let maxBaseFeePerGas = await this.baseFeePerGasQueue.getMaxValue();
312
- if (!maxBaseFeePerGas) {
313
- maxBaseFeePerGas = await this.getBaseFee();
293
+ try {
294
+ let maxBaseFeePerGas = await this.baseFeePerGasQueue.getMaxValue();
295
+ if (!maxBaseFeePerGas) {
296
+ maxBaseFeePerGas = await this.getBaseFee();
297
+ }
298
+ return maxBaseFeePerGas;
299
+ }
300
+ catch (e) {
301
+ this.logger.error(e, "Failed to get max base fee per gas, returning 0n");
302
+ return 0n;
314
303
  }
315
- return maxBaseFeePerGas;
316
304
  }
317
305
  async getHighestMaxFeePerGas() {
318
306
  let highestMaxFeePerGas = await this.maxFeePerGasQueue.getMaxValue();
@@ -1 +1 @@
1
- {"version":3,"file":"gasPriceManager.js","sourceRoot":"","sources":["../../handlers/gasPriceManager.ts"],"names":[],"mappings":"AAAA,OAAO,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A;IACtC,CAAC;IAEO,KAAK,CAAC,kBAAkB;QAC5B,IAAI,eAAe,GAAG,MAAM,IAAI,CAAC,iBAAiB,CAAC,WAAW,EAAE,CAAA;QAChE,IAAI,CAAC,eAAe,EAAE,CAAC;YACnB,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,WAAW,EAAE,CAAA;YACzC,eAAe,GAAG,QAAQ,CAAC,YAAY,CAAA;QAC3C,CAAC;QAED,OAAO,eAAe,CAAA;IAC1B,CAAC;IAEO,KAAK,CAAC,0BAA0B;QACpC,IAAI,uBAAuB,GACvB,MAAM,IAAI,CAAC,yBAAyB,CAAC,WAAW,EAAE,CAAA;QAEtD,IAAI,CAAC,uBAAuB,EAAE,CAAC;YAC3B,MAAM,SAAS,GAAG,MAAM,IAAI,CAAC,WAAW,EAAE,CAAA;YAC1C,uBAAuB,GAAG,SAAS,CAAC,oBAAoB,CAAA;QAC5D,CAAC;QAED,OAAO,uBAAuB,CAAA;IAClC,CAAC;IAEM,KAAK,CAAC,uBAAuB;QAChC,IAAI,kBAAkB,GAAG,MAAM,IAAI,CAAC,kBAAkB,EAAE,CAAA;QACxD,IAAI,0BAA0B,GAAG,MAAM,IAAI,CAAC,0BAA0B,EAAE,CAAA;QAExE,IAAI,IAAI,CAAC,MAAM,CAAC,SAAS,KAAK,QAAQ,EAAE,CAAC;YACrC,kBAAkB,IAAI,GAAG,IAAI,EAAE,CAAA;YAC/B,0BAA0B,IAAI,GAAG,IAAI,EAAE,CAAA;QAC3C,CAAC;QAED,OAAO;YACH,kBAAkB;YAClB,0BAA0B;SAC7B,CAAA;IACL,CAAC;CACJ"}
@@ -1,9 +1,9 @@
1
1
  import type { AltoConfig } from "../createConfig.js";
2
2
  export declare class MantleManager {
3
- private tokenRatioQueue;
4
- private scalarQueue;
5
- private rollupDataGasAndOverheadQueue;
6
- private l1GasPriceQueue;
3
+ private readonly tokenRatioQueue;
4
+ private readonly scalarQueue;
5
+ private readonly rollupDataGasAndOverheadQueue;
6
+ private readonly l1GasPriceQueue;
7
7
  constructor({ config }: {
8
8
  config: AltoConfig;
9
9
  });
@@ -6,19 +6,19 @@ export class MantleManager {
6
6
  l1GasPriceQueue;
7
7
  constructor({ config }) {
8
8
  this.tokenRatioQueue = createMinMaxQueue({
9
- keyPrefix: "token-ratio-queue",
9
+ queueName: "token-ratio-queue",
10
10
  config
11
11
  });
12
12
  this.scalarQueue = createMinMaxQueue({
13
- keyPrefix: "scalar-queue",
13
+ queueName: "scalar-queue",
14
14
  config
15
15
  });
16
16
  this.l1GasPriceQueue = createMinMaxQueue({
17
- keyPrefix: "l1-gas-price-queue",
17
+ queueName: "l1-gas-price-queue",
18
18
  config
19
19
  });
20
20
  this.rollupDataGasAndOverheadQueue = createMinMaxQueue({
21
- keyPrefix: "rollup-data-gas-and-overhead-queue",
21
+ queueName: "rollup-data-gas-and-overhead-queue",
22
22
  config
23
23
  });
24
24
  }
@@ -1 +1 @@
1
- {"version":3,"file":"mantleGasPriceManager.js","sourceRoot":"","sources":["../../handlers/mantleGasPriceManager.ts"],"names":[],"mappings":"AACA,OAAO,EAAoB,iBAAiB,EAAE,MAAM,sBAAsB,CAAA;AAE1E,MAAM,OAAO,aAAa;IACd,eAAe,CAAa;IAC5B,WAAW,CAAa;IACxB,6BAA6B,CAAa;IAC1C,eAAe,CAAa;IAEpC,YAAY,EAAE,MAAM,EAA0B;QAC1C,IAAI,CAAC,eAAe,GAAG,iBAAiB,CAAC;YACrC,SAAS,EAAE,mBAAmB;YAC9B,MAAM;SACT,CAAC,CAAA;QACF,IAAI,CAAC,WAAW,GAAG,iBAAiB,CAAC;YACjC,SAAS,EAAE,cAAc;YACzB,MAAM;SACT,CAAC,CAAA;QACF,IAAI,CAAC,eAAe,GAAG,iBAAiB,CAAC;YACrC,SAAS,EAAE,oBAAoB;YAC/B,MAAM;SACT,CAAC,CAAA;QACF,IAAI,CAAC,6BAA6B,GAAG,iBAAiB,CAAC;YACnD,SAAS,EAAE,oCAAoC;YAC/C,MA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SACT,CAAC,CAAA;QACF,IAAI,CAAC,eAAe,GAAG,iBAAiB,CAAC;YACrC,SAAS,EAAE,oBAAoB;YAC/B,MAAM;SACT,CAAC,CAAA;QACF,IAAI,CAAC,6BAA6B,GAAG,iBAAiB,CAAC;YACnD,SAAS,EAAE,oCAAoC;YAC/C,MAAM;SACT,CAAC,CAAA;IACN,CAAC;IAEM,KAAK,CAAC,wBAAwB;QACjC,OAAO;YACH,aAAa,EAAE,CAAC,MAAM,IAAI,CAAC,eAAe,CAAC,WAAW,EAAE,CAAC,IAAI,EAAE;YAC/D,SAAS,EAAE,CAAC,MAAM,IAAI,CAAC,WAAW,CAAC,WAAW,EAAE,CAAC,IAAI,EAAE;YACvD,2BAA2B,EACvB,CAAC,MAAM,IAAI,CAAC,6BAA6B,CAAC,WAAW,EAAE,CAAC,IAAI,EAAE;YAClE,aAAa,EAAE,CAAC,MAAM,IAAI,CAAC,eAAe,CAAC,WAAW,EAAE,CAAC,IAAI,EAAE;SAClE,CAAA;IACL,CAAC;IAEM,sBAAsB,CAAC,EAC1B,UAAU,EACV,MAAM,EACN,wBAAwB,EACxB,UAAU,EAMb;QACG,IAAI,CAAC,eAAe,CAAC,SAAS,CAAC,UAAU,CAAC,CAAA;QAC1C,IAAI,CAAC,WAAW,CAAC,SAAS,CAAC,MAAM,CAAC,CAAA;QAClC,IAAI,CAAC,6BAA6B,CAAC,SAAS,CAAC,wBAAwB,CAAC,CAAA;QACtE,IAAI,CAAC,eAAe,CAAC,SAAS,CAAC,UAAU,CAAC,CAAA;IAC9C,CAAC;CACJ"}
@@ -1,6 +1,6 @@
1
1
  import type { AltoConfig } from "../createConfig.js";
2
2
  export declare class OptimismManager {
3
- private l1FeeQueue;
3
+ private readonly l1FeeQueue;
4
4
  constructor({ config }: {
5
5
  config: AltoConfig;
6
6
  });
@@ -3,7 +3,7 @@ export class OptimismManager {
3
3
  l1FeeQueue;
4
4
  constructor({ config }) {
5
5
  this.l1FeeQueue = createMinMaxQueue({
6
- keyPrefix: "l1-fee-queue",
6
+ queueName: "l1-fee-queue",
7
7
  config
8
8
  });
9
9
  }
@@ -1 +1 @@
1
- {"version":3,"file":"optimismManager.js","sourceRoot":"","sources":["../../handlers/optimismManager.ts"],"names":[],"mappings":"AACA,OAAO,EAAoB,iBAAiB,EAAE,MAAM,sBAAsB,CAAA;AAE1E,MAAM,OAAO,eAAe;IAChB,UAAU,CAAa;IAE/B,YAAY,EAAE,MAAM,EAA0B;QAC1C,IAAI,CAAC,UAAU,GAAG,iBAAiB,CAAC;YAChC,SAAS,EAAE,cAAc;YACzB,MAAM;SACT,CAAC,CAAA;IACN,CAAC;IAEM,KAAK,CAAC,WAAW;QACpB,OAAO,CAAC,MAAM,IAAI,CAAC,UAAU,CAAC,WAAW,EAAE,CAAC,IAAI,EAAE,CAAA;IACtD,CAAC;IAEM,cAAc,CAAC,KAAa;QAC/B,IAAI,CAAC,UAAU,CAAC,SAAS,CAAC,KAAK,CAAC,CAAA;IACpC,CAAC;CACJ"}
1
+ {"version":3,"file":"optimismManager.js","sourceRoot":"","sources":["../../handlers/optimismManager.ts"],"names":[],"mappings":"AACA,OAAO,EAAoB,iBAAiB,EAAE,MAAM,sBAAsB,CAAA;AAE1E,MAAM,OAAO,eAAe;IACP,UAAU,CAAa;IAExC,YAAY,EAAE,MAAM,EAA0B;QAC1C,IAAI,CAAC,UAAU,GAAG,iBAAiB,CAAC;YAChC,SAAS,EAAE,cAAc;YACzB,MAAM;SACT,CAAC,CAAA;IACN,CAAC;IAEM,KAAK,CAAC,WAAW;QACpB,OAAO,CAAC,MAAM,IAAI,CAAC,UAAU,CAAC,WAAW,EAAE,CAAC,IAAI,EAAE,CAAA;IACtD,CAAC;IAEM,cAAc,CAAC,KAAa;QAC/B,IAAI,CAAC,UAAU,CAAC,SAAS,CAAC,KAAK,CAAC,CAAA;IACpC,CAAC;CACJ"}
@@ -1,4 +1,4 @@
1
1
  export * from "./mempool.js";
2
- export * from "./monitoring.js";
2
+ export * from "./statusManager.js";
3
3
  export * from "./reputationManager.js";
4
4
  //# sourceMappingURL=index.d.ts.map
@@ -1,4 +1,4 @@
1
1
  export * from "./mempool.js";
2
- export * from "./monitoring.js";
2
+ export * from "./statusManager.js";
3
3
  export * from "./reputationManager.js";
4
4
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../mempool/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAA;AACzB,cAAc,cAAc,CAAA;AAC5B,cAAc,qBAAqB,CAAA"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../mempool/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAA;AACzB,cAAc,iBAAiB,CAAA;AAC/B,cAAc,qBAAqB,CAAA"}
@@ -1,33 +1,32 @@
1
1
  import type { EventManager } from "../handlers/index.js";
2
2
  import type { MempoolStore } from "../store/index.js";
3
- import { type Address, type InterfaceValidator, type ReferencedCodeHashes, type RejectedUserOp, type StorageMap, type UserOpInfo, type UserOperation, type UserOperationBundle } from "../types/index.js";
3
+ import { type Address, type InterfaceValidator, type RejectedUserOp, type StorageMap, type UserOpInfo, type UserOperation, type UserOperationBundle } from "../types/index.js";
4
4
  import type { Metrics } from "../utils/index.js";
5
5
  import { type Hex } from "viem";
6
6
  import type { AltoConfig } from "../createConfig.js";
7
- import type { Monitor } from "./monitoring.js";
8
7
  import { type InterfaceReputationManager } from "./reputationManager.js";
8
+ import type { StatusManager } from "./statusManager.js";
9
9
  export declare class Mempool {
10
- private config;
11
- private metrics;
12
- private monitor;
13
- private reputationManager;
10
+ private readonly config;
11
+ private readonly metrics;
12
+ private readonly statusManager;
13
+ private readonly reputationManager;
14
+ private readonly throttledEntityBundleCount;
15
+ private readonly logger;
16
+ private readonly validator;
17
+ private readonly eventManager;
14
18
  store: MempoolStore;
15
- private throttledEntityBundleCount;
16
- private logger;
17
- private validator;
18
- private eventManager;
19
- constructor({ config, metrics, monitor, reputationManager, validator, store, eventManager }: {
19
+ constructor({ config, metrics, statusManager, reputationManager, validator, store, eventManager }: {
20
20
  config: AltoConfig;
21
21
  metrics: Metrics;
22
- monitor: Monitor;
22
+ statusManager: StatusManager;
23
23
  reputationManager: InterfaceReputationManager;
24
24
  validator: InterfaceValidator;
25
25
  store: MempoolStore;
26
26
  eventManager: EventManager;
27
27
  });
28
- markUserOpsAsSubmitted({ userOps, entryPoint, transactionHash }: {
28
+ markUserOpsAsSubmitted({ userOps, transactionHash }: {
29
29
  userOps: UserOpInfo[];
30
- entryPoint: Address;
31
30
  transactionHash: Hex;
32
31
  }): Promise<void>;
33
32
  resubmitUserOps({ userOps, entryPoint, reason }: {
@@ -36,25 +35,27 @@ export declare class Mempool {
36
35
  reason: string;
37
36
  }): Promise<void>;
38
37
  dropUserOps(entryPoint: Address, rejectedUserOps: RejectedUserOp[]): Promise<void>;
39
- removeSubmittedUserOps({ userOps, entryPoint }: {
38
+ removeProcessing({ userOps, entryPoint }: {
40
39
  userOps: UserOpInfo[];
41
40
  entryPoint: Address;
42
41
  }): Promise<void>;
43
42
  dumpOutstanding(entryPoint: Address): Promise<UserOpInfo[]>;
44
- dumpProcessing(entryPoint: Address): Promise<UserOpInfo[]>;
45
- dumpSubmittedOps(entryPoint: Address): Promise<UserOpInfo[]>;
46
43
  checkEntityMultipleRoleViolation(entryPoint: Address, op: UserOperation): Promise<void>;
47
44
  getKnownEntities(entryPoint: Address): Promise<{
48
45
  sender: Set<Address>;
49
46
  paymasters: Set<Address>;
50
47
  factories: Set<Address>;
51
48
  }>;
52
- add(userOp: UserOperation, entryPoint: Address, referencedContracts?: ReferencedCodeHashes): Promise<[boolean, string]>;
53
- shouldSkip({ userOpInfo, paymasterDeposit, stakedEntityCount, knownEntities, senders, storageMap, entryPoint }: {
49
+ add({ userOpInfo, entryPoint }: {
50
+ userOpInfo: UserOpInfo;
51
+ entryPoint: Address;
52
+ }): Promise<[boolean, string]>;
53
+ shouldSkip({ userOpInfo, paymasterDeposit, touchedEip7702Auth, stakedEntityCount, knownEntities, senders, storageMap, entryPoint }: {
54
54
  userOpInfo: UserOpInfo;
55
55
  paymasterDeposit: {
56
56
  [paymaster: string]: bigint;
57
57
  };
58
+ touchedEip7702Auth: Map<Address, Address>;
58
59
  stakedEntityCount: {
59
60
  [addr: string]: number;
60
61
  };
@@ -72,6 +73,7 @@ export declare class Mempool {
72
73
  paymasterDeposit: {
73
74
  [paymaster: string]: bigint;
74
75
  };
76
+ touchedEip7702Auth: Map<Address, Address>;
75
77
  stakedEntityCount: {
76
78
  [addr: string]: number;
77
79
  };
@@ -84,14 +86,13 @@ export declare class Mempool {
84
86
  storageMap: StorageMap;
85
87
  }>;
86
88
  getBundles(maxBundleCount?: number): Promise<UserOperationBundle[]>;
87
- process({ maxGasLimit, entryPoint, minOpsPerBundle, maxBundleCount }: {
89
+ process({ maxGasLimit, entryPoint, maxBundleCount }: {
88
90
  maxGasLimit: bigint;
89
91
  entryPoint: Address;
90
- minOpsPerBundle: number;
91
92
  maxBundleCount?: number;
92
93
  }): Promise<UserOperationBundle[]>;
93
94
  clear(): void;
94
- getQueuedOustandingUserOps(args: {
95
+ getQueuedOutstandingUserOps(args: {
95
96
  userOp: UserOperation;
96
97
  entryPoint: Address;
97
98
  }): Promise<({
@@ -189,6 +190,40 @@ export declare class Mempool {
189
190
  yParity: number;
190
191
  v?: bigint | undefined;
191
192
  } | null | undefined;
193
+ } | {
194
+ sender: `0x${string}`;
195
+ factory: `0x${string}` | null;
196
+ paymaster: `0x${string}` | null;
197
+ nonce: bigint;
198
+ callData: `0x${string}`;
199
+ callGasLimit: bigint;
200
+ verificationGasLimit: bigint;
201
+ preVerificationGas: bigint;
202
+ maxFeePerGas: bigint;
203
+ maxPriorityFeePerGas: bigint;
204
+ signature: `0x${string}`;
205
+ paymasterVerificationGasLimit: bigint | null;
206
+ paymasterPostOpGasLimit: bigint | null;
207
+ factoryData: `0x${string}` | null;
208
+ paymasterData: `0x${string}` | null;
209
+ paymasterSignature: `0x${string}` | null;
210
+ eip7702Auth?: {
211
+ nonce: number;
212
+ contractAddress: `0x${string}`;
213
+ chainId: number;
214
+ r: `0x${string}`;
215
+ s: `0x${string}`;
216
+ yParity: number;
217
+ v?: bigint | undefined;
218
+ } | {
219
+ address: `0x${string}`;
220
+ nonce: number;
221
+ chainId: number;
222
+ r: `0x${string}`;
223
+ s: `0x${string}`;
224
+ yParity: number;
225
+ v?: bigint | undefined;
226
+ } | null | undefined;
192
227
  })[]>;
193
228
  }
194
229
  //# sourceMappingURL=mempool.d.ts.map