@gitmyabi/kernel 1.0.16 → 1.0.17
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/README.md +3 -3
- package/contracts/Kernel_json.d.ts +348 -768
- package/contracts/Kernel_json.js +363 -902
- package/contracts/Kernel_json.ts +390 -997
- package/package.json +3 -3
package/contracts/Kernel_json.ts
CHANGED
|
@@ -3,51 +3,39 @@ import { getContract } from 'viem';
|
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
|
-
*
|
|
6
|
+
* Call struct type
|
|
7
7
|
*/
|
|
8
|
-
export type
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
callData: `0x${string}`;
|
|
13
|
-
accountGasLimits: `0x${string}`;
|
|
14
|
-
preVerificationGas: bigint;
|
|
15
|
-
gasFees: `0x${string}`;
|
|
16
|
-
paymasterAndData: `0x${string}`;
|
|
17
|
-
signature: `0x${string}`;
|
|
8
|
+
export type Call = {
|
|
9
|
+
to: `0x${string}`;
|
|
10
|
+
value: bigint;
|
|
11
|
+
data: `0x${string}`;
|
|
18
12
|
};
|
|
19
13
|
|
|
20
14
|
/**
|
|
21
|
-
*
|
|
15
|
+
* ExecutionDetail struct type
|
|
22
16
|
*/
|
|
23
|
-
export type
|
|
24
|
-
|
|
17
|
+
export type ExecutionDetail = {
|
|
18
|
+
validAfter: bigint;
|
|
19
|
+
validUntil: bigint;
|
|
20
|
+
executor: `0x${string}`;
|
|
21
|
+
validator: `0x${string}`;
|
|
25
22
|
};
|
|
26
23
|
|
|
27
24
|
/**
|
|
28
|
-
*
|
|
25
|
+
* UserOperation struct type
|
|
29
26
|
*/
|
|
30
|
-
export type
|
|
27
|
+
export type UserOperation = {
|
|
28
|
+
sender: `0x${string}`;
|
|
31
29
|
nonce: bigint;
|
|
32
|
-
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
policyData: `0x${string}`[];
|
|
42
|
-
};
|
|
43
|
-
|
|
44
|
-
/**
|
|
45
|
-
* SelectorManager.SelectorConfig struct type
|
|
46
|
-
*/
|
|
47
|
-
export type SelectorManager_SelectorConfig = {
|
|
48
|
-
hook: `0x${string}`;
|
|
49
|
-
target: `0x${string}`;
|
|
50
|
-
callType: `0x${string}`;
|
|
30
|
+
initCode: `0x${string}`;
|
|
31
|
+
callData: `0x${string}`;
|
|
32
|
+
callGasLimit: bigint;
|
|
33
|
+
verificationGasLimit: bigint;
|
|
34
|
+
preVerificationGas: bigint;
|
|
35
|
+
maxFeePerGas: bigint;
|
|
36
|
+
maxPriorityFeePerGas: bigint;
|
|
37
|
+
paymasterAndData: `0x${string}`;
|
|
38
|
+
signature: `0x${string}`;
|
|
51
39
|
};
|
|
52
40
|
/**
|
|
53
41
|
* Kernel_json ABI
|
|
@@ -59,7 +47,7 @@ export const Kernel_jsonAbi = [
|
|
|
59
47
|
"inputs": [
|
|
60
48
|
{
|
|
61
49
|
"internalType": "contract IEntryPoint",
|
|
62
|
-
"name": "
|
|
50
|
+
"name": "_entryPoint",
|
|
63
51
|
"type": "address"
|
|
64
52
|
}
|
|
65
53
|
],
|
|
@@ -68,230 +56,71 @@ export const Kernel_jsonAbi = [
|
|
|
68
56
|
},
|
|
69
57
|
{
|
|
70
58
|
"inputs": [],
|
|
71
|
-
"name": "
|
|
72
|
-
"type": "error"
|
|
73
|
-
},
|
|
74
|
-
{
|
|
75
|
-
"inputs": [],
|
|
76
|
-
"name": "ExecutionReverted",
|
|
77
|
-
"type": "error"
|
|
78
|
-
},
|
|
79
|
-
{
|
|
80
|
-
"inputs": [],
|
|
81
|
-
"name": "InvalidCallType",
|
|
82
|
-
"type": "error"
|
|
83
|
-
},
|
|
84
|
-
{
|
|
85
|
-
"inputs": [],
|
|
86
|
-
"name": "InvalidCaller",
|
|
87
|
-
"type": "error"
|
|
88
|
-
},
|
|
89
|
-
{
|
|
90
|
-
"inputs": [],
|
|
91
|
-
"name": "InvalidExecutor",
|
|
92
|
-
"type": "error"
|
|
93
|
-
},
|
|
94
|
-
{
|
|
95
|
-
"inputs": [],
|
|
96
|
-
"name": "InvalidFallback",
|
|
97
|
-
"type": "error"
|
|
98
|
-
},
|
|
99
|
-
{
|
|
100
|
-
"inputs": [],
|
|
101
|
-
"name": "InvalidMode",
|
|
102
|
-
"type": "error"
|
|
103
|
-
},
|
|
104
|
-
{
|
|
105
|
-
"inputs": [],
|
|
106
|
-
"name": "InvalidModuleType",
|
|
107
|
-
"type": "error"
|
|
108
|
-
},
|
|
109
|
-
{
|
|
110
|
-
"inputs": [],
|
|
111
|
-
"name": "InvalidNonce",
|
|
112
|
-
"type": "error"
|
|
113
|
-
},
|
|
114
|
-
{
|
|
115
|
-
"inputs": [],
|
|
116
|
-
"name": "InvalidSelector",
|
|
117
|
-
"type": "error"
|
|
118
|
-
},
|
|
119
|
-
{
|
|
120
|
-
"inputs": [],
|
|
121
|
-
"name": "InvalidSignature",
|
|
122
|
-
"type": "error"
|
|
123
|
-
},
|
|
124
|
-
{
|
|
125
|
-
"inputs": [],
|
|
126
|
-
"name": "InvalidValidationType",
|
|
127
|
-
"type": "error"
|
|
128
|
-
},
|
|
129
|
-
{
|
|
130
|
-
"inputs": [],
|
|
131
|
-
"name": "InvalidValidator",
|
|
59
|
+
"name": "AlreadyInitialized",
|
|
132
60
|
"type": "error"
|
|
133
61
|
},
|
|
134
62
|
{
|
|
135
63
|
"inputs": [],
|
|
136
|
-
"name": "
|
|
64
|
+
"name": "DeprecatedOperation",
|
|
137
65
|
"type": "error"
|
|
138
66
|
},
|
|
139
67
|
{
|
|
140
68
|
"inputs": [],
|
|
141
|
-
"name": "
|
|
69
|
+
"name": "DisabledMode",
|
|
142
70
|
"type": "error"
|
|
143
71
|
},
|
|
144
72
|
{
|
|
145
73
|
"inputs": [],
|
|
146
|
-
"name": "
|
|
74
|
+
"name": "NotAuthorizedCaller",
|
|
147
75
|
"type": "error"
|
|
148
76
|
},
|
|
149
77
|
{
|
|
150
78
|
"inputs": [],
|
|
151
|
-
"name": "
|
|
152
|
-
"type": "error"
|
|
153
|
-
},
|
|
154
|
-
{
|
|
155
|
-
"inputs": [],
|
|
156
|
-
"name": "PermissionNotAlllowedForSignature",
|
|
157
|
-
"type": "error"
|
|
158
|
-
},
|
|
159
|
-
{
|
|
160
|
-
"inputs": [],
|
|
161
|
-
"name": "PermissionNotAlllowedForUserOp",
|
|
162
|
-
"type": "error"
|
|
163
|
-
},
|
|
164
|
-
{
|
|
165
|
-
"inputs": [],
|
|
166
|
-
"name": "PolicyDataTooLarge",
|
|
167
|
-
"type": "error"
|
|
168
|
-
},
|
|
169
|
-
{
|
|
170
|
-
"inputs": [
|
|
171
|
-
{
|
|
172
|
-
"internalType": "uint256",
|
|
173
|
-
"name": "i",
|
|
174
|
-
"type": "uint256"
|
|
175
|
-
}
|
|
176
|
-
],
|
|
177
|
-
"name": "PolicyFailed",
|
|
178
|
-
"type": "error"
|
|
179
|
-
},
|
|
180
|
-
{
|
|
181
|
-
"inputs": [],
|
|
182
|
-
"name": "PolicySignatureOrderError",
|
|
183
|
-
"type": "error"
|
|
184
|
-
},
|
|
185
|
-
{
|
|
186
|
-
"inputs": [],
|
|
187
|
-
"name": "RootValidatorCannotBeRemoved",
|
|
188
|
-
"type": "error"
|
|
189
|
-
},
|
|
190
|
-
{
|
|
191
|
-
"inputs": [],
|
|
192
|
-
"name": "SignerPrefixNotPresent",
|
|
79
|
+
"name": "NotEntryPoint",
|
|
193
80
|
"type": "error"
|
|
194
81
|
},
|
|
195
82
|
{
|
|
196
83
|
"anonymous": false,
|
|
197
84
|
"inputs": [
|
|
198
85
|
{
|
|
199
|
-
"indexed":
|
|
200
|
-
"internalType": "uint256",
|
|
201
|
-
"name": "moduleTypeId",
|
|
202
|
-
"type": "uint256"
|
|
203
|
-
},
|
|
204
|
-
{
|
|
205
|
-
"indexed": false,
|
|
86
|
+
"indexed": true,
|
|
206
87
|
"internalType": "address",
|
|
207
|
-
"name": "
|
|
88
|
+
"name": "oldValidator",
|
|
208
89
|
"type": "address"
|
|
209
|
-
}
|
|
210
|
-
],
|
|
211
|
-
"name": "ModuleInstalled",
|
|
212
|
-
"type": "event"
|
|
213
|
-
},
|
|
214
|
-
{
|
|
215
|
-
"anonymous": false,
|
|
216
|
-
"inputs": [
|
|
90
|
+
},
|
|
217
91
|
{
|
|
218
|
-
"indexed":
|
|
92
|
+
"indexed": true,
|
|
219
93
|
"internalType": "address",
|
|
220
|
-
"name": "
|
|
94
|
+
"name": "newValidator",
|
|
221
95
|
"type": "address"
|
|
222
|
-
},
|
|
223
|
-
{
|
|
224
|
-
"indexed": false,
|
|
225
|
-
"internalType": "bool",
|
|
226
|
-
"name": "result",
|
|
227
|
-
"type": "bool"
|
|
228
96
|
}
|
|
229
97
|
],
|
|
230
|
-
"name": "
|
|
98
|
+
"name": "DefaultValidatorChanged",
|
|
231
99
|
"type": "event"
|
|
232
100
|
},
|
|
233
101
|
{
|
|
234
102
|
"anonymous": false,
|
|
235
103
|
"inputs": [
|
|
236
104
|
{
|
|
237
|
-
"indexed":
|
|
238
|
-
"internalType": "
|
|
239
|
-
"name": "
|
|
240
|
-
"type": "
|
|
105
|
+
"indexed": true,
|
|
106
|
+
"internalType": "bytes4",
|
|
107
|
+
"name": "selector",
|
|
108
|
+
"type": "bytes4"
|
|
241
109
|
},
|
|
242
110
|
{
|
|
243
|
-
"indexed":
|
|
111
|
+
"indexed": true,
|
|
244
112
|
"internalType": "address",
|
|
245
|
-
"name": "
|
|
113
|
+
"name": "executor",
|
|
246
114
|
"type": "address"
|
|
247
|
-
}
|
|
248
|
-
],
|
|
249
|
-
"name": "ModuleUninstalled",
|
|
250
|
-
"type": "event"
|
|
251
|
-
},
|
|
252
|
-
{
|
|
253
|
-
"anonymous": false,
|
|
254
|
-
"inputs": [
|
|
255
|
-
{
|
|
256
|
-
"indexed": false,
|
|
257
|
-
"internalType": "uint32",
|
|
258
|
-
"name": "nonce",
|
|
259
|
-
"type": "uint32"
|
|
260
|
-
}
|
|
261
|
-
],
|
|
262
|
-
"name": "NonceInvalidated",
|
|
263
|
-
"type": "event"
|
|
264
|
-
},
|
|
265
|
-
{
|
|
266
|
-
"anonymous": false,
|
|
267
|
-
"inputs": [
|
|
268
|
-
{
|
|
269
|
-
"indexed": false,
|
|
270
|
-
"internalType": "PermissionId",
|
|
271
|
-
"name": "permission",
|
|
272
|
-
"type": "bytes4"
|
|
273
115
|
},
|
|
274
116
|
{
|
|
275
|
-
"indexed":
|
|
276
|
-
"internalType": "
|
|
277
|
-
"name": "
|
|
278
|
-
"type": "
|
|
279
|
-
}
|
|
280
|
-
],
|
|
281
|
-
"name": "PermissionInstalled",
|
|
282
|
-
"type": "event"
|
|
283
|
-
},
|
|
284
|
-
{
|
|
285
|
-
"anonymous": false,
|
|
286
|
-
"inputs": [
|
|
287
|
-
{
|
|
288
|
-
"indexed": false,
|
|
289
|
-
"internalType": "PermissionId",
|
|
290
|
-
"name": "permission",
|
|
291
|
-
"type": "bytes4"
|
|
117
|
+
"indexed": true,
|
|
118
|
+
"internalType": "address",
|
|
119
|
+
"name": "validator",
|
|
120
|
+
"type": "address"
|
|
292
121
|
}
|
|
293
122
|
],
|
|
294
|
-
"name": "
|
|
123
|
+
"name": "ExecutionChanged",
|
|
295
124
|
"type": "event"
|
|
296
125
|
},
|
|
297
126
|
{
|
|
@@ -313,136 +142,34 @@ export const Kernel_jsonAbi = [
|
|
|
313
142
|
"name": "Received",
|
|
314
143
|
"type": "event"
|
|
315
144
|
},
|
|
316
|
-
{
|
|
317
|
-
"anonymous": false,
|
|
318
|
-
"inputs": [
|
|
319
|
-
{
|
|
320
|
-
"indexed": false,
|
|
321
|
-
"internalType": "ValidationId",
|
|
322
|
-
"name": "rootValidator",
|
|
323
|
-
"type": "bytes21"
|
|
324
|
-
}
|
|
325
|
-
],
|
|
326
|
-
"name": "RootValidatorUpdated",
|
|
327
|
-
"type": "event"
|
|
328
|
-
},
|
|
329
|
-
{
|
|
330
|
-
"anonymous": false,
|
|
331
|
-
"inputs": [
|
|
332
|
-
{
|
|
333
|
-
"indexed": false,
|
|
334
|
-
"internalType": "bytes4",
|
|
335
|
-
"name": "selector",
|
|
336
|
-
"type": "bytes4"
|
|
337
|
-
},
|
|
338
|
-
{
|
|
339
|
-
"indexed": false,
|
|
340
|
-
"internalType": "ValidationId",
|
|
341
|
-
"name": "vId",
|
|
342
|
-
"type": "bytes21"
|
|
343
|
-
},
|
|
344
|
-
{
|
|
345
|
-
"indexed": false,
|
|
346
|
-
"internalType": "bool",
|
|
347
|
-
"name": "allowed",
|
|
348
|
-
"type": "bool"
|
|
349
|
-
}
|
|
350
|
-
],
|
|
351
|
-
"name": "SelectorSet",
|
|
352
|
-
"type": "event"
|
|
353
|
-
},
|
|
354
|
-
{
|
|
355
|
-
"anonymous": false,
|
|
356
|
-
"inputs": [
|
|
357
|
-
{
|
|
358
|
-
"indexed": false,
|
|
359
|
-
"internalType": "uint256",
|
|
360
|
-
"name": "batchExecutionindex",
|
|
361
|
-
"type": "uint256"
|
|
362
|
-
},
|
|
363
|
-
{
|
|
364
|
-
"indexed": false,
|
|
365
|
-
"internalType": "bytes",
|
|
366
|
-
"name": "result",
|
|
367
|
-
"type": "bytes"
|
|
368
|
-
}
|
|
369
|
-
],
|
|
370
|
-
"name": "TryExecuteUnsuccessful",
|
|
371
|
-
"type": "event"
|
|
372
|
-
},
|
|
373
145
|
{
|
|
374
146
|
"anonymous": false,
|
|
375
147
|
"inputs": [
|
|
376
148
|
{
|
|
377
149
|
"indexed": true,
|
|
378
150
|
"internalType": "address",
|
|
379
|
-
"name": "
|
|
151
|
+
"name": "newImplementation",
|
|
380
152
|
"type": "address"
|
|
381
153
|
}
|
|
382
154
|
],
|
|
383
155
|
"name": "Upgraded",
|
|
384
156
|
"type": "event"
|
|
385
157
|
},
|
|
386
|
-
{
|
|
387
|
-
"anonymous": false,
|
|
388
|
-
"inputs": [
|
|
389
|
-
{
|
|
390
|
-
"indexed": false,
|
|
391
|
-
"internalType": "contract IValidator",
|
|
392
|
-
"name": "validator",
|
|
393
|
-
"type": "address"
|
|
394
|
-
},
|
|
395
|
-
{
|
|
396
|
-
"indexed": false,
|
|
397
|
-
"internalType": "uint32",
|
|
398
|
-
"name": "nonce",
|
|
399
|
-
"type": "uint32"
|
|
400
|
-
}
|
|
401
|
-
],
|
|
402
|
-
"name": "ValidatorInstalled",
|
|
403
|
-
"type": "event"
|
|
404
|
-
},
|
|
405
|
-
{
|
|
406
|
-
"anonymous": false,
|
|
407
|
-
"inputs": [
|
|
408
|
-
{
|
|
409
|
-
"indexed": false,
|
|
410
|
-
"internalType": "contract IValidator",
|
|
411
|
-
"name": "validator",
|
|
412
|
-
"type": "address"
|
|
413
|
-
}
|
|
414
|
-
],
|
|
415
|
-
"name": "ValidatorUninstalled",
|
|
416
|
-
"type": "event"
|
|
417
|
-
},
|
|
418
158
|
{
|
|
419
159
|
"stateMutability": "payable",
|
|
420
160
|
"type": "fallback"
|
|
421
161
|
},
|
|
422
162
|
{
|
|
423
|
-
"inputs": [
|
|
424
|
-
"name": "accountId",
|
|
425
|
-
"outputs": [
|
|
426
|
-
{
|
|
427
|
-
"internalType": "string",
|
|
428
|
-
"name": "accountImplementationId",
|
|
429
|
-
"type": "string"
|
|
430
|
-
}
|
|
431
|
-
],
|
|
432
|
-
"stateMutability": "pure",
|
|
433
|
-
"type": "function"
|
|
434
|
-
},
|
|
435
|
-
{
|
|
436
|
-
"inputs": [],
|
|
437
|
-
"name": "currentNonce",
|
|
438
|
-
"outputs": [
|
|
163
|
+
"inputs": [
|
|
439
164
|
{
|
|
440
|
-
"internalType": "
|
|
441
|
-
"name": "",
|
|
442
|
-
"type": "
|
|
165
|
+
"internalType": "bytes4",
|
|
166
|
+
"name": "_disableFlag",
|
|
167
|
+
"type": "bytes4"
|
|
443
168
|
}
|
|
444
169
|
],
|
|
445
|
-
"
|
|
170
|
+
"name": "disableMode",
|
|
171
|
+
"outputs": [],
|
|
172
|
+
"stateMutability": "payable",
|
|
446
173
|
"type": "function"
|
|
447
174
|
},
|
|
448
175
|
{
|
|
@@ -490,7 +217,7 @@ export const Kernel_jsonAbi = [
|
|
|
490
217
|
},
|
|
491
218
|
{
|
|
492
219
|
"inputs": [],
|
|
493
|
-
"name": "
|
|
220
|
+
"name": "entryPoint",
|
|
494
221
|
"outputs": [
|
|
495
222
|
{
|
|
496
223
|
"internalType": "contract IEntryPoint",
|
|
@@ -504,42 +231,28 @@ export const Kernel_jsonAbi = [
|
|
|
504
231
|
{
|
|
505
232
|
"inputs": [
|
|
506
233
|
{
|
|
507
|
-
"internalType": "
|
|
508
|
-
"name": "
|
|
509
|
-
"type": "
|
|
234
|
+
"internalType": "address",
|
|
235
|
+
"name": "to",
|
|
236
|
+
"type": "address"
|
|
510
237
|
},
|
|
511
238
|
{
|
|
512
|
-
"internalType": "
|
|
513
|
-
"name": "
|
|
514
|
-
"type": "
|
|
515
|
-
}
|
|
516
|
-
],
|
|
517
|
-
"name": "execute",
|
|
518
|
-
"outputs": [],
|
|
519
|
-
"stateMutability": "payable",
|
|
520
|
-
"type": "function"
|
|
521
|
-
},
|
|
522
|
-
{
|
|
523
|
-
"inputs": [
|
|
524
|
-
{
|
|
525
|
-
"internalType": "ExecMode",
|
|
526
|
-
"name": "execMode",
|
|
527
|
-
"type": "bytes32"
|
|
239
|
+
"internalType": "uint256",
|
|
240
|
+
"name": "value",
|
|
241
|
+
"type": "uint256"
|
|
528
242
|
},
|
|
529
243
|
{
|
|
530
244
|
"internalType": "bytes",
|
|
531
|
-
"name": "
|
|
245
|
+
"name": "data",
|
|
532
246
|
"type": "bytes"
|
|
533
|
-
}
|
|
534
|
-
],
|
|
535
|
-
"name": "executeFromExecutor",
|
|
536
|
-
"outputs": [
|
|
247
|
+
},
|
|
537
248
|
{
|
|
538
|
-
"internalType": "
|
|
539
|
-
"name": "
|
|
540
|
-
"type": "
|
|
249
|
+
"internalType": "enum Operation",
|
|
250
|
+
"name": "_operation",
|
|
251
|
+
"type": "uint8"
|
|
541
252
|
}
|
|
542
253
|
],
|
|
254
|
+
"name": "execute",
|
|
255
|
+
"outputs": [],
|
|
543
256
|
"stateMutability": "payable",
|
|
544
257
|
"type": "function"
|
|
545
258
|
},
|
|
@@ -549,61 +262,26 @@ export const Kernel_jsonAbi = [
|
|
|
549
262
|
"components": [
|
|
550
263
|
{
|
|
551
264
|
"internalType": "address",
|
|
552
|
-
"name": "
|
|
265
|
+
"name": "to",
|
|
553
266
|
"type": "address"
|
|
554
267
|
},
|
|
555
268
|
{
|
|
556
269
|
"internalType": "uint256",
|
|
557
|
-
"name": "
|
|
270
|
+
"name": "value",
|
|
558
271
|
"type": "uint256"
|
|
559
272
|
},
|
|
560
273
|
{
|
|
561
274
|
"internalType": "bytes",
|
|
562
|
-
"name": "
|
|
563
|
-
"type": "bytes"
|
|
564
|
-
},
|
|
565
|
-
{
|
|
566
|
-
"internalType": "bytes",
|
|
567
|
-
"name": "callData",
|
|
568
|
-
"type": "bytes"
|
|
569
|
-
},
|
|
570
|
-
{
|
|
571
|
-
"internalType": "bytes32",
|
|
572
|
-
"name": "accountGasLimits",
|
|
573
|
-
"type": "bytes32"
|
|
574
|
-
},
|
|
575
|
-
{
|
|
576
|
-
"internalType": "uint256",
|
|
577
|
-
"name": "preVerificationGas",
|
|
578
|
-
"type": "uint256"
|
|
579
|
-
},
|
|
580
|
-
{
|
|
581
|
-
"internalType": "bytes32",
|
|
582
|
-
"name": "gasFees",
|
|
583
|
-
"type": "bytes32"
|
|
584
|
-
},
|
|
585
|
-
{
|
|
586
|
-
"internalType": "bytes",
|
|
587
|
-
"name": "paymasterAndData",
|
|
588
|
-
"type": "bytes"
|
|
589
|
-
},
|
|
590
|
-
{
|
|
591
|
-
"internalType": "bytes",
|
|
592
|
-
"name": "signature",
|
|
275
|
+
"name": "data",
|
|
593
276
|
"type": "bytes"
|
|
594
277
|
}
|
|
595
278
|
],
|
|
596
|
-
"internalType": "struct
|
|
597
|
-
"name": "
|
|
598
|
-
"type": "tuple"
|
|
599
|
-
},
|
|
600
|
-
{
|
|
601
|
-
"internalType": "bytes32",
|
|
602
|
-
"name": "userOpHash",
|
|
603
|
-
"type": "bytes32"
|
|
279
|
+
"internalType": "struct Call[]",
|
|
280
|
+
"name": "calls",
|
|
281
|
+
"type": "tuple[]"
|
|
604
282
|
}
|
|
605
283
|
],
|
|
606
|
-
"name": "
|
|
284
|
+
"name": "executeBatch",
|
|
607
285
|
"outputs": [],
|
|
608
286
|
"stateMutability": "payable",
|
|
609
287
|
"type": "function"
|
|
@@ -611,184 +289,149 @@ export const Kernel_jsonAbi = [
|
|
|
611
289
|
{
|
|
612
290
|
"inputs": [
|
|
613
291
|
{
|
|
614
|
-
"internalType": "
|
|
615
|
-
"name": "
|
|
616
|
-
"type": "address"
|
|
617
|
-
}
|
|
618
|
-
],
|
|
619
|
-
"name": "executorConfig",
|
|
620
|
-
"outputs": [
|
|
621
|
-
{
|
|
622
|
-
"components": [
|
|
623
|
-
{
|
|
624
|
-
"internalType": "contract IHook",
|
|
625
|
-
"name": "hook",
|
|
626
|
-
"type": "address"
|
|
627
|
-
}
|
|
628
|
-
],
|
|
629
|
-
"internalType": "struct ExecutorManager.ExecutorConfig",
|
|
630
|
-
"name": "",
|
|
631
|
-
"type": "tuple"
|
|
632
|
-
}
|
|
633
|
-
],
|
|
634
|
-
"stateMutability": "view",
|
|
635
|
-
"type": "function"
|
|
636
|
-
},
|
|
637
|
-
{
|
|
638
|
-
"inputs": [
|
|
639
|
-
{
|
|
640
|
-
"internalType": "ValidationId",
|
|
641
|
-
"name": "_rootValidator",
|
|
642
|
-
"type": "bytes21"
|
|
643
|
-
},
|
|
644
|
-
{
|
|
645
|
-
"internalType": "contract IHook",
|
|
646
|
-
"name": "hook",
|
|
292
|
+
"internalType": "address",
|
|
293
|
+
"name": "to",
|
|
647
294
|
"type": "address"
|
|
648
295
|
},
|
|
649
296
|
{
|
|
650
297
|
"internalType": "bytes",
|
|
651
|
-
"name": "
|
|
652
|
-
"type": "bytes"
|
|
653
|
-
},
|
|
654
|
-
{
|
|
655
|
-
"internalType": "bytes",
|
|
656
|
-
"name": "hookData",
|
|
298
|
+
"name": "data",
|
|
657
299
|
"type": "bytes"
|
|
658
300
|
}
|
|
659
301
|
],
|
|
660
|
-
"name": "
|
|
302
|
+
"name": "executeDelegateCall",
|
|
661
303
|
"outputs": [],
|
|
662
|
-
"stateMutability": "
|
|
304
|
+
"stateMutability": "payable",
|
|
663
305
|
"type": "function"
|
|
664
306
|
},
|
|
665
307
|
{
|
|
666
|
-
"inputs": [
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
"name": "moduleType",
|
|
670
|
-
"type": "uint256"
|
|
671
|
-
},
|
|
308
|
+
"inputs": [],
|
|
309
|
+
"name": "getDefaultValidator",
|
|
310
|
+
"outputs": [
|
|
672
311
|
{
|
|
673
|
-
"internalType": "
|
|
674
|
-
"name": "
|
|
312
|
+
"internalType": "contract IKernelValidator",
|
|
313
|
+
"name": "validator",
|
|
675
314
|
"type": "address"
|
|
676
|
-
}
|
|
315
|
+
}
|
|
316
|
+
],
|
|
317
|
+
"stateMutability": "view",
|
|
318
|
+
"type": "function"
|
|
319
|
+
},
|
|
320
|
+
{
|
|
321
|
+
"inputs": [],
|
|
322
|
+
"name": "getDisabledMode",
|
|
323
|
+
"outputs": [
|
|
677
324
|
{
|
|
678
|
-
"internalType": "
|
|
679
|
-
"name": "
|
|
680
|
-
"type": "
|
|
325
|
+
"internalType": "bytes4",
|
|
326
|
+
"name": "disabled",
|
|
327
|
+
"type": "bytes4"
|
|
681
328
|
}
|
|
682
329
|
],
|
|
683
|
-
"
|
|
684
|
-
"outputs": [],
|
|
685
|
-
"stateMutability": "payable",
|
|
330
|
+
"stateMutability": "view",
|
|
686
331
|
"type": "function"
|
|
687
332
|
},
|
|
688
333
|
{
|
|
689
334
|
"inputs": [
|
|
690
335
|
{
|
|
691
|
-
"internalType": "
|
|
692
|
-
"name": "
|
|
693
|
-
"type": "
|
|
694
|
-
}
|
|
336
|
+
"internalType": "bytes4",
|
|
337
|
+
"name": "_selector",
|
|
338
|
+
"type": "bytes4"
|
|
339
|
+
}
|
|
340
|
+
],
|
|
341
|
+
"name": "getExecution",
|
|
342
|
+
"outputs": [
|
|
695
343
|
{
|
|
696
344
|
"components": [
|
|
697
345
|
{
|
|
698
|
-
"internalType": "
|
|
699
|
-
"name": "
|
|
700
|
-
"type": "
|
|
346
|
+
"internalType": "ValidAfter",
|
|
347
|
+
"name": "validAfter",
|
|
348
|
+
"type": "uint48"
|
|
349
|
+
},
|
|
350
|
+
{
|
|
351
|
+
"internalType": "ValidUntil",
|
|
352
|
+
"name": "validUntil",
|
|
353
|
+
"type": "uint48"
|
|
354
|
+
},
|
|
355
|
+
{
|
|
356
|
+
"internalType": "address",
|
|
357
|
+
"name": "executor",
|
|
358
|
+
"type": "address"
|
|
701
359
|
},
|
|
702
360
|
{
|
|
703
|
-
"internalType": "contract
|
|
704
|
-
"name": "
|
|
361
|
+
"internalType": "contract IKernelValidator",
|
|
362
|
+
"name": "validator",
|
|
705
363
|
"type": "address"
|
|
706
364
|
}
|
|
707
365
|
],
|
|
708
|
-
"internalType": "struct
|
|
709
|
-
"name": "
|
|
710
|
-
"type": "tuple
|
|
711
|
-
},
|
|
712
|
-
{
|
|
713
|
-
"internalType": "bytes[]",
|
|
714
|
-
"name": "validationData",
|
|
715
|
-
"type": "bytes[]"
|
|
716
|
-
},
|
|
717
|
-
{
|
|
718
|
-
"internalType": "bytes[]",
|
|
719
|
-
"name": "hookData",
|
|
720
|
-
"type": "bytes[]"
|
|
366
|
+
"internalType": "struct ExecutionDetail",
|
|
367
|
+
"name": "",
|
|
368
|
+
"type": "tuple"
|
|
721
369
|
}
|
|
722
370
|
],
|
|
723
|
-
"
|
|
724
|
-
"outputs": [],
|
|
725
|
-
"stateMutability": "payable",
|
|
371
|
+
"stateMutability": "view",
|
|
726
372
|
"type": "function"
|
|
727
373
|
},
|
|
728
374
|
{
|
|
729
|
-
"inputs": [
|
|
375
|
+
"inputs": [],
|
|
376
|
+
"name": "getLastDisabledTime",
|
|
377
|
+
"outputs": [
|
|
730
378
|
{
|
|
731
|
-
"internalType": "
|
|
732
|
-
"name": "
|
|
733
|
-
"type": "
|
|
379
|
+
"internalType": "uint48",
|
|
380
|
+
"name": "",
|
|
381
|
+
"type": "uint48"
|
|
734
382
|
}
|
|
735
383
|
],
|
|
736
|
-
"
|
|
737
|
-
"outputs": [],
|
|
738
|
-
"stateMutability": "payable",
|
|
384
|
+
"stateMutability": "view",
|
|
739
385
|
"type": "function"
|
|
740
386
|
},
|
|
741
387
|
{
|
|
742
388
|
"inputs": [
|
|
743
389
|
{
|
|
744
|
-
"internalType": "
|
|
745
|
-
"name": "
|
|
746
|
-
"type": "
|
|
747
|
-
},
|
|
748
|
-
{
|
|
749
|
-
"internalType": "bytes4",
|
|
750
|
-
"name": "selector",
|
|
751
|
-
"type": "bytes4"
|
|
390
|
+
"internalType": "uint192",
|
|
391
|
+
"name": "key",
|
|
392
|
+
"type": "uint192"
|
|
752
393
|
}
|
|
753
394
|
],
|
|
754
|
-
"name": "
|
|
395
|
+
"name": "getNonce",
|
|
755
396
|
"outputs": [
|
|
756
397
|
{
|
|
757
|
-
"internalType": "
|
|
398
|
+
"internalType": "uint256",
|
|
758
399
|
"name": "",
|
|
759
|
-
"type": "
|
|
400
|
+
"type": "uint256"
|
|
760
401
|
}
|
|
761
402
|
],
|
|
762
403
|
"stateMutability": "view",
|
|
763
404
|
"type": "function"
|
|
764
405
|
},
|
|
765
406
|
{
|
|
766
|
-
"inputs": [
|
|
407
|
+
"inputs": [],
|
|
408
|
+
"name": "getNonce",
|
|
409
|
+
"outputs": [
|
|
767
410
|
{
|
|
768
411
|
"internalType": "uint256",
|
|
769
|
-
"name": "
|
|
412
|
+
"name": "",
|
|
770
413
|
"type": "uint256"
|
|
771
|
-
}
|
|
414
|
+
}
|
|
415
|
+
],
|
|
416
|
+
"stateMutability": "view",
|
|
417
|
+
"type": "function"
|
|
418
|
+
},
|
|
419
|
+
{
|
|
420
|
+
"inputs": [
|
|
772
421
|
{
|
|
773
|
-
"internalType": "
|
|
774
|
-
"name": "
|
|
422
|
+
"internalType": "contract IKernelValidator",
|
|
423
|
+
"name": "_defaultValidator",
|
|
775
424
|
"type": "address"
|
|
776
425
|
},
|
|
777
426
|
{
|
|
778
427
|
"internalType": "bytes",
|
|
779
|
-
"name": "
|
|
428
|
+
"name": "_data",
|
|
780
429
|
"type": "bytes"
|
|
781
430
|
}
|
|
782
431
|
],
|
|
783
|
-
"name": "
|
|
784
|
-
"outputs": [
|
|
785
|
-
|
|
786
|
-
"internalType": "bool",
|
|
787
|
-
"name": "",
|
|
788
|
-
"type": "bool"
|
|
789
|
-
}
|
|
790
|
-
],
|
|
791
|
-
"stateMutability": "view",
|
|
432
|
+
"name": "initialize",
|
|
433
|
+
"outputs": [],
|
|
434
|
+
"stateMutability": "payable",
|
|
792
435
|
"type": "function"
|
|
793
436
|
},
|
|
794
437
|
{
|
|
@@ -815,50 +458,14 @@ export const Kernel_jsonAbi = [
|
|
|
815
458
|
"stateMutability": "view",
|
|
816
459
|
"type": "function"
|
|
817
460
|
},
|
|
818
|
-
{
|
|
819
|
-
"inputs": [
|
|
820
|
-
{
|
|
821
|
-
"internalType": "PermissionId",
|
|
822
|
-
"name": "pId",
|
|
823
|
-
"type": "bytes4"
|
|
824
|
-
}
|
|
825
|
-
],
|
|
826
|
-
"name": "permissionConfig",
|
|
827
|
-
"outputs": [
|
|
828
|
-
{
|
|
829
|
-
"components": [
|
|
830
|
-
{
|
|
831
|
-
"internalType": "PassFlag",
|
|
832
|
-
"name": "permissionFlag",
|
|
833
|
-
"type": "bytes2"
|
|
834
|
-
},
|
|
835
|
-
{
|
|
836
|
-
"internalType": "contract ISigner",
|
|
837
|
-
"name": "signer",
|
|
838
|
-
"type": "address"
|
|
839
|
-
},
|
|
840
|
-
{
|
|
841
|
-
"internalType": "PolicyData[]",
|
|
842
|
-
"name": "policyData",
|
|
843
|
-
"type": "bytes22[]"
|
|
844
|
-
}
|
|
845
|
-
],
|
|
846
|
-
"internalType": "struct ValidationManager.PermissionConfig",
|
|
847
|
-
"name": "",
|
|
848
|
-
"type": "tuple"
|
|
849
|
-
}
|
|
850
|
-
],
|
|
851
|
-
"stateMutability": "view",
|
|
852
|
-
"type": "function"
|
|
853
|
-
},
|
|
854
461
|
{
|
|
855
462
|
"inputs": [],
|
|
856
|
-
"name": "
|
|
463
|
+
"name": "name",
|
|
857
464
|
"outputs": [
|
|
858
465
|
{
|
|
859
|
-
"internalType": "
|
|
466
|
+
"internalType": "string",
|
|
860
467
|
"name": "",
|
|
861
|
-
"type": "
|
|
468
|
+
"type": "string"
|
|
862
469
|
}
|
|
863
470
|
],
|
|
864
471
|
"stateMutability": "view",
|
|
@@ -867,53 +474,76 @@ export const Kernel_jsonAbi = [
|
|
|
867
474
|
{
|
|
868
475
|
"inputs": [
|
|
869
476
|
{
|
|
870
|
-
"internalType": "
|
|
871
|
-
"name": "
|
|
872
|
-
"type": "
|
|
477
|
+
"internalType": "address",
|
|
478
|
+
"name": "",
|
|
479
|
+
"type": "address"
|
|
480
|
+
},
|
|
481
|
+
{
|
|
482
|
+
"internalType": "address",
|
|
483
|
+
"name": "",
|
|
484
|
+
"type": "address"
|
|
485
|
+
},
|
|
486
|
+
{
|
|
487
|
+
"internalType": "uint256[]",
|
|
488
|
+
"name": "",
|
|
489
|
+
"type": "uint256[]"
|
|
490
|
+
},
|
|
491
|
+
{
|
|
492
|
+
"internalType": "uint256[]",
|
|
493
|
+
"name": "",
|
|
494
|
+
"type": "uint256[]"
|
|
495
|
+
},
|
|
496
|
+
{
|
|
497
|
+
"internalType": "bytes",
|
|
498
|
+
"name": "",
|
|
499
|
+
"type": "bytes"
|
|
873
500
|
}
|
|
874
501
|
],
|
|
875
|
-
"name": "
|
|
502
|
+
"name": "onERC1155BatchReceived",
|
|
876
503
|
"outputs": [
|
|
877
504
|
{
|
|
878
|
-
"
|
|
879
|
-
{
|
|
880
|
-
"internalType": "contract IHook",
|
|
881
|
-
"name": "hook",
|
|
882
|
-
"type": "address"
|
|
883
|
-
},
|
|
884
|
-
{
|
|
885
|
-
"internalType": "address",
|
|
886
|
-
"name": "target",
|
|
887
|
-
"type": "address"
|
|
888
|
-
},
|
|
889
|
-
{
|
|
890
|
-
"internalType": "CallType",
|
|
891
|
-
"name": "callType",
|
|
892
|
-
"type": "bytes1"
|
|
893
|
-
}
|
|
894
|
-
],
|
|
895
|
-
"internalType": "struct SelectorManager.SelectorConfig",
|
|
505
|
+
"internalType": "bytes4",
|
|
896
506
|
"name": "",
|
|
897
|
-
"type": "
|
|
507
|
+
"type": "bytes4"
|
|
898
508
|
}
|
|
899
509
|
],
|
|
900
|
-
"stateMutability": "
|
|
510
|
+
"stateMutability": "pure",
|
|
901
511
|
"type": "function"
|
|
902
512
|
},
|
|
903
513
|
{
|
|
904
514
|
"inputs": [
|
|
905
515
|
{
|
|
906
|
-
"internalType": "
|
|
907
|
-
"name": "
|
|
908
|
-
"type": "
|
|
516
|
+
"internalType": "address",
|
|
517
|
+
"name": "",
|
|
518
|
+
"type": "address"
|
|
519
|
+
},
|
|
520
|
+
{
|
|
521
|
+
"internalType": "address",
|
|
522
|
+
"name": "",
|
|
523
|
+
"type": "address"
|
|
524
|
+
},
|
|
525
|
+
{
|
|
526
|
+
"internalType": "uint256",
|
|
527
|
+
"name": "",
|
|
528
|
+
"type": "uint256"
|
|
529
|
+
},
|
|
530
|
+
{
|
|
531
|
+
"internalType": "uint256",
|
|
532
|
+
"name": "",
|
|
533
|
+
"type": "uint256"
|
|
534
|
+
},
|
|
535
|
+
{
|
|
536
|
+
"internalType": "bytes",
|
|
537
|
+
"name": "",
|
|
538
|
+
"type": "bytes"
|
|
909
539
|
}
|
|
910
540
|
],
|
|
911
|
-
"name": "
|
|
541
|
+
"name": "onERC1155Received",
|
|
912
542
|
"outputs": [
|
|
913
543
|
{
|
|
914
|
-
"internalType": "
|
|
544
|
+
"internalType": "bytes4",
|
|
915
545
|
"name": "",
|
|
916
|
-
"type": "
|
|
546
|
+
"type": "bytes4"
|
|
917
547
|
}
|
|
918
548
|
],
|
|
919
549
|
"stateMutability": "pure",
|
|
@@ -921,18 +551,33 @@ export const Kernel_jsonAbi = [
|
|
|
921
551
|
},
|
|
922
552
|
{
|
|
923
553
|
"inputs": [
|
|
554
|
+
{
|
|
555
|
+
"internalType": "address",
|
|
556
|
+
"name": "",
|
|
557
|
+
"type": "address"
|
|
558
|
+
},
|
|
559
|
+
{
|
|
560
|
+
"internalType": "address",
|
|
561
|
+
"name": "",
|
|
562
|
+
"type": "address"
|
|
563
|
+
},
|
|
924
564
|
{
|
|
925
565
|
"internalType": "uint256",
|
|
926
|
-
"name": "
|
|
566
|
+
"name": "",
|
|
927
567
|
"type": "uint256"
|
|
568
|
+
},
|
|
569
|
+
{
|
|
570
|
+
"internalType": "bytes",
|
|
571
|
+
"name": "",
|
|
572
|
+
"type": "bytes"
|
|
928
573
|
}
|
|
929
574
|
],
|
|
930
|
-
"name": "
|
|
575
|
+
"name": "onERC721Received",
|
|
931
576
|
"outputs": [
|
|
932
577
|
{
|
|
933
|
-
"internalType": "
|
|
578
|
+
"internalType": "bytes4",
|
|
934
579
|
"name": "",
|
|
935
|
-
"type": "
|
|
580
|
+
"type": "bytes4"
|
|
936
581
|
}
|
|
937
582
|
],
|
|
938
583
|
"stateMutability": "pure",
|
|
@@ -941,22 +586,17 @@ export const Kernel_jsonAbi = [
|
|
|
941
586
|
{
|
|
942
587
|
"inputs": [
|
|
943
588
|
{
|
|
944
|
-
"internalType": "
|
|
945
|
-
"name": "
|
|
946
|
-
"type": "uint256"
|
|
947
|
-
},
|
|
948
|
-
{
|
|
949
|
-
"internalType": "address",
|
|
950
|
-
"name": "module",
|
|
589
|
+
"internalType": "contract IKernelValidator",
|
|
590
|
+
"name": "_defaultValidator",
|
|
951
591
|
"type": "address"
|
|
952
592
|
},
|
|
953
593
|
{
|
|
954
594
|
"internalType": "bytes",
|
|
955
|
-
"name": "
|
|
595
|
+
"name": "_data",
|
|
956
596
|
"type": "bytes"
|
|
957
597
|
}
|
|
958
598
|
],
|
|
959
|
-
"name": "
|
|
599
|
+
"name": "setDefaultValidator",
|
|
960
600
|
"outputs": [],
|
|
961
601
|
"stateMutability": "payable",
|
|
962
602
|
"type": "function"
|
|
@@ -964,22 +604,37 @@ export const Kernel_jsonAbi = [
|
|
|
964
604
|
{
|
|
965
605
|
"inputs": [
|
|
966
606
|
{
|
|
967
|
-
"internalType": "
|
|
968
|
-
"name": "
|
|
969
|
-
"type": "
|
|
607
|
+
"internalType": "bytes4",
|
|
608
|
+
"name": "_selector",
|
|
609
|
+
"type": "bytes4"
|
|
970
610
|
},
|
|
971
611
|
{
|
|
972
|
-
"internalType": "
|
|
973
|
-
"name": "
|
|
974
|
-
"type": "
|
|
612
|
+
"internalType": "address",
|
|
613
|
+
"name": "_executor",
|
|
614
|
+
"type": "address"
|
|
615
|
+
},
|
|
616
|
+
{
|
|
617
|
+
"internalType": "contract IKernelValidator",
|
|
618
|
+
"name": "_validator",
|
|
619
|
+
"type": "address"
|
|
620
|
+
},
|
|
621
|
+
{
|
|
622
|
+
"internalType": "ValidUntil",
|
|
623
|
+
"name": "_validUntil",
|
|
624
|
+
"type": "uint48"
|
|
625
|
+
},
|
|
626
|
+
{
|
|
627
|
+
"internalType": "ValidAfter",
|
|
628
|
+
"name": "_validAfter",
|
|
629
|
+
"type": "uint48"
|
|
975
630
|
},
|
|
976
631
|
{
|
|
977
632
|
"internalType": "bytes",
|
|
978
|
-
"name": "
|
|
633
|
+
"name": "_enableData",
|
|
979
634
|
"type": "bytes"
|
|
980
635
|
}
|
|
981
636
|
],
|
|
982
|
-
"name": "
|
|
637
|
+
"name": "setExecution",
|
|
983
638
|
"outputs": [],
|
|
984
639
|
"stateMutability": "payable",
|
|
985
640
|
"type": "function"
|
|
@@ -998,13 +653,24 @@ export const Kernel_jsonAbi = [
|
|
|
998
653
|
"type": "function"
|
|
999
654
|
},
|
|
1000
655
|
{
|
|
1001
|
-
"inputs": [
|
|
1002
|
-
|
|
656
|
+
"inputs": [
|
|
657
|
+
{
|
|
658
|
+
"internalType": "bytes32",
|
|
659
|
+
"name": "hash",
|
|
660
|
+
"type": "bytes32"
|
|
661
|
+
},
|
|
662
|
+
{
|
|
663
|
+
"internalType": "bytes",
|
|
664
|
+
"name": "signature",
|
|
665
|
+
"type": "bytes"
|
|
666
|
+
}
|
|
667
|
+
],
|
|
668
|
+
"name": "validateSignature",
|
|
1003
669
|
"outputs": [
|
|
1004
670
|
{
|
|
1005
|
-
"internalType": "
|
|
671
|
+
"internalType": "ValidationData",
|
|
1006
672
|
"name": "",
|
|
1007
|
-
"type": "
|
|
673
|
+
"type": "uint256"
|
|
1008
674
|
}
|
|
1009
675
|
],
|
|
1010
676
|
"stateMutability": "view",
|
|
@@ -1035,9 +701,14 @@ export const Kernel_jsonAbi = [
|
|
|
1035
701
|
"type": "bytes"
|
|
1036
702
|
},
|
|
1037
703
|
{
|
|
1038
|
-
"internalType": "
|
|
1039
|
-
"name": "
|
|
1040
|
-
"type": "
|
|
704
|
+
"internalType": "uint256",
|
|
705
|
+
"name": "callGasLimit",
|
|
706
|
+
"type": "uint256"
|
|
707
|
+
},
|
|
708
|
+
{
|
|
709
|
+
"internalType": "uint256",
|
|
710
|
+
"name": "verificationGasLimit",
|
|
711
|
+
"type": "uint256"
|
|
1041
712
|
},
|
|
1042
713
|
{
|
|
1043
714
|
"internalType": "uint256",
|
|
@@ -1045,9 +716,14 @@ export const Kernel_jsonAbi = [
|
|
|
1045
716
|
"type": "uint256"
|
|
1046
717
|
},
|
|
1047
718
|
{
|
|
1048
|
-
"internalType": "
|
|
1049
|
-
"name": "
|
|
1050
|
-
"type": "
|
|
719
|
+
"internalType": "uint256",
|
|
720
|
+
"name": "maxFeePerGas",
|
|
721
|
+
"type": "uint256"
|
|
722
|
+
},
|
|
723
|
+
{
|
|
724
|
+
"internalType": "uint256",
|
|
725
|
+
"name": "maxPriorityFeePerGas",
|
|
726
|
+
"type": "uint256"
|
|
1051
727
|
},
|
|
1052
728
|
{
|
|
1053
729
|
"internalType": "bytes",
|
|
@@ -1060,8 +736,8 @@ export const Kernel_jsonAbi = [
|
|
|
1060
736
|
"type": "bytes"
|
|
1061
737
|
}
|
|
1062
738
|
],
|
|
1063
|
-
"internalType": "struct
|
|
1064
|
-
"name": "
|
|
739
|
+
"internalType": "struct UserOperation",
|
|
740
|
+
"name": "_userOp",
|
|
1065
741
|
"type": "tuple"
|
|
1066
742
|
},
|
|
1067
743
|
{
|
|
@@ -1087,31 +763,13 @@ export const Kernel_jsonAbi = [
|
|
|
1087
763
|
"type": "function"
|
|
1088
764
|
},
|
|
1089
765
|
{
|
|
1090
|
-
"inputs": [
|
|
1091
|
-
|
|
1092
|
-
"internalType": "ValidationId",
|
|
1093
|
-
"name": "vId",
|
|
1094
|
-
"type": "bytes21"
|
|
1095
|
-
}
|
|
1096
|
-
],
|
|
1097
|
-
"name": "validationConfig",
|
|
766
|
+
"inputs": [],
|
|
767
|
+
"name": "version",
|
|
1098
768
|
"outputs": [
|
|
1099
769
|
{
|
|
1100
|
-
"
|
|
1101
|
-
{
|
|
1102
|
-
"internalType": "uint32",
|
|
1103
|
-
"name": "nonce",
|
|
1104
|
-
"type": "uint32"
|
|
1105
|
-
},
|
|
1106
|
-
{
|
|
1107
|
-
"internalType": "contract IHook",
|
|
1108
|
-
"name": "hook",
|
|
1109
|
-
"type": "address"
|
|
1110
|
-
}
|
|
1111
|
-
],
|
|
1112
|
-
"internalType": "struct ValidationManager.ValidationConfig",
|
|
770
|
+
"internalType": "string",
|
|
1113
771
|
"name": "",
|
|
1114
|
-
"type": "
|
|
772
|
+
"type": "string"
|
|
1115
773
|
}
|
|
1116
774
|
],
|
|
1117
775
|
"stateMutability": "view",
|
|
@@ -1205,22 +863,6 @@ export class Kernel_json {
|
|
|
1205
863
|
return this.contract;
|
|
1206
864
|
}
|
|
1207
865
|
|
|
1208
|
-
/**
|
|
1209
|
-
* accountId
|
|
1210
|
-
* pure
|
|
1211
|
-
*/
|
|
1212
|
-
async accountId(): Promise<string> {
|
|
1213
|
-
return this.contract.read.accountId() as Promise<string>;
|
|
1214
|
-
}
|
|
1215
|
-
|
|
1216
|
-
/**
|
|
1217
|
-
* currentNonce
|
|
1218
|
-
* view
|
|
1219
|
-
*/
|
|
1220
|
-
async currentNonce(): Promise<bigint> {
|
|
1221
|
-
return this.contract.read.currentNonce() as Promise<bigint>;
|
|
1222
|
-
}
|
|
1223
|
-
|
|
1224
866
|
/**
|
|
1225
867
|
* eip712Domain
|
|
1226
868
|
* view
|
|
@@ -1230,130 +872,113 @@ export class Kernel_json {
|
|
|
1230
872
|
}
|
|
1231
873
|
|
|
1232
874
|
/**
|
|
1233
|
-
*
|
|
875
|
+
* entryPoint
|
|
1234
876
|
* view
|
|
1235
877
|
*/
|
|
1236
|
-
async
|
|
1237
|
-
return this.contract.read.
|
|
878
|
+
async entryPoint(): Promise<`0x${string}`> {
|
|
879
|
+
return this.contract.read.entryPoint() as Promise<`0x${string}`>;
|
|
1238
880
|
}
|
|
1239
881
|
|
|
1240
882
|
/**
|
|
1241
|
-
*
|
|
883
|
+
* getDefaultValidator
|
|
1242
884
|
* view
|
|
1243
885
|
*/
|
|
1244
|
-
async
|
|
1245
|
-
return this.contract.read.
|
|
886
|
+
async getDefaultValidator(): Promise<`0x${string}`> {
|
|
887
|
+
return this.contract.read.getDefaultValidator() as Promise<`0x${string}`>;
|
|
1246
888
|
}
|
|
1247
889
|
|
|
1248
890
|
/**
|
|
1249
|
-
*
|
|
891
|
+
* getDisabledMode
|
|
1250
892
|
* view
|
|
1251
893
|
*/
|
|
1252
|
-
async
|
|
1253
|
-
return this.contract.read.
|
|
894
|
+
async getDisabledMode(): Promise<`0x${string}`> {
|
|
895
|
+
return this.contract.read.getDisabledMode() as Promise<`0x${string}`>;
|
|
1254
896
|
}
|
|
1255
897
|
|
|
1256
898
|
/**
|
|
1257
|
-
*
|
|
899
|
+
* getExecution
|
|
1258
900
|
* view
|
|
1259
901
|
*/
|
|
1260
|
-
async
|
|
1261
|
-
return this.contract.read.
|
|
902
|
+
async getExecution(_selector: `0x${string}`): Promise<ExecutionDetail> {
|
|
903
|
+
return this.contract.read.getExecution([_selector] as const) as Promise<ExecutionDetail>;
|
|
1262
904
|
}
|
|
1263
905
|
|
|
1264
906
|
/**
|
|
1265
|
-
*
|
|
907
|
+
* getLastDisabledTime
|
|
1266
908
|
* view
|
|
1267
909
|
*/
|
|
1268
|
-
async
|
|
1269
|
-
return this.contract.read.
|
|
910
|
+
async getLastDisabledTime(): Promise<bigint> {
|
|
911
|
+
return this.contract.read.getLastDisabledTime() as Promise<bigint>;
|
|
1270
912
|
}
|
|
1271
913
|
|
|
1272
|
-
|
|
1273
|
-
|
|
1274
|
-
|
|
1275
|
-
|
|
1276
|
-
async permissionConfig(pId: `0x${string}`): Promise<ValidationManager_PermissionConfig> {
|
|
1277
|
-
return this.contract.read.permissionConfig([pId] as const) as Promise<ValidationManager_PermissionConfig>;
|
|
914
|
+
async getNonce(key: bigint): Promise<bigint>;
|
|
915
|
+
async getNonce(): Promise<bigint>;
|
|
916
|
+
async getNonce(...args: any[]): Promise<any> {
|
|
917
|
+
return this.contract.read.getNonce(args as any) as Promise<any>;
|
|
1278
918
|
}
|
|
1279
919
|
|
|
1280
920
|
/**
|
|
1281
|
-
*
|
|
921
|
+
* isValidSignature
|
|
1282
922
|
* view
|
|
1283
923
|
*/
|
|
1284
|
-
async
|
|
1285
|
-
return this.contract.read.
|
|
924
|
+
async isValidSignature(hash: `0x${string}`, signature: `0x${string}`): Promise<`0x${string}`> {
|
|
925
|
+
return this.contract.read.isValidSignature([hash, signature] as const) as Promise<`0x${string}`>;
|
|
1286
926
|
}
|
|
1287
927
|
|
|
1288
928
|
/**
|
|
1289
|
-
*
|
|
929
|
+
* name
|
|
1290
930
|
* view
|
|
1291
931
|
*/
|
|
1292
|
-
async
|
|
1293
|
-
return this.contract.read.
|
|
932
|
+
async name(): Promise<string> {
|
|
933
|
+
return this.contract.read.name() as Promise<string>;
|
|
1294
934
|
}
|
|
1295
935
|
|
|
1296
936
|
/**
|
|
1297
|
-
*
|
|
937
|
+
* onERC1155BatchReceived
|
|
1298
938
|
* pure
|
|
1299
939
|
*/
|
|
1300
|
-
async
|
|
1301
|
-
return this.contract.read.
|
|
940
|
+
async onERC1155BatchReceived(arg0: `0x${string}`, arg1: `0x${string}`, arg2: bigint[], arg3: bigint[], arg4: `0x${string}`): Promise<`0x${string}`> {
|
|
941
|
+
return this.contract.read.onERC1155BatchReceived([arg0, arg1, arg2, arg3, arg4] as const) as Promise<`0x${string}`>;
|
|
1302
942
|
}
|
|
1303
943
|
|
|
1304
944
|
/**
|
|
1305
|
-
*
|
|
945
|
+
* onERC1155Received
|
|
1306
946
|
* pure
|
|
1307
947
|
*/
|
|
1308
|
-
async
|
|
1309
|
-
return this.contract.read.
|
|
948
|
+
async onERC1155Received(arg0: `0x${string}`, arg1: `0x${string}`, arg2: bigint, arg3: bigint, arg4: `0x${string}`): Promise<`0x${string}`> {
|
|
949
|
+
return this.contract.read.onERC1155Received([arg0, arg1, arg2, arg3, arg4] as const) as Promise<`0x${string}`>;
|
|
1310
950
|
}
|
|
1311
951
|
|
|
1312
952
|
/**
|
|
1313
|
-
*
|
|
1314
|
-
*
|
|
953
|
+
* onERC721Received
|
|
954
|
+
* pure
|
|
1315
955
|
*/
|
|
1316
|
-
async
|
|
1317
|
-
return this.contract.read.
|
|
956
|
+
async onERC721Received(arg0: `0x${string}`, arg1: `0x${string}`, arg2: bigint, arg3: `0x${string}`): Promise<`0x${string}`> {
|
|
957
|
+
return this.contract.read.onERC721Received([arg0, arg1, arg2, arg3] as const) as Promise<`0x${string}`>;
|
|
1318
958
|
}
|
|
1319
959
|
|
|
1320
960
|
/**
|
|
1321
|
-
*
|
|
961
|
+
* validateSignature
|
|
1322
962
|
* view
|
|
1323
963
|
*/
|
|
1324
|
-
async
|
|
1325
|
-
return this.contract.read.
|
|
964
|
+
async validateSignature(hash: `0x${string}`, signature: `0x${string}`): Promise<bigint> {
|
|
965
|
+
return this.contract.read.validateSignature([hash, signature] as const) as Promise<bigint>;
|
|
1326
966
|
}
|
|
1327
967
|
|
|
1328
968
|
/**
|
|
1329
|
-
*
|
|
1330
|
-
*
|
|
1331
|
-
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
969
|
+
* version
|
|
970
|
+
* view
|
|
1332
971
|
*/
|
|
1333
|
-
async
|
|
1334
|
-
|
|
1335
|
-
authorizationList?: import('viem').AuthorizationList;
|
|
1336
|
-
chain?: import('viem').Chain | null;
|
|
1337
|
-
dataSuffix?: `0x${string}`;
|
|
1338
|
-
gas?: bigint;
|
|
1339
|
-
gasPrice?: bigint;
|
|
1340
|
-
maxFeePerGas?: bigint;
|
|
1341
|
-
maxPriorityFeePerGas?: bigint;
|
|
1342
|
-
nonce?: number;
|
|
1343
|
-
value?: bigint;
|
|
1344
|
-
}): Promise<`0x${string}`> {
|
|
1345
|
-
if (!this.contract.write) {
|
|
1346
|
-
throw new Error('Wallet client is required for write operations');
|
|
1347
|
-
}
|
|
1348
|
-
return this.contract.write.execute([execMode, executionCalldata] as const, options) as Promise<`0x${string}`>;
|
|
972
|
+
async version(): Promise<string> {
|
|
973
|
+
return this.contract.read.version() as Promise<string>;
|
|
1349
974
|
}
|
|
1350
975
|
|
|
1351
976
|
/**
|
|
1352
|
-
*
|
|
977
|
+
* disableMode
|
|
1353
978
|
* payable
|
|
1354
979
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1355
980
|
*/
|
|
1356
|
-
async
|
|
981
|
+
async disableMode(_disableFlag: `0x${string}`, options?: {
|
|
1357
982
|
accessList?: import('viem').AccessList;
|
|
1358
983
|
authorizationList?: import('viem').AuthorizationList;
|
|
1359
984
|
chain?: import('viem').Chain | null;
|
|
@@ -1368,38 +993,15 @@ export class Kernel_json {
|
|
|
1368
993
|
if (!this.contract.write) {
|
|
1369
994
|
throw new Error('Wallet client is required for write operations');
|
|
1370
995
|
}
|
|
1371
|
-
return this.contract.write.
|
|
996
|
+
return this.contract.write.disableMode([_disableFlag] as const, options) as Promise<`0x${string}`>;
|
|
1372
997
|
}
|
|
1373
998
|
|
|
1374
999
|
/**
|
|
1375
|
-
*
|
|
1000
|
+
* execute
|
|
1376
1001
|
* payable
|
|
1377
1002
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1378
1003
|
*/
|
|
1379
|
-
async
|
|
1380
|
-
accessList?: import('viem').AccessList;
|
|
1381
|
-
authorizationList?: import('viem').AuthorizationList;
|
|
1382
|
-
chain?: import('viem').Chain | null;
|
|
1383
|
-
dataSuffix?: `0x${string}`;
|
|
1384
|
-
gas?: bigint;
|
|
1385
|
-
gasPrice?: bigint;
|
|
1386
|
-
maxFeePerGas?: bigint;
|
|
1387
|
-
maxPriorityFeePerGas?: bigint;
|
|
1388
|
-
nonce?: number;
|
|
1389
|
-
value?: bigint;
|
|
1390
|
-
}): Promise<`0x${string}`> {
|
|
1391
|
-
if (!this.contract.write) {
|
|
1392
|
-
throw new Error('Wallet client is required for write operations');
|
|
1393
|
-
}
|
|
1394
|
-
return this.contract.write.executeUserOp([userOp, userOpHash] as const, options) as Promise<`0x${string}`>;
|
|
1395
|
-
}
|
|
1396
|
-
|
|
1397
|
-
/**
|
|
1398
|
-
* initialize
|
|
1399
|
-
* nonpayable
|
|
1400
|
-
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1401
|
-
*/
|
|
1402
|
-
async initialize(_rootValidator: `0x${string}`, hook: `0x${string}`, validatorData: `0x${string}`, hookData: `0x${string}`, options?: {
|
|
1004
|
+
async execute(to: `0x${string}`, value: bigint, data: `0x${string}`, _operation: bigint, options?: {
|
|
1403
1005
|
accessList?: import('viem').AccessList;
|
|
1404
1006
|
authorizationList?: import('viem').AuthorizationList;
|
|
1405
1007
|
chain?: import('viem').Chain | null;
|
|
@@ -1414,15 +1016,15 @@ export class Kernel_json {
|
|
|
1414
1016
|
if (!this.contract.write) {
|
|
1415
1017
|
throw new Error('Wallet client is required for write operations');
|
|
1416
1018
|
}
|
|
1417
|
-
return this.contract.write.
|
|
1019
|
+
return this.contract.write.execute([to, value, data, _operation] as const, options) as Promise<`0x${string}`>;
|
|
1418
1020
|
}
|
|
1419
1021
|
|
|
1420
1022
|
/**
|
|
1421
|
-
*
|
|
1023
|
+
* executeBatch
|
|
1422
1024
|
* payable
|
|
1423
1025
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1424
1026
|
*/
|
|
1425
|
-
async
|
|
1027
|
+
async executeBatch(calls: Call[], options?: {
|
|
1426
1028
|
accessList?: import('viem').AccessList;
|
|
1427
1029
|
authorizationList?: import('viem').AuthorizationList;
|
|
1428
1030
|
chain?: import('viem').Chain | null;
|
|
@@ -1437,15 +1039,15 @@ export class Kernel_json {
|
|
|
1437
1039
|
if (!this.contract.write) {
|
|
1438
1040
|
throw new Error('Wallet client is required for write operations');
|
|
1439
1041
|
}
|
|
1440
|
-
return this.contract.write.
|
|
1042
|
+
return this.contract.write.executeBatch([calls] as const, options) as Promise<`0x${string}`>;
|
|
1441
1043
|
}
|
|
1442
1044
|
|
|
1443
1045
|
/**
|
|
1444
|
-
*
|
|
1046
|
+
* executeDelegateCall
|
|
1445
1047
|
* payable
|
|
1446
1048
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1447
1049
|
*/
|
|
1448
|
-
async
|
|
1050
|
+
async executeDelegateCall(to: `0x${string}`, data: `0x${string}`, options?: {
|
|
1449
1051
|
accessList?: import('viem').AccessList;
|
|
1450
1052
|
authorizationList?: import('viem').AuthorizationList;
|
|
1451
1053
|
chain?: import('viem').Chain | null;
|
|
@@ -1460,15 +1062,15 @@ export class Kernel_json {
|
|
|
1460
1062
|
if (!this.contract.write) {
|
|
1461
1063
|
throw new Error('Wallet client is required for write operations');
|
|
1462
1064
|
}
|
|
1463
|
-
return this.contract.write.
|
|
1065
|
+
return this.contract.write.executeDelegateCall([to, data] as const, options) as Promise<`0x${string}`>;
|
|
1464
1066
|
}
|
|
1465
1067
|
|
|
1466
1068
|
/**
|
|
1467
|
-
*
|
|
1069
|
+
* initialize
|
|
1468
1070
|
* payable
|
|
1469
1071
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1470
1072
|
*/
|
|
1471
|
-
async
|
|
1073
|
+
async initialize(_defaultValidator: `0x${string}`, _data: `0x${string}`, options?: {
|
|
1472
1074
|
accessList?: import('viem').AccessList;
|
|
1473
1075
|
authorizationList?: import('viem').AuthorizationList;
|
|
1474
1076
|
chain?: import('viem').Chain | null;
|
|
@@ -1483,15 +1085,15 @@ export class Kernel_json {
|
|
|
1483
1085
|
if (!this.contract.write) {
|
|
1484
1086
|
throw new Error('Wallet client is required for write operations');
|
|
1485
1087
|
}
|
|
1486
|
-
return this.contract.write.
|
|
1088
|
+
return this.contract.write.initialize([_defaultValidator, _data] as const, options) as Promise<`0x${string}`>;
|
|
1487
1089
|
}
|
|
1488
1090
|
|
|
1489
1091
|
/**
|
|
1490
|
-
*
|
|
1092
|
+
* setDefaultValidator
|
|
1491
1093
|
* payable
|
|
1492
1094
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1493
1095
|
*/
|
|
1494
|
-
async
|
|
1096
|
+
async setDefaultValidator(_defaultValidator: `0x${string}`, _data: `0x${string}`, options?: {
|
|
1495
1097
|
accessList?: import('viem').AccessList;
|
|
1496
1098
|
authorizationList?: import('viem').AuthorizationList;
|
|
1497
1099
|
chain?: import('viem').Chain | null;
|
|
@@ -1506,15 +1108,15 @@ export class Kernel_json {
|
|
|
1506
1108
|
if (!this.contract.write) {
|
|
1507
1109
|
throw new Error('Wallet client is required for write operations');
|
|
1508
1110
|
}
|
|
1509
|
-
return this.contract.write.
|
|
1111
|
+
return this.contract.write.setDefaultValidator([_defaultValidator, _data] as const, options) as Promise<`0x${string}`>;
|
|
1510
1112
|
}
|
|
1511
1113
|
|
|
1512
1114
|
/**
|
|
1513
|
-
*
|
|
1115
|
+
* setExecution
|
|
1514
1116
|
* payable
|
|
1515
1117
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1516
1118
|
*/
|
|
1517
|
-
async
|
|
1119
|
+
async setExecution(_selector: `0x${string}`, _executor: `0x${string}`, _validator: `0x${string}`, _validUntil: bigint, _validAfter: bigint, _enableData: `0x${string}`, options?: {
|
|
1518
1120
|
accessList?: import('viem').AccessList;
|
|
1519
1121
|
authorizationList?: import('viem').AuthorizationList;
|
|
1520
1122
|
chain?: import('viem').Chain | null;
|
|
@@ -1529,7 +1131,7 @@ export class Kernel_json {
|
|
|
1529
1131
|
if (!this.contract.write) {
|
|
1530
1132
|
throw new Error('Wallet client is required for write operations');
|
|
1531
1133
|
}
|
|
1532
|
-
return this.contract.write.
|
|
1134
|
+
return this.contract.write.setExecution([_selector, _executor, _validator, _validUntil, _validAfter, _enableData] as const, options) as Promise<`0x${string}`>;
|
|
1533
1135
|
}
|
|
1534
1136
|
|
|
1535
1137
|
/**
|
|
@@ -1560,7 +1162,7 @@ export class Kernel_json {
|
|
|
1560
1162
|
* payable
|
|
1561
1163
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1562
1164
|
*/
|
|
1563
|
-
async validateUserOp(
|
|
1165
|
+
async validateUserOp(_userOp: UserOperation, userOpHash: `0x${string}`, missingAccountFunds: bigint, options?: {
|
|
1564
1166
|
accessList?: import('viem').AccessList;
|
|
1565
1167
|
authorizationList?: import('viem').AuthorizationList;
|
|
1566
1168
|
chain?: import('viem').Chain | null;
|
|
@@ -1575,7 +1177,7 @@ export class Kernel_json {
|
|
|
1575
1177
|
if (!this.contract.write) {
|
|
1576
1178
|
throw new Error('Wallet client is required for write operations');
|
|
1577
1179
|
}
|
|
1578
|
-
return this.contract.write.validateUserOp([
|
|
1180
|
+
return this.contract.write.validateUserOp([_userOp, userOpHash, missingAccountFunds] as const, options) as Promise<`0x${string}`>;
|
|
1579
1181
|
}
|
|
1580
1182
|
|
|
1581
1183
|
|
|
@@ -1595,49 +1197,11 @@ export class Kernel_json {
|
|
|
1595
1197
|
}
|
|
1596
1198
|
return {
|
|
1597
1199
|
/**
|
|
1598
|
-
* Simulate
|
|
1599
|
-
* Returns gas estimate and result without sending transaction
|
|
1600
|
-
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1601
|
-
*/
|
|
1602
|
-
async execute(execMode: `0x${string}`, executionCalldata: `0x${string}`, options?: {
|
|
1603
|
-
accessList?: import('viem').AccessList;
|
|
1604
|
-
authorizationList?: import('viem').AuthorizationList;
|
|
1605
|
-
chain?: import('viem').Chain | null;
|
|
1606
|
-
dataSuffix?: `0x${string}`;
|
|
1607
|
-
gas?: bigint;
|
|
1608
|
-
gasPrice?: bigint;
|
|
1609
|
-
maxFeePerGas?: bigint;
|
|
1610
|
-
maxPriorityFeePerGas?: bigint;
|
|
1611
|
-
nonce?: number;
|
|
1612
|
-
value?: bigint;
|
|
1613
|
-
}): Promise<void> {
|
|
1614
|
-
return contract.simulate.execute([execMode, executionCalldata] as const, options) as Promise<void>;
|
|
1615
|
-
},
|
|
1616
|
-
/**
|
|
1617
|
-
* Simulate executeFromExecutor
|
|
1618
|
-
* Returns gas estimate and result without sending transaction
|
|
1619
|
-
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1620
|
-
*/
|
|
1621
|
-
async executeFromExecutor(execMode: `0x${string}`, executionCalldata: `0x${string}`, options?: {
|
|
1622
|
-
accessList?: import('viem').AccessList;
|
|
1623
|
-
authorizationList?: import('viem').AuthorizationList;
|
|
1624
|
-
chain?: import('viem').Chain | null;
|
|
1625
|
-
dataSuffix?: `0x${string}`;
|
|
1626
|
-
gas?: bigint;
|
|
1627
|
-
gasPrice?: bigint;
|
|
1628
|
-
maxFeePerGas?: bigint;
|
|
1629
|
-
maxPriorityFeePerGas?: bigint;
|
|
1630
|
-
nonce?: number;
|
|
1631
|
-
value?: bigint;
|
|
1632
|
-
}): Promise<`0x${string}`[]> {
|
|
1633
|
-
return contract.simulate.executeFromExecutor([execMode, executionCalldata] as const, options) as Promise<`0x${string}`[]>;
|
|
1634
|
-
},
|
|
1635
|
-
/**
|
|
1636
|
-
* Simulate executeUserOp
|
|
1200
|
+
* Simulate disableMode
|
|
1637
1201
|
* Returns gas estimate and result without sending transaction
|
|
1638
1202
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1639
1203
|
*/
|
|
1640
|
-
async
|
|
1204
|
+
async disableMode(_disableFlag: `0x${string}`, options?: {
|
|
1641
1205
|
accessList?: import('viem').AccessList;
|
|
1642
1206
|
authorizationList?: import('viem').AuthorizationList;
|
|
1643
1207
|
chain?: import('viem').Chain | null;
|
|
@@ -1649,14 +1213,14 @@ export class Kernel_json {
|
|
|
1649
1213
|
nonce?: number;
|
|
1650
1214
|
value?: bigint;
|
|
1651
1215
|
}): Promise<void> {
|
|
1652
|
-
return contract.simulate.
|
|
1216
|
+
return contract.simulate.disableMode([_disableFlag] as const, options) as Promise<void>;
|
|
1653
1217
|
},
|
|
1654
1218
|
/**
|
|
1655
|
-
* Simulate
|
|
1219
|
+
* Simulate execute
|
|
1656
1220
|
* Returns gas estimate and result without sending transaction
|
|
1657
1221
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1658
1222
|
*/
|
|
1659
|
-
async
|
|
1223
|
+
async execute(to: `0x${string}`, value: bigint, data: `0x${string}`, _operation: bigint, options?: {
|
|
1660
1224
|
accessList?: import('viem').AccessList;
|
|
1661
1225
|
authorizationList?: import('viem').AuthorizationList;
|
|
1662
1226
|
chain?: import('viem').Chain | null;
|
|
@@ -1668,14 +1232,14 @@ export class Kernel_json {
|
|
|
1668
1232
|
nonce?: number;
|
|
1669
1233
|
value?: bigint;
|
|
1670
1234
|
}): Promise<void> {
|
|
1671
|
-
return contract.simulate.
|
|
1235
|
+
return contract.simulate.execute([to, value, data, _operation] as const, options) as Promise<void>;
|
|
1672
1236
|
},
|
|
1673
1237
|
/**
|
|
1674
|
-
* Simulate
|
|
1238
|
+
* Simulate executeBatch
|
|
1675
1239
|
* Returns gas estimate and result without sending transaction
|
|
1676
1240
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1677
1241
|
*/
|
|
1678
|
-
async
|
|
1242
|
+
async executeBatch(calls: Call[], options?: {
|
|
1679
1243
|
accessList?: import('viem').AccessList;
|
|
1680
1244
|
authorizationList?: import('viem').AuthorizationList;
|
|
1681
1245
|
chain?: import('viem').Chain | null;
|
|
@@ -1687,14 +1251,14 @@ export class Kernel_json {
|
|
|
1687
1251
|
nonce?: number;
|
|
1688
1252
|
value?: bigint;
|
|
1689
1253
|
}): Promise<void> {
|
|
1690
|
-
return contract.simulate.
|
|
1254
|
+
return contract.simulate.executeBatch([calls] as const, options) as Promise<void>;
|
|
1691
1255
|
},
|
|
1692
1256
|
/**
|
|
1693
|
-
* Simulate
|
|
1257
|
+
* Simulate executeDelegateCall
|
|
1694
1258
|
* Returns gas estimate and result without sending transaction
|
|
1695
1259
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1696
1260
|
*/
|
|
1697
|
-
async
|
|
1261
|
+
async executeDelegateCall(to: `0x${string}`, data: `0x${string}`, options?: {
|
|
1698
1262
|
accessList?: import('viem').AccessList;
|
|
1699
1263
|
authorizationList?: import('viem').AuthorizationList;
|
|
1700
1264
|
chain?: import('viem').Chain | null;
|
|
@@ -1706,14 +1270,14 @@ export class Kernel_json {
|
|
|
1706
1270
|
nonce?: number;
|
|
1707
1271
|
value?: bigint;
|
|
1708
1272
|
}): Promise<void> {
|
|
1709
|
-
return contract.simulate.
|
|
1273
|
+
return contract.simulate.executeDelegateCall([to, data] as const, options) as Promise<void>;
|
|
1710
1274
|
},
|
|
1711
1275
|
/**
|
|
1712
|
-
* Simulate
|
|
1276
|
+
* Simulate initialize
|
|
1713
1277
|
* Returns gas estimate and result without sending transaction
|
|
1714
1278
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1715
1279
|
*/
|
|
1716
|
-
async
|
|
1280
|
+
async initialize(_defaultValidator: `0x${string}`, _data: `0x${string}`, options?: {
|
|
1717
1281
|
accessList?: import('viem').AccessList;
|
|
1718
1282
|
authorizationList?: import('viem').AuthorizationList;
|
|
1719
1283
|
chain?: import('viem').Chain | null;
|
|
@@ -1725,14 +1289,14 @@ export class Kernel_json {
|
|
|
1725
1289
|
nonce?: number;
|
|
1726
1290
|
value?: bigint;
|
|
1727
1291
|
}): Promise<void> {
|
|
1728
|
-
return contract.simulate.
|
|
1292
|
+
return contract.simulate.initialize([_defaultValidator, _data] as const, options) as Promise<void>;
|
|
1729
1293
|
},
|
|
1730
1294
|
/**
|
|
1731
|
-
* Simulate
|
|
1295
|
+
* Simulate setDefaultValidator
|
|
1732
1296
|
* Returns gas estimate and result without sending transaction
|
|
1733
1297
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1734
1298
|
*/
|
|
1735
|
-
async
|
|
1299
|
+
async setDefaultValidator(_defaultValidator: `0x${string}`, _data: `0x${string}`, options?: {
|
|
1736
1300
|
accessList?: import('viem').AccessList;
|
|
1737
1301
|
authorizationList?: import('viem').AuthorizationList;
|
|
1738
1302
|
chain?: import('viem').Chain | null;
|
|
@@ -1744,14 +1308,14 @@ export class Kernel_json {
|
|
|
1744
1308
|
nonce?: number;
|
|
1745
1309
|
value?: bigint;
|
|
1746
1310
|
}): Promise<void> {
|
|
1747
|
-
return contract.simulate.
|
|
1311
|
+
return contract.simulate.setDefaultValidator([_defaultValidator, _data] as const, options) as Promise<void>;
|
|
1748
1312
|
},
|
|
1749
1313
|
/**
|
|
1750
|
-
* Simulate
|
|
1314
|
+
* Simulate setExecution
|
|
1751
1315
|
* Returns gas estimate and result without sending transaction
|
|
1752
1316
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1753
1317
|
*/
|
|
1754
|
-
async
|
|
1318
|
+
async setExecution(_selector: `0x${string}`, _executor: `0x${string}`, _validator: `0x${string}`, _validUntil: bigint, _validAfter: bigint, _enableData: `0x${string}`, options?: {
|
|
1755
1319
|
accessList?: import('viem').AccessList;
|
|
1756
1320
|
authorizationList?: import('viem').AuthorizationList;
|
|
1757
1321
|
chain?: import('viem').Chain | null;
|
|
@@ -1763,7 +1327,7 @@ export class Kernel_json {
|
|
|
1763
1327
|
nonce?: number;
|
|
1764
1328
|
value?: bigint;
|
|
1765
1329
|
}): Promise<void> {
|
|
1766
|
-
return contract.simulate.
|
|
1330
|
+
return contract.simulate.setExecution([_selector, _executor, _validator, _validUntil, _validAfter, _enableData] as const, options) as Promise<void>;
|
|
1767
1331
|
},
|
|
1768
1332
|
/**
|
|
1769
1333
|
* Simulate upgradeTo
|
|
@@ -1789,7 +1353,7 @@ export class Kernel_json {
|
|
|
1789
1353
|
* Returns gas estimate and result without sending transaction
|
|
1790
1354
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1791
1355
|
*/
|
|
1792
|
-
async validateUserOp(
|
|
1356
|
+
async validateUserOp(_userOp: UserOperation, userOpHash: `0x${string}`, missingAccountFunds: bigint, options?: {
|
|
1793
1357
|
accessList?: import('viem').AccessList;
|
|
1794
1358
|
authorizationList?: import('viem').AuthorizationList;
|
|
1795
1359
|
chain?: import('viem').Chain | null;
|
|
@@ -1801,7 +1365,7 @@ export class Kernel_json {
|
|
|
1801
1365
|
nonce?: number;
|
|
1802
1366
|
value?: bigint;
|
|
1803
1367
|
}): Promise<bigint> {
|
|
1804
|
-
return contract.simulate.validateUserOp([
|
|
1368
|
+
return contract.simulate.validateUserOp([_userOp, userOpHash, missingAccountFunds] as const, options) as Promise<bigint>;
|
|
1805
1369
|
}
|
|
1806
1370
|
};
|
|
1807
1371
|
}
|
|
@@ -1821,93 +1385,17 @@ export class Kernel_json {
|
|
|
1821
1385
|
get watch() {
|
|
1822
1386
|
return {
|
|
1823
1387
|
/**
|
|
1824
|
-
* Watch
|
|
1825
|
-
* @param callback Function to call when event is emitted
|
|
1826
|
-
* @param filter Optional filter for indexed parameters
|
|
1827
|
-
* @returns Unwatch function to stop listening
|
|
1828
|
-
*/
|
|
1829
|
-
ModuleInstalled: (callback: (event: { moduleTypeId: bigint; module: `0x${string}` }) => void) => {
|
|
1830
|
-
return this.publicClient.watchContractEvent({
|
|
1831
|
-
address: this.contractAddress,
|
|
1832
|
-
abi: Kernel_jsonAbi,
|
|
1833
|
-
eventName: 'ModuleInstalled',
|
|
1834
|
-
|
|
1835
|
-
onLogs: (logs: any[]) => {
|
|
1836
|
-
logs.forEach((log: any) => {
|
|
1837
|
-
callback(log.args as any);
|
|
1838
|
-
});
|
|
1839
|
-
},
|
|
1840
|
-
}) as () => void;
|
|
1841
|
-
},
|
|
1842
|
-
/**
|
|
1843
|
-
* Watch ModuleUninstallResult events
|
|
1844
|
-
* @param callback Function to call when event is emitted
|
|
1845
|
-
* @param filter Optional filter for indexed parameters
|
|
1846
|
-
* @returns Unwatch function to stop listening
|
|
1847
|
-
*/
|
|
1848
|
-
ModuleUninstallResult: (callback: (event: { module: `0x${string}`; result: boolean }) => void) => {
|
|
1849
|
-
return this.publicClient.watchContractEvent({
|
|
1850
|
-
address: this.contractAddress,
|
|
1851
|
-
abi: Kernel_jsonAbi,
|
|
1852
|
-
eventName: 'ModuleUninstallResult',
|
|
1853
|
-
|
|
1854
|
-
onLogs: (logs: any[]) => {
|
|
1855
|
-
logs.forEach((log: any) => {
|
|
1856
|
-
callback(log.args as any);
|
|
1857
|
-
});
|
|
1858
|
-
},
|
|
1859
|
-
}) as () => void;
|
|
1860
|
-
},
|
|
1861
|
-
/**
|
|
1862
|
-
* Watch ModuleUninstalled events
|
|
1863
|
-
* @param callback Function to call when event is emitted
|
|
1864
|
-
* @param filter Optional filter for indexed parameters
|
|
1865
|
-
* @returns Unwatch function to stop listening
|
|
1866
|
-
*/
|
|
1867
|
-
ModuleUninstalled: (callback: (event: { moduleTypeId: bigint; module: `0x${string}` }) => void) => {
|
|
1868
|
-
return this.publicClient.watchContractEvent({
|
|
1869
|
-
address: this.contractAddress,
|
|
1870
|
-
abi: Kernel_jsonAbi,
|
|
1871
|
-
eventName: 'ModuleUninstalled',
|
|
1872
|
-
|
|
1873
|
-
onLogs: (logs: any[]) => {
|
|
1874
|
-
logs.forEach((log: any) => {
|
|
1875
|
-
callback(log.args as any);
|
|
1876
|
-
});
|
|
1877
|
-
},
|
|
1878
|
-
}) as () => void;
|
|
1879
|
-
},
|
|
1880
|
-
/**
|
|
1881
|
-
* Watch NonceInvalidated events
|
|
1882
|
-
* @param callback Function to call when event is emitted
|
|
1883
|
-
* @param filter Optional filter for indexed parameters
|
|
1884
|
-
* @returns Unwatch function to stop listening
|
|
1885
|
-
*/
|
|
1886
|
-
NonceInvalidated: (callback: (event: { nonce: bigint }) => void) => {
|
|
1887
|
-
return this.publicClient.watchContractEvent({
|
|
1888
|
-
address: this.contractAddress,
|
|
1889
|
-
abi: Kernel_jsonAbi,
|
|
1890
|
-
eventName: 'NonceInvalidated',
|
|
1891
|
-
|
|
1892
|
-
onLogs: (logs: any[]) => {
|
|
1893
|
-
logs.forEach((log: any) => {
|
|
1894
|
-
callback(log.args as any);
|
|
1895
|
-
});
|
|
1896
|
-
},
|
|
1897
|
-
}) as () => void;
|
|
1898
|
-
},
|
|
1899
|
-
/**
|
|
1900
|
-
* Watch PermissionInstalled events
|
|
1388
|
+
* Watch DefaultValidatorChanged events
|
|
1901
1389
|
* @param callback Function to call when event is emitted
|
|
1902
1390
|
* @param filter Optional filter for indexed parameters
|
|
1903
1391
|
* @returns Unwatch function to stop listening
|
|
1904
1392
|
*/
|
|
1905
|
-
|
|
1393
|
+
DefaultValidatorChanged: (callback: (event: { oldValidator: `0x${string}`; newValidator: `0x${string}` }) => void, filter?: { oldValidator: `0x${string}`; newValidator: `0x${string}` }) => {
|
|
1906
1394
|
return this.publicClient.watchContractEvent({
|
|
1907
1395
|
address: this.contractAddress,
|
|
1908
1396
|
abi: Kernel_jsonAbi,
|
|
1909
|
-
eventName: '
|
|
1910
|
-
|
|
1397
|
+
eventName: 'DefaultValidatorChanged',
|
|
1398
|
+
args: filter,
|
|
1911
1399
|
onLogs: (logs: any[]) => {
|
|
1912
1400
|
logs.forEach((log: any) => {
|
|
1913
1401
|
callback(log.args as any);
|
|
@@ -1916,17 +1404,17 @@ export class Kernel_json {
|
|
|
1916
1404
|
}) as () => void;
|
|
1917
1405
|
},
|
|
1918
1406
|
/**
|
|
1919
|
-
* Watch
|
|
1407
|
+
* Watch ExecutionChanged events
|
|
1920
1408
|
* @param callback Function to call when event is emitted
|
|
1921
1409
|
* @param filter Optional filter for indexed parameters
|
|
1922
1410
|
* @returns Unwatch function to stop listening
|
|
1923
1411
|
*/
|
|
1924
|
-
|
|
1412
|
+
ExecutionChanged: (callback: (event: { selector: `0x${string}`; executor: `0x${string}`; validator: `0x${string}` }) => void, filter?: { selector: `0x${string}`; executor: `0x${string}`; validator: `0x${string}` }) => {
|
|
1925
1413
|
return this.publicClient.watchContractEvent({
|
|
1926
1414
|
address: this.contractAddress,
|
|
1927
1415
|
abi: Kernel_jsonAbi,
|
|
1928
|
-
eventName: '
|
|
1929
|
-
|
|
1416
|
+
eventName: 'ExecutionChanged',
|
|
1417
|
+
args: filter,
|
|
1930
1418
|
onLogs: (logs: any[]) => {
|
|
1931
1419
|
logs.forEach((log: any) => {
|
|
1932
1420
|
callback(log.args as any);
|
|
@@ -1953,113 +1441,18 @@ export class Kernel_json {
|
|
|
1953
1441
|
},
|
|
1954
1442
|
}) as () => void;
|
|
1955
1443
|
},
|
|
1956
|
-
/**
|
|
1957
|
-
* Watch RootValidatorUpdated events
|
|
1958
|
-
* @param callback Function to call when event is emitted
|
|
1959
|
-
* @param filter Optional filter for indexed parameters
|
|
1960
|
-
* @returns Unwatch function to stop listening
|
|
1961
|
-
*/
|
|
1962
|
-
RootValidatorUpdated: (callback: (event: { rootValidator: `0x${string}` }) => void) => {
|
|
1963
|
-
return this.publicClient.watchContractEvent({
|
|
1964
|
-
address: this.contractAddress,
|
|
1965
|
-
abi: Kernel_jsonAbi,
|
|
1966
|
-
eventName: 'RootValidatorUpdated',
|
|
1967
|
-
|
|
1968
|
-
onLogs: (logs: any[]) => {
|
|
1969
|
-
logs.forEach((log: any) => {
|
|
1970
|
-
callback(log.args as any);
|
|
1971
|
-
});
|
|
1972
|
-
},
|
|
1973
|
-
}) as () => void;
|
|
1974
|
-
},
|
|
1975
|
-
/**
|
|
1976
|
-
* Watch SelectorSet events
|
|
1977
|
-
* @param callback Function to call when event is emitted
|
|
1978
|
-
* @param filter Optional filter for indexed parameters
|
|
1979
|
-
* @returns Unwatch function to stop listening
|
|
1980
|
-
*/
|
|
1981
|
-
SelectorSet: (callback: (event: { selector: `0x${string}`; vId: `0x${string}`; allowed: boolean }) => void) => {
|
|
1982
|
-
return this.publicClient.watchContractEvent({
|
|
1983
|
-
address: this.contractAddress,
|
|
1984
|
-
abi: Kernel_jsonAbi,
|
|
1985
|
-
eventName: 'SelectorSet',
|
|
1986
|
-
|
|
1987
|
-
onLogs: (logs: any[]) => {
|
|
1988
|
-
logs.forEach((log: any) => {
|
|
1989
|
-
callback(log.args as any);
|
|
1990
|
-
});
|
|
1991
|
-
},
|
|
1992
|
-
}) as () => void;
|
|
1993
|
-
},
|
|
1994
|
-
/**
|
|
1995
|
-
* Watch TryExecuteUnsuccessful events
|
|
1996
|
-
* @param callback Function to call when event is emitted
|
|
1997
|
-
* @param filter Optional filter for indexed parameters
|
|
1998
|
-
* @returns Unwatch function to stop listening
|
|
1999
|
-
*/
|
|
2000
|
-
TryExecuteUnsuccessful: (callback: (event: { batchExecutionindex: bigint; result: `0x${string}` }) => void) => {
|
|
2001
|
-
return this.publicClient.watchContractEvent({
|
|
2002
|
-
address: this.contractAddress,
|
|
2003
|
-
abi: Kernel_jsonAbi,
|
|
2004
|
-
eventName: 'TryExecuteUnsuccessful',
|
|
2005
|
-
|
|
2006
|
-
onLogs: (logs: any[]) => {
|
|
2007
|
-
logs.forEach((log: any) => {
|
|
2008
|
-
callback(log.args as any);
|
|
2009
|
-
});
|
|
2010
|
-
},
|
|
2011
|
-
}) as () => void;
|
|
2012
|
-
},
|
|
2013
1444
|
/**
|
|
2014
1445
|
* Watch Upgraded events
|
|
2015
1446
|
* @param callback Function to call when event is emitted
|
|
2016
1447
|
* @param filter Optional filter for indexed parameters
|
|
2017
1448
|
* @returns Unwatch function to stop listening
|
|
2018
1449
|
*/
|
|
2019
|
-
Upgraded: (callback: (event: {
|
|
1450
|
+
Upgraded: (callback: (event: { newImplementation: `0x${string}` }) => void, filter?: { newImplementation: `0x${string}` }) => {
|
|
2020
1451
|
return this.publicClient.watchContractEvent({
|
|
2021
1452
|
address: this.contractAddress,
|
|
2022
1453
|
abi: Kernel_jsonAbi,
|
|
2023
1454
|
eventName: 'Upgraded',
|
|
2024
1455
|
args: filter,
|
|
2025
|
-
onLogs: (logs: any[]) => {
|
|
2026
|
-
logs.forEach((log: any) => {
|
|
2027
|
-
callback(log.args as any);
|
|
2028
|
-
});
|
|
2029
|
-
},
|
|
2030
|
-
}) as () => void;
|
|
2031
|
-
},
|
|
2032
|
-
/**
|
|
2033
|
-
* Watch ValidatorInstalled events
|
|
2034
|
-
* @param callback Function to call when event is emitted
|
|
2035
|
-
* @param filter Optional filter for indexed parameters
|
|
2036
|
-
* @returns Unwatch function to stop listening
|
|
2037
|
-
*/
|
|
2038
|
-
ValidatorInstalled: (callback: (event: { validator: `0x${string}`; nonce: bigint }) => void) => {
|
|
2039
|
-
return this.publicClient.watchContractEvent({
|
|
2040
|
-
address: this.contractAddress,
|
|
2041
|
-
abi: Kernel_jsonAbi,
|
|
2042
|
-
eventName: 'ValidatorInstalled',
|
|
2043
|
-
|
|
2044
|
-
onLogs: (logs: any[]) => {
|
|
2045
|
-
logs.forEach((log: any) => {
|
|
2046
|
-
callback(log.args as any);
|
|
2047
|
-
});
|
|
2048
|
-
},
|
|
2049
|
-
}) as () => void;
|
|
2050
|
-
},
|
|
2051
|
-
/**
|
|
2052
|
-
* Watch ValidatorUninstalled events
|
|
2053
|
-
* @param callback Function to call when event is emitted
|
|
2054
|
-
* @param filter Optional filter for indexed parameters
|
|
2055
|
-
* @returns Unwatch function to stop listening
|
|
2056
|
-
*/
|
|
2057
|
-
ValidatorUninstalled: (callback: (event: { validator: `0x${string}` }) => void) => {
|
|
2058
|
-
return this.publicClient.watchContractEvent({
|
|
2059
|
-
address: this.contractAddress,
|
|
2060
|
-
abi: Kernel_jsonAbi,
|
|
2061
|
-
eventName: 'ValidatorUninstalled',
|
|
2062
|
-
|
|
2063
1456
|
onLogs: (logs: any[]) => {
|
|
2064
1457
|
logs.forEach((log: any) => {
|
|
2065
1458
|
callback(log.args as any);
|