@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,391 +0,0 @@
1
- import { type ApiVersion } from "../../types/index.js";
2
- import { z } from "zod";
3
- export declare const bundlerArgsSchema: z.ZodObject<{
4
- entrypoints: z.ZodEffects<z.ZodString, `0x${string}`[], string>;
5
- "entrypoint-simulation-contract": z.ZodEffects<z.ZodOptional<z.ZodEffects<z.ZodString, `0x${string}`, string>>, `0x${string}` | undefined, unknown>;
6
- "safe-mode": z.ZodBoolean;
7
- "utility-private-key": z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, import("viem").PrivateKeyAccount, string>>;
8
- "executor-private-keys": z.ZodUnion<[z.ZodEffects<z.ZodArray<z.ZodEffects<z.ZodString, `0x${string}`, string>, "many">, import("viem").PrivateKeyAccount[], string[]>, z.ZodEffects<z.ZodString, import("viem").PrivateKeyAccount[], string>]>;
9
- "max-executors": z.ZodOptional<z.ZodNumber>;
10
- "min-executor-balance": z.ZodOptional<z.ZodEffects<z.ZodString, bigint, string>>;
11
- "executor-refill-interval": z.ZodNumber;
12
- "min-entity-stake": z.ZodNumber;
13
- "min-entity-unstake-delay": z.ZodNumber;
14
- "max-bundle-wait": z.ZodNumber;
15
- "max-bundle-size": z.ZodNumber;
16
- "gas-price-bump": z.ZodDefault<z.ZodEffects<z.ZodString, bigint, string>>;
17
- "gas-price-floor-percent": z.ZodNumber;
18
- "gas-price-expiry": z.ZodNumber;
19
- "gas-price-multipliers": z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodString, bigint[], string>, bigint[], string>, {
20
- slow: bigint;
21
- standard: bigint;
22
- fast: bigint;
23
- }, string>;
24
- "mempool-max-parallel-ops": z.ZodDefault<z.ZodNumber>;
25
- "mempool-max-queued-ops": z.ZodDefault<z.ZodNumber>;
26
- "enforce-unique-senders-per-bundle": z.ZodDefault<z.ZodBoolean>;
27
- "max-gas-per-bundle": z.ZodDefault<z.ZodEffects<z.ZodString, bigint, string>>;
28
- }, "strip", z.ZodTypeAny, {
29
- entrypoints: `0x${string}`[];
30
- "safe-mode": boolean;
31
- "executor-private-keys": import("viem").PrivateKeyAccount[];
32
- "executor-refill-interval": number;
33
- "min-entity-stake": number;
34
- "min-entity-unstake-delay": number;
35
- "max-bundle-wait": number;
36
- "max-bundle-size": number;
37
- "gas-price-bump": bigint;
38
- "gas-price-floor-percent": number;
39
- "gas-price-expiry": number;
40
- "gas-price-multipliers": {
41
- slow: bigint;
42
- standard: bigint;
43
- fast: bigint;
44
- };
45
- "mempool-max-parallel-ops": number;
46
- "mempool-max-queued-ops": number;
47
- "enforce-unique-senders-per-bundle": boolean;
48
- "max-gas-per-bundle": bigint;
49
- "entrypoint-simulation-contract"?: `0x${string}` | undefined;
50
- "utility-private-key"?: import("viem").PrivateKeyAccount | undefined;
51
- "max-executors"?: number | undefined;
52
- "min-executor-balance"?: bigint | undefined;
53
- }, {
54
- entrypoints: string;
55
- "safe-mode": boolean;
56
- "executor-private-keys": (string | string[]) & (string | string[] | undefined);
57
- "executor-refill-interval": number;
58
- "min-entity-stake": number;
59
- "min-entity-unstake-delay": number;
60
- "max-bundle-wait": number;
61
- "max-bundle-size": number;
62
- "gas-price-floor-percent": number;
63
- "gas-price-expiry": number;
64
- "gas-price-multipliers": string;
65
- "entrypoint-simulation-contract"?: unknown;
66
- "utility-private-key"?: string | undefined;
67
- "max-executors"?: number | undefined;
68
- "min-executor-balance"?: string | undefined;
69
- "gas-price-bump"?: string | undefined;
70
- "mempool-max-parallel-ops"?: number | undefined;
71
- "mempool-max-queued-ops"?: number | undefined;
72
- "enforce-unique-senders-per-bundle"?: boolean | undefined;
73
- "max-gas-per-bundle"?: string | undefined;
74
- }>;
75
- export declare const compatibilityArgsSchema: z.ZodObject<{
76
- "chain-type": z.ZodEnum<["default", "op-stack", "arbitrum"]>;
77
- "legacy-transactions": z.ZodBoolean;
78
- "api-version": z.ZodEffects<z.ZodDefault<z.ZodOptional<z.ZodString>>, ApiVersion[], string | undefined>;
79
- "default-api-version": z.ZodEffects<z.ZodOptional<z.ZodEnum<["v1", "v2"]>>, "v1" | "v2", "v1" | "v2" | undefined>;
80
- "balance-override": z.ZodBoolean;
81
- "local-gas-limit-calculation": z.ZodBoolean;
82
- "flush-stuck-transactions-during-startup": z.ZodBoolean;
83
- "paymaster-gas-limit-multiplier": z.ZodEffects<z.ZodString, bigint, string>;
84
- "fixed-gas-limit-for-estimation": z.ZodOptional<z.ZodEffects<z.ZodString, bigint, string>>;
85
- }, "strip", z.ZodTypeAny, {
86
- "chain-type": "default" | "op-stack" | "arbitrum";
87
- "legacy-transactions": boolean;
88
- "api-version": ApiVersion[];
89
- "default-api-version": "v1" | "v2";
90
- "balance-override": boolean;
91
- "local-gas-limit-calculation": boolean;
92
- "flush-stuck-transactions-during-startup": boolean;
93
- "paymaster-gas-limit-multiplier": bigint;
94
- "fixed-gas-limit-for-estimation"?: bigint | undefined;
95
- }, {
96
- "chain-type": "default" | "op-stack" | "arbitrum";
97
- "legacy-transactions": boolean;
98
- "balance-override": boolean;
99
- "local-gas-limit-calculation": boolean;
100
- "flush-stuck-transactions-during-startup": boolean;
101
- "paymaster-gas-limit-multiplier": string;
102
- "api-version"?: string | undefined;
103
- "default-api-version"?: "v1" | "v2" | undefined;
104
- "fixed-gas-limit-for-estimation"?: string | undefined;
105
- }>;
106
- export declare const serverArgsSchema: z.ZodObject<{
107
- port: z.ZodNumber;
108
- timeout: z.ZodOptional<z.ZodNumber>;
109
- websocket: z.ZodDefault<z.ZodBoolean>;
110
- "websocket-max-payload-size": z.ZodDefault<z.ZodNumber>;
111
- }, "strip", z.ZodTypeAny, {
112
- port: number;
113
- websocket: boolean;
114
- "websocket-max-payload-size": number;
115
- timeout?: number | undefined;
116
- }, {
117
- port: number;
118
- timeout?: number | undefined;
119
- websocket?: boolean | undefined;
120
- "websocket-max-payload-size"?: number | undefined;
121
- }>;
122
- export declare const rpcArgsSchema: z.ZodObject<{
123
- "rpc-url": z.ZodString;
124
- "send-transaction-rpc-url": z.ZodOptional<z.ZodString>;
125
- "polling-interval": z.ZodNumber;
126
- "max-block-range": z.ZodOptional<z.ZodNumber>;
127
- }, "strip", z.ZodTypeAny, {
128
- "rpc-url": string;
129
- "polling-interval": number;
130
- "send-transaction-rpc-url"?: string | undefined;
131
- "max-block-range"?: number | undefined;
132
- }, {
133
- "rpc-url": string;
134
- "polling-interval": number;
135
- "send-transaction-rpc-url"?: string | undefined;
136
- "max-block-range"?: number | undefined;
137
- }>;
138
- export declare const bundleCopmressionArgsSchema: z.ZodObject<{
139
- "bundle-bulker-address": z.ZodOptional<z.ZodEffects<z.ZodString, `0x${string}`, string>>;
140
- "per-op-inflator-address": z.ZodOptional<z.ZodEffects<z.ZodString, `0x${string}`, string>>;
141
- }, "strip", z.ZodTypeAny, {
142
- "bundle-bulker-address"?: `0x${string}` | undefined;
143
- "per-op-inflator-address"?: `0x${string}` | undefined;
144
- }, {
145
- "bundle-bulker-address"?: string | undefined;
146
- "per-op-inflator-address"?: string | undefined;
147
- }>;
148
- export declare const logArgsSchema: z.ZodObject<{
149
- json: z.ZodBoolean;
150
- "network-name": z.ZodString;
151
- "log-level": z.ZodEnum<["trace", "debug", "info", "warn", "error", "fatal"]>;
152
- "public-client-log-level": z.ZodOptional<z.ZodEnum<["trace", "debug", "info", "warn", "error", "fatal"]>>;
153
- "wallet-client-log-level": z.ZodOptional<z.ZodEnum<["trace", "debug", "info", "warn", "error", "fatal"]>>;
154
- "rpc-log-level": z.ZodOptional<z.ZodEnum<["trace", "debug", "info", "warn", "error", "fatal"]>>;
155
- "mempool-log-level": z.ZodOptional<z.ZodEnum<["trace", "debug", "info", "warn", "error", "fatal"]>>;
156
- "executor-log-level": z.ZodOptional<z.ZodEnum<["trace", "debug", "info", "warn", "error", "fatal"]>>;
157
- "reputation-manager-log-level": z.ZodOptional<z.ZodEnum<["trace", "debug", "info", "warn", "error", "fatal"]>>;
158
- "nonce-queuer-log-level": z.ZodOptional<z.ZodEnum<["trace", "debug", "info", "warn", "error", "fatal"]>>;
159
- }, "strip", z.ZodTypeAny, {
160
- json: boolean;
161
- "network-name": string;
162
- "log-level": "error" | "info" | "debug" | "fatal" | "warn" | "trace";
163
- "public-client-log-level"?: "error" | "info" | "debug" | "fatal" | "warn" | "trace" | undefined;
164
- "wallet-client-log-level"?: "error" | "info" | "debug" | "fatal" | "warn" | "trace" | undefined;
165
- "rpc-log-level"?: "error" | "info" | "debug" | "fatal" | "warn" | "trace" | undefined;
166
- "mempool-log-level"?: "error" | "info" | "debug" | "fatal" | "warn" | "trace" | undefined;
167
- "executor-log-level"?: "error" | "info" | "debug" | "fatal" | "warn" | "trace" | undefined;
168
- "reputation-manager-log-level"?: "error" | "info" | "debug" | "fatal" | "warn" | "trace" | undefined;
169
- "nonce-queuer-log-level"?: "error" | "info" | "debug" | "fatal" | "warn" | "trace" | undefined;
170
- }, {
171
- json: boolean;
172
- "network-name": string;
173
- "log-level": "error" | "info" | "debug" | "fatal" | "warn" | "trace";
174
- "public-client-log-level"?: "error" | "info" | "debug" | "fatal" | "warn" | "trace" | undefined;
175
- "wallet-client-log-level"?: "error" | "info" | "debug" | "fatal" | "warn" | "trace" | undefined;
176
- "rpc-log-level"?: "error" | "info" | "debug" | "fatal" | "warn" | "trace" | undefined;
177
- "mempool-log-level"?: "error" | "info" | "debug" | "fatal" | "warn" | "trace" | undefined;
178
- "executor-log-level"?: "error" | "info" | "debug" | "fatal" | "warn" | "trace" | undefined;
179
- "reputation-manager-log-level"?: "error" | "info" | "debug" | "fatal" | "warn" | "trace" | undefined;
180
- "nonce-queuer-log-level"?: "error" | "info" | "debug" | "fatal" | "warn" | "trace" | undefined;
181
- }>;
182
- export declare const debugArgsSchema: z.ZodObject<{
183
- "bundle-mode": z.ZodEnum<["auto", "manual"]>;
184
- "enable-debug-endpoints": z.ZodBoolean;
185
- "expiration-check": z.ZodBoolean;
186
- "dangerous-skip-user-operation-validation": z.ZodBoolean;
187
- tenderly: z.ZodBoolean;
188
- }, "strip", z.ZodTypeAny, {
189
- "bundle-mode": "manual" | "auto";
190
- "enable-debug-endpoints": boolean;
191
- "expiration-check": boolean;
192
- "dangerous-skip-user-operation-validation": boolean;
193
- tenderly: boolean;
194
- }, {
195
- "bundle-mode": "manual" | "auto";
196
- "enable-debug-endpoints": boolean;
197
- "expiration-check": boolean;
198
- "dangerous-skip-user-operation-validation": boolean;
199
- tenderly: boolean;
200
- }>;
201
- export type IBundlerArgs = z.infer<typeof bundlerArgsSchema>;
202
- export type IBundlerArgsInput = z.input<typeof bundlerArgsSchema>;
203
- export type ICompatibilityArgs = z.infer<typeof compatibilityArgsSchema>;
204
- export type ICompatibilityArgsInput = z.input<typeof compatibilityArgsSchema>;
205
- export type IServerArgs = z.infer<typeof serverArgsSchema>;
206
- export type IServerArgsInput = z.input<typeof serverArgsSchema>;
207
- export type IRpcArgs = z.infer<typeof rpcArgsSchema>;
208
- export type IRpcArgsInput = z.input<typeof rpcArgsSchema>;
209
- export type IBundleCompressionArgs = z.infer<typeof bundleCopmressionArgsSchema>;
210
- export type IBundleCompressionArgsInput = z.input<typeof bundleCopmressionArgsSchema>;
211
- export type ILogArgs = z.infer<typeof logArgsSchema>;
212
- export type ILogArgsInput = z.input<typeof logArgsSchema>;
213
- export type IDebugArgs = z.infer<typeof debugArgsSchema>;
214
- export type IDebugArgsInput = z.input<typeof debugArgsSchema>;
215
- export declare const optionArgsSchema: z.ZodObject<{
216
- "bundle-mode": z.ZodEnum<["auto", "manual"]>;
217
- "enable-debug-endpoints": z.ZodBoolean;
218
- "expiration-check": z.ZodBoolean;
219
- "dangerous-skip-user-operation-validation": z.ZodBoolean;
220
- tenderly: z.ZodBoolean;
221
- "bundle-bulker-address": z.ZodOptional<z.ZodEffects<z.ZodString, `0x${string}`, string>>;
222
- "per-op-inflator-address": z.ZodOptional<z.ZodEffects<z.ZodString, `0x${string}`, string>>;
223
- "rpc-url": z.ZodString;
224
- "send-transaction-rpc-url": z.ZodOptional<z.ZodString>;
225
- "polling-interval": z.ZodNumber;
226
- "max-block-range": z.ZodOptional<z.ZodNumber>;
227
- port: z.ZodNumber;
228
- timeout: z.ZodOptional<z.ZodNumber>;
229
- websocket: z.ZodDefault<z.ZodBoolean>;
230
- "websocket-max-payload-size": z.ZodDefault<z.ZodNumber>;
231
- json: z.ZodBoolean;
232
- "network-name": z.ZodString;
233
- "log-level": z.ZodEnum<["trace", "debug", "info", "warn", "error", "fatal"]>;
234
- "public-client-log-level": z.ZodOptional<z.ZodEnum<["trace", "debug", "info", "warn", "error", "fatal"]>>;
235
- "wallet-client-log-level": z.ZodOptional<z.ZodEnum<["trace", "debug", "info", "warn", "error", "fatal"]>>;
236
- "rpc-log-level": z.ZodOptional<z.ZodEnum<["trace", "debug", "info", "warn", "error", "fatal"]>>;
237
- "mempool-log-level": z.ZodOptional<z.ZodEnum<["trace", "debug", "info", "warn", "error", "fatal"]>>;
238
- "executor-log-level": z.ZodOptional<z.ZodEnum<["trace", "debug", "info", "warn", "error", "fatal"]>>;
239
- "reputation-manager-log-level": z.ZodOptional<z.ZodEnum<["trace", "debug", "info", "warn", "error", "fatal"]>>;
240
- "nonce-queuer-log-level": z.ZodOptional<z.ZodEnum<["trace", "debug", "info", "warn", "error", "fatal"]>>;
241
- "chain-type": z.ZodEnum<["default", "op-stack", "arbitrum"]>;
242
- "legacy-transactions": z.ZodBoolean;
243
- "api-version": z.ZodEffects<z.ZodDefault<z.ZodOptional<z.ZodString>>, ApiVersion[], string | undefined>;
244
- "default-api-version": z.ZodEffects<z.ZodOptional<z.ZodEnum<["v1", "v2"]>>, "v1" | "v2", "v1" | "v2" | undefined>;
245
- "balance-override": z.ZodBoolean;
246
- "local-gas-limit-calculation": z.ZodBoolean;
247
- "flush-stuck-transactions-during-startup": z.ZodBoolean;
248
- "paymaster-gas-limit-multiplier": z.ZodEffects<z.ZodString, bigint, string>;
249
- "fixed-gas-limit-for-estimation": z.ZodOptional<z.ZodEffects<z.ZodString, bigint, string>>;
250
- entrypoints: z.ZodEffects<z.ZodString, `0x${string}`[], string>;
251
- "entrypoint-simulation-contract": z.ZodEffects<z.ZodOptional<z.ZodEffects<z.ZodString, `0x${string}`, string>>, `0x${string}` | undefined, unknown>;
252
- "safe-mode": z.ZodBoolean;
253
- "utility-private-key": z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, import("viem").PrivateKeyAccount, string>>;
254
- "executor-private-keys": z.ZodUnion<[z.ZodEffects<z.ZodArray<z.ZodEffects<z.ZodString, `0x${string}`, string>, "many">, import("viem").PrivateKeyAccount[], string[]>, z.ZodEffects<z.ZodString, import("viem").PrivateKeyAccount[], string>]>;
255
- "max-executors": z.ZodOptional<z.ZodNumber>;
256
- "min-executor-balance": z.ZodOptional<z.ZodEffects<z.ZodString, bigint, string>>;
257
- "executor-refill-interval": z.ZodNumber;
258
- "min-entity-stake": z.ZodNumber;
259
- "min-entity-unstake-delay": z.ZodNumber;
260
- "max-bundle-wait": z.ZodNumber;
261
- "max-bundle-size": z.ZodNumber;
262
- "gas-price-bump": z.ZodDefault<z.ZodEffects<z.ZodString, bigint, string>>;
263
- "gas-price-floor-percent": z.ZodNumber;
264
- "gas-price-expiry": z.ZodNumber;
265
- "gas-price-multipliers": z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodString, bigint[], string>, bigint[], string>, {
266
- slow: bigint;
267
- standard: bigint;
268
- fast: bigint;
269
- }, string>;
270
- "mempool-max-parallel-ops": z.ZodDefault<z.ZodNumber>;
271
- "mempool-max-queued-ops": z.ZodDefault<z.ZodNumber>;
272
- "enforce-unique-senders-per-bundle": z.ZodDefault<z.ZodBoolean>;
273
- "max-gas-per-bundle": z.ZodDefault<z.ZodEffects<z.ZodString, bigint, string>>;
274
- }, "strip", z.ZodTypeAny, {
275
- entrypoints: `0x${string}`[];
276
- "safe-mode": boolean;
277
- "executor-private-keys": import("viem").PrivateKeyAccount[];
278
- "executor-refill-interval": number;
279
- "min-entity-stake": number;
280
- "min-entity-unstake-delay": number;
281
- "max-bundle-wait": number;
282
- "max-bundle-size": number;
283
- "gas-price-bump": bigint;
284
- "gas-price-floor-percent": number;
285
- "gas-price-expiry": number;
286
- "gas-price-multipliers": {
287
- slow: bigint;
288
- standard: bigint;
289
- fast: bigint;
290
- };
291
- "mempool-max-parallel-ops": number;
292
- "mempool-max-queued-ops": number;
293
- "enforce-unique-senders-per-bundle": boolean;
294
- "max-gas-per-bundle": bigint;
295
- "chain-type": "default" | "op-stack" | "arbitrum";
296
- "legacy-transactions": boolean;
297
- "api-version": ApiVersion[];
298
- "default-api-version": "v1" | "v2";
299
- "balance-override": boolean;
300
- "local-gas-limit-calculation": boolean;
301
- "flush-stuck-transactions-during-startup": boolean;
302
- "paymaster-gas-limit-multiplier": bigint;
303
- port: number;
304
- websocket: boolean;
305
- "websocket-max-payload-size": number;
306
- "rpc-url": string;
307
- "polling-interval": number;
308
- json: boolean;
309
- "network-name": string;
310
- "log-level": "error" | "info" | "debug" | "fatal" | "warn" | "trace";
311
- "bundle-mode": "manual" | "auto";
312
- "enable-debug-endpoints": boolean;
313
- "expiration-check": boolean;
314
- "dangerous-skip-user-operation-validation": boolean;
315
- tenderly: boolean;
316
- "bundle-bulker-address"?: `0x${string}` | undefined;
317
- "per-op-inflator-address"?: `0x${string}` | undefined;
318
- "send-transaction-rpc-url"?: string | undefined;
319
- "max-block-range"?: number | undefined;
320
- timeout?: number | undefined;
321
- "public-client-log-level"?: "error" | "info" | "debug" | "fatal" | "warn" | "trace" | undefined;
322
- "wallet-client-log-level"?: "error" | "info" | "debug" | "fatal" | "warn" | "trace" | undefined;
323
- "rpc-log-level"?: "error" | "info" | "debug" | "fatal" | "warn" | "trace" | undefined;
324
- "mempool-log-level"?: "error" | "info" | "debug" | "fatal" | "warn" | "trace" | undefined;
325
- "executor-log-level"?: "error" | "info" | "debug" | "fatal" | "warn" | "trace" | undefined;
326
- "reputation-manager-log-level"?: "error" | "info" | "debug" | "fatal" | "warn" | "trace" | undefined;
327
- "nonce-queuer-log-level"?: "error" | "info" | "debug" | "fatal" | "warn" | "trace" | undefined;
328
- "fixed-gas-limit-for-estimation"?: bigint | undefined;
329
- "entrypoint-simulation-contract"?: `0x${string}` | undefined;
330
- "utility-private-key"?: import("viem").PrivateKeyAccount | undefined;
331
- "max-executors"?: number | undefined;
332
- "min-executor-balance"?: bigint | undefined;
333
- }, {
334
- entrypoints: string;
335
- "safe-mode": boolean;
336
- "executor-private-keys": (string | string[]) & (string | string[] | undefined);
337
- "executor-refill-interval": number;
338
- "min-entity-stake": number;
339
- "min-entity-unstake-delay": number;
340
- "max-bundle-wait": number;
341
- "max-bundle-size": number;
342
- "gas-price-floor-percent": number;
343
- "gas-price-expiry": number;
344
- "gas-price-multipliers": string;
345
- "chain-type": "default" | "op-stack" | "arbitrum";
346
- "legacy-transactions": boolean;
347
- "balance-override": boolean;
348
- "local-gas-limit-calculation": boolean;
349
- "flush-stuck-transactions-during-startup": boolean;
350
- "paymaster-gas-limit-multiplier": string;
351
- port: number;
352
- "rpc-url": string;
353
- "polling-interval": number;
354
- json: boolean;
355
- "network-name": string;
356
- "log-level": "error" | "info" | "debug" | "fatal" | "warn" | "trace";
357
- "bundle-mode": "manual" | "auto";
358
- "enable-debug-endpoints": boolean;
359
- "expiration-check": boolean;
360
- "dangerous-skip-user-operation-validation": boolean;
361
- tenderly: boolean;
362
- "bundle-bulker-address"?: string | undefined;
363
- "per-op-inflator-address"?: string | undefined;
364
- "send-transaction-rpc-url"?: string | undefined;
365
- "max-block-range"?: number | undefined;
366
- timeout?: number | undefined;
367
- websocket?: boolean | undefined;
368
- "websocket-max-payload-size"?: number | undefined;
369
- "public-client-log-level"?: "error" | "info" | "debug" | "fatal" | "warn" | "trace" | undefined;
370
- "wallet-client-log-level"?: "error" | "info" | "debug" | "fatal" | "warn" | "trace" | undefined;
371
- "rpc-log-level"?: "error" | "info" | "debug" | "fatal" | "warn" | "trace" | undefined;
372
- "mempool-log-level"?: "error" | "info" | "debug" | "fatal" | "warn" | "trace" | undefined;
373
- "executor-log-level"?: "error" | "info" | "debug" | "fatal" | "warn" | "trace" | undefined;
374
- "reputation-manager-log-level"?: "error" | "info" | "debug" | "fatal" | "warn" | "trace" | undefined;
375
- "nonce-queuer-log-level"?: "error" | "info" | "debug" | "fatal" | "warn" | "trace" | undefined;
376
- "api-version"?: string | undefined;
377
- "default-api-version"?: "v1" | "v2" | undefined;
378
- "fixed-gas-limit-for-estimation"?: string | undefined;
379
- "entrypoint-simulation-contract"?: unknown;
380
- "utility-private-key"?: string | undefined;
381
- "max-executors"?: number | undefined;
382
- "min-executor-balance"?: string | undefined;
383
- "gas-price-bump"?: string | undefined;
384
- "mempool-max-parallel-ops"?: number | undefined;
385
- "mempool-max-queued-ops"?: number | undefined;
386
- "enforce-unique-senders-per-bundle"?: boolean | undefined;
387
- "max-gas-per-bundle"?: string | undefined;
388
- }>;
389
- export type IOptions = z.infer<typeof optionArgsSchema>;
390
- export type IOptionsInput = z.input<typeof optionArgsSchema>;
391
- //# sourceMappingURL=bundler.d.ts.map
@@ -1,132 +0,0 @@
1
- import { addressSchema, commaSeperatedAddressPattern, hexData32Schema } from "../../types/index.js";
2
- import { privateKeyToAccount } from "viem/accounts";
3
- import { z } from "zod";
4
- const logLevel = z.enum(["trace", "debug", "info", "warn", "error", "fatal"]);
5
- export const bundlerArgsSchema = z.object({
6
- entrypoints: z
7
- .string()
8
- .regex(commaSeperatedAddressPattern)
9
- .transform((val) => {
10
- const addresses = val.split(",");
11
- const validatedAddresses = addresses.map((address) => addressSchema.parse(address.trim()) // Trimming to handle spaces after commas
12
- );
13
- return validatedAddresses;
14
- }),
15
- "entrypoint-simulation-contract": z.preprocess((v) => (v === "" ? undefined : v), addressSchema.optional()),
16
- "safe-mode": z.boolean(),
17
- "utility-private-key": hexData32Schema
18
- .transform((val) => privateKeyToAccount(val))
19
- .optional(),
20
- "executor-private-keys": z.union([
21
- z
22
- .array(hexData32Schema)
23
- .transform((vals) => vals.map((val) => privateKeyToAccount(val))),
24
- z
25
- .string()
26
- .regex(/^0x(?:[0-9a-f]{2}){32}(?:,0x(?:[0-9a-f]{2}){32})*$/)
27
- .transform((val) => val
28
- .split(",")
29
- .map((val) => privateKeyToAccount(val)))
30
- ]),
31
- "max-executors": z.number().int().min(0).optional(),
32
- "min-executor-balance": z
33
- .string()
34
- .transform((val) => BigInt(val))
35
- .optional(),
36
- "executor-refill-interval": z.number().int().min(0),
37
- "min-entity-stake": z.number().int().min(0),
38
- "min-entity-unstake-delay": z.number().int().min(0),
39
- "max-bundle-wait": z.number().int().min(0),
40
- "max-bundle-size": z.number().int().min(0),
41
- "gas-price-bump": z
42
- .string()
43
- .transform((val) => BigInt(val))
44
- .default("100"),
45
- "gas-price-floor-percent": z.number().int().min(0),
46
- "gas-price-expiry": z.number().int().min(0),
47
- "gas-price-multipliers": z
48
- .string()
49
- .transform((value) => value.split(",").map(BigInt))
50
- .refine((values) => values.length === 3, "Must contain 3 comma seperated items in format: slow,standard,fast")
51
- .transform(([slow, standard, fast]) => ({ slow, standard, fast })),
52
- "mempool-max-parallel-ops": z.number().int().min(0).default(10),
53
- "mempool-max-queued-ops": z.number().int().min(0).default(0),
54
- "enforce-unique-senders-per-bundle": z.boolean().default(true),
55
- "max-gas-per-bundle": z
56
- .string()
57
- .transform((val) => BigInt(val))
58
- .default("5000000")
59
- });
60
- export const compatibilityArgsSchema = z.object({
61
- "chain-type": z.enum(["default", "op-stack", "arbitrum"]),
62
- "legacy-transactions": z.boolean(),
63
- "api-version": z
64
- .string()
65
- .regex(/^(v1,v2|v2,v1|v1|v2)$/)
66
- .optional()
67
- .default("v1,v2")
68
- .transform((val) => val.split(",")),
69
- "default-api-version": z
70
- .enum(["v1", "v2"])
71
- .optional()
72
- .transform((val) => val),
73
- "balance-override": z.boolean(),
74
- "local-gas-limit-calculation": z.boolean(),
75
- "flush-stuck-transactions-during-startup": z.boolean(),
76
- "paymaster-gas-limit-multiplier": z
77
- .string()
78
- .transform((val) => BigInt(val)),
79
- "fixed-gas-limit-for-estimation": z
80
- .string()
81
- .transform((val) => BigInt(val))
82
- .optional()
83
- });
84
- export const serverArgsSchema = z.object({
85
- port: z.number().int().min(0),
86
- timeout: z.number().int().min(0).optional(),
87
- websocket: z.boolean().default(false),
88
- "websocket-max-payload-size": z
89
- .number()
90
- .int()
91
- .min(1024)
92
- .default(1024 * 1024) // 1 mb
93
- });
94
- export const rpcArgsSchema = z.object({
95
- "rpc-url": z.string().url(),
96
- "send-transaction-rpc-url": z.string().url().optional(),
97
- "polling-interval": z.number().int().min(0),
98
- "max-block-range": z.number().int().min(0).optional()
99
- });
100
- export const bundleCopmressionArgsSchema = z.object({
101
- "bundle-bulker-address": addressSchema.optional(),
102
- "per-op-inflator-address": addressSchema.optional()
103
- });
104
- export const logArgsSchema = z.object({
105
- json: z.boolean(),
106
- "network-name": z.string(),
107
- "log-level": logLevel,
108
- "public-client-log-level": logLevel.optional(),
109
- "wallet-client-log-level": logLevel.optional(),
110
- "rpc-log-level": logLevel.optional(),
111
- "mempool-log-level": logLevel.optional(),
112
- "executor-log-level": logLevel.optional(),
113
- "reputation-manager-log-level": logLevel.optional(),
114
- "nonce-queuer-log-level": logLevel.optional()
115
- });
116
- export const debugArgsSchema = z.object({
117
- "bundle-mode": z.enum(["auto", "manual"]),
118
- "enable-debug-endpoints": z.boolean(),
119
- "expiration-check": z.boolean(),
120
- "dangerous-skip-user-operation-validation": z.boolean(),
121
- tenderly: z.boolean()
122
- });
123
- export const optionArgsSchema = z.object({
124
- ...bundlerArgsSchema.shape,
125
- ...compatibilityArgsSchema.shape,
126
- ...logArgsSchema.shape,
127
- ...serverArgsSchema.shape,
128
- ...rpcArgsSchema.shape,
129
- ...bundleCopmressionArgsSchema.shape,
130
- ...debugArgsSchema.shape
131
- });
132
- //# sourceMappingURL=bundler.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"bundler.js","sourceRoot":"","sources":["../../../cli/config/bundler.ts"],"names":[],"mappings":"AAAA,OAAO,EAEH,aAAa,EACb,4BAA4B,EAC5B,eAAe,EAClB,MAAM,aAAa,CAAA;AAEpB,OAAO,EAAgB,mBAAmB,EAAE,MAAM,eAAe,CAAA;AACjE,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,MAAM,QAAQ,GAAG,CAAC,CAAC,IAAI,CAAC,CAAC,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC,CAAA;AAE7E,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAAC,CAAC,MAAM,CAAC;IACtC,WAAW,EAAE,CAAC;SACT,MAAM,EAAE;SACR,KAAK,CAAC,4BAA4B,CAAC;SACnC,SAAS,CAAC,CAAC,GAAG,EAAE,EAAE;QACf,MAAM,SAAS,GAAG,GAAG,CAAC,KAAK,CAAC,GAAG,CAA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C,KAAK;IACtB,GAAG,2BAA2B,CAAC,KAAK;IACpC,GAAG,eAAe,CAAC,KAAK;CAC3B,CAAC,CAAA"}
@@ -1,3 +0,0 @@
1
- export * from "./bundler.js";
2
- export * from "./options.js";
3
- //# sourceMappingURL=index.d.ts.map
@@ -1,3 +0,0 @@
1
- export * from "./bundler.js";
2
- export * from "./options.js";
3
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../cli/config/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAA;AACzB,cAAc,WAAW,CAAA"}
@@ -1,11 +0,0 @@
1
- import type { CliCommand, CliCommandOptions } from "../util.js";
2
- import type { IBundleCompressionArgsInput, IBundlerArgsInput, ICompatibilityArgsInput, IDebugArgsInput, ILogArgsInput, IOptionsInput, IRpcArgsInput, IServerArgsInput } from "./bundler.js";
3
- export declare const bundlerOptions: CliCommandOptions<IBundlerArgsInput>;
4
- export declare const compatibilityOptions: CliCommandOptions<ICompatibilityArgsInput>;
5
- export declare const serverOptions: CliCommandOptions<IServerArgsInput>;
6
- export declare const rpcOptions: CliCommandOptions<IRpcArgsInput>;
7
- export declare const bundleCompressionOptions: CliCommandOptions<IBundleCompressionArgsInput>;
8
- export declare const logOptions: CliCommandOptions<ILogArgsInput>;
9
- export declare const debugOptions: CliCommandOptions<IDebugArgsInput>;
10
- export declare const bundlerCommand: CliCommand<IOptionsInput>;
11
- //# sourceMappingURL=options.d.ts.map