@pimlico/alto 0.0.6 → 0.0.8

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 (292) hide show
  1. package/esm/cli/alto.js +3 -1
  2. package/esm/cli/alto.js.map +1 -1
  3. package/esm/cli/config/bundler.d.ts +348 -306
  4. package/esm/cli/config/bundler.js +26 -7
  5. package/esm/cli/config/bundler.js.map +1 -1
  6. package/esm/cli/config/options.d.ts +2 -1
  7. package/esm/cli/config/options.js +46 -8
  8. package/esm/cli/config/options.js.map +1 -1
  9. package/esm/cli/customTransport.js +40 -7
  10. package/esm/cli/customTransport.js.map +1 -1
  11. package/esm/cli/deploySimulationsContract.d.ts +8 -0
  12. package/esm/cli/deploySimulationsContract.js +26 -0
  13. package/esm/cli/deploySimulationsContract.js.map +1 -0
  14. package/esm/cli/handler.d.ts +2 -2
  15. package/esm/cli/handler.js +67 -89
  16. package/esm/cli/handler.js.map +1 -1
  17. package/esm/cli/instrumentation.js +4 -2
  18. package/esm/cli/instrumentation.js.map +1 -1
  19. package/esm/cli/parseArgs.d.ts +8 -0
  20. package/esm/cli/parseArgs.js +21 -0
  21. package/esm/cli/parseArgs.js.map +1 -0
  22. package/esm/cli/setupServer.d.ts +4 -9
  23. package/esm/cli/setupServer.js +98 -82
  24. package/esm/cli/setupServer.js.map +1 -1
  25. package/esm/createConfig.d.ts +15 -0
  26. package/esm/createConfig.js +8 -0
  27. package/esm/createConfig.js.map +1 -0
  28. package/esm/executor/executor.d.ts +29 -13
  29. package/esm/executor/executor.js +110 -72
  30. package/esm/executor/executor.js.map +1 -1
  31. package/esm/executor/executorManager.d.ts +14 -10
  32. package/esm/executor/executorManager.js +42 -42
  33. package/esm/executor/executorManager.js.map +1 -1
  34. package/esm/executor/senderManager.d.ts +11 -6
  35. package/esm/executor/senderManager.js +25 -32
  36. package/esm/executor/senderManager.js.map +1 -1
  37. package/esm/executor/utilityWalletMonitor.d.ts +9 -5
  38. package/esm/executor/utilityWalletMonitor.js +8 -8
  39. package/esm/executor/utilityWalletMonitor.js.map +1 -1
  40. package/esm/executor/utils.d.ts +2 -1
  41. package/esm/executor/utils.js +7 -2
  42. package/esm/executor/utils.js.map +1 -1
  43. package/esm/handlers/arbitrumGasPriceManager.d.ts +11 -0
  44. package/esm/handlers/arbitrumGasPriceManager.js +29 -0
  45. package/esm/handlers/arbitrumGasPriceManager.js.map +1 -0
  46. package/esm/handlers/eventManager.d.ts +7 -3
  47. package/esm/handlers/eventManager.js +24 -16
  48. package/esm/handlers/eventManager.js.map +1 -1
  49. package/esm/handlers/gasPriceManager.d.ts +14 -27
  50. package/esm/handlers/gasPriceManager.js +81 -135
  51. package/esm/handlers/gasPriceManager.js.map +1 -1
  52. package/esm/handlers/mantleGasPriceManager.d.ts +20 -0
  53. package/esm/handlers/mantleGasPriceManager.js +28 -0
  54. package/esm/handlers/mantleGasPriceManager.js.map +1 -0
  55. package/esm/mempool/mempool.d.ts +13 -10
  56. package/esm/mempool/mempool.js +29 -26
  57. package/esm/mempool/mempool.js.map +1 -1
  58. package/esm/mempool/reputationManager.d.ts +4 -6
  59. package/esm/mempool/reputationManager.js +25 -29
  60. package/esm/mempool/reputationManager.js.map +1 -1
  61. package/esm/mempool/store.d.ts +1 -1
  62. package/esm/rpc/estimation/gasEstimationHandler.d.ts +24 -0
  63. package/esm/rpc/estimation/gasEstimationHandler.js +48 -0
  64. package/esm/rpc/estimation/gasEstimationHandler.js.map +1 -0
  65. package/esm/rpc/estimation/gasEstimationsV06.d.ts +19 -0
  66. package/esm/rpc/estimation/gasEstimationsV06.js +146 -0
  67. package/esm/rpc/estimation/gasEstimationsV06.js.map +1 -0
  68. package/esm/rpc/estimation/gasEstimationsV07.d.ts +88 -0
  69. package/esm/rpc/estimation/gasEstimationsV07.js +429 -0
  70. package/esm/rpc/estimation/gasEstimationsV07.js.map +1 -0
  71. package/esm/rpc/estimation/types.d.ts +113 -0
  72. package/esm/rpc/estimation/types.js +122 -0
  73. package/esm/rpc/estimation/types.js.map +1 -0
  74. package/esm/rpc/nonceQueuer.d.ts +10 -6
  75. package/esm/rpc/nonceQueuer.js +10 -10
  76. package/esm/rpc/nonceQueuer.js.map +1 -1
  77. package/esm/rpc/rpcHandler.d.ts +19 -16
  78. package/esm/rpc/rpcHandler.js +83 -72
  79. package/esm/rpc/rpcHandler.js.map +1 -1
  80. package/esm/rpc/server.d.ts +9 -7
  81. package/esm/rpc/server.js +27 -26
  82. package/esm/rpc/server.js.map +1 -1
  83. package/esm/rpc/validation/SafeValidator.d.ts +11 -6
  84. package/esm/rpc/validation/SafeValidator.js +16 -14
  85. package/esm/rpc/validation/SafeValidator.js.map +1 -1
  86. package/esm/rpc/validation/TracerResultParserV06.d.ts +1 -1
  87. package/esm/rpc/validation/TracerResultParserV06.js.map +1 -1
  88. package/esm/rpc/validation/TracerResultParserV07.d.ts +1 -1
  89. package/esm/rpc/validation/TracerResultParserV07.js +1 -1
  90. package/esm/rpc/validation/TracerResultParserV07.js.map +1 -1
  91. package/esm/rpc/validation/UnsafeValidator.d.ts +14 -17
  92. package/esm/rpc/validation/UnsafeValidator.js +49 -42
  93. package/esm/rpc/validation/UnsafeValidator.js.map +1 -1
  94. package/esm/types/contracts/ArbitrumL1FeeAbi.d.ts +32 -0
  95. package/esm/types/contracts/ArbitrumL1FeeAbi.js +42 -0
  96. package/esm/types/contracts/ArbitrumL1FeeAbi.js.map +1 -0
  97. package/esm/types/contracts/EntryPointSimulationsV6.d.ts +34 -0
  98. package/esm/types/contracts/EntryPointSimulationsV6.js +48 -0
  99. package/esm/types/contracts/EntryPointSimulationsV6.js.map +1 -0
  100. package/esm/types/contracts/EntryPointSimulationsV7.d.ts +1370 -0
  101. package/esm/types/contracts/{EntryPointSimulations.js → EntryPointSimulationsV7.js} +197 -385
  102. package/esm/types/contracts/EntryPointSimulationsV7.js.map +1 -0
  103. package/esm/types/contracts/IAccountExecute.d.ts +53 -0
  104. package/esm/types/contracts/IAccountExecute.js +68 -0
  105. package/esm/types/contracts/IAccountExecute.js.map +1 -0
  106. package/esm/types/contracts/MantleBvmGasPriceOracle.d.ts +219 -0
  107. package/esm/types/contracts/MantleBvmGasPriceOracle.js +177 -0
  108. package/esm/types/contracts/MantleBvmGasPriceOracle.js.map +1 -0
  109. package/esm/types/contracts/OpL1FeeAbi.d.ts +26 -0
  110. package/esm/types/contracts/OpL1FeeAbi.js +29 -0
  111. package/esm/types/contracts/OpL1FeeAbi.js.map +1 -0
  112. package/esm/types/contracts/PimlicoEntryPointSimulations.d.ts +1 -1
  113. package/esm/types/contracts/PimlicoEntryPointSimulations.js +1 -1
  114. package/esm/types/contracts/PimlicoEntryPointSimulations.js.map +1 -1
  115. package/esm/types/contracts/index.d.ts +5 -1
  116. package/esm/types/contracts/index.js +5 -1
  117. package/esm/types/contracts/index.js.map +1 -1
  118. package/esm/types/interfaces.d.ts +2 -2
  119. package/esm/types/schemas.d.ts +94 -94
  120. package/esm/types/schemas.js +3 -3
  121. package/esm/types/schemas.js.map +1 -1
  122. package/esm/types/utils.d.ts +1 -1
  123. package/esm/utils/bigInt.js +2 -2
  124. package/esm/utils/bigInt.js.map +1 -1
  125. package/esm/utils/helpers.js +1 -1
  126. package/esm/utils/helpers.js.map +1 -1
  127. package/esm/utils/rpc-reply.d.ts +1 -1
  128. package/esm/utils/timedQueue.d.ts +12 -0
  129. package/esm/utils/timedQueue.js +51 -0
  130. package/esm/utils/timedQueue.js.map +1 -0
  131. package/esm/utils/userop.d.ts +2 -2
  132. package/esm/utils/userop.js +2 -2
  133. package/esm/utils/userop.js.map +1 -1
  134. package/esm/utils/validation.d.ts +14 -6
  135. package/esm/utils/validation.js +115 -132
  136. package/esm/utils/validation.js.map +1 -1
  137. package/lib/cli/alto.js +2 -0
  138. package/lib/cli/alto.js.map +1 -1
  139. package/lib/cli/config/bundler.d.ts +348 -306
  140. package/lib/cli/config/bundler.js +26 -7
  141. package/lib/cli/config/bundler.js.map +1 -1
  142. package/lib/cli/config/options.d.ts +2 -1
  143. package/lib/cli/config/options.js +47 -9
  144. package/lib/cli/config/options.js.map +1 -1
  145. package/lib/cli/customTransport.js +38 -5
  146. package/lib/cli/customTransport.js.map +1 -1
  147. package/lib/cli/deploySimulationsContract.d.ts +8 -0
  148. package/lib/cli/deploySimulationsContract.js +30 -0
  149. package/lib/cli/deploySimulationsContract.js.map +1 -0
  150. package/lib/cli/handler.d.ts +2 -2
  151. package/lib/cli/handler.js +66 -88
  152. package/lib/cli/handler.js.map +1 -1
  153. package/lib/cli/instrumentation.js +4 -2
  154. package/lib/cli/instrumentation.js.map +1 -1
  155. package/lib/cli/parseArgs.d.ts +8 -0
  156. package/lib/cli/parseArgs.js +25 -0
  157. package/lib/cli/parseArgs.js.map +1 -0
  158. package/lib/cli/setupServer.d.ts +4 -9
  159. package/lib/cli/setupServer.js +98 -82
  160. package/lib/cli/setupServer.js.map +1 -1
  161. package/lib/createConfig.d.ts +15 -0
  162. package/lib/createConfig.js +12 -0
  163. package/lib/createConfig.js.map +1 -0
  164. package/lib/executor/executor.d.ts +29 -13
  165. package/lib/executor/executor.js +106 -68
  166. package/lib/executor/executor.js.map +1 -1
  167. package/lib/executor/executorManager.d.ts +14 -10
  168. package/lib/executor/executorManager.js +40 -40
  169. package/lib/executor/executorManager.js.map +1 -1
  170. package/lib/executor/senderManager.d.ts +11 -6
  171. package/lib/executor/senderManager.js +25 -32
  172. package/lib/executor/senderManager.js.map +1 -1
  173. package/lib/executor/utilityWalletMonitor.d.ts +9 -5
  174. package/lib/executor/utilityWalletMonitor.js +8 -8
  175. package/lib/executor/utilityWalletMonitor.js.map +1 -1
  176. package/lib/executor/utils.d.ts +2 -1
  177. package/lib/executor/utils.js +9 -3
  178. package/lib/executor/utils.js.map +1 -1
  179. package/lib/handlers/arbitrumGasPriceManager.d.ts +11 -0
  180. package/lib/handlers/arbitrumGasPriceManager.js +33 -0
  181. package/lib/handlers/arbitrumGasPriceManager.js.map +1 -0
  182. package/lib/handlers/eventManager.d.ts +7 -3
  183. package/lib/handlers/eventManager.js +24 -16
  184. package/lib/handlers/eventManager.js.map +1 -1
  185. package/lib/handlers/gasPriceManager.d.ts +14 -27
  186. package/lib/handlers/gasPriceManager.js +80 -134
  187. package/lib/handlers/gasPriceManager.js.map +1 -1
  188. package/lib/handlers/mantleGasPriceManager.d.ts +20 -0
  189. package/lib/handlers/mantleGasPriceManager.js +32 -0
  190. package/lib/handlers/mantleGasPriceManager.js.map +1 -0
  191. package/lib/mempool/mempool.d.ts +13 -10
  192. package/lib/mempool/mempool.js +28 -25
  193. package/lib/mempool/mempool.js.map +1 -1
  194. package/lib/mempool/reputationManager.d.ts +4 -6
  195. package/lib/mempool/reputationManager.js +25 -29
  196. package/lib/mempool/reputationManager.js.map +1 -1
  197. package/lib/mempool/store.d.ts +1 -1
  198. package/lib/rpc/estimation/gasEstimationHandler.d.ts +24 -0
  199. package/lib/rpc/estimation/gasEstimationHandler.js +52 -0
  200. package/lib/rpc/estimation/gasEstimationHandler.js.map +1 -0
  201. package/lib/rpc/estimation/gasEstimationsV06.d.ts +19 -0
  202. package/lib/rpc/estimation/gasEstimationsV06.js +150 -0
  203. package/lib/rpc/estimation/gasEstimationsV06.js.map +1 -0
  204. package/lib/rpc/estimation/gasEstimationsV07.d.ts +88 -0
  205. package/lib/rpc/estimation/gasEstimationsV07.js +435 -0
  206. package/lib/rpc/estimation/gasEstimationsV07.js.map +1 -0
  207. package/lib/rpc/estimation/types.d.ts +113 -0
  208. package/lib/rpc/estimation/types.js +125 -0
  209. package/lib/rpc/estimation/types.js.map +1 -0
  210. package/lib/rpc/nonceQueuer.d.ts +10 -6
  211. package/lib/rpc/nonceQueuer.js +9 -9
  212. package/lib/rpc/nonceQueuer.js.map +1 -1
  213. package/lib/rpc/rpcHandler.d.ts +19 -16
  214. package/lib/rpc/rpcHandler.js +82 -71
  215. package/lib/rpc/rpcHandler.js.map +1 -1
  216. package/lib/rpc/server.d.ts +9 -7
  217. package/lib/rpc/server.js +26 -25
  218. package/lib/rpc/server.js.map +1 -1
  219. package/lib/rpc/validation/SafeValidator.d.ts +11 -6
  220. package/lib/rpc/validation/SafeValidator.js +16 -14
  221. package/lib/rpc/validation/SafeValidator.js.map +1 -1
  222. package/lib/rpc/validation/TracerResultParserV06.d.ts +1 -1
  223. package/lib/rpc/validation/TracerResultParserV07.d.ts +1 -1
  224. package/lib/rpc/validation/TracerResultParserV07.js +1 -1
  225. package/lib/rpc/validation/TracerResultParserV07.js.map +1 -1
  226. package/lib/rpc/validation/UnsafeValidator.d.ts +14 -17
  227. package/lib/rpc/validation/UnsafeValidator.js +49 -42
  228. package/lib/rpc/validation/UnsafeValidator.js.map +1 -1
  229. package/lib/types/contracts/ArbitrumL1FeeAbi.d.ts +32 -0
  230. package/lib/types/contracts/ArbitrumL1FeeAbi.js +45 -0
  231. package/lib/types/contracts/ArbitrumL1FeeAbi.js.map +1 -0
  232. package/lib/types/contracts/EntryPointSimulationsV6.d.ts +34 -0
  233. package/lib/types/contracts/EntryPointSimulationsV6.js +51 -0
  234. package/lib/types/contracts/EntryPointSimulationsV6.js.map +1 -0
  235. package/lib/types/contracts/EntryPointSimulationsV7.d.ts +1370 -0
  236. package/lib/types/contracts/{EntryPointSimulations.js → EntryPointSimulationsV7.js} +198 -386
  237. package/lib/types/contracts/EntryPointSimulationsV7.js.map +1 -0
  238. package/lib/types/contracts/IAccountExecute.d.ts +53 -0
  239. package/lib/types/contracts/IAccountExecute.js +71 -0
  240. package/lib/types/contracts/IAccountExecute.js.map +1 -0
  241. package/lib/types/contracts/MantleBvmGasPriceOracle.d.ts +219 -0
  242. package/lib/types/contracts/MantleBvmGasPriceOracle.js +180 -0
  243. package/lib/types/contracts/MantleBvmGasPriceOracle.js.map +1 -0
  244. package/lib/types/contracts/OpL1FeeAbi.d.ts +26 -0
  245. package/lib/types/contracts/OpL1FeeAbi.js +32 -0
  246. package/lib/types/contracts/OpL1FeeAbi.js.map +1 -0
  247. package/lib/types/contracts/PimlicoEntryPointSimulations.d.ts +1 -1
  248. package/lib/types/contracts/PimlicoEntryPointSimulations.js +1 -1
  249. package/lib/types/contracts/PimlicoEntryPointSimulations.js.map +1 -1
  250. package/lib/types/contracts/index.d.ts +5 -1
  251. package/lib/types/contracts/index.js +5 -1
  252. package/lib/types/contracts/index.js.map +1 -1
  253. package/lib/types/interfaces.d.ts +2 -2
  254. package/lib/types/schemas.d.ts +94 -94
  255. package/lib/types/schemas.js +3 -3
  256. package/lib/types/schemas.js.map +1 -1
  257. package/lib/types/utils.d.ts +1 -1
  258. package/lib/utils/bigInt.js +2 -2
  259. package/lib/utils/bigInt.js.map +1 -1
  260. package/lib/utils/rpc-reply.d.ts +1 -1
  261. package/lib/utils/timedQueue.d.ts +12 -0
  262. package/lib/utils/timedQueue.js +55 -0
  263. package/lib/utils/timedQueue.js.map +1 -0
  264. package/lib/utils/userop.d.ts +2 -2
  265. package/lib/utils/userop.js +1 -1
  266. package/lib/utils/userop.js.map +1 -1
  267. package/lib/utils/validation.d.ts +14 -6
  268. package/lib/utils/validation.js +118 -134
  269. package/lib/utils/validation.js.map +1 -1
  270. package/package.json +1 -1
  271. package/esm/rpc/EntryPointSimulationsV07.d.ts +0 -62
  272. package/esm/rpc/EntryPointSimulationsV07.js +0 -410
  273. package/esm/rpc/EntryPointSimulationsV07.js.map +0 -1
  274. package/esm/rpc/ExecuteSimulator.d.ts +0 -37
  275. package/esm/rpc/ExecuteSimulator.js +0 -48
  276. package/esm/rpc/ExecuteSimulator.js.map +0 -1
  277. package/esm/rpc/gasEstimation.d.ts +0 -17
  278. package/esm/rpc/gasEstimation.js +0 -419
  279. package/esm/rpc/gasEstimation.js.map +0 -1
  280. package/esm/types/contracts/EntryPointSimulations.d.ts +0 -152
  281. package/esm/types/contracts/EntryPointSimulations.js.map +0 -1
  282. package/lib/rpc/EntryPointSimulationsV07.d.ts +0 -62
  283. package/lib/rpc/EntryPointSimulationsV07.js +0 -417
  284. package/lib/rpc/EntryPointSimulationsV07.js.map +0 -1
  285. package/lib/rpc/ExecuteSimulator.d.ts +0 -37
  286. package/lib/rpc/ExecuteSimulator.js +0 -51
  287. package/lib/rpc/ExecuteSimulator.js.map +0 -1
  288. package/lib/rpc/gasEstimation.d.ts +0 -17
  289. package/lib/rpc/gasEstimation.js +0 -426
  290. package/lib/rpc/gasEstimation.js.map +0 -1
  291. package/lib/types/contracts/EntryPointSimulations.d.ts +0 -152
  292. package/lib/types/contracts/EntryPointSimulations.js.map +0 -1
