@lukso/lsp11-contracts 0.1.2 → 0.1.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/dist/abi.mjs ADDED
@@ -0,0 +1,1061 @@
1
+ const ilsp11SocialRecoveryAbi = [
2
+ {
3
+ type: "event",
4
+ anonymous: false,
5
+ inputs: [
6
+ {
7
+ name: "account",
8
+ internalType: "address",
9
+ type: "address",
10
+ indexed: true
11
+ },
12
+ {
13
+ name: "guardian",
14
+ internalType: "address",
15
+ type: "address",
16
+ indexed: true
17
+ }
18
+ ],
19
+ name: "GuardianAdded"
20
+ },
21
+ {
22
+ type: "event",
23
+ anonymous: false,
24
+ inputs: [
25
+ {
26
+ name: "account",
27
+ internalType: "address",
28
+ type: "address",
29
+ indexed: true
30
+ },
31
+ {
32
+ name: "guardian",
33
+ internalType: "address",
34
+ type: "address",
35
+ indexed: true
36
+ }
37
+ ],
38
+ name: "GuardianRemoved"
39
+ },
40
+ {
41
+ type: "event",
42
+ anonymous: false,
43
+ inputs: [
44
+ {
45
+ name: "account",
46
+ internalType: "address",
47
+ type: "address",
48
+ indexed: true
49
+ },
50
+ {
51
+ name: "recoveryCounter",
52
+ internalType: "uint256",
53
+ type: "uint256",
54
+ indexed: false
55
+ },
56
+ {
57
+ name: "guardian",
58
+ internalType: "address",
59
+ type: "address",
60
+ indexed: true
61
+ },
62
+ {
63
+ name: "guardianVotedAddress",
64
+ internalType: "address",
65
+ type: "address",
66
+ indexed: true
67
+ }
68
+ ],
69
+ name: "GuardianVotedFor"
70
+ },
71
+ {
72
+ type: "event",
73
+ anonymous: false,
74
+ inputs: [
75
+ {
76
+ name: "account",
77
+ internalType: "address",
78
+ type: "address",
79
+ indexed: true
80
+ },
81
+ {
82
+ name: "guardianThreshold",
83
+ internalType: "uint256",
84
+ type: "uint256",
85
+ indexed: true
86
+ }
87
+ ],
88
+ name: "GuardiansThresholdChanged"
89
+ },
90
+ {
91
+ type: "event",
92
+ anonymous: false,
93
+ inputs: [
94
+ {
95
+ name: "account",
96
+ internalType: "address",
97
+ type: "address",
98
+ indexed: true
99
+ },
100
+ {
101
+ name: "previousRecoveryCounter",
102
+ internalType: "uint256",
103
+ type: "uint256",
104
+ indexed: true
105
+ }
106
+ ],
107
+ name: "RecoveryCancelled"
108
+ },
109
+ {
110
+ type: "event",
111
+ anonymous: false,
112
+ inputs: [
113
+ {
114
+ name: "account",
115
+ internalType: "address",
116
+ type: "address",
117
+ indexed: true
118
+ },
119
+ {
120
+ name: "recoveryDelay",
121
+ internalType: "uint256",
122
+ type: "uint256",
123
+ indexed: true
124
+ }
125
+ ],
126
+ name: "RecoveryDelayChanged"
127
+ },
128
+ {
129
+ type: "event",
130
+ anonymous: false,
131
+ inputs: [
132
+ {
133
+ name: "account",
134
+ internalType: "address",
135
+ type: "address",
136
+ indexed: true
137
+ },
138
+ {
139
+ name: "recoveryCounter",
140
+ internalType: "uint256",
141
+ type: "uint256",
142
+ indexed: true
143
+ },
144
+ {
145
+ name: "guardianVotedAddress",
146
+ internalType: "address",
147
+ type: "address",
148
+ indexed: true
149
+ },
150
+ {
151
+ name: "calldataExecuted",
152
+ internalType: "bytes",
153
+ type: "bytes",
154
+ indexed: false
155
+ }
156
+ ],
157
+ name: "RecoveryProcessSuccessful"
158
+ },
159
+ {
160
+ type: "event",
161
+ anonymous: false,
162
+ inputs: [
163
+ {
164
+ name: "account",
165
+ internalType: "address",
166
+ type: "address",
167
+ indexed: true
168
+ },
169
+ {
170
+ name: "secretHash",
171
+ internalType: "bytes32",
172
+ type: "bytes32",
173
+ indexed: true
174
+ }
175
+ ],
176
+ name: "SecretHashChanged"
177
+ },
178
+ {
179
+ type: "event",
180
+ anonymous: false,
181
+ inputs: [
182
+ {
183
+ name: "account",
184
+ internalType: "address",
185
+ type: "address",
186
+ indexed: true
187
+ },
188
+ {
189
+ name: "recoveryCounter",
190
+ internalType: "uint256",
191
+ type: "uint256",
192
+ indexed: false
193
+ },
194
+ {
195
+ name: "committedBy",
196
+ internalType: "address",
197
+ type: "address",
198
+ indexed: true
199
+ },
200
+ {
201
+ name: "commitment",
202
+ internalType: "bytes32",
203
+ type: "bytes32",
204
+ indexed: true
205
+ }
206
+ ],
207
+ name: "SecretHashCommitted"
208
+ },
209
+ {
210
+ type: "function",
211
+ inputs: [
212
+ { name: "account", internalType: "address", type: "address" },
213
+ { name: "newGuardian", internalType: "address", type: "address" }
214
+ ],
215
+ name: "addGuardian",
216
+ outputs: [],
217
+ stateMutability: "nonpayable"
218
+ },
219
+ {
220
+ type: "function",
221
+ inputs: [{ name: "account", internalType: "address", type: "address" }],
222
+ name: "cancelRecoveryProcess",
223
+ outputs: [],
224
+ stateMutability: "nonpayable"
225
+ },
226
+ {
227
+ type: "function",
228
+ inputs: [
229
+ { name: "account", internalType: "address", type: "address" },
230
+ { name: "votedAddress", internalType: "address", type: "address" },
231
+ { name: "commitment", internalType: "bytes32", type: "bytes32" }
232
+ ],
233
+ name: "commitToRecover",
234
+ outputs: [],
235
+ stateMutability: "nonpayable"
236
+ },
237
+ {
238
+ type: "function",
239
+ inputs: [
240
+ { name: "account", internalType: "address", type: "address" },
241
+ { name: "recoveryCounter", internalType: "uint256", type: "uint256" },
242
+ { name: "committedBy", internalType: "address", type: "address" }
243
+ ],
244
+ name: "getCommitmentInfoOf",
245
+ outputs: [
246
+ { name: "", internalType: "bytes32", type: "bytes32" },
247
+ { name: "", internalType: "uint256", type: "uint256" }
248
+ ],
249
+ stateMutability: "view"
250
+ },
251
+ {
252
+ type: "function",
253
+ inputs: [
254
+ { name: "account", internalType: "address", type: "address" },
255
+ { name: "recoveryCounter", internalType: "uint256", type: "uint256" }
256
+ ],
257
+ name: "getFirstRecoveryTimestampOf",
258
+ outputs: [{ name: "", internalType: "uint256", type: "uint256" }],
259
+ stateMutability: "view"
260
+ },
261
+ {
262
+ type: "function",
263
+ inputs: [{ name: "account", internalType: "address", type: "address" }],
264
+ name: "getGuardiansOf",
265
+ outputs: [{ name: "", internalType: "address[]", type: "address[]" }],
266
+ stateMutability: "view"
267
+ },
268
+ {
269
+ type: "function",
270
+ inputs: [{ name: "account", internalType: "address", type: "address" }],
271
+ name: "getGuardiansThresholdOf",
272
+ outputs: [{ name: "", internalType: "uint256", type: "uint256" }],
273
+ stateMutability: "view"
274
+ },
275
+ {
276
+ type: "function",
277
+ inputs: [{ name: "account", internalType: "address", type: "address" }],
278
+ name: "getRecoveryCounterOf",
279
+ outputs: [{ name: "", internalType: "uint256", type: "uint256" }],
280
+ stateMutability: "view"
281
+ },
282
+ {
283
+ type: "function",
284
+ inputs: [{ name: "account", internalType: "address", type: "address" }],
285
+ name: "getRecoveryDelayOf",
286
+ outputs: [{ name: "", internalType: "uint256", type: "uint256" }],
287
+ stateMutability: "view"
288
+ },
289
+ {
290
+ type: "function",
291
+ inputs: [{ name: "account", internalType: "address", type: "address" }],
292
+ name: "getSecretHashOf",
293
+ outputs: [{ name: "", internalType: "bytes32", type: "bytes32" }],
294
+ stateMutability: "view"
295
+ },
296
+ {
297
+ type: "function",
298
+ inputs: [
299
+ { name: "account", internalType: "address", type: "address" },
300
+ { name: "recoveryCounter", internalType: "uint256", type: "uint256" },
301
+ { name: "guardian", internalType: "address", type: "address" }
302
+ ],
303
+ name: "getVotedAddressByGuardian",
304
+ outputs: [{ name: "", internalType: "address", type: "address" }],
305
+ stateMutability: "view"
306
+ },
307
+ {
308
+ type: "function",
309
+ inputs: [
310
+ { name: "account", internalType: "address", type: "address" },
311
+ { name: "recoveryCounter", internalType: "uint256", type: "uint256" },
312
+ { name: "votedAddress", internalType: "address", type: "address" }
313
+ ],
314
+ name: "getVotesOfGuardianVotedAddress",
315
+ outputs: [{ name: "", internalType: "uint256", type: "uint256" }],
316
+ stateMutability: "view"
317
+ },
318
+ {
319
+ type: "function",
320
+ inputs: [
321
+ { name: "account", internalType: "address", type: "address" },
322
+ { name: "recoveryCounter", internalType: "uint256", type: "uint256" },
323
+ { name: "votedAddress", internalType: "address", type: "address" }
324
+ ],
325
+ name: "hasReachedThreshold",
326
+ outputs: [{ name: "", internalType: "bool", type: "bool" }],
327
+ stateMutability: "view"
328
+ },
329
+ {
330
+ type: "function",
331
+ inputs: [
332
+ { name: "account", internalType: "address", type: "address" },
333
+ { name: "guardianAddress", internalType: "address", type: "address" }
334
+ ],
335
+ name: "isGuardianOf",
336
+ outputs: [{ name: "", internalType: "bool", type: "bool" }],
337
+ stateMutability: "view"
338
+ },
339
+ {
340
+ type: "function",
341
+ inputs: [
342
+ { name: "votedAddress", internalType: "address", type: "address" },
343
+ { name: "account", internalType: "address", type: "address" },
344
+ { name: "secretHash", internalType: "bytes32", type: "bytes32" },
345
+ { name: "newSecretHash", internalType: "bytes32", type: "bytes32" },
346
+ { name: "calldataToExecute", internalType: "bytes", type: "bytes" }
347
+ ],
348
+ name: "recoverAccess",
349
+ outputs: [{ name: "", internalType: "bytes", type: "bytes" }],
350
+ stateMutability: "payable"
351
+ },
352
+ {
353
+ type: "function",
354
+ inputs: [
355
+ { name: "account", internalType: "address", type: "address" },
356
+ { name: "existingGuardian", internalType: "address", type: "address" }
357
+ ],
358
+ name: "removeGuardian",
359
+ outputs: [],
360
+ stateMutability: "nonpayable"
361
+ },
362
+ {
363
+ type: "function",
364
+ inputs: [
365
+ { name: "account", internalType: "address", type: "address" },
366
+ { name: "newThreshold", internalType: "uint256", type: "uint256" }
367
+ ],
368
+ name: "setGuardiansThreshold",
369
+ outputs: [],
370
+ stateMutability: "nonpayable"
371
+ },
372
+ {
373
+ type: "function",
374
+ inputs: [
375
+ { name: "account", internalType: "address", type: "address" },
376
+ { name: "recoveryDelay", internalType: "uint256", type: "uint256" }
377
+ ],
378
+ name: "setRecoveryDelay",
379
+ outputs: [],
380
+ stateMutability: "nonpayable"
381
+ },
382
+ {
383
+ type: "function",
384
+ inputs: [
385
+ { name: "account", internalType: "address", type: "address" },
386
+ {
387
+ name: "newRecoverSecretHash",
388
+ internalType: "bytes32",
389
+ type: "bytes32"
390
+ }
391
+ ],
392
+ name: "setRecoverySecretHash",
393
+ outputs: [],
394
+ stateMutability: "nonpayable"
395
+ },
396
+ {
397
+ type: "function",
398
+ inputs: [
399
+ { name: "account", internalType: "address", type: "address" },
400
+ { name: "guardian", internalType: "address", type: "address" },
401
+ {
402
+ name: "guardianVotedAddress",
403
+ internalType: "address",
404
+ type: "address"
405
+ }
406
+ ],
407
+ name: "voteForRecovery",
408
+ outputs: [],
409
+ stateMutability: "nonpayable"
410
+ }
411
+ ];
412
+ const lsp11SocialRecoveryAbi = [
413
+ { type: "error", inputs: [], name: "AccountNotSetupYet" },
414
+ {
415
+ type: "error",
416
+ inputs: [{ name: "iteration", internalType: "uint256", type: "uint256" }],
417
+ name: "BatchCallsFailed"
418
+ },
419
+ {
420
+ type: "error",
421
+ inputs: [],
422
+ name: "BatchExecuteRelayCallParamsLengthMismatch"
423
+ },
424
+ {
425
+ type: "error",
426
+ inputs: [
427
+ { name: "guardian", internalType: "address", type: "address" },
428
+ { name: "caller", internalType: "address", type: "address" }
429
+ ],
430
+ name: "CallerIsNotGuardian"
431
+ },
432
+ {
433
+ type: "error",
434
+ inputs: [
435
+ { name: "account", internalType: "address", type: "address" },
436
+ { name: "caller", internalType: "address", type: "address" }
437
+ ],
438
+ name: "CallerIsNotTheAccount"
439
+ },
440
+ {
441
+ type: "error",
442
+ inputs: [
443
+ { name: "votedAddress", internalType: "address", type: "address" },
444
+ { name: "caller", internalType: "address", type: "address" }
445
+ ],
446
+ name: "CallerIsNotVotedAddress"
447
+ },
448
+ {
449
+ type: "error",
450
+ inputs: [
451
+ { name: "account", internalType: "address", type: "address" },
452
+ { name: "recoverer", internalType: "address", type: "address" }
453
+ ],
454
+ name: "CallerVotesHaveNotReachedThreshold"
455
+ },
456
+ {
457
+ type: "error",
458
+ inputs: [
459
+ { name: "account", internalType: "address", type: "address" },
460
+ { name: "committer", internalType: "address", type: "address" }
461
+ ],
462
+ name: "CannotRecoverAfterDirectCommit"
463
+ },
464
+ {
465
+ type: "error",
466
+ inputs: [
467
+ { name: "account", internalType: "address", type: "address" },
468
+ { name: "delay", internalType: "uint256", type: "uint256" }
469
+ ],
470
+ name: "CannotRecoverBeforeDelay"
471
+ },
472
+ {
473
+ type: "error",
474
+ inputs: [
475
+ { name: "account", internalType: "address", type: "address" },
476
+ { name: "guardian", internalType: "address", type: "address" },
477
+ {
478
+ name: "guardianVotedAddress",
479
+ internalType: "address",
480
+ type: "address"
481
+ }
482
+ ],
483
+ name: "CannotVoteToAddressTwice"
484
+ },
485
+ {
486
+ type: "error",
487
+ inputs: [
488
+ { name: "account", internalType: "address", type: "address" },
489
+ { name: "guardian", internalType: "address", type: "address" }
490
+ ],
491
+ name: "GuardianAlreadyExists"
492
+ },
493
+ {
494
+ type: "error",
495
+ inputs: [
496
+ { name: "account", internalType: "address", type: "address" },
497
+ { name: "guardian", internalType: "address", type: "address" }
498
+ ],
499
+ name: "GuardianNotFound"
500
+ },
501
+ {
502
+ type: "error",
503
+ inputs: [
504
+ { name: "account", internalType: "address", type: "address" },
505
+ { name: "threshold", internalType: "uint256", type: "uint256" }
506
+ ],
507
+ name: "GuardianNumberCannotGoBelowThreshold"
508
+ },
509
+ {
510
+ type: "error",
511
+ inputs: [
512
+ { name: "account", internalType: "address", type: "address" },
513
+ { name: "committer", internalType: "address", type: "address" }
514
+ ],
515
+ name: "InvalidCommitment"
516
+ },
517
+ {
518
+ type: "error",
519
+ inputs: [
520
+ { name: "signer", internalType: "address", type: "address" },
521
+ { name: "invalidNonce", internalType: "uint256", type: "uint256" },
522
+ { name: "signature", internalType: "bytes", type: "bytes" }
523
+ ],
524
+ name: "InvalidRelayNonce"
525
+ },
526
+ {
527
+ type: "error",
528
+ inputs: [
529
+ { name: "account", internalType: "address", type: "address" },
530
+ { name: "secretHash", internalType: "bytes32", type: "bytes32" }
531
+ ],
532
+ name: "InvalidSecretHash"
533
+ },
534
+ {
535
+ type: "error",
536
+ inputs: [
537
+ { name: "totalValues", internalType: "uint256", type: "uint256" },
538
+ { name: "msgValue", internalType: "uint256", type: "uint256" }
539
+ ],
540
+ name: "LSP11BatchExcessiveValueSent"
541
+ },
542
+ {
543
+ type: "error",
544
+ inputs: [
545
+ { name: "totalValues", internalType: "uint256", type: "uint256" },
546
+ { name: "msgValue", internalType: "uint256", type: "uint256" }
547
+ ],
548
+ name: "LSP11BatchInsufficientValueSent"
549
+ },
550
+ {
551
+ type: "error",
552
+ inputs: [
553
+ { name: "account", internalType: "address", type: "address" },
554
+ { name: "nonGuardian", internalType: "address", type: "address" }
555
+ ],
556
+ name: "NotAGuardianOfTheAccount"
557
+ },
558
+ { type: "error", inputs: [], name: "RelayCallBeforeStartTime" },
559
+ { type: "error", inputs: [], name: "RelayCallExpired" },
560
+ {
561
+ type: "error",
562
+ inputs: [
563
+ { name: "functionSelector", internalType: "bytes4", type: "bytes4" }
564
+ ],
565
+ name: "RelayCallNotSupported"
566
+ },
567
+ {
568
+ type: "error",
569
+ inputs: [
570
+ { name: "votedAddress", internalType: "address", type: "address" },
571
+ { name: "recoveredAddress", internalType: "address", type: "address" }
572
+ ],
573
+ name: "SignerIsNotVotedAddress"
574
+ },
575
+ {
576
+ type: "error",
577
+ inputs: [
578
+ { name: "account", internalType: "address", type: "address" },
579
+ { name: "threshold", internalType: "uint256", type: "uint256" }
580
+ ],
581
+ name: "ThresholdExceedsGuardianNumber"
582
+ },
583
+ {
584
+ type: "event",
585
+ anonymous: false,
586
+ inputs: [
587
+ {
588
+ name: "account",
589
+ internalType: "address",
590
+ type: "address",
591
+ indexed: true
592
+ },
593
+ {
594
+ name: "guardian",
595
+ internalType: "address",
596
+ type: "address",
597
+ indexed: true
598
+ }
599
+ ],
600
+ name: "GuardianAdded"
601
+ },
602
+ {
603
+ type: "event",
604
+ anonymous: false,
605
+ inputs: [
606
+ {
607
+ name: "account",
608
+ internalType: "address",
609
+ type: "address",
610
+ indexed: true
611
+ },
612
+ {
613
+ name: "guardian",
614
+ internalType: "address",
615
+ type: "address",
616
+ indexed: true
617
+ }
618
+ ],
619
+ name: "GuardianRemoved"
620
+ },
621
+ {
622
+ type: "event",
623
+ anonymous: false,
624
+ inputs: [
625
+ {
626
+ name: "account",
627
+ internalType: "address",
628
+ type: "address",
629
+ indexed: true
630
+ },
631
+ {
632
+ name: "recoveryCounter",
633
+ internalType: "uint256",
634
+ type: "uint256",
635
+ indexed: false
636
+ },
637
+ {
638
+ name: "guardian",
639
+ internalType: "address",
640
+ type: "address",
641
+ indexed: true
642
+ },
643
+ {
644
+ name: "guardianVotedAddress",
645
+ internalType: "address",
646
+ type: "address",
647
+ indexed: true
648
+ }
649
+ ],
650
+ name: "GuardianVotedFor"
651
+ },
652
+ {
653
+ type: "event",
654
+ anonymous: false,
655
+ inputs: [
656
+ {
657
+ name: "account",
658
+ internalType: "address",
659
+ type: "address",
660
+ indexed: true
661
+ },
662
+ {
663
+ name: "guardianThreshold",
664
+ internalType: "uint256",
665
+ type: "uint256",
666
+ indexed: true
667
+ }
668
+ ],
669
+ name: "GuardiansThresholdChanged"
670
+ },
671
+ {
672
+ type: "event",
673
+ anonymous: false,
674
+ inputs: [
675
+ {
676
+ name: "account",
677
+ internalType: "address",
678
+ type: "address",
679
+ indexed: true
680
+ },
681
+ {
682
+ name: "previousRecoveryCounter",
683
+ internalType: "uint256",
684
+ type: "uint256",
685
+ indexed: true
686
+ }
687
+ ],
688
+ name: "RecoveryCancelled"
689
+ },
690
+ {
691
+ type: "event",
692
+ anonymous: false,
693
+ inputs: [
694
+ {
695
+ name: "account",
696
+ internalType: "address",
697
+ type: "address",
698
+ indexed: true
699
+ },
700
+ {
701
+ name: "recoveryDelay",
702
+ internalType: "uint256",
703
+ type: "uint256",
704
+ indexed: true
705
+ }
706
+ ],
707
+ name: "RecoveryDelayChanged"
708
+ },
709
+ {
710
+ type: "event",
711
+ anonymous: false,
712
+ inputs: [
713
+ {
714
+ name: "account",
715
+ internalType: "address",
716
+ type: "address",
717
+ indexed: true
718
+ },
719
+ {
720
+ name: "recoveryCounter",
721
+ internalType: "uint256",
722
+ type: "uint256",
723
+ indexed: true
724
+ },
725
+ {
726
+ name: "guardianVotedAddress",
727
+ internalType: "address",
728
+ type: "address",
729
+ indexed: true
730
+ },
731
+ {
732
+ name: "calldataExecuted",
733
+ internalType: "bytes",
734
+ type: "bytes",
735
+ indexed: false
736
+ }
737
+ ],
738
+ name: "RecoveryProcessSuccessful"
739
+ },
740
+ {
741
+ type: "event",
742
+ anonymous: false,
743
+ inputs: [
744
+ {
745
+ name: "account",
746
+ internalType: "address",
747
+ type: "address",
748
+ indexed: true
749
+ },
750
+ {
751
+ name: "secretHash",
752
+ internalType: "bytes32",
753
+ type: "bytes32",
754
+ indexed: true
755
+ }
756
+ ],
757
+ name: "SecretHashChanged"
758
+ },
759
+ {
760
+ type: "event",
761
+ anonymous: false,
762
+ inputs: [
763
+ {
764
+ name: "account",
765
+ internalType: "address",
766
+ type: "address",
767
+ indexed: true
768
+ },
769
+ {
770
+ name: "recoveryCounter",
771
+ internalType: "uint256",
772
+ type: "uint256",
773
+ indexed: false
774
+ },
775
+ {
776
+ name: "committedBy",
777
+ internalType: "address",
778
+ type: "address",
779
+ indexed: true
780
+ },
781
+ {
782
+ name: "commitment",
783
+ internalType: "bytes32",
784
+ type: "bytes32",
785
+ indexed: true
786
+ }
787
+ ],
788
+ name: "SecretHashCommitted"
789
+ },
790
+ {
791
+ type: "function",
792
+ inputs: [],
793
+ name: "COMMITMEMT_DELAY",
794
+ outputs: [{ name: "", internalType: "uint256", type: "uint256" }],
795
+ stateMutability: "view"
796
+ },
797
+ {
798
+ type: "function",
799
+ inputs: [],
800
+ name: "DEFAULT_RECOVERY_DELAY",
801
+ outputs: [{ name: "", internalType: "uint256", type: "uint256" }],
802
+ stateMutability: "view"
803
+ },
804
+ {
805
+ type: "function",
806
+ inputs: [
807
+ { name: "account", internalType: "address", type: "address" },
808
+ { name: "newGuardian", internalType: "address", type: "address" }
809
+ ],
810
+ name: "addGuardian",
811
+ outputs: [],
812
+ stateMutability: "nonpayable"
813
+ },
814
+ {
815
+ type: "function",
816
+ inputs: [{ name: "data", internalType: "bytes[]", type: "bytes[]" }],
817
+ name: "batchCalls",
818
+ outputs: [{ name: "results", internalType: "bytes[]", type: "bytes[]" }],
819
+ stateMutability: "nonpayable"
820
+ },
821
+ {
822
+ type: "function",
823
+ inputs: [{ name: "account", internalType: "address", type: "address" }],
824
+ name: "cancelRecoveryProcess",
825
+ outputs: [],
826
+ stateMutability: "nonpayable"
827
+ },
828
+ {
829
+ type: "function",
830
+ inputs: [
831
+ { name: "account", internalType: "address", type: "address" },
832
+ { name: "votedAddress", internalType: "address", type: "address" },
833
+ { name: "commitment", internalType: "bytes32", type: "bytes32" }
834
+ ],
835
+ name: "commitToRecover",
836
+ outputs: [],
837
+ stateMutability: "nonpayable"
838
+ },
839
+ {
840
+ type: "function",
841
+ inputs: [
842
+ { name: "signature", internalType: "bytes", type: "bytes" },
843
+ { name: "nonce", internalType: "uint256", type: "uint256" },
844
+ { name: "validityTimestamps", internalType: "uint256", type: "uint256" },
845
+ { name: "payload", internalType: "bytes", type: "bytes" }
846
+ ],
847
+ name: "executeRelayCall",
848
+ outputs: [{ name: "", internalType: "bytes", type: "bytes" }],
849
+ stateMutability: "payable"
850
+ },
851
+ {
852
+ type: "function",
853
+ inputs: [
854
+ { name: "signatures", internalType: "bytes[]", type: "bytes[]" },
855
+ { name: "nonces", internalType: "uint256[]", type: "uint256[]" },
856
+ {
857
+ name: "validityTimestamps",
858
+ internalType: "uint256[]",
859
+ type: "uint256[]"
860
+ },
861
+ { name: "values", internalType: "uint256[]", type: "uint256[]" },
862
+ { name: "payloads", internalType: "bytes[]", type: "bytes[]" }
863
+ ],
864
+ name: "executeRelayCallBatch",
865
+ outputs: [{ name: "", internalType: "bytes[]", type: "bytes[]" }],
866
+ stateMutability: "payable"
867
+ },
868
+ {
869
+ type: "function",
870
+ inputs: [
871
+ { name: "account", internalType: "address", type: "address" },
872
+ { name: "recoveryCounter", internalType: "uint256", type: "uint256" },
873
+ { name: "committedBy", internalType: "address", type: "address" }
874
+ ],
875
+ name: "getCommitmentInfoOf",
876
+ outputs: [
877
+ { name: "", internalType: "bytes32", type: "bytes32" },
878
+ { name: "", internalType: "uint256", type: "uint256" }
879
+ ],
880
+ stateMutability: "view"
881
+ },
882
+ {
883
+ type: "function",
884
+ inputs: [
885
+ { name: "account", internalType: "address", type: "address" },
886
+ { name: "recoveryCounter", internalType: "uint256", type: "uint256" }
887
+ ],
888
+ name: "getFirstRecoveryTimestampOf",
889
+ outputs: [{ name: "", internalType: "uint256", type: "uint256" }],
890
+ stateMutability: "view"
891
+ },
892
+ {
893
+ type: "function",
894
+ inputs: [{ name: "account", internalType: "address", type: "address" }],
895
+ name: "getGuardiansOf",
896
+ outputs: [{ name: "", internalType: "address[]", type: "address[]" }],
897
+ stateMutability: "view"
898
+ },
899
+ {
900
+ type: "function",
901
+ inputs: [{ name: "account", internalType: "address", type: "address" }],
902
+ name: "getGuardiansThresholdOf",
903
+ outputs: [{ name: "", internalType: "uint256", type: "uint256" }],
904
+ stateMutability: "view"
905
+ },
906
+ {
907
+ type: "function",
908
+ inputs: [
909
+ { name: "from", internalType: "address", type: "address" },
910
+ { name: "channelId", internalType: "uint128", type: "uint128" }
911
+ ],
912
+ name: "getNonce",
913
+ outputs: [{ name: "", internalType: "uint256", type: "uint256" }],
914
+ stateMutability: "view"
915
+ },
916
+ {
917
+ type: "function",
918
+ inputs: [{ name: "account", internalType: "address", type: "address" }],
919
+ name: "getRecoveryCounterOf",
920
+ outputs: [{ name: "", internalType: "uint256", type: "uint256" }],
921
+ stateMutability: "view"
922
+ },
923
+ {
924
+ type: "function",
925
+ inputs: [{ name: "account", internalType: "address", type: "address" }],
926
+ name: "getRecoveryDelayOf",
927
+ outputs: [{ name: "", internalType: "uint256", type: "uint256" }],
928
+ stateMutability: "view"
929
+ },
930
+ {
931
+ type: "function",
932
+ inputs: [{ name: "account", internalType: "address", type: "address" }],
933
+ name: "getSecretHashOf",
934
+ outputs: [{ name: "", internalType: "bytes32", type: "bytes32" }],
935
+ stateMutability: "view"
936
+ },
937
+ {
938
+ type: "function",
939
+ inputs: [
940
+ { name: "account", internalType: "address", type: "address" },
941
+ { name: "recoveryCounter", internalType: "uint256", type: "uint256" },
942
+ { name: "guardian", internalType: "address", type: "address" }
943
+ ],
944
+ name: "getVotedAddressByGuardian",
945
+ outputs: [{ name: "", internalType: "address", type: "address" }],
946
+ stateMutability: "view"
947
+ },
948
+ {
949
+ type: "function",
950
+ inputs: [
951
+ { name: "account", internalType: "address", type: "address" },
952
+ { name: "recoveryCounter", internalType: "uint256", type: "uint256" },
953
+ { name: "votedAddress", internalType: "address", type: "address" }
954
+ ],
955
+ name: "getVotesOfGuardianVotedAddress",
956
+ outputs: [{ name: "", internalType: "uint256", type: "uint256" }],
957
+ stateMutability: "view"
958
+ },
959
+ {
960
+ type: "function",
961
+ inputs: [
962
+ { name: "account", internalType: "address", type: "address" },
963
+ { name: "recoveryCounter", internalType: "uint256", type: "uint256" },
964
+ { name: "votedAddress", internalType: "address", type: "address" }
965
+ ],
966
+ name: "hasReachedThreshold",
967
+ outputs: [{ name: "", internalType: "bool", type: "bool" }],
968
+ stateMutability: "view"
969
+ },
970
+ {
971
+ type: "function",
972
+ inputs: [
973
+ { name: "account", internalType: "address", type: "address" },
974
+ { name: "guardianAddress", internalType: "address", type: "address" }
975
+ ],
976
+ name: "isGuardianOf",
977
+ outputs: [{ name: "", internalType: "bool", type: "bool" }],
978
+ stateMutability: "view"
979
+ },
980
+ {
981
+ type: "function",
982
+ inputs: [
983
+ { name: "account", internalType: "address", type: "address" },
984
+ { name: "votedAddress", internalType: "address", type: "address" },
985
+ { name: "secretHash", internalType: "bytes32", type: "bytes32" },
986
+ { name: "newSecretHash", internalType: "bytes32", type: "bytes32" },
987
+ { name: "calldataToExecute", internalType: "bytes", type: "bytes" }
988
+ ],
989
+ name: "recoverAccess",
990
+ outputs: [{ name: "", internalType: "bytes", type: "bytes" }],
991
+ stateMutability: "payable"
992
+ },
993
+ {
994
+ type: "function",
995
+ inputs: [
996
+ { name: "account", internalType: "address", type: "address" },
997
+ { name: "existingGuardian", internalType: "address", type: "address" }
998
+ ],
999
+ name: "removeGuardian",
1000
+ outputs: [],
1001
+ stateMutability: "nonpayable"
1002
+ },
1003
+ {
1004
+ type: "function",
1005
+ inputs: [
1006
+ { name: "account", internalType: "address", type: "address" },
1007
+ { name: "newThreshold", internalType: "uint256", type: "uint256" }
1008
+ ],
1009
+ name: "setGuardiansThreshold",
1010
+ outputs: [],
1011
+ stateMutability: "nonpayable"
1012
+ },
1013
+ {
1014
+ type: "function",
1015
+ inputs: [
1016
+ { name: "account", internalType: "address", type: "address" },
1017
+ { name: "recoveryDelay", internalType: "uint256", type: "uint256" }
1018
+ ],
1019
+ name: "setRecoveryDelay",
1020
+ outputs: [],
1021
+ stateMutability: "nonpayable"
1022
+ },
1023
+ {
1024
+ type: "function",
1025
+ inputs: [
1026
+ { name: "account", internalType: "address", type: "address" },
1027
+ {
1028
+ name: "newRecoverSecretHash",
1029
+ internalType: "bytes32",
1030
+ type: "bytes32"
1031
+ }
1032
+ ],
1033
+ name: "setRecoverySecretHash",
1034
+ outputs: [],
1035
+ stateMutability: "nonpayable"
1036
+ },
1037
+ {
1038
+ type: "function",
1039
+ inputs: [{ name: "interfaceId", internalType: "bytes4", type: "bytes4" }],
1040
+ name: "supportsInterface",
1041
+ outputs: [{ name: "", internalType: "bool", type: "bool" }],
1042
+ stateMutability: "view"
1043
+ },
1044
+ {
1045
+ type: "function",
1046
+ inputs: [
1047
+ { name: "account", internalType: "address", type: "address" },
1048
+ { name: "guardian", internalType: "address", type: "address" },
1049
+ {
1050
+ name: "guardianVotedAddress",
1051
+ internalType: "address",
1052
+ type: "address"
1053
+ }
1054
+ ],
1055
+ name: "voteForRecovery",
1056
+ outputs: [],
1057
+ stateMutability: "nonpayable"
1058
+ }
1059
+ ];
1060
+
1061
+ export { ilsp11SocialRecoveryAbi, lsp11SocialRecoveryAbi };