@pimlico/alto 0.0.2 → 0.0.4

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 (264) hide show
  1. package/esm/cli/alto.d.ts +6 -0
  2. package/esm/cli/alto.js +92 -0
  3. package/esm/cli/alto.js.map +1 -0
  4. package/esm/cli/config/bundler.d.ts +403 -0
  5. package/esm/cli/config/bundler.js +134 -0
  6. package/esm/cli/config/bundler.js.map +1 -0
  7. package/esm/cli/config/index.d.ts +3 -0
  8. package/esm/cli/config/index.js +3 -0
  9. package/esm/cli/config/index.js.map +1 -0
  10. package/esm/cli/config/options.d.ts +11 -0
  11. package/esm/cli/config/options.js +348 -0
  12. package/esm/cli/config/options.js.map +1 -0
  13. package/esm/cli/customTransport.d.ts +14 -0
  14. package/esm/cli/customTransport.js +53 -0
  15. package/esm/cli/customTransport.js.map +1 -0
  16. package/esm/cli/handler.d.ts +3 -0
  17. package/esm/cli/handler.js +140 -0
  18. package/esm/cli/handler.js.map +1 -0
  19. package/esm/cli/index.d.ts +4 -0
  20. package/esm/cli/index.js +4 -0
  21. package/esm/cli/index.js.map +1 -0
  22. package/esm/cli/instrumentation.d.ts +2 -0
  23. package/esm/cli/instrumentation.js +39 -0
  24. package/esm/cli/instrumentation.js.map +1 -0
  25. package/esm/cli/setupServer.d.ts +17 -0
  26. package/esm/cli/setupServer.js +155 -0
  27. package/esm/cli/setupServer.js.map +1 -0
  28. package/esm/cli/util.d.ts +22 -0
  29. package/esm/cli/util.js +30 -0
  30. package/esm/cli/util.js.map +1 -0
  31. package/esm/executor/executor.d.ts +55 -0
  32. package/esm/executor/executor.js +645 -0
  33. package/esm/executor/executor.js.map +1 -0
  34. package/esm/executor/executorManager.d.ts +34 -0
  35. package/esm/executor/executorManager.js +402 -0
  36. package/esm/executor/executorManager.js.map +1 -0
  37. package/esm/executor/index.d.ts +5 -0
  38. package/esm/executor/index.js +5 -0
  39. package/esm/executor/index.js.map +1 -0
  40. package/esm/executor/senderManager.d.ts +17 -0
  41. package/esm/executor/senderManager.js +160 -0
  42. package/esm/executor/senderManager.js.map +1 -0
  43. package/esm/executor/test/utils.d.ts +13 -0
  44. package/esm/executor/test/utils.js +75 -0
  45. package/esm/executor/test/utils.js.map +1 -0
  46. package/esm/executor/utils.d.ts +32 -0
  47. package/esm/executor/utils.js +241 -0
  48. package/esm/executor/utils.js.map +1 -0
  49. package/esm/index.d.ts +2 -0
  50. package/esm/index.js +2 -0
  51. package/esm/index.js.map +1 -0
  52. package/esm/mempool/index.d.ts +5 -0
  53. package/esm/mempool/index.js +5 -0
  54. package/esm/mempool/index.js.map +1 -0
  55. package/esm/mempool/mempool.d.ts +64 -0
  56. package/esm/mempool/mempool.js +487 -0
  57. package/esm/mempool/mempool.js.map +1 -0
  58. package/esm/mempool/monitoring.d.ts +10 -0
  59. package/esm/mempool/monitoring.js +34 -0
  60. package/esm/mempool/monitoring.js.map +1 -0
  61. package/esm/mempool/nullMempool.d.ts +15 -0
  62. package/esm/mempool/nullMempool.js +36 -0
  63. package/esm/mempool/nullMempool.js.map +1 -0
  64. package/esm/mempool/reputationManager.d.ts +115 -0
  65. package/esm/mempool/reputationManager.js +401 -0
  66. package/esm/mempool/reputationManager.js.map +1 -0
  67. package/esm/mempool/store.d.ts +22 -0
  68. package/esm/mempool/store.js +123 -0
  69. package/esm/mempool/store.js.map +1 -0
  70. package/esm/rpc/EntryPointSimulationsV07.d.ts +62 -0
  71. package/esm/rpc/EntryPointSimulationsV07.js +407 -0
  72. package/esm/rpc/EntryPointSimulationsV07.js.map +1 -0
  73. package/esm/rpc/ExecuteSimulator.d.ts +37 -0
  74. package/esm/rpc/ExecuteSimulator.js +48 -0
  75. package/esm/rpc/ExecuteSimulator.js.map +1 -0
  76. package/esm/rpc/gasEstimation.d.ts +17 -0
  77. package/esm/rpc/gasEstimation.js +414 -0
  78. package/esm/rpc/gasEstimation.js.map +1 -0
  79. package/esm/rpc/index.d.ts +5 -0
  80. package/esm/rpc/index.js +5 -0
  81. package/esm/rpc/index.js.map +1 -0
  82. package/esm/rpc/nonceQueuer.d.ts +25 -0
  83. package/esm/rpc/nonceQueuer.js +135 -0
  84. package/esm/rpc/nonceQueuer.js.map +1 -0
  85. package/esm/rpc/rpcHandler.d.ts +64 -0
  86. package/esm/rpc/rpcHandler.js +738 -0
  87. package/esm/rpc/rpcHandler.js.map +1 -0
  88. package/esm/rpc/server.d.ts +31 -0
  89. package/esm/rpc/server.js +243 -0
  90. package/esm/rpc/server.js.map +1 -0
  91. package/esm/rpc/validation/BundlerCollectorTracerV06.d.ts +102 -0
  92. package/esm/rpc/validation/BundlerCollectorTracerV06.js +255 -0
  93. package/esm/rpc/validation/BundlerCollectorTracerV06.js.map +1 -0
  94. package/esm/rpc/validation/BundlerCollectorTracerV07.d.ts +102 -0
  95. package/esm/rpc/validation/BundlerCollectorTracerV07.js +254 -0
  96. package/esm/rpc/validation/BundlerCollectorTracerV07.js.map +1 -0
  97. package/esm/rpc/validation/SafeValidator.d.ts +31 -0
  98. package/esm/rpc/validation/SafeValidator.js +330 -0
  99. package/esm/rpc/validation/SafeValidator.js.map +1 -0
  100. package/esm/rpc/validation/TracerResultParserV06.d.ts +13 -0
  101. package/esm/rpc/validation/TracerResultParserV06.js +578 -0
  102. package/esm/rpc/validation/TracerResultParserV06.js.map +1 -0
  103. package/esm/rpc/validation/TracerResultParserV07.d.ts +33 -0
  104. package/esm/rpc/validation/TracerResultParserV07.js +561 -0
  105. package/esm/rpc/validation/TracerResultParserV07.js.map +1 -0
  106. package/esm/rpc/validation/UnsafeValidator.d.ts +64 -0
  107. package/esm/rpc/validation/UnsafeValidator.js +257 -0
  108. package/esm/rpc/validation/UnsafeValidator.js.map +1 -0
  109. package/esm/rpc/validation/index.d.ts +3 -0
  110. package/esm/rpc/validation/index.js +3 -0
  111. package/esm/rpc/validation/index.js.map +1 -0
  112. package/esm/rpc/validation/tracer.d.ts +122 -0
  113. package/esm/rpc/validation/tracer.js +82 -0
  114. package/esm/rpc/validation/tracer.js.map +1 -0
  115. package/esm/types/contracts/BundleBulker.d.ts +120 -0
  116. package/esm/types/contracts/BundleBulker.js +157 -0
  117. package/esm/types/contracts/BundleBulker.js.map +1 -0
  118. package/esm/types/contracts/CallEngine.d.ts +28 -0
  119. package/esm/types/contracts/CallEngine.js +37 -0
  120. package/esm/types/contracts/CallEngine.js.map +1 -0
  121. package/esm/types/contracts/CodeHashGetter.d.ts +37 -0
  122. package/esm/types/contracts/CodeHashGetter.js +45 -0
  123. package/esm/types/contracts/CodeHashGetter.js.map +1 -0
  124. package/esm/types/contracts/EntryPoint.d.ts +1789 -0
  125. package/esm/types/contracts/EntryPoint.js +2304 -0
  126. package/esm/types/contracts/EntryPoint.js.map +1 -0
  127. package/esm/types/contracts/EntryPointSimulations.d.ts +152 -0
  128. package/esm/types/contracts/EntryPointSimulations.js +1954 -0
  129. package/esm/types/contracts/EntryPointSimulations.js.map +1 -0
  130. package/esm/types/contracts/IOpInflator.d.ts +61 -0
  131. package/esm/types/contracts/IOpInflator.js +80 -0
  132. package/esm/types/contracts/IOpInflator.js.map +1 -0
  133. package/esm/types/contracts/IPaymaster.d.ts +3 -0
  134. package/esm/types/contracts/IPaymaster.js +117 -0
  135. package/esm/types/contracts/IPaymaster.js.map +1 -0
  136. package/esm/types/contracts/Inflator.d.ts +65 -0
  137. package/esm/types/contracts/Inflator.js +84 -0
  138. package/esm/types/contracts/Inflator.js.map +1 -0
  139. package/esm/types/contracts/PerOpInflator.d.ts +176 -0
  140. package/esm/types/contracts/PerOpInflator.js +229 -0
  141. package/esm/types/contracts/PerOpInflator.js.map +1 -0
  142. package/esm/types/contracts/PimlicoEntryPointSimulations.d.ts +23 -0
  143. package/esm/types/contracts/PimlicoEntryPointSimulations.js +33 -0
  144. package/esm/types/contracts/PimlicoEntryPointSimulations.js.map +1 -0
  145. package/esm/types/contracts/SenderCreator.d.ts +4 -0
  146. package/esm/types/contracts/SenderCreator.js +23 -0
  147. package/esm/types/contracts/SenderCreator.js.map +1 -0
  148. package/esm/types/contracts/SimpleAccountFactory.d.ts +57 -0
  149. package/esm/types/contracts/SimpleAccountFactory.js +76 -0
  150. package/esm/types/contracts/SimpleAccountFactory.js.map +1 -0
  151. package/esm/types/contracts/TestOpcodesAccount.d.ts +4 -0
  152. package/esm/types/contracts/TestOpcodesAccount.js +281 -0
  153. package/esm/types/contracts/TestOpcodesAccount.js.map +1 -0
  154. package/esm/types/contracts/TestOpcodesAccountFactory.d.ts +4 -0
  155. package/esm/types/contracts/TestOpcodesAccountFactory.js +23 -0
  156. package/esm/types/contracts/TestOpcodesAccountFactory.js.map +1 -0
  157. package/esm/types/contracts/TestStorageAccount.d.ts +4 -0
  158. package/esm/types/contracts/TestStorageAccount.js +313 -0
  159. package/esm/types/contracts/TestStorageAccount.js.map +1 -0
  160. package/esm/types/contracts/index.d.ts +17 -0
  161. package/esm/types/contracts/index.js +17 -0
  162. package/esm/types/contracts/index.js.map +1 -0
  163. package/esm/types/gasPrice.d.ts +110 -0
  164. package/esm/types/gasPrice.js +52 -0
  165. package/esm/types/gasPrice.js.map +1 -0
  166. package/esm/types/index.d.ts +11 -0
  167. package/esm/types/index.js +11 -0
  168. package/esm/types/index.js.map +1 -0
  169. package/esm/types/interfaces.d.ts +26 -0
  170. package/esm/types/interfaces.js +2 -0
  171. package/esm/types/interfaces.js.map +1 -0
  172. package/esm/types/mempool.d.ts +79 -0
  173. package/esm/types/mempool.js +16 -0
  174. package/esm/types/mempool.js.map +1 -0
  175. package/esm/types/schemas.d.ts +4791 -0
  176. package/esm/types/schemas.js +497 -0
  177. package/esm/types/schemas.js.map +1 -0
  178. package/esm/types/test/validationTestErrors.d.ts +3 -0
  179. package/esm/types/test/validationTestErrors.js +229 -0
  180. package/esm/types/test/validationTestErrors.js.map +1 -0
  181. package/esm/types/utils.d.ts +24 -0
  182. package/esm/types/utils.js +30 -0
  183. package/esm/types/utils.js.map +1 -0
  184. package/esm/types/validation.d.ts +14327 -0
  185. package/esm/types/validation.js +304 -0
  186. package/esm/types/validation.js.map +1 -0
  187. package/esm/utils/bigInt.d.ts +3 -0
  188. package/esm/utils/bigInt.js +9 -0
  189. package/esm/utils/bigInt.js.map +1 -0
  190. package/esm/utils/compressionHandler.d.ts +11 -0
  191. package/esm/utils/compressionHandler.js +39 -0
  192. package/esm/utils/compressionHandler.js.map +1 -0
  193. package/esm/utils/gasPriceManager.d.ts +34 -0
  194. package/esm/utils/gasPriceManager.js +338 -0
  195. package/esm/utils/gasPriceManager.js.map +1 -0
  196. package/esm/utils/helpers.d.ts +4 -0
  197. package/esm/utils/helpers.js +13 -0
  198. package/esm/utils/helpers.js.map +1 -0
  199. package/esm/utils/index.d.ts +11 -0
  200. package/esm/utils/index.js +10 -0
  201. package/esm/utils/index.js.map +1 -0
  202. package/esm/utils/logger.d.ts +6 -0
  203. package/esm/utils/logger.js +76 -0
  204. package/esm/utils/logger.js.map +1 -0
  205. package/esm/utils/metrics.d.ts +22 -0
  206. package/esm/utils/metrics.js +150 -0
  207. package/esm/utils/metrics.js.map +1 -0
  208. package/esm/utils/rpc-reply.d.ts +17 -0
  209. package/esm/utils/rpc-reply.js +41 -0
  210. package/esm/utils/rpc-reply.js.map +1 -0
  211. package/esm/utils/test.d.ts +17 -0
  212. package/esm/utils/test.js +130 -0
  213. package/esm/utils/test.js.map +1 -0
  214. package/esm/utils/userop.d.ts +49 -0
  215. package/esm/utils/userop.js +408 -0
  216. package/esm/utils/userop.js.map +1 -0
  217. package/esm/utils/validation.d.ts +65 -0
  218. package/esm/utils/validation.js +461 -0
  219. package/esm/utils/validation.js.map +1 -0
  220. package/lib/cli/config/bundler.d.ts +12 -0
  221. package/lib/cli/config/bundler.js +3 -1
  222. package/lib/cli/config/bundler.js.map +1 -1
  223. package/lib/cli/config/options.js +12 -0
  224. package/lib/cli/config/options.js.map +1 -1
  225. package/lib/cli/handler.js +25 -1
  226. package/lib/cli/handler.js.map +1 -1
  227. package/lib/cli/setupServer.js +1 -1
  228. package/lib/cli/setupServer.js.map +1 -1
  229. package/lib/executor/executor.d.ts +2 -1
  230. package/lib/executor/executor.js +6 -4
  231. package/lib/executor/executor.js.map +1 -1
  232. package/lib/executor/utils.d.ts +1 -1
  233. package/lib/executor/utils.js +4 -4
  234. package/lib/executor/utils.js.map +1 -1
  235. package/lib/mempool/mempool.js +5 -7
  236. package/lib/mempool/mempool.js.map +1 -1
  237. package/lib/mempool/reputationManager.js +7 -3
  238. package/lib/mempool/reputationManager.js.map +1 -1
  239. package/lib/rpc/EntryPointSimulationsV07.d.ts +5 -1
  240. package/lib/rpc/EntryPointSimulationsV07.js +3 -2
  241. package/lib/rpc/EntryPointSimulationsV07.js.map +1 -1
  242. package/lib/rpc/gasEstimation.js +7 -3
  243. package/lib/rpc/gasEstimation.js.map +1 -1
  244. package/lib/rpc/rpcHandler.js +18 -7
  245. package/lib/rpc/rpcHandler.js.map +1 -1
  246. package/lib/rpc/server.js +4 -0
  247. package/lib/rpc/server.js.map +1 -1
  248. package/lib/rpc/validation/SafeValidator.d.ts +2 -6
  249. package/lib/rpc/validation/SafeValidator.js +48 -205
  250. package/lib/rpc/validation/SafeValidator.js.map +1 -1
  251. package/lib/rpc/validation/TracerResultParserV07.js +6 -2
  252. package/lib/rpc/validation/TracerResultParserV07.js.map +1 -1
  253. package/lib/rpc/validation/UnsafeValidator.d.ts +2 -1
  254. package/lib/rpc/validation/UnsafeValidator.js +45 -68
  255. package/lib/rpc/validation/UnsafeValidator.js.map +1 -1
  256. package/lib/types/contracts/EntryPointSimulations.d.ts +0 -1
  257. package/lib/types/contracts/EntryPointSimulations.js +1942 -3
  258. package/lib/types/contracts/EntryPointSimulations.js.map +1 -1
  259. package/lib/types/contracts/PimlicoEntryPointSimulations.d.ts +1 -1
  260. package/lib/types/contracts/PimlicoEntryPointSimulations.js +2 -2
  261. package/lib/types/contracts/PimlicoEntryPointSimulations.js.map +1 -1
  262. package/lib/utils/userop.js +2 -25
  263. package/lib/utils/userop.js.map +1 -1
  264. package/package.json +2 -1
