@zerodev/sdk 5.1.13 → 5.1.15
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/_cjs/accounts/index.js +7 -1
- package/_cjs/accounts/index.js.map +1 -1
- package/_cjs/accounts/kernel/createKernelAccount.js +29 -4
- package/_cjs/accounts/kernel/createKernelAccount.js.map +1 -1
- package/_cjs/accounts/kernel/v1/createKernelV1Account.js +1 -1
- package/_cjs/accounts/kernel/v1/createKernelV1Account.js.map +1 -1
- package/_cjs/accounts/kernel/v2/abi/KernelAccountV2Abi.js +377 -0
- package/_cjs/accounts/kernel/v2/abi/KernelAccountV2Abi.js.map +1 -0
- package/_cjs/accounts/kernel/v2/abi/KernelFactoryV2Abi.js +115 -0
- package/_cjs/accounts/kernel/v2/abi/KernelFactoryV2Abi.js.map +1 -0
- package/_cjs/accounts/kernel/v2/createKernelV2Account.js +216 -0
- package/_cjs/accounts/kernel/v2/createKernelV2Account.js.map +1 -0
- package/_cjs/accounts/utils/multisend.js.map +1 -0
- package/_cjs/accounts/utils/toKernelPluginManager.js +5 -4
- package/_cjs/accounts/utils/toKernelPluginManager.js.map +1 -1
- package/_cjs/index.js +2 -1
- package/_cjs/index.js.map +1 -1
- package/_cjs/types/kernel.js.map +1 -1
- package/_esm/accounts/index.js +3 -0
- package/_esm/accounts/index.js.map +1 -1
- package/_esm/accounts/kernel/createKernelAccount.js +32 -5
- package/_esm/accounts/kernel/createKernelAccount.js.map +1 -1
- package/_esm/accounts/kernel/v1/createKernelV1Account.js +1 -1
- package/_esm/accounts/kernel/v1/createKernelV1Account.js.map +1 -1
- package/_esm/accounts/kernel/v2/abi/KernelAccountV2Abi.js +374 -0
- package/_esm/accounts/kernel/v2/abi/KernelAccountV2Abi.js.map +1 -0
- package/_esm/accounts/kernel/v2/abi/KernelFactoryV2Abi.js +112 -0
- package/_esm/accounts/kernel/v2/abi/KernelFactoryV2Abi.js.map +1 -0
- package/_esm/accounts/kernel/v2/createKernelV2Account.js +254 -0
- package/_esm/accounts/kernel/v2/createKernelV2Account.js.map +1 -0
- package/_esm/accounts/{kernel/v1 → utils}/multisend.js +1 -1
- package/_esm/accounts/utils/multisend.js.map +1 -0
- package/_esm/accounts/utils/toKernelPluginManager.js +5 -4
- package/_esm/accounts/utils/toKernelPluginManager.js.map +1 -1
- package/_esm/index.js +1 -1
- package/_esm/index.js.map +1 -1
- package/_esm/types/kernel.js.map +1 -1
- package/_types/accounts/index.d.ts +3 -0
- package/_types/accounts/index.d.ts.map +1 -1
- package/_types/accounts/kernel/createKernelAccount.d.ts.map +1 -1
- package/_types/accounts/kernel/v1/createKernelV1Account.d.ts.map +1 -1
- package/_types/accounts/kernel/v2/abi/KernelAccountV2Abi.d.ts +447 -0
- package/_types/accounts/kernel/v2/abi/KernelAccountV2Abi.d.ts.map +1 -0
- package/_types/accounts/kernel/v2/abi/KernelFactoryV2Abi.d.ts +109 -0
- package/_types/accounts/kernel/v2/abi/KernelFactoryV2Abi.d.ts.map +1 -0
- package/_types/accounts/kernel/v2/createKernelV2Account.d.ts +33 -0
- package/_types/accounts/kernel/v2/createKernelV2Account.d.ts.map +1 -0
- package/_types/accounts/{kernel/v1 → utils}/multisend.d.ts +1 -1
- package/_types/accounts/utils/multisend.d.ts.map +1 -0
- package/_types/accounts/utils/toKernelPluginManager.d.ts +1 -1
- package/_types/accounts/utils/toKernelPluginManager.d.ts.map +1 -1
- package/_types/index.d.ts +1 -1
- package/_types/index.d.ts.map +1 -1
- package/_types/types/kernel.d.ts +1 -0
- package/_types/types/kernel.d.ts.map +1 -1
- package/accounts/index.ts +3 -0
- package/accounts/kernel/createKernelAccount.ts +32 -4
- package/accounts/kernel/v1/createKernelV1Account.ts +2 -2
- package/accounts/kernel/v2/abi/KernelAccountV2Abi.ts +373 -0
- package/accounts/kernel/v2/abi/KernelFactoryV2Abi.ts +111 -0
- package/accounts/kernel/v2/createKernelV2Account.ts +369 -0
- package/accounts/{kernel/v1 → utils}/multisend.ts +1 -1
- package/accounts/utils/toKernelPluginManager.ts +7 -4
- package/index.ts +1 -0
- package/package.json +1 -1
- package/types/kernel.ts +1 -0
- package/_cjs/accounts/kernel/v1/multisend.js.map +0 -1
- package/_esm/accounts/kernel/v1/multisend.js.map +0 -1
- package/_types/accounts/kernel/v1/multisend.d.ts.map +0 -1
- /package/_cjs/accounts/{kernel/v1 → utils}/multisend.js +0 -0
|
@@ -0,0 +1,447 @@
|
|
|
1
|
+
export declare const KernelAccountV2Abi: readonly [{
|
|
2
|
+
readonly type: "constructor";
|
|
3
|
+
readonly inputs: readonly [{
|
|
4
|
+
readonly name: "_entryPoint";
|
|
5
|
+
readonly type: "address";
|
|
6
|
+
readonly internalType: "contract IEntryPoint";
|
|
7
|
+
}];
|
|
8
|
+
readonly stateMutability: "nonpayable";
|
|
9
|
+
}, {
|
|
10
|
+
readonly type: "fallback";
|
|
11
|
+
readonly stateMutability: "payable";
|
|
12
|
+
}, {
|
|
13
|
+
readonly type: "receive";
|
|
14
|
+
readonly stateMutability: "payable";
|
|
15
|
+
}, {
|
|
16
|
+
readonly type: "function";
|
|
17
|
+
readonly name: "disableMode";
|
|
18
|
+
readonly inputs: readonly [{
|
|
19
|
+
readonly name: "_disableFlag";
|
|
20
|
+
readonly type: "bytes4";
|
|
21
|
+
readonly internalType: "bytes4";
|
|
22
|
+
}];
|
|
23
|
+
readonly outputs: readonly [];
|
|
24
|
+
readonly stateMutability: "nonpayable";
|
|
25
|
+
}, {
|
|
26
|
+
readonly type: "function";
|
|
27
|
+
readonly name: "entryPoint";
|
|
28
|
+
readonly inputs: readonly [];
|
|
29
|
+
readonly outputs: readonly [{
|
|
30
|
+
readonly name: "";
|
|
31
|
+
readonly type: "address";
|
|
32
|
+
readonly internalType: "contract IEntryPoint";
|
|
33
|
+
}];
|
|
34
|
+
readonly stateMutability: "view";
|
|
35
|
+
}, {
|
|
36
|
+
readonly type: "function";
|
|
37
|
+
readonly name: "execute";
|
|
38
|
+
readonly inputs: readonly [{
|
|
39
|
+
readonly name: "to";
|
|
40
|
+
readonly type: "address";
|
|
41
|
+
readonly internalType: "address";
|
|
42
|
+
}, {
|
|
43
|
+
readonly name: "value";
|
|
44
|
+
readonly type: "uint256";
|
|
45
|
+
readonly internalType: "uint256";
|
|
46
|
+
}, {
|
|
47
|
+
readonly name: "data";
|
|
48
|
+
readonly type: "bytes";
|
|
49
|
+
readonly internalType: "bytes";
|
|
50
|
+
}, {
|
|
51
|
+
readonly name: "operation";
|
|
52
|
+
readonly type: "uint8";
|
|
53
|
+
readonly internalType: "enum Operation";
|
|
54
|
+
}];
|
|
55
|
+
readonly outputs: readonly [];
|
|
56
|
+
readonly stateMutability: "nonpayable";
|
|
57
|
+
}, {
|
|
58
|
+
readonly type: "function";
|
|
59
|
+
readonly name: "getDefaultValidator";
|
|
60
|
+
readonly inputs: readonly [];
|
|
61
|
+
readonly outputs: readonly [{
|
|
62
|
+
readonly name: "";
|
|
63
|
+
readonly type: "address";
|
|
64
|
+
readonly internalType: "contract IKernelValidator";
|
|
65
|
+
}];
|
|
66
|
+
readonly stateMutability: "view";
|
|
67
|
+
}, {
|
|
68
|
+
readonly type: "function";
|
|
69
|
+
readonly name: "getDisabledMode";
|
|
70
|
+
readonly inputs: readonly [];
|
|
71
|
+
readonly outputs: readonly [{
|
|
72
|
+
readonly name: "";
|
|
73
|
+
readonly type: "bytes4";
|
|
74
|
+
readonly internalType: "bytes4";
|
|
75
|
+
}];
|
|
76
|
+
readonly stateMutability: "view";
|
|
77
|
+
}, {
|
|
78
|
+
readonly type: "function";
|
|
79
|
+
readonly name: "getExecution";
|
|
80
|
+
readonly inputs: readonly [{
|
|
81
|
+
readonly name: "_selector";
|
|
82
|
+
readonly type: "bytes4";
|
|
83
|
+
readonly internalType: "bytes4";
|
|
84
|
+
}];
|
|
85
|
+
readonly outputs: readonly [{
|
|
86
|
+
readonly name: "";
|
|
87
|
+
readonly type: "tuple";
|
|
88
|
+
readonly internalType: "struct ExecutionDetail";
|
|
89
|
+
readonly components: readonly [{
|
|
90
|
+
readonly name: "validUntil";
|
|
91
|
+
readonly type: "uint48";
|
|
92
|
+
readonly internalType: "uint48";
|
|
93
|
+
}, {
|
|
94
|
+
readonly name: "validAfter";
|
|
95
|
+
readonly type: "uint48";
|
|
96
|
+
readonly internalType: "uint48";
|
|
97
|
+
}, {
|
|
98
|
+
readonly name: "executor";
|
|
99
|
+
readonly type: "address";
|
|
100
|
+
readonly internalType: "address";
|
|
101
|
+
}, {
|
|
102
|
+
readonly name: "validator";
|
|
103
|
+
readonly type: "address";
|
|
104
|
+
readonly internalType: "contract IKernelValidator";
|
|
105
|
+
}];
|
|
106
|
+
}];
|
|
107
|
+
readonly stateMutability: "view";
|
|
108
|
+
}, {
|
|
109
|
+
readonly type: "function";
|
|
110
|
+
readonly name: "getLastDisabledTime";
|
|
111
|
+
readonly inputs: readonly [];
|
|
112
|
+
readonly outputs: readonly [{
|
|
113
|
+
readonly name: "";
|
|
114
|
+
readonly type: "uint48";
|
|
115
|
+
readonly internalType: "uint48";
|
|
116
|
+
}];
|
|
117
|
+
readonly stateMutability: "view";
|
|
118
|
+
}, {
|
|
119
|
+
readonly type: "function";
|
|
120
|
+
readonly name: "getNonce";
|
|
121
|
+
readonly inputs: readonly [{
|
|
122
|
+
readonly name: "key";
|
|
123
|
+
readonly type: "uint192";
|
|
124
|
+
readonly internalType: "uint192";
|
|
125
|
+
}];
|
|
126
|
+
readonly outputs: readonly [{
|
|
127
|
+
readonly name: "";
|
|
128
|
+
readonly type: "uint256";
|
|
129
|
+
readonly internalType: "uint256";
|
|
130
|
+
}];
|
|
131
|
+
readonly stateMutability: "view";
|
|
132
|
+
}, {
|
|
133
|
+
readonly type: "function";
|
|
134
|
+
readonly name: "getNonce";
|
|
135
|
+
readonly inputs: readonly [];
|
|
136
|
+
readonly outputs: readonly [{
|
|
137
|
+
readonly name: "";
|
|
138
|
+
readonly type: "uint256";
|
|
139
|
+
readonly internalType: "uint256";
|
|
140
|
+
}];
|
|
141
|
+
readonly stateMutability: "view";
|
|
142
|
+
}, {
|
|
143
|
+
readonly type: "function";
|
|
144
|
+
readonly name: "initialize";
|
|
145
|
+
readonly inputs: readonly [{
|
|
146
|
+
readonly name: "_defaultValidator";
|
|
147
|
+
readonly type: "address";
|
|
148
|
+
readonly internalType: "contract IKernelValidator";
|
|
149
|
+
}, {
|
|
150
|
+
readonly name: "_data";
|
|
151
|
+
readonly type: "bytes";
|
|
152
|
+
readonly internalType: "bytes";
|
|
153
|
+
}];
|
|
154
|
+
readonly outputs: readonly [];
|
|
155
|
+
readonly stateMutability: "nonpayable";
|
|
156
|
+
}, {
|
|
157
|
+
readonly type: "function";
|
|
158
|
+
readonly name: "isValidSignature";
|
|
159
|
+
readonly inputs: readonly [{
|
|
160
|
+
readonly name: "hash";
|
|
161
|
+
readonly type: "bytes32";
|
|
162
|
+
readonly internalType: "bytes32";
|
|
163
|
+
}, {
|
|
164
|
+
readonly name: "signature";
|
|
165
|
+
readonly type: "bytes";
|
|
166
|
+
readonly internalType: "bytes";
|
|
167
|
+
}];
|
|
168
|
+
readonly outputs: readonly [{
|
|
169
|
+
readonly name: "";
|
|
170
|
+
readonly type: "bytes4";
|
|
171
|
+
readonly internalType: "bytes4";
|
|
172
|
+
}];
|
|
173
|
+
readonly stateMutability: "view";
|
|
174
|
+
}, {
|
|
175
|
+
readonly type: "function";
|
|
176
|
+
readonly name: "name";
|
|
177
|
+
readonly inputs: readonly [];
|
|
178
|
+
readonly outputs: readonly [{
|
|
179
|
+
readonly name: "";
|
|
180
|
+
readonly type: "string";
|
|
181
|
+
readonly internalType: "string";
|
|
182
|
+
}];
|
|
183
|
+
readonly stateMutability: "view";
|
|
184
|
+
}, {
|
|
185
|
+
readonly type: "function";
|
|
186
|
+
readonly name: "onERC1155BatchReceived";
|
|
187
|
+
readonly inputs: readonly [{
|
|
188
|
+
readonly name: "";
|
|
189
|
+
readonly type: "address";
|
|
190
|
+
readonly internalType: "address";
|
|
191
|
+
}, {
|
|
192
|
+
readonly name: "";
|
|
193
|
+
readonly type: "address";
|
|
194
|
+
readonly internalType: "address";
|
|
195
|
+
}, {
|
|
196
|
+
readonly name: "";
|
|
197
|
+
readonly type: "uint256[]";
|
|
198
|
+
readonly internalType: "uint256[]";
|
|
199
|
+
}, {
|
|
200
|
+
readonly name: "";
|
|
201
|
+
readonly type: "uint256[]";
|
|
202
|
+
readonly internalType: "uint256[]";
|
|
203
|
+
}, {
|
|
204
|
+
readonly name: "";
|
|
205
|
+
readonly type: "bytes";
|
|
206
|
+
readonly internalType: "bytes";
|
|
207
|
+
}];
|
|
208
|
+
readonly outputs: readonly [{
|
|
209
|
+
readonly name: "";
|
|
210
|
+
readonly type: "bytes4";
|
|
211
|
+
readonly internalType: "bytes4";
|
|
212
|
+
}];
|
|
213
|
+
readonly stateMutability: "pure";
|
|
214
|
+
}, {
|
|
215
|
+
readonly type: "function";
|
|
216
|
+
readonly name: "onERC1155Received";
|
|
217
|
+
readonly inputs: readonly [{
|
|
218
|
+
readonly name: "";
|
|
219
|
+
readonly type: "address";
|
|
220
|
+
readonly internalType: "address";
|
|
221
|
+
}, {
|
|
222
|
+
readonly name: "";
|
|
223
|
+
readonly type: "address";
|
|
224
|
+
readonly internalType: "address";
|
|
225
|
+
}, {
|
|
226
|
+
readonly name: "";
|
|
227
|
+
readonly type: "uint256";
|
|
228
|
+
readonly internalType: "uint256";
|
|
229
|
+
}, {
|
|
230
|
+
readonly name: "";
|
|
231
|
+
readonly type: "uint256";
|
|
232
|
+
readonly internalType: "uint256";
|
|
233
|
+
}, {
|
|
234
|
+
readonly name: "";
|
|
235
|
+
readonly type: "bytes";
|
|
236
|
+
readonly internalType: "bytes";
|
|
237
|
+
}];
|
|
238
|
+
readonly outputs: readonly [{
|
|
239
|
+
readonly name: "";
|
|
240
|
+
readonly type: "bytes4";
|
|
241
|
+
readonly internalType: "bytes4";
|
|
242
|
+
}];
|
|
243
|
+
readonly stateMutability: "pure";
|
|
244
|
+
}, {
|
|
245
|
+
readonly type: "function";
|
|
246
|
+
readonly name: "onERC721Received";
|
|
247
|
+
readonly inputs: readonly [{
|
|
248
|
+
readonly name: "";
|
|
249
|
+
readonly type: "address";
|
|
250
|
+
readonly internalType: "address";
|
|
251
|
+
}, {
|
|
252
|
+
readonly name: "";
|
|
253
|
+
readonly type: "address";
|
|
254
|
+
readonly internalType: "address";
|
|
255
|
+
}, {
|
|
256
|
+
readonly name: "";
|
|
257
|
+
readonly type: "uint256";
|
|
258
|
+
readonly internalType: "uint256";
|
|
259
|
+
}, {
|
|
260
|
+
readonly name: "";
|
|
261
|
+
readonly type: "bytes";
|
|
262
|
+
readonly internalType: "bytes";
|
|
263
|
+
}];
|
|
264
|
+
readonly outputs: readonly [{
|
|
265
|
+
readonly name: "";
|
|
266
|
+
readonly type: "bytes4";
|
|
267
|
+
readonly internalType: "bytes4";
|
|
268
|
+
}];
|
|
269
|
+
readonly stateMutability: "pure";
|
|
270
|
+
}, {
|
|
271
|
+
readonly type: "function";
|
|
272
|
+
readonly name: "setDefaultValidator";
|
|
273
|
+
readonly inputs: readonly [{
|
|
274
|
+
readonly name: "_defaultValidator";
|
|
275
|
+
readonly type: "address";
|
|
276
|
+
readonly internalType: "contract IKernelValidator";
|
|
277
|
+
}, {
|
|
278
|
+
readonly name: "_data";
|
|
279
|
+
readonly type: "bytes";
|
|
280
|
+
readonly internalType: "bytes";
|
|
281
|
+
}];
|
|
282
|
+
readonly outputs: readonly [];
|
|
283
|
+
readonly stateMutability: "nonpayable";
|
|
284
|
+
}, {
|
|
285
|
+
readonly type: "function";
|
|
286
|
+
readonly name: "setExecution";
|
|
287
|
+
readonly inputs: readonly [{
|
|
288
|
+
readonly name: "_selector";
|
|
289
|
+
readonly type: "bytes4";
|
|
290
|
+
readonly internalType: "bytes4";
|
|
291
|
+
}, {
|
|
292
|
+
readonly name: "_executor";
|
|
293
|
+
readonly type: "address";
|
|
294
|
+
readonly internalType: "address";
|
|
295
|
+
}, {
|
|
296
|
+
readonly name: "_validator";
|
|
297
|
+
readonly type: "address";
|
|
298
|
+
readonly internalType: "contract IKernelValidator";
|
|
299
|
+
}, {
|
|
300
|
+
readonly name: "_validUntil";
|
|
301
|
+
readonly type: "uint48";
|
|
302
|
+
readonly internalType: "uint48";
|
|
303
|
+
}, {
|
|
304
|
+
readonly name: "_validAfter";
|
|
305
|
+
readonly type: "uint48";
|
|
306
|
+
readonly internalType: "uint48";
|
|
307
|
+
}, {
|
|
308
|
+
readonly name: "_enableData";
|
|
309
|
+
readonly type: "bytes";
|
|
310
|
+
readonly internalType: "bytes";
|
|
311
|
+
}];
|
|
312
|
+
readonly outputs: readonly [];
|
|
313
|
+
readonly stateMutability: "nonpayable";
|
|
314
|
+
}, {
|
|
315
|
+
readonly type: "function";
|
|
316
|
+
readonly name: "upgradeTo";
|
|
317
|
+
readonly inputs: readonly [{
|
|
318
|
+
readonly name: "_newImplementation";
|
|
319
|
+
readonly type: "address";
|
|
320
|
+
readonly internalType: "address";
|
|
321
|
+
}];
|
|
322
|
+
readonly outputs: readonly [];
|
|
323
|
+
readonly stateMutability: "nonpayable";
|
|
324
|
+
}, {
|
|
325
|
+
readonly type: "function";
|
|
326
|
+
readonly name: "validateUserOp";
|
|
327
|
+
readonly inputs: readonly [{
|
|
328
|
+
readonly name: "userOp";
|
|
329
|
+
readonly type: "tuple";
|
|
330
|
+
readonly internalType: "struct UserOperation";
|
|
331
|
+
readonly components: readonly [{
|
|
332
|
+
readonly name: "sender";
|
|
333
|
+
readonly type: "address";
|
|
334
|
+
readonly internalType: "address";
|
|
335
|
+
}, {
|
|
336
|
+
readonly name: "nonce";
|
|
337
|
+
readonly type: "uint256";
|
|
338
|
+
readonly internalType: "uint256";
|
|
339
|
+
}, {
|
|
340
|
+
readonly name: "initCode";
|
|
341
|
+
readonly type: "bytes";
|
|
342
|
+
readonly internalType: "bytes";
|
|
343
|
+
}, {
|
|
344
|
+
readonly name: "callData";
|
|
345
|
+
readonly type: "bytes";
|
|
346
|
+
readonly internalType: "bytes";
|
|
347
|
+
}, {
|
|
348
|
+
readonly name: "callGasLimit";
|
|
349
|
+
readonly type: "uint256";
|
|
350
|
+
readonly internalType: "uint256";
|
|
351
|
+
}, {
|
|
352
|
+
readonly name: "verificationGasLimit";
|
|
353
|
+
readonly type: "uint256";
|
|
354
|
+
readonly internalType: "uint256";
|
|
355
|
+
}, {
|
|
356
|
+
readonly name: "preVerificationGas";
|
|
357
|
+
readonly type: "uint256";
|
|
358
|
+
readonly internalType: "uint256";
|
|
359
|
+
}, {
|
|
360
|
+
readonly name: "maxFeePerGas";
|
|
361
|
+
readonly type: "uint256";
|
|
362
|
+
readonly internalType: "uint256";
|
|
363
|
+
}, {
|
|
364
|
+
readonly name: "maxPriorityFeePerGas";
|
|
365
|
+
readonly type: "uint256";
|
|
366
|
+
readonly internalType: "uint256";
|
|
367
|
+
}, {
|
|
368
|
+
readonly name: "paymasterAndData";
|
|
369
|
+
readonly type: "bytes";
|
|
370
|
+
readonly internalType: "bytes";
|
|
371
|
+
}, {
|
|
372
|
+
readonly name: "signature";
|
|
373
|
+
readonly type: "bytes";
|
|
374
|
+
readonly internalType: "bytes";
|
|
375
|
+
}];
|
|
376
|
+
}, {
|
|
377
|
+
readonly name: "userOpHash";
|
|
378
|
+
readonly type: "bytes32";
|
|
379
|
+
readonly internalType: "bytes32";
|
|
380
|
+
}, {
|
|
381
|
+
readonly name: "missingAccountFunds";
|
|
382
|
+
readonly type: "uint256";
|
|
383
|
+
readonly internalType: "uint256";
|
|
384
|
+
}];
|
|
385
|
+
readonly outputs: readonly [{
|
|
386
|
+
readonly name: "validationData";
|
|
387
|
+
readonly type: "uint256";
|
|
388
|
+
readonly internalType: "uint256";
|
|
389
|
+
}];
|
|
390
|
+
readonly stateMutability: "nonpayable";
|
|
391
|
+
}, {
|
|
392
|
+
readonly type: "function";
|
|
393
|
+
readonly name: "version";
|
|
394
|
+
readonly inputs: readonly [];
|
|
395
|
+
readonly outputs: readonly [{
|
|
396
|
+
readonly name: "";
|
|
397
|
+
readonly type: "string";
|
|
398
|
+
readonly internalType: "string";
|
|
399
|
+
}];
|
|
400
|
+
readonly stateMutability: "view";
|
|
401
|
+
}, {
|
|
402
|
+
readonly type: "event";
|
|
403
|
+
readonly name: "DefaultValidatorChanged";
|
|
404
|
+
readonly inputs: readonly [{
|
|
405
|
+
readonly name: "oldValidator";
|
|
406
|
+
readonly type: "address";
|
|
407
|
+
readonly indexed: true;
|
|
408
|
+
readonly internalType: "address";
|
|
409
|
+
}, {
|
|
410
|
+
readonly name: "newValidator";
|
|
411
|
+
readonly type: "address";
|
|
412
|
+
readonly indexed: true;
|
|
413
|
+
readonly internalType: "address";
|
|
414
|
+
}];
|
|
415
|
+
readonly anonymous: false;
|
|
416
|
+
}, {
|
|
417
|
+
readonly type: "event";
|
|
418
|
+
readonly name: "ExecutionChanged";
|
|
419
|
+
readonly inputs: readonly [{
|
|
420
|
+
readonly name: "selector";
|
|
421
|
+
readonly type: "bytes4";
|
|
422
|
+
readonly indexed: true;
|
|
423
|
+
readonly internalType: "bytes4";
|
|
424
|
+
}, {
|
|
425
|
+
readonly name: "executor";
|
|
426
|
+
readonly type: "address";
|
|
427
|
+
readonly indexed: true;
|
|
428
|
+
readonly internalType: "address";
|
|
429
|
+
}, {
|
|
430
|
+
readonly name: "validator";
|
|
431
|
+
readonly type: "address";
|
|
432
|
+
readonly indexed: true;
|
|
433
|
+
readonly internalType: "address";
|
|
434
|
+
}];
|
|
435
|
+
readonly anonymous: false;
|
|
436
|
+
}, {
|
|
437
|
+
readonly type: "event";
|
|
438
|
+
readonly name: "Upgraded";
|
|
439
|
+
readonly inputs: readonly [{
|
|
440
|
+
readonly name: "newImplementation";
|
|
441
|
+
readonly type: "address";
|
|
442
|
+
readonly indexed: true;
|
|
443
|
+
readonly internalType: "address";
|
|
444
|
+
}];
|
|
445
|
+
readonly anonymous: false;
|
|
446
|
+
}];
|
|
447
|
+
//# sourceMappingURL=KernelAccountV2Abi.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"KernelAccountV2Abi.d.ts","sourceRoot":"","sources":["../../../../../accounts/kernel/v2/abi/KernelAccountV2Abi.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAoXrB,CAAA"}
|
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
export declare const KernelFactoryV2Abi: readonly [{
|
|
2
|
+
readonly type: "constructor";
|
|
3
|
+
readonly inputs: readonly [{
|
|
4
|
+
readonly name: "_entryPoint";
|
|
5
|
+
readonly type: "address";
|
|
6
|
+
readonly internalType: "contract IEntryPoint";
|
|
7
|
+
}];
|
|
8
|
+
readonly stateMutability: "nonpayable";
|
|
9
|
+
}, {
|
|
10
|
+
readonly type: "function";
|
|
11
|
+
readonly name: "createAccount";
|
|
12
|
+
readonly inputs: readonly [{
|
|
13
|
+
readonly name: "_validator";
|
|
14
|
+
readonly type: "address";
|
|
15
|
+
readonly internalType: "contract IKernelValidator";
|
|
16
|
+
}, {
|
|
17
|
+
readonly name: "_data";
|
|
18
|
+
readonly type: "bytes";
|
|
19
|
+
readonly internalType: "bytes";
|
|
20
|
+
}, {
|
|
21
|
+
readonly name: "_index";
|
|
22
|
+
readonly type: "uint256";
|
|
23
|
+
readonly internalType: "uint256";
|
|
24
|
+
}];
|
|
25
|
+
readonly outputs: readonly [{
|
|
26
|
+
readonly name: "proxy";
|
|
27
|
+
readonly type: "address";
|
|
28
|
+
readonly internalType: "contract EIP1967Proxy";
|
|
29
|
+
}];
|
|
30
|
+
readonly stateMutability: "nonpayable";
|
|
31
|
+
}, {
|
|
32
|
+
readonly type: "function";
|
|
33
|
+
readonly name: "entryPoint";
|
|
34
|
+
readonly inputs: readonly [];
|
|
35
|
+
readonly outputs: readonly [{
|
|
36
|
+
readonly name: "";
|
|
37
|
+
readonly type: "address";
|
|
38
|
+
readonly internalType: "contract IEntryPoint";
|
|
39
|
+
}];
|
|
40
|
+
readonly stateMutability: "view";
|
|
41
|
+
}, {
|
|
42
|
+
readonly type: "function";
|
|
43
|
+
readonly name: "getAccountAddress";
|
|
44
|
+
readonly inputs: readonly [{
|
|
45
|
+
readonly name: "_validator";
|
|
46
|
+
readonly type: "address";
|
|
47
|
+
readonly internalType: "contract IKernelValidator";
|
|
48
|
+
}, {
|
|
49
|
+
readonly name: "_data";
|
|
50
|
+
readonly type: "bytes";
|
|
51
|
+
readonly internalType: "bytes";
|
|
52
|
+
}, {
|
|
53
|
+
readonly name: "_index";
|
|
54
|
+
readonly type: "uint256";
|
|
55
|
+
readonly internalType: "uint256";
|
|
56
|
+
}];
|
|
57
|
+
readonly outputs: readonly [{
|
|
58
|
+
readonly name: "";
|
|
59
|
+
readonly type: "address";
|
|
60
|
+
readonly internalType: "address";
|
|
61
|
+
}];
|
|
62
|
+
readonly stateMutability: "view";
|
|
63
|
+
}, {
|
|
64
|
+
readonly type: "function";
|
|
65
|
+
readonly name: "kernelTemplate";
|
|
66
|
+
readonly inputs: readonly [];
|
|
67
|
+
readonly outputs: readonly [{
|
|
68
|
+
readonly name: "";
|
|
69
|
+
readonly type: "address";
|
|
70
|
+
readonly internalType: "contract TempKernel";
|
|
71
|
+
}];
|
|
72
|
+
readonly stateMutability: "view";
|
|
73
|
+
}, {
|
|
74
|
+
readonly type: "function";
|
|
75
|
+
readonly name: "nextTemplate";
|
|
76
|
+
readonly inputs: readonly [];
|
|
77
|
+
readonly outputs: readonly [{
|
|
78
|
+
readonly name: "";
|
|
79
|
+
readonly type: "address";
|
|
80
|
+
readonly internalType: "contract Kernel";
|
|
81
|
+
}];
|
|
82
|
+
readonly stateMutability: "view";
|
|
83
|
+
}, {
|
|
84
|
+
readonly type: "event";
|
|
85
|
+
readonly name: "AccountCreated";
|
|
86
|
+
readonly inputs: readonly [{
|
|
87
|
+
readonly name: "account";
|
|
88
|
+
readonly type: "address";
|
|
89
|
+
readonly indexed: true;
|
|
90
|
+
readonly internalType: "address";
|
|
91
|
+
}, {
|
|
92
|
+
readonly name: "validator";
|
|
93
|
+
readonly type: "address";
|
|
94
|
+
readonly indexed: true;
|
|
95
|
+
readonly internalType: "address";
|
|
96
|
+
}, {
|
|
97
|
+
readonly name: "data";
|
|
98
|
+
readonly type: "bytes";
|
|
99
|
+
readonly indexed: false;
|
|
100
|
+
readonly internalType: "bytes";
|
|
101
|
+
}, {
|
|
102
|
+
readonly name: "index";
|
|
103
|
+
readonly type: "uint256";
|
|
104
|
+
readonly indexed: false;
|
|
105
|
+
readonly internalType: "uint256";
|
|
106
|
+
}];
|
|
107
|
+
readonly anonymous: false;
|
|
108
|
+
}];
|
|
109
|
+
//# sourceMappingURL=KernelFactoryV2Abi.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"KernelFactoryV2Abi.d.ts","sourceRoot":"","sources":["../../../../../accounts/kernel/v2/abi/KernelFactoryV2Abi.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA8GrB,CAAA"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { type SmartAccount } from "permissionless/accounts";
|
|
2
|
+
import { type Address, type Chain, type Client, type Hex, type Transport } from "viem";
|
|
3
|
+
import type { KernelEncodeCallDataArgs, KernelPluginManager, KernelPluginManagerParams } from "../../../types/kernel.js";
|
|
4
|
+
export type KernelSmartAccount<transport extends Transport = Transport, chain extends Chain | undefined = Chain | undefined> = SmartAccount<"kernelSmartAccount", transport, chain> & {
|
|
5
|
+
kernelPluginManager: KernelPluginManager;
|
|
6
|
+
generateInitCode: () => Promise<Hex>;
|
|
7
|
+
encodeCallData: (args: KernelEncodeCallDataArgs) => Promise<Hex>;
|
|
8
|
+
};
|
|
9
|
+
/**
|
|
10
|
+
* Default addresses for kernel smart account
|
|
11
|
+
*/
|
|
12
|
+
export declare const KERNEL_ADDRESSES: {
|
|
13
|
+
FACTORY_ADDRESS: Address;
|
|
14
|
+
ENTRYPOINT_V0_6: Address;
|
|
15
|
+
};
|
|
16
|
+
/**
|
|
17
|
+
* Build a kernel smart account from a private key, that use the ECDSA signer behind the scene
|
|
18
|
+
* @param client
|
|
19
|
+
* @param privateKey
|
|
20
|
+
* @param entryPoint
|
|
21
|
+
* @param index
|
|
22
|
+
* @param factoryAddress
|
|
23
|
+
* @param ecdsaValidatorAddress
|
|
24
|
+
* @param deployedAccountAddress
|
|
25
|
+
*/
|
|
26
|
+
export declare function createKernelV2Account<TTransport extends Transport = Transport, TChain extends Chain | undefined = Chain | undefined>(client: Client<TTransport, TChain, undefined>, { plugins, entryPoint, index, factoryAddress, deployedAccountAddress }: {
|
|
27
|
+
plugins: KernelPluginManagerParams | KernelPluginManager;
|
|
28
|
+
entryPoint?: Address;
|
|
29
|
+
index?: bigint;
|
|
30
|
+
factoryAddress?: Address;
|
|
31
|
+
deployedAccountAddress?: Address;
|
|
32
|
+
}): Promise<KernelSmartAccount<TTransport, TChain>>;
|
|
33
|
+
//# sourceMappingURL=createKernelV2Account.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"createKernelV2Account.d.ts","sourceRoot":"","sources":["../../../../accounts/kernel/v2/createKernelV2Account.ts"],"names":[],"mappings":"AACA,OAAO,EAEH,KAAK,YAAY,EACpB,MAAM,yBAAyB,CAAA;AAChC,OAAO,EACH,KAAK,OAAO,EACZ,KAAK,KAAK,EACV,KAAK,MAAM,EAGX,KAAK,GAAG,EACR,KAAK,SAAS,EAUjB,MAAM,MAAM,CAAA;AAGb,OAAO,KAAK,EACR,wBAAwB,EACxB,mBAAmB,EACnB,yBAAyB,EAC5B,MAAM,0BAA0B,CAAA;AAejC,MAAM,MAAM,kBAAkB,CAC1B,SAAS,SAAS,SAAS,GAAG,SAAS,EACvC,KAAK,SAAS,KAAK,GAAG,SAAS,GAAG,KAAK,GAAG,SAAS,IACnD,YAAY,CAAC,oBAAoB,EAAE,SAAS,EAAE,KAAK,CAAC,GAAG;IACvD,mBAAmB,EAAE,mBAAmB,CAAA;IACxC,gBAAgB,EAAE,MAAM,OAAO,CAAC,GAAG,CAAC,CAAA;IACpC,cAAc,EAAE,CAAC,IAAI,EAAE,wBAAwB,KAAK,OAAO,CAAC,GAAG,CAAC,CAAA;CACnE,CAAA;AAWD;;GAEG;AACH,eAAO,MAAM,gBAAgB,EAAE;IAC3B,eAAe,EAAE,OAAO,CAAA;IACxB,eAAe,EAAE,OAAO,CAAA;CAI3B,CAAA;AA0DD;;;;;;;;;GASG;AACH,wBAAsB,qBAAqB,CACvC,UAAU,SAAS,SAAS,GAAG,SAAS,EACxC,MAAM,SAAS,KAAK,GAAG,SAAS,GAAG,KAAK,GAAG,SAAS,EAEpD,MAAM,EAAE,MAAM,CAAC,UAAU,EAAE,MAAM,EAAE,SAAS,CAAC,EAC7C,EACI,OAAO,EACP,UAA6C,EAC7C,KAAU,EACV,cAAiD,EACjD,sBAAsB,EACzB,EAAE;IACC,OAAO,EAAE,yBAAyB,GAAG,mBAAmB,CAAA;IACxD,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,cAAc,CAAC,EAAE,OAAO,CAAA;IACxB,sBAAsB,CAAC,EAAE,OAAO,CAAA;CACnC,GACF,OAAO,CAAC,kBAAkB,CAAC,UAAU,EAAE,MAAM,CAAC,CAAC,CAmNjD"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type Hex } from "viem";
|
|
2
|
-
import { type KernelEncodeCallDataArgs } from "
|
|
2
|
+
import { type KernelEncodeCallDataArgs } from "../../types/index.js";
|
|
3
3
|
export declare const MULTISEND_ADDRESS = "0x8ae01fcf7c655655ff2c6ef907b8b4718ab4e17c";
|
|
4
4
|
export declare const multiSendAbi: {
|
|
5
5
|
type: string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"multisend.d.ts","sourceRoot":"","sources":["../../../accounts/utils/multisend.ts"],"names":[],"mappings":"AAAA,OAAO,EAAgB,KAAK,GAAG,EAAyB,MAAM,MAAM,CAAA;AACpE,OAAO,EAEH,KAAK,wBAAwB,EAChC,MAAM,sBAAsB,CAAA;AAE7B,eAAO,MAAM,iBAAiB,+CAA+C,CAAA;AAE7E,eAAO,MAAM,YAAY;;;;;;;GAMxB,CAAA;AAsBD,eAAO,MAAM,eAAe,UAAW,wBAAwB,KAAG,GAMjE,CAAA"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type Chain, type Client, type Transport } from "viem";
|
|
2
2
|
import { type KernelPluginManager, type KernelPluginManagerParams } from "../../types/kernel.js";
|
|
3
3
|
export declare function isKernelPluginManager(plugin: any): plugin is KernelPluginManager;
|
|
4
|
-
export declare function toKernelPluginManager<TTransport extends Transport = Transport, TChain extends Chain | undefined = Chain | undefined>(client: Client<TTransport, TChain>, { sudo, regular, pluginEnableSignature, validatorInitData, executorData, validAfter, validUntil }: KernelPluginManagerParams): Promise<KernelPluginManager>;
|
|
4
|
+
export declare function toKernelPluginManager<TTransport extends Transport = Transport, TChain extends Chain | undefined = Chain | undefined>(client: Client<TTransport, TChain>, { sudo, regular, pluginEnableSignature, validatorInitData, executorData, validAfter, validUntil, kernelVersion }: KernelPluginManagerParams): Promise<KernelPluginManager>;
|
|
5
5
|
//# sourceMappingURL=toKernelPluginManager.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"toKernelPluginManager.d.ts","sourceRoot":"","sources":["../../../accounts/utils/toKernelPluginManager.ts"],"names":[],"mappings":"AACA,OAAO,EAEH,KAAK,KAAK,EACV,KAAK,MAAM,EAEX,KAAK,SAAS,EAQjB,MAAM,MAAM,CAAA;AAGb,OAAO,EACH,KAAK,mBAAmB,EACxB,KAAK,yBAAyB,EAEjC,MAAM,uBAAuB,CAAA;AAG9B,wBAAgB,qBAAqB,CAEjC,MAAM,EAAE,GAAG,GACZ,MAAM,IAAI,mBAAmB,CAE/B;AAED,wBAAsB,qBAAqB,CACvC,UAAU,SAAS,SAAS,GAAG,SAAS,EACxC,MAAM,SAAS,KAAK,GAAG,SAAS,GAAG,KAAK,GAAG,SAAS,EAEpD,MAAM,EAAE,MAAM,CAAC,UAAU,EAAE,MAAM,CAAC,EAClC,EACI,IAAI,EACJ,OAAO,EACP,qBAAqB,EACrB,iBAAiB,EACjB,YAKC,EACD,UAAc,EACd,UAAc,
|
|
1
|
+
{"version":3,"file":"toKernelPluginManager.d.ts","sourceRoot":"","sources":["../../../accounts/utils/toKernelPluginManager.ts"],"names":[],"mappings":"AACA,OAAO,EAEH,KAAK,KAAK,EACV,KAAK,MAAM,EAEX,KAAK,SAAS,EAQjB,MAAM,MAAM,CAAA;AAGb,OAAO,EACH,KAAK,mBAAmB,EACxB,KAAK,yBAAyB,EAEjC,MAAM,uBAAuB,CAAA;AAG9B,wBAAgB,qBAAqB,CAEjC,MAAM,EAAE,GAAG,GACZ,MAAM,IAAI,mBAAmB,CAE/B;AAED,wBAAsB,qBAAqB,CACvC,UAAU,SAAS,SAAS,GAAG,SAAS,EACxC,MAAM,SAAS,KAAK,GAAG,SAAS,GAAG,KAAK,GAAG,SAAS,EAEpD,MAAM,EAAE,MAAM,CAAC,UAAU,EAAE,MAAM,CAAC,EAClC,EACI,IAAI,EACJ,OAAO,EACP,qBAAqB,EACrB,iBAAiB,EACjB,YAKC,EACD,UAAc,EACd,UAAc,EACd,aAAa,EAChB,EAAE,yBAAyB,GAC7B,OAAO,CAAC,mBAAmB,CAAC,CA2I9B"}
|
package/_types/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { createKernelAccount, createKernelV1Account, type KernelSmartAccount, KERNEL_ADDRESSES, addressToEmptyAccount, EIP1271ABI } from "./accounts/index.js";
|
|
1
|
+
export { createKernelAccount, createKernelV1Account, createKernelV2Account, type KernelSmartAccount, KERNEL_ADDRESSES, addressToEmptyAccount, EIP1271ABI } from "./accounts/index.js";
|
|
2
2
|
export { sponsorUserOperation, type SponsorUserOperationParameters, type SponsorUserOperationReturnType } from "./actions/paymaster/sponsorUserOperation.js";
|
|
3
3
|
export { zerodevPaymasterActions, type ZeroDevPaymasterClientActions, kernelAccountClientActions, type KernelAccountClientActions } from "./clients/decorators/kernel.js";
|
|
4
4
|
export { createZeroDevPaymasterClient, type ZeroDevPaymasterClient } from "./clients/paymasterClient.js";
|
package/_types/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,mBAAmB,EACnB,qBAAqB,EACrB,KAAK,kBAAkB,EACvB,gBAAgB,EAChB,qBAAqB,EACrB,UAAU,EACb,MAAM,qBAAqB,CAAA;AAC5B,OAAO,EACH,oBAAoB,EACpB,KAAK,8BAA8B,EACnC,KAAK,8BAA8B,EACtC,MAAM,6CAA6C,CAAA;AACpD,OAAO,EACH,uBAAuB,EACvB,KAAK,6BAA6B,EAClC,0BAA0B,EAC1B,KAAK,0BAA0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,kCAAkC,CAAA;AACzC,OAAO,EACH,KAAK,eAAe,EACpB,KAAK,yBAAyB,EAC9B,KAAK,mBAAmB,EAC3B,MAAM,mBAAmB,CAAA;AAC1B,OAAO,EAAE,gBAAgB,EAAE,MAAM,2CAA2C,CAAA;AAC5E,OAAO,EAAE,gBAAgB,EAAE,MAAM,2CAA2C,CAAA;AAC5E,OAAO,EAAE,eAAe,EAAE,MAAM,0CAA0C,CAAA;AAC1E,OAAO,KAAK,SAAS,MAAM,gBAAgB,CAAA;AAC3C,cAAc,YAAY,CAAA;AAC1B,OAAO,EAAE,iBAAiB,EAAE,KAAK,eAAe,EAAE,MAAM,wBAAwB,CAAA;AAChF,OAAO,EAAE,sBAAsB,EAAE,MAAM,2BAA2B,CAAA;AAClE,OAAO,EAAE,qBAAqB,EAAE,MAAM,sBAAsB,CAAA"}
|
package/_types/types/kernel.d.ts
CHANGED
|
@@ -75,6 +75,7 @@ export type KernelPluginManagerParams = {
|
|
|
75
75
|
pluginEnableSignature?: Hex;
|
|
76
76
|
validatorInitData?: ValidatorInitData;
|
|
77
77
|
executorData?: ExecutorData;
|
|
78
|
+
kernelVersion?: string;
|
|
78
79
|
} & Partial<PluginValidityData>;
|
|
79
80
|
export type ExecutorData = {
|
|
80
81
|
executor: Address;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"kernel.d.ts","sourceRoot":"","sources":["../../types/kernel.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACR,aAAa,EACb,4BAA4B,EAC/B,MAAM,oCAAoC,CAAA;AAC3C,OAAO,EAAE,KAAK,OAAO,EAAE,KAAK,GAAG,EAAE,KAAK,YAAY,EAAE,MAAM,MAAM,CAAA;AAChE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAA;AACjD,MAAM,MAAM,yBAAyB,GAAG;IACpC;QACI,MAAM,EAAE,yBAAyB,CAAA;QACjC,UAAU,EAAE;YACR;gBACI,OAAO,EAAE,MAAM,CAAA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