@zerodev/sdk 4.6.2 → 4.6.4

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.
Files changed (24) hide show
  1. package/dist/cjs/kernel-zerodev/abis/WeightedValidatorAbi.d.ts +136 -101
  2. package/dist/cjs/kernel-zerodev/abis/WeightedValidatorAbi.js +122 -296
  3. package/dist/cjs/kernel-zerodev/abis/WeightedValidatorAbi.js.map +1 -1
  4. package/dist/cjs/kernel-zerodev/constants.d.ts +1 -1
  5. package/dist/cjs/kernel-zerodev/constants.js +1 -1
  6. package/dist/cjs/kernel-zerodev/constants.js.map +1 -1
  7. package/dist/cjs/kernel-zerodev/validator/recovery-validator.js +2 -1
  8. package/dist/cjs/kernel-zerodev/validator/recovery-validator.js.map +1 -1
  9. package/dist/esm/kernel-zerodev/abis/WeightedValidatorAbi.d.ts +136 -101
  10. package/dist/esm/kernel-zerodev/abis/WeightedValidatorAbi.js +122 -296
  11. package/dist/esm/kernel-zerodev/abis/WeightedValidatorAbi.js.map +1 -1
  12. package/dist/esm/kernel-zerodev/constants.d.ts +1 -1
  13. package/dist/esm/kernel-zerodev/constants.js +1 -1
  14. package/dist/esm/kernel-zerodev/constants.js.map +1 -1
  15. package/dist/esm/kernel-zerodev/validator/recovery-validator.js +2 -1
  16. package/dist/esm/kernel-zerodev/validator/recovery-validator.js.map +1 -1
  17. package/dist/types/kernel-zerodev/abis/WeightedValidatorAbi.d.ts +136 -101
  18. package/dist/types/kernel-zerodev/abis/WeightedValidatorAbi.d.ts.map +1 -1
  19. package/dist/types/kernel-zerodev/constants.d.ts +1 -1
  20. package/dist/types/kernel-zerodev/validator/recovery-validator.d.ts.map +1 -1
  21. package/package.json +1 -1
  22. package/src/kernel-zerodev/abis/WeightedValidatorAbi.ts +122 -296
  23. package/src/kernel-zerodev/constants.ts +1 -1
  24. package/src/kernel-zerodev/validator/recovery-validator.ts +2 -1
@@ -17,7 +17,7 @@ export declare const DUMMY_ECDSA_SIG = "0xfffffffffffffffffffffffffffffff0000000
17
17
  export declare const ERC165_SESSION_KEY_VALIDATOR_ADDRESS = "0xe149290800De29D4b0BF9dB82c508255D81902E6";
18
18
  export declare const TOKEN_ACTION = "0x2087C7FfD0d0DAE80a00EE74325aBF3449e0eaf1";
19
19
  export declare const SESSION_KEY_VALIDATOR_ADDRESS = "0x5C06CE2b673fD5E6e56076e40DD46aB67f5a72A5";
20
- export declare const RECOVERY_VALIDATOR_ADDRESS = "0xa7e3Bc66086Ae51b20e59b6C84666635A0d0A16C";
20
+ export declare const RECOVERY_VALIDATOR_ADDRESS = "0xaFA369cA3432e62ACe6bd77B2886F2D588c68dA8";
21
21
  export declare const RECOVERY_ACTION = "0x2f65dB8039fe5CAEE0a8680D2879deB800F31Ae1";
22
22
  export declare const oneAddress = "0x0000000000000000000000000000000000000001";
23
23
  export declare const gasTokenChainAddresses: IGasTokenAddresses;
