@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.
Files changed (357) 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/{880955d5786bfdae.json → 031b289b93191224.json} +1 -1
  52. package/contracts/build-info/181f3522c3744403.json +1 -0
  53. package/contracts/build-info/a2db592afab5c9de.json +1 -0
  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 +17 -6
  80. package/esm/cli/alto.js.map +1 -1
  81. package/esm/cli/config/bundler.d.ts +459 -321
  82. package/esm/cli/config/bundler.js +125 -91
  83. package/esm/cli/config/bundler.js.map +1 -1
  84. package/esm/cli/config/options.d.ts +4 -1
  85. package/esm/cli/config/options.js +233 -106
  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 +76 -80
  92. package/esm/cli/handler.js.map +1 -1
  93. package/esm/cli/multiRpcTransport.d.ts +7 -0
  94. package/esm/cli/multiRpcTransport.js +52 -0
  95. package/esm/cli/multiRpcTransport.js.map +1 -0
  96. package/esm/cli/setupServer.js +92 -70
  97. package/esm/cli/setupServer.js.map +1 -1
  98. package/esm/cli/shutDown.d.ts +20 -0
  99. package/esm/cli/shutDown.js +285 -0
  100. package/esm/cli/shutDown.js.map +1 -0
  101. package/esm/contracts/EntryPointFilterOpsOverride.sol/EntryPointFilterOpsOverride06.json +1 -1
  102. package/esm/contracts/EntryPointFilterOpsOverride.sol/EntryPointFilterOpsOverride07.json +1 -1
  103. package/esm/contracts/EntryPointFilterOpsOverride.sol/EntryPointFilterOpsOverride08.json +1 -1
  104. package/esm/contracts/EntryPointFilterOpsOverride.sol/EntryPointFilterOpsOverride09.json +1 -0
  105. package/esm/contracts/EntryPointGasEstimationOverride.sol/EntryPointGasEstimationOverride06.json +1 -1
  106. package/esm/contracts/EntryPointSimulations.sol/EntryPointSimulations07.json +1 -1
  107. package/esm/contracts/EntryPointSimulations.sol/EntryPointSimulations08.json +1 -1
  108. package/esm/contracts/EntryPointSimulations.sol/EntryPointSimulations09.json +1 -0
  109. package/esm/contracts/PimlicoSimulations.sol/PimlicoSimulations.json +1 -1
  110. package/esm/createConfig.d.ts +9 -2
  111. package/esm/createConfig.js.map +1 -1
  112. package/esm/executor/{userOpMonitor.d.ts → bundleManager.d.ts} +56 -37
  113. package/esm/executor/bundleManager.js +393 -0
  114. package/esm/executor/bundleManager.js.map +1 -0
  115. package/esm/executor/executor.d.ts +4 -3
  116. package/esm/executor/executor.js +47 -23
  117. package/esm/executor/executor.js.map +1 -1
  118. package/esm/executor/executorManager.d.ts +20 -15
  119. package/esm/executor/executorManager.js +248 -67
  120. package/esm/executor/executorManager.js.map +1 -1
  121. package/esm/executor/filterOpsAndEstimateGas.d.ts +17 -2
  122. package/esm/executor/filterOpsAndEstimateGas.js +100 -77
  123. package/esm/executor/filterOpsAndEstimateGas.js.map +1 -1
  124. package/esm/executor/getBundleStatus.d.ts +5 -1
  125. package/esm/executor/getBundleStatus.js.map +1 -1
  126. package/esm/executor/index.d.ts +1 -0
  127. package/esm/executor/index.js +1 -0
  128. package/esm/executor/index.js.map +1 -1
  129. package/esm/executor/senderManager/createMemorySenderManager.js +13 -0
  130. package/esm/executor/senderManager/createMemorySenderManager.js.map +1 -1
  131. package/esm/executor/senderManager/createRedisSenderManager.d.ts +2 -1
  132. package/esm/executor/senderManager/createRedisSenderManager.js +45 -26
  133. package/esm/executor/senderManager/createRedisSenderManager.js.map +1 -1
  134. package/esm/executor/senderManager/flushOnStartUp.js +7 -5
  135. package/esm/executor/senderManager/flushOnStartUp.js.map +1 -1
  136. package/esm/executor/senderManager/index.d.ts +1 -0
  137. package/esm/executor/senderManager/index.js +6 -2
  138. package/esm/executor/senderManager/index.js.map +1 -1
  139. package/esm/executor/senderManager/validateAndRefill.js +268 -85
  140. package/esm/executor/senderManager/validateAndRefill.js.map +1 -1
  141. package/esm/executor/utils.d.ts +8 -3
  142. package/esm/executor/utils.js +59 -27
  143. package/esm/executor/utils.js.map +1 -1
  144. package/esm/handlers/arbitrumGasPriceManager.d.ts +3 -2
  145. package/esm/handlers/arbitrumGasPriceManager.js +6 -2
  146. package/esm/handlers/arbitrumGasPriceManager.js.map +1 -1
  147. package/esm/handlers/citreaManager.d.ts +10 -0
  148. package/esm/handlers/citreaManager.js +17 -0
  149. package/esm/handlers/citreaManager.js.map +1 -0
  150. package/esm/handlers/eventManager.d.ts +9 -9
  151. package/esm/handlers/eventManager.js +59 -60
  152. package/esm/handlers/eventManager.js.map +1 -1
  153. package/esm/handlers/gasPriceManager.d.ts +17 -10
  154. package/esm/handlers/gasPriceManager.js +245 -99
  155. package/esm/handlers/gasPriceManager.js.map +1 -1
  156. package/esm/handlers/mantleGasPriceManager.d.ts +4 -4
  157. package/esm/handlers/mantleGasPriceManager.js +4 -4
  158. package/esm/handlers/mantleGasPriceManager.js.map +1 -1
  159. package/esm/handlers/optimismManager.d.ts +1 -1
  160. package/esm/handlers/optimismManager.js +1 -1
  161. package/esm/handlers/optimismManager.js.map +1 -1
  162. package/esm/mempool/index.d.ts +1 -1
  163. package/esm/mempool/index.js +1 -1
  164. package/esm/mempool/index.js.map +1 -1
  165. package/esm/mempool/mempool.d.ts +61 -22
  166. package/esm/mempool/mempool.js +223 -133
  167. package/esm/mempool/mempool.js.map +1 -1
  168. package/esm/mempool/reputationManager.d.ts +14 -14
  169. package/esm/mempool/reputationManager.js +36 -39
  170. package/esm/mempool/reputationManager.js.map +1 -1
  171. package/esm/mempool/statusManager.d.ts +20 -0
  172. package/esm/mempool/statusManager.js +143 -0
  173. package/esm/mempool/statusManager.js.map +1 -0
  174. package/esm/receiptCache/createMemoryReceiptCache.d.ts +3 -0
  175. package/esm/receiptCache/createMemoryReceiptCache.js +30 -0
  176. package/esm/receiptCache/createMemoryReceiptCache.js.map +1 -0
  177. package/esm/receiptCache/createRedisReceiptCache.d.ts +10 -0
  178. package/esm/receiptCache/createRedisReceiptCache.js +56 -0
  179. package/esm/receiptCache/createRedisReceiptCache.js.map +1 -0
  180. package/esm/receiptCache/index.d.ts +11 -0
  181. package/esm/receiptCache/index.js +21 -0
  182. package/esm/receiptCache/index.js.map +1 -0
  183. package/esm/rpc/createMethodHandler.js.map +1 -1
  184. package/esm/rpc/estimation/gasEstimationHandler.d.ts +2 -4
  185. package/esm/rpc/estimation/gasEstimationHandler.js.map +1 -1
  186. package/esm/rpc/estimation/gasEstimations06.d.ts +6 -7
  187. package/esm/rpc/estimation/gasEstimations06.js +1 -5
  188. package/esm/rpc/estimation/gasEstimations06.js.map +1 -1
  189. package/esm/rpc/estimation/gasEstimations07.d.ts +13 -41
  190. package/esm/rpc/estimation/gasEstimations07.js +27 -34
  191. package/esm/rpc/estimation/gasEstimations07.js.map +1 -1
  192. package/esm/{utils/preVerificationGasCalulator.d.ts → rpc/estimation/preVerificationGasCalculator.d.ts} +20 -6
  193. package/esm/{utils/preVerificationGasCalulator.js → rpc/estimation/preVerificationGasCalculator.js} +134 -48
  194. package/esm/rpc/estimation/preVerificationGasCalculator.js.map +1 -0
  195. package/esm/rpc/estimation/types.d.ts +4 -2
  196. package/esm/rpc/estimation/utils.d.ts +10 -8
  197. package/esm/rpc/estimation/utils.js +56 -53
  198. package/esm/rpc/estimation/utils.js.map +1 -1
  199. package/esm/rpc/methods/boost_sendUserOperation.d.ts +304 -0
  200. package/esm/rpc/methods/boost_sendUserOperation.js +1 -1
  201. package/esm/rpc/methods/boost_sendUserOperation.js.map +1 -1
  202. package/esm/rpc/methods/debug_bundler_clearReputation.js +1 -1
  203. package/esm/rpc/methods/debug_bundler_clearReputation.js.map +1 -1
  204. package/esm/rpc/methods/debug_bundler_clearState.js +1 -1
  205. package/esm/rpc/methods/debug_bundler_clearState.js.map +1 -1
  206. package/esm/rpc/methods/debug_bundler_dumpMempool.d.ts +338 -0
  207. package/esm/rpc/methods/debug_bundler_dumpReputation.js +1 -1
  208. package/esm/rpc/methods/debug_bundler_dumpReputation.js.map +1 -1
  209. package/esm/rpc/methods/eth_estimateUserOperationGas.d.ts +622 -14
  210. package/esm/rpc/methods/eth_estimateUserOperationGas.js +61 -30
  211. package/esm/rpc/methods/eth_estimateUserOperationGas.js.map +1 -1
  212. package/esm/rpc/methods/eth_getUserOperationByHash.d.ts +621 -11
  213. package/esm/rpc/methods/eth_getUserOperationByHash.js.map +1 -1
  214. package/esm/rpc/methods/eth_getUserOperationReceipt.d.ts +34 -34
  215. package/esm/rpc/methods/eth_getUserOperationReceipt.js +1 -1
  216. package/esm/rpc/methods/eth_sendUserOperation.d.ts +307 -3
  217. package/esm/rpc/methods/eth_sendUserOperation.js +153 -48
  218. package/esm/rpc/methods/eth_sendUserOperation.js.map +1 -1
  219. package/esm/rpc/methods/pimlico_getUserOperationStatus.js +1 -1
  220. package/esm/rpc/methods/pimlico_getUserOperationStatus.js.map +1 -1
  221. package/esm/rpc/methods/pimlico_sendUserOperationNow.d.ts +338 -34
  222. package/esm/rpc/methods/pimlico_sendUserOperationNow.js +26 -29
  223. package/esm/rpc/methods/pimlico_sendUserOperationNow.js.map +1 -1
  224. package/esm/rpc/methods/pimlico_simulateAssetChange.d.ts +620 -12
  225. package/esm/rpc/methods/pimlico_simulateAssetChange.js +14 -19
  226. package/esm/rpc/methods/pimlico_simulateAssetChange.js.map +1 -1
  227. package/esm/rpc/rpcHandler.d.ts +38 -26
  228. package/esm/rpc/rpcHandler.js +97 -44
  229. package/esm/rpc/rpcHandler.js.map +1 -1
  230. package/esm/rpc/server.d.ts +5 -5
  231. package/esm/rpc/server.js +15 -11
  232. package/esm/rpc/server.js.map +1 -1
  233. package/esm/rpc/validation/BundlerCollectorTracerV06.js +1 -1
  234. package/esm/rpc/validation/BundlerCollectorTracerV06.js.map +1 -1
  235. package/esm/rpc/validation/BundlerCollectorTracerV07.js +1 -1
  236. package/esm/rpc/validation/BundlerCollectorTracerV07.js.map +1 -1
  237. package/esm/rpc/validation/SafeValidator.d.ts +13 -14
  238. package/esm/rpc/validation/SafeValidator.js +24 -24
  239. package/esm/rpc/validation/SafeValidator.js.map +1 -1
  240. package/esm/rpc/validation/TracerResultParserV06.d.ts +2 -2
  241. package/esm/rpc/validation/TracerResultParserV06.js +11 -11
  242. package/esm/rpc/validation/TracerResultParserV06.js.map +1 -1
  243. package/esm/rpc/validation/TracerResultParserV07.d.ts +2 -2
  244. package/esm/rpc/validation/TracerResultParserV07.js +13 -13
  245. package/esm/rpc/validation/TracerResultParserV07.js.map +1 -1
  246. package/esm/rpc/validation/UnsafeValidator.d.ts +18 -14
  247. package/esm/rpc/validation/UnsafeValidator.js +76 -41
  248. package/esm/rpc/validation/UnsafeValidator.js.map +1 -1
  249. package/esm/store/createMempoolStore.d.ts +1 -1
  250. package/esm/store/createMempoolStore.js +79 -140
  251. package/esm/store/createMempoolStore.js.map +1 -1
  252. package/esm/store/index.d.ts +4 -75
  253. package/esm/store/index.js +4 -1
  254. package/esm/store/index.js.map +1 -1
  255. package/esm/store/outstanding/index.d.ts +13 -0
  256. package/esm/store/outstanding/index.js +16 -0
  257. package/esm/store/outstanding/index.js.map +1 -0
  258. package/esm/store/{createMemoryOutstandingStore.d.ts → outstanding/memory.d.ts} +14 -13
  259. package/esm/store/outstanding/memory.js +263 -0
  260. package/esm/store/outstanding/memory.js.map +1 -0
  261. package/esm/store/outstanding/redis.d.ts +11 -0
  262. package/esm/store/outstanding/redis.js +229 -0
  263. package/esm/store/outstanding/redis.js.map +1 -0
  264. package/esm/store/outstanding/types.d.ts +19 -0
  265. package/esm/store/outstanding/types.js +2 -0
  266. package/esm/store/outstanding/types.js.map +1 -0
  267. package/esm/store/processing/index.d.ts +11 -0
  268. package/esm/store/processing/index.js +17 -0
  269. package/esm/store/processing/index.js.map +1 -0
  270. package/esm/store/processing/memory.d.ts +19 -0
  271. package/esm/store/processing/memory.js +83 -0
  272. package/esm/store/processing/memory.js.map +1 -0
  273. package/esm/store/processing/redis.d.ts +26 -0
  274. package/esm/store/processing/redis.js +123 -0
  275. package/esm/store/processing/redis.js.map +1 -0
  276. package/esm/store/processing/types.d.ts +12 -0
  277. package/esm/store/processing/types.js +2 -0
  278. package/esm/store/processing/types.js.map +1 -0
  279. package/esm/store/types.d.ts +52 -0
  280. package/esm/store/types.js +2 -0
  281. package/esm/store/types.js.map +1 -0
  282. package/esm/types/contracts/Multicall3.d.ts +34 -0
  283. package/esm/types/contracts/Multicall3.js +31 -0
  284. package/esm/types/contracts/Multicall3.js.map +1 -0
  285. package/esm/types/contracts/PimlicoSimulations.d.ts +81 -0
  286. package/esm/types/contracts/PimlicoSimulations.js +105 -0
  287. package/esm/types/contracts/PimlicoSimulations.js.map +1 -1
  288. package/esm/types/contracts/index.d.ts +1 -1
  289. package/esm/types/contracts/index.js +1 -1
  290. package/esm/types/contracts/index.js.map +1 -1
  291. package/esm/types/gasPrice.js +0 -18
  292. package/esm/types/gasPrice.js.map +1 -1
  293. package/esm/types/interfaces.d.ts +15 -10
  294. package/esm/types/mempool.d.ts +3 -0
  295. package/esm/types/schemas.d.ts +13184 -4741
  296. package/esm/types/schemas.js +116 -27
  297. package/esm/types/schemas.js.map +1 -1
  298. package/esm/types/utils.d.ts +2 -5
  299. package/esm/types/utils.js +16 -18
  300. package/esm/types/utils.js.map +1 -1
  301. package/esm/types/validation.d.ts +7646 -6912
  302. package/esm/types/validation.js +122 -152
  303. package/esm/types/validation.js.map +1 -1
  304. package/esm/utils/eip7702.d.ts +2 -1
  305. package/esm/utils/eip7702.js +14 -8
  306. package/esm/utils/eip7702.js.map +1 -1
  307. package/esm/utils/entryPointOverrides.js +18 -4
  308. package/esm/utils/entryPointOverrides.js.map +1 -1
  309. package/esm/utils/helpers.d.ts +7 -1
  310. package/esm/utils/helpers.js +36 -11
  311. package/esm/utils/helpers.js.map +1 -1
  312. package/esm/utils/index.d.ts +0 -1
  313. package/esm/utils/index.js +0 -1
  314. package/esm/utils/index.js.map +1 -1
  315. package/esm/utils/metrics.d.ts +4 -1
  316. package/esm/utils/metrics.js +34 -7
  317. package/esm/utils/metrics.js.map +1 -1
  318. package/esm/utils/minMaxQueue/createMemoryMinMaxQueue.js +8 -9
  319. package/esm/utils/minMaxQueue/createMemoryMinMaxQueue.js.map +1 -1
  320. package/esm/utils/minMaxQueue/createRedisMinMaxQueue.d.ts +24 -2
  321. package/esm/utils/minMaxQueue/createRedisMinMaxQueue.js +85 -64
  322. package/esm/utils/minMaxQueue/createRedisMinMaxQueue.js.map +1 -1
  323. package/esm/utils/minMaxQueue/index.d.ts +2 -2
  324. package/esm/utils/minMaxQueue/index.js +4 -3
  325. package/esm/utils/minMaxQueue/index.js.map +1 -1
  326. package/esm/utils/rpc-reply.d.ts +3 -3
  327. package/esm/utils/rpc-reply.js.map +1 -1
  328. package/esm/utils/toViemStateOverrides.js +7 -7
  329. package/esm/utils/toViemStateOverrides.js.map +1 -1
  330. package/esm/utils/userop.d.ts +110 -56
  331. package/esm/utils/userop.js +161 -249
  332. package/esm/utils/userop.js.map +1 -1
  333. package/package.json +4 -2
  334. package/contracts/build-info/7710b5a048396e70.json +0 -1
  335. package/esm/executor/userOpMonitor.js +0 -326
  336. package/esm/executor/userOpMonitor.js.map +0 -1
  337. package/esm/executor/utilityWalletMonitor.d.ts +0 -19
  338. package/esm/executor/utilityWalletMonitor.js +0 -38
  339. package/esm/executor/utilityWalletMonitor.js.map +0 -1
  340. package/esm/mempool/monitoring.d.ts +0 -15
  341. package/esm/mempool/monitoring.js +0 -118
  342. package/esm/mempool/monitoring.js.map +0 -1
  343. package/esm/store/createMemoryOutstandingStore.js +0 -240
  344. package/esm/store/createMemoryOutstandingStore.js.map +0 -1
  345. package/esm/store/createRedisOutstandingStore.d.ts +0 -27
  346. package/esm/store/createRedisOutstandingStore.js +0 -344
  347. package/esm/store/createRedisOutstandingStore.js.map +0 -1
  348. package/esm/store/createRedisStore.d.ts +0 -9
  349. package/esm/store/createRedisStore.js +0 -131
  350. package/esm/store/createRedisStore.js.map +0 -1
  351. package/esm/store/createStore.d.ts +0 -6
  352. package/esm/store/createStore.js +0 -66
  353. package/esm/store/createStore.js.map +0 -1
  354. package/esm/types/contracts/CallEngine.d.ts +0 -28
  355. package/esm/types/contracts/CallEngine.js +0 -37
  356. package/esm/types/contracts/CallEngine.js.map +0 -1
  357. package/esm/utils/preVerificationGasCalulator.js.map +0 -1
