/
idregistry.go
3955 lines (3408 loc) · 172 KB
/
idregistry.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
// Code generated - DO NOT EDIT.
// This file is a generated binding and any manual changes will be lost.
package FarcasterIDRegistry
import (
"errors"
"math/big"
"strings"
ethereum "github.com/ethereum/go-ethereum"
"github.com/ethereum/go-ethereum/accounts/abi"
"github.com/ethereum/go-ethereum/accounts/abi/bind"
"github.com/ethereum/go-ethereum/common"
"github.com/ethereum/go-ethereum/core/types"
"github.com/ethereum/go-ethereum/event"
)
// Reference imports to suppress errors if they are not otherwise used.
var (
_ = errors.New
_ = big.NewInt
_ = strings.NewReader
_ = ethereum.NotFound
_ = bind.Bind
_ = common.Big1
_ = types.BloomLookup
_ = event.NewSubscription
_ = abi.ConvertType
)
// IIdRegistryBulkRegisterData is an auto generated low-level Go binding around an user-defined struct.
type IIdRegistryBulkRegisterData struct {
Fid *big.Int
Custody common.Address
Recovery common.Address
}
// IIdRegistryBulkRegisterDefaultRecoveryData is an auto generated low-level Go binding around an user-defined struct.
type IIdRegistryBulkRegisterDefaultRecoveryData struct {
Fid *big.Int
Custody common.Address
}
// FarcasterIDRegistryMetaData contains all meta data concerning the FarcasterIDRegistry contract.
var FarcasterIDRegistryMetaData = &bind.MetaData{
ABI: "[{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_migrator\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"_initialOwner\",\"type\":\"address\"}],\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"inputs\":[],\"name\":\"AlreadyMigrated\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"GatewayFrozen\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"HasId\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"HasNoId\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"currentNonce\",\"type\":\"uint256\"}],\"name\":\"InvalidAccountNonce\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"InvalidShortString\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"InvalidSignature\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"OnlyGuardian\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"OnlyMigrator\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"PermissionRevoked\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"SignatureExpired\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"string\",\"name\":\"str\",\"type\":\"string\"}],\"name\":\"StringTooLong\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"Unauthorized\",\"type\":\"error\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"guardian\",\"type\":\"address\"}],\"name\":\"Add\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"fid\",\"type\":\"uint256\"}],\"name\":\"AdminReset\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"id\",\"type\":\"uint256\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"recovery\",\"type\":\"address\"}],\"name\":\"ChangeRecoveryAddress\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[],\"name\":\"EIP712DomainChanged\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"idGateway\",\"type\":\"address\"}],\"name\":\"FreezeIdGateway\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"migratedAt\",\"type\":\"uint256\"}],\"name\":\"Migrated\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"previousOwner\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"OwnershipTransferStarted\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"previousOwner\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"OwnershipTransferred\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"Paused\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"from\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"id\",\"type\":\"uint256\"}],\"name\":\"Recover\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"id\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"recovery\",\"type\":\"address\"}],\"name\":\"Register\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"guardian\",\"type\":\"address\"}],\"name\":\"Remove\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"oldCounter\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"newCounter\",\"type\":\"uint256\"}],\"name\":\"SetIdCounter\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"oldIdGateway\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"newIdGateway\",\"type\":\"address\"}],\"name\":\"SetIdGateway\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"oldMigrator\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"newMigrator\",\"type\":\"address\"}],\"name\":\"SetMigrator\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"from\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"id\",\"type\":\"uint256\"}],\"name\":\"Transfer\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"Unpaused\",\"type\":\"event\"},{\"inputs\":[],\"name\":\"CHANGE_RECOVERY_ADDRESS_TYPEHASH\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"TRANSFER_AND_CHANGE_RECOVERY_TYPEHASH\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"TRANSFER_TYPEHASH\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"VERSION\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"acceptOwnership\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"guardian\",\"type\":\"address\"}],\"name\":\"addGuardian\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"components\":[{\"internalType\":\"uint24\",\"name\":\"fid\",\"type\":\"uint24\"},{\"internalType\":\"address\",\"name\":\"custody\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"recovery\",\"type\":\"address\"}],\"internalType\":\"structIIdRegistry.BulkRegisterData[]\",\"name\":\"ids\",\"type\":\"tuple[]\"}],\"name\":\"bulkRegisterIds\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"components\":[{\"internalType\":\"uint24\",\"name\":\"fid\",\"type\":\"uint24\"},{\"internalType\":\"address\",\"name\":\"custody\",\"type\":\"address\"}],\"internalType\":\"structIIdRegistry.BulkRegisterDefaultRecoveryData[]\",\"name\":\"ids\",\"type\":\"tuple[]\"},{\"internalType\":\"address\",\"name\":\"recovery\",\"type\":\"address\"}],\"name\":\"bulkRegisterIdsWithDefaultRecovery\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint24[]\",\"name\":\"ids\",\"type\":\"uint24[]\"}],\"name\":\"bulkResetIds\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"recovery\",\"type\":\"address\"}],\"name\":\"changeRecoveryAddress\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"recovery\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"deadline\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"sig\",\"type\":\"bytes\"}],\"name\":\"changeRecoveryAddressFor\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"fid\",\"type\":\"uint256\"}],\"name\":\"custodyOf\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"custody\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"domainSeparatorV4\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"eip712Domain\",\"outputs\":[{\"internalType\":\"bytes1\",\"name\":\"fields\",\"type\":\"bytes1\"},{\"internalType\":\"string\",\"name\":\"name\",\"type\":\"string\"},{\"internalType\":\"string\",\"name\":\"version\",\"type\":\"string\"},{\"internalType\":\"uint256\",\"name\":\"chainId\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"verifyingContract\",\"type\":\"address\"},{\"internalType\":\"bytes32\",\"name\":\"salt\",\"type\":\"bytes32\"},{\"internalType\":\"uint256[]\",\"name\":\"extensions\",\"type\":\"uint256[]\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"freezeIdGateway\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"gatewayFrozen\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"gracePeriod\",\"outputs\":[{\"internalType\":\"uint24\",\"name\":\"\",\"type\":\"uint24\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"guardian\",\"type\":\"address\"}],\"name\":\"guardians\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"isGuardian\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"structHash\",\"type\":\"bytes32\"}],\"name\":\"hashTypedDataV4\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"idCounter\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"idGateway\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"}],\"name\":\"idOf\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"fid\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"isMigrated\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"migrate\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"migratedAt\",\"outputs\":[{\"internalType\":\"uint40\",\"name\":\"\",\"type\":\"uint40\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"migrator\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"name\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"}],\"name\":\"nonces\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"owner\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"pause\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"paused\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"pendingOwner\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"from\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"deadline\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"sig\",\"type\":\"bytes\"}],\"name\":\"recover\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"from\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"recoveryDeadline\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"recoverySig\",\"type\":\"bytes\"},{\"internalType\":\"uint256\",\"name\":\"toDeadline\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"toSig\",\"type\":\"bytes\"}],\"name\":\"recoverFor\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"fid\",\"type\":\"uint256\"}],\"name\":\"recoveryOf\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"recovery\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"recovery\",\"type\":\"address\"}],\"name\":\"register\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"fid\",\"type\":\"uint256\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"guardian\",\"type\":\"address\"}],\"name\":\"removeGuardian\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"renounceOwnership\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_counter\",\"type\":\"uint256\"}],\"name\":\"setIdCounter\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_idGateway\",\"type\":\"address\"}],\"name\":\"setIdGateway\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_migrator\",\"type\":\"address\"}],\"name\":\"setMigrator\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"deadline\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"sig\",\"type\":\"bytes\"}],\"name\":\"transfer\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"recovery\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"deadline\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"sig\",\"type\":\"bytes\"}],\"name\":\"transferAndChangeRecovery\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"from\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"recovery\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"fromDeadline\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"fromSig\",\"type\":\"bytes\"},{\"internalType\":\"uint256\",\"name\":\"toDeadline\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"toSig\",\"type\":\"bytes\"}],\"name\":\"transferAndChangeRecoveryFor\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"from\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"fromDeadline\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"fromSig\",\"type\":\"bytes\"},{\"internalType\":\"uint256\",\"name\":\"toDeadline\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"toSig\",\"type\":\"bytes\"}],\"name\":\"transferFor\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"transferOwnership\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"unpause\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"useNonce\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"custodyAddress\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"fid\",\"type\":\"uint256\"},{\"internalType\":\"bytes32\",\"name\":\"digest\",\"type\":\"bytes32\"},{\"internalType\":\"bytes\",\"name\":\"sig\",\"type\":\"bytes\"}],\"name\":\"verifyFidSignature\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"isValid\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"}]",
}
// FarcasterIDRegistryABI is the input ABI used to generate the binding from.
// Deprecated: Use FarcasterIDRegistryMetaData.ABI instead.
var FarcasterIDRegistryABI = FarcasterIDRegistryMetaData.ABI
// FarcasterIDRegistry is an auto generated Go binding around an Ethereum contract.
type FarcasterIDRegistry struct {
FarcasterIDRegistryCaller // Read-only binding to the contract
FarcasterIDRegistryTransactor // Write-only binding to the contract
FarcasterIDRegistryFilterer // Log filterer for contract events
}
// FarcasterIDRegistryCaller is an auto generated read-only Go binding around an Ethereum contract.
type FarcasterIDRegistryCaller struct {
contract *bind.BoundContract // Generic contract wrapper for the low level calls
}
// FarcasterIDRegistryTransactor is an auto generated write-only Go binding around an Ethereum contract.
type FarcasterIDRegistryTransactor struct {
contract *bind.BoundContract // Generic contract wrapper for the low level calls
}
// FarcasterIDRegistryFilterer is an auto generated log filtering Go binding around an Ethereum contract events.
type FarcasterIDRegistryFilterer struct {
contract *bind.BoundContract // Generic contract wrapper for the low level calls
}
// FarcasterIDRegistrySession is an auto generated Go binding around an Ethereum contract,
// with pre-set call and transact options.
type FarcasterIDRegistrySession struct {
Contract *FarcasterIDRegistry // Generic contract binding to set the session for
CallOpts bind.CallOpts // Call options to use throughout this session
TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session
}
// FarcasterIDRegistryCallerSession is an auto generated read-only Go binding around an Ethereum contract,
// with pre-set call options.
type FarcasterIDRegistryCallerSession struct {
Contract *FarcasterIDRegistryCaller // Generic contract caller binding to set the session for
CallOpts bind.CallOpts // Call options to use throughout this session
}
// FarcasterIDRegistryTransactorSession is an auto generated write-only Go binding around an Ethereum contract,
// with pre-set transact options.
type FarcasterIDRegistryTransactorSession struct {
Contract *FarcasterIDRegistryTransactor // Generic contract transactor binding to set the session for
TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session
}
// FarcasterIDRegistryRaw is an auto generated low-level Go binding around an Ethereum contract.
type FarcasterIDRegistryRaw struct {
Contract *FarcasterIDRegistry // Generic contract binding to access the raw methods on
}
// FarcasterIDRegistryCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract.
type FarcasterIDRegistryCallerRaw struct {
Contract *FarcasterIDRegistryCaller // Generic read-only contract binding to access the raw methods on
}
// FarcasterIDRegistryTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract.
type FarcasterIDRegistryTransactorRaw struct {
Contract *FarcasterIDRegistryTransactor // Generic write-only contract binding to access the raw methods on
}
// NewFarcasterIDRegistry creates a new instance of FarcasterIDRegistry, bound to a specific deployed contract.
func NewFarcasterIDRegistry(address common.Address, backend bind.ContractBackend) (*FarcasterIDRegistry, error) {
contract, err := bindFarcasterIDRegistry(address, backend, backend, backend)
if err != nil {
return nil, err
}
return &FarcasterIDRegistry{FarcasterIDRegistryCaller: FarcasterIDRegistryCaller{contract: contract}, FarcasterIDRegistryTransactor: FarcasterIDRegistryTransactor{contract: contract}, FarcasterIDRegistryFilterer: FarcasterIDRegistryFilterer{contract: contract}}, nil
}
// NewFarcasterIDRegistryCaller creates a new read-only instance of FarcasterIDRegistry, bound to a specific deployed contract.
func NewFarcasterIDRegistryCaller(address common.Address, caller bind.ContractCaller) (*FarcasterIDRegistryCaller, error) {
contract, err := bindFarcasterIDRegistry(address, caller, nil, nil)
if err != nil {
return nil, err
}
return &FarcasterIDRegistryCaller{contract: contract}, nil
}
// NewFarcasterIDRegistryTransactor creates a new write-only instance of FarcasterIDRegistry, bound to a specific deployed contract.
func NewFarcasterIDRegistryTransactor(address common.Address, transactor bind.ContractTransactor) (*FarcasterIDRegistryTransactor, error) {
contract, err := bindFarcasterIDRegistry(address, nil, transactor, nil)
if err != nil {
return nil, err
}
return &FarcasterIDRegistryTransactor{contract: contract}, nil
}
// NewFarcasterIDRegistryFilterer creates a new log filterer instance of FarcasterIDRegistry, bound to a specific deployed contract.
func NewFarcasterIDRegistryFilterer(address common.Address, filterer bind.ContractFilterer) (*FarcasterIDRegistryFilterer, error) {
contract, err := bindFarcasterIDRegistry(address, nil, nil, filterer)
if err != nil {
return nil, err
}
return &FarcasterIDRegistryFilterer{contract: contract}, nil
}
// bindFarcasterIDRegistry binds a generic wrapper to an already deployed contract.
func bindFarcasterIDRegistry(address common.Address, caller bind.ContractCaller, transactor bind.ContractTransactor, filterer bind.ContractFilterer) (*bind.BoundContract, error) {
parsed, err := FarcasterIDRegistryMetaData.GetAbi()
if err != nil {
return nil, err
}
return bind.NewBoundContract(address, *parsed, caller, transactor, filterer), nil
}
// Call invokes the (constant) contract method with params as input values and
// sets the output to result. The result type might be a single field for simple
// returns, a slice of interfaces for anonymous returns and a struct for named
// returns.
func (_FarcasterIDRegistry *FarcasterIDRegistryRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error {
return _FarcasterIDRegistry.Contract.FarcasterIDRegistryCaller.contract.Call(opts, result, method, params...)
}
// Transfer initiates a plain transaction to move funds to the contract, calling
// its default method if one is available.
func (_FarcasterIDRegistry *FarcasterIDRegistryRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) {
return _FarcasterIDRegistry.Contract.FarcasterIDRegistryTransactor.contract.Transfer(opts)
}
// Transact invokes the (paid) contract method with params as input values.
func (_FarcasterIDRegistry *FarcasterIDRegistryRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) {
return _FarcasterIDRegistry.Contract.FarcasterIDRegistryTransactor.contract.Transact(opts, method, params...)
}
// Call invokes the (constant) contract method with params as input values and
// sets the output to result. The result type might be a single field for simple
// returns, a slice of interfaces for anonymous returns and a struct for named
// returns.
func (_FarcasterIDRegistry *FarcasterIDRegistryCallerRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error {
return _FarcasterIDRegistry.Contract.contract.Call(opts, result, method, params...)
}
// Transfer initiates a plain transaction to move funds to the contract, calling
// its default method if one is available.
func (_FarcasterIDRegistry *FarcasterIDRegistryTransactorRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) {
return _FarcasterIDRegistry.Contract.contract.Transfer(opts)
}
// Transact invokes the (paid) contract method with params as input values.
func (_FarcasterIDRegistry *FarcasterIDRegistryTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) {
return _FarcasterIDRegistry.Contract.contract.Transact(opts, method, params...)
}
// CHANGERECOVERYADDRESSTYPEHASH is a free data retrieval call binding the contract method 0xd5bac7f3.
//
// Solidity: function CHANGE_RECOVERY_ADDRESS_TYPEHASH() view returns(bytes32)
func (_FarcasterIDRegistry *FarcasterIDRegistryCaller) CHANGERECOVERYADDRESSTYPEHASH(opts *bind.CallOpts) ([32]byte, error) {
var out []interface{}
err := _FarcasterIDRegistry.contract.Call(opts, &out, "CHANGE_RECOVERY_ADDRESS_TYPEHASH")
if err != nil {
return *new([32]byte), err
}
out0 := *abi.ConvertType(out[0], new([32]byte)).(*[32]byte)
return out0, err
}
// CHANGERECOVERYADDRESSTYPEHASH is a free data retrieval call binding the contract method 0xd5bac7f3.
//
// Solidity: function CHANGE_RECOVERY_ADDRESS_TYPEHASH() view returns(bytes32)
func (_FarcasterIDRegistry *FarcasterIDRegistrySession) CHANGERECOVERYADDRESSTYPEHASH() ([32]byte, error) {
return _FarcasterIDRegistry.Contract.CHANGERECOVERYADDRESSTYPEHASH(&_FarcasterIDRegistry.CallOpts)
}
// CHANGERECOVERYADDRESSTYPEHASH is a free data retrieval call binding the contract method 0xd5bac7f3.
//
// Solidity: function CHANGE_RECOVERY_ADDRESS_TYPEHASH() view returns(bytes32)
func (_FarcasterIDRegistry *FarcasterIDRegistryCallerSession) CHANGERECOVERYADDRESSTYPEHASH() ([32]byte, error) {
return _FarcasterIDRegistry.Contract.CHANGERECOVERYADDRESSTYPEHASH(&_FarcasterIDRegistry.CallOpts)
}
// TRANSFERANDCHANGERECOVERYTYPEHASH is a free data retrieval call binding the contract method 0xea2bbb83.
//
// Solidity: function TRANSFER_AND_CHANGE_RECOVERY_TYPEHASH() view returns(bytes32)
func (_FarcasterIDRegistry *FarcasterIDRegistryCaller) TRANSFERANDCHANGERECOVERYTYPEHASH(opts *bind.CallOpts) ([32]byte, error) {
var out []interface{}
err := _FarcasterIDRegistry.contract.Call(opts, &out, "TRANSFER_AND_CHANGE_RECOVERY_TYPEHASH")
if err != nil {
return *new([32]byte), err
}
out0 := *abi.ConvertType(out[0], new([32]byte)).(*[32]byte)
return out0, err
}
// TRANSFERANDCHANGERECOVERYTYPEHASH is a free data retrieval call binding the contract method 0xea2bbb83.
//
// Solidity: function TRANSFER_AND_CHANGE_RECOVERY_TYPEHASH() view returns(bytes32)
func (_FarcasterIDRegistry *FarcasterIDRegistrySession) TRANSFERANDCHANGERECOVERYTYPEHASH() ([32]byte, error) {
return _FarcasterIDRegistry.Contract.TRANSFERANDCHANGERECOVERYTYPEHASH(&_FarcasterIDRegistry.CallOpts)
}
// TRANSFERANDCHANGERECOVERYTYPEHASH is a free data retrieval call binding the contract method 0xea2bbb83.
//
// Solidity: function TRANSFER_AND_CHANGE_RECOVERY_TYPEHASH() view returns(bytes32)
func (_FarcasterIDRegistry *FarcasterIDRegistryCallerSession) TRANSFERANDCHANGERECOVERYTYPEHASH() ([32]byte, error) {
return _FarcasterIDRegistry.Contract.TRANSFERANDCHANGERECOVERYTYPEHASH(&_FarcasterIDRegistry.CallOpts)
}
// TRANSFERTYPEHASH is a free data retrieval call binding the contract method 0x00bf26f4.
//
// Solidity: function TRANSFER_TYPEHASH() view returns(bytes32)
func (_FarcasterIDRegistry *FarcasterIDRegistryCaller) TRANSFERTYPEHASH(opts *bind.CallOpts) ([32]byte, error) {
var out []interface{}
err := _FarcasterIDRegistry.contract.Call(opts, &out, "TRANSFER_TYPEHASH")
if err != nil {
return *new([32]byte), err
}
out0 := *abi.ConvertType(out[0], new([32]byte)).(*[32]byte)
return out0, err
}
// TRANSFERTYPEHASH is a free data retrieval call binding the contract method 0x00bf26f4.
//
// Solidity: function TRANSFER_TYPEHASH() view returns(bytes32)
func (_FarcasterIDRegistry *FarcasterIDRegistrySession) TRANSFERTYPEHASH() ([32]byte, error) {
return _FarcasterIDRegistry.Contract.TRANSFERTYPEHASH(&_FarcasterIDRegistry.CallOpts)
}
// TRANSFERTYPEHASH is a free data retrieval call binding the contract method 0x00bf26f4.
//
// Solidity: function TRANSFER_TYPEHASH() view returns(bytes32)
func (_FarcasterIDRegistry *FarcasterIDRegistryCallerSession) TRANSFERTYPEHASH() ([32]byte, error) {
return _FarcasterIDRegistry.Contract.TRANSFERTYPEHASH(&_FarcasterIDRegistry.CallOpts)
}
// VERSION is a free data retrieval call binding the contract method 0xffa1ad74.
//
// Solidity: function VERSION() view returns(string)
func (_FarcasterIDRegistry *FarcasterIDRegistryCaller) VERSION(opts *bind.CallOpts) (string, error) {
var out []interface{}
err := _FarcasterIDRegistry.contract.Call(opts, &out, "VERSION")
if err != nil {
return *new(string), err
}
out0 := *abi.ConvertType(out[0], new(string)).(*string)
return out0, err
}
// VERSION is a free data retrieval call binding the contract method 0xffa1ad74.
//
// Solidity: function VERSION() view returns(string)
func (_FarcasterIDRegistry *FarcasterIDRegistrySession) VERSION() (string, error) {
return _FarcasterIDRegistry.Contract.VERSION(&_FarcasterIDRegistry.CallOpts)
}
// VERSION is a free data retrieval call binding the contract method 0xffa1ad74.
//
// Solidity: function VERSION() view returns(string)
func (_FarcasterIDRegistry *FarcasterIDRegistryCallerSession) VERSION() (string, error) {
return _FarcasterIDRegistry.Contract.VERSION(&_FarcasterIDRegistry.CallOpts)
}
// CustodyOf is a free data retrieval call binding the contract method 0x65269e47.
//
// Solidity: function custodyOf(uint256 fid) view returns(address custody)
func (_FarcasterIDRegistry *FarcasterIDRegistryCaller) CustodyOf(opts *bind.CallOpts, fid *big.Int) (common.Address, error) {
var out []interface{}
err := _FarcasterIDRegistry.contract.Call(opts, &out, "custodyOf", fid)
if err != nil {
return *new(common.Address), err
}
out0 := *abi.ConvertType(out[0], new(common.Address)).(*common.Address)
return out0, err
}
// CustodyOf is a free data retrieval call binding the contract method 0x65269e47.
//
// Solidity: function custodyOf(uint256 fid) view returns(address custody)
func (_FarcasterIDRegistry *FarcasterIDRegistrySession) CustodyOf(fid *big.Int) (common.Address, error) {
return _FarcasterIDRegistry.Contract.CustodyOf(&_FarcasterIDRegistry.CallOpts, fid)
}
// CustodyOf is a free data retrieval call binding the contract method 0x65269e47.
//
// Solidity: function custodyOf(uint256 fid) view returns(address custody)
func (_FarcasterIDRegistry *FarcasterIDRegistryCallerSession) CustodyOf(fid *big.Int) (common.Address, error) {
return _FarcasterIDRegistry.Contract.CustodyOf(&_FarcasterIDRegistry.CallOpts, fid)
}
// DomainSeparatorV4 is a free data retrieval call binding the contract method 0x78e890ba.
//
// Solidity: function domainSeparatorV4() view returns(bytes32)
func (_FarcasterIDRegistry *FarcasterIDRegistryCaller) DomainSeparatorV4(opts *bind.CallOpts) ([32]byte, error) {
var out []interface{}
err := _FarcasterIDRegistry.contract.Call(opts, &out, "domainSeparatorV4")
if err != nil {
return *new([32]byte), err
}
out0 := *abi.ConvertType(out[0], new([32]byte)).(*[32]byte)
return out0, err
}
// DomainSeparatorV4 is a free data retrieval call binding the contract method 0x78e890ba.
//
// Solidity: function domainSeparatorV4() view returns(bytes32)
func (_FarcasterIDRegistry *FarcasterIDRegistrySession) DomainSeparatorV4() ([32]byte, error) {
return _FarcasterIDRegistry.Contract.DomainSeparatorV4(&_FarcasterIDRegistry.CallOpts)
}
// DomainSeparatorV4 is a free data retrieval call binding the contract method 0x78e890ba.
//
// Solidity: function domainSeparatorV4() view returns(bytes32)
func (_FarcasterIDRegistry *FarcasterIDRegistryCallerSession) DomainSeparatorV4() ([32]byte, error) {
return _FarcasterIDRegistry.Contract.DomainSeparatorV4(&_FarcasterIDRegistry.CallOpts)
}
// Eip712Domain is a free data retrieval call binding the contract method 0x84b0196e.
//
// Solidity: function eip712Domain() view returns(bytes1 fields, string name, string version, uint256 chainId, address verifyingContract, bytes32 salt, uint256[] extensions)
func (_FarcasterIDRegistry *FarcasterIDRegistryCaller) Eip712Domain(opts *bind.CallOpts) (struct {
Fields [1]byte
Name string
Version string
ChainId *big.Int
VerifyingContract common.Address
Salt [32]byte
Extensions []*big.Int
}, error) {
var out []interface{}
err := _FarcasterIDRegistry.contract.Call(opts, &out, "eip712Domain")
outstruct := new(struct {
Fields [1]byte
Name string
Version string
ChainId *big.Int
VerifyingContract common.Address
Salt [32]byte
Extensions []*big.Int
})
if err != nil {
return *outstruct, err
}
outstruct.Fields = *abi.ConvertType(out[0], new([1]byte)).(*[1]byte)
outstruct.Name = *abi.ConvertType(out[1], new(string)).(*string)
outstruct.Version = *abi.ConvertType(out[2], new(string)).(*string)
outstruct.ChainId = *abi.ConvertType(out[3], new(*big.Int)).(**big.Int)
outstruct.VerifyingContract = *abi.ConvertType(out[4], new(common.Address)).(*common.Address)
outstruct.Salt = *abi.ConvertType(out[5], new([32]byte)).(*[32]byte)
outstruct.Extensions = *abi.ConvertType(out[6], new([]*big.Int)).(*[]*big.Int)
return *outstruct, err
}
// Eip712Domain is a free data retrieval call binding the contract method 0x84b0196e.
//
// Solidity: function eip712Domain() view returns(bytes1 fields, string name, string version, uint256 chainId, address verifyingContract, bytes32 salt, uint256[] extensions)
func (_FarcasterIDRegistry *FarcasterIDRegistrySession) Eip712Domain() (struct {
Fields [1]byte
Name string
Version string
ChainId *big.Int
VerifyingContract common.Address
Salt [32]byte
Extensions []*big.Int
}, error) {
return _FarcasterIDRegistry.Contract.Eip712Domain(&_FarcasterIDRegistry.CallOpts)
}
// Eip712Domain is a free data retrieval call binding the contract method 0x84b0196e.
//
// Solidity: function eip712Domain() view returns(bytes1 fields, string name, string version, uint256 chainId, address verifyingContract, bytes32 salt, uint256[] extensions)
func (_FarcasterIDRegistry *FarcasterIDRegistryCallerSession) Eip712Domain() (struct {
Fields [1]byte
Name string
Version string
ChainId *big.Int
VerifyingContract common.Address
Salt [32]byte
Extensions []*big.Int
}, error) {
return _FarcasterIDRegistry.Contract.Eip712Domain(&_FarcasterIDRegistry.CallOpts)
}
// GatewayFrozen is a free data retrieval call binding the contract method 0x95e7549f.
//
// Solidity: function gatewayFrozen() view returns(bool)
func (_FarcasterIDRegistry *FarcasterIDRegistryCaller) GatewayFrozen(opts *bind.CallOpts) (bool, error) {
var out []interface{}
err := _FarcasterIDRegistry.contract.Call(opts, &out, "gatewayFrozen")
if err != nil {
return *new(bool), err
}
out0 := *abi.ConvertType(out[0], new(bool)).(*bool)
return out0, err
}
// GatewayFrozen is a free data retrieval call binding the contract method 0x95e7549f.
//
// Solidity: function gatewayFrozen() view returns(bool)
func (_FarcasterIDRegistry *FarcasterIDRegistrySession) GatewayFrozen() (bool, error) {
return _FarcasterIDRegistry.Contract.GatewayFrozen(&_FarcasterIDRegistry.CallOpts)
}
// GatewayFrozen is a free data retrieval call binding the contract method 0x95e7549f.
//
// Solidity: function gatewayFrozen() view returns(bool)
func (_FarcasterIDRegistry *FarcasterIDRegistryCallerSession) GatewayFrozen() (bool, error) {
return _FarcasterIDRegistry.Contract.GatewayFrozen(&_FarcasterIDRegistry.CallOpts)
}
// GracePeriod is a free data retrieval call binding the contract method 0xa06db7dc.
//
// Solidity: function gracePeriod() view returns(uint24)
func (_FarcasterIDRegistry *FarcasterIDRegistryCaller) GracePeriod(opts *bind.CallOpts) (*big.Int, error) {
var out []interface{}
err := _FarcasterIDRegistry.contract.Call(opts, &out, "gracePeriod")
if err != nil {
return *new(*big.Int), err
}
out0 := *abi.ConvertType(out[0], new(*big.Int)).(**big.Int)
return out0, err
}
// GracePeriod is a free data retrieval call binding the contract method 0xa06db7dc.
//
// Solidity: function gracePeriod() view returns(uint24)
func (_FarcasterIDRegistry *FarcasterIDRegistrySession) GracePeriod() (*big.Int, error) {
return _FarcasterIDRegistry.Contract.GracePeriod(&_FarcasterIDRegistry.CallOpts)
}
// GracePeriod is a free data retrieval call binding the contract method 0xa06db7dc.
//
// Solidity: function gracePeriod() view returns(uint24)
func (_FarcasterIDRegistry *FarcasterIDRegistryCallerSession) GracePeriod() (*big.Int, error) {
return _FarcasterIDRegistry.Contract.GracePeriod(&_FarcasterIDRegistry.CallOpts)
}
// Guardians is a free data retrieval call binding the contract method 0x0633b14a.
//
// Solidity: function guardians(address guardian) view returns(bool isGuardian)
func (_FarcasterIDRegistry *FarcasterIDRegistryCaller) Guardians(opts *bind.CallOpts, guardian common.Address) (bool, error) {
var out []interface{}
err := _FarcasterIDRegistry.contract.Call(opts, &out, "guardians", guardian)
if err != nil {
return *new(bool), err
}
out0 := *abi.ConvertType(out[0], new(bool)).(*bool)
return out0, err
}
// Guardians is a free data retrieval call binding the contract method 0x0633b14a.
//
// Solidity: function guardians(address guardian) view returns(bool isGuardian)
func (_FarcasterIDRegistry *FarcasterIDRegistrySession) Guardians(guardian common.Address) (bool, error) {
return _FarcasterIDRegistry.Contract.Guardians(&_FarcasterIDRegistry.CallOpts, guardian)
}
// Guardians is a free data retrieval call binding the contract method 0x0633b14a.
//
// Solidity: function guardians(address guardian) view returns(bool isGuardian)
func (_FarcasterIDRegistry *FarcasterIDRegistryCallerSession) Guardians(guardian common.Address) (bool, error) {
return _FarcasterIDRegistry.Contract.Guardians(&_FarcasterIDRegistry.CallOpts, guardian)
}
// HashTypedDataV4 is a free data retrieval call binding the contract method 0x4980f288.
//
// Solidity: function hashTypedDataV4(bytes32 structHash) view returns(bytes32)
func (_FarcasterIDRegistry *FarcasterIDRegistryCaller) HashTypedDataV4(opts *bind.CallOpts, structHash [32]byte) ([32]byte, error) {
var out []interface{}
err := _FarcasterIDRegistry.contract.Call(opts, &out, "hashTypedDataV4", structHash)
if err != nil {
return *new([32]byte), err
}
out0 := *abi.ConvertType(out[0], new([32]byte)).(*[32]byte)
return out0, err
}
// HashTypedDataV4 is a free data retrieval call binding the contract method 0x4980f288.
//
// Solidity: function hashTypedDataV4(bytes32 structHash) view returns(bytes32)
func (_FarcasterIDRegistry *FarcasterIDRegistrySession) HashTypedDataV4(structHash [32]byte) ([32]byte, error) {
return _FarcasterIDRegistry.Contract.HashTypedDataV4(&_FarcasterIDRegistry.CallOpts, structHash)
}
// HashTypedDataV4 is a free data retrieval call binding the contract method 0x4980f288.
//
// Solidity: function hashTypedDataV4(bytes32 structHash) view returns(bytes32)
func (_FarcasterIDRegistry *FarcasterIDRegistryCallerSession) HashTypedDataV4(structHash [32]byte) ([32]byte, error) {
return _FarcasterIDRegistry.Contract.HashTypedDataV4(&_FarcasterIDRegistry.CallOpts, structHash)
}
// IdCounter is a free data retrieval call binding the contract method 0xeb08ab28.
//
// Solidity: function idCounter() view returns(uint256)
func (_FarcasterIDRegistry *FarcasterIDRegistryCaller) IdCounter(opts *bind.CallOpts) (*big.Int, error) {
var out []interface{}
err := _FarcasterIDRegistry.contract.Call(opts, &out, "idCounter")
if err != nil {
return *new(*big.Int), err
}
out0 := *abi.ConvertType(out[0], new(*big.Int)).(**big.Int)
return out0, err
}
// IdCounter is a free data retrieval call binding the contract method 0xeb08ab28.
//
// Solidity: function idCounter() view returns(uint256)
func (_FarcasterIDRegistry *FarcasterIDRegistrySession) IdCounter() (*big.Int, error) {
return _FarcasterIDRegistry.Contract.IdCounter(&_FarcasterIDRegistry.CallOpts)
}
// IdCounter is a free data retrieval call binding the contract method 0xeb08ab28.
//
// Solidity: function idCounter() view returns(uint256)
func (_FarcasterIDRegistry *FarcasterIDRegistryCallerSession) IdCounter() (*big.Int, error) {
return _FarcasterIDRegistry.Contract.IdCounter(&_FarcasterIDRegistry.CallOpts)
}
// IdGateway is a free data retrieval call binding the contract method 0x4b57a600.
//
// Solidity: function idGateway() view returns(address)
func (_FarcasterIDRegistry *FarcasterIDRegistryCaller) IdGateway(opts *bind.CallOpts) (common.Address, error) {
var out []interface{}
err := _FarcasterIDRegistry.contract.Call(opts, &out, "idGateway")
if err != nil {
return *new(common.Address), err
}
out0 := *abi.ConvertType(out[0], new(common.Address)).(*common.Address)
return out0, err
}
// IdGateway is a free data retrieval call binding the contract method 0x4b57a600.
//
// Solidity: function idGateway() view returns(address)
func (_FarcasterIDRegistry *FarcasterIDRegistrySession) IdGateway() (common.Address, error) {
return _FarcasterIDRegistry.Contract.IdGateway(&_FarcasterIDRegistry.CallOpts)
}
// IdGateway is a free data retrieval call binding the contract method 0x4b57a600.
//
// Solidity: function idGateway() view returns(address)
func (_FarcasterIDRegistry *FarcasterIDRegistryCallerSession) IdGateway() (common.Address, error) {
return _FarcasterIDRegistry.Contract.IdGateway(&_FarcasterIDRegistry.CallOpts)
}
// IdOf is a free data retrieval call binding the contract method 0xd94fe832.
//
// Solidity: function idOf(address owner) view returns(uint256 fid)
func (_FarcasterIDRegistry *FarcasterIDRegistryCaller) IdOf(opts *bind.CallOpts, owner common.Address) (*big.Int, error) {
var out []interface{}
err := _FarcasterIDRegistry.contract.Call(opts, &out, "idOf", owner)
if err != nil {
return *new(*big.Int), err
}
out0 := *abi.ConvertType(out[0], new(*big.Int)).(**big.Int)
return out0, err
}
// IdOf is a free data retrieval call binding the contract method 0xd94fe832.
//
// Solidity: function idOf(address owner) view returns(uint256 fid)
func (_FarcasterIDRegistry *FarcasterIDRegistrySession) IdOf(owner common.Address) (*big.Int, error) {
return _FarcasterIDRegistry.Contract.IdOf(&_FarcasterIDRegistry.CallOpts, owner)
}
// IdOf is a free data retrieval call binding the contract method 0xd94fe832.
//
// Solidity: function idOf(address owner) view returns(uint256 fid)
func (_FarcasterIDRegistry *FarcasterIDRegistryCallerSession) IdOf(owner common.Address) (*big.Int, error) {
return _FarcasterIDRegistry.Contract.IdOf(&_FarcasterIDRegistry.CallOpts, owner)
}
// IsMigrated is a free data retrieval call binding the contract method 0xb06faf62.
//
// Solidity: function isMigrated() view returns(bool)
func (_FarcasterIDRegistry *FarcasterIDRegistryCaller) IsMigrated(opts *bind.CallOpts) (bool, error) {
var out []interface{}
err := _FarcasterIDRegistry.contract.Call(opts, &out, "isMigrated")
if err != nil {
return *new(bool), err
}
out0 := *abi.ConvertType(out[0], new(bool)).(*bool)
return out0, err
}
// IsMigrated is a free data retrieval call binding the contract method 0xb06faf62.
//
// Solidity: function isMigrated() view returns(bool)
func (_FarcasterIDRegistry *FarcasterIDRegistrySession) IsMigrated() (bool, error) {
return _FarcasterIDRegistry.Contract.IsMigrated(&_FarcasterIDRegistry.CallOpts)
}
// IsMigrated is a free data retrieval call binding the contract method 0xb06faf62.
//
// Solidity: function isMigrated() view returns(bool)
func (_FarcasterIDRegistry *FarcasterIDRegistryCallerSession) IsMigrated() (bool, error) {
return _FarcasterIDRegistry.Contract.IsMigrated(&_FarcasterIDRegistry.CallOpts)
}
// MigratedAt is a free data retrieval call binding the contract method 0x8b21e484.
//
// Solidity: function migratedAt() view returns(uint40)
func (_FarcasterIDRegistry *FarcasterIDRegistryCaller) MigratedAt(opts *bind.CallOpts) (*big.Int, error) {
var out []interface{}
err := _FarcasterIDRegistry.contract.Call(opts, &out, "migratedAt")
if err != nil {
return *new(*big.Int), err
}
out0 := *abi.ConvertType(out[0], new(*big.Int)).(**big.Int)
return out0, err
}
// MigratedAt is a free data retrieval call binding the contract method 0x8b21e484.
//
// Solidity: function migratedAt() view returns(uint40)
func (_FarcasterIDRegistry *FarcasterIDRegistrySession) MigratedAt() (*big.Int, error) {
return _FarcasterIDRegistry.Contract.MigratedAt(&_FarcasterIDRegistry.CallOpts)
}
// MigratedAt is a free data retrieval call binding the contract method 0x8b21e484.
//
// Solidity: function migratedAt() view returns(uint40)
func (_FarcasterIDRegistry *FarcasterIDRegistryCallerSession) MigratedAt() (*big.Int, error) {
return _FarcasterIDRegistry.Contract.MigratedAt(&_FarcasterIDRegistry.CallOpts)
}
// Migrator is a free data retrieval call binding the contract method 0x7cd07e47.
//
// Solidity: function migrator() view returns(address)
func (_FarcasterIDRegistry *FarcasterIDRegistryCaller) Migrator(opts *bind.CallOpts) (common.Address, error) {
var out []interface{}
err := _FarcasterIDRegistry.contract.Call(opts, &out, "migrator")
if err != nil {
return *new(common.Address), err
}
out0 := *abi.ConvertType(out[0], new(common.Address)).(*common.Address)
return out0, err
}
// Migrator is a free data retrieval call binding the contract method 0x7cd07e47.
//
// Solidity: function migrator() view returns(address)
func (_FarcasterIDRegistry *FarcasterIDRegistrySession) Migrator() (common.Address, error) {
return _FarcasterIDRegistry.Contract.Migrator(&_FarcasterIDRegistry.CallOpts)
}
// Migrator is a free data retrieval call binding the contract method 0x7cd07e47.
//
// Solidity: function migrator() view returns(address)
func (_FarcasterIDRegistry *FarcasterIDRegistryCallerSession) Migrator() (common.Address, error) {
return _FarcasterIDRegistry.Contract.Migrator(&_FarcasterIDRegistry.CallOpts)
}
// Name is a free data retrieval call binding the contract method 0x06fdde03.
//
// Solidity: function name() view returns(string)
func (_FarcasterIDRegistry *FarcasterIDRegistryCaller) Name(opts *bind.CallOpts) (string, error) {
var out []interface{}
err := _FarcasterIDRegistry.contract.Call(opts, &out, "name")
if err != nil {
return *new(string), err
}
out0 := *abi.ConvertType(out[0], new(string)).(*string)
return out0, err
}
// Name is a free data retrieval call binding the contract method 0x06fdde03.
//
// Solidity: function name() view returns(string)
func (_FarcasterIDRegistry *FarcasterIDRegistrySession) Name() (string, error) {
return _FarcasterIDRegistry.Contract.Name(&_FarcasterIDRegistry.CallOpts)
}
// Name is a free data retrieval call binding the contract method 0x06fdde03.
//
// Solidity: function name() view returns(string)
func (_FarcasterIDRegistry *FarcasterIDRegistryCallerSession) Name() (string, error) {
return _FarcasterIDRegistry.Contract.Name(&_FarcasterIDRegistry.CallOpts)
}
// Nonces is a free data retrieval call binding the contract method 0x7ecebe00.
//
// Solidity: function nonces(address owner) view returns(uint256)
func (_FarcasterIDRegistry *FarcasterIDRegistryCaller) Nonces(opts *bind.CallOpts, owner common.Address) (*big.Int, error) {
var out []interface{}
err := _FarcasterIDRegistry.contract.Call(opts, &out, "nonces", owner)
if err != nil {
return *new(*big.Int), err
}
out0 := *abi.ConvertType(out[0], new(*big.Int)).(**big.Int)
return out0, err
}
// Nonces is a free data retrieval call binding the contract method 0x7ecebe00.
//
// Solidity: function nonces(address owner) view returns(uint256)
func (_FarcasterIDRegistry *FarcasterIDRegistrySession) Nonces(owner common.Address) (*big.Int, error) {
return _FarcasterIDRegistry.Contract.Nonces(&_FarcasterIDRegistry.CallOpts, owner)
}
// Nonces is a free data retrieval call binding the contract method 0x7ecebe00.
//
// Solidity: function nonces(address owner) view returns(uint256)
func (_FarcasterIDRegistry *FarcasterIDRegistryCallerSession) Nonces(owner common.Address) (*big.Int, error) {
return _FarcasterIDRegistry.Contract.Nonces(&_FarcasterIDRegistry.CallOpts, owner)
}
// Owner is a free data retrieval call binding the contract method 0x8da5cb5b.
//
// Solidity: function owner() view returns(address)
func (_FarcasterIDRegistry *FarcasterIDRegistryCaller) Owner(opts *bind.CallOpts) (common.Address, error) {
var out []interface{}
err := _FarcasterIDRegistry.contract.Call(opts, &out, "owner")
if err != nil {
return *new(common.Address), err
}
out0 := *abi.ConvertType(out[0], new(common.Address)).(*common.Address)
return out0, err
}
// Owner is a free data retrieval call binding the contract method 0x8da5cb5b.
//
// Solidity: function owner() view returns(address)
func (_FarcasterIDRegistry *FarcasterIDRegistrySession) Owner() (common.Address, error) {
return _FarcasterIDRegistry.Contract.Owner(&_FarcasterIDRegistry.CallOpts)
}
// Owner is a free data retrieval call binding the contract method 0x8da5cb5b.
//
// Solidity: function owner() view returns(address)
func (_FarcasterIDRegistry *FarcasterIDRegistryCallerSession) Owner() (common.Address, error) {
return _FarcasterIDRegistry.Contract.Owner(&_FarcasterIDRegistry.CallOpts)
}
// Paused is a free data retrieval call binding the contract method 0x5c975abb.
//
// Solidity: function paused() view returns(bool)
func (_FarcasterIDRegistry *FarcasterIDRegistryCaller) Paused(opts *bind.CallOpts) (bool, error) {
var out []interface{}
err := _FarcasterIDRegistry.contract.Call(opts, &out, "paused")
if err != nil {
return *new(bool), err
}
out0 := *abi.ConvertType(out[0], new(bool)).(*bool)
return out0, err
}
// Paused is a free data retrieval call binding the contract method 0x5c975abb.
//
// Solidity: function paused() view returns(bool)
func (_FarcasterIDRegistry *FarcasterIDRegistrySession) Paused() (bool, error) {
return _FarcasterIDRegistry.Contract.Paused(&_FarcasterIDRegistry.CallOpts)
}
// Paused is a free data retrieval call binding the contract method 0x5c975abb.
//
// Solidity: function paused() view returns(bool)
func (_FarcasterIDRegistry *FarcasterIDRegistryCallerSession) Paused() (bool, error) {
return _FarcasterIDRegistry.Contract.Paused(&_FarcasterIDRegistry.CallOpts)
}
// PendingOwner is a free data retrieval call binding the contract method 0xe30c3978.
//
// Solidity: function pendingOwner() view returns(address)
func (_FarcasterIDRegistry *FarcasterIDRegistryCaller) PendingOwner(opts *bind.CallOpts) (common.Address, error) {
var out []interface{}
err := _FarcasterIDRegistry.contract.Call(opts, &out, "pendingOwner")
if err != nil {
return *new(common.Address), err
}
out0 := *abi.ConvertType(out[0], new(common.Address)).(*common.Address)
return out0, err
}
// PendingOwner is a free data retrieval call binding the contract method 0xe30c3978.
//
// Solidity: function pendingOwner() view returns(address)
func (_FarcasterIDRegistry *FarcasterIDRegistrySession) PendingOwner() (common.Address, error) {
return _FarcasterIDRegistry.Contract.PendingOwner(&_FarcasterIDRegistry.CallOpts)
}
// PendingOwner is a free data retrieval call binding the contract method 0xe30c3978.
//
// Solidity: function pendingOwner() view returns(address)
func (_FarcasterIDRegistry *FarcasterIDRegistryCallerSession) PendingOwner() (common.Address, error) {
return _FarcasterIDRegistry.Contract.PendingOwner(&_FarcasterIDRegistry.CallOpts)
}
// RecoveryOf is a free data retrieval call binding the contract method 0xfa1a1b25.
//
// Solidity: function recoveryOf(uint256 fid) view returns(address recovery)
func (_FarcasterIDRegistry *FarcasterIDRegistryCaller) RecoveryOf(opts *bind.CallOpts, fid *big.Int) (common.Address, error) {
var out []interface{}
err := _FarcasterIDRegistry.contract.Call(opts, &out, "recoveryOf", fid)
if err != nil {
return *new(common.Address), err
}
out0 := *abi.ConvertType(out[0], new(common.Address)).(*common.Address)
return out0, err
}
// RecoveryOf is a free data retrieval call binding the contract method 0xfa1a1b25.
//
// Solidity: function recoveryOf(uint256 fid) view returns(address recovery)
func (_FarcasterIDRegistry *FarcasterIDRegistrySession) RecoveryOf(fid *big.Int) (common.Address, error) {
return _FarcasterIDRegistry.Contract.RecoveryOf(&_FarcasterIDRegistry.CallOpts, fid)
}
// RecoveryOf is a free data retrieval call binding the contract method 0xfa1a1b25.
//
// Solidity: function recoveryOf(uint256 fid) view returns(address recovery)
func (_FarcasterIDRegistry *FarcasterIDRegistryCallerSession) RecoveryOf(fid *big.Int) (common.Address, error) {
return _FarcasterIDRegistry.Contract.RecoveryOf(&_FarcasterIDRegistry.CallOpts, fid)
}
// VerifyFidSignature is a free data retrieval call binding the contract method 0x32faac70.
//
// Solidity: function verifyFidSignature(address custodyAddress, uint256 fid, bytes32 digest, bytes sig) view returns(bool isValid)
func (_FarcasterIDRegistry *FarcasterIDRegistryCaller) VerifyFidSignature(opts *bind.CallOpts, custodyAddress common.Address, fid *big.Int, digest [32]byte, sig []byte) (bool, error) {
var out []interface{}
err := _FarcasterIDRegistry.contract.Call(opts, &out, "verifyFidSignature", custodyAddress, fid, digest, sig)
if err != nil {
return *new(bool), err
}
out0 := *abi.ConvertType(out[0], new(bool)).(*bool)
return out0, err
}
// VerifyFidSignature is a free data retrieval call binding the contract method 0x32faac70.
//
// Solidity: function verifyFidSignature(address custodyAddress, uint256 fid, bytes32 digest, bytes sig) view returns(bool isValid)
func (_FarcasterIDRegistry *FarcasterIDRegistrySession) VerifyFidSignature(custodyAddress common.Address, fid *big.Int, digest [32]byte, sig []byte) (bool, error) {
return _FarcasterIDRegistry.Contract.VerifyFidSignature(&_FarcasterIDRegistry.CallOpts, custodyAddress, fid, digest, sig)
}
// VerifyFidSignature is a free data retrieval call binding the contract method 0x32faac70.
//
// Solidity: function verifyFidSignature(address custodyAddress, uint256 fid, bytes32 digest, bytes sig) view returns(bool isValid)
func (_FarcasterIDRegistry *FarcasterIDRegistryCallerSession) VerifyFidSignature(custodyAddress common.Address, fid *big.Int, digest [32]byte, sig []byte) (bool, error) {
return _FarcasterIDRegistry.Contract.VerifyFidSignature(&_FarcasterIDRegistry.CallOpts, custodyAddress, fid, digest, sig)
}
// AcceptOwnership is a paid mutator transaction binding the contract method 0x79ba5097.
//
// Solidity: function acceptOwnership() returns()
func (_FarcasterIDRegistry *FarcasterIDRegistryTransactor) AcceptOwnership(opts *bind.TransactOpts) (*types.Transaction, error) {
return _FarcasterIDRegistry.contract.Transact(opts, "acceptOwnership")
}
// AcceptOwnership is a paid mutator transaction binding the contract method 0x79ba5097.
//
// Solidity: function acceptOwnership() returns()
func (_FarcasterIDRegistry *FarcasterIDRegistrySession) AcceptOwnership() (*types.Transaction, error) {
return _FarcasterIDRegistry.Contract.AcceptOwnership(&_FarcasterIDRegistry.TransactOpts)
}
// AcceptOwnership is a paid mutator transaction binding the contract method 0x79ba5097.
//
// Solidity: function acceptOwnership() returns()
func (_FarcasterIDRegistry *FarcasterIDRegistryTransactorSession) AcceptOwnership() (*types.Transaction, error) {
return _FarcasterIDRegistry.Contract.AcceptOwnership(&_FarcasterIDRegistry.TransactOpts)
}
// AddGuardian is a paid mutator transaction binding the contract method 0xa526d83b.