@@ -1 +1 @@
1
- {"version":3,"file":"recovery-validator.d.ts","sourceRoot":"","sources":["../../../../src/kernel-zerodev/validator/recovery-validator.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,OAAO,EACZ,KAAK,GAAG,EACR,KAAK,kBAAkB,EACvB,KAAK,oBAAoB,EACzB,KAAK,mBAAmB,EACzB,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EACL,mBAAmB,EAEnB,KAAK,yBAAyB,EAC/B,MAAM,WAAW,CAAC;AACnB,OAAO,EAML,KAAK,YAAY,EAEjB,KAAK,YAAY,EAGjB,KAAK,SAAS,EACd,KAAK,KAAK,EACV,KAAK,OAAO,EAGZ,KAAK,YAAY,EAClB,MAAM,MAAM,CAAC;AAWd,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAC;AAInD,UAAU,iBAAiB;IACzB,CAAC,QAAQ,EAAE,OAAO,GAAG,MAAM,CAAC;CAC7B;AACD,MAAM,WAAW,uBAAwB,SAAQ,yBAAyB;IACxE,SAAS,CAAC,EAAE,iBAAiB,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Cb,kBAAkB,CAAC,oBAAoB,EAAE,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC;IA0BnE,uBAAuB,IAAI,OAAO,CAAC,GAAG,CAAC;IAavC,WAAW,CAAC,OAAO,EAAE,MAAM,GAAG,UAAU,GAAG,OAAO,CAAC,GAAG,CAAC;IAOvD,aAAa,CAAC,MAAM,EAAE,mBAAmB,GAAG,OAAO,CAAC,GAAG,CAAC;IAOxD,gBAAgB,CAAC,YAAY,EAAE,GAAG,GAAG,OAAO,CAAC,GAAG,CAAC;IAqBjD,UAAU,CAAC,OAAO,EAAE,oBAAoB,GAAG,OAAO,CAAC,GAAG,CAAC;CAM9D"}
1
+ {"version":3,"file":"recovery-validator.d.ts","sourceRoot":"","sources":["../../../../src/kernel-zerodev/validator/recovery-validator.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,OAAO,EACZ,KAAK,GAAG,EACR,KAAK,kBAAkB,EACvB,KAAK,oBAAoB,EACzB,KAAK,mBAAmB,EACzB,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EACL,mBAAmB,EAEnB,KAAK,yBAAyB,EAC/B,MAAM,WAAW,CAAC;AACnB,OAAO,EAML,KAAK,YAAY,EAEjB,KAAK,YAAY,EAGjB,KAAK,SAAS,EACd,KAAK,KAAK,EACV,KAAK,OAAO,EAGZ,KAAK,YAAY,EAClB,MAAM,MAAM,CAAC;AAWd,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAC;AAInD,UAAU,iBAAiB;IACzB,CAAC,QAAQ,EAAE,OAAO,GAAG,MAAM,CAAC;CAC7B;AACD,MAAM,WAAW,uBAAwB,SAAQ,yBAAyB;IACxE,SAAS,CAAC,EAAE,iBAAiB,CAAC;IAC9B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,aAAa,CAAC,EAAE,kBAAkB,CAAC;IACnC,sBAAsB,CAAC,EAAE,YAAY,CAAC,MAAM,CA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AAG,OAAO,CAAC,GAAG,CAAC;IAOvD,aAAa,CAAC,MAAM,EAAE,mBAAmB,GAAG,OAAO,CAAC,GAAG,CAAC;IAOxD,gBAAgB,CAAC,YAAY,EAAE,GAAG,GAAG,OAAO,CAAC,GAAG,CAAC;IAqBjD,UAAU,CAAC,OAAO,EAAE,oBAAoB,GAAG,OAAO,CAAC,GAAG,CAAC;CAM9D"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zerodev/sdk",
3
- "version": "4.6.2",
3
+ "version": "4.6.4",
4
4
  "description": "A collection of ERC-4337 compliant smart contract account interfaces",
5
5
  "author": "ZeroDev",
6
6
  "license": "MIT",
@@ -1,442 +1,268 @@
1
1
  export const WeightedValidatorAbi = [
2
2
  {
3
- inputs: [],
4
- name: "NotImplemented",
5
- type: "error",
6
- },
7
- {
3
+ type: "function",
4
+ name: "approve",
8
5
  inputs: [
9
6
  {
10
- internalType: "bytes32",
11
7
  name: "_callDataAndNonceHash",
12
8
  type: "bytes32",
9
+ internalType: "bytes32",
13
10
  },
14
- {
15
- internalType: "address",
16
- name: "_kernel",
17
- type: "address",
18
- },
11
+ { name: "_kernel", type: "address", internalType: "address" },
19
12
  ],
20
- name: "approve",
21
13
  outputs: [],
22
14
  stateMutability: "nonpayable",
23
- type: "function",
24
15
  },
25
16
  {
17
+ type: "function",
18
+ name: "approveWithSig",
26
19
  inputs: [
27
20
  {
28
- internalType: "bytes32",
29
21
  name: "_callDataAndNonceHash",
30
22
  type: "bytes32",
23
+ internalType: "bytes32",
31
24
  },
32
- {
33
- internalType: "address",
34
- name: "_kernel",
35
- type: "address",
36
- },
37
- {
38
- internalType: "bytes",
39
- name: "sigs",
40
- type: "bytes",
41
- },
25
+ { name: "_kernel", type: "address", internalType: "address" },
26
+ { name: "sigs", type: "bytes", internalType: "bytes" },
42
27
  ],
43
- name: "approveWithSig",
44
28
  outputs: [],
45
29
  stateMutability: "nonpayable",
46
- type: "function",
47
30
  },
48
31
  {
49
- inputs: [
50
- {
51
- internalType: "bytes",
52
- name: "",
53
- type: "bytes",
54
- },
55
- ],
32
+ type: "function",
56
33
  name: "disable",
34
+ inputs: [{ name: "", type: "bytes", internalType: "bytes" }],
57
35
  outputs: [],
58
36
  stateMutability: "payable",
59
- type: "function",
60
37
  },
61
38
  {
62
- inputs: [],
39
+ type: "function",
63
40
  name: "eip712Domain",
41
+ inputs: [],
64
42
  outputs: [
65
- {
66
- internalType: "bytes1",
67
- name: "fields",
68
- type: "bytes1",
69
- },
70
- {
71
- internalType: "string",
72
- name: "name",
73
- type: "string",
74
- },
75
- {
76
- internalType: "string",
77
- name: "version",
78
- type: "string",
79
- },
80
- {
81
- internalType: "uint256",
82
- name: "chainId",
83
- type: "uint256",
84
- },
85
- {
86
- internalType: "address",
87
- name: "verifyingContract",
88
- type: "address",
89
- },
90
- {
91
- internalType: "bytes32",
92
- name: "salt",
93
- type: "bytes32",
94
- },
95
- {
96
- internalType: "uint256[]",
97
- name: "extensions",
98
- type: "uint256[]",
99
- },
43
+ { name: "fields", type: "bytes1", internalType: "bytes1" },
44
+ { name: "name", type: "string", internalType: "string" },
45
+ { name: "version", type: "string", internalType: "string" },
46
+ { name: "chainId", type: "uint256", internalType: "uint256" },
47
+ { name: "verifyingContract", type: "address", internalType: "address" },
48
+ { name: "salt", type: "bytes32", internalType: "bytes32" },
49
+ { name: "extensions", type: "uint256[]", internalType: "uint256[]" },
100
50
  ],
101
51
  stateMutability: "view",
102
- type: "function",
103
52
  },
104
53
  {
105
- inputs: [
106
- {
107
- internalType: "bytes",
108
- name: "_data",
109
- type: "bytes",
110
- },
111
- ],
54
+ type: "function",
112
55
  name: "enable",
56
+ inputs: [{ name: "_data", type: "bytes", internalType: "bytes" }],
113
57
  outputs: [],
114
58
  stateMutability: "payable",
115
- type: "function",
116
59
  },
117
60
  {
61
+ type: "function",
62
+ name: "getApproval",
118
63
  inputs: [
119
- {
120
- internalType: "address",
121
- name: "kernel",
122
- type: "address",
123
- },
124
- {
125
- internalType: "bytes32",
126
- name: "hash",
127
- type: "bytes32",
128
- },
64
+ { name: "kernel", type: "address", internalType: "address" },
65
+ { name: "hash", type: "bytes32", internalType: "bytes32" },
129
66
  ],
130
- name: "getApproval",
131
67
  outputs: [
132
- {
133
- internalType: "uint256",
134
- name: "approvals",
135
- type: "uint256",
136
- },
137
- {
138
- internalType: "bool",
139
- name: "passed",
140
- type: "bool",
141
- },
68
+ { name: "approvals", type: "uint256", internalType: "uint256" },
69
+ { name: "passed", type: "bool", internalType: "bool" },
142
70
  ],
143
71
  stateMutability: "view",
144
- type: "function",
145
72
  },
146
73
  {
74
+ type: "function",
75
+ name: "guardian",
147
76
  inputs: [
148
- {
149
- internalType: "address",
150
- name: "guardian",
151
- type: "address",
152
- },
153
- {
154
- internalType: "address",
155
- name: "kernel",
156
- type: "address",
157
- },
77
+ { name: "guardian", type: "address", internalType: "address" },
78
+ { name: "kernel", type: "address", internalType: "address" },
158
79
  ],
159
- name: "guardian",
160
80
  outputs: [
161
- {
162
- internalType: "uint24",
163
- name: "weight",
164
- type: "uint24",
165
- },
166
- {
167
- internalType: "address",
168
- name: "nextGuardian",
169
- type: "address",
170
- },
81
+ { name: "weight", type: "uint24", internalType: "uint24" },
82
+ { name: "nextGuardian", type: "address", internalType: "address" },
171
83
  ],
172
84
  stateMutability: "view",
173
- type: "function",
174
85
  },
175
86
  {
87
+ type: "function",
88
+ name: "proposalStatus",
176
89
  inputs: [
177
90
  {
178
- internalType: "bytes32",
179
91
  name: "callDataAndNonceHash",
180
92
  type: "bytes32",
93
+ internalType: "bytes32",
181
94
  },
182
- {
183
- internalType: "address",
184
- name: "kernel",
185
- type: "address",
186
- },
95
+ { name: "kernel", type: "address", internalType: "address" },
187
96
  ],
188
- name: "proposalStatus",
189
97
  outputs: [
190
- {
191
- internalType: "enum ProposalStatus",
192
- name: "status",
193
- type: "uint8",
194
- },
195
- {
196
- internalType: "ValidAfter",
197
- name: "validAfter",
198
- type: "uint48",
199
- },
98
+ { name: "status", type: "uint8", internalType: "enum ProposalStatus" },
99
+ { name: "validAfter", type: "uint48", internalType: "ValidAfter" },
200
100
  ],
201
101
  stateMutability: "view",
202
- type: "function",
203
102
  },
204
103
  {
104
+ type: "function",
105
+ name: "renew",
205
106
  inputs: [
206
- {
207
- internalType: "address[]",
208
- name: "_guardians",
209
- type: "address[]",
210
- },
211
- {
212
- internalType: "uint24[]",
213
- name: "_weights",
214
- type: "uint24[]",
215
- },
216
- {
217
- internalType: "uint24",
218
- name: "_threshold",
219
- type: "uint24",
220
- },
221
- {
222
- internalType: "uint48",
223
- name: "_delay",
224
- type: "uint48",
225
- },
107
+ { name: "_guardians", type: "address[]", internalType: "address[]" },
108
+ { name: "_weights", type: "uint24[]", internalType: "uint24[]" },
109
+ { name: "_threshold", type: "uint24", internalType: "uint24" },
110
+ { name: "_delay", type: "uint48", internalType: "uint48" },
226
111
  ],
227
- name: "renew",
228
112
  outputs: [],
229
113
  stateMutability: "payable",
230
- type: "function",
231
114
  },
232
115
  {
233
- inputs: [
234
- {
235
- internalType: "address",
236
- name: "",
237
- type: "address",
238
- },
239
- {
240
- internalType: "bytes",
241
- name: "",
242
- type: "bytes",
243
- },
244
- ],
116
+ type: "function",
245
117
  name: "validCaller",
246
- outputs: [
247
- {
248
- internalType: "bool",
249
- name: "",
250
- type: "bool",
251
- },
118
+ inputs: [
119
+ { name: "", type: "address", internalType: "address" },
120
+ { name: "", type: "bytes", internalType: "bytes" },
252
121
  ],
122
+ outputs: [{ name: "", type: "bool", internalType: "bool" }],
253
123
  stateMutability: "pure",
254
- type: "function",
255
124
  },
256
125
  {
257
- inputs: [
258
- {
259
- internalType: "bytes32",
260
- name: "",
261
- type: "bytes32",
262
- },
263
- {
264
- internalType: "bytes",
265
- name: "",
266
- type: "bytes",
267
- },
268
- ],
126
+ type: "function",
269
127
  name: "validateSignature",
270
- outputs: [
271
- {
272
- internalType: "ValidationData",
273
- name: "",
274
- type: "uint256",
275
- },
128
+ inputs: [
129
+ { name: "hash", type: "bytes32", internalType: "bytes32" },
130
+ { name: "signature", type: "bytes", internalType: "bytes" },
276
131
  ],
277
- stateMutability: "pure",
278
- type: "function",
132
+ outputs: [{ name: "", type: "uint256", internalType: "ValidationData" }],
133
+ stateMutability: "view",
279
134
  },
280
135
  {
136
+ type: "function",
137
+ name: "validateUserOp",
281
138
  inputs: [
282
139
  {
140
+ name: "userOp",
141
+ type: "tuple",
142
+ internalType: "struct UserOperation",
283
143
  components: [
144
+ { name: "sender", type: "address", internalType: "address" },
145
+ { name: "nonce", type: "uint256", internalType: "uint256" },
146
+ { name: "initCode", type: "bytes", internalType: "bytes" },
147
+ { name: "callData", type: "bytes", internalType: "bytes" },
148
+ { name: "callGasLimit", type: "uint256", internalType: "uint256" },
284
149
  {
285
- internalType: "address",
286
- name: "sender",
287
- type: "address",
288
- },
289
- {
290
- internalType: "uint256",
291
- name: "nonce",
292
- type: "uint256",
293
- },
294
- {
295
- internalType: "bytes",
296
- name: "initCode",
297
- type: "bytes",
298
- },
299
- {
300
- internalType: "bytes",
301
- name: "callData",
302
- type: "bytes",
303
- },
304
- {
305
- internalType: "uint256",
306
- name: "callGasLimit",
307
- type: "uint256",
308
- },
309
- {
310
- internalType: "uint256",
311
150
  name: "verificationGasLimit",
312
151
  type: "uint256",
152
+ internalType: "uint256",
313
153
  },
314
154
  {
315
- internalType: "uint256",
316
155
  name: "preVerificationGas",
317
156
  type: "uint256",
318
- },
319
- {
320
157
  internalType: "uint256",
321
- name: "maxFeePerGas",
322
- type: "uint256",
323
158
  },
159
+ { name: "maxFeePerGas", type: "uint256", internalType: "uint256" },
324
160
  {
325
- internalType: "uint256",
326
161
  name: "maxPriorityFeePerGas",
327
162
  type: "uint256",
163
+ internalType: "uint256",
328
164
  },
329
- {
330
- internalType: "bytes",
331
- name: "paymasterAndData",
332
- type: "bytes",
333
- },
334
- {
335
- internalType: "bytes",
336
- name: "signature",
337
- type: "bytes",
338
- },
165
+ { name: "paymasterAndData", type: "bytes", internalType: "bytes" },
166
+ { name: "signature", type: "bytes", internalType: "bytes" },
339
167
  ],
340
- internalType: "struct UserOperation",
341
- name: "userOp",
342
- type: "tuple",
343
- },
344
- {
345
- internalType: "bytes32",
346
- name: "",
347
- type: "bytes32",
348
- },
349
- {
350
- internalType: "uint256",
351
- name: "",
352
- type: "uint256",
353
168
  },
169
+ { name: "userOpHash", type: "bytes32", internalType: "bytes32" },
170
+ { name: "", type: "uint256", internalType: "uint256" },
354
171
  ],
355
- name: "validateUserOp",
356
172
  outputs: [
357
173
  {
358
- internalType: "ValidationData",
359
174
  name: "validationData",
360
175
  type: "uint256",
176
+ internalType: "ValidationData",
361
177
  },
362
178
  ],
363
179
  stateMutability: "payable",
364
- type: "function",
365
180
  },
366
181
  {
182
+ type: "function",
183
+ name: "veto",
367
184
  inputs: [
368
185
  {
369
- internalType: "bytes32",
370
186
  name: "_callDataAndNonceHash",
371
187
  type: "bytes32",
188
+ internalType: "bytes32",
372
189
  },
373
190
  ],
374
- name: "veto",
375
191
  outputs: [],
376
192
  stateMutability: "nonpayable",
377
- type: "function",
378
193
  },
379
194
  {
195
+ type: "function",
196
+ name: "voteStatus",
380
197
  inputs: [
381
198
  {
382
- internalType: "bytes32",
383
199
  name: "callDataAndNonceHash",
384
200
  type: "bytes32",
201
+ internalType: "bytes32",
385
202
  },
386
- {
387
- internalType: "address",
388
- name: "guardian",
389
- type: "address",
390
- },
391
- {
392
- internalType: "address",
393
- name: "kernel",
394
- type: "address",
395
- },
203
+ { name: "guardian", type: "address", internalType: "address" },
204
+ { name: "kernel", type: "address", internalType: "address" },
396
205
  ],
397
- name: "voteStatus",
398
206
  outputs: [
399
- {
400
- internalType: "enum VoteStatus",
401
- name: "status",
402
- type: "uint8",
403
- },
207
+ { name: "status", type: "uint8", internalType: "enum VoteStatus" },
404
208
  ],
405
209
  stateMutability: "view",
210
+ },
211
+ {
406
212
  type: "function",
213
+ name: "weightedStorage",
214
+ inputs: [{ name: "kernel", type: "address", internalType: "address" }],
215
+ outputs: [
216
+ { name: "totalWeight", type: "uint24", internalType: "uint24" },
217
+ { name: "threshold", type: "uint24", internalType: "uint24" },
218
+ { name: "delay", type: "uint48", internalType: "uint48" },
219
+ { name: "firstGuardian", type: "address", internalType: "address" },
220
+ ],
221
+ stateMutability: "view",
407
222
  },
408
223
  {
224
+ type: "event",
225
+ name: "GuardianAdded",
409
226
  inputs: [
410
227
  {
228
+ name: "guardian",
229
+ type: "address",
230
+ indexed: true,
411
231
  internalType: "address",
232
+ },
233
+ {
412
234
  name: "kernel",
413
235
  type: "address",
236
+ indexed: true,
237
+ internalType: "address",
414
238
  },
415
- ],
416
- name: "weightedStorage",
417
- outputs: [
418
239
  {
419
- internalType: "uint24",
420
- name: "totalWeight",
240
+ name: "weight",
421
241
  type: "uint24",
422
- },
423
- {
242
+ indexed: false,
424
243
  internalType: "uint24",
425
- name: "threshold",
426
- type: "uint24",
427
244
  },
245
+ ],
246
+ anonymous: false,
247
+ },
248
+ {
249
+ type: "event",
250
+ name: "GuardianRemoved",
251
+ inputs: [
428
252
  {
429
- internalType: "uint48",
430
- name: "delay",
431
- type: "uint48",
253
+ name: "guardian",
254
+ type: "address",
255
+ indexed: true,
256
+ internalType: "address",
432
257
  },
433
258
  {
434
- internalType: "address",
435
- name: "firstGuardian",
259
+ name: "kernel",
436
260
  type: "address",
261
+ indexed: true,
262
+ internalType: "address",
437
263
  },
438
264
  ],
439
- stateMutability: "view",
440
- type: "function",
265
+ anonymous: false,
441
266
  },
267
+ { type: "error", name: "NotImplemented", inputs: [] },
442
268
  ] as const;
@@ -29,7 +29,7 @@ export const TOKEN_ACTION = "0x2087C7FfD0d0DAE80a00EE74325aBF3449e0eaf1";
29
29
  export const SESSION_KEY_VALIDATOR_ADDRESS =
30
30
  "0x5C06CE2b673fD5E6e56076e40DD46aB67f5a72A5";
31
31
  export const RECOVERY_VALIDATOR_ADDRESS =
32
- "0xa7e3Bc66086Ae51b20e59b6C84666635A0d0A16C";
32
+ "0xaFA369cA3432e62ACe6bd77B2886F2D588c68dA8";
33
33
  export const RECOVERY_ACTION = "0x2f65dB8039fe5CAEE0a8680D2879deB800F31Ae1";
34
34
  export const oneAddress = "0x0000000000000000000000000000000000000001";
35
35
 
@@ -282,8 +282,9 @@ export class RecoveryValidator extends KernelBaseValidator {
282
282
  const guardians: WeightedGuardians = {};
283
283
 
284
284
  let nextGuardian = firstGuardian;
285
+ const sentinelValue = "0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF";
285
286
  while (
286
- nextGuardian.toLowerCase() !== kernelAccountAddress.toLowerCase()
287
+ nextGuardian.toLowerCase() !== sentinelValue.toLowerCase()
287
288
  ) {
288
289
  const guardianStorage = await publicClient.readContract({
289
290
  abi: WeightedValidatorAbi,