-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfirmations.go
2493 lines (2187 loc) · 129 KB
/
confirmations.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 gost
import (
"math/big"
"strings"
"github.com/gochain/gochain/v3"
"github.com/gochain/gochain/v3/accounts/abi"
"github.com/gochain/gochain/v3/accounts/abi/bind"
"github.com/gochain/gochain/v3/common"
"github.com/gochain/gochain/v3/core/types"
"github.com/gochain/gochain/v3/event"
)
// Reference imports to suppress errors if they are not otherwise used.
var (
_ = big.NewInt
_ = strings.NewReader
_ = gochain.NotFound
_ = abi.U256
_ = bind.Bind
_ = common.Big1
_ = types.BloomLookup
_ = event.NewSubscription
)
// AddressSetABI is the input ABI used to generate the binding from.
const AddressSetABI = "[]"
// AddressSetFuncSigs maps the 4-byte function signature to its string representation.
var AddressSetFuncSigs = map[string]string{
"e207783c": "majority(AddressSet.Set storage)",
}
// AddressSetBin is the compiled bytecode used for deploying new contracts.
const AddressSetBin = "0x60a4610024600b82828239805160001a607314601757fe5b30600052607381538281f3fe730000000000000000000000000000000000000000301460806040526004361060335760003560e01c8063e207783c146038575b600080fd5b605260048036036020811015604c57600080fd5b50356064565b60408051918252519081900360200190f35b54600290046001019056fea265627a7a7231582081dfa07501e6d34e5edde93510f6808a70476bbdb4c818ccf5dbdfdd219b202664736f6c63430005100032"
// DeployAddressSet deploys a new GoChain contract, binding an instance of AddressSet to it.
func DeployAddressSet(auth *bind.TransactOpts, backend bind.ContractBackend) (common.Address, *types.Transaction, *AddressSet, error) {
parsed, err := abi.JSON(strings.NewReader(AddressSetABI))
if err != nil {
return common.Address{}, nil, nil, err
}
addressSetBin := AddressSetBin
address, tx, contract, err := bind.DeployContract(auth, parsed, common.FromHex(addressSetBin), backend)
if err != nil {
return common.Address{}, nil, nil, err
}
return address, tx, &AddressSet{AddressSetCaller: AddressSetCaller{contract: contract}, AddressSetTransactor: AddressSetTransactor{contract: contract}, AddressSetFilterer: AddressSetFilterer{contract: contract}}, nil
}
// AddressSet is an auto generated Go binding around an GoChain contract.
type AddressSet struct {
AddressSetCaller // Read-only binding to the contract
AddressSetTransactor // Write-only binding to the contract
AddressSetFilterer // Log filterer for contract events
}
// AddressSetCaller is an auto generated read-only Go binding around an GoChain contract.
type AddressSetCaller struct {
contract *bind.BoundContract // Generic contract wrapper for the low level calls
}
// AddressSetTransactor is an auto generated write-only Go binding around an GoChain contract.
type AddressSetTransactor struct {
contract *bind.BoundContract // Generic contract wrapper for the low level calls
}
// AddressSetFilterer is an auto generated log filtering Go binding around an GoChain contract events.
type AddressSetFilterer struct {
contract *bind.BoundContract // Generic contract wrapper for the low level calls
}
// AddressSetSession is an auto generated Go binding around an GoChain contract,
// with pre-set call and transact options.
type AddressSetSession struct {
Contract *AddressSet // 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
}
// AddressSetCallerSession is an auto generated read-only Go binding around an GoChain contract,
// with pre-set call options.
type AddressSetCallerSession struct {
Contract *AddressSetCaller // Generic contract caller binding to set the session for
CallOpts bind.CallOpts // Call options to use throughout this session
}
// AddressSetTransactorSession is an auto generated write-only Go binding around an GoChain contract,
// with pre-set transact options.
type AddressSetTransactorSession struct {
Contract *AddressSetTransactor // Generic contract transactor binding to set the session for
TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session
}
// AddressSetRaw is an auto generated low-level Go binding around an GoChain contract.
type AddressSetRaw struct {
Contract *AddressSet // Generic contract binding to access the raw methods on
}
// AddressSetCallerRaw is an auto generated low-level read-only Go binding around an GoChain contract.
type AddressSetCallerRaw struct {
Contract *AddressSetCaller // Generic read-only contract binding to access the raw methods on
}
// AddressSetTransactorRaw is an auto generated low-level write-only Go binding around an GoChain contract.
type AddressSetTransactorRaw struct {
Contract *AddressSetTransactor // Generic write-only contract binding to access the raw methods on
}
// NewAddressSet creates a new instance of AddressSet, bound to a specific deployed contract.
func NewAddressSet(address common.Address, backend bind.ContractBackend) (*AddressSet, error) {
contract, err := bindAddressSet(address, backend, backend, backend)
if err != nil {
return nil, err
}
return &AddressSet{AddressSetCaller: AddressSetCaller{contract: contract}, AddressSetTransactor: AddressSetTransactor{contract: contract}, AddressSetFilterer: AddressSetFilterer{contract: contract}}, nil
}
// NewAddressSetCaller creates a new read-only instance of AddressSet, bound to a specific deployed contract.
func NewAddressSetCaller(address common.Address, caller bind.ContractCaller) (*AddressSetCaller, error) {
contract, err := bindAddressSet(address, caller, nil, nil)
if err != nil {
return nil, err
}
return &AddressSetCaller{contract: contract}, nil
}
// NewAddressSetTransactor creates a new write-only instance of AddressSet, bound to a specific deployed contract.
func NewAddressSetTransactor(address common.Address, transactor bind.ContractTransactor) (*AddressSetTransactor, error) {
contract, err := bindAddressSet(address, nil, transactor, nil)
if err != nil {
return nil, err
}
return &AddressSetTransactor{contract: contract}, nil
}
// NewAddressSetFilterer creates a new log filterer instance of AddressSet, bound to a specific deployed contract.
func NewAddressSetFilterer(address common.Address, filterer bind.ContractFilterer) (*AddressSetFilterer, error) {
contract, err := bindAddressSet(address, nil, nil, filterer)
if err != nil {
return nil, err
}
return &AddressSetFilterer{contract: contract}, nil
}
// bindAddressSet binds a generic wrapper to an already deployed contract.
func bindAddressSet(address common.Address, caller bind.ContractCaller, transactor bind.ContractTransactor, filterer bind.ContractFilterer) (*bind.BoundContract, error) {
parsed, err := abi.JSON(strings.NewReader(AddressSetABI))
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 (_AddressSet *AddressSetRaw) Call(opts *bind.CallOpts, result interface{}, method string, params ...interface{}) error {
return _AddressSet.Contract.AddressSetCaller.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 (_AddressSet *AddressSetRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) {
return _AddressSet.Contract.AddressSetTransactor.contract.Transfer(opts)
}
// Transact invokes the (paid) contract method with params as input values.
func (_AddressSet *AddressSetRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) {
return _AddressSet.Contract.AddressSetTransactor.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 (_AddressSet *AddressSetCallerRaw) Call(opts *bind.CallOpts, result interface{}, method string, params ...interface{}) error {
return _AddressSet.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 (_AddressSet *AddressSetTransactorRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) {
return _AddressSet.Contract.contract.Transfer(opts)
}
// Transact invokes the (paid) contract method with params as input values.
func (_AddressSet *AddressSetTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) {
return _AddressSet.Contract.contract.Transact(opts, method, params...)
}
// AuthABI is the input ABI used to generate the binding from.
const AuthABI = "[{\"inputs\":[{\"internalType\":\"address\",\"name\":\"voter\",\"type\":\"address\"}],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"constant\":true,\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"},{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"},{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"name\":\"count\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"i\",\"type\":\"uint256\"}],\"name\":\"getSigner\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"i\",\"type\":\"uint256\"}],\"name\":\"getVoter\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[{\"internalType\":\"address\",\"name\":\"voter\",\"type\":\"address\"}],\"name\":\"isSigner\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[{\"internalType\":\"address\",\"name\":\"voter\",\"type\":\"address\"}],\"name\":\"isVoter\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"internalType\":\"address\",\"name\":\"addr\",\"type\":\"address\"},{\"internalType\":\"bool\",\"name\":\"voter\",\"type\":\"bool\"},{\"internalType\":\"bool\",\"name\":\"add\",\"type\":\"bool\"}],\"name\":\"setVote\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"signersLength\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"votersLength\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"name\":\"votes\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"addr\",\"type\":\"address\"},{\"internalType\":\"bool\",\"name\":\"voter\",\"type\":\"bool\"},{\"internalType\":\"bool\",\"name\":\"add\",\"type\":\"bool\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"}]"
// AuthFuncSigs maps the 4-byte function signature to its string representation.
var AuthFuncSigs = map[string]string{
"7849ed5a": "count(address,bool,bool)",
"3ffefe4e": "getSigner(uint256)",
"d07bff0c": "getVoter(uint256)",
"7df73e27": "isSigner(address)",
"a7771ee3": "isVoter(address)",
"48c5000d": "setVote(address,bool,bool)",
"41f684f3": "signersLength()",
"6c6c39fb": "votersLength()",
"d8bff5a5": "votes(address)",
}
// Auth is an auto generated Go binding around an GoChain contract.
type Auth struct {
AuthCaller // Read-only binding to the contract
AuthTransactor // Write-only binding to the contract
AuthFilterer // Log filterer for contract events
}
// AuthCaller is an auto generated read-only Go binding around an GoChain contract.
type AuthCaller struct {
contract *bind.BoundContract // Generic contract wrapper for the low level calls
}
// AuthTransactor is an auto generated write-only Go binding around an GoChain contract.
type AuthTransactor struct {
contract *bind.BoundContract // Generic contract wrapper for the low level calls
}
// AuthFilterer is an auto generated log filtering Go binding around an GoChain contract events.
type AuthFilterer struct {
contract *bind.BoundContract // Generic contract wrapper for the low level calls
}
// AuthSession is an auto generated Go binding around an GoChain contract,
// with pre-set call and transact options.
type AuthSession struct {
Contract *Auth // 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
}
// AuthCallerSession is an auto generated read-only Go binding around an GoChain contract,
// with pre-set call options.
type AuthCallerSession struct {
Contract *AuthCaller // Generic contract caller binding to set the session for
CallOpts bind.CallOpts // Call options to use throughout this session
}
// AuthTransactorSession is an auto generated write-only Go binding around an GoChain contract,
// with pre-set transact options.
type AuthTransactorSession struct {
Contract *AuthTransactor // Generic contract transactor binding to set the session for
TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session
}
// AuthRaw is an auto generated low-level Go binding around an GoChain contract.
type AuthRaw struct {
Contract *Auth // Generic contract binding to access the raw methods on
}
// AuthCallerRaw is an auto generated low-level read-only Go binding around an GoChain contract.
type AuthCallerRaw struct {
Contract *AuthCaller // Generic read-only contract binding to access the raw methods on
}
// AuthTransactorRaw is an auto generated low-level write-only Go binding around an GoChain contract.
type AuthTransactorRaw struct {
Contract *AuthTransactor // Generic write-only contract binding to access the raw methods on
}
// NewAuth creates a new instance of Auth, bound to a specific deployed contract.
func NewAuth(address common.Address, backend bind.ContractBackend) (*Auth, error) {
contract, err := bindAuth(address, backend, backend, backend)
if err != nil {
return nil, err
}
return &Auth{AuthCaller: AuthCaller{contract: contract}, AuthTransactor: AuthTransactor{contract: contract}, AuthFilterer: AuthFilterer{contract: contract}}, nil
}
// NewAuthCaller creates a new read-only instance of Auth, bound to a specific deployed contract.
func NewAuthCaller(address common.Address, caller bind.ContractCaller) (*AuthCaller, error) {
contract, err := bindAuth(address, caller, nil, nil)
if err != nil {
return nil, err
}
return &AuthCaller{contract: contract}, nil
}
// NewAuthTransactor creates a new write-only instance of Auth, bound to a specific deployed contract.
func NewAuthTransactor(address common.Address, transactor bind.ContractTransactor) (*AuthTransactor, error) {
contract, err := bindAuth(address, nil, transactor, nil)
if err != nil {
return nil, err
}
return &AuthTransactor{contract: contract}, nil
}
// NewAuthFilterer creates a new log filterer instance of Auth, bound to a specific deployed contract.
func NewAuthFilterer(address common.Address, filterer bind.ContractFilterer) (*AuthFilterer, error) {
contract, err := bindAuth(address, nil, nil, filterer)
if err != nil {
return nil, err
}
return &AuthFilterer{contract: contract}, nil
}
// bindAuth binds a generic wrapper to an already deployed contract.
func bindAuth(address common.Address, caller bind.ContractCaller, transactor bind.ContractTransactor, filterer bind.ContractFilterer) (*bind.BoundContract, error) {
parsed, err := abi.JSON(strings.NewReader(AuthABI))
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 (_Auth *AuthRaw) Call(opts *bind.CallOpts, result interface{}, method string, params ...interface{}) error {
return _Auth.Contract.AuthCaller.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 (_Auth *AuthRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) {
return _Auth.Contract.AuthTransactor.contract.Transfer(opts)
}
// Transact invokes the (paid) contract method with params as input values.
func (_Auth *AuthRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) {
return _Auth.Contract.AuthTransactor.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 (_Auth *AuthCallerRaw) Call(opts *bind.CallOpts, result interface{}, method string, params ...interface{}) error {
return _Auth.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 (_Auth *AuthTransactorRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) {
return _Auth.Contract.contract.Transfer(opts)
}
// Transact invokes the (paid) contract method with params as input values.
func (_Auth *AuthTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) {
return _Auth.Contract.contract.Transact(opts, method, params...)
}
// Count is a free data retrieval call binding the contract method 0x7849ed5a.
//
// Solidity: function count(address , bool , bool ) constant returns(uint256)
func (_Auth *AuthCaller) Count(opts *bind.CallOpts, arg0 common.Address, arg1 bool, arg2 bool) (*big.Int, error) {
var (
ret0 = new(*big.Int)
)
out := ret0
err := _Auth.contract.Call(opts, out, "count", arg0, arg1, arg2)
return *ret0, err
}
// Count is a free data retrieval call binding the contract method 0x7849ed5a.
//
// Solidity: function count(address , bool , bool ) constant returns(uint256)
func (_Auth *AuthSession) Count(arg0 common.Address, arg1 bool, arg2 bool) (*big.Int, error) {
return _Auth.Contract.Count(&_Auth.CallOpts, arg0, arg1, arg2)
}
// Count is a free data retrieval call binding the contract method 0x7849ed5a.
//
// Solidity: function count(address , bool , bool ) constant returns(uint256)
func (_Auth *AuthCallerSession) Count(arg0 common.Address, arg1 bool, arg2 bool) (*big.Int, error) {
return _Auth.Contract.Count(&_Auth.CallOpts, arg0, arg1, arg2)
}
// GetSigner is a free data retrieval call binding the contract method 0x3ffefe4e.
//
// Solidity: function getSigner(uint256 i) constant returns(address)
func (_Auth *AuthCaller) GetSigner(opts *bind.CallOpts, i *big.Int) (common.Address, error) {
var (
ret0 = new(common.Address)
)
out := ret0
err := _Auth.contract.Call(opts, out, "getSigner", i)
return *ret0, err
}
// GetSigner is a free data retrieval call binding the contract method 0x3ffefe4e.
//
// Solidity: function getSigner(uint256 i) constant returns(address)
func (_Auth *AuthSession) GetSigner(i *big.Int) (common.Address, error) {
return _Auth.Contract.GetSigner(&_Auth.CallOpts, i)
}
// GetSigner is a free data retrieval call binding the contract method 0x3ffefe4e.
//
// Solidity: function getSigner(uint256 i) constant returns(address)
func (_Auth *AuthCallerSession) GetSigner(i *big.Int) (common.Address, error) {
return _Auth.Contract.GetSigner(&_Auth.CallOpts, i)
}
// GetVoter is a free data retrieval call binding the contract method 0xd07bff0c.
//
// Solidity: function getVoter(uint256 i) constant returns(address)
func (_Auth *AuthCaller) GetVoter(opts *bind.CallOpts, i *big.Int) (common.Address, error) {
var (
ret0 = new(common.Address)
)
out := ret0
err := _Auth.contract.Call(opts, out, "getVoter", i)
return *ret0, err
}
// GetVoter is a free data retrieval call binding the contract method 0xd07bff0c.
//
// Solidity: function getVoter(uint256 i) constant returns(address)
func (_Auth *AuthSession) GetVoter(i *big.Int) (common.Address, error) {
return _Auth.Contract.GetVoter(&_Auth.CallOpts, i)
}
// GetVoter is a free data retrieval call binding the contract method 0xd07bff0c.
//
// Solidity: function getVoter(uint256 i) constant returns(address)
func (_Auth *AuthCallerSession) GetVoter(i *big.Int) (common.Address, error) {
return _Auth.Contract.GetVoter(&_Auth.CallOpts, i)
}
// IsSigner is a free data retrieval call binding the contract method 0x7df73e27.
//
// Solidity: function isSigner(address voter) constant returns(bool)
func (_Auth *AuthCaller) IsSigner(opts *bind.CallOpts, voter common.Address) (bool, error) {
var (
ret0 = new(bool)
)
out := ret0
err := _Auth.contract.Call(opts, out, "isSigner", voter)
return *ret0, err
}
// IsSigner is a free data retrieval call binding the contract method 0x7df73e27.
//
// Solidity: function isSigner(address voter) constant returns(bool)
func (_Auth *AuthSession) IsSigner(voter common.Address) (bool, error) {
return _Auth.Contract.IsSigner(&_Auth.CallOpts, voter)
}
// IsSigner is a free data retrieval call binding the contract method 0x7df73e27.
//
// Solidity: function isSigner(address voter) constant returns(bool)
func (_Auth *AuthCallerSession) IsSigner(voter common.Address) (bool, error) {
return _Auth.Contract.IsSigner(&_Auth.CallOpts, voter)
}
// IsVoter is a free data retrieval call binding the contract method 0xa7771ee3.
//
// Solidity: function isVoter(address voter) constant returns(bool)
func (_Auth *AuthCaller) IsVoter(opts *bind.CallOpts, voter common.Address) (bool, error) {
var (
ret0 = new(bool)
)
out := ret0
err := _Auth.contract.Call(opts, out, "isVoter", voter)
return *ret0, err
}
// IsVoter is a free data retrieval call binding the contract method 0xa7771ee3.
//
// Solidity: function isVoter(address voter) constant returns(bool)
func (_Auth *AuthSession) IsVoter(voter common.Address) (bool, error) {
return _Auth.Contract.IsVoter(&_Auth.CallOpts, voter)
}
// IsVoter is a free data retrieval call binding the contract method 0xa7771ee3.
//
// Solidity: function isVoter(address voter) constant returns(bool)
func (_Auth *AuthCallerSession) IsVoter(voter common.Address) (bool, error) {
return _Auth.Contract.IsVoter(&_Auth.CallOpts, voter)
}
// SignersLength is a free data retrieval call binding the contract method 0x41f684f3.
//
// Solidity: function signersLength() constant returns(uint256)
func (_Auth *AuthCaller) SignersLength(opts *bind.CallOpts) (*big.Int, error) {
var (
ret0 = new(*big.Int)
)
out := ret0
err := _Auth.contract.Call(opts, out, "signersLength")
return *ret0, err
}
// SignersLength is a free data retrieval call binding the contract method 0x41f684f3.
//
// Solidity: function signersLength() constant returns(uint256)
func (_Auth *AuthSession) SignersLength() (*big.Int, error) {
return _Auth.Contract.SignersLength(&_Auth.CallOpts)
}
// SignersLength is a free data retrieval call binding the contract method 0x41f684f3.
//
// Solidity: function signersLength() constant returns(uint256)
func (_Auth *AuthCallerSession) SignersLength() (*big.Int, error) {
return _Auth.Contract.SignersLength(&_Auth.CallOpts)
}
// VotersLength is a free data retrieval call binding the contract method 0x6c6c39fb.
//
// Solidity: function votersLength() constant returns(uint256)
func (_Auth *AuthCaller) VotersLength(opts *bind.CallOpts) (*big.Int, error) {
var (
ret0 = new(*big.Int)
)
out := ret0
err := _Auth.contract.Call(opts, out, "votersLength")
return *ret0, err
}
// VotersLength is a free data retrieval call binding the contract method 0x6c6c39fb.
//
// Solidity: function votersLength() constant returns(uint256)
func (_Auth *AuthSession) VotersLength() (*big.Int, error) {
return _Auth.Contract.VotersLength(&_Auth.CallOpts)
}
// VotersLength is a free data retrieval call binding the contract method 0x6c6c39fb.
//
// Solidity: function votersLength() constant returns(uint256)
func (_Auth *AuthCallerSession) VotersLength() (*big.Int, error) {
return _Auth.Contract.VotersLength(&_Auth.CallOpts)
}
// Votes is a free data retrieval call binding the contract method 0xd8bff5a5.
//
// Solidity: function votes(address ) constant returns(address addr, bool voter, bool add)
func (_Auth *AuthCaller) Votes(opts *bind.CallOpts, arg0 common.Address) (struct {
Addr common.Address
Voter bool
Add bool
}, error) {
ret := new(struct {
Addr common.Address
Voter bool
Add bool
})
out := ret
err := _Auth.contract.Call(opts, out, "votes", arg0)
return *ret, err
}
// Votes is a free data retrieval call binding the contract method 0xd8bff5a5.
//
// Solidity: function votes(address ) constant returns(address addr, bool voter, bool add)
func (_Auth *AuthSession) Votes(arg0 common.Address) (struct {
Addr common.Address
Voter bool
Add bool
}, error) {
return _Auth.Contract.Votes(&_Auth.CallOpts, arg0)
}
// Votes is a free data retrieval call binding the contract method 0xd8bff5a5.
//
// Solidity: function votes(address ) constant returns(address addr, bool voter, bool add)
func (_Auth *AuthCallerSession) Votes(arg0 common.Address) (struct {
Addr common.Address
Voter bool
Add bool
}, error) {
return _Auth.Contract.Votes(&_Auth.CallOpts, arg0)
}
// SetVote is a paid mutator transaction binding the contract method 0x48c5000d.
//
// Solidity: function setVote(address addr, bool voter, bool add) returns()
func (_Auth *AuthTransactor) SetVote(opts *bind.TransactOpts, addr common.Address, voter bool, add bool) (*types.Transaction, error) {
return _Auth.contract.Transact(opts, "setVote", addr, voter, add)
}
// SetVote is a paid mutator transaction binding the contract method 0x48c5000d.
//
// Solidity: function setVote(address addr, bool voter, bool add) returns()
func (_Auth *AuthSession) SetVote(addr common.Address, voter bool, add bool) (*types.Transaction, error) {
return _Auth.Contract.SetVote(&_Auth.TransactOpts, addr, voter, add)
}
// SetVote is a paid mutator transaction binding the contract method 0x48c5000d.
//
// Solidity: function setVote(address addr, bool voter, bool add) returns()
func (_Auth *AuthTransactorSession) SetVote(addr common.Address, voter bool, add bool) (*types.Transaction, error) {
return _Auth.Contract.SetVote(&_Auth.TransactOpts, addr, voter, add)
}
// ConfirmationsABI is the input ABI used to generate the binding from.
const ConfirmationsABI = "[{\"inputs\":[{\"internalType\":\"address\",\"name\":\"voter\",\"type\":\"address\"}],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"blockNum\",\"type\":\"uint256\"},{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"logIndex\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"bytes32\",\"name\":\"eventHash\",\"type\":\"bytes32\"}],\"name\":\"ConfirmationRequested\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"blockNum\",\"type\":\"uint256\"},{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"logIndex\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"bytes32\",\"name\":\"eventHash\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"bool\",\"name\":\"valid\",\"type\":\"bool\"}],\"name\":\"Confirmed\",\"type\":\"event\"},{\"constant\":true,\"inputs\":[],\"name\":\"_confirmedGas\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"blockNum\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"logIndex\",\"type\":\"uint256\"},{\"internalType\":\"bytes32\",\"name\":\"eventHash\",\"type\":\"bytes32\"},{\"internalType\":\"bool\",\"name\":\"valid\",\"type\":\"bool\"}],\"name\":\"confirm\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"confirmGas\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"},{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"},{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"name\":\"count\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"i\",\"type\":\"uint256\"}],\"name\":\"getSigner\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"i\",\"type\":\"uint256\"}],\"name\":\"getVoter\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[{\"internalType\":\"address\",\"name\":\"voter\",\"type\":\"address\"}],\"name\":\"isSigner\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[{\"internalType\":\"address\",\"name\":\"voter\",\"type\":\"address\"}],\"name\":\"isVoter\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"name\":\"pendingList\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"blockNum\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"logIndex\",\"type\":\"uint256\"},{\"internalType\":\"bytes32\",\"name\":\"eventHash\",\"type\":\"bytes32\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"pendingListLength\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"blockNum\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"logIndex\",\"type\":\"uint256\"},{\"internalType\":\"bytes32\",\"name\":\"eventHash\",\"type\":\"bytes32\"}],\"name\":\"pendingStatus\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"gasPrice\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"total\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"valid\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"invalid\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"blockNum\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"logIndex\",\"type\":\"uint256\"},{\"internalType\":\"bytes32\",\"name\":\"eventHash\",\"type\":\"bytes32\"}],\"name\":\"request\",\"outputs\":[],\"payable\":true,\"stateMutability\":\"payable\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"internalType\":\"address\",\"name\":\"addr\",\"type\":\"address\"},{\"internalType\":\"bool\",\"name\":\"voter\",\"type\":\"bool\"},{\"internalType\":\"bool\",\"name\":\"add\",\"type\":\"bool\"}],\"name\":\"setVote\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"blockNum\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"logIndex\",\"type\":\"uint256\"},{\"internalType\":\"bytes32\",\"name\":\"eventHash\",\"type\":\"bytes32\"}],\"name\":\"shouldConfirm\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"},{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"signersLength\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"},{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"name\":\"status\",\"outputs\":[{\"internalType\":\"enumIConfirmations.Status\",\"name\":\"\",\"type\":\"uint8\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"totalConfirmGas\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"votersLength\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"name\":\"votes\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"addr\",\"type\":\"address\"},{\"internalType\":\"bool\",\"name\":\"voter\",\"type\":\"bool\"},{\"internalType\":\"bool\",\"name\":\"add\",\"type\":\"bool\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"}]"
// ConfirmationsFuncSigs maps the 4-byte function signature to its string representation.
var ConfirmationsFuncSigs = map[string]string{
"2ea6ece8": "_confirmedGas()",
"8f7fd0d6": "confirm(uint256,uint256,bytes32,bool)",
"42715aec": "confirmGas()",
"7849ed5a": "count(address,bool,bool)",
"3ffefe4e": "getSigner(uint256)",
"d07bff0c": "getVoter(uint256)",
"7df73e27": "isSigner(address)",
"a7771ee3": "isVoter(address)",
"03aca792": "pendingList(uint256)",
"26b60630": "pendingListLength()",
"6e06676b": "pendingStatus(uint256,uint256,bytes32)",
"32030803": "request(uint256,uint256,bytes32)",
"48c5000d": "setVote(address,bool,bool)",
"859f32c2": "shouldConfirm(uint256,uint256,bytes32)",
"41f684f3": "signersLength()",
"fad3ffd6": "status(uint256,uint256,bytes32)",
"5c5f6b39": "totalConfirmGas()",
"6c6c39fb": "votersLength()",
"d8bff5a5": "votes(address)",
}
// ConfirmationsBin is the compiled bytecode used for deploying new contracts.
const ConfirmationsBin = "0x60806040523480156200001157600080fd5b5060405162001bf338038062001bf3833981810160405260208110156200003757600080fd5b5051806200005360008262000073602090811b620012c917901c565b6200006b6002826200007360201b620012c91760201c565b505062000114565b6001600160a01b038116600090815260018301602052604090205415620000d2576040805162461bcd60e51b815260206004820152600e60248201526d105b1c9958591e481a5b881cd95d60921b604482015290519081900360640190fd5b815460018181018085556000858152602080822090940180546001600160a01b039096166001600160a01b031990961686179055938452930190526040902055565b611acf80620001246000396000f3fe6080604052600436106101145760003560e01c80636c6c39fb116100a05780638f7fd0d6116100645780638f7fd0d6146103dc578063a7771ee31461041a578063d07bff0c1461044d578063d8bff5a514610477578063fad3ffd6146104d457610114565b80636c6c39fb146102905780636e06676b146102a55780637849ed5a146103015780637df73e2714610344578063859f32c21461038b57610114565b80633ffefe4e116100e75780633ffefe4e146101c857806341f684f31461020e57806342715aec1461022357806348c5000d146102385780635c5f6b391461027b57610114565b806303aca7921461011957806326b60630146101615780632ea6ece814610188578063320308031461019d575b600080fd5b34801561012557600080fd5b506101436004803603602081101561013c57600080fd5b503561052e565b60408051938452602084019290925282820152519081900360600190f35b34801561016d57600080fd5b5061017661055e565b60408051918252519081900360200190f35b34801561019457600080fd5b50610176610565565b6101c6600480360360608110156101b357600080fd5b508035906020810135906040013561056c565b005b3480156101d457600080fd5b506101f2600480360360208110156101eb57600080fd5b50356107ea565b604080516001600160a01b039092168252519081900360200190f35b34801561021a57600080fd5b50610176610817565b34801561022f57600080fd5b5061017661081d565b34801561024457600080fd5b506101c66004803603606081101561025b57600080fd5b506001600160a01b03813516906020810135151590604001351515610824565b34801561028757600080fd5b50610176610b05565b34801561029c57600080fd5b50610176610b0c565b3480156102b157600080fd5b506102db600480360360608110156102c857600080fd5b5080359060208101359060400135610b12565b604080519485526020850193909352838301919091526060830152519081900360800190f35b34801561030d57600080fd5b506101766004803603606081101561032457600080fd5b506001600160a01b03813516906020810135151590604001351515610ba1565b34801561035057600080fd5b506103776004803603602081101561036757600080fd5b50356001600160a01b0316610bc4565b604080519115158252519081900360200190f35b34801561039757600080fd5b506103c1600480360360608110156103ae57600080fd5b5080359060208101359060400135610be1565b60408051921515835260208301919091528051918290030190f35b3480156103e857600080fd5b506101c6600480360360808110156103ff57600080fd5b50803590602081013590604081013590606001351515610cf4565b34801561042657600080fd5b506103776004803603602081101561043d57600080fd5b50356001600160a01b0316610efc565b34801561045957600080fd5b506101f26004803603602081101561047057600080fd5b5035610f19565b34801561048357600080fd5b506104aa6004803603602081101561049a57600080fd5b50356001600160a01b0316610f2a565b604080516001600160a01b0390941684529115156020840152151582820152519081900360600190f35b3480156104e057600080fd5b5061050a600480360360608110156104f757600080fd5b5080359060208101359060400135610f5b565b6040518082600381111561051a57fe5b60ff16815260200191505060405180910390f35b6008818154811061053b57fe5b600091825260209091206003909102018054600182015460029092015490925083565b6008545b90565b6202710081565b6000838152600660209081526040808320858452825280832084845290915281205460ff169081600381111561059e57fe5b14806105b5575060018160038111156105b357fe5b145b610606576040805162461bcd60e51b815260206004820152601e60248201527f537461747573206d757374206265204e6f6e65206f722050656e64696e670000604482015290519081900360640190fd5b622625a03a023481111561064b5760405162461bcd60e51b8152600401808060200182810382526027815260200180611a746027913960400191505060405180910390fd5b803411156106845760405133903483900380156108fc02916000818181858888f19350505050158015610682573d6000803e3d6000fd5b505b600082600381111561069257fe5b1415610784576000858152600660209081526040808320878452825280832086845282528083208054600160ff19909116811790915581516060810183528981528084018981528184018981526008805494850180825590885292517ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee360039095029485015590517ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee4840155517ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee590920191909155888452600983528184208885528352818420878552909252909120555b6000858152600760209081526040808320878452825280832086845282529182902060040180543a01905581518581529151869288927f2382b1fef9adb7c2a096ef31e2e402e08d3b5f9eb5fc18ea9a56835e44627b0392918290030190a35050505050565b6000600260000182815481106107fc57fe5b6000918252602090912001546001600160a01b031692915050565b60025490565b62015f9081565b3360009081526001602052604090205461087a576040805162461bcd60e51b815260206004820152601260248201527129b2b73232b9103737ba1030903b37ba32b960711b604482015290519081900360640190fd5b33600090815260046020526040902080546001600160a01b03161561094e5780546001600160a01b0385811691161480156108c45750805460ff600160a01b909104161515831515145b80156108df5750805460ff600160a81b909104161515821515145b156108ea5750610b00565b80546001600160a01b038116600090815260056020908152604080832060ff600160a01b8604811615158552908352818420600160a81b90950416151583529281528282208054600019019055338252600490522080546001600160b01b03191690555b6001600160a01b0384166109625750610b00565b821561099f5781156109875761097784610efc565b156109825750610b00565b61099a565b61099084610efc565b61099a5750610b00565b6109cc565b81156109b9576109ae84610bc4565b1561099a5750610b00565b6109c284610bc4565b6109cc5750610b00565b604080516060810182526001600160a01b03808716808352861515602080850182815288151586880181815233600090815260048086528a822099518a54955193511515600160a81b0260ff60a81b19941515600160a01b0260ff60a01b1992909b166001600160a01b03199097169690961716989098179190911692909217909655928352600581528583209183529081528482209382529283528381208054600101908190558451633881de0f60e21b815292830191909152925173__$5c8db3f5ca5c76e13c1ce5ed01517fc035$__9263e207783c9260248082019391829003018186803b158015610ac057600080fd5b505af4158015610ad4573d6000803e3d6000fd5b505050506040513d6020811015610aea57600080fd5b50518110610afd57610afd858585610f81565b50505b505050565b622625a081565b60005490565b6000808080600160008881526006602090815260408083208a8452825280832089845290915290205460ff166003811115610b4957fe5b14610b5f57506000925082915081905080610b98565b50505060008481526007602090815260408083208684528252808320858452909152902060048101546002805483549190930154919350905b93509350935093565b600560209081526000938452604080852082529284528284209052825290205481565b6001600160a01b0316600090815260036020526040902054151590565b336000908152600360205260408120548190610c3a576040805162461bcd60e51b815260206004820152601360248201527229b2b73232b9103737ba10309039b4b3b732b960691b604482015290519081900360640190fd5b60016000868152600660209081526040808320888452825280832087845290915290205460ff166003811115610c6c57fe5b14610c7c57506000905080610cec565b600085815260076020908152604080832087845282528083208684528252808320338452600181019092529091205415610cbd575060009150819050610cec565b33600090815260038201602052604090205415610ce1575060009150819050610cec565b600401546001925090505b935093915050565b33600090815260036020526040902054610d4b576040805162461bcd60e51b815260206004820152601360248201527229b2b73232b9103737ba10309039b4b3b732b960691b604482015290519081900360640190fd5b60016000858152600660209081526040808320878452825280832086845290915290205460ff166003811115610d7d57fe5b14610dc4576040805162461bcd60e51b8152602060048201526012602482015271537461747573206e6f742050656e64696e6760701b604482015290519081900360640190fd5b600084815260076020908152604080832086845282528083208584529091529020808215610e155733600090815260038301602052604090205415610e1057610e1082600201336111b0565b610e3c565b50336000908152600182016020526040902054600282019015610e3c57610e3c82336111b0565b336000908152600182016020526040902054610ef357610e5c81336112c9565b73__$5c8db3f5ca5c76e13c1ce5ed01517fc035$__63e207783c60026040518263ffffffff1660e01b81526004018082815260200191505060206040518083038186803b158015610eac57600080fd5b505af4158015610ec0573d6000803e3d6000fd5b505050506040513d6020811015610ed657600080fd5b505181541015610ee7575050610ef6565b610ef386868686611369565b50505b50505050565b6001600160a01b0316600090815260016020526040902054151590565b60008060000182815481106107fc57fe5b6004602052600090815260409020546001600160a01b0381169060ff600160a01b8204811691600160a81b90041683565b600660209081526000938452604080852082529284528284209052825290205460ff1681565b60005b60005481101561103e576000806000018281548110610f9f57fe5b60009182526020808320909101546001600160a01b0390811680845260049092526040909220805491935091908116908716148015610fed5750805460ff600160a01b909104161515851515145b80156110085750805460ff600160a81b909104161515841515145b15611034576001600160a01b038216600090815260046020526040902080546001600160b01b03191690555b5050600101610f84565b506001600160a01b03831660009081526005602090815260408083208515801585529083528184208515158552909252822091909155829061107d5750805b156110d7576001600160a01b0383166000908152600360205260409020546110aa576110aa6002846112c9565b6001600160a01b0383166000908152600160205260409020546110d2576110d26000846112c9565b610b00565b8180156110e2575080155b1561110e576001600160a01b038316600090815260016020526040902054156110d2576110d283611647565b811580156111195750805b15611146576001600160a01b0383166000908152600360205260409020546110d2576110d26002846112c9565b81158015611152575080155b15610b00576001600160a01b0383166000908152600160205260409020541561117e5761117e83611647565b6001600160a01b03831660009081526003602052604090205415610b00576111a76002846111b0565b610b0083611838565b6001600160a01b03811660009081526001830160205260409020548061120a576040805162461bcd60e51b815260206004820152600a602482015269139bdd081a5b881cd95d60b21b604482015290519081900360640190fd5b6001600160a01b0382166000908152600184016020526040812055825483600019820182811061123657fe5b60009182526020909120015484546001600160a01b03909116908590600019850190811061126057fe5b9060005260206000200160006101000a8154816001600160a01b0302191690836001600160a01b031602179055508360000160018203815481106112a057fe5b600091825260209091200180546001600160a01b03191690558354610afd8560001983016119c0565b6001600160a01b038116600090815260018301602052604090205415611327576040805162461bcd60e51b815260206004820152600e60248201526d105b1c9958591e481a5b881cd95d60921b604482015290519081900360640190fd5b815460018181018085556000858152602080822090940180546001600160a01b039096166001600160a01b031990961686179055938452930190526040902055565b600081156113795750600361137d565b5060025b600085815260066020908152604080832087845282528083208684529091529020805482919060ff191660018360038111156113b557fe5b021790555060008581526007602090815260408083208784528252808320868452909152902080836113e75750600281015b805460048301546223b4a00260008282816113fe57fe5b04905060005b8381101561146a57600085600001828154811061141d57fe5b60009182526020822001546040516001600160a01b039091169250829185156108fc02918691818181858888f19350505050158015611460573d6000803e3d6000fd5b5050600101611404565b506004850154604051848302840391620271000290339082840180156108fc02916000818181858888f193505050501580156114aa573d6000803e3d6000fd5b5060008c81526007602090815260408083208e845282528083208d845290915281209081816114d982826119e4565b50506002820160006114eb82826119e4565b50506000600492909201829055508c81526009602090815260408083208e845282528083208d84529091528120805491905560085460018111156115b15760006008600183038154811061153b57fe5b90600052602060002090600302019050806008600185038154811061155c57fe5b6000918252602080832084546003909302019182556001808501548184015560029485015492850192909255845483526009815260408084209286015484529181528183209490930154825292909152208290555b600860018203815481106115c157fe5b600091825260208220600390910201818155600181018290556002015560088054906115f1906000198301611a02565b508c8e7fdf1051063b9bab79d715a3919f387eb9ee4291be1e9241dffb4500694141f25c8e8e60405180838152602001821515151581526020019250505060405180910390a35050505050505050505050505050565b6116526000826111b0565b6001600160a01b0380821660009081526004602052604090208054909116156116dd5780546001600160a01b03808216600090815260056020908152604080832060ff600160a01b8704811615158552908352818420600160a81b90960416151583529381528382208054600019019055918516815260049091522080546001600160b01b03191690555b600073__$5c8db3f5ca5c76e13c1ce5ed01517fc035$__63e207783c60006040518263ffffffff1660e01b81526004018082815260200191505060206040518083038186803b15801561172f57600080fd5b505af4158015611743573d6000803e3d6000fd5b505050506040513d602081101561175957600080fd5b5051905060005b600054811015610ef6576004600080600001838154811061177d57fe5b60009182526020808320909101546001600160a01b03908116845290830193909352604090910190208054909450161561182d5782546001600160a01b038116600090815260056020908152604080832060ff600160a01b8604811615158552908352818420600160a81b90950416151583529290522054821161182d578254611825906001600160a01b0381169060ff600160a01b8204811691600160a81b900416610f81565b505050611835565b600101611760565b50565b600073__$5c8db3f5ca5c76e13c1ce5ed01517fc035$__63e207783c60026040518263ffffffff1660e01b81526004018082815260200191505060206040518083038186803b15801561188a57600080fd5b505af415801561189e573d6000803e3d6000fd5b505050506040513d60208110156118b457600080fd5b5051905060005b600854811015610b00576000600882815481106118d457fe5b6000918252602080832060039092029091018054835260078252604080842060018084015486529084528185206002840154865284528185206001600160a01b038a16865290810190935290922054919250901561193b5761193681866111b0565b611968565b6001600160a01b0385166000908152600382016020526040902054156119685761196881600201866111b0565b8054841161198e576119898260000154836001015484600201546001611369565b6119b9565b600281015484116119b2576119898260000154836001015484600201546000611369565b6001909201915b50506118bb565b815481835581811115610b0057600083815260209020610b00918101908301611a2e565b50805460008255906000526020600020908101906118359190611a2e565b815481835581811115610b0057600302816003028360005260206000209182019101610b009190611a4c565b61056291905b80821115611a485760008155600101611a34565b5090565b61056291905b80821115611a48576000808255600182018190556002820155600301611a5256fe54782076616c756520646f65736e277420636f76657220636f6e6669726d6174696f6e20666565a265627a7a7231582086c880ff332e3e69587804c7ecc42aee23f813d8039e9b343c07681365cf0b4d64736f6c63430005100032"
// DeployConfirmations deploys a new GoChain contract, binding an instance of Confirmations to it.
func DeployConfirmations(auth *bind.TransactOpts, backend bind.ContractBackend, voter common.Address) (common.Address, *types.Transaction, *Confirmations, error) {
parsed, err := abi.JSON(strings.NewReader(ConfirmationsABI))
if err != nil {
return common.Address{}, nil, nil, err
}
confirmationsBin := ConfirmationsBin
if auth.Nonce == nil {
if err := bind.EnsureNonce(auth, backend); err != nil {
return common.Address{}, nil, nil, err
}
}
addressSetAddr, _, _, err := DeployAddressSet(auth, backend)
if err != nil {
return common.Address{}, nil, nil, err
}
auth.Nonce = auth.Nonce.Add(auth.Nonce, big.NewInt(1))
confirmationsBin = strings.Replace(confirmationsBin, "__$5c8db3f5ca5c76e13c1ce5ed01517fc035$__", addressSetAddr.String()[2:], -1)
address, tx, contract, err := bind.DeployContract(auth, parsed, common.FromHex(confirmationsBin), backend, voter)
if err != nil {
return common.Address{}, nil, nil, err
}
return address, tx, &Confirmations{ConfirmationsCaller: ConfirmationsCaller{contract: contract}, ConfirmationsTransactor: ConfirmationsTransactor{contract: contract}, ConfirmationsFilterer: ConfirmationsFilterer{contract: contract}}, nil
}
// Confirmations is an auto generated Go binding around an GoChain contract.
type Confirmations struct {
ConfirmationsCaller // Read-only binding to the contract
ConfirmationsTransactor // Write-only binding to the contract
ConfirmationsFilterer // Log filterer for contract events
}
// ConfirmationsCaller is an auto generated read-only Go binding around an GoChain contract.
type ConfirmationsCaller struct {
contract *bind.BoundContract // Generic contract wrapper for the low level calls
}
// ConfirmationsTransactor is an auto generated write-only Go binding around an GoChain contract.
type ConfirmationsTransactor struct {
contract *bind.BoundContract // Generic contract wrapper for the low level calls
}
// ConfirmationsFilterer is an auto generated log filtering Go binding around an GoChain contract events.
type ConfirmationsFilterer struct {
contract *bind.BoundContract // Generic contract wrapper for the low level calls
}
// ConfirmationsSession is an auto generated Go binding around an GoChain contract,
// with pre-set call and transact options.
type ConfirmationsSession struct {
Contract *Confirmations // 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
}
// ConfirmationsCallerSession is an auto generated read-only Go binding around an GoChain contract,
// with pre-set call options.
type ConfirmationsCallerSession struct {
Contract *ConfirmationsCaller // Generic contract caller binding to set the session for
CallOpts bind.CallOpts // Call options to use throughout this session
}
// ConfirmationsTransactorSession is an auto generated write-only Go binding around an GoChain contract,
// with pre-set transact options.
type ConfirmationsTransactorSession struct {
Contract *ConfirmationsTransactor // Generic contract transactor binding to set the session for
TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session
}
// ConfirmationsRaw is an auto generated low-level Go binding around an GoChain contract.
type ConfirmationsRaw struct {
Contract *Confirmations // Generic contract binding to access the raw methods on
}
// ConfirmationsCallerRaw is an auto generated low-level read-only Go binding around an GoChain contract.
type ConfirmationsCallerRaw struct {
Contract *ConfirmationsCaller // Generic read-only contract binding to access the raw methods on
}
// ConfirmationsTransactorRaw is an auto generated low-level write-only Go binding around an GoChain contract.
type ConfirmationsTransactorRaw struct {
Contract *ConfirmationsTransactor // Generic write-only contract binding to access the raw methods on
}
// NewConfirmations creates a new instance of Confirmations, bound to a specific deployed contract.
func NewConfirmations(address common.Address, backend bind.ContractBackend) (*Confirmations, error) {
contract, err := bindConfirmations(address, backend, backend, backend)
if err != nil {
return nil, err
}
return &Confirmations{ConfirmationsCaller: ConfirmationsCaller{contract: contract}, ConfirmationsTransactor: ConfirmationsTransactor{contract: contract}, ConfirmationsFilterer: ConfirmationsFilterer{contract: contract}}, nil
}
// NewConfirmationsCaller creates a new read-only instance of Confirmations, bound to a specific deployed contract.
func NewConfirmationsCaller(address common.Address, caller bind.ContractCaller) (*ConfirmationsCaller, error) {
contract, err := bindConfirmations(address, caller, nil, nil)
if err != nil {
return nil, err
}
return &ConfirmationsCaller{contract: contract}, nil
}
// NewConfirmationsTransactor creates a new write-only instance of Confirmations, bound to a specific deployed contract.
func NewConfirmationsTransactor(address common.Address, transactor bind.ContractTransactor) (*ConfirmationsTransactor, error) {
contract, err := bindConfirmations(address, nil, transactor, nil)
if err != nil {
return nil, err
}
return &ConfirmationsTransactor{contract: contract}, nil
}
// NewConfirmationsFilterer creates a new log filterer instance of Confirmations, bound to a specific deployed contract.
func NewConfirmationsFilterer(address common.Address, filterer bind.ContractFilterer) (*ConfirmationsFilterer, error) {
contract, err := bindConfirmations(address, nil, nil, filterer)
if err != nil {
return nil, err
}
return &ConfirmationsFilterer{contract: contract}, nil
}
// bindConfirmations binds a generic wrapper to an already deployed contract.
func bindConfirmations(address common.Address, caller bind.ContractCaller, transactor bind.ContractTransactor, filterer bind.ContractFilterer) (*bind.BoundContract, error) {
parsed, err := abi.JSON(strings.NewReader(ConfirmationsABI))
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 (_Confirmations *ConfirmationsRaw) Call(opts *bind.CallOpts, result interface{}, method string, params ...interface{}) error {
return _Confirmations.Contract.ConfirmationsCaller.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 (_Confirmations *ConfirmationsRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) {
return _Confirmations.Contract.ConfirmationsTransactor.contract.Transfer(opts)
}
// Transact invokes the (paid) contract method with params as input values.
func (_Confirmations *ConfirmationsRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) {
return _Confirmations.Contract.ConfirmationsTransactor.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 (_Confirmations *ConfirmationsCallerRaw) Call(opts *bind.CallOpts, result interface{}, method string, params ...interface{}) error {
return _Confirmations.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 (_Confirmations *ConfirmationsTransactorRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) {
return _Confirmations.Contract.contract.Transfer(opts)
}
// Transact invokes the (paid) contract method with params as input values.
func (_Confirmations *ConfirmationsTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) {
return _Confirmations.Contract.contract.Transact(opts, method, params...)
}
// ConfirmedGas is a free data retrieval call binding the contract method 0x2ea6ece8.
//
// Solidity: function _confirmedGas() constant returns(uint256)
func (_Confirmations *ConfirmationsCaller) ConfirmedGas(opts *bind.CallOpts) (*big.Int, error) {
var (
ret0 = new(*big.Int)
)
out := ret0
err := _Confirmations.contract.Call(opts, out, "_confirmedGas")
return *ret0, err
}
// ConfirmedGas is a free data retrieval call binding the contract method 0x2ea6ece8.
//
// Solidity: function _confirmedGas() constant returns(uint256)
func (_Confirmations *ConfirmationsSession) ConfirmedGas() (*big.Int, error) {
return _Confirmations.Contract.ConfirmedGas(&_Confirmations.CallOpts)
}
// ConfirmedGas is a free data retrieval call binding the contract method 0x2ea6ece8.
//
// Solidity: function _confirmedGas() constant returns(uint256)
func (_Confirmations *ConfirmationsCallerSession) ConfirmedGas() (*big.Int, error) {
return _Confirmations.Contract.ConfirmedGas(&_Confirmations.CallOpts)
}
// ConfirmGas is a free data retrieval call binding the contract method 0x42715aec.
//
// Solidity: function confirmGas() constant returns(uint256)
func (_Confirmations *ConfirmationsCaller) ConfirmGas(opts *bind.CallOpts) (*big.Int, error) {
var (
ret0 = new(*big.Int)
)
out := ret0
err := _Confirmations.contract.Call(opts, out, "confirmGas")
return *ret0, err
}
// ConfirmGas is a free data retrieval call binding the contract method 0x42715aec.
//
// Solidity: function confirmGas() constant returns(uint256)
func (_Confirmations *ConfirmationsSession) ConfirmGas() (*big.Int, error) {
return _Confirmations.Contract.ConfirmGas(&_Confirmations.CallOpts)
}
// ConfirmGas is a free data retrieval call binding the contract method 0x42715aec.
//
// Solidity: function confirmGas() constant returns(uint256)
func (_Confirmations *ConfirmationsCallerSession) ConfirmGas() (*big.Int, error) {
return _Confirmations.Contract.ConfirmGas(&_Confirmations.CallOpts)
}
// Count is a free data retrieval call binding the contract method 0x7849ed5a.
//
// Solidity: function count(address , bool , bool ) constant returns(uint256)
func (_Confirmations *ConfirmationsCaller) Count(opts *bind.CallOpts, arg0 common.Address, arg1 bool, arg2 bool) (*big.Int, error) {
var (
ret0 = new(*big.Int)
)
out := ret0
err := _Confirmations.contract.Call(opts, out, "count", arg0, arg1, arg2)
return *ret0, err
}
// Count is a free data retrieval call binding the contract method 0x7849ed5a.
//
// Solidity: function count(address , bool , bool ) constant returns(uint256)
func (_Confirmations *ConfirmationsSession) Count(arg0 common.Address, arg1 bool, arg2 bool) (*big.Int, error) {
return _Confirmations.Contract.Count(&_Confirmations.CallOpts, arg0, arg1, arg2)
}
// Count is a free data retrieval call binding the contract method 0x7849ed5a.
//
// Solidity: function count(address , bool , bool ) constant returns(uint256)
func (_Confirmations *ConfirmationsCallerSession) Count(arg0 common.Address, arg1 bool, arg2 bool) (*big.Int, error) {
return _Confirmations.Contract.Count(&_Confirmations.CallOpts, arg0, arg1, arg2)
}
// GetSigner is a free data retrieval call binding the contract method 0x3ffefe4e.
//
// Solidity: function getSigner(uint256 i) constant returns(address)
func (_Confirmations *ConfirmationsCaller) GetSigner(opts *bind.CallOpts, i *big.Int) (common.Address, error) {
var (
ret0 = new(common.Address)
)
out := ret0
err := _Confirmations.contract.Call(opts, out, "getSigner", i)
return *ret0, err
}
// GetSigner is a free data retrieval call binding the contract method 0x3ffefe4e.
//
// Solidity: function getSigner(uint256 i) constant returns(address)
func (_Confirmations *ConfirmationsSession) GetSigner(i *big.Int) (common.Address, error) {
return _Confirmations.Contract.GetSigner(&_Confirmations.CallOpts, i)
}
// GetSigner is a free data retrieval call binding the contract method 0x3ffefe4e.
//
// Solidity: function getSigner(uint256 i) constant returns(address)
func (_Confirmations *ConfirmationsCallerSession) GetSigner(i *big.Int) (common.Address, error) {
return _Confirmations.Contract.GetSigner(&_Confirmations.CallOpts, i)
}
// GetVoter is a free data retrieval call binding the contract method 0xd07bff0c.
//
// Solidity: function getVoter(uint256 i) constant returns(address)
func (_Confirmations *ConfirmationsCaller) GetVoter(opts *bind.CallOpts, i *big.Int) (common.Address, error) {
var (
ret0 = new(common.Address)
)
out := ret0
err := _Confirmations.contract.Call(opts, out, "getVoter", i)
return *ret0, err
}
// GetVoter is a free data retrieval call binding the contract method 0xd07bff0c.
//
// Solidity: function getVoter(uint256 i) constant returns(address)
func (_Confirmations *ConfirmationsSession) GetVoter(i *big.Int) (common.Address, error) {
return _Confirmations.Contract.GetVoter(&_Confirmations.CallOpts, i)
}
// GetVoter is a free data retrieval call binding the contract method 0xd07bff0c.
//
// Solidity: function getVoter(uint256 i) constant returns(address)
func (_Confirmations *ConfirmationsCallerSession) GetVoter(i *big.Int) (common.Address, error) {
return _Confirmations.Contract.GetVoter(&_Confirmations.CallOpts, i)
}
// IsSigner is a free data retrieval call binding the contract method 0x7df73e27.
//
// Solidity: function isSigner(address voter) constant returns(bool)
func (_Confirmations *ConfirmationsCaller) IsSigner(opts *bind.CallOpts, voter common.Address) (bool, error) {
var (
ret0 = new(bool)
)
out := ret0
err := _Confirmations.contract.Call(opts, out, "isSigner", voter)
return *ret0, err
}
// IsSigner is a free data retrieval call binding the contract method 0x7df73e27.
//
// Solidity: function isSigner(address voter) constant returns(bool)
func (_Confirmations *ConfirmationsSession) IsSigner(voter common.Address) (bool, error) {
return _Confirmations.Contract.IsSigner(&_Confirmations.CallOpts, voter)
}
// IsSigner is a free data retrieval call binding the contract method 0x7df73e27.
//
// Solidity: function isSigner(address voter) constant returns(bool)
func (_Confirmations *ConfirmationsCallerSession) IsSigner(voter common.Address) (bool, error) {
return _Confirmations.Contract.IsSigner(&_Confirmations.CallOpts, voter)
}
// IsVoter is a free data retrieval call binding the contract method 0xa7771ee3.
//
// Solidity: function isVoter(address voter) constant returns(bool)
func (_Confirmations *ConfirmationsCaller) IsVoter(opts *bind.CallOpts, voter common.Address) (bool, error) {
var (
ret0 = new(bool)
)
out := ret0
err := _Confirmations.contract.Call(opts, out, "isVoter", voter)
return *ret0, err
}
// IsVoter is a free data retrieval call binding the contract method 0xa7771ee3.
//
// Solidity: function isVoter(address voter) constant returns(bool)
func (_Confirmations *ConfirmationsSession) IsVoter(voter common.Address) (bool, error) {
return _Confirmations.Contract.IsVoter(&_Confirmations.CallOpts, voter)
}
// IsVoter is a free data retrieval call binding the contract method 0xa7771ee3.
//
// Solidity: function isVoter(address voter) constant returns(bool)
func (_Confirmations *ConfirmationsCallerSession) IsVoter(voter common.Address) (bool, error) {
return _Confirmations.Contract.IsVoter(&_Confirmations.CallOpts, voter)
}
// PendingList is a free data retrieval call binding the contract method 0x03aca792.
//
// Solidity: function pendingList(uint256 ) constant returns(uint256 blockNum, uint256 logIndex, bytes32 eventHash)
func (_Confirmations *ConfirmationsCaller) PendingList(opts *bind.CallOpts, arg0 *big.Int) (struct {
BlockNum *big.Int
LogIndex *big.Int
EventHash [32]byte
}, error) {
ret := new(struct {
BlockNum *big.Int
LogIndex *big.Int
EventHash [32]byte
})
out := ret
err := _Confirmations.contract.Call(opts, out, "pendingList", arg0)
return *ret, err
}
// PendingList is a free data retrieval call binding the contract method 0x03aca792.
//
// Solidity: function pendingList(uint256 ) constant returns(uint256 blockNum, uint256 logIndex, bytes32 eventHash)