@@ -1,12 +1,12 @@
1
1
  import { type Address, type ApiVersion, type UserOperation } from "../../types/index.js";
2
- import type { Hex } from "viem";
2
+ import { type Hex } from "viem";
3
3
  import type { RpcHandler } from "../rpcHandler.js";
4
- export declare function addToMempoolIfValid({ rpcHandler, userOp, entryPoint, apiVersion, boost }: {
4
+ export declare function addToMempoolIfValid({ rpcHandler, userOp, entryPoint, apiVersion, isBoosted }: {
5
5
  rpcHandler: RpcHandler;
6
6
  userOp: UserOperation;
7
7
  entryPoint: Address;
8
8
  apiVersion: ApiVersion;
9
- boost?: boolean;
9
+ isBoosted?: boolean;
10
10
  }): Promise<{
11
11
  userOpHash: Hex;
12
12
  result: "added" | "queued";
@@ -585,6 +585,208 @@ export declare const ethSendUserOperationHandler: {
585
585
  yParity: string | number | bigint;
586
586
  v?: string | number | bigint | undefined;
587
587
  } | null | undefined;
588
+ }>, import("zod").ZodEffects<import("zod").ZodObject<{
589
+ sender: import("zod").ZodEffects<import("zod").ZodString, `0x${string}`, string>;
590
+ nonce: import("zod").ZodEffects<import("zod").ZodEffects<import("zod").ZodUnion<[import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodNumber]>, import("zod").ZodBigInt]>, bigint, string | number | bigint>, bigint, string | number | bigint>;
591
+ factory: import("zod").ZodEffects<import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodUnion<[import("zod").ZodEffects<import("zod").ZodString, `0x${string}`, string>, import("zod").ZodLiteral<"0x7702">]>>>, `0x${string}` | null, string | null | undefined>;
592
+ factoryData: import("zod").ZodEffects<import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodEffects<import("zod").ZodString, `0x${string}`, string>>>, `0x${string}` | null, string | null | undefined>;
593
+ callData: import("zod").ZodEffects<import("zod").ZodString, `0x${string}`, string>;
594
+ callGasLimit: import("zod").ZodEffects<import("zod").ZodEffects<import("zod").ZodUnion<[import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodNumber]>, import("zod").ZodBigInt]>, bigint, string | number | bigint>, bigint, string | number | bigint>;
595
+ verificationGasLimit: import("zod").ZodEffects<import("zod").ZodEffects<import("zod").ZodUnion<[import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodNumber]>, import("zod").ZodBigInt]>, bigint, string | number | bigint>, bigint, string | number | bigint>;
596
+ preVerificationGas: import("zod").ZodEffects<import("zod").ZodEffects<import("zod").ZodUnion<[import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodNumber]>, import("zod").ZodBigInt]>, bigint, string | number | bigint>, bigint, string | number | bigint>;
597
+ maxFeePerGas: import("zod").ZodEffects<import("zod").ZodEffects<import("zod").ZodUnion<[import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodNumber]>, import("zod").ZodBigInt]>, bigint, string | number | bigint>, bigint, string | number | bigint>;
598
+ maxPriorityFeePerGas: import("zod").ZodEffects<import("zod").ZodEffects<import("zod").ZodUnion<[import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodNumber]>, import("zod").ZodBigInt]>, bigint, string | number | bigint>, bigint, string | number | bigint>;
599
+ paymaster: import("zod").ZodEffects<import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodEffects<import("zod").ZodString, `0x${string}`, string>>>, `0x${string}` | null, string | null | undefined>;
600
+ paymasterVerificationGasLimit: import("zod").ZodEffects<import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodEffects<import("zod").ZodEffects<import("zod").ZodUnion<[import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodNumber]>, import("zod").ZodBigInt]>, bigint, string | number | bigint>, bigint, string | number | bigint>>>, bigint | null, string | number | bigint | null | undefined>;
601
+ paymasterPostOpGasLimit: import("zod").ZodEffects<import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodEffects<import("zod").ZodEffects<import("zod").ZodUnion<[import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodNumber]>, import("zod").ZodBigInt]>, bigint, string | number | bigint>, bigint, string | number | bigint>>>, bigint | null, string | number | bigint | null | undefined>;
602
+ paymasterData: import("zod").ZodEffects<import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodEffects<import("zod").ZodString, `0x${string}`, string>>>, `0x${string}` | null, string | null | undefined>;
603
+ paymasterSignature: import("zod").ZodEffects<import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodEffects<import("zod").ZodString, `0x${string}`, string>>>, `0x${string}` | null, string | null | undefined>;
604
+ signature: import("zod").ZodEffects<import("zod").ZodString, `0x${string}`, string>;
605
+ eip7702Auth: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodObject<{
606
+ contractAddress: import("zod").ZodEffects<import("zod").ZodString, `0x${string}`, string>;
607
+ chainId: import("zod").ZodEffects<import("zod").ZodEffects<import("zod").ZodEffects<import("zod").ZodUnion<[import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodNumber]>, import("zod").ZodBigInt]>, bigint, string | number | bigint>, bigint, string | number | bigint>, number, string | number | bigint>;
608
+ nonce: import("zod").ZodEffects<import("zod").ZodEffects<import("zod").ZodEffects<import("zod").ZodUnion<[import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodNumber]>, import("zod").ZodBigInt]>, bigint, string | number | bigint>, bigint, string | number | bigint>, number, string | number | bigint>;
609
+ r: import("zod").ZodEffects<import("zod").ZodEffects<import("zod").ZodString, `0x${string}`, string>, `0x${string}`, string>;
610
+ s: import("zod").ZodEffects<import("zod").ZodEffects<import("zod").ZodString, `0x${string}`, string>, `0x${string}`, string>;
611
+ v: import("zod").ZodOptional<import("zod").ZodEffects<import("zod").ZodEffects<import("zod").ZodUnion<[import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodNumber]>, import("zod").ZodBigInt]>, bigint, string | number | bigint>, bigint, string | number | bigint>>;
612
+ yParity: import("zod").ZodEffects<import("zod").ZodEffects<import("zod").ZodEffects<import("zod").ZodUnion<[import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodNumber]>, import("zod").ZodBigInt]>, bigint, string | number | bigint>, bigint, string | number | bigint>, number, string | number | bigint>;
613
+ }, "strip", import("zod").ZodTypeAny, {
614
+ nonce: number;
615
+ contractAddress: `0x${string}`;
616
+ chainId: number;
617
+ r: `0x${string}`;
618
+ s: `0x${string}`;
619
+ yParity: number;
620
+ v?: bigint | undefined;
621
+ }, {
622
+ nonce: string | number | bigint;
623
+ contractAddress: string;
624
+ chainId: string | number | bigint;
625
+ r: string;
626
+ s: string;
627
+ yParity: string | number | bigint;
628
+ v?: string | number | bigint | undefined;
629
+ }>, import("zod").ZodObject<{
630
+ address: import("zod").ZodEffects<import("zod").ZodString, `0x${string}`, string>;
631
+ chainId: import("zod").ZodEffects<import("zod").ZodEffects<import("zod").ZodEffects<import("zod").ZodUnion<[import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodNumber]>, import("zod").ZodBigInt]>, bigint, string | number | bigint>, bigint, string | number | bigint>, number, string | number | bigint>;
632
+ nonce: import("zod").ZodEffects<import("zod").ZodEffects<import("zod").ZodEffects<import("zod").ZodUnion<[import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodNumber]>, import("zod").ZodBigInt]>, bigint, string | number | bigint>, bigint, string | number | bigint>, number, string | number | bigint>;
633
+ r: import("zod").ZodEffects<import("zod").ZodEffects<import("zod").ZodString, `0x${string}`, string>, `0x${string}`, string>;
634
+ s: import("zod").ZodEffects<import("zod").ZodEffects<import("zod").ZodString, `0x${string}`, string>, `0x${string}`, string>;
635
+ v: import("zod").ZodOptional<import("zod").ZodEffects<import("zod").ZodEffects<import("zod").ZodUnion<[import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodNumber]>, import("zod").ZodBigInt]>, bigint, string | number | bigint>, bigint, string | number | bigint>>;
636
+ yParity: import("zod").ZodEffects<import("zod").ZodEffects<import("zod").ZodEffects<import("zod").ZodUnion<[import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodNumber]>, import("zod").ZodBigInt]>, bigint, string | number | bigint>, bigint, string | number | bigint>, number, string | number | bigint>;
637
+ }, "strip", import("zod").ZodTypeAny, {
638
+ address: `0x${string}`;
639
+ nonce: number;
640
+ chainId: number;
641
+ r: `0x${string}`;
642
+ s: `0x${string}`;
643
+ yParity: number;
644
+ v?: bigint | undefined;
645
+ }, {
646
+ address: string;
647
+ nonce: string | number | bigint;
648
+ chainId: string | number | bigint;
649
+ r: string;
650
+ s: string;
651
+ yParity: string | number | bigint;
652
+ v?: string | number | bigint | undefined;
653
+ }>]>>>;
654
+ }, "strict", import("zod").ZodTypeAny, {
655
+ sender: `0x${string}`;
656
+ factory: `0x${string}` | null;
657
+ paymaster: `0x${string}` | null;
658
+ nonce: bigint;
659
+ callData: `0x${string}`;
660
+ callGasLimit: bigint;
661
+ verificationGasLimit: bigint;
662
+ preVerificationGas: bigint;
663
+ maxFeePerGas: bigint;
664
+ maxPriorityFeePerGas: bigint;
665
+ signature: `0x${string}`;
666
+ paymasterVerificationGasLimit: bigint | null;
667
+ paymasterPostOpGasLimit: bigint | null;
668
+ factoryData: `0x${string}` | null;
669
+ paymasterData: `0x${string}` | null;
670
+ paymasterSignature: `0x${string}` | null;
671
+ eip7702Auth?: {
672
+ nonce: number;
673
+ contractAddress: `0x${string}`;
674
+ chainId: number;
675
+ r: `0x${string}`;
676
+ s: `0x${string}`;
677
+ yParity: number;
678
+ v?: bigint | undefined;
679
+ } | {
680
+ address: `0x${string}`;
681
+ nonce: number;
682
+ chainId: number;
683
+ r: `0x${string}`;
684
+ s: `0x${string}`;
685
+ yParity: number;
686
+ v?: bigint | undefined;
687
+ } | null | undefined;
688
+ }, {
689
+ sender: string;
690
+ nonce: string | number | bigint;
691
+ callData: string;
692
+ callGasLimit: string | number | bigint;
693
+ verificationGasLimit: string | number | bigint;
694
+ preVerificationGas: string | number | bigint;
695
+ maxFeePerGas: string | number | bigint;
696
+ maxPriorityFeePerGas: string | number | bigint;
697
+ signature: string;
698
+ factory?: string | null | undefined;
699
+ factoryData?: string | null | undefined;
700
+ paymaster?: string | null | undefined;
701
+ paymasterVerificationGasLimit?: string | number | bigint | null | undefined;
702
+ paymasterPostOpGasLimit?: string | number | bigint | null | undefined;
703
+ paymasterData?: string | null | undefined;
704
+ paymasterSignature?: string | null | undefined;
705
+ eip7702Auth?: {
706
+ nonce: string | number | bigint;
707
+ contractAddress: string;
708
+ chainId: string | number | bigint;
709
+ r: string;
710
+ s: string;
711
+ yParity: string | number | bigint;
712
+ v?: string | number | bigint | undefined;
713
+ } | {
714
+ address: string;
715
+ nonce: string | number | bigint;
716
+ chainId: string | number | bigint;
717
+ r: string;
718
+ s: string;
719
+ yParity: string | number | bigint;
720
+ v?: string | number | bigint | undefined;
721
+ } | null | undefined;
722
+ }>, {
723
+ sender: `0x${string}`;
724
+ factory: `0x${string}` | null;
725
+ paymaster: `0x${string}` | null;
726
+ nonce: bigint;
727
+ callData: `0x${string}`;
728
+ callGasLimit: bigint;
729
+ verificationGasLimit: bigint;
730
+ preVerificationGas: bigint;
731
+ maxFeePerGas: bigint;
732
+ maxPriorityFeePerGas: bigint;
733
+ signature: `0x${string}`;
734
+ paymasterVerificationGasLimit: bigint | null;
735
+ paymasterPostOpGasLimit: bigint | null;
736
+ factoryData: `0x${string}` | null;
737
+ paymasterData: `0x${string}` | null;
738
+ paymasterSignature: `0x${string}` | null;
739
+ eip7702Auth?: {
740
+ nonce: number;
741
+ contractAddress: `0x${string}`;
742
+ chainId: number;
743
+ r: `0x${string}`;
744
+ s: `0x${string}`;
745
+ yParity: number;
746
+ v?: bigint | undefined;
747
+ } | {
748
+ address: `0x${string}`;
749
+ nonce: number;
750
+ chainId: number;
751
+ r: `0x${string}`;
752
+ s: `0x${string}`;
753
+ yParity: number;
754
+ v?: bigint | undefined;
755
+ } | null | undefined;
756
+ }, {
757
+ sender: string;
758
+ nonce: string | number | bigint;
759
+ callData: string;
760
+ callGasLimit: string | number | bigint;
761
+ verificationGasLimit: string | number | bigint;
762
+ preVerificationGas: string | number | bigint;
763
+ maxFeePerGas: string | number | bigint;
764
+ maxPriorityFeePerGas: string | number | bigint;
765
+ signature: string;
766
+ factory?: string | null | undefined;
767
+ factoryData?: string | null | undefined;
768
+ paymaster?: string | null | undefined;
769
+ paymasterVerificationGasLimit?: string | number | bigint | null | undefined;
770
+ paymasterPostOpGasLimit?: string | number | bigint | null | undefined;
771
+ paymasterData?: string | null | undefined;
772
+ paymasterSignature?: string | null | undefined;
773
+ eip7702Auth?: {
774
+ nonce: string | number | bigint;
775
+ contractAddress: string;
776
+ chainId: string | number | bigint;
777
+ r: string;
778
+ s: string;
779
+ yParity: string | number | bigint;
780
+ v?: string | number | bigint | undefined;
781
+ } | {
782
+ address: string;
783
+ nonce: string | number | bigint;
784
+ chainId: string | number | bigint;
785
+ r: string;
786
+ s: string;
787
+ yParity: string | number | bigint;
788
+ v?: string | number | bigint | undefined;
789
+ } | null | undefined;
588
790
  }>]>, import("zod").ZodEffects<import("zod").ZodString, `0x${string}`, string>], null>;
