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