@funkit/core 2.1.0 → 2.1.2-next.0
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.
- package/dist/src/abis/ApproveAndExec.json +45 -9
- package/dist/src/abis/ApproveAndSwap.json +141 -1
- package/dist/src/abis/CheckoutPaymaster.json +3358 -1
- package/dist/src/abis/EntryPoint.json +590 -113
- package/dist/src/abis/EstimationPaymaster.json +134 -24
- package/dist/src/abis/FeePercentOracle.json +94 -18
- package/dist/src/abis/FunWallet.json +280 -56
- package/dist/src/abis/FunWalletFactory.json +112 -21
- package/dist/src/abis/GaslessPaymaster.json +279 -50
- package/dist/src/abis/RoleBasedAccessControl.json +2 -1
- package/dist/src/abis/TestNFT.json +71 -15
- package/dist/src/abis/TokenPriceOracle.json +17 -4
- package/dist/src/abis/UserAuthentication.json +147 -32
- package/dist/src/auth/Auth.js +10 -4
- package/dist/src/auth/Auth.js.map +1 -1
- package/dist/src/common/constants.d.ts +164 -0
- package/dist/src/common/constants.js +56 -1
- package/dist/src/common/constants.js.map +1 -1
- package/dist/src/viem/Converter.d.ts +16 -16
- package/dist/src/wallet/FunWallet.d.ts +1 -1
- package/package.json +2 -1
|
@@ -21,11 +21,19 @@
|
|
|
21
21
|
{ "name": "reason", "type": "string", "internalType": "string" }
|
|
22
22
|
]
|
|
23
23
|
},
|
|
24
|
-
{
|
|
24
|
+
{
|
|
25
|
+
"name": "SenderAddressResult",
|
|
26
|
+
"type": "error",
|
|
27
|
+
"inputs": [
|
|
28
|
+
{ "name": "sender", "type": "address", "internalType": "address" }
|
|
29
|
+
]
|
|
30
|
+
},
|
|
25
31
|
{
|
|
26
32
|
"name": "SignatureValidationFailed",
|
|
27
33
|
"type": "error",
|
|
28
|
-
"inputs": [
|
|
34
|
+
"inputs": [
|
|
35
|
+
{ "name": "aggregator", "type": "address", "internalType": "address" }
|
|
36
|
+
]
|
|
29
37
|
},
|
|
30
38
|
{
|
|
31
39
|
"name": "ValidationResult",
|
|
@@ -34,12 +42,28 @@
|
|
|
34
42
|
{
|
|
35
43
|
"name": "returnInfo",
|
|
36
44
|
"components": [
|
|
37
|
-
{
|
|
45
|
+
{
|
|
46
|
+
"name": "preOpGas",
|
|
47
|
+
"type": "uint256",
|
|
48
|
+
"internalType": "uint256"
|
|
49
|
+
},
|
|
38
50
|
{ "name": "prefund", "type": "uint256", "internalType": "uint256" },
|
|
39
51
|
{ "name": "sigFailed", "type": "bool", "internalType": "bool" },
|
|
40
|
-
{
|
|
41
|
-
|
|
42
|
-
|
|
52
|
+
{
|
|
53
|
+
"name": "validAfter",
|
|
54
|
+
"type": "uint48",
|
|
55
|
+
"internalType": "uint48"
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
"name": "validUntil",
|
|
59
|
+
"type": "uint48",
|
|
60
|
+
"internalType": "uint48"
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
"name": "paymasterContext",
|
|
64
|
+
"type": "bytes",
|
|
65
|
+
"internalType": "bytes"
|
|
66
|
+
}
|
|
43
67
|
],
|
|
44
68
|
"internalType": "structIEntryPoint.ReturnInfo",
|
|
45
69
|
"type": "tuple"
|
|
@@ -48,7 +72,11 @@
|
|
|
48
72
|
"name": "senderInfo",
|
|
49
73
|
"components": [
|
|
50
74
|
{ "name": "stake", "type": "uint256", "internalType": "uint256" },
|
|
51
|
-
{
|
|
75
|
+
{
|
|
76
|
+
"name": "unstakeDelaySec",
|
|
77
|
+
"type": "uint256",
|
|
78
|
+
"internalType": "uint256"
|
|
79
|
+
}
|
|
52
80
|
],
|
|
53
81
|
"internalType": "structIStakeManager.StakeInfo",
|
|
54
82
|
"type": "tuple"
|
|
@@ -57,7 +85,11 @@
|
|
|
57
85
|
"name": "factoryInfo",
|
|
58
86
|
"components": [
|
|
59
87
|
{ "name": "stake", "type": "uint256", "internalType": "uint256" },
|
|
60
|
-
{
|
|
88
|
+
{
|
|
89
|
+
"name": "unstakeDelaySec",
|
|
90
|
+
"type": "uint256",
|
|
91
|
+
"internalType": "uint256"
|
|
92
|
+
}
|
|
61
93
|
],
|
|
62
94
|
"internalType": "structIStakeManager.StakeInfo",
|
|
63
95
|
"type": "tuple"
|
|
@@ -66,7 +98,11 @@
|
|
|
66
98
|
"name": "paymasterInfo",
|
|
67
99
|
"components": [
|
|
68
100
|
{ "name": "stake", "type": "uint256", "internalType": "uint256" },
|
|
69
|
-
{
|
|
101
|
+
{
|
|
102
|
+
"name": "unstakeDelaySec",
|
|
103
|
+
"type": "uint256",
|
|
104
|
+
"internalType": "uint256"
|
|
105
|
+
}
|
|
70
106
|
],
|
|
71
107
|
"internalType": "structIStakeManager.StakeInfo",
|
|
72
108
|
"type": "tuple"
|
|
@@ -80,12 +116,28 @@
|
|
|
80
116
|
{
|
|
81
117
|
"name": "returnInfo",
|
|
82
118
|
"components": [
|
|
83
|
-
{
|
|
119
|
+
{
|
|
120
|
+
"name": "preOpGas",
|
|
121
|
+
"type": "uint256",
|
|
122
|
+
"internalType": "uint256"
|
|
123
|
+
},
|
|
84
124
|
{ "name": "prefund", "type": "uint256", "internalType": "uint256" },
|
|
85
125
|
{ "name": "sigFailed", "type": "bool", "internalType": "bool" },
|
|
86
|
-
{
|
|
87
|
-
|
|
88
|
-
|
|
126
|
+
{
|
|
127
|
+
"name": "validAfter",
|
|
128
|
+
"type": "uint48",
|
|
129
|
+
"internalType": "uint48"
|
|
130
|
+
},
|
|
131
|
+
{
|
|
132
|
+
"name": "validUntil",
|
|
133
|
+
"type": "uint48",
|
|
134
|
+
"internalType": "uint48"
|
|
135
|
+
},
|
|
136
|
+
{
|
|
137
|
+
"name": "paymasterContext",
|
|
138
|
+
"type": "bytes",
|
|
139
|
+
"internalType": "bytes"
|
|
140
|
+
}
|
|
89
141
|
],
|
|
90
142
|
"internalType": "structIEntryPoint.ReturnInfo",
|
|
91
143
|
"type": "tuple"
|
|
@@ -94,7 +146,11 @@
|
|
|
94
146
|
"name": "senderInfo",
|
|
95
147
|
"components": [
|
|
96
148
|
{ "name": "stake", "type": "uint256", "internalType": "uint256" },
|
|
97
|
-
{
|
|
149
|
+
{
|
|
150
|
+
"name": "unstakeDelaySec",
|
|
151
|
+
"type": "uint256",
|
|
152
|
+
"internalType": "uint256"
|
|
153
|
+
}
|
|
98
154
|
],
|
|
99
155
|
"internalType": "structIStakeManager.StakeInfo",
|
|
100
156
|
"type": "tuple"
|
|
@@ -103,7 +159,11 @@
|
|
|
103
159
|
"name": "factoryInfo",
|
|
104
160
|
"components": [
|
|
105
161
|
{ "name": "stake", "type": "uint256", "internalType": "uint256" },
|
|
106
|
-
{
|
|
162
|
+
{
|
|
163
|
+
"name": "unstakeDelaySec",
|
|
164
|
+
"type": "uint256",
|
|
165
|
+
"internalType": "uint256"
|
|
166
|
+
}
|
|
107
167
|
],
|
|
108
168
|
"internalType": "structIStakeManager.StakeInfo",
|
|
109
169
|
"type": "tuple"
|
|
@@ -112,7 +172,11 @@
|
|
|
112
172
|
"name": "paymasterInfo",
|
|
113
173
|
"components": [
|
|
114
174
|
{ "name": "stake", "type": "uint256", "internalType": "uint256" },
|
|
115
|
-
{
|
|
175
|
+
{
|
|
176
|
+
"name": "unstakeDelaySec",
|
|
177
|
+
"type": "uint256",
|
|
178
|
+
"internalType": "uint256"
|
|
179
|
+
}
|
|
116
180
|
],
|
|
117
181
|
"internalType": "structIStakeManager.StakeInfo",
|
|
118
182
|
"type": "tuple"
|
|
@@ -120,12 +184,24 @@
|
|
|
120
184
|
{
|
|
121
185
|
"name": "aggregatorInfo",
|
|
122
186
|
"components": [
|
|
123
|
-
{
|
|
187
|
+
{
|
|
188
|
+
"name": "aggregator",
|
|
189
|
+
"type": "address",
|
|
190
|
+
"internalType": "address"
|
|
191
|
+
},
|
|
124
192
|
{
|
|
125
193
|
"name": "stakeInfo",
|
|
126
194
|
"components": [
|
|
127
|
-
{
|
|
128
|
-
|
|
195
|
+
{
|
|
196
|
+
"name": "stake",
|
|
197
|
+
"type": "uint256",
|
|
198
|
+
"internalType": "uint256"
|
|
199
|
+
},
|
|
200
|
+
{
|
|
201
|
+
"name": "unstakeDelaySec",
|
|
202
|
+
"type": "uint256",
|
|
203
|
+
"internalType": "uint256"
|
|
204
|
+
}
|
|
129
205
|
],
|
|
130
206
|
"internalType": "structIStakeManager.StakeInfo",
|
|
131
207
|
"type": "tuple"
|
|
@@ -141,36 +217,93 @@
|
|
|
141
217
|
"anonymous": false,
|
|
142
218
|
"type": "event",
|
|
143
219
|
"inputs": [
|
|
144
|
-
{
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
220
|
+
{
|
|
221
|
+
"name": "userOpHash",
|
|
222
|
+
"internalType": "bytes32",
|
|
223
|
+
"type": "bytes32",
|
|
224
|
+
"indexed": true
|
|
225
|
+
},
|
|
226
|
+
{
|
|
227
|
+
"name": "sender",
|
|
228
|
+
"internalType": "address",
|
|
229
|
+
"type": "address",
|
|
230
|
+
"indexed": true
|
|
231
|
+
},
|
|
232
|
+
{
|
|
233
|
+
"name": "factory",
|
|
234
|
+
"internalType": "address",
|
|
235
|
+
"type": "address",
|
|
236
|
+
"indexed": false
|
|
237
|
+
},
|
|
238
|
+
{
|
|
239
|
+
"name": "paymaster",
|
|
240
|
+
"internalType": "address",
|
|
241
|
+
"type": "address",
|
|
242
|
+
"indexed": false
|
|
243
|
+
}
|
|
148
244
|
]
|
|
149
245
|
},
|
|
150
|
-
{
|
|
246
|
+
{
|
|
247
|
+
"name": "BeforeExecution",
|
|
248
|
+
"anonymous": false,
|
|
249
|
+
"type": "event",
|
|
250
|
+
"inputs": []
|
|
251
|
+
},
|
|
151
252
|
{
|
|
152
253
|
"name": "Deposited",
|
|
153
254
|
"anonymous": false,
|
|
154
255
|
"type": "event",
|
|
155
256
|
"inputs": [
|
|
156
|
-
{
|
|
157
|
-
|
|
257
|
+
{
|
|
258
|
+
"name": "account",
|
|
259
|
+
"internalType": "address",
|
|
260
|
+
"type": "address",
|
|
261
|
+
"indexed": true
|
|
262
|
+
},
|
|
263
|
+
{
|
|
264
|
+
"name": "totalDeposit",
|
|
265
|
+
"internalType": "uint256",
|
|
266
|
+
"type": "uint256",
|
|
267
|
+
"indexed": false
|
|
268
|
+
}
|
|
158
269
|
]
|
|
159
270
|
},
|
|
160
271
|
{
|
|
161
272
|
"name": "SignatureAggregatorChanged",
|
|
162
273
|
"anonymous": false,
|
|
163
274
|
"type": "event",
|
|
164
|
-
"inputs": [
|
|
275
|
+
"inputs": [
|
|
276
|
+
{
|
|
277
|
+
"name": "aggregator",
|
|
278
|
+
"internalType": "address",
|
|
279
|
+
"type": "address",
|
|
280
|
+
"indexed": true
|
|
281
|
+
}
|
|
282
|
+
]
|
|
165
283
|
},
|
|
166
284
|
{
|
|
167
285
|
"name": "StakeLocked",
|
|
168
286
|
"anonymous": false,
|
|
169
287
|
"type": "event",
|
|
170
288
|
"inputs": [
|
|
171
|
-
{
|
|
172
|
-
|
|
173
|
-
|
|
289
|
+
{
|
|
290
|
+
"name": "account",
|
|
291
|
+
"internalType": "address",
|
|
292
|
+
"type": "address",
|
|
293
|
+
"indexed": true
|
|
294
|
+
},
|
|
295
|
+
{
|
|
296
|
+
"name": "totalStaked",
|
|
297
|
+
"internalType": "uint256",
|
|
298
|
+
"type": "uint256",
|
|
299
|
+
"indexed": false
|
|
300
|
+
},
|
|
301
|
+
{
|
|
302
|
+
"name": "unstakeDelaySec",
|
|
303
|
+
"internalType": "uint256",
|
|
304
|
+
"type": "uint256",
|
|
305
|
+
"indexed": false
|
|
306
|
+
}
|
|
174
307
|
]
|
|
175
308
|
},
|
|
176
309
|
{
|
|
@@ -178,8 +311,18 @@
|
|
|
178
311
|
"anonymous": false,
|
|
179
312
|
"type": "event",
|
|
180
313
|
"inputs": [
|
|
181
|
-
{
|
|
182
|
-
|
|
314
|
+
{
|
|
315
|
+
"name": "account",
|
|
316
|
+
"internalType": "address",
|
|
317
|
+
"type": "address",
|
|
318
|
+
"indexed": true
|
|
319
|
+
},
|
|
320
|
+
{
|
|
321
|
+
"name": "withdrawTime",
|
|
322
|
+
"internalType": "uint256",
|
|
323
|
+
"type": "uint256",
|
|
324
|
+
"indexed": false
|
|
325
|
+
}
|
|
183
326
|
]
|
|
184
327
|
},
|
|
185
328
|
{
|
|
@@ -187,9 +330,24 @@
|
|
|
187
330
|
"anonymous": false,
|
|
188
331
|
"type": "event",
|
|
189
332
|
"inputs": [
|
|
190
|
-
{
|
|
191
|
-
|
|
192
|
-
|
|
333
|
+
{
|
|
334
|
+
"name": "account",
|
|
335
|
+
"internalType": "address",
|
|
336
|
+
"type": "address",
|
|
337
|
+
"indexed": true
|
|
338
|
+
},
|
|
339
|
+
{
|
|
340
|
+
"name": "withdrawAddress",
|
|
341
|
+
"internalType": "address",
|
|
342
|
+
"type": "address",
|
|
343
|
+
"indexed": false
|
|
344
|
+
},
|
|
345
|
+
{
|
|
346
|
+
"name": "amount",
|
|
347
|
+
"internalType": "uint256",
|
|
348
|
+
"type": "uint256",
|
|
349
|
+
"indexed": false
|
|
350
|
+
}
|
|
193
351
|
]
|
|
194
352
|
},
|
|
195
353
|
{
|
|
@@ -197,13 +355,48 @@
|
|
|
197
355
|
"anonymous": false,
|
|
198
356
|
"type": "event",
|
|
199
357
|
"inputs": [
|
|
200
|
-
{
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
{
|
|
358
|
+
{
|
|
359
|
+
"name": "userOpHash",
|
|
360
|
+
"internalType": "bytes32",
|
|
361
|
+
"type": "bytes32",
|
|
362
|
+
"indexed": true
|
|
363
|
+
},
|
|
364
|
+
{
|
|
365
|
+
"name": "sender",
|
|
366
|
+
"internalType": "address",
|
|
367
|
+
"type": "address",
|
|
368
|
+
"indexed": true
|
|
369
|
+
},
|
|
370
|
+
{
|
|
371
|
+
"name": "paymaster",
|
|
372
|
+
"internalType": "address",
|
|
373
|
+
"type": "address",
|
|
374
|
+
"indexed": true
|
|
375
|
+
},
|
|
376
|
+
{
|
|
377
|
+
"name": "nonce",
|
|
378
|
+
"internalType": "uint256",
|
|
379
|
+
"type": "uint256",
|
|
380
|
+
"indexed": false
|
|
381
|
+
},
|
|
382
|
+
{
|
|
383
|
+
"name": "success",
|
|
384
|
+
"internalType": "bool",
|
|
385
|
+
"type": "bool",
|
|
386
|
+
"indexed": false
|
|
387
|
+
},
|
|
388
|
+
{
|
|
389
|
+
"name": "actualGasCost",
|
|
390
|
+
"internalType": "uint256",
|
|
391
|
+
"type": "uint256",
|
|
392
|
+
"indexed": false
|
|
393
|
+
},
|
|
394
|
+
{
|
|
395
|
+
"name": "actualGasUsed",
|
|
396
|
+
"internalType": "uint256",
|
|
397
|
+
"type": "uint256",
|
|
398
|
+
"indexed": false
|
|
399
|
+
}
|
|
207
400
|
]
|
|
208
401
|
},
|
|
209
402
|
{
|
|
@@ -211,10 +404,30 @@
|
|
|
211
404
|
"anonymous": false,
|
|
212
405
|
"type": "event",
|
|
213
406
|
"inputs": [
|
|
214
|
-
{
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
407
|
+
{
|
|
408
|
+
"name": "userOpHash",
|
|
409
|
+
"internalType": "bytes32",
|
|
410
|
+
"type": "bytes32",
|
|
411
|
+
"indexed": true
|
|
412
|
+
},
|
|
413
|
+
{
|
|
414
|
+
"name": "sender",
|
|
415
|
+
"internalType": "address",
|
|
416
|
+
"type": "address",
|
|
417
|
+
"indexed": true
|
|
418
|
+
},
|
|
419
|
+
{
|
|
420
|
+
"name": "nonce",
|
|
421
|
+
"internalType": "uint256",
|
|
422
|
+
"type": "uint256",
|
|
423
|
+
"indexed": false
|
|
424
|
+
},
|
|
425
|
+
{
|
|
426
|
+
"name": "revertReason",
|
|
427
|
+
"internalType": "bytes",
|
|
428
|
+
"type": "bytes",
|
|
429
|
+
"indexed": false
|
|
430
|
+
}
|
|
218
431
|
]
|
|
219
432
|
},
|
|
220
433
|
{
|
|
@@ -222,9 +435,24 @@
|
|
|
222
435
|
"anonymous": false,
|
|
223
436
|
"type": "event",
|
|
224
437
|
"inputs": [
|
|
225
|
-
{
|
|
226
|
-
|
|
227
|
-
|
|
438
|
+
{
|
|
439
|
+
"name": "account",
|
|
440
|
+
"internalType": "address",
|
|
441
|
+
"type": "address",
|
|
442
|
+
"indexed": true
|
|
443
|
+
},
|
|
444
|
+
{
|
|
445
|
+
"name": "withdrawAddress",
|
|
446
|
+
"internalType": "address",
|
|
447
|
+
"type": "address",
|
|
448
|
+
"indexed": false
|
|
449
|
+
},
|
|
450
|
+
{
|
|
451
|
+
"name": "amount",
|
|
452
|
+
"internalType": "uint256",
|
|
453
|
+
"type": "uint256",
|
|
454
|
+
"indexed": false
|
|
455
|
+
}
|
|
228
456
|
]
|
|
229
457
|
},
|
|
230
458
|
{
|
|
@@ -250,21 +478,31 @@
|
|
|
250
478
|
"outputs": [],
|
|
251
479
|
"stateMutability": "payable",
|
|
252
480
|
"type": "function",
|
|
253
|
-
"inputs": [
|
|
481
|
+
"inputs": [
|
|
482
|
+
{
|
|
483
|
+
"name": "unstakeDelaySec",
|
|
484
|
+
"type": "uint32",
|
|
485
|
+
"internalType": "uint32"
|
|
486
|
+
}
|
|
487
|
+
]
|
|
254
488
|
},
|
|
255
489
|
{
|
|
256
490
|
"name": "balanceOf",
|
|
257
491
|
"outputs": [{ "name": "", "type": "uint256", "internalType": "uint256" }],
|
|
258
492
|
"stateMutability": "view",
|
|
259
493
|
"type": "function",
|
|
260
|
-
"inputs": [
|
|
494
|
+
"inputs": [
|
|
495
|
+
{ "name": "account", "type": "address", "internalType": "address" }
|
|
496
|
+
]
|
|
261
497
|
},
|
|
262
498
|
{
|
|
263
499
|
"name": "depositTo",
|
|
264
500
|
"outputs": [],
|
|
265
501
|
"stateMutability": "payable",
|
|
266
502
|
"type": "function",
|
|
267
|
-
"inputs": [
|
|
503
|
+
"inputs": [
|
|
504
|
+
{ "name": "account", "type": "address", "internalType": "address" }
|
|
505
|
+
]
|
|
268
506
|
},
|
|
269
507
|
{
|
|
270
508
|
"name": "deposits",
|
|
@@ -272,7 +510,11 @@
|
|
|
272
510
|
{ "name": "deposit", "type": "uint112", "internalType": "uint112" },
|
|
273
511
|
{ "name": "staked", "type": "bool", "internalType": "bool" },
|
|
274
512
|
{ "name": "stake", "type": "uint112", "internalType": "uint112" },
|
|
275
|
-
{
|
|
513
|
+
{
|
|
514
|
+
"name": "unstakeDelaySec",
|
|
515
|
+
"type": "uint32",
|
|
516
|
+
"internalType": "uint32"
|
|
517
|
+
},
|
|
276
518
|
{ "name": "withdrawTime", "type": "uint48", "internalType": "uint48" }
|
|
277
519
|
],
|
|
278
520
|
"stateMutability": "view",
|
|
@@ -288,8 +530,16 @@
|
|
|
288
530
|
{ "name": "deposit", "type": "uint112", "internalType": "uint112" },
|
|
289
531
|
{ "name": "staked", "type": "bool", "internalType": "bool" },
|
|
290
532
|
{ "name": "stake", "type": "uint112", "internalType": "uint112" },
|
|
291
|
-
{
|
|
292
|
-
|
|
533
|
+
{
|
|
534
|
+
"name": "unstakeDelaySec",
|
|
535
|
+
"type": "uint32",
|
|
536
|
+
"internalType": "uint32"
|
|
537
|
+
},
|
|
538
|
+
{
|
|
539
|
+
"name": "withdrawTime",
|
|
540
|
+
"type": "uint48",
|
|
541
|
+
"internalType": "uint48"
|
|
542
|
+
}
|
|
293
543
|
],
|
|
294
544
|
"internalType": "structIStakeManager.DepositInfo",
|
|
295
545
|
"type": "tuple"
|
|
@@ -297,11 +547,15 @@
|
|
|
297
547
|
],
|
|
298
548
|
"stateMutability": "view",
|
|
299
549
|
"type": "function",
|
|
300
|
-
"inputs": [
|
|
550
|
+
"inputs": [
|
|
551
|
+
{ "name": "account", "type": "address", "internalType": "address" }
|
|
552
|
+
]
|
|
301
553
|
},
|
|
302
554
|
{
|
|
303
555
|
"name": "getNonce",
|
|
304
|
-
"outputs": [
|
|
556
|
+
"outputs": [
|
|
557
|
+
{ "name": "nonce", "type": "uint256", "internalType": "uint256" }
|
|
558
|
+
],
|
|
305
559
|
"stateMutability": "view",
|
|
306
560
|
"type": "function",
|
|
307
561
|
"inputs": [
|
|
@@ -314,7 +568,9 @@
|
|
|
314
568
|
"outputs": [],
|
|
315
569
|
"stateMutability": "nonpayable",
|
|
316
570
|
"type": "function",
|
|
317
|
-
"inputs": [
|
|
571
|
+
"inputs": [
|
|
572
|
+
{ "name": "initCode", "type": "bytes", "internalType": "bytes" }
|
|
573
|
+
]
|
|
318
574
|
},
|
|
319
575
|
{
|
|
320
576
|
"name": "getUserOpHash",
|
|
@@ -329,12 +585,36 @@
|
|
|
329
585
|
{ "name": "nonce", "type": "uint256", "internalType": "uint256" },
|
|
330
586
|
{ "name": "initCode", "type": "bytes", "internalType": "bytes" },
|
|
331
587
|
{ "name": "callData", "type": "bytes", "internalType": "bytes" },
|
|
332
|
-
{
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
{
|
|
588
|
+
{
|
|
589
|
+
"name": "callGasLimit",
|
|
590
|
+
"type": "uint256",
|
|
591
|
+
"internalType": "uint256"
|
|
592
|
+
},
|
|
593
|
+
{
|
|
594
|
+
"name": "verificationGasLimit",
|
|
595
|
+
"type": "uint256",
|
|
596
|
+
"internalType": "uint256"
|
|
597
|
+
},
|
|
598
|
+
{
|
|
599
|
+
"name": "preVerificationGas",
|
|
600
|
+
"type": "uint256",
|
|
601
|
+
"internalType": "uint256"
|
|
602
|
+
},
|
|
603
|
+
{
|
|
604
|
+
"name": "maxFeePerGas",
|
|
605
|
+
"type": "uint256",
|
|
606
|
+
"internalType": "uint256"
|
|
607
|
+
},
|
|
608
|
+
{
|
|
609
|
+
"name": "maxPriorityFeePerGas",
|
|
610
|
+
"type": "uint256",
|
|
611
|
+
"internalType": "uint256"
|
|
612
|
+
},
|
|
613
|
+
{
|
|
614
|
+
"name": "paymasterAndData",
|
|
615
|
+
"type": "bytes",
|
|
616
|
+
"internalType": "bytes"
|
|
617
|
+
},
|
|
338
618
|
{ "name": "signature", "type": "bytes", "internalType": "bytes" }
|
|
339
619
|
],
|
|
340
620
|
"internalType": "structUserOperation",
|
|
@@ -354,28 +634,80 @@
|
|
|
354
634
|
{
|
|
355
635
|
"name": "userOps",
|
|
356
636
|
"components": [
|
|
357
|
-
{
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
{
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
{
|
|
637
|
+
{
|
|
638
|
+
"name": "sender",
|
|
639
|
+
"type": "address",
|
|
640
|
+
"internalType": "address"
|
|
641
|
+
},
|
|
642
|
+
{
|
|
643
|
+
"name": "nonce",
|
|
644
|
+
"type": "uint256",
|
|
645
|
+
"internalType": "uint256"
|
|
646
|
+
},
|
|
647
|
+
{
|
|
648
|
+
"name": "initCode",
|
|
649
|
+
"type": "bytes",
|
|
650
|
+
"internalType": "bytes"
|
|
651
|
+
},
|
|
652
|
+
{
|
|
653
|
+
"name": "callData",
|
|
654
|
+
"type": "bytes",
|
|
655
|
+
"internalType": "bytes"
|
|
656
|
+
},
|
|
657
|
+
{
|
|
658
|
+
"name": "callGasLimit",
|
|
659
|
+
"type": "uint256",
|
|
660
|
+
"internalType": "uint256"
|
|
661
|
+
},
|
|
662
|
+
{
|
|
663
|
+
"name": "verificationGasLimit",
|
|
664
|
+
"type": "uint256",
|
|
665
|
+
"internalType": "uint256"
|
|
666
|
+
},
|
|
667
|
+
{
|
|
668
|
+
"name": "preVerificationGas",
|
|
669
|
+
"type": "uint256",
|
|
670
|
+
"internalType": "uint256"
|
|
671
|
+
},
|
|
672
|
+
{
|
|
673
|
+
"name": "maxFeePerGas",
|
|
674
|
+
"type": "uint256",
|
|
675
|
+
"internalType": "uint256"
|
|
676
|
+
},
|
|
677
|
+
{
|
|
678
|
+
"name": "maxPriorityFeePerGas",
|
|
679
|
+
"type": "uint256",
|
|
680
|
+
"internalType": "uint256"
|
|
681
|
+
},
|
|
682
|
+
{
|
|
683
|
+
"name": "paymasterAndData",
|
|
684
|
+
"type": "bytes",
|
|
685
|
+
"internalType": "bytes"
|
|
686
|
+
},
|
|
687
|
+
{
|
|
688
|
+
"name": "signature",
|
|
689
|
+
"type": "bytes",
|
|
690
|
+
"internalType": "bytes"
|
|
691
|
+
}
|
|
368
692
|
],
|
|
369
693
|
"internalType": "structUserOperation[]",
|
|
370
694
|
"type": "tuple[]"
|
|
371
695
|
},
|
|
372
|
-
{
|
|
696
|
+
{
|
|
697
|
+
"name": "aggregator",
|
|
698
|
+
"type": "address",
|
|
699
|
+
"internalType": "contractIAggregator"
|
|
700
|
+
},
|
|
373
701
|
{ "name": "signature", "type": "bytes", "internalType": "bytes" }
|
|
374
702
|
],
|
|
375
703
|
"internalType": "structIEntryPoint.UserOpsPerAggregator[]",
|
|
376
704
|
"type": "tuple[]"
|
|
377
705
|
},
|
|
378
|
-
{
|
|
706
|
+
{
|
|
707
|
+
"name": "beneficiary",
|
|
708
|
+
"type": "address",
|
|
709
|
+
"internalType": "addresspayable"
|
|
710
|
+
}
|
|
379
711
|
]
|
|
380
712
|
},
|
|
381
713
|
{
|
|
@@ -391,18 +723,46 @@
|
|
|
391
723
|
{ "name": "nonce", "type": "uint256", "internalType": "uint256" },
|
|
392
724
|
{ "name": "initCode", "type": "bytes", "internalType": "bytes" },
|
|
393
725
|
{ "name": "callData", "type": "bytes", "internalType": "bytes" },
|
|
394
|
-
{
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
{
|
|
726
|
+
{
|
|
727
|
+
"name": "callGasLimit",
|
|
728
|
+
"type": "uint256",
|
|
729
|
+
"internalType": "uint256"
|
|
730
|
+
},
|
|
731
|
+
{
|
|
732
|
+
"name": "verificationGasLimit",
|
|
733
|
+
"type": "uint256",
|
|
734
|
+
"internalType": "uint256"
|
|
735
|
+
},
|
|
736
|
+
{
|
|
737
|
+
"name": "preVerificationGas",
|
|
738
|
+
"type": "uint256",
|
|
739
|
+
"internalType": "uint256"
|
|
740
|
+
},
|
|
741
|
+
{
|
|
742
|
+
"name": "maxFeePerGas",
|
|
743
|
+
"type": "uint256",
|
|
744
|
+
"internalType": "uint256"
|
|
745
|
+
},
|
|
746
|
+
{
|
|
747
|
+
"name": "maxPriorityFeePerGas",
|
|
748
|
+
"type": "uint256",
|
|
749
|
+
"internalType": "uint256"
|
|
750
|
+
},
|
|
751
|
+
{
|
|
752
|
+
"name": "paymasterAndData",
|
|
753
|
+
"type": "bytes",
|
|
754
|
+
"internalType": "bytes"
|
|
755
|
+
},
|
|
400
756
|
{ "name": "signature", "type": "bytes", "internalType": "bytes" }
|
|
401
757
|
],
|
|
402
758
|
"internalType": "structUserOperation[]",
|
|
403
759
|
"type": "tuple[]"
|
|
404
760
|
},
|
|
405
|
-
{
|
|
761
|
+
{
|
|
762
|
+
"name": "beneficiary",
|
|
763
|
+
"type": "address",
|
|
764
|
+
"internalType": "addresspayable"
|
|
765
|
+
}
|
|
406
766
|
]
|
|
407
767
|
},
|
|
408
768
|
{
|
|
@@ -410,11 +770,19 @@
|
|
|
410
770
|
"outputs": [],
|
|
411
771
|
"stateMutability": "nonpayable",
|
|
412
772
|
"type": "function",
|
|
413
|
-
"inputs": [
|
|
773
|
+
"inputs": [
|
|
774
|
+
{ "name": "key", "type": "uint192", "internalType": "uint192" }
|
|
775
|
+
]
|
|
414
776
|
},
|
|
415
777
|
{
|
|
416
778
|
"name": "innerHandleOp",
|
|
417
|
-
"outputs": [
|
|
779
|
+
"outputs": [
|
|
780
|
+
{
|
|
781
|
+
"name": "actualGasCost",
|
|
782
|
+
"type": "uint256",
|
|
783
|
+
"internalType": "uint256"
|
|
784
|
+
}
|
|
785
|
+
],
|
|
418
786
|
"stateMutability": "nonpayable",
|
|
419
787
|
"type": "function",
|
|
420
788
|
"inputs": [
|
|
@@ -425,21 +793,61 @@
|
|
|
425
793
|
{
|
|
426
794
|
"name": "mUserOp",
|
|
427
795
|
"components": [
|
|
428
|
-
{
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
{
|
|
434
|
-
|
|
435
|
-
|
|
796
|
+
{
|
|
797
|
+
"name": "sender",
|
|
798
|
+
"type": "address",
|
|
799
|
+
"internalType": "address"
|
|
800
|
+
},
|
|
801
|
+
{
|
|
802
|
+
"name": "nonce",
|
|
803
|
+
"type": "uint256",
|
|
804
|
+
"internalType": "uint256"
|
|
805
|
+
},
|
|
806
|
+
{
|
|
807
|
+
"name": "callGasLimit",
|
|
808
|
+
"type": "uint256",
|
|
809
|
+
"internalType": "uint256"
|
|
810
|
+
},
|
|
811
|
+
{
|
|
812
|
+
"name": "verificationGasLimit",
|
|
813
|
+
"type": "uint256",
|
|
814
|
+
"internalType": "uint256"
|
|
815
|
+
},
|
|
816
|
+
{
|
|
817
|
+
"name": "preVerificationGas",
|
|
818
|
+
"type": "uint256",
|
|
819
|
+
"internalType": "uint256"
|
|
820
|
+
},
|
|
821
|
+
{
|
|
822
|
+
"name": "paymaster",
|
|
823
|
+
"type": "address",
|
|
824
|
+
"internalType": "address"
|
|
825
|
+
},
|
|
826
|
+
{
|
|
827
|
+
"name": "maxFeePerGas",
|
|
828
|
+
"type": "uint256",
|
|
829
|
+
"internalType": "uint256"
|
|
830
|
+
},
|
|
831
|
+
{
|
|
832
|
+
"name": "maxPriorityFeePerGas",
|
|
833
|
+
"type": "uint256",
|
|
834
|
+
"internalType": "uint256"
|
|
835
|
+
}
|
|
436
836
|
],
|
|
437
837
|
"internalType": "structEntryPoint.MemoryUserOp",
|
|
438
838
|
"type": "tuple"
|
|
439
839
|
},
|
|
440
|
-
{
|
|
840
|
+
{
|
|
841
|
+
"name": "userOpHash",
|
|
842
|
+
"type": "bytes32",
|
|
843
|
+
"internalType": "bytes32"
|
|
844
|
+
},
|
|
441
845
|
{ "name": "prefund", "type": "uint256", "internalType": "uint256" },
|
|
442
|
-
{
|
|
846
|
+
{
|
|
847
|
+
"name": "contextOffset",
|
|
848
|
+
"type": "uint256",
|
|
849
|
+
"internalType": "uint256"
|
|
850
|
+
},
|
|
443
851
|
{ "name": "preOpGas", "type": "uint256", "internalType": "uint256" }
|
|
444
852
|
],
|
|
445
853
|
"internalType": "structEntryPoint.UserOpInfo",
|
|
@@ -471,12 +879,36 @@
|
|
|
471
879
|
{ "name": "nonce", "type": "uint256", "internalType": "uint256" },
|
|
472
880
|
{ "name": "initCode", "type": "bytes", "internalType": "bytes" },
|
|
473
881
|
{ "name": "callData", "type": "bytes", "internalType": "bytes" },
|
|
474
|
-
{
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
{
|
|
882
|
+
{
|
|
883
|
+
"name": "callGasLimit",
|
|
884
|
+
"type": "uint256",
|
|
885
|
+
"internalType": "uint256"
|
|
886
|
+
},
|
|
887
|
+
{
|
|
888
|
+
"name": "verificationGasLimit",
|
|
889
|
+
"type": "uint256",
|
|
890
|
+
"internalType": "uint256"
|
|
891
|
+
},
|
|
892
|
+
{
|
|
893
|
+
"name": "preVerificationGas",
|
|
894
|
+
"type": "uint256",
|
|
895
|
+
"internalType": "uint256"
|
|
896
|
+
},
|
|
897
|
+
{
|
|
898
|
+
"name": "maxFeePerGas",
|
|
899
|
+
"type": "uint256",
|
|
900
|
+
"internalType": "uint256"
|
|
901
|
+
},
|
|
902
|
+
{
|
|
903
|
+
"name": "maxPriorityFeePerGas",
|
|
904
|
+
"type": "uint256",
|
|
905
|
+
"internalType": "uint256"
|
|
906
|
+
},
|
|
907
|
+
{
|
|
908
|
+
"name": "paymasterAndData",
|
|
909
|
+
"type": "bytes",
|
|
910
|
+
"internalType": "bytes"
|
|
911
|
+
},
|
|
480
912
|
{ "name": "signature", "type": "bytes", "internalType": "bytes" }
|
|
481
913
|
],
|
|
482
914
|
"internalType": "structUserOperation",
|
|
@@ -499,12 +931,36 @@
|
|
|
499
931
|
{ "name": "nonce", "type": "uint256", "internalType": "uint256" },
|
|
500
932
|
{ "name": "initCode", "type": "bytes", "internalType": "bytes" },
|
|
501
933
|
{ "name": "callData", "type": "bytes", "internalType": "bytes" },
|
|
502
|
-
{
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
{
|
|
934
|
+
{
|
|
935
|
+
"name": "callGasLimit",
|
|
936
|
+
"type": "uint256",
|
|
937
|
+
"internalType": "uint256"
|
|
938
|
+
},
|
|
939
|
+
{
|
|
940
|
+
"name": "verificationGasLimit",
|
|
941
|
+
"type": "uint256",
|
|
942
|
+
"internalType": "uint256"
|
|
943
|
+
},
|
|
944
|
+
{
|
|
945
|
+
"name": "preVerificationGas",
|
|
946
|
+
"type": "uint256",
|
|
947
|
+
"internalType": "uint256"
|
|
948
|
+
},
|
|
949
|
+
{
|
|
950
|
+
"name": "maxFeePerGas",
|
|
951
|
+
"type": "uint256",
|
|
952
|
+
"internalType": "uint256"
|
|
953
|
+
},
|
|
954
|
+
{
|
|
955
|
+
"name": "maxPriorityFeePerGas",
|
|
956
|
+
"type": "uint256",
|
|
957
|
+
"internalType": "uint256"
|
|
958
|
+
},
|
|
959
|
+
{
|
|
960
|
+
"name": "paymasterAndData",
|
|
961
|
+
"type": "bytes",
|
|
962
|
+
"internalType": "bytes"
|
|
963
|
+
},
|
|
508
964
|
{ "name": "signature", "type": "bytes", "internalType": "bytes" }
|
|
509
965
|
],
|
|
510
966
|
"internalType": "structUserOperation",
|
|
@@ -512,13 +968,25 @@
|
|
|
512
968
|
}
|
|
513
969
|
]
|
|
514
970
|
},
|
|
515
|
-
{
|
|
971
|
+
{
|
|
972
|
+
"name": "unlockStake",
|
|
973
|
+
"outputs": [],
|
|
974
|
+
"stateMutability": "nonpayable",
|
|
975
|
+
"type": "function",
|
|
976
|
+
"inputs": []
|
|
977
|
+
},
|
|
516
978
|
{
|
|
517
979
|
"name": "withdrawStake",
|
|
518
980
|
"outputs": [],
|
|
519
981
|
"stateMutability": "nonpayable",
|
|
520
982
|
"type": "function",
|
|
521
|
-
"inputs": [
|
|
983
|
+
"inputs": [
|
|
984
|
+
{
|
|
985
|
+
"name": "withdrawAddress",
|
|
986
|
+
"type": "address",
|
|
987
|
+
"internalType": "addresspayable"
|
|
988
|
+
}
|
|
989
|
+
]
|
|
522
990
|
},
|
|
523
991
|
{
|
|
524
992
|
"name": "withdrawTo",
|
|
@@ -526,8 +994,16 @@
|
|
|
526
994
|
"stateMutability": "nonpayable",
|
|
527
995
|
"type": "function",
|
|
528
996
|
"inputs": [
|
|
529
|
-
{
|
|
530
|
-
|
|
997
|
+
{
|
|
998
|
+
"name": "withdrawAddress",
|
|
999
|
+
"type": "address",
|
|
1000
|
+
"internalType": "addresspayable"
|
|
1001
|
+
},
|
|
1002
|
+
{
|
|
1003
|
+
"name": "withdrawAmount",
|
|
1004
|
+
"type": "uint256",
|
|
1005
|
+
"internalType": "uint256"
|
|
1006
|
+
}
|
|
531
1007
|
]
|
|
532
1008
|
},
|
|
533
1009
|
{ "type": "receive", "stateMutability": "payable" }
|
|
@@ -541,6 +1017,7 @@
|
|
|
541
1017
|
"8453": "0x5FF137D4b0FDCD49DcA30c7CF57E578a026d2789",
|
|
542
1018
|
"36865": "0x5FF137D4b0FDCD49DcA30c7CF57E578a026d2789",
|
|
543
1019
|
"42161": "0x5FF137D4b0FDCD49DcA30c7CF57E578a026d2789",
|
|
544
|
-
"421614": "0x5FF137D4b0FDCD49DcA30c7CF57E578a026d2789"
|
|
1020
|
+
"421614": "0x5FF137D4b0FDCD49DcA30c7CF57E578a026d2789",
|
|
1021
|
+
"534352": "0x5FF137D4b0FDCD49DcA30c7CF57E578a026d2789"
|
|
545
1022
|
}
|
|
546
1023
|
}
|