589
791
  result: import("zod").ZodEffects<import("zod").ZodString, `0x${string}`, string>;
590
792
  }, "strip", import("zod").ZodTypeAny, {
@@ -684,6 +886,40 @@ export declare const ethSendUserOperationHandler: {
684
886
  yParity: number;
685
887
  v?: bigint | undefined;
686
888
  } | null | undefined;
889
+ } | {
890
+ sender: `0x${string}`;
891
+ factory: `0x${string}` | null;
892
+ paymaster: `0x${string}` | null;
893
+ nonce: bigint;
894
+ callData: `0x${string}`;
895
+ callGasLimit: bigint;
896
+ verificationGasLimit: bigint;
897
+ preVerificationGas: bigint;
898
+ maxFeePerGas: bigint;
899
+ maxPriorityFeePerGas: bigint;
900
+ signature: `0x${string}`;
901
+ paymasterVerificationGasLimit: bigint | null;
902
+ paymasterPostOpGasLimit: bigint | null;
903
+ factoryData: `0x${string}` | null;
904
+ paymasterData: `0x${string}` | null;
905
+ paymasterSignature: `0x${string}` | null;
906
+ eip7702Auth?: {
907
+ nonce: number;
908
+ contractAddress: `0x${string}`;
909
+ chainId: number;
910
+ r: `0x${string}`;
911
+ s: `0x${string}`;
912
+ yParity: number;
913
+ v?: bigint | undefined;
914
+ } | {
915
+ address: `0x${string}`;
916
+ nonce: number;
917
+ chainId: number;
918
+ r: `0x${string}`;
919
+ s: `0x${string}`;
920
+ yParity: number;
921
+ v?: bigint | undefined;
922
+ } | null | undefined;
687
923
  }, `0x${string}`];
