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