/
BasView.go
713 lines (642 loc) · 34.5 KB
/
BasView.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
// Code generated - DO NOT EDIT.
// This file is a generated binding and any manual changes will be lost.
package eth
import (
"math/big"
"strings"
ethereum "github.com/ethereum/go-ethereum"
"github.com/ethereum/go-ethereum/accounts/abi"
"github.com/ethereum/go-ethereum/accounts/abi/bind"
"github.com/ethereum/go-ethereum/common"
"github.com/ethereum/go-ethereum/core/types"
"github.com/ethereum/go-ethereum/event"
)
// Reference imports to suppress errors if they are not otherwise used.
var (
_ = big.NewInt
_ = strings.NewReader
_ = ethereum.NotFound
_ = bind.Bind
_ = common.Big1
_ = types.BloomLookup
_ = event.NewSubscription
)
// BasViewABI is the input ABI used to generate the binding from.
const BasViewABI = "[{\"inputs\":[{\"internalType\":\"address\",\"name\":\"rel_addr\",\"type\":\"address\"}],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"constant\":false,\"inputs\":[{\"internalType\":\"address\",\"name\":\"newDao\",\"type\":\"address\"}],\"name\":\"ChangeDAO\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"DAOAddress\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[{\"internalType\":\"uint8\",\"name\":\"\",\"type\":\"uint8\"}],\"name\":\"ErrorCode\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"internalType\":\"address\",\"name\":\"new_rel\",\"type\":\"address\"}],\"name\":\"changeRelation\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[{\"internalType\":\"bytes\",\"name\":\"name\",\"type\":\"bytes\"},{\"internalType\":\"bool\",\"name\":\"isCustom\",\"type\":\"bool\"},{\"internalType\":\"uint256\",\"name\":\"cusPrice\",\"type\":\"uint256\"},{\"internalType\":\"uint8\",\"name\":\"durationInYear\",\"type\":\"uint8\"}],\"name\":\"checkRootRegistry\",\"outputs\":[{\"internalType\":\"uint8\",\"name\":\"\",\"type\":\"uint8\"},{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"},{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[{\"internalType\":\"bytes\",\"name\":\"rName\",\"type\":\"bytes\"},{\"internalType\":\"bytes\",\"name\":\"sName\",\"type\":\"bytes\"},{\"internalType\":\"uint256\",\"name\":\"durationInYear\",\"type\":\"uint256\"}],\"name\":\"checkSubRegistry\",\"outputs\":[{\"internalType\":\"uint8\",\"name\":\"\",\"type\":\"uint8\"},{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"hash\",\"type\":\"bytes32\"}],\"name\":\"domainIsWild\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"getOANNParams\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"MAX_YEAR\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"AROOT_GAS\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"BROOT_GAS\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"SUB_GAS\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"CUSTOM_PRICE_GAS\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"nameHash\",\"type\":\"bytes32\"}],\"name\":\"queryDomainConfigs\",\"outputs\":[{\"internalType\":\"bytes\",\"name\":\"A\",\"type\":\"bytes\"},{\"internalType\":\"bytes\",\"name\":\"AAAA\",\"type\":\"bytes\"},{\"internalType\":\"bytes\",\"name\":\"MX\",\"type\":\"bytes\"},{\"internalType\":\"bytes\",\"name\":\"BlockChain\",\"type\":\"bytes\"},{\"internalType\":\"bytes\",\"name\":\"IOTA\",\"type\":\"bytes\"},{\"internalType\":\"bytes\",\"name\":\"CName\",\"type\":\"bytes\"},{\"internalType\":\"bytes\",\"name\":\"MXBCA\",\"type\":\"bytes\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"nameHash\",\"type\":\"bytes32\"}],\"name\":\"queryDomainEmailInfo\",\"outputs\":[{\"internalType\":\"bytes\",\"name\":\"name\",\"type\":\"bytes\"},{\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"expiration\",\"type\":\"uint256\"},{\"internalType\":\"bool\",\"name\":\"isActive\",\"type\":\"bool\"},{\"internalType\":\"bool\",\"name\":\"openToPublic\",\"type\":\"bool\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"nameHash\",\"type\":\"bytes32\"}],\"name\":\"queryDomainInfo\",\"outputs\":[{\"internalType\":\"bytes\",\"name\":\"name\",\"type\":\"bytes\"},{\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"expiration\",\"type\":\"uint256\"},{\"internalType\":\"bool\",\"name\":\"isRoot\",\"type\":\"bool\"},{\"internalType\":\"bool\",\"name\":\"rIsOpen\",\"type\":\"bool\"},{\"internalType\":\"bool\",\"name\":\"rIsCustom\",\"type\":\"bool\"},{\"internalType\":\"bool\",\"name\":\"rIsRare\",\"type\":\"bool\"},{\"internalType\":\"uint256\",\"name\":\"rCusPrice\",\"type\":\"uint256\"},{\"internalType\":\"bytes32\",\"name\":\"sRootHash\",\"type\":\"bytes32\"},{\"internalType\":\"bool\",\"name\":\"isMarketOrder\",\"type\":\"bool\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"mailHash\",\"type\":\"bytes32\"}],\"name\":\"queryEmailInfo\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"expiration\",\"type\":\"uint256\"},{\"internalType\":\"bytes32\",\"name\":\"domainHash\",\"type\":\"bytes32\"},{\"internalType\":\"bool\",\"name\":\"isValid\",\"type\":\"bool\"},{\"internalType\":\"bytes\",\"name\":\"aliasName\",\"type\":\"bytes\"},{\"internalType\":\"bytes\",\"name\":\"bcAddress\",\"type\":\"bytes\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[{\"internalType\":\"address\",\"name\":\"seller\",\"type\":\"address\"},{\"internalType\":\"bytes32\",\"name\":\"nameHash\",\"type\":\"bytes32\"}],\"name\":\"queryOrderInfo\",\"outputs\":[{\"internalType\":\"bytes\",\"name\":\"name\",\"type\":\"bytes\"},{\"internalType\":\"uint256\",\"name\":\"price\",\"type\":\"uint256\"},{\"internalType\":\"bool\",\"name\":\"isValid\",\"type\":\"bool\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"rel\",\"outputs\":[{\"internalType\":\"contractBasRelations\",\"name\":\"\",\"type\":\"address\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"internalType\":\"uint8\",\"name\":\"index\",\"type\":\"uint8\"},{\"internalType\":\"string\",\"name\":\"reason\",\"type\":\"string\"}],\"name\":\"setErrorCode\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"}]"
// BasView is an auto generated Go binding around an Ethereum contract.
type BasView struct {
BasViewCaller // Read-only binding to the contract
BasViewTransactor // Write-only binding to the contract
BasViewFilterer // Log filterer for contract events
}
// BasViewCaller is an auto generated read-only Go binding around an Ethereum contract.
type BasViewCaller struct {
contract *bind.BoundContract // Generic contract wrapper for the low level calls
}
// BasViewTransactor is an auto generated write-only Go binding around an Ethereum contract.
type BasViewTransactor struct {
contract *bind.BoundContract // Generic contract wrapper for the low level calls
}
// BasViewFilterer is an auto generated log filtering Go binding around an Ethereum contract events.
type BasViewFilterer struct {
contract *bind.BoundContract // Generic contract wrapper for the low level calls
}
// BasViewSession is an auto generated Go binding around an Ethereum contract,
// with pre-set call and transact options.
type BasViewSession struct {
Contract *BasView // 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
}
// BasViewCallerSession is an auto generated read-only Go binding around an Ethereum contract,
// with pre-set call options.
type BasViewCallerSession struct {
Contract *BasViewCaller // Generic contract caller binding to set the session for
CallOpts bind.CallOpts // Call options to use throughout this session
}
// BasViewTransactorSession is an auto generated write-only Go binding around an Ethereum contract,
// with pre-set transact options.
type BasViewTransactorSession struct {
Contract *BasViewTransactor // Generic contract transactor binding to set the session for
TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session
}
// BasViewRaw is an auto generated low-level Go binding around an Ethereum contract.
type BasViewRaw struct {
Contract *BasView // Generic contract binding to access the raw methods on
}
// BasViewCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract.
type BasViewCallerRaw struct {
Contract *BasViewCaller // Generic read-only contract binding to access the raw methods on
}
// BasViewTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract.
type BasViewTransactorRaw struct {
Contract *BasViewTransactor // Generic write-only contract binding to access the raw methods on
}
// NewBasView creates a new instance of BasView, bound to a specific deployed contract.
func NewBasView(address common.Address, backend bind.ContractBackend) (*BasView, error) {
contract, err := bindBasView(address, backend, backend, backend)
if err != nil {
return nil, err
}
return &BasView{BasViewCaller: BasViewCaller{contract: contract}, BasViewTransactor: BasViewTransactor{contract: contract}, BasViewFilterer: BasViewFilterer{contract: contract}}, nil
}
// NewBasViewCaller creates a new read-only instance of BasView, bound to a specific deployed contract.
func NewBasViewCaller(address common.Address, caller bind.ContractCaller) (*BasViewCaller, error) {
contract, err := bindBasView(address, caller, nil, nil)
if err != nil {
return nil, err
}
return &BasViewCaller{contract: contract}, nil
}
// NewBasViewTransactor creates a new write-only instance of BasView, bound to a specific deployed contract.
func NewBasViewTransactor(address common.Address, transactor bind.ContractTransactor) (*BasViewTransactor, error) {
contract, err := bindBasView(address, nil, transactor, nil)
if err != nil {
return nil, err
}
return &BasViewTransactor{contract: contract}, nil
}
// NewBasViewFilterer creates a new log filterer instance of BasView, bound to a specific deployed contract.
func NewBasViewFilterer(address common.Address, filterer bind.ContractFilterer) (*BasViewFilterer, error) {
contract, err := bindBasView(address, nil, nil, filterer)
if err != nil {
return nil, err
}
return &BasViewFilterer{contract: contract}, nil
}
// bindBasView binds a generic wrapper to an already deployed contract.
func bindBasView(address common.Address, caller bind.ContractCaller, transactor bind.ContractTransactor, filterer bind.ContractFilterer) (*bind.BoundContract, error) {
parsed, err := abi.JSON(strings.NewReader(BasViewABI))
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 (_BasView *BasViewRaw) Call(opts *bind.CallOpts, result interface{}, method string, params ...interface{}) error {
return _BasView.Contract.BasViewCaller.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 (_BasView *BasViewRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) {
return _BasView.Contract.BasViewTransactor.contract.Transfer(opts)
}
// Transact invokes the (paid) contract method with params as input values.
func (_BasView *BasViewRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) {
return _BasView.Contract.BasViewTransactor.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 (_BasView *BasViewCallerRaw) Call(opts *bind.CallOpts, result interface{}, method string, params ...interface{}) error {
return _BasView.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 (_BasView *BasViewTransactorRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) {
return _BasView.Contract.contract.Transfer(opts)
}
// Transact invokes the (paid) contract method with params as input values.
func (_BasView *BasViewTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) {
return _BasView.Contract.contract.Transact(opts, method, params...)
}
// DAOAddress is a free data retrieval call binding the contract method 0xd392eab1.
//
// Solidity: function DAOAddress() view returns(address)
func (_BasView *BasViewCaller) DAOAddress(opts *bind.CallOpts) (common.Address, error) {
var (
ret0 = new(common.Address)
)
out := ret0
err := _BasView.contract.Call(opts, out, "DAOAddress")
return *ret0, err
}
// DAOAddress is a free data retrieval call binding the contract method 0xd392eab1.
//
// Solidity: function DAOAddress() view returns(address)
func (_BasView *BasViewSession) DAOAddress() (common.Address, error) {
return _BasView.Contract.DAOAddress(&_BasView.CallOpts)
}
// DAOAddress is a free data retrieval call binding the contract method 0xd392eab1.
//
// Solidity: function DAOAddress() view returns(address)
func (_BasView *BasViewCallerSession) DAOAddress() (common.Address, error) {
return _BasView.Contract.DAOAddress(&_BasView.CallOpts)
}
// ErrorCode is a free data retrieval call binding the contract method 0x5d05fa53.
//
// Solidity: function ErrorCode(uint8 ) view returns(string)
func (_BasView *BasViewCaller) ErrorCode(opts *bind.CallOpts, arg0 uint8) (string, error) {
var (
ret0 = new(string)
)
out := ret0
err := _BasView.contract.Call(opts, out, "ErrorCode", arg0)
return *ret0, err
}
// ErrorCode is a free data retrieval call binding the contract method 0x5d05fa53.
//
// Solidity: function ErrorCode(uint8 ) view returns(string)
func (_BasView *BasViewSession) ErrorCode(arg0 uint8) (string, error) {
return _BasView.Contract.ErrorCode(&_BasView.CallOpts, arg0)
}
// ErrorCode is a free data retrieval call binding the contract method 0x5d05fa53.
//
// Solidity: function ErrorCode(uint8 ) view returns(string)
func (_BasView *BasViewCallerSession) ErrorCode(arg0 uint8) (string, error) {
return _BasView.Contract.ErrorCode(&_BasView.CallOpts, arg0)
}
// CheckRootRegistry is a free data retrieval call binding the contract method 0xa84ccbf4.
//
// Solidity: function checkRootRegistry(bytes name, bool isCustom, uint256 cusPrice, uint8 durationInYear) view returns(uint8, bool, uint256)
func (_BasView *BasViewCaller) CheckRootRegistry(opts *bind.CallOpts, name []byte, isCustom bool, cusPrice *big.Int, durationInYear uint8) (uint8, bool, *big.Int, error) {
var (
ret0 = new(uint8)
ret1 = new(bool)
ret2 = new(*big.Int)
)
out := &[]interface{}{
ret0,
ret1,
ret2,
}
err := _BasView.contract.Call(opts, out, "checkRootRegistry", name, isCustom, cusPrice, durationInYear)
return *ret0, *ret1, *ret2, err
}
// CheckRootRegistry is a free data retrieval call binding the contract method 0xa84ccbf4.
//
// Solidity: function checkRootRegistry(bytes name, bool isCustom, uint256 cusPrice, uint8 durationInYear) view returns(uint8, bool, uint256)
func (_BasView *BasViewSession) CheckRootRegistry(name []byte, isCustom bool, cusPrice *big.Int, durationInYear uint8) (uint8, bool, *big.Int, error) {
return _BasView.Contract.CheckRootRegistry(&_BasView.CallOpts, name, isCustom, cusPrice, durationInYear)
}
// CheckRootRegistry is a free data retrieval call binding the contract method 0xa84ccbf4.
//
// Solidity: function checkRootRegistry(bytes name, bool isCustom, uint256 cusPrice, uint8 durationInYear) view returns(uint8, bool, uint256)
func (_BasView *BasViewCallerSession) CheckRootRegistry(name []byte, isCustom bool, cusPrice *big.Int, durationInYear uint8) (uint8, bool, *big.Int, error) {
return _BasView.Contract.CheckRootRegistry(&_BasView.CallOpts, name, isCustom, cusPrice, durationInYear)
}
// CheckSubRegistry is a free data retrieval call binding the contract method 0xd13b893f.
//
// Solidity: function checkSubRegistry(bytes rName, bytes sName, uint256 durationInYear) view returns(uint8, uint256)
func (_BasView *BasViewCaller) CheckSubRegistry(opts *bind.CallOpts, rName []byte, sName []byte, durationInYear *big.Int) (uint8, *big.Int, error) {
var (
ret0 = new(uint8)
ret1 = new(*big.Int)
)
out := &[]interface{}{
ret0,
ret1,
}
err := _BasView.contract.Call(opts, out, "checkSubRegistry", rName, sName, durationInYear)
return *ret0, *ret1, err
}
// CheckSubRegistry is a free data retrieval call binding the contract method 0xd13b893f.
//
// Solidity: function checkSubRegistry(bytes rName, bytes sName, uint256 durationInYear) view returns(uint8, uint256)
func (_BasView *BasViewSession) CheckSubRegistry(rName []byte, sName []byte, durationInYear *big.Int) (uint8, *big.Int, error) {
return _BasView.Contract.CheckSubRegistry(&_BasView.CallOpts, rName, sName, durationInYear)
}
// CheckSubRegistry is a free data retrieval call binding the contract method 0xd13b893f.
//
// Solidity: function checkSubRegistry(bytes rName, bytes sName, uint256 durationInYear) view returns(uint8, uint256)
func (_BasView *BasViewCallerSession) CheckSubRegistry(rName []byte, sName []byte, durationInYear *big.Int) (uint8, *big.Int, error) {
return _BasView.Contract.CheckSubRegistry(&_BasView.CallOpts, rName, sName, durationInYear)
}
// DomainIsWild is a free data retrieval call binding the contract method 0x256dec96.
//
// Solidity: function domainIsWild(bytes32 hash) view returns(bool)
func (_BasView *BasViewCaller) DomainIsWild(opts *bind.CallOpts, hash [32]byte) (bool, error) {
var (
ret0 = new(bool)
)
out := ret0
err := _BasView.contract.Call(opts, out, "domainIsWild", hash)
return *ret0, err
}
// DomainIsWild is a free data retrieval call binding the contract method 0x256dec96.
//
// Solidity: function domainIsWild(bytes32 hash) view returns(bool)
func (_BasView *BasViewSession) DomainIsWild(hash [32]byte) (bool, error) {
return _BasView.Contract.DomainIsWild(&_BasView.CallOpts, hash)
}
// DomainIsWild is a free data retrieval call binding the contract method 0x256dec96.
//
// Solidity: function domainIsWild(bytes32 hash) view returns(bool)
func (_BasView *BasViewCallerSession) DomainIsWild(hash [32]byte) (bool, error) {
return _BasView.Contract.DomainIsWild(&_BasView.CallOpts, hash)
}
// GetOANNParams is a free data retrieval call binding the contract method 0xff32cd20.
//
// Solidity: function getOANNParams() view returns(uint256 MAX_YEAR, uint256 AROOT_GAS, uint256 BROOT_GAS, uint256 SUB_GAS, uint256 CUSTOM_PRICE_GAS)
func (_BasView *BasViewCaller) GetOANNParams(opts *bind.CallOpts) (struct {
MAXYEAR *big.Int
AROOTGAS *big.Int
BROOTGAS *big.Int
SUBGAS *big.Int
CUSTOMPRICEGAS *big.Int
}, error) {
ret := new(struct {
MAXYEAR *big.Int
AROOTGAS *big.Int
BROOTGAS *big.Int
SUBGAS *big.Int
CUSTOMPRICEGAS *big.Int
})
out := ret
err := _BasView.contract.Call(opts, out, "getOANNParams")
return *ret, err
}
// GetOANNParams is a free data retrieval call binding the contract method 0xff32cd20.
//
// Solidity: function getOANNParams() view returns(uint256 MAX_YEAR, uint256 AROOT_GAS, uint256 BROOT_GAS, uint256 SUB_GAS, uint256 CUSTOM_PRICE_GAS)
func (_BasView *BasViewSession) GetOANNParams() (struct {
MAXYEAR *big.Int
AROOTGAS *big.Int
BROOTGAS *big.Int
SUBGAS *big.Int
CUSTOMPRICEGAS *big.Int
}, error) {
return _BasView.Contract.GetOANNParams(&_BasView.CallOpts)
}
// GetOANNParams is a free data retrieval call binding the contract method 0xff32cd20.
//
// Solidity: function getOANNParams() view returns(uint256 MAX_YEAR, uint256 AROOT_GAS, uint256 BROOT_GAS, uint256 SUB_GAS, uint256 CUSTOM_PRICE_GAS)
func (_BasView *BasViewCallerSession) GetOANNParams() (struct {
MAXYEAR *big.Int
AROOTGAS *big.Int
BROOTGAS *big.Int
SUBGAS *big.Int
CUSTOMPRICEGAS *big.Int
}, error) {
return _BasView.Contract.GetOANNParams(&_BasView.CallOpts)
}
// QueryDomainConfigs is a free data retrieval call binding the contract method 0x4f69b3a2.
//
// Solidity: function queryDomainConfigs(bytes32 nameHash) view returns(bytes A, bytes AAAA, bytes MX, bytes BlockChain, bytes IOTA, bytes CName, bytes MXBCA)
func (_BasView *BasViewCaller) QueryDomainConfigs(opts *bind.CallOpts, nameHash [32]byte) (struct {
A []byte
AAAA []byte
MX []byte
BlockChain []byte
IOTA []byte
CName []byte
MXBCA []byte
}, error) {
ret := new(struct {
A []byte
AAAA []byte
MX []byte
BlockChain []byte
IOTA []byte
CName []byte
MXBCA []byte
})
out := ret
err := _BasView.contract.Call(opts, out, "queryDomainConfigs", nameHash)
return *ret, err
}
// QueryDomainConfigs is a free data retrieval call binding the contract method 0x4f69b3a2.
//
// Solidity: function queryDomainConfigs(bytes32 nameHash) view returns(bytes A, bytes AAAA, bytes MX, bytes BlockChain, bytes IOTA, bytes CName, bytes MXBCA)
func (_BasView *BasViewSession) QueryDomainConfigs(nameHash [32]byte) (struct {
A []byte
AAAA []byte
MX []byte
BlockChain []byte
IOTA []byte
CName []byte
MXBCA []byte
}, error) {
return _BasView.Contract.QueryDomainConfigs(&_BasView.CallOpts, nameHash)
}
// QueryDomainConfigs is a free data retrieval call binding the contract method 0x4f69b3a2.
//
// Solidity: function queryDomainConfigs(bytes32 nameHash) view returns(bytes A, bytes AAAA, bytes MX, bytes BlockChain, bytes IOTA, bytes CName, bytes MXBCA)
func (_BasView *BasViewCallerSession) QueryDomainConfigs(nameHash [32]byte) (struct {
A []byte
AAAA []byte
MX []byte
BlockChain []byte
IOTA []byte
CName []byte
MXBCA []byte
}, error) {
return _BasView.Contract.QueryDomainConfigs(&_BasView.CallOpts, nameHash)
}
// QueryDomainEmailInfo is a free data retrieval call binding the contract method 0x1f766f14.
//
// Solidity: function queryDomainEmailInfo(bytes32 nameHash) view returns(bytes name, address owner, uint256 expiration, bool isActive, bool openToPublic)
func (_BasView *BasViewCaller) QueryDomainEmailInfo(opts *bind.CallOpts, nameHash [32]byte) (struct {
Name []byte
Owner common.Address
Expiration *big.Int
IsActive bool
OpenToPublic bool
}, error) {
ret := new(struct {
Name []byte
Owner common.Address
Expiration *big.Int
IsActive bool
OpenToPublic bool
})
out := ret
err := _BasView.contract.Call(opts, out, "queryDomainEmailInfo", nameHash)
return *ret, err
}
// QueryDomainEmailInfo is a free data retrieval call binding the contract method 0x1f766f14.
//
// Solidity: function queryDomainEmailInfo(bytes32 nameHash) view returns(bytes name, address owner, uint256 expiration, bool isActive, bool openToPublic)
func (_BasView *BasViewSession) QueryDomainEmailInfo(nameHash [32]byte) (struct {
Name []byte
Owner common.Address
Expiration *big.Int
IsActive bool
OpenToPublic bool
}, error) {
return _BasView.Contract.QueryDomainEmailInfo(&_BasView.CallOpts, nameHash)
}
// QueryDomainEmailInfo is a free data retrieval call binding the contract method 0x1f766f14.
//
// Solidity: function queryDomainEmailInfo(bytes32 nameHash) view returns(bytes name, address owner, uint256 expiration, bool isActive, bool openToPublic)
func (_BasView *BasViewCallerSession) QueryDomainEmailInfo(nameHash [32]byte) (struct {
Name []byte
Owner common.Address
Expiration *big.Int
IsActive bool
OpenToPublic bool
}, error) {
return _BasView.Contract.QueryDomainEmailInfo(&_BasView.CallOpts, nameHash)
}
// QueryDomainInfo is a free data retrieval call binding the contract method 0x3870d91e.
//
// Solidity: function queryDomainInfo(bytes32 nameHash) view returns(bytes name, address owner, uint256 expiration, bool isRoot, bool rIsOpen, bool rIsCustom, bool rIsRare, uint256 rCusPrice, bytes32 sRootHash, bool isMarketOrder)
func (_BasView *BasViewCaller) QueryDomainInfo(opts *bind.CallOpts, nameHash [32]byte) (struct {
Name []byte
Owner common.Address
Expiration *big.Int
IsRoot bool
RIsOpen bool
RIsCustom bool
RIsRare bool
RCusPrice *big.Int
SRootHash [32]byte
IsMarketOrder bool
}, error) {
ret := new(struct {
Name []byte
Owner common.Address
Expiration *big.Int
IsRoot bool
RIsOpen bool
RIsCustom bool
RIsRare bool
RCusPrice *big.Int
SRootHash [32]byte
IsMarketOrder bool
})
out := ret
err := _BasView.contract.Call(opts, out, "queryDomainInfo", nameHash)
return *ret, err
}
// QueryDomainInfo is a free data retrieval call binding the contract method 0x3870d91e.
//
// Solidity: function queryDomainInfo(bytes32 nameHash) view returns(bytes name, address owner, uint256 expiration, bool isRoot, bool rIsOpen, bool rIsCustom, bool rIsRare, uint256 rCusPrice, bytes32 sRootHash, bool isMarketOrder)
func (_BasView *BasViewSession) QueryDomainInfo(nameHash [32]byte) (struct {
Name []byte
Owner common.Address
Expiration *big.Int
IsRoot bool
RIsOpen bool
RIsCustom bool
RIsRare bool
RCusPrice *big.Int
SRootHash [32]byte
IsMarketOrder bool
}, error) {
return _BasView.Contract.QueryDomainInfo(&_BasView.CallOpts, nameHash)
}
// QueryDomainInfo is a free data retrieval call binding the contract method 0x3870d91e.
//
// Solidity: function queryDomainInfo(bytes32 nameHash) view returns(bytes name, address owner, uint256 expiration, bool isRoot, bool rIsOpen, bool rIsCustom, bool rIsRare, uint256 rCusPrice, bytes32 sRootHash, bool isMarketOrder)
func (_BasView *BasViewCallerSession) QueryDomainInfo(nameHash [32]byte) (struct {
Name []byte
Owner common.Address
Expiration *big.Int
IsRoot bool
RIsOpen bool
RIsCustom bool
RIsRare bool
RCusPrice *big.Int
SRootHash [32]byte
IsMarketOrder bool
}, error) {
return _BasView.Contract.QueryDomainInfo(&_BasView.CallOpts, nameHash)
}
// QueryEmailInfo is a free data retrieval call binding the contract method 0xa806e95c.
//
// Solidity: function queryEmailInfo(bytes32 mailHash) view returns(address owner, uint256 expiration, bytes32 domainHash, bool isValid, bytes aliasName, bytes bcAddress)
func (_BasView *BasViewCaller) QueryEmailInfo(opts *bind.CallOpts, mailHash [32]byte) (struct {
Owner common.Address
Expiration *big.Int
DomainHash [32]byte
IsValid bool
AliasName []byte
BcAddress []byte
}, error) {
ret := new(struct {
Owner common.Address
Expiration *big.Int
DomainHash [32]byte
IsValid bool
AliasName []byte
BcAddress []byte
})
out := ret
err := _BasView.contract.Call(opts, out, "queryEmailInfo", mailHash)
return *ret, err
}
// QueryEmailInfo is a free data retrieval call binding the contract method 0xa806e95c.
//
// Solidity: function queryEmailInfo(bytes32 mailHash) view returns(address owner, uint256 expiration, bytes32 domainHash, bool isValid, bytes aliasName, bytes bcAddress)
func (_BasView *BasViewSession) QueryEmailInfo(mailHash [32]byte) (struct {
Owner common.Address
Expiration *big.Int
DomainHash [32]byte
IsValid bool
AliasName []byte
BcAddress []byte
}, error) {
return _BasView.Contract.QueryEmailInfo(&_BasView.CallOpts, mailHash)
}
// QueryEmailInfo is a free data retrieval call binding the contract method 0xa806e95c.
//
// Solidity: function queryEmailInfo(bytes32 mailHash) view returns(address owner, uint256 expiration, bytes32 domainHash, bool isValid, bytes aliasName, bytes bcAddress)
func (_BasView *BasViewCallerSession) QueryEmailInfo(mailHash [32]byte) (struct {
Owner common.Address
Expiration *big.Int
DomainHash [32]byte
IsValid bool
AliasName []byte
BcAddress []byte
}, error) {
return _BasView.Contract.QueryEmailInfo(&_BasView.CallOpts, mailHash)
}
// QueryOrderInfo is a free data retrieval call binding the contract method 0xd8d0db68.
//
// Solidity: function queryOrderInfo(address seller, bytes32 nameHash) view returns(bytes name, uint256 price, bool isValid)
func (_BasView *BasViewCaller) QueryOrderInfo(opts *bind.CallOpts, seller common.Address, nameHash [32]byte) (struct {
Name []byte
Price *big.Int
IsValid bool
}, error) {
ret := new(struct {
Name []byte
Price *big.Int
IsValid bool
})
out := ret
err := _BasView.contract.Call(opts, out, "queryOrderInfo", seller, nameHash)
return *ret, err
}
// QueryOrderInfo is a free data retrieval call binding the contract method 0xd8d0db68.
//
// Solidity: function queryOrderInfo(address seller, bytes32 nameHash) view returns(bytes name, uint256 price, bool isValid)
func (_BasView *BasViewSession) QueryOrderInfo(seller common.Address, nameHash [32]byte) (struct {
Name []byte
Price *big.Int
IsValid bool
}, error) {
return _BasView.Contract.QueryOrderInfo(&_BasView.CallOpts, seller, nameHash)
}
// QueryOrderInfo is a free data retrieval call binding the contract method 0xd8d0db68.
//
// Solidity: function queryOrderInfo(address seller, bytes32 nameHash) view returns(bytes name, uint256 price, bool isValid)
func (_BasView *BasViewCallerSession) QueryOrderInfo(seller common.Address, nameHash [32]byte) (struct {
Name []byte
Price *big.Int
IsValid bool
}, error) {
return _BasView.Contract.QueryOrderInfo(&_BasView.CallOpts, seller, nameHash)
}
// Rel is a free data retrieval call binding the contract method 0xce26e78a.
//
// Solidity: function rel() view returns(address)
func (_BasView *BasViewCaller) Rel(opts *bind.CallOpts) (common.Address, error) {
var (
ret0 = new(common.Address)
)
out := ret0
err := _BasView.contract.Call(opts, out, "rel")
return *ret0, err
}
// Rel is a free data retrieval call binding the contract method 0xce26e78a.
//
// Solidity: function rel() view returns(address)
func (_BasView *BasViewSession) Rel() (common.Address, error) {
return _BasView.Contract.Rel(&_BasView.CallOpts)
}
// Rel is a free data retrieval call binding the contract method 0xce26e78a.
//
// Solidity: function rel() view returns(address)
func (_BasView *BasViewCallerSession) Rel() (common.Address, error) {
return _BasView.Contract.Rel(&_BasView.CallOpts)
}
// ChangeDAO is a paid mutator transaction binding the contract method 0x8a42876b.
//
// Solidity: function ChangeDAO(address newDao) returns()
func (_BasView *BasViewTransactor) ChangeDAO(opts *bind.TransactOpts, newDao common.Address) (*types.Transaction, error) {
return _BasView.contract.Transact(opts, "ChangeDAO", newDao)
}
// ChangeDAO is a paid mutator transaction binding the contract method 0x8a42876b.
//
// Solidity: function ChangeDAO(address newDao) returns()
func (_BasView *BasViewSession) ChangeDAO(newDao common.Address) (*types.Transaction, error) {
return _BasView.Contract.ChangeDAO(&_BasView.TransactOpts, newDao)
}
// ChangeDAO is a paid mutator transaction binding the contract method 0x8a42876b.
//
// Solidity: function ChangeDAO(address newDao) returns()
func (_BasView *BasViewTransactorSession) ChangeDAO(newDao common.Address) (*types.Transaction, error) {
return _BasView.Contract.ChangeDAO(&_BasView.TransactOpts, newDao)
}
// ChangeRelation is a paid mutator transaction binding the contract method 0x57b29ef4.
//
// Solidity: function changeRelation(address new_rel) returns()
func (_BasView *BasViewTransactor) ChangeRelation(opts *bind.TransactOpts, new_rel common.Address) (*types.Transaction, error) {
return _BasView.contract.Transact(opts, "changeRelation", new_rel)
}
// ChangeRelation is a paid mutator transaction binding the contract method 0x57b29ef4.
//
// Solidity: function changeRelation(address new_rel) returns()
func (_BasView *BasViewSession) ChangeRelation(new_rel common.Address) (*types.Transaction, error) {
return _BasView.Contract.ChangeRelation(&_BasView.TransactOpts, new_rel)
}
// ChangeRelation is a paid mutator transaction binding the contract method 0x57b29ef4.
//
// Solidity: function changeRelation(address new_rel) returns()
func (_BasView *BasViewTransactorSession) ChangeRelation(new_rel common.Address) (*types.Transaction, error) {
return _BasView.Contract.ChangeRelation(&_BasView.TransactOpts, new_rel)
}
// SetErrorCode is a paid mutator transaction binding the contract method 0x4411c158.
//
// Solidity: function setErrorCode(uint8 index, string reason) returns()
func (_BasView *BasViewTransactor) SetErrorCode(opts *bind.TransactOpts, index uint8, reason string) (*types.Transaction, error) {
return _BasView.contract.Transact(opts, "setErrorCode", index, reason)
}
// SetErrorCode is a paid mutator transaction binding the contract method 0x4411c158.
//
// Solidity: function setErrorCode(uint8 index, string reason) returns()
func (_BasView *BasViewSession) SetErrorCode(index uint8, reason string) (*types.Transaction, error) {
return _BasView.Contract.SetErrorCode(&_BasView.TransactOpts, index, reason)
}
// SetErrorCode is a paid mutator transaction binding the contract method 0x4411c158.
//
// Solidity: function setErrorCode(uint8 index, string reason) returns()
func (_BasView *BasViewTransactorSession) SetErrorCode(index uint8, reason string) (*types.Transaction, error) {
return _BasView.Contract.SetErrorCode(&_BasView.TransactOpts, index, reason)
}