@@ -0,0 +1,1954 @@
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
+ export const EntryPointV07SimulationsAbi = [
14
+ {
15
+ type: "constructor",
16
+ inputs: [],
17
+ stateMutability: "nonpayable"
18
+ },
19
+ {
20
+ type: "receive",
21
+ stateMutability: "payable"
22
+ },
23
+ {
24
+ type: "function",
25
+ name: "addStake",
26
+ inputs: [
27
+ {
28
+ name: "unstakeDelaySec",
29
+ type: "uint32",
30
+ internalType: "uint32"
31
+ }
32
+ ],
33
+ outputs: [],
34
+ stateMutability: "payable"
35
+ },
36
+ {
37
+ type: "function",
38
+ name: "balanceOf",
39
+ inputs: [
40
+ {
41
+ name: "account",
42
+ type: "address",
43
+ internalType: "address"
44
+ }
45
+ ],
46
+ outputs: [
47
+ {
48
+ name: "",
49
+ type: "uint256",
50
+ internalType: "uint256"
51
+ }
52
+ ],
53
+ stateMutability: "view"
54
+ },
55
+ {
56
+ type: "function",
57
+ name: "depositTo",
58
+ inputs: [
59
+ {
60
+ name: "account",
61
+ type: "address",
62
+ internalType: "address"
63
+ }
64
+ ],
65
+ outputs: [],
66
+ stateMutability: "payable"
67
+ },
68
+ {
69
+ type: "function",
70
+ name: "deposits",
71
+ inputs: [
72
+ {
73
+ name: "",
74
+ type: "address",
75
+ internalType: "address"
76
+ }
77
+ ],
78
+ outputs: [
79
+ {
80
+ name: "deposit",
81
+ type: "uint256",
82
+ internalType: "uint256"
83
+ },
84
+ {
85
+ name: "staked",
86
+ type: "bool",
87
+ internalType: "bool"
88
+ },
89
+ {
90
+ name: "stake",
91
+ type: "uint112",
92
+ internalType: "uint112"
93
+ },
94
+ {
95
+ name: "unstakeDelaySec",
96
+ type: "uint32",
97
+ internalType: "uint32"
98
+ },
99
+ {
100
+ name: "withdrawTime",
101
+ type: "uint48",
102
+ internalType: "uint48"
103
+ }
104
+ ],
105
+ stateMutability: "view"
106
+ },
107
+ {
108
+ type: "function",
109
+ name: "getDepositInfo",
110
+ inputs: [
111
+ {
112
+ name: "account",
113
+ type: "address",
114
+ internalType: "address"
115
+ }
116
+ ],
117
+ outputs: [
118
+ {
119
+ name: "info",
120
+ type: "tuple",
121
+ internalType: "struct IStakeManager.DepositInfo",
122
+ components: [
123
+ {
124
+ name: "deposit",
125
+ type: "uint256",
126
+ internalType: "uint256"
127
+ },
128
+ {
129
+ name: "staked",
130
+ type: "bool",
131
+ internalType: "bool"
132
+ },
133
+ {
134
+ name: "stake",
135
+ type: "uint112",
136
+ internalType: "uint112"
137
+ },
138
+ {
139
+ name: "unstakeDelaySec",
140
+ type: "uint32",
141
+ internalType: "uint32"
142
+ },
143
+ {
144
+ name: "withdrawTime",
145
+ type: "uint48",
146
+ internalType: "uint48"
147
+ }
148
+ ]
149
+ }
150
+ ],
151
+ stateMutability: "view"
152
+ },
153
+ {
154
+ type: "function",
155
+ name: "getNonce",
156
+ inputs: [
157
+ {
158
+ name: "sender",
159
+ type: "address",
160
+ internalType: "address"
161
+ },
162
+ {
163
+ name: "key",
164
+ type: "uint192",
165
+ internalType: "uint192"
166
+ }
167
+ ],
168
+ outputs: [
169
+ {
170
+ name: "nonce",
171
+ type: "uint256",
172
+ internalType: "uint256"
173
+ }
174
+ ],
175
+ stateMutability: "view"
176
+ },
177
+ {
178
+ type: "function",
179
+ name: "getUserOpHash",
180
+ inputs: [
181
+ {
182
+ name: "userOp",
183
+ type: "tuple",
184
+ internalType: "struct PackedUserOperation",
185
+ components: [
186
+ {
187
+ name: "sender",
188
+ type: "address",
189
+ internalType: "address"
190
+ },
191
+ {
192
+ name: "nonce",
193
+ type: "uint256",
194
+ internalType: "uint256"
195
+ },
196
+ {
197
+ name: "initCode",
198
+ type: "bytes",
199
+ internalType: "bytes"
200
+ },
201
+ {
202
+ name: "callData",
203
+ type: "bytes",
204
+ internalType: "bytes"
205
+ },
206
+ {
207
+ name: "accountGasLimits",
208
+ type: "bytes32",
209
+ internalType: "bytes32"
210
+ },
211
+ {
212
+ name: "preVerificationGas",
213
+ type: "uint256",
214
+ internalType: "uint256"
215
+ },
216
+ {
217
+ name: "gasFees",
218
+ type: "bytes32",
219
+ internalType: "bytes32"
220
+ },
221
+ {
222
+ name: "paymasterAndData",
223
+ type: "bytes",
224
+ internalType: "bytes"
225
+ },
226
+ {
227
+ name: "signature",
228
+ type: "bytes",
229
+ internalType: "bytes"
230
+ }
231
+ ]
232
+ }
233
+ ],
234
+ outputs: [
235
+ {
236
+ name: "",
237
+ type: "bytes32",
238
+ internalType: "bytes32"
239
+ }
240
+ ],
241
+ stateMutability: "view"
242
+ },
243
+ {
244
+ type: "function",
245
+ name: "incrementNonce",
246
+ inputs: [
247
+ {
248
+ name: "key",
249
+ type: "uint192",
250
+ internalType: "uint192"
251
+ }
252
+ ],
253
+ outputs: [],
254
+ stateMutability: "nonpayable"
255
+ },
256
+ {
257
+ type: "function",
258
+ name: "innerHandleOp",
259
+ inputs: [
260
+ {
261
+ name: "callData",
262
+ type: "bytes",
263
+ internalType: "bytes"
264
+ },
265
+ {
266
+ name: "opInfo",
267
+ type: "tuple",
268
+ internalType: "struct EntryPoint.UserOpInfo",
269
+ components: [
270
+ {
271
+ name: "mUserOp",
272
+ type: "tuple",
273
+ internalType: "struct EntryPoint.MemoryUserOp",
274
+ components: [
275
+ {
276
+ name: "sender",
277
+ type: "address",
278
+ internalType: "address"
279
+ },
280
+ {
281
+ name: "nonce",
282
+ type: "uint256",
283
+ internalType: "uint256"
284
+ },
285
+ {
286
+ name: "verificationGasLimit",
287
+ type: "uint256",
288
+ internalType: "uint256"
289
+ },
290
+ {
291
+ name: "callGasLimit",
292
+ type: "uint256",
293
+ internalType: "uint256"
294
+ },
295
+ {
296
+ name: "paymasterVerificationGasLimit",
297
+ type: "uint256",
298
+ internalType: "uint256"
299
+ },
300
+ {
301
+ name: "paymasterPostOpGasLimit",
302
+ type: "uint256",
303
+ internalType: "uint256"
304
+ },
305
+ {
306
+ name: "preVerificationGas",
307
+ type: "uint256",
308
+ internalType: "uint256"
309
+ },
310
+ {
311
+ name: "paymaster",
312
+ type: "address",
313
+ internalType: "address"
314
+ },
315
+ {
316
+ name: "maxFeePerGas",
317
+ type: "uint256",
318
+ internalType: "uint256"
319
+ },
320
+ {
321
+ name: "maxPriorityFeePerGas",
322
+ type: "uint256",
323
+ internalType: "uint256"
324
+ }
325
+ ]
326
+ },
327
+ {
328
+ name: "userOpHash",
329
+ type: "bytes32",
330
+ internalType: "bytes32"
331
+ },
332
+ {
333
+ name: "prefund",
334
+ type: "uint256",
335
+ internalType: "uint256"
336
+ },
337
+ {
338
+ name: "contextOffset",
339
+ type: "uint256",
340
+ internalType: "uint256"
341
+ },
342
+ {
343
+ name: "preOpGas",
344
+ type: "uint256",
345
+ internalType: "uint256"
346
+ }
347
+ ]
348
+ },
349
+ {
350
+ name: "context",
351
+ type: "bytes",
352
+ internalType: "bytes"
353
+ },
354
+ {
355
+ name: "preGas",
356
+ type: "uint256",
357
+ internalType: "uint256"
358
+ }
359
+ ],
360
+ outputs: [
361
+ {
362
+ name: "actualGasCost",
363
+ type: "uint256",
364
+ internalType: "uint256"
365
+ },
366
+ {
367
+ name: "paymasterPostOpGasLimit",
368
+ type: "uint256",
369
+ internalType: "uint256"
370
+ }
371
+ ],
372
+ stateMutability: "nonpayable"
373
+ },
374
+ {
375
+ type: "function",
376
+ name: "nonceSequenceNumber",
377
+ inputs: [
378
+ {
379
+ name: "",
380
+ type: "address",
381
+ internalType: "address"
382
+ },
383
+ {
384
+ name: "",
385
+ type: "uint192",
386
+ internalType: "uint192"
387
+ }
388
+ ],
389
+ outputs: [
390
+ {
391
+ name: "",
392
+ type: "uint256",
393
+ internalType: "uint256"
394
+ }
395
+ ],
396
+ stateMutability: "view"
397
+ },
398
+ {
399
+ type: "function",
400
+ name: "simulateCallData",
401
+ inputs: [
402
+ {
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
+ ]
453
+ },
454
+ {
455
+ name: "target",
456
+ type: "address",
457
+ internalType: "address"
458
+ },
459
+ {
460
+ name: "targetCallData",
461
+ type: "bytes",
462
+ internalType: "bytes"
463
+ }
464
+ ],
465
+ outputs: [
466
+ {
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
+ ]
487
+ }
488
+ ],
489
+ stateMutability: "nonpayable"
490
+ },
491
+ {
492
+ type: "function",
493
+ name: "simulateCallDataBulk",
494
+ inputs: [
495
+ {
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
+ ]
546
+ },
547
+ {
548
+ name: "targets",
549
+ type: "address[]",
550
+ internalType: "address[]"
551
+ },
552
+ {
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
+ ]
580
+ }
581
+ ],
582
+ stateMutability: "nonpayable"
583
+ },
584
+ {
585
+ type: "function",
586
+ name: "simulateCallDataLast",
587
+ inputs: [
588
+ {
589
+ name: "ops",
590
+ type: "tuple[]",
591
+ internalType: "struct PackedUserOperation[]",
592
+ components: [
593
+ {
594
+ name: "sender",
595
+ type: "address",
596
+ internalType: "address"
597
+ },
598
+ {
599
+ name: "nonce",
600
+ type: "uint256",
601
+ internalType: "uint256"
602
+ },
603
+ {
604
+ name: "initCode",
605
+ type: "bytes",
606
+ internalType: "bytes"
607
+ },
608
+ {
609
+ name: "callData",
610
+ type: "bytes",
611
+ 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
+ },
623
+ {
624
+ name: "gasFees",
625
+ type: "bytes32",
626
+ internalType: "bytes32"
627
+ },
628
+ {
629
+ name: "paymasterAndData",
630
+ type: "bytes",
631
+ internalType: "bytes"
632
+ },
633
+ {
634
+ name: "signature",
635
+ type: "bytes",
636
+ internalType: "bytes"
637
+ }
638
+ ]
639
+ },
640
+ {
641
+ name: "targets",
642
+ type: "address[]",
643
+ internalType: "address[]"
644
+ },
645
+ {
646
+ name: "targetCallData",
647
+ type: "bytes[]",
648
+ internalType: "bytes[]"
649
+ }
650
+ ],
651
+ outputs: [
652
+ {
653
+ name: "",
654
+ type: "tuple",
655
+ internalType: "struct IEntryPointSimulations.TargetCallResult",
656
+ components: [
657
+ {
658
+ name: "gasUsed",
659
+ type: "uint256",
660
+ internalType: "uint256"
661
+ },
662
+ {
663
+ name: "success",
664
+ type: "bool",
665
+ internalType: "bool"
666
+ },
667
+ {
668
+ name: "returnData",
669
+ type: "bytes",
670
+ internalType: "bytes"
671
+ }
672
+ ]
673
+ }
674
+ ],
675
+ stateMutability: "nonpayable"
676
+ },
677
+ {
678
+ type: "function",
679
+ name: "simulateHandleOp",
680
+ inputs: [
681
+ {
682
+ name: "op",
683
+ type: "tuple",
684
+ internalType: "struct PackedUserOperation",
685
+ components: [
686
+ {
687
+ name: "sender",
688
+ type: "address",
689
+ internalType: "address"
690
+ },
691
+ {
692
+ name: "nonce",
693
+ type: "uint256",
694
+ internalType: "uint256"
695
+ },
696
+ {
697
+ name: "initCode",
698
+ type: "bytes",
699
+ internalType: "bytes"
700
+ },
701
+ {
702
+ name: "callData",
703
+ type: "bytes",
704
+ internalType: "bytes"
705
+ },
706
+ {
707
+ name: "accountGasLimits",
708
+ type: "bytes32",
709
+ internalType: "bytes32"
710
+ },
711
+ {
712
+ name: "preVerificationGas",
713
+ type: "uint256",
714
+ internalType: "uint256"
715
+ },
716
+ {
717
+ name: "gasFees",
718
+ type: "bytes32",
719
+ internalType: "bytes32"
720
+ },
721
+ {
722
+ name: "paymasterAndData",
723
+ type: "bytes",
724
+ internalType: "bytes"
725
+ },
726
+ {
727
+ name: "signature",
728
+ type: "bytes",
729
+ internalType: "bytes"
730
+ }
731
+ ]
732
+ }
733
+ ],
734
+ outputs: [
735
+ {
736
+ name: "",
737
+ type: "tuple",
738
+ internalType: "struct IEntryPointSimulations.ExecutionResult",
739
+ components: [
740
+ {
741
+ name: "preOpGas",
742
+ type: "uint256",
743
+ internalType: "uint256"
744
+ },
745
+ {
746
+ name: "paid",
747
+ type: "uint256",
748
+ internalType: "uint256"
749
+ },
750
+ {
751
+ name: "accountValidationData",
752
+ type: "uint256",
753
+ internalType: "uint256"
754
+ },
755
+ {
756
+ name: "paymasterValidationData",
757
+ type: "uint256",
758
+ internalType: "uint256"
759
+ },
760
+ {
761
+ name: "paymasterVerificationGasLimit",
762
+ type: "uint256",
763
+ internalType: "uint256"
764
+ },
765
+ {
766
+ name: "paymasterPostOpGasLimit",
767
+ type: "uint256",
768
+ internalType: "uint256"
769
+ },
770
+ {
771
+ name: "targetSuccess",
772
+ type: "bool",
773
+ internalType: "bool"
774
+ },
775
+ {
776
+ name: "targetResult",
777
+ type: "bytes",
778
+ internalType: "bytes"
779
+ }
780
+ ]
781
+ }
782
+ ],
783
+ stateMutability: "nonpayable"
784
+ },
785
+ {
786
+ type: "function",
787
+ name: "simulateHandleOpBulk",
788
+ inputs: [
789
+ {
790
+ name: "ops",
791
+ type: "tuple[]",
792
+ internalType: "struct PackedUserOperation[]",
793
+ components: [
794
+ {
795
+ name: "sender",
796
+ type: "address",
797
+ internalType: "address"
798
+ },
799
+ {
800
+ name: "nonce",
801
+ type: "uint256",
802
+ internalType: "uint256"
803
+ },
804
+ {
805
+ name: "initCode",
806
+ type: "bytes",
807
+ internalType: "bytes"
808
+ },
809
+ {
810
+ name: "callData",
811
+ type: "bytes",
812
+ internalType: "bytes"
813
+ },
814
+ {
815
+ name: "accountGasLimits",
816
+ type: "bytes32",
817
+ internalType: "bytes32"
818
+ },
819
+ {
820
+ name: "preVerificationGas",
821
+ type: "uint256",
822
+ internalType: "uint256"
823
+ },
824
+ {
825
+ name: "gasFees",
826
+ type: "bytes32",
827
+ internalType: "bytes32"
828
+ },
829
+ {
830
+ name: "paymasterAndData",
831
+ type: "bytes",
832
+ internalType: "bytes"
833
+ },
834
+ {
835
+ name: "signature",
836
+ type: "bytes",
837
+ internalType: "bytes"
838
+ }
839
+ ]
840
+ }
841
+ ],
842
+ outputs: [
843
+ {
844
+ name: "",
845
+ type: "tuple[]",
846
+ internalType: "struct IEntryPointSimulations.ExecutionResult[]",
847
+ components: [
848
+ {
849
+ name: "preOpGas",
850
+ type: "uint256",
851
+ internalType: "uint256"
852
+ },
853
+ {
854
+ name: "paid",
855
+ type: "uint256",
856
+ internalType: "uint256"
857
+ },
858
+ {
859
+ name: "accountValidationData",
860
+ type: "uint256",
861
+ internalType: "uint256"
862
+ },
863
+ {
864
+ name: "paymasterValidationData",
865
+ type: "uint256",
866
+ internalType: "uint256"
867
+ },
868
+ {
869
+ name: "paymasterVerificationGasLimit",
870
+ type: "uint256",
871
+ internalType: "uint256"
872
+ },
873
+ {
874
+ name: "paymasterPostOpGasLimit",
875
+ type: "uint256",
876
+ internalType: "uint256"
877
+ },
878
+ {
879
+ name: "targetSuccess",
880
+ type: "bool",
881
+ internalType: "bool"
882
+ },
883
+ {
884
+ name: "targetResult",
885
+ type: "bytes",
886
+ internalType: "bytes"
887
+ }
888
+ ]
889
+ }
890
+ ],
891
+ stateMutability: "nonpayable"
892
+ },
893
+ {
894
+ type: "function",
895
+ name: "simulateHandleOpLast",
896
+ inputs: [
897
+ {
898
+ name: "ops",
899
+ type: "tuple[]",
900
+ internalType: "struct PackedUserOperation[]",
901
+ components: [
902
+ {
903
+ name: "sender",
904
+ type: "address",
905
+ internalType: "address"
906
+ },
907
+ {
908
+ name: "nonce",
909
+ type: "uint256",
910
+ internalType: "uint256"
911
+ },
912
+ {
913
+ name: "initCode",
914
+ type: "bytes",
915
+ internalType: "bytes"
916
+ },
917
+ {
918
+ name: "callData",
919
+ type: "bytes",
920
+ internalType: "bytes"
921
+ },
922
+ {
923
+ name: "accountGasLimits",
924
+ type: "bytes32",
925
+ internalType: "bytes32"
926
+ },
927
+ {
928
+ name: "preVerificationGas",
929
+ type: "uint256",
930
+ internalType: "uint256"
931
+ },
932
+ {
933
+ name: "gasFees",
934
+ type: "bytes32",
935
+ internalType: "bytes32"
936
+ },
937
+ {
938
+ name: "paymasterAndData",
939
+ type: "bytes",
940
+ internalType: "bytes"
941
+ },
942
+ {
943
+ name: "signature",
944
+ type: "bytes",
945
+ internalType: "bytes"
946
+ }
947
+ ]
948
+ }
949
+ ],
950
+ outputs: [
951
+ {
952
+ name: "",
953
+ type: "tuple",
954
+ internalType: "struct IEntryPointSimulations.ExecutionResult",
955
+ components: [
956
+ {
957
+ name: "preOpGas",
958
+ type: "uint256",
959
+ internalType: "uint256"
960
+ },
961
+ {
962
+ name: "paid",
963
+ type: "uint256",
964
+ internalType: "uint256"
965
+ },
966
+ {
967
+ name: "accountValidationData",
968
+ type: "uint256",
969
+ internalType: "uint256"
970
+ },
971
+ {
972
+ name: "paymasterValidationData",
973
+ type: "uint256",
974
+ internalType: "uint256"
975
+ },
976
+ {
977
+ name: "paymasterVerificationGasLimit",
978
+ type: "uint256",
979
+ internalType: "uint256"
980
+ },
981
+ {
982
+ name: "paymasterPostOpGasLimit",
983
+ type: "uint256",
984
+ internalType: "uint256"
985
+ },
986
+ {
987
+ name: "targetSuccess",
988
+ type: "bool",
989
+ internalType: "bool"
990
+ },
991
+ {
992
+ name: "targetResult",
993
+ type: "bytes",
994
+ internalType: "bytes"
995
+ }
996
+ ]
997
+ }
998
+ ],
999
+ stateMutability: "nonpayable"
1000
+ },
1001
+ {
1002
+ type: "function",
1003
+ name: "simulateValidation",
1004
+ inputs: [
1005
+ {
1006
+ name: "userOp",
1007
+ type: "tuple",
1008
+ internalType: "struct PackedUserOperation",
1009
+ components: [
1010
+ {
1011
+ name: "sender",
1012
+ type: "address",
1013
+ internalType: "address"
1014
+ },
1015
+ {
1016
+ name: "nonce",
1017
+ type: "uint256",
1018
+ internalType: "uint256"
1019
+ },
1020
+ {
1021
+ name: "initCode",
1022
+ type: "bytes",
1023
+ internalType: "bytes"
1024
+ },
1025
+ {
1026
+ name: "callData",
1027
+ type: "bytes",
1028
+ internalType: "bytes"
1029
+ },
1030
+ {
1031
+ name: "accountGasLimits",
1032
+ type: "bytes32",
1033
+ internalType: "bytes32"
1034
+ },
1035
+ {
1036
+ name: "preVerificationGas",
1037
+ type: "uint256",
1038
+ internalType: "uint256"
1039
+ },
1040
+ {
1041
+ name: "gasFees",
1042
+ type: "bytes32",
1043
+ internalType: "bytes32"
1044
+ },
1045
+ {
1046
+ name: "paymasterAndData",
1047
+ type: "bytes",
1048
+ internalType: "bytes"
1049
+ },
1050
+ {
1051
+ name: "signature",
1052
+ type: "bytes",
1053
+ internalType: "bytes"
1054
+ }
1055
+ ]
1056
+ }
1057
+ ],
1058
+ outputs: [
1059
+ {
1060
+ name: "",
1061
+ type: "tuple",
1062
+ internalType: "struct IEntryPointSimulations.ValidationResult",
1063
+ components: [
1064
+ {
1065
+ name: "returnInfo",
1066
+ type: "tuple",
1067
+ internalType: "struct IEntryPoint.ReturnInfo",
1068
+ components: [
1069
+ {
1070
+ name: "preOpGas",
1071
+ type: "uint256",
1072
+ internalType: "uint256"
1073
+ },
1074
+ {
1075
+ name: "prefund",
1076
+ type: "uint256",
1077
+ internalType: "uint256"
1078
+ },
1079
+ {
1080
+ name: "accountValidationData",
1081
+ type: "uint256",
1082
+ internalType: "uint256"
1083
+ },
1084
+ {
1085
+ name: "paymasterValidationData",
1086
+ type: "uint256",
1087
+ internalType: "uint256"
1088
+ },
1089
+ {
1090
+ name: "paymasterContext",
1091
+ type: "bytes",
1092
+ internalType: "bytes"
1093
+ }
1094
+ ]
1095
+ },
1096
+ {
1097
+ name: "senderInfo",
1098
+ type: "tuple",
1099
+ internalType: "struct IStakeManager.StakeInfo",
1100
+ components: [
1101
+ {
1102
+ name: "stake",
1103
+ type: "uint256",
1104
+ internalType: "uint256"
1105
+ },
1106
+ {
1107
+ name: "unstakeDelaySec",
1108
+ type: "uint256",
1109
+ internalType: "uint256"
1110
+ }
1111
+ ]
1112
+ },
1113
+ {
1114
+ name: "factoryInfo",
1115
+ type: "tuple",
1116
+ internalType: "struct IStakeManager.StakeInfo",
1117
+ components: [
1118
+ {
1119
+ name: "stake",
1120
+ type: "uint256",
1121
+ internalType: "uint256"
1122
+ },
1123
+ {
1124
+ name: "unstakeDelaySec",
1125
+ type: "uint256",
1126
+ internalType: "uint256"
1127
+ }
1128
+ ]
1129
+ },
1130
+ {
1131
+ name: "paymasterInfo",
1132
+ type: "tuple",
1133
+ internalType: "struct IStakeManager.StakeInfo",
1134
+ components: [
1135
+ {
1136
+ name: "stake",
1137
+ type: "uint256",
1138
+ internalType: "uint256"
1139
+ },
1140
+ {
1141
+ name: "unstakeDelaySec",
1142
+ type: "uint256",
1143
+ internalType: "uint256"
1144
+ }
1145
+ ]
1146
+ },
1147
+ {
1148
+ name: "aggregatorInfo",
1149
+ type: "tuple",
1150
+ internalType: "struct IEntryPoint.AggregatorStakeInfo",
1151
+ components: [
1152
+ {
1153
+ name: "aggregator",
1154
+ type: "address",
1155
+ internalType: "address"
1156
+ },
1157
+ {
1158
+ name: "stakeInfo",
1159
+ type: "tuple",
1160
+ internalType: "struct IStakeManager.StakeInfo",
1161
+ components: [
1162
+ {
1163
+ name: "stake",
1164
+ type: "uint256",
1165
+ internalType: "uint256"
1166
+ },
1167
+ {
1168
+ name: "unstakeDelaySec",
1169
+ type: "uint256",
1170
+ internalType: "uint256"
1171
+ }
1172
+ ]
1173
+ }
1174
+ ]
1175
+ }
1176
+ ]
1177
+ }
1178
+ ],
1179
+ stateMutability: "nonpayable"
1180
+ },
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
+ {
1362
+ type: "function",
1363
+ name: "simulateValidationLast",
1364
+ inputs: [
1365
+ {
1366
+ name: "userOps",
1367
+ type: "tuple[]",
1368
+ internalType: "struct PackedUserOperation[]",
1369
+ components: [
1370
+ {
1371
+ name: "sender",
1372
+ type: "address",
1373
+ internalType: "address"
1374
+ },
1375
+ {
1376
+ name: "nonce",
1377
+ type: "uint256",
1378
+ internalType: "uint256"
1379
+ },
1380
+ {
1381
+ name: "initCode",
1382
+ type: "bytes",
1383
+ internalType: "bytes"
1384
+ },
1385
+ {
1386
+ name: "callData",
1387
+ type: "bytes",
1388
+ internalType: "bytes"
1389
+ },
1390
+ {
1391
+ name: "accountGasLimits",
1392
+ type: "bytes32",
1393
+ internalType: "bytes32"
1394
+ },
1395
+ {
1396
+ name: "preVerificationGas",
1397
+ type: "uint256",
1398
+ internalType: "uint256"
1399
+ },
1400
+ {
1401
+ name: "gasFees",
1402
+ type: "bytes32",
1403
+ internalType: "bytes32"
1404
+ },
1405
+ {
1406
+ name: "paymasterAndData",
1407
+ type: "bytes",
1408
+ internalType: "bytes"
1409
+ },
1410
+ {
1411
+ name: "signature",
1412
+ type: "bytes",
1413
+ internalType: "bytes"
1414
+ }
1415
+ ]
1416
+ }
1417
+ ],
1418
+ outputs: [
1419
+ {
1420
+ name: "",
1421
+ type: "tuple",
1422
+ internalType: "struct IEntryPointSimulations.ValidationResult",
1423
+ components: [
1424
+ {
1425
+ name: "returnInfo",
1426
+ type: "tuple",
1427
+ internalType: "struct IEntryPoint.ReturnInfo",
1428
+ components: [
1429
+ {
1430
+ name: "preOpGas",
1431
+ type: "uint256",
1432
+ internalType: "uint256"
1433
+ },
1434
+ {
1435
+ name: "prefund",
1436
+ type: "uint256",
1437
+ internalType: "uint256"
1438
+ },
1439
+ {
1440
+ name: "accountValidationData",
1441
+ type: "uint256",
1442
+ internalType: "uint256"
1443
+ },
1444
+ {
1445
+ name: "paymasterValidationData",
1446
+ type: "uint256",
1447
+ internalType: "uint256"
1448
+ },
1449
+ {
1450
+ name: "paymasterContext",
1451
+ type: "bytes",
1452
+ internalType: "bytes"
1453
+ }
1454
+ ]
1455
+ },
1456
+ {
1457
+ name: "senderInfo",
1458
+ type: "tuple",
1459
+ internalType: "struct IStakeManager.StakeInfo",
1460
+ components: [
1461
+ {
1462
+ name: "stake",
1463
+ type: "uint256",
1464
+ internalType: "uint256"
1465
+ },
1466
+ {
1467
+ name: "unstakeDelaySec",
1468
+ type: "uint256",
1469
+ internalType: "uint256"
1470
+ }
1471
+ ]
1472
+ },
1473
+ {
1474
+ name: "factoryInfo",
1475
+ type: "tuple",
1476
+ internalType: "struct IStakeManager.StakeInfo",
1477
+ components: [
1478
+ {
1479
+ name: "stake",
1480
+ type: "uint256",
1481
+ internalType: "uint256"
1482
+ },
1483
+ {
1484
+ name: "unstakeDelaySec",
1485
+ type: "uint256",
1486
+ internalType: "uint256"
1487
+ }
1488
+ ]
1489
+ },
1490
+ {
1491
+ name: "paymasterInfo",
1492
+ type: "tuple",
1493
+ internalType: "struct IStakeManager.StakeInfo",
1494
+ components: [
1495
+ {
1496
+ name: "stake",
1497
+ type: "uint256",
1498
+ internalType: "uint256"
1499
+ },
1500
+ {
1501
+ name: "unstakeDelaySec",
1502
+ type: "uint256",
1503
+ internalType: "uint256"
1504
+ }
1505
+ ]
1506
+ },
1507
+ {
1508
+ name: "aggregatorInfo",
1509
+ type: "tuple",
1510
+ internalType: "struct IEntryPoint.AggregatorStakeInfo",
1511
+ components: [
1512
+ {
1513
+ name: "aggregator",
1514
+ type: "address",
1515
+ internalType: "address"
1516
+ },
1517
+ {
1518
+ name: "stakeInfo",
1519
+ type: "tuple",
1520
+ internalType: "struct IStakeManager.StakeInfo",
1521
+ components: [
1522
+ {
1523
+ name: "stake",
1524
+ type: "uint256",
1525
+ internalType: "uint256"
1526
+ },
1527
+ {
1528
+ name: "unstakeDelaySec",
1529
+ type: "uint256",
1530
+ internalType: "uint256"
1531
+ }
1532
+ ]
1533
+ }
1534
+ ]
1535
+ }
1536
+ ]
1537
+ }
1538
+ ],
1539
+ stateMutability: "nonpayable"
1540
+ },
1541
+ {
1542
+ type: "function",
1543
+ name: "unlockStake",
1544
+ inputs: [],
1545
+ outputs: [],
1546
+ stateMutability: "nonpayable"
1547
+ },
1548
+ {
1549
+ type: "function",
1550
+ name: "withdrawStake",
1551
+ inputs: [
1552
+ {
1553
+ name: "withdrawAddress",
1554
+ type: "address",
1555
+ internalType: "address payable"
1556
+ }
1557
+ ],
1558
+ outputs: [],
1559
+ stateMutability: "nonpayable"
1560
+ },
1561
+ {
1562
+ type: "function",
1563
+ name: "withdrawTo",
1564
+ inputs: [
1565
+ {
1566
+ name: "withdrawAddress",
1567
+ type: "address",
1568
+ internalType: "address payable"
1569
+ },
1570
+ {
1571
+ name: "withdrawAmount",
1572
+ type: "uint256",
1573
+ internalType: "uint256"
1574
+ }
1575
+ ],
1576
+ outputs: [],
1577
+ stateMutability: "nonpayable"
1578
+ },
1579
+ {
1580
+ type: "event",
1581
+ name: "AccountDeployed",
1582
+ inputs: [
1583
+ {
1584
+ name: "userOpHash",
1585
+ type: "bytes32",
1586
+ indexed: true,
1587
+ internalType: "bytes32"
1588
+ },
1589
+ {
1590
+ name: "sender",
1591
+ type: "address",
1592
+ indexed: true,
1593
+ internalType: "address"
1594
+ },
1595
+ {
1596
+ name: "factory",
1597
+ type: "address",
1598
+ indexed: false,
1599
+ internalType: "address"
1600
+ },
1601
+ {
1602
+ name: "paymaster",
1603
+ type: "address",
1604
+ indexed: false,
1605
+ internalType: "address"
1606
+ }
1607
+ ],
1608
+ anonymous: false
1609
+ },
1610
+ {
1611
+ type: "event",
1612
+ name: "BeforeExecution",
1613
+ inputs: [],
1614
+ anonymous: false
1615
+ },
1616
+ {
1617
+ type: "event",
1618
+ name: "Deposited",
1619
+ inputs: [
1620
+ {
1621
+ name: "account",
1622
+ type: "address",
1623
+ indexed: true,
1624
+ internalType: "address"
1625
+ },
1626
+ {
1627
+ name: "totalDeposit",
1628
+ type: "uint256",
1629
+ indexed: false,
1630
+ internalType: "uint256"
1631
+ }
1632
+ ],
1633
+ anonymous: false
1634
+ },
1635
+ {
1636
+ type: "event",
1637
+ name: "PostOpRevertReason",
1638
+ inputs: [
1639
+ {
1640
+ name: "userOpHash",
1641
+ type: "bytes32",
1642
+ indexed: true,
1643
+ internalType: "bytes32"
1644
+ },
1645
+ {
1646
+ name: "sender",
1647
+ type: "address",
1648
+ indexed: true,
1649
+ internalType: "address"
1650
+ },
1651
+ {
1652
+ name: "nonce",
1653
+ type: "uint256",
1654
+ indexed: false,
1655
+ internalType: "uint256"
1656
+ },
1657
+ {
1658
+ name: "revertReason",
1659
+ type: "bytes",
1660
+ indexed: false,
1661
+ internalType: "bytes"
1662
+ }
1663
+ ],
1664
+ anonymous: false
1665
+ },
1666
+ {
1667
+ type: "event",
1668
+ name: "SignatureAggregatorChanged",
1669
+ inputs: [
1670
+ {
1671
+ name: "aggregator",
1672
+ type: "address",
1673
+ indexed: true,
1674
+ internalType: "address"
1675
+ }
1676
+ ],
1677
+ anonymous: false
1678
+ },
1679
+ {
1680
+ type: "event",
1681
+ name: "StakeLocked",
1682
+ inputs: [
1683
+ {
1684
+ name: "account",
1685
+ type: "address",
1686
+ indexed: true,
1687
+ internalType: "address"
1688
+ },
1689
+ {
1690
+ name: "totalStaked",
1691
+ type: "uint256",
1692
+ indexed: false,
1693
+ internalType: "uint256"
1694
+ },
1695
+ {
1696
+ name: "unstakeDelaySec",
1697
+ type: "uint256",
1698
+ indexed: false,
1699
+ internalType: "uint256"
1700
+ }
1701
+ ],
1702
+ anonymous: false
1703
+ },
1704
+ {
1705
+ type: "event",
1706
+ name: "StakeUnlocked",
1707
+ inputs: [
1708
+ {
1709
+ name: "account",
1710
+ type: "address",
1711
+ indexed: true,
1712
+ internalType: "address"
1713
+ },
1714
+ {
1715
+ name: "withdrawTime",
1716
+ type: "uint256",
1717
+ indexed: false,
1718
+ internalType: "uint256"
1719
+ }
1720
+ ],
1721
+ anonymous: false
1722
+ },
1723
+ {
1724
+ type: "event",
1725
+ name: "StakeWithdrawn",
1726
+ inputs: [
1727
+ {
1728
+ name: "account",
1729
+ type: "address",
1730
+ indexed: true,
1731
+ internalType: "address"
1732
+ },
1733
+ {
1734
+ name: "withdrawAddress",
1735
+ type: "address",
1736
+ indexed: false,
1737
+ internalType: "address"
1738
+ },
1739
+ {
1740
+ name: "amount",
1741
+ type: "uint256",
1742
+ indexed: false,
1743
+ internalType: "uint256"
1744
+ }
1745
+ ],
1746
+ anonymous: false
1747
+ },
1748
+ {
1749
+ type: "event",
1750
+ name: "UserOperationEvent",
1751
+ inputs: [
1752
+ {
1753
+ name: "userOpHash",
1754
+ type: "bytes32",
1755
+ indexed: true,
1756
+ internalType: "bytes32"
1757
+ },
1758
+ {
1759
+ name: "sender",
1760
+ type: "address",
1761
+ indexed: true,
1762
+ internalType: "address"
1763
+ },
1764
+ {
1765
+ name: "paymaster",
1766
+ type: "address",
1767
+ indexed: true,
1768
+ internalType: "address"
1769
+ },
1770
+ {
1771
+ name: "nonce",
1772
+ type: "uint256",
1773
+ indexed: false,
1774
+ internalType: "uint256"
1775
+ },
1776
+ {
1777
+ name: "success",
1778
+ type: "bool",
1779
+ indexed: false,
1780
+ internalType: "bool"
1781
+ },
1782
+ {
1783
+ name: "actualGasCost",
1784
+ type: "uint256",
1785
+ indexed: false,
1786
+ internalType: "uint256"
1787
+ },
1788
+ {
1789
+ name: "actualGasUsed",
1790
+ type: "uint256",
1791
+ indexed: false,
1792
+ internalType: "uint256"
1793
+ }
1794
+ ],
1795
+ anonymous: false
1796
+ },
1797
+ {
1798
+ type: "event",
1799
+ name: "UserOperationPrefundTooLow",
1800
+ inputs: [
1801
+ {
1802
+ name: "userOpHash",
1803
+ type: "bytes32",
1804
+ indexed: true,
1805
+ internalType: "bytes32"
1806
+ },
1807
+ {
1808
+ name: "sender",
1809
+ type: "address",
1810
+ indexed: true,
1811
+ internalType: "address"
1812
+ },
1813
+ {
1814
+ name: "nonce",
1815
+ type: "uint256",
1816
+ indexed: false,
1817
+ internalType: "uint256"
1818
+ }
1819
+ ],
1820
+ anonymous: false
1821
+ },
1822
+ {
1823
+ type: "event",
1824
+ name: "UserOperationRevertReason",
1825
+ inputs: [
1826
+ {
1827
+ name: "userOpHash",
1828
+ type: "bytes32",
1829
+ indexed: true,
1830
+ internalType: "bytes32"
1831
+ },
1832
+ {
1833
+ name: "sender",
1834
+ type: "address",
1835
+ indexed: true,
1836
+ internalType: "address"
1837
+ },
1838
+ {
1839
+ name: "nonce",
1840
+ type: "uint256",
1841
+ indexed: false,
1842
+ internalType: "uint256"
1843
+ },
1844
+ {
1845
+ name: "revertReason",
1846
+ type: "bytes",
1847
+ indexed: false,
1848
+ internalType: "bytes"
1849
+ }
1850
+ ],
1851
+ anonymous: false
1852
+ },
1853
+ {
1854
+ type: "event",
1855
+ name: "Withdrawn",
1856
+ inputs: [
1857
+ {
1858
+ name: "account",
1859
+ type: "address",
1860
+ indexed: true,
1861
+ internalType: "address"
1862
+ },
1863
+ {
1864
+ name: "withdrawAddress",
1865
+ type: "address",
1866
+ indexed: false,
1867
+ internalType: "address"
1868
+ },
1869
+ {
1870
+ name: "amount",
1871
+ type: "uint256",
1872
+ indexed: false,
1873
+ internalType: "uint256"
1874
+ }
1875
+ ],
1876
+ anonymous: false
1877
+ },
1878
+ {
1879
+ type: "error",
1880
+ name: "FailedOp",
1881
+ inputs: [
1882
+ {
1883
+ name: "opIndex",
1884
+ type: "uint256",
1885
+ internalType: "uint256"
1886
+ },
1887
+ {
1888
+ name: "reason",
1889
+ type: "string",
1890
+ internalType: "string"
1891
+ }
1892
+ ]
1893
+ },
1894
+ {
1895
+ type: "error",
1896
+ name: "FailedOpWithRevert",
1897
+ inputs: [
1898
+ {
1899
+ name: "opIndex",
1900
+ type: "uint256",
1901
+ internalType: "uint256"
1902
+ },
1903
+ {
1904
+ name: "reason",
1905
+ type: "string",
1906
+ internalType: "string"
1907
+ },
1908
+ {
1909
+ name: "inner",
1910
+ type: "bytes",
1911
+ internalType: "bytes"
1912
+ }
1913
+ ]
1914
+ },
1915
+ {
1916
+ type: "error",
1917
+ name: "PostOpReverted",
1918
+ inputs: [
1919
+ {
1920
+ name: "returnData",
1921
+ type: "bytes",
1922
+ internalType: "bytes"
1923
+ }
1924
+ ]
1925
+ },
1926
+ {
1927
+ type: "error",
1928
+ name: "ReentrancyGuardReentrantCall",
1929
+ inputs: []
1930
+ },
1931
+ {
1932
+ type: "error",
1933
+ name: "SenderAddressResult",
1934
+ inputs: [
1935
+ {
1936
+ name: "sender",
1937
+ type: "address",
1938
+ internalType: "address"
1939
+ }
1940
+ ]
1941
+ },
1942
+ {
1943
+ type: "error",
1944
+ name: "SignatureValidationFailed",
1945
+ inputs: [
1946
+ {
1947
+ name: "aggregator",
1948
+ type: "address",
1949
+ internalType: "address"
1950
+ }
1951
+ ]
1952
+ }
1953
+ ];
1954
+ //# sourceMappingURL=EntryPointSimulations.js.map