688
924
  method: "eth_sendUserOperation";
689
925
  }, {
@@ -783,6 +1019,40 @@ export declare const ethSendUserOperationHandler: {
783
1019
  yParity: string | number | bigint;
784
1020
  v?: string | number | bigint | undefined;
785
1021
  } | null | undefined;
1022
+ } | {
1023
+ sender: string;
1024
+ nonce: string | number | bigint;
1025
+ callData: string;
1026
+ callGasLimit: string | number | bigint;
1027
+ verificationGasLimit: string | number | bigint;
1028
+ preVerificationGas: string | number | bigint;
1029
+ maxFeePerGas: string | number | bigint;
1030
+ maxPriorityFeePerGas: string | number | bigint;
1031
+ signature: string;
1032
+ factory?: string | null | undefined;
1033
+ factoryData?: string | null | undefined;
1034
+ paymaster?: string | null | undefined;
1035
+ paymasterVerificationGasLimit?: string | number | bigint | null | undefined;
1036
+ paymasterPostOpGasLimit?: string | number | bigint | null | undefined;
1037
+ paymasterData?: string | null | undefined;
1038
+ paymasterSignature?: string | null | undefined;
1039
+ eip7702Auth?: {
1040
+ nonce: string | number | bigint;
1041
+ contractAddress: string;
1042
+ chainId: string | number | bigint;
1043
+ r: string;
1044
+ s: string;
1045
+ yParity: string | number | bigint;
1046
+ v?: string | number | bigint | undefined;
1047
+ } | {
1048
+ address: string;
1049
+ nonce: string | number | bigint;
1050
+ chainId: string | number | bigint;
1051
+ r: string;
1052
+ s: string;
1053
+ yParity: string | number | bigint;
1054
+ v?: string | number | bigint | undefined;
1055
+ } | null | undefined;
786
1056
  }, string];
