@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.js
CHANGED
|
@@ -12,7 +12,7 @@ exports.Kernel_jsonAbi = [
|
|
|
12
12
|
"inputs": [
|
|
13
13
|
{
|
|
14
14
|
"internalType": "contract IEntryPoint",
|
|
15
|
-
"name": "
|
|
15
|
+
"name": "_entryPoint",
|
|
16
16
|
"type": "address"
|
|
17
17
|
}
|
|
18
18
|
],
|
|
@@ -21,230 +21,71 @@ exports.Kernel_jsonAbi = [
|
|
|
21
21
|
},
|
|
22
22
|
{
|
|
23
23
|
"inputs": [],
|
|
24
|
-
"name": "
|
|
24
|
+
"name": "AlreadyInitialized",
|
|
25
25
|
"type": "error"
|
|
26
26
|
},
|
|
27
27
|
{
|
|
28
28
|
"inputs": [],
|
|
29
|
-
"name": "
|
|
29
|
+
"name": "DeprecatedOperation",
|
|
30
30
|
"type": "error"
|
|
31
31
|
},
|
|
32
32
|
{
|
|
33
33
|
"inputs": [],
|
|
34
|
-
"name": "
|
|
34
|
+
"name": "DisabledMode",
|
|
35
35
|
"type": "error"
|
|
36
36
|
},
|
|
37
37
|
{
|
|
38
38
|
"inputs": [],
|
|
39
|
-
"name": "
|
|
39
|
+
"name": "NotAuthorizedCaller",
|
|
40
40
|
"type": "error"
|
|
41
41
|
},
|
|
42
42
|
{
|
|
43
43
|
"inputs": [],
|
|
44
|
-
"name": "
|
|
45
|
-
"type": "error"
|
|
46
|
-
},
|
|
47
|
-
{
|
|
48
|
-
"inputs": [],
|
|
49
|
-
"name": "InvalidFallback",
|
|
50
|
-
"type": "error"
|
|
51
|
-
},
|
|
52
|
-
{
|
|
53
|
-
"inputs": [],
|
|
54
|
-
"name": "InvalidMode",
|
|
55
|
-
"type": "error"
|
|
56
|
-
},
|
|
57
|
-
{
|
|
58
|
-
"inputs": [],
|
|
59
|
-
"name": "InvalidModuleType",
|
|
60
|
-
"type": "error"
|
|
61
|
-
},
|
|
62
|
-
{
|
|
63
|
-
"inputs": [],
|
|
64
|
-
"name": "InvalidNonce",
|
|
65
|
-
"type": "error"
|
|
66
|
-
},
|
|
67
|
-
{
|
|
68
|
-
"inputs": [],
|
|
69
|
-
"name": "InvalidSelector",
|
|
70
|
-
"type": "error"
|
|
71
|
-
},
|
|
72
|
-
{
|
|
73
|
-
"inputs": [],
|
|
74
|
-
"name": "InvalidSignature",
|
|
75
|
-
"type": "error"
|
|
76
|
-
},
|
|
77
|
-
{
|
|
78
|
-
"inputs": [],
|
|
79
|
-
"name": "InvalidValidationType",
|
|
80
|
-
"type": "error"
|
|
81
|
-
},
|
|
82
|
-
{
|
|
83
|
-
"inputs": [],
|
|
84
|
-
"name": "InvalidValidator",
|
|
85
|
-
"type": "error"
|
|
86
|
-
},
|
|
87
|
-
{
|
|
88
|
-
"inputs": [],
|
|
89
|
-
"name": "NonceInvalidationError",
|
|
90
|
-
"type": "error"
|
|
91
|
-
},
|
|
92
|
-
{
|
|
93
|
-
"inputs": [],
|
|
94
|
-
"name": "NotSupportedCallType",
|
|
95
|
-
"type": "error"
|
|
96
|
-
},
|
|
97
|
-
{
|
|
98
|
-
"inputs": [],
|
|
99
|
-
"name": "OnlyExecuteUserOp",
|
|
100
|
-
"type": "error"
|
|
101
|
-
},
|
|
102
|
-
{
|
|
103
|
-
"inputs": [],
|
|
104
|
-
"name": "PermissionDataLengthMismatch",
|
|
105
|
-
"type": "error"
|
|
106
|
-
},
|
|
107
|
-
{
|
|
108
|
-
"inputs": [],
|
|
109
|
-
"name": "PermissionNotAlllowedForSignature",
|
|
110
|
-
"type": "error"
|
|
111
|
-
},
|
|
112
|
-
{
|
|
113
|
-
"inputs": [],
|
|
114
|
-
"name": "PermissionNotAlllowedForUserOp",
|
|
115
|
-
"type": "error"
|
|
116
|
-
},
|
|
117
|
-
{
|
|
118
|
-
"inputs": [],
|
|
119
|
-
"name": "PolicyDataTooLarge",
|
|
120
|
-
"type": "error"
|
|
121
|
-
},
|
|
122
|
-
{
|
|
123
|
-
"inputs": [
|
|
124
|
-
{
|
|
125
|
-
"internalType": "uint256",
|
|
126
|
-
"name": "i",
|
|
127
|
-
"type": "uint256"
|
|
128
|
-
}
|
|
129
|
-
],
|
|
130
|
-
"name": "PolicyFailed",
|
|
131
|
-
"type": "error"
|
|
132
|
-
},
|
|
133
|
-
{
|
|
134
|
-
"inputs": [],
|
|
135
|
-
"name": "PolicySignatureOrderError",
|
|
136
|
-
"type": "error"
|
|
137
|
-
},
|
|
138
|
-
{
|
|
139
|
-
"inputs": [],
|
|
140
|
-
"name": "RootValidatorCannotBeRemoved",
|
|
141
|
-
"type": "error"
|
|
142
|
-
},
|
|
143
|
-
{
|
|
144
|
-
"inputs": [],
|
|
145
|
-
"name": "SignerPrefixNotPresent",
|
|
44
|
+
"name": "NotEntryPoint",
|
|
146
45
|
"type": "error"
|
|
147
46
|
},
|
|
148
47
|
{
|
|
149
48
|
"anonymous": false,
|
|
150
49
|
"inputs": [
|
|
151
50
|
{
|
|
152
|
-
"indexed":
|
|
153
|
-
"internalType": "uint256",
|
|
154
|
-
"name": "moduleTypeId",
|
|
155
|
-
"type": "uint256"
|
|
156
|
-
},
|
|
157
|
-
{
|
|
158
|
-
"indexed": false,
|
|
51
|
+
"indexed": true,
|
|
159
52
|
"internalType": "address",
|
|
160
|
-
"name": "
|
|
53
|
+
"name": "oldValidator",
|
|
161
54
|
"type": "address"
|
|
162
|
-
}
|
|
163
|
-
],
|
|
164
|
-
"name": "ModuleInstalled",
|
|
165
|
-
"type": "event"
|
|
166
|
-
},
|
|
167
|
-
{
|
|
168
|
-
"anonymous": false,
|
|
169
|
-
"inputs": [
|
|
55
|
+
},
|
|
170
56
|
{
|
|
171
|
-
"indexed":
|
|
57
|
+
"indexed": true,
|
|
172
58
|
"internalType": "address",
|
|
173
|
-
"name": "
|
|
59
|
+
"name": "newValidator",
|
|
174
60
|
"type": "address"
|
|
175
|
-
},
|
|
176
|
-
{
|
|
177
|
-
"indexed": false,
|
|
178
|
-
"internalType": "bool",
|
|
179
|
-
"name": "result",
|
|
180
|
-
"type": "bool"
|
|
181
61
|
}
|
|
182
62
|
],
|
|
183
|
-
"name": "
|
|
63
|
+
"name": "DefaultValidatorChanged",
|
|
184
64
|
"type": "event"
|
|
185
65
|
},
|
|
186
66
|
{
|
|
187
67
|
"anonymous": false,
|
|
188
68
|
"inputs": [
|
|
189
69
|
{
|
|
190
|
-
"indexed":
|
|
191
|
-
"internalType": "
|
|
192
|
-
"name": "
|
|
193
|
-
"type": "
|
|
70
|
+
"indexed": true,
|
|
71
|
+
"internalType": "bytes4",
|
|
72
|
+
"name": "selector",
|
|
73
|
+
"type": "bytes4"
|
|
194
74
|
},
|
|
195
75
|
{
|
|
196
|
-
"indexed":
|
|
76
|
+
"indexed": true,
|
|
197
77
|
"internalType": "address",
|
|
198
|
-
"name": "
|
|
78
|
+
"name": "executor",
|
|
199
79
|
"type": "address"
|
|
200
|
-
}
|
|
201
|
-
],
|
|
202
|
-
"name": "ModuleUninstalled",
|
|
203
|
-
"type": "event"
|
|
204
|
-
},
|
|
205
|
-
{
|
|
206
|
-
"anonymous": false,
|
|
207
|
-
"inputs": [
|
|
208
|
-
{
|
|
209
|
-
"indexed": false,
|
|
210
|
-
"internalType": "uint32",
|
|
211
|
-
"name": "nonce",
|
|
212
|
-
"type": "uint32"
|
|
213
|
-
}
|
|
214
|
-
],
|
|
215
|
-
"name": "NonceInvalidated",
|
|
216
|
-
"type": "event"
|
|
217
|
-
},
|
|
218
|
-
{
|
|
219
|
-
"anonymous": false,
|
|
220
|
-
"inputs": [
|
|
221
|
-
{
|
|
222
|
-
"indexed": false,
|
|
223
|
-
"internalType": "PermissionId",
|
|
224
|
-
"name": "permission",
|
|
225
|
-
"type": "bytes4"
|
|
226
80
|
},
|
|
227
81
|
{
|
|
228
|
-
"indexed":
|
|
229
|
-
"internalType": "
|
|
230
|
-
"name": "
|
|
231
|
-
"type": "
|
|
232
|
-
}
|
|
233
|
-
],
|
|
234
|
-
"name": "PermissionInstalled",
|
|
235
|
-
"type": "event"
|
|
236
|
-
},
|
|
237
|
-
{
|
|
238
|
-
"anonymous": false,
|
|
239
|
-
"inputs": [
|
|
240
|
-
{
|
|
241
|
-
"indexed": false,
|
|
242
|
-
"internalType": "PermissionId",
|
|
243
|
-
"name": "permission",
|
|
244
|
-
"type": "bytes4"
|
|
82
|
+
"indexed": true,
|
|
83
|
+
"internalType": "address",
|
|
84
|
+
"name": "validator",
|
|
85
|
+
"type": "address"
|
|
245
86
|
}
|
|
246
87
|
],
|
|
247
|
-
"name": "
|
|
88
|
+
"name": "ExecutionChanged",
|
|
248
89
|
"type": "event"
|
|
249
90
|
},
|
|
250
91
|
{
|
|
@@ -266,136 +107,34 @@ exports.Kernel_jsonAbi = [
|
|
|
266
107
|
"name": "Received",
|
|
267
108
|
"type": "event"
|
|
268
109
|
},
|
|
269
|
-
{
|
|
270
|
-
"anonymous": false,
|
|
271
|
-
"inputs": [
|
|
272
|
-
{
|
|
273
|
-
"indexed": false,
|
|
274
|
-
"internalType": "ValidationId",
|
|
275
|
-
"name": "rootValidator",
|
|
276
|
-
"type": "bytes21"
|
|
277
|
-
}
|
|
278
|
-
],
|
|
279
|
-
"name": "RootValidatorUpdated",
|
|
280
|
-
"type": "event"
|
|
281
|
-
},
|
|
282
|
-
{
|
|
283
|
-
"anonymous": false,
|
|
284
|
-
"inputs": [
|
|
285
|
-
{
|
|
286
|
-
"indexed": false,
|
|
287
|
-
"internalType": "bytes4",
|
|
288
|
-
"name": "selector",
|
|
289
|
-
"type": "bytes4"
|
|
290
|
-
},
|
|
291
|
-
{
|
|
292
|
-
"indexed": false,
|
|
293
|
-
"internalType": "ValidationId",
|
|
294
|
-
"name": "vId",
|
|
295
|
-
"type": "bytes21"
|
|
296
|
-
},
|
|
297
|
-
{
|
|
298
|
-
"indexed": false,
|
|
299
|
-
"internalType": "bool",
|
|
300
|
-
"name": "allowed",
|
|
301
|
-
"type": "bool"
|
|
302
|
-
}
|
|
303
|
-
],
|
|
304
|
-
"name": "SelectorSet",
|
|
305
|
-
"type": "event"
|
|
306
|
-
},
|
|
307
|
-
{
|
|
308
|
-
"anonymous": false,
|
|
309
|
-
"inputs": [
|
|
310
|
-
{
|
|
311
|
-
"indexed": false,
|
|
312
|
-
"internalType": "uint256",
|
|
313
|
-
"name": "batchExecutionindex",
|
|
314
|
-
"type": "uint256"
|
|
315
|
-
},
|
|
316
|
-
{
|
|
317
|
-
"indexed": false,
|
|
318
|
-
"internalType": "bytes",
|
|
319
|
-
"name": "result",
|
|
320
|
-
"type": "bytes"
|
|
321
|
-
}
|
|
322
|
-
],
|
|
323
|
-
"name": "TryExecuteUnsuccessful",
|
|
324
|
-
"type": "event"
|
|
325
|
-
},
|
|
326
110
|
{
|
|
327
111
|
"anonymous": false,
|
|
328
112
|
"inputs": [
|
|
329
113
|
{
|
|
330
114
|
"indexed": true,
|
|
331
115
|
"internalType": "address",
|
|
332
|
-
"name": "
|
|
116
|
+
"name": "newImplementation",
|
|
333
117
|
"type": "address"
|
|
334
118
|
}
|
|
335
119
|
],
|
|
336
120
|
"name": "Upgraded",
|
|
337
121
|
"type": "event"
|
|
338
122
|
},
|
|
339
|
-
{
|
|
340
|
-
"anonymous": false,
|
|
341
|
-
"inputs": [
|
|
342
|
-
{
|
|
343
|
-
"indexed": false,
|
|
344
|
-
"internalType": "contract IValidator",
|
|
345
|
-
"name": "validator",
|
|
346
|
-
"type": "address"
|
|
347
|
-
},
|
|
348
|
-
{
|
|
349
|
-
"indexed": false,
|
|
350
|
-
"internalType": "uint32",
|
|
351
|
-
"name": "nonce",
|
|
352
|
-
"type": "uint32"
|
|
353
|
-
}
|
|
354
|
-
],
|
|
355
|
-
"name": "ValidatorInstalled",
|
|
356
|
-
"type": "event"
|
|
357
|
-
},
|
|
358
|
-
{
|
|
359
|
-
"anonymous": false,
|
|
360
|
-
"inputs": [
|
|
361
|
-
{
|
|
362
|
-
"indexed": false,
|
|
363
|
-
"internalType": "contract IValidator",
|
|
364
|
-
"name": "validator",
|
|
365
|
-
"type": "address"
|
|
366
|
-
}
|
|
367
|
-
],
|
|
368
|
-
"name": "ValidatorUninstalled",
|
|
369
|
-
"type": "event"
|
|
370
|
-
},
|
|
371
123
|
{
|
|
372
124
|
"stateMutability": "payable",
|
|
373
125
|
"type": "fallback"
|
|
374
126
|
},
|
|
375
127
|
{
|
|
376
|
-
"inputs": [
|
|
377
|
-
"name": "accountId",
|
|
378
|
-
"outputs": [
|
|
379
|
-
{
|
|
380
|
-
"internalType": "string",
|
|
381
|
-
"name": "accountImplementationId",
|
|
382
|
-
"type": "string"
|
|
383
|
-
}
|
|
384
|
-
],
|
|
385
|
-
"stateMutability": "pure",
|
|
386
|
-
"type": "function"
|
|
387
|
-
},
|
|
388
|
-
{
|
|
389
|
-
"inputs": [],
|
|
390
|
-
"name": "currentNonce",
|
|
391
|
-
"outputs": [
|
|
128
|
+
"inputs": [
|
|
392
129
|
{
|
|
393
|
-
"internalType": "
|
|
394
|
-
"name": "",
|
|
395
|
-
"type": "
|
|
130
|
+
"internalType": "bytes4",
|
|
131
|
+
"name": "_disableFlag",
|
|
132
|
+
"type": "bytes4"
|
|
396
133
|
}
|
|
397
134
|
],
|
|
398
|
-
"
|
|
135
|
+
"name": "disableMode",
|
|
136
|
+
"outputs": [],
|
|
137
|
+
"stateMutability": "payable",
|
|
399
138
|
"type": "function"
|
|
400
139
|
},
|
|
401
140
|
{
|
|
@@ -443,7 +182,7 @@ exports.Kernel_jsonAbi = [
|
|
|
443
182
|
},
|
|
444
183
|
{
|
|
445
184
|
"inputs": [],
|
|
446
|
-
"name": "
|
|
185
|
+
"name": "entryPoint",
|
|
447
186
|
"outputs": [
|
|
448
187
|
{
|
|
449
188
|
"internalType": "contract IEntryPoint",
|
|
@@ -457,42 +196,28 @@ exports.Kernel_jsonAbi = [
|
|
|
457
196
|
{
|
|
458
197
|
"inputs": [
|
|
459
198
|
{
|
|
460
|
-
"internalType": "
|
|
461
|
-
"name": "
|
|
462
|
-
"type": "
|
|
199
|
+
"internalType": "address",
|
|
200
|
+
"name": "to",
|
|
201
|
+
"type": "address"
|
|
463
202
|
},
|
|
464
203
|
{
|
|
465
|
-
"internalType": "
|
|
466
|
-
"name": "
|
|
467
|
-
"type": "
|
|
468
|
-
}
|
|
469
|
-
],
|
|
470
|
-
"name": "execute",
|
|
471
|
-
"outputs": [],
|
|
472
|
-
"stateMutability": "payable",
|
|
473
|
-
"type": "function"
|
|
474
|
-
},
|
|
475
|
-
{
|
|
476
|
-
"inputs": [
|
|
477
|
-
{
|
|
478
|
-
"internalType": "ExecMode",
|
|
479
|
-
"name": "execMode",
|
|
480
|
-
"type": "bytes32"
|
|
204
|
+
"internalType": "uint256",
|
|
205
|
+
"name": "value",
|
|
206
|
+
"type": "uint256"
|
|
481
207
|
},
|
|
482
208
|
{
|
|
483
209
|
"internalType": "bytes",
|
|
484
|
-
"name": "
|
|
210
|
+
"name": "data",
|
|
485
211
|
"type": "bytes"
|
|
486
|
-
}
|
|
487
|
-
],
|
|
488
|
-
"name": "executeFromExecutor",
|
|
489
|
-
"outputs": [
|
|
212
|
+
},
|
|
490
213
|
{
|
|
491
|
-
"internalType": "
|
|
492
|
-
"name": "
|
|
493
|
-
"type": "
|
|
214
|
+
"internalType": "enum Operation",
|
|
215
|
+
"name": "_operation",
|
|
216
|
+
"type": "uint8"
|
|
494
217
|
}
|
|
495
218
|
],
|
|
219
|
+
"name": "execute",
|
|
220
|
+
"outputs": [],
|
|
496
221
|
"stateMutability": "payable",
|
|
497
222
|
"type": "function"
|
|
498
223
|
},
|
|
@@ -502,61 +227,26 @@ exports.Kernel_jsonAbi = [
|
|
|
502
227
|
"components": [
|
|
503
228
|
{
|
|
504
229
|
"internalType": "address",
|
|
505
|
-
"name": "
|
|
230
|
+
"name": "to",
|
|
506
231
|
"type": "address"
|
|
507
232
|
},
|
|
508
233
|
{
|
|
509
234
|
"internalType": "uint256",
|
|
510
|
-
"name": "
|
|
511
|
-
"type": "uint256"
|
|
512
|
-
},
|
|
513
|
-
{
|
|
514
|
-
"internalType": "bytes",
|
|
515
|
-
"name": "initCode",
|
|
516
|
-
"type": "bytes"
|
|
517
|
-
},
|
|
518
|
-
{
|
|
519
|
-
"internalType": "bytes",
|
|
520
|
-
"name": "callData",
|
|
521
|
-
"type": "bytes"
|
|
522
|
-
},
|
|
523
|
-
{
|
|
524
|
-
"internalType": "bytes32",
|
|
525
|
-
"name": "accountGasLimits",
|
|
526
|
-
"type": "bytes32"
|
|
527
|
-
},
|
|
528
|
-
{
|
|
529
|
-
"internalType": "uint256",
|
|
530
|
-
"name": "preVerificationGas",
|
|
235
|
+
"name": "value",
|
|
531
236
|
"type": "uint256"
|
|
532
237
|
},
|
|
533
|
-
{
|
|
534
|
-
"internalType": "bytes32",
|
|
535
|
-
"name": "gasFees",
|
|
536
|
-
"type": "bytes32"
|
|
537
|
-
},
|
|
538
|
-
{
|
|
539
|
-
"internalType": "bytes",
|
|
540
|
-
"name": "paymasterAndData",
|
|
541
|
-
"type": "bytes"
|
|
542
|
-
},
|
|
543
238
|
{
|
|
544
239
|
"internalType": "bytes",
|
|
545
|
-
"name": "
|
|
240
|
+
"name": "data",
|
|
546
241
|
"type": "bytes"
|
|
547
242
|
}
|
|
548
243
|
],
|
|
549
|
-
"internalType": "struct
|
|
550
|
-
"name": "
|
|
551
|
-
"type": "tuple"
|
|
552
|
-
},
|
|
553
|
-
{
|
|
554
|
-
"internalType": "bytes32",
|
|
555
|
-
"name": "userOpHash",
|
|
556
|
-
"type": "bytes32"
|
|
244
|
+
"internalType": "struct Call[]",
|
|
245
|
+
"name": "calls",
|
|
246
|
+
"type": "tuple[]"
|
|
557
247
|
}
|
|
558
248
|
],
|
|
559
|
-
"name": "
|
|
249
|
+
"name": "executeBatch",
|
|
560
250
|
"outputs": [],
|
|
561
251
|
"stateMutability": "payable",
|
|
562
252
|
"type": "function"
|
|
@@ -564,184 +254,149 @@ exports.Kernel_jsonAbi = [
|
|
|
564
254
|
{
|
|
565
255
|
"inputs": [
|
|
566
256
|
{
|
|
567
|
-
"internalType": "
|
|
568
|
-
"name": "
|
|
257
|
+
"internalType": "address",
|
|
258
|
+
"name": "to",
|
|
569
259
|
"type": "address"
|
|
570
|
-
}
|
|
571
|
-
],
|
|
572
|
-
"name": "executorConfig",
|
|
573
|
-
"outputs": [
|
|
260
|
+
},
|
|
574
261
|
{
|
|
575
|
-
"
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
"name": "hook",
|
|
579
|
-
"type": "address"
|
|
580
|
-
}
|
|
581
|
-
],
|
|
582
|
-
"internalType": "struct ExecutorManager.ExecutorConfig",
|
|
583
|
-
"name": "",
|
|
584
|
-
"type": "tuple"
|
|
262
|
+
"internalType": "bytes",
|
|
263
|
+
"name": "data",
|
|
264
|
+
"type": "bytes"
|
|
585
265
|
}
|
|
586
266
|
],
|
|
587
|
-
"
|
|
267
|
+
"name": "executeDelegateCall",
|
|
268
|
+
"outputs": [],
|
|
269
|
+
"stateMutability": "payable",
|
|
588
270
|
"type": "function"
|
|
589
271
|
},
|
|
590
272
|
{
|
|
591
|
-
"inputs": [
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
"name": "_rootValidator",
|
|
595
|
-
"type": "bytes21"
|
|
596
|
-
},
|
|
273
|
+
"inputs": [],
|
|
274
|
+
"name": "getDefaultValidator",
|
|
275
|
+
"outputs": [
|
|
597
276
|
{
|
|
598
|
-
"internalType": "contract
|
|
599
|
-
"name": "
|
|
277
|
+
"internalType": "contract IKernelValidator",
|
|
278
|
+
"name": "validator",
|
|
600
279
|
"type": "address"
|
|
601
|
-
},
|
|
602
|
-
{
|
|
603
|
-
"internalType": "bytes",
|
|
604
|
-
"name": "validatorData",
|
|
605
|
-
"type": "bytes"
|
|
606
|
-
},
|
|
607
|
-
{
|
|
608
|
-
"internalType": "bytes",
|
|
609
|
-
"name": "hookData",
|
|
610
|
-
"type": "bytes"
|
|
611
280
|
}
|
|
612
281
|
],
|
|
613
|
-
"
|
|
614
|
-
"outputs": [],
|
|
615
|
-
"stateMutability": "nonpayable",
|
|
282
|
+
"stateMutability": "view",
|
|
616
283
|
"type": "function"
|
|
617
284
|
},
|
|
618
285
|
{
|
|
619
|
-
"inputs": [
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
"name": "moduleType",
|
|
623
|
-
"type": "uint256"
|
|
624
|
-
},
|
|
625
|
-
{
|
|
626
|
-
"internalType": "address",
|
|
627
|
-
"name": "module",
|
|
628
|
-
"type": "address"
|
|
629
|
-
},
|
|
286
|
+
"inputs": [],
|
|
287
|
+
"name": "getDisabledMode",
|
|
288
|
+
"outputs": [
|
|
630
289
|
{
|
|
631
|
-
"internalType": "
|
|
632
|
-
"name": "
|
|
633
|
-
"type": "
|
|
290
|
+
"internalType": "bytes4",
|
|
291
|
+
"name": "disabled",
|
|
292
|
+
"type": "bytes4"
|
|
634
293
|
}
|
|
635
294
|
],
|
|
636
|
-
"
|
|
637
|
-
"outputs": [],
|
|
638
|
-
"stateMutability": "payable",
|
|
295
|
+
"stateMutability": "view",
|
|
639
296
|
"type": "function"
|
|
640
297
|
},
|
|
641
298
|
{
|
|
642
299
|
"inputs": [
|
|
643
300
|
{
|
|
644
|
-
"internalType": "
|
|
645
|
-
"name": "
|
|
646
|
-
"type": "
|
|
647
|
-
}
|
|
301
|
+
"internalType": "bytes4",
|
|
302
|
+
"name": "_selector",
|
|
303
|
+
"type": "bytes4"
|
|
304
|
+
}
|
|
305
|
+
],
|
|
306
|
+
"name": "getExecution",
|
|
307
|
+
"outputs": [
|
|
648
308
|
{
|
|
649
309
|
"components": [
|
|
650
310
|
{
|
|
651
|
-
"internalType": "
|
|
652
|
-
"name": "
|
|
653
|
-
"type": "
|
|
311
|
+
"internalType": "ValidAfter",
|
|
312
|
+
"name": "validAfter",
|
|
313
|
+
"type": "uint48"
|
|
314
|
+
},
|
|
315
|
+
{
|
|
316
|
+
"internalType": "ValidUntil",
|
|
317
|
+
"name": "validUntil",
|
|
318
|
+
"type": "uint48"
|
|
319
|
+
},
|
|
320
|
+
{
|
|
321
|
+
"internalType": "address",
|
|
322
|
+
"name": "executor",
|
|
323
|
+
"type": "address"
|
|
654
324
|
},
|
|
655
325
|
{
|
|
656
|
-
"internalType": "contract
|
|
657
|
-
"name": "
|
|
326
|
+
"internalType": "contract IKernelValidator",
|
|
327
|
+
"name": "validator",
|
|
658
328
|
"type": "address"
|
|
659
329
|
}
|
|
660
330
|
],
|
|
661
|
-
"internalType": "struct
|
|
662
|
-
"name": "
|
|
663
|
-
"type": "tuple
|
|
664
|
-
},
|
|
665
|
-
{
|
|
666
|
-
"internalType": "bytes[]",
|
|
667
|
-
"name": "validationData",
|
|
668
|
-
"type": "bytes[]"
|
|
669
|
-
},
|
|
670
|
-
{
|
|
671
|
-
"internalType": "bytes[]",
|
|
672
|
-
"name": "hookData",
|
|
673
|
-
"type": "bytes[]"
|
|
331
|
+
"internalType": "struct ExecutionDetail",
|
|
332
|
+
"name": "",
|
|
333
|
+
"type": "tuple"
|
|
674
334
|
}
|
|
675
335
|
],
|
|
676
|
-
"
|
|
677
|
-
"outputs": [],
|
|
678
|
-
"stateMutability": "payable",
|
|
336
|
+
"stateMutability": "view",
|
|
679
337
|
"type": "function"
|
|
680
338
|
},
|
|
681
339
|
{
|
|
682
|
-
"inputs": [
|
|
340
|
+
"inputs": [],
|
|
341
|
+
"name": "getLastDisabledTime",
|
|
342
|
+
"outputs": [
|
|
683
343
|
{
|
|
684
|
-
"internalType": "
|
|
685
|
-
"name": "
|
|
686
|
-
"type": "
|
|
344
|
+
"internalType": "uint48",
|
|
345
|
+
"name": "",
|
|
346
|
+
"type": "uint48"
|
|
687
347
|
}
|
|
688
348
|
],
|
|
689
|
-
"
|
|
690
|
-
"outputs": [],
|
|
691
|
-
"stateMutability": "payable",
|
|
349
|
+
"stateMutability": "view",
|
|
692
350
|
"type": "function"
|
|
693
351
|
},
|
|
694
352
|
{
|
|
695
353
|
"inputs": [
|
|
696
354
|
{
|
|
697
|
-
"internalType": "
|
|
698
|
-
"name": "
|
|
699
|
-
"type": "
|
|
700
|
-
},
|
|
701
|
-
{
|
|
702
|
-
"internalType": "bytes4",
|
|
703
|
-
"name": "selector",
|
|
704
|
-
"type": "bytes4"
|
|
355
|
+
"internalType": "uint192",
|
|
356
|
+
"name": "key",
|
|
357
|
+
"type": "uint192"
|
|
705
358
|
}
|
|
706
359
|
],
|
|
707
|
-
"name": "
|
|
360
|
+
"name": "getNonce",
|
|
708
361
|
"outputs": [
|
|
709
362
|
{
|
|
710
|
-
"internalType": "
|
|
363
|
+
"internalType": "uint256",
|
|
711
364
|
"name": "",
|
|
712
|
-
"type": "
|
|
365
|
+
"type": "uint256"
|
|
713
366
|
}
|
|
714
367
|
],
|
|
715
368
|
"stateMutability": "view",
|
|
716
369
|
"type": "function"
|
|
717
370
|
},
|
|
718
371
|
{
|
|
719
|
-
"inputs": [
|
|
372
|
+
"inputs": [],
|
|
373
|
+
"name": "getNonce",
|
|
374
|
+
"outputs": [
|
|
720
375
|
{
|
|
721
376
|
"internalType": "uint256",
|
|
722
|
-
"name": "
|
|
377
|
+
"name": "",
|
|
723
378
|
"type": "uint256"
|
|
724
|
-
}
|
|
379
|
+
}
|
|
380
|
+
],
|
|
381
|
+
"stateMutability": "view",
|
|
382
|
+
"type": "function"
|
|
383
|
+
},
|
|
384
|
+
{
|
|
385
|
+
"inputs": [
|
|
725
386
|
{
|
|
726
|
-
"internalType": "
|
|
727
|
-
"name": "
|
|
387
|
+
"internalType": "contract IKernelValidator",
|
|
388
|
+
"name": "_defaultValidator",
|
|
728
389
|
"type": "address"
|
|
729
390
|
},
|
|
730
391
|
{
|
|
731
392
|
"internalType": "bytes",
|
|
732
|
-
"name": "
|
|
393
|
+
"name": "_data",
|
|
733
394
|
"type": "bytes"
|
|
734
395
|
}
|
|
735
396
|
],
|
|
736
|
-
"name": "
|
|
737
|
-
"outputs": [
|
|
738
|
-
|
|
739
|
-
"internalType": "bool",
|
|
740
|
-
"name": "",
|
|
741
|
-
"type": "bool"
|
|
742
|
-
}
|
|
743
|
-
],
|
|
744
|
-
"stateMutability": "view",
|
|
397
|
+
"name": "initialize",
|
|
398
|
+
"outputs": [],
|
|
399
|
+
"stateMutability": "payable",
|
|
745
400
|
"type": "function"
|
|
746
401
|
},
|
|
747
402
|
{
|
|
@@ -768,50 +423,14 @@ exports.Kernel_jsonAbi = [
|
|
|
768
423
|
"stateMutability": "view",
|
|
769
424
|
"type": "function"
|
|
770
425
|
},
|
|
771
|
-
{
|
|
772
|
-
"inputs": [
|
|
773
|
-
{
|
|
774
|
-
"internalType": "PermissionId",
|
|
775
|
-
"name": "pId",
|
|
776
|
-
"type": "bytes4"
|
|
777
|
-
}
|
|
778
|
-
],
|
|
779
|
-
"name": "permissionConfig",
|
|
780
|
-
"outputs": [
|
|
781
|
-
{
|
|
782
|
-
"components": [
|
|
783
|
-
{
|
|
784
|
-
"internalType": "PassFlag",
|
|
785
|
-
"name": "permissionFlag",
|
|
786
|
-
"type": "bytes2"
|
|
787
|
-
},
|
|
788
|
-
{
|
|
789
|
-
"internalType": "contract ISigner",
|
|
790
|
-
"name": "signer",
|
|
791
|
-
"type": "address"
|
|
792
|
-
},
|
|
793
|
-
{
|
|
794
|
-
"internalType": "PolicyData[]",
|
|
795
|
-
"name": "policyData",
|
|
796
|
-
"type": "bytes22[]"
|
|
797
|
-
}
|
|
798
|
-
],
|
|
799
|
-
"internalType": "struct ValidationManager.PermissionConfig",
|
|
800
|
-
"name": "",
|
|
801
|
-
"type": "tuple"
|
|
802
|
-
}
|
|
803
|
-
],
|
|
804
|
-
"stateMutability": "view",
|
|
805
|
-
"type": "function"
|
|
806
|
-
},
|
|
807
426
|
{
|
|
808
427
|
"inputs": [],
|
|
809
|
-
"name": "
|
|
428
|
+
"name": "name",
|
|
810
429
|
"outputs": [
|
|
811
430
|
{
|
|
812
|
-
"internalType": "
|
|
431
|
+
"internalType": "string",
|
|
813
432
|
"name": "",
|
|
814
|
-
"type": "
|
|
433
|
+
"type": "string"
|
|
815
434
|
}
|
|
816
435
|
],
|
|
817
436
|
"stateMutability": "view",
|
|
@@ -820,53 +439,76 @@ exports.Kernel_jsonAbi = [
|
|
|
820
439
|
{
|
|
821
440
|
"inputs": [
|
|
822
441
|
{
|
|
823
|
-
"internalType": "
|
|
824
|
-
"name": "
|
|
825
|
-
"type": "
|
|
442
|
+
"internalType": "address",
|
|
443
|
+
"name": "",
|
|
444
|
+
"type": "address"
|
|
445
|
+
},
|
|
446
|
+
{
|
|
447
|
+
"internalType": "address",
|
|
448
|
+
"name": "",
|
|
449
|
+
"type": "address"
|
|
450
|
+
},
|
|
451
|
+
{
|
|
452
|
+
"internalType": "uint256[]",
|
|
453
|
+
"name": "",
|
|
454
|
+
"type": "uint256[]"
|
|
455
|
+
},
|
|
456
|
+
{
|
|
457
|
+
"internalType": "uint256[]",
|
|
458
|
+
"name": "",
|
|
459
|
+
"type": "uint256[]"
|
|
460
|
+
},
|
|
461
|
+
{
|
|
462
|
+
"internalType": "bytes",
|
|
463
|
+
"name": "",
|
|
464
|
+
"type": "bytes"
|
|
826
465
|
}
|
|
827
466
|
],
|
|
828
|
-
"name": "
|
|
467
|
+
"name": "onERC1155BatchReceived",
|
|
829
468
|
"outputs": [
|
|
830
469
|
{
|
|
831
|
-
"
|
|
832
|
-
{
|
|
833
|
-
"internalType": "contract IHook",
|
|
834
|
-
"name": "hook",
|
|
835
|
-
"type": "address"
|
|
836
|
-
},
|
|
837
|
-
{
|
|
838
|
-
"internalType": "address",
|
|
839
|
-
"name": "target",
|
|
840
|
-
"type": "address"
|
|
841
|
-
},
|
|
842
|
-
{
|
|
843
|
-
"internalType": "CallType",
|
|
844
|
-
"name": "callType",
|
|
845
|
-
"type": "bytes1"
|
|
846
|
-
}
|
|
847
|
-
],
|
|
848
|
-
"internalType": "struct SelectorManager.SelectorConfig",
|
|
470
|
+
"internalType": "bytes4",
|
|
849
471
|
"name": "",
|
|
850
|
-
"type": "
|
|
472
|
+
"type": "bytes4"
|
|
851
473
|
}
|
|
852
474
|
],
|
|
853
|
-
"stateMutability": "
|
|
475
|
+
"stateMutability": "pure",
|
|
854
476
|
"type": "function"
|
|
855
477
|
},
|
|
856
478
|
{
|
|
857
479
|
"inputs": [
|
|
858
480
|
{
|
|
859
|
-
"internalType": "
|
|
860
|
-
"name": "
|
|
861
|
-
"type": "
|
|
481
|
+
"internalType": "address",
|
|
482
|
+
"name": "",
|
|
483
|
+
"type": "address"
|
|
484
|
+
},
|
|
485
|
+
{
|
|
486
|
+
"internalType": "address",
|
|
487
|
+
"name": "",
|
|
488
|
+
"type": "address"
|
|
489
|
+
},
|
|
490
|
+
{
|
|
491
|
+
"internalType": "uint256",
|
|
492
|
+
"name": "",
|
|
493
|
+
"type": "uint256"
|
|
494
|
+
},
|
|
495
|
+
{
|
|
496
|
+
"internalType": "uint256",
|
|
497
|
+
"name": "",
|
|
498
|
+
"type": "uint256"
|
|
499
|
+
},
|
|
500
|
+
{
|
|
501
|
+
"internalType": "bytes",
|
|
502
|
+
"name": "",
|
|
503
|
+
"type": "bytes"
|
|
862
504
|
}
|
|
863
505
|
],
|
|
864
|
-
"name": "
|
|
506
|
+
"name": "onERC1155Received",
|
|
865
507
|
"outputs": [
|
|
866
508
|
{
|
|
867
|
-
"internalType": "
|
|
509
|
+
"internalType": "bytes4",
|
|
868
510
|
"name": "",
|
|
869
|
-
"type": "
|
|
511
|
+
"type": "bytes4"
|
|
870
512
|
}
|
|
871
513
|
],
|
|
872
514
|
"stateMutability": "pure",
|
|
@@ -874,18 +516,33 @@ exports.Kernel_jsonAbi = [
|
|
|
874
516
|
},
|
|
875
517
|
{
|
|
876
518
|
"inputs": [
|
|
519
|
+
{
|
|
520
|
+
"internalType": "address",
|
|
521
|
+
"name": "",
|
|
522
|
+
"type": "address"
|
|
523
|
+
},
|
|
524
|
+
{
|
|
525
|
+
"internalType": "address",
|
|
526
|
+
"name": "",
|
|
527
|
+
"type": "address"
|
|
528
|
+
},
|
|
877
529
|
{
|
|
878
530
|
"internalType": "uint256",
|
|
879
|
-
"name": "
|
|
531
|
+
"name": "",
|
|
880
532
|
"type": "uint256"
|
|
533
|
+
},
|
|
534
|
+
{
|
|
535
|
+
"internalType": "bytes",
|
|
536
|
+
"name": "",
|
|
537
|
+
"type": "bytes"
|
|
881
538
|
}
|
|
882
539
|
],
|
|
883
|
-
"name": "
|
|
540
|
+
"name": "onERC721Received",
|
|
884
541
|
"outputs": [
|
|
885
542
|
{
|
|
886
|
-
"internalType": "
|
|
543
|
+
"internalType": "bytes4",
|
|
887
544
|
"name": "",
|
|
888
|
-
"type": "
|
|
545
|
+
"type": "bytes4"
|
|
889
546
|
}
|
|
890
547
|
],
|
|
891
548
|
"stateMutability": "pure",
|
|
@@ -894,22 +551,17 @@ exports.Kernel_jsonAbi = [
|
|
|
894
551
|
{
|
|
895
552
|
"inputs": [
|
|
896
553
|
{
|
|
897
|
-
"internalType": "
|
|
898
|
-
"name": "
|
|
899
|
-
"type": "uint256"
|
|
900
|
-
},
|
|
901
|
-
{
|
|
902
|
-
"internalType": "address",
|
|
903
|
-
"name": "module",
|
|
554
|
+
"internalType": "contract IKernelValidator",
|
|
555
|
+
"name": "_defaultValidator",
|
|
904
556
|
"type": "address"
|
|
905
557
|
},
|
|
906
558
|
{
|
|
907
559
|
"internalType": "bytes",
|
|
908
|
-
"name": "
|
|
560
|
+
"name": "_data",
|
|
909
561
|
"type": "bytes"
|
|
910
562
|
}
|
|
911
563
|
],
|
|
912
|
-
"name": "
|
|
564
|
+
"name": "setDefaultValidator",
|
|
913
565
|
"outputs": [],
|
|
914
566
|
"stateMutability": "payable",
|
|
915
567
|
"type": "function"
|
|
@@ -917,22 +569,37 @@ exports.Kernel_jsonAbi = [
|
|
|
917
569
|
{
|
|
918
570
|
"inputs": [
|
|
919
571
|
{
|
|
920
|
-
"internalType": "
|
|
921
|
-
"name": "
|
|
922
|
-
"type": "
|
|
572
|
+
"internalType": "bytes4",
|
|
573
|
+
"name": "_selector",
|
|
574
|
+
"type": "bytes4"
|
|
923
575
|
},
|
|
924
576
|
{
|
|
925
|
-
"internalType": "
|
|
926
|
-
"name": "
|
|
927
|
-
"type": "
|
|
577
|
+
"internalType": "address",
|
|
578
|
+
"name": "_executor",
|
|
579
|
+
"type": "address"
|
|
580
|
+
},
|
|
581
|
+
{
|
|
582
|
+
"internalType": "contract IKernelValidator",
|
|
583
|
+
"name": "_validator",
|
|
584
|
+
"type": "address"
|
|
585
|
+
},
|
|
586
|
+
{
|
|
587
|
+
"internalType": "ValidUntil",
|
|
588
|
+
"name": "_validUntil",
|
|
589
|
+
"type": "uint48"
|
|
590
|
+
},
|
|
591
|
+
{
|
|
592
|
+
"internalType": "ValidAfter",
|
|
593
|
+
"name": "_validAfter",
|
|
594
|
+
"type": "uint48"
|
|
928
595
|
},
|
|
929
596
|
{
|
|
930
597
|
"internalType": "bytes",
|
|
931
|
-
"name": "
|
|
598
|
+
"name": "_enableData",
|
|
932
599
|
"type": "bytes"
|
|
933
600
|
}
|
|
934
601
|
],
|
|
935
|
-
"name": "
|
|
602
|
+
"name": "setExecution",
|
|
936
603
|
"outputs": [],
|
|
937
604
|
"stateMutability": "payable",
|
|
938
605
|
"type": "function"
|
|
@@ -951,13 +618,24 @@ exports.Kernel_jsonAbi = [
|
|
|
951
618
|
"type": "function"
|
|
952
619
|
},
|
|
953
620
|
{
|
|
954
|
-
"inputs": [
|
|
955
|
-
|
|
621
|
+
"inputs": [
|
|
622
|
+
{
|
|
623
|
+
"internalType": "bytes32",
|
|
624
|
+
"name": "hash",
|
|
625
|
+
"type": "bytes32"
|
|
626
|
+
},
|
|
627
|
+
{
|
|
628
|
+
"internalType": "bytes",
|
|
629
|
+
"name": "signature",
|
|
630
|
+
"type": "bytes"
|
|
631
|
+
}
|
|
632
|
+
],
|
|
633
|
+
"name": "validateSignature",
|
|
956
634
|
"outputs": [
|
|
957
635
|
{
|
|
958
|
-
"internalType": "
|
|
636
|
+
"internalType": "ValidationData",
|
|
959
637
|
"name": "",
|
|
960
|
-
"type": "
|
|
638
|
+
"type": "uint256"
|
|
961
639
|
}
|
|
962
640
|
],
|
|
963
641
|
"stateMutability": "view",
|
|
@@ -988,9 +666,14 @@ exports.Kernel_jsonAbi = [
|
|
|
988
666
|
"type": "bytes"
|
|
989
667
|
},
|
|
990
668
|
{
|
|
991
|
-
"internalType": "
|
|
992
|
-
"name": "
|
|
993
|
-
"type": "
|
|
669
|
+
"internalType": "uint256",
|
|
670
|
+
"name": "callGasLimit",
|
|
671
|
+
"type": "uint256"
|
|
672
|
+
},
|
|
673
|
+
{
|
|
674
|
+
"internalType": "uint256",
|
|
675
|
+
"name": "verificationGasLimit",
|
|
676
|
+
"type": "uint256"
|
|
994
677
|
},
|
|
995
678
|
{
|
|
996
679
|
"internalType": "uint256",
|
|
@@ -998,9 +681,14 @@ exports.Kernel_jsonAbi = [
|
|
|
998
681
|
"type": "uint256"
|
|
999
682
|
},
|
|
1000
683
|
{
|
|
1001
|
-
"internalType": "
|
|
1002
|
-
"name": "
|
|
1003
|
-
"type": "
|
|
684
|
+
"internalType": "uint256",
|
|
685
|
+
"name": "maxFeePerGas",
|
|
686
|
+
"type": "uint256"
|
|
687
|
+
},
|
|
688
|
+
{
|
|
689
|
+
"internalType": "uint256",
|
|
690
|
+
"name": "maxPriorityFeePerGas",
|
|
691
|
+
"type": "uint256"
|
|
1004
692
|
},
|
|
1005
693
|
{
|
|
1006
694
|
"internalType": "bytes",
|
|
@@ -1013,8 +701,8 @@ exports.Kernel_jsonAbi = [
|
|
|
1013
701
|
"type": "bytes"
|
|
1014
702
|
}
|
|
1015
703
|
],
|
|
1016
|
-
"internalType": "struct
|
|
1017
|
-
"name": "
|
|
704
|
+
"internalType": "struct UserOperation",
|
|
705
|
+
"name": "_userOp",
|
|
1018
706
|
"type": "tuple"
|
|
1019
707
|
},
|
|
1020
708
|
{
|
|
@@ -1040,31 +728,13 @@ exports.Kernel_jsonAbi = [
|
|
|
1040
728
|
"type": "function"
|
|
1041
729
|
},
|
|
1042
730
|
{
|
|
1043
|
-
"inputs": [
|
|
1044
|
-
|
|
1045
|
-
"internalType": "ValidationId",
|
|
1046
|
-
"name": "vId",
|
|
1047
|
-
"type": "bytes21"
|
|
1048
|
-
}
|
|
1049
|
-
],
|
|
1050
|
-
"name": "validationConfig",
|
|
731
|
+
"inputs": [],
|
|
732
|
+
"name": "version",
|
|
1051
733
|
"outputs": [
|
|
1052
734
|
{
|
|
1053
|
-
"
|
|
1054
|
-
{
|
|
1055
|
-
"internalType": "uint32",
|
|
1056
|
-
"name": "nonce",
|
|
1057
|
-
"type": "uint32"
|
|
1058
|
-
},
|
|
1059
|
-
{
|
|
1060
|
-
"internalType": "contract IHook",
|
|
1061
|
-
"name": "hook",
|
|
1062
|
-
"type": "address"
|
|
1063
|
-
}
|
|
1064
|
-
],
|
|
1065
|
-
"internalType": "struct ValidationManager.ValidationConfig",
|
|
735
|
+
"internalType": "string",
|
|
1066
736
|
"name": "",
|
|
1067
|
-
"type": "
|
|
737
|
+
"type": "string"
|
|
1068
738
|
}
|
|
1069
739
|
],
|
|
1070
740
|
"stateMutability": "view",
|
|
@@ -1132,20 +802,6 @@ class Kernel_json {
|
|
|
1132
802
|
getContract() {
|
|
1133
803
|
return this.contract;
|
|
1134
804
|
}
|
|
1135
|
-
/**
|
|
1136
|
-
* accountId
|
|
1137
|
-
* pure
|
|
1138
|
-
*/
|
|
1139
|
-
async accountId() {
|
|
1140
|
-
return this.contract.read.accountId();
|
|
1141
|
-
}
|
|
1142
|
-
/**
|
|
1143
|
-
* currentNonce
|
|
1144
|
-
* view
|
|
1145
|
-
*/
|
|
1146
|
-
async currentNonce() {
|
|
1147
|
-
return this.contract.read.currentNonce();
|
|
1148
|
-
}
|
|
1149
805
|
/**
|
|
1150
806
|
* eip712Domain
|
|
1151
807
|
* view
|
|
@@ -1154,187 +810,168 @@ class Kernel_json {
|
|
|
1154
810
|
return this.contract.read.eip712Domain();
|
|
1155
811
|
}
|
|
1156
812
|
/**
|
|
1157
|
-
*
|
|
813
|
+
* entryPoint
|
|
1158
814
|
* view
|
|
1159
815
|
*/
|
|
1160
|
-
async
|
|
1161
|
-
return this.contract.read.
|
|
816
|
+
async entryPoint() {
|
|
817
|
+
return this.contract.read.entryPoint();
|
|
1162
818
|
}
|
|
1163
819
|
/**
|
|
1164
|
-
*
|
|
820
|
+
* getDefaultValidator
|
|
1165
821
|
* view
|
|
1166
822
|
*/
|
|
1167
|
-
async
|
|
1168
|
-
return this.contract.read.
|
|
823
|
+
async getDefaultValidator() {
|
|
824
|
+
return this.contract.read.getDefaultValidator();
|
|
1169
825
|
}
|
|
1170
826
|
/**
|
|
1171
|
-
*
|
|
827
|
+
* getDisabledMode
|
|
1172
828
|
* view
|
|
1173
829
|
*/
|
|
1174
|
-
async
|
|
1175
|
-
return this.contract.read.
|
|
830
|
+
async getDisabledMode() {
|
|
831
|
+
return this.contract.read.getDisabledMode();
|
|
1176
832
|
}
|
|
1177
833
|
/**
|
|
1178
|
-
*
|
|
834
|
+
* getExecution
|
|
1179
835
|
* view
|
|
1180
836
|
*/
|
|
1181
|
-
async
|
|
1182
|
-
return this.contract.read.
|
|
837
|
+
async getExecution(_selector) {
|
|
838
|
+
return this.contract.read.getExecution([_selector]);
|
|
1183
839
|
}
|
|
1184
840
|
/**
|
|
1185
|
-
*
|
|
841
|
+
* getLastDisabledTime
|
|
1186
842
|
* view
|
|
1187
843
|
*/
|
|
1188
|
-
async
|
|
1189
|
-
return this.contract.read.
|
|
844
|
+
async getLastDisabledTime() {
|
|
845
|
+
return this.contract.read.getLastDisabledTime();
|
|
1190
846
|
}
|
|
1191
|
-
|
|
1192
|
-
|
|
1193
|
-
* view
|
|
1194
|
-
*/
|
|
1195
|
-
async permissionConfig(pId) {
|
|
1196
|
-
return this.contract.read.permissionConfig([pId]);
|
|
847
|
+
async getNonce(...args) {
|
|
848
|
+
return this.contract.read.getNonce(args);
|
|
1197
849
|
}
|
|
1198
850
|
/**
|
|
1199
|
-
*
|
|
851
|
+
* isValidSignature
|
|
1200
852
|
* view
|
|
1201
853
|
*/
|
|
1202
|
-
async
|
|
1203
|
-
return this.contract.read.
|
|
854
|
+
async isValidSignature(hash, signature) {
|
|
855
|
+
return this.contract.read.isValidSignature([hash, signature]);
|
|
1204
856
|
}
|
|
1205
857
|
/**
|
|
1206
|
-
*
|
|
858
|
+
* name
|
|
1207
859
|
* view
|
|
1208
860
|
*/
|
|
1209
|
-
async
|
|
1210
|
-
return this.contract.read.
|
|
861
|
+
async name() {
|
|
862
|
+
return this.contract.read.name();
|
|
1211
863
|
}
|
|
1212
864
|
/**
|
|
1213
|
-
*
|
|
865
|
+
* onERC1155BatchReceived
|
|
1214
866
|
* pure
|
|
1215
867
|
*/
|
|
1216
|
-
async
|
|
1217
|
-
return this.contract.read.
|
|
868
|
+
async onERC1155BatchReceived(arg0, arg1, arg2, arg3, arg4) {
|
|
869
|
+
return this.contract.read.onERC1155BatchReceived([arg0, arg1, arg2, arg3, arg4]);
|
|
1218
870
|
}
|
|
1219
871
|
/**
|
|
1220
|
-
*
|
|
872
|
+
* onERC1155Received
|
|
1221
873
|
* pure
|
|
1222
874
|
*/
|
|
1223
|
-
async
|
|
1224
|
-
return this.contract.read.
|
|
875
|
+
async onERC1155Received(arg0, arg1, arg2, arg3, arg4) {
|
|
876
|
+
return this.contract.read.onERC1155Received([arg0, arg1, arg2, arg3, arg4]);
|
|
1225
877
|
}
|
|
1226
878
|
/**
|
|
1227
|
-
*
|
|
1228
|
-
*
|
|
879
|
+
* onERC721Received
|
|
880
|
+
* pure
|
|
1229
881
|
*/
|
|
1230
|
-
async
|
|
1231
|
-
return this.contract.read.
|
|
882
|
+
async onERC721Received(arg0, arg1, arg2, arg3) {
|
|
883
|
+
return this.contract.read.onERC721Received([arg0, arg1, arg2, arg3]);
|
|
1232
884
|
}
|
|
1233
885
|
/**
|
|
1234
|
-
*
|
|
886
|
+
* validateSignature
|
|
1235
887
|
* view
|
|
1236
888
|
*/
|
|
1237
|
-
async
|
|
1238
|
-
return this.contract.read.
|
|
889
|
+
async validateSignature(hash, signature) {
|
|
890
|
+
return this.contract.read.validateSignature([hash, signature]);
|
|
1239
891
|
}
|
|
1240
892
|
/**
|
|
1241
|
-
*
|
|
1242
|
-
*
|
|
1243
|
-
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
893
|
+
* version
|
|
894
|
+
* view
|
|
1244
895
|
*/
|
|
1245
|
-
async
|
|
1246
|
-
|
|
1247
|
-
throw new Error('Wallet client is required for write operations');
|
|
1248
|
-
}
|
|
1249
|
-
return this.contract.write.execute([execMode, executionCalldata], options);
|
|
896
|
+
async version() {
|
|
897
|
+
return this.contract.read.version();
|
|
1250
898
|
}
|
|
1251
899
|
/**
|
|
1252
|
-
*
|
|
900
|
+
* disableMode
|
|
1253
901
|
* payable
|
|
1254
902
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1255
903
|
*/
|
|
1256
|
-
async
|
|
904
|
+
async disableMode(_disableFlag, options) {
|
|
1257
905
|
if (!this.contract.write) {
|
|
1258
906
|
throw new Error('Wallet client is required for write operations');
|
|
1259
907
|
}
|
|
1260
|
-
return this.contract.write.
|
|
908
|
+
return this.contract.write.disableMode([_disableFlag], options);
|
|
1261
909
|
}
|
|
1262
910
|
/**
|
|
1263
|
-
*
|
|
911
|
+
* execute
|
|
1264
912
|
* payable
|
|
1265
913
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1266
914
|
*/
|
|
1267
|
-
async
|
|
915
|
+
async execute(to, value, data, _operation, options) {
|
|
1268
916
|
if (!this.contract.write) {
|
|
1269
917
|
throw new Error('Wallet client is required for write operations');
|
|
1270
918
|
}
|
|
1271
|
-
return this.contract.write.
|
|
919
|
+
return this.contract.write.execute([to, value, data, _operation], options);
|
|
1272
920
|
}
|
|
1273
921
|
/**
|
|
1274
|
-
*
|
|
1275
|
-
* nonpayable
|
|
1276
|
-
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1277
|
-
*/
|
|
1278
|
-
async initialize(_rootValidator, hook, validatorData, hookData, options) {
|
|
1279
|
-
if (!this.contract.write) {
|
|
1280
|
-
throw new Error('Wallet client is required for write operations');
|
|
1281
|
-
}
|
|
1282
|
-
return this.contract.write.initialize([_rootValidator, hook, validatorData, hookData], options);
|
|
1283
|
-
}
|
|
1284
|
-
/**
|
|
1285
|
-
* installModule
|
|
922
|
+
* executeBatch
|
|
1286
923
|
* payable
|
|
1287
924
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1288
925
|
*/
|
|
1289
|
-
async
|
|
926
|
+
async executeBatch(calls, options) {
|
|
1290
927
|
if (!this.contract.write) {
|
|
1291
928
|
throw new Error('Wallet client is required for write operations');
|
|
1292
929
|
}
|
|
1293
|
-
return this.contract.write.
|
|
930
|
+
return this.contract.write.executeBatch([calls], options);
|
|
1294
931
|
}
|
|
1295
932
|
/**
|
|
1296
|
-
*
|
|
933
|
+
* executeDelegateCall
|
|
1297
934
|
* payable
|
|
1298
935
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1299
936
|
*/
|
|
1300
|
-
async
|
|
937
|
+
async executeDelegateCall(to, data, options) {
|
|
1301
938
|
if (!this.contract.write) {
|
|
1302
939
|
throw new Error('Wallet client is required for write operations');
|
|
1303
940
|
}
|
|
1304
|
-
return this.contract.write.
|
|
941
|
+
return this.contract.write.executeDelegateCall([to, data], options);
|
|
1305
942
|
}
|
|
1306
943
|
/**
|
|
1307
|
-
*
|
|
944
|
+
* initialize
|
|
1308
945
|
* payable
|
|
1309
946
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1310
947
|
*/
|
|
1311
|
-
async
|
|
948
|
+
async initialize(_defaultValidator, _data, options) {
|
|
1312
949
|
if (!this.contract.write) {
|
|
1313
950
|
throw new Error('Wallet client is required for write operations');
|
|
1314
951
|
}
|
|
1315
|
-
return this.contract.write.
|
|
952
|
+
return this.contract.write.initialize([_defaultValidator, _data], options);
|
|
1316
953
|
}
|
|
1317
954
|
/**
|
|
1318
|
-
*
|
|
955
|
+
* setDefaultValidator
|
|
1319
956
|
* payable
|
|
1320
957
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1321
958
|
*/
|
|
1322
|
-
async
|
|
959
|
+
async setDefaultValidator(_defaultValidator, _data, options) {
|
|
1323
960
|
if (!this.contract.write) {
|
|
1324
961
|
throw new Error('Wallet client is required for write operations');
|
|
1325
962
|
}
|
|
1326
|
-
return this.contract.write.
|
|
963
|
+
return this.contract.write.setDefaultValidator([_defaultValidator, _data], options);
|
|
1327
964
|
}
|
|
1328
965
|
/**
|
|
1329
|
-
*
|
|
966
|
+
* setExecution
|
|
1330
967
|
* payable
|
|
1331
968
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1332
969
|
*/
|
|
1333
|
-
async
|
|
970
|
+
async setExecution(_selector, _executor, _validator, _validUntil, _validAfter, _enableData, options) {
|
|
1334
971
|
if (!this.contract.write) {
|
|
1335
972
|
throw new Error('Wallet client is required for write operations');
|
|
1336
973
|
}
|
|
1337
|
-
return this.contract.write.
|
|
974
|
+
return this.contract.write.setExecution([_selector, _executor, _validator, _validUntil, _validAfter, _enableData], options);
|
|
1338
975
|
}
|
|
1339
976
|
/**
|
|
1340
977
|
* upgradeTo
|
|
@@ -1352,11 +989,11 @@ class Kernel_json {
|
|
|
1352
989
|
* payable
|
|
1353
990
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1354
991
|
*/
|
|
1355
|
-
async validateUserOp(
|
|
992
|
+
async validateUserOp(_userOp, userOpHash, missingAccountFunds, options) {
|
|
1356
993
|
if (!this.contract.write) {
|
|
1357
994
|
throw new Error('Wallet client is required for write operations');
|
|
1358
995
|
}
|
|
1359
|
-
return this.contract.write.validateUserOp([
|
|
996
|
+
return this.contract.write.validateUserOp([_userOp, userOpHash, missingAccountFunds], options);
|
|
1360
997
|
}
|
|
1361
998
|
/**
|
|
1362
999
|
* Simulate contract write operations (dry-run without sending transaction)
|
|
@@ -1373,76 +1010,60 @@ class Kernel_json {
|
|
|
1373
1010
|
}
|
|
1374
1011
|
return {
|
|
1375
1012
|
/**
|
|
1376
|
-
* Simulate
|
|
1377
|
-
* Returns gas estimate and result without sending transaction
|
|
1378
|
-
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1379
|
-
*/
|
|
1380
|
-
async execute(execMode, executionCalldata, options) {
|
|
1381
|
-
return contract.simulate.execute([execMode, executionCalldata], options);
|
|
1382
|
-
},
|
|
1383
|
-
/**
|
|
1384
|
-
* Simulate executeFromExecutor
|
|
1385
|
-
* Returns gas estimate and result without sending transaction
|
|
1386
|
-
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1387
|
-
*/
|
|
1388
|
-
async executeFromExecutor(execMode, executionCalldata, options) {
|
|
1389
|
-
return contract.simulate.executeFromExecutor([execMode, executionCalldata], options);
|
|
1390
|
-
},
|
|
1391
|
-
/**
|
|
1392
|
-
* Simulate executeUserOp
|
|
1013
|
+
* Simulate disableMode
|
|
1393
1014
|
* Returns gas estimate and result without sending transaction
|
|
1394
1015
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1395
1016
|
*/
|
|
1396
|
-
async
|
|
1397
|
-
return contract.simulate.
|
|
1017
|
+
async disableMode(_disableFlag, options) {
|
|
1018
|
+
return contract.simulate.disableMode([_disableFlag], options);
|
|
1398
1019
|
},
|
|
1399
1020
|
/**
|
|
1400
|
-
* Simulate
|
|
1021
|
+
* Simulate execute
|
|
1401
1022
|
* Returns gas estimate and result without sending transaction
|
|
1402
1023
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1403
1024
|
*/
|
|
1404
|
-
async
|
|
1405
|
-
return contract.simulate.
|
|
1025
|
+
async execute(to, value, data, _operation, options) {
|
|
1026
|
+
return contract.simulate.execute([to, value, data, _operation], options);
|
|
1406
1027
|
},
|
|
1407
1028
|
/**
|
|
1408
|
-
* Simulate
|
|
1029
|
+
* Simulate executeBatch
|
|
1409
1030
|
* Returns gas estimate and result without sending transaction
|
|
1410
1031
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1411
1032
|
*/
|
|
1412
|
-
async
|
|
1413
|
-
return contract.simulate.
|
|
1033
|
+
async executeBatch(calls, options) {
|
|
1034
|
+
return contract.simulate.executeBatch([calls], options);
|
|
1414
1035
|
},
|
|
1415
1036
|
/**
|
|
1416
|
-
* Simulate
|
|
1037
|
+
* Simulate executeDelegateCall
|
|
1417
1038
|
* Returns gas estimate and result without sending transaction
|
|
1418
1039
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1419
1040
|
*/
|
|
1420
|
-
async
|
|
1421
|
-
return contract.simulate.
|
|
1041
|
+
async executeDelegateCall(to, data, options) {
|
|
1042
|
+
return contract.simulate.executeDelegateCall([to, data], options);
|
|
1422
1043
|
},
|
|
1423
1044
|
/**
|
|
1424
|
-
* Simulate
|
|
1045
|
+
* Simulate initialize
|
|
1425
1046
|
* Returns gas estimate and result without sending transaction
|
|
1426
1047
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1427
1048
|
*/
|
|
1428
|
-
async
|
|
1429
|
-
return contract.simulate.
|
|
1049
|
+
async initialize(_defaultValidator, _data, options) {
|
|
1050
|
+
return contract.simulate.initialize([_defaultValidator, _data], options);
|
|
1430
1051
|
},
|
|
1431
1052
|
/**
|
|
1432
|
-
* Simulate
|
|
1053
|
+
* Simulate setDefaultValidator
|
|
1433
1054
|
* Returns gas estimate and result without sending transaction
|
|
1434
1055
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1435
1056
|
*/
|
|
1436
|
-
async
|
|
1437
|
-
return contract.simulate.
|
|
1057
|
+
async setDefaultValidator(_defaultValidator, _data, options) {
|
|
1058
|
+
return contract.simulate.setDefaultValidator([_defaultValidator, _data], options);
|
|
1438
1059
|
},
|
|
1439
1060
|
/**
|
|
1440
|
-
* Simulate
|
|
1061
|
+
* Simulate setExecution
|
|
1441
1062
|
* Returns gas estimate and result without sending transaction
|
|
1442
1063
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1443
1064
|
*/
|
|
1444
|
-
async
|
|
1445
|
-
return contract.simulate.
|
|
1065
|
+
async setExecution(_selector, _executor, _validator, _validUntil, _validAfter, _enableData, options) {
|
|
1066
|
+
return contract.simulate.setExecution([_selector, _executor, _validator, _validUntil, _validAfter, _enableData], options);
|
|
1446
1067
|
},
|
|
1447
1068
|
/**
|
|
1448
1069
|
* Simulate upgradeTo
|
|
@@ -1457,8 +1078,8 @@ class Kernel_json {
|
|
|
1457
1078
|
* Returns gas estimate and result without sending transaction
|
|
1458
1079
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1459
1080
|
*/
|
|
1460
|
-
async validateUserOp(
|
|
1461
|
-
return contract.simulate.validateUserOp([
|
|
1081
|
+
async validateUserOp(_userOp, userOpHash, missingAccountFunds, options) {
|
|
1082
|
+
return contract.simulate.validateUserOp([_userOp, userOpHash, missingAccountFunds], options);
|
|
1462
1083
|
}
|
|
1463
1084
|
};
|
|
1464
1085
|
}
|
|
@@ -1477,88 +1098,17 @@ class Kernel_json {
|
|
|
1477
1098
|
get watch() {
|
|
1478
1099
|
return {
|
|
1479
1100
|
/**
|
|
1480
|
-
* Watch
|
|
1481
|
-
* @param callback Function to call when event is emitted
|
|
1482
|
-
* @param filter Optional filter for indexed parameters
|
|
1483
|
-
* @returns Unwatch function to stop listening
|
|
1484
|
-
*/
|
|
1485
|
-
ModuleInstalled: (callback) => {
|
|
1486
|
-
return this.publicClient.watchContractEvent({
|
|
1487
|
-
address: this.contractAddress,
|
|
1488
|
-
abi: exports.Kernel_jsonAbi,
|
|
1489
|
-
eventName: 'ModuleInstalled',
|
|
1490
|
-
onLogs: (logs) => {
|
|
1491
|
-
logs.forEach((log) => {
|
|
1492
|
-
callback(log.args);
|
|
1493
|
-
});
|
|
1494
|
-
},
|
|
1495
|
-
});
|
|
1496
|
-
},
|
|
1497
|
-
/**
|
|
1498
|
-
* Watch ModuleUninstallResult events
|
|
1499
|
-
* @param callback Function to call when event is emitted
|
|
1500
|
-
* @param filter Optional filter for indexed parameters
|
|
1501
|
-
* @returns Unwatch function to stop listening
|
|
1502
|
-
*/
|
|
1503
|
-
ModuleUninstallResult: (callback) => {
|
|
1504
|
-
return this.publicClient.watchContractEvent({
|
|
1505
|
-
address: this.contractAddress,
|
|
1506
|
-
abi: exports.Kernel_jsonAbi,
|
|
1507
|
-
eventName: 'ModuleUninstallResult',
|
|
1508
|
-
onLogs: (logs) => {
|
|
1509
|
-
logs.forEach((log) => {
|
|
1510
|
-
callback(log.args);
|
|
1511
|
-
});
|
|
1512
|
-
},
|
|
1513
|
-
});
|
|
1514
|
-
},
|
|
1515
|
-
/**
|
|
1516
|
-
* Watch ModuleUninstalled events
|
|
1517
|
-
* @param callback Function to call when event is emitted
|
|
1518
|
-
* @param filter Optional filter for indexed parameters
|
|
1519
|
-
* @returns Unwatch function to stop listening
|
|
1520
|
-
*/
|
|
1521
|
-
ModuleUninstalled: (callback) => {
|
|
1522
|
-
return this.publicClient.watchContractEvent({
|
|
1523
|
-
address: this.contractAddress,
|
|
1524
|
-
abi: exports.Kernel_jsonAbi,
|
|
1525
|
-
eventName: 'ModuleUninstalled',
|
|
1526
|
-
onLogs: (logs) => {
|
|
1527
|
-
logs.forEach((log) => {
|
|
1528
|
-
callback(log.args);
|
|
1529
|
-
});
|
|
1530
|
-
},
|
|
1531
|
-
});
|
|
1532
|
-
},
|
|
1533
|
-
/**
|
|
1534
|
-
* Watch NonceInvalidated events
|
|
1535
|
-
* @param callback Function to call when event is emitted
|
|
1536
|
-
* @param filter Optional filter for indexed parameters
|
|
1537
|
-
* @returns Unwatch function to stop listening
|
|
1538
|
-
*/
|
|
1539
|
-
NonceInvalidated: (callback) => {
|
|
1540
|
-
return this.publicClient.watchContractEvent({
|
|
1541
|
-
address: this.contractAddress,
|
|
1542
|
-
abi: exports.Kernel_jsonAbi,
|
|
1543
|
-
eventName: 'NonceInvalidated',
|
|
1544
|
-
onLogs: (logs) => {
|
|
1545
|
-
logs.forEach((log) => {
|
|
1546
|
-
callback(log.args);
|
|
1547
|
-
});
|
|
1548
|
-
},
|
|
1549
|
-
});
|
|
1550
|
-
},
|
|
1551
|
-
/**
|
|
1552
|
-
* Watch PermissionInstalled events
|
|
1101
|
+
* Watch DefaultValidatorChanged events
|
|
1553
1102
|
* @param callback Function to call when event is emitted
|
|
1554
1103
|
* @param filter Optional filter for indexed parameters
|
|
1555
1104
|
* @returns Unwatch function to stop listening
|
|
1556
1105
|
*/
|
|
1557
|
-
|
|
1106
|
+
DefaultValidatorChanged: (callback, filter) => {
|
|
1558
1107
|
return this.publicClient.watchContractEvent({
|
|
1559
1108
|
address: this.contractAddress,
|
|
1560
1109
|
abi: exports.Kernel_jsonAbi,
|
|
1561
|
-
eventName: '
|
|
1110
|
+
eventName: 'DefaultValidatorChanged',
|
|
1111
|
+
args: filter,
|
|
1562
1112
|
onLogs: (logs) => {
|
|
1563
1113
|
logs.forEach((log) => {
|
|
1564
1114
|
callback(log.args);
|
|
@@ -1567,16 +1117,17 @@ class Kernel_json {
|
|
|
1567
1117
|
});
|
|
1568
1118
|
},
|
|
1569
1119
|
/**
|
|
1570
|
-
* Watch
|
|
1120
|
+
* Watch ExecutionChanged events
|
|
1571
1121
|
* @param callback Function to call when event is emitted
|
|
1572
1122
|
* @param filter Optional filter for indexed parameters
|
|
1573
1123
|
* @returns Unwatch function to stop listening
|
|
1574
1124
|
*/
|
|
1575
|
-
|
|
1125
|
+
ExecutionChanged: (callback, filter) => {
|
|
1576
1126
|
return this.publicClient.watchContractEvent({
|
|
1577
1127
|
address: this.contractAddress,
|
|
1578
1128
|
abi: exports.Kernel_jsonAbi,
|
|
1579
|
-
eventName: '
|
|
1129
|
+
eventName: 'ExecutionChanged',
|
|
1130
|
+
args: filter,
|
|
1580
1131
|
onLogs: (logs) => {
|
|
1581
1132
|
logs.forEach((log) => {
|
|
1582
1133
|
callback(log.args);
|
|
@@ -1602,60 +1153,6 @@ class Kernel_json {
|
|
|
1602
1153
|
},
|
|
1603
1154
|
});
|
|
1604
1155
|
},
|
|
1605
|
-
/**
|
|
1606
|
-
* Watch RootValidatorUpdated events
|
|
1607
|
-
* @param callback Function to call when event is emitted
|
|
1608
|
-
* @param filter Optional filter for indexed parameters
|
|
1609
|
-
* @returns Unwatch function to stop listening
|
|
1610
|
-
*/
|
|
1611
|
-
RootValidatorUpdated: (callback) => {
|
|
1612
|
-
return this.publicClient.watchContractEvent({
|
|
1613
|
-
address: this.contractAddress,
|
|
1614
|
-
abi: exports.Kernel_jsonAbi,
|
|
1615
|
-
eventName: 'RootValidatorUpdated',
|
|
1616
|
-
onLogs: (logs) => {
|
|
1617
|
-
logs.forEach((log) => {
|
|
1618
|
-
callback(log.args);
|
|
1619
|
-
});
|
|
1620
|
-
},
|
|
1621
|
-
});
|
|
1622
|
-
},
|
|
1623
|
-
/**
|
|
1624
|
-
* Watch SelectorSet events
|
|
1625
|
-
* @param callback Function to call when event is emitted
|
|
1626
|
-
* @param filter Optional filter for indexed parameters
|
|
1627
|
-
* @returns Unwatch function to stop listening
|
|
1628
|
-
*/
|
|
1629
|
-
SelectorSet: (callback) => {
|
|
1630
|
-
return this.publicClient.watchContractEvent({
|
|
1631
|
-
address: this.contractAddress,
|
|
1632
|
-
abi: exports.Kernel_jsonAbi,
|
|
1633
|
-
eventName: 'SelectorSet',
|
|
1634
|
-
onLogs: (logs) => {
|
|
1635
|
-
logs.forEach((log) => {
|
|
1636
|
-
callback(log.args);
|
|
1637
|
-
});
|
|
1638
|
-
},
|
|
1639
|
-
});
|
|
1640
|
-
},
|
|
1641
|
-
/**
|
|
1642
|
-
* Watch TryExecuteUnsuccessful events
|
|
1643
|
-
* @param callback Function to call when event is emitted
|
|
1644
|
-
* @param filter Optional filter for indexed parameters
|
|
1645
|
-
* @returns Unwatch function to stop listening
|
|
1646
|
-
*/
|
|
1647
|
-
TryExecuteUnsuccessful: (callback) => {
|
|
1648
|
-
return this.publicClient.watchContractEvent({
|
|
1649
|
-
address: this.contractAddress,
|
|
1650
|
-
abi: exports.Kernel_jsonAbi,
|
|
1651
|
-
eventName: 'TryExecuteUnsuccessful',
|
|
1652
|
-
onLogs: (logs) => {
|
|
1653
|
-
logs.forEach((log) => {
|
|
1654
|
-
callback(log.args);
|
|
1655
|
-
});
|
|
1656
|
-
},
|
|
1657
|
-
});
|
|
1658
|
-
},
|
|
1659
1156
|
/**
|
|
1660
1157
|
* Watch Upgraded events
|
|
1661
1158
|
* @param callback Function to call when event is emitted
|
|
@@ -1674,42 +1171,6 @@ class Kernel_json {
|
|
|
1674
1171
|
});
|
|
1675
1172
|
},
|
|
1676
1173
|
});
|
|
1677
|
-
},
|
|
1678
|
-
/**
|
|
1679
|
-
* Watch ValidatorInstalled events
|
|
1680
|
-
* @param callback Function to call when event is emitted
|
|
1681
|
-
* @param filter Optional filter for indexed parameters
|
|
1682
|
-
* @returns Unwatch function to stop listening
|
|
1683
|
-
*/
|
|
1684
|
-
ValidatorInstalled: (callback) => {
|
|
1685
|
-
return this.publicClient.watchContractEvent({
|
|
1686
|
-
address: this.contractAddress,
|
|
1687
|
-
abi: exports.Kernel_jsonAbi,
|
|
1688
|
-
eventName: 'ValidatorInstalled',
|
|
1689
|
-
onLogs: (logs) => {
|
|
1690
|
-
logs.forEach((log) => {
|
|
1691
|
-
callback(log.args);
|
|
1692
|
-
});
|
|
1693
|
-
},
|
|
1694
|
-
});
|
|
1695
|
-
},
|
|
1696
|
-
/**
|
|
1697
|
-
* Watch ValidatorUninstalled events
|
|
1698
|
-
* @param callback Function to call when event is emitted
|
|
1699
|
-
* @param filter Optional filter for indexed parameters
|
|
1700
|
-
* @returns Unwatch function to stop listening
|
|
1701
|
-
*/
|
|
1702
|
-
ValidatorUninstalled: (callback) => {
|
|
1703
|
-
return this.publicClient.watchContractEvent({
|
|
1704
|
-
address: this.contractAddress,
|
|
1705
|
-
abi: exports.Kernel_jsonAbi,
|
|
1706
|
-
eventName: 'ValidatorUninstalled',
|
|
1707
|
-
onLogs: (logs) => {
|
|
1708
|
-
logs.forEach((log) => {
|
|
1709
|
-
callback(log.args);
|
|
1710
|
-
});
|
|
1711
|
-
},
|
|
1712
|
-
});
|
|
1713
1174
|
}
|
|
1714
1175
|
};
|
|
1715
1176
|
}
|