@@ -1,15 +1,3 @@
1
- export const EntryPointV06SimulationsAbi = [
2
- {
3
- inputs: [
4
- {
5
- name: "reason",
6
- type: "string"
7
- }
8
- ],
9
- name: "Error",
10
- type: "error"
11
- }
12
- ];
13
1
  export const EntryPointV07SimulationsAbi = [
14
2
  {
15
3
  type: "constructor",
@@ -397,59 +385,12 @@ export const EntryPointV07SimulationsAbi = [
397
385
  },
398
386
  {
399
387
  type: "function",
400
- name: "simulateCallData",
388
+ name: "simulateCall",
401
389
  inputs: [
402
390
  {
403
- name: "op",
404
- type: "tuple",
405
- internalType: "struct PackedUserOperation",
406
- components: [
407
- {
408
- name: "sender",
409
- type: "address",
410
- internalType: "address"
411
- },
412
- {
413
- name: "nonce",
414
- type: "uint256",
415
- internalType: "uint256"
416
- },
417
- {
418
- name: "initCode",
419
- type: "bytes",
420
- internalType: "bytes"
421
- },
422
- {
423
- name: "callData",
424
- type: "bytes",
425
- internalType: "bytes"
426
- },
427
- {
428
- name: "accountGasLimits",
429
- type: "bytes32",
430
- internalType: "bytes32"
431
- },
432
- {
433
- name: "preVerificationGas",
434
- type: "uint256",
435
- internalType: "uint256"
436
- },
437
- {
438
- name: "gasFees",
439
- type: "bytes32",
440
- internalType: "bytes32"
441
- },
442
- {
443
- name: "paymasterAndData",
444
- type: "bytes",
445
- internalType: "bytes"
446
- },
447
- {
448
- name: "signature",
449
- type: "bytes",
450
- internalType: "bytes"
451
- }
452
- ]
391
+ name: "entryPoint",
392
+ type: "address",
393
+ internalType: "address"
453
394
  },
454
395
  {
455
396
  name: "target",
@@ -457,195 +398,214 @@ export const EntryPointV07SimulationsAbi = [
457
398
  internalType: "address"
458
399
  },
459
400
  {
460
- name: "targetCallData",
401
+ name: "data",
461
402
  type: "bytes",
462
403
  internalType: "bytes"
404
+ },
405
+ {
406
+ name: "gas",
407
+ type: "uint256",
408
+ internalType: "uint256"
463
409
  }
464
410
  ],
465
411
  outputs: [
466
412
  {
467
- name: "",
468
- type: "tuple",
469
- internalType: "struct IEntryPointSimulations.TargetCallResult",
470
- components: [
471
- {
472
- name: "gasUsed",
473
- type: "uint256",
474
- internalType: "uint256"
475
- },
476
- {
477
- name: "success",
478
- type: "bool",
479
- internalType: "bool"
480
- },
481
- {
482
- name: "returnData",
483
- type: "bytes",
484
- internalType: "bytes"
485
- }
486
- ]
413
+ name: "success",
414
+ type: "bool",
415
+ internalType: "bool"
416
+ },
417
+ {
418
+ name: "result",
419
+ type: "bytes",
420
+ internalType: "bytes"
487
421
  }
488
422
  ],
489
423
  stateMutability: "nonpayable"
490
424
  },
491
425
  {
492
426
  type: "function",
493
- name: "simulateCallDataBulk",
427
+ name: "simulateCallAndRevert",
494
428
  inputs: [
495
429
  {
496
- name: "ops",
497
- type: "tuple[]",
498
- internalType: "struct PackedUserOperation[]",
499
- components: [
500
- {
501
- name: "sender",
502
- type: "address",
503
- internalType: "address"
504
- },
505
- {
506
- name: "nonce",
507
- type: "uint256",
508
- internalType: "uint256"
509
- },
510
- {
511
- name: "initCode",
512
- type: "bytes",
513
- internalType: "bytes"
514
- },
515
- {
516
- name: "callData",
517
- type: "bytes",
518
- internalType: "bytes"
519
- },
520
- {
521
- name: "accountGasLimits",
522
- type: "bytes32",
523
- internalType: "bytes32"
524
- },
525
- {
526
- name: "preVerificationGas",
527
- type: "uint256",
528
- internalType: "uint256"
529
- },
530
- {
531
- name: "gasFees",
532
- type: "bytes32",
533
- internalType: "bytes32"
534
- },
535
- {
536
- name: "paymasterAndData",
537
- type: "bytes",
538
- internalType: "bytes"
539
- },
540
- {
541
- name: "signature",
542
- type: "bytes",
543
- internalType: "bytes"
544
- }
545
- ]
430
+ name: "target",
431
+ type: "address",
432
+ internalType: "address"
546
433
  },
547
434
  {
548
- name: "targets",
549
- type: "address[]",
550
- internalType: "address[]"
435
+ name: "data",
436
+ type: "bytes",
437
+ internalType: "bytes"
551
438
  },
552
439
  {
553
- name: "targetCallData",
554
- type: "bytes[]",
555
- internalType: "bytes[]"
556
- }
557
- ],
558
- outputs: [
559
- {
560
- name: "",
561
- type: "tuple[]",
562
- internalType: "struct IEntryPointSimulations.TargetCallResult[]",
563
- components: [
564
- {
565
- name: "gasUsed",
566
- type: "uint256",
567
- internalType: "uint256"
568
- },
569
- {
570
- name: "success",
571
- type: "bool",
572
- internalType: "bool"
573
- },
574
- {
575
- name: "returnData",
576
- type: "bytes",
577
- internalType: "bytes"
578
- }
579
- ]
440
+ name: "gas",
441
+ type: "uint256",
442
+ internalType: "uint256"
580
443
  }
581
444
  ],
445
+ outputs: [],
582
446
  stateMutability: "nonpayable"
583
447
  },
584
448
  {
585
449
  type: "function",
586
- name: "simulateCallDataLast",
450
+ name: "simulateCallData",
587
451
  inputs: [
588
452
  {
589
- name: "ops",
453
+ name: "queuedUserOps",
590
454
  type: "tuple[]",
591
- internalType: "struct PackedUserOperation[]",
455
+ internalType: "struct SimulationArgs[]",
592
456
  components: [
593
457
  {
594
- name: "sender",
595
- type: "address",
596
- internalType: "address"
597
- },
598
- {
599
- name: "nonce",
600
- type: "uint256",
601
- internalType: "uint256"
458
+ name: "op",
459
+ type: "tuple",
460
+ internalType: "struct PackedUserOperation",
461
+ components: [
462
+ {
463
+ name: "sender",
464
+ type: "address",
465
+ internalType: "address"
466
+ },
467
+ {
468
+ name: "nonce",
469
+ type: "uint256",
470
+ internalType: "uint256"
471
+ },
472
+ {
473
+ name: "initCode",
474
+ type: "bytes",
475
+ internalType: "bytes"
476
+ },
477
+ {
478
+ name: "callData",
479
+ type: "bytes",
480
+ internalType: "bytes"
481
+ },
482
+ {
483
+ name: "accountGasLimits",
484
+ type: "bytes32",
485
+ internalType: "bytes32"
486
+ },
487
+ {
488
+ name: "preVerificationGas",
489
+ type: "uint256",
490
+ internalType: "uint256"
491
+ },
492
+ {
493
+ name: "gasFees",
494
+ type: "bytes32",
495
+ internalType: "bytes32"
496
+ },
497
+ {
498
+ name: "paymasterAndData",
499
+ type: "bytes",
500
+ internalType: "bytes"
501
+ },
502
+ {
503
+ name: "signature",
504
+ type: "bytes",
505
+ internalType: "bytes"
506
+ }
507
+ ]
602
508
  },
603
509
  {
604
- name: "initCode",
605
- type: "bytes",
606
- internalType: "bytes"
510
+ name: "target",
511
+ type: "address",
512
+ internalType: "address"
607
513
  },
608
514
  {
609
- name: "callData",
515
+ name: "targetCallData",
610
516
  type: "bytes",
611
517
  internalType: "bytes"
612
- },
613
- {
614
- name: "accountGasLimits",
615
- type: "bytes32",
616
- internalType: "bytes32"
617
- },
618
- {
619
- name: "preVerificationGas",
620
- type: "uint256",
621
- internalType: "uint256"
622
- },
518
+ }
519
+ ]
520
+ },
521
+ {
522
+ name: "targetUserOp",
523
+ type: "tuple",
524
+ internalType: "struct SimulationArgs",
525
+ components: [
623
526
  {
624
- name: "gasFees",
625
- type: "bytes32",
626
- internalType: "bytes32"
527
+ name: "op",
528
+ type: "tuple",
529
+ internalType: "struct PackedUserOperation",
530
+ components: [
531
+ {
532
+ name: "sender",
533
+ type: "address",
534
+ internalType: "address"
535
+ },
536
+ {
537
+ name: "nonce",
538
+ type: "uint256",
539
+ internalType: "uint256"
540
+ },
541
+ {
542
+ name: "initCode",
543
+ type: "bytes",
544
+ internalType: "bytes"
545
+ },
546
+ {
547
+ name: "callData",
548
+ type: "bytes",
549
+ internalType: "bytes"
550
+ },
551
+ {
552
+ name: "accountGasLimits",
553
+ type: "bytes32",
554
+ internalType: "bytes32"
555
+ },
556
+ {
557
+ name: "preVerificationGas",
558
+ type: "uint256",
559
+ internalType: "uint256"
560
+ },
561
+ {
562
+ name: "gasFees",
563
+ type: "bytes32",
564
+ internalType: "bytes32"
565
+ },
566
+ {
567
+ name: "paymasterAndData",
568
+ type: "bytes",
569
+ internalType: "bytes"
570
+ },
571
+ {
572
+ name: "signature",
573
+ type: "bytes",
574
+ internalType: "bytes"
575
+ }
576
+ ]
627
577
  },
628
578
  {
629
- name: "paymasterAndData",
630
- type: "bytes",
631
- internalType: "bytes"
579
+ name: "target",
580
+ type: "address",
581
+ internalType: "address"
632
582
  },
633
583
  {
634
- name: "signature",
584
+ name: "targetCallData",
635
585
  type: "bytes",
636
586
  internalType: "bytes"
637
587
  }
638
588
  ]
639
589
  },
640
590
  {
641
- name: "targets",
642
- type: "address[]",
643
- internalType: "address[]"
591
+ name: "entryPoint",
592
+ type: "address",
593
+ internalType: "address"
594
+ },
595
+ {
596
+ name: "initialMinGas",
597
+ type: "uint256",
598
+ internalType: "uint256"
599
+ },
600
+ {
601
+ name: "toleranceDelta",
602
+ type: "uint256",
603
+ internalType: "uint256"
644
604
  },
645
605
  {
646
- name: "targetCallData",
647
- type: "bytes[]",
648
- internalType: "bytes[]"
606
+ name: "gasAllowance",
607
+ type: "uint256",
608
+ internalType: "uint256"
649
609
  }
650
610
  ],
651
611
  outputs: [
@@ -1178,186 +1138,6 @@ export const EntryPointV07SimulationsAbi = [
1178
1138
  ],
1179
1139
  stateMutability: "nonpayable"
1180
1140
  },
1181
- {
1182
- type: "function",
1183
- name: "simulateValidationBulk",
1184
- inputs: [
1185
- {
1186
- name: "userOps",
1187
- type: "tuple[]",
1188
- internalType: "struct PackedUserOperation[]",
1189
- components: [
1190
- {
1191
- name: "sender",
1192
- type: "address",
1193
- internalType: "address"
1194
- },
1195
- {
1196
- name: "nonce",
1197
- type: "uint256",
1198
- internalType: "uint256"
1199
- },
1200
- {
1201
- name: "initCode",
1202
- type: "bytes",
1203
- internalType: "bytes"
1204
- },
1205
- {
1206
- name: "callData",
1207
- type: "bytes",
1208
- internalType: "bytes"
1209
- },
1210
- {
1211
- name: "accountGasLimits",
1212
- type: "bytes32",
1213
- internalType: "bytes32"
1214
- },
1215
- {
1216
- name: "preVerificationGas",
1217
- type: "uint256",
1218
- internalType: "uint256"
1219
- },
1220
- {
1221
- name: "gasFees",
1222
- type: "bytes32",
1223
- internalType: "bytes32"
1224
- },
1225
- {
1226
- name: "paymasterAndData",
1227
- type: "bytes",
1228
- internalType: "bytes"
1229
- },
1230
- {
1231
- name: "signature",
1232
- type: "bytes",
1233
- internalType: "bytes"
1234
- }
1235
- ]
1236
- }
1237
- ],
1238
- outputs: [
1239
- {
1240
- name: "",
1241
- type: "tuple[]",
1242
- internalType: "struct IEntryPointSimulations.ValidationResult[]",
1243
- components: [
1244
- {
1245
- name: "returnInfo",
1246
- type: "tuple",
1247
- internalType: "struct IEntryPoint.ReturnInfo",
1248
- components: [
1249
- {
1250
- name: "preOpGas",
1251
- type: "uint256",
1252
- internalType: "uint256"
1253
- },
1254
- {
1255
- name: "prefund",
1256
- type: "uint256",
1257
- internalType: "uint256"
1258
- },
1259
- {
1260
- name: "accountValidationData",
1261
- type: "uint256",
1262
- internalType: "uint256"
1263
- },
1264
- {
1265
- name: "paymasterValidationData",
1266
- type: "uint256",
1267
- internalType: "uint256"
1268
- },
1269
- {
1270
- name: "paymasterContext",
1271
- type: "bytes",
1272
- internalType: "bytes"
1273
- }
1274
- ]
1275
- },
1276
- {
1277
- name: "senderInfo",
1278
- type: "tuple",
1279
- internalType: "struct IStakeManager.StakeInfo",
1280
- components: [
1281
- {
1282
- name: "stake",
1283
- type: "uint256",
1284
- internalType: "uint256"
1285
- },
1286
- {
1287
- name: "unstakeDelaySec",
1288
- type: "uint256",
1289
- internalType: "uint256"
1290
- }
1291
- ]
1292
- },
1293
- {
1294
- name: "factoryInfo",
1295
- type: "tuple",
1296
- internalType: "struct IStakeManager.StakeInfo",
1297
- components: [
1298
- {
1299
- name: "stake",
1300
- type: "uint256",
1301
- internalType: "uint256"
1302
- },
1303
- {
1304
- name: "unstakeDelaySec",
1305
- type: "uint256",
1306
- internalType: "uint256"
1307
- }
1308
- ]
1309
- },
1310
- {
1311
- name: "paymasterInfo",
1312
- type: "tuple",
1313
- internalType: "struct IStakeManager.StakeInfo",
1314
- components: [
1315
- {
1316
- name: "stake",
1317
- type: "uint256",
1318
- internalType: "uint256"
1319
- },
1320
- {
1321
- name: "unstakeDelaySec",
1322
- type: "uint256",
1323
- internalType: "uint256"
1324
- }
1325
- ]
1326
- },
1327
- {
1328
- name: "aggregatorInfo",
1329
- type: "tuple",
1330
- internalType: "struct IEntryPoint.AggregatorStakeInfo",
1331
- components: [
1332
- {
1333
- name: "aggregator",
1334
- type: "address",
1335
- internalType: "address"
1336
- },
1337
- {
1338
- name: "stakeInfo",
1339
- type: "tuple",
1340
- internalType: "struct IStakeManager.StakeInfo",
1341
- components: [
1342
- {
1343
- name: "stake",
1344
- type: "uint256",
1345
- internalType: "uint256"
1346
- },
1347
- {
1348
- name: "unstakeDelaySec",
1349
- type: "uint256",
1350
- internalType: "uint256"
1351
- }
1352
- ]
1353
- }
1354
- ]
1355
- }
1356
- ]
1357
- }
1358
- ],
1359
- stateMutability: "nonpayable"
1360
- },
1361
1141
  {
1362
1142
  type: "function",
1363
1143
  name: "simulateValidationLast",
@@ -1949,6 +1729,38 @@ export const EntryPointV07SimulationsAbi = [
1949
1729
  internalType: "address"
1950
1730
  }
1951
1731
  ]
1732
+ },
1733
+ {
1734
+ type: "error",
1735
+ name: "SimulationOutOfGas",
1736
+ inputs: [
1737
+ {
1738
+ name: "optimalGas",
1739
+ type: "uint256",
1740
+ internalType: "uint256"
1741
+ },
1742
+ {
1743
+ name: "minGas",
1744
+ type: "uint256",
1745
+ internalType: "uint256"
1746
+ },
1747
+ {
1748
+ name: "maxGas",
1749
+ type: "uint256",
1750
+ internalType: "uint256"
1751
+ }
1752
+ ]
1753
+ },
1754
+ {
1755
+ type: "error",
1756
+ name: "innerCallResult",
1757
+ inputs: [
1758
+ {
1759
+ name: "remainingGas",
1760
+ type: "uint256",
1761
+ internalType: "uint256"
1762
+ }
1763
+ ]
1952
1764
  }
1953
1765
  ];
1954
- //# sourceMappingURL=EntryPointSimulations.js.map
1766
+ //# sourceMappingURL=EntryPointSimulationsV7.js.map