-
Notifications
You must be signed in to change notification settings - Fork 126
/
curvefimeta.go
2077 lines (1715 loc) · 101 KB
/
curvefimeta.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 curvefimeta
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
)
// CurvefimetaMetaData contains all meta data concerning the Curvefimeta contract.
var CurvefimetaMetaData = &bind.MetaData{
ABI: "[{\"name\":\"BasePoolAdded\",\"inputs\":[{\"name\":\"base_pool\",\"type\":\"address\",\"indexed\":false}],\"anonymous\":false,\"type\":\"event\"},{\"name\":\"PlainPoolDeployed\",\"inputs\":[{\"name\":\"coins\",\"type\":\"address[4]\",\"indexed\":false},{\"name\":\"A\",\"type\":\"uint256\",\"indexed\":false},{\"name\":\"fee\",\"type\":\"uint256\",\"indexed\":false},{\"name\":\"deployer\",\"type\":\"address\",\"indexed\":false}],\"anonymous\":false,\"type\":\"event\"},{\"name\":\"MetaPoolDeployed\",\"inputs\":[{\"name\":\"coin\",\"type\":\"address\",\"indexed\":false},{\"name\":\"base_pool\",\"type\":\"address\",\"indexed\":false},{\"name\":\"A\",\"type\":\"uint256\",\"indexed\":false},{\"name\":\"fee\",\"type\":\"uint256\",\"indexed\":false},{\"name\":\"deployer\",\"type\":\"address\",\"indexed\":false}],\"anonymous\":false,\"type\":\"event\"},{\"name\":\"LiquidityGaugeDeployed\",\"inputs\":[{\"name\":\"pool\",\"type\":\"address\",\"indexed\":false},{\"name\":\"gauge\",\"type\":\"address\",\"indexed\":false}],\"anonymous\":false,\"type\":\"event\"},{\"stateMutability\":\"nonpayable\",\"type\":\"constructor\",\"inputs\":[{\"name\":\"_fee_receiver\",\"type\":\"address\"}],\"outputs\":[]},{\"stateMutability\":\"view\",\"type\":\"function\",\"name\":\"metapool_implementations\",\"inputs\":[{\"name\":\"_base_pool\",\"type\":\"address\"}],\"outputs\":[{\"name\":\"\",\"type\":\"address[10]\"}],\"gas\":21716},{\"stateMutability\":\"view\",\"type\":\"function\",\"name\":\"find_pool_for_coins\",\"inputs\":[{\"name\":\"_from\",\"type\":\"address\"},{\"name\":\"_to\",\"type\":\"address\"}],\"outputs\":[{\"name\":\"\",\"type\":\"address\"}]},{\"stateMutability\":\"view\",\"type\":\"function\",\"name\":\"find_pool_for_coins\",\"inputs\":[{\"name\":\"_from\",\"type\":\"address\"},{\"name\":\"_to\",\"type\":\"address\"},{\"name\":\"i\",\"type\":\"uint256\"}],\"outputs\":[{\"name\":\"\",\"type\":\"address\"}]},{\"stateMutability\":\"view\",\"type\":\"function\",\"name\":\"get_base_pool\",\"inputs\":[{\"name\":\"_pool\",\"type\":\"address\"}],\"outputs\":[{\"name\":\"\",\"type\":\"address\"}],\"gas\":2663},{\"stateMutability\":\"view\",\"type\":\"function\",\"name\":\"get_n_coins\",\"inputs\":[{\"name\":\"_pool\",\"type\":\"address\"}],\"outputs\":[{\"name\":\"\",\"type\":\"uint256\"}],\"gas\":2699},{\"stateMutability\":\"view\",\"type\":\"function\",\"name\":\"get_meta_n_coins\",\"inputs\":[{\"name\":\"_pool\",\"type\":\"address\"}],\"outputs\":[{\"name\":\"\",\"type\":\"uint256\"},{\"name\":\"\",\"type\":\"uint256\"}],\"gas\":5201},{\"stateMutability\":\"view\",\"type\":\"function\",\"name\":\"get_coins\",\"inputs\":[{\"name\":\"_pool\",\"type\":\"address\"}],\"outputs\":[{\"name\":\"\",\"type\":\"address[4]\"}],\"gas\":9164},{\"stateMutability\":\"view\",\"type\":\"function\",\"name\":\"get_underlying_coins\",\"inputs\":[{\"name\":\"_pool\",\"type\":\"address\"}],\"outputs\":[{\"name\":\"\",\"type\":\"address[8]\"}],\"gas\":21345},{\"stateMutability\":\"view\",\"type\":\"function\",\"name\":\"get_decimals\",\"inputs\":[{\"name\":\"_pool\",\"type\":\"address\"}],\"outputs\":[{\"name\":\"\",\"type\":\"uint256[4]\"}],\"gas\":20185},{\"stateMutability\":\"view\",\"type\":\"function\",\"name\":\"get_underlying_decimals\",\"inputs\":[{\"name\":\"_pool\",\"type\":\"address\"}],\"outputs\":[{\"name\":\"\",\"type\":\"uint256[8]\"}],\"gas\":19730},{\"stateMutability\":\"view\",\"type\":\"function\",\"name\":\"get_metapool_rates\",\"inputs\":[{\"name\":\"_pool\",\"type\":\"address\"}],\"outputs\":[{\"name\":\"\",\"type\":\"uint256[2]\"}],\"gas\":5281},{\"stateMutability\":\"view\",\"type\":\"function\",\"name\":\"get_balances\",\"inputs\":[{\"name\":\"_pool\",\"type\":\"address\"}],\"outputs\":[{\"name\":\"\",\"type\":\"uint256[4]\"}],\"gas\":20435},{\"stateMutability\":\"view\",\"type\":\"function\",\"name\":\"get_underlying_balances\",\"inputs\":[{\"name\":\"_pool\",\"type\":\"address\"}],\"outputs\":[{\"name\":\"\",\"type\":\"uint256[8]\"}],\"gas\":39733},{\"stateMutability\":\"view\",\"type\":\"function\",\"name\":\"get_A\",\"inputs\":[{\"name\":\"_pool\",\"type\":\"address\"}],\"outputs\":[{\"name\":\"\",\"type\":\"uint256\"}],\"gas\":3135},{\"stateMutability\":\"view\",\"type\":\"function\",\"name\":\"get_fees\",\"inputs\":[{\"name\":\"_pool\",\"type\":\"address\"}],\"outputs\":[{\"name\":\"\",\"type\":\"uint256\"},{\"name\":\"\",\"type\":\"uint256\"}],\"gas\":5821},{\"stateMutability\":\"view\",\"type\":\"function\",\"name\":\"get_admin_balances\",\"inputs\":[{\"name\":\"_pool\",\"type\":\"address\"}],\"outputs\":[{\"name\":\"\",\"type\":\"uint256[4]\"}],\"gas\":13535},{\"stateMutability\":\"view\",\"type\":\"function\",\"name\":\"get_coin_indices\",\"inputs\":[{\"name\":\"_pool\",\"type\":\"address\"},{\"name\":\"_from\",\"type\":\"address\"},{\"name\":\"_to\",\"type\":\"address\"}],\"outputs\":[{\"name\":\"\",\"type\":\"int128\"},{\"name\":\"\",\"type\":\"int128\"},{\"name\":\"\",\"type\":\"bool\"}],\"gas\":33407},{\"stateMutability\":\"view\",\"type\":\"function\",\"name\":\"get_gauge\",\"inputs\":[{\"name\":\"_pool\",\"type\":\"address\"}],\"outputs\":[{\"name\":\"\",\"type\":\"address\"}],\"gas\":3089},{\"stateMutability\":\"view\",\"type\":\"function\",\"name\":\"get_implementation_address\",\"inputs\":[{\"name\":\"_pool\",\"type\":\"address\"}],\"outputs\":[{\"name\":\"\",\"type\":\"address\"}],\"gas\":3119},{\"stateMutability\":\"view\",\"type\":\"function\",\"name\":\"is_meta\",\"inputs\":[{\"name\":\"_pool\",\"type\":\"address\"}],\"outputs\":[{\"name\":\"\",\"type\":\"bool\"}],\"gas\":3152},{\"stateMutability\":\"view\",\"type\":\"function\",\"name\":\"get_pool_asset_type\",\"inputs\":[{\"name\":\"_pool\",\"type\":\"address\"}],\"outputs\":[{\"name\":\"\",\"type\":\"uint256\"}],\"gas\":5450},{\"stateMutability\":\"view\",\"type\":\"function\",\"name\":\"get_fee_receiver\",\"inputs\":[{\"name\":\"_pool\",\"type\":\"address\"}],\"outputs\":[{\"name\":\"\",\"type\":\"address\"}],\"gas\":5480},{\"stateMutability\":\"nonpayable\",\"type\":\"function\",\"name\":\"deploy_plain_pool\",\"inputs\":[{\"name\":\"_name\",\"type\":\"string\"},{\"name\":\"_symbol\",\"type\":\"string\"},{\"name\":\"_coins\",\"type\":\"address[4]\"},{\"name\":\"_A\",\"type\":\"uint256\"},{\"name\":\"_fee\",\"type\":\"uint256\"}],\"outputs\":[{\"name\":\"\",\"type\":\"address\"}]},{\"stateMutability\":\"nonpayable\",\"type\":\"function\",\"name\":\"deploy_plain_pool\",\"inputs\":[{\"name\":\"_name\",\"type\":\"string\"},{\"name\":\"_symbol\",\"type\":\"string\"},{\"name\":\"_coins\",\"type\":\"address[4]\"},{\"name\":\"_A\",\"type\":\"uint256\"},{\"name\":\"_fee\",\"type\":\"uint256\"},{\"name\":\"_asset_type\",\"type\":\"uint256\"}],\"outputs\":[{\"name\":\"\",\"type\":\"address\"}]},{\"stateMutability\":\"nonpayable\",\"type\":\"function\",\"name\":\"deploy_plain_pool\",\"inputs\":[{\"name\":\"_name\",\"type\":\"string\"},{\"name\":\"_symbol\",\"type\":\"string\"},{\"name\":\"_coins\",\"type\":\"address[4]\"},{\"name\":\"_A\",\"type\":\"uint256\"},{\"name\":\"_fee\",\"type\":\"uint256\"},{\"name\":\"_asset_type\",\"type\":\"uint256\"},{\"name\":\"_implementation_idx\",\"type\":\"uint256\"}],\"outputs\":[{\"name\":\"\",\"type\":\"address\"}]},{\"stateMutability\":\"nonpayable\",\"type\":\"function\",\"name\":\"deploy_metapool\",\"inputs\":[{\"name\":\"_base_pool\",\"type\":\"address\"},{\"name\":\"_name\",\"type\":\"string\"},{\"name\":\"_symbol\",\"type\":\"string\"},{\"name\":\"_coin\",\"type\":\"address\"},{\"name\":\"_A\",\"type\":\"uint256\"},{\"name\":\"_fee\",\"type\":\"uint256\"}],\"outputs\":[{\"name\":\"\",\"type\":\"address\"}]},{\"stateMutability\":\"nonpayable\",\"type\":\"function\",\"name\":\"deploy_metapool\",\"inputs\":[{\"name\":\"_base_pool\",\"type\":\"address\"},{\"name\":\"_name\",\"type\":\"string\"},{\"name\":\"_symbol\",\"type\":\"string\"},{\"name\":\"_coin\",\"type\":\"address\"},{\"name\":\"_A\",\"type\":\"uint256\"},{\"name\":\"_fee\",\"type\":\"uint256\"},{\"name\":\"_implementation_idx\",\"type\":\"uint256\"}],\"outputs\":[{\"name\":\"\",\"type\":\"address\"}]},{\"stateMutability\":\"nonpayable\",\"type\":\"function\",\"name\":\"deploy_gauge\",\"inputs\":[{\"name\":\"_pool\",\"type\":\"address\"}],\"outputs\":[{\"name\":\"\",\"type\":\"address\"}],\"gas\":93079},{\"stateMutability\":\"nonpayable\",\"type\":\"function\",\"name\":\"add_base_pool\",\"inputs\":[{\"name\":\"_base_pool\",\"type\":\"address\"},{\"name\":\"_fee_receiver\",\"type\":\"address\"},{\"name\":\"_asset_type\",\"type\":\"uint256\"},{\"name\":\"_implementations\",\"type\":\"address[10]\"}],\"outputs\":[],\"gas\":1206132},{\"stateMutability\":\"nonpayable\",\"type\":\"function\",\"name\":\"set_metapool_implementations\",\"inputs\":[{\"name\":\"_base_pool\",\"type\":\"address\"},{\"name\":\"_implementations\",\"type\":\"address[10]\"}],\"outputs\":[],\"gas\":382072},{\"stateMutability\":\"nonpayable\",\"type\":\"function\",\"name\":\"set_plain_implementations\",\"inputs\":[{\"name\":\"_n_coins\",\"type\":\"uint256\"},{\"name\":\"_implementations\",\"type\":\"address[10]\"}],\"outputs\":[],\"gas\":379687},{\"stateMutability\":\"nonpayable\",\"type\":\"function\",\"name\":\"set_gauge_implementation\",\"inputs\":[{\"name\":\"_gauge_implementation\",\"type\":\"address\"}],\"outputs\":[],\"gas\":38355},{\"stateMutability\":\"nonpayable\",\"type\":\"function\",\"name\":\"batch_set_pool_asset_type\",\"inputs\":[{\"name\":\"_pools\",\"type\":\"address[32]\"},{\"name\":\"_asset_types\",\"type\":\"uint256[32]\"}],\"outputs\":[],\"gas\":1139545},{\"stateMutability\":\"nonpayable\",\"type\":\"function\",\"name\":\"commit_transfer_ownership\",\"inputs\":[{\"name\":\"_addr\",\"type\":\"address\"}],\"outputs\":[],\"gas\":38415},{\"stateMutability\":\"nonpayable\",\"type\":\"function\",\"name\":\"accept_transfer_ownership\",\"inputs\":[],\"outputs\":[],\"gas\":58366},{\"stateMutability\":\"nonpayable\",\"type\":\"function\",\"name\":\"set_manager\",\"inputs\":[{\"name\":\"_manager\",\"type\":\"address\"}],\"outputs\":[],\"gas\":40996},{\"stateMutability\":\"nonpayable\",\"type\":\"function\",\"name\":\"set_fee_receiver\",\"inputs\":[{\"name\":\"_base_pool\",\"type\":\"address\"},{\"name\":\"_fee_receiver\",\"type\":\"address\"}],\"outputs\":[],\"gas\":38770},{\"stateMutability\":\"nonpayable\",\"type\":\"function\",\"name\":\"convert_metapool_fees\",\"inputs\":[],\"outputs\":[{\"name\":\"\",\"type\":\"bool\"}],\"gas\":12880},{\"stateMutability\":\"nonpayable\",\"type\":\"function\",\"name\":\"add_existing_metapools\",\"inputs\":[{\"name\":\"_pools\",\"type\":\"address[10]\"}],\"outputs\":[{\"name\":\"\",\"type\":\"bool\"}],\"gas\":8610792},{\"stateMutability\":\"view\",\"type\":\"function\",\"name\":\"admin\",\"inputs\":[],\"outputs\":[{\"name\":\"\",\"type\":\"address\"}],\"gas\":3438},{\"stateMutability\":\"view\",\"type\":\"function\",\"name\":\"future_admin\",\"inputs\":[],\"outputs\":[{\"name\":\"\",\"type\":\"address\"}],\"gas\":3468},{\"stateMutability\":\"view\",\"type\":\"function\",\"name\":\"manager\",\"inputs\":[],\"outputs\":[{\"name\":\"\",\"type\":\"address\"}],\"gas\":3498},{\"stateMutability\":\"view\",\"type\":\"function\",\"name\":\"pool_list\",\"inputs\":[{\"name\":\"arg0\",\"type\":\"uint256\"}],\"outputs\":[{\"name\":\"\",\"type\":\"address\"}],\"gas\":3573},{\"stateMutability\":\"view\",\"type\":\"function\",\"name\":\"pool_count\",\"inputs\":[],\"outputs\":[{\"name\":\"\",\"type\":\"uint256\"}],\"gas\":3558},{\"stateMutability\":\"view\",\"type\":\"function\",\"name\":\"base_pool_list\",\"inputs\":[{\"name\":\"arg0\",\"type\":\"uint256\"}],\"outputs\":[{\"name\":\"\",\"type\":\"address\"}],\"gas\":3633},{\"stateMutability\":\"view\",\"type\":\"function\",\"name\":\"base_pool_count\",\"inputs\":[],\"outputs\":[{\"name\":\"\",\"type\":\"uint256\"}],\"gas\":3618},{\"stateMutability\":\"view\",\"type\":\"function\",\"name\":\"base_pool_assets\",\"inputs\":[{\"name\":\"arg0\",\"type\":\"address\"}],\"outputs\":[{\"name\":\"\",\"type\":\"bool\"}],\"gas\":3863},{\"stateMutability\":\"view\",\"type\":\"function\",\"name\":\"plain_implementations\",\"inputs\":[{\"name\":\"arg0\",\"type\":\"uint256\"},{\"name\":\"arg1\",\"type\":\"uint256\"}],\"outputs\":[{\"name\":\"\",\"type\":\"address\"}],\"gas\":3838},{\"stateMutability\":\"view\",\"type\":\"function\",\"name\":\"gauge_implementation\",\"inputs\":[],\"outputs\":[{\"name\":\"\",\"type\":\"address\"}],\"gas\":3708}]",
}
// CurvefimetaABI is the input ABI used to generate the binding from.
// Deprecated: Use CurvefimetaMetaData.ABI instead.
var CurvefimetaABI = CurvefimetaMetaData.ABI
// Curvefimeta is an auto generated Go binding around an Ethereum contract.
type Curvefimeta struct {
CurvefimetaCaller // Read-only binding to the contract
CurvefimetaTransactor // Write-only binding to the contract
CurvefimetaFilterer // Log filterer for contract events
}
// CurvefimetaCaller is an auto generated read-only Go binding around an Ethereum contract.
type CurvefimetaCaller struct {
contract *bind.BoundContract // Generic contract wrapper for the low level calls
}
// CurvefimetaTransactor is an auto generated write-only Go binding around an Ethereum contract.
type CurvefimetaTransactor struct {
contract *bind.BoundContract // Generic contract wrapper for the low level calls
}
// CurvefimetaFilterer is an auto generated log filtering Go binding around an Ethereum contract events.
type CurvefimetaFilterer struct {
contract *bind.BoundContract // Generic contract wrapper for the low level calls
}
// CurvefimetaSession is an auto generated Go binding around an Ethereum contract,
// with pre-set call and transact options.
type CurvefimetaSession struct {
Contract *Curvefimeta // 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
}
// CurvefimetaCallerSession is an auto generated read-only Go binding around an Ethereum contract,
// with pre-set call options.
type CurvefimetaCallerSession struct {
Contract *CurvefimetaCaller // Generic contract caller binding to set the session for
CallOpts bind.CallOpts // Call options to use throughout this session
}
// CurvefimetaTransactorSession is an auto generated write-only Go binding around an Ethereum contract,
// with pre-set transact options.
type CurvefimetaTransactorSession struct {
Contract *CurvefimetaTransactor // Generic contract transactor binding to set the session for
TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session
}
// CurvefimetaRaw is an auto generated low-level Go binding around an Ethereum contract.
type CurvefimetaRaw struct {
Contract *Curvefimeta // Generic contract binding to access the raw methods on
}
// CurvefimetaCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract.
type CurvefimetaCallerRaw struct {
Contract *CurvefimetaCaller // Generic read-only contract binding to access the raw methods on
}
// CurvefimetaTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract.
type CurvefimetaTransactorRaw struct {
Contract *CurvefimetaTransactor // Generic write-only contract binding to access the raw methods on
}
// NewCurvefimeta creates a new instance of Curvefimeta, bound to a specific deployed contract.
func NewCurvefimeta(address common.Address, backend bind.ContractBackend) (*Curvefimeta, error) {
contract, err := bindCurvefimeta(address, backend, backend, backend)
if err != nil {
return nil, err
}
return &Curvefimeta{CurvefimetaCaller: CurvefimetaCaller{contract: contract}, CurvefimetaTransactor: CurvefimetaTransactor{contract: contract}, CurvefimetaFilterer: CurvefimetaFilterer{contract: contract}}, nil
}
// NewCurvefimetaCaller creates a new read-only instance of Curvefimeta, bound to a specific deployed contract.
func NewCurvefimetaCaller(address common.Address, caller bind.ContractCaller) (*CurvefimetaCaller, error) {
contract, err := bindCurvefimeta(address, caller, nil, nil)
if err != nil {
return nil, err
}
return &CurvefimetaCaller{contract: contract}, nil
}
// NewCurvefimetaTransactor creates a new write-only instance of Curvefimeta, bound to a specific deployed contract.
func NewCurvefimetaTransactor(address common.Address, transactor bind.ContractTransactor) (*CurvefimetaTransactor, error) {
contract, err := bindCurvefimeta(address, nil, transactor, nil)
if err != nil {
return nil, err
}
return &CurvefimetaTransactor{contract: contract}, nil
}
// NewCurvefimetaFilterer creates a new log filterer instance of Curvefimeta, bound to a specific deployed contract.
func NewCurvefimetaFilterer(address common.Address, filterer bind.ContractFilterer) (*CurvefimetaFilterer, error) {
contract, err := bindCurvefimeta(address, nil, nil, filterer)
if err != nil {
return nil, err
}
return &CurvefimetaFilterer{contract: contract}, nil
}
// bindCurvefimeta binds a generic wrapper to an already deployed contract.
func bindCurvefimeta(address common.Address, caller bind.ContractCaller, transactor bind.ContractTransactor, filterer bind.ContractFilterer) (*bind.BoundContract, error) {
parsed, err := abi.JSON(strings.NewReader(CurvefimetaABI))
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 (_Curvefimeta *CurvefimetaRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error {
return _Curvefimeta.Contract.CurvefimetaCaller.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 (_Curvefimeta *CurvefimetaRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) {
return _Curvefimeta.Contract.CurvefimetaTransactor.contract.Transfer(opts)
}
// Transact invokes the (paid) contract method with params as input values.
func (_Curvefimeta *CurvefimetaRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) {
return _Curvefimeta.Contract.CurvefimetaTransactor.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 (_Curvefimeta *CurvefimetaCallerRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error {
return _Curvefimeta.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 (_Curvefimeta *CurvefimetaTransactorRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) {
return _Curvefimeta.Contract.contract.Transfer(opts)
}
// Transact invokes the (paid) contract method with params as input values.
func (_Curvefimeta *CurvefimetaTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) {
return _Curvefimeta.Contract.contract.Transact(opts, method, params...)
}
// Admin is a free data retrieval call binding the contract method 0xf851a440.
//
// Solidity: function admin() view returns(address)
func (_Curvefimeta *CurvefimetaCaller) Admin(opts *bind.CallOpts) (common.Address, error) {
var out []interface{}
err := _Curvefimeta.contract.Call(opts, &out, "admin")
if err != nil {
return *new(common.Address), err
}
out0 := *abi.ConvertType(out[0], new(common.Address)).(*common.Address)
return out0, err
}
// Admin is a free data retrieval call binding the contract method 0xf851a440.
//
// Solidity: function admin() view returns(address)
func (_Curvefimeta *CurvefimetaSession) Admin() (common.Address, error) {
return _Curvefimeta.Contract.Admin(&_Curvefimeta.CallOpts)
}
// Admin is a free data retrieval call binding the contract method 0xf851a440.
//
// Solidity: function admin() view returns(address)
func (_Curvefimeta *CurvefimetaCallerSession) Admin() (common.Address, error) {
return _Curvefimeta.Contract.Admin(&_Curvefimeta.CallOpts)
}
// BasePoolAssets is a free data retrieval call binding the contract method 0x10a002df.
//
// Solidity: function base_pool_assets(address arg0) view returns(bool)
func (_Curvefimeta *CurvefimetaCaller) BasePoolAssets(opts *bind.CallOpts, arg0 common.Address) (bool, error) {
var out []interface{}
err := _Curvefimeta.contract.Call(opts, &out, "base_pool_assets", arg0)
if err != nil {
return *new(bool), err
}
out0 := *abi.ConvertType(out[0], new(bool)).(*bool)
return out0, err
}
// BasePoolAssets is a free data retrieval call binding the contract method 0x10a002df.
//
// Solidity: function base_pool_assets(address arg0) view returns(bool)
func (_Curvefimeta *CurvefimetaSession) BasePoolAssets(arg0 common.Address) (bool, error) {
return _Curvefimeta.Contract.BasePoolAssets(&_Curvefimeta.CallOpts, arg0)
}
// BasePoolAssets is a free data retrieval call binding the contract method 0x10a002df.
//
// Solidity: function base_pool_assets(address arg0) view returns(bool)
func (_Curvefimeta *CurvefimetaCallerSession) BasePoolAssets(arg0 common.Address) (bool, error) {
return _Curvefimeta.Contract.BasePoolAssets(&_Curvefimeta.CallOpts, arg0)
}
// BasePoolCount is a free data retrieval call binding the contract method 0xde5e4a3b.
//
// Solidity: function base_pool_count() view returns(uint256)
func (_Curvefimeta *CurvefimetaCaller) BasePoolCount(opts *bind.CallOpts) (*big.Int, error) {
var out []interface{}
err := _Curvefimeta.contract.Call(opts, &out, "base_pool_count")
if err != nil {
return *new(*big.Int), err
}
out0 := *abi.ConvertType(out[0], new(*big.Int)).(**big.Int)
return out0, err
}
// BasePoolCount is a free data retrieval call binding the contract method 0xde5e4a3b.
//
// Solidity: function base_pool_count() view returns(uint256)
func (_Curvefimeta *CurvefimetaSession) BasePoolCount() (*big.Int, error) {
return _Curvefimeta.Contract.BasePoolCount(&_Curvefimeta.CallOpts)
}
// BasePoolCount is a free data retrieval call binding the contract method 0xde5e4a3b.
//
// Solidity: function base_pool_count() view returns(uint256)
func (_Curvefimeta *CurvefimetaCallerSession) BasePoolCount() (*big.Int, error) {
return _Curvefimeta.Contract.BasePoolCount(&_Curvefimeta.CallOpts)
}
// BasePoolList is a free data retrieval call binding the contract method 0x22fe5671.
//
// Solidity: function base_pool_list(uint256 arg0) view returns(address)
func (_Curvefimeta *CurvefimetaCaller) BasePoolList(opts *bind.CallOpts, arg0 *big.Int) (common.Address, error) {
var out []interface{}
err := _Curvefimeta.contract.Call(opts, &out, "base_pool_list", arg0)
if err != nil {
return *new(common.Address), err
}
out0 := *abi.ConvertType(out[0], new(common.Address)).(*common.Address)
return out0, err
}
// BasePoolList is a free data retrieval call binding the contract method 0x22fe5671.
//
// Solidity: function base_pool_list(uint256 arg0) view returns(address)
func (_Curvefimeta *CurvefimetaSession) BasePoolList(arg0 *big.Int) (common.Address, error) {
return _Curvefimeta.Contract.BasePoolList(&_Curvefimeta.CallOpts, arg0)
}
// BasePoolList is a free data retrieval call binding the contract method 0x22fe5671.
//
// Solidity: function base_pool_list(uint256 arg0) view returns(address)
func (_Curvefimeta *CurvefimetaCallerSession) BasePoolList(arg0 *big.Int) (common.Address, error) {
return _Curvefimeta.Contract.BasePoolList(&_Curvefimeta.CallOpts, arg0)
}
// FindPoolForCoins is a free data retrieval call binding the contract method 0xa87df06c.
//
// Solidity: function find_pool_for_coins(address _from, address _to) view returns(address)
func (_Curvefimeta *CurvefimetaCaller) FindPoolForCoins(opts *bind.CallOpts, _from common.Address, _to common.Address) (common.Address, error) {
var out []interface{}
err := _Curvefimeta.contract.Call(opts, &out, "find_pool_for_coins", _from, _to)
if err != nil {
return *new(common.Address), err
}
out0 := *abi.ConvertType(out[0], new(common.Address)).(*common.Address)
return out0, err
}
// FindPoolForCoins is a free data retrieval call binding the contract method 0xa87df06c.
//
// Solidity: function find_pool_for_coins(address _from, address _to) view returns(address)
func (_Curvefimeta *CurvefimetaSession) FindPoolForCoins(_from common.Address, _to common.Address) (common.Address, error) {
return _Curvefimeta.Contract.FindPoolForCoins(&_Curvefimeta.CallOpts, _from, _to)
}
// FindPoolForCoins is a free data retrieval call binding the contract method 0xa87df06c.
//
// Solidity: function find_pool_for_coins(address _from, address _to) view returns(address)
func (_Curvefimeta *CurvefimetaCallerSession) FindPoolForCoins(_from common.Address, _to common.Address) (common.Address, error) {
return _Curvefimeta.Contract.FindPoolForCoins(&_Curvefimeta.CallOpts, _from, _to)
}
// FindPoolForCoins0 is a free data retrieval call binding the contract method 0x6982eb0b.
//
// Solidity: function find_pool_for_coins(address _from, address _to, uint256 i) view returns(address)
func (_Curvefimeta *CurvefimetaCaller) FindPoolForCoins0(opts *bind.CallOpts, _from common.Address, _to common.Address, i *big.Int) (common.Address, error) {
var out []interface{}
err := _Curvefimeta.contract.Call(opts, &out, "find_pool_for_coins0", _from, _to, i)
if err != nil {
return *new(common.Address), err
}
out0 := *abi.ConvertType(out[0], new(common.Address)).(*common.Address)
return out0, err
}
// FindPoolForCoins0 is a free data retrieval call binding the contract method 0x6982eb0b.
//
// Solidity: function find_pool_for_coins(address _from, address _to, uint256 i) view returns(address)
func (_Curvefimeta *CurvefimetaSession) FindPoolForCoins0(_from common.Address, _to common.Address, i *big.Int) (common.Address, error) {
return _Curvefimeta.Contract.FindPoolForCoins0(&_Curvefimeta.CallOpts, _from, _to, i)
}
// FindPoolForCoins0 is a free data retrieval call binding the contract method 0x6982eb0b.
//
// Solidity: function find_pool_for_coins(address _from, address _to, uint256 i) view returns(address)
func (_Curvefimeta *CurvefimetaCallerSession) FindPoolForCoins0(_from common.Address, _to common.Address, i *big.Int) (common.Address, error) {
return _Curvefimeta.Contract.FindPoolForCoins0(&_Curvefimeta.CallOpts, _from, _to, i)
}
// FutureAdmin is a free data retrieval call binding the contract method 0x17f7182a.
//
// Solidity: function future_admin() view returns(address)
func (_Curvefimeta *CurvefimetaCaller) FutureAdmin(opts *bind.CallOpts) (common.Address, error) {
var out []interface{}
err := _Curvefimeta.contract.Call(opts, &out, "future_admin")
if err != nil {
return *new(common.Address), err
}
out0 := *abi.ConvertType(out[0], new(common.Address)).(*common.Address)
return out0, err
}
// FutureAdmin is a free data retrieval call binding the contract method 0x17f7182a.
//
// Solidity: function future_admin() view returns(address)
func (_Curvefimeta *CurvefimetaSession) FutureAdmin() (common.Address, error) {
return _Curvefimeta.Contract.FutureAdmin(&_Curvefimeta.CallOpts)
}
// FutureAdmin is a free data retrieval call binding the contract method 0x17f7182a.
//
// Solidity: function future_admin() view returns(address)
func (_Curvefimeta *CurvefimetaCallerSession) FutureAdmin() (common.Address, error) {
return _Curvefimeta.Contract.FutureAdmin(&_Curvefimeta.CallOpts)
}
// GaugeImplementation is a free data retrieval call binding the contract method 0x8df24207.
//
// Solidity: function gauge_implementation() view returns(address)
func (_Curvefimeta *CurvefimetaCaller) GaugeImplementation(opts *bind.CallOpts) (common.Address, error) {
var out []interface{}
err := _Curvefimeta.contract.Call(opts, &out, "gauge_implementation")
if err != nil {
return *new(common.Address), err
}
out0 := *abi.ConvertType(out[0], new(common.Address)).(*common.Address)
return out0, err
}
// GaugeImplementation is a free data retrieval call binding the contract method 0x8df24207.
//
// Solidity: function gauge_implementation() view returns(address)
func (_Curvefimeta *CurvefimetaSession) GaugeImplementation() (common.Address, error) {
return _Curvefimeta.Contract.GaugeImplementation(&_Curvefimeta.CallOpts)
}
// GaugeImplementation is a free data retrieval call binding the contract method 0x8df24207.
//
// Solidity: function gauge_implementation() view returns(address)
func (_Curvefimeta *CurvefimetaCallerSession) GaugeImplementation() (common.Address, error) {
return _Curvefimeta.Contract.GaugeImplementation(&_Curvefimeta.CallOpts)
}
// GetA is a free data retrieval call binding the contract method 0x55b30b19.
//
// Solidity: function get_A(address _pool) view returns(uint256)
func (_Curvefimeta *CurvefimetaCaller) GetA(opts *bind.CallOpts, _pool common.Address) (*big.Int, error) {
var out []interface{}
err := _Curvefimeta.contract.Call(opts, &out, "get_A", _pool)
if err != nil {
return *new(*big.Int), err
}
out0 := *abi.ConvertType(out[0], new(*big.Int)).(**big.Int)
return out0, err
}
// GetA is a free data retrieval call binding the contract method 0x55b30b19.
//
// Solidity: function get_A(address _pool) view returns(uint256)
func (_Curvefimeta *CurvefimetaSession) GetA(_pool common.Address) (*big.Int, error) {
return _Curvefimeta.Contract.GetA(&_Curvefimeta.CallOpts, _pool)
}
// GetA is a free data retrieval call binding the contract method 0x55b30b19.
//
// Solidity: function get_A(address _pool) view returns(uint256)
func (_Curvefimeta *CurvefimetaCallerSession) GetA(_pool common.Address) (*big.Int, error) {
return _Curvefimeta.Contract.GetA(&_Curvefimeta.CallOpts, _pool)
}
// GetAdminBalances is a free data retrieval call binding the contract method 0xc11e45b8.
//
// Solidity: function get_admin_balances(address _pool) view returns(uint256[4])
func (_Curvefimeta *CurvefimetaCaller) GetAdminBalances(opts *bind.CallOpts, _pool common.Address) ([4]*big.Int, error) {
var out []interface{}
err := _Curvefimeta.contract.Call(opts, &out, "get_admin_balances", _pool)
if err != nil {
return *new([4]*big.Int), err
}
out0 := *abi.ConvertType(out[0], new([4]*big.Int)).(*[4]*big.Int)
return out0, err
}
// GetAdminBalances is a free data retrieval call binding the contract method 0xc11e45b8.
//
// Solidity: function get_admin_balances(address _pool) view returns(uint256[4])
func (_Curvefimeta *CurvefimetaSession) GetAdminBalances(_pool common.Address) ([4]*big.Int, error) {
return _Curvefimeta.Contract.GetAdminBalances(&_Curvefimeta.CallOpts, _pool)
}
// GetAdminBalances is a free data retrieval call binding the contract method 0xc11e45b8.
//
// Solidity: function get_admin_balances(address _pool) view returns(uint256[4])
func (_Curvefimeta *CurvefimetaCallerSession) GetAdminBalances(_pool common.Address) ([4]*big.Int, error) {
return _Curvefimeta.Contract.GetAdminBalances(&_Curvefimeta.CallOpts, _pool)
}
// GetBalances is a free data retrieval call binding the contract method 0x92e3cc2d.
//
// Solidity: function get_balances(address _pool) view returns(uint256[4])
func (_Curvefimeta *CurvefimetaCaller) GetBalances(opts *bind.CallOpts, _pool common.Address) ([4]*big.Int, error) {
var out []interface{}
err := _Curvefimeta.contract.Call(opts, &out, "get_balances", _pool)
if err != nil {
return *new([4]*big.Int), err
}
out0 := *abi.ConvertType(out[0], new([4]*big.Int)).(*[4]*big.Int)
return out0, err
}
// GetBalances is a free data retrieval call binding the contract method 0x92e3cc2d.
//
// Solidity: function get_balances(address _pool) view returns(uint256[4])
func (_Curvefimeta *CurvefimetaSession) GetBalances(_pool common.Address) ([4]*big.Int, error) {
return _Curvefimeta.Contract.GetBalances(&_Curvefimeta.CallOpts, _pool)
}
// GetBalances is a free data retrieval call binding the contract method 0x92e3cc2d.
//
// Solidity: function get_balances(address _pool) view returns(uint256[4])
func (_Curvefimeta *CurvefimetaCallerSession) GetBalances(_pool common.Address) ([4]*big.Int, error) {
return _Curvefimeta.Contract.GetBalances(&_Curvefimeta.CallOpts, _pool)
}
// GetBasePool is a free data retrieval call binding the contract method 0x6f20d6dd.
//
// Solidity: function get_base_pool(address _pool) view returns(address)
func (_Curvefimeta *CurvefimetaCaller) GetBasePool(opts *bind.CallOpts, _pool common.Address) (common.Address, error) {
var out []interface{}
err := _Curvefimeta.contract.Call(opts, &out, "get_base_pool", _pool)
if err != nil {
return *new(common.Address), err
}
out0 := *abi.ConvertType(out[0], new(common.Address)).(*common.Address)
return out0, err
}
// GetBasePool is a free data retrieval call binding the contract method 0x6f20d6dd.
//
// Solidity: function get_base_pool(address _pool) view returns(address)
func (_Curvefimeta *CurvefimetaSession) GetBasePool(_pool common.Address) (common.Address, error) {
return _Curvefimeta.Contract.GetBasePool(&_Curvefimeta.CallOpts, _pool)
}
// GetBasePool is a free data retrieval call binding the contract method 0x6f20d6dd.
//
// Solidity: function get_base_pool(address _pool) view returns(address)
func (_Curvefimeta *CurvefimetaCallerSession) GetBasePool(_pool common.Address) (common.Address, error) {
return _Curvefimeta.Contract.GetBasePool(&_Curvefimeta.CallOpts, _pool)
}
// GetCoinIndices is a free data retrieval call binding the contract method 0xeb85226d.
//
// Solidity: function get_coin_indices(address _pool, address _from, address _to) view returns(int128, int128, bool)
func (_Curvefimeta *CurvefimetaCaller) GetCoinIndices(opts *bind.CallOpts, _pool common.Address, _from common.Address, _to common.Address) (*big.Int, *big.Int, bool, error) {
var out []interface{}
err := _Curvefimeta.contract.Call(opts, &out, "get_coin_indices", _pool, _from, _to)
if err != nil {
return *new(*big.Int), *new(*big.Int), *new(bool), err
}
out0 := *abi.ConvertType(out[0], new(*big.Int)).(**big.Int)
out1 := *abi.ConvertType(out[1], new(*big.Int)).(**big.Int)
out2 := *abi.ConvertType(out[2], new(bool)).(*bool)
return out0, out1, out2, err
}
// GetCoinIndices is a free data retrieval call binding the contract method 0xeb85226d.
//
// Solidity: function get_coin_indices(address _pool, address _from, address _to) view returns(int128, int128, bool)
func (_Curvefimeta *CurvefimetaSession) GetCoinIndices(_pool common.Address, _from common.Address, _to common.Address) (*big.Int, *big.Int, bool, error) {
return _Curvefimeta.Contract.GetCoinIndices(&_Curvefimeta.CallOpts, _pool, _from, _to)
}
// GetCoinIndices is a free data retrieval call binding the contract method 0xeb85226d.
//
// Solidity: function get_coin_indices(address _pool, address _from, address _to) view returns(int128, int128, bool)
func (_Curvefimeta *CurvefimetaCallerSession) GetCoinIndices(_pool common.Address, _from common.Address, _to common.Address) (*big.Int, *big.Int, bool, error) {
return _Curvefimeta.Contract.GetCoinIndices(&_Curvefimeta.CallOpts, _pool, _from, _to)
}
// GetCoins is a free data retrieval call binding the contract method 0x9ac90d3d.
//
// Solidity: function get_coins(address _pool) view returns(address[4])
func (_Curvefimeta *CurvefimetaCaller) GetCoins(opts *bind.CallOpts, _pool common.Address) ([4]common.Address, error) {
var out []interface{}
err := _Curvefimeta.contract.Call(opts, &out, "get_coins", _pool)
if err != nil {
return *new([4]common.Address), err
}
out0 := *abi.ConvertType(out[0], new([4]common.Address)).(*[4]common.Address)
return out0, err
}
// GetCoins is a free data retrieval call binding the contract method 0x9ac90d3d.
//
// Solidity: function get_coins(address _pool) view returns(address[4])
func (_Curvefimeta *CurvefimetaSession) GetCoins(_pool common.Address) ([4]common.Address, error) {
return _Curvefimeta.Contract.GetCoins(&_Curvefimeta.CallOpts, _pool)
}
// GetCoins is a free data retrieval call binding the contract method 0x9ac90d3d.
//
// Solidity: function get_coins(address _pool) view returns(address[4])
func (_Curvefimeta *CurvefimetaCallerSession) GetCoins(_pool common.Address) ([4]common.Address, error) {
return _Curvefimeta.Contract.GetCoins(&_Curvefimeta.CallOpts, _pool)
}
// GetDecimals is a free data retrieval call binding the contract method 0x52b51555.
//
// Solidity: function get_decimals(address _pool) view returns(uint256[4])
func (_Curvefimeta *CurvefimetaCaller) GetDecimals(opts *bind.CallOpts, _pool common.Address) ([4]*big.Int, error) {
var out []interface{}
err := _Curvefimeta.contract.Call(opts, &out, "get_decimals", _pool)
if err != nil {
return *new([4]*big.Int), err
}
out0 := *abi.ConvertType(out[0], new([4]*big.Int)).(*[4]*big.Int)
return out0, err
}
// GetDecimals is a free data retrieval call binding the contract method 0x52b51555.
//
// Solidity: function get_decimals(address _pool) view returns(uint256[4])
func (_Curvefimeta *CurvefimetaSession) GetDecimals(_pool common.Address) ([4]*big.Int, error) {
return _Curvefimeta.Contract.GetDecimals(&_Curvefimeta.CallOpts, _pool)
}
// GetDecimals is a free data retrieval call binding the contract method 0x52b51555.
//
// Solidity: function get_decimals(address _pool) view returns(uint256[4])
func (_Curvefimeta *CurvefimetaCallerSession) GetDecimals(_pool common.Address) ([4]*big.Int, error) {
return _Curvefimeta.Contract.GetDecimals(&_Curvefimeta.CallOpts, _pool)
}
// GetFeeReceiver is a free data retrieval call binding the contract method 0x154aa8f5.
//
// Solidity: function get_fee_receiver(address _pool) view returns(address)
func (_Curvefimeta *CurvefimetaCaller) GetFeeReceiver(opts *bind.CallOpts, _pool common.Address) (common.Address, error) {
var out []interface{}
err := _Curvefimeta.contract.Call(opts, &out, "get_fee_receiver", _pool)
if err != nil {
return *new(common.Address), err
}
out0 := *abi.ConvertType(out[0], new(common.Address)).(*common.Address)
return out0, err
}
// GetFeeReceiver is a free data retrieval call binding the contract method 0x154aa8f5.
//
// Solidity: function get_fee_receiver(address _pool) view returns(address)
func (_Curvefimeta *CurvefimetaSession) GetFeeReceiver(_pool common.Address) (common.Address, error) {
return _Curvefimeta.Contract.GetFeeReceiver(&_Curvefimeta.CallOpts, _pool)
}
// GetFeeReceiver is a free data retrieval call binding the contract method 0x154aa8f5.
//
// Solidity: function get_fee_receiver(address _pool) view returns(address)
func (_Curvefimeta *CurvefimetaCallerSession) GetFeeReceiver(_pool common.Address) (common.Address, error) {
return _Curvefimeta.Contract.GetFeeReceiver(&_Curvefimeta.CallOpts, _pool)
}
// GetFees is a free data retrieval call binding the contract method 0x7cdb72b0.
//
// Solidity: function get_fees(address _pool) view returns(uint256, uint256)
func (_Curvefimeta *CurvefimetaCaller) GetFees(opts *bind.CallOpts, _pool common.Address) (*big.Int, *big.Int, error) {
var out []interface{}
err := _Curvefimeta.contract.Call(opts, &out, "get_fees", _pool)
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
}
// GetFees is a free data retrieval call binding the contract method 0x7cdb72b0.
//
// Solidity: function get_fees(address _pool) view returns(uint256, uint256)
func (_Curvefimeta *CurvefimetaSession) GetFees(_pool common.Address) (*big.Int, *big.Int, error) {
return _Curvefimeta.Contract.GetFees(&_Curvefimeta.CallOpts, _pool)
}
// GetFees is a free data retrieval call binding the contract method 0x7cdb72b0.
//
// Solidity: function get_fees(address _pool) view returns(uint256, uint256)
func (_Curvefimeta *CurvefimetaCallerSession) GetFees(_pool common.Address) (*big.Int, *big.Int, error) {
return _Curvefimeta.Contract.GetFees(&_Curvefimeta.CallOpts, _pool)
}
// GetGauge is a free data retrieval call binding the contract method 0xdaf297b9.
//
// Solidity: function get_gauge(address _pool) view returns(address)
func (_Curvefimeta *CurvefimetaCaller) GetGauge(opts *bind.CallOpts, _pool common.Address) (common.Address, error) {
var out []interface{}
err := _Curvefimeta.contract.Call(opts, &out, "get_gauge", _pool)
if err != nil {
return *new(common.Address), err
}
out0 := *abi.ConvertType(out[0], new(common.Address)).(*common.Address)
return out0, err
}
// GetGauge is a free data retrieval call binding the contract method 0xdaf297b9.
//
// Solidity: function get_gauge(address _pool) view returns(address)
func (_Curvefimeta *CurvefimetaSession) GetGauge(_pool common.Address) (common.Address, error) {
return _Curvefimeta.Contract.GetGauge(&_Curvefimeta.CallOpts, _pool)
}
// GetGauge is a free data retrieval call binding the contract method 0xdaf297b9.
//
// Solidity: function get_gauge(address _pool) view returns(address)
func (_Curvefimeta *CurvefimetaCallerSession) GetGauge(_pool common.Address) (common.Address, error) {
return _Curvefimeta.Contract.GetGauge(&_Curvefimeta.CallOpts, _pool)
}
// GetImplementationAddress is a free data retrieval call binding the contract method 0x510d98a4.
//
// Solidity: function get_implementation_address(address _pool) view returns(address)
func (_Curvefimeta *CurvefimetaCaller) GetImplementationAddress(opts *bind.CallOpts, _pool common.Address) (common.Address, error) {
var out []interface{}
err := _Curvefimeta.contract.Call(opts, &out, "get_implementation_address", _pool)
if err != nil {
return *new(common.Address), err
}
out0 := *abi.ConvertType(out[0], new(common.Address)).(*common.Address)
return out0, err
}
// GetImplementationAddress is a free data retrieval call binding the contract method 0x510d98a4.
//
// Solidity: function get_implementation_address(address _pool) view returns(address)
func (_Curvefimeta *CurvefimetaSession) GetImplementationAddress(_pool common.Address) (common.Address, error) {
return _Curvefimeta.Contract.GetImplementationAddress(&_Curvefimeta.CallOpts, _pool)
}
// GetImplementationAddress is a free data retrieval call binding the contract method 0x510d98a4.
//
// Solidity: function get_implementation_address(address _pool) view returns(address)
func (_Curvefimeta *CurvefimetaCallerSession) GetImplementationAddress(_pool common.Address) (common.Address, error) {
return _Curvefimeta.Contract.GetImplementationAddress(&_Curvefimeta.CallOpts, _pool)
}
// GetMetaNCoins is a free data retrieval call binding the contract method 0xeb73f37d.
//
// Solidity: function get_meta_n_coins(address _pool) view returns(uint256, uint256)
func (_Curvefimeta *CurvefimetaCaller) GetMetaNCoins(opts *bind.CallOpts, _pool common.Address) (*big.Int, *big.Int, error) {
var out []interface{}
err := _Curvefimeta.contract.Call(opts, &out, "get_meta_n_coins", _pool)
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
}
// GetMetaNCoins is a free data retrieval call binding the contract method 0xeb73f37d.
//
// Solidity: function get_meta_n_coins(address _pool) view returns(uint256, uint256)
func (_Curvefimeta *CurvefimetaSession) GetMetaNCoins(_pool common.Address) (*big.Int, *big.Int, error) {
return _Curvefimeta.Contract.GetMetaNCoins(&_Curvefimeta.CallOpts, _pool)
}
// GetMetaNCoins is a free data retrieval call binding the contract method 0xeb73f37d.
//
// Solidity: function get_meta_n_coins(address _pool) view returns(uint256, uint256)
func (_Curvefimeta *CurvefimetaCallerSession) GetMetaNCoins(_pool common.Address) (*big.Int, *big.Int, error) {
return _Curvefimeta.Contract.GetMetaNCoins(&_Curvefimeta.CallOpts, _pool)
}
// GetMetapoolRates is a free data retrieval call binding the contract method 0x06d8f160.
//
// Solidity: function get_metapool_rates(address _pool) view returns(uint256[2])
func (_Curvefimeta *CurvefimetaCaller) GetMetapoolRates(opts *bind.CallOpts, _pool common.Address) ([2]*big.Int, error) {
var out []interface{}
err := _Curvefimeta.contract.Call(opts, &out, "get_metapool_rates", _pool)
if err != nil {
return *new([2]*big.Int), err
}
out0 := *abi.ConvertType(out[0], new([2]*big.Int)).(*[2]*big.Int)
return out0, err
}
// GetMetapoolRates is a free data retrieval call binding the contract method 0x06d8f160.
//
// Solidity: function get_metapool_rates(address _pool) view returns(uint256[2])
func (_Curvefimeta *CurvefimetaSession) GetMetapoolRates(_pool common.Address) ([2]*big.Int, error) {
return _Curvefimeta.Contract.GetMetapoolRates(&_Curvefimeta.CallOpts, _pool)
}
// GetMetapoolRates is a free data retrieval call binding the contract method 0x06d8f160.
//
// Solidity: function get_metapool_rates(address _pool) view returns(uint256[2])
func (_Curvefimeta *CurvefimetaCallerSession) GetMetapoolRates(_pool common.Address) ([2]*big.Int, error) {
return _Curvefimeta.Contract.GetMetapoolRates(&_Curvefimeta.CallOpts, _pool)
}
// GetNCoins is a free data retrieval call binding the contract method 0x940494f1.
//
// Solidity: function get_n_coins(address _pool) view returns(uint256)
func (_Curvefimeta *CurvefimetaCaller) GetNCoins(opts *bind.CallOpts, _pool common.Address) (*big.Int, error) {
var out []interface{}
err := _Curvefimeta.contract.Call(opts, &out, "get_n_coins", _pool)
if err != nil {
return *new(*big.Int), err
}
out0 := *abi.ConvertType(out[0], new(*big.Int)).(**big.Int)
return out0, err
}
// GetNCoins is a free data retrieval call binding the contract method 0x940494f1.
//
// Solidity: function get_n_coins(address _pool) view returns(uint256)
func (_Curvefimeta *CurvefimetaSession) GetNCoins(_pool common.Address) (*big.Int, error) {
return _Curvefimeta.Contract.GetNCoins(&_Curvefimeta.CallOpts, _pool)
}
// GetNCoins is a free data retrieval call binding the contract method 0x940494f1.
//
// Solidity: function get_n_coins(address _pool) view returns(uint256)
func (_Curvefimeta *CurvefimetaCallerSession) GetNCoins(_pool common.Address) (*big.Int, error) {
return _Curvefimeta.Contract.GetNCoins(&_Curvefimeta.CallOpts, _pool)
}
// GetPoolAssetType is a free data retrieval call binding the contract method 0x66d3966c.
//
// Solidity: function get_pool_asset_type(address _pool) view returns(uint256)
func (_Curvefimeta *CurvefimetaCaller) GetPoolAssetType(opts *bind.CallOpts, _pool common.Address) (*big.Int, error) {
var out []interface{}
err := _Curvefimeta.contract.Call(opts, &out, "get_pool_asset_type", _pool)
if err != nil {
return *new(*big.Int), err
}
out0 := *abi.ConvertType(out[0], new(*big.Int)).(**big.Int)
return out0, err
}
// GetPoolAssetType is a free data retrieval call binding the contract method 0x66d3966c.
//
// Solidity: function get_pool_asset_type(address _pool) view returns(uint256)
func (_Curvefimeta *CurvefimetaSession) GetPoolAssetType(_pool common.Address) (*big.Int, error) {
return _Curvefimeta.Contract.GetPoolAssetType(&_Curvefimeta.CallOpts, _pool)
}
// GetPoolAssetType is a free data retrieval call binding the contract method 0x66d3966c.
//
// Solidity: function get_pool_asset_type(address _pool) view returns(uint256)
func (_Curvefimeta *CurvefimetaCallerSession) GetPoolAssetType(_pool common.Address) (*big.Int, error) {
return _Curvefimeta.Contract.GetPoolAssetType(&_Curvefimeta.CallOpts, _pool)
}
// GetUnderlyingBalances is a free data retrieval call binding the contract method 0x59f4f351.
//
// Solidity: function get_underlying_balances(address _pool) view returns(uint256[8])
func (_Curvefimeta *CurvefimetaCaller) GetUnderlyingBalances(opts *bind.CallOpts, _pool common.Address) ([8]*big.Int, error) {
var out []interface{}
err := _Curvefimeta.contract.Call(opts, &out, "get_underlying_balances", _pool)
if err != nil {
return *new([8]*big.Int), err
}
out0 := *abi.ConvertType(out[0], new([8]*big.Int)).(*[8]*big.Int)
return out0, err
}
// GetUnderlyingBalances is a free data retrieval call binding the contract method 0x59f4f351.
//
// Solidity: function get_underlying_balances(address _pool) view returns(uint256[8])
func (_Curvefimeta *CurvefimetaSession) GetUnderlyingBalances(_pool common.Address) ([8]*big.Int, error) {
return _Curvefimeta.Contract.GetUnderlyingBalances(&_Curvefimeta.CallOpts, _pool)
}
// GetUnderlyingBalances is a free data retrieval call binding the contract method 0x59f4f351.
//
// Solidity: function get_underlying_balances(address _pool) view returns(uint256[8])
func (_Curvefimeta *CurvefimetaCallerSession) GetUnderlyingBalances(_pool common.Address) ([8]*big.Int, error) {
return _Curvefimeta.Contract.GetUnderlyingBalances(&_Curvefimeta.CallOpts, _pool)
}
// GetUnderlyingCoins is a free data retrieval call binding the contract method 0xa77576ef.
//
// Solidity: function get_underlying_coins(address _pool) view returns(address[8])
func (_Curvefimeta *CurvefimetaCaller) GetUnderlyingCoins(opts *bind.CallOpts, _pool common.Address) ([8]common.Address, error) {
var out []interface{}
err := _Curvefimeta.contract.Call(opts, &out, "get_underlying_coins", _pool)
if err != nil {
return *new([8]common.Address), err
}
out0 := *abi.ConvertType(out[0], new([8]common.Address)).(*[8]common.Address)
return out0, err
}
// GetUnderlyingCoins is a free data retrieval call binding the contract method 0xa77576ef.
//
// Solidity: function get_underlying_coins(address _pool) view returns(address[8])
func (_Curvefimeta *CurvefimetaSession) GetUnderlyingCoins(_pool common.Address) ([8]common.Address, error) {
return _Curvefimeta.Contract.GetUnderlyingCoins(&_Curvefimeta.CallOpts, _pool)
}
// GetUnderlyingCoins is a free data retrieval call binding the contract method 0xa77576ef.
//
// Solidity: function get_underlying_coins(address _pool) view returns(address[8])
func (_Curvefimeta *CurvefimetaCallerSession) GetUnderlyingCoins(_pool common.Address) ([8]common.Address, error) {
return _Curvefimeta.Contract.GetUnderlyingCoins(&_Curvefimeta.CallOpts, _pool)
}
// GetUnderlyingDecimals is a free data retrieval call binding the contract method 0x4cb088f1.
//
// Solidity: function get_underlying_decimals(address _pool) view returns(uint256[8])
func (_Curvefimeta *CurvefimetaCaller) GetUnderlyingDecimals(opts *bind.CallOpts, _pool common.Address) ([8]*big.Int, error) {
var out []interface{}
err := _Curvefimeta.contract.Call(opts, &out, "get_underlying_decimals", _pool)
if err != nil {
return *new([8]*big.Int), err
}
out0 := *abi.ConvertType(out[0], new([8]*big.Int)).(*[8]*big.Int)
return out0, err
}
// GetUnderlyingDecimals is a free data retrieval call binding the contract method 0x4cb088f1.
//
// Solidity: function get_underlying_decimals(address _pool) view returns(uint256[8])
func (_Curvefimeta *CurvefimetaSession) GetUnderlyingDecimals(_pool common.Address) ([8]*big.Int, error) {
return _Curvefimeta.Contract.GetUnderlyingDecimals(&_Curvefimeta.CallOpts, _pool)
}
// GetUnderlyingDecimals is a free data retrieval call binding the contract method 0x4cb088f1.
//
// Solidity: function get_underlying_decimals(address _pool) view returns(uint256[8])
func (_Curvefimeta *CurvefimetaCallerSession) GetUnderlyingDecimals(_pool common.Address) ([8]*big.Int, error) {
return _Curvefimeta.Contract.GetUnderlyingDecimals(&_Curvefimeta.CallOpts, _pool)
}
// IsMeta is a free data retrieval call binding the contract method 0xe4d332a9.
//
// Solidity: function is_meta(address _pool) view returns(bool)
func (_Curvefimeta *CurvefimetaCaller) IsMeta(opts *bind.CallOpts, _pool common.Address) (bool, error) {
var out []interface{}
err := _Curvefimeta.contract.Call(opts, &out, "is_meta", _pool)
if err != nil {
return *new(bool), err