-
Notifications
You must be signed in to change notification settings - Fork 127
/
ConverterTypeFour.go
3255 lines (2721 loc) · 165 KB
/
ConverterTypeFour.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 ConverterTypeFour
import (
"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 (
_ = big.NewInt
_ = strings.NewReader
_ = ethereum.NotFound
_ = bind.Bind
_ = common.Big1
_ = types.BloomLookup
_ = event.NewSubscription
)
// ConverterTypeFourABI is the input ABI used to generate the binding from.
const ConverterTypeFourABI = "[{\"constant\":true,\"inputs\":[],\"name\":\"BANCOR_CONVERTER_UPGRADER\",\"outputs\":[{\"name\":\"\",\"type\":\"bytes32\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"name\":\"_connectorToken\",\"type\":\"address\"},{\"name\":\"\",\"type\":\"uint32\"},{\"name\":\"\",\"type\":\"bool\"},{\"name\":\"_virtualBalance\",\"type\":\"uint256\"}],\"name\":\"updateConnector\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[{\"name\":\"_address\",\"type\":\"address\"}],\"name\":\"connectors\",\"outputs\":[{\"name\":\"\",\"type\":\"uint256\"},{\"name\":\"\",\"type\":\"uint32\"},{\"name\":\"\",\"type\":\"bool\"},{\"name\":\"\",\"type\":\"bool\"},{\"name\":\"\",\"type\":\"bool\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"bancorX\",\"outputs\":[{\"name\":\"\",\"type\":\"address\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[{\"name\":\"_reserveToken\",\"type\":\"address\"}],\"name\":\"getReserveBalance\",\"outputs\":[{\"name\":\"\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[{\"name\":\"_index\",\"type\":\"uint256\"}],\"name\":\"connectorTokens\",\"outputs\":[{\"name\":\"\",\"type\":\"address\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"BNT_TOKEN\",\"outputs\":[{\"name\":\"\",\"type\":\"bytes32\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[{\"name\":\"_fromToken\",\"type\":\"address\"},{\"name\":\"_toToken\",\"type\":\"address\"},{\"name\":\"_amount\",\"type\":\"uint256\"}],\"name\":\"getReturn\",\"outputs\":[{\"name\":\"\",\"type\":\"uint256\"},{\"name\":\"\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"allowRegistryUpdate\",\"outputs\":[{\"name\":\"\",\"type\":\"bool\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"name\":\"_newOwner\",\"type\":\"address\"}],\"name\":\"transferTokenOwnership\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"name\":\"_path\",\"type\":\"address[]\"},{\"name\":\"_amount\",\"type\":\"uint256\"},{\"name\":\"_minReturn\",\"type\":\"uint256\"},{\"name\":\"_block\",\"type\":\"uint256\"},{\"name\":\"_v\",\"type\":\"uint8\"},{\"name\":\"_r\",\"type\":\"bytes32\"},{\"name\":\"_s\",\"type\":\"bytes32\"}],\"name\":\"quickConvertPrioritized\",\"outputs\":[{\"name\":\"\",\"type\":\"uint256\"}],\"payable\":true,\"stateMutability\":\"payable\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"name\":\"_disable\",\"type\":\"bool\"}],\"name\":\"disableConversions\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"CONTRACT_REGISTRY\",\"outputs\":[{\"name\":\"\",\"type\":\"bytes32\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"name\":\"_fromToken\",\"type\":\"address\"},{\"name\":\"_toToken\",\"type\":\"address\"},{\"name\":\"_amount\",\"type\":\"uint256\"},{\"name\":\"_minReturn\",\"type\":\"uint256\"}],\"name\":\"convertInternal\",\"outputs\":[{\"name\":\"\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"name\":\"_path\",\"type\":\"address[]\"},{\"name\":\"_minReturn\",\"type\":\"uint256\"},{\"name\":\"_conversionId\",\"type\":\"uint256\"},{\"name\":\"_signature\",\"type\":\"uint256[]\"}],\"name\":\"completeXConversion2\",\"outputs\":[{\"name\":\"\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[],\"name\":\"acceptTokenOwnership\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[{\"name\":\"_amount\",\"type\":\"uint256\"},{\"name\":\"_magnitude\",\"type\":\"uint8\"}],\"name\":\"getFinalAmount\",\"outputs\":[{\"name\":\"\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"converterType\",\"outputs\":[{\"name\":\"\",\"type\":\"string\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"name\":\"_token\",\"type\":\"address\"},{\"name\":\"_weight\",\"type\":\"uint32\"},{\"name\":\"\",\"type\":\"bool\"}],\"name\":\"addConnector\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"name\":\"_amount\",\"type\":\"uint256\"}],\"name\":\"liquidate\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"name\":\"_token\",\"type\":\"address\"},{\"name\":\"_to\",\"type\":\"address\"},{\"name\":\"_amount\",\"type\":\"uint256\"}],\"name\":\"withdrawFromToken\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"newManager\",\"outputs\":[{\"name\":\"\",\"type\":\"address\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"manager\",\"outputs\":[{\"name\":\"\",\"type\":\"address\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[],\"name\":\"updateRegistry\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"name\":\"_whitelist\",\"type\":\"address\"}],\"name\":\"setConversionWhitelist\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"name\":\"_path\",\"type\":\"address[]\"},{\"name\":\"_minReturn\",\"type\":\"uint256\"},{\"name\":\"_conversionId\",\"type\":\"uint256\"},{\"name\":\"_block\",\"type\":\"uint256\"},{\"name\":\"_v\",\"type\":\"uint8\"},{\"name\":\"_r\",\"type\":\"bytes32\"},{\"name\":\"_s\",\"type\":\"bytes32\"}],\"name\":\"completeXConversion\",\"outputs\":[{\"name\":\"\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"version\",\"outputs\":[{\"name\":\"\",\"type\":\"uint16\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"conversionFee\",\"outputs\":[{\"name\":\"\",\"type\":\"uint32\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"BANCOR_CONVERTER_FACTORY\",\"outputs\":[{\"name\":\"\",\"type\":\"bytes32\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"name\":\"_token\",\"type\":\"address\"},{\"name\":\"_to\",\"type\":\"address\"},{\"name\":\"_amount\",\"type\":\"uint256\"}],\"name\":\"withdrawTokens\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"name\":\"_fromToken\",\"type\":\"address\"},{\"name\":\"_toToken\",\"type\":\"address\"},{\"name\":\"_amount\",\"type\":\"uint256\"},{\"name\":\"_minReturn\",\"type\":\"uint256\"}],\"name\":\"change\",\"outputs\":[{\"name\":\"\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"prevRegistry\",\"outputs\":[{\"name\":\"\",\"type\":\"address\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"name\":\"_scaleFactor\",\"type\":\"uint16\"}],\"name\":\"enableVirtualBalances\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"name\":\"_token\",\"type\":\"address\"},{\"name\":\"_ratio\",\"type\":\"uint32\"}],\"name\":\"addReserve\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"BANCOR_FORMULA\",\"outputs\":[{\"name\":\"\",\"type\":\"bytes32\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"name\":\"_fromToken\",\"type\":\"address\"},{\"name\":\"_toToken\",\"type\":\"address\"},{\"name\":\"_amount\",\"type\":\"uint256\"},{\"name\":\"_minReturn\",\"type\":\"uint256\"},{\"name\":\"_affiliateAccount\",\"type\":\"address\"},{\"name\":\"_affiliateFee\",\"type\":\"uint256\"}],\"name\":\"convert2\",\"outputs\":[{\"name\":\"\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"connectorTokenCount\",\"outputs\":[{\"name\":\"\",\"type\":\"uint16\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[{\"name\":\"_reserveToken\",\"type\":\"address\"},{\"name\":\"_sellAmount\",\"type\":\"uint256\"}],\"name\":\"getSaleReturn\",\"outputs\":[{\"name\":\"\",\"type\":\"uint256\"},{\"name\":\"\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"name\":\"_fromToken\",\"type\":\"address\"},{\"name\":\"_toToken\",\"type\":\"address\"},{\"name\":\"_amount\",\"type\":\"uint256\"},{\"name\":\"_minReturn\",\"type\":\"uint256\"}],\"name\":\"convert\",\"outputs\":[{\"name\":\"\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[],\"name\":\"acceptOwnership\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"registry\",\"outputs\":[{\"name\":\"\",\"type\":\"address\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"CONTRACT_FEATURES\",\"outputs\":[{\"name\":\"\",\"type\":\"bytes32\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"owner\",\"outputs\":[{\"name\":\"\",\"type\":\"address\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[{\"name\":\"_fromConnectorToken\",\"type\":\"address\"},{\"name\":\"_toConnectorToken\",\"type\":\"address\"},{\"name\":\"_amount\",\"type\":\"uint256\"}],\"name\":\"getCrossConnectorReturn\",\"outputs\":[{\"name\":\"\",\"type\":\"uint256\"},{\"name\":\"\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"BANCOR_NETWORK\",\"outputs\":[{\"name\":\"\",\"type\":\"bytes32\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"BANCOR_GAS_PRICE_LIMIT\",\"outputs\":[{\"name\":\"\",\"type\":\"bytes32\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"CONVERTER_CONVERSION_WHITELIST\",\"outputs\":[{\"name\":\"\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"name\":\"_reserveToken\",\"type\":\"address\"},{\"name\":\"_virtualBalance\",\"type\":\"uint256\"}],\"name\":\"updateReserveVirtualBalance\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"maxConversionFee\",\"outputs\":[{\"name\":\"\",\"type\":\"uint32\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"reserveTokenCount\",\"outputs\":[{\"name\":\"\",\"type\":\"uint16\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"name\":\"_connectorToken\",\"type\":\"address\"},{\"name\":\"_disable\",\"type\":\"bool\"}],\"name\":\"disableConnectorSale\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[{\"name\":\"_reserveToken\",\"type\":\"address\"},{\"name\":\"_depositAmount\",\"type\":\"uint256\"}],\"name\":\"getPurchaseReturn\",\"outputs\":[{\"name\":\"\",\"type\":\"uint256\"},{\"name\":\"\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"name\":\"_reserveToken\",\"type\":\"address\"},{\"name\":\"_disable\",\"type\":\"bool\"}],\"name\":\"disableReserveSale\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"name\":\"_path\",\"type\":\"address[]\"},{\"name\":\"_amount\",\"type\":\"uint256\"},{\"name\":\"_minReturn\",\"type\":\"uint256\"},{\"name\":\"_signature\",\"type\":\"uint256[]\"},{\"name\":\"_affiliateAccount\",\"type\":\"address\"},{\"name\":\"_affiliateFee\",\"type\":\"uint256\"}],\"name\":\"quickConvertPrioritized2\",\"outputs\":[{\"name\":\"\",\"type\":\"uint256\"}],\"payable\":true,\"stateMutability\":\"payable\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[],\"name\":\"restoreRegistry\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"conversionsEnabled\",\"outputs\":[{\"name\":\"\",\"type\":\"bool\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"conversionWhitelist\",\"outputs\":[{\"name\":\"\",\"type\":\"address\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"BANCOR_X\",\"outputs\":[{\"name\":\"\",\"type\":\"bytes32\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[],\"name\":\"acceptManagement\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"name\":\"_amount\",\"type\":\"uint256\"}],\"name\":\"fund\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"BANCOR_X_UPGRADER\",\"outputs\":[{\"name\":\"\",\"type\":\"bytes32\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[{\"name\":\"_fromReserveToken\",\"type\":\"address\"},{\"name\":\"_toReserveToken\",\"type\":\"address\"},{\"name\":\"_amount\",\"type\":\"uint256\"}],\"name\":\"getCrossReserveReturn\",\"outputs\":[{\"name\":\"\",\"type\":\"uint256\"},{\"name\":\"\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[{\"name\":\"\",\"type\":\"uint256\"}],\"name\":\"reserveTokens\",\"outputs\":[{\"name\":\"\",\"type\":\"address\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"newOwner\",\"outputs\":[{\"name\":\"\",\"type\":\"address\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[],\"name\":\"upgrade\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[{\"name\":\"\",\"type\":\"address\"}],\"name\":\"reserves\",\"outputs\":[{\"name\":\"virtualBalance\",\"type\":\"uint256\"},{\"name\":\"ratio\",\"type\":\"uint32\"},{\"name\":\"isVirtualBalanceEnabled\",\"type\":\"bool\"},{\"name\":\"isSaleEnabled\",\"type\":\"bool\"},{\"name\":\"isSet\",\"type\":\"bool\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[{\"name\":\"_connectorToken\",\"type\":\"address\"}],\"name\":\"getConnectorBalance\",\"outputs\":[{\"name\":\"\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"name\":\"_bancorX\",\"type\":\"address\"}],\"name\":\"setBancorX\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"name\":\"_path\",\"type\":\"address[]\"},{\"name\":\"_amount\",\"type\":\"uint256\"},{\"name\":\"_minReturn\",\"type\":\"uint256\"},{\"name\":\"_affiliateAccount\",\"type\":\"address\"},{\"name\":\"_affiliateFee\",\"type\":\"uint256\"}],\"name\":\"quickConvert2\",\"outputs\":[{\"name\":\"\",\"type\":\"uint256\"}],\"payable\":true,\"stateMutability\":\"payable\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"name\":\"_newManager\",\"type\":\"address\"}],\"name\":\"transferManagement\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"name\":\"_conversionFee\",\"type\":\"uint32\"}],\"name\":\"setConversionFee\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"name\":\"_path\",\"type\":\"address[]\"},{\"name\":\"_amount\",\"type\":\"uint256\"},{\"name\":\"_minReturn\",\"type\":\"uint256\"}],\"name\":\"quickConvert\",\"outputs\":[{\"name\":\"\",\"type\":\"uint256\"}],\"payable\":true,\"stateMutability\":\"payable\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"name\":\"_newOwner\",\"type\":\"address\"}],\"name\":\"transferOwnership\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"NON_STANDARD_TOKEN_REGISTRY\",\"outputs\":[{\"name\":\"\",\"type\":\"bytes32\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"name\":\"_disable\",\"type\":\"bool\"}],\"name\":\"disableRegistryUpdate\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"token\",\"outputs\":[{\"name\":\"\",\"type\":\"address\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"name\":\"_from\",\"type\":\"address\"},{\"name\":\"_amount\",\"type\":\"uint256\"}],\"name\":\"claimTokens\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"name\":\"_token\",\"type\":\"address\"},{\"name\":\"_registry\",\"type\":\"address\"},{\"name\":\"_maxConversionFee\",\"type\":\"uint32\"},{\"name\":\"_reserveToken\",\"type\":\"address\"},{\"name\":\"_reserveRatio\",\"type\":\"uint32\"}],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"name\":\"_fromToken\",\"type\":\"address\"},{\"indexed\":true,\"name\":\"_toToken\",\"type\":\"address\"},{\"indexed\":true,\"name\":\"_trader\",\"type\":\"address\"},{\"indexed\":false,\"name\":\"_amount\",\"type\":\"uint256\"},{\"indexed\":false,\"name\":\"_return\",\"type\":\"uint256\"},{\"indexed\":false,\"name\":\"_conversionFee\",\"type\":\"int256\"}],\"name\":\"Conversion\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"name\":\"_connectorToken\",\"type\":\"address\"},{\"indexed\":false,\"name\":\"_tokenSupply\",\"type\":\"uint256\"},{\"indexed\":false,\"name\":\"_connectorBalance\",\"type\":\"uint256\"},{\"indexed\":false,\"name\":\"_connectorWeight\",\"type\":\"uint32\"}],\"name\":\"PriceDataUpdate\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"name\":\"_prevFee\",\"type\":\"uint32\"},{\"indexed\":false,\"name\":\"_newFee\",\"type\":\"uint32\"}],\"name\":\"ConversionFeeUpdate\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"name\":\"_conversionsEnabled\",\"type\":\"bool\"}],\"name\":\"ConversionsEnable\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"name\":\"_enabled\",\"type\":\"bool\"}],\"name\":\"VirtualBalancesEnable\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"name\":\"_prevManager\",\"type\":\"address\"},{\"indexed\":true,\"name\":\"_newManager\",\"type\":\"address\"}],\"name\":\"ManagerUpdate\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"name\":\"_prevOwner\",\"type\":\"address\"},{\"indexed\":true,\"name\":\"_newOwner\",\"type\":\"address\"}],\"name\":\"OwnerUpdate\",\"type\":\"event\"}]"
// ConverterTypeFour is an auto generated Go binding around an Ethereum contract.
type ConverterTypeFour struct {
ConverterTypeFourCaller // Read-only binding to the contract
ConverterTypeFourTransactor // Write-only binding to the contract
ConverterTypeFourFilterer // Log filterer for contract events
}
// ConverterTypeFourCaller is an auto generated read-only Go binding around an Ethereum contract.
type ConverterTypeFourCaller struct {
contract *bind.BoundContract // Generic contract wrapper for the low level calls
}
// ConverterTypeFourTransactor is an auto generated write-only Go binding around an Ethereum contract.
type ConverterTypeFourTransactor struct {
contract *bind.BoundContract // Generic contract wrapper for the low level calls
}
// ConverterTypeFourFilterer is an auto generated log filtering Go binding around an Ethereum contract events.
type ConverterTypeFourFilterer struct {
contract *bind.BoundContract // Generic contract wrapper for the low level calls
}
// ConverterTypeFourSession is an auto generated Go binding around an Ethereum contract,
// with pre-set call and transact options.
type ConverterTypeFourSession struct {
Contract *ConverterTypeFour // 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
}
// ConverterTypeFourCallerSession is an auto generated read-only Go binding around an Ethereum contract,
// with pre-set call options.
type ConverterTypeFourCallerSession struct {
Contract *ConverterTypeFourCaller // Generic contract caller binding to set the session for
CallOpts bind.CallOpts // Call options to use throughout this session
}
// ConverterTypeFourTransactorSession is an auto generated write-only Go binding around an Ethereum contract,
// with pre-set transact options.
type ConverterTypeFourTransactorSession struct {
Contract *ConverterTypeFourTransactor // Generic contract transactor binding to set the session for
TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session
}
// ConverterTypeFourRaw is an auto generated low-level Go binding around an Ethereum contract.
type ConverterTypeFourRaw struct {
Contract *ConverterTypeFour // Generic contract binding to access the raw methods on
}
// ConverterTypeFourCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract.
type ConverterTypeFourCallerRaw struct {
Contract *ConverterTypeFourCaller // Generic read-only contract binding to access the raw methods on
}
// ConverterTypeFourTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract.
type ConverterTypeFourTransactorRaw struct {
Contract *ConverterTypeFourTransactor // Generic write-only contract binding to access the raw methods on
}
// NewConverterTypeFour creates a new instance of ConverterTypeFour, bound to a specific deployed contract.
func NewConverterTypeFour(address common.Address, backend bind.ContractBackend) (*ConverterTypeFour, error) {
contract, err := bindConverterTypeFour(address, backend, backend, backend)
if err != nil {
return nil, err
}
return &ConverterTypeFour{ConverterTypeFourCaller: ConverterTypeFourCaller{contract: contract}, ConverterTypeFourTransactor: ConverterTypeFourTransactor{contract: contract}, ConverterTypeFourFilterer: ConverterTypeFourFilterer{contract: contract}}, nil
}
// NewConverterTypeFourCaller creates a new read-only instance of ConverterTypeFour, bound to a specific deployed contract.
func NewConverterTypeFourCaller(address common.Address, caller bind.ContractCaller) (*ConverterTypeFourCaller, error) {
contract, err := bindConverterTypeFour(address, caller, nil, nil)
if err != nil {
return nil, err
}
return &ConverterTypeFourCaller{contract: contract}, nil
}
// NewConverterTypeFourTransactor creates a new write-only instance of ConverterTypeFour, bound to a specific deployed contract.
func NewConverterTypeFourTransactor(address common.Address, transactor bind.ContractTransactor) (*ConverterTypeFourTransactor, error) {
contract, err := bindConverterTypeFour(address, nil, transactor, nil)
if err != nil {
return nil, err
}
return &ConverterTypeFourTransactor{contract: contract}, nil
}
// NewConverterTypeFourFilterer creates a new log filterer instance of ConverterTypeFour, bound to a specific deployed contract.
func NewConverterTypeFourFilterer(address common.Address, filterer bind.ContractFilterer) (*ConverterTypeFourFilterer, error) {
contract, err := bindConverterTypeFour(address, nil, nil, filterer)
if err != nil {
return nil, err
}
return &ConverterTypeFourFilterer{contract: contract}, nil
}
// bindConverterTypeFour binds a generic wrapper to an already deployed contract.
func bindConverterTypeFour(address common.Address, caller bind.ContractCaller, transactor bind.ContractTransactor, filterer bind.ContractFilterer) (*bind.BoundContract, error) {
parsed, err := abi.JSON(strings.NewReader(ConverterTypeFourABI))
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 (_ConverterTypeFour *ConverterTypeFourRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error {
return _ConverterTypeFour.Contract.ConverterTypeFourCaller.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 (_ConverterTypeFour *ConverterTypeFourRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) {
return _ConverterTypeFour.Contract.ConverterTypeFourTransactor.contract.Transfer(opts)
}
// Transact invokes the (paid) contract method with params as input values.
func (_ConverterTypeFour *ConverterTypeFourRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) {
return _ConverterTypeFour.Contract.ConverterTypeFourTransactor.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 (_ConverterTypeFour *ConverterTypeFourCallerRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error {
return _ConverterTypeFour.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 (_ConverterTypeFour *ConverterTypeFourTransactorRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) {
return _ConverterTypeFour.Contract.contract.Transfer(opts)
}
// Transact invokes the (paid) contract method with params as input values.
func (_ConverterTypeFour *ConverterTypeFourTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) {
return _ConverterTypeFour.Contract.contract.Transact(opts, method, params...)
}
// BANCORCONVERTERFACTORY is a free data retrieval call binding the contract method 0x5a46f06c.
//
// Solidity: function BANCOR_CONVERTER_FACTORY() view returns(bytes32)
func (_ConverterTypeFour *ConverterTypeFourCaller) BANCORCONVERTERFACTORY(opts *bind.CallOpts) ([32]byte, error) {
var out []interface{}
err := _ConverterTypeFour.contract.Call(opts, &out, "BANCOR_CONVERTER_FACTORY")
if err != nil {
return *new([32]byte), err
}
out0 := *abi.ConvertType(out[0], new([32]byte)).(*[32]byte)
return out0, err
}
// BANCORCONVERTERFACTORY is a free data retrieval call binding the contract method 0x5a46f06c.
//
// Solidity: function BANCOR_CONVERTER_FACTORY() view returns(bytes32)
func (_ConverterTypeFour *ConverterTypeFourSession) BANCORCONVERTERFACTORY() ([32]byte, error) {
return _ConverterTypeFour.Contract.BANCORCONVERTERFACTORY(&_ConverterTypeFour.CallOpts)
}
// BANCORCONVERTERFACTORY is a free data retrieval call binding the contract method 0x5a46f06c.
//
// Solidity: function BANCOR_CONVERTER_FACTORY() view returns(bytes32)
func (_ConverterTypeFour *ConverterTypeFourCallerSession) BANCORCONVERTERFACTORY() ([32]byte, error) {
return _ConverterTypeFour.Contract.BANCORCONVERTERFACTORY(&_ConverterTypeFour.CallOpts)
}
// BANCORCONVERTERUPGRADER is a free data retrieval call binding the contract method 0x0c87355e.
//
// Solidity: function BANCOR_CONVERTER_UPGRADER() view returns(bytes32)
func (_ConverterTypeFour *ConverterTypeFourCaller) BANCORCONVERTERUPGRADER(opts *bind.CallOpts) ([32]byte, error) {
var out []interface{}
err := _ConverterTypeFour.contract.Call(opts, &out, "BANCOR_CONVERTER_UPGRADER")
if err != nil {
return *new([32]byte), err
}
out0 := *abi.ConvertType(out[0], new([32]byte)).(*[32]byte)
return out0, err
}
// BANCORCONVERTERUPGRADER is a free data retrieval call binding the contract method 0x0c87355e.
//
// Solidity: function BANCOR_CONVERTER_UPGRADER() view returns(bytes32)
func (_ConverterTypeFour *ConverterTypeFourSession) BANCORCONVERTERUPGRADER() ([32]byte, error) {
return _ConverterTypeFour.Contract.BANCORCONVERTERUPGRADER(&_ConverterTypeFour.CallOpts)
}
// BANCORCONVERTERUPGRADER is a free data retrieval call binding the contract method 0x0c87355e.
//
// Solidity: function BANCOR_CONVERTER_UPGRADER() view returns(bytes32)
func (_ConverterTypeFour *ConverterTypeFourCallerSession) BANCORCONVERTERUPGRADER() ([32]byte, error) {
return _ConverterTypeFour.Contract.BANCORCONVERTERUPGRADER(&_ConverterTypeFour.CallOpts)
}
// BANCORFORMULA is a free data retrieval call binding the contract method 0x6d7bd3fc.
//
// Solidity: function BANCOR_FORMULA() view returns(bytes32)
func (_ConverterTypeFour *ConverterTypeFourCaller) BANCORFORMULA(opts *bind.CallOpts) ([32]byte, error) {
var out []interface{}
err := _ConverterTypeFour.contract.Call(opts, &out, "BANCOR_FORMULA")
if err != nil {
return *new([32]byte), err
}
out0 := *abi.ConvertType(out[0], new([32]byte)).(*[32]byte)
return out0, err
}
// BANCORFORMULA is a free data retrieval call binding the contract method 0x6d7bd3fc.
//
// Solidity: function BANCOR_FORMULA() view returns(bytes32)
func (_ConverterTypeFour *ConverterTypeFourSession) BANCORFORMULA() ([32]byte, error) {
return _ConverterTypeFour.Contract.BANCORFORMULA(&_ConverterTypeFour.CallOpts)
}
// BANCORFORMULA is a free data retrieval call binding the contract method 0x6d7bd3fc.
//
// Solidity: function BANCOR_FORMULA() view returns(bytes32)
func (_ConverterTypeFour *ConverterTypeFourCallerSession) BANCORFORMULA() ([32]byte, error) {
return _ConverterTypeFour.Contract.BANCORFORMULA(&_ConverterTypeFour.CallOpts)
}
// BANCORGASPRICELIMIT is a free data retrieval call binding the contract method 0x9249993a.
//
// Solidity: function BANCOR_GAS_PRICE_LIMIT() view returns(bytes32)
func (_ConverterTypeFour *ConverterTypeFourCaller) BANCORGASPRICELIMIT(opts *bind.CallOpts) ([32]byte, error) {
var out []interface{}
err := _ConverterTypeFour.contract.Call(opts, &out, "BANCOR_GAS_PRICE_LIMIT")
if err != nil {
return *new([32]byte), err
}
out0 := *abi.ConvertType(out[0], new([32]byte)).(*[32]byte)
return out0, err
}
// BANCORGASPRICELIMIT is a free data retrieval call binding the contract method 0x9249993a.
//
// Solidity: function BANCOR_GAS_PRICE_LIMIT() view returns(bytes32)
func (_ConverterTypeFour *ConverterTypeFourSession) BANCORGASPRICELIMIT() ([32]byte, error) {
return _ConverterTypeFour.Contract.BANCORGASPRICELIMIT(&_ConverterTypeFour.CallOpts)
}
// BANCORGASPRICELIMIT is a free data retrieval call binding the contract method 0x9249993a.
//
// Solidity: function BANCOR_GAS_PRICE_LIMIT() view returns(bytes32)
func (_ConverterTypeFour *ConverterTypeFourCallerSession) BANCORGASPRICELIMIT() ([32]byte, error) {
return _ConverterTypeFour.Contract.BANCORGASPRICELIMIT(&_ConverterTypeFour.CallOpts)
}
// BANCORNETWORK is a free data retrieval call binding the contract method 0x9232494e.
//
// Solidity: function BANCOR_NETWORK() view returns(bytes32)
func (_ConverterTypeFour *ConverterTypeFourCaller) BANCORNETWORK(opts *bind.CallOpts) ([32]byte, error) {
var out []interface{}
err := _ConverterTypeFour.contract.Call(opts, &out, "BANCOR_NETWORK")
if err != nil {
return *new([32]byte), err
}
out0 := *abi.ConvertType(out[0], new([32]byte)).(*[32]byte)
return out0, err
}
// BANCORNETWORK is a free data retrieval call binding the contract method 0x9232494e.
//
// Solidity: function BANCOR_NETWORK() view returns(bytes32)
func (_ConverterTypeFour *ConverterTypeFourSession) BANCORNETWORK() ([32]byte, error) {
return _ConverterTypeFour.Contract.BANCORNETWORK(&_ConverterTypeFour.CallOpts)
}
// BANCORNETWORK is a free data retrieval call binding the contract method 0x9232494e.
//
// Solidity: function BANCOR_NETWORK() view returns(bytes32)
func (_ConverterTypeFour *ConverterTypeFourCallerSession) BANCORNETWORK() ([32]byte, error) {
return _ConverterTypeFour.Contract.BANCORNETWORK(&_ConverterTypeFour.CallOpts)
}
// BANCORX is a free data retrieval call binding the contract method 0xc4a8598e.
//
// Solidity: function BANCOR_X() view returns(bytes32)
func (_ConverterTypeFour *ConverterTypeFourCaller) BANCORX(opts *bind.CallOpts) ([32]byte, error) {
var out []interface{}
err := _ConverterTypeFour.contract.Call(opts, &out, "BANCOR_X")
if err != nil {
return *new([32]byte), err
}
out0 := *abi.ConvertType(out[0], new([32]byte)).(*[32]byte)
return out0, err
}
// BANCORX is a free data retrieval call binding the contract method 0xc4a8598e.
//
// Solidity: function BANCOR_X() view returns(bytes32)
func (_ConverterTypeFour *ConverterTypeFourSession) BANCORX() ([32]byte, error) {
return _ConverterTypeFour.Contract.BANCORX(&_ConverterTypeFour.CallOpts)
}
// BANCORX is a free data retrieval call binding the contract method 0xc4a8598e.
//
// Solidity: function BANCOR_X() view returns(bytes32)
func (_ConverterTypeFour *ConverterTypeFourCallerSession) BANCORX() ([32]byte, error) {
return _ConverterTypeFour.Contract.BANCORX(&_ConverterTypeFour.CallOpts)
}
// BANCORXUPGRADER is a free data retrieval call binding the contract method 0xcc97b38f.
//
// Solidity: function BANCOR_X_UPGRADER() view returns(bytes32)
func (_ConverterTypeFour *ConverterTypeFourCaller) BANCORXUPGRADER(opts *bind.CallOpts) ([32]byte, error) {
var out []interface{}
err := _ConverterTypeFour.contract.Call(opts, &out, "BANCOR_X_UPGRADER")
if err != nil {
return *new([32]byte), err
}
out0 := *abi.ConvertType(out[0], new([32]byte)).(*[32]byte)
return out0, err
}
// BANCORXUPGRADER is a free data retrieval call binding the contract method 0xcc97b38f.
//
// Solidity: function BANCOR_X_UPGRADER() view returns(bytes32)
func (_ConverterTypeFour *ConverterTypeFourSession) BANCORXUPGRADER() ([32]byte, error) {
return _ConverterTypeFour.Contract.BANCORXUPGRADER(&_ConverterTypeFour.CallOpts)
}
// BANCORXUPGRADER is a free data retrieval call binding the contract method 0xcc97b38f.
//
// Solidity: function BANCOR_X_UPGRADER() view returns(bytes32)
func (_ConverterTypeFour *ConverterTypeFourCallerSession) BANCORXUPGRADER() ([32]byte, error) {
return _ConverterTypeFour.Contract.BANCORXUPGRADER(&_ConverterTypeFour.CallOpts)
}
// BNTTOKEN is a free data retrieval call binding the contract method 0x1d000b61.
//
// Solidity: function BNT_TOKEN() view returns(bytes32)
func (_ConverterTypeFour *ConverterTypeFourCaller) BNTTOKEN(opts *bind.CallOpts) ([32]byte, error) {
var out []interface{}
err := _ConverterTypeFour.contract.Call(opts, &out, "BNT_TOKEN")
if err != nil {
return *new([32]byte), err
}
out0 := *abi.ConvertType(out[0], new([32]byte)).(*[32]byte)
return out0, err
}
// BNTTOKEN is a free data retrieval call binding the contract method 0x1d000b61.
//
// Solidity: function BNT_TOKEN() view returns(bytes32)
func (_ConverterTypeFour *ConverterTypeFourSession) BNTTOKEN() ([32]byte, error) {
return _ConverterTypeFour.Contract.BNTTOKEN(&_ConverterTypeFour.CallOpts)
}
// BNTTOKEN is a free data retrieval call binding the contract method 0x1d000b61.
//
// Solidity: function BNT_TOKEN() view returns(bytes32)
func (_ConverterTypeFour *ConverterTypeFourCallerSession) BNTTOKEN() ([32]byte, error) {
return _ConverterTypeFour.Contract.BNTTOKEN(&_ConverterTypeFour.CallOpts)
}
// CONTRACTFEATURES is a free data retrieval call binding the contract method 0x83315b6e.
//
// Solidity: function CONTRACT_FEATURES() view returns(bytes32)
func (_ConverterTypeFour *ConverterTypeFourCaller) CONTRACTFEATURES(opts *bind.CallOpts) ([32]byte, error) {
var out []interface{}
err := _ConverterTypeFour.contract.Call(opts, &out, "CONTRACT_FEATURES")
if err != nil {
return *new([32]byte), err
}
out0 := *abi.ConvertType(out[0], new([32]byte)).(*[32]byte)
return out0, err
}
// CONTRACTFEATURES is a free data retrieval call binding the contract method 0x83315b6e.
//
// Solidity: function CONTRACT_FEATURES() view returns(bytes32)
func (_ConverterTypeFour *ConverterTypeFourSession) CONTRACTFEATURES() ([32]byte, error) {
return _ConverterTypeFour.Contract.CONTRACTFEATURES(&_ConverterTypeFour.CallOpts)
}
// CONTRACTFEATURES is a free data retrieval call binding the contract method 0x83315b6e.
//
// Solidity: function CONTRACT_FEATURES() view returns(bytes32)
func (_ConverterTypeFour *ConverterTypeFourCallerSession) CONTRACTFEATURES() ([32]byte, error) {
return _ConverterTypeFour.Contract.CONTRACTFEATURES(&_ConverterTypeFour.CallOpts)
}
// CONTRACTREGISTRY is a free data retrieval call binding the contract method 0x25f9bfef.
//
// Solidity: function CONTRACT_REGISTRY() view returns(bytes32)
func (_ConverterTypeFour *ConverterTypeFourCaller) CONTRACTREGISTRY(opts *bind.CallOpts) ([32]byte, error) {
var out []interface{}
err := _ConverterTypeFour.contract.Call(opts, &out, "CONTRACT_REGISTRY")
if err != nil {
return *new([32]byte), err
}
out0 := *abi.ConvertType(out[0], new([32]byte)).(*[32]byte)
return out0, err
}
// CONTRACTREGISTRY is a free data retrieval call binding the contract method 0x25f9bfef.
//
// Solidity: function CONTRACT_REGISTRY() view returns(bytes32)
func (_ConverterTypeFour *ConverterTypeFourSession) CONTRACTREGISTRY() ([32]byte, error) {
return _ConverterTypeFour.Contract.CONTRACTREGISTRY(&_ConverterTypeFour.CallOpts)
}
// CONTRACTREGISTRY is a free data retrieval call binding the contract method 0x25f9bfef.
//
// Solidity: function CONTRACT_REGISTRY() view returns(bytes32)
func (_ConverterTypeFour *ConverterTypeFourCallerSession) CONTRACTREGISTRY() ([32]byte, error) {
return _ConverterTypeFour.Contract.CONTRACTREGISTRY(&_ConverterTypeFour.CallOpts)
}
// CONVERTERCONVERSIONWHITELIST is a free data retrieval call binding the contract method 0x92d1abb7.
//
// Solidity: function CONVERTER_CONVERSION_WHITELIST() view returns(uint256)
func (_ConverterTypeFour *ConverterTypeFourCaller) CONVERTERCONVERSIONWHITELIST(opts *bind.CallOpts) (*big.Int, error) {
var out []interface{}
err := _ConverterTypeFour.contract.Call(opts, &out, "CONVERTER_CONVERSION_WHITELIST")
if err != nil {
return *new(*big.Int), err
}
out0 := *abi.ConvertType(out[0], new(*big.Int)).(**big.Int)
return out0, err
}
// CONVERTERCONVERSIONWHITELIST is a free data retrieval call binding the contract method 0x92d1abb7.
//
// Solidity: function CONVERTER_CONVERSION_WHITELIST() view returns(uint256)
func (_ConverterTypeFour *ConverterTypeFourSession) CONVERTERCONVERSIONWHITELIST() (*big.Int, error) {
return _ConverterTypeFour.Contract.CONVERTERCONVERSIONWHITELIST(&_ConverterTypeFour.CallOpts)
}
// CONVERTERCONVERSIONWHITELIST is a free data retrieval call binding the contract method 0x92d1abb7.
//
// Solidity: function CONVERTER_CONVERSION_WHITELIST() view returns(uint256)
func (_ConverterTypeFour *ConverterTypeFourCallerSession) CONVERTERCONVERSIONWHITELIST() (*big.Int, error) {
return _ConverterTypeFour.Contract.CONVERTERCONVERSIONWHITELIST(&_ConverterTypeFour.CallOpts)
}
// NONSTANDARDTOKENREGISTRY is a free data retrieval call binding the contract method 0xf5286b9c.
//
// Solidity: function NON_STANDARD_TOKEN_REGISTRY() view returns(bytes32)
func (_ConverterTypeFour *ConverterTypeFourCaller) NONSTANDARDTOKENREGISTRY(opts *bind.CallOpts) ([32]byte, error) {
var out []interface{}
err := _ConverterTypeFour.contract.Call(opts, &out, "NON_STANDARD_TOKEN_REGISTRY")
if err != nil {
return *new([32]byte), err
}
out0 := *abi.ConvertType(out[0], new([32]byte)).(*[32]byte)
return out0, err
}
// NONSTANDARDTOKENREGISTRY is a free data retrieval call binding the contract method 0xf5286b9c.
//
// Solidity: function NON_STANDARD_TOKEN_REGISTRY() view returns(bytes32)
func (_ConverterTypeFour *ConverterTypeFourSession) NONSTANDARDTOKENREGISTRY() ([32]byte, error) {
return _ConverterTypeFour.Contract.NONSTANDARDTOKENREGISTRY(&_ConverterTypeFour.CallOpts)
}
// NONSTANDARDTOKENREGISTRY is a free data retrieval call binding the contract method 0xf5286b9c.
//
// Solidity: function NON_STANDARD_TOKEN_REGISTRY() view returns(bytes32)
func (_ConverterTypeFour *ConverterTypeFourCallerSession) NONSTANDARDTOKENREGISTRY() ([32]byte, error) {
return _ConverterTypeFour.Contract.NONSTANDARDTOKENREGISTRY(&_ConverterTypeFour.CallOpts)
}
// AllowRegistryUpdate is a free data retrieval call binding the contract method 0x20d7d367.
//
// Solidity: function allowRegistryUpdate() view returns(bool)
func (_ConverterTypeFour *ConverterTypeFourCaller) AllowRegistryUpdate(opts *bind.CallOpts) (bool, error) {
var out []interface{}
err := _ConverterTypeFour.contract.Call(opts, &out, "allowRegistryUpdate")
if err != nil {
return *new(bool), err
}
out0 := *abi.ConvertType(out[0], new(bool)).(*bool)
return out0, err
}
// AllowRegistryUpdate is a free data retrieval call binding the contract method 0x20d7d367.
//
// Solidity: function allowRegistryUpdate() view returns(bool)
func (_ConverterTypeFour *ConverterTypeFourSession) AllowRegistryUpdate() (bool, error) {
return _ConverterTypeFour.Contract.AllowRegistryUpdate(&_ConverterTypeFour.CallOpts)
}
// AllowRegistryUpdate is a free data retrieval call binding the contract method 0x20d7d367.
//
// Solidity: function allowRegistryUpdate() view returns(bool)
func (_ConverterTypeFour *ConverterTypeFourCallerSession) AllowRegistryUpdate() (bool, error) {
return _ConverterTypeFour.Contract.AllowRegistryUpdate(&_ConverterTypeFour.CallOpts)
}
// BancorX is a free data retrieval call binding the contract method 0x1120a776.
//
// Solidity: function bancorX() view returns(address)
func (_ConverterTypeFour *ConverterTypeFourCaller) BancorX(opts *bind.CallOpts) (common.Address, error) {
var out []interface{}
err := _ConverterTypeFour.contract.Call(opts, &out, "bancorX")
if err != nil {
return *new(common.Address), err
}
out0 := *abi.ConvertType(out[0], new(common.Address)).(*common.Address)
return out0, err
}
// BancorX is a free data retrieval call binding the contract method 0x1120a776.
//
// Solidity: function bancorX() view returns(address)
func (_ConverterTypeFour *ConverterTypeFourSession) BancorX() (common.Address, error) {
return _ConverterTypeFour.Contract.BancorX(&_ConverterTypeFour.CallOpts)
}
// BancorX is a free data retrieval call binding the contract method 0x1120a776.
//
// Solidity: function bancorX() view returns(address)
func (_ConverterTypeFour *ConverterTypeFourCallerSession) BancorX() (common.Address, error) {
return _ConverterTypeFour.Contract.BancorX(&_ConverterTypeFour.CallOpts)
}
// ConnectorTokenCount is a free data retrieval call binding the contract method 0x71f52bf3.
//
// Solidity: function connectorTokenCount() view returns(uint16)
func (_ConverterTypeFour *ConverterTypeFourCaller) ConnectorTokenCount(opts *bind.CallOpts) (uint16, error) {
var out []interface{}
err := _ConverterTypeFour.contract.Call(opts, &out, "connectorTokenCount")
if err != nil {
return *new(uint16), err
}
out0 := *abi.ConvertType(out[0], new(uint16)).(*uint16)
return out0, err
}
// ConnectorTokenCount is a free data retrieval call binding the contract method 0x71f52bf3.
//
// Solidity: function connectorTokenCount() view returns(uint16)
func (_ConverterTypeFour *ConverterTypeFourSession) ConnectorTokenCount() (uint16, error) {
return _ConverterTypeFour.Contract.ConnectorTokenCount(&_ConverterTypeFour.CallOpts)
}
// ConnectorTokenCount is a free data retrieval call binding the contract method 0x71f52bf3.
//
// Solidity: function connectorTokenCount() view returns(uint16)
func (_ConverterTypeFour *ConverterTypeFourCallerSession) ConnectorTokenCount() (uint16, error) {
return _ConverterTypeFour.Contract.ConnectorTokenCount(&_ConverterTypeFour.CallOpts)
}
// ConnectorTokens is a free data retrieval call binding the contract method 0x19b64015.
//
// Solidity: function connectorTokens(uint256 _index) view returns(address)
func (_ConverterTypeFour *ConverterTypeFourCaller) ConnectorTokens(opts *bind.CallOpts, _index *big.Int) (common.Address, error) {
var out []interface{}
err := _ConverterTypeFour.contract.Call(opts, &out, "connectorTokens", _index)
if err != nil {
return *new(common.Address), err
}
out0 := *abi.ConvertType(out[0], new(common.Address)).(*common.Address)
return out0, err
}
// ConnectorTokens is a free data retrieval call binding the contract method 0x19b64015.
//
// Solidity: function connectorTokens(uint256 _index) view returns(address)
func (_ConverterTypeFour *ConverterTypeFourSession) ConnectorTokens(_index *big.Int) (common.Address, error) {
return _ConverterTypeFour.Contract.ConnectorTokens(&_ConverterTypeFour.CallOpts, _index)
}
// ConnectorTokens is a free data retrieval call binding the contract method 0x19b64015.
//
// Solidity: function connectorTokens(uint256 _index) view returns(address)
func (_ConverterTypeFour *ConverterTypeFourCallerSession) ConnectorTokens(_index *big.Int) (common.Address, error) {
return _ConverterTypeFour.Contract.ConnectorTokens(&_ConverterTypeFour.CallOpts, _index)
}
// Connectors is a free data retrieval call binding the contract method 0x0e53aae9.
//
// Solidity: function connectors(address _address) view returns(uint256, uint32, bool, bool, bool)
func (_ConverterTypeFour *ConverterTypeFourCaller) Connectors(opts *bind.CallOpts, _address common.Address) (*big.Int, uint32, bool, bool, bool, error) {
var out []interface{}
err := _ConverterTypeFour.contract.Call(opts, &out, "connectors", _address)
if err != nil {
return *new(*big.Int), *new(uint32), *new(bool), *new(bool), *new(bool), err
}
out0 := *abi.ConvertType(out[0], new(*big.Int)).(**big.Int)
out1 := *abi.ConvertType(out[1], new(uint32)).(*uint32)
out2 := *abi.ConvertType(out[2], new(bool)).(*bool)
out3 := *abi.ConvertType(out[3], new(bool)).(*bool)
out4 := *abi.ConvertType(out[4], new(bool)).(*bool)
return out0, out1, out2, out3, out4, err
}
// Connectors is a free data retrieval call binding the contract method 0x0e53aae9.
//
// Solidity: function connectors(address _address) view returns(uint256, uint32, bool, bool, bool)
func (_ConverterTypeFour *ConverterTypeFourSession) Connectors(_address common.Address) (*big.Int, uint32, bool, bool, bool, error) {
return _ConverterTypeFour.Contract.Connectors(&_ConverterTypeFour.CallOpts, _address)
}
// Connectors is a free data retrieval call binding the contract method 0x0e53aae9.
//
// Solidity: function connectors(address _address) view returns(uint256, uint32, bool, bool, bool)
func (_ConverterTypeFour *ConverterTypeFourCallerSession) Connectors(_address common.Address) (*big.Int, uint32, bool, bool, bool, error) {
return _ConverterTypeFour.Contract.Connectors(&_ConverterTypeFour.CallOpts, _address)
}
// ConversionFee is a free data retrieval call binding the contract method 0x579cd3ca.
//
// Solidity: function conversionFee() view returns(uint32)
func (_ConverterTypeFour *ConverterTypeFourCaller) ConversionFee(opts *bind.CallOpts) (uint32, error) {
var out []interface{}
err := _ConverterTypeFour.contract.Call(opts, &out, "conversionFee")
if err != nil {
return *new(uint32), err
}
out0 := *abi.ConvertType(out[0], new(uint32)).(*uint32)
return out0, err
}
// ConversionFee is a free data retrieval call binding the contract method 0x579cd3ca.
//
// Solidity: function conversionFee() view returns(uint32)
func (_ConverterTypeFour *ConverterTypeFourSession) ConversionFee() (uint32, error) {
return _ConverterTypeFour.Contract.ConversionFee(&_ConverterTypeFour.CallOpts)
}
// ConversionFee is a free data retrieval call binding the contract method 0x579cd3ca.
//
// Solidity: function conversionFee() view returns(uint32)
func (_ConverterTypeFour *ConverterTypeFourCallerSession) ConversionFee() (uint32, error) {
return _ConverterTypeFour.Contract.ConversionFee(&_ConverterTypeFour.CallOpts)
}
// ConversionWhitelist is a free data retrieval call binding the contract method 0xc45d3d92.
//
// Solidity: function conversionWhitelist() view returns(address)
func (_ConverterTypeFour *ConverterTypeFourCaller) ConversionWhitelist(opts *bind.CallOpts) (common.Address, error) {
var out []interface{}
err := _ConverterTypeFour.contract.Call(opts, &out, "conversionWhitelist")
if err != nil {
return *new(common.Address), err
}
out0 := *abi.ConvertType(out[0], new(common.Address)).(*common.Address)
return out0, err
}
// ConversionWhitelist is a free data retrieval call binding the contract method 0xc45d3d92.
//
// Solidity: function conversionWhitelist() view returns(address)
func (_ConverterTypeFour *ConverterTypeFourSession) ConversionWhitelist() (common.Address, error) {
return _ConverterTypeFour.Contract.ConversionWhitelist(&_ConverterTypeFour.CallOpts)
}
// ConversionWhitelist is a free data retrieval call binding the contract method 0xc45d3d92.
//
// Solidity: function conversionWhitelist() view returns(address)
func (_ConverterTypeFour *ConverterTypeFourCallerSession) ConversionWhitelist() (common.Address, error) {
return _ConverterTypeFour.Contract.ConversionWhitelist(&_ConverterTypeFour.CallOpts)
}
// ConversionsEnabled is a free data retrieval call binding the contract method 0xbf754558.
//
// Solidity: function conversionsEnabled() view returns(bool)
func (_ConverterTypeFour *ConverterTypeFourCaller) ConversionsEnabled(opts *bind.CallOpts) (bool, error) {
var out []interface{}
err := _ConverterTypeFour.contract.Call(opts, &out, "conversionsEnabled")
if err != nil {
return *new(bool), err
}
out0 := *abi.ConvertType(out[0], new(bool)).(*bool)
return out0, err
}
// ConversionsEnabled is a free data retrieval call binding the contract method 0xbf754558.
//
// Solidity: function conversionsEnabled() view returns(bool)
func (_ConverterTypeFour *ConverterTypeFourSession) ConversionsEnabled() (bool, error) {
return _ConverterTypeFour.Contract.ConversionsEnabled(&_ConverterTypeFour.CallOpts)
}
// ConversionsEnabled is a free data retrieval call binding the contract method 0xbf754558.
//
// Solidity: function conversionsEnabled() view returns(bool)
func (_ConverterTypeFour *ConverterTypeFourCallerSession) ConversionsEnabled() (bool, error) {
return _ConverterTypeFour.Contract.ConversionsEnabled(&_ConverterTypeFour.CallOpts)
}
// ConverterType is a free data retrieval call binding the contract method 0x3e8ff43f.
//
// Solidity: function converterType() view returns(string)
func (_ConverterTypeFour *ConverterTypeFourCaller) ConverterType(opts *bind.CallOpts) (string, error) {
var out []interface{}
err := _ConverterTypeFour.contract.Call(opts, &out, "converterType")
if err != nil {
return *new(string), err
}
out0 := *abi.ConvertType(out[0], new(string)).(*string)
return out0, err
}
// ConverterType is a free data retrieval call binding the contract method 0x3e8ff43f.
//
// Solidity: function converterType() view returns(string)
func (_ConverterTypeFour *ConverterTypeFourSession) ConverterType() (string, error) {
return _ConverterTypeFour.Contract.ConverterType(&_ConverterTypeFour.CallOpts)
}
// ConverterType is a free data retrieval call binding the contract method 0x3e8ff43f.
//
// Solidity: function converterType() view returns(string)
func (_ConverterTypeFour *ConverterTypeFourCallerSession) ConverterType() (string, error) {
return _ConverterTypeFour.Contract.ConverterType(&_ConverterTypeFour.CallOpts)
}
// GetConnectorBalance is a free data retrieval call binding the contract method 0xd8959512.
//
// Solidity: function getConnectorBalance(address _connectorToken) view returns(uint256)
func (_ConverterTypeFour *ConverterTypeFourCaller) GetConnectorBalance(opts *bind.CallOpts, _connectorToken common.Address) (*big.Int, error) {
var out []interface{}
err := _ConverterTypeFour.contract.Call(opts, &out, "getConnectorBalance", _connectorToken)
if err != nil {
return *new(*big.Int), err
}
out0 := *abi.ConvertType(out[0], new(*big.Int)).(**big.Int)
return out0, err
}
// GetConnectorBalance is a free data retrieval call binding the contract method 0xd8959512.
//
// Solidity: function getConnectorBalance(address _connectorToken) view returns(uint256)
func (_ConverterTypeFour *ConverterTypeFourSession) GetConnectorBalance(_connectorToken common.Address) (*big.Int, error) {
return _ConverterTypeFour.Contract.GetConnectorBalance(&_ConverterTypeFour.CallOpts, _connectorToken)
}
// GetConnectorBalance is a free data retrieval call binding the contract method 0xd8959512.
//
// Solidity: function getConnectorBalance(address _connectorToken) view returns(uint256)
func (_ConverterTypeFour *ConverterTypeFourCallerSession) GetConnectorBalance(_connectorToken common.Address) (*big.Int, error) {
return _ConverterTypeFour.Contract.GetConnectorBalance(&_ConverterTypeFour.CallOpts, _connectorToken)
}
// GetCrossConnectorReturn is a free data retrieval call binding the contract method 0x8e3047e0.
//
// Solidity: function getCrossConnectorReturn(address _fromConnectorToken, address _toConnectorToken, uint256 _amount) view returns(uint256, uint256)
func (_ConverterTypeFour *ConverterTypeFourCaller) GetCrossConnectorReturn(opts *bind.CallOpts, _fromConnectorToken common.Address, _toConnectorToken common.Address, _amount *big.Int) (*big.Int, *big.Int, error) {
var out []interface{}
err := _ConverterTypeFour.contract.Call(opts, &out, "getCrossConnectorReturn", _fromConnectorToken, _toConnectorToken, _amount)
if err != nil {
return *new(*big.Int), *new(*big.Int), err
}
out0 := *abi.ConvertType(out[0], new(*big.Int)).(**big.Int)
out1 := *abi.ConvertType(out[1], new(*big.Int)).(**big.Int)
return out0, out1, err
}
// GetCrossConnectorReturn is a free data retrieval call binding the contract method 0x8e3047e0.
//
// Solidity: function getCrossConnectorReturn(address _fromConnectorToken, address _toConnectorToken, uint256 _amount) view returns(uint256, uint256)
func (_ConverterTypeFour *ConverterTypeFourSession) GetCrossConnectorReturn(_fromConnectorToken common.Address, _toConnectorToken common.Address, _amount *big.Int) (*big.Int, *big.Int, error) {
return _ConverterTypeFour.Contract.GetCrossConnectorReturn(&_ConverterTypeFour.CallOpts, _fromConnectorToken, _toConnectorToken, _amount)
}
// GetCrossConnectorReturn is a free data retrieval call binding the contract method 0x8e3047e0.
//
// Solidity: function getCrossConnectorReturn(address _fromConnectorToken, address _toConnectorToken, uint256 _amount) view returns(uint256, uint256)
func (_ConverterTypeFour *ConverterTypeFourCallerSession) GetCrossConnectorReturn(_fromConnectorToken common.Address, _toConnectorToken common.Address, _amount *big.Int) (*big.Int, *big.Int, error) {
return _ConverterTypeFour.Contract.GetCrossConnectorReturn(&_ConverterTypeFour.CallOpts, _fromConnectorToken, _toConnectorToken, _amount)
}
// GetCrossReserveReturn is a free data retrieval call binding the contract method 0xcf73266a.
//
// Solidity: function getCrossReserveReturn(address _fromReserveToken, address _toReserveToken, uint256 _amount) view returns(uint256, uint256)
func (_ConverterTypeFour *ConverterTypeFourCaller) GetCrossReserveReturn(opts *bind.CallOpts, _fromReserveToken common.Address, _toReserveToken common.Address, _amount *big.Int) (*big.Int, *big.Int, error) {
var out []interface{}
err := _ConverterTypeFour.contract.Call(opts, &out, "getCrossReserveReturn", _fromReserveToken, _toReserveToken, _amount)
if err != nil {
return *new(*big.Int), *new(*big.Int), err
}
out0 := *abi.ConvertType(out[0], new(*big.Int)).(**big.Int)
out1 := *abi.ConvertType(out[1], new(*big.Int)).(**big.Int)
return out0, out1, err
}
// GetCrossReserveReturn is a free data retrieval call binding the contract method 0xcf73266a.
//
// Solidity: function getCrossReserveReturn(address _fromReserveToken, address _toReserveToken, uint256 _amount) view returns(uint256, uint256)
func (_ConverterTypeFour *ConverterTypeFourSession) GetCrossReserveReturn(_fromReserveToken common.Address, _toReserveToken common.Address, _amount *big.Int) (*big.Int, *big.Int, error) {
return _ConverterTypeFour.Contract.GetCrossReserveReturn(&_ConverterTypeFour.CallOpts, _fromReserveToken, _toReserveToken, _amount)
}
// GetCrossReserveReturn is a free data retrieval call binding the contract method 0xcf73266a.
//
// Solidity: function getCrossReserveReturn(address _fromReserveToken, address _toReserveToken, uint256 _amount) view returns(uint256, uint256)
func (_ConverterTypeFour *ConverterTypeFourCallerSession) GetCrossReserveReturn(_fromReserveToken common.Address, _toReserveToken common.Address, _amount *big.Int) (*big.Int, *big.Int, error) {
return _ConverterTypeFour.Contract.GetCrossReserveReturn(&_ConverterTypeFour.CallOpts, _fromReserveToken, _toReserveToken, _amount)
}
// GetFinalAmount is a free data retrieval call binding the contract method 0x3aa0145a.
//
// Solidity: function getFinalAmount(uint256 _amount, uint8 _magnitude) view returns(uint256)
func (_ConverterTypeFour *ConverterTypeFourCaller) GetFinalAmount(opts *bind.CallOpts, _amount *big.Int, _magnitude uint8) (*big.Int, error) {
var out []interface{}
err := _ConverterTypeFour.contract.Call(opts, &out, "getFinalAmount", _amount, _magnitude)
if err != nil {
return *new(*big.Int), err
}
out0 := *abi.ConvertType(out[0], new(*big.Int)).(**big.Int)
return out0, err
}
// GetFinalAmount is a free data retrieval call binding the contract method 0x3aa0145a.
//
// Solidity: function getFinalAmount(uint256 _amount, uint8 _magnitude) view returns(uint256)
func (_ConverterTypeFour *ConverterTypeFourSession) GetFinalAmount(_amount *big.Int, _magnitude uint8) (*big.Int, error) {
return _ConverterTypeFour.Contract.GetFinalAmount(&_ConverterTypeFour.CallOpts, _amount, _magnitude)
}
// GetFinalAmount is a free data retrieval call binding the contract method 0x3aa0145a.
//
// Solidity: function getFinalAmount(uint256 _amount, uint8 _magnitude) view returns(uint256)
func (_ConverterTypeFour *ConverterTypeFourCallerSession) GetFinalAmount(_amount *big.Int, _magnitude uint8) (*big.Int, error) {
return _ConverterTypeFour.Contract.GetFinalAmount(&_ConverterTypeFour.CallOpts, _amount, _magnitude)
}
// GetPurchaseReturn is a free data retrieval call binding the contract method 0xa2c4c336.
//
// Solidity: function getPurchaseReturn(address _reserveToken, uint256 _depositAmount) view returns(uint256, uint256)
func (_ConverterTypeFour *ConverterTypeFourCaller) GetPurchaseReturn(opts *bind.CallOpts, _reserveToken common.Address, _depositAmount *big.Int) (*big.Int, *big.Int, error) {
var out []interface{}
err := _ConverterTypeFour.contract.Call(opts, &out, "getPurchaseReturn", _reserveToken, _depositAmount)
if err != nil {
return *new(*big.Int), *new(*big.Int), err
}
out0 := *abi.ConvertType(out[0], new(*big.Int)).(**big.Int)
out1 := *abi.ConvertType(out[1], new(*big.Int)).(**big.Int)
return out0, out1, err
}
// GetPurchaseReturn is a free data retrieval call binding the contract method 0xa2c4c336.
//
// Solidity: function getPurchaseReturn(address _reserveToken, uint256 _depositAmount) view returns(uint256, uint256)
func (_ConverterTypeFour *ConverterTypeFourSession) GetPurchaseReturn(_reserveToken common.Address, _depositAmount *big.Int) (*big.Int, *big.Int, error) {
return _ConverterTypeFour.Contract.GetPurchaseReturn(&_ConverterTypeFour.CallOpts, _reserveToken, _depositAmount)
}
// GetPurchaseReturn is a free data retrieval call binding the contract method 0xa2c4c336.
//
// Solidity: function getPurchaseReturn(address _reserveToken, uint256 _depositAmount) view returns(uint256, uint256)
func (_ConverterTypeFour *ConverterTypeFourCallerSession) GetPurchaseReturn(_reserveToken common.Address, _depositAmount *big.Int) (*big.Int, *big.Int, error) {
return _ConverterTypeFour.Contract.GetPurchaseReturn(&_ConverterTypeFour.CallOpts, _reserveToken, _depositAmount)
}
// GetReserveBalance is a free data retrieval call binding the contract method 0x15226b54.
//
// Solidity: function getReserveBalance(address _reserveToken) view returns(uint256)
func (_ConverterTypeFour *ConverterTypeFourCaller) GetReserveBalance(opts *bind.CallOpts, _reserveToken common.Address) (*big.Int, error) {
var out []interface{}
err := _ConverterTypeFour.contract.Call(opts, &out, "getReserveBalance", _reserveToken)
if err != nil {
return *new(*big.Int), err
}
out0 := *abi.ConvertType(out[0], new(*big.Int)).(**big.Int)
return out0, err