@pimlico/alto 0.0.0-main.20240607T104359 → 0.0.0-staging.20240606T095015

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 (369) hide show
  1. package/lib/cli/config/bundler.js +73 -76
  2. package/lib/cli/config/bundler.js.map +1 -1
  3. package/lib/cli/config/index.js +2 -18
  4. package/lib/cli/config/index.js.map +1 -1
  5. package/lib/cli/config/options.js +10 -13
  6. package/lib/cli/config/options.js.map +1 -1
  7. package/lib/cli/customTransport.js +7 -11
  8. package/lib/cli/customTransport.js.map +1 -1
  9. package/lib/cli/handler.js +24 -28
  10. package/lib/cli/handler.js.map +1 -1
  11. package/lib/cli/index.d.ts +0 -1
  12. package/lib/cli/index.js +2 -19
  13. package/lib/cli/index.js.map +1 -1
  14. package/lib/cli/instrumentation.js +20 -22
  15. package/lib/cli/instrumentation.js.map +1 -1
  16. package/lib/cli/setupServer.js +17 -21
  17. package/lib/cli/setupServer.js.map +1 -1
  18. package/lib/cli/util.js +1 -5
  19. package/lib/cli/util.js.map +1 -1
  20. package/lib/executor/executor.js +56 -90
  21. package/lib/executor/executor.js.map +1 -1
  22. package/lib/executor/executorManager.js +7 -12
  23. package/lib/executor/executorManager.js.map +1 -1
  24. package/lib/executor/index.js +4 -20
  25. package/lib/executor/index.js.map +1 -1
  26. package/lib/executor/senderManager.js +8 -12
  27. package/lib/executor/senderManager.js.map +1 -1
  28. package/lib/executor/test/utils.js +22 -28
  29. package/lib/executor/test/utils.js.map +1 -1
  30. package/lib/executor/utils.js +32 -64
  31. package/lib/executor/utils.js.map +1 -1
  32. package/lib/index.d.ts +5 -1
  33. package/lib/index.js +91 -3
  34. package/lib/index.js.map +1 -1
  35. package/lib/mempool/index.js +4 -20
  36. package/lib/mempool/index.js.map +1 -1
  37. package/lib/mempool/mempool.js +55 -59
  38. package/lib/mempool/mempool.js.map +1 -1
  39. package/lib/mempool/monitoring.js +1 -5
  40. package/lib/mempool/monitoring.js.map +1 -1
  41. package/lib/mempool/nullMempool.js +1 -5
  42. package/lib/mempool/nullMempool.js.map +1 -1
  43. package/lib/mempool/reputationManager.js +44 -49
  44. package/lib/mempool/reputationManager.js.map +1 -1
  45. package/lib/mempool/store.js +1 -5
  46. package/lib/mempool/store.js.map +1 -1
  47. package/lib/rpc/EntryPointSimulationsV07.js +44 -50
  48. package/lib/rpc/EntryPointSimulationsV07.js.map +1 -1
  49. package/lib/rpc/ExecuteSimulator.js +2 -5
  50. package/lib/rpc/ExecuteSimulator.js.map +1 -1
  51. package/lib/rpc/gasEstimation.js +62 -69
  52. package/lib/rpc/gasEstimation.js.map +1 -1
  53. package/lib/rpc/index.js +4 -20
  54. package/lib/rpc/index.js.map +1 -1
  55. package/lib/rpc/nonceQueuer.js +16 -20
  56. package/lib/rpc/nonceQueuer.js.map +1 -1
  57. package/lib/rpc/rpcHandler.js +76 -103
  58. package/lib/rpc/rpcHandler.js.map +1 -1
  59. package/lib/rpc/server.js +27 -58
  60. package/lib/rpc/server.js.map +1 -1
  61. package/lib/rpc/validation/BundlerCollectorTracerV06.js +1 -5
  62. package/lib/rpc/validation/BundlerCollectorTracerV06.js.map +1 -1
  63. package/lib/rpc/validation/BundlerCollectorTracerV07.js +1 -5
  64. package/lib/rpc/validation/BundlerCollectorTracerV07.js.map +1 -1
  65. package/lib/rpc/validation/SafeValidator.js +65 -69
  66. package/lib/rpc/validation/SafeValidator.js.map +1 -1
  67. package/lib/rpc/validation/TracerResultParserV06.js +26 -30
  68. package/lib/rpc/validation/TracerResultParserV06.js.map +1 -1
  69. package/lib/rpc/validation/TracerResultParserV07.js +29 -36
  70. package/lib/rpc/validation/TracerResultParserV07.js.map +1 -1
  71. package/lib/rpc/validation/UnsafeValidator.js +46 -73
  72. package/lib/rpc/validation/UnsafeValidator.js.map +1 -1
  73. package/lib/rpc/validation/index.js +2 -18
  74. package/lib/rpc/validation/index.js.map +1 -1
  75. package/lib/rpc/validation/tracer.js +7 -37
  76. package/lib/rpc/validation/tracer.js.map +1 -1
  77. package/lib/types/contracts/BundleBulker.js +1 -4
  78. package/lib/types/contracts/BundleBulker.js.map +1 -1
  79. package/lib/types/contracts/CallEngine.js +1 -4
  80. package/lib/types/contracts/CallEngine.js.map +1 -1
  81. package/lib/types/contracts/CodeHashGetter.js +2 -5
  82. package/lib/types/contracts/CodeHashGetter.js.map +1 -1
  83. package/lib/types/contracts/EntryPoint.js +4 -7
  84. package/lib/types/contracts/EntryPoint.js.map +1 -1
  85. package/lib/types/contracts/EntryPointSimulations.js +3 -6
  86. package/lib/types/contracts/EntryPointSimulations.js.map +1 -1
  87. package/lib/types/contracts/IOpInflator.js +1 -4
  88. package/lib/types/contracts/IOpInflator.js.map +1 -1
  89. package/lib/types/contracts/IPaymaster.js +1 -4
  90. package/lib/types/contracts/IPaymaster.js.map +1 -1
  91. package/lib/types/contracts/Inflator.js +1 -4
  92. package/lib/types/contracts/Inflator.js.map +1 -1
  93. package/lib/types/contracts/PerOpInflator.js +1 -4
  94. package/lib/types/contracts/PerOpInflator.js.map +1 -1
  95. package/lib/types/contracts/PimlicoEntryPointSimulations.js +2 -5
  96. package/lib/types/contracts/PimlicoEntryPointSimulations.js.map +1 -1
  97. package/lib/types/contracts/SenderCreator.js +2 -5
  98. package/lib/types/contracts/SenderCreator.js.map +1 -1
  99. package/lib/types/contracts/SimpleAccountFactory.js +2 -5
  100. package/lib/types/contracts/SimpleAccountFactory.js.map +1 -1
  101. package/lib/types/contracts/TestOpcodesAccount.js +2 -5
  102. package/lib/types/contracts/TestOpcodesAccount.js.map +1 -1
  103. package/lib/types/contracts/TestOpcodesAccountFactory.js +2 -5
  104. package/lib/types/contracts/TestOpcodesAccountFactory.js.map +1 -1
  105. package/lib/types/contracts/TestStorageAccount.js +2 -5
  106. package/lib/types/contracts/TestStorageAccount.js.map +1 -1
  107. package/lib/types/contracts/index.js +16 -32
  108. package/lib/types/contracts/index.js.map +1 -1
  109. package/lib/types/gasPrice.js +14 -17
  110. package/lib/types/gasPrice.js.map +1 -1
  111. package/lib/types/index.js +10 -26
  112. package/lib/types/index.js.map +1 -1
  113. package/lib/types/interfaces.js +1 -2
  114. package/lib/types/mempool.d.ts +1 -2
  115. package/lib/types/mempool.js +5 -10
  116. package/lib/types/mempool.js.map +1 -1
  117. package/lib/types/schemas.js +254 -284
  118. package/lib/types/schemas.js.map +1 -1
  119. package/lib/types/test/validationTestErrors.js +2 -5
  120. package/lib/types/test/validationTestErrors.js.map +1 -1
  121. package/lib/types/utils.js +5 -9
  122. package/lib/types/utils.js.map +1 -1
  123. package/lib/types/validation.js +139 -142
  124. package/lib/types/validation.js.map +1 -1
  125. package/lib/utils/bigInt.js +2 -7
  126. package/lib/utils/bigInt.js.map +1 -1
  127. package/lib/utils/compressionHandler.js +7 -11
  128. package/lib/utils/compressionHandler.js.map +1 -1
  129. package/lib/utils/gasPriceManager.js +30 -57
  130. package/lib/utils/gasPriceManager.js.map +1 -1
  131. package/lib/utils/helpers.js +5 -10
  132. package/lib/utils/helpers.js.map +1 -1
  133. package/lib/utils/index.js +9 -25
  134. package/lib/utils/index.js.map +1 -1
  135. package/lib/utils/logger.js +10 -19
  136. package/lib/utils/logger.js.map +1 -1
  137. package/lib/utils/metrics.js +20 -24
  138. package/lib/utils/metrics.js.map +1 -1
  139. package/lib/utils/rpc-reply.js +1 -3
  140. package/lib/utils/rpc-reply.js.map +1 -1
  141. package/lib/utils/test.js +36 -67
  142. package/lib/utils/test.js.map +1 -1
  143. package/lib/utils/userop.js +62 -107
  144. package/lib/utils/userop.js.map +1 -1
  145. package/lib/utils/validation.js +64 -99
  146. package/lib/utils/validation.js.map +1 -1
  147. package/package.json +68 -70
  148. package/esm/cli/alto.d.ts +0 -6
  149. package/esm/cli/alto.js +0 -92
  150. package/esm/cli/alto.js.map +0 -1
  151. package/esm/cli/config/bundler.d.ts +0 -391
  152. package/esm/cli/config/bundler.js +0 -132
  153. package/esm/cli/config/bundler.js.map +0 -1
  154. package/esm/cli/config/index.d.ts +0 -3
  155. package/esm/cli/config/index.js +0 -3
  156. package/esm/cli/config/index.js.map +0 -1
  157. package/esm/cli/config/options.d.ts +0 -11
  158. package/esm/cli/config/options.js +0 -336
  159. package/esm/cli/config/options.js.map +0 -1
  160. package/esm/cli/customTransport.d.ts +0 -14
  161. package/esm/cli/customTransport.js +0 -53
  162. package/esm/cli/customTransport.js.map +0 -1
  163. package/esm/cli/handler.d.ts +0 -3
  164. package/esm/cli/handler.js +0 -116
  165. package/esm/cli/handler.js.map +0 -1
  166. package/esm/cli/index.d.ts +0 -4
  167. package/esm/cli/index.js +0 -4
  168. package/esm/cli/index.js.map +0 -1
  169. package/esm/cli/instrumentation.d.ts +0 -2
  170. package/esm/cli/instrumentation.js +0 -39
  171. package/esm/cli/instrumentation.js.map +0 -1
  172. package/esm/cli/setupServer.d.ts +0 -17
  173. package/esm/cli/setupServer.js +0 -155
  174. package/esm/cli/setupServer.js.map +0 -1
  175. package/esm/cli/util.d.ts +0 -22
  176. package/esm/cli/util.js +0 -30
  177. package/esm/cli/util.js.map +0 -1
  178. package/esm/executor/executor.d.ts +0 -54
  179. package/esm/executor/executor.js +0 -643
  180. package/esm/executor/executor.js.map +0 -1
  181. package/esm/executor/executorManager.d.ts +0 -34
  182. package/esm/executor/executorManager.js +0 -402
  183. package/esm/executor/executorManager.js.map +0 -1
  184. package/esm/executor/index.d.ts +0 -5
  185. package/esm/executor/index.js +0 -5
  186. package/esm/executor/index.js.map +0 -1
  187. package/esm/executor/senderManager.d.ts +0 -17
  188. package/esm/executor/senderManager.js +0 -160
  189. package/esm/executor/senderManager.js.map +0 -1
  190. package/esm/executor/test/utils.d.ts +0 -13
  191. package/esm/executor/test/utils.js +0 -75
  192. package/esm/executor/test/utils.js.map +0 -1
  193. package/esm/executor/utils.d.ts +0 -32
  194. package/esm/executor/utils.js +0 -241
  195. package/esm/executor/utils.js.map +0 -1
  196. package/esm/index.d.ts +0 -2
  197. package/esm/index.js +0 -2
  198. package/esm/index.js.map +0 -1
  199. package/esm/mempool/index.d.ts +0 -5
  200. package/esm/mempool/index.js +0 -5
  201. package/esm/mempool/index.js.map +0 -1
  202. package/esm/mempool/mempool.d.ts +0 -64
  203. package/esm/mempool/mempool.js +0 -489
  204. package/esm/mempool/mempool.js.map +0 -1
  205. package/esm/mempool/monitoring.d.ts +0 -10
  206. package/esm/mempool/monitoring.js +0 -34
  207. package/esm/mempool/monitoring.js.map +0 -1
  208. package/esm/mempool/nullMempool.d.ts +0 -15
  209. package/esm/mempool/nullMempool.js +0 -36
  210. package/esm/mempool/nullMempool.js.map +0 -1
  211. package/esm/mempool/reputationManager.d.ts +0 -115
  212. package/esm/mempool/reputationManager.js +0 -397
  213. package/esm/mempool/reputationManager.js.map +0 -1
  214. package/esm/mempool/store.d.ts +0 -22
  215. package/esm/mempool/store.js +0 -123
  216. package/esm/mempool/store.js.map +0 -1
  217. package/esm/rpc/EntryPointSimulationsV07.d.ts +0 -58
  218. package/esm/rpc/EntryPointSimulationsV07.js +0 -407
  219. package/esm/rpc/EntryPointSimulationsV07.js.map +0 -1
  220. package/esm/rpc/ExecuteSimulator.d.ts +0 -37
  221. package/esm/rpc/ExecuteSimulator.js +0 -48
  222. package/esm/rpc/ExecuteSimulator.js.map +0 -1
  223. package/esm/rpc/gasEstimation.d.ts +0 -17
  224. package/esm/rpc/gasEstimation.js +0 -410
  225. package/esm/rpc/gasEstimation.js.map +0 -1
  226. package/esm/rpc/index.d.ts +0 -5
  227. package/esm/rpc/index.js +0 -5
  228. package/esm/rpc/index.js.map +0 -1
  229. package/esm/rpc/nonceQueuer.d.ts +0 -25
  230. package/esm/rpc/nonceQueuer.js +0 -135
  231. package/esm/rpc/nonceQueuer.js.map +0 -1
  232. package/esm/rpc/rpcHandler.d.ts +0 -64
  233. package/esm/rpc/rpcHandler.js +0 -727
  234. package/esm/rpc/rpcHandler.js.map +0 -1
  235. package/esm/rpc/server.d.ts +0 -31
  236. package/esm/rpc/server.js +0 -239
  237. package/esm/rpc/server.js.map +0 -1
  238. package/esm/rpc/validation/BundlerCollectorTracerV06.d.ts +0 -102
  239. package/esm/rpc/validation/BundlerCollectorTracerV06.js +0 -255
  240. package/esm/rpc/validation/BundlerCollectorTracerV06.js.map +0 -1
  241. package/esm/rpc/validation/BundlerCollectorTracerV07.d.ts +0 -102
  242. package/esm/rpc/validation/BundlerCollectorTracerV07.js +0 -254
  243. package/esm/rpc/validation/BundlerCollectorTracerV07.js.map +0 -1
  244. package/esm/rpc/validation/SafeValidator.d.ts +0 -35
  245. package/esm/rpc/validation/SafeValidator.js +0 -487
  246. package/esm/rpc/validation/SafeValidator.js.map +0 -1
  247. package/esm/rpc/validation/TracerResultParserV06.d.ts +0 -13
  248. package/esm/rpc/validation/TracerResultParserV06.js +0 -578
  249. package/esm/rpc/validation/TracerResultParserV06.js.map +0 -1
  250. package/esm/rpc/validation/TracerResultParserV07.d.ts +0 -33
  251. package/esm/rpc/validation/TracerResultParserV07.js +0 -557
  252. package/esm/rpc/validation/TracerResultParserV07.js.map +0 -1
  253. package/esm/rpc/validation/UnsafeValidator.d.ts +0 -63
  254. package/esm/rpc/validation/UnsafeValidator.js +0 -257
  255. package/esm/rpc/validation/UnsafeValidator.js.map +0 -1
  256. package/esm/rpc/validation/index.d.ts +0 -3
  257. package/esm/rpc/validation/index.js +0 -3
  258. package/esm/rpc/validation/index.js.map +0 -1
  259. package/esm/rpc/validation/tracer.d.ts +0 -122
  260. package/esm/rpc/validation/tracer.js +0 -82
  261. package/esm/rpc/validation/tracer.js.map +0 -1
  262. package/esm/types/contracts/BundleBulker.d.ts +0 -120
  263. package/esm/types/contracts/BundleBulker.js +0 -157
  264. package/esm/types/contracts/BundleBulker.js.map +0 -1
  265. package/esm/types/contracts/CallEngine.d.ts +0 -28
  266. package/esm/types/contracts/CallEngine.js +0 -37
  267. package/esm/types/contracts/CallEngine.js.map +0 -1
  268. package/esm/types/contracts/CodeHashGetter.d.ts +0 -37
  269. package/esm/types/contracts/CodeHashGetter.js +0 -45
  270. package/esm/types/contracts/CodeHashGetter.js.map +0 -1
  271. package/esm/types/contracts/EntryPoint.d.ts +0 -1789
  272. package/esm/types/contracts/EntryPoint.js +0 -2304
  273. package/esm/types/contracts/EntryPoint.js.map +0 -1
  274. package/esm/types/contracts/EntryPointSimulations.d.ts +0 -153
  275. package/esm/types/contracts/EntryPointSimulations.js +0 -15
  276. package/esm/types/contracts/EntryPointSimulations.js.map +0 -1
  277. package/esm/types/contracts/IOpInflator.d.ts +0 -61
  278. package/esm/types/contracts/IOpInflator.js +0 -80
  279. package/esm/types/contracts/IOpInflator.js.map +0 -1
  280. package/esm/types/contracts/IPaymaster.d.ts +0 -3
  281. package/esm/types/contracts/IPaymaster.js +0 -117
  282. package/esm/types/contracts/IPaymaster.js.map +0 -1
  283. package/esm/types/contracts/Inflator.d.ts +0 -65
  284. package/esm/types/contracts/Inflator.js +0 -84
  285. package/esm/types/contracts/Inflator.js.map +0 -1
  286. package/esm/types/contracts/PerOpInflator.d.ts +0 -176
  287. package/esm/types/contracts/PerOpInflator.js +0 -229
  288. package/esm/types/contracts/PerOpInflator.js.map +0 -1
  289. package/esm/types/contracts/PimlicoEntryPointSimulations.d.ts +0 -23
  290. package/esm/types/contracts/PimlicoEntryPointSimulations.js +0 -33
  291. package/esm/types/contracts/PimlicoEntryPointSimulations.js.map +0 -1
  292. package/esm/types/contracts/SenderCreator.d.ts +0 -4
  293. package/esm/types/contracts/SenderCreator.js +0 -23
  294. package/esm/types/contracts/SenderCreator.js.map +0 -1
  295. package/esm/types/contracts/SimpleAccountFactory.d.ts +0 -57
  296. package/esm/types/contracts/SimpleAccountFactory.js +0 -76
  297. package/esm/types/contracts/SimpleAccountFactory.js.map +0 -1
  298. package/esm/types/contracts/TestOpcodesAccount.d.ts +0 -4
  299. package/esm/types/contracts/TestOpcodesAccount.js +0 -281
  300. package/esm/types/contracts/TestOpcodesAccount.js.map +0 -1
  301. package/esm/types/contracts/TestOpcodesAccountFactory.d.ts +0 -4
  302. package/esm/types/contracts/TestOpcodesAccountFactory.js +0 -23
  303. package/esm/types/contracts/TestOpcodesAccountFactory.js.map +0 -1
  304. package/esm/types/contracts/TestStorageAccount.d.ts +0 -4
  305. package/esm/types/contracts/TestStorageAccount.js +0 -313
  306. package/esm/types/contracts/TestStorageAccount.js.map +0 -1
  307. package/esm/types/contracts/index.d.ts +0 -17
  308. package/esm/types/contracts/index.js +0 -17
  309. package/esm/types/contracts/index.js.map +0 -1
  310. package/esm/types/gasPrice.d.ts +0 -110
  311. package/esm/types/gasPrice.js +0 -52
  312. package/esm/types/gasPrice.js.map +0 -1
  313. package/esm/types/index.d.ts +0 -11
  314. package/esm/types/index.js +0 -11
  315. package/esm/types/index.js.map +0 -1
  316. package/esm/types/interfaces.d.ts +0 -26
  317. package/esm/types/interfaces.js +0 -2
  318. package/esm/types/interfaces.js.map +0 -1
  319. package/esm/types/mempool.d.ts +0 -79
  320. package/esm/types/mempool.js +0 -16
  321. package/esm/types/mempool.js.map +0 -1
  322. package/esm/types/schemas.d.ts +0 -4791
  323. package/esm/types/schemas.js +0 -497
  324. package/esm/types/schemas.js.map +0 -1
  325. package/esm/types/test/validationTestErrors.d.ts +0 -3
  326. package/esm/types/test/validationTestErrors.js +0 -229
  327. package/esm/types/test/validationTestErrors.js.map +0 -1
  328. package/esm/types/utils.d.ts +0 -24
  329. package/esm/types/utils.js +0 -30
  330. package/esm/types/utils.js.map +0 -1
  331. package/esm/types/validation.d.ts +0 -14327
  332. package/esm/types/validation.js +0 -304
  333. package/esm/types/validation.js.map +0 -1
  334. package/esm/utils/bigInt.d.ts +0 -3
  335. package/esm/utils/bigInt.js +0 -9
  336. package/esm/utils/bigInt.js.map +0 -1
  337. package/esm/utils/compressionHandler.d.ts +0 -11
  338. package/esm/utils/compressionHandler.js +0 -39
  339. package/esm/utils/compressionHandler.js.map +0 -1
  340. package/esm/utils/gasPriceManager.d.ts +0 -34
  341. package/esm/utils/gasPriceManager.js +0 -338
  342. package/esm/utils/gasPriceManager.js.map +0 -1
  343. package/esm/utils/helpers.d.ts +0 -4
  344. package/esm/utils/helpers.js +0 -13
  345. package/esm/utils/helpers.js.map +0 -1
  346. package/esm/utils/index.d.ts +0 -11
  347. package/esm/utils/index.js +0 -10
  348. package/esm/utils/index.js.map +0 -1
  349. package/esm/utils/logger.d.ts +0 -6
  350. package/esm/utils/logger.js +0 -76
  351. package/esm/utils/logger.js.map +0 -1
  352. package/esm/utils/metrics.d.ts +0 -22
  353. package/esm/utils/metrics.js +0 -150
  354. package/esm/utils/metrics.js.map +0 -1
  355. package/esm/utils/rpc-reply.d.ts +0 -17
  356. package/esm/utils/rpc-reply.js +0 -41
  357. package/esm/utils/rpc-reply.js.map +0 -1
  358. package/esm/utils/test.d.ts +0 -17
  359. package/esm/utils/test.js +0 -130
  360. package/esm/utils/test.js.map +0 -1
  361. package/esm/utils/userop.d.ts +0 -49
  362. package/esm/utils/userop.js +0 -408
  363. package/esm/utils/userop.js.map +0 -1
  364. package/esm/utils/validation.d.ts +0 -65
  365. package/esm/utils/validation.js +0 -461
  366. package/esm/utils/validation.js.map +0 -1
  367. package/lib/cli/alto.d.ts +0 -6
  368. package/lib/cli/alto.js +0 -123
  369. package/lib/cli/alto.js.map +0 -1
