@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,336 +0,0 @@
1
- import { bundlerHandler } from "../handler.js";
2
- export const bundlerOptions = {
3
- entrypoints: {
4
- description: "EntryPoint contract addresses split by commas",
5
- type: "string",
6
- alias: "e",
7
- require: true
8
- },
9
- "entrypoint-simulation-contract": {
10
- description: "Address of the EntryPoint simulations contract",
11
- type: "string",
12
- alias: "c",
13
- require: false
14
- },
15
- "executor-private-keys": {
16
- description: "Private keys of the executor accounts split by commas",
17
- type: "string",
18
- alias: "x",
19
- require: true
20
- },
21
- "utility-private-key": {
22
- description: "Private key of the utility account",
23
- type: "string",
24
- alias: "u",
25
- require: false
26
- },
27
- "max-executors": {
28
- description: "Maximum number of executor accounts to use from the list of executor private keys",
29
- type: "number",
30
- require: false
31
- },
32
- "min-executor-balance": {
33
- description: "Minimum balance required for each executor account (below which the utility account will refill)",
34
- type: "string"
35
- },
36
- "executor-refill-interval": {
37
- description: "Interval to refill the signer balance (seconds)",
38
- type: "number",
39
- require: true,
40
- default: 60 * 20
41
- },
42
- "min-entity-stake": {
43
- description: "Minimum stake required for a relay (in 10e18)",
44
- type: "number",
45
- require: true,
46
- default: 1
47
- },
48
- "min-entity-unstake-delay": {
49
- description: "Minimum unstake delay (seconds)",
50
- type: "number",
51
- require: true,
52
- default: 1
53
- },
54
- "max-bundle-wait": {
55
- description: "Maximum time to wait for a bundle to be submitted (ms)",
56
- type: "number",
57
- require: true,
58
- default: 1000
59
- },
60
- "max-bundle-size": {
61
- description: "Maximum number of operations allowed in the mempool before a bundle is submitted",
62
- type: "number",
63
- require: true,
64
- default: 10
65
- },
66
- "safe-mode": {
67
- description: "Enable safe mode (enforcing all ERC-4337 rules)",
68
- type: "boolean",
69
- require: true,
70
- default: true
71
- },
72
- "gas-price-bump": {
73
- description: "Amount to multiply the gas prices fetched from the node",
74
- type: "string",
75
- require: false,
76
- default: "100"
77
- },
78
- "gas-price-floor-percent": {
79
- description: "The minimum percentage of incoming user operation gas prices compared to the gas price used by the bundler to submit bundles",
80
- type: "number",
81
- require: true,
82
- default: 101
83
- },
84
- "gas-price-expiry": {
85
- description: "Maximum that the gas prices fetched using pimlico_getUserOperationGasPrice will be accepted for (seconds)",
86
- type: "number",
87
- require: false,
88
- default: 10
89
- },
90
- "gas-price-multipliers": {
91
- description: "Amount to multiply the gas prices fetched using pimlico_getUserOperationGasPrice (format: slow,standard,fast)",
92
- type: "string",
93
- require: false,
94
- default: "105,110,115"
95
- },
96
- "mempool-max-parallel-ops": {
97
- description: "Maximum amount of parallel user ops to keep in the meempool (same sender, different nonce keys)",
98
- type: "number",
99
- require: false,
100
- default: 10
101
- },
102
- "mempool-max-queued-ops": {
103
- description: "Maximum amount of sequential user ops to keep in the mempool (same sender and nonce key, different nonce values)",
104
- type: "number",
105
- require: false,
106
- default: 0
107
- },
108
- "enforce-unique-senders-per-bundle": {
109
- description: "Include user ops with the same sender in the single bundle",
110
- type: "boolean",
111
- require: false,
112
- default: true
113
- },
114
- "max-gas-per-bundle": {
115
- description: "Maximum amount of gas per bundle",
116
- type: "string",
117
- require: false,
118
- default: "5000000"
119
- }
120
- };
121
- export const compatibilityOptions = {
122
- "chain-type": {
123
- description: "Indicates weather the chain is a OP stack chain, arbitrum chain, or default EVM chain",
124
- type: "string",
125
- choices: ["default", "op-stack", "arbitrum"],
126
- default: "default"
127
- },
128
- "legacy-transactions": {
129
- description: "Send a legacy transactions instead of an EIP-1559 transactions",
130
- type: "boolean",
131
- require: true,
132
- default: false
133
- },
134
- "balance-override": {
135
- description: "Override the sender native token balance during estimation",
136
- type: "boolean",
137
- require: true,
138
- default: true
139
- },
140
- "local-gas-limit-calculation": {
141
- description: "Calculate the bundle transaction gas limits locally instead of using the RPC gas limit estimation",
142
- type: "boolean",
143
- require: true,
144
- default: false
145
- },
146
- "flush-stuck-transactions-during-startup": {
147
- description: "Flush stuck transactions with old nonces during bundler startup",
148
- type: "boolean",
149
- require: true,
150
- default: false
151
- },
152
- "fixed-gas-limit-for-estimation": {
153
- description: "Use a fixed value for gas limits during bundle transaction gas limit estimations",
154
- type: "string",
155
- require: false
156
- },
157
- "api-version": {
158
- description: "API version (used for internal Pimlico versioning compatibility)",
159
- type: "string",
160
- require: true,
161
- default: "v1,v2"
162
- },
163
- "default-api-version": {
164
- description: "Default API version",
165
- type: "string",
166
- require: false,
167
- default: "v1"
168
- },
169
- "paymaster-gas-limit-multiplier": {
170
- description: "Amount to multiply the paymaster gas limits fetched from simulations",
171
- type: "string",
172
- require: true,
173
- default: "110"
174
- }
175
- };
176
- export const serverOptions = {
177
- port: {
178
- description: "Port to listen on",
179
- type: "number",
180
- require: true,
181
- default: 3000
182
- },
183
- timeout: {
184
- description: "Timeout for incoming requests (in ms)",
185
- type: "number",
186
- require: false
187
- },
188
- "websocket-max-payload-size": {
189
- description: "Maximum payload size for websocket messages in bytes (default to 1MB)",
190
- type: "number",
191
- require: false
192
- },
193
- websocket: {
194
- description: "Enable websocket server",
195
- type: "boolean",
196
- require: false
197
- }
198
- };
199
- export const rpcOptions = {
200
- "rpc-url": {
201
- description: "RPC url to connect to",
202
- type: "string",
203
- alias: "r",
204
- require: true
205
- },
206
- "send-transaction-rpc-url": {
207
- description: "RPC url to send transactions to (e.g. flashbots relay)",
208
- type: "string",
209
- require: false
210
- },
211
- "polling-interval": {
212
- description: "Polling interval for querying for new blocks (ms)",
213
- type: "number",
214
- require: true,
215
- default: 1000
216
- },
217
- "max-block-range": {
218
- description: "Max block range for getLogs calls",
219
- type: "number",
220
- require: false
221
- }
222
- };
223
- export const bundleCompressionOptions = {
224
- "bundle-bulker-address": {
225
- description: "Address of the BundleBulker contract",
226
- type: "string",
227
- require: false
228
- },
229
- "per-op-inflator-address": {
230
- description: "Address of the PerOpInflator contract",
231
- type: "string",
232
- require: false
233
- }
234
- };
235
- export const logOptions = {
236
- json: {
237
- description: "Log in JSON format",
238
- type: "boolean",
239
- require: true,
240
- default: false
241
- },
242
- "network-name": {
243
- description: "Name of the network (used for metrics)",
244
- type: "string",
245
- require: true,
246
- default: "localhost"
247
- },
248
- "log-level": {
249
- description: "Default log level",
250
- type: "string",
251
- require: true,
252
- choices: ["trace", "debug", "info", "warn", "error", "fatal"],
253
- default: "info"
254
- },
255
- "public-client-log-level": {
256
- description: "Log level for the publicClient module",
257
- type: "string",
258
- choices: ["trace", "debug", "info", "warn", "error", "fatal"],
259
- require: false
260
- },
261
- "wallet-client-log-level": {
262
- description: "Log level for the walletClient module",
263
- type: "string",
264
- choices: ["trace", "debug", "info", "warn", "error", "fatal"],
265
- require: false
266
- },
267
- "rpc-log-level": {
268
- description: "Log level for the rpc module",
269
- type: "string",
270
- choices: ["trace", "debug", "info", "warn", "error", "fatal"],
271
- require: false
272
- },
273
- "mempool-log-level": {
274
- description: "Log level for the mempool module",
275
- type: "string",
276
- choices: ["trace", "debug", "info", "warn", "error", "fatal"],
277
- require: false
278
- },
279
- "executor-log-level": {
280
- description: "Log level for the executor module",
281
- type: "string",
282
- choices: ["trace", "debug", "info", "warn", "error", "fatal"],
283
- require: false
284
- },
285
- "reputation-manager-log-level": {
286
- description: "Log level for the executor module",
287
- type: "string",
288
- choices: ["trace", "debug", "info", "warn", "error", "fatal"],
289
- require: false
290
- },
291
- "nonce-queuer-log-level": {
292
- description: "Log level for the executor module",
293
- type: "string",
294
- choices: ["trace", "debug", "info", "warn", "error", "fatal"],
295
- require: false
296
- }
297
- };
298
- export const debugOptions = {
299
- "bundle-mode": {
300
- description: "Set if the bundler bundle user operations automatically or only when calling debug_bundler_sendBundleNow.",
301
- type: "string",
302
- require: true,
303
- default: "auto",
304
- choices: ["auto", "manual"]
305
- },
306
- "enable-debug-endpoints": {
307
- description: "Enable debug endpoints",
308
- type: "boolean",
309
- require: true,
310
- default: false
311
- },
312
- "expiration-check": {
313
- description: "Should the node make expiration checks",
314
- type: "boolean",
315
- require: true,
316
- default: true
317
- },
318
- "dangerous-skip-user-operation-validation": {
319
- description: "Skip user operation validation, use with caution",
320
- type: "boolean",
321
- require: true,
322
- default: false
323
- },
324
- tenderly: {
325
- description: "RPC url follows the tenderly format",
326
- type: "boolean",
327
- require: true,
328
- default: false
329
- }
330
- };
331
- export const bundlerCommand = {
332
- command: "$0",
333
- describe: "Starts the bundler",
334
- handler: bundlerHandler
335
- };
336
- //# sourceMappingURL=options.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"options.js","sourceRoot":"","sources":["../../../cli/config/options.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,YAAY,CAAA;AAa3C,MAAM,CAAC,MAAM,cAAc,GAAyC;IAChE,WAAW,EAAE;QACT,WAAW,EAAE,+CAA+C;QAC5D,IAAI,EAAE,QAAQ;QACd,KAAK,EAAE,GAAG;QACV,OAAO,EAAE,IAAI;KAChB;IACD,gCAAgC,EAAE;QAC9B,WAAW,EAAE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AO,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,CAAC;QAC7D,OAAO,EAAE,KAAK;KACjB;IACD,wBAAwB,EAAE;QACtB,WAAW,EAAE,mCAAmC;QAChD,IAAI,EAAE,QAAQ;QACd,OAAO,EAAE,CAAC,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,CAAC;QAC7D,OAAO,EAAE,KAAK;KACjB;CACJ,CAAA;AAED,MAAM,CAAC,MAAM,YAAY,GAAuC;IAC5D,aAAa,EAAE;QACX,WAAW,EACP,2GAA2G;QAC/G,IAAI,EAAE,QAAQ;QACd,OAAO,EAAE,IAAI;QACb,OAAO,EAAE,MAAM;QACf,OAAO,EAAE,CAAC,MAAM,EAAE,QAAQ,CAAC;KAC9B;IACD,wBAAwB,EAAE;QACtB,WAAW,EAAE,wBAAwB;QACrC,IAAI,EAAE,SAAS;QACf,OAAO,EAAE,IAAI;QACb,OAAO,EAAE,KAAK;KACjB;IACD,kBAAkB,EAAE;QAChB,WAAW,EAAE,wCAAwC;QACrD,IAAI,EAAE,SAAS;QACf,OAAO,EAAE,IAAI;QACb,OAAO,EAAE,IAAI;KAChB;IACD,0CAA0C,EAAE;QACxC,WAAW,EAAE,kDAAkD;QAC/D,IAAI,EAAE,SAAS;QACf,OAAO,EAAE,IAAI;QACb,OAAO,EAAE,KAAK;KACjB;IACD,QAAQ,EAAE;QACN,WAAW,EAAE,qCAAqC;QAClD,IAAI,EAAE,SAAS;QACf,OAAO,EAAE,IAAI;QACb,OAAO,EAAE,KAAK;KACjB;CACJ,CAAA;AAED,MAAM,CAAC,MAAM,cAAc,GAA8B;IACrD,OAAO,EAAE,IAAI;IACb,QAAQ,EAAE,oBAAoB;IAC9B,OAAO,EAAE,cAAc;CAC1B,CAAA"}
@@ -1,14 +0,0 @@
1
- import type { Logger } from "../utils/index.js";
2
- import { type HttpTransport, type HttpTransportConfig } from "viem";
3
- export type RpcRequest = {
4
- jsonrpc?: "2.0" | undefined;
5
- method: string;
6
- params?: any | undefined;
7
- id?: number | undefined;
8
- };
9
- export declare function customTransport(
10
- /** URL of the JSON-RPC API. Defaults to the chain's public RPC URL. */
11
- url_: string, config: HttpTransportConfig & {
12
- logger: Logger;
13
- }): HttpTransport;
14
- //# sourceMappingURL=customTransport.d.ts.map
@@ -1,53 +0,0 @@
1
- import { RpcRequestError, UrlRequiredError, createTransport } from "viem";
2
- import { rpc } from "viem/utils";
3
- export function customTransport(
4
- /** URL of the JSON-RPC API. Defaults to the chain's public RPC URL. */
5
- url_, config) {
6
- const { fetchOptions, key = "http", name = "HTTP JSON-RPC", retryDelay, logger } = config;
7
- return ({ chain, retryCount: retryCount_, timeout: timeout_ }) => {
8
- const retryCount = config.retryCount ?? retryCount_;
9
- const timeout = timeout_ ?? config.timeout ?? 10_000;
10
- const url = url_ || chain?.rpcUrls.default.http[0];
11
- if (!url) {
12
- throw new UrlRequiredError();
13
- }
14
- return createTransport({
15
- key,
16
- name,
17
- async request({ method, params }) {
18
- const body = { method, params };
19
- const fn = async (body) => {
20
- return [
21
- await rpc.http(url, {
22
- body,
23
- fetchOptions,
24
- timeout
25
- })
26
- ];
27
- };
28
- const [{ error, result }] = await fn(body);
29
- if (error) {
30
- logger.error({
31
- error,
32
- body
33
- }, "Received error response");
34
- throw new RpcRequestError({
35
- body,
36
- error,
37
- url: url
38
- });
39
- }
40
- logger.info({ body, result }, "Received response");
41
- return result;
42
- },
43
- retryCount,
44
- retryDelay,
45
- timeout,
46
- type: "http"
47
- }, {
48
- fetchOptions,
49
- url
50
- });
51
- };
52
- }
53
- //# sourceMappingURL=customTransport.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"customTransport.js","sourceRoot":"","sources":["../../cli/customTransport.ts"],"names":[],"mappings":"AACA,OAAO,EAGH,eAAe,EACf,gBAAgB,EAChB,eAAe,EAClB,MAAM,MAAM,CAAA;AACb,OAAO,EAAE,GAAG,EAAE,MAAM,Y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,IAAI;wBACJ,KAAK;wBACL,GAAG,EAAE,GAAG;qBACX,CAAC,CAAA;gBACN,CAAC;gBACD,MAAM,CAAC,IAAI,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,EAAE,mBAAmB,CAAC,CAAA;gBAClD,OAAO,MAAM,CAAA;YACjB,CAAC;YACD,UAAU;YACV,UAAU;YACV,OAAO;YACP,IAAI,EAAE,MAAM;SACf,EACD;YACI,YAAY;YACZ,GAAG;SACN,CACJ,CAAA;IACL,CAAC,CAAA;AACL,CAAC"}
@@ -1,3 +0,0 @@
1
- import { type IOptionsInput } from "./config/index.js";
2
- export declare function bundlerHandler(args: IOptionsInput): Promise<void>;
3
- //# sourceMappingURL=handler.d.ts.map
@@ -1,116 +0,0 @@
1
- import { SenderManager } from "../executor/index.js";
2
- import { GasPriceManager, createMetrics, initDebugLogger, initProductionLogger } from "../utils/index.js";
3
- import { Registry } from "prom-client";
4
- import { createPublicClient, createWalletClient } from "viem";
5
- import { fromZodError } from "zod-validation-error";
6
- import { optionArgsSchema } from "./config/index.js";
7
- import { customTransport } from "./customTransport.js";
8
- import { setupServer } from "./setupServer.js";
9
- const parseArgs = (args) => {
10
- // validate every arg, make type safe so if i add a new arg i have to validate it
11
- const parsing = optionArgsSchema.safeParse(args);
12
- if (!parsing.success) {
13
- const error = fromZodError(parsing.error);
14
- throw new Error(error.message);
15
- }
16
- return parsing.data;
17
- };
18
- const preFlightChecks = async (publicClient, parsedArgs) => {
19
- for (const entrypoint of parsedArgs.entrypoints) {
20
- const entryPointCode = await publicClient.getBytecode({
21
- address: entrypoint
22
- });
23
- if (entryPointCode === "0x") {
24
- throw new Error(`entry point ${entrypoint} does not exist`);
25
- }
26
- }
27
- if (parsedArgs["entrypoint-simulation-contract"]) {
28
- const simulations = parsedArgs["entrypoint-simulation-contract"];
29
- const simulationsCode = await publicClient.getBytecode({
30
- address: simulations
31
- });
32
- if (simulationsCode === undefined || simulationsCode === "0x") {
33
- throw new Error(`EntryPointSimulations contract ${simulations} does not exist`);
34
- }
35
- }
36
- };
37
- export async function bundlerHandler(args) {
38
- const parsedArgs = parseArgs(args);
39
- let logger;
40
- if (parsedArgs.json) {
41
- logger = initProductionLogger(parsedArgs["log-level"]);
42
- }
43
- else {
44
- logger = initDebugLogger(parsedArgs["log-level"]);
45
- }
46
- const rootLogger = logger.child({ module: "root" }, { level: parsedArgs["log-level"] });
47
- const getChainId = async () => {
48
- const client = createPublicClient({
49
- transport: customTransport(args["rpc-url"], {
50
- logger: logger.child({ module: "public_client" }, {
51
- level: parsedArgs["public-client-log-level"] ||
52
- parsedArgs["log-level"]
53
- })
54
- })
55
- });
56
- return await client.getChainId();
57
- };
58
- const chainId = await getChainId();
59
- const chain = {
60
- id: chainId,
61
- name: args["network-name"],
62
- nativeCurrency: {
63
- name: "ETH",
64
- symbol: "ETH",
65
- decimals: 18
66
- },
67
- rpcUrls: {
68
- default: { http: [args["rpc-url"]] },
69
- public: { http: [args["rpc-url"]] }
70
- }
71
- };
72
- const client = createPublicClient({
73
- transport: customTransport(args["rpc-url"], {
74
- logger: logger.child({ module: "public_client" }, {
75
- level: parsedArgs["public-client-log-level"] ||
76
- parsedArgs["log-level"]
77
- })
78
- }),
79
- chain
80
- });
81
- const gasPriceManager = new GasPriceManager(chain, client, parsedArgs["legacy-transactions"], logger.child({ module: "gas_price_manager" }, {
82
- level: parsedArgs["public-client-log-level"] ||
83
- parsedArgs["log-level"]
84
- }), parsedArgs["gas-price-bump"], parsedArgs["gas-price-expiry"]);
85
- const registry = new Registry();
86
- registry.setDefaultLabels({
87
- network: chain.name,
88
- chainId
89
- });
90
- const metrics = createMetrics(registry);
91
- await preFlightChecks(client, parsedArgs);
92
- const walletClient = createWalletClient({
93
- transport: customTransport(parsedArgs["send-transaction-rpc-url"] ?? args["rpc-url"], {
94
- logger: logger.child({ module: "wallet_client" }, {
95
- level: parsedArgs["wallet-client-log-level"] ||
96
- parsedArgs["log-level"]
97
- })
98
- }),
99
- chain
100
- });
101
- const senderManager = new SenderManager(parsedArgs["executor-private-keys"], parsedArgs["utility-private-key"], logger.child({ module: "executor" }, {
102
- level: parsedArgs["executor-log-level"] || parsedArgs["log-level"]
103
- }), metrics, parsedArgs["legacy-transactions"], gasPriceManager, parsedArgs["max-executors"]);
104
- await setupServer({
105
- client,
106
- walletClient,
107
- parsedArgs,
108
- logger,
109
- rootLogger,
110
- registry,
111
- metrics,
112
- senderManager,
113
- gasPriceManager
114
- });
115
- }
116
- //# sourceMappingURL=handler.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"handler.js","sourceRoot":"","sources":["../../cli/handler.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAA;AAC9C,OAAO,EACH,eAAe,EACf,aAAa,EACb,eAAe,EACf,oBAAoB,EAEvB,MAAM,aAAa,CAAA;AACpB,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAA;AACtC,OAAO,EACH,kBAAkB,EAClB,kBAAkB,EAIrB,MAAM,MAAM,CAAA;AACb,OAAO,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAA;AACnD,OAAO,EACH,gBAAgB,EAInB,MAAM,UAAU,CAAA;AACjB,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAA;AACnD,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAA;AAE3C,MAAM,SAAS,GAAG,CAAC,IAAmB,EAAY,EAAE;IAChD,iFAAiF;IACjF,MAAM,OAAO,GAAG,gBAAgB,CAAC,SAAS,CAAC,IAAI,CAAC,CAAA;IAChD,IAAI,CAAC,OAAO,CAAC,OAAO,EAAE,CAAC;QACnB,MAAM,KAAK,GAAG,YAAY,CAAC,OAAO,CAAC,KAAK,CAAC,CAAA;QACzC,MAAM,IAAI,KAAK,CAAC,KAAK,CAAC,OAAO,CAAC,CAAA;IAClC,CAAC;IAED,OAAO,OAAO,CAAC,IAAI,CAAA;AACvB,CAAC,CAAA;AAED,MAAM,eAAe,GA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a;QACb,eAAe;KAClB,CAAC,CAAA;AACN,CAAC"}
@@ -1,4 +0,0 @@
1
- export * from "./config/index.js";
2
- export * from "./alto.js";
3
- export * from "./util.js";
4
- //# sourceMappingURL=index.d.ts.map
package/esm/cli/index.js DELETED
@@ -1,4 +0,0 @@
1
- export * from "./config/index.js";
2
- export * from "./alto.js";
3
- export * from "./util.js";
4
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../cli/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAA;AACxB,cAAc,QAAQ,CAAA;AACtB,cAAc,QAAQ,CAAA"}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=instrumentation.d.ts.map
@@ -1,39 +0,0 @@
1
- import { SpanKind } from "@opentelemetry/api";
2
- import { OTLPTraceExporter } from "@opentelemetry/exporter-trace-otlp-proto";
3
- import { FastifyInstrumentation } from "@opentelemetry/instrumentation-fastify";
4
- import { HttpInstrumentation } from "@opentelemetry/instrumentation-http";
5
- import { PinoInstrumentation } from "@opentelemetry/instrumentation-pino";
6
- import { NodeSDK } from "@opentelemetry/sdk-node";
7
- import { ParentBasedSampler, SamplingDecision } from "@opentelemetry/sdk-trace-base";
8
- import { SemanticAttributes } from "@opentelemetry/semantic-conventions";
9
- import { FetchInstrumentation } from "opentelemetry-instrumentation-fetch-node";
10
- class CustomSampler {
11
- shouldSample(_context, _traceId, _spanName, spanKind, attributes) {
12
- const ignoredRoutes = ["/metrics", "/health"];
13
- const httpTarget = attributes[SemanticAttributes.HTTP_TARGET];
14
- if (spanKind === SpanKind.SERVER &&
15
- httpTarget &&
16
- ignoredRoutes.includes(httpTarget.toString())) {
17
- return { decision: SamplingDecision.NOT_RECORD };
18
- }
19
- // fallback
20
- return { decision: SamplingDecision.RECORD_AND_SAMPLED };
21
- }
22
- toString() {
23
- return "CustomSampler";
24
- }
25
- }
26
- const sdk = new NodeSDK({
27
- traceExporter: new OTLPTraceExporter(),
28
- instrumentations: [
29
- new HttpInstrumentation({
30
- requireParentforOutgoingSpans: true
31
- }),
32
- new FetchInstrumentation({}),
33
- new FastifyInstrumentation(),
34
- new PinoInstrumentation()
35
- ],
36
- sampler: new ParentBasedSampler({ root: new CustomSampler() })
37
- });
38
- sdk.start();
39
- //# sourceMappingURL=instrumentation.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"instrumentation.js","sourceRoot":"","sources":["../../cli/instrumentation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAiC,QAAQ,EAAE,MAAM,oBAAoB,CAAA;AAC5E,OAAO,EAAE,iBAAiB,EAAE,MAAM,0CAA0C,CAAA;AAC5E,OAAO,EAAE,sBAAsB,EAAE,MAAM,wCAAwC,CAAA;AAC/E,OAAO,EAAE,mBAAmB,EAAE,MAAM,qCAAqC,CAAA;AACzE,OAAO,EAAE,mBAAmB,EAAE,MAAM,qCAAqC,CAAA;AACzE,OAAO,EAAE,OAAO,EAAE,MAAM,yBAAyB,CAAA;AACjD,OAAO,EACH,kBAAkB,EAElB,gBAAgB,EACnB,MAAM,+BAA+B,CAAA;AACtC,OAAO,EAAE,kBAAkB,EAAE,MAAM,qCAAqC,CAAA;AACxE,OAAO,EAAE,oBAAoB,EAAE,MAAM,0CAA0C,CAAA;AAE/E,MAAM,aAAa;IACf,YAAY,CACR,QAAiB,EACjB,QAAgB,EAChB,SAAiB,EACjB,QAAkB,EAClB,UAAsB;QAEtB,MAAM,aAAa,GAAG,CAAC,UAAU,EAAE,SAAS,CAAC,CAAA;QAE7C,MAAM,UAAU,GAAG,UAAU,CAAC,kBAAkB,CAAC,WAAW,CAAC,CAAA;QAE7D,IACI,QAAQ,KAAK,QAAQ,CAAC,MAAM;YAC5B,UAAU;YACV,aAAa,CAAC,QAAQ,CAAC,UAAU,CAAC,QAAQ,EAAE,CAAC,EAC/C,CAAC;YACC,OAAO,EAAE,QAAQ,EAAE,gBAAgB,CAAC,UAAU,EAAE,CAAA;QACpD,CAAC;QACD,WAAW;QACX,OAAO,EAAE,QAAQ,EAAE,gBAAgB,CAAC,kBAAkB,EAAE,CAAA;IAC5D,CAAC;IACD,QAAQ;QACJ,OAAO,eAAe,CAAA;IAC1B,CAAC;CACJ;AAED,MAAM,GAAG,GAAG,IAAI,OAAO,CAAC;IACpB,aAAa,EAAE,IAAI,iBAAiB,EAAE;IACtC,gBAAgB,EAAE;QACd,IAAI,mBAAmB,CAAC;YACpB,6BAA6B,EAAE,IAAI;SACtC,CAAC;QACF,IAAI,oBAAoB,CAAC,EAAE,CAAC;QAC5B,IAAI,sBAAsB,EAAE;QAC5B,IAAI,mBAAmB,EAAE;KAC5B;IACD,OAAO,EAAE,IAAI,kBAAkB,CAAC,EAAE,IAAI,EAAE,IAAI,aAAa,EAAE,EAAE,CAAC;CACjE,CAAC,CAAA;AAEF,GAAG,CAAC,KAAK,EAAE,CAAA"}
@@ -1,17 +0,0 @@
1
- import type { SenderManager } from "../executor/index.js";
2
- import type { GasPriceManager, Logger, Metrics } from "../utils/index.js";
3
- import type { Registry } from "prom-client";
4
- import type { Chain, PublicClient, Transport, WalletClient } from "viem";
5
- import type { IOptions } from "./config/index.js";
6
- export declare const setupServer: ({ client, walletClient, parsedArgs, logger, rootLogger, registry, metrics, senderManager, gasPriceManager }: {
7
- client: PublicClient<Transport, Chain>;
8
- walletClient: WalletClient<Transport, Chain>;
9
- parsedArgs: IOptions;
10
- logger: Logger;
11
- rootLogger: Logger;
12
- registry: Registry;
13
- metrics: Metrics;
14
- senderManager: SenderManager;
15
- gasPriceManager: GasPriceManager;
16
- }) => Promise<void>;
17
- //# sourceMappingURL=setupServer.d.ts.map