@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,18 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.EntryPointV07SimulationsAbi = exports.EntryPointV06SimulationsAbi = void 0;
4
- exports.EntryPointV06SimulationsAbi = [
5
- {
6
- inputs: [
7
- {
8
- name: "reason",
9
- type: "string"
10
- }
11
- ],
12
- name: "Error",
13
- type: "error"
14
- }
15
- ];
3
+ exports.EntryPointV07SimulationsAbi = void 0;
16
4
  exports.EntryPointV07SimulationsAbi = [
17
5
  {
18
6
  type: "constructor",
@@ -400,59 +388,12 @@ exports.EntryPointV07SimulationsAbi = [
400
388
  },
401
389
  {
402
390
  type: "function",
403
- name: "simulateCallData",
391
+ name: "simulateCall",
404
392
  inputs: [
405
393
  {
406
- name: "op",
407
- type: "tuple",
408
- internalType: "struct PackedUserOperation",
409
- components: [
410
- {
411
- name: "sender",
412
- type: "address",
413
- internalType: "address"
414
- },
415
- {
416
- name: "nonce",
417
- type: "uint256",
418
- internalType: "uint256"
419
- },
420
- {
421
- name: "initCode",
422
- type: "bytes",
423
- internalType: "bytes"
424
- },
425
- {
426
- name: "callData",
427
- type: "bytes",
428
- internalType: "bytes"
429
- },
430
- {
431
- name: "accountGasLimits",
432
- type: "bytes32",
433
- internalType: "bytes32"
434
- },
435
- {
436
- name: "preVerificationGas",
437
- type: "uint256",
438
- internalType: "uint256"
439
- },
440
- {
441
- name: "gasFees",
442
- type: "bytes32",
443
- internalType: "bytes32"
444
- },
445
- {
446
- name: "paymasterAndData",
447
- type: "bytes",
448
- internalType: "bytes"
449
- },
450
- {
451
- name: "signature",
452
- type: "bytes",
453
- internalType: "bytes"
454
- }
455
- ]
394
+ name: "entryPoint",
395
+ type: "address",
396
+ internalType: "address"
456
397
  },
457
398
  {
458
399
  name: "target",
@@ -460,195 +401,214 @@ exports.EntryPointV07SimulationsAbi = [
460
401
  internalType: "address"
461
402
  },
462
403
  {
463
- name: "targetCallData",
404
+ name: "data",
464
405
  type: "bytes",
465
406
  internalType: "bytes"
407
+ },
408
+ {
409
+ name: "gas",
410
+ type: "uint256",
411
+ internalType: "uint256"
466
412
  }
467
413
  ],
468
414
  outputs: [
469
415
  {
470
- name: "",
471
- type: "tuple",
472
- internalType: "struct IEntryPointSimulations.TargetCallResult",
473
- components: [
474
- {
475
- name: "gasUsed",
476
- type: "uint256",
477
- internalType: "uint256"
478
- },
479
- {
480
- name: "success",
481
- type: "bool",
482
- internalType: "bool"
483
- },
484
- {
485
- name: "returnData",
486
- type: "bytes",
487
- internalType: "bytes"
488
- }
489
- ]
416
+ name: "success",
417
+ type: "bool",
418
+ internalType: "bool"
419
+ },
420
+ {
421
+ name: "result",
422
+ type: "bytes",
423
+ internalType: "bytes"
490
424
  }
491
425
  ],
492
426
  stateMutability: "nonpayable"
493
427
  },
494
428
  {
495
429
  type: "function",
496
- name: "simulateCallDataBulk",
430
+ name: "simulateCallAndRevert",
497
431
  inputs: [
498
432
  {
499
- name: "ops",
500
- type: "tuple[]",
501
- internalType: "struct PackedUserOperation[]",
502
- components: [
503
- {
504
- name: "sender",
505
- type: "address",
506
- internalType: "address"
507
- },
508
- {
509
- name: "nonce",
510
- type: "uint256",
511
- internalType: "uint256"
512
- },
513
- {
514
- name: "initCode",
515
- type: "bytes",
516
- internalType: "bytes"
517
- },
518
- {
519
- name: "callData",
520
- type: "bytes",
521
- internalType: "bytes"
522
- },
523
- {
524
- name: "accountGasLimits",
525
- type: "bytes32",
526
- internalType: "bytes32"
527
- },
528
- {
529
- name: "preVerificationGas",
530
- type: "uint256",
531
- internalType: "uint256"
532
- },
533
- {
534
- name: "gasFees",
535
- type: "bytes32",
536
- internalType: "bytes32"
537
- },
538
- {
539
- name: "paymasterAndData",
540
- type: "bytes",
541
- internalType: "bytes"
542
- },
543
- {
544
- name: "signature",
545
- type: "bytes",
546
- internalType: "bytes"
547
- }
548
- ]
433
+ name: "target",
434
+ type: "address",
435
+ internalType: "address"
549
436
  },
550
437
  {
551
- name: "targets",
552
- type: "address[]",
553
- internalType: "address[]"
438
+ name: "data",
439
+ type: "bytes",
440
+ internalType: "bytes"
554
441
  },
555
442
  {
556
- name: "targetCallData",
557
- type: "bytes[]",
558
- internalType: "bytes[]"
559
- }
560
- ],
561
- outputs: [
562
- {
563
- name: "",
564
- type: "tuple[]",
565
- internalType: "struct IEntryPointSimulations.TargetCallResult[]",
566
- components: [
567
- {
568
- name: "gasUsed",
569
- type: "uint256",
570
- internalType: "uint256"
571
- },
572
- {
573
- name: "success",
574
- type: "bool",
575
- internalType: "bool"
576
- },
577
- {
578
- name: "returnData",
579
- type: "bytes",
580
- internalType: "bytes"
581
- }
582
- ]
443
+ name: "gas",
444
+ type: "uint256",
445
+ internalType: "uint256"
583
446
  }
584
447
  ],
448
+ outputs: [],
585
449
  stateMutability: "nonpayable"
586
450
  },
587
451
  {
588
452
  type: "function",
589
- name: "simulateCallDataLast",
453
+ name: "simulateCallData",
590
454
  inputs: [
591
455
  {
592
- name: "ops",
456
+ name: "queuedUserOps",
593
457
  type: "tuple[]",
594
- internalType: "struct PackedUserOperation[]",
458
+ internalType: "struct SimulationArgs[]",
595
459
  components: [
596
460
  {
597
- name: "sender",
598
- type: "address",
599
- internalType: "address"
600
- },
601
- {
602
- name: "nonce",
603
- type: "uint256",
604
- internalType: "uint256"
461
+ name: "op",
462
+ type: "tuple",
463
+ internalType: "struct PackedUserOperation",
464
+ components: [
465
+ {
466
+ name: "sender",
467
+ type: "address",
468
+ internalType: "address"
469
+ },
470
+ {
471
+ name: "nonce",
472
+ type: "uint256",
473
+ internalType: "uint256"
474
+ },
475
+ {
476
+ name: "initCode",
477
+ type: "bytes",
478
+ internalType: "bytes"
479
+ },
480
+ {
481
+ name: "callData",
482
+ type: "bytes",
483
+ internalType: "bytes"
484
+ },
485
+ {
486
+ name: "accountGasLimits",
487
+ type: "bytes32",
488
+ internalType: "bytes32"
489
+ },
490
+ {
491
+ name: "preVerificationGas",
492
+ type: "uint256",
493
+ internalType: "uint256"
494
+ },
495
+ {
496
+ name: "gasFees",
497
+ type: "bytes32",
498
+ internalType: "bytes32"
499
+ },
500
+ {
501
+ name: "paymasterAndData",
502
+ type: "bytes",
503
+ internalType: "bytes"
504
+ },
505
+ {
506
+ name: "signature",
507
+ type: "bytes",
508
+ internalType: "bytes"
509
+ }
510
+ ]
605
511
  },
606
512
  {
607
- name: "initCode",
608
- type: "bytes",
609
- internalType: "bytes"
513
+ name: "target",
514
+ type: "address",
515
+ internalType: "address"
610
516
  },
611
517
  {
612
- name: "callData",
518
+ name: "targetCallData",
613
519
  type: "bytes",
614
520
  internalType: "bytes"
615
- },
616
- {
617
- name: "accountGasLimits",
618
- type: "bytes32",
619
- internalType: "bytes32"
620
- },
621
- {
622
- name: "preVerificationGas",
623
- type: "uint256",
624
- internalType: "uint256"
625
- },
521
+ }
522
+ ]
523
+ },
524
+ {
525
+ name: "targetUserOp",
526
+ type: "tuple",
527
+ internalType: "struct SimulationArgs",
528
+ components: [
626
529
  {
627
- name: "gasFees",
628
- type: "bytes32",
629
- internalType: "bytes32"
530
+ name: "op",
531
+ type: "tuple",
532
+ internalType: "struct PackedUserOperation",
533
+ components: [
534
+ {
535
+ name: "sender",
536
+ type: "address",
537
+ internalType: "address"
538
+ },
539
+ {
540
+ name: "nonce",
541
+ type: "uint256",
542
+ internalType: "uint256"
543
+ },
544
+ {
545
+ name: "initCode",
546
+ type: "bytes",
547
+ internalType: "bytes"
548
+ },
549
+ {
550
+ name: "callData",
551
+ type: "bytes",
552
+ internalType: "bytes"
553
+ },
554
+ {
555
+ name: "accountGasLimits",
556
+ type: "bytes32",
557
+ internalType: "bytes32"
558
+ },
559
+ {
560
+ name: "preVerificationGas",
561
+ type: "uint256",
562
+ internalType: "uint256"
563
+ },
564
+ {
565
+ name: "gasFees",
566
+ type: "bytes32",
567
+ internalType: "bytes32"
568
+ },
569
+ {
570
+ name: "paymasterAndData",
571
+ type: "bytes",
572
+ internalType: "bytes"
573
+ },
574
+ {
575
+ name: "signature",
576
+ type: "bytes",
577
+ internalType: "bytes"
578
+ }
579
+ ]
630
580
  },
631
581
  {
632
- name: "paymasterAndData",
633
- type: "bytes",
634
- internalType: "bytes"
582
+ name: "target",
583
+ type: "address",
584
+ internalType: "address"
635
585
  },
636
586
  {
637
- name: "signature",
587
+ name: "targetCallData",
638
588
  type: "bytes",
639
589
  internalType: "bytes"
640
590
  }
641
591
  ]
642
592
  },
643
593
  {
644
- name: "targets",
645
- type: "address[]",
646
- internalType: "address[]"
594
+ name: "entryPoint",
595
+ type: "address",
596
+ internalType: "address"
597
+ },
598
+ {
599
+ name: "initialMinGas",
600
+ type: "uint256",
601
+ internalType: "uint256"
602
+ },
603
+ {
604
+ name: "toleranceDelta",
605
+ type: "uint256",
606
+ internalType: "uint256"
647
607
  },
648
608
  {
649
- name: "targetCallData",
650
- type: "bytes[]",
651
- internalType: "bytes[]"
609
+ name: "gasAllowance",
610
+ type: "uint256",
611
+ internalType: "uint256"
652
612
  }
653
613
  ],
654
614
  outputs: [
@@ -1181,186 +1141,6 @@ exports.EntryPointV07SimulationsAbi = [
1181
1141
  ],
1182
1142
  stateMutability: "nonpayable"
1183
1143
  },
1184
- {
1185
- type: "function",
1186
- name: "simulateValidationBulk",
1187
- inputs: [
1188
- {
1189
- name: "userOps",
1190
- type: "tuple[]",
1191
- internalType: "struct PackedUserOperation[]",
1192
- components: [
1193
- {
1194
- name: "sender",
1195
- type: "address",
1196
- internalType: "address"
1197
- },
1198
- {
1199
- name: "nonce",
1200
- type: "uint256",
1201
- internalType: "uint256"
1202
- },
1203
- {
1204
- name: "initCode",
1205
- type: "bytes",
1206
- internalType: "bytes"
1207
- },
1208
- {
1209
- name: "callData",
1210
- type: "bytes",
1211
- internalType: "bytes"
1212
- },
1213
- {
1214
- name: "accountGasLimits",
1215
- type: "bytes32",
1216
- internalType: "bytes32"
1217
- },
1218
- {
1219
- name: "preVerificationGas",
1220
- type: "uint256",
1221
- internalType: "uint256"
1222
- },
1223
- {
1224
- name: "gasFees",
1225
- type: "bytes32",
1226
- internalType: "bytes32"
1227
- },
1228
- {
1229
- name: "paymasterAndData",
1230
- type: "bytes",
1231
- internalType: "bytes"
1232
- },
1233
- {
1234
- name: "signature",
1235
- type: "bytes",
1236
- internalType: "bytes"
1237
- }
1238
- ]
1239
- }
1240
- ],
1241
- outputs: [
1242
- {
1243
- name: "",
1244
- type: "tuple[]",
1245
- internalType: "struct IEntryPointSimulations.ValidationResult[]",
1246
- components: [
1247
- {
1248
- name: "returnInfo",
1249
- type: "tuple",
1250
- internalType: "struct IEntryPoint.ReturnInfo",
1251
- components: [
1252
- {
1253
- name: "preOpGas",
1254
- type: "uint256",
1255
- internalType: "uint256"
1256
- },
1257
- {
1258
- name: "prefund",
1259
- type: "uint256",
1260
- internalType: "uint256"
1261
- },
1262
- {
1263
- name: "accountValidationData",
1264
- type: "uint256",
1265
- internalType: "uint256"
1266
- },
1267
- {
1268
- name: "paymasterValidationData",
1269
- type: "uint256",
1270
- internalType: "uint256"
1271
- },
1272
- {
1273
- name: "paymasterContext",
1274
- type: "bytes",
1275
- internalType: "bytes"
1276
- }
1277
- ]
1278
- },
1279
- {
1280
- name: "senderInfo",
1281
- type: "tuple",
1282
- internalType: "struct IStakeManager.StakeInfo",
1283
- components: [
1284
- {
1285
- name: "stake",
1286
- type: "uint256",
1287
- internalType: "uint256"
1288
- },
1289
- {
1290
- name: "unstakeDelaySec",
1291
- type: "uint256",
1292
- internalType: "uint256"
1293
- }
1294
- ]
1295
- },
1296
- {
1297
- name: "factoryInfo",
1298
- type: "tuple",
1299
- internalType: "struct IStakeManager.StakeInfo",
1300
- components: [
1301
- {
1302
- name: "stake",
1303
- type: "uint256",
1304
- internalType: "uint256"
1305
- },
1306
- {
1307
- name: "unstakeDelaySec",
1308
- type: "uint256",
1309
- internalType: "uint256"
1310
- }
1311
- ]
1312
- },
1313
- {
1314
- name: "paymasterInfo",
1315
- type: "tuple",
1316
- internalType: "struct IStakeManager.StakeInfo",
1317
- components: [
1318
- {
1319
- name: "stake",
1320
- type: "uint256",
1321
- internalType: "uint256"
1322
- },
1323
- {
1324
- name: "unstakeDelaySec",
1325
- type: "uint256",
1326
- internalType: "uint256"
1327
- }
1328
- ]
1329
- },
1330
- {
1331
- name: "aggregatorInfo",
1332
- type: "tuple",
1333
- internalType: "struct IEntryPoint.AggregatorStakeInfo",
1334
- components: [
1335
- {
1336
- name: "aggregator",
1337
- type: "address",
1338
- internalType: "address"
1339
- },
1340
- {
1341
- name: "stakeInfo",
1342
- type: "tuple",
1343
- internalType: "struct IStakeManager.StakeInfo",
1344
- components: [
1345
- {
1346
- name: "stake",
1347
- type: "uint256",
1348
- internalType: "uint256"
1349
- },
1350
- {
1351
- name: "unstakeDelaySec",
1352
- type: "uint256",
1353
- internalType: "uint256"
1354
- }
1355
- ]
1356
- }
1357
- ]
1358
- }
1359
- ]
1360
- }
1361
- ],
1362
- stateMutability: "nonpayable"
1363
- },
1364
1144
  {
1365
1145
  type: "function",
1366
1146
  name: "simulateValidationLast",
@@ -1952,6 +1732,38 @@ exports.EntryPointV07SimulationsAbi = [
1952
1732
  internalType: "address"
1953
1733
  }
1954
1734
  ]
1735
+ },
1736
+ {
1737
+ type: "error",
1738
+ name: "SimulationOutOfGas",
1739
+ inputs: [
1740
+ {
1741
+ name: "optimalGas",
1742
+ type: "uint256",
1743
+ internalType: "uint256"
1744
+ },
1745
+ {
1746
+ name: "minGas",
1747
+ type: "uint256",
1748
+ internalType: "uint256"
1749
+ },
1750
+ {
1751
+ name: "maxGas",
1752
+ type: "uint256",
1753
+ internalType: "uint256"
1754
+ }
1755
+ ]
1756
+ },
1757
+ {
1758
+ type: "error",
1759
+ name: "innerCallResult",
1760
+ inputs: [
1761
+ {
1762
+ name: "remainingGas",
1763
+ type: "uint256",
1764
+ internalType: "uint256"
1765
+ }
1766
+ ]
1955
1767
  }
1956
1768
  ];
1957
- //# sourceMappingURL=EntryPointSimulations.js.map
1769
+ //# sourceMappingURL=EntryPointSimulationsV7.js.map