@@ -1,35 +0,0 @@
1
- import type { SenderManager } from "../../executor/index.js";
2
- import type { ChainType, InterfaceValidator, UserOperationV06, UserOperationV07, ValidationResult, ValidationResultV06, ValidationResultV07, ValidationResultWithAggregationV06, ValidationResultWithAggregationV07 } from "../../types/index.js";
3
- import { type Address, type ReferencedCodeHashes, type StorageMap, type UserOperation, type ValidationResultWithAggregation } from "../../types/index.js";
4
- import type { GasPriceManager, Logger, Metrics } from "../../utils/index.js";
5
- import { type Chain, type PublicClient, type Transport } from "viem";
6
- import { type BundlerTracerResult } from "./BundlerCollectorTracerV06.js";
7
- import { UnsafeValidator } from "./UnsafeValidator.js";
8
- export declare class SafeValidator extends UnsafeValidator implements InterfaceValidator {
9
- private senderManager;
10
- constructor(publicClient: PublicClient<Transport, Chain>, senderManager: SenderManager, logger: Logger, metrics: Metrics, gasPriceManager: GasPriceManager, chainType: ChainType, entryPointSimulationsAddress?: Address, fixedGasLimitForEstimation?: bigint, usingTenderly?: boolean, balanceOverrideEnabled?: boolean);
11
- validateUserOperation(shouldCheckPrefund: boolean, userOperation: UserOperation, queuedUserOperations: UserOperation[], entryPoint: Address, referencedContracts?: ReferencedCodeHashes): Promise<(ValidationResult | ValidationResultWithAggregation) & {
12
- storageMap: StorageMap;
13
- referencedContracts?: ReferencedCodeHashes;
14
- }>;
15
- getCodeHashes(addresses: string[]): Promise<ReferencedCodeHashes>;
16
- getValidationResultV07(userOperation: UserOperationV07, queuedUserOperations: UserOperationV07[], entryPoint: Address, preCodeHashes?: ReferencedCodeHashes): Promise<(ValidationResultV07 | ValidationResultWithAggregationV07) & {
17
- storageMap: StorageMap;
18
- referencedContracts?: ReferencedCodeHashes;
19
- }>;
20
- getValidationResultV06(userOperation: UserOperationV06, entryPoint: Address, preCodeHashes?: ReferencedCodeHashes): Promise<(ValidationResultV06 | ValidationResultWithAggregationV06) & {
21
- referencedContracts?: ReferencedCodeHashes;
22
- storageMap: StorageMap;
23
- }>;
24
- getValidationResultWithTracerV06(userOperation: UserOperationV06, entryPoint: Address): Promise<[ValidationResultV06, BundlerTracerResult]>;
25
- parseErrorResultV06(userOperation: UserOperationV06, errorResult: {
26
- errorName: string;
27
- errorArgs: any;
28
- }): ValidationResult | ValidationResultWithAggregation;
29
- getValidationResultWithTracerV07(userOperation: UserOperationV07, entryPoint: Address): Promise<[ValidationResultV07, BundlerTracerResult]>;
30
- parseErrorResultV07(userOperation: UserOperationV07, errorResult: {
31
- errorName: string;
32
- errorArgs: any;
33
- }): ValidationResult | ValidationResultWithAggregation;
34
- }
35
- //# sourceMappingURL=SafeValidator.d.ts.map
@@ -1,487 +0,0 @@
1
- import { CodeHashGetterAbi, CodeHashGetterBytecode, EntryPointV06Abi, EntryPointV07Abi, EntryPointV07SimulationsAbi, PimlicoEntryPointSimulationsAbi, PimlicoEntryPointSimulationsBytecode, RpcError, ValidationErrors } from "../../types/index.js";
2
- import { calcVerificationGasAndCallGasLimit, getAddressFromInitCodeOrPaymasterAndData, isVersion06, isVersion07, toPackedUserOperation } from "../../utils/index.js";
3
- import { decodeAbiParameters, decodeErrorResult, encodeDeployData, encodeFunctionData, zeroAddress } from "viem";
4
- import { parseFailedOpWithRevert } from "../EntryPointSimulationsV07.js";
5
- import { bundlerCollectorTracer } from "./BundlerCollectorTracerV06.js";
6
- import { tracerResultParserV06 } from "./TracerResultParserV06.js";
7
- import { tracerResultParserV07 } from "./TracerResultParserV07.js";
8
- import { UnsafeValidator } from "./UnsafeValidator.js";
9
- import { debug_traceCall } from "./tracer.js";
10
- export class SafeValidator extends UnsafeValidator {
11
- senderManager;
12
- constructor(publicClient, senderManager, logger, metrics, gasPriceManager, chainType, entryPointSimulationsAddress, fixedGasLimitForEstimation, usingTenderly = false, balanceOverrideEnabled = false) {
13
- super(publicClient, logger, metrics, gasPriceManager, chainType, entryPointSimulationsAddress, fixedGasLimitForEstimation, usingTenderly, balanceOverrideEnabled);
14
- this.senderManager = senderManager;
15
- }
16
- async validateUserOperation(shouldCheckPrefund, userOperation, queuedUserOperations, entryPoint, referencedContracts) {
17
- try {
18
- const validationResult = await this.getValidationResult(userOperation, queuedUserOperations, entryPoint, referencedContracts);
19
- if (shouldCheckPrefund) {
20
- const prefund = validationResult.returnInfo.prefund;
21
- const { verificationGasLimit, callGasLimit } = calcVerificationGasAndCallGasLimit(userOperation, {
22
- preOpGas: validationResult.returnInfo.preOpGas,
23
- paid: validationResult.returnInfo.prefund
24
- }, this.chainId);
25
- let mul = 1n;
26
- if (isVersion06(userOperation) &&
27
- userOperation.paymasterAndData) {
28
- mul = 3n;
29
- }
30
- if (isVersion07(userOperation) &&
31
- userOperation.paymaster === "0x") {
32
- mul = 3n;
33
- }
34
- const requiredPreFund = callGasLimit +
35
- verificationGasLimit * mul +
36
- userOperation.preVerificationGas;
37
- if (requiredPreFund > prefund) {
38
- throw new RpcError(`prefund is not enough, required: ${requiredPreFund}, got: ${prefund}`, ValidationErrors.SimulateValidation);
39
- }
40
- // TODO prefund should be greater than it costs us to add it to mempool
41
- }
42
- this.metrics.userOperationsValidationSuccess.inc();
43
- return validationResult;
44
- }
45
- catch (e) {
46
- this.metrics.userOperationsValidationFailure.inc();
47
- throw e;
48
- }
49
- }
50
- async getCodeHashes(addresses) {
51
- const deployData = encodeDeployData({
52
- abi: CodeHashGetterAbi,
53
- bytecode: CodeHashGetterBytecode,
54
- args: [addresses]
55
- });
56
- const wallet = await this.senderManager.getWallet();
57
- let hash = "";
58
- try {
59
- await this.publicClient.call({
60
- account: wallet,
61
- data: deployData
62
- });
63
- }
64
- catch (e) {
65
- const error = e;
66
- // biome-ignore lint/suspicious/noExplicitAny: it's a generic type
67
- hash = error.walk().data;
68
- }
69
- this.senderManager.pushWallet(wallet);
70
- return {
71
- hash,
72
- addresses
73
- };
74
- }
75
- async getValidationResultV07(userOperation, queuedUserOperations, entryPoint, preCodeHashes) {
76
- if (this.usingTenderly) {
77
- return super.getValidationResultV07(userOperation, queuedUserOperations, entryPoint);
78
- }
79
- if (preCodeHashes && preCodeHashes.addresses.length > 0) {
80
- const { hash } = await this.getCodeHashes(preCodeHashes.addresses);
81
- if (hash !== preCodeHashes.hash) {
82
- throw new RpcError("code hashes mismatch", ValidationErrors.OpcodeValidation);
83
- }
84
- }
85
- const [res, tracerResult] = await this.getValidationResultWithTracerV07(userOperation, entryPoint);
86
- const [contractAddresses, storageMap] = tracerResultParserV07(userOperation, tracerResult, res, entryPoint.toLowerCase());
87
- const codeHashes = preCodeHashes || (await this.getCodeHashes(contractAddresses));
88
- // biome-ignore lint/suspicious/noExplicitAny: it's a generic type
89
- if (res === "0x") {
90
- throw new Error("simulateValidation reverted with no revert string!");
91
- }
92
- if (res.returnInfo.accountSigFailed) {
93
- throw new RpcError("Invalid UserOp signature", ValidationErrors.InvalidSignature);
94
- }
95
- if (res.returnInfo.paymasterSigFailed) {
96
- throw new RpcError("Invalid UserOp paymasterData", ValidationErrors.InvalidSignature);
97
- }
98
- const now = Math.floor(Date.now() / 1000);
99
- if (res.returnInfo.validAfter === undefined ||
100
- res.returnInfo.validAfter > now - 5) {
101
- throw new RpcError(`User operation is not valid yet, validAfter=${res.returnInfo.validAfter}, now=${now}`, ValidationErrors.ExpiresShortly);
102
- }
103
- if (res.returnInfo.validUntil === undefined ||
104
- res.returnInfo.validUntil < now + 30) {
105
- throw new RpcError(`UserOperation expires too soon, validUntil=${res.returnInfo.validUntil}, now=${now}`, ValidationErrors.ExpiresShortly);
106
- }
107
- return {
108
- ...res,
109
- referencedContracts: codeHashes,
110
- storageMap
111
- };
112
- }
113
- async getValidationResultV06(userOperation, entryPoint, preCodeHashes) {
114
- if (this.usingTenderly) {
115
- return super.getValidationResultV06(userOperation, entryPoint);
116
- }
117
- if (preCodeHashes && preCodeHashes.addresses.length > 0) {
118
- const { hash } = await this.getCodeHashes(preCodeHashes.addresses);
119
- if (hash !== preCodeHashes.hash) {
120
- throw new RpcError("code hashes mismatch", ValidationErrors.OpcodeValidation);
121
- }
122
- }
123
- const [res, tracerResult] = await this.getValidationResultWithTracerV06(userOperation, entryPoint);
124
- const [contractAddresses, storageMap] = tracerResultParserV06(userOperation, tracerResult, res, entryPoint.toLowerCase());
125
- const codeHashes = preCodeHashes || (await this.getCodeHashes(contractAddresses));
126
- // biome-ignore lint/suspicious/noExplicitAny: it's a generic type
127
- if (res === "0x") {
128
- throw new Error("simulateValidation reverted with no revert string!");
129
- }
130
- const validationResult = {
131
- ...res,
132
- referencedContracts: codeHashes,
133
- storageMap
134
- };
135
- if (validationResult.returnInfo.sigFailed) {
136
- throw new RpcError("Invalid UserOp signature or paymaster signature", ValidationErrors.InvalidSignature);
137
- }
138
- const now = Date.now() / 1000;
139
- this.logger.debug({
140
- validAfter: validationResult.returnInfo.validAfter,
141
- validUntil: validationResult.returnInfo.validUntil,
142
- now: now
143
- });
144
- if (validationResult.returnInfo.validAfter > now - 5) {
145
- throw new RpcError("User operation is not valid yet", ValidationErrors.ExpiresShortly);
146
- }
147
- if (validationResult.returnInfo.validUntil < now + 30) {
148
- throw new RpcError("expires too soon", ValidationErrors.ExpiresShortly);
149
- }
150
- return validationResult;
151
- }
152
- async getValidationResultWithTracerV06(userOperation, entryPoint) {
153
- const tracerResult = await debug_traceCall(this.publicClient, {
154
- from: zeroAddress,
155
- to: entryPoint,
156
- data: encodeFunctionData({
157
- abi: EntryPointV06Abi,
158
- functionName: "simulateValidation",
159
- args: [userOperation]
160
- })
161
- }, {
162
- tracer: bundlerCollectorTracer
163
- });
164
- const lastResult = tracerResult.calls.slice(-1)[0];
165
- if (lastResult.type !== "REVERT") {
166
- throw new Error("Invalid response. simulateCall must revert");
167
- }
168
- const data = lastResult.data;
169
- if (data === "0x") {
170
- // biome-ignore lint/suspicious/noExplicitAny: it's a generic type
171
- return [data, tracerResult];
172
- }
173
- try {
174
- const { errorName, args: errorArgs } = decodeErrorResult({
175
- abi: EntryPointV06Abi,
176
- data
177
- });
178
- const errFullName = `${errorName}(${errorArgs.toString()})`;
179
- const errorResult = this.parseErrorResultV06(userOperation, {
180
- errorName,
181
- errorArgs
182
- });
183
- if (!errorName.includes("Result")) {
184
- // a real error, not a result.
185
- throw new Error(errFullName);
186
- }
187
- // @ts-ignore
188
- return [errorResult, tracerResult];
189
- // biome-ignore lint/suspicious/noExplicitAny: it's a generic type
190
- }
191
- catch (e) {
192
- // if already parsed, throw as is
193
- if (e.code != null) {
194
- throw e;
195
- }
196
- throw new RpcError(data);
197
- }
198
- }
199
- parseErrorResultV06(userOperation,
200
- // biome-ignore lint/suspicious/noExplicitAny: it's a generic type
201
- errorResult) {
202
- if (!errorResult?.errorName?.startsWith("ValidationResult")) {
203
- // parse it as FailedOp
204
- // if its FailedOp, then we have the paymaster param... otherwise its an Error(string)
205
- let paymaster = errorResult.errorArgs.paymaster;
206
- if (paymaster === zeroAddress) {
207
- paymaster = undefined;
208
- }
209
- // eslint-disable-next-line
210
- const msg = errorResult.errorArgs[1] ?? errorResult.toString();
211
- if (paymaster == null) {
212
- throw new RpcError(`account validation failed: ${msg}`, ValidationErrors.SimulateValidation);
213
- }
214
- throw new RpcError(`paymaster validation failed: ${msg}`, ValidationErrors.SimulatePaymasterValidation, {
215
- paymaster
216
- });
217
- }
218
- const [returnInfo, senderInfo, factoryInfo, paymasterInfo, aggregatorInfo // may be missing (exists only SimulationResultWithAggregator)
219
- ] = errorResult.errorArgs;
220
- // extract address from "data" (first 20 bytes)
221
- // add it as "addr" member to the "stakeinfo" struct
222
- // if no address, then return "undefined" instead of struct.
223
- function fillEntity(data, info) {
224
- const addr = getAddressFromInitCodeOrPaymasterAndData(data);
225
- return addr == null
226
- ? undefined
227
- : {
228
- ...info,
229
- addr
230
- };
231
- }
232
- function fillEntityAggregator(data, info) {
233
- const addr = getAddressFromInitCodeOrPaymasterAndData(data);
234
- return addr == null
235
- ? undefined
236
- : {
237
- aggregator: data,
238
- stakeInfo: {
239
- ...info,
240
- addr
241
- }
242
- };
243
- }
244
- return {
245
- returnInfo,
246
- senderInfo: {
247
- ...senderInfo,
248
- addr: userOperation.sender
249
- },
250
- factoryInfo: fillEntity(userOperation.initCode, factoryInfo),
251
- paymasterInfo: fillEntity(userOperation.paymasterAndData, paymasterInfo),
252
- aggregatorInfo: fillEntityAggregator(aggregatorInfo?.actualAggregator, aggregatorInfo?.stakeInfo)
253
- };
254
- }
255
- async getValidationResultWithTracerV07(userOperation, entryPoint) {
256
- const packedUserOperation = toPackedUserOperation(userOperation);
257
- const entryPointSimulationsCallData = encodeFunctionData({
258
- abi: EntryPointV07SimulationsAbi,
259
- functionName: "simulateValidation",
260
- args: [packedUserOperation]
261
- });
262
- const callData = encodeDeployData({
263
- abi: PimlicoEntryPointSimulationsAbi,
264
- bytecode: PimlicoEntryPointSimulationsBytecode,
265
- args: [entryPoint, entryPointSimulationsCallData]
266
- });
267
- const tracerResult = await debug_traceCall(this.publicClient, {
268
- from: zeroAddress,
269
- data: callData
270
- }, {
271
- tracer: bundlerCollectorTracer
272
- });
273
- const lastResult = tracerResult.calls.slice(-1)[0];
274
- if (lastResult.type !== "REVERT") {
275
- throw new Error("Invalid response. simulateCall must revert");
276
- }
277
- const data = lastResult.data;
278
- if (data === "0x") {
279
- // biome-ignore lint/suspicious/noExplicitAny: it's a generic type
280
- return [data, tracerResult];
281
- }
282
- try {
283
- const { errorName, args: errorArgs } = decodeErrorResult({
284
- abi: EntryPointV07Abi,
285
- data
286
- });
287
- const errorResult = this.parseErrorResultV07(userOperation, {
288
- errorName,
289
- errorArgs
290
- });
291
- // @ts-ignore
292
- return [errorResult, tracerResult];
293
- // biome-ignore lint/suspicious/noExplicitAny: it's a generic type
294
- }
295
- catch (e) {
296
- // if already parsed, throw as is
297
- if (e.code != null) {
298
- throw e;
299
- }
300
- throw new RpcError(data);
301
- }
302
- }
303
- parseErrorResultV07(userOperation,
304
- // biome-ignore lint/suspicious/noExplicitAny: it's a generic type
305
- errorResult) {
306
- let decodedResult;
307
- try {
308
- decodeErrorResult({
309
- abi: EntryPointV07SimulationsAbi,
310
- data: errorResult.errorArgs[1]
311
- });
312
- const result = decodeErrorResult({
313
- abi: EntryPointV07SimulationsAbi,
314
- data: errorResult.errorArgs[1]
315
- });
316
- if (result.errorName === "FailedOp") {
317
- if ((result.args?.[1]).includes("AA24")) {
318
- throw new RpcError("Invalid UserOp signature", ValidationErrors.InvalidSignature);
319
- }
320
- if ((result.args?.[1]).includes("AA34")) {
321
- throw new RpcError("Invalid UserOp paymasterData", ValidationErrors.InvalidSignature);
322
- }
323
- throw new RpcError(`ValidationResult error: ${result.args?.[1]}`, ValidationErrors.SimulateValidation);
324
- }
325
- if (result.errorName === "FailedOpWithRevert") {
326
- const data = result.args?.[2];
327
- const error = parseFailedOpWithRevert(data);
328
- throw new RpcError(`ValidationResult error: ${result.args?.[1]} with revert error as: Panic(${error})`, ValidationErrors.SimulateValidation);
329
- }
330
- throw new RpcError(`ValidationResult error: ${result.errorName}`, ValidationErrors.SimulateValidation);
331
- }
332
- catch (e) {
333
- if (e instanceof RpcError) {
334
- throw e;
335
- }
336
- decodedResult = decodeAbiParameters([
337
- {
338
- components: [
339
- {
340
- components: [
341
- {
342
- internalType: "uint256",
343
- name: "preOpGas",
344
- type: "uint256"
345
- },
346
- {
347
- internalType: "uint256",
348
- name: "prefund",
349
- type: "uint256"
350
- },
351
- {
352
- internalType: "uint256",
353
- name: "accountValidationData",
354
- type: "uint256"
355
- },
356
- {
357
- internalType: "uint256",
358
- name: "paymasterValidationData",
359
- type: "uint256"
360
- },
361
- {
362
- internalType: "bytes",
363
- name: "paymasterContext",
364
- type: "bytes"
365
- }
366
- ],
367
- internalType: "struct IEntryPoint.ReturnInfo",
368
- name: "returnInfo",
369
- type: "tuple"
370
- },
371
- {
372
- components: [
373
- {
374
- internalType: "uint256",
375
- name: "stake",
376
- type: "uint256"
377
- },
378
- {
379
- internalType: "uint256",
380
- name: "unstakeDelaySec",
381
- type: "uint256"
382
- }
383
- ],
384
- internalType: "struct IStakeManager.StakeInfo",
385
- name: "senderInfo",
386
- type: "tuple"
387
- },
388
- {
389
- components: [
390
- {
391
- internalType: "uint256",
392
- name: "stake",
393
- type: "uint256"
394
- },
395
- {
396
- internalType: "uint256",
397
- name: "unstakeDelaySec",
398
- type: "uint256"
399
- }
400
- ],
401
- internalType: "struct IStakeManager.StakeInfo",
402
- name: "factoryInfo",
403
- type: "tuple"
404
- },
405
- {
406
- components: [
407
- {
408
- internalType: "uint256",
409
- name: "stake",
410
- type: "uint256"
411
- },
412
- {
413
- internalType: "uint256",
414
- name: "unstakeDelaySec",
415
- type: "uint256"
416
- }
417
- ],
418
- internalType: "struct IStakeManager.StakeInfo",
419
- name: "paymasterInfo",
420
- type: "tuple"
421
- },
422
- {
423
- components: [
424
- {
425
- internalType: "address",
426
- name: "aggregator",
427
- type: "address"
428
- },
429
- {
430
- components: [
431
- {
432
- internalType: "uint256",
433
- name: "stake",
434
- type: "uint256"
435
- },
436
- {
437
- internalType: "uint256",
438
- name: "unstakeDelaySec",
439
- type: "uint256"
440
- }
441
- ],
442
- internalType: "struct IStakeManager.StakeInfo",
443
- name: "stakeInfo",
444
- type: "tuple"
445
- }
446
- ],
447
- internalType: "struct IEntryPoint.AggregatorStakeInfo",
448
- name: "aggregatorInfo",
449
- type: "tuple"
450
- }
451
- ],
452
- internalType: "struct IEntryPointSimulations.ValidationResult",
453
- name: "",
454
- type: "tuple"
455
- }
456
- ], errorResult.errorArgs[1])[0];
457
- }
458
- const mergedValidation = this.mergeValidationDataValues(decodedResult.returnInfo.accountValidationData, decodedResult.returnInfo.paymasterValidationData);
459
- return {
460
- returnInfo: {
461
- ...decodedResult.returnInfo,
462
- accountSigFailed: mergedValidation.accountSigFailed,
463
- paymasterSigFailed: mergedValidation.paymasterSigFailed,
464
- validUntil: mergedValidation.validUntil,
465
- validAfter: mergedValidation.validAfter
466
- },
467
- senderInfo: {
468
- ...decodedResult.senderInfo,
469
- addr: userOperation.sender
470
- },
471
- factoryInfo: userOperation.factory && decodedResult.factoryInfo
472
- ? {
473
- ...decodedResult.factoryInfo,
474
- addr: userOperation.factory
475
- }
476
- : undefined,
477
- paymasterInfo: userOperation.paymaster && decodedResult.paymasterInfo
478
- ? {
479
- ...decodedResult.paymasterInfo,
480
- addr: userOperation.paymaster
481
- }
482
- : undefined,
483
- aggregatorInfo: decodedResult.aggregatorInfo
484
- };
485
- }
486
- }
487
- //# sourceMappingURL=SafeValidator.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"SafeValidator.js","sourceRoot":"","sources":["../../../rpc/validation/SafeValidator.ts"],"names":[],"mappings":"AAYA,OAAO,EACH,iBAAiB,EACjB,sBAAsB,EACtB,gBAAgB,EAChB,gBAAgB,EAChB,2BAA2B,EAC3B,+BAA+B,EAC/B,oCAAoC,EACpC,QAAQ,EACR,gBAAgB,EAOnB,MAAM,aAAa,CAAA;AAEpB,OAAO,EACH,kCAAkC,E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I,EAAE,aAAa,CAAC,SAAS;iBAChC;gBACH,CAAC,CAAC,SAAS;YACnB,cAAc,EAAE,aAAa,CAAC,cAAc;SAC/C,CAAA;IACL,CAAC;CACJ"}
@@ -1,13 +0,0 @@
1
- import { type StorageMap, type ValidationResult, type UserOperationV06 } from "../../types/index.js";
2
- import { type Address } from "viem";
3
- import type { BundlerTracerResult } from "./BundlerCollectorTracerV06.js";
4
- /**
5
- * parse collected simulation traces and revert if they break our rules
6
- * @param userOperation the userOperation that was used in this simulation
7
- * @param tracerResults the tracer return value
8
- * @param validationResult output from simulateValidation
9
- * @param entryPoint the entryPoint that hosted the "simulatedValidation" traced call.
10
- * @return list of contract addresses referenced by this UserOp
11
- */
12
- export declare function tracerResultParserV06(userOperation: UserOperationV06, tracerResults: BundlerTracerResult, validationResult: ValidationResult, entryPointAddress: Address): [string[], StorageMap];
13
- //# sourceMappingURL=TracerResultParserV06.d.ts.map