787
1057
  method: "eth_sendUserOperation";
788
1058
  }>;
@@ -884,6 +1154,40 @@ export declare const ethSendUserOperationHandler: {
884
1154
  yParity: number;
885
1155
  v?: bigint | undefined;
886
1156
  } | null | undefined;
1157
+ }> | import("type-fest/source/readonly-deep").ReadonlyObjectDeep<{
1158
+ sender: `0x${string}`;
1159
+ factory: `0x${string}` | null;
1160
+ paymaster: `0x${string}` | null;
1161
+ nonce: bigint;
1162
+ callData: `0x${string}`;
1163
+ callGasLimit: bigint;
1164
+ verificationGasLimit: bigint;
1165
+ preVerificationGas: bigint;
1166
+ maxFeePerGas: bigint;
1167
+ maxPriorityFeePerGas: bigint;
1168
+ signature: `0x${string}`;
1169
+ paymasterVerificationGasLimit: bigint | null;
1170
+ paymasterPostOpGasLimit: bigint | null;
1171
+ factoryData: `0x${string}` | null;
1172
+ paymasterData: `0x${string}` | null;
1173
+ paymasterSignature: `0x${string}` | null;
1174
+ eip7702Auth?: {
1175
+ nonce: number;
1176
+ contractAddress: `0x${string}`;
1177
+ chainId: number;
1178
+ r: `0x${string}`;
1179
+ s: `0x${string}`;
1180
+ yParity: number;
1181
+ v?: bigint | undefined;
1182
+ } | {
1183
+ address: `0x${string}`;
1184
+ nonce: number;
1185
+ chainId: number;
1186
+ r: `0x${string}`;
1187
+ s: `0x${string}`;
1188
+ yParity: number;
1189
+ v?: bigint | undefined;
1190
+ } | null | undefined;
887
1191
  }>, `0x${string}`];
