@gitmyabi/kernel 1.0.15 → 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 +299 -888
- package/contracts/Kernel_json.js +322 -1057
- package/contracts/Kernel_json.ts +313 -1142
- 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,241 +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
|
-
{
|
|
82
|
-
"internalType": "uint256",
|
|
83
|
-
"name": "idx",
|
|
84
|
-
"type": "uint256"
|
|
85
|
-
}
|
|
86
|
-
],
|
|
87
|
-
"name": "InitConfigError",
|
|
88
|
-
"type": "error"
|
|
89
|
-
},
|
|
90
|
-
{
|
|
91
|
-
"inputs": [],
|
|
92
|
-
"name": "InvalidCallType",
|
|
93
|
-
"type": "error"
|
|
94
|
-
},
|
|
95
|
-
{
|
|
96
|
-
"inputs": [],
|
|
97
|
-
"name": "InvalidCaller",
|
|
98
|
-
"type": "error"
|
|
99
|
-
},
|
|
100
|
-
{
|
|
101
|
-
"inputs": [],
|
|
102
|
-
"name": "InvalidExecutor",
|
|
103
|
-
"type": "error"
|
|
104
|
-
},
|
|
105
|
-
{
|
|
106
|
-
"inputs": [],
|
|
107
|
-
"name": "InvalidFallback",
|
|
59
|
+
"name": "AlreadyInitialized",
|
|
108
60
|
"type": "error"
|
|
109
61
|
},
|
|
110
62
|
{
|
|
111
63
|
"inputs": [],
|
|
112
|
-
"name": "
|
|
64
|
+
"name": "DeprecatedOperation",
|
|
113
65
|
"type": "error"
|
|
114
66
|
},
|
|
115
67
|
{
|
|
116
68
|
"inputs": [],
|
|
117
|
-
"name": "
|
|
69
|
+
"name": "DisabledMode",
|
|
118
70
|
"type": "error"
|
|
119
71
|
},
|
|
120
72
|
{
|
|
121
73
|
"inputs": [],
|
|
122
|
-
"name": "
|
|
74
|
+
"name": "NotAuthorizedCaller",
|
|
123
75
|
"type": "error"
|
|
124
76
|
},
|
|
125
77
|
{
|
|
126
78
|
"inputs": [],
|
|
127
|
-
"name": "
|
|
128
|
-
"type": "error"
|
|
129
|
-
},
|
|
130
|
-
{
|
|
131
|
-
"inputs": [],
|
|
132
|
-
"name": "InvalidSignature",
|
|
133
|
-
"type": "error"
|
|
134
|
-
},
|
|
135
|
-
{
|
|
136
|
-
"inputs": [],
|
|
137
|
-
"name": "InvalidValidationType",
|
|
138
|
-
"type": "error"
|
|
139
|
-
},
|
|
140
|
-
{
|
|
141
|
-
"inputs": [],
|
|
142
|
-
"name": "InvalidValidator",
|
|
143
|
-
"type": "error"
|
|
144
|
-
},
|
|
145
|
-
{
|
|
146
|
-
"inputs": [],
|
|
147
|
-
"name": "NonceInvalidationError",
|
|
148
|
-
"type": "error"
|
|
149
|
-
},
|
|
150
|
-
{
|
|
151
|
-
"inputs": [],
|
|
152
|
-
"name": "NotSupportedCallType",
|
|
153
|
-
"type": "error"
|
|
154
|
-
},
|
|
155
|
-
{
|
|
156
|
-
"inputs": [],
|
|
157
|
-
"name": "OnlyExecuteUserOp",
|
|
158
|
-
"type": "error"
|
|
159
|
-
},
|
|
160
|
-
{
|
|
161
|
-
"inputs": [],
|
|
162
|
-
"name": "PermissionDataLengthMismatch",
|
|
163
|
-
"type": "error"
|
|
164
|
-
},
|
|
165
|
-
{
|
|
166
|
-
"inputs": [],
|
|
167
|
-
"name": "PermissionNotAlllowedForSignature",
|
|
168
|
-
"type": "error"
|
|
169
|
-
},
|
|
170
|
-
{
|
|
171
|
-
"inputs": [],
|
|
172
|
-
"name": "PermissionNotAlllowedForUserOp",
|
|
173
|
-
"type": "error"
|
|
174
|
-
},
|
|
175
|
-
{
|
|
176
|
-
"inputs": [],
|
|
177
|
-
"name": "PolicyDataTooLarge",
|
|
178
|
-
"type": "error"
|
|
179
|
-
},
|
|
180
|
-
{
|
|
181
|
-
"inputs": [
|
|
182
|
-
{
|
|
183
|
-
"internalType": "uint256",
|
|
184
|
-
"name": "i",
|
|
185
|
-
"type": "uint256"
|
|
186
|
-
}
|
|
187
|
-
],
|
|
188
|
-
"name": "PolicyFailed",
|
|
189
|
-
"type": "error"
|
|
190
|
-
},
|
|
191
|
-
{
|
|
192
|
-
"inputs": [],
|
|
193
|
-
"name": "PolicySignatureOrderError",
|
|
194
|
-
"type": "error"
|
|
195
|
-
},
|
|
196
|
-
{
|
|
197
|
-
"inputs": [],
|
|
198
|
-
"name": "RootValidatorCannotBeRemoved",
|
|
199
|
-
"type": "error"
|
|
200
|
-
},
|
|
201
|
-
{
|
|
202
|
-
"inputs": [],
|
|
203
|
-
"name": "SignerPrefixNotPresent",
|
|
79
|
+
"name": "NotEntryPoint",
|
|
204
80
|
"type": "error"
|
|
205
81
|
},
|
|
206
82
|
{
|
|
207
83
|
"anonymous": false,
|
|
208
84
|
"inputs": [
|
|
209
85
|
{
|
|
210
|
-
"indexed":
|
|
211
|
-
"internalType": "uint256",
|
|
212
|
-
"name": "moduleTypeId",
|
|
213
|
-
"type": "uint256"
|
|
214
|
-
},
|
|
215
|
-
{
|
|
216
|
-
"indexed": false,
|
|
86
|
+
"indexed": true,
|
|
217
87
|
"internalType": "address",
|
|
218
|
-
"name": "
|
|
88
|
+
"name": "oldValidator",
|
|
219
89
|
"type": "address"
|
|
220
|
-
}
|
|
221
|
-
],
|
|
222
|
-
"name": "ModuleInstalled",
|
|
223
|
-
"type": "event"
|
|
224
|
-
},
|
|
225
|
-
{
|
|
226
|
-
"anonymous": false,
|
|
227
|
-
"inputs": [
|
|
90
|
+
},
|
|
228
91
|
{
|
|
229
|
-
"indexed":
|
|
92
|
+
"indexed": true,
|
|
230
93
|
"internalType": "address",
|
|
231
|
-
"name": "
|
|
94
|
+
"name": "newValidator",
|
|
232
95
|
"type": "address"
|
|
233
|
-
},
|
|
234
|
-
{
|
|
235
|
-
"indexed": false,
|
|
236
|
-
"internalType": "bool",
|
|
237
|
-
"name": "result",
|
|
238
|
-
"type": "bool"
|
|
239
96
|
}
|
|
240
97
|
],
|
|
241
|
-
"name": "
|
|
98
|
+
"name": "DefaultValidatorChanged",
|
|
242
99
|
"type": "event"
|
|
243
100
|
},
|
|
244
101
|
{
|
|
245
102
|
"anonymous": false,
|
|
246
103
|
"inputs": [
|
|
247
104
|
{
|
|
248
|
-
"indexed":
|
|
249
|
-
"internalType": "
|
|
250
|
-
"name": "
|
|
251
|
-
"type": "
|
|
105
|
+
"indexed": true,
|
|
106
|
+
"internalType": "bytes4",
|
|
107
|
+
"name": "selector",
|
|
108
|
+
"type": "bytes4"
|
|
252
109
|
},
|
|
253
110
|
{
|
|
254
|
-
"indexed":
|
|
111
|
+
"indexed": true,
|
|
255
112
|
"internalType": "address",
|
|
256
|
-
"name": "
|
|
113
|
+
"name": "executor",
|
|
257
114
|
"type": "address"
|
|
258
|
-
}
|
|
259
|
-
],
|
|
260
|
-
"name": "ModuleUninstalled",
|
|
261
|
-
"type": "event"
|
|
262
|
-
},
|
|
263
|
-
{
|
|
264
|
-
"anonymous": false,
|
|
265
|
-
"inputs": [
|
|
266
|
-
{
|
|
267
|
-
"indexed": false,
|
|
268
|
-
"internalType": "uint32",
|
|
269
|
-
"name": "nonce",
|
|
270
|
-
"type": "uint32"
|
|
271
|
-
}
|
|
272
|
-
],
|
|
273
|
-
"name": "NonceInvalidated",
|
|
274
|
-
"type": "event"
|
|
275
|
-
},
|
|
276
|
-
{
|
|
277
|
-
"anonymous": false,
|
|
278
|
-
"inputs": [
|
|
279
|
-
{
|
|
280
|
-
"indexed": false,
|
|
281
|
-
"internalType": "PermissionId",
|
|
282
|
-
"name": "permission",
|
|
283
|
-
"type": "bytes4"
|
|
284
115
|
},
|
|
285
116
|
{
|
|
286
|
-
"indexed":
|
|
287
|
-
"internalType": "
|
|
288
|
-
"name": "
|
|
289
|
-
"type": "
|
|
290
|
-
}
|
|
291
|
-
],
|
|
292
|
-
"name": "PermissionInstalled",
|
|
293
|
-
"type": "event"
|
|
294
|
-
},
|
|
295
|
-
{
|
|
296
|
-
"anonymous": false,
|
|
297
|
-
"inputs": [
|
|
298
|
-
{
|
|
299
|
-
"indexed": false,
|
|
300
|
-
"internalType": "PermissionId",
|
|
301
|
-
"name": "permission",
|
|
302
|
-
"type": "bytes4"
|
|
117
|
+
"indexed": true,
|
|
118
|
+
"internalType": "address",
|
|
119
|
+
"name": "validator",
|
|
120
|
+
"type": "address"
|
|
303
121
|
}
|
|
304
122
|
],
|
|
305
|
-
"name": "
|
|
123
|
+
"name": "ExecutionChanged",
|
|
306
124
|
"type": "event"
|
|
307
125
|
},
|
|
308
126
|
{
|
|
@@ -324,166 +142,36 @@ export const Kernel_jsonAbi = [
|
|
|
324
142
|
"name": "Received",
|
|
325
143
|
"type": "event"
|
|
326
144
|
},
|
|
327
|
-
{
|
|
328
|
-
"anonymous": false,
|
|
329
|
-
"inputs": [
|
|
330
|
-
{
|
|
331
|
-
"indexed": false,
|
|
332
|
-
"internalType": "ValidationId",
|
|
333
|
-
"name": "rootValidator",
|
|
334
|
-
"type": "bytes21"
|
|
335
|
-
}
|
|
336
|
-
],
|
|
337
|
-
"name": "RootValidatorUpdated",
|
|
338
|
-
"type": "event"
|
|
339
|
-
},
|
|
340
|
-
{
|
|
341
|
-
"anonymous": false,
|
|
342
|
-
"inputs": [
|
|
343
|
-
{
|
|
344
|
-
"indexed": false,
|
|
345
|
-
"internalType": "bytes4",
|
|
346
|
-
"name": "selector",
|
|
347
|
-
"type": "bytes4"
|
|
348
|
-
},
|
|
349
|
-
{
|
|
350
|
-
"indexed": false,
|
|
351
|
-
"internalType": "ValidationId",
|
|
352
|
-
"name": "vId",
|
|
353
|
-
"type": "bytes21"
|
|
354
|
-
},
|
|
355
|
-
{
|
|
356
|
-
"indexed": false,
|
|
357
|
-
"internalType": "bool",
|
|
358
|
-
"name": "allowed",
|
|
359
|
-
"type": "bool"
|
|
360
|
-
}
|
|
361
|
-
],
|
|
362
|
-
"name": "SelectorSet",
|
|
363
|
-
"type": "event"
|
|
364
|
-
},
|
|
365
|
-
{
|
|
366
|
-
"anonymous": false,
|
|
367
|
-
"inputs": [
|
|
368
|
-
{
|
|
369
|
-
"indexed": false,
|
|
370
|
-
"internalType": "uint256",
|
|
371
|
-
"name": "batchExecutionindex",
|
|
372
|
-
"type": "uint256"
|
|
373
|
-
},
|
|
374
|
-
{
|
|
375
|
-
"indexed": false,
|
|
376
|
-
"internalType": "bytes",
|
|
377
|
-
"name": "result",
|
|
378
|
-
"type": "bytes"
|
|
379
|
-
}
|
|
380
|
-
],
|
|
381
|
-
"name": "TryExecuteUnsuccessful",
|
|
382
|
-
"type": "event"
|
|
383
|
-
},
|
|
384
145
|
{
|
|
385
146
|
"anonymous": false,
|
|
386
147
|
"inputs": [
|
|
387
148
|
{
|
|
388
149
|
"indexed": true,
|
|
389
150
|
"internalType": "address",
|
|
390
|
-
"name": "
|
|
151
|
+
"name": "newImplementation",
|
|
391
152
|
"type": "address"
|
|
392
153
|
}
|
|
393
154
|
],
|
|
394
155
|
"name": "Upgraded",
|
|
395
156
|
"type": "event"
|
|
396
157
|
},
|
|
397
|
-
{
|
|
398
|
-
"anonymous": false,
|
|
399
|
-
"inputs": [
|
|
400
|
-
{
|
|
401
|
-
"indexed": false,
|
|
402
|
-
"internalType": "contract IValidator",
|
|
403
|
-
"name": "validator",
|
|
404
|
-
"type": "address"
|
|
405
|
-
},
|
|
406
|
-
{
|
|
407
|
-
"indexed": false,
|
|
408
|
-
"internalType": "uint32",
|
|
409
|
-
"name": "nonce",
|
|
410
|
-
"type": "uint32"
|
|
411
|
-
}
|
|
412
|
-
],
|
|
413
|
-
"name": "ValidatorInstalled",
|
|
414
|
-
"type": "event"
|
|
415
|
-
},
|
|
416
|
-
{
|
|
417
|
-
"anonymous": false,
|
|
418
|
-
"inputs": [
|
|
419
|
-
{
|
|
420
|
-
"indexed": false,
|
|
421
|
-
"internalType": "contract IValidator",
|
|
422
|
-
"name": "validator",
|
|
423
|
-
"type": "address"
|
|
424
|
-
}
|
|
425
|
-
],
|
|
426
|
-
"name": "ValidatorUninstalled",
|
|
427
|
-
"type": "event"
|
|
428
|
-
},
|
|
429
158
|
{
|
|
430
159
|
"stateMutability": "payable",
|
|
431
160
|
"type": "fallback"
|
|
432
161
|
},
|
|
433
|
-
{
|
|
434
|
-
"inputs": [],
|
|
435
|
-
"name": "accountId",
|
|
436
|
-
"outputs": [
|
|
437
|
-
{
|
|
438
|
-
"internalType": "string",
|
|
439
|
-
"name": "accountImplementationId",
|
|
440
|
-
"type": "string"
|
|
441
|
-
}
|
|
442
|
-
],
|
|
443
|
-
"stateMutability": "pure",
|
|
444
|
-
"type": "function"
|
|
445
|
-
},
|
|
446
162
|
{
|
|
447
163
|
"inputs": [
|
|
448
164
|
{
|
|
449
|
-
"internalType": "
|
|
450
|
-
"name": "
|
|
451
|
-
"type": "
|
|
452
|
-
},
|
|
453
|
-
{
|
|
454
|
-
"internalType": "contract IHook",
|
|
455
|
-
"name": "hook",
|
|
456
|
-
"type": "address"
|
|
457
|
-
},
|
|
458
|
-
{
|
|
459
|
-
"internalType": "bytes",
|
|
460
|
-
"name": "validatorData",
|
|
461
|
-
"type": "bytes"
|
|
462
|
-
},
|
|
463
|
-
{
|
|
464
|
-
"internalType": "bytes",
|
|
465
|
-
"name": "hookData",
|
|
466
|
-
"type": "bytes"
|
|
165
|
+
"internalType": "bytes4",
|
|
166
|
+
"name": "_disableFlag",
|
|
167
|
+
"type": "bytes4"
|
|
467
168
|
}
|
|
468
169
|
],
|
|
469
|
-
"name": "
|
|
170
|
+
"name": "disableMode",
|
|
470
171
|
"outputs": [],
|
|
471
172
|
"stateMutability": "payable",
|
|
472
173
|
"type": "function"
|
|
473
174
|
},
|
|
474
|
-
{
|
|
475
|
-
"inputs": [],
|
|
476
|
-
"name": "currentNonce",
|
|
477
|
-
"outputs": [
|
|
478
|
-
{
|
|
479
|
-
"internalType": "uint32",
|
|
480
|
-
"name": "",
|
|
481
|
-
"type": "uint32"
|
|
482
|
-
}
|
|
483
|
-
],
|
|
484
|
-
"stateMutability": "view",
|
|
485
|
-
"type": "function"
|
|
486
|
-
},
|
|
487
175
|
{
|
|
488
176
|
"inputs": [],
|
|
489
177
|
"name": "eip712Domain",
|
|
@@ -529,7 +217,7 @@ export const Kernel_jsonAbi = [
|
|
|
529
217
|
},
|
|
530
218
|
{
|
|
531
219
|
"inputs": [],
|
|
532
|
-
"name": "
|
|
220
|
+
"name": "entryPoint",
|
|
533
221
|
"outputs": [
|
|
534
222
|
{
|
|
535
223
|
"internalType": "contract IEntryPoint",
|
|
@@ -543,42 +231,28 @@ export const Kernel_jsonAbi = [
|
|
|
543
231
|
{
|
|
544
232
|
"inputs": [
|
|
545
233
|
{
|
|
546
|
-
"internalType": "
|
|
547
|
-
"name": "
|
|
548
|
-
"type": "
|
|
234
|
+
"internalType": "address",
|
|
235
|
+
"name": "to",
|
|
236
|
+
"type": "address"
|
|
549
237
|
},
|
|
550
238
|
{
|
|
551
|
-
"internalType": "
|
|
552
|
-
"name": "
|
|
553
|
-
"type": "
|
|
554
|
-
}
|
|
555
|
-
],
|
|
556
|
-
"name": "execute",
|
|
557
|
-
"outputs": [],
|
|
558
|
-
"stateMutability": "payable",
|
|
559
|
-
"type": "function"
|
|
560
|
-
},
|
|
561
|
-
{
|
|
562
|
-
"inputs": [
|
|
563
|
-
{
|
|
564
|
-
"internalType": "ExecMode",
|
|
565
|
-
"name": "execMode",
|
|
566
|
-
"type": "bytes32"
|
|
239
|
+
"internalType": "uint256",
|
|
240
|
+
"name": "value",
|
|
241
|
+
"type": "uint256"
|
|
567
242
|
},
|
|
568
243
|
{
|
|
569
244
|
"internalType": "bytes",
|
|
570
|
-
"name": "
|
|
245
|
+
"name": "data",
|
|
571
246
|
"type": "bytes"
|
|
572
|
-
}
|
|
573
|
-
],
|
|
574
|
-
"name": "executeFromExecutor",
|
|
575
|
-
"outputs": [
|
|
247
|
+
},
|
|
576
248
|
{
|
|
577
|
-
"internalType": "
|
|
578
|
-
"name": "
|
|
579
|
-
"type": "
|
|
249
|
+
"internalType": "enum Operation",
|
|
250
|
+
"name": "_operation",
|
|
251
|
+
"type": "uint8"
|
|
580
252
|
}
|
|
581
253
|
],
|
|
254
|
+
"name": "execute",
|
|
255
|
+
"outputs": [],
|
|
582
256
|
"stateMutability": "payable",
|
|
583
257
|
"type": "function"
|
|
584
258
|
},
|
|
@@ -588,61 +262,26 @@ export const Kernel_jsonAbi = [
|
|
|
588
262
|
"components": [
|
|
589
263
|
{
|
|
590
264
|
"internalType": "address",
|
|
591
|
-
"name": "
|
|
265
|
+
"name": "to",
|
|
592
266
|
"type": "address"
|
|
593
267
|
},
|
|
594
268
|
{
|
|
595
269
|
"internalType": "uint256",
|
|
596
|
-
"name": "
|
|
270
|
+
"name": "value",
|
|
597
271
|
"type": "uint256"
|
|
598
272
|
},
|
|
599
273
|
{
|
|
600
274
|
"internalType": "bytes",
|
|
601
|
-
"name": "
|
|
602
|
-
"type": "bytes"
|
|
603
|
-
},
|
|
604
|
-
{
|
|
605
|
-
"internalType": "bytes",
|
|
606
|
-
"name": "callData",
|
|
607
|
-
"type": "bytes"
|
|
608
|
-
},
|
|
609
|
-
{
|
|
610
|
-
"internalType": "bytes32",
|
|
611
|
-
"name": "accountGasLimits",
|
|
612
|
-
"type": "bytes32"
|
|
613
|
-
},
|
|
614
|
-
{
|
|
615
|
-
"internalType": "uint256",
|
|
616
|
-
"name": "preVerificationGas",
|
|
617
|
-
"type": "uint256"
|
|
618
|
-
},
|
|
619
|
-
{
|
|
620
|
-
"internalType": "bytes32",
|
|
621
|
-
"name": "gasFees",
|
|
622
|
-
"type": "bytes32"
|
|
623
|
-
},
|
|
624
|
-
{
|
|
625
|
-
"internalType": "bytes",
|
|
626
|
-
"name": "paymasterAndData",
|
|
627
|
-
"type": "bytes"
|
|
628
|
-
},
|
|
629
|
-
{
|
|
630
|
-
"internalType": "bytes",
|
|
631
|
-
"name": "signature",
|
|
275
|
+
"name": "data",
|
|
632
276
|
"type": "bytes"
|
|
633
277
|
}
|
|
634
278
|
],
|
|
635
|
-
"internalType": "struct
|
|
636
|
-
"name": "
|
|
637
|
-
"type": "tuple"
|
|
638
|
-
},
|
|
639
|
-
{
|
|
640
|
-
"internalType": "bytes32",
|
|
641
|
-
"name": "userOpHash",
|
|
642
|
-
"type": "bytes32"
|
|
279
|
+
"internalType": "struct Call[]",
|
|
280
|
+
"name": "calls",
|
|
281
|
+
"type": "tuple[]"
|
|
643
282
|
}
|
|
644
283
|
],
|
|
645
|
-
"name": "
|
|
284
|
+
"name": "executeBatch",
|
|
646
285
|
"outputs": [],
|
|
647
286
|
"stateMutability": "payable",
|
|
648
287
|
"type": "function"
|
|
@@ -650,189 +289,149 @@ export const Kernel_jsonAbi = [
|
|
|
650
289
|
{
|
|
651
290
|
"inputs": [
|
|
652
291
|
{
|
|
653
|
-
"internalType": "
|
|
654
|
-
"name": "
|
|
292
|
+
"internalType": "address",
|
|
293
|
+
"name": "to",
|
|
655
294
|
"type": "address"
|
|
656
|
-
}
|
|
657
|
-
],
|
|
658
|
-
"name": "executorConfig",
|
|
659
|
-
"outputs": [
|
|
295
|
+
},
|
|
660
296
|
{
|
|
661
|
-
"
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
"name": "hook",
|
|
665
|
-
"type": "address"
|
|
666
|
-
}
|
|
667
|
-
],
|
|
668
|
-
"internalType": "struct ExecutorManager.ExecutorConfig",
|
|
669
|
-
"name": "",
|
|
670
|
-
"type": "tuple"
|
|
297
|
+
"internalType": "bytes",
|
|
298
|
+
"name": "data",
|
|
299
|
+
"type": "bytes"
|
|
671
300
|
}
|
|
672
301
|
],
|
|
673
|
-
"
|
|
302
|
+
"name": "executeDelegateCall",
|
|
303
|
+
"outputs": [],
|
|
304
|
+
"stateMutability": "payable",
|
|
674
305
|
"type": "function"
|
|
675
306
|
},
|
|
676
307
|
{
|
|
677
|
-
"inputs": [
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
"name": "_rootValidator",
|
|
681
|
-
"type": "bytes21"
|
|
682
|
-
},
|
|
308
|
+
"inputs": [],
|
|
309
|
+
"name": "getDefaultValidator",
|
|
310
|
+
"outputs": [
|
|
683
311
|
{
|
|
684
|
-
"internalType": "contract
|
|
685
|
-
"name": "
|
|
312
|
+
"internalType": "contract IKernelValidator",
|
|
313
|
+
"name": "validator",
|
|
686
314
|
"type": "address"
|
|
687
|
-
},
|
|
688
|
-
{
|
|
689
|
-
"internalType": "bytes",
|
|
690
|
-
"name": "validatorData",
|
|
691
|
-
"type": "bytes"
|
|
692
|
-
},
|
|
693
|
-
{
|
|
694
|
-
"internalType": "bytes",
|
|
695
|
-
"name": "hookData",
|
|
696
|
-
"type": "bytes"
|
|
697
|
-
},
|
|
698
|
-
{
|
|
699
|
-
"internalType": "bytes[]",
|
|
700
|
-
"name": "initConfig",
|
|
701
|
-
"type": "bytes[]"
|
|
702
315
|
}
|
|
703
316
|
],
|
|
704
|
-
"
|
|
705
|
-
"outputs": [],
|
|
706
|
-
"stateMutability": "nonpayable",
|
|
317
|
+
"stateMutability": "view",
|
|
707
318
|
"type": "function"
|
|
708
319
|
},
|
|
709
320
|
{
|
|
710
|
-
"inputs": [
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
"name": "moduleType",
|
|
714
|
-
"type": "uint256"
|
|
715
|
-
},
|
|
716
|
-
{
|
|
717
|
-
"internalType": "address",
|
|
718
|
-
"name": "module",
|
|
719
|
-
"type": "address"
|
|
720
|
-
},
|
|
321
|
+
"inputs": [],
|
|
322
|
+
"name": "getDisabledMode",
|
|
323
|
+
"outputs": [
|
|
721
324
|
{
|
|
722
|
-
"internalType": "
|
|
723
|
-
"name": "
|
|
724
|
-
"type": "
|
|
325
|
+
"internalType": "bytes4",
|
|
326
|
+
"name": "disabled",
|
|
327
|
+
"type": "bytes4"
|
|
725
328
|
}
|
|
726
329
|
],
|
|
727
|
-
"
|
|
728
|
-
"outputs": [],
|
|
729
|
-
"stateMutability": "payable",
|
|
330
|
+
"stateMutability": "view",
|
|
730
331
|
"type": "function"
|
|
731
332
|
},
|
|
732
333
|
{
|
|
733
334
|
"inputs": [
|
|
734
335
|
{
|
|
735
|
-
"internalType": "
|
|
736
|
-
"name": "
|
|
737
|
-
"type": "
|
|
738
|
-
}
|
|
336
|
+
"internalType": "bytes4",
|
|
337
|
+
"name": "_selector",
|
|
338
|
+
"type": "bytes4"
|
|
339
|
+
}
|
|
340
|
+
],
|
|
341
|
+
"name": "getExecution",
|
|
342
|
+
"outputs": [
|
|
739
343
|
{
|
|
740
344
|
"components": [
|
|
741
345
|
{
|
|
742
|
-
"internalType": "
|
|
743
|
-
"name": "
|
|
744
|
-
"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"
|
|
745
359
|
},
|
|
746
360
|
{
|
|
747
|
-
"internalType": "contract
|
|
748
|
-
"name": "
|
|
361
|
+
"internalType": "contract IKernelValidator",
|
|
362
|
+
"name": "validator",
|
|
749
363
|
"type": "address"
|
|
750
364
|
}
|
|
751
365
|
],
|
|
752
|
-
"internalType": "struct
|
|
753
|
-
"name": "
|
|
754
|
-
"type": "tuple
|
|
755
|
-
},
|
|
756
|
-
{
|
|
757
|
-
"internalType": "bytes[]",
|
|
758
|
-
"name": "validationData",
|
|
759
|
-
"type": "bytes[]"
|
|
760
|
-
},
|
|
761
|
-
{
|
|
762
|
-
"internalType": "bytes[]",
|
|
763
|
-
"name": "hookData",
|
|
764
|
-
"type": "bytes[]"
|
|
366
|
+
"internalType": "struct ExecutionDetail",
|
|
367
|
+
"name": "",
|
|
368
|
+
"type": "tuple"
|
|
765
369
|
}
|
|
766
370
|
],
|
|
767
|
-
"
|
|
768
|
-
"outputs": [],
|
|
769
|
-
"stateMutability": "payable",
|
|
371
|
+
"stateMutability": "view",
|
|
770
372
|
"type": "function"
|
|
771
373
|
},
|
|
772
374
|
{
|
|
773
|
-
"inputs": [
|
|
375
|
+
"inputs": [],
|
|
376
|
+
"name": "getLastDisabledTime",
|
|
377
|
+
"outputs": [
|
|
774
378
|
{
|
|
775
|
-
"internalType": "
|
|
776
|
-
"name": "
|
|
777
|
-
"type": "
|
|
379
|
+
"internalType": "uint48",
|
|
380
|
+
"name": "",
|
|
381
|
+
"type": "uint48"
|
|
778
382
|
}
|
|
779
383
|
],
|
|
780
|
-
"
|
|
781
|
-
"outputs": [],
|
|
782
|
-
"stateMutability": "payable",
|
|
384
|
+
"stateMutability": "view",
|
|
783
385
|
"type": "function"
|
|
784
386
|
},
|
|
785
387
|
{
|
|
786
388
|
"inputs": [
|
|
787
389
|
{
|
|
788
|
-
"internalType": "
|
|
789
|
-
"name": "
|
|
790
|
-
"type": "
|
|
791
|
-
},
|
|
792
|
-
{
|
|
793
|
-
"internalType": "bytes4",
|
|
794
|
-
"name": "selector",
|
|
795
|
-
"type": "bytes4"
|
|
390
|
+
"internalType": "uint192",
|
|
391
|
+
"name": "key",
|
|
392
|
+
"type": "uint192"
|
|
796
393
|
}
|
|
797
394
|
],
|
|
798
|
-
"name": "
|
|
395
|
+
"name": "getNonce",
|
|
799
396
|
"outputs": [
|
|
800
397
|
{
|
|
801
|
-
"internalType": "
|
|
398
|
+
"internalType": "uint256",
|
|
802
399
|
"name": "",
|
|
803
|
-
"type": "
|
|
400
|
+
"type": "uint256"
|
|
804
401
|
}
|
|
805
402
|
],
|
|
806
403
|
"stateMutability": "view",
|
|
807
404
|
"type": "function"
|
|
808
405
|
},
|
|
809
406
|
{
|
|
810
|
-
"inputs": [
|
|
407
|
+
"inputs": [],
|
|
408
|
+
"name": "getNonce",
|
|
409
|
+
"outputs": [
|
|
811
410
|
{
|
|
812
411
|
"internalType": "uint256",
|
|
813
|
-
"name": "
|
|
412
|
+
"name": "",
|
|
814
413
|
"type": "uint256"
|
|
815
|
-
}
|
|
414
|
+
}
|
|
415
|
+
],
|
|
416
|
+
"stateMutability": "view",
|
|
417
|
+
"type": "function"
|
|
418
|
+
},
|
|
419
|
+
{
|
|
420
|
+
"inputs": [
|
|
816
421
|
{
|
|
817
|
-
"internalType": "
|
|
818
|
-
"name": "
|
|
422
|
+
"internalType": "contract IKernelValidator",
|
|
423
|
+
"name": "_defaultValidator",
|
|
819
424
|
"type": "address"
|
|
820
425
|
},
|
|
821
426
|
{
|
|
822
427
|
"internalType": "bytes",
|
|
823
|
-
"name": "
|
|
428
|
+
"name": "_data",
|
|
824
429
|
"type": "bytes"
|
|
825
430
|
}
|
|
826
431
|
],
|
|
827
|
-
"name": "
|
|
828
|
-
"outputs": [
|
|
829
|
-
|
|
830
|
-
"internalType": "bool",
|
|
831
|
-
"name": "",
|
|
832
|
-
"type": "bool"
|
|
833
|
-
}
|
|
834
|
-
],
|
|
835
|
-
"stateMutability": "view",
|
|
432
|
+
"name": "initialize",
|
|
433
|
+
"outputs": [],
|
|
434
|
+
"stateMutability": "payable",
|
|
836
435
|
"type": "function"
|
|
837
436
|
},
|
|
838
437
|
{
|
|
@@ -859,6 +458,19 @@ export const Kernel_jsonAbi = [
|
|
|
859
458
|
"stateMutability": "view",
|
|
860
459
|
"type": "function"
|
|
861
460
|
},
|
|
461
|
+
{
|
|
462
|
+
"inputs": [],
|
|
463
|
+
"name": "name",
|
|
464
|
+
"outputs": [
|
|
465
|
+
{
|
|
466
|
+
"internalType": "string",
|
|
467
|
+
"name": "",
|
|
468
|
+
"type": "string"
|
|
469
|
+
}
|
|
470
|
+
],
|
|
471
|
+
"stateMutability": "view",
|
|
472
|
+
"type": "function"
|
|
473
|
+
},
|
|
862
474
|
{
|
|
863
475
|
"inputs": [
|
|
864
476
|
{
|
|
@@ -974,168 +586,55 @@ export const Kernel_jsonAbi = [
|
|
|
974
586
|
{
|
|
975
587
|
"inputs": [
|
|
976
588
|
{
|
|
977
|
-
"internalType": "
|
|
978
|
-
"name": "
|
|
979
|
-
"type": "
|
|
980
|
-
}
|
|
981
|
-
],
|
|
982
|
-
"name": "permissionConfig",
|
|
983
|
-
"outputs": [
|
|
984
|
-
{
|
|
985
|
-
"components": [
|
|
986
|
-
{
|
|
987
|
-
"internalType": "PassFlag",
|
|
988
|
-
"name": "permissionFlag",
|
|
989
|
-
"type": "bytes2"
|
|
990
|
-
},
|
|
991
|
-
{
|
|
992
|
-
"internalType": "contract ISigner",
|
|
993
|
-
"name": "signer",
|
|
994
|
-
"type": "address"
|
|
995
|
-
},
|
|
996
|
-
{
|
|
997
|
-
"internalType": "PolicyData[]",
|
|
998
|
-
"name": "policyData",
|
|
999
|
-
"type": "bytes22[]"
|
|
1000
|
-
}
|
|
1001
|
-
],
|
|
1002
|
-
"internalType": "struct ValidationManager.PermissionConfig",
|
|
1003
|
-
"name": "",
|
|
1004
|
-
"type": "tuple"
|
|
1005
|
-
}
|
|
1006
|
-
],
|
|
1007
|
-
"stateMutability": "view",
|
|
1008
|
-
"type": "function"
|
|
1009
|
-
},
|
|
1010
|
-
{
|
|
1011
|
-
"inputs": [],
|
|
1012
|
-
"name": "rootValidator",
|
|
1013
|
-
"outputs": [
|
|
589
|
+
"internalType": "contract IKernelValidator",
|
|
590
|
+
"name": "_defaultValidator",
|
|
591
|
+
"type": "address"
|
|
592
|
+
},
|
|
1014
593
|
{
|
|
1015
|
-
"internalType": "
|
|
1016
|
-
"name": "",
|
|
1017
|
-
"type": "
|
|
594
|
+
"internalType": "bytes",
|
|
595
|
+
"name": "_data",
|
|
596
|
+
"type": "bytes"
|
|
1018
597
|
}
|
|
1019
598
|
],
|
|
1020
|
-
"
|
|
599
|
+
"name": "setDefaultValidator",
|
|
600
|
+
"outputs": [],
|
|
601
|
+
"stateMutability": "payable",
|
|
1021
602
|
"type": "function"
|
|
1022
603
|
},
|
|
1023
604
|
{
|
|
1024
605
|
"inputs": [
|
|
1025
606
|
{
|
|
1026
607
|
"internalType": "bytes4",
|
|
1027
|
-
"name": "
|
|
608
|
+
"name": "_selector",
|
|
1028
609
|
"type": "bytes4"
|
|
1029
|
-
}
|
|
1030
|
-
],
|
|
1031
|
-
"name": "selectorConfig",
|
|
1032
|
-
"outputs": [
|
|
1033
|
-
{
|
|
1034
|
-
"components": [
|
|
1035
|
-
{
|
|
1036
|
-
"internalType": "contract IHook",
|
|
1037
|
-
"name": "hook",
|
|
1038
|
-
"type": "address"
|
|
1039
|
-
},
|
|
1040
|
-
{
|
|
1041
|
-
"internalType": "address",
|
|
1042
|
-
"name": "target",
|
|
1043
|
-
"type": "address"
|
|
1044
|
-
},
|
|
1045
|
-
{
|
|
1046
|
-
"internalType": "CallType",
|
|
1047
|
-
"name": "callType",
|
|
1048
|
-
"type": "bytes1"
|
|
1049
|
-
}
|
|
1050
|
-
],
|
|
1051
|
-
"internalType": "struct SelectorManager.SelectorConfig",
|
|
1052
|
-
"name": "",
|
|
1053
|
-
"type": "tuple"
|
|
1054
|
-
}
|
|
1055
|
-
],
|
|
1056
|
-
"stateMutability": "view",
|
|
1057
|
-
"type": "function"
|
|
1058
|
-
},
|
|
1059
|
-
{
|
|
1060
|
-
"inputs": [
|
|
1061
|
-
{
|
|
1062
|
-
"internalType": "ExecMode",
|
|
1063
|
-
"name": "mode",
|
|
1064
|
-
"type": "bytes32"
|
|
1065
|
-
}
|
|
1066
|
-
],
|
|
1067
|
-
"name": "supportsExecutionMode",
|
|
1068
|
-
"outputs": [
|
|
1069
|
-
{
|
|
1070
|
-
"internalType": "bool",
|
|
1071
|
-
"name": "",
|
|
1072
|
-
"type": "bool"
|
|
1073
|
-
}
|
|
1074
|
-
],
|
|
1075
|
-
"stateMutability": "pure",
|
|
1076
|
-
"type": "function"
|
|
1077
|
-
},
|
|
1078
|
-
{
|
|
1079
|
-
"inputs": [
|
|
1080
|
-
{
|
|
1081
|
-
"internalType": "uint256",
|
|
1082
|
-
"name": "moduleTypeId",
|
|
1083
|
-
"type": "uint256"
|
|
1084
|
-
}
|
|
1085
|
-
],
|
|
1086
|
-
"name": "supportsModule",
|
|
1087
|
-
"outputs": [
|
|
1088
|
-
{
|
|
1089
|
-
"internalType": "bool",
|
|
1090
|
-
"name": "",
|
|
1091
|
-
"type": "bool"
|
|
1092
|
-
}
|
|
1093
|
-
],
|
|
1094
|
-
"stateMutability": "pure",
|
|
1095
|
-
"type": "function"
|
|
1096
|
-
},
|
|
1097
|
-
{
|
|
1098
|
-
"inputs": [
|
|
1099
|
-
{
|
|
1100
|
-
"internalType": "uint256",
|
|
1101
|
-
"name": "moduleType",
|
|
1102
|
-
"type": "uint256"
|
|
1103
610
|
},
|
|
1104
611
|
{
|
|
1105
612
|
"internalType": "address",
|
|
1106
|
-
"name": "
|
|
613
|
+
"name": "_executor",
|
|
1107
614
|
"type": "address"
|
|
1108
615
|
},
|
|
1109
616
|
{
|
|
1110
|
-
"internalType": "
|
|
1111
|
-
"name": "
|
|
1112
|
-
"type": "
|
|
1113
|
-
}
|
|
1114
|
-
],
|
|
1115
|
-
"name": "uninstallModule",
|
|
1116
|
-
"outputs": [],
|
|
1117
|
-
"stateMutability": "payable",
|
|
1118
|
-
"type": "function"
|
|
1119
|
-
},
|
|
1120
|
-
{
|
|
1121
|
-
"inputs": [
|
|
617
|
+
"internalType": "contract IKernelValidator",
|
|
618
|
+
"name": "_validator",
|
|
619
|
+
"type": "address"
|
|
620
|
+
},
|
|
1122
621
|
{
|
|
1123
|
-
"internalType": "
|
|
1124
|
-
"name": "
|
|
1125
|
-
"type": "
|
|
622
|
+
"internalType": "ValidUntil",
|
|
623
|
+
"name": "_validUntil",
|
|
624
|
+
"type": "uint48"
|
|
1126
625
|
},
|
|
1127
626
|
{
|
|
1128
|
-
"internalType": "
|
|
1129
|
-
"name": "
|
|
1130
|
-
"type": "
|
|
627
|
+
"internalType": "ValidAfter",
|
|
628
|
+
"name": "_validAfter",
|
|
629
|
+
"type": "uint48"
|
|
1131
630
|
},
|
|
1132
631
|
{
|
|
1133
632
|
"internalType": "bytes",
|
|
1134
|
-
"name": "
|
|
633
|
+
"name": "_enableData",
|
|
1135
634
|
"type": "bytes"
|
|
1136
635
|
}
|
|
1137
636
|
],
|
|
1138
|
-
"name": "
|
|
637
|
+
"name": "setExecution",
|
|
1139
638
|
"outputs": [],
|
|
1140
639
|
"stateMutability": "payable",
|
|
1141
640
|
"type": "function"
|
|
@@ -1154,13 +653,24 @@ export const Kernel_jsonAbi = [
|
|
|
1154
653
|
"type": "function"
|
|
1155
654
|
},
|
|
1156
655
|
{
|
|
1157
|
-
"inputs": [
|
|
1158
|
-
|
|
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",
|
|
1159
669
|
"outputs": [
|
|
1160
670
|
{
|
|
1161
|
-
"internalType": "
|
|
671
|
+
"internalType": "ValidationData",
|
|
1162
672
|
"name": "",
|
|
1163
|
-
"type": "
|
|
673
|
+
"type": "uint256"
|
|
1164
674
|
}
|
|
1165
675
|
],
|
|
1166
676
|
"stateMutability": "view",
|
|
@@ -1191,9 +701,14 @@ export const Kernel_jsonAbi = [
|
|
|
1191
701
|
"type": "bytes"
|
|
1192
702
|
},
|
|
1193
703
|
{
|
|
1194
|
-
"internalType": "
|
|
1195
|
-
"name": "
|
|
1196
|
-
"type": "
|
|
704
|
+
"internalType": "uint256",
|
|
705
|
+
"name": "callGasLimit",
|
|
706
|
+
"type": "uint256"
|
|
707
|
+
},
|
|
708
|
+
{
|
|
709
|
+
"internalType": "uint256",
|
|
710
|
+
"name": "verificationGasLimit",
|
|
711
|
+
"type": "uint256"
|
|
1197
712
|
},
|
|
1198
713
|
{
|
|
1199
714
|
"internalType": "uint256",
|
|
@@ -1201,9 +716,14 @@ export const Kernel_jsonAbi = [
|
|
|
1201
716
|
"type": "uint256"
|
|
1202
717
|
},
|
|
1203
718
|
{
|
|
1204
|
-
"internalType": "
|
|
1205
|
-
"name": "
|
|
1206
|
-
"type": "
|
|
719
|
+
"internalType": "uint256",
|
|
720
|
+
"name": "maxFeePerGas",
|
|
721
|
+
"type": "uint256"
|
|
722
|
+
},
|
|
723
|
+
{
|
|
724
|
+
"internalType": "uint256",
|
|
725
|
+
"name": "maxPriorityFeePerGas",
|
|
726
|
+
"type": "uint256"
|
|
1207
727
|
},
|
|
1208
728
|
{
|
|
1209
729
|
"internalType": "bytes",
|
|
@@ -1216,8 +736,8 @@ export const Kernel_jsonAbi = [
|
|
|
1216
736
|
"type": "bytes"
|
|
1217
737
|
}
|
|
1218
738
|
],
|
|
1219
|
-
"internalType": "struct
|
|
1220
|
-
"name": "
|
|
739
|
+
"internalType": "struct UserOperation",
|
|
740
|
+
"name": "_userOp",
|
|
1221
741
|
"type": "tuple"
|
|
1222
742
|
},
|
|
1223
743
|
{
|
|
@@ -1243,31 +763,13 @@ export const Kernel_jsonAbi = [
|
|
|
1243
763
|
"type": "function"
|
|
1244
764
|
},
|
|
1245
765
|
{
|
|
1246
|
-
"inputs": [
|
|
1247
|
-
|
|
1248
|
-
"internalType": "ValidationId",
|
|
1249
|
-
"name": "vId",
|
|
1250
|
-
"type": "bytes21"
|
|
1251
|
-
}
|
|
1252
|
-
],
|
|
1253
|
-
"name": "validationConfig",
|
|
766
|
+
"inputs": [],
|
|
767
|
+
"name": "version",
|
|
1254
768
|
"outputs": [
|
|
1255
769
|
{
|
|
1256
|
-
"
|
|
1257
|
-
{
|
|
1258
|
-
"internalType": "uint32",
|
|
1259
|
-
"name": "nonce",
|
|
1260
|
-
"type": "uint32"
|
|
1261
|
-
},
|
|
1262
|
-
{
|
|
1263
|
-
"internalType": "contract IHook",
|
|
1264
|
-
"name": "hook",
|
|
1265
|
-
"type": "address"
|
|
1266
|
-
}
|
|
1267
|
-
],
|
|
1268
|
-
"internalType": "struct ValidationManager.ValidationConfig",
|
|
770
|
+
"internalType": "string",
|
|
1269
771
|
"name": "",
|
|
1270
|
-
"type": "
|
|
772
|
+
"type": "string"
|
|
1271
773
|
}
|
|
1272
774
|
],
|
|
1273
775
|
"stateMutability": "view",
|
|
@@ -1362,59 +864,57 @@ export class Kernel_json {
|
|
|
1362
864
|
}
|
|
1363
865
|
|
|
1364
866
|
/**
|
|
1365
|
-
*
|
|
1366
|
-
*
|
|
867
|
+
* eip712Domain
|
|
868
|
+
* view
|
|
1367
869
|
*/
|
|
1368
|
-
async
|
|
1369
|
-
return this.contract.read.
|
|
870
|
+
async eip712Domain(): Promise<[`0x${string}`, string, string, bigint, `0x${string}`, `0x${string}`, bigint[]]> {
|
|
871
|
+
return this.contract.read.eip712Domain() as Promise<[`0x${string}`, string, string, bigint, `0x${string}`, `0x${string}`, bigint[]]>;
|
|
1370
872
|
}
|
|
1371
873
|
|
|
1372
874
|
/**
|
|
1373
|
-
*
|
|
875
|
+
* entryPoint
|
|
1374
876
|
* view
|
|
1375
877
|
*/
|
|
1376
|
-
async
|
|
1377
|
-
return this.contract.read.
|
|
878
|
+
async entryPoint(): Promise<`0x${string}`> {
|
|
879
|
+
return this.contract.read.entryPoint() as Promise<`0x${string}`>;
|
|
1378
880
|
}
|
|
1379
881
|
|
|
1380
882
|
/**
|
|
1381
|
-
*
|
|
883
|
+
* getDefaultValidator
|
|
1382
884
|
* view
|
|
1383
885
|
*/
|
|
1384
|
-
async
|
|
1385
|
-
return this.contract.read.
|
|
886
|
+
async getDefaultValidator(): Promise<`0x${string}`> {
|
|
887
|
+
return this.contract.read.getDefaultValidator() as Promise<`0x${string}`>;
|
|
1386
888
|
}
|
|
1387
889
|
|
|
1388
890
|
/**
|
|
1389
|
-
*
|
|
891
|
+
* getDisabledMode
|
|
1390
892
|
* view
|
|
1391
893
|
*/
|
|
1392
|
-
async
|
|
1393
|
-
return this.contract.read.
|
|
894
|
+
async getDisabledMode(): Promise<`0x${string}`> {
|
|
895
|
+
return this.contract.read.getDisabledMode() as Promise<`0x${string}`>;
|
|
1394
896
|
}
|
|
1395
897
|
|
|
1396
898
|
/**
|
|
1397
|
-
*
|
|
899
|
+
* getExecution
|
|
1398
900
|
* view
|
|
1399
901
|
*/
|
|
1400
|
-
async
|
|
1401
|
-
return this.contract.read.
|
|
902
|
+
async getExecution(_selector: `0x${string}`): Promise<ExecutionDetail> {
|
|
903
|
+
return this.contract.read.getExecution([_selector] as const) as Promise<ExecutionDetail>;
|
|
1402
904
|
}
|
|
1403
905
|
|
|
1404
906
|
/**
|
|
1405
|
-
*
|
|
907
|
+
* getLastDisabledTime
|
|
1406
908
|
* view
|
|
1407
909
|
*/
|
|
1408
|
-
async
|
|
1409
|
-
return this.contract.read.
|
|
910
|
+
async getLastDisabledTime(): Promise<bigint> {
|
|
911
|
+
return this.contract.read.getLastDisabledTime() as Promise<bigint>;
|
|
1410
912
|
}
|
|
1411
913
|
|
|
1412
|
-
|
|
1413
|
-
|
|
1414
|
-
|
|
1415
|
-
|
|
1416
|
-
async isModuleInstalled(moduleType: bigint, module: `0x${string}`, additionalContext: `0x${string}`): Promise<boolean> {
|
|
1417
|
-
return this.contract.read.isModuleInstalled([moduleType, module, additionalContext] as const) as Promise<boolean>;
|
|
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>;
|
|
1418
918
|
}
|
|
1419
919
|
|
|
1420
920
|
/**
|
|
@@ -1425,6 +925,14 @@ export class Kernel_json {
|
|
|
1425
925
|
return this.contract.read.isValidSignature([hash, signature] as const) as Promise<`0x${string}`>;
|
|
1426
926
|
}
|
|
1427
927
|
|
|
928
|
+
/**
|
|
929
|
+
* name
|
|
930
|
+
* view
|
|
931
|
+
*/
|
|
932
|
+
async name(): Promise<string> {
|
|
933
|
+
return this.contract.read.name() as Promise<string>;
|
|
934
|
+
}
|
|
935
|
+
|
|
1428
936
|
/**
|
|
1429
937
|
* onERC1155BatchReceived
|
|
1430
938
|
* pure
|
|
@@ -1450,67 +958,27 @@ export class Kernel_json {
|
|
|
1450
958
|
}
|
|
1451
959
|
|
|
1452
960
|
/**
|
|
1453
|
-
*
|
|
1454
|
-
* view
|
|
1455
|
-
*/
|
|
1456
|
-
async permissionConfig(pId: `0x${string}`): Promise<ValidationManager_PermissionConfig> {
|
|
1457
|
-
return this.contract.read.permissionConfig([pId] as const) as Promise<ValidationManager_PermissionConfig>;
|
|
1458
|
-
}
|
|
1459
|
-
|
|
1460
|
-
/**
|
|
1461
|
-
* rootValidator
|
|
1462
|
-
* view
|
|
1463
|
-
*/
|
|
1464
|
-
async rootValidator(): Promise<`0x${string}`> {
|
|
1465
|
-
return this.contract.read.rootValidator() as Promise<`0x${string}`>;
|
|
1466
|
-
}
|
|
1467
|
-
|
|
1468
|
-
/**
|
|
1469
|
-
* selectorConfig
|
|
1470
|
-
* view
|
|
1471
|
-
*/
|
|
1472
|
-
async selectorConfig(selector: `0x${string}`): Promise<SelectorManager_SelectorConfig> {
|
|
1473
|
-
return this.contract.read.selectorConfig([selector] as const) as Promise<SelectorManager_SelectorConfig>;
|
|
1474
|
-
}
|
|
1475
|
-
|
|
1476
|
-
/**
|
|
1477
|
-
* supportsExecutionMode
|
|
1478
|
-
* pure
|
|
1479
|
-
*/
|
|
1480
|
-
async supportsExecutionMode(mode: `0x${string}`): Promise<boolean> {
|
|
1481
|
-
return this.contract.read.supportsExecutionMode([mode] as const) as Promise<boolean>;
|
|
1482
|
-
}
|
|
1483
|
-
|
|
1484
|
-
/**
|
|
1485
|
-
* supportsModule
|
|
1486
|
-
* pure
|
|
1487
|
-
*/
|
|
1488
|
-
async supportsModule(moduleTypeId: bigint): Promise<boolean> {
|
|
1489
|
-
return this.contract.read.supportsModule([moduleTypeId] as const) as Promise<boolean>;
|
|
1490
|
-
}
|
|
1491
|
-
|
|
1492
|
-
/**
|
|
1493
|
-
* validNonceFrom
|
|
961
|
+
* validateSignature
|
|
1494
962
|
* view
|
|
1495
963
|
*/
|
|
1496
|
-
async
|
|
1497
|
-
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>;
|
|
1498
966
|
}
|
|
1499
967
|
|
|
1500
968
|
/**
|
|
1501
|
-
*
|
|
969
|
+
* version
|
|
1502
970
|
* view
|
|
1503
971
|
*/
|
|
1504
|
-
async
|
|
1505
|
-
return this.contract.read.
|
|
972
|
+
async version(): Promise<string> {
|
|
973
|
+
return this.contract.read.version() as Promise<string>;
|
|
1506
974
|
}
|
|
1507
975
|
|
|
1508
976
|
/**
|
|
1509
|
-
*
|
|
977
|
+
* disableMode
|
|
1510
978
|
* payable
|
|
1511
979
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1512
980
|
*/
|
|
1513
|
-
async
|
|
981
|
+
async disableMode(_disableFlag: `0x${string}`, options?: {
|
|
1514
982
|
accessList?: import('viem').AccessList;
|
|
1515
983
|
authorizationList?: import('viem').AuthorizationList;
|
|
1516
984
|
chain?: import('viem').Chain | null;
|
|
@@ -1525,7 +993,7 @@ export class Kernel_json {
|
|
|
1525
993
|
if (!this.contract.write) {
|
|
1526
994
|
throw new Error('Wallet client is required for write operations');
|
|
1527
995
|
}
|
|
1528
|
-
return this.contract.write.
|
|
996
|
+
return this.contract.write.disableMode([_disableFlag] as const, options) as Promise<`0x${string}`>;
|
|
1529
997
|
}
|
|
1530
998
|
|
|
1531
999
|
/**
|
|
@@ -1533,7 +1001,7 @@ export class Kernel_json {
|
|
|
1533
1001
|
* payable
|
|
1534
1002
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1535
1003
|
*/
|
|
1536
|
-
async execute(
|
|
1004
|
+
async execute(to: `0x${string}`, value: bigint, data: `0x${string}`, _operation: bigint, options?: {
|
|
1537
1005
|
accessList?: import('viem').AccessList;
|
|
1538
1006
|
authorizationList?: import('viem').AuthorizationList;
|
|
1539
1007
|
chain?: import('viem').Chain | null;
|
|
@@ -1548,15 +1016,15 @@ export class Kernel_json {
|
|
|
1548
1016
|
if (!this.contract.write) {
|
|
1549
1017
|
throw new Error('Wallet client is required for write operations');
|
|
1550
1018
|
}
|
|
1551
|
-
return this.contract.write.execute([
|
|
1019
|
+
return this.contract.write.execute([to, value, data, _operation] as const, options) as Promise<`0x${string}`>;
|
|
1552
1020
|
}
|
|
1553
1021
|
|
|
1554
1022
|
/**
|
|
1555
|
-
*
|
|
1023
|
+
* executeBatch
|
|
1556
1024
|
* payable
|
|
1557
1025
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1558
1026
|
*/
|
|
1559
|
-
async
|
|
1027
|
+
async executeBatch(calls: Call[], options?: {
|
|
1560
1028
|
accessList?: import('viem').AccessList;
|
|
1561
1029
|
authorizationList?: import('viem').AuthorizationList;
|
|
1562
1030
|
chain?: import('viem').Chain | null;
|
|
@@ -1571,15 +1039,15 @@ export class Kernel_json {
|
|
|
1571
1039
|
if (!this.contract.write) {
|
|
1572
1040
|
throw new Error('Wallet client is required for write operations');
|
|
1573
1041
|
}
|
|
1574
|
-
return this.contract.write.
|
|
1042
|
+
return this.contract.write.executeBatch([calls] as const, options) as Promise<`0x${string}`>;
|
|
1575
1043
|
}
|
|
1576
1044
|
|
|
1577
1045
|
/**
|
|
1578
|
-
*
|
|
1046
|
+
* executeDelegateCall
|
|
1579
1047
|
* payable
|
|
1580
1048
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1581
1049
|
*/
|
|
1582
|
-
async
|
|
1050
|
+
async executeDelegateCall(to: `0x${string}`, data: `0x${string}`, options?: {
|
|
1583
1051
|
accessList?: import('viem').AccessList;
|
|
1584
1052
|
authorizationList?: import('viem').AuthorizationList;
|
|
1585
1053
|
chain?: import('viem').Chain | null;
|
|
@@ -1594,84 +1062,15 @@ export class Kernel_json {
|
|
|
1594
1062
|
if (!this.contract.write) {
|
|
1595
1063
|
throw new Error('Wallet client is required for write operations');
|
|
1596
1064
|
}
|
|
1597
|
-
return this.contract.write.
|
|
1065
|
+
return this.contract.write.executeDelegateCall([to, data] as const, options) as Promise<`0x${string}`>;
|
|
1598
1066
|
}
|
|
1599
1067
|
|
|
1600
1068
|
/**
|
|
1601
1069
|
* initialize
|
|
1602
|
-
* nonpayable
|
|
1603
|
-
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1604
|
-
*/
|
|
1605
|
-
async initialize(_rootValidator: `0x${string}`, hook: `0x${string}`, validatorData: `0x${string}`, hookData: `0x${string}`, initConfig: `0x${string}`[], options?: {
|
|
1606
|
-
accessList?: import('viem').AccessList;
|
|
1607
|
-
authorizationList?: import('viem').AuthorizationList;
|
|
1608
|
-
chain?: import('viem').Chain | null;
|
|
1609
|
-
dataSuffix?: `0x${string}`;
|
|
1610
|
-
gas?: bigint;
|
|
1611
|
-
gasPrice?: bigint;
|
|
1612
|
-
maxFeePerGas?: bigint;
|
|
1613
|
-
maxPriorityFeePerGas?: bigint;
|
|
1614
|
-
nonce?: number;
|
|
1615
|
-
value?: bigint;
|
|
1616
|
-
}): Promise<`0x${string}`> {
|
|
1617
|
-
if (!this.contract.write) {
|
|
1618
|
-
throw new Error('Wallet client is required for write operations');
|
|
1619
|
-
}
|
|
1620
|
-
return this.contract.write.initialize([_rootValidator, hook, validatorData, hookData, initConfig] as const, options) as Promise<`0x${string}`>;
|
|
1621
|
-
}
|
|
1622
|
-
|
|
1623
|
-
/**
|
|
1624
|
-
* installModule
|
|
1625
|
-
* payable
|
|
1626
|
-
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1627
|
-
*/
|
|
1628
|
-
async installModule(moduleType: bigint, module: `0x${string}`, initData: `0x${string}`, options?: {
|
|
1629
|
-
accessList?: import('viem').AccessList;
|
|
1630
|
-
authorizationList?: import('viem').AuthorizationList;
|
|
1631
|
-
chain?: import('viem').Chain | null;
|
|
1632
|
-
dataSuffix?: `0x${string}`;
|
|
1633
|
-
gas?: bigint;
|
|
1634
|
-
gasPrice?: bigint;
|
|
1635
|
-
maxFeePerGas?: bigint;
|
|
1636
|
-
maxPriorityFeePerGas?: bigint;
|
|
1637
|
-
nonce?: number;
|
|
1638
|
-
value?: bigint;
|
|
1639
|
-
}): Promise<`0x${string}`> {
|
|
1640
|
-
if (!this.contract.write) {
|
|
1641
|
-
throw new Error('Wallet client is required for write operations');
|
|
1642
|
-
}
|
|
1643
|
-
return this.contract.write.installModule([moduleType, module, initData] as const, options) as Promise<`0x${string}`>;
|
|
1644
|
-
}
|
|
1645
|
-
|
|
1646
|
-
/**
|
|
1647
|
-
* installValidations
|
|
1648
|
-
* payable
|
|
1649
|
-
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1650
|
-
*/
|
|
1651
|
-
async installValidations(vIds: `0x${string}`[], configs: ValidationManager_ValidationConfig[], validationData: `0x${string}`[], hookData: `0x${string}`[], options?: {
|
|
1652
|
-
accessList?: import('viem').AccessList;
|
|
1653
|
-
authorizationList?: import('viem').AuthorizationList;
|
|
1654
|
-
chain?: import('viem').Chain | null;
|
|
1655
|
-
dataSuffix?: `0x${string}`;
|
|
1656
|
-
gas?: bigint;
|
|
1657
|
-
gasPrice?: bigint;
|
|
1658
|
-
maxFeePerGas?: bigint;
|
|
1659
|
-
maxPriorityFeePerGas?: bigint;
|
|
1660
|
-
nonce?: number;
|
|
1661
|
-
value?: bigint;
|
|
1662
|
-
}): Promise<`0x${string}`> {
|
|
1663
|
-
if (!this.contract.write) {
|
|
1664
|
-
throw new Error('Wallet client is required for write operations');
|
|
1665
|
-
}
|
|
1666
|
-
return this.contract.write.installValidations([vIds, configs, validationData, hookData] as const, options) as Promise<`0x${string}`>;
|
|
1667
|
-
}
|
|
1668
|
-
|
|
1669
|
-
/**
|
|
1670
|
-
* invalidateNonce
|
|
1671
1070
|
* payable
|
|
1672
1071
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1673
1072
|
*/
|
|
1674
|
-
async
|
|
1073
|
+
async initialize(_defaultValidator: `0x${string}`, _data: `0x${string}`, options?: {
|
|
1675
1074
|
accessList?: import('viem').AccessList;
|
|
1676
1075
|
authorizationList?: import('viem').AuthorizationList;
|
|
1677
1076
|
chain?: import('viem').Chain | null;
|
|
@@ -1686,15 +1085,15 @@ export class Kernel_json {
|
|
|
1686
1085
|
if (!this.contract.write) {
|
|
1687
1086
|
throw new Error('Wallet client is required for write operations');
|
|
1688
1087
|
}
|
|
1689
|
-
return this.contract.write.
|
|
1088
|
+
return this.contract.write.initialize([_defaultValidator, _data] as const, options) as Promise<`0x${string}`>;
|
|
1690
1089
|
}
|
|
1691
1090
|
|
|
1692
1091
|
/**
|
|
1693
|
-
*
|
|
1092
|
+
* setDefaultValidator
|
|
1694
1093
|
* payable
|
|
1695
1094
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1696
1095
|
*/
|
|
1697
|
-
async
|
|
1096
|
+
async setDefaultValidator(_defaultValidator: `0x${string}`, _data: `0x${string}`, options?: {
|
|
1698
1097
|
accessList?: import('viem').AccessList;
|
|
1699
1098
|
authorizationList?: import('viem').AuthorizationList;
|
|
1700
1099
|
chain?: import('viem').Chain | null;
|
|
@@ -1709,15 +1108,15 @@ export class Kernel_json {
|
|
|
1709
1108
|
if (!this.contract.write) {
|
|
1710
1109
|
throw new Error('Wallet client is required for write operations');
|
|
1711
1110
|
}
|
|
1712
|
-
return this.contract.write.
|
|
1111
|
+
return this.contract.write.setDefaultValidator([_defaultValidator, _data] as const, options) as Promise<`0x${string}`>;
|
|
1713
1112
|
}
|
|
1714
1113
|
|
|
1715
1114
|
/**
|
|
1716
|
-
*
|
|
1115
|
+
* setExecution
|
|
1717
1116
|
* payable
|
|
1718
1117
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1719
1118
|
*/
|
|
1720
|
-
async
|
|
1119
|
+
async setExecution(_selector: `0x${string}`, _executor: `0x${string}`, _validator: `0x${string}`, _validUntil: bigint, _validAfter: bigint, _enableData: `0x${string}`, options?: {
|
|
1721
1120
|
accessList?: import('viem').AccessList;
|
|
1722
1121
|
authorizationList?: import('viem').AuthorizationList;
|
|
1723
1122
|
chain?: import('viem').Chain | null;
|
|
@@ -1732,7 +1131,7 @@ export class Kernel_json {
|
|
|
1732
1131
|
if (!this.contract.write) {
|
|
1733
1132
|
throw new Error('Wallet client is required for write operations');
|
|
1734
1133
|
}
|
|
1735
|
-
return this.contract.write.
|
|
1134
|
+
return this.contract.write.setExecution([_selector, _executor, _validator, _validUntil, _validAfter, _enableData] as const, options) as Promise<`0x${string}`>;
|
|
1736
1135
|
}
|
|
1737
1136
|
|
|
1738
1137
|
/**
|
|
@@ -1763,7 +1162,7 @@ export class Kernel_json {
|
|
|
1763
1162
|
* payable
|
|
1764
1163
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1765
1164
|
*/
|
|
1766
|
-
async validateUserOp(
|
|
1165
|
+
async validateUserOp(_userOp: UserOperation, userOpHash: `0x${string}`, missingAccountFunds: bigint, options?: {
|
|
1767
1166
|
accessList?: import('viem').AccessList;
|
|
1768
1167
|
authorizationList?: import('viem').AuthorizationList;
|
|
1769
1168
|
chain?: import('viem').Chain | null;
|
|
@@ -1778,7 +1177,7 @@ export class Kernel_json {
|
|
|
1778
1177
|
if (!this.contract.write) {
|
|
1779
1178
|
throw new Error('Wallet client is required for write operations');
|
|
1780
1179
|
}
|
|
1781
|
-
return this.contract.write.validateUserOp([
|
|
1180
|
+
return this.contract.write.validateUserOp([_userOp, userOpHash, missingAccountFunds] as const, options) as Promise<`0x${string}`>;
|
|
1782
1181
|
}
|
|
1783
1182
|
|
|
1784
1183
|
|
|
@@ -1798,11 +1197,11 @@ export class Kernel_json {
|
|
|
1798
1197
|
}
|
|
1799
1198
|
return {
|
|
1800
1199
|
/**
|
|
1801
|
-
* Simulate
|
|
1200
|
+
* Simulate disableMode
|
|
1802
1201
|
* Returns gas estimate and result without sending transaction
|
|
1803
1202
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1804
1203
|
*/
|
|
1805
|
-
async
|
|
1204
|
+
async disableMode(_disableFlag: `0x${string}`, options?: {
|
|
1806
1205
|
accessList?: import('viem').AccessList;
|
|
1807
1206
|
authorizationList?: import('viem').AuthorizationList;
|
|
1808
1207
|
chain?: import('viem').Chain | null;
|
|
@@ -1814,71 +1213,14 @@ export class Kernel_json {
|
|
|
1814
1213
|
nonce?: number;
|
|
1815
1214
|
value?: bigint;
|
|
1816
1215
|
}): Promise<void> {
|
|
1817
|
-
return contract.simulate.
|
|
1216
|
+
return contract.simulate.disableMode([_disableFlag] as const, options) as Promise<void>;
|
|
1818
1217
|
},
|
|
1819
1218
|
/**
|
|
1820
1219
|
* Simulate execute
|
|
1821
1220
|
* Returns gas estimate and result without sending transaction
|
|
1822
1221
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1823
1222
|
*/
|
|
1824
|
-
async execute(
|
|
1825
|
-
accessList?: import('viem').AccessList;
|
|
1826
|
-
authorizationList?: import('viem').AuthorizationList;
|
|
1827
|
-
chain?: import('viem').Chain | null;
|
|
1828
|
-
dataSuffix?: `0x${string}`;
|
|
1829
|
-
gas?: bigint;
|
|
1830
|
-
gasPrice?: bigint;
|
|
1831
|
-
maxFeePerGas?: bigint;
|
|
1832
|
-
maxPriorityFeePerGas?: bigint;
|
|
1833
|
-
nonce?: number;
|
|
1834
|
-
value?: bigint;
|
|
1835
|
-
}): Promise<void> {
|
|
1836
|
-
return contract.simulate.execute([execMode, executionCalldata] as const, options) as Promise<void>;
|
|
1837
|
-
},
|
|
1838
|
-
/**
|
|
1839
|
-
* Simulate executeFromExecutor
|
|
1840
|
-
* Returns gas estimate and result without sending transaction
|
|
1841
|
-
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1842
|
-
*/
|
|
1843
|
-
async executeFromExecutor(execMode: `0x${string}`, executionCalldata: `0x${string}`, options?: {
|
|
1844
|
-
accessList?: import('viem').AccessList;
|
|
1845
|
-
authorizationList?: import('viem').AuthorizationList;
|
|
1846
|
-
chain?: import('viem').Chain | null;
|
|
1847
|
-
dataSuffix?: `0x${string}`;
|
|
1848
|
-
gas?: bigint;
|
|
1849
|
-
gasPrice?: bigint;
|
|
1850
|
-
maxFeePerGas?: bigint;
|
|
1851
|
-
maxPriorityFeePerGas?: bigint;
|
|
1852
|
-
nonce?: number;
|
|
1853
|
-
value?: bigint;
|
|
1854
|
-
}): Promise<`0x${string}`[]> {
|
|
1855
|
-
return contract.simulate.executeFromExecutor([execMode, executionCalldata] as const, options) as Promise<`0x${string}`[]>;
|
|
1856
|
-
},
|
|
1857
|
-
/**
|
|
1858
|
-
* Simulate executeUserOp
|
|
1859
|
-
* Returns gas estimate and result without sending transaction
|
|
1860
|
-
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1861
|
-
*/
|
|
1862
|
-
async executeUserOp(userOp: PackedUserOperation, userOpHash: `0x${string}`, options?: {
|
|
1863
|
-
accessList?: import('viem').AccessList;
|
|
1864
|
-
authorizationList?: import('viem').AuthorizationList;
|
|
1865
|
-
chain?: import('viem').Chain | null;
|
|
1866
|
-
dataSuffix?: `0x${string}`;
|
|
1867
|
-
gas?: bigint;
|
|
1868
|
-
gasPrice?: bigint;
|
|
1869
|
-
maxFeePerGas?: bigint;
|
|
1870
|
-
maxPriorityFeePerGas?: bigint;
|
|
1871
|
-
nonce?: number;
|
|
1872
|
-
value?: bigint;
|
|
1873
|
-
}): Promise<void> {
|
|
1874
|
-
return contract.simulate.executeUserOp([userOp, userOpHash] as const, options) as Promise<void>;
|
|
1875
|
-
},
|
|
1876
|
-
/**
|
|
1877
|
-
* Simulate initialize
|
|
1878
|
-
* Returns gas estimate and result without sending transaction
|
|
1879
|
-
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1880
|
-
*/
|
|
1881
|
-
async initialize(_rootValidator: `0x${string}`, hook: `0x${string}`, validatorData: `0x${string}`, hookData: `0x${string}`, initConfig: `0x${string}`[], options?: {
|
|
1223
|
+
async execute(to: `0x${string}`, value: bigint, data: `0x${string}`, _operation: bigint, options?: {
|
|
1882
1224
|
accessList?: import('viem').AccessList;
|
|
1883
1225
|
authorizationList?: import('viem').AuthorizationList;
|
|
1884
1226
|
chain?: import('viem').Chain | null;
|
|
@@ -1890,14 +1232,14 @@ export class Kernel_json {
|
|
|
1890
1232
|
nonce?: number;
|
|
1891
1233
|
value?: bigint;
|
|
1892
1234
|
}): Promise<void> {
|
|
1893
|
-
return contract.simulate.
|
|
1235
|
+
return contract.simulate.execute([to, value, data, _operation] as const, options) as Promise<void>;
|
|
1894
1236
|
},
|
|
1895
1237
|
/**
|
|
1896
|
-
* Simulate
|
|
1238
|
+
* Simulate executeBatch
|
|
1897
1239
|
* Returns gas estimate and result without sending transaction
|
|
1898
1240
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1899
1241
|
*/
|
|
1900
|
-
async
|
|
1242
|
+
async executeBatch(calls: Call[], options?: {
|
|
1901
1243
|
accessList?: import('viem').AccessList;
|
|
1902
1244
|
authorizationList?: import('viem').AuthorizationList;
|
|
1903
1245
|
chain?: import('viem').Chain | null;
|
|
@@ -1909,14 +1251,14 @@ export class Kernel_json {
|
|
|
1909
1251
|
nonce?: number;
|
|
1910
1252
|
value?: bigint;
|
|
1911
1253
|
}): Promise<void> {
|
|
1912
|
-
return contract.simulate.
|
|
1254
|
+
return contract.simulate.executeBatch([calls] as const, options) as Promise<void>;
|
|
1913
1255
|
},
|
|
1914
1256
|
/**
|
|
1915
|
-
* Simulate
|
|
1257
|
+
* Simulate executeDelegateCall
|
|
1916
1258
|
* Returns gas estimate and result without sending transaction
|
|
1917
1259
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1918
1260
|
*/
|
|
1919
|
-
async
|
|
1261
|
+
async executeDelegateCall(to: `0x${string}`, data: `0x${string}`, options?: {
|
|
1920
1262
|
accessList?: import('viem').AccessList;
|
|
1921
1263
|
authorizationList?: import('viem').AuthorizationList;
|
|
1922
1264
|
chain?: import('viem').Chain | null;
|
|
@@ -1928,14 +1270,14 @@ export class Kernel_json {
|
|
|
1928
1270
|
nonce?: number;
|
|
1929
1271
|
value?: bigint;
|
|
1930
1272
|
}): Promise<void> {
|
|
1931
|
-
return contract.simulate.
|
|
1273
|
+
return contract.simulate.executeDelegateCall([to, data] as const, options) as Promise<void>;
|
|
1932
1274
|
},
|
|
1933
1275
|
/**
|
|
1934
|
-
* Simulate
|
|
1276
|
+
* Simulate initialize
|
|
1935
1277
|
* Returns gas estimate and result without sending transaction
|
|
1936
1278
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1937
1279
|
*/
|
|
1938
|
-
async
|
|
1280
|
+
async initialize(_defaultValidator: `0x${string}`, _data: `0x${string}`, options?: {
|
|
1939
1281
|
accessList?: import('viem').AccessList;
|
|
1940
1282
|
authorizationList?: import('viem').AuthorizationList;
|
|
1941
1283
|
chain?: import('viem').Chain | null;
|
|
@@ -1947,14 +1289,14 @@ export class Kernel_json {
|
|
|
1947
1289
|
nonce?: number;
|
|
1948
1290
|
value?: bigint;
|
|
1949
1291
|
}): Promise<void> {
|
|
1950
|
-
return contract.simulate.
|
|
1292
|
+
return contract.simulate.initialize([_defaultValidator, _data] as const, options) as Promise<void>;
|
|
1951
1293
|
},
|
|
1952
1294
|
/**
|
|
1953
|
-
* Simulate
|
|
1295
|
+
* Simulate setDefaultValidator
|
|
1954
1296
|
* Returns gas estimate and result without sending transaction
|
|
1955
1297
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1956
1298
|
*/
|
|
1957
|
-
async
|
|
1299
|
+
async setDefaultValidator(_defaultValidator: `0x${string}`, _data: `0x${string}`, options?: {
|
|
1958
1300
|
accessList?: import('viem').AccessList;
|
|
1959
1301
|
authorizationList?: import('viem').AuthorizationList;
|
|
1960
1302
|
chain?: import('viem').Chain | null;
|
|
@@ -1966,14 +1308,14 @@ export class Kernel_json {
|
|
|
1966
1308
|
nonce?: number;
|
|
1967
1309
|
value?: bigint;
|
|
1968
1310
|
}): Promise<void> {
|
|
1969
|
-
return contract.simulate.
|
|
1311
|
+
return contract.simulate.setDefaultValidator([_defaultValidator, _data] as const, options) as Promise<void>;
|
|
1970
1312
|
},
|
|
1971
1313
|
/**
|
|
1972
|
-
* Simulate
|
|
1314
|
+
* Simulate setExecution
|
|
1973
1315
|
* Returns gas estimate and result without sending transaction
|
|
1974
1316
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1975
1317
|
*/
|
|
1976
|
-
async
|
|
1318
|
+
async setExecution(_selector: `0x${string}`, _executor: `0x${string}`, _validator: `0x${string}`, _validUntil: bigint, _validAfter: bigint, _enableData: `0x${string}`, options?: {
|
|
1977
1319
|
accessList?: import('viem').AccessList;
|
|
1978
1320
|
authorizationList?: import('viem').AuthorizationList;
|
|
1979
1321
|
chain?: import('viem').Chain | null;
|
|
@@ -1985,7 +1327,7 @@ export class Kernel_json {
|
|
|
1985
1327
|
nonce?: number;
|
|
1986
1328
|
value?: bigint;
|
|
1987
1329
|
}): Promise<void> {
|
|
1988
|
-
return contract.simulate.
|
|
1330
|
+
return contract.simulate.setExecution([_selector, _executor, _validator, _validUntil, _validAfter, _enableData] as const, options) as Promise<void>;
|
|
1989
1331
|
},
|
|
1990
1332
|
/**
|
|
1991
1333
|
* Simulate upgradeTo
|
|
@@ -2011,7 +1353,7 @@ export class Kernel_json {
|
|
|
2011
1353
|
* Returns gas estimate and result without sending transaction
|
|
2012
1354
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2013
1355
|
*/
|
|
2014
|
-
async validateUserOp(
|
|
1356
|
+
async validateUserOp(_userOp: UserOperation, userOpHash: `0x${string}`, missingAccountFunds: bigint, options?: {
|
|
2015
1357
|
accessList?: import('viem').AccessList;
|
|
2016
1358
|
authorizationList?: import('viem').AuthorizationList;
|
|
2017
1359
|
chain?: import('viem').Chain | null;
|
|
@@ -2023,7 +1365,7 @@ export class Kernel_json {
|
|
|
2023
1365
|
nonce?: number;
|
|
2024
1366
|
value?: bigint;
|
|
2025
1367
|
}): Promise<bigint> {
|
|
2026
|
-
return contract.simulate.validateUserOp([
|
|
1368
|
+
return contract.simulate.validateUserOp([_userOp, userOpHash, missingAccountFunds] as const, options) as Promise<bigint>;
|
|
2027
1369
|
}
|
|
2028
1370
|
};
|
|
2029
1371
|
}
|
|
@@ -2043,93 +1385,17 @@ export class Kernel_json {
|
|
|
2043
1385
|
get watch() {
|
|
2044
1386
|
return {
|
|
2045
1387
|
/**
|
|
2046
|
-
* Watch
|
|
2047
|
-
* @param callback Function to call when event is emitted
|
|
2048
|
-
* @param filter Optional filter for indexed parameters
|
|
2049
|
-
* @returns Unwatch function to stop listening
|
|
2050
|
-
*/
|
|
2051
|
-
ModuleInstalled: (callback: (event: { moduleTypeId: bigint; module: `0x${string}` }) => void) => {
|
|
2052
|
-
return this.publicClient.watchContractEvent({
|
|
2053
|
-
address: this.contractAddress,
|
|
2054
|
-
abi: Kernel_jsonAbi,
|
|
2055
|
-
eventName: 'ModuleInstalled',
|
|
2056
|
-
|
|
2057
|
-
onLogs: (logs: any[]) => {
|
|
2058
|
-
logs.forEach((log: any) => {
|
|
2059
|
-
callback(log.args as any);
|
|
2060
|
-
});
|
|
2061
|
-
},
|
|
2062
|
-
}) as () => void;
|
|
2063
|
-
},
|
|
2064
|
-
/**
|
|
2065
|
-
* Watch ModuleUninstallResult events
|
|
2066
|
-
* @param callback Function to call when event is emitted
|
|
2067
|
-
* @param filter Optional filter for indexed parameters
|
|
2068
|
-
* @returns Unwatch function to stop listening
|
|
2069
|
-
*/
|
|
2070
|
-
ModuleUninstallResult: (callback: (event: { module: `0x${string}`; result: boolean }) => void) => {
|
|
2071
|
-
return this.publicClient.watchContractEvent({
|
|
2072
|
-
address: this.contractAddress,
|
|
2073
|
-
abi: Kernel_jsonAbi,
|
|
2074
|
-
eventName: 'ModuleUninstallResult',
|
|
2075
|
-
|
|
2076
|
-
onLogs: (logs: any[]) => {
|
|
2077
|
-
logs.forEach((log: any) => {
|
|
2078
|
-
callback(log.args as any);
|
|
2079
|
-
});
|
|
2080
|
-
},
|
|
2081
|
-
}) as () => void;
|
|
2082
|
-
},
|
|
2083
|
-
/**
|
|
2084
|
-
* Watch ModuleUninstalled events
|
|
2085
|
-
* @param callback Function to call when event is emitted
|
|
2086
|
-
* @param filter Optional filter for indexed parameters
|
|
2087
|
-
* @returns Unwatch function to stop listening
|
|
2088
|
-
*/
|
|
2089
|
-
ModuleUninstalled: (callback: (event: { moduleTypeId: bigint; module: `0x${string}` }) => void) => {
|
|
2090
|
-
return this.publicClient.watchContractEvent({
|
|
2091
|
-
address: this.contractAddress,
|
|
2092
|
-
abi: Kernel_jsonAbi,
|
|
2093
|
-
eventName: 'ModuleUninstalled',
|
|
2094
|
-
|
|
2095
|
-
onLogs: (logs: any[]) => {
|
|
2096
|
-
logs.forEach((log: any) => {
|
|
2097
|
-
callback(log.args as any);
|
|
2098
|
-
});
|
|
2099
|
-
},
|
|
2100
|
-
}) as () => void;
|
|
2101
|
-
},
|
|
2102
|
-
/**
|
|
2103
|
-
* Watch NonceInvalidated events
|
|
2104
|
-
* @param callback Function to call when event is emitted
|
|
2105
|
-
* @param filter Optional filter for indexed parameters
|
|
2106
|
-
* @returns Unwatch function to stop listening
|
|
2107
|
-
*/
|
|
2108
|
-
NonceInvalidated: (callback: (event: { nonce: bigint }) => void) => {
|
|
2109
|
-
return this.publicClient.watchContractEvent({
|
|
2110
|
-
address: this.contractAddress,
|
|
2111
|
-
abi: Kernel_jsonAbi,
|
|
2112
|
-
eventName: 'NonceInvalidated',
|
|
2113
|
-
|
|
2114
|
-
onLogs: (logs: any[]) => {
|
|
2115
|
-
logs.forEach((log: any) => {
|
|
2116
|
-
callback(log.args as any);
|
|
2117
|
-
});
|
|
2118
|
-
},
|
|
2119
|
-
}) as () => void;
|
|
2120
|
-
},
|
|
2121
|
-
/**
|
|
2122
|
-
* Watch PermissionInstalled events
|
|
1388
|
+
* Watch DefaultValidatorChanged events
|
|
2123
1389
|
* @param callback Function to call when event is emitted
|
|
2124
1390
|
* @param filter Optional filter for indexed parameters
|
|
2125
1391
|
* @returns Unwatch function to stop listening
|
|
2126
1392
|
*/
|
|
2127
|
-
|
|
1393
|
+
DefaultValidatorChanged: (callback: (event: { oldValidator: `0x${string}`; newValidator: `0x${string}` }) => void, filter?: { oldValidator: `0x${string}`; newValidator: `0x${string}` }) => {
|
|
2128
1394
|
return this.publicClient.watchContractEvent({
|
|
2129
1395
|
address: this.contractAddress,
|
|
2130
1396
|
abi: Kernel_jsonAbi,
|
|
2131
|
-
eventName: '
|
|
2132
|
-
|
|
1397
|
+
eventName: 'DefaultValidatorChanged',
|
|
1398
|
+
args: filter,
|
|
2133
1399
|
onLogs: (logs: any[]) => {
|
|
2134
1400
|
logs.forEach((log: any) => {
|
|
2135
1401
|
callback(log.args as any);
|
|
@@ -2138,17 +1404,17 @@ export class Kernel_json {
|
|
|
2138
1404
|
}) as () => void;
|
|
2139
1405
|
},
|
|
2140
1406
|
/**
|
|
2141
|
-
* Watch
|
|
1407
|
+
* Watch ExecutionChanged events
|
|
2142
1408
|
* @param callback Function to call when event is emitted
|
|
2143
1409
|
* @param filter Optional filter for indexed parameters
|
|
2144
1410
|
* @returns Unwatch function to stop listening
|
|
2145
1411
|
*/
|
|
2146
|
-
|
|
1412
|
+
ExecutionChanged: (callback: (event: { selector: `0x${string}`; executor: `0x${string}`; validator: `0x${string}` }) => void, filter?: { selector: `0x${string}`; executor: `0x${string}`; validator: `0x${string}` }) => {
|
|
2147
1413
|
return this.publicClient.watchContractEvent({
|
|
2148
1414
|
address: this.contractAddress,
|
|
2149
1415
|
abi: Kernel_jsonAbi,
|
|
2150
|
-
eventName: '
|
|
2151
|
-
|
|
1416
|
+
eventName: 'ExecutionChanged',
|
|
1417
|
+
args: filter,
|
|
2152
1418
|
onLogs: (logs: any[]) => {
|
|
2153
1419
|
logs.forEach((log: any) => {
|
|
2154
1420
|
callback(log.args as any);
|
|
@@ -2175,113 +1441,18 @@ export class Kernel_json {
|
|
|
2175
1441
|
},
|
|
2176
1442
|
}) as () => void;
|
|
2177
1443
|
},
|
|
2178
|
-
/**
|
|
2179
|
-
* Watch RootValidatorUpdated events
|
|
2180
|
-
* @param callback Function to call when event is emitted
|
|
2181
|
-
* @param filter Optional filter for indexed parameters
|
|
2182
|
-
* @returns Unwatch function to stop listening
|
|
2183
|
-
*/
|
|
2184
|
-
RootValidatorUpdated: (callback: (event: { rootValidator: `0x${string}` }) => void) => {
|
|
2185
|
-
return this.publicClient.watchContractEvent({
|
|
2186
|
-
address: this.contractAddress,
|
|
2187
|
-
abi: Kernel_jsonAbi,
|
|
2188
|
-
eventName: 'RootValidatorUpdated',
|
|
2189
|
-
|
|
2190
|
-
onLogs: (logs: any[]) => {
|
|
2191
|
-
logs.forEach((log: any) => {
|
|
2192
|
-
callback(log.args as any);
|
|
2193
|
-
});
|
|
2194
|
-
},
|
|
2195
|
-
}) as () => void;
|
|
2196
|
-
},
|
|
2197
|
-
/**
|
|
2198
|
-
* Watch SelectorSet events
|
|
2199
|
-
* @param callback Function to call when event is emitted
|
|
2200
|
-
* @param filter Optional filter for indexed parameters
|
|
2201
|
-
* @returns Unwatch function to stop listening
|
|
2202
|
-
*/
|
|
2203
|
-
SelectorSet: (callback: (event: { selector: `0x${string}`; vId: `0x${string}`; allowed: boolean }) => void) => {
|
|
2204
|
-
return this.publicClient.watchContractEvent({
|
|
2205
|
-
address: this.contractAddress,
|
|
2206
|
-
abi: Kernel_jsonAbi,
|
|
2207
|
-
eventName: 'SelectorSet',
|
|
2208
|
-
|
|
2209
|
-
onLogs: (logs: any[]) => {
|
|
2210
|
-
logs.forEach((log: any) => {
|
|
2211
|
-
callback(log.args as any);
|
|
2212
|
-
});
|
|
2213
|
-
},
|
|
2214
|
-
}) as () => void;
|
|
2215
|
-
},
|
|
2216
|
-
/**
|
|
2217
|
-
* Watch TryExecuteUnsuccessful events
|
|
2218
|
-
* @param callback Function to call when event is emitted
|
|
2219
|
-
* @param filter Optional filter for indexed parameters
|
|
2220
|
-
* @returns Unwatch function to stop listening
|
|
2221
|
-
*/
|
|
2222
|
-
TryExecuteUnsuccessful: (callback: (event: { batchExecutionindex: bigint; result: `0x${string}` }) => void) => {
|
|
2223
|
-
return this.publicClient.watchContractEvent({
|
|
2224
|
-
address: this.contractAddress,
|
|
2225
|
-
abi: Kernel_jsonAbi,
|
|
2226
|
-
eventName: 'TryExecuteUnsuccessful',
|
|
2227
|
-
|
|
2228
|
-
onLogs: (logs: any[]) => {
|
|
2229
|
-
logs.forEach((log: any) => {
|
|
2230
|
-
callback(log.args as any);
|
|
2231
|
-
});
|
|
2232
|
-
},
|
|
2233
|
-
}) as () => void;
|
|
2234
|
-
},
|
|
2235
1444
|
/**
|
|
2236
1445
|
* Watch Upgraded events
|
|
2237
1446
|
* @param callback Function to call when event is emitted
|
|
2238
1447
|
* @param filter Optional filter for indexed parameters
|
|
2239
1448
|
* @returns Unwatch function to stop listening
|
|
2240
1449
|
*/
|
|
2241
|
-
Upgraded: (callback: (event: {
|
|
1450
|
+
Upgraded: (callback: (event: { newImplementation: `0x${string}` }) => void, filter?: { newImplementation: `0x${string}` }) => {
|
|
2242
1451
|
return this.publicClient.watchContractEvent({
|
|
2243
1452
|
address: this.contractAddress,
|
|
2244
1453
|
abi: Kernel_jsonAbi,
|
|
2245
1454
|
eventName: 'Upgraded',
|
|
2246
1455
|
args: filter,
|
|
2247
|
-
onLogs: (logs: any[]) => {
|
|
2248
|
-
logs.forEach((log: any) => {
|
|
2249
|
-
callback(log.args as any);
|
|
2250
|
-
});
|
|
2251
|
-
},
|
|
2252
|
-
}) as () => void;
|
|
2253
|
-
},
|
|
2254
|
-
/**
|
|
2255
|
-
* Watch ValidatorInstalled events
|
|
2256
|
-
* @param callback Function to call when event is emitted
|
|
2257
|
-
* @param filter Optional filter for indexed parameters
|
|
2258
|
-
* @returns Unwatch function to stop listening
|
|
2259
|
-
*/
|
|
2260
|
-
ValidatorInstalled: (callback: (event: { validator: `0x${string}`; nonce: bigint }) => void) => {
|
|
2261
|
-
return this.publicClient.watchContractEvent({
|
|
2262
|
-
address: this.contractAddress,
|
|
2263
|
-
abi: Kernel_jsonAbi,
|
|
2264
|
-
eventName: 'ValidatorInstalled',
|
|
2265
|
-
|
|
2266
|
-
onLogs: (logs: any[]) => {
|
|
2267
|
-
logs.forEach((log: any) => {
|
|
2268
|
-
callback(log.args as any);
|
|
2269
|
-
});
|
|
2270
|
-
},
|
|
2271
|
-
}) as () => void;
|
|
2272
|
-
},
|
|
2273
|
-
/**
|
|
2274
|
-
* Watch ValidatorUninstalled events
|
|
2275
|
-
* @param callback Function to call when event is emitted
|
|
2276
|
-
* @param filter Optional filter for indexed parameters
|
|
2277
|
-
* @returns Unwatch function to stop listening
|
|
2278
|
-
*/
|
|
2279
|
-
ValidatorUninstalled: (callback: (event: { validator: `0x${string}` }) => void) => {
|
|
2280
|
-
return this.publicClient.watchContractEvent({
|
|
2281
|
-
address: this.contractAddress,
|
|
2282
|
-
abi: Kernel_jsonAbi,
|
|
2283
|
-
eventName: 'ValidatorUninstalled',
|
|
2284
|
-
|
|
2285
1456
|
onLogs: (logs: any[]) => {
|
|
2286
1457
|
logs.forEach((log: any) => {
|
|
2287
1458
|
callback(log.args as any);
|