forked from thirdweb-dev/go-sdk
-
Notifications
You must be signed in to change notification settings - Fork 1
/
drop_erc1155.go
4553 lines (3910 loc) · 204 KB
/
drop_erc1155.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 abi
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
)
// IDrop1155AllowlistProof is an auto generated low-level Go binding around an user-defined struct.
type IDrop1155AllowlistProof struct {
Proof [][32]byte
QuantityLimitPerWallet *big.Int
PricePerToken *big.Int
Currency common.Address
}
// DropERC1155MetaData contains all meta data concerning the DropERC1155 contract.
var DropERC1155MetaData = &bind.MetaData{
ABI: "[{\"inputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"operator\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"bool\",\"name\":\"approved\",\"type\":\"bool\"}],\"name\":\"ApprovalForAll\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"},{\"components\":[{\"internalType\":\"uint256\",\"name\":\"startTimestamp\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"maxClaimableSupply\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"supplyClaimed\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"quantityLimitPerWallet\",\"type\":\"uint256\"},{\"internalType\":\"bytes32\",\"name\":\"merkleRoot\",\"type\":\"bytes32\"},{\"internalType\":\"uint256\",\"name\":\"pricePerToken\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"currency\",\"type\":\"address\"},{\"internalType\":\"string\",\"name\":\"metadata\",\"type\":\"string\"}],\"indexed\":false,\"internalType\":\"structIClaimCondition.ClaimCondition[]\",\"name\":\"claimConditions\",\"type\":\"tuple[]\"},{\"indexed\":false,\"internalType\":\"bool\",\"name\":\"resetEligibility\",\"type\":\"bool\"}],\"name\":\"ClaimConditionsUpdated\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"string\",\"name\":\"prevURI\",\"type\":\"string\"},{\"indexed\":false,\"internalType\":\"string\",\"name\":\"newURI\",\"type\":\"string\"}],\"name\":\"ContractURIUpdated\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"newRoyaltyRecipient\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"newRoyaltyBps\",\"type\":\"uint256\"}],\"name\":\"DefaultRoyalty\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint8\",\"name\":\"version\",\"type\":\"uint8\"}],\"name\":\"Initialized\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"maxTotalSupply\",\"type\":\"uint256\"}],\"name\":\"MaxTotalSupplyUpdated\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"prevOwner\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"OwnerUpdated\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"platformFeeRecipient\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"platformFeeBps\",\"type\":\"uint256\"}],\"name\":\"PlatformFeeInfoUpdated\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"recipient\",\"type\":\"address\"}],\"name\":\"PrimarySaleRecipientUpdated\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"},{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"previousAdminRole\",\"type\":\"bytes32\"},{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"newAdminRole\",\"type\":\"bytes32\"}],\"name\":\"RoleAdminChanged\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"}],\"name\":\"RoleGranted\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"}],\"name\":\"RoleRevoked\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"royaltyRecipient\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"royaltyBps\",\"type\":\"uint256\"}],\"name\":\"RoyaltyForToken\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"saleRecipient\",\"type\":\"address\"}],\"name\":\"SaleRecipientForTokenUpdated\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"claimConditionIndex\",\"type\":\"uint256\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"claimer\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"receiver\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"quantityClaimed\",\"type\":\"uint256\"}],\"name\":\"TokensClaimed\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"startTokenId\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"endTokenId\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"string\",\"name\":\"baseURI\",\"type\":\"string\"},{\"indexed\":false,\"internalType\":\"bytes\",\"name\":\"encryptedBaseURI\",\"type\":\"bytes\"}],\"name\":\"TokensLazyMinted\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"operator\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"from\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256[]\",\"name\":\"ids\",\"type\":\"uint256[]\"},{\"indexed\":false,\"internalType\":\"uint256[]\",\"name\":\"values\",\"type\":\"uint256[]\"}],\"name\":\"TransferBatch\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"operator\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"from\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"id\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"}],\"name\":\"TransferSingle\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"string\",\"name\":\"value\",\"type\":\"string\"},{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"id\",\"type\":\"uint256\"}],\"name\":\"URI\",\"type\":\"event\"},{\"inputs\":[],\"name\":\"DEFAULT_ADMIN_ROLE\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"id\",\"type\":\"uint256\"}],\"name\":\"balanceOf\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address[]\",\"name\":\"accounts\",\"type\":\"address[]\"},{\"internalType\":\"uint256[]\",\"name\":\"ids\",\"type\":\"uint256[]\"}],\"name\":\"balanceOfBatch\",\"outputs\":[{\"internalType\":\"uint256[]\",\"name\":\"\",\"type\":\"uint256[]\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"},{\"internalType\":\"uint256[]\",\"name\":\"ids\",\"type\":\"uint256[]\"},{\"internalType\":\"uint256[]\",\"name\":\"values\",\"type\":\"uint256[]\"}],\"name\":\"burnBatch\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_receiver\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"_tokenId\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"_quantity\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"_currency\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"_pricePerToken\",\"type\":\"uint256\"},{\"components\":[{\"internalType\":\"bytes32[]\",\"name\":\"proof\",\"type\":\"bytes32[]\"},{\"internalType\":\"uint256\",\"name\":\"quantityLimitPerWallet\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"pricePerToken\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"currency\",\"type\":\"address\"}],\"internalType\":\"structIDrop1155.AllowlistProof\",\"name\":\"_allowlistProof\",\"type\":\"tuple\"},{\"internalType\":\"bytes\",\"name\":\"_data\",\"type\":\"bytes\"}],\"name\":\"claim\",\"outputs\":[],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"name\":\"claimCondition\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"currentStartId\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"count\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"contractType\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"pure\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"contractURI\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"contractVersion\",\"outputs\":[{\"internalType\":\"uint8\",\"name\":\"\",\"type\":\"uint8\"}],\"stateMutability\":\"pure\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_tokenId\",\"type\":\"uint256\"}],\"name\":\"getActiveClaimConditionId\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getBaseURICount\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_index\",\"type\":\"uint256\"}],\"name\":\"getBatchIdAtIndex\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_tokenId\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"_conditionId\",\"type\":\"uint256\"}],\"name\":\"getClaimConditionById\",\"outputs\":[{\"components\":[{\"internalType\":\"uint256\",\"name\":\"startTimestamp\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"maxClaimableSupply\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"supplyClaimed\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"quantityLimitPerWallet\",\"type\":\"uint256\"},{\"internalType\":\"bytes32\",\"name\":\"merkleRoot\",\"type\":\"bytes32\"},{\"internalType\":\"uint256\",\"name\":\"pricePerToken\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"currency\",\"type\":\"address\"},{\"internalType\":\"string\",\"name\":\"metadata\",\"type\":\"string\"}],\"internalType\":\"structIClaimCondition.ClaimCondition\",\"name\":\"condition\",\"type\":\"tuple\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getDefaultRoyaltyInfo\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"},{\"internalType\":\"uint16\",\"name\":\"\",\"type\":\"uint16\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getPlatformFeeInfo\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"},{\"internalType\":\"uint16\",\"name\":\"\",\"type\":\"uint16\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"}],\"name\":\"getRoleAdmin\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"},{\"internalType\":\"uint256\",\"name\":\"index\",\"type\":\"uint256\"}],\"name\":\"getRoleMember\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"member\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"}],\"name\":\"getRoleMemberCount\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"count\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_tokenId\",\"type\":\"uint256\"}],\"name\":\"getRoyaltyInfoForToken\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"},{\"internalType\":\"uint16\",\"name\":\"\",\"type\":\"uint16\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_tokenId\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"_conditionId\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"_claimer\",\"type\":\"address\"}],\"name\":\"getSupplyClaimedByWallet\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"supplyClaimedByWallet\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"},{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"grantRole\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"},{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"hasRole\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"},{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"hasRoleWithSwitch\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_defaultAdmin\",\"type\":\"address\"},{\"internalType\":\"string\",\"name\":\"_name\",\"type\":\"string\"},{\"internalType\":\"string\",\"name\":\"_symbol\",\"type\":\"string\"},{\"internalType\":\"string\",\"name\":\"_contractURI\",\"type\":\"string\"},{\"internalType\":\"address[]\",\"name\":\"_trustedForwarders\",\"type\":\"address[]\"},{\"internalType\":\"address\",\"name\":\"_saleRecipient\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"_royaltyRecipient\",\"type\":\"address\"},{\"internalType\":\"uint128\",\"name\":\"_royaltyBps\",\"type\":\"uint128\"},{\"internalType\":\"uint128\",\"name\":\"_platformFeeBps\",\"type\":\"uint128\"},{\"internalType\":\"address\",\"name\":\"_platformFeeRecipient\",\"type\":\"address\"}],\"name\":\"initialize\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"operator\",\"type\":\"address\"}],\"name\":\"isApprovedForAll\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"forwarder\",\"type\":\"address\"}],\"name\":\"isTrustedForwarder\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_amount\",\"type\":\"uint256\"},{\"internalType\":\"string\",\"name\":\"_baseURIForTokens\",\"type\":\"string\"},{\"internalType\":\"bytes\",\"name\":\"_data\",\"type\":\"bytes\"}],\"name\":\"lazyMint\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"batchId\",\"type\":\"uint256\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"name\":\"maxTotalSupply\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes[]\",\"name\":\"data\",\"type\":\"bytes[]\"}],\"name\":\"multicall\",\"outputs\":[{\"internalType\":\"bytes[]\",\"name\":\"results\",\"type\":\"bytes[]\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"name\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"nextTokenIdToMint\",\"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\":\"primarySaleRecipient\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"},{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"renounceRole\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"},{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"revokeRole\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"salePrice\",\"type\":\"uint256\"}],\"name\":\"royaltyInfo\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"receiver\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"royaltyAmount\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"from\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256[]\",\"name\":\"ids\",\"type\":\"uint256[]\"},{\"internalType\":\"uint256[]\",\"name\":\"amounts\",\"type\":\"uint256[]\"},{\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"}],\"name\":\"safeBatchTransferFrom\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"from\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"id\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"}],\"name\":\"safeTransferFrom\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"name\":\"saleRecipient\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"operator\",\"type\":\"address\"},{\"internalType\":\"bool\",\"name\":\"approved\",\"type\":\"bool\"}],\"name\":\"setApprovalForAll\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_tokenId\",\"type\":\"uint256\"},{\"components\":[{\"internalType\":\"uint256\",\"name\":\"startTimestamp\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"maxClaimableSupply\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"supplyClaimed\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"quantityLimitPerWallet\",\"type\":\"uint256\"},{\"internalType\":\"bytes32\",\"name\":\"merkleRoot\",\"type\":\"bytes32\"},{\"internalType\":\"uint256\",\"name\":\"pricePerToken\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"currency\",\"type\":\"address\"},{\"internalType\":\"string\",\"name\":\"metadata\",\"type\":\"string\"}],\"internalType\":\"structIClaimCondition.ClaimCondition[]\",\"name\":\"_conditions\",\"type\":\"tuple[]\"},{\"internalType\":\"bool\",\"name\":\"_resetClaimEligibility\",\"type\":\"bool\"}],\"name\":\"setClaimConditions\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"string\",\"name\":\"_uri\",\"type\":\"string\"}],\"name\":\"setContractURI\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_royaltyRecipient\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"_royaltyBps\",\"type\":\"uint256\"}],\"name\":\"setDefaultRoyaltyInfo\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_tokenId\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"_maxTotalSupply\",\"type\":\"uint256\"}],\"name\":\"setMaxTotalSupply\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_newOwner\",\"type\":\"address\"}],\"name\":\"setOwner\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_platformFeeRecipient\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"_platformFeeBps\",\"type\":\"uint256\"}],\"name\":\"setPlatformFeeInfo\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_saleRecipient\",\"type\":\"address\"}],\"name\":\"setPrimarySaleRecipient\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_tokenId\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"_recipient\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"_bps\",\"type\":\"uint256\"}],\"name\":\"setRoyaltyInfoForToken\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_tokenId\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"_saleRecipient\",\"type\":\"address\"}],\"name\":\"setSaleRecipientForToken\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes4\",\"name\":\"interfaceId\",\"type\":\"bytes4\"}],\"name\":\"supportsInterface\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"symbol\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"name\":\"totalSupply\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_tokenId\",\"type\":\"uint256\"}],\"name\":\"uri\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_conditionId\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"_claimer\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"_tokenId\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"_quantity\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"_currency\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"_pricePerToken\",\"type\":\"uint256\"},{\"components\":[{\"internalType\":\"bytes32[]\",\"name\":\"proof\",\"type\":\"bytes32[]\"},{\"internalType\":\"uint256\",\"name\":\"quantityLimitPerWallet\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"pricePerToken\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"currency\",\"type\":\"address\"}],\"internalType\":\"structIDrop1155.AllowlistProof\",\"name\":\"_allowlistProof\",\"type\":\"tuple\"}],\"name\":\"verifyClaim\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"isOverride\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"}]",
}
// DropERC1155ABI is the input ABI used to generate the binding from.
// Deprecated: Use DropERC1155MetaData.ABI instead.
var DropERC1155ABI = DropERC1155MetaData.ABI
// DropERC1155 is an auto generated Go binding around an Ethereum contract.
type DropERC1155 struct {
DropERC1155Caller // Read-only binding to the contract
DropERC1155Transactor // Write-only binding to the contract
DropERC1155Filterer // Log filterer for contract events
}
// DropERC1155Caller is an auto generated read-only Go binding around an Ethereum contract.
type DropERC1155Caller struct {
contract *bind.BoundContract // Generic contract wrapper for the low level calls
}
// DropERC1155Transactor is an auto generated write-only Go binding around an Ethereum contract.
type DropERC1155Transactor struct {
contract *bind.BoundContract // Generic contract wrapper for the low level calls
}
// DropERC1155Filterer is an auto generated log filtering Go binding around an Ethereum contract events.
type DropERC1155Filterer struct {
contract *bind.BoundContract // Generic contract wrapper for the low level calls
}
// DropERC1155Session is an auto generated Go binding around an Ethereum contract,
// with pre-set call and transact options.
type DropERC1155Session struct {
Contract *DropERC1155 // 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
}
// DropERC1155CallerSession is an auto generated read-only Go binding around an Ethereum contract,
// with pre-set call options.
type DropERC1155CallerSession struct {
Contract *DropERC1155Caller // Generic contract caller binding to set the session for
CallOpts bind.CallOpts // Call options to use throughout this session
}
// DropERC1155TransactorSession is an auto generated write-only Go binding around an Ethereum contract,
// with pre-set transact options.
type DropERC1155TransactorSession struct {
Contract *DropERC1155Transactor // Generic contract transactor binding to set the session for
TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session
}
// DropERC1155Raw is an auto generated low-level Go binding around an Ethereum contract.
type DropERC1155Raw struct {
Contract *DropERC1155 // Generic contract binding to access the raw methods on
}
// DropERC1155CallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract.
type DropERC1155CallerRaw struct {
Contract *DropERC1155Caller // Generic read-only contract binding to access the raw methods on
}
// DropERC1155TransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract.
type DropERC1155TransactorRaw struct {
Contract *DropERC1155Transactor // Generic write-only contract binding to access the raw methods on
}
// NewDropERC1155 creates a new instance of DropERC1155, bound to a specific deployed contract.
func NewDropERC1155(address common.Address, backend bind.ContractBackend) (*DropERC1155, error) {
contract, err := bindDropERC1155(address, backend, backend, backend)
if err != nil {
return nil, err
}
return &DropERC1155{DropERC1155Caller: DropERC1155Caller{contract: contract}, DropERC1155Transactor: DropERC1155Transactor{contract: contract}, DropERC1155Filterer: DropERC1155Filterer{contract: contract}}, nil
}
// NewDropERC1155Caller creates a new read-only instance of DropERC1155, bound to a specific deployed contract.
func NewDropERC1155Caller(address common.Address, caller bind.ContractCaller) (*DropERC1155Caller, error) {
contract, err := bindDropERC1155(address, caller, nil, nil)
if err != nil {
return nil, err
}
return &DropERC1155Caller{contract: contract}, nil
}
// NewDropERC1155Transactor creates a new write-only instance of DropERC1155, bound to a specific deployed contract.
func NewDropERC1155Transactor(address common.Address, transactor bind.ContractTransactor) (*DropERC1155Transactor, error) {
contract, err := bindDropERC1155(address, nil, transactor, nil)
if err != nil {
return nil, err
}
return &DropERC1155Transactor{contract: contract}, nil
}
// NewDropERC1155Filterer creates a new log filterer instance of DropERC1155, bound to a specific deployed contract.
func NewDropERC1155Filterer(address common.Address, filterer bind.ContractFilterer) (*DropERC1155Filterer, error) {
contract, err := bindDropERC1155(address, nil, nil, filterer)
if err != nil {
return nil, err
}
return &DropERC1155Filterer{contract: contract}, nil
}
// bindDropERC1155 binds a generic wrapper to an already deployed contract.
func bindDropERC1155(address common.Address, caller bind.ContractCaller, transactor bind.ContractTransactor, filterer bind.ContractFilterer) (*bind.BoundContract, error) {
parsed, err := abi.JSON(strings.NewReader(DropERC1155ABI))
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 (_DropERC1155 *DropERC1155Raw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error {
return _DropERC1155.Contract.DropERC1155Caller.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 (_DropERC1155 *DropERC1155Raw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) {
return _DropERC1155.Contract.DropERC1155Transactor.contract.Transfer(opts)
}
// Transact invokes the (paid) contract method with params as input values.
func (_DropERC1155 *DropERC1155Raw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) {
return _DropERC1155.Contract.DropERC1155Transactor.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 (_DropERC1155 *DropERC1155CallerRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error {
return _DropERC1155.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 (_DropERC1155 *DropERC1155TransactorRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) {
return _DropERC1155.Contract.contract.Transfer(opts)
}
// Transact invokes the (paid) contract method with params as input values.
func (_DropERC1155 *DropERC1155TransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) {
return _DropERC1155.Contract.contract.Transact(opts, method, params...)
}
// DEFAULTADMINROLE is a free data retrieval call binding the contract method 0xa217fddf.
//
// Solidity: function DEFAULT_ADMIN_ROLE() view returns(bytes32)
func (_DropERC1155 *DropERC1155Caller) DEFAULTADMINROLE(opts *bind.CallOpts) ([32]byte, error) {
var out []interface{}
err := _DropERC1155.contract.Call(opts, &out, "DEFAULT_ADMIN_ROLE")
if err != nil {
return *new([32]byte), err
}
out0 := *abi.ConvertType(out[0], new([32]byte)).(*[32]byte)
return out0, err
}
// DEFAULTADMINROLE is a free data retrieval call binding the contract method 0xa217fddf.
//
// Solidity: function DEFAULT_ADMIN_ROLE() view returns(bytes32)
func (_DropERC1155 *DropERC1155Session) DEFAULTADMINROLE() ([32]byte, error) {
return _DropERC1155.Contract.DEFAULTADMINROLE(&_DropERC1155.CallOpts)
}
// DEFAULTADMINROLE is a free data retrieval call binding the contract method 0xa217fddf.
//
// Solidity: function DEFAULT_ADMIN_ROLE() view returns(bytes32)
func (_DropERC1155 *DropERC1155CallerSession) DEFAULTADMINROLE() ([32]byte, error) {
return _DropERC1155.Contract.DEFAULTADMINROLE(&_DropERC1155.CallOpts)
}
// BalanceOf is a free data retrieval call binding the contract method 0x00fdd58e.
//
// Solidity: function balanceOf(address account, uint256 id) view returns(uint256)
func (_DropERC1155 *DropERC1155Caller) BalanceOf(opts *bind.CallOpts, account common.Address, id *big.Int) (*big.Int, error) {
var out []interface{}
err := _DropERC1155.contract.Call(opts, &out, "balanceOf", account, id)
if err != nil {
return *new(*big.Int), err
}
out0 := *abi.ConvertType(out[0], new(*big.Int)).(**big.Int)
return out0, err
}
// BalanceOf is a free data retrieval call binding the contract method 0x00fdd58e.
//
// Solidity: function balanceOf(address account, uint256 id) view returns(uint256)
func (_DropERC1155 *DropERC1155Session) BalanceOf(account common.Address, id *big.Int) (*big.Int, error) {
return _DropERC1155.Contract.BalanceOf(&_DropERC1155.CallOpts, account, id)
}
// BalanceOf is a free data retrieval call binding the contract method 0x00fdd58e.
//
// Solidity: function balanceOf(address account, uint256 id) view returns(uint256)
func (_DropERC1155 *DropERC1155CallerSession) BalanceOf(account common.Address, id *big.Int) (*big.Int, error) {
return _DropERC1155.Contract.BalanceOf(&_DropERC1155.CallOpts, account, id)
}
// BalanceOfBatch is a free data retrieval call binding the contract method 0x4e1273f4.
//
// Solidity: function balanceOfBatch(address[] accounts, uint256[] ids) view returns(uint256[])
func (_DropERC1155 *DropERC1155Caller) BalanceOfBatch(opts *bind.CallOpts, accounts []common.Address, ids []*big.Int) ([]*big.Int, error) {
var out []interface{}
err := _DropERC1155.contract.Call(opts, &out, "balanceOfBatch", accounts, ids)
if err != nil {
return *new([]*big.Int), err
}
out0 := *abi.ConvertType(out[0], new([]*big.Int)).(*[]*big.Int)
return out0, err
}
// BalanceOfBatch is a free data retrieval call binding the contract method 0x4e1273f4.
//
// Solidity: function balanceOfBatch(address[] accounts, uint256[] ids) view returns(uint256[])
func (_DropERC1155 *DropERC1155Session) BalanceOfBatch(accounts []common.Address, ids []*big.Int) ([]*big.Int, error) {
return _DropERC1155.Contract.BalanceOfBatch(&_DropERC1155.CallOpts, accounts, ids)
}
// BalanceOfBatch is a free data retrieval call binding the contract method 0x4e1273f4.
//
// Solidity: function balanceOfBatch(address[] accounts, uint256[] ids) view returns(uint256[])
func (_DropERC1155 *DropERC1155CallerSession) BalanceOfBatch(accounts []common.Address, ids []*big.Int) ([]*big.Int, error) {
return _DropERC1155.Contract.BalanceOfBatch(&_DropERC1155.CallOpts, accounts, ids)
}
// ClaimCondition is a free data retrieval call binding the contract method 0xe9703d25.
//
// Solidity: function claimCondition(uint256 ) view returns(uint256 currentStartId, uint256 count)
func (_DropERC1155 *DropERC1155Caller) ClaimCondition(opts *bind.CallOpts, arg0 *big.Int) (struct {
CurrentStartId *big.Int
Count *big.Int
}, error) {
var out []interface{}
err := _DropERC1155.contract.Call(opts, &out, "claimCondition", arg0)
outstruct := new(struct {
CurrentStartId *big.Int
Count *big.Int
})
if err != nil {
return *outstruct, err
}
outstruct.CurrentStartId = *abi.ConvertType(out[0], new(*big.Int)).(**big.Int)
outstruct.Count = *abi.ConvertType(out[1], new(*big.Int)).(**big.Int)
return *outstruct, err
}
// ClaimCondition is a free data retrieval call binding the contract method 0xe9703d25.
//
// Solidity: function claimCondition(uint256 ) view returns(uint256 currentStartId, uint256 count)
func (_DropERC1155 *DropERC1155Session) ClaimCondition(arg0 *big.Int) (struct {
CurrentStartId *big.Int
Count *big.Int
}, error) {
return _DropERC1155.Contract.ClaimCondition(&_DropERC1155.CallOpts, arg0)
}
// ClaimCondition is a free data retrieval call binding the contract method 0xe9703d25.
//
// Solidity: function claimCondition(uint256 ) view returns(uint256 currentStartId, uint256 count)
func (_DropERC1155 *DropERC1155CallerSession) ClaimCondition(arg0 *big.Int) (struct {
CurrentStartId *big.Int
Count *big.Int
}, error) {
return _DropERC1155.Contract.ClaimCondition(&_DropERC1155.CallOpts, arg0)
}
// ContractType is a free data retrieval call binding the contract method 0xcb2ef6f7.
//
// Solidity: function contractType() pure returns(bytes32)
func (_DropERC1155 *DropERC1155Caller) ContractType(opts *bind.CallOpts) ([32]byte, error) {
var out []interface{}
err := _DropERC1155.contract.Call(opts, &out, "contractType")
if err != nil {
return *new([32]byte), err
}
out0 := *abi.ConvertType(out[0], new([32]byte)).(*[32]byte)
return out0, err
}
// ContractType is a free data retrieval call binding the contract method 0xcb2ef6f7.
//
// Solidity: function contractType() pure returns(bytes32)
func (_DropERC1155 *DropERC1155Session) ContractType() ([32]byte, error) {
return _DropERC1155.Contract.ContractType(&_DropERC1155.CallOpts)
}
// ContractType is a free data retrieval call binding the contract method 0xcb2ef6f7.
//
// Solidity: function contractType() pure returns(bytes32)
func (_DropERC1155 *DropERC1155CallerSession) ContractType() ([32]byte, error) {
return _DropERC1155.Contract.ContractType(&_DropERC1155.CallOpts)
}
// InternalContractURI is a free data retrieval call binding the contract method 0xe8a3d485.
//
// Solidity: function contractURI() view returns(string)
func (_DropERC1155 *DropERC1155Caller) InternalContractURI(opts *bind.CallOpts) (string, error) {
var out []interface{}
err := _DropERC1155.contract.Call(opts, &out, "contractURI")
if err != nil {
return *new(string), err
}
out0 := *abi.ConvertType(out[0], new(string)).(*string)
return out0, err
}
// InternalContractURI is a free data retrieval call binding the contract method 0xe8a3d485.
//
// Solidity: function contractURI() view returns(string)
func (_DropERC1155 *DropERC1155Session) InternalContractURI() (string, error) {
return _DropERC1155.Contract.InternalContractURI(&_DropERC1155.CallOpts)
}
// InternalContractURI is a free data retrieval call binding the contract method 0xe8a3d485.
//
// Solidity: function contractURI() view returns(string)
func (_DropERC1155 *DropERC1155CallerSession) InternalContractURI() (string, error) {
return _DropERC1155.Contract.InternalContractURI(&_DropERC1155.CallOpts)
}
// ContractVersion is a free data retrieval call binding the contract method 0xa0a8e460.
//
// Solidity: function contractVersion() pure returns(uint8)
func (_DropERC1155 *DropERC1155Caller) ContractVersion(opts *bind.CallOpts) (uint8, error) {
var out []interface{}
err := _DropERC1155.contract.Call(opts, &out, "contractVersion")
if err != nil {
return *new(uint8), err
}
out0 := *abi.ConvertType(out[0], new(uint8)).(*uint8)
return out0, err
}
// ContractVersion is a free data retrieval call binding the contract method 0xa0a8e460.
//
// Solidity: function contractVersion() pure returns(uint8)
func (_DropERC1155 *DropERC1155Session) ContractVersion() (uint8, error) {
return _DropERC1155.Contract.ContractVersion(&_DropERC1155.CallOpts)
}
// ContractVersion is a free data retrieval call binding the contract method 0xa0a8e460.
//
// Solidity: function contractVersion() pure returns(uint8)
func (_DropERC1155 *DropERC1155CallerSession) ContractVersion() (uint8, error) {
return _DropERC1155.Contract.ContractVersion(&_DropERC1155.CallOpts)
}
// GetActiveClaimConditionId is a free data retrieval call binding the contract method 0x5ab063e8.
//
// Solidity: function getActiveClaimConditionId(uint256 _tokenId) view returns(uint256)
func (_DropERC1155 *DropERC1155Caller) GetActiveClaimConditionId(opts *bind.CallOpts, _tokenId *big.Int) (*big.Int, error) {
var out []interface{}
err := _DropERC1155.contract.Call(opts, &out, "getActiveClaimConditionId", _tokenId)
if err != nil {
return *new(*big.Int), err
}
out0 := *abi.ConvertType(out[0], new(*big.Int)).(**big.Int)
return out0, err
}
// GetActiveClaimConditionId is a free data retrieval call binding the contract method 0x5ab063e8.
//
// Solidity: function getActiveClaimConditionId(uint256 _tokenId) view returns(uint256)
func (_DropERC1155 *DropERC1155Session) GetActiveClaimConditionId(_tokenId *big.Int) (*big.Int, error) {
return _DropERC1155.Contract.GetActiveClaimConditionId(&_DropERC1155.CallOpts, _tokenId)
}
// GetActiveClaimConditionId is a free data retrieval call binding the contract method 0x5ab063e8.
//
// Solidity: function getActiveClaimConditionId(uint256 _tokenId) view returns(uint256)
func (_DropERC1155 *DropERC1155CallerSession) GetActiveClaimConditionId(_tokenId *big.Int) (*big.Int, error) {
return _DropERC1155.Contract.GetActiveClaimConditionId(&_DropERC1155.CallOpts, _tokenId)
}
// GetBaseURICount is a free data retrieval call binding the contract method 0x63b45e2d.
//
// Solidity: function getBaseURICount() view returns(uint256)
func (_DropERC1155 *DropERC1155Caller) GetBaseURICount(opts *bind.CallOpts) (*big.Int, error) {
var out []interface{}
err := _DropERC1155.contract.Call(opts, &out, "getBaseURICount")
if err != nil {
return *new(*big.Int), err
}
out0 := *abi.ConvertType(out[0], new(*big.Int)).(**big.Int)
return out0, err
}
// GetBaseURICount is a free data retrieval call binding the contract method 0x63b45e2d.
//
// Solidity: function getBaseURICount() view returns(uint256)
func (_DropERC1155 *DropERC1155Session) GetBaseURICount() (*big.Int, error) {
return _DropERC1155.Contract.GetBaseURICount(&_DropERC1155.CallOpts)
}
// GetBaseURICount is a free data retrieval call binding the contract method 0x63b45e2d.
//
// Solidity: function getBaseURICount() view returns(uint256)
func (_DropERC1155 *DropERC1155CallerSession) GetBaseURICount() (*big.Int, error) {
return _DropERC1155.Contract.GetBaseURICount(&_DropERC1155.CallOpts)
}
// GetBatchIdAtIndex is a free data retrieval call binding the contract method 0x2419f51b.
//
// Solidity: function getBatchIdAtIndex(uint256 _index) view returns(uint256)
func (_DropERC1155 *DropERC1155Caller) GetBatchIdAtIndex(opts *bind.CallOpts, _index *big.Int) (*big.Int, error) {
var out []interface{}
err := _DropERC1155.contract.Call(opts, &out, "getBatchIdAtIndex", _index)
if err != nil {
return *new(*big.Int), err
}
out0 := *abi.ConvertType(out[0], new(*big.Int)).(**big.Int)
return out0, err
}
// GetBatchIdAtIndex is a free data retrieval call binding the contract method 0x2419f51b.
//
// Solidity: function getBatchIdAtIndex(uint256 _index) view returns(uint256)
func (_DropERC1155 *DropERC1155Session) GetBatchIdAtIndex(_index *big.Int) (*big.Int, error) {
return _DropERC1155.Contract.GetBatchIdAtIndex(&_DropERC1155.CallOpts, _index)
}
// GetBatchIdAtIndex is a free data retrieval call binding the contract method 0x2419f51b.
//
// Solidity: function getBatchIdAtIndex(uint256 _index) view returns(uint256)
func (_DropERC1155 *DropERC1155CallerSession) GetBatchIdAtIndex(_index *big.Int) (*big.Int, error) {
return _DropERC1155.Contract.GetBatchIdAtIndex(&_DropERC1155.CallOpts, _index)
}
// GetClaimConditionById is a free data retrieval call binding the contract method 0xd45b28d7.
//
// Solidity: function getClaimConditionById(uint256 _tokenId, uint256 _conditionId) view returns((uint256,uint256,uint256,uint256,bytes32,uint256,address,string) condition)
func (_DropERC1155 *DropERC1155Caller) GetClaimConditionById(opts *bind.CallOpts, _tokenId *big.Int, _conditionId *big.Int) (IClaimConditionClaimCondition, error) {
var out []interface{}
err := _DropERC1155.contract.Call(opts, &out, "getClaimConditionById", _tokenId, _conditionId)
if err != nil {
return *new(IClaimConditionClaimCondition), err
}
out0 := *abi.ConvertType(out[0], new(IClaimConditionClaimCondition)).(*IClaimConditionClaimCondition)
return out0, err
}
// GetClaimConditionById is a free data retrieval call binding the contract method 0xd45b28d7.
//
// Solidity: function getClaimConditionById(uint256 _tokenId, uint256 _conditionId) view returns((uint256,uint256,uint256,uint256,bytes32,uint256,address,string) condition)
func (_DropERC1155 *DropERC1155Session) GetClaimConditionById(_tokenId *big.Int, _conditionId *big.Int) (IClaimConditionClaimCondition, error) {
return _DropERC1155.Contract.GetClaimConditionById(&_DropERC1155.CallOpts, _tokenId, _conditionId)
}
// GetClaimConditionById is a free data retrieval call binding the contract method 0xd45b28d7.
//
// Solidity: function getClaimConditionById(uint256 _tokenId, uint256 _conditionId) view returns((uint256,uint256,uint256,uint256,bytes32,uint256,address,string) condition)
func (_DropERC1155 *DropERC1155CallerSession) GetClaimConditionById(_tokenId *big.Int, _conditionId *big.Int) (IClaimConditionClaimCondition, error) {
return _DropERC1155.Contract.GetClaimConditionById(&_DropERC1155.CallOpts, _tokenId, _conditionId)
}
// GetDefaultRoyaltyInfo is a free data retrieval call binding the contract method 0xb24f2d39.
//
// Solidity: function getDefaultRoyaltyInfo() view returns(address, uint16)
func (_DropERC1155 *DropERC1155Caller) GetDefaultRoyaltyInfo(opts *bind.CallOpts) (common.Address, uint16, error) {
var out []interface{}
err := _DropERC1155.contract.Call(opts, &out, "getDefaultRoyaltyInfo")
if err != nil {
return *new(common.Address), *new(uint16), err
}
out0 := *abi.ConvertType(out[0], new(common.Address)).(*common.Address)
out1 := *abi.ConvertType(out[1], new(uint16)).(*uint16)
return out0, out1, err
}
// GetDefaultRoyaltyInfo is a free data retrieval call binding the contract method 0xb24f2d39.
//
// Solidity: function getDefaultRoyaltyInfo() view returns(address, uint16)
func (_DropERC1155 *DropERC1155Session) GetDefaultRoyaltyInfo() (common.Address, uint16, error) {
return _DropERC1155.Contract.GetDefaultRoyaltyInfo(&_DropERC1155.CallOpts)
}
// GetDefaultRoyaltyInfo is a free data retrieval call binding the contract method 0xb24f2d39.
//
// Solidity: function getDefaultRoyaltyInfo() view returns(address, uint16)
func (_DropERC1155 *DropERC1155CallerSession) GetDefaultRoyaltyInfo() (common.Address, uint16, error) {
return _DropERC1155.Contract.GetDefaultRoyaltyInfo(&_DropERC1155.CallOpts)
}
// GetPlatformFeeInfo is a free data retrieval call binding the contract method 0xd45573f6.
//
// Solidity: function getPlatformFeeInfo() view returns(address, uint16)
func (_DropERC1155 *DropERC1155Caller) GetPlatformFeeInfo(opts *bind.CallOpts) (common.Address, uint16, error) {
var out []interface{}
err := _DropERC1155.contract.Call(opts, &out, "getPlatformFeeInfo")
if err != nil {
return *new(common.Address), *new(uint16), err
}
out0 := *abi.ConvertType(out[0], new(common.Address)).(*common.Address)
out1 := *abi.ConvertType(out[1], new(uint16)).(*uint16)
return out0, out1, err
}
// GetPlatformFeeInfo is a free data retrieval call binding the contract method 0xd45573f6.
//
// Solidity: function getPlatformFeeInfo() view returns(address, uint16)
func (_DropERC1155 *DropERC1155Session) GetPlatformFeeInfo() (common.Address, uint16, error) {
return _DropERC1155.Contract.GetPlatformFeeInfo(&_DropERC1155.CallOpts)
}
// GetPlatformFeeInfo is a free data retrieval call binding the contract method 0xd45573f6.
//
// Solidity: function getPlatformFeeInfo() view returns(address, uint16)
func (_DropERC1155 *DropERC1155CallerSession) GetPlatformFeeInfo() (common.Address, uint16, error) {
return _DropERC1155.Contract.GetPlatformFeeInfo(&_DropERC1155.CallOpts)
}
// GetRoleAdmin is a free data retrieval call binding the contract method 0x248a9ca3.
//
// Solidity: function getRoleAdmin(bytes32 role) view returns(bytes32)
func (_DropERC1155 *DropERC1155Caller) GetRoleAdmin(opts *bind.CallOpts, role [32]byte) ([32]byte, error) {
var out []interface{}
err := _DropERC1155.contract.Call(opts, &out, "getRoleAdmin", role)
if err != nil {
return *new([32]byte), err
}
out0 := *abi.ConvertType(out[0], new([32]byte)).(*[32]byte)
return out0, err
}
// GetRoleAdmin is a free data retrieval call binding the contract method 0x248a9ca3.
//
// Solidity: function getRoleAdmin(bytes32 role) view returns(bytes32)
func (_DropERC1155 *DropERC1155Session) GetRoleAdmin(role [32]byte) ([32]byte, error) {
return _DropERC1155.Contract.GetRoleAdmin(&_DropERC1155.CallOpts, role)
}
// GetRoleAdmin is a free data retrieval call binding the contract method 0x248a9ca3.
//
// Solidity: function getRoleAdmin(bytes32 role) view returns(bytes32)
func (_DropERC1155 *DropERC1155CallerSession) GetRoleAdmin(role [32]byte) ([32]byte, error) {
return _DropERC1155.Contract.GetRoleAdmin(&_DropERC1155.CallOpts, role)
}
// GetRoleMember is a free data retrieval call binding the contract method 0x9010d07c.
//
// Solidity: function getRoleMember(bytes32 role, uint256 index) view returns(address member)
func (_DropERC1155 *DropERC1155Caller) GetRoleMember(opts *bind.CallOpts, role [32]byte, index *big.Int) (common.Address, error) {
var out []interface{}
err := _DropERC1155.contract.Call(opts, &out, "getRoleMember", role, index)
if err != nil {
return *new(common.Address), err
}
out0 := *abi.ConvertType(out[0], new(common.Address)).(*common.Address)
return out0, err
}
// GetRoleMember is a free data retrieval call binding the contract method 0x9010d07c.
//
// Solidity: function getRoleMember(bytes32 role, uint256 index) view returns(address member)
func (_DropERC1155 *DropERC1155Session) GetRoleMember(role [32]byte, index *big.Int) (common.Address, error) {
return _DropERC1155.Contract.GetRoleMember(&_DropERC1155.CallOpts, role, index)
}
// GetRoleMember is a free data retrieval call binding the contract method 0x9010d07c.
//
// Solidity: function getRoleMember(bytes32 role, uint256 index) view returns(address member)
func (_DropERC1155 *DropERC1155CallerSession) GetRoleMember(role [32]byte, index *big.Int) (common.Address, error) {
return _DropERC1155.Contract.GetRoleMember(&_DropERC1155.CallOpts, role, index)
}
// GetRoleMemberCount is a free data retrieval call binding the contract method 0xca15c873.
//
// Solidity: function getRoleMemberCount(bytes32 role) view returns(uint256 count)
func (_DropERC1155 *DropERC1155Caller) GetRoleMemberCount(opts *bind.CallOpts, role [32]byte) (*big.Int, error) {
var out []interface{}
err := _DropERC1155.contract.Call(opts, &out, "getRoleMemberCount", role)
if err != nil {
return *new(*big.Int), err
}
out0 := *abi.ConvertType(out[0], new(*big.Int)).(**big.Int)
return out0, err
}
// GetRoleMemberCount is a free data retrieval call binding the contract method 0xca15c873.
//
// Solidity: function getRoleMemberCount(bytes32 role) view returns(uint256 count)
func (_DropERC1155 *DropERC1155Session) GetRoleMemberCount(role [32]byte) (*big.Int, error) {
return _DropERC1155.Contract.GetRoleMemberCount(&_DropERC1155.CallOpts, role)
}
// GetRoleMemberCount is a free data retrieval call binding the contract method 0xca15c873.
//
// Solidity: function getRoleMemberCount(bytes32 role) view returns(uint256 count)
func (_DropERC1155 *DropERC1155CallerSession) GetRoleMemberCount(role [32]byte) (*big.Int, error) {
return _DropERC1155.Contract.GetRoleMemberCount(&_DropERC1155.CallOpts, role)
}
// GetRoyaltyInfoForToken is a free data retrieval call binding the contract method 0x4cc157df.
//
// Solidity: function getRoyaltyInfoForToken(uint256 _tokenId) view returns(address, uint16)
func (_DropERC1155 *DropERC1155Caller) GetRoyaltyInfoForToken(opts *bind.CallOpts, _tokenId *big.Int) (common.Address, uint16, error) {
var out []interface{}
err := _DropERC1155.contract.Call(opts, &out, "getRoyaltyInfoForToken", _tokenId)
if err != nil {
return *new(common.Address), *new(uint16), err
}
out0 := *abi.ConvertType(out[0], new(common.Address)).(*common.Address)
out1 := *abi.ConvertType(out[1], new(uint16)).(*uint16)
return out0, out1, err
}
// GetRoyaltyInfoForToken is a free data retrieval call binding the contract method 0x4cc157df.
//
// Solidity: function getRoyaltyInfoForToken(uint256 _tokenId) view returns(address, uint16)
func (_DropERC1155 *DropERC1155Session) GetRoyaltyInfoForToken(_tokenId *big.Int) (common.Address, uint16, error) {
return _DropERC1155.Contract.GetRoyaltyInfoForToken(&_DropERC1155.CallOpts, _tokenId)
}
// GetRoyaltyInfoForToken is a free data retrieval call binding the contract method 0x4cc157df.
//
// Solidity: function getRoyaltyInfoForToken(uint256 _tokenId) view returns(address, uint16)
func (_DropERC1155 *DropERC1155CallerSession) GetRoyaltyInfoForToken(_tokenId *big.Int) (common.Address, uint16, error) {
return _DropERC1155.Contract.GetRoyaltyInfoForToken(&_DropERC1155.CallOpts, _tokenId)
}
// GetSupplyClaimedByWallet is a free data retrieval call binding the contract method 0x5811ddab.
//
// Solidity: function getSupplyClaimedByWallet(uint256 _tokenId, uint256 _conditionId, address _claimer) view returns(uint256 supplyClaimedByWallet)
func (_DropERC1155 *DropERC1155Caller) GetSupplyClaimedByWallet(opts *bind.CallOpts, _tokenId *big.Int, _conditionId *big.Int, _claimer common.Address) (*big.Int, error) {
var out []interface{}
err := _DropERC1155.contract.Call(opts, &out, "getSupplyClaimedByWallet", _tokenId, _conditionId, _claimer)
if err != nil {
return *new(*big.Int), err
}
out0 := *abi.ConvertType(out[0], new(*big.Int)).(**big.Int)
return out0, err
}
// GetSupplyClaimedByWallet is a free data retrieval call binding the contract method 0x5811ddab.
//
// Solidity: function getSupplyClaimedByWallet(uint256 _tokenId, uint256 _conditionId, address _claimer) view returns(uint256 supplyClaimedByWallet)
func (_DropERC1155 *DropERC1155Session) GetSupplyClaimedByWallet(_tokenId *big.Int, _conditionId *big.Int, _claimer common.Address) (*big.Int, error) {
return _DropERC1155.Contract.GetSupplyClaimedByWallet(&_DropERC1155.CallOpts, _tokenId, _conditionId, _claimer)
}
// GetSupplyClaimedByWallet is a free data retrieval call binding the contract method 0x5811ddab.
//
// Solidity: function getSupplyClaimedByWallet(uint256 _tokenId, uint256 _conditionId, address _claimer) view returns(uint256 supplyClaimedByWallet)
func (_DropERC1155 *DropERC1155CallerSession) GetSupplyClaimedByWallet(_tokenId *big.Int, _conditionId *big.Int, _claimer common.Address) (*big.Int, error) {
return _DropERC1155.Contract.GetSupplyClaimedByWallet(&_DropERC1155.CallOpts, _tokenId, _conditionId, _claimer)
}
// HasRole is a free data retrieval call binding the contract method 0x91d14854.
//
// Solidity: function hasRole(bytes32 role, address account) view returns(bool)
func (_DropERC1155 *DropERC1155Caller) HasRole(opts *bind.CallOpts, role [32]byte, account common.Address) (bool, error) {
var out []interface{}
err := _DropERC1155.contract.Call(opts, &out, "hasRole", role, account)
if err != nil {
return *new(bool), err
}
out0 := *abi.ConvertType(out[0], new(bool)).(*bool)
return out0, err
}
// HasRole is a free data retrieval call binding the contract method 0x91d14854.
//
// Solidity: function hasRole(bytes32 role, address account) view returns(bool)
func (_DropERC1155 *DropERC1155Session) HasRole(role [32]byte, account common.Address) (bool, error) {
return _DropERC1155.Contract.HasRole(&_DropERC1155.CallOpts, role, account)
}
// HasRole is a free data retrieval call binding the contract method 0x91d14854.
//
// Solidity: function hasRole(bytes32 role, address account) view returns(bool)
func (_DropERC1155 *DropERC1155CallerSession) HasRole(role [32]byte, account common.Address) (bool, error) {
return _DropERC1155.Contract.HasRole(&_DropERC1155.CallOpts, role, account)
}
// HasRoleWithSwitch is a free data retrieval call binding the contract method 0xa32fa5b3.
//
// Solidity: function hasRoleWithSwitch(bytes32 role, address account) view returns(bool)
func (_DropERC1155 *DropERC1155Caller) HasRoleWithSwitch(opts *bind.CallOpts, role [32]byte, account common.Address) (bool, error) {
var out []interface{}
err := _DropERC1155.contract.Call(opts, &out, "hasRoleWithSwitch", role, account)
if err != nil {
return *new(bool), err
}
out0 := *abi.ConvertType(out[0], new(bool)).(*bool)
return out0, err
}
// HasRoleWithSwitch is a free data retrieval call binding the contract method 0xa32fa5b3.
//
// Solidity: function hasRoleWithSwitch(bytes32 role, address account) view returns(bool)
func (_DropERC1155 *DropERC1155Session) HasRoleWithSwitch(role [32]byte, account common.Address) (bool, error) {
return _DropERC1155.Contract.HasRoleWithSwitch(&_DropERC1155.CallOpts, role, account)
}
// HasRoleWithSwitch is a free data retrieval call binding the contract method 0xa32fa5b3.
//
// Solidity: function hasRoleWithSwitch(bytes32 role, address account) view returns(bool)
func (_DropERC1155 *DropERC1155CallerSession) HasRoleWithSwitch(role [32]byte, account common.Address) (bool, error) {
return _DropERC1155.Contract.HasRoleWithSwitch(&_DropERC1155.CallOpts, role, account)
}
// IsApprovedForAll is a free data retrieval call binding the contract method 0xe985e9c5.
//
// Solidity: function isApprovedForAll(address account, address operator) view returns(bool)
func (_DropERC1155 *DropERC1155Caller) IsApprovedForAll(opts *bind.CallOpts, account common.Address, operator common.Address) (bool, error) {
var out []interface{}
err := _DropERC1155.contract.Call(opts, &out, "isApprovedForAll", account, operator)
if err != nil {
return *new(bool), err
}
out0 := *abi.ConvertType(out[0], new(bool)).(*bool)
return out0, err
}
// IsApprovedForAll is a free data retrieval call binding the contract method 0xe985e9c5.
//
// Solidity: function isApprovedForAll(address account, address operator) view returns(bool)
func (_DropERC1155 *DropERC1155Session) IsApprovedForAll(account common.Address, operator common.Address) (bool, error) {
return _DropERC1155.Contract.IsApprovedForAll(&_DropERC1155.CallOpts, account, operator)
}
// IsApprovedForAll is a free data retrieval call binding the contract method 0xe985e9c5.
//
// Solidity: function isApprovedForAll(address account, address operator) view returns(bool)
func (_DropERC1155 *DropERC1155CallerSession) IsApprovedForAll(account common.Address, operator common.Address) (bool, error) {
return _DropERC1155.Contract.IsApprovedForAll(&_DropERC1155.CallOpts, account, operator)
}
// IsTrustedForwarder is a free data retrieval call binding the contract method 0x572b6c05.
//
// Solidity: function isTrustedForwarder(address forwarder) view returns(bool)
func (_DropERC1155 *DropERC1155Caller) IsTrustedForwarder(opts *bind.CallOpts, forwarder common.Address) (bool, error) {
var out []interface{}
err := _DropERC1155.contract.Call(opts, &out, "isTrustedForwarder", forwarder)
if err != nil {
return *new(bool), err
}
out0 := *abi.ConvertType(out[0], new(bool)).(*bool)
return out0, err
}
// IsTrustedForwarder is a free data retrieval call binding the contract method 0x572b6c05.
//
// Solidity: function isTrustedForwarder(address forwarder) view returns(bool)
func (_DropERC1155 *DropERC1155Session) IsTrustedForwarder(forwarder common.Address) (bool, error) {
return _DropERC1155.Contract.IsTrustedForwarder(&_DropERC1155.CallOpts, forwarder)
}
// IsTrustedForwarder is a free data retrieval call binding the contract method 0x572b6c05.
//
// Solidity: function isTrustedForwarder(address forwarder) view returns(bool)
func (_DropERC1155 *DropERC1155CallerSession) IsTrustedForwarder(forwarder common.Address) (bool, error) {
return _DropERC1155.Contract.IsTrustedForwarder(&_DropERC1155.CallOpts, forwarder)
}
// MaxTotalSupply is a free data retrieval call binding the contract method 0x24aaffaa.
//
// Solidity: function maxTotalSupply(uint256 ) view returns(uint256)
func (_DropERC1155 *DropERC1155Caller) MaxTotalSupply(opts *bind.CallOpts, arg0 *big.Int) (*big.Int, error) {
var out []interface{}
err := _DropERC1155.contract.Call(opts, &out, "maxTotalSupply", arg0)
if err != nil {
return *new(*big.Int), err
}
out0 := *abi.ConvertType(out[0], new(*big.Int)).(**big.Int)
return out0, err
}
// MaxTotalSupply is a free data retrieval call binding the contract method 0x24aaffaa.
//
// Solidity: function maxTotalSupply(uint256 ) view returns(uint256)
func (_DropERC1155 *DropERC1155Session) MaxTotalSupply(arg0 *big.Int) (*big.Int, error) {
return _DropERC1155.Contract.MaxTotalSupply(&_DropERC1155.CallOpts, arg0)
}
// MaxTotalSupply is a free data retrieval call binding the contract method 0x24aaffaa.
//
// Solidity: function maxTotalSupply(uint256 ) view returns(uint256)
func (_DropERC1155 *DropERC1155CallerSession) MaxTotalSupply(arg0 *big.Int) (*big.Int, error) {
return _DropERC1155.Contract.MaxTotalSupply(&_DropERC1155.CallOpts, arg0)
}
// Name is a free data retrieval call binding the contract method 0x06fdde03.
//
// Solidity: function name() view returns(string)
func (_DropERC1155 *DropERC1155Caller) Name(opts *bind.CallOpts) (string, error) {
var out []interface{}
err := _DropERC1155.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 (_DropERC1155 *DropERC1155Session) Name() (string, error) {
return _DropERC1155.Contract.Name(&_DropERC1155.CallOpts)
}
// Name is a free data retrieval call binding the contract method 0x06fdde03.
//
// Solidity: function name() view returns(string)
func (_DropERC1155 *DropERC1155CallerSession) Name() (string, error) {
return _DropERC1155.Contract.Name(&_DropERC1155.CallOpts)
}
// NextTokenIdToMint is a free data retrieval call binding the contract method 0x3b1475a7.
//
// Solidity: function nextTokenIdToMint() view returns(uint256)
func (_DropERC1155 *DropERC1155Caller) NextTokenIdToMint(opts *bind.CallOpts) (*big.Int, error) {
var out []interface{}
err := _DropERC1155.contract.Call(opts, &out, "nextTokenIdToMint")
if err != nil {
return *new(*big.Int), err
}
out0 := *abi.ConvertType(out[0], new(*big.Int)).(**big.Int)
return out0, err
}
// NextTokenIdToMint is a free data retrieval call binding the contract method 0x3b1475a7.
//
// Solidity: function nextTokenIdToMint() view returns(uint256)
func (_DropERC1155 *DropERC1155Session) NextTokenIdToMint() (*big.Int, error) {
return _DropERC1155.Contract.NextTokenIdToMint(&_DropERC1155.CallOpts)
}
// NextTokenIdToMint is a free data retrieval call binding the contract method 0x3b1475a7.
//
// Solidity: function nextTokenIdToMint() view returns(uint256)
func (_DropERC1155 *DropERC1155CallerSession) NextTokenIdToMint() (*big.Int, error) {
return _DropERC1155.Contract.NextTokenIdToMint(&_DropERC1155.CallOpts)
}
// Owner is a free data retrieval call binding the contract method 0x8da5cb5b.
//
// Solidity: function owner() view returns(address)
func (_DropERC1155 *DropERC1155Caller) Owner(opts *bind.CallOpts) (common.Address, error) {
var out []interface{}
err := _DropERC1155.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.
//