/
manifold.go
2183 lines (1878 loc) Β· 105 KB
/
manifold.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 manifold
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
)
// IERC721LazyPayableClaimClaim is an auto generated low-level Go binding around an user-defined struct.
type IERC721LazyPayableClaimClaim struct {
Total uint32
TotalMax uint32
WalletMax uint32
StartDate *big.Int
EndDate *big.Int
StorageProtocol uint8
ContractVersion uint8
Identical bool
MerkleRoot [32]byte
Location string
Cost *big.Int
PaymentReceiver common.Address
Erc20 common.Address
}
// IERC721LazyPayableClaimClaimParameters is an auto generated low-level Go binding around an user-defined struct.
type IERC721LazyPayableClaimClaimParameters struct {
TotalMax uint32
WalletMax uint32
StartDate *big.Int
EndDate *big.Int
StorageProtocol uint8
Identical bool
MerkleRoot [32]byte
Location string
Cost *big.Int
PaymentReceiver common.Address
Erc20 common.Address
}
// ManifoldMetaData contains all meta data concerning the Manifold contract.
var ManifoldMetaData = &bind.MetaData{
ABI: "[{\"inputs\":[{\"internalType\":\"address\",\"name\":\"delegationRegistry\",\"type\":\"address\"}],\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"}],\"name\":\"AdminApproved\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"}],\"name\":\"AdminRevoked\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"creatorContract\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"instanceId\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"initializer\",\"type\":\"address\"}],\"name\":\"ClaimInitialized\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"creatorContract\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"instanceId\",\"type\":\"uint256\"}],\"name\":\"ClaimMint\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"creatorContract\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"instanceId\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint16\",\"name\":\"mintCount\",\"type\":\"uint16\"}],\"name\":\"ClaimMintBatch\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"creatorContract\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"instanceId\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint16\",\"name\":\"mintCount\",\"type\":\"uint16\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"proxy\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"mintFor\",\"type\":\"address\"}],\"name\":\"ClaimMintProxy\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"creatorContract\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"instanceId\",\"type\":\"uint256\"}],\"name\":\"ClaimUpdated\",\"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\"},{\"inputs\":[],\"name\":\"DELEGATION_REGISTRY\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"MEMBERSHIP_ADDRESS\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"MINT_FEE\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"MINT_FEE_MERKLE\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"creatorContractAddress\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"instanceId\",\"type\":\"uint256\"},{\"internalType\":\"address[]\",\"name\":\"recipients\",\"type\":\"address[]\"},{\"internalType\":\"uint16[]\",\"name\":\"amounts\",\"type\":\"uint16[]\"}],\"name\":\"airdrop\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"admin\",\"type\":\"address\"}],\"name\":\"approveAdmin\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"creatorContractAddress\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"instanceId\",\"type\":\"uint256\"},{\"internalType\":\"uint32\",\"name\":\"mintIndex\",\"type\":\"uint32\"}],\"name\":\"checkMintIndex\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"creatorContractAddress\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"instanceId\",\"type\":\"uint256\"},{\"internalType\":\"uint32[]\",\"name\":\"mintIndices\",\"type\":\"uint32[]\"}],\"name\":\"checkMintIndices\",\"outputs\":[{\"internalType\":\"bool[]\",\"name\":\"minted\",\"type\":\"bool[]\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"creatorContractAddress\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"instanceId\",\"type\":\"uint256\"},{\"internalType\":\"string\",\"name\":\"locationChunk\",\"type\":\"string\"}],\"name\":\"extendTokenURI\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getAdmins\",\"outputs\":[{\"internalType\":\"address[]\",\"name\":\"admins\",\"type\":\"address[]\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"creatorContractAddress\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"instanceId\",\"type\":\"uint256\"}],\"name\":\"getClaim\",\"outputs\":[{\"components\":[{\"internalType\":\"uint32\",\"name\":\"total\",\"type\":\"uint32\"},{\"internalType\":\"uint32\",\"name\":\"totalMax\",\"type\":\"uint32\"},{\"internalType\":\"uint32\",\"name\":\"walletMax\",\"type\":\"uint32\"},{\"internalType\":\"uint48\",\"name\":\"startDate\",\"type\":\"uint48\"},{\"internalType\":\"uint48\",\"name\":\"endDate\",\"type\":\"uint48\"},{\"internalType\":\"enumILazyPayableClaim.StorageProtocol\",\"name\":\"storageProtocol\",\"type\":\"uint8\"},{\"internalType\":\"uint8\",\"name\":\"contractVersion\",\"type\":\"uint8\"},{\"internalType\":\"bool\",\"name\":\"identical\",\"type\":\"bool\"},{\"internalType\":\"bytes32\",\"name\":\"merkleRoot\",\"type\":\"bytes32\"},{\"internalType\":\"string\",\"name\":\"location\",\"type\":\"string\"},{\"internalType\":\"uint256\",\"name\":\"cost\",\"type\":\"uint256\"},{\"internalType\":\"addresspayable\",\"name\":\"paymentReceiver\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"erc20\",\"type\":\"address\"}],\"internalType\":\"structIERC721LazyPayableClaim.Claim\",\"name\":\"\",\"type\":\"tuple\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"creatorContractAddress\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"}],\"name\":\"getClaimForToken\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"instanceId\",\"type\":\"uint256\"},{\"components\":[{\"internalType\":\"uint32\",\"name\":\"total\",\"type\":\"uint32\"},{\"internalType\":\"uint32\",\"name\":\"totalMax\",\"type\":\"uint32\"},{\"internalType\":\"uint32\",\"name\":\"walletMax\",\"type\":\"uint32\"},{\"internalType\":\"uint48\",\"name\":\"startDate\",\"type\":\"uint48\"},{\"internalType\":\"uint48\",\"name\":\"endDate\",\"type\":\"uint48\"},{\"internalType\":\"enumILazyPayableClaim.StorageProtocol\",\"name\":\"storageProtocol\",\"type\":\"uint8\"},{\"internalType\":\"uint8\",\"name\":\"contractVersion\",\"type\":\"uint8\"},{\"internalType\":\"bool\",\"name\":\"identical\",\"type\":\"bool\"},{\"internalType\":\"bytes32\",\"name\":\"merkleRoot\",\"type\":\"bytes32\"},{\"internalType\":\"string\",\"name\":\"location\",\"type\":\"string\"},{\"internalType\":\"uint256\",\"name\":\"cost\",\"type\":\"uint256\"},{\"internalType\":\"addresspayable\",\"name\":\"paymentReceiver\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"erc20\",\"type\":\"address\"}],\"internalType\":\"structIERC721LazyPayableClaim.Claim\",\"name\":\"claim\",\"type\":\"tuple\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"minter\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"creatorContractAddress\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"instanceId\",\"type\":\"uint256\"}],\"name\":\"getTotalMints\",\"outputs\":[{\"internalType\":\"uint32\",\"name\":\"\",\"type\":\"uint32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"creatorContractAddress\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"instanceId\",\"type\":\"uint256\"},{\"components\":[{\"internalType\":\"uint32\",\"name\":\"totalMax\",\"type\":\"uint32\"},{\"internalType\":\"uint32\",\"name\":\"walletMax\",\"type\":\"uint32\"},{\"internalType\":\"uint48\",\"name\":\"startDate\",\"type\":\"uint48\"},{\"internalType\":\"uint48\",\"name\":\"endDate\",\"type\":\"uint48\"},{\"internalType\":\"enumILazyPayableClaim.StorageProtocol\",\"name\":\"storageProtocol\",\"type\":\"uint8\"},{\"internalType\":\"bool\",\"name\":\"identical\",\"type\":\"bool\"},{\"internalType\":\"bytes32\",\"name\":\"merkleRoot\",\"type\":\"bytes32\"},{\"internalType\":\"string\",\"name\":\"location\",\"type\":\"string\"},{\"internalType\":\"uint256\",\"name\":\"cost\",\"type\":\"uint256\"},{\"internalType\":\"addresspayable\",\"name\":\"paymentReceiver\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"erc20\",\"type\":\"address\"}],\"internalType\":\"structIERC721LazyPayableClaim.ClaimParameters\",\"name\":\"claimParameters\",\"type\":\"tuple\"}],\"name\":\"initializeClaim\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"admin\",\"type\":\"address\"}],\"name\":\"isAdmin\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"creatorContractAddress\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"instanceId\",\"type\":\"uint256\"},{\"internalType\":\"uint32\",\"name\":\"mintIndex\",\"type\":\"uint32\"},{\"internalType\":\"bytes32[]\",\"name\":\"merkleProof\",\"type\":\"bytes32[]\"},{\"internalType\":\"address\",\"name\":\"mintFor\",\"type\":\"address\"}],\"name\":\"mint\",\"outputs\":[],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"creatorContractAddress\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"instanceId\",\"type\":\"uint256\"},{\"internalType\":\"uint16\",\"name\":\"mintCount\",\"type\":\"uint16\"},{\"internalType\":\"uint32[]\",\"name\":\"mintIndices\",\"type\":\"uint32[]\"},{\"internalType\":\"bytes32[][]\",\"name\":\"merkleProofs\",\"type\":\"bytes32[][]\"},{\"internalType\":\"address\",\"name\":\"mintFor\",\"type\":\"address\"}],\"name\":\"mintBatch\",\"outputs\":[],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"creatorContractAddress\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"instanceId\",\"type\":\"uint256\"},{\"internalType\":\"uint16\",\"name\":\"mintCount\",\"type\":\"uint16\"},{\"internalType\":\"uint32[]\",\"name\":\"mintIndices\",\"type\":\"uint32[]\"},{\"internalType\":\"bytes32[][]\",\"name\":\"merkleProofs\",\"type\":\"bytes32[][]\"},{\"internalType\":\"address\",\"name\":\"mintFor\",\"type\":\"address\"}],\"name\":\"mintProxy\",\"outputs\":[],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"owner\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"renounceOwnership\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"admin\",\"type\":\"address\"}],\"name\":\"revokeAdmin\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"membershipAddress\",\"type\":\"address\"}],\"name\":\"setMembershipAddress\",\"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\":[{\"internalType\":\"address\",\"name\":\"creatorContractAddress\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"}],\"name\":\"tokenURI\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"uri\",\"type\":\"string\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"transferOwnership\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"creatorContractAddress\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"instanceId\",\"type\":\"uint256\"},{\"components\":[{\"internalType\":\"uint32\",\"name\":\"totalMax\",\"type\":\"uint32\"},{\"internalType\":\"uint32\",\"name\":\"walletMax\",\"type\":\"uint32\"},{\"internalType\":\"uint48\",\"name\":\"startDate\",\"type\":\"uint48\"},{\"internalType\":\"uint48\",\"name\":\"endDate\",\"type\":\"uint48\"},{\"internalType\":\"enumILazyPayableClaim.StorageProtocol\",\"name\":\"storageProtocol\",\"type\":\"uint8\"},{\"internalType\":\"bool\",\"name\":\"identical\",\"type\":\"bool\"},{\"internalType\":\"bytes32\",\"name\":\"merkleRoot\",\"type\":\"bytes32\"},{\"internalType\":\"string\",\"name\":\"location\",\"type\":\"string\"},{\"internalType\":\"uint256\",\"name\":\"cost\",\"type\":\"uint256\"},{\"internalType\":\"addresspayable\",\"name\":\"paymentReceiver\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"erc20\",\"type\":\"address\"}],\"internalType\":\"structIERC721LazyPayableClaim.ClaimParameters\",\"name\":\"claimParameters\",\"type\":\"tuple\"}],\"name\":\"updateClaim\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"creatorContractAddress\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"instanceId\",\"type\":\"uint256\"},{\"internalType\":\"enumILazyPayableClaim.StorageProtocol\",\"name\":\"storageProtocol\",\"type\":\"uint8\"},{\"internalType\":\"bool\",\"name\":\"identical\",\"type\":\"bool\"},{\"internalType\":\"string\",\"name\":\"location\",\"type\":\"string\"}],\"name\":\"updateTokenURIParams\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"addresspayable\",\"name\":\"receiver\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"withdraw\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}]",
}
// ManifoldABI is the input ABI used to generate the binding from.
// Deprecated: Use ManifoldMetaData.ABI instead.
var ManifoldABI = ManifoldMetaData.ABI
// Manifold is an auto generated Go binding around an Ethereum contract.
type Manifold struct {
ManifoldCaller // Read-only binding to the contract
ManifoldTransactor // Write-only binding to the contract
ManifoldFilterer // Log filterer for contract events
}
// ManifoldCaller is an auto generated read-only Go binding around an Ethereum contract.
type ManifoldCaller struct {
contract *bind.BoundContract // Generic contract wrapper for the low level calls
}
// ManifoldTransactor is an auto generated write-only Go binding around an Ethereum contract.
type ManifoldTransactor struct {
contract *bind.BoundContract // Generic contract wrapper for the low level calls
}
// ManifoldFilterer is an auto generated log filtering Go binding around an Ethereum contract events.
type ManifoldFilterer struct {
contract *bind.BoundContract // Generic contract wrapper for the low level calls
}
// ManifoldSession is an auto generated Go binding around an Ethereum contract,
// with pre-set call and transact options.
type ManifoldSession struct {
Contract *Manifold // 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
}
// ManifoldCallerSession is an auto generated read-only Go binding around an Ethereum contract,
// with pre-set call options.
type ManifoldCallerSession struct {
Contract *ManifoldCaller // Generic contract caller binding to set the session for
CallOpts bind.CallOpts // Call options to use throughout this session
}
// ManifoldTransactorSession is an auto generated write-only Go binding around an Ethereum contract,
// with pre-set transact options.
type ManifoldTransactorSession struct {
Contract *ManifoldTransactor // Generic contract transactor binding to set the session for
TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session
}
// ManifoldRaw is an auto generated low-level Go binding around an Ethereum contract.
type ManifoldRaw struct {
Contract *Manifold // Generic contract binding to access the raw methods on
}
// ManifoldCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract.
type ManifoldCallerRaw struct {
Contract *ManifoldCaller // Generic read-only contract binding to access the raw methods on
}
// ManifoldTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract.
type ManifoldTransactorRaw struct {
Contract *ManifoldTransactor // Generic write-only contract binding to access the raw methods on
}
// NewManifold creates a new instance of Manifold, bound to a specific deployed contract.
func NewManifold(address common.Address, backend bind.ContractBackend) (*Manifold, error) {
contract, err := bindManifold(address, backend, backend, backend)
if err != nil {
return nil, err
}
return &Manifold{ManifoldCaller: ManifoldCaller{contract: contract}, ManifoldTransactor: ManifoldTransactor{contract: contract}, ManifoldFilterer: ManifoldFilterer{contract: contract}}, nil
}
// NewManifoldCaller creates a new read-only instance of Manifold, bound to a specific deployed contract.
func NewManifoldCaller(address common.Address, caller bind.ContractCaller) (*ManifoldCaller, error) {
contract, err := bindManifold(address, caller, nil, nil)
if err != nil {
return nil, err
}
return &ManifoldCaller{contract: contract}, nil
}
// NewManifoldTransactor creates a new write-only instance of Manifold, bound to a specific deployed contract.
func NewManifoldTransactor(address common.Address, transactor bind.ContractTransactor) (*ManifoldTransactor, error) {
contract, err := bindManifold(address, nil, transactor, nil)
if err != nil {
return nil, err
}
return &ManifoldTransactor{contract: contract}, nil
}
// NewManifoldFilterer creates a new log filterer instance of Manifold, bound to a specific deployed contract.
func NewManifoldFilterer(address common.Address, filterer bind.ContractFilterer) (*ManifoldFilterer, error) {
contract, err := bindManifold(address, nil, nil, filterer)
if err != nil {
return nil, err
}
return &ManifoldFilterer{contract: contract}, nil
}
// bindManifold binds a generic wrapper to an already deployed contract.
func bindManifold(address common.Address, caller bind.ContractCaller, transactor bind.ContractTransactor, filterer bind.ContractFilterer) (*bind.BoundContract, error) {
parsed, err := abi.JSON(strings.NewReader(ManifoldABI))
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 (_Manifold *ManifoldRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error {
return _Manifold.Contract.ManifoldCaller.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 (_Manifold *ManifoldRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) {
return _Manifold.Contract.ManifoldTransactor.contract.Transfer(opts)
}
// Transact invokes the (paid) contract method with params as input values.
func (_Manifold *ManifoldRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) {
return _Manifold.Contract.ManifoldTransactor.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 (_Manifold *ManifoldCallerRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error {
return _Manifold.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 (_Manifold *ManifoldTransactorRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) {
return _Manifold.Contract.contract.Transfer(opts)
}
// Transact invokes the (paid) contract method with params as input values.
func (_Manifold *ManifoldTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) {
return _Manifold.Contract.contract.Transact(opts, method, params...)
}
// DELEGATIONREGISTRY is a free data retrieval call binding the contract method 0x4daadff7.
//
// Solidity: function DELEGATION_REGISTRY() view returns(address)
func (_Manifold *ManifoldCaller) DELEGATIONREGISTRY(opts *bind.CallOpts) (common.Address, error) {
var out []interface{}
err := _Manifold.contract.Call(opts, &out, "DELEGATION_REGISTRY")
if err != nil {
return *new(common.Address), err
}
out0 := *abi.ConvertType(out[0], new(common.Address)).(*common.Address)
return out0, err
}
// DELEGATIONREGISTRY is a free data retrieval call binding the contract method 0x4daadff7.
//
// Solidity: function DELEGATION_REGISTRY() view returns(address)
func (_Manifold *ManifoldSession) DELEGATIONREGISTRY() (common.Address, error) {
return _Manifold.Contract.DELEGATIONREGISTRY(&_Manifold.CallOpts)
}
// DELEGATIONREGISTRY is a free data retrieval call binding the contract method 0x4daadff7.
//
// Solidity: function DELEGATION_REGISTRY() view returns(address)
func (_Manifold *ManifoldCallerSession) DELEGATIONREGISTRY() (common.Address, error) {
return _Manifold.Contract.DELEGATIONREGISTRY(&_Manifold.CallOpts)
}
// MEMBERSHIPADDRESS is a free data retrieval call binding the contract method 0x4baa62bf.
//
// Solidity: function MEMBERSHIP_ADDRESS() view returns(address)
func (_Manifold *ManifoldCaller) MEMBERSHIPADDRESS(opts *bind.CallOpts) (common.Address, error) {
var out []interface{}
err := _Manifold.contract.Call(opts, &out, "MEMBERSHIP_ADDRESS")
if err != nil {
return *new(common.Address), err
}
out0 := *abi.ConvertType(out[0], new(common.Address)).(*common.Address)
return out0, err
}
// MEMBERSHIPADDRESS is a free data retrieval call binding the contract method 0x4baa62bf.
//
// Solidity: function MEMBERSHIP_ADDRESS() view returns(address)
func (_Manifold *ManifoldSession) MEMBERSHIPADDRESS() (common.Address, error) {
return _Manifold.Contract.MEMBERSHIPADDRESS(&_Manifold.CallOpts)
}
// MEMBERSHIPADDRESS is a free data retrieval call binding the contract method 0x4baa62bf.
//
// Solidity: function MEMBERSHIP_ADDRESS() view returns(address)
func (_Manifold *ManifoldCallerSession) MEMBERSHIPADDRESS() (common.Address, error) {
return _Manifold.Contract.MEMBERSHIPADDRESS(&_Manifold.CallOpts)
}
// MINTFEE is a free data retrieval call binding the contract method 0xd7bf81a3.
//
// Solidity: function MINT_FEE() view returns(uint256)
func (_Manifold *ManifoldCaller) MINTFEE(opts *bind.CallOpts) (*big.Int, error) {
var out []interface{}
err := _Manifold.contract.Call(opts, &out, "MINT_FEE")
if err != nil {
return *new(*big.Int), err
}
out0 := *abi.ConvertType(out[0], new(*big.Int)).(**big.Int)
return out0, err
}
// MINTFEE is a free data retrieval call binding the contract method 0xd7bf81a3.
//
// Solidity: function MINT_FEE() view returns(uint256)
func (_Manifold *ManifoldSession) MINTFEE() (*big.Int, error) {
return _Manifold.Contract.MINTFEE(&_Manifold.CallOpts)
}
// MINTFEE is a free data retrieval call binding the contract method 0xd7bf81a3.
//
// Solidity: function MINT_FEE() view returns(uint256)
func (_Manifold *ManifoldCallerSession) MINTFEE() (*big.Int, error) {
return _Manifold.Contract.MINTFEE(&_Manifold.CallOpts)
}
// MINTFEEMERKLE is a free data retrieval call binding the contract method 0xcb799716.
//
// Solidity: function MINT_FEE_MERKLE() view returns(uint256)
func (_Manifold *ManifoldCaller) MINTFEEMERKLE(opts *bind.CallOpts) (*big.Int, error) {
var out []interface{}
err := _Manifold.contract.Call(opts, &out, "MINT_FEE_MERKLE")
if err != nil {
return *new(*big.Int), err
}
out0 := *abi.ConvertType(out[0], new(*big.Int)).(**big.Int)
return out0, err
}
// MINTFEEMERKLE is a free data retrieval call binding the contract method 0xcb799716.
//
// Solidity: function MINT_FEE_MERKLE() view returns(uint256)
func (_Manifold *ManifoldSession) MINTFEEMERKLE() (*big.Int, error) {
return _Manifold.Contract.MINTFEEMERKLE(&_Manifold.CallOpts)
}
// MINTFEEMERKLE is a free data retrieval call binding the contract method 0xcb799716.
//
// Solidity: function MINT_FEE_MERKLE() view returns(uint256)
func (_Manifold *ManifoldCallerSession) MINTFEEMERKLE() (*big.Int, error) {
return _Manifold.Contract.MINTFEEMERKLE(&_Manifold.CallOpts)
}
// CheckMintIndex is a free data retrieval call binding the contract method 0xcda08536.
//
// Solidity: function checkMintIndex(address creatorContractAddress, uint256 instanceId, uint32 mintIndex) view returns(bool)
func (_Manifold *ManifoldCaller) CheckMintIndex(opts *bind.CallOpts, creatorContractAddress common.Address, instanceId *big.Int, mintIndex uint32) (bool, error) {
var out []interface{}
err := _Manifold.contract.Call(opts, &out, "checkMintIndex", creatorContractAddress, instanceId, mintIndex)
if err != nil {
return *new(bool), err
}
out0 := *abi.ConvertType(out[0], new(bool)).(*bool)
return out0, err
}
// CheckMintIndex is a free data retrieval call binding the contract method 0xcda08536.
//
// Solidity: function checkMintIndex(address creatorContractAddress, uint256 instanceId, uint32 mintIndex) view returns(bool)
func (_Manifold *ManifoldSession) CheckMintIndex(creatorContractAddress common.Address, instanceId *big.Int, mintIndex uint32) (bool, error) {
return _Manifold.Contract.CheckMintIndex(&_Manifold.CallOpts, creatorContractAddress, instanceId, mintIndex)
}
// CheckMintIndex is a free data retrieval call binding the contract method 0xcda08536.
//
// Solidity: function checkMintIndex(address creatorContractAddress, uint256 instanceId, uint32 mintIndex) view returns(bool)
func (_Manifold *ManifoldCallerSession) CheckMintIndex(creatorContractAddress common.Address, instanceId *big.Int, mintIndex uint32) (bool, error) {
return _Manifold.Contract.CheckMintIndex(&_Manifold.CallOpts, creatorContractAddress, instanceId, mintIndex)
}
// CheckMintIndices is a free data retrieval call binding the contract method 0xf8a6137b.
//
// Solidity: function checkMintIndices(address creatorContractAddress, uint256 instanceId, uint32[] mintIndices) view returns(bool[] minted)
func (_Manifold *ManifoldCaller) CheckMintIndices(opts *bind.CallOpts, creatorContractAddress common.Address, instanceId *big.Int, mintIndices []uint32) ([]bool, error) {
var out []interface{}
err := _Manifold.contract.Call(opts, &out, "checkMintIndices", creatorContractAddress, instanceId, mintIndices)
if err != nil {
return *new([]bool), err
}
out0 := *abi.ConvertType(out[0], new([]bool)).(*[]bool)
return out0, err
}
// CheckMintIndices is a free data retrieval call binding the contract method 0xf8a6137b.
//
// Solidity: function checkMintIndices(address creatorContractAddress, uint256 instanceId, uint32[] mintIndices) view returns(bool[] minted)
func (_Manifold *ManifoldSession) CheckMintIndices(creatorContractAddress common.Address, instanceId *big.Int, mintIndices []uint32) ([]bool, error) {
return _Manifold.Contract.CheckMintIndices(&_Manifold.CallOpts, creatorContractAddress, instanceId, mintIndices)
}
// CheckMintIndices is a free data retrieval call binding the contract method 0xf8a6137b.
//
// Solidity: function checkMintIndices(address creatorContractAddress, uint256 instanceId, uint32[] mintIndices) view returns(bool[] minted)
func (_Manifold *ManifoldCallerSession) CheckMintIndices(creatorContractAddress common.Address, instanceId *big.Int, mintIndices []uint32) ([]bool, error) {
return _Manifold.Contract.CheckMintIndices(&_Manifold.CallOpts, creatorContractAddress, instanceId, mintIndices)
}
// GetAdmins is a free data retrieval call binding the contract method 0x31ae450b.
//
// Solidity: function getAdmins() view returns(address[] admins)
func (_Manifold *ManifoldCaller) GetAdmins(opts *bind.CallOpts) ([]common.Address, error) {
var out []interface{}
err := _Manifold.contract.Call(opts, &out, "getAdmins")
if err != nil {
return *new([]common.Address), err
}
out0 := *abi.ConvertType(out[0], new([]common.Address)).(*[]common.Address)
return out0, err
}
// GetAdmins is a free data retrieval call binding the contract method 0x31ae450b.
//
// Solidity: function getAdmins() view returns(address[] admins)
func (_Manifold *ManifoldSession) GetAdmins() ([]common.Address, error) {
return _Manifold.Contract.GetAdmins(&_Manifold.CallOpts)
}
// GetAdmins is a free data retrieval call binding the contract method 0x31ae450b.
//
// Solidity: function getAdmins() view returns(address[] admins)
func (_Manifold *ManifoldCallerSession) GetAdmins() ([]common.Address, error) {
return _Manifold.Contract.GetAdmins(&_Manifold.CallOpts)
}
// GetClaim is a free data retrieval call binding the contract method 0x0f79ab39.
//
// Solidity: function getClaim(address creatorContractAddress, uint256 instanceId) view returns((uint32,uint32,uint32,uint48,uint48,uint8,uint8,bool,bytes32,string,uint256,address,address))
func (_Manifold *ManifoldCaller) GetClaim(opts *bind.CallOpts, creatorContractAddress common.Address, instanceId *big.Int) (IERC721LazyPayableClaimClaim, error) {
var out []interface{}
err := _Manifold.contract.Call(opts, &out, "getClaim", creatorContractAddress, instanceId)
if err != nil {
return *new(IERC721LazyPayableClaimClaim), err
}
out0 := *abi.ConvertType(out[0], new(IERC721LazyPayableClaimClaim)).(*IERC721LazyPayableClaimClaim)
return out0, err
}
// GetClaim is a free data retrieval call binding the contract method 0x0f79ab39.
//
// Solidity: function getClaim(address creatorContractAddress, uint256 instanceId) view returns((uint32,uint32,uint32,uint48,uint48,uint8,uint8,bool,bytes32,string,uint256,address,address))
func (_Manifold *ManifoldSession) GetClaim(creatorContractAddress common.Address, instanceId *big.Int) (IERC721LazyPayableClaimClaim, error) {
return _Manifold.Contract.GetClaim(&_Manifold.CallOpts, creatorContractAddress, instanceId)
}
// GetClaim is a free data retrieval call binding the contract method 0x0f79ab39.
//
// Solidity: function getClaim(address creatorContractAddress, uint256 instanceId) view returns((uint32,uint32,uint32,uint48,uint48,uint8,uint8,bool,bytes32,string,uint256,address,address))
func (_Manifold *ManifoldCallerSession) GetClaim(creatorContractAddress common.Address, instanceId *big.Int) (IERC721LazyPayableClaimClaim, error) {
return _Manifold.Contract.GetClaim(&_Manifold.CallOpts, creatorContractAddress, instanceId)
}
// GetClaimForToken is a free data retrieval call binding the contract method 0x895696f2.
//
// Solidity: function getClaimForToken(address creatorContractAddress, uint256 tokenId) view returns(uint256 instanceId, (uint32,uint32,uint32,uint48,uint48,uint8,uint8,bool,bytes32,string,uint256,address,address) claim)
func (_Manifold *ManifoldCaller) GetClaimForToken(opts *bind.CallOpts, creatorContractAddress common.Address, tokenId *big.Int) (struct {
InstanceId *big.Int
Claim IERC721LazyPayableClaimClaim
}, error) {
var out []interface{}
err := _Manifold.contract.Call(opts, &out, "getClaimForToken", creatorContractAddress, tokenId)
outstruct := new(struct {
InstanceId *big.Int
Claim IERC721LazyPayableClaimClaim
})
if err != nil {
return *outstruct, err
}
outstruct.InstanceId = *abi.ConvertType(out[0], new(*big.Int)).(**big.Int)
outstruct.Claim = *abi.ConvertType(out[1], new(IERC721LazyPayableClaimClaim)).(*IERC721LazyPayableClaimClaim)
return *outstruct, err
}
// GetClaimForToken is a free data retrieval call binding the contract method 0x895696f2.
//
// Solidity: function getClaimForToken(address creatorContractAddress, uint256 tokenId) view returns(uint256 instanceId, (uint32,uint32,uint32,uint48,uint48,uint8,uint8,bool,bytes32,string,uint256,address,address) claim)
func (_Manifold *ManifoldSession) GetClaimForToken(creatorContractAddress common.Address, tokenId *big.Int) (struct {
InstanceId *big.Int
Claim IERC721LazyPayableClaimClaim
}, error) {
return _Manifold.Contract.GetClaimForToken(&_Manifold.CallOpts, creatorContractAddress, tokenId)
}
// GetClaimForToken is a free data retrieval call binding the contract method 0x895696f2.
//
// Solidity: function getClaimForToken(address creatorContractAddress, uint256 tokenId) view returns(uint256 instanceId, (uint32,uint32,uint32,uint48,uint48,uint8,uint8,bool,bytes32,string,uint256,address,address) claim)
func (_Manifold *ManifoldCallerSession) GetClaimForToken(creatorContractAddress common.Address, tokenId *big.Int) (struct {
InstanceId *big.Int
Claim IERC721LazyPayableClaimClaim
}, error) {
return _Manifold.Contract.GetClaimForToken(&_Manifold.CallOpts, creatorContractAddress, tokenId)
}
// GetTotalMints is a free data retrieval call binding the contract method 0x42f3bef4.
//
// Solidity: function getTotalMints(address minter, address creatorContractAddress, uint256 instanceId) view returns(uint32)
func (_Manifold *ManifoldCaller) GetTotalMints(opts *bind.CallOpts, minter common.Address, creatorContractAddress common.Address, instanceId *big.Int) (uint32, error) {
var out []interface{}
err := _Manifold.contract.Call(opts, &out, "getTotalMints", minter, creatorContractAddress, instanceId)
if err != nil {
return *new(uint32), err
}
out0 := *abi.ConvertType(out[0], new(uint32)).(*uint32)
return out0, err
}
// GetTotalMints is a free data retrieval call binding the contract method 0x42f3bef4.
//
// Solidity: function getTotalMints(address minter, address creatorContractAddress, uint256 instanceId) view returns(uint32)
func (_Manifold *ManifoldSession) GetTotalMints(minter common.Address, creatorContractAddress common.Address, instanceId *big.Int) (uint32, error) {
return _Manifold.Contract.GetTotalMints(&_Manifold.CallOpts, minter, creatorContractAddress, instanceId)
}
// GetTotalMints is a free data retrieval call binding the contract method 0x42f3bef4.
//
// Solidity: function getTotalMints(address minter, address creatorContractAddress, uint256 instanceId) view returns(uint32)
func (_Manifold *ManifoldCallerSession) GetTotalMints(minter common.Address, creatorContractAddress common.Address, instanceId *big.Int) (uint32, error) {
return _Manifold.Contract.GetTotalMints(&_Manifold.CallOpts, minter, creatorContractAddress, instanceId)
}
// IsAdmin is a free data retrieval call binding the contract method 0x24d7806c.
//
// Solidity: function isAdmin(address admin) view returns(bool)
func (_Manifold *ManifoldCaller) IsAdmin(opts *bind.CallOpts, admin common.Address) (bool, error) {
var out []interface{}
err := _Manifold.contract.Call(opts, &out, "isAdmin", admin)
if err != nil {
return *new(bool), err
}
out0 := *abi.ConvertType(out[0], new(bool)).(*bool)
return out0, err
}
// IsAdmin is a free data retrieval call binding the contract method 0x24d7806c.
//
// Solidity: function isAdmin(address admin) view returns(bool)
func (_Manifold *ManifoldSession) IsAdmin(admin common.Address) (bool, error) {
return _Manifold.Contract.IsAdmin(&_Manifold.CallOpts, admin)
}
// IsAdmin is a free data retrieval call binding the contract method 0x24d7806c.
//
// Solidity: function isAdmin(address admin) view returns(bool)
func (_Manifold *ManifoldCallerSession) IsAdmin(admin common.Address) (bool, error) {
return _Manifold.Contract.IsAdmin(&_Manifold.CallOpts, admin)
}
// Owner is a free data retrieval call binding the contract method 0x8da5cb5b.
//
// Solidity: function owner() view returns(address)
func (_Manifold *ManifoldCaller) Owner(opts *bind.CallOpts) (common.Address, error) {
var out []interface{}
err := _Manifold.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 (_Manifold *ManifoldSession) Owner() (common.Address, error) {
return _Manifold.Contract.Owner(&_Manifold.CallOpts)
}
// Owner is a free data retrieval call binding the contract method 0x8da5cb5b.
//
// Solidity: function owner() view returns(address)
func (_Manifold *ManifoldCallerSession) Owner() (common.Address, error) {
return _Manifold.Contract.Owner(&_Manifold.CallOpts)
}
// SupportsInterface is a free data retrieval call binding the contract method 0x01ffc9a7.
//
// Solidity: function supportsInterface(bytes4 interfaceId) view returns(bool)
func (_Manifold *ManifoldCaller) SupportsInterface(opts *bind.CallOpts, interfaceId [4]byte) (bool, error) {
var out []interface{}
err := _Manifold.contract.Call(opts, &out, "supportsInterface", interfaceId)
if err != nil {
return *new(bool), err
}
out0 := *abi.ConvertType(out[0], new(bool)).(*bool)
return out0, err
}
// SupportsInterface is a free data retrieval call binding the contract method 0x01ffc9a7.
//
// Solidity: function supportsInterface(bytes4 interfaceId) view returns(bool)
func (_Manifold *ManifoldSession) SupportsInterface(interfaceId [4]byte) (bool, error) {
return _Manifold.Contract.SupportsInterface(&_Manifold.CallOpts, interfaceId)
}
// SupportsInterface is a free data retrieval call binding the contract method 0x01ffc9a7.
//
// Solidity: function supportsInterface(bytes4 interfaceId) view returns(bool)
func (_Manifold *ManifoldCallerSession) SupportsInterface(interfaceId [4]byte) (bool, error) {
return _Manifold.Contract.SupportsInterface(&_Manifold.CallOpts, interfaceId)
}
// TokenURI is a free data retrieval call binding the contract method 0xe9dc6375.
//
// Solidity: function tokenURI(address creatorContractAddress, uint256 tokenId) view returns(string uri)
func (_Manifold *ManifoldCaller) TokenURI(opts *bind.CallOpts, creatorContractAddress common.Address, tokenId *big.Int) (string, error) {
var out []interface{}
err := _Manifold.contract.Call(opts, &out, "tokenURI", creatorContractAddress, tokenId)
if err != nil {
return *new(string), err
}
out0 := *abi.ConvertType(out[0], new(string)).(*string)
return out0, err
}
// TokenURI is a free data retrieval call binding the contract method 0xe9dc6375.
//
// Solidity: function tokenURI(address creatorContractAddress, uint256 tokenId) view returns(string uri)
func (_Manifold *ManifoldSession) TokenURI(creatorContractAddress common.Address, tokenId *big.Int) (string, error) {
return _Manifold.Contract.TokenURI(&_Manifold.CallOpts, creatorContractAddress, tokenId)
}
// TokenURI is a free data retrieval call binding the contract method 0xe9dc6375.
//
// Solidity: function tokenURI(address creatorContractAddress, uint256 tokenId) view returns(string uri)
func (_Manifold *ManifoldCallerSession) TokenURI(creatorContractAddress common.Address, tokenId *big.Int) (string, error) {
return _Manifold.Contract.TokenURI(&_Manifold.CallOpts, creatorContractAddress, tokenId)
}
// Airdrop is a paid mutator transaction binding the contract method 0x5f2f5129.
//
// Solidity: function airdrop(address creatorContractAddress, uint256 instanceId, address[] recipients, uint16[] amounts) returns()
func (_Manifold *ManifoldTransactor) Airdrop(opts *bind.TransactOpts, creatorContractAddress common.Address, instanceId *big.Int, recipients []common.Address, amounts []uint16) (*types.Transaction, error) {
return _Manifold.contract.Transact(opts, "airdrop", creatorContractAddress, instanceId, recipients, amounts)
}
// Airdrop is a paid mutator transaction binding the contract method 0x5f2f5129.
//
// Solidity: function airdrop(address creatorContractAddress, uint256 instanceId, address[] recipients, uint16[] amounts) returns()
func (_Manifold *ManifoldSession) Airdrop(creatorContractAddress common.Address, instanceId *big.Int, recipients []common.Address, amounts []uint16) (*types.Transaction, error) {
return _Manifold.Contract.Airdrop(&_Manifold.TransactOpts, creatorContractAddress, instanceId, recipients, amounts)
}
// Airdrop is a paid mutator transaction binding the contract method 0x5f2f5129.
//
// Solidity: function airdrop(address creatorContractAddress, uint256 instanceId, address[] recipients, uint16[] amounts) returns()
func (_Manifold *ManifoldTransactorSession) Airdrop(creatorContractAddress common.Address, instanceId *big.Int, recipients []common.Address, amounts []uint16) (*types.Transaction, error) {
return _Manifold.Contract.Airdrop(&_Manifold.TransactOpts, creatorContractAddress, instanceId, recipients, amounts)
}
// ApproveAdmin is a paid mutator transaction binding the contract method 0x6d73e669.
//
// Solidity: function approveAdmin(address admin) returns()
func (_Manifold *ManifoldTransactor) ApproveAdmin(opts *bind.TransactOpts, admin common.Address) (*types.Transaction, error) {
return _Manifold.contract.Transact(opts, "approveAdmin", admin)
}
// ApproveAdmin is a paid mutator transaction binding the contract method 0x6d73e669.
//
// Solidity: function approveAdmin(address admin) returns()
func (_Manifold *ManifoldSession) ApproveAdmin(admin common.Address) (*types.Transaction, error) {
return _Manifold.Contract.ApproveAdmin(&_Manifold.TransactOpts, admin)
}
// ApproveAdmin is a paid mutator transaction binding the contract method 0x6d73e669.
//
// Solidity: function approveAdmin(address admin) returns()
func (_Manifold *ManifoldTransactorSession) ApproveAdmin(admin common.Address) (*types.Transaction, error) {
return _Manifold.Contract.ApproveAdmin(&_Manifold.TransactOpts, admin)
}
// ExtendTokenURI is a paid mutator transaction binding the contract method 0xb93aa86c.
//
// Solidity: function extendTokenURI(address creatorContractAddress, uint256 instanceId, string locationChunk) returns()
func (_Manifold *ManifoldTransactor) ExtendTokenURI(opts *bind.TransactOpts, creatorContractAddress common.Address, instanceId *big.Int, locationChunk string) (*types.Transaction, error) {
return _Manifold.contract.Transact(opts, "extendTokenURI", creatorContractAddress, instanceId, locationChunk)
}
// ExtendTokenURI is a paid mutator transaction binding the contract method 0xb93aa86c.
//
// Solidity: function extendTokenURI(address creatorContractAddress, uint256 instanceId, string locationChunk) returns()
func (_Manifold *ManifoldSession) ExtendTokenURI(creatorContractAddress common.Address, instanceId *big.Int, locationChunk string) (*types.Transaction, error) {
return _Manifold.Contract.ExtendTokenURI(&_Manifold.TransactOpts, creatorContractAddress, instanceId, locationChunk)
}
// ExtendTokenURI is a paid mutator transaction binding the contract method 0xb93aa86c.
//
// Solidity: function extendTokenURI(address creatorContractAddress, uint256 instanceId, string locationChunk) returns()
func (_Manifold *ManifoldTransactorSession) ExtendTokenURI(creatorContractAddress common.Address, instanceId *big.Int, locationChunk string) (*types.Transaction, error) {
return _Manifold.Contract.ExtendTokenURI(&_Manifold.TransactOpts, creatorContractAddress, instanceId, locationChunk)
}
// InitializeClaim is a paid mutator transaction binding the contract method 0x975b4d95.
//
// Solidity: function initializeClaim(address creatorContractAddress, uint256 instanceId, (uint32,uint32,uint48,uint48,uint8,bool,bytes32,string,uint256,address,address) claimParameters) returns()
func (_Manifold *ManifoldTransactor) InitializeClaim(opts *bind.TransactOpts, creatorContractAddress common.Address, instanceId *big.Int, claimParameters IERC721LazyPayableClaimClaimParameters) (*types.Transaction, error) {
return _Manifold.contract.Transact(opts, "initializeClaim", creatorContractAddress, instanceId, claimParameters)
}
// InitializeClaim is a paid mutator transaction binding the contract method 0x975b4d95.
//
// Solidity: function initializeClaim(address creatorContractAddress, uint256 instanceId, (uint32,uint32,uint48,uint48,uint8,bool,bytes32,string,uint256,address,address) claimParameters) returns()
func (_Manifold *ManifoldSession) InitializeClaim(creatorContractAddress common.Address, instanceId *big.Int, claimParameters IERC721LazyPayableClaimClaimParameters) (*types.Transaction, error) {
return _Manifold.Contract.InitializeClaim(&_Manifold.TransactOpts, creatorContractAddress, instanceId, claimParameters)
}
// InitializeClaim is a paid mutator transaction binding the contract method 0x975b4d95.
//
// Solidity: function initializeClaim(address creatorContractAddress, uint256 instanceId, (uint32,uint32,uint48,uint48,uint8,bool,bytes32,string,uint256,address,address) claimParameters) returns()
func (_Manifold *ManifoldTransactorSession) InitializeClaim(creatorContractAddress common.Address, instanceId *big.Int, claimParameters IERC721LazyPayableClaimClaimParameters) (*types.Transaction, error) {
return _Manifold.Contract.InitializeClaim(&_Manifold.TransactOpts, creatorContractAddress, instanceId, claimParameters)
}
// Mint is a paid mutator transaction binding the contract method 0xfa2b068f.
//
// Solidity: function mint(address creatorContractAddress, uint256 instanceId, uint32 mintIndex, bytes32[] merkleProof, address mintFor) payable returns()
func (_Manifold *ManifoldTransactor) Mint(opts *bind.TransactOpts, creatorContractAddress common.Address, instanceId *big.Int, mintIndex uint32, merkleProof [][32]byte, mintFor common.Address) (*types.Transaction, error) {
return _Manifold.contract.Transact(opts, "mint", creatorContractAddress, instanceId, mintIndex, merkleProof, mintFor)
}
// Mint is a paid mutator transaction binding the contract method 0xfa2b068f.
//
// Solidity: function mint(address creatorContractAddress, uint256 instanceId, uint32 mintIndex, bytes32[] merkleProof, address mintFor) payable returns()
func (_Manifold *ManifoldSession) Mint(creatorContractAddress common.Address, instanceId *big.Int, mintIndex uint32, merkleProof [][32]byte, mintFor common.Address) (*types.Transaction, error) {
return _Manifold.Contract.Mint(&_Manifold.TransactOpts, creatorContractAddress, instanceId, mintIndex, merkleProof, mintFor)
}
// Mint is a paid mutator transaction binding the contract method 0xfa2b068f.
//
// Solidity: function mint(address creatorContractAddress, uint256 instanceId, uint32 mintIndex, bytes32[] merkleProof, address mintFor) payable returns()
func (_Manifold *ManifoldTransactorSession) Mint(creatorContractAddress common.Address, instanceId *big.Int, mintIndex uint32, merkleProof [][32]byte, mintFor common.Address) (*types.Transaction, error) {
return _Manifold.Contract.Mint(&_Manifold.TransactOpts, creatorContractAddress, instanceId, mintIndex, merkleProof, mintFor)
}
// MintBatch is a paid mutator transaction binding the contract method 0x26c858a4.
//
// Solidity: function mintBatch(address creatorContractAddress, uint256 instanceId, uint16 mintCount, uint32[] mintIndices, bytes32[][] merkleProofs, address mintFor) payable returns()
func (_Manifold *ManifoldTransactor) MintBatch(opts *bind.TransactOpts, creatorContractAddress common.Address, instanceId *big.Int, mintCount uint16, mintIndices []uint32, merkleProofs [][][32]byte, mintFor common.Address) (*types.Transaction, error) {
return _Manifold.contract.Transact(opts, "mintBatch", creatorContractAddress, instanceId, mintCount, mintIndices, merkleProofs, mintFor)
}
// MintBatch is a paid mutator transaction binding the contract method 0x26c858a4.
//
// Solidity: function mintBatch(address creatorContractAddress, uint256 instanceId, uint16 mintCount, uint32[] mintIndices, bytes32[][] merkleProofs, address mintFor) payable returns()
func (_Manifold *ManifoldSession) MintBatch(creatorContractAddress common.Address, instanceId *big.Int, mintCount uint16, mintIndices []uint32, merkleProofs [][][32]byte, mintFor common.Address) (*types.Transaction, error) {
return _Manifold.Contract.MintBatch(&_Manifold.TransactOpts, creatorContractAddress, instanceId, mintCount, mintIndices, merkleProofs, mintFor)
}
// MintBatch is a paid mutator transaction binding the contract method 0x26c858a4.
//
// Solidity: function mintBatch(address creatorContractAddress, uint256 instanceId, uint16 mintCount, uint32[] mintIndices, bytes32[][] merkleProofs, address mintFor) payable returns()
func (_Manifold *ManifoldTransactorSession) MintBatch(creatorContractAddress common.Address, instanceId *big.Int, mintCount uint16, mintIndices []uint32, merkleProofs [][][32]byte, mintFor common.Address) (*types.Transaction, error) {
return _Manifold.Contract.MintBatch(&_Manifold.TransactOpts, creatorContractAddress, instanceId, mintCount, mintIndices, merkleProofs, mintFor)
}
// MintProxy is a paid mutator transaction binding the contract method 0x07591acc.
//
// Solidity: function mintProxy(address creatorContractAddress, uint256 instanceId, uint16 mintCount, uint32[] mintIndices, bytes32[][] merkleProofs, address mintFor) payable returns()
func (_Manifold *ManifoldTransactor) MintProxy(opts *bind.TransactOpts, creatorContractAddress common.Address, instanceId *big.Int, mintCount uint16, mintIndices []uint32, merkleProofs [][][32]byte, mintFor common.Address) (*types.Transaction, error) {
return _Manifold.contract.Transact(opts, "mintProxy", creatorContractAddress, instanceId, mintCount, mintIndices, merkleProofs, mintFor)
}
// MintProxy is a paid mutator transaction binding the contract method 0x07591acc.
//
// Solidity: function mintProxy(address creatorContractAddress, uint256 instanceId, uint16 mintCount, uint32[] mintIndices, bytes32[][] merkleProofs, address mintFor) payable returns()
func (_Manifold *ManifoldSession) MintProxy(creatorContractAddress common.Address, instanceId *big.Int, mintCount uint16, mintIndices []uint32, merkleProofs [][][32]byte, mintFor common.Address) (*types.Transaction, error) {
return _Manifold.Contract.MintProxy(&_Manifold.TransactOpts, creatorContractAddress, instanceId, mintCount, mintIndices, merkleProofs, mintFor)
}
// MintProxy is a paid mutator transaction binding the contract method 0x07591acc.
//
// Solidity: function mintProxy(address creatorContractAddress, uint256 instanceId, uint16 mintCount, uint32[] mintIndices, bytes32[][] merkleProofs, address mintFor) payable returns()
func (_Manifold *ManifoldTransactorSession) MintProxy(creatorContractAddress common.Address, instanceId *big.Int, mintCount uint16, mintIndices []uint32, merkleProofs [][][32]byte, mintFor common.Address) (*types.Transaction, error) {
return _Manifold.Contract.MintProxy(&_Manifold.TransactOpts, creatorContractAddress, instanceId, mintCount, mintIndices, merkleProofs, mintFor)
}
// RenounceOwnership is a paid mutator transaction binding the contract method 0x715018a6.
//
// Solidity: function renounceOwnership() returns()
func (_Manifold *ManifoldTransactor) RenounceOwnership(opts *bind.TransactOpts) (*types.Transaction, error) {
return _Manifold.contract.Transact(opts, "renounceOwnership")
}
// RenounceOwnership is a paid mutator transaction binding the contract method 0x715018a6.
//
// Solidity: function renounceOwnership() returns()
func (_Manifold *ManifoldSession) RenounceOwnership() (*types.Transaction, error) {
return _Manifold.Contract.RenounceOwnership(&_Manifold.TransactOpts)
}
// RenounceOwnership is a paid mutator transaction binding the contract method 0x715018a6.
//
// Solidity: function renounceOwnership() returns()
func (_Manifold *ManifoldTransactorSession) RenounceOwnership() (*types.Transaction, error) {
return _Manifold.Contract.RenounceOwnership(&_Manifold.TransactOpts)
}
// RevokeAdmin is a paid mutator transaction binding the contract method 0x2d345670.
//
// Solidity: function revokeAdmin(address admin) returns()
func (_Manifold *ManifoldTransactor) RevokeAdmin(opts *bind.TransactOpts, admin common.Address) (*types.Transaction, error) {
return _Manifold.contract.Transact(opts, "revokeAdmin", admin)
}
// RevokeAdmin is a paid mutator transaction binding the contract method 0x2d345670.
//
// Solidity: function revokeAdmin(address admin) returns()
func (_Manifold *ManifoldSession) RevokeAdmin(admin common.Address) (*types.Transaction, error) {
return _Manifold.Contract.RevokeAdmin(&_Manifold.TransactOpts, admin)
}
// RevokeAdmin is a paid mutator transaction binding the contract method 0x2d345670.
//
// Solidity: function revokeAdmin(address admin) returns()
func (_Manifold *ManifoldTransactorSession) RevokeAdmin(admin common.Address) (*types.Transaction, error) {
return _Manifold.Contract.RevokeAdmin(&_Manifold.TransactOpts, admin)
}
// SetMembershipAddress is a paid mutator transaction binding the contract method 0x7ab39392.
//
// Solidity: function setMembershipAddress(address membershipAddress) returns()
func (_Manifold *ManifoldTransactor) SetMembershipAddress(opts *bind.TransactOpts, membershipAddress common.Address) (*types.Transaction, error) {
return _Manifold.contract.Transact(opts, "setMembershipAddress", membershipAddress)
}
// SetMembershipAddress is a paid mutator transaction binding the contract method 0x7ab39392.
//
// Solidity: function setMembershipAddress(address membershipAddress) returns()
func (_Manifold *ManifoldSession) SetMembershipAddress(membershipAddress common.Address) (*types.Transaction, error) {
return _Manifold.Contract.SetMembershipAddress(&_Manifold.TransactOpts, membershipAddress)
}
// SetMembershipAddress is a paid mutator transaction binding the contract method 0x7ab39392.
//
// Solidity: function setMembershipAddress(address membershipAddress) returns()
func (_Manifold *ManifoldTransactorSession) SetMembershipAddress(membershipAddress common.Address) (*types.Transaction, error) {
return _Manifold.Contract.SetMembershipAddress(&_Manifold.TransactOpts, membershipAddress)
}
// TransferOwnership is a paid mutator transaction binding the contract method 0xf2fde38b.
//
// Solidity: function transferOwnership(address newOwner) returns()
func (_Manifold *ManifoldTransactor) TransferOwnership(opts *bind.TransactOpts, newOwner common.Address) (*types.Transaction, error) {
return _Manifold.contract.Transact(opts, "transferOwnership", newOwner)
}
// TransferOwnership is a paid mutator transaction binding the contract method 0xf2fde38b.
//
// Solidity: function transferOwnership(address newOwner) returns()
func (_Manifold *ManifoldSession) TransferOwnership(newOwner common.Address) (*types.Transaction, error) {
return _Manifold.Contract.TransferOwnership(&_Manifold.TransactOpts, newOwner)
}
// TransferOwnership is a paid mutator transaction binding the contract method 0xf2fde38b.
//
// Solidity: function transferOwnership(address newOwner) returns()
func (_Manifold *ManifoldTransactorSession) TransferOwnership(newOwner common.Address) (*types.Transaction, error) {
return _Manifold.Contract.TransferOwnership(&_Manifold.TransactOpts, newOwner)
}
// UpdateClaim is a paid mutator transaction binding the contract method 0x9c8eb489.
//
// Solidity: function updateClaim(address creatorContractAddress, uint256 instanceId, (uint32,uint32,uint48,uint48,uint8,bool,bytes32,string,uint256,address,address) claimParameters) returns()
func (_Manifold *ManifoldTransactor) UpdateClaim(opts *bind.TransactOpts, creatorContractAddress common.Address, instanceId *big.Int, claimParameters IERC721LazyPayableClaimClaimParameters) (*types.Transaction, error) {
return _Manifold.contract.Transact(opts, "updateClaim", creatorContractAddress, instanceId, claimParameters)
}
// UpdateClaim is a paid mutator transaction binding the contract method 0x9c8eb489.
//
// Solidity: function updateClaim(address creatorContractAddress, uint256 instanceId, (uint32,uint32,uint48,uint48,uint8,bool,bytes32,string,uint256,address,address) claimParameters) returns()
func (_Manifold *ManifoldSession) UpdateClaim(creatorContractAddress common.Address, instanceId *big.Int, claimParameters IERC721LazyPayableClaimClaimParameters) (*types.Transaction, error) {
return _Manifold.Contract.UpdateClaim(&_Manifold.TransactOpts, creatorContractAddress, instanceId, claimParameters)
}
// UpdateClaim is a paid mutator transaction binding the contract method 0x9c8eb489.
//
// Solidity: function updateClaim(address creatorContractAddress, uint256 instanceId, (uint32,uint32,uint48,uint48,uint8,bool,bytes32,string,uint256,address,address) claimParameters) returns()
func (_Manifold *ManifoldTransactorSession) UpdateClaim(creatorContractAddress common.Address, instanceId *big.Int, claimParameters IERC721LazyPayableClaimClaimParameters) (*types.Transaction, error) {
return _Manifold.Contract.UpdateClaim(&_Manifold.TransactOpts, creatorContractAddress, instanceId, claimParameters)
}
// UpdateTokenURIParams is a paid mutator transaction binding the contract method 0x99c14347.
//
// Solidity: function updateTokenURIParams(address creatorContractAddress, uint256 instanceId, uint8 storageProtocol, bool identical, string location) returns()
func (_Manifold *ManifoldTransactor) UpdateTokenURIParams(opts *bind.TransactOpts, creatorContractAddress common.Address, instanceId *big.Int, storageProtocol uint8, identical bool, location string) (*types.Transaction, error) {
return _Manifold.contract.Transact(opts, "updateTokenURIParams", creatorContractAddress, instanceId, storageProtocol, identical, location)
}
// UpdateTokenURIParams is a paid mutator transaction binding the contract method 0x99c14347.
//
// Solidity: function updateTokenURIParams(address creatorContractAddress, uint256 instanceId, uint8 storageProtocol, bool identical, string location) returns()
func (_Manifold *ManifoldSession) UpdateTokenURIParams(creatorContractAddress common.Address, instanceId *big.Int, storageProtocol uint8, identical bool, location string) (*types.Transaction, error) {
return _Manifold.Contract.UpdateTokenURIParams(&_Manifold.TransactOpts, creatorContractAddress, instanceId, storageProtocol, identical, location)
}
// UpdateTokenURIParams is a paid mutator transaction binding the contract method 0x99c14347.
//
// Solidity: function updateTokenURIParams(address creatorContractAddress, uint256 instanceId, uint8 storageProtocol, bool identical, string location) returns()
func (_Manifold *ManifoldTransactorSession) UpdateTokenURIParams(creatorContractAddress common.Address, instanceId *big.Int, storageProtocol uint8, identical bool, location string) (*types.Transaction, error) {
return _Manifold.Contract.UpdateTokenURIParams(&_Manifold.TransactOpts, creatorContractAddress, instanceId, storageProtocol, identical, location)
}
// Withdraw is a paid mutator transaction binding the contract method 0xf3fef3a3.
//
// Solidity: function withdraw(address receiver, uint256 amount) returns()
func (_Manifold *ManifoldTransactor) Withdraw(opts *bind.TransactOpts, receiver common.Address, amount *big.Int) (*types.Transaction, error) {
return _Manifold.contract.Transact(opts, "withdraw", receiver, amount)
}
// Withdraw is a paid mutator transaction binding the contract method 0xf3fef3a3.
//
// Solidity: function withdraw(address receiver, uint256 amount) returns()
func (_Manifold *ManifoldSession) Withdraw(receiver common.Address, amount *big.Int) (*types.Transaction, error) {
return _Manifold.Contract.Withdraw(&_Manifold.TransactOpts, receiver, amount)
}
// Withdraw is a paid mutator transaction binding the contract method 0xf3fef3a3.
//
// Solidity: function withdraw(address receiver, uint256 amount) returns()
func (_Manifold *ManifoldTransactorSession) Withdraw(receiver common.Address, amount *big.Int) (*types.Transaction, error) {
return _Manifold.Contract.Withdraw(&_Manifold.TransactOpts, receiver, amount)
}
// ManifoldAdminApprovedIterator is returned from FilterAdminApproved and is used to iterate over the raw logs and unpacked data for AdminApproved events raised by the Manifold contract.
type ManifoldAdminApprovedIterator struct {
Event *ManifoldAdminApproved // Event containing the contract specifics and raw log
contract *bind.BoundContract // Generic contract to use for unpacking event data
event string // Event name to use for unpacking event data
logs chan types.Log // Log channel receiving the found contract events
sub ethereum.Subscription // Subscription for errors, completion and termination
done bool // Whether the subscription completed delivering logs
fail error // Occurred error to stop iteration
}
// Next advances the iterator to the subsequent event, returning whether there
// are any more events found. In case of a retrieval or parsing error, false is
// returned and Error() can be queried for the exact failure.
func (it *ManifoldAdminApprovedIterator) Next() bool {
// If the iterator failed, stop iterating
if it.fail != nil {
return false
}
// If the iterator completed, deliver directly whatever's available
if it.done {
select {
case log := <-it.logs:
it.Event = new(ManifoldAdminApproved)
if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil {
it.fail = err
return false
}
it.Event.Raw = log
return true
default:
return false
}
}
// Iterator still in progress, wait for either a data or an error event
select {
case log := <-it.logs:
it.Event = new(ManifoldAdminApproved)
if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil {
it.fail = err
return false
}