-
Notifications
You must be signed in to change notification settings - Fork 167
/
livepeerVerifier.go
1017 lines (896 loc) · 45.4 KB
/
livepeerVerifier.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 contracts
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"
)
// LivepeerVerifierABI is the input ABI used to generate the binding from.
const LivepeerVerifierABI = "[{\"constant\":true,\"inputs\":[{\"name\":\"\",\"type\":\"address\"}],\"name\":\"isSolver\",\"outputs\":[{\"name\":\"\",\"type\":\"bool\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"verificationCodeHash\",\"outputs\":[{\"name\":\"\",\"type\":\"string\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"requestCount\",\"outputs\":[{\"name\":\"\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[{\"name\":\"\",\"type\":\"uint256\"}],\"name\":\"requests\",\"outputs\":[{\"name\":\"jobId\",\"type\":\"uint256\"},{\"name\":\"claimId\",\"type\":\"uint256\"},{\"name\":\"segmentNumber\",\"type\":\"uint256\"},{\"name\":\"commitHash\",\"type\":\"bytes32\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[{\"name\":\"\",\"type\":\"uint256\"}],\"name\":\"solvers\",\"outputs\":[{\"name\":\"\",\"type\":\"address\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"name\":\"_controller\",\"type\":\"address\"}],\"name\":\"setController\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"controller\",\"outputs\":[{\"name\":\"\",\"type\":\"address\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"name\":\"_controller\",\"type\":\"address\"},{\"name\":\"_solvers\",\"type\":\"address[]\"},{\"name\":\"_verificationCodeHash\",\"type\":\"string\"}],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"name\":\"requestId\",\"type\":\"uint256\"},{\"indexed\":true,\"name\":\"jobId\",\"type\":\"uint256\"},{\"indexed\":true,\"name\":\"claimId\",\"type\":\"uint256\"},{\"indexed\":false,\"name\":\"segmentNumber\",\"type\":\"uint256\"},{\"indexed\":false,\"name\":\"transcodingOptions\",\"type\":\"string\"},{\"indexed\":false,\"name\":\"dataStorageHash\",\"type\":\"string\"},{\"indexed\":false,\"name\":\"dataHash\",\"type\":\"bytes32\"},{\"indexed\":false,\"name\":\"transcodedDataHash\",\"type\":\"bytes32\"}],\"name\":\"VerifyRequest\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"name\":\"requestId\",\"type\":\"uint256\"},{\"indexed\":true,\"name\":\"jobId\",\"type\":\"uint256\"},{\"indexed\":true,\"name\":\"claimId\",\"type\":\"uint256\"},{\"indexed\":false,\"name\":\"segmentNumber\",\"type\":\"uint256\"},{\"indexed\":false,\"name\":\"result\",\"type\":\"bool\"}],\"name\":\"Callback\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"name\":\"controller\",\"type\":\"address\"}],\"name\":\"SetController\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"name\":\"param\",\"type\":\"string\"}],\"name\":\"ParameterUpdate\",\"type\":\"event\"},{\"constant\":false,\"inputs\":[{\"name\":\"_verificationCodeHash\",\"type\":\"string\"}],\"name\":\"setVerificationCodeHash\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"name\":\"_solver\",\"type\":\"address\"}],\"name\":\"addSolver\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"name\":\"_jobId\",\"type\":\"uint256\"},{\"name\":\"_claimId\",\"type\":\"uint256\"},{\"name\":\"_segmentNumber\",\"type\":\"uint256\"},{\"name\":\"_transcodingOptions\",\"type\":\"string\"},{\"name\":\"_dataStorageHash\",\"type\":\"string\"},{\"name\":\"_dataHashes\",\"type\":\"bytes32[2]\"}],\"name\":\"verify\",\"outputs\":[],\"payable\":true,\"stateMutability\":\"payable\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"name\":\"_requestId\",\"type\":\"uint256\"},{\"name\":\"_result\",\"type\":\"bytes32\"}],\"name\":\"__callback\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"getPrice\",\"outputs\":[{\"name\":\"\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"}]"
// LivepeerVerifier is an auto generated Go binding around an Ethereum contract.
type LivepeerVerifier struct {
LivepeerVerifierCaller // Read-only binding to the contract
LivepeerVerifierTransactor // Write-only binding to the contract
LivepeerVerifierFilterer // Log filterer for contract events
}
// LivepeerVerifierCaller is an auto generated read-only Go binding around an Ethereum contract.
type LivepeerVerifierCaller struct {
contract *bind.BoundContract // Generic contract wrapper for the low level calls
}
// LivepeerVerifierTransactor is an auto generated write-only Go binding around an Ethereum contract.
type LivepeerVerifierTransactor struct {
contract *bind.BoundContract // Generic contract wrapper for the low level calls
}
// LivepeerVerifierFilterer is an auto generated log filtering Go binding around an Ethereum contract events.
type LivepeerVerifierFilterer struct {
contract *bind.BoundContract // Generic contract wrapper for the low level calls
}
// LivepeerVerifierSession is an auto generated Go binding around an Ethereum contract,
// with pre-set call and transact options.
type LivepeerVerifierSession struct {
Contract *LivepeerVerifier // 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
}
// LivepeerVerifierCallerSession is an auto generated read-only Go binding around an Ethereum contract,
// with pre-set call options.
type LivepeerVerifierCallerSession struct {
Contract *LivepeerVerifierCaller // Generic contract caller binding to set the session for
CallOpts bind.CallOpts // Call options to use throughout this session
}
// LivepeerVerifierTransactorSession is an auto generated write-only Go binding around an Ethereum contract,
// with pre-set transact options.
type LivepeerVerifierTransactorSession struct {
Contract *LivepeerVerifierTransactor // Generic contract transactor binding to set the session for
TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session
}
// LivepeerVerifierRaw is an auto generated low-level Go binding around an Ethereum contract.
type LivepeerVerifierRaw struct {
Contract *LivepeerVerifier // Generic contract binding to access the raw methods on
}
// LivepeerVerifierCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract.
type LivepeerVerifierCallerRaw struct {
Contract *LivepeerVerifierCaller // Generic read-only contract binding to access the raw methods on
}
// LivepeerVerifierTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract.
type LivepeerVerifierTransactorRaw struct {
Contract *LivepeerVerifierTransactor // Generic write-only contract binding to access the raw methods on
}
// NewLivepeerVerifier creates a new instance of LivepeerVerifier, bound to a specific deployed contract.
func NewLivepeerVerifier(address common.Address, backend bind.ContractBackend) (*LivepeerVerifier, error) {
contract, err := bindLivepeerVerifier(address, backend, backend, backend)
if err != nil {
return nil, err
}
return &LivepeerVerifier{LivepeerVerifierCaller: LivepeerVerifierCaller{contract: contract}, LivepeerVerifierTransactor: LivepeerVerifierTransactor{contract: contract}, LivepeerVerifierFilterer: LivepeerVerifierFilterer{contract: contract}}, nil
}
// NewLivepeerVerifierCaller creates a new read-only instance of LivepeerVerifier, bound to a specific deployed contract.
func NewLivepeerVerifierCaller(address common.Address, caller bind.ContractCaller) (*LivepeerVerifierCaller, error) {
contract, err := bindLivepeerVerifier(address, caller, nil, nil)
if err != nil {
return nil, err
}
return &LivepeerVerifierCaller{contract: contract}, nil
}
// NewLivepeerVerifierTransactor creates a new write-only instance of LivepeerVerifier, bound to a specific deployed contract.
func NewLivepeerVerifierTransactor(address common.Address, transactor bind.ContractTransactor) (*LivepeerVerifierTransactor, error) {
contract, err := bindLivepeerVerifier(address, nil, transactor, nil)
if err != nil {
return nil, err
}
return &LivepeerVerifierTransactor{contract: contract}, nil
}
// NewLivepeerVerifierFilterer creates a new log filterer instance of LivepeerVerifier, bound to a specific deployed contract.
func NewLivepeerVerifierFilterer(address common.Address, filterer bind.ContractFilterer) (*LivepeerVerifierFilterer, error) {
contract, err := bindLivepeerVerifier(address, nil, nil, filterer)
if err != nil {
return nil, err
}
return &LivepeerVerifierFilterer{contract: contract}, nil
}
// bindLivepeerVerifier binds a generic wrapper to an already deployed contract.
func bindLivepeerVerifier(address common.Address, caller bind.ContractCaller, transactor bind.ContractTransactor, filterer bind.ContractFilterer) (*bind.BoundContract, error) {
parsed, err := abi.JSON(strings.NewReader(LivepeerVerifierABI))
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 (_LivepeerVerifier *LivepeerVerifierRaw) Call(opts *bind.CallOpts, result interface{}, method string, params ...interface{}) error {
return _LivepeerVerifier.Contract.LivepeerVerifierCaller.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 (_LivepeerVerifier *LivepeerVerifierRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) {
return _LivepeerVerifier.Contract.LivepeerVerifierTransactor.contract.Transfer(opts)
}
// Transact invokes the (paid) contract method with params as input values.
func (_LivepeerVerifier *LivepeerVerifierRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) {
return _LivepeerVerifier.Contract.LivepeerVerifierTransactor.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 (_LivepeerVerifier *LivepeerVerifierCallerRaw) Call(opts *bind.CallOpts, result interface{}, method string, params ...interface{}) error {
return _LivepeerVerifier.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 (_LivepeerVerifier *LivepeerVerifierTransactorRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) {
return _LivepeerVerifier.Contract.contract.Transfer(opts)
}
// Transact invokes the (paid) contract method with params as input values.
func (_LivepeerVerifier *LivepeerVerifierTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) {
return _LivepeerVerifier.Contract.contract.Transact(opts, method, params...)
}
// Controller is a free data retrieval call binding the contract method 0xf77c4791.
//
// Solidity: function controller() constant returns(address)
func (_LivepeerVerifier *LivepeerVerifierCaller) Controller(opts *bind.CallOpts) (common.Address, error) {
var (
ret0 = new(common.Address)
)
out := ret0
err := _LivepeerVerifier.contract.Call(opts, out, "controller")
return *ret0, err
}
// Controller is a free data retrieval call binding the contract method 0xf77c4791.
//
// Solidity: function controller() constant returns(address)
func (_LivepeerVerifier *LivepeerVerifierSession) Controller() (common.Address, error) {
return _LivepeerVerifier.Contract.Controller(&_LivepeerVerifier.CallOpts)
}
// Controller is a free data retrieval call binding the contract method 0xf77c4791.
//
// Solidity: function controller() constant returns(address)
func (_LivepeerVerifier *LivepeerVerifierCallerSession) Controller() (common.Address, error) {
return _LivepeerVerifier.Contract.Controller(&_LivepeerVerifier.CallOpts)
}
// GetPrice is a free data retrieval call binding the contract method 0x98d5fdca.
//
// Solidity: function getPrice() constant returns(uint256)
func (_LivepeerVerifier *LivepeerVerifierCaller) GetPrice(opts *bind.CallOpts) (*big.Int, error) {
var (
ret0 = new(*big.Int)
)
out := ret0
err := _LivepeerVerifier.contract.Call(opts, out, "getPrice")
return *ret0, err
}
// GetPrice is a free data retrieval call binding the contract method 0x98d5fdca.
//
// Solidity: function getPrice() constant returns(uint256)
func (_LivepeerVerifier *LivepeerVerifierSession) GetPrice() (*big.Int, error) {
return _LivepeerVerifier.Contract.GetPrice(&_LivepeerVerifier.CallOpts)
}
// GetPrice is a free data retrieval call binding the contract method 0x98d5fdca.
//
// Solidity: function getPrice() constant returns(uint256)
func (_LivepeerVerifier *LivepeerVerifierCallerSession) GetPrice() (*big.Int, error) {
return _LivepeerVerifier.Contract.GetPrice(&_LivepeerVerifier.CallOpts)
}
// IsSolver is a free data retrieval call binding the contract method 0x02cc250d.
//
// Solidity: function isSolver( address) constant returns(bool)
func (_LivepeerVerifier *LivepeerVerifierCaller) IsSolver(opts *bind.CallOpts, arg0 common.Address) (bool, error) {
var (
ret0 = new(bool)
)
out := ret0
err := _LivepeerVerifier.contract.Call(opts, out, "isSolver", arg0)
return *ret0, err
}
// IsSolver is a free data retrieval call binding the contract method 0x02cc250d.
//
// Solidity: function isSolver( address) constant returns(bool)
func (_LivepeerVerifier *LivepeerVerifierSession) IsSolver(arg0 common.Address) (bool, error) {
return _LivepeerVerifier.Contract.IsSolver(&_LivepeerVerifier.CallOpts, arg0)
}
// IsSolver is a free data retrieval call binding the contract method 0x02cc250d.
//
// Solidity: function isSolver( address) constant returns(bool)
func (_LivepeerVerifier *LivepeerVerifierCallerSession) IsSolver(arg0 common.Address) (bool, error) {
return _LivepeerVerifier.Contract.IsSolver(&_LivepeerVerifier.CallOpts, arg0)
}
// RequestCount is a free data retrieval call binding the contract method 0x5badbe4c.
//
// Solidity: function requestCount() constant returns(uint256)
func (_LivepeerVerifier *LivepeerVerifierCaller) RequestCount(opts *bind.CallOpts) (*big.Int, error) {
var (
ret0 = new(*big.Int)
)
out := ret0
err := _LivepeerVerifier.contract.Call(opts, out, "requestCount")
return *ret0, err
}
// RequestCount is a free data retrieval call binding the contract method 0x5badbe4c.
//
// Solidity: function requestCount() constant returns(uint256)
func (_LivepeerVerifier *LivepeerVerifierSession) RequestCount() (*big.Int, error) {
return _LivepeerVerifier.Contract.RequestCount(&_LivepeerVerifier.CallOpts)
}
// RequestCount is a free data retrieval call binding the contract method 0x5badbe4c.
//
// Solidity: function requestCount() constant returns(uint256)
func (_LivepeerVerifier *LivepeerVerifierCallerSession) RequestCount() (*big.Int, error) {
return _LivepeerVerifier.Contract.RequestCount(&_LivepeerVerifier.CallOpts)
}
// Requests is a free data retrieval call binding the contract method 0x81d12c58.
//
// Solidity: function requests( uint256) constant returns(jobId uint256, claimId uint256, segmentNumber uint256, commitHash bytes32)
func (_LivepeerVerifier *LivepeerVerifierCaller) Requests(opts *bind.CallOpts, arg0 *big.Int) (struct {
JobId *big.Int
ClaimId *big.Int
SegmentNumber *big.Int
CommitHash [32]byte
}, error) {
ret := new(struct {
JobId *big.Int
ClaimId *big.Int
SegmentNumber *big.Int
CommitHash [32]byte
})
out := ret
err := _LivepeerVerifier.contract.Call(opts, out, "requests", arg0)
return *ret, err
}
// Requests is a free data retrieval call binding the contract method 0x81d12c58.
//
// Solidity: function requests( uint256) constant returns(jobId uint256, claimId uint256, segmentNumber uint256, commitHash bytes32)
func (_LivepeerVerifier *LivepeerVerifierSession) Requests(arg0 *big.Int) (struct {
JobId *big.Int
ClaimId *big.Int
SegmentNumber *big.Int
CommitHash [32]byte
}, error) {
return _LivepeerVerifier.Contract.Requests(&_LivepeerVerifier.CallOpts, arg0)
}
// Requests is a free data retrieval call binding the contract method 0x81d12c58.
//
// Solidity: function requests( uint256) constant returns(jobId uint256, claimId uint256, segmentNumber uint256, commitHash bytes32)
func (_LivepeerVerifier *LivepeerVerifierCallerSession) Requests(arg0 *big.Int) (struct {
JobId *big.Int
ClaimId *big.Int
SegmentNumber *big.Int
CommitHash [32]byte
}, error) {
return _LivepeerVerifier.Contract.Requests(&_LivepeerVerifier.CallOpts, arg0)
}
// Solvers is a free data retrieval call binding the contract method 0x92ce765e.
//
// Solidity: function solvers( uint256) constant returns(address)
func (_LivepeerVerifier *LivepeerVerifierCaller) Solvers(opts *bind.CallOpts, arg0 *big.Int) (common.Address, error) {
var (
ret0 = new(common.Address)
)
out := ret0
err := _LivepeerVerifier.contract.Call(opts, out, "solvers", arg0)
return *ret0, err
}
// Solvers is a free data retrieval call binding the contract method 0x92ce765e.
//
// Solidity: function solvers( uint256) constant returns(address)
func (_LivepeerVerifier *LivepeerVerifierSession) Solvers(arg0 *big.Int) (common.Address, error) {
return _LivepeerVerifier.Contract.Solvers(&_LivepeerVerifier.CallOpts, arg0)
}
// Solvers is a free data retrieval call binding the contract method 0x92ce765e.
//
// Solidity: function solvers( uint256) constant returns(address)
func (_LivepeerVerifier *LivepeerVerifierCallerSession) Solvers(arg0 *big.Int) (common.Address, error) {
return _LivepeerVerifier.Contract.Solvers(&_LivepeerVerifier.CallOpts, arg0)
}
// VerificationCodeHash is a free data retrieval call binding the contract method 0x41af1524.
//
// Solidity: function verificationCodeHash() constant returns(string)
func (_LivepeerVerifier *LivepeerVerifierCaller) VerificationCodeHash(opts *bind.CallOpts) (string, error) {
var (
ret0 = new(string)
)
out := ret0
err := _LivepeerVerifier.contract.Call(opts, out, "verificationCodeHash")
return *ret0, err
}
// VerificationCodeHash is a free data retrieval call binding the contract method 0x41af1524.
//
// Solidity: function verificationCodeHash() constant returns(string)
func (_LivepeerVerifier *LivepeerVerifierSession) VerificationCodeHash() (string, error) {
return _LivepeerVerifier.Contract.VerificationCodeHash(&_LivepeerVerifier.CallOpts)
}
// VerificationCodeHash is a free data retrieval call binding the contract method 0x41af1524.
//
// Solidity: function verificationCodeHash() constant returns(string)
func (_LivepeerVerifier *LivepeerVerifierCallerSession) VerificationCodeHash() (string, error) {
return _LivepeerVerifier.Contract.VerificationCodeHash(&_LivepeerVerifier.CallOpts)
}
// Callback is a paid mutator transaction binding the contract method 0x9842a37c.
//
// Solidity: function __callback(_requestId uint256, _result bytes32) returns()
func (_LivepeerVerifier *LivepeerVerifierTransactor) Callback(opts *bind.TransactOpts, _requestId *big.Int, _result [32]byte) (*types.Transaction, error) {
return _LivepeerVerifier.contract.Transact(opts, "__callback", _requestId, _result)
}
// Callback is a paid mutator transaction binding the contract method 0x9842a37c.
//
// Solidity: function __callback(_requestId uint256, _result bytes32) returns()
func (_LivepeerVerifier *LivepeerVerifierSession) Callback(_requestId *big.Int, _result [32]byte) (*types.Transaction, error) {
return _LivepeerVerifier.Contract.Callback(&_LivepeerVerifier.TransactOpts, _requestId, _result)
}
// Callback is a paid mutator transaction binding the contract method 0x9842a37c.
//
// Solidity: function __callback(_requestId uint256, _result bytes32) returns()
func (_LivepeerVerifier *LivepeerVerifierTransactorSession) Callback(_requestId *big.Int, _result [32]byte) (*types.Transaction, error) {
return _LivepeerVerifier.Contract.Callback(&_LivepeerVerifier.TransactOpts, _requestId, _result)
}
// AddSolver is a paid mutator transaction binding the contract method 0xec58f4b8.
//
// Solidity: function addSolver(_solver address) returns()
func (_LivepeerVerifier *LivepeerVerifierTransactor) AddSolver(opts *bind.TransactOpts, _solver common.Address) (*types.Transaction, error) {
return _LivepeerVerifier.contract.Transact(opts, "addSolver", _solver)
}
// AddSolver is a paid mutator transaction binding the contract method 0xec58f4b8.
//
// Solidity: function addSolver(_solver address) returns()
func (_LivepeerVerifier *LivepeerVerifierSession) AddSolver(_solver common.Address) (*types.Transaction, error) {
return _LivepeerVerifier.Contract.AddSolver(&_LivepeerVerifier.TransactOpts, _solver)
}
// AddSolver is a paid mutator transaction binding the contract method 0xec58f4b8.
//
// Solidity: function addSolver(_solver address) returns()
func (_LivepeerVerifier *LivepeerVerifierTransactorSession) AddSolver(_solver common.Address) (*types.Transaction, error) {
return _LivepeerVerifier.Contract.AddSolver(&_LivepeerVerifier.TransactOpts, _solver)
}
// SetController is a paid mutator transaction binding the contract method 0x92eefe9b.
//
// Solidity: function setController(_controller address) returns()
func (_LivepeerVerifier *LivepeerVerifierTransactor) SetController(opts *bind.TransactOpts, _controller common.Address) (*types.Transaction, error) {
return _LivepeerVerifier.contract.Transact(opts, "setController", _controller)
}
// SetController is a paid mutator transaction binding the contract method 0x92eefe9b.
//
// Solidity: function setController(_controller address) returns()
func (_LivepeerVerifier *LivepeerVerifierSession) SetController(_controller common.Address) (*types.Transaction, error) {
return _LivepeerVerifier.Contract.SetController(&_LivepeerVerifier.TransactOpts, _controller)
}
// SetController is a paid mutator transaction binding the contract method 0x92eefe9b.
//
// Solidity: function setController(_controller address) returns()
func (_LivepeerVerifier *LivepeerVerifierTransactorSession) SetController(_controller common.Address) (*types.Transaction, error) {
return _LivepeerVerifier.Contract.SetController(&_LivepeerVerifier.TransactOpts, _controller)
}
// SetVerificationCodeHash is a paid mutator transaction binding the contract method 0x4862e650.
//
// Solidity: function setVerificationCodeHash(_verificationCodeHash string) returns()
func (_LivepeerVerifier *LivepeerVerifierTransactor) SetVerificationCodeHash(opts *bind.TransactOpts, _verificationCodeHash string) (*types.Transaction, error) {
return _LivepeerVerifier.contract.Transact(opts, "setVerificationCodeHash", _verificationCodeHash)
}
// SetVerificationCodeHash is a paid mutator transaction binding the contract method 0x4862e650.
//
// Solidity: function setVerificationCodeHash(_verificationCodeHash string) returns()
func (_LivepeerVerifier *LivepeerVerifierSession) SetVerificationCodeHash(_verificationCodeHash string) (*types.Transaction, error) {
return _LivepeerVerifier.Contract.SetVerificationCodeHash(&_LivepeerVerifier.TransactOpts, _verificationCodeHash)
}
// SetVerificationCodeHash is a paid mutator transaction binding the contract method 0x4862e650.
//
// Solidity: function setVerificationCodeHash(_verificationCodeHash string) returns()
func (_LivepeerVerifier *LivepeerVerifierTransactorSession) SetVerificationCodeHash(_verificationCodeHash string) (*types.Transaction, error) {
return _LivepeerVerifier.Contract.SetVerificationCodeHash(&_LivepeerVerifier.TransactOpts, _verificationCodeHash)
}
// Verify is a paid mutator transaction binding the contract method 0x8c118cf1.
//
// Solidity: function verify(_jobId uint256, _claimId uint256, _segmentNumber uint256, _transcodingOptions string, _dataStorageHash string, _dataHashes bytes32[2]) returns()
func (_LivepeerVerifier *LivepeerVerifierTransactor) Verify(opts *bind.TransactOpts, _jobId *big.Int, _claimId *big.Int, _segmentNumber *big.Int, _transcodingOptions string, _dataStorageHash string, _dataHashes [2][32]byte) (*types.Transaction, error) {
return _LivepeerVerifier.contract.Transact(opts, "verify", _jobId, _claimId, _segmentNumber, _transcodingOptions, _dataStorageHash, _dataHashes)
}
// Verify is a paid mutator transaction binding the contract method 0x8c118cf1.
//
// Solidity: function verify(_jobId uint256, _claimId uint256, _segmentNumber uint256, _transcodingOptions string, _dataStorageHash string, _dataHashes bytes32[2]) returns()
func (_LivepeerVerifier *LivepeerVerifierSession) Verify(_jobId *big.Int, _claimId *big.Int, _segmentNumber *big.Int, _transcodingOptions string, _dataStorageHash string, _dataHashes [2][32]byte) (*types.Transaction, error) {
return _LivepeerVerifier.Contract.Verify(&_LivepeerVerifier.TransactOpts, _jobId, _claimId, _segmentNumber, _transcodingOptions, _dataStorageHash, _dataHashes)
}
// Verify is a paid mutator transaction binding the contract method 0x8c118cf1.
//
// Solidity: function verify(_jobId uint256, _claimId uint256, _segmentNumber uint256, _transcodingOptions string, _dataStorageHash string, _dataHashes bytes32[2]) returns()
func (_LivepeerVerifier *LivepeerVerifierTransactorSession) Verify(_jobId *big.Int, _claimId *big.Int, _segmentNumber *big.Int, _transcodingOptions string, _dataStorageHash string, _dataHashes [2][32]byte) (*types.Transaction, error) {
return _LivepeerVerifier.Contract.Verify(&_LivepeerVerifier.TransactOpts, _jobId, _claimId, _segmentNumber, _transcodingOptions, _dataStorageHash, _dataHashes)
}
// LivepeerVerifierCallbackIterator is returned from FilterCallback and is used to iterate over the raw logs and unpacked data for Callback events raised by the LivepeerVerifier contract.
type LivepeerVerifierCallbackIterator struct {
Event *LivepeerVerifierCallback // Event containing the contract specifics and raw log
contract *bind.BoundContract // Generic contract to use for unpacking event data
event string // Event name to use for unpacking event data
logs chan types.Log // Log channel receiving the found contract events
sub ethereum.Subscription // Subscription for errors, completion and termination
done bool // Whether the subscription completed delivering logs
fail error // Occurred error to stop iteration
}
// Next advances the iterator to the subsequent event, returning whether there
// are any more events found. In case of a retrieval or parsing error, false is
// returned and Error() can be queried for the exact failure.
func (it *LivepeerVerifierCallbackIterator) Next() bool {
// If the iterator failed, stop iterating
if it.fail != nil {
return false
}
// If the iterator completed, deliver directly whatever's available
if it.done {
select {
case log := <-it.logs:
it.Event = new(LivepeerVerifierCallback)
if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil {
it.fail = err
return false
}
it.Event.Raw = log
return true
default:
return false
}
}
// Iterator still in progress, wait for either a data or an error event
select {
case log := <-it.logs:
it.Event = new(LivepeerVerifierCallback)
if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil {
it.fail = err
return false
}
it.Event.Raw = log
return true
case err := <-it.sub.Err():
it.done = true
it.fail = err
return it.Next()
}
}
// Error returns any retrieval or parsing error occurred during filtering.
func (it *LivepeerVerifierCallbackIterator) Error() error {
return it.fail
}
// Close terminates the iteration process, releasing any pending underlying
// resources.
func (it *LivepeerVerifierCallbackIterator) Close() error {
it.sub.Unsubscribe()
return nil
}
// LivepeerVerifierCallback represents a Callback event raised by the LivepeerVerifier contract.
type LivepeerVerifierCallback struct {
RequestId *big.Int
JobId *big.Int
ClaimId *big.Int
SegmentNumber *big.Int
Result bool
Raw types.Log // Blockchain specific contextual infos
}
// FilterCallback is a free log retrieval operation binding the contract event 0xaa22eba262859195ec25c1d3c94f98248add6d1374bd46df08c78470225df8d3.
//
// Solidity: event Callback(requestId indexed uint256, jobId indexed uint256, claimId indexed uint256, segmentNumber uint256, result bool)
func (_LivepeerVerifier *LivepeerVerifierFilterer) FilterCallback(opts *bind.FilterOpts, requestId []*big.Int, jobId []*big.Int, claimId []*big.Int) (*LivepeerVerifierCallbackIterator, error) {
var requestIdRule []interface{}
for _, requestIdItem := range requestId {
requestIdRule = append(requestIdRule, requestIdItem)
}
var jobIdRule []interface{}
for _, jobIdItem := range jobId {
jobIdRule = append(jobIdRule, jobIdItem)
}
var claimIdRule []interface{}
for _, claimIdItem := range claimId {
claimIdRule = append(claimIdRule, claimIdItem)
}
logs, sub, err := _LivepeerVerifier.contract.FilterLogs(opts, "Callback", requestIdRule, jobIdRule, claimIdRule)
if err != nil {
return nil, err
}
return &LivepeerVerifierCallbackIterator{contract: _LivepeerVerifier.contract, event: "Callback", logs: logs, sub: sub}, nil
}
// WatchCallback is a free log subscription operation binding the contract event 0xaa22eba262859195ec25c1d3c94f98248add6d1374bd46df08c78470225df8d3.
//
// Solidity: event Callback(requestId indexed uint256, jobId indexed uint256, claimId indexed uint256, segmentNumber uint256, result bool)
func (_LivepeerVerifier *LivepeerVerifierFilterer) WatchCallback(opts *bind.WatchOpts, sink chan<- *LivepeerVerifierCallback, requestId []*big.Int, jobId []*big.Int, claimId []*big.Int) (event.Subscription, error) {
var requestIdRule []interface{}
for _, requestIdItem := range requestId {
requestIdRule = append(requestIdRule, requestIdItem)
}
var jobIdRule []interface{}
for _, jobIdItem := range jobId {
jobIdRule = append(jobIdRule, jobIdItem)
}
var claimIdRule []interface{}
for _, claimIdItem := range claimId {
claimIdRule = append(claimIdRule, claimIdItem)
}
logs, sub, err := _LivepeerVerifier.contract.WatchLogs(opts, "Callback", requestIdRule, jobIdRule, claimIdRule)
if err != nil {
return nil, err
}
return event.NewSubscription(func(quit <-chan struct{}) error {
defer sub.Unsubscribe()
for {
select {
case log := <-logs:
// New log arrived, parse the event and forward to the user
event := new(LivepeerVerifierCallback)
if err := _LivepeerVerifier.contract.UnpackLog(event, "Callback", log); err != nil {
return err
}
event.Raw = log
select {
case sink <- event:
case err := <-sub.Err():
return err
case <-quit:
return nil
}
case err := <-sub.Err():
return err
case <-quit:
return nil
}
}
}), nil
}
// LivepeerVerifierParameterUpdateIterator is returned from FilterParameterUpdate and is used to iterate over the raw logs and unpacked data for ParameterUpdate events raised by the LivepeerVerifier contract.
type LivepeerVerifierParameterUpdateIterator struct {
Event *LivepeerVerifierParameterUpdate // Event containing the contract specifics and raw log
contract *bind.BoundContract // Generic contract to use for unpacking event data
event string // Event name to use for unpacking event data
logs chan types.Log // Log channel receiving the found contract events
sub ethereum.Subscription // Subscription for errors, completion and termination
done bool // Whether the subscription completed delivering logs
fail error // Occurred error to stop iteration
}
// Next advances the iterator to the subsequent event, returning whether there
// are any more events found. In case of a retrieval or parsing error, false is
// returned and Error() can be queried for the exact failure.
func (it *LivepeerVerifierParameterUpdateIterator) Next() bool {
// If the iterator failed, stop iterating
if it.fail != nil {
return false
}
// If the iterator completed, deliver directly whatever's available
if it.done {
select {
case log := <-it.logs:
it.Event = new(LivepeerVerifierParameterUpdate)
if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil {
it.fail = err
return false
}
it.Event.Raw = log
return true
default:
return false
}
}
// Iterator still in progress, wait for either a data or an error event
select {
case log := <-it.logs:
it.Event = new(LivepeerVerifierParameterUpdate)
if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil {
it.fail = err
return false
}
it.Event.Raw = log
return true
case err := <-it.sub.Err():
it.done = true
it.fail = err
return it.Next()
}
}
// Error returns any retrieval or parsing error occurred during filtering.
func (it *LivepeerVerifierParameterUpdateIterator) Error() error {
return it.fail
}
// Close terminates the iteration process, releasing any pending underlying
// resources.
func (it *LivepeerVerifierParameterUpdateIterator) Close() error {
it.sub.Unsubscribe()
return nil
}
// LivepeerVerifierParameterUpdate represents a ParameterUpdate event raised by the LivepeerVerifier contract.
type LivepeerVerifierParameterUpdate struct {
Param string
Raw types.Log // Blockchain specific contextual infos
}
// FilterParameterUpdate is a free log retrieval operation binding the contract event 0x9f5033568d78ae30f29f01e944f97b2216493bd19d1b46d429673acff3dcd674.
//
// Solidity: event ParameterUpdate(param string)
func (_LivepeerVerifier *LivepeerVerifierFilterer) FilterParameterUpdate(opts *bind.FilterOpts) (*LivepeerVerifierParameterUpdateIterator, error) {
logs, sub, err := _LivepeerVerifier.contract.FilterLogs(opts, "ParameterUpdate")
if err != nil {
return nil, err
}
return &LivepeerVerifierParameterUpdateIterator{contract: _LivepeerVerifier.contract, event: "ParameterUpdate", logs: logs, sub: sub}, nil
}
// WatchParameterUpdate is a free log subscription operation binding the contract event 0x9f5033568d78ae30f29f01e944f97b2216493bd19d1b46d429673acff3dcd674.
//
// Solidity: event ParameterUpdate(param string)
func (_LivepeerVerifier *LivepeerVerifierFilterer) WatchParameterUpdate(opts *bind.WatchOpts, sink chan<- *LivepeerVerifierParameterUpdate) (event.Subscription, error) {
logs, sub, err := _LivepeerVerifier.contract.WatchLogs(opts, "ParameterUpdate")
if err != nil {
return nil, err
}
return event.NewSubscription(func(quit <-chan struct{}) error {
defer sub.Unsubscribe()
for {
select {
case log := <-logs:
// New log arrived, parse the event and forward to the user
event := new(LivepeerVerifierParameterUpdate)
if err := _LivepeerVerifier.contract.UnpackLog(event, "ParameterUpdate", log); err != nil {
return err
}
event.Raw = log
select {
case sink <- event:
case err := <-sub.Err():
return err
case <-quit:
return nil
}
case err := <-sub.Err():
return err
case <-quit:
return nil
}
}
}), nil
}
// LivepeerVerifierSetControllerIterator is returned from FilterSetController and is used to iterate over the raw logs and unpacked data for SetController events raised by the LivepeerVerifier contract.
type LivepeerVerifierSetControllerIterator struct {
Event *LivepeerVerifierSetController // Event containing the contract specifics and raw log
contract *bind.BoundContract // Generic contract to use for unpacking event data
event string // Event name to use for unpacking event data
logs chan types.Log // Log channel receiving the found contract events
sub ethereum.Subscription // Subscription for errors, completion and termination
done bool // Whether the subscription completed delivering logs
fail error // Occurred error to stop iteration
}
// Next advances the iterator to the subsequent event, returning whether there
// are any more events found. In case of a retrieval or parsing error, false is
// returned and Error() can be queried for the exact failure.
func (it *LivepeerVerifierSetControllerIterator) Next() bool {
// If the iterator failed, stop iterating
if it.fail != nil {
return false
}
// If the iterator completed, deliver directly whatever's available
if it.done {
select {
case log := <-it.logs:
it.Event = new(LivepeerVerifierSetController)
if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil {
it.fail = err
return false
}
it.Event.Raw = log
return true
default:
return false
}
}
// Iterator still in progress, wait for either a data or an error event
select {
case log := <-it.logs:
it.Event = new(LivepeerVerifierSetController)
if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil {
it.fail = err
return false
}
it.Event.Raw = log
return true
case err := <-it.sub.Err():
it.done = true
it.fail = err
return it.Next()
}
}
// Error returns any retrieval or parsing error occurred during filtering.
func (it *LivepeerVerifierSetControllerIterator) Error() error {
return it.fail
}
// Close terminates the iteration process, releasing any pending underlying
// resources.
func (it *LivepeerVerifierSetControllerIterator) Close() error {
it.sub.Unsubscribe()
return nil
}
// LivepeerVerifierSetController represents a SetController event raised by the LivepeerVerifier contract.
type LivepeerVerifierSetController struct {
Controller common.Address
Raw types.Log // Blockchain specific contextual infos
}
// FilterSetController is a free log retrieval operation binding the contract event 0x4ff638452bbf33c012645d18ae6f05515ff5f2d1dfb0cece8cbf018c60903f70.
//
// Solidity: event SetController(controller address)
func (_LivepeerVerifier *LivepeerVerifierFilterer) FilterSetController(opts *bind.FilterOpts) (*LivepeerVerifierSetControllerIterator, error) {
logs, sub, err := _LivepeerVerifier.contract.FilterLogs(opts, "SetController")
if err != nil {
return nil, err
}
return &LivepeerVerifierSetControllerIterator{contract: _LivepeerVerifier.contract, event: "SetController", logs: logs, sub: sub}, nil
}
// WatchSetController is a free log subscription operation binding the contract event 0x4ff638452bbf33c012645d18ae6f05515ff5f2d1dfb0cece8cbf018c60903f70.
//
// Solidity: event SetController(controller address)
func (_LivepeerVerifier *LivepeerVerifierFilterer) WatchSetController(opts *bind.WatchOpts, sink chan<- *LivepeerVerifierSetController) (event.Subscription, error) {
logs, sub, err := _LivepeerVerifier.contract.WatchLogs(opts, "SetController")
if err != nil {
return nil, err
}
return event.NewSubscription(func(quit <-chan struct{}) error {
defer sub.Unsubscribe()
for {
select {
case log := <-logs:
// New log arrived, parse the event and forward to the user
event := new(LivepeerVerifierSetController)
if err := _LivepeerVerifier.contract.UnpackLog(event, "SetController", log); err != nil {
return err
}
event.Raw = log
select {
case sink <- event:
case err := <-sub.Err():
return err
case <-quit:
return nil
}
case err := <-sub.Err():
return err
case <-quit:
return nil
}
}
}), nil
}
// LivepeerVerifierVerifyRequestIterator is returned from FilterVerifyRequest and is used to iterate over the raw logs and unpacked data for VerifyRequest events raised by the LivepeerVerifier contract.
type LivepeerVerifierVerifyRequestIterator struct {
Event *LivepeerVerifierVerifyRequest // Event containing the contract specifics and raw log
contract *bind.BoundContract // Generic contract to use for unpacking event data
event string // Event name to use for unpacking event data
logs chan types.Log // Log channel receiving the found contract events
sub ethereum.Subscription // Subscription for errors, completion and termination
done bool // Whether the subscription completed delivering logs
fail error // Occurred error to stop iteration
}
// Next advances the iterator to the subsequent event, returning whether there
// are any more events found. In case of a retrieval or parsing error, false is
// returned and Error() can be queried for the exact failure.
func (it *LivepeerVerifierVerifyRequestIterator) Next() bool {
// If the iterator failed, stop iterating
if it.fail != nil {
return false
}
// If the iterator completed, deliver directly whatever's available
if it.done {
select {
case log := <-it.logs:
it.Event = new(LivepeerVerifierVerifyRequest)
if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil {
it.fail = err
return false
}
it.Event.Raw = log
return true
default:
return false
}
}
// Iterator still in progress, wait for either a data or an error event
select {
case log := <-it.logs:
it.Event = new(LivepeerVerifierVerifyRequest)
if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil {
it.fail = err
return false
}
it.Event.Raw = log
return true
case err := <-it.sub.Err():
it.done = true
it.fail = err
return it.Next()
}
}
// Error returns any retrieval or parsing error occurred during filtering.
func (it *LivepeerVerifierVerifyRequestIterator) Error() error {
return it.fail
}
// Close terminates the iteration process, releasing any pending underlying
// resources.
func (it *LivepeerVerifierVerifyRequestIterator) Close() error {
it.sub.Unsubscribe()
return nil
}
// LivepeerVerifierVerifyRequest represents a VerifyRequest event raised by the LivepeerVerifier contract.
type LivepeerVerifierVerifyRequest struct {
RequestId *big.Int
JobId *big.Int
ClaimId *big.Int
SegmentNumber *big.Int
TranscodingOptions string
DataStorageHash string
DataHash [32]byte
TranscodedDataHash [32]byte
Raw types.Log // Blockchain specific contextual infos
}
// FilterVerifyRequest is a free log retrieval operation binding the contract event 0xf68da1a7e850796ae5473e78db07307108751eec3461dddf5ef610db7dfaaf56.
//
// Solidity: event VerifyRequest(requestId indexed uint256, jobId indexed uint256, claimId indexed uint256, segmentNumber uint256, transcodingOptions string, dataStorageHash string, dataHash bytes32, transcodedDataHash bytes32)
func (_LivepeerVerifier *LivepeerVerifierFilterer) FilterVerifyRequest(opts *bind.FilterOpts, requestId []*big.Int, jobId []*big.Int, claimId []*big.Int) (*LivepeerVerifierVerifyRequestIterator, error) {
var requestIdRule []interface{}
for _, requestIdItem := range requestId {
requestIdRule = append(requestIdRule, requestIdItem)
}
var jobIdRule []interface{}
for _, jobIdItem := range jobId {
jobIdRule = append(jobIdRule, jobIdItem)
}
var claimIdRule []interface{}
for _, claimIdItem := range claimId {
claimIdRule = append(claimIdRule, claimIdItem)
}
logs, sub, err := _LivepeerVerifier.contract.FilterLogs(opts, "VerifyRequest", requestIdRule, jobIdRule, claimIdRule)
if err != nil {
return nil, err
}
return &LivepeerVerifierVerifyRequestIterator{contract: _LivepeerVerifier.contract, event: "VerifyRequest", logs: logs, sub: sub}, nil
}
// WatchVerifyRequest is a free log subscription operation binding the contract event 0xf68da1a7e850796ae5473e78db07307108751eec3461dddf5ef610db7dfaaf56.
//
// Solidity: event VerifyRequest(requestId indexed uint256, jobId indexed uint256, claimId indexed uint256, segmentNumber uint256, transcodingOptions string, dataStorageHash string, dataHash bytes32, transcodedDataHash bytes32)
func (_LivepeerVerifier *LivepeerVerifierFilterer) WatchVerifyRequest(opts *bind.WatchOpts, sink chan<- *LivepeerVerifierVerifyRequest, requestId []*big.Int, jobId []*big.Int, claimId []*big.Int) (event.Subscription, error) {
var requestIdRule []interface{}
for _, requestIdItem := range requestId {
requestIdRule = append(requestIdRule, requestIdItem)
}
var jobIdRule []interface{}
for _, jobIdItem := range jobId {
jobIdRule = append(jobIdRule, jobIdItem)
}
var claimIdRule []interface{}
for _, claimIdItem := range claimId {
claimIdRule = append(claimIdRule, claimIdItem)
}
logs, sub, err := _LivepeerVerifier.contract.WatchLogs(opts, "VerifyRequest", requestIdRule, jobIdRule, claimIdRule)
if err != nil {
return nil, err
}
return event.NewSubscription(func(quit <-chan struct{}) error {
defer sub.Unsubscribe()
for {
select {
case log := <-logs:
// New log arrived, parse the event and forward to the user
event := new(LivepeerVerifierVerifyRequest)
if err := _LivepeerVerifier.contract.UnpackLog(event, "VerifyRequest", log); err != nil {
return err
}