888
1192
  apiVersion: ApiVersion;
889
1193
  }) => `0x${string}` | Promise<`0x${string}`>;
@@ -1,25 +1,86 @@
1
- import { RpcError, ValidationErrors, sendUserOperationSchema } from "../../types/index.js";
2
- import { calcExecutionPvgComponent, calcL2PvgComponent, getAAError } from "../../utils/index.js";
3
- import { getNonceKeyAndSequence, getUserOpHash } from "../../utils/userop.js";
1
+ import { ERC7769Errors, RpcError, sendUserOperationSchema } from "../../types/index.js";
2
+ import { getAAError } from "../../utils/index.js";
3
+ import { slice } from "viem";
4
+ import { getFilterOpsResult } from "../../executor/filterOpsAndEstimateGas.js";
5
+ import { getNonceKeyAndSequence, getUserOpHash, getViemEntryPointVersion } from "../../utils/userop.js";
4
6
  import { createMethodHandler } from "../createMethodHandler.js";
5
- const validatePvg = async (apiVersion, rpcHandler, userOp, entryPoint, boost = false) => {
7
+ import { calcExecutionPvgComponent, calcL2PvgComponent, calcMonadPvg } from "../estimation/preVerificationGasCalculator.js";
8
+ const validateChainRules = async ({ rpcHandler, userOp, entryPoint, config }) => {
9
+ // Monad-specific validation
10
+ if (config.chainType === "monad") {
11
+ const { gasPriceManager } = rpcHandler;
12
+ const { publicClient, utilityWalletAddress } = config;
13
+ const senderCode = await publicClient.getCode({
14
+ address: userOp.sender
15
+ });
16
+ const is7702Delegated = senderCode && slice(senderCode, 0, 3) === "0xef0100";
17
+ if (is7702Delegated || userOp.eip7702Auth) {
18
+ // Need to do a balance reserve check for 7702 userOps
19
+ try {
20
+ const userOpInfo = {
21
+ userOp,
22
+ userOpHash: getUserOpHash({
23
+ userOp,
24
+ entryPointAddress: entryPoint,
25
+ chainId: rpcHandler.config.chainId
26
+ }),
27
+ addedToMempool: Date.now(),
28
+ submissionAttempts: 0
29
+ };
30
+ const userOpBundle = {
31
+ entryPoint,
32
+ version: getViemEntryPointVersion(userOp, entryPoint),
33
+ userOps: [userOpInfo],
34
+ submissionAttempts: 0
35
+ };
36
+ await getFilterOpsResult({
37
+ userOpBundle,
38
+ config,
39
+ networkBaseFee: await gasPriceManager.getBaseFee(),
40
+ beneficiary: utilityWalletAddress
41
+ });
42
+ }
43
+ catch {
44
+ return [
45
+ false,
46
+ "Balance reserve error: userOp.sender needs atleast 10 MON at the end of transaction."
47
+ ];
48
+ }
49
+ }
50
+ }
51
+ // Add more chain-specific validations here in the future
52
+ return [true, ""];
53
+ };
54
+ const validatePvg = async ({ apiVersion, rpcHandler, userOp, entryPoint, config, isBoosted = false }) => {
6
55
  // PVG validation is skipped for v1
7
- if (apiVersion === "v1" || boost) {
56
+ if (apiVersion === "v1" || isBoosted) {
8
57
  return [true, ""];
9
58
  }
10
- const executionGasComponent = calcExecutionPvgComponent({
11
- userOp,
12
- supportsEip7623: rpcHandler.config.supportsEip7623,
13
- config: rpcHandler.config
14
- });
15
- const l2GasComponent = await calcL2PvgComponent({
16
- config: rpcHandler.config,
17
- userOp,
18
- entryPoint,
19
- gasPriceManager: rpcHandler.gasPriceManager,
20
- validate: true
21
- });
22
- const requiredPvg = executionGasComponent + l2GasComponent;
59
+ let requiredPvg;
60
+ if (config.chainType === "monad") {
61
+ // Monad consumes the entire gasLimit, so PVG is calculated differently
62
+ requiredPvg = await calcMonadPvg({
63
+ userOp,
64
+ config,
65
+ entryPoint,
66
+ validate: true
67
+ });
68
+ }
69
+ else {
70
+ const executionGasComponent = calcExecutionPvgComponent({
71
+ userOp,
72
+ supportsEip7623: rpcHandler.config.supportsEip7623,
73
+ config: rpcHandler.config
74
+ });
75
+ const l2GasComponent = await calcL2PvgComponent({
76
+ config: rpcHandler.config,
77
+ userOp,
78
+ entryPoint,
79
+ gasPriceManager: rpcHandler.gasPriceManager,
80
+ validate: true
81
+ });
82
+ requiredPvg = executionGasComponent + l2GasComponent;
83
+ }
23
84
  if (requiredPvg > userOp.preVerificationGas) {
24
85
  return [
25
86
  false,
@@ -28,11 +89,20 @@ const validatePvg = async (apiVersion, rpcHandler, userOp, entryPoint, boost = f
28
89
  }
29
90
  return [true, ""];
30
91
  };
31
- const getUserOpValidationResult = async (rpcHandler, userOp, entryPoint) => {
32
- const queuedUserOps = await rpcHandler.mempool.getQueuedOustandingUserOps({
92
+ const getUserOpValidationResult = async ({ rpcHandler, userOp, entryPoint }) => {
93
+ const queuedUserOps = await rpcHandler.mempool.getQueuedOutstandingUserOps({
33
94
  userOp,
34
95
  entryPoint
35
96
  });
97
+ // Log queued userOps.
98
+ if (queuedUserOps.length > 0) {
99
+ const queuedHashes = queuedUserOps.map((userOp) => getUserOpHash({
100
+ userOp,
101
+ entryPointAddress: entryPoint,
102
+ chainId: rpcHandler.config.chainId
103
+ }));
104
+ rpcHandler.logger.info({ queuedHashes }, "Found queuedUserOps");
105
+ }
36
106
  const validationResult = await rpcHandler.validator.validateUserOp({
37
107
  userOp,
38
108
  queuedUserOps,
@@ -43,63 +113,95 @@ const getUserOpValidationResult = async (rpcHandler, userOp, entryPoint) => {
43
113
  validationResult
44
114
  };
45
115
  };
46
- export async function addToMempoolIfValid({ rpcHandler, userOp, entryPoint, apiVersion, boost = false }) {
116
+ export async function addToMempoolIfValid({ rpcHandler, userOp, entryPoint, apiVersion, isBoosted = false }) {
47
117
  rpcHandler.ensureEntryPointIsSupported(entryPoint);
118
+ // Validate userOp fields (sync - fail fast before expensive async checks)
119
+ const [fieldsValid, fieldsError] = rpcHandler.validateUserOpFields({
120
+ userOp,
121
+ entryPoint,
122
+ isBoosted
123
+ });
124
+ if (!fieldsValid) {
125
+ throw new RpcError(fieldsError, ERC7769Errors.InvalidFields);
126
+ }
127
+ const userOpHash = getUserOpHash({
128
+ userOp,
129
+ entryPointAddress: entryPoint,
130
+ chainId: rpcHandler.config.chainId
131
+ });
132
+ const userOpInfo = {
133
+ userOp,
134
+ userOpHash,
135
+ addedToMempool: Date.now(),
136
+ submissionAttempts: 0
137
+ };
48
138
  // Execute multiple async operations in parallel
49
- const [userOpHash, { queuedUserOps, validationResult }, currentNonceSeq, [pvgSuccess, pvgErrorReason], [preMempoolSuccess, preMempoolError], [validEip7702Auth, validEip7702AuthError]] = await Promise.all([
50
- getUserOpHash({
139
+ const [{ queuedUserOps, validationResult }, currentNonceSeq, [isPvgValid, pvgError], [isGasPriceValid, gasPriceError], [isEip7702AuthValid, eip7702AuthError], [isChainRulesValid, chainRulesError]] = await Promise.all([
140
+ getUserOpValidationResult({ rpcHandler, userOp, entryPoint }),
141
+ rpcHandler.getNonceSeq({ userOp, entryPoint }),
142
+ validatePvg({
143
+ apiVersion,
144
+ rpcHandler,
51
145
  userOp,
52
- entryPointAddress: entryPoint,
53
- chainId: rpcHandler.config.chainId,
54
- publicClient: rpcHandler.config.publicClient
146
+ entryPoint,
147
+ isBoosted,
148
+ config: rpcHandler.config
55
149
  }),
56
- getUserOpValidationResult(rpcHandler, userOp, entryPoint),
57
- rpcHandler.getNonceSeq(userOp, entryPoint),
58
- validatePvg(apiVersion, rpcHandler, userOp, entryPoint, boost),
59
- rpcHandler.preMempoolChecks(userOp, apiVersion, boost),
150
+ rpcHandler.validateUserOpGasPrice({ userOp, apiVersion, isBoosted }),
60
151
  rpcHandler.validateEip7702Auth({
61
152
  userOp,
62
- validateSender: true
153
+ validateSignature: true
154
+ }),
155
+ validateChainRules({
156
+ rpcHandler,
157
+ userOp,
158
+ entryPoint,
159
+ config: rpcHandler.config
63
160
  })
64
161
  ]);
65
162
  // Validate eip7702Auth
66
- if (!validEip7702Auth) {
67
- rpcHandler.eventManager.emitFailedValidation(userOpHash, validEip7702AuthError);
68
- throw new RpcError(validEip7702AuthError, ValidationErrors.InvalidFields);
163
+ if (!isEip7702AuthValid) {
164
+ rpcHandler.eventManager.emitFailedValidation(userOpHash, eip7702AuthError);
165
+ throw new RpcError(eip7702AuthError, ERC7769Errors.InvalidFields);
69
166
  }
70
- // Pre mempool validation
71
- if (!preMempoolSuccess) {
72
- rpcHandler.eventManager.emitFailedValidation(userOpHash, preMempoolError);
73
- throw new RpcError(preMempoolError);
167
+ // Gas price validation
168
+ if (!isGasPriceValid) {
169
+ rpcHandler.eventManager.emitFailedValidation(userOpHash, gasPriceError);
170
+ throw new RpcError(gasPriceError, ERC7769Errors.InvalidFields);
74
171
  }
75
172
  // PreVerificationGas validation
76
- if (!pvgSuccess) {
77
- rpcHandler.eventManager.emitFailedValidation(userOpHash, pvgErrorReason);
78
- throw new RpcError(pvgErrorReason, ValidationErrors.SimulateValidation);
173
+ if (!isPvgValid) {
174
+ rpcHandler.eventManager.emitFailedValidation(userOpHash, pvgError);
175
+ throw new RpcError(pvgError, ERC7769Errors.SimulateValidation);
79
176
  }
80
177
  // Nonce validation
81
178
  const [, userOpNonceSeq] = getNonceKeyAndSequence(userOp.nonce);
82
179
  if (userOpNonceSeq < currentNonceSeq) {
83
180
  const reason = "UserOperation failed validation with reason: AA25 invalid account nonce";
84
181
  rpcHandler.eventManager.emitFailedValidation(userOpHash, reason, "AA25");
85
- throw new RpcError(reason, ValidationErrors.InvalidFields);
182
+ throw new RpcError(reason, ERC7769Errors.SimulateValidation);
86
183
  }
87
184
  if (userOpNonceSeq > currentNonceSeq + 10n) {
88
185
  const reason = "UserOperation failed validaiton with reason: AA25 invalid account nonce";
89
186
  rpcHandler.eventManager.emitFailedValidation(userOpHash, reason, "AA25");
90
- throw new RpcError(reason, ValidationErrors.InvalidFields);
187
+ throw new RpcError(reason, ERC7769Errors.SimulateValidation);
91
188
  }
92
189
  if (userOpNonceSeq > currentNonceSeq + BigInt(queuedUserOps.length)) {
93
- rpcHandler.mempool.add(userOp, entryPoint);
190
+ rpcHandler.mempool.add({ userOpInfo, entryPoint });
94
191
  rpcHandler.eventManager.emitQueued(userOpHash);
95
192
  return { result: "queued", userOpHash };
96
193
  }
194
+ // Chain rules validation
195
+ if (!isChainRulesValid) {
196
+ rpcHandler.eventManager.emitFailedValidation(userOpHash, chainRulesError);
197
+ throw new RpcError(chainRulesError, ERC7769Errors.InvalidFields);
198
+ }
97
199
  // userOp validation
98
200
  if (rpcHandler.config.dangerousSkipUserOperationValidation) {
99
- const [isMempoolAddSuccess, mempoolAddError] = await rpcHandler.mempool.add(userOp, entryPoint);
201
+ const [isMempoolAddSuccess, mempoolAddError] = await rpcHandler.mempool.add({ userOpInfo, entryPoint });
100
202
  if (!isMempoolAddSuccess) {
101
203
  rpcHandler.eventManager.emitFailedValidation(userOpHash, mempoolAddError, getAAError(mempoolAddError));
102
- throw new RpcError(mempoolAddError, ValidationErrors.InvalidFields);
204
+ throw new RpcError(mempoolAddError, ERC7769Errors.InvalidFields);
103
205
  }
104
206
  return { result: "added", userOpHash };
105
207
  }
@@ -107,10 +209,13 @@ export async function addToMempoolIfValid({ rpcHandler, userOp, entryPoint, apiV
107
209
  rpcHandler.reputationManager.checkReputation(userOp, entryPoint, validationResult);
108
210
  await rpcHandler.mempool.checkEntityMultipleRoleViolation(entryPoint, userOp);
109
211
  // Finally, add to mempool
110
- const [isMempoolAddSuccess, mempoolAddError] = await rpcHandler.mempool.add(userOp, entryPoint, validationResult.referencedContracts);
212
+ const [isMempoolAddSuccess, mempoolAddError] = await rpcHandler.mempool.add({
213
+ userOpInfo,
214
+ entryPoint
215
+ });
111
216
  if (!isMempoolAddSuccess) {
112
217
  rpcHandler.eventManager.emitFailedValidation(userOpHash, mempoolAddError, getAAError(mempoolAddError));
113
- throw new RpcError(mempoolAddError, ValidationErrors.InvalidFields);
218
+ throw new RpcError(mempoolAddError, ERC7769Errors.InvalidFields);
114
219
  }
115
220
  return { result: "added", userOpHash };
116
221
  }
@@ -1 +1 @@
1
- {"version":3,"file":"eth_sendUserOperation.js","sourceRoot":"","sources":["../../../rpc/methods/eth_sendUserOperation.ts"],"names":[],"mappings":"AAAA,OAAO,EAIH,QAAQ,EAER,gBAAgB,EAChB,uBAAuB,EAC1B,MAAM,aAAa,CAAA;AAEpB,OAAO,EACH,yBAAyB,EACzB,kBAAkB,EAClB,UAAU,EACb,MAAM,aAAa,CAAA;AAEpB,OAAO,EAAE,sBAAsB,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAA;AAC1E,OAAO,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAA;AAG5D,MAAM,WAAW,GAAG,KAAK,EACrB,UAAsB,EACtB,UAAsB,EACtB,MAAqB,EACrB,UAAmB,EACnB,KAAK,GAAG,KAAK,EACa,EAAE;IAC5B,mCAAmC;IACnC,IAAI,UAAU,KAAK,IAAI,IAAI,KAAK,EAAE,CAAC;QAC/B,OAAO,CAAC,IAAI,EAAE,EAAE,CAAC,CAAA;IACrB,CAAC;IAED,MAAM,qBAAqB,GAAG,yBAAyB,CAAC;QACpD,MAAM;QACN,eAAe,EAAE,UAAU,CAAC,MAAM,CAAC,eAAe;QAClD,MAAM,EAAE,UAAU,CAAC,MAAM;KAC5B,CAAC,CAAA;IACF,MAAM,cAAc,GAAG,MAAM,kBAAkB,CAAC;QAC5C,MAAM,EAAE,UAAU,CAAC,MAAM;QACzB,MAAM;QACN,UAAU;QACV,eAAe,EAAE,UAAU,CAAC,eAAe;QAC3C,QAAQ,EAAE,IAAI;KACjB,CAAC,C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