/
camelotv3.go
1435 lines (1243 loc) · 59.3 KB
/
camelotv3.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 camelotv3
import (
"errors"
"math/big"
"strings"
ethereum "github.com/ethereum/go-ethereum"
"github.com/ethereum/go-ethereum/accounts/abi"
"github.com/ethereum/go-ethereum/accounts/abi/bind"
"github.com/ethereum/go-ethereum/common"
"github.com/ethereum/go-ethereum/core/types"
"github.com/ethereum/go-ethereum/event"
)
// Reference imports to suppress errors if they are not otherwise used.
var (
_ = errors.New
_ = big.NewInt
_ = strings.NewReader
_ = ethereum.NotFound
_ = bind.Bind
_ = common.Big1
_ = types.BloomLookup
_ = event.NewSubscription
_ = abi.ConvertType
)
// Camelotv3MetaData contains all meta data concerning the Camelotv3 contract.
var Camelotv3MetaData = &bind.MetaData{
ABI: "[{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_poolDeployer\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"_vaultAddress\",\"type\":\"address\"}],\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint8\",\"name\":\"newDefaultCommunityFee\",\"type\":\"uint8\"}],\"name\":\"DefaultCommunityFee\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"newFarmingAddress\",\"type\":\"address\"}],\"name\":\"FarmingAddress\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint16\",\"name\":\"alpha1\",\"type\":\"uint16\"},{\"indexed\":false,\"internalType\":\"uint16\",\"name\":\"alpha2\",\"type\":\"uint16\"},{\"indexed\":false,\"internalType\":\"uint32\",\"name\":\"beta1\",\"type\":\"uint32\"},{\"indexed\":false,\"internalType\":\"uint32\",\"name\":\"beta2\",\"type\":\"uint32\"},{\"indexed\":false,\"internalType\":\"uint16\",\"name\":\"gamma1\",\"type\":\"uint16\"},{\"indexed\":false,\"internalType\":\"uint16\",\"name\":\"gamma2\",\"type\":\"uint16\"},{\"indexed\":false,\"internalType\":\"uint32\",\"name\":\"volumeBeta\",\"type\":\"uint32\"},{\"indexed\":false,\"internalType\":\"uint16\",\"name\":\"volumeGamma\",\"type\":\"uint16\"},{\"indexed\":false,\"internalType\":\"uint16\",\"name\":\"baseFee\",\"type\":\"uint16\"}],\"name\":\"FeeConfiguration\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"Owner\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"token0\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"token1\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"pool\",\"type\":\"address\"}],\"name\":\"Pool\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"newVaultAddress\",\"type\":\"address\"}],\"name\":\"VaultAddress\",\"type\":\"event\"},{\"inputs\":[],\"name\":\"baseFeeConfiguration\",\"outputs\":[{\"internalType\":\"uint16\",\"name\":\"alpha1\",\"type\":\"uint16\"},{\"internalType\":\"uint16\",\"name\":\"alpha2\",\"type\":\"uint16\"},{\"internalType\":\"uint32\",\"name\":\"beta1\",\"type\":\"uint32\"},{\"internalType\":\"uint32\",\"name\":\"beta2\",\"type\":\"uint32\"},{\"internalType\":\"uint16\",\"name\":\"gamma1\",\"type\":\"uint16\"},{\"internalType\":\"uint16\",\"name\":\"gamma2\",\"type\":\"uint16\"},{\"internalType\":\"uint32\",\"name\":\"volumeBeta\",\"type\":\"uint32\"},{\"internalType\":\"uint16\",\"name\":\"volumeGamma\",\"type\":\"uint16\"},{\"internalType\":\"uint16\",\"name\":\"baseFee\",\"type\":\"uint16\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"tokenA\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"tokenB\",\"type\":\"address\"}],\"name\":\"createPool\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"pool\",\"type\":\"address\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"defaultCommunityFee\",\"outputs\":[{\"internalType\":\"uint8\",\"name\":\"\",\"type\":\"uint8\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"farmingAddress\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"owner\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"name\":\"poolByPair\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"poolDeployer\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint16\",\"name\":\"alpha1\",\"type\":\"uint16\"},{\"internalType\":\"uint16\",\"name\":\"alpha2\",\"type\":\"uint16\"},{\"internalType\":\"uint32\",\"name\":\"beta1\",\"type\":\"uint32\"},{\"internalType\":\"uint32\",\"name\":\"beta2\",\"type\":\"uint32\"},{\"internalType\":\"uint16\",\"name\":\"gamma1\",\"type\":\"uint16\"},{\"internalType\":\"uint16\",\"name\":\"gamma2\",\"type\":\"uint16\"},{\"internalType\":\"uint32\",\"name\":\"volumeBeta\",\"type\":\"uint32\"},{\"internalType\":\"uint16\",\"name\":\"volumeGamma\",\"type\":\"uint16\"},{\"internalType\":\"uint16\",\"name\":\"baseFee\",\"type\":\"uint16\"}],\"name\":\"setBaseFeeConfiguration\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint8\",\"name\":\"newDefaultCommunityFee\",\"type\":\"uint8\"}],\"name\":\"setDefaultCommunityFee\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_farmingAddress\",\"type\":\"address\"}],\"name\":\"setFarmingAddress\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_owner\",\"type\":\"address\"}],\"name\":\"setOwner\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_vaultAddress\",\"type\":\"address\"}],\"name\":\"setVaultAddress\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"vaultAddress\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"}]",
}
// Camelotv3ABI is the input ABI used to generate the binding from.
// Deprecated: Use Camelotv3MetaData.ABI instead.
var Camelotv3ABI = Camelotv3MetaData.ABI
// Camelotv3 is an auto generated Go binding around an Ethereum contract.
type Camelotv3 struct {
Camelotv3Caller // Read-only binding to the contract
Camelotv3Transactor // Write-only binding to the contract
Camelotv3Filterer // Log filterer for contract events
}
// Camelotv3Caller is an auto generated read-only Go binding around an Ethereum contract.
type Camelotv3Caller struct {
contract *bind.BoundContract // Generic contract wrapper for the low level calls
}
// Camelotv3Transactor is an auto generated write-only Go binding around an Ethereum contract.
type Camelotv3Transactor struct {
contract *bind.BoundContract // Generic contract wrapper for the low level calls
}
// Camelotv3Filterer is an auto generated log filtering Go binding around an Ethereum contract events.
type Camelotv3Filterer struct {
contract *bind.BoundContract // Generic contract wrapper for the low level calls
}
// Camelotv3Session is an auto generated Go binding around an Ethereum contract,
// with pre-set call and transact options.
type Camelotv3Session struct {
Contract *Camelotv3 // 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
}
// Camelotv3CallerSession is an auto generated read-only Go binding around an Ethereum contract,
// with pre-set call options.
type Camelotv3CallerSession struct {
Contract *Camelotv3Caller // Generic contract caller binding to set the session for
CallOpts bind.CallOpts // Call options to use throughout this session
}
// Camelotv3TransactorSession is an auto generated write-only Go binding around an Ethereum contract,
// with pre-set transact options.
type Camelotv3TransactorSession struct {
Contract *Camelotv3Transactor // Generic contract transactor binding to set the session for
TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session
}
// Camelotv3Raw is an auto generated low-level Go binding around an Ethereum contract.
type Camelotv3Raw struct {
Contract *Camelotv3 // Generic contract binding to access the raw methods on
}
// Camelotv3CallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract.
type Camelotv3CallerRaw struct {
Contract *Camelotv3Caller // Generic read-only contract binding to access the raw methods on
}
// Camelotv3TransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract.
type Camelotv3TransactorRaw struct {
Contract *Camelotv3Transactor // Generic write-only contract binding to access the raw methods on
}
// NewCamelotv3 creates a new instance of Camelotv3, bound to a specific deployed contract.
func NewCamelotv3(address common.Address, backend bind.ContractBackend) (*Camelotv3, error) {
contract, err := bindCamelotv3(address, backend, backend, backend)
if err != nil {
return nil, err
}
return &Camelotv3{Camelotv3Caller: Camelotv3Caller{contract: contract}, Camelotv3Transactor: Camelotv3Transactor{contract: contract}, Camelotv3Filterer: Camelotv3Filterer{contract: contract}}, nil
}
// NewCamelotv3Caller creates a new read-only instance of Camelotv3, bound to a specific deployed contract.
func NewCamelotv3Caller(address common.Address, caller bind.ContractCaller) (*Camelotv3Caller, error) {
contract, err := bindCamelotv3(address, caller, nil, nil)
if err != nil {
return nil, err
}
return &Camelotv3Caller{contract: contract}, nil
}
// NewCamelotv3Transactor creates a new write-only instance of Camelotv3, bound to a specific deployed contract.
func NewCamelotv3Transactor(address common.Address, transactor bind.ContractTransactor) (*Camelotv3Transactor, error) {
contract, err := bindCamelotv3(address, nil, transactor, nil)
if err != nil {
return nil, err
}
return &Camelotv3Transactor{contract: contract}, nil
}
// NewCamelotv3Filterer creates a new log filterer instance of Camelotv3, bound to a specific deployed contract.
func NewCamelotv3Filterer(address common.Address, filterer bind.ContractFilterer) (*Camelotv3Filterer, error) {
contract, err := bindCamelotv3(address, nil, nil, filterer)
if err != nil {
return nil, err
}
return &Camelotv3Filterer{contract: contract}, nil
}
// bindCamelotv3 binds a generic wrapper to an already deployed contract.
func bindCamelotv3(address common.Address, caller bind.ContractCaller, transactor bind.ContractTransactor, filterer bind.ContractFilterer) (*bind.BoundContract, error) {
parsed, err := Camelotv3MetaData.GetAbi()
if err != nil {
return nil, err
}
return bind.NewBoundContract(address, *parsed, caller, transactor, filterer), nil
}
// Call invokes the (constant) contract method with params as input values and
// sets the output to result. The result type might be a single field for simple
// returns, a slice of interfaces for anonymous returns and a struct for named
// returns.
func (_Camelotv3 *Camelotv3Raw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error {
return _Camelotv3.Contract.Camelotv3Caller.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 (_Camelotv3 *Camelotv3Raw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) {
return _Camelotv3.Contract.Camelotv3Transactor.contract.Transfer(opts)
}
// Transact invokes the (paid) contract method with params as input values.
func (_Camelotv3 *Camelotv3Raw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) {
return _Camelotv3.Contract.Camelotv3Transactor.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 (_Camelotv3 *Camelotv3CallerRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error {
return _Camelotv3.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 (_Camelotv3 *Camelotv3TransactorRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) {
return _Camelotv3.Contract.contract.Transfer(opts)
}
// Transact invokes the (paid) contract method with params as input values.
func (_Camelotv3 *Camelotv3TransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) {
return _Camelotv3.Contract.contract.Transact(opts, method, params...)
}
// BaseFeeConfiguration is a free data retrieval call binding the contract method 0x9832853a.
//
// Solidity: function baseFeeConfiguration() view returns(uint16 alpha1, uint16 alpha2, uint32 beta1, uint32 beta2, uint16 gamma1, uint16 gamma2, uint32 volumeBeta, uint16 volumeGamma, uint16 baseFee)
func (_Camelotv3 *Camelotv3Caller) BaseFeeConfiguration(opts *bind.CallOpts) (struct {
Alpha1 uint16
Alpha2 uint16
Beta1 uint32
Beta2 uint32
Gamma1 uint16
Gamma2 uint16
VolumeBeta uint32
VolumeGamma uint16
BaseFee uint16
}, error) {
var out []interface{}
err := _Camelotv3.contract.Call(opts, &out, "baseFeeConfiguration")
outstruct := new(struct {
Alpha1 uint16
Alpha2 uint16
Beta1 uint32
Beta2 uint32
Gamma1 uint16
Gamma2 uint16
VolumeBeta uint32
VolumeGamma uint16
BaseFee uint16
})
if err != nil {
return *outstruct, err
}
outstruct.Alpha1 = *abi.ConvertType(out[0], new(uint16)).(*uint16)
outstruct.Alpha2 = *abi.ConvertType(out[1], new(uint16)).(*uint16)
outstruct.Beta1 = *abi.ConvertType(out[2], new(uint32)).(*uint32)
outstruct.Beta2 = *abi.ConvertType(out[3], new(uint32)).(*uint32)
outstruct.Gamma1 = *abi.ConvertType(out[4], new(uint16)).(*uint16)
outstruct.Gamma2 = *abi.ConvertType(out[5], new(uint16)).(*uint16)
outstruct.VolumeBeta = *abi.ConvertType(out[6], new(uint32)).(*uint32)
outstruct.VolumeGamma = *abi.ConvertType(out[7], new(uint16)).(*uint16)
outstruct.BaseFee = *abi.ConvertType(out[8], new(uint16)).(*uint16)
return *outstruct, err
}
// BaseFeeConfiguration is a free data retrieval call binding the contract method 0x9832853a.
//
// Solidity: function baseFeeConfiguration() view returns(uint16 alpha1, uint16 alpha2, uint32 beta1, uint32 beta2, uint16 gamma1, uint16 gamma2, uint32 volumeBeta, uint16 volumeGamma, uint16 baseFee)
func (_Camelotv3 *Camelotv3Session) BaseFeeConfiguration() (struct {
Alpha1 uint16
Alpha2 uint16
Beta1 uint32
Beta2 uint32
Gamma1 uint16
Gamma2 uint16
VolumeBeta uint32
VolumeGamma uint16
BaseFee uint16
}, error) {
return _Camelotv3.Contract.BaseFeeConfiguration(&_Camelotv3.CallOpts)
}
// BaseFeeConfiguration is a free data retrieval call binding the contract method 0x9832853a.
//
// Solidity: function baseFeeConfiguration() view returns(uint16 alpha1, uint16 alpha2, uint32 beta1, uint32 beta2, uint16 gamma1, uint16 gamma2, uint32 volumeBeta, uint16 volumeGamma, uint16 baseFee)
func (_Camelotv3 *Camelotv3CallerSession) BaseFeeConfiguration() (struct {
Alpha1 uint16
Alpha2 uint16
Beta1 uint32
Beta2 uint32
Gamma1 uint16
Gamma2 uint16
VolumeBeta uint32
VolumeGamma uint16
BaseFee uint16
}, error) {
return _Camelotv3.Contract.BaseFeeConfiguration(&_Camelotv3.CallOpts)
}
// DefaultCommunityFee is a free data retrieval call binding the contract method 0x2f8a39dd.
//
// Solidity: function defaultCommunityFee() view returns(uint8)
func (_Camelotv3 *Camelotv3Caller) DefaultCommunityFee(opts *bind.CallOpts) (uint8, error) {
var out []interface{}
err := _Camelotv3.contract.Call(opts, &out, "defaultCommunityFee")
if err != nil {
return *new(uint8), err
}
out0 := *abi.ConvertType(out[0], new(uint8)).(*uint8)
return out0, err
}
// DefaultCommunityFee is a free data retrieval call binding the contract method 0x2f8a39dd.
//
// Solidity: function defaultCommunityFee() view returns(uint8)
func (_Camelotv3 *Camelotv3Session) DefaultCommunityFee() (uint8, error) {
return _Camelotv3.Contract.DefaultCommunityFee(&_Camelotv3.CallOpts)
}
// DefaultCommunityFee is a free data retrieval call binding the contract method 0x2f8a39dd.
//
// Solidity: function defaultCommunityFee() view returns(uint8)
func (_Camelotv3 *Camelotv3CallerSession) DefaultCommunityFee() (uint8, error) {
return _Camelotv3.Contract.DefaultCommunityFee(&_Camelotv3.CallOpts)
}
// FarmingAddress is a free data retrieval call binding the contract method 0x8a2ade58.
//
// Solidity: function farmingAddress() view returns(address)
func (_Camelotv3 *Camelotv3Caller) FarmingAddress(opts *bind.CallOpts) (common.Address, error) {
var out []interface{}
err := _Camelotv3.contract.Call(opts, &out, "farmingAddress")
if err != nil {
return *new(common.Address), err
}
out0 := *abi.ConvertType(out[0], new(common.Address)).(*common.Address)
return out0, err
}
// FarmingAddress is a free data retrieval call binding the contract method 0x8a2ade58.
//
// Solidity: function farmingAddress() view returns(address)
func (_Camelotv3 *Camelotv3Session) FarmingAddress() (common.Address, error) {
return _Camelotv3.Contract.FarmingAddress(&_Camelotv3.CallOpts)
}
// FarmingAddress is a free data retrieval call binding the contract method 0x8a2ade58.
//
// Solidity: function farmingAddress() view returns(address)
func (_Camelotv3 *Camelotv3CallerSession) FarmingAddress() (common.Address, error) {
return _Camelotv3.Contract.FarmingAddress(&_Camelotv3.CallOpts)
}
// Owner is a free data retrieval call binding the contract method 0x8da5cb5b.
//
// Solidity: function owner() view returns(address)
func (_Camelotv3 *Camelotv3Caller) Owner(opts *bind.CallOpts) (common.Address, error) {
var out []interface{}
err := _Camelotv3.contract.Call(opts, &out, "owner")
if err != nil {
return *new(common.Address), err
}
out0 := *abi.ConvertType(out[0], new(common.Address)).(*common.Address)
return out0, err
}
// Owner is a free data retrieval call binding the contract method 0x8da5cb5b.
//
// Solidity: function owner() view returns(address)
func (_Camelotv3 *Camelotv3Session) Owner() (common.Address, error) {
return _Camelotv3.Contract.Owner(&_Camelotv3.CallOpts)
}
// Owner is a free data retrieval call binding the contract method 0x8da5cb5b.
//
// Solidity: function owner() view returns(address)
func (_Camelotv3 *Camelotv3CallerSession) Owner() (common.Address, error) {
return _Camelotv3.Contract.Owner(&_Camelotv3.CallOpts)
}
// PoolByPair is a free data retrieval call binding the contract method 0xd9a641e1.
//
// Solidity: function poolByPair(address , address ) view returns(address)
func (_Camelotv3 *Camelotv3Caller) PoolByPair(opts *bind.CallOpts, arg0 common.Address, arg1 common.Address) (common.Address, error) {
var out []interface{}
err := _Camelotv3.contract.Call(opts, &out, "poolByPair", arg0, arg1)
if err != nil {
return *new(common.Address), err
}
out0 := *abi.ConvertType(out[0], new(common.Address)).(*common.Address)
return out0, err
}
// PoolByPair is a free data retrieval call binding the contract method 0xd9a641e1.
//
// Solidity: function poolByPair(address , address ) view returns(address)
func (_Camelotv3 *Camelotv3Session) PoolByPair(arg0 common.Address, arg1 common.Address) (common.Address, error) {
return _Camelotv3.Contract.PoolByPair(&_Camelotv3.CallOpts, arg0, arg1)
}
// PoolByPair is a free data retrieval call binding the contract method 0xd9a641e1.
//
// Solidity: function poolByPair(address , address ) view returns(address)
func (_Camelotv3 *Camelotv3CallerSession) PoolByPair(arg0 common.Address, arg1 common.Address) (common.Address, error) {
return _Camelotv3.Contract.PoolByPair(&_Camelotv3.CallOpts, arg0, arg1)
}
// PoolDeployer is a free data retrieval call binding the contract method 0x3119049a.
//
// Solidity: function poolDeployer() view returns(address)
func (_Camelotv3 *Camelotv3Caller) PoolDeployer(opts *bind.CallOpts) (common.Address, error) {
var out []interface{}
err := _Camelotv3.contract.Call(opts, &out, "poolDeployer")
if err != nil {
return *new(common.Address), err
}
out0 := *abi.ConvertType(out[0], new(common.Address)).(*common.Address)
return out0, err
}
// PoolDeployer is a free data retrieval call binding the contract method 0x3119049a.
//
// Solidity: function poolDeployer() view returns(address)
func (_Camelotv3 *Camelotv3Session) PoolDeployer() (common.Address, error) {
return _Camelotv3.Contract.PoolDeployer(&_Camelotv3.CallOpts)
}
// PoolDeployer is a free data retrieval call binding the contract method 0x3119049a.
//
// Solidity: function poolDeployer() view returns(address)
func (_Camelotv3 *Camelotv3CallerSession) PoolDeployer() (common.Address, error) {
return _Camelotv3.Contract.PoolDeployer(&_Camelotv3.CallOpts)
}
// VaultAddress is a free data retrieval call binding the contract method 0x430bf08a.
//
// Solidity: function vaultAddress() view returns(address)
func (_Camelotv3 *Camelotv3Caller) VaultAddress(opts *bind.CallOpts) (common.Address, error) {
var out []interface{}
err := _Camelotv3.contract.Call(opts, &out, "vaultAddress")
if err != nil {
return *new(common.Address), err
}
out0 := *abi.ConvertType(out[0], new(common.Address)).(*common.Address)
return out0, err
}
// VaultAddress is a free data retrieval call binding the contract method 0x430bf08a.
//
// Solidity: function vaultAddress() view returns(address)
func (_Camelotv3 *Camelotv3Session) VaultAddress() (common.Address, error) {
return _Camelotv3.Contract.VaultAddress(&_Camelotv3.CallOpts)
}
// VaultAddress is a free data retrieval call binding the contract method 0x430bf08a.
//
// Solidity: function vaultAddress() view returns(address)
func (_Camelotv3 *Camelotv3CallerSession) VaultAddress() (common.Address, error) {
return _Camelotv3.Contract.VaultAddress(&_Camelotv3.CallOpts)
}
// CreatePool is a paid mutator transaction binding the contract method 0xe3433615.
//
// Solidity: function createPool(address tokenA, address tokenB) returns(address pool)
func (_Camelotv3 *Camelotv3Transactor) CreatePool(opts *bind.TransactOpts, tokenA common.Address, tokenB common.Address) (*types.Transaction, error) {
return _Camelotv3.contract.Transact(opts, "createPool", tokenA, tokenB)
}
// CreatePool is a paid mutator transaction binding the contract method 0xe3433615.
//
// Solidity: function createPool(address tokenA, address tokenB) returns(address pool)
func (_Camelotv3 *Camelotv3Session) CreatePool(tokenA common.Address, tokenB common.Address) (*types.Transaction, error) {
return _Camelotv3.Contract.CreatePool(&_Camelotv3.TransactOpts, tokenA, tokenB)
}
// CreatePool is a paid mutator transaction binding the contract method 0xe3433615.
//
// Solidity: function createPool(address tokenA, address tokenB) returns(address pool)
func (_Camelotv3 *Camelotv3TransactorSession) CreatePool(tokenA common.Address, tokenB common.Address) (*types.Transaction, error) {
return _Camelotv3.Contract.CreatePool(&_Camelotv3.TransactOpts, tokenA, tokenB)
}
// SetBaseFeeConfiguration is a paid mutator transaction binding the contract method 0x5d6d7e93.
//
// Solidity: function setBaseFeeConfiguration(uint16 alpha1, uint16 alpha2, uint32 beta1, uint32 beta2, uint16 gamma1, uint16 gamma2, uint32 volumeBeta, uint16 volumeGamma, uint16 baseFee) returns()
func (_Camelotv3 *Camelotv3Transactor) SetBaseFeeConfiguration(opts *bind.TransactOpts, alpha1 uint16, alpha2 uint16, beta1 uint32, beta2 uint32, gamma1 uint16, gamma2 uint16, volumeBeta uint32, volumeGamma uint16, baseFee uint16) (*types.Transaction, error) {
return _Camelotv3.contract.Transact(opts, "setBaseFeeConfiguration", alpha1, alpha2, beta1, beta2, gamma1, gamma2, volumeBeta, volumeGamma, baseFee)
}
// SetBaseFeeConfiguration is a paid mutator transaction binding the contract method 0x5d6d7e93.
//
// Solidity: function setBaseFeeConfiguration(uint16 alpha1, uint16 alpha2, uint32 beta1, uint32 beta2, uint16 gamma1, uint16 gamma2, uint32 volumeBeta, uint16 volumeGamma, uint16 baseFee) returns()
func (_Camelotv3 *Camelotv3Session) SetBaseFeeConfiguration(alpha1 uint16, alpha2 uint16, beta1 uint32, beta2 uint32, gamma1 uint16, gamma2 uint16, volumeBeta uint32, volumeGamma uint16, baseFee uint16) (*types.Transaction, error) {
return _Camelotv3.Contract.SetBaseFeeConfiguration(&_Camelotv3.TransactOpts, alpha1, alpha2, beta1, beta2, gamma1, gamma2, volumeBeta, volumeGamma, baseFee)
}
// SetBaseFeeConfiguration is a paid mutator transaction binding the contract method 0x5d6d7e93.
//
// Solidity: function setBaseFeeConfiguration(uint16 alpha1, uint16 alpha2, uint32 beta1, uint32 beta2, uint16 gamma1, uint16 gamma2, uint32 volumeBeta, uint16 volumeGamma, uint16 baseFee) returns()
func (_Camelotv3 *Camelotv3TransactorSession) SetBaseFeeConfiguration(alpha1 uint16, alpha2 uint16, beta1 uint32, beta2 uint32, gamma1 uint16, gamma2 uint16, volumeBeta uint32, volumeGamma uint16, baseFee uint16) (*types.Transaction, error) {
return _Camelotv3.Contract.SetBaseFeeConfiguration(&_Camelotv3.TransactOpts, alpha1, alpha2, beta1, beta2, gamma1, gamma2, volumeBeta, volumeGamma, baseFee)
}
// SetDefaultCommunityFee is a paid mutator transaction binding the contract method 0x371e3521.
//
// Solidity: function setDefaultCommunityFee(uint8 newDefaultCommunityFee) returns()
func (_Camelotv3 *Camelotv3Transactor) SetDefaultCommunityFee(opts *bind.TransactOpts, newDefaultCommunityFee uint8) (*types.Transaction, error) {
return _Camelotv3.contract.Transact(opts, "setDefaultCommunityFee", newDefaultCommunityFee)
}
// SetDefaultCommunityFee is a paid mutator transaction binding the contract method 0x371e3521.
//
// Solidity: function setDefaultCommunityFee(uint8 newDefaultCommunityFee) returns()
func (_Camelotv3 *Camelotv3Session) SetDefaultCommunityFee(newDefaultCommunityFee uint8) (*types.Transaction, error) {
return _Camelotv3.Contract.SetDefaultCommunityFee(&_Camelotv3.TransactOpts, newDefaultCommunityFee)
}
// SetDefaultCommunityFee is a paid mutator transaction binding the contract method 0x371e3521.
//
// Solidity: function setDefaultCommunityFee(uint8 newDefaultCommunityFee) returns()
func (_Camelotv3 *Camelotv3TransactorSession) SetDefaultCommunityFee(newDefaultCommunityFee uint8) (*types.Transaction, error) {
return _Camelotv3.Contract.SetDefaultCommunityFee(&_Camelotv3.TransactOpts, newDefaultCommunityFee)
}
// SetFarmingAddress is a paid mutator transaction binding the contract method 0xb001f618.
//
// Solidity: function setFarmingAddress(address _farmingAddress) returns()
func (_Camelotv3 *Camelotv3Transactor) SetFarmingAddress(opts *bind.TransactOpts, _farmingAddress common.Address) (*types.Transaction, error) {
return _Camelotv3.contract.Transact(opts, "setFarmingAddress", _farmingAddress)
}
// SetFarmingAddress is a paid mutator transaction binding the contract method 0xb001f618.
//
// Solidity: function setFarmingAddress(address _farmingAddress) returns()
func (_Camelotv3 *Camelotv3Session) SetFarmingAddress(_farmingAddress common.Address) (*types.Transaction, error) {
return _Camelotv3.Contract.SetFarmingAddress(&_Camelotv3.TransactOpts, _farmingAddress)
}
// SetFarmingAddress is a paid mutator transaction binding the contract method 0xb001f618.
//
// Solidity: function setFarmingAddress(address _farmingAddress) returns()
func (_Camelotv3 *Camelotv3TransactorSession) SetFarmingAddress(_farmingAddress common.Address) (*types.Transaction, error) {
return _Camelotv3.Contract.SetFarmingAddress(&_Camelotv3.TransactOpts, _farmingAddress)
}
// SetOwner is a paid mutator transaction binding the contract method 0x13af4035.
//
// Solidity: function setOwner(address _owner) returns()
func (_Camelotv3 *Camelotv3Transactor) SetOwner(opts *bind.TransactOpts, _owner common.Address) (*types.Transaction, error) {
return _Camelotv3.contract.Transact(opts, "setOwner", _owner)
}
// SetOwner is a paid mutator transaction binding the contract method 0x13af4035.
//
// Solidity: function setOwner(address _owner) returns()
func (_Camelotv3 *Camelotv3Session) SetOwner(_owner common.Address) (*types.Transaction, error) {
return _Camelotv3.Contract.SetOwner(&_Camelotv3.TransactOpts, _owner)
}
// SetOwner is a paid mutator transaction binding the contract method 0x13af4035.
//
// Solidity: function setOwner(address _owner) returns()
func (_Camelotv3 *Camelotv3TransactorSession) SetOwner(_owner common.Address) (*types.Transaction, error) {
return _Camelotv3.Contract.SetOwner(&_Camelotv3.TransactOpts, _owner)
}
// SetVaultAddress is a paid mutator transaction binding the contract method 0x85535cc5.
//
// Solidity: function setVaultAddress(address _vaultAddress) returns()
func (_Camelotv3 *Camelotv3Transactor) SetVaultAddress(opts *bind.TransactOpts, _vaultAddress common.Address) (*types.Transaction, error) {
return _Camelotv3.contract.Transact(opts, "setVaultAddress", _vaultAddress)
}
// SetVaultAddress is a paid mutator transaction binding the contract method 0x85535cc5.
//
// Solidity: function setVaultAddress(address _vaultAddress) returns()
func (_Camelotv3 *Camelotv3Session) SetVaultAddress(_vaultAddress common.Address) (*types.Transaction, error) {
return _Camelotv3.Contract.SetVaultAddress(&_Camelotv3.TransactOpts, _vaultAddress)
}
// SetVaultAddress is a paid mutator transaction binding the contract method 0x85535cc5.
//
// Solidity: function setVaultAddress(address _vaultAddress) returns()
func (_Camelotv3 *Camelotv3TransactorSession) SetVaultAddress(_vaultAddress common.Address) (*types.Transaction, error) {
return _Camelotv3.Contract.SetVaultAddress(&_Camelotv3.TransactOpts, _vaultAddress)
}
// Camelotv3DefaultCommunityFeeIterator is returned from FilterDefaultCommunityFee and is used to iterate over the raw logs and unpacked data for DefaultCommunityFee events raised by the Camelotv3 contract.
type Camelotv3DefaultCommunityFeeIterator struct {
Event *Camelotv3DefaultCommunityFee // Event containing the contract specifics and raw log
contract *bind.BoundContract // Generic contract to use for unpacking event data
event string // Event name to use for unpacking event data
logs chan types.Log // Log channel receiving the found contract events
sub ethereum.Subscription // Subscription for errors, completion and termination
done bool // Whether the subscription completed delivering logs
fail error // Occurred error to stop iteration
}
// Next advances the iterator to the subsequent event, returning whether there
// are any more events found. In case of a retrieval or parsing error, false is
// returned and Error() can be queried for the exact failure.
func (it *Camelotv3DefaultCommunityFeeIterator) Next() bool {
// If the iterator failed, stop iterating
if it.fail != nil {
return false
}
// If the iterator completed, deliver directly whatever's available
if it.done {
select {
case log := <-it.logs:
it.Event = new(Camelotv3DefaultCommunityFee)
if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil {
it.fail = err
return false
}
it.Event.Raw = log
return true
default:
return false
}
}
// Iterator still in progress, wait for either a data or an error event
select {
case log := <-it.logs:
it.Event = new(Camelotv3DefaultCommunityFee)
if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil {
it.fail = err
return false
}
it.Event.Raw = log
return true
case err := <-it.sub.Err():
it.done = true
it.fail = err
return it.Next()
}
}
// Error returns any retrieval or parsing error occurred during filtering.
func (it *Camelotv3DefaultCommunityFeeIterator) Error() error {
return it.fail
}
// Close terminates the iteration process, releasing any pending underlying
// resources.
func (it *Camelotv3DefaultCommunityFeeIterator) Close() error {
it.sub.Unsubscribe()
return nil
}
// Camelotv3DefaultCommunityFee represents a DefaultCommunityFee event raised by the Camelotv3 contract.
type Camelotv3DefaultCommunityFee struct {
NewDefaultCommunityFee uint8
Raw types.Log // Blockchain specific contextual infos
}
// FilterDefaultCommunityFee is a free log retrieval operation binding the contract event 0x88cb5103fd9d88d417e72dc496030c71c65d1500548a9e9530e7d812b6a35558.
//
// Solidity: event DefaultCommunityFee(uint8 newDefaultCommunityFee)
func (_Camelotv3 *Camelotv3Filterer) FilterDefaultCommunityFee(opts *bind.FilterOpts) (*Camelotv3DefaultCommunityFeeIterator, error) {
logs, sub, err := _Camelotv3.contract.FilterLogs(opts, "DefaultCommunityFee")
if err != nil {
return nil, err
}
return &Camelotv3DefaultCommunityFeeIterator{contract: _Camelotv3.contract, event: "DefaultCommunityFee", logs: logs, sub: sub}, nil
}
// WatchDefaultCommunityFee is a free log subscription operation binding the contract event 0x88cb5103fd9d88d417e72dc496030c71c65d1500548a9e9530e7d812b6a35558.
//
// Solidity: event DefaultCommunityFee(uint8 newDefaultCommunityFee)
func (_Camelotv3 *Camelotv3Filterer) WatchDefaultCommunityFee(opts *bind.WatchOpts, sink chan<- *Camelotv3DefaultCommunityFee) (event.Subscription, error) {
logs, sub, err := _Camelotv3.contract.WatchLogs(opts, "DefaultCommunityFee")
if err != nil {
return nil, err
}
return event.NewSubscription(func(quit <-chan struct{}) error {
defer sub.Unsubscribe()
for {
select {
case log := <-logs:
// New log arrived, parse the event and forward to the user
event := new(Camelotv3DefaultCommunityFee)
if err := _Camelotv3.contract.UnpackLog(event, "DefaultCommunityFee", log); err != nil {
return err
}
event.Raw = log
select {
case sink <- event:
case err := <-sub.Err():
return err
case <-quit:
return nil
}
case err := <-sub.Err():
return err
case <-quit:
return nil
}
}
}), nil
}
// ParseDefaultCommunityFee is a log parse operation binding the contract event 0x88cb5103fd9d88d417e72dc496030c71c65d1500548a9e9530e7d812b6a35558.
//
// Solidity: event DefaultCommunityFee(uint8 newDefaultCommunityFee)
func (_Camelotv3 *Camelotv3Filterer) ParseDefaultCommunityFee(log types.Log) (*Camelotv3DefaultCommunityFee, error) {
event := new(Camelotv3DefaultCommunityFee)
if err := _Camelotv3.contract.UnpackLog(event, "DefaultCommunityFee", log); err != nil {
return nil, err
}
event.Raw = log
return event, nil
}
// Camelotv3FarmingAddressIterator is returned from FilterFarmingAddress and is used to iterate over the raw logs and unpacked data for FarmingAddress events raised by the Camelotv3 contract.
type Camelotv3FarmingAddressIterator struct {
Event *Camelotv3FarmingAddress // Event containing the contract specifics and raw log
contract *bind.BoundContract // Generic contract to use for unpacking event data
event string // Event name to use for unpacking event data
logs chan types.Log // Log channel receiving the found contract events
sub ethereum.Subscription // Subscription for errors, completion and termination
done bool // Whether the subscription completed delivering logs
fail error // Occurred error to stop iteration
}
// Next advances the iterator to the subsequent event, returning whether there
// are any more events found. In case of a retrieval or parsing error, false is
// returned and Error() can be queried for the exact failure.
func (it *Camelotv3FarmingAddressIterator) Next() bool {
// If the iterator failed, stop iterating
if it.fail != nil {
return false
}
// If the iterator completed, deliver directly whatever's available
if it.done {
select {
case log := <-it.logs:
it.Event = new(Camelotv3FarmingAddress)
if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil {
it.fail = err
return false
}
it.Event.Raw = log
return true
default:
return false
}
}
// Iterator still in progress, wait for either a data or an error event
select {
case log := <-it.logs:
it.Event = new(Camelotv3FarmingAddress)
if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil {
it.fail = err
return false
}
it.Event.Raw = log
return true
case err := <-it.sub.Err():
it.done = true
it.fail = err
return it.Next()
}
}
// Error returns any retrieval or parsing error occurred during filtering.
func (it *Camelotv3FarmingAddressIterator) Error() error {
return it.fail
}
// Close terminates the iteration process, releasing any pending underlying
// resources.
func (it *Camelotv3FarmingAddressIterator) Close() error {
it.sub.Unsubscribe()
return nil
}
// Camelotv3FarmingAddress represents a FarmingAddress event raised by the Camelotv3 contract.
type Camelotv3FarmingAddress struct {
NewFarmingAddress common.Address
Raw types.Log // Blockchain specific contextual infos
}
// FilterFarmingAddress is a free log retrieval operation binding the contract event 0x56b9e8342f530796ceed0d5529abdcdeae6e4f2ac1dc456ceb73bbda898e0cd3.
//
// Solidity: event FarmingAddress(address indexed newFarmingAddress)
func (_Camelotv3 *Camelotv3Filterer) FilterFarmingAddress(opts *bind.FilterOpts, newFarmingAddress []common.Address) (*Camelotv3FarmingAddressIterator, error) {
var newFarmingAddressRule []interface{}
for _, newFarmingAddressItem := range newFarmingAddress {
newFarmingAddressRule = append(newFarmingAddressRule, newFarmingAddressItem)
}
logs, sub, err := _Camelotv3.contract.FilterLogs(opts, "FarmingAddress", newFarmingAddressRule)
if err != nil {
return nil, err
}
return &Camelotv3FarmingAddressIterator{contract: _Camelotv3.contract, event: "FarmingAddress", logs: logs, sub: sub}, nil
}
// WatchFarmingAddress is a free log subscription operation binding the contract event 0x56b9e8342f530796ceed0d5529abdcdeae6e4f2ac1dc456ceb73bbda898e0cd3.
//
// Solidity: event FarmingAddress(address indexed newFarmingAddress)
func (_Camelotv3 *Camelotv3Filterer) WatchFarmingAddress(opts *bind.WatchOpts, sink chan<- *Camelotv3FarmingAddress, newFarmingAddress []common.Address) (event.Subscription, error) {
var newFarmingAddressRule []interface{}
for _, newFarmingAddressItem := range newFarmingAddress {
newFarmingAddressRule = append(newFarmingAddressRule, newFarmingAddressItem)
}
logs, sub, err := _Camelotv3.contract.WatchLogs(opts, "FarmingAddress", newFarmingAddressRule)
if err != nil {
return nil, err
}
return event.NewSubscription(func(quit <-chan struct{}) error {
defer sub.Unsubscribe()
for {
select {
case log := <-logs:
// New log arrived, parse the event and forward to the user
event := new(Camelotv3FarmingAddress)
if err := _Camelotv3.contract.UnpackLog(event, "FarmingAddress", log); err != nil {
return err
}
event.Raw = log
select {
case sink <- event:
case err := <-sub.Err():
return err
case <-quit:
return nil
}
case err := <-sub.Err():
return err
case <-quit:
return nil
}
}
}), nil
}
// ParseFarmingAddress is a log parse operation binding the contract event 0x56b9e8342f530796ceed0d5529abdcdeae6e4f2ac1dc456ceb73bbda898e0cd3.
//
// Solidity: event FarmingAddress(address indexed newFarmingAddress)
func (_Camelotv3 *Camelotv3Filterer) ParseFarmingAddress(log types.Log) (*Camelotv3FarmingAddress, error) {
event := new(Camelotv3FarmingAddress)
if err := _Camelotv3.contract.UnpackLog(event, "FarmingAddress", log); err != nil {
return nil, err
}
event.Raw = log
return event, nil
}
// Camelotv3FeeConfigurationIterator is returned from FilterFeeConfiguration and is used to iterate over the raw logs and unpacked data for FeeConfiguration events raised by the Camelotv3 contract.
type Camelotv3FeeConfigurationIterator struct {
Event *Camelotv3FeeConfiguration // Event containing the contract specifics and raw log
contract *bind.BoundContract // Generic contract to use for unpacking event data
event string // Event name to use for unpacking event data
logs chan types.Log // Log channel receiving the found contract events
sub ethereum.Subscription // Subscription for errors, completion and termination
done bool // Whether the subscription completed delivering logs
fail error // Occurred error to stop iteration
}
// Next advances the iterator to the subsequent event, returning whether there
// are any more events found. In case of a retrieval or parsing error, false is
// returned and Error() can be queried for the exact failure.
func (it *Camelotv3FeeConfigurationIterator) Next() bool {
// If the iterator failed, stop iterating
if it.fail != nil {
return false
}
// If the iterator completed, deliver directly whatever's available
if it.done {
select {
case log := <-it.logs:
it.Event = new(Camelotv3FeeConfiguration)
if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil {
it.fail = err
return false
}
it.Event.Raw = log
return true
default:
return false
}
}
// Iterator still in progress, wait for either a data or an error event
select {
case log := <-it.logs:
it.Event = new(Camelotv3FeeConfiguration)
if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil {
it.fail = err
return false
}
it.Event.Raw = log
return true
case err := <-it.sub.Err():
it.done = true
it.fail = err
return it.Next()
}
}
// Error returns any retrieval or parsing error occurred during filtering.
func (it *Camelotv3FeeConfigurationIterator) Error() error {
return it.fail
}
// Close terminates the iteration process, releasing any pending underlying
// resources.
func (it *Camelotv3FeeConfigurationIterator) Close() error {
it.sub.Unsubscribe()
return nil
}
// Camelotv3FeeConfiguration represents a FeeConfiguration event raised by the Camelotv3 contract.
type Camelotv3FeeConfiguration struct {
Alpha1 uint16
Alpha2 uint16
Beta1 uint32
Beta2 uint32
Gamma1 uint16
Gamma2 uint16
VolumeBeta uint32
VolumeGamma uint16
BaseFee uint16
Raw types.Log // Blockchain specific contextual infos
}
// FilterFeeConfiguration is a free log retrieval operation binding the contract event 0x4035ab409f15e202f9f114632e1fb14a0552325955722be18503403e7f98730c.
//
// Solidity: event FeeConfiguration(uint16 alpha1, uint16 alpha2, uint32 beta1, uint32 beta2, uint16 gamma1, uint16 gamma2, uint32 volumeBeta, uint16 volumeGamma, uint16 baseFee)
func (_Camelotv3 *Camelotv3Filterer) FilterFeeConfiguration(opts *bind.FilterOpts) (*Camelotv3FeeConfigurationIterator, error) {
logs, sub, err := _Camelotv3.contract.FilterLogs(opts, "FeeConfiguration")
if err != nil {
return nil, err
}
return &Camelotv3FeeConfigurationIterator{contract: _Camelotv3.contract, event: "FeeConfiguration", logs: logs, sub: sub}, nil
}
// WatchFeeConfiguration is a free log subscription operation binding the contract event 0x4035ab409f15e202f9f114632e1fb14a0552325955722be18503403e7f98730c.
//
// Solidity: event FeeConfiguration(uint16 alpha1, uint16 alpha2, uint32 beta1, uint32 beta2, uint16 gamma1, uint16 gamma2, uint32 volumeBeta, uint16 volumeGamma, uint16 baseFee)
func (_Camelotv3 *Camelotv3Filterer) WatchFeeConfiguration(opts *bind.WatchOpts, sink chan<- *Camelotv3FeeConfiguration) (event.Subscription, error) {
logs, sub, err := _Camelotv3.contract.WatchLogs(opts, "FeeConfiguration")
if err != nil {
return nil, err
}
return event.NewSubscription(func(quit <-chan struct{}) error {
defer sub.Unsubscribe()
for {
select {
case log := <-logs:
// New log arrived, parse the event and forward to the user
event := new(Camelotv3FeeConfiguration)
if err := _Camelotv3.contract.UnpackLog(event, "FeeConfiguration", log); err != nil {
return err
}
event.Raw = log
select {
case sink <- event:
case err := <-sub.Err():
return err
case <-quit:
return nil
}
case err := <-sub.Err():
return err
case <-quit:
return nil
}
}
}), nil
}
// ParseFeeConfiguration is a log parse operation binding the contract event 0x4035ab409f15e202f9f114632e1fb14a0552325955722be18503403e7f98730c.
//
// Solidity: event FeeConfiguration(uint16 alpha1, uint16 alpha2, uint32 beta1, uint32 beta2, uint16 gamma1, uint16 gamma2, uint32 volumeBeta, uint16 volumeGamma, uint16 baseFee)
func (_Camelotv3 *Camelotv3Filterer) ParseFeeConfiguration(log types.Log) (*Camelotv3FeeConfiguration, error) {
event := new(Camelotv3FeeConfiguration)
if err := _Camelotv3.contract.UnpackLog(event, "FeeConfiguration", log); err != nil {
return nil, err
}
event.Raw = log
return event, nil
}
// Camelotv3OwnerIterator is returned from FilterOwner and is used to iterate over the raw logs and unpacked data for Owner events raised by the Camelotv3 contract.
type Camelotv3OwnerIterator struct {
Event *Camelotv3Owner // Event containing the contract specifics and raw log
contract *bind.BoundContract // Generic contract to use for unpacking event data
event string // Event name to use for unpacking event data