-
Notifications
You must be signed in to change notification settings - Fork 3
/
contract_eth_registrar_controller_v1.go
1342 lines (1136 loc) · 66.2 KB
/
contract_eth_registrar_controller_v1.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 ens
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
)
// ETHRegistrarControllerV1MetaData contains all meta data concerning the ETHRegistrarControllerV1 contract.
var ETHRegistrarControllerV1MetaData = &bind.MetaData{
ABI: "[{\"inputs\":[{\"internalType\":\"contractBaseRegistrar\",\"name\":\"_base\",\"type\":\"address\"},{\"internalType\":\"contractPriceOracle\",\"name\":\"_prices\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"_minCommitmentAge\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"_maxCommitmentAge\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"string\",\"name\":\"name\",\"type\":\"string\"},{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"label\",\"type\":\"bytes32\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"cost\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"expires\",\"type\":\"uint256\"}],\"name\":\"NameRegistered\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"string\",\"name\":\"name\",\"type\":\"string\"},{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"label\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"cost\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"expires\",\"type\":\"uint256\"}],\"name\":\"NameRenewed\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"oracle\",\"type\":\"address\"}],\"name\":\"NewPriceOracle\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"previousOwner\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"OwnershipTransferred\",\"type\":\"event\"},{\"constant\":true,\"inputs\":[],\"name\":\"MIN_REGISTRATION_DURATION\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[{\"internalType\":\"string\",\"name\":\"name\",\"type\":\"string\"}],\"name\":\"available\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"commitment\",\"type\":\"bytes32\"}],\"name\":\"commit\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"name\":\"commitments\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"isOwner\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[{\"internalType\":\"string\",\"name\":\"name\",\"type\":\"string\"},{\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"},{\"internalType\":\"bytes32\",\"name\":\"secret\",\"type\":\"bytes32\"}],\"name\":\"makeCommitment\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"payable\":false,\"stateMutability\":\"pure\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[{\"internalType\":\"string\",\"name\":\"name\",\"type\":\"string\"},{\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"},{\"internalType\":\"bytes32\",\"name\":\"secret\",\"type\":\"bytes32\"},{\"internalType\":\"address\",\"name\":\"resolver\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"addr\",\"type\":\"address\"}],\"name\":\"makeCommitmentWithConfig\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"payable\":false,\"stateMutability\":\"pure\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"maxCommitmentAge\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"minCommitmentAge\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"owner\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"internalType\":\"string\",\"name\":\"name\",\"type\":\"string\"},{\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"duration\",\"type\":\"uint256\"},{\"internalType\":\"bytes32\",\"name\":\"secret\",\"type\":\"bytes32\"}],\"name\":\"register\",\"outputs\":[],\"payable\":true,\"stateMutability\":\"payable\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"internalType\":\"string\",\"name\":\"name\",\"type\":\"string\"},{\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"duration\",\"type\":\"uint256\"},{\"internalType\":\"bytes32\",\"name\":\"secret\",\"type\":\"bytes32\"},{\"internalType\":\"address\",\"name\":\"resolver\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"addr\",\"type\":\"address\"}],\"name\":\"registerWithConfig\",\"outputs\":[],\"payable\":true,\"stateMutability\":\"payable\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"internalType\":\"string\",\"name\":\"name\",\"type\":\"string\"},{\"internalType\":\"uint256\",\"name\":\"duration\",\"type\":\"uint256\"}],\"name\":\"renew\",\"outputs\":[],\"payable\":true,\"stateMutability\":\"payable\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[],\"name\":\"renounceOwnership\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[{\"internalType\":\"string\",\"name\":\"name\",\"type\":\"string\"},{\"internalType\":\"uint256\",\"name\":\"duration\",\"type\":\"uint256\"}],\"name\":\"rentPrice\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_minCommitmentAge\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"_maxCommitmentAge\",\"type\":\"uint256\"}],\"name\":\"setCommitmentAges\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"internalType\":\"contractPriceOracle\",\"name\":\"_prices\",\"type\":\"address\"}],\"name\":\"setPriceOracle\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[{\"internalType\":\"bytes4\",\"name\":\"interfaceID\",\"type\":\"bytes4\"}],\"name\":\"supportsInterface\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"payable\":false,\"stateMutability\":\"pure\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"transferOwnership\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[{\"internalType\":\"string\",\"name\":\"name\",\"type\":\"string\"}],\"name\":\"valid\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"payable\":false,\"stateMutability\":\"pure\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[],\"name\":\"withdraw\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"}]",
}
// ETHRegistrarControllerV1ABI is the input ABI used to generate the binding from.
// Deprecated: Use ETHRegistrarControllerV1MetaData.ABI instead.
var ETHRegistrarControllerV1ABI = ETHRegistrarControllerV1MetaData.ABI
// ETHRegistrarControllerV1 is an auto generated Go binding around an Ethereum contract.
type ETHRegistrarControllerV1 struct {
ETHRegistrarControllerV1Caller // Read-only binding to the contract
ETHRegistrarControllerV1Transactor // Write-only binding to the contract
ETHRegistrarControllerV1Filterer // Log filterer for contract events
}
// ETHRegistrarControllerV1Caller is an auto generated read-only Go binding around an Ethereum contract.
type ETHRegistrarControllerV1Caller struct {
contract *bind.BoundContract // Generic contract wrapper for the low level calls
}
// ETHRegistrarControllerV1Transactor is an auto generated write-only Go binding around an Ethereum contract.
type ETHRegistrarControllerV1Transactor struct {
contract *bind.BoundContract // Generic contract wrapper for the low level calls
}
// ETHRegistrarControllerV1Filterer is an auto generated log filtering Go binding around an Ethereum contract events.
type ETHRegistrarControllerV1Filterer struct {
contract *bind.BoundContract // Generic contract wrapper for the low level calls
}
// ETHRegistrarControllerV1Session is an auto generated Go binding around an Ethereum contract,
// with pre-set call and transact options.
type ETHRegistrarControllerV1Session struct {
Contract *ETHRegistrarControllerV1 // 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
}
// ETHRegistrarControllerV1CallerSession is an auto generated read-only Go binding around an Ethereum contract,
// with pre-set call options.
type ETHRegistrarControllerV1CallerSession struct {
Contract *ETHRegistrarControllerV1Caller // Generic contract caller binding to set the session for
CallOpts bind.CallOpts // Call options to use throughout this session
}
// ETHRegistrarControllerV1TransactorSession is an auto generated write-only Go binding around an Ethereum contract,
// with pre-set transact options.
type ETHRegistrarControllerV1TransactorSession struct {
Contract *ETHRegistrarControllerV1Transactor // Generic contract transactor binding to set the session for
TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session
}
// ETHRegistrarControllerV1Raw is an auto generated low-level Go binding around an Ethereum contract.
type ETHRegistrarControllerV1Raw struct {
Contract *ETHRegistrarControllerV1 // Generic contract binding to access the raw methods on
}
// ETHRegistrarControllerV1CallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract.
type ETHRegistrarControllerV1CallerRaw struct {
Contract *ETHRegistrarControllerV1Caller // Generic read-only contract binding to access the raw methods on
}
// ETHRegistrarControllerV1TransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract.
type ETHRegistrarControllerV1TransactorRaw struct {
Contract *ETHRegistrarControllerV1Transactor // Generic write-only contract binding to access the raw methods on
}
// NewETHRegistrarControllerV1 creates a new instance of ETHRegistrarControllerV1, bound to a specific deployed contract.
func NewETHRegistrarControllerV1(address common.Address, backend bind.ContractBackend) (*ETHRegistrarControllerV1, error) {
contract, err := bindETHRegistrarControllerV1(address, backend, backend, backend)
if err != nil {
return nil, err
}
return ÐRegistrarControllerV1{ETHRegistrarControllerV1Caller: ETHRegistrarControllerV1Caller{contract: contract}, ETHRegistrarControllerV1Transactor: ETHRegistrarControllerV1Transactor{contract: contract}, ETHRegistrarControllerV1Filterer: ETHRegistrarControllerV1Filterer{contract: contract}}, nil
}
// NewETHRegistrarControllerV1Caller creates a new read-only instance of ETHRegistrarControllerV1, bound to a specific deployed contract.
func NewETHRegistrarControllerV1Caller(address common.Address, caller bind.ContractCaller) (*ETHRegistrarControllerV1Caller, error) {
contract, err := bindETHRegistrarControllerV1(address, caller, nil, nil)
if err != nil {
return nil, err
}
return ÐRegistrarControllerV1Caller{contract: contract}, nil
}
// NewETHRegistrarControllerV1Transactor creates a new write-only instance of ETHRegistrarControllerV1, bound to a specific deployed contract.
func NewETHRegistrarControllerV1Transactor(address common.Address, transactor bind.ContractTransactor) (*ETHRegistrarControllerV1Transactor, error) {
contract, err := bindETHRegistrarControllerV1(address, nil, transactor, nil)
if err != nil {
return nil, err
}
return ÐRegistrarControllerV1Transactor{contract: contract}, nil
}
// NewETHRegistrarControllerV1Filterer creates a new log filterer instance of ETHRegistrarControllerV1, bound to a specific deployed contract.
func NewETHRegistrarControllerV1Filterer(address common.Address, filterer bind.ContractFilterer) (*ETHRegistrarControllerV1Filterer, error) {
contract, err := bindETHRegistrarControllerV1(address, nil, nil, filterer)
if err != nil {
return nil, err
}
return ÐRegistrarControllerV1Filterer{contract: contract}, nil
}
// bindETHRegistrarControllerV1 binds a generic wrapper to an already deployed contract.
func bindETHRegistrarControllerV1(address common.Address, caller bind.ContractCaller, transactor bind.ContractTransactor, filterer bind.ContractFilterer) (*bind.BoundContract, error) {
parsed, err := ETHRegistrarControllerV1MetaData.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 (_ETHRegistrarControllerV1 *ETHRegistrarControllerV1Raw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error {
return _ETHRegistrarControllerV1.Contract.ETHRegistrarControllerV1Caller.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 (_ETHRegistrarControllerV1 *ETHRegistrarControllerV1Raw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) {
return _ETHRegistrarControllerV1.Contract.ETHRegistrarControllerV1Transactor.contract.Transfer(opts)
}
// Transact invokes the (paid) contract method with params as input values.
func (_ETHRegistrarControllerV1 *ETHRegistrarControllerV1Raw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) {
return _ETHRegistrarControllerV1.Contract.ETHRegistrarControllerV1Transactor.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 (_ETHRegistrarControllerV1 *ETHRegistrarControllerV1CallerRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error {
return _ETHRegistrarControllerV1.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 (_ETHRegistrarControllerV1 *ETHRegistrarControllerV1TransactorRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) {
return _ETHRegistrarControllerV1.Contract.contract.Transfer(opts)
}
// Transact invokes the (paid) contract method with params as input values.
func (_ETHRegistrarControllerV1 *ETHRegistrarControllerV1TransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) {
return _ETHRegistrarControllerV1.Contract.contract.Transact(opts, method, params...)
}
// MINREGISTRATIONDURATION is a free data retrieval call binding the contract method 0x8a95b09f.
//
// Solidity: function MIN_REGISTRATION_DURATION() view returns(uint256)
func (_ETHRegistrarControllerV1 *ETHRegistrarControllerV1Caller) MINREGISTRATIONDURATION(opts *bind.CallOpts) (*big.Int, error) {
var out []interface{}
err := _ETHRegistrarControllerV1.contract.Call(opts, &out, "MIN_REGISTRATION_DURATION")
if err != nil {
return *new(*big.Int), err
}
out0 := *abi.ConvertType(out[0], new(*big.Int)).(**big.Int)
return out0, err
}
// MINREGISTRATIONDURATION is a free data retrieval call binding the contract method 0x8a95b09f.
//
// Solidity: function MIN_REGISTRATION_DURATION() view returns(uint256)
func (_ETHRegistrarControllerV1 *ETHRegistrarControllerV1Session) MINREGISTRATIONDURATION() (*big.Int, error) {
return _ETHRegistrarControllerV1.Contract.MINREGISTRATIONDURATION(&_ETHRegistrarControllerV1.CallOpts)
}
// MINREGISTRATIONDURATION is a free data retrieval call binding the contract method 0x8a95b09f.
//
// Solidity: function MIN_REGISTRATION_DURATION() view returns(uint256)
func (_ETHRegistrarControllerV1 *ETHRegistrarControllerV1CallerSession) MINREGISTRATIONDURATION() (*big.Int, error) {
return _ETHRegistrarControllerV1.Contract.MINREGISTRATIONDURATION(&_ETHRegistrarControllerV1.CallOpts)
}
// Available is a free data retrieval call binding the contract method 0xaeb8ce9b.
//
// Solidity: function available(string name) view returns(bool)
func (_ETHRegistrarControllerV1 *ETHRegistrarControllerV1Caller) Available(opts *bind.CallOpts, name string) (bool, error) {
var out []interface{}
err := _ETHRegistrarControllerV1.contract.Call(opts, &out, "available", name)
if err != nil {
return *new(bool), err
}
out0 := *abi.ConvertType(out[0], new(bool)).(*bool)
return out0, err
}
// Available is a free data retrieval call binding the contract method 0xaeb8ce9b.
//
// Solidity: function available(string name) view returns(bool)
func (_ETHRegistrarControllerV1 *ETHRegistrarControllerV1Session) Available(name string) (bool, error) {
return _ETHRegistrarControllerV1.Contract.Available(&_ETHRegistrarControllerV1.CallOpts, name)
}
// Available is a free data retrieval call binding the contract method 0xaeb8ce9b.
//
// Solidity: function available(string name) view returns(bool)
func (_ETHRegistrarControllerV1 *ETHRegistrarControllerV1CallerSession) Available(name string) (bool, error) {
return _ETHRegistrarControllerV1.Contract.Available(&_ETHRegistrarControllerV1.CallOpts, name)
}
// Commitments is a free data retrieval call binding the contract method 0x839df945.
//
// Solidity: function commitments(bytes32 ) view returns(uint256)
func (_ETHRegistrarControllerV1 *ETHRegistrarControllerV1Caller) Commitments(opts *bind.CallOpts, arg0 [32]byte) (*big.Int, error) {
var out []interface{}
err := _ETHRegistrarControllerV1.contract.Call(opts, &out, "commitments", arg0)
if err != nil {
return *new(*big.Int), err
}
out0 := *abi.ConvertType(out[0], new(*big.Int)).(**big.Int)
return out0, err
}
// Commitments is a free data retrieval call binding the contract method 0x839df945.
//
// Solidity: function commitments(bytes32 ) view returns(uint256)
func (_ETHRegistrarControllerV1 *ETHRegistrarControllerV1Session) Commitments(arg0 [32]byte) (*big.Int, error) {
return _ETHRegistrarControllerV1.Contract.Commitments(&_ETHRegistrarControllerV1.CallOpts, arg0)
}
// Commitments is a free data retrieval call binding the contract method 0x839df945.
//
// Solidity: function commitments(bytes32 ) view returns(uint256)
func (_ETHRegistrarControllerV1 *ETHRegistrarControllerV1CallerSession) Commitments(arg0 [32]byte) (*big.Int, error) {
return _ETHRegistrarControllerV1.Contract.Commitments(&_ETHRegistrarControllerV1.CallOpts, arg0)
}
// IsOwner is a free data retrieval call binding the contract method 0x8f32d59b.
//
// Solidity: function isOwner() view returns(bool)
func (_ETHRegistrarControllerV1 *ETHRegistrarControllerV1Caller) IsOwner(opts *bind.CallOpts) (bool, error) {
var out []interface{}
err := _ETHRegistrarControllerV1.contract.Call(opts, &out, "isOwner")
if err != nil {
return *new(bool), err
}
out0 := *abi.ConvertType(out[0], new(bool)).(*bool)
return out0, err
}
// IsOwner is a free data retrieval call binding the contract method 0x8f32d59b.
//
// Solidity: function isOwner() view returns(bool)
func (_ETHRegistrarControllerV1 *ETHRegistrarControllerV1Session) IsOwner() (bool, error) {
return _ETHRegistrarControllerV1.Contract.IsOwner(&_ETHRegistrarControllerV1.CallOpts)
}
// IsOwner is a free data retrieval call binding the contract method 0x8f32d59b.
//
// Solidity: function isOwner() view returns(bool)
func (_ETHRegistrarControllerV1 *ETHRegistrarControllerV1CallerSession) IsOwner() (bool, error) {
return _ETHRegistrarControllerV1.Contract.IsOwner(&_ETHRegistrarControllerV1.CallOpts)
}
// MakeCommitment is a free data retrieval call binding the contract method 0xf49826be.
//
// Solidity: function makeCommitment(string name, address owner, bytes32 secret) pure returns(bytes32)
func (_ETHRegistrarControllerV1 *ETHRegistrarControllerV1Caller) MakeCommitment(opts *bind.CallOpts, name string, owner common.Address, secret [32]byte) ([32]byte, error) {
var out []interface{}
err := _ETHRegistrarControllerV1.contract.Call(opts, &out, "makeCommitment", name, owner, secret)
if err != nil {
return *new([32]byte), err
}
out0 := *abi.ConvertType(out[0], new([32]byte)).(*[32]byte)
return out0, err
}
// MakeCommitment is a free data retrieval call binding the contract method 0xf49826be.
//
// Solidity: function makeCommitment(string name, address owner, bytes32 secret) pure returns(bytes32)
func (_ETHRegistrarControllerV1 *ETHRegistrarControllerV1Session) MakeCommitment(name string, owner common.Address, secret [32]byte) ([32]byte, error) {
return _ETHRegistrarControllerV1.Contract.MakeCommitment(&_ETHRegistrarControllerV1.CallOpts, name, owner, secret)
}
// MakeCommitment is a free data retrieval call binding the contract method 0xf49826be.
//
// Solidity: function makeCommitment(string name, address owner, bytes32 secret) pure returns(bytes32)
func (_ETHRegistrarControllerV1 *ETHRegistrarControllerV1CallerSession) MakeCommitment(name string, owner common.Address, secret [32]byte) ([32]byte, error) {
return _ETHRegistrarControllerV1.Contract.MakeCommitment(&_ETHRegistrarControllerV1.CallOpts, name, owner, secret)
}
// MakeCommitmentWithConfig is a free data retrieval call binding the contract method 0x3d86c52f.
//
// Solidity: function makeCommitmentWithConfig(string name, address owner, bytes32 secret, address resolver, address addr) pure returns(bytes32)
func (_ETHRegistrarControllerV1 *ETHRegistrarControllerV1Caller) MakeCommitmentWithConfig(opts *bind.CallOpts, name string, owner common.Address, secret [32]byte, resolver common.Address, addr common.Address) ([32]byte, error) {
var out []interface{}
err := _ETHRegistrarControllerV1.contract.Call(opts, &out, "makeCommitmentWithConfig", name, owner, secret, resolver, addr)
if err != nil {
return *new([32]byte), err
}
out0 := *abi.ConvertType(out[0], new([32]byte)).(*[32]byte)
return out0, err
}
// MakeCommitmentWithConfig is a free data retrieval call binding the contract method 0x3d86c52f.
//
// Solidity: function makeCommitmentWithConfig(string name, address owner, bytes32 secret, address resolver, address addr) pure returns(bytes32)
func (_ETHRegistrarControllerV1 *ETHRegistrarControllerV1Session) MakeCommitmentWithConfig(name string, owner common.Address, secret [32]byte, resolver common.Address, addr common.Address) ([32]byte, error) {
return _ETHRegistrarControllerV1.Contract.MakeCommitmentWithConfig(&_ETHRegistrarControllerV1.CallOpts, name, owner, secret, resolver, addr)
}
// MakeCommitmentWithConfig is a free data retrieval call binding the contract method 0x3d86c52f.
//
// Solidity: function makeCommitmentWithConfig(string name, address owner, bytes32 secret, address resolver, address addr) pure returns(bytes32)
func (_ETHRegistrarControllerV1 *ETHRegistrarControllerV1CallerSession) MakeCommitmentWithConfig(name string, owner common.Address, secret [32]byte, resolver common.Address, addr common.Address) ([32]byte, error) {
return _ETHRegistrarControllerV1.Contract.MakeCommitmentWithConfig(&_ETHRegistrarControllerV1.CallOpts, name, owner, secret, resolver, addr)
}
// MaxCommitmentAge is a free data retrieval call binding the contract method 0xce1e09c0.
//
// Solidity: function maxCommitmentAge() view returns(uint256)
func (_ETHRegistrarControllerV1 *ETHRegistrarControllerV1Caller) MaxCommitmentAge(opts *bind.CallOpts) (*big.Int, error) {
var out []interface{}
err := _ETHRegistrarControllerV1.contract.Call(opts, &out, "maxCommitmentAge")
if err != nil {
return *new(*big.Int), err
}
out0 := *abi.ConvertType(out[0], new(*big.Int)).(**big.Int)
return out0, err
}
// MaxCommitmentAge is a free data retrieval call binding the contract method 0xce1e09c0.
//
// Solidity: function maxCommitmentAge() view returns(uint256)
func (_ETHRegistrarControllerV1 *ETHRegistrarControllerV1Session) MaxCommitmentAge() (*big.Int, error) {
return _ETHRegistrarControllerV1.Contract.MaxCommitmentAge(&_ETHRegistrarControllerV1.CallOpts)
}
// MaxCommitmentAge is a free data retrieval call binding the contract method 0xce1e09c0.
//
// Solidity: function maxCommitmentAge() view returns(uint256)
func (_ETHRegistrarControllerV1 *ETHRegistrarControllerV1CallerSession) MaxCommitmentAge() (*big.Int, error) {
return _ETHRegistrarControllerV1.Contract.MaxCommitmentAge(&_ETHRegistrarControllerV1.CallOpts)
}
// MinCommitmentAge is a free data retrieval call binding the contract method 0x8d839ffe.
//
// Solidity: function minCommitmentAge() view returns(uint256)
func (_ETHRegistrarControllerV1 *ETHRegistrarControllerV1Caller) MinCommitmentAge(opts *bind.CallOpts) (*big.Int, error) {
var out []interface{}
err := _ETHRegistrarControllerV1.contract.Call(opts, &out, "minCommitmentAge")
if err != nil {
return *new(*big.Int), err
}
out0 := *abi.ConvertType(out[0], new(*big.Int)).(**big.Int)
return out0, err
}
// MinCommitmentAge is a free data retrieval call binding the contract method 0x8d839ffe.
//
// Solidity: function minCommitmentAge() view returns(uint256)
func (_ETHRegistrarControllerV1 *ETHRegistrarControllerV1Session) MinCommitmentAge() (*big.Int, error) {
return _ETHRegistrarControllerV1.Contract.MinCommitmentAge(&_ETHRegistrarControllerV1.CallOpts)
}
// MinCommitmentAge is a free data retrieval call binding the contract method 0x8d839ffe.
//
// Solidity: function minCommitmentAge() view returns(uint256)
func (_ETHRegistrarControllerV1 *ETHRegistrarControllerV1CallerSession) MinCommitmentAge() (*big.Int, error) {
return _ETHRegistrarControllerV1.Contract.MinCommitmentAge(&_ETHRegistrarControllerV1.CallOpts)
}
// Owner is a free data retrieval call binding the contract method 0x8da5cb5b.
//
// Solidity: function owner() view returns(address)
func (_ETHRegistrarControllerV1 *ETHRegistrarControllerV1Caller) Owner(opts *bind.CallOpts) (common.Address, error) {
var out []interface{}
err := _ETHRegistrarControllerV1.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 (_ETHRegistrarControllerV1 *ETHRegistrarControllerV1Session) Owner() (common.Address, error) {
return _ETHRegistrarControllerV1.Contract.Owner(&_ETHRegistrarControllerV1.CallOpts)
}
// Owner is a free data retrieval call binding the contract method 0x8da5cb5b.
//
// Solidity: function owner() view returns(address)
func (_ETHRegistrarControllerV1 *ETHRegistrarControllerV1CallerSession) Owner() (common.Address, error) {
return _ETHRegistrarControllerV1.Contract.Owner(&_ETHRegistrarControllerV1.CallOpts)
}
// RentPrice is a free data retrieval call binding the contract method 0x83e7f6ff.
//
// Solidity: function rentPrice(string name, uint256 duration) view returns(uint256)
func (_ETHRegistrarControllerV1 *ETHRegistrarControllerV1Caller) RentPrice(opts *bind.CallOpts, name string, duration *big.Int) (*big.Int, error) {
var out []interface{}
err := _ETHRegistrarControllerV1.contract.Call(opts, &out, "rentPrice", name, duration)
if err != nil {
return *new(*big.Int), err
}
out0 := *abi.ConvertType(out[0], new(*big.Int)).(**big.Int)
return out0, err
}
// RentPrice is a free data retrieval call binding the contract method 0x83e7f6ff.
//
// Solidity: function rentPrice(string name, uint256 duration) view returns(uint256)
func (_ETHRegistrarControllerV1 *ETHRegistrarControllerV1Session) RentPrice(name string, duration *big.Int) (*big.Int, error) {
return _ETHRegistrarControllerV1.Contract.RentPrice(&_ETHRegistrarControllerV1.CallOpts, name, duration)
}
// RentPrice is a free data retrieval call binding the contract method 0x83e7f6ff.
//
// Solidity: function rentPrice(string name, uint256 duration) view returns(uint256)
func (_ETHRegistrarControllerV1 *ETHRegistrarControllerV1CallerSession) RentPrice(name string, duration *big.Int) (*big.Int, error) {
return _ETHRegistrarControllerV1.Contract.RentPrice(&_ETHRegistrarControllerV1.CallOpts, name, duration)
}
// SupportsInterface is a free data retrieval call binding the contract method 0x01ffc9a7.
//
// Solidity: function supportsInterface(bytes4 interfaceID) pure returns(bool)
func (_ETHRegistrarControllerV1 *ETHRegistrarControllerV1Caller) SupportsInterface(opts *bind.CallOpts, interfaceID [4]byte) (bool, error) {
var out []interface{}
err := _ETHRegistrarControllerV1.contract.Call(opts, &out, "supportsInterface", interfaceID)
if err != nil {
return *new(bool), err
}
out0 := *abi.ConvertType(out[0], new(bool)).(*bool)
return out0, err
}
// SupportsInterface is a free data retrieval call binding the contract method 0x01ffc9a7.
//
// Solidity: function supportsInterface(bytes4 interfaceID) pure returns(bool)
func (_ETHRegistrarControllerV1 *ETHRegistrarControllerV1Session) SupportsInterface(interfaceID [4]byte) (bool, error) {
return _ETHRegistrarControllerV1.Contract.SupportsInterface(&_ETHRegistrarControllerV1.CallOpts, interfaceID)
}
// SupportsInterface is a free data retrieval call binding the contract method 0x01ffc9a7.
//
// Solidity: function supportsInterface(bytes4 interfaceID) pure returns(bool)
func (_ETHRegistrarControllerV1 *ETHRegistrarControllerV1CallerSession) SupportsInterface(interfaceID [4]byte) (bool, error) {
return _ETHRegistrarControllerV1.Contract.SupportsInterface(&_ETHRegistrarControllerV1.CallOpts, interfaceID)
}
// Valid is a free data retrieval call binding the contract method 0x9791c097.
//
// Solidity: function valid(string name) pure returns(bool)
func (_ETHRegistrarControllerV1 *ETHRegistrarControllerV1Caller) Valid(opts *bind.CallOpts, name string) (bool, error) {
var out []interface{}
err := _ETHRegistrarControllerV1.contract.Call(opts, &out, "valid", name)
if err != nil {
return *new(bool), err
}
out0 := *abi.ConvertType(out[0], new(bool)).(*bool)
return out0, err
}
// Valid is a free data retrieval call binding the contract method 0x9791c097.
//
// Solidity: function valid(string name) pure returns(bool)
func (_ETHRegistrarControllerV1 *ETHRegistrarControllerV1Session) Valid(name string) (bool, error) {
return _ETHRegistrarControllerV1.Contract.Valid(&_ETHRegistrarControllerV1.CallOpts, name)
}
// Valid is a free data retrieval call binding the contract method 0x9791c097.
//
// Solidity: function valid(string name) pure returns(bool)
func (_ETHRegistrarControllerV1 *ETHRegistrarControllerV1CallerSession) Valid(name string) (bool, error) {
return _ETHRegistrarControllerV1.Contract.Valid(&_ETHRegistrarControllerV1.CallOpts, name)
}
// Commit is a paid mutator transaction binding the contract method 0xf14fcbc8.
//
// Solidity: function commit(bytes32 commitment) returns()
func (_ETHRegistrarControllerV1 *ETHRegistrarControllerV1Transactor) Commit(opts *bind.TransactOpts, commitment [32]byte) (*types.Transaction, error) {
return _ETHRegistrarControllerV1.contract.Transact(opts, "commit", commitment)
}
// Commit is a paid mutator transaction binding the contract method 0xf14fcbc8.
//
// Solidity: function commit(bytes32 commitment) returns()
func (_ETHRegistrarControllerV1 *ETHRegistrarControllerV1Session) Commit(commitment [32]byte) (*types.Transaction, error) {
return _ETHRegistrarControllerV1.Contract.Commit(&_ETHRegistrarControllerV1.TransactOpts, commitment)
}
// Commit is a paid mutator transaction binding the contract method 0xf14fcbc8.
//
// Solidity: function commit(bytes32 commitment) returns()
func (_ETHRegistrarControllerV1 *ETHRegistrarControllerV1TransactorSession) Commit(commitment [32]byte) (*types.Transaction, error) {
return _ETHRegistrarControllerV1.Contract.Commit(&_ETHRegistrarControllerV1.TransactOpts, commitment)
}
// Register is a paid mutator transaction binding the contract method 0x85f6d155.
//
// Solidity: function register(string name, address owner, uint256 duration, bytes32 secret) payable returns()
func (_ETHRegistrarControllerV1 *ETHRegistrarControllerV1Transactor) Register(opts *bind.TransactOpts, name string, owner common.Address, duration *big.Int, secret [32]byte) (*types.Transaction, error) {
return _ETHRegistrarControllerV1.contract.Transact(opts, "register", name, owner, duration, secret)
}
// Register is a paid mutator transaction binding the contract method 0x85f6d155.
//
// Solidity: function register(string name, address owner, uint256 duration, bytes32 secret) payable returns()
func (_ETHRegistrarControllerV1 *ETHRegistrarControllerV1Session) Register(name string, owner common.Address, duration *big.Int, secret [32]byte) (*types.Transaction, error) {
return _ETHRegistrarControllerV1.Contract.Register(&_ETHRegistrarControllerV1.TransactOpts, name, owner, duration, secret)
}
// Register is a paid mutator transaction binding the contract method 0x85f6d155.
//
// Solidity: function register(string name, address owner, uint256 duration, bytes32 secret) payable returns()
func (_ETHRegistrarControllerV1 *ETHRegistrarControllerV1TransactorSession) Register(name string, owner common.Address, duration *big.Int, secret [32]byte) (*types.Transaction, error) {
return _ETHRegistrarControllerV1.Contract.Register(&_ETHRegistrarControllerV1.TransactOpts, name, owner, duration, secret)
}
// RegisterWithConfig is a paid mutator transaction binding the contract method 0xf7a16963.
//
// Solidity: function registerWithConfig(string name, address owner, uint256 duration, bytes32 secret, address resolver, address addr) payable returns()
func (_ETHRegistrarControllerV1 *ETHRegistrarControllerV1Transactor) RegisterWithConfig(opts *bind.TransactOpts, name string, owner common.Address, duration *big.Int, secret [32]byte, resolver common.Address, addr common.Address) (*types.Transaction, error) {
return _ETHRegistrarControllerV1.contract.Transact(opts, "registerWithConfig", name, owner, duration, secret, resolver, addr)
}
// RegisterWithConfig is a paid mutator transaction binding the contract method 0xf7a16963.
//
// Solidity: function registerWithConfig(string name, address owner, uint256 duration, bytes32 secret, address resolver, address addr) payable returns()
func (_ETHRegistrarControllerV1 *ETHRegistrarControllerV1Session) RegisterWithConfig(name string, owner common.Address, duration *big.Int, secret [32]byte, resolver common.Address, addr common.Address) (*types.Transaction, error) {
return _ETHRegistrarControllerV1.Contract.RegisterWithConfig(&_ETHRegistrarControllerV1.TransactOpts, name, owner, duration, secret, resolver, addr)
}
// RegisterWithConfig is a paid mutator transaction binding the contract method 0xf7a16963.
//
// Solidity: function registerWithConfig(string name, address owner, uint256 duration, bytes32 secret, address resolver, address addr) payable returns()
func (_ETHRegistrarControllerV1 *ETHRegistrarControllerV1TransactorSession) RegisterWithConfig(name string, owner common.Address, duration *big.Int, secret [32]byte, resolver common.Address, addr common.Address) (*types.Transaction, error) {
return _ETHRegistrarControllerV1.Contract.RegisterWithConfig(&_ETHRegistrarControllerV1.TransactOpts, name, owner, duration, secret, resolver, addr)
}
// Renew is a paid mutator transaction binding the contract method 0xacf1a841.
//
// Solidity: function renew(string name, uint256 duration) payable returns()
func (_ETHRegistrarControllerV1 *ETHRegistrarControllerV1Transactor) Renew(opts *bind.TransactOpts, name string, duration *big.Int) (*types.Transaction, error) {
return _ETHRegistrarControllerV1.contract.Transact(opts, "renew", name, duration)
}
// Renew is a paid mutator transaction binding the contract method 0xacf1a841.
//
// Solidity: function renew(string name, uint256 duration) payable returns()
func (_ETHRegistrarControllerV1 *ETHRegistrarControllerV1Session) Renew(name string, duration *big.Int) (*types.Transaction, error) {
return _ETHRegistrarControllerV1.Contract.Renew(&_ETHRegistrarControllerV1.TransactOpts, name, duration)
}
// Renew is a paid mutator transaction binding the contract method 0xacf1a841.
//
// Solidity: function renew(string name, uint256 duration) payable returns()
func (_ETHRegistrarControllerV1 *ETHRegistrarControllerV1TransactorSession) Renew(name string, duration *big.Int) (*types.Transaction, error) {
return _ETHRegistrarControllerV1.Contract.Renew(&_ETHRegistrarControllerV1.TransactOpts, name, duration)
}
// RenounceOwnership is a paid mutator transaction binding the contract method 0x715018a6.
//
// Solidity: function renounceOwnership() returns()
func (_ETHRegistrarControllerV1 *ETHRegistrarControllerV1Transactor) RenounceOwnership(opts *bind.TransactOpts) (*types.Transaction, error) {
return _ETHRegistrarControllerV1.contract.Transact(opts, "renounceOwnership")
}
// RenounceOwnership is a paid mutator transaction binding the contract method 0x715018a6.
//
// Solidity: function renounceOwnership() returns()
func (_ETHRegistrarControllerV1 *ETHRegistrarControllerV1Session) RenounceOwnership() (*types.Transaction, error) {
return _ETHRegistrarControllerV1.Contract.RenounceOwnership(&_ETHRegistrarControllerV1.TransactOpts)
}
// RenounceOwnership is a paid mutator transaction binding the contract method 0x715018a6.
//
// Solidity: function renounceOwnership() returns()
func (_ETHRegistrarControllerV1 *ETHRegistrarControllerV1TransactorSession) RenounceOwnership() (*types.Transaction, error) {
return _ETHRegistrarControllerV1.Contract.RenounceOwnership(&_ETHRegistrarControllerV1.TransactOpts)
}
// SetCommitmentAges is a paid mutator transaction binding the contract method 0x7e324479.
//
// Solidity: function setCommitmentAges(uint256 _minCommitmentAge, uint256 _maxCommitmentAge) returns()
func (_ETHRegistrarControllerV1 *ETHRegistrarControllerV1Transactor) SetCommitmentAges(opts *bind.TransactOpts, _minCommitmentAge *big.Int, _maxCommitmentAge *big.Int) (*types.Transaction, error) {
return _ETHRegistrarControllerV1.contract.Transact(opts, "setCommitmentAges", _minCommitmentAge, _maxCommitmentAge)
}
// SetCommitmentAges is a paid mutator transaction binding the contract method 0x7e324479.
//
// Solidity: function setCommitmentAges(uint256 _minCommitmentAge, uint256 _maxCommitmentAge) returns()
func (_ETHRegistrarControllerV1 *ETHRegistrarControllerV1Session) SetCommitmentAges(_minCommitmentAge *big.Int, _maxCommitmentAge *big.Int) (*types.Transaction, error) {
return _ETHRegistrarControllerV1.Contract.SetCommitmentAges(&_ETHRegistrarControllerV1.TransactOpts, _minCommitmentAge, _maxCommitmentAge)
}
// SetCommitmentAges is a paid mutator transaction binding the contract method 0x7e324479.
//
// Solidity: function setCommitmentAges(uint256 _minCommitmentAge, uint256 _maxCommitmentAge) returns()
func (_ETHRegistrarControllerV1 *ETHRegistrarControllerV1TransactorSession) SetCommitmentAges(_minCommitmentAge *big.Int, _maxCommitmentAge *big.Int) (*types.Transaction, error) {
return _ETHRegistrarControllerV1.Contract.SetCommitmentAges(&_ETHRegistrarControllerV1.TransactOpts, _minCommitmentAge, _maxCommitmentAge)
}
// SetPriceOracle is a paid mutator transaction binding the contract method 0x530e784f.
//
// Solidity: function setPriceOracle(address _prices) returns()
func (_ETHRegistrarControllerV1 *ETHRegistrarControllerV1Transactor) SetPriceOracle(opts *bind.TransactOpts, _prices common.Address) (*types.Transaction, error) {
return _ETHRegistrarControllerV1.contract.Transact(opts, "setPriceOracle", _prices)
}
// SetPriceOracle is a paid mutator transaction binding the contract method 0x530e784f.
//
// Solidity: function setPriceOracle(address _prices) returns()
func (_ETHRegistrarControllerV1 *ETHRegistrarControllerV1Session) SetPriceOracle(_prices common.Address) (*types.Transaction, error) {
return _ETHRegistrarControllerV1.Contract.SetPriceOracle(&_ETHRegistrarControllerV1.TransactOpts, _prices)
}
// SetPriceOracle is a paid mutator transaction binding the contract method 0x530e784f.
//
// Solidity: function setPriceOracle(address _prices) returns()
func (_ETHRegistrarControllerV1 *ETHRegistrarControllerV1TransactorSession) SetPriceOracle(_prices common.Address) (*types.Transaction, error) {
return _ETHRegistrarControllerV1.Contract.SetPriceOracle(&_ETHRegistrarControllerV1.TransactOpts, _prices)
}
// TransferOwnership is a paid mutator transaction binding the contract method 0xf2fde38b.
//
// Solidity: function transferOwnership(address newOwner) returns()
func (_ETHRegistrarControllerV1 *ETHRegistrarControllerV1Transactor) TransferOwnership(opts *bind.TransactOpts, newOwner common.Address) (*types.Transaction, error) {
return _ETHRegistrarControllerV1.contract.Transact(opts, "transferOwnership", newOwner)
}
// TransferOwnership is a paid mutator transaction binding the contract method 0xf2fde38b.
//
// Solidity: function transferOwnership(address newOwner) returns()
func (_ETHRegistrarControllerV1 *ETHRegistrarControllerV1Session) TransferOwnership(newOwner common.Address) (*types.Transaction, error) {
return _ETHRegistrarControllerV1.Contract.TransferOwnership(&_ETHRegistrarControllerV1.TransactOpts, newOwner)
}
// TransferOwnership is a paid mutator transaction binding the contract method 0xf2fde38b.
//
// Solidity: function transferOwnership(address newOwner) returns()
func (_ETHRegistrarControllerV1 *ETHRegistrarControllerV1TransactorSession) TransferOwnership(newOwner common.Address) (*types.Transaction, error) {
return _ETHRegistrarControllerV1.Contract.TransferOwnership(&_ETHRegistrarControllerV1.TransactOpts, newOwner)
}
// Withdraw is a paid mutator transaction binding the contract method 0x3ccfd60b.
//
// Solidity: function withdraw() returns()
func (_ETHRegistrarControllerV1 *ETHRegistrarControllerV1Transactor) Withdraw(opts *bind.TransactOpts) (*types.Transaction, error) {
return _ETHRegistrarControllerV1.contract.Transact(opts, "withdraw")
}
// Withdraw is a paid mutator transaction binding the contract method 0x3ccfd60b.
//
// Solidity: function withdraw() returns()
func (_ETHRegistrarControllerV1 *ETHRegistrarControllerV1Session) Withdraw() (*types.Transaction, error) {
return _ETHRegistrarControllerV1.Contract.Withdraw(&_ETHRegistrarControllerV1.TransactOpts)
}
// Withdraw is a paid mutator transaction binding the contract method 0x3ccfd60b.
//
// Solidity: function withdraw() returns()
func (_ETHRegistrarControllerV1 *ETHRegistrarControllerV1TransactorSession) Withdraw() (*types.Transaction, error) {
return _ETHRegistrarControllerV1.Contract.Withdraw(&_ETHRegistrarControllerV1.TransactOpts)
}
// ETHRegistrarControllerV1NameRegisteredIterator is returned from FilterNameRegistered and is used to iterate over the raw logs and unpacked data for NameRegistered events raised by the ETHRegistrarControllerV1 contract.
type ETHRegistrarControllerV1NameRegisteredIterator struct {
Event *ETHRegistrarControllerV1NameRegistered // 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 *ETHRegistrarControllerV1NameRegisteredIterator) 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(ETHRegistrarControllerV1NameRegistered)
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(ETHRegistrarControllerV1NameRegistered)
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 *ETHRegistrarControllerV1NameRegisteredIterator) Error() error {
return it.fail
}
// Close terminates the iteration process, releasing any pending underlying
// resources.
func (it *ETHRegistrarControllerV1NameRegisteredIterator) Close() error {
it.sub.Unsubscribe()
return nil
}
// ETHRegistrarControllerV1NameRegistered represents a NameRegistered event raised by the ETHRegistrarControllerV1 contract.
type ETHRegistrarControllerV1NameRegistered struct {
Name string
Label [32]byte
Owner common.Address
Cost *big.Int
Expires *big.Int
Raw types.Log // Blockchain specific contextual infos
}
// FilterNameRegistered is a free log retrieval operation binding the contract event 0xca6abbe9d7f11422cb6ca7629fbf6fe9efb1c621f71ce8f02b9f2a230097404f.
//
// Solidity: event NameRegistered(string name, bytes32 indexed label, address indexed owner, uint256 cost, uint256 expires)
func (_ETHRegistrarControllerV1 *ETHRegistrarControllerV1Filterer) FilterNameRegistered(opts *bind.FilterOpts, label [][32]byte, owner []common.Address) (*ETHRegistrarControllerV1NameRegisteredIterator, error) {
var labelRule []interface{}
for _, labelItem := range label {
labelRule = append(labelRule, labelItem)
}
var ownerRule []interface{}
for _, ownerItem := range owner {
ownerRule = append(ownerRule, ownerItem)
}
logs, sub, err := _ETHRegistrarControllerV1.contract.FilterLogs(opts, "NameRegistered", labelRule, ownerRule)
if err != nil {
return nil, err
}
return ÐRegistrarControllerV1NameRegisteredIterator{contract: _ETHRegistrarControllerV1.contract, event: "NameRegistered", logs: logs, sub: sub}, nil
}
// WatchNameRegistered is a free log subscription operation binding the contract event 0xca6abbe9d7f11422cb6ca7629fbf6fe9efb1c621f71ce8f02b9f2a230097404f.
//
// Solidity: event NameRegistered(string name, bytes32 indexed label, address indexed owner, uint256 cost, uint256 expires)
func (_ETHRegistrarControllerV1 *ETHRegistrarControllerV1Filterer) WatchNameRegistered(opts *bind.WatchOpts, sink chan<- *ETHRegistrarControllerV1NameRegistered, label [][32]byte, owner []common.Address) (event.Subscription, error) {
var labelRule []interface{}
for _, labelItem := range label {
labelRule = append(labelRule, labelItem)
}
var ownerRule []interface{}
for _, ownerItem := range owner {
ownerRule = append(ownerRule, ownerItem)
}
logs, sub, err := _ETHRegistrarControllerV1.contract.WatchLogs(opts, "NameRegistered", labelRule, ownerRule)
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(ETHRegistrarControllerV1NameRegistered)
if err := _ETHRegistrarControllerV1.contract.UnpackLog(event, "NameRegistered", 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
}
// ParseNameRegistered is a log parse operation binding the contract event 0xca6abbe9d7f11422cb6ca7629fbf6fe9efb1c621f71ce8f02b9f2a230097404f.
//
// Solidity: event NameRegistered(string name, bytes32 indexed label, address indexed owner, uint256 cost, uint256 expires)
func (_ETHRegistrarControllerV1 *ETHRegistrarControllerV1Filterer) ParseNameRegistered(log types.Log) (*ETHRegistrarControllerV1NameRegistered, error) {
event := new(ETHRegistrarControllerV1NameRegistered)
if err := _ETHRegistrarControllerV1.contract.UnpackLog(event, "NameRegistered", log); err != nil {
return nil, err
}
event.Raw = log
return event, nil
}
// ETHRegistrarControllerV1NameRenewedIterator is returned from FilterNameRenewed and is used to iterate over the raw logs and unpacked data for NameRenewed events raised by the ETHRegistrarControllerV1 contract.
type ETHRegistrarControllerV1NameRenewedIterator struct {
Event *ETHRegistrarControllerV1NameRenewed // 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 *ETHRegistrarControllerV1NameRenewedIterator) 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(ETHRegistrarControllerV1NameRenewed)
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(ETHRegistrarControllerV1NameRenewed)
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 *ETHRegistrarControllerV1NameRenewedIterator) Error() error {
return it.fail
}
// Close terminates the iteration process, releasing any pending underlying
// resources.
func (it *ETHRegistrarControllerV1NameRenewedIterator) Close() error {
it.sub.Unsubscribe()
return nil
}
// ETHRegistrarControllerV1NameRenewed represents a NameRenewed event raised by the ETHRegistrarControllerV1 contract.
type ETHRegistrarControllerV1NameRenewed struct {
Name string
Label [32]byte
Cost *big.Int
Expires *big.Int
Raw types.Log // Blockchain specific contextual infos
}
// FilterNameRenewed is a free log retrieval operation binding the contract event 0x3da24c024582931cfaf8267d8ed24d13a82a8068d5bd337d30ec45cea4e506ae.
//
// Solidity: event NameRenewed(string name, bytes32 indexed label, uint256 cost, uint256 expires)
func (_ETHRegistrarControllerV1 *ETHRegistrarControllerV1Filterer) FilterNameRenewed(opts *bind.FilterOpts, label [][32]byte) (*ETHRegistrarControllerV1NameRenewedIterator, error) {
var labelRule []interface{}
for _, labelItem := range label {
labelRule = append(labelRule, labelItem)
}
logs, sub, err := _ETHRegistrarControllerV1.contract.FilterLogs(opts, "NameRenewed", labelRule)
if err != nil {
return nil, err
}
return ÐRegistrarControllerV1NameRenewedIterator{contract: _ETHRegistrarControllerV1.contract, event: "NameRenewed", logs: logs, sub: sub}, nil
}
// WatchNameRenewed is a free log subscription operation binding the contract event 0x3da24c024582931cfaf8267d8ed24d13a82a8068d5bd337d30ec45cea4e506ae.
//
// Solidity: event NameRenewed(string name, bytes32 indexed label, uint256 cost, uint256 expires)
func (_ETHRegistrarControllerV1 *ETHRegistrarControllerV1Filterer) WatchNameRenewed(opts *bind.WatchOpts, sink chan<- *ETHRegistrarControllerV1NameRenewed, label [][32]byte) (event.Subscription, error) {
var labelRule []interface{}
for _, labelItem := range label {
labelRule = append(labelRule, labelItem)