-
Notifications
You must be signed in to change notification settings - Fork 38
/
Copy pathzkPoDExchange.go
1937 lines (1727 loc) · 88.1 KB
/
zkPoDExchange.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 main
import (
"math/big"
"strings"
ethereum "github.com/ethereum/go-ethereum"
"github.com/ethereum/go-ethereum/accounts/abi"
"github.com/ethereum/go-ethereum/accounts/abi/bind"
"github.com/ethereum/go-ethereum/common"
"github.com/ethereum/go-ethereum/core/types"
"github.com/ethereum/go-ethereum/event"
)
// Reference imports to suppress errors if they are not otherwise used.
var (
_ = big.NewInt
_ = strings.NewReader
_ = ethereum.NotFound
_ = abi.U256
_ = bind.Bind
_ = common.Big1
_ = types.BloomLookup
_ = event.NewSubscription
)
// ZkPoDExchangeABI is the input ABI used to generate the binding from.
const ZkPoDExchangeABI = "[{\"constant\":true,\"inputs\":[],\"name\":\"publicVar_\",\"outputs\":[{\"name\":\"\",\"type\":\"address\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[{\"name\":\"\",\"type\":\"address\"},{\"name\":\"\",\"type\":\"address\"}],\"name\":\"bobDeposits_\",\"outputs\":[{\"name\":\"value\",\"type\":\"uint256\"},{\"name\":\"unDepositAt\",\"type\":\"uint256\"},{\"name\":\"pendingCnt\",\"type\":\"uint256\"},{\"name\":\"stat\",\"type\":\"uint8\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"s_\",\"outputs\":[{\"name\":\"\",\"type\":\"uint64\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"t3\",\"outputs\":[{\"name\":\"\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[{\"name\":\"\",\"type\":\"bytes32\"}],\"name\":\"bulletins_\",\"outputs\":[{\"name\":\"owner\",\"type\":\"address\"},{\"name\":\"size\",\"type\":\"uint64\"},{\"name\":\"s\",\"type\":\"uint64\"},{\"name\":\"n\",\"type\":\"uint64\"},{\"name\":\"sigma_mkl_root\",\"type\":\"uint256\"},{\"name\":\"vrf_meta_digest\",\"type\":\"uint256\"},{\"name\":\"pledge_value\",\"type\":\"uint256\"},{\"name\":\"unDepositAt\",\"type\":\"uint256\"},{\"name\":\"pendingCnt\",\"type\":\"uint256\"},{\"name\":\"blt_type\",\"type\":\"uint8\"},{\"name\":\"stat\",\"type\":\"uint8\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"t1\",\"outputs\":[{\"name\":\"\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"t4\",\"outputs\":[{\"name\":\"\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"name\":\"_publicVar\",\"type\":\"address\"}],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"name\":\"_a\",\"type\":\"address\"},{\"indexed\":true,\"name\":\"_b\",\"type\":\"address\"},{\"indexed\":true,\"name\":\"_sid\",\"type\":\"uint256\"},{\"indexed\":false,\"name\":\"_mode\",\"type\":\"uint8\"},{\"indexed\":false,\"name\":\"_price\",\"type\":\"uint256\"}],\"name\":\"OnDeal\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"name\":\"_a\",\"type\":\"address\"},{\"indexed\":true,\"name\":\"_b\",\"type\":\"address\"},{\"indexed\":true,\"name\":\"_sid\",\"type\":\"uint256\"},{\"indexed\":false,\"name\":\"_seed0\",\"type\":\"bytes32\"}],\"name\":\"OnComplaintKey\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"name\":\"_a\",\"type\":\"address\"},{\"indexed\":true,\"name\":\"_b\",\"type\":\"address\"},{\"indexed\":true,\"name\":\"_sid\",\"type\":\"uint256\"}],\"name\":\"OnComplaintClaim\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"name\":\"_a\",\"type\":\"address\"},{\"indexed\":true,\"name\":\"_b\",\"type\":\"address\"},{\"indexed\":true,\"name\":\"_sid\",\"type\":\"uint256\"},{\"indexed\":false,\"name\":\"_price\",\"type\":\"uint256\"}],\"name\":\"OnComplaintDeal\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"name\":\"_a\",\"type\":\"address\"},{\"indexed\":true,\"name\":\"_b\",\"type\":\"address\"},{\"indexed\":true,\"name\":\"_sid\",\"type\":\"uint256\"},{\"indexed\":false,\"name\":\"_seed0\",\"type\":\"bytes32\"}],\"name\":\"OnAtomicSwapDeal\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"name\":\"_a\",\"type\":\"address\"},{\"indexed\":true,\"name\":\"_b\",\"type\":\"address\"},{\"indexed\":true,\"name\":\"_sid\",\"type\":\"uint256\"},{\"indexed\":false,\"name\":\"_seed0\",\"type\":\"uint256\"},{\"indexed\":false,\"name\":\"_seed0_rand\",\"type\":\"uint256\"}],\"name\":\"OnAtomicSwapVCDeal\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"name\":\"_a\",\"type\":\"address\"},{\"indexed\":true,\"name\":\"_b\",\"type\":\"address\"},{\"indexed\":true,\"name\":\"_sid\",\"type\":\"uint256\"},{\"indexed\":false,\"name\":\"_r\",\"type\":\"uint256\"}],\"name\":\"OnVRFDeal\",\"type\":\"event\"},{\"constant\":false,\"inputs\":[{\"name\":\"_size\",\"type\":\"uint64\"},{\"name\":\"_s\",\"type\":\"uint64\"},{\"name\":\"_n\",\"type\":\"uint64\"},{\"name\":\"_sigma_mkl_root\",\"type\":\"uint256\"},{\"name\":\"_vrf_meta_digest\",\"type\":\"uint256\"},{\"name\":\"_blt_type\",\"type\":\"uint256\"}],\"name\":\"publish\",\"outputs\":[],\"payable\":true,\"stateMutability\":\"payable\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"name\":\"_bltKey\",\"type\":\"bytes32\"}],\"name\":\"unPublish\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"name\":\"_to\",\"type\":\"address\"}],\"name\":\"bobDeposit\",\"outputs\":[],\"payable\":true,\"stateMutability\":\"payable\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"name\":\"_to\",\"type\":\"address\"}],\"name\":\"bobUnDeposit\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"name\":\"_bltKey\",\"type\":\"bytes32\"}],\"name\":\"withdrawA\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"name\":\"_a\",\"type\":\"address\"}],\"name\":\"withdrawB\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"name\":\"_seed0\",\"type\":\"bytes32\"},{\"name\":\"_sid\",\"type\":\"uint256\"},{\"name\":\"_addrs\",\"type\":\"address[2]\"},{\"name\":\"_bltKey\",\"type\":\"bytes32\"},{\"name\":\"_seed2\",\"type\":\"bytes32\"},{\"name\":\"_k_mkl_root\",\"type\":\"bytes32\"},{\"name\":\"_count\",\"type\":\"uint64\"},{\"name\":\"_price\",\"type\":\"uint256\"},{\"name\":\"_expireAt\",\"type\":\"uint256\"},{\"name\":\"_sig\",\"type\":\"bytes\"}],\"name\":\"submitProofComplaint\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"name\":\"_a\",\"type\":\"address\"},{\"name\":\"_sid\",\"type\":\"uint256\"},{\"name\":\"_i\",\"type\":\"uint64\"},{\"name\":\"_j\",\"type\":\"uint64\"},{\"name\":\"_tx\",\"type\":\"uint256\"},{\"name\":\"_ty\",\"type\":\"uint256\"},{\"name\":\"_mkl_path\",\"type\":\"bytes32[]\"},{\"name\":\"_sCnt\",\"type\":\"uint64\"}],\"name\":\"claimComplaint\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"name\":\"_a\",\"type\":\"address\"},{\"name\":\"_b\",\"type\":\"address\"},{\"name\":\"_sid\",\"type\":\"uint256\"}],\"name\":\"settleComplaintDeal\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"name\":\"_seed0\",\"type\":\"bytes32\"},{\"name\":\"_sCnt\",\"type\":\"uint64\"},{\"name\":\"_sid\",\"type\":\"uint256\"},{\"name\":\"_addrs\",\"type\":\"address[2]\"},{\"name\":\"_seed2\",\"type\":\"bytes32\"},{\"name\":\"_sigma_vw\",\"type\":\"uint256\"},{\"name\":\"_count\",\"type\":\"uint64\"},{\"name\":\"_price\",\"type\":\"uint256\"},{\"name\":\"_expireAt\",\"type\":\"uint256\"},{\"name\":\"_sig\",\"type\":\"bytes\"}],\"name\":\"submitProofAtomicSwap\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"name\":\"_seed0\",\"type\":\"uint256\"},{\"name\":\"_seed0_rand\",\"type\":\"uint256\"},{\"name\":\"_sid\",\"type\":\"uint256\"},{\"name\":\"_addrs\",\"type\":\"address[2]\"},{\"name\":\"_seed0_mimc3_digest\",\"type\":\"uint256\"},{\"name\":\"_price\",\"type\":\"uint256\"},{\"name\":\"_expireAt\",\"type\":\"uint256\"},{\"name\":\"_sig\",\"type\":\"bytes\"}],\"name\":\"submitProofAtomicSwapVC\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"name\":\"_s_r\",\"type\":\"uint256\"},{\"name\":\"_sid\",\"type\":\"uint256\"},{\"name\":\"_addrs\",\"type\":\"address[2]\"},{\"name\":\"_g_exp_r\",\"type\":\"uint256[2]\"},{\"name\":\"_price\",\"type\":\"uint256\"},{\"name\":\"_expireAt\",\"type\":\"uint256\"},{\"name\":\"_sig\",\"type\":\"bytes\"}],\"name\":\"submitProofVRF\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[{\"name\":\"_a\",\"type\":\"address\"},{\"name\":\"_b\",\"type\":\"address\"},{\"name\":\"_sid\",\"type\":\"uint256\"}],\"name\":\"getSessionRecord\",\"outputs\":[{\"name\":\"submitAt\",\"type\":\"uint256\"},{\"name\":\"mode\",\"type\":\"uint8\"},{\"name\":\"stat\",\"type\":\"uint8\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[{\"name\":\"_a\",\"type\":\"address\"},{\"name\":\"_b\",\"type\":\"address\"},{\"name\":\"_sid\",\"type\":\"uint256\"}],\"name\":\"getRecordComplaint\",\"outputs\":[{\"name\":\"seed0\",\"type\":\"bytes32\"},{\"name\":\"seed2\",\"type\":\"bytes32\"},{\"name\":\"k_mkl_root\",\"type\":\"bytes32\"},{\"name\":\"count\",\"type\":\"uint64\"},{\"name\":\"price\",\"type\":\"uint256\"},{\"name\":\"expireAt\",\"type\":\"uint256\"},{\"name\":\"submitAt\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[{\"name\":\"_a\",\"type\":\"address\"},{\"name\":\"_b\",\"type\":\"address\"},{\"name\":\"_sid\",\"type\":\"uint256\"}],\"name\":\"getRecordAtomicSwap\",\"outputs\":[{\"name\":\"seed0\",\"type\":\"bytes32\"},{\"name\":\"submitAt\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[{\"name\":\"_a\",\"type\":\"address\"},{\"name\":\"_b\",\"type\":\"address\"},{\"name\":\"_sid\",\"type\":\"uint256\"}],\"name\":\"getRecordAtomicSwapVC\",\"outputs\":[{\"name\":\"seed0\",\"type\":\"uint256\"},{\"name\":\"seed0_rand\",\"type\":\"uint256\"},{\"name\":\"submitAt\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[{\"name\":\"_a\",\"type\":\"address\"},{\"name\":\"_b\",\"type\":\"address\"},{\"name\":\"_sid\",\"type\":\"uint256\"}],\"name\":\"getRecordVRF\",\"outputs\":[{\"name\":\"r\",\"type\":\"uint256\"},{\"name\":\"submitAt\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"}]"
// ZkPoDExchange is an auto generated Go binding around an Ethereum contract.
type ZkPoDExchange struct {
ZkPoDExchangeCaller // Read-only binding to the contract
ZkPoDExchangeTransactor // Write-only binding to the contract
ZkPoDExchangeFilterer // Log filterer for contract events
}
// ZkPoDExchangeCaller is an auto generated read-only Go binding around an Ethereum contract.
type ZkPoDExchangeCaller struct {
contract *bind.BoundContract // Generic contract wrapper for the low level calls
}
// ZkPoDExchangeTransactor is an auto generated write-only Go binding around an Ethereum contract.
type ZkPoDExchangeTransactor struct {
contract *bind.BoundContract // Generic contract wrapper for the low level calls
}
// ZkPoDExchangeFilterer is an auto generated log filtering Go binding around an Ethereum contract events.
type ZkPoDExchangeFilterer struct {
contract *bind.BoundContract // Generic contract wrapper for the low level calls
}
// ZkPoDExchangeSession is an auto generated Go binding around an Ethereum contract,
// with pre-set call and transact options.
type ZkPoDExchangeSession struct {
Contract *ZkPoDExchange // 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
}
// ZkPoDExchangeCallerSession is an auto generated read-only Go binding around an Ethereum contract,
// with pre-set call options.
type ZkPoDExchangeCallerSession struct {
Contract *ZkPoDExchangeCaller // Generic contract caller binding to set the session for
CallOpts bind.CallOpts // Call options to use throughout this session
}
// ZkPoDExchangeTransactorSession is an auto generated write-only Go binding around an Ethereum contract,
// with pre-set transact options.
type ZkPoDExchangeTransactorSession struct {
Contract *ZkPoDExchangeTransactor // Generic contract transactor binding to set the session for
TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session
}
// ZkPoDExchangeRaw is an auto generated low-level Go binding around an Ethereum contract.
type ZkPoDExchangeRaw struct {
Contract *ZkPoDExchange // Generic contract binding to access the raw methods on
}
// ZkPoDExchangeCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract.
type ZkPoDExchangeCallerRaw struct {
Contract *ZkPoDExchangeCaller // Generic read-only contract binding to access the raw methods on
}
// ZkPoDExchangeTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract.
type ZkPoDExchangeTransactorRaw struct {
Contract *ZkPoDExchangeTransactor // Generic write-only contract binding to access the raw methods on
}
// NewZkPoDExchange creates a new instance of ZkPoDExchange, bound to a specific deployed contract.
func NewZkPoDExchange(address common.Address, backend bind.ContractBackend) (*ZkPoDExchange, error) {
contract, err := bindZkPoDExchange(address, backend, backend, backend)
if err != nil {
return nil, err
}
return &ZkPoDExchange{ZkPoDExchangeCaller: ZkPoDExchangeCaller{contract: contract}, ZkPoDExchangeTransactor: ZkPoDExchangeTransactor{contract: contract}, ZkPoDExchangeFilterer: ZkPoDExchangeFilterer{contract: contract}}, nil
}
// NewZkPoDExchangeCaller creates a new read-only instance of ZkPoDExchange, bound to a specific deployed contract.
func NewZkPoDExchangeCaller(address common.Address, caller bind.ContractCaller) (*ZkPoDExchangeCaller, error) {
contract, err := bindZkPoDExchange(address, caller, nil, nil)
if err != nil {
return nil, err
}
return &ZkPoDExchangeCaller{contract: contract}, nil
}
// NewZkPoDExchangeTransactor creates a new write-only instance of ZkPoDExchange, bound to a specific deployed contract.
func NewZkPoDExchangeTransactor(address common.Address, transactor bind.ContractTransactor) (*ZkPoDExchangeTransactor, error) {
contract, err := bindZkPoDExchange(address, nil, transactor, nil)
if err != nil {
return nil, err
}
return &ZkPoDExchangeTransactor{contract: contract}, nil
}
// NewZkPoDExchangeFilterer creates a new log filterer instance of ZkPoDExchange, bound to a specific deployed contract.
func NewZkPoDExchangeFilterer(address common.Address, filterer bind.ContractFilterer) (*ZkPoDExchangeFilterer, error) {
contract, err := bindZkPoDExchange(address, nil, nil, filterer)
if err != nil {
return nil, err
}
return &ZkPoDExchangeFilterer{contract: contract}, nil
}
// bindZkPoDExchange binds a generic wrapper to an already deployed contract.
func bindZkPoDExchange(address common.Address, caller bind.ContractCaller, transactor bind.ContractTransactor, filterer bind.ContractFilterer) (*bind.BoundContract, error) {
parsed, err := abi.JSON(strings.NewReader(ZkPoDExchangeABI))
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 (_ZkPoDExchange *ZkPoDExchangeRaw) Call(opts *bind.CallOpts, result interface{}, method string, params ...interface{}) error {
return _ZkPoDExchange.Contract.ZkPoDExchangeCaller.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 (_ZkPoDExchange *ZkPoDExchangeRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) {
return _ZkPoDExchange.Contract.ZkPoDExchangeTransactor.contract.Transfer(opts)
}
// Transact invokes the (paid) contract method with params as input values.
func (_ZkPoDExchange *ZkPoDExchangeRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) {
return _ZkPoDExchange.Contract.ZkPoDExchangeTransactor.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 (_ZkPoDExchange *ZkPoDExchangeCallerRaw) Call(opts *bind.CallOpts, result interface{}, method string, params ...interface{}) error {
return _ZkPoDExchange.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 (_ZkPoDExchange *ZkPoDExchangeTransactorRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) {
return _ZkPoDExchange.Contract.contract.Transfer(opts)
}
// Transact invokes the (paid) contract method with params as input values.
func (_ZkPoDExchange *ZkPoDExchangeTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) {
return _ZkPoDExchange.Contract.contract.Transact(opts, method, params...)
}
// BobDeposits is a free data retrieval call binding the contract method 0x98033565.
//
// Solidity: function bobDeposits_(address , address ) constant returns(uint256 value, uint256 unDepositAt, uint256 pendingCnt, uint8 stat)
func (_ZkPoDExchange *ZkPoDExchangeCaller) BobDeposits(opts *bind.CallOpts, arg0 common.Address, arg1 common.Address) (struct {
Value *big.Int
UnDepositAt *big.Int
PendingCnt *big.Int
Stat uint8
}, error) {
ret := new(struct {
Value *big.Int
UnDepositAt *big.Int
PendingCnt *big.Int
Stat uint8
})
out := ret
err := _ZkPoDExchange.contract.Call(opts, out, "bobDeposits_", arg0, arg1)
return *ret, err
}
// BobDeposits is a free data retrieval call binding the contract method 0x98033565.
//
// Solidity: function bobDeposits_(address , address ) constant returns(uint256 value, uint256 unDepositAt, uint256 pendingCnt, uint8 stat)
func (_ZkPoDExchange *ZkPoDExchangeSession) BobDeposits(arg0 common.Address, arg1 common.Address) (struct {
Value *big.Int
UnDepositAt *big.Int
PendingCnt *big.Int
Stat uint8
}, error) {
return _ZkPoDExchange.Contract.BobDeposits(&_ZkPoDExchange.CallOpts, arg0, arg1)
}
// BobDeposits is a free data retrieval call binding the contract method 0x98033565.
//
// Solidity: function bobDeposits_(address , address ) constant returns(uint256 value, uint256 unDepositAt, uint256 pendingCnt, uint8 stat)
func (_ZkPoDExchange *ZkPoDExchangeCallerSession) BobDeposits(arg0 common.Address, arg1 common.Address) (struct {
Value *big.Int
UnDepositAt *big.Int
PendingCnt *big.Int
Stat uint8
}, error) {
return _ZkPoDExchange.Contract.BobDeposits(&_ZkPoDExchange.CallOpts, arg0, arg1)
}
// Bulletins is a free data retrieval call binding the contract method 0xd9417785.
//
// Solidity: function bulletins_(bytes32 ) constant returns(address owner, uint64 size, uint64 s, uint64 n, uint256 sigma_mkl_root, uint256 vrf_meta_digest, uint256 pledge_value, uint256 unDepositAt, uint256 pendingCnt, uint8 blt_type, uint8 stat)
func (_ZkPoDExchange *ZkPoDExchangeCaller) Bulletins(opts *bind.CallOpts, arg0 [32]byte) (struct {
Owner common.Address
Size uint64
S uint64
N uint64
SigmaMklRoot *big.Int
VrfMetaDigest *big.Int
PledgeValue *big.Int
UnDepositAt *big.Int
PendingCnt *big.Int
BltType uint8
Stat uint8
}, error) {
ret := new(struct {
Owner common.Address
Size uint64
S uint64
N uint64
SigmaMklRoot *big.Int
VrfMetaDigest *big.Int
PledgeValue *big.Int
UnDepositAt *big.Int
PendingCnt *big.Int
BltType uint8
Stat uint8
})
out := ret
err := _ZkPoDExchange.contract.Call(opts, out, "bulletins_", arg0)
return *ret, err
}
// Bulletins is a free data retrieval call binding the contract method 0xd9417785.
//
// Solidity: function bulletins_(bytes32 ) constant returns(address owner, uint64 size, uint64 s, uint64 n, uint256 sigma_mkl_root, uint256 vrf_meta_digest, uint256 pledge_value, uint256 unDepositAt, uint256 pendingCnt, uint8 blt_type, uint8 stat)
func (_ZkPoDExchange *ZkPoDExchangeSession) Bulletins(arg0 [32]byte) (struct {
Owner common.Address
Size uint64
S uint64
N uint64
SigmaMklRoot *big.Int
VrfMetaDigest *big.Int
PledgeValue *big.Int
UnDepositAt *big.Int
PendingCnt *big.Int
BltType uint8
Stat uint8
}, error) {
return _ZkPoDExchange.Contract.Bulletins(&_ZkPoDExchange.CallOpts, arg0)
}
// Bulletins is a free data retrieval call binding the contract method 0xd9417785.
//
// Solidity: function bulletins_(bytes32 ) constant returns(address owner, uint64 size, uint64 s, uint64 n, uint256 sigma_mkl_root, uint256 vrf_meta_digest, uint256 pledge_value, uint256 unDepositAt, uint256 pendingCnt, uint8 blt_type, uint8 stat)
func (_ZkPoDExchange *ZkPoDExchangeCallerSession) Bulletins(arg0 [32]byte) (struct {
Owner common.Address
Size uint64
S uint64
N uint64
SigmaMklRoot *big.Int
VrfMetaDigest *big.Int
PledgeValue *big.Int
UnDepositAt *big.Int
PendingCnt *big.Int
BltType uint8
Stat uint8
}, error) {
return _ZkPoDExchange.Contract.Bulletins(&_ZkPoDExchange.CallOpts, arg0)
}
// GetRecordAtomicSwap is a free data retrieval call binding the contract method 0x7c7c75a8.
//
// Solidity: function getRecordAtomicSwap(address _a, address _b, uint256 _sid) constant returns(bytes32 seed0, uint256 submitAt)
func (_ZkPoDExchange *ZkPoDExchangeCaller) GetRecordAtomicSwap(opts *bind.CallOpts, _a common.Address, _b common.Address, _sid *big.Int) (struct {
Seed0 [32]byte
SubmitAt *big.Int
}, error) {
ret := new(struct {
Seed0 [32]byte
SubmitAt *big.Int
})
out := ret
err := _ZkPoDExchange.contract.Call(opts, out, "getRecordAtomicSwap", _a, _b, _sid)
return *ret, err
}
// GetRecordAtomicSwap is a free data retrieval call binding the contract method 0x7c7c75a8.
//
// Solidity: function getRecordAtomicSwap(address _a, address _b, uint256 _sid) constant returns(bytes32 seed0, uint256 submitAt)
func (_ZkPoDExchange *ZkPoDExchangeSession) GetRecordAtomicSwap(_a common.Address, _b common.Address, _sid *big.Int) (struct {
Seed0 [32]byte
SubmitAt *big.Int
}, error) {
return _ZkPoDExchange.Contract.GetRecordAtomicSwap(&_ZkPoDExchange.CallOpts, _a, _b, _sid)
}
// GetRecordAtomicSwap is a free data retrieval call binding the contract method 0x7c7c75a8.
//
// Solidity: function getRecordAtomicSwap(address _a, address _b, uint256 _sid) constant returns(bytes32 seed0, uint256 submitAt)
func (_ZkPoDExchange *ZkPoDExchangeCallerSession) GetRecordAtomicSwap(_a common.Address, _b common.Address, _sid *big.Int) (struct {
Seed0 [32]byte
SubmitAt *big.Int
}, error) {
return _ZkPoDExchange.Contract.GetRecordAtomicSwap(&_ZkPoDExchange.CallOpts, _a, _b, _sid)
}
// GetRecordAtomicSwapVC is a free data retrieval call binding the contract method 0xa7e7b767.
//
// Solidity: function getRecordAtomicSwapVC(address _a, address _b, uint256 _sid) constant returns(uint256 seed0, uint256 seed0_rand, uint256 submitAt)
func (_ZkPoDExchange *ZkPoDExchangeCaller) GetRecordAtomicSwapVC(opts *bind.CallOpts, _a common.Address, _b common.Address, _sid *big.Int) (struct {
Seed0 *big.Int
Seed0Rand *big.Int
SubmitAt *big.Int
}, error) {
ret := new(struct {
Seed0 *big.Int
Seed0Rand *big.Int
SubmitAt *big.Int
})
out := ret
err := _ZkPoDExchange.contract.Call(opts, out, "getRecordAtomicSwapVC", _a, _b, _sid)
return *ret, err
}
// GetRecordAtomicSwapVC is a free data retrieval call binding the contract method 0xa7e7b767.
//
// Solidity: function getRecordAtomicSwapVC(address _a, address _b, uint256 _sid) constant returns(uint256 seed0, uint256 seed0_rand, uint256 submitAt)
func (_ZkPoDExchange *ZkPoDExchangeSession) GetRecordAtomicSwapVC(_a common.Address, _b common.Address, _sid *big.Int) (struct {
Seed0 *big.Int
Seed0Rand *big.Int
SubmitAt *big.Int
}, error) {
return _ZkPoDExchange.Contract.GetRecordAtomicSwapVC(&_ZkPoDExchange.CallOpts, _a, _b, _sid)
}
// GetRecordAtomicSwapVC is a free data retrieval call binding the contract method 0xa7e7b767.
//
// Solidity: function getRecordAtomicSwapVC(address _a, address _b, uint256 _sid) constant returns(uint256 seed0, uint256 seed0_rand, uint256 submitAt)
func (_ZkPoDExchange *ZkPoDExchangeCallerSession) GetRecordAtomicSwapVC(_a common.Address, _b common.Address, _sid *big.Int) (struct {
Seed0 *big.Int
Seed0Rand *big.Int
SubmitAt *big.Int
}, error) {
return _ZkPoDExchange.Contract.GetRecordAtomicSwapVC(&_ZkPoDExchange.CallOpts, _a, _b, _sid)
}
// GetRecordComplaint is a free data retrieval call binding the contract method 0x1f31e95e.
//
// Solidity: function getRecordComplaint(address _a, address _b, uint256 _sid) constant returns(bytes32 seed0, bytes32 seed2, bytes32 k_mkl_root, uint64 count, uint256 price, uint256 expireAt, uint256 submitAt)
func (_ZkPoDExchange *ZkPoDExchangeCaller) GetRecordComplaint(opts *bind.CallOpts, _a common.Address, _b common.Address, _sid *big.Int) (struct {
Seed0 [32]byte
Seed2 [32]byte
KMklRoot [32]byte
Count uint64
Price *big.Int
ExpireAt *big.Int
SubmitAt *big.Int
}, error) {
ret := new(struct {
Seed0 [32]byte
Seed2 [32]byte
KMklRoot [32]byte
Count uint64
Price *big.Int
ExpireAt *big.Int
SubmitAt *big.Int
})
out := ret
err := _ZkPoDExchange.contract.Call(opts, out, "getRecordComplaint", _a, _b, _sid)
return *ret, err
}
// GetRecordComplaint is a free data retrieval call binding the contract method 0x1f31e95e.
//
// Solidity: function getRecordComplaint(address _a, address _b, uint256 _sid) constant returns(bytes32 seed0, bytes32 seed2, bytes32 k_mkl_root, uint64 count, uint256 price, uint256 expireAt, uint256 submitAt)
func (_ZkPoDExchange *ZkPoDExchangeSession) GetRecordComplaint(_a common.Address, _b common.Address, _sid *big.Int) (struct {
Seed0 [32]byte
Seed2 [32]byte
KMklRoot [32]byte
Count uint64
Price *big.Int
ExpireAt *big.Int
SubmitAt *big.Int
}, error) {
return _ZkPoDExchange.Contract.GetRecordComplaint(&_ZkPoDExchange.CallOpts, _a, _b, _sid)
}
// GetRecordComplaint is a free data retrieval call binding the contract method 0x1f31e95e.
//
// Solidity: function getRecordComplaint(address _a, address _b, uint256 _sid) constant returns(bytes32 seed0, bytes32 seed2, bytes32 k_mkl_root, uint64 count, uint256 price, uint256 expireAt, uint256 submitAt)
func (_ZkPoDExchange *ZkPoDExchangeCallerSession) GetRecordComplaint(_a common.Address, _b common.Address, _sid *big.Int) (struct {
Seed0 [32]byte
Seed2 [32]byte
KMklRoot [32]byte
Count uint64
Price *big.Int
ExpireAt *big.Int
SubmitAt *big.Int
}, error) {
return _ZkPoDExchange.Contract.GetRecordComplaint(&_ZkPoDExchange.CallOpts, _a, _b, _sid)
}
// GetRecordVRF is a free data retrieval call binding the contract method 0xb79881e1.
//
// Solidity: function getRecordVRF(address _a, address _b, uint256 _sid) constant returns(uint256 r, uint256 submitAt)
func (_ZkPoDExchange *ZkPoDExchangeCaller) GetRecordVRF(opts *bind.CallOpts, _a common.Address, _b common.Address, _sid *big.Int) (struct {
R *big.Int
SubmitAt *big.Int
}, error) {
ret := new(struct {
R *big.Int
SubmitAt *big.Int
})
out := ret
err := _ZkPoDExchange.contract.Call(opts, out, "getRecordVRF", _a, _b, _sid)
return *ret, err
}
// GetRecordVRF is a free data retrieval call binding the contract method 0xb79881e1.
//
// Solidity: function getRecordVRF(address _a, address _b, uint256 _sid) constant returns(uint256 r, uint256 submitAt)
func (_ZkPoDExchange *ZkPoDExchangeSession) GetRecordVRF(_a common.Address, _b common.Address, _sid *big.Int) (struct {
R *big.Int
SubmitAt *big.Int
}, error) {
return _ZkPoDExchange.Contract.GetRecordVRF(&_ZkPoDExchange.CallOpts, _a, _b, _sid)
}
// GetRecordVRF is a free data retrieval call binding the contract method 0xb79881e1.
//
// Solidity: function getRecordVRF(address _a, address _b, uint256 _sid) constant returns(uint256 r, uint256 submitAt)
func (_ZkPoDExchange *ZkPoDExchangeCallerSession) GetRecordVRF(_a common.Address, _b common.Address, _sid *big.Int) (struct {
R *big.Int
SubmitAt *big.Int
}, error) {
return _ZkPoDExchange.Contract.GetRecordVRF(&_ZkPoDExchange.CallOpts, _a, _b, _sid)
}
// GetSessionRecord is a free data retrieval call binding the contract method 0xacff2f99.
//
// Solidity: function getSessionRecord(address _a, address _b, uint256 _sid) constant returns(uint256 submitAt, uint8 mode, uint8 stat)
func (_ZkPoDExchange *ZkPoDExchangeCaller) GetSessionRecord(opts *bind.CallOpts, _a common.Address, _b common.Address, _sid *big.Int) (struct {
SubmitAt *big.Int
Mode uint8
Stat uint8
}, error) {
ret := new(struct {
SubmitAt *big.Int
Mode uint8
Stat uint8
})
out := ret
err := _ZkPoDExchange.contract.Call(opts, out, "getSessionRecord", _a, _b, _sid)
return *ret, err
}
// GetSessionRecord is a free data retrieval call binding the contract method 0xacff2f99.
//
// Solidity: function getSessionRecord(address _a, address _b, uint256 _sid) constant returns(uint256 submitAt, uint8 mode, uint8 stat)
func (_ZkPoDExchange *ZkPoDExchangeSession) GetSessionRecord(_a common.Address, _b common.Address, _sid *big.Int) (struct {
SubmitAt *big.Int
Mode uint8
Stat uint8
}, error) {
return _ZkPoDExchange.Contract.GetSessionRecord(&_ZkPoDExchange.CallOpts, _a, _b, _sid)
}
// GetSessionRecord is a free data retrieval call binding the contract method 0xacff2f99.
//
// Solidity: function getSessionRecord(address _a, address _b, uint256 _sid) constant returns(uint256 submitAt, uint8 mode, uint8 stat)
func (_ZkPoDExchange *ZkPoDExchangeCallerSession) GetSessionRecord(_a common.Address, _b common.Address, _sid *big.Int) (struct {
SubmitAt *big.Int
Mode uint8
Stat uint8
}, error) {
return _ZkPoDExchange.Contract.GetSessionRecord(&_ZkPoDExchange.CallOpts, _a, _b, _sid)
}
// PublicVar is a free data retrieval call binding the contract method 0x0a6c93e0.
//
// Solidity: function publicVar_() constant returns(address)
func (_ZkPoDExchange *ZkPoDExchangeCaller) PublicVar(opts *bind.CallOpts) (common.Address, error) {
var (
ret0 = new(common.Address)
)
out := ret0
err := _ZkPoDExchange.contract.Call(opts, out, "publicVar_")
return *ret0, err
}
// PublicVar is a free data retrieval call binding the contract method 0x0a6c93e0.
//
// Solidity: function publicVar_() constant returns(address)
func (_ZkPoDExchange *ZkPoDExchangeSession) PublicVar() (common.Address, error) {
return _ZkPoDExchange.Contract.PublicVar(&_ZkPoDExchange.CallOpts)
}
// PublicVar is a free data retrieval call binding the contract method 0x0a6c93e0.
//
// Solidity: function publicVar_() constant returns(address)
func (_ZkPoDExchange *ZkPoDExchangeCallerSession) PublicVar() (common.Address, error) {
return _ZkPoDExchange.Contract.PublicVar(&_ZkPoDExchange.CallOpts)
}
// S is a free data retrieval call binding the contract method 0xc6b46963.
//
// Solidity: function s_() constant returns(uint64)
func (_ZkPoDExchange *ZkPoDExchangeCaller) S(opts *bind.CallOpts) (uint64, error) {
var (
ret0 = new(uint64)
)
out := ret0
err := _ZkPoDExchange.contract.Call(opts, out, "s_")
return *ret0, err
}
// S is a free data retrieval call binding the contract method 0xc6b46963.
//
// Solidity: function s_() constant returns(uint64)
func (_ZkPoDExchange *ZkPoDExchangeSession) S() (uint64, error) {
return _ZkPoDExchange.Contract.S(&_ZkPoDExchange.CallOpts)
}
// S is a free data retrieval call binding the contract method 0xc6b46963.
//
// Solidity: function s_() constant returns(uint64)
func (_ZkPoDExchange *ZkPoDExchangeCallerSession) S() (uint64, error) {
return _ZkPoDExchange.Contract.S(&_ZkPoDExchange.CallOpts)
}
// T1 is a free data retrieval call binding the contract method 0xfb5343f3.
//
// Solidity: function t1() constant returns(uint256)
func (_ZkPoDExchange *ZkPoDExchangeCaller) T1(opts *bind.CallOpts) (*big.Int, error) {
var (
ret0 = new(*big.Int)
)
out := ret0
err := _ZkPoDExchange.contract.Call(opts, out, "t1")
return *ret0, err
}
// T1 is a free data retrieval call binding the contract method 0xfb5343f3.
//
// Solidity: function t1() constant returns(uint256)
func (_ZkPoDExchange *ZkPoDExchangeSession) T1() (*big.Int, error) {
return _ZkPoDExchange.Contract.T1(&_ZkPoDExchange.CallOpts)
}
// T1 is a free data retrieval call binding the contract method 0xfb5343f3.
//
// Solidity: function t1() constant returns(uint256)
func (_ZkPoDExchange *ZkPoDExchangeCallerSession) T1() (*big.Int, error) {
return _ZkPoDExchange.Contract.T1(&_ZkPoDExchange.CallOpts)
}
// T3 is a free data retrieval call binding the contract method 0xcfad78b1.
//
// Solidity: function t3() constant returns(uint256)
func (_ZkPoDExchange *ZkPoDExchangeCaller) T3(opts *bind.CallOpts) (*big.Int, error) {
var (
ret0 = new(*big.Int)
)
out := ret0
err := _ZkPoDExchange.contract.Call(opts, out, "t3")
return *ret0, err
}
// T3 is a free data retrieval call binding the contract method 0xcfad78b1.
//
// Solidity: function t3() constant returns(uint256)
func (_ZkPoDExchange *ZkPoDExchangeSession) T3() (*big.Int, error) {
return _ZkPoDExchange.Contract.T3(&_ZkPoDExchange.CallOpts)
}
// T3 is a free data retrieval call binding the contract method 0xcfad78b1.
//
// Solidity: function t3() constant returns(uint256)
func (_ZkPoDExchange *ZkPoDExchangeCallerSession) T3() (*big.Int, error) {
return _ZkPoDExchange.Contract.T3(&_ZkPoDExchange.CallOpts)
}
// T4 is a free data retrieval call binding the contract method 0xfeae062d.
//
// Solidity: function t4() constant returns(uint256)
func (_ZkPoDExchange *ZkPoDExchangeCaller) T4(opts *bind.CallOpts) (*big.Int, error) {
var (
ret0 = new(*big.Int)
)
out := ret0
err := _ZkPoDExchange.contract.Call(opts, out, "t4")
return *ret0, err
}
// T4 is a free data retrieval call binding the contract method 0xfeae062d.
//
// Solidity: function t4() constant returns(uint256)
func (_ZkPoDExchange *ZkPoDExchangeSession) T4() (*big.Int, error) {
return _ZkPoDExchange.Contract.T4(&_ZkPoDExchange.CallOpts)
}
// T4 is a free data retrieval call binding the contract method 0xfeae062d.
//
// Solidity: function t4() constant returns(uint256)
func (_ZkPoDExchange *ZkPoDExchangeCallerSession) T4() (*big.Int, error) {
return _ZkPoDExchange.Contract.T4(&_ZkPoDExchange.CallOpts)
}
// BobDeposit is a paid mutator transaction binding the contract method 0x6bc76fdb.
//
// Solidity: function bobDeposit(address _to) returns()
func (_ZkPoDExchange *ZkPoDExchangeTransactor) BobDeposit(opts *bind.TransactOpts, _to common.Address) (*types.Transaction, error) {
return _ZkPoDExchange.contract.Transact(opts, "bobDeposit", _to)
}
// BobDeposit is a paid mutator transaction binding the contract method 0x6bc76fdb.
//
// Solidity: function bobDeposit(address _to) returns()
func (_ZkPoDExchange *ZkPoDExchangeSession) BobDeposit(_to common.Address) (*types.Transaction, error) {
return _ZkPoDExchange.Contract.BobDeposit(&_ZkPoDExchange.TransactOpts, _to)
}
// BobDeposit is a paid mutator transaction binding the contract method 0x6bc76fdb.
//
// Solidity: function bobDeposit(address _to) returns()
func (_ZkPoDExchange *ZkPoDExchangeTransactorSession) BobDeposit(_to common.Address) (*types.Transaction, error) {
return _ZkPoDExchange.Contract.BobDeposit(&_ZkPoDExchange.TransactOpts, _to)
}
// BobUnDeposit is a paid mutator transaction binding the contract method 0x30a84ef3.
//
// Solidity: function bobUnDeposit(address _to) returns()
func (_ZkPoDExchange *ZkPoDExchangeTransactor) BobUnDeposit(opts *bind.TransactOpts, _to common.Address) (*types.Transaction, error) {
return _ZkPoDExchange.contract.Transact(opts, "bobUnDeposit", _to)
}
// BobUnDeposit is a paid mutator transaction binding the contract method 0x30a84ef3.
//
// Solidity: function bobUnDeposit(address _to) returns()
func (_ZkPoDExchange *ZkPoDExchangeSession) BobUnDeposit(_to common.Address) (*types.Transaction, error) {
return _ZkPoDExchange.Contract.BobUnDeposit(&_ZkPoDExchange.TransactOpts, _to)
}
// BobUnDeposit is a paid mutator transaction binding the contract method 0x30a84ef3.
//
// Solidity: function bobUnDeposit(address _to) returns()
func (_ZkPoDExchange *ZkPoDExchangeTransactorSession) BobUnDeposit(_to common.Address) (*types.Transaction, error) {
return _ZkPoDExchange.Contract.BobUnDeposit(&_ZkPoDExchange.TransactOpts, _to)
}
// ClaimComplaint is a paid mutator transaction binding the contract method 0xf0e2e4e6.
//
// Solidity: function claimComplaint(address _a, uint256 _sid, uint64 _i, uint64 _j, uint256 _tx, uint256 _ty, bytes32[] _mkl_path, uint64 _sCnt) returns()
func (_ZkPoDExchange *ZkPoDExchangeTransactor) ClaimComplaint(opts *bind.TransactOpts, _a common.Address, _sid *big.Int, _i uint64, _j uint64, _tx *big.Int, _ty *big.Int, _mkl_path [][32]byte, _sCnt uint64) (*types.Transaction, error) {
return _ZkPoDExchange.contract.Transact(opts, "claimComplaint", _a, _sid, _i, _j, _tx, _ty, _mkl_path, _sCnt)
}
// ClaimComplaint is a paid mutator transaction binding the contract method 0xf0e2e4e6.
//
// Solidity: function claimComplaint(address _a, uint256 _sid, uint64 _i, uint64 _j, uint256 _tx, uint256 _ty, bytes32[] _mkl_path, uint64 _sCnt) returns()
func (_ZkPoDExchange *ZkPoDExchangeSession) ClaimComplaint(_a common.Address, _sid *big.Int, _i uint64, _j uint64, _tx *big.Int, _ty *big.Int, _mkl_path [][32]byte, _sCnt uint64) (*types.Transaction, error) {
return _ZkPoDExchange.Contract.ClaimComplaint(&_ZkPoDExchange.TransactOpts, _a, _sid, _i, _j, _tx, _ty, _mkl_path, _sCnt)
}
// ClaimComplaint is a paid mutator transaction binding the contract method 0xf0e2e4e6.
//
// Solidity: function claimComplaint(address _a, uint256 _sid, uint64 _i, uint64 _j, uint256 _tx, uint256 _ty, bytes32[] _mkl_path, uint64 _sCnt) returns()
func (_ZkPoDExchange *ZkPoDExchangeTransactorSession) ClaimComplaint(_a common.Address, _sid *big.Int, _i uint64, _j uint64, _tx *big.Int, _ty *big.Int, _mkl_path [][32]byte, _sCnt uint64) (*types.Transaction, error) {
return _ZkPoDExchange.Contract.ClaimComplaint(&_ZkPoDExchange.TransactOpts, _a, _sid, _i, _j, _tx, _ty, _mkl_path, _sCnt)
}
// Publish is a paid mutator transaction binding the contract method 0x56e25912.
//
// Solidity: function publish(uint64 _size, uint64 _s, uint64 _n, uint256 _sigma_mkl_root, uint256 _vrf_meta_digest, uint256 _blt_type) returns()
func (_ZkPoDExchange *ZkPoDExchangeTransactor) Publish(opts *bind.TransactOpts, _size uint64, _s uint64, _n uint64, _sigma_mkl_root *big.Int, _vrf_meta_digest *big.Int, _blt_type *big.Int) (*types.Transaction, error) {
return _ZkPoDExchange.contract.Transact(opts, "publish", _size, _s, _n, _sigma_mkl_root, _vrf_meta_digest, _blt_type)
}
// Publish is a paid mutator transaction binding the contract method 0x56e25912.
//
// Solidity: function publish(uint64 _size, uint64 _s, uint64 _n, uint256 _sigma_mkl_root, uint256 _vrf_meta_digest, uint256 _blt_type) returns()
func (_ZkPoDExchange *ZkPoDExchangeSession) Publish(_size uint64, _s uint64, _n uint64, _sigma_mkl_root *big.Int, _vrf_meta_digest *big.Int, _blt_type *big.Int) (*types.Transaction, error) {
return _ZkPoDExchange.Contract.Publish(&_ZkPoDExchange.TransactOpts, _size, _s, _n, _sigma_mkl_root, _vrf_meta_digest, _blt_type)
}
// Publish is a paid mutator transaction binding the contract method 0x56e25912.
//
// Solidity: function publish(uint64 _size, uint64 _s, uint64 _n, uint256 _sigma_mkl_root, uint256 _vrf_meta_digest, uint256 _blt_type) returns()
func (_ZkPoDExchange *ZkPoDExchangeTransactorSession) Publish(_size uint64, _s uint64, _n uint64, _sigma_mkl_root *big.Int, _vrf_meta_digest *big.Int, _blt_type *big.Int) (*types.Transaction, error) {
return _ZkPoDExchange.Contract.Publish(&_ZkPoDExchange.TransactOpts, _size, _s, _n, _sigma_mkl_root, _vrf_meta_digest, _blt_type)
}
// SettleComplaintDeal is a paid mutator transaction binding the contract method 0x629eee0a.
//
// Solidity: function settleComplaintDeal(address _a, address _b, uint256 _sid) returns()
func (_ZkPoDExchange *ZkPoDExchangeTransactor) SettleComplaintDeal(opts *bind.TransactOpts, _a common.Address, _b common.Address, _sid *big.Int) (*types.Transaction, error) {
return _ZkPoDExchange.contract.Transact(opts, "settleComplaintDeal", _a, _b, _sid)
}
// SettleComplaintDeal is a paid mutator transaction binding the contract method 0x629eee0a.
//
// Solidity: function settleComplaintDeal(address _a, address _b, uint256 _sid) returns()
func (_ZkPoDExchange *ZkPoDExchangeSession) SettleComplaintDeal(_a common.Address, _b common.Address, _sid *big.Int) (*types.Transaction, error) {
return _ZkPoDExchange.Contract.SettleComplaintDeal(&_ZkPoDExchange.TransactOpts, _a, _b, _sid)
}
// SettleComplaintDeal is a paid mutator transaction binding the contract method 0x629eee0a.
//
// Solidity: function settleComplaintDeal(address _a, address _b, uint256 _sid) returns()
func (_ZkPoDExchange *ZkPoDExchangeTransactorSession) SettleComplaintDeal(_a common.Address, _b common.Address, _sid *big.Int) (*types.Transaction, error) {
return _ZkPoDExchange.Contract.SettleComplaintDeal(&_ZkPoDExchange.TransactOpts, _a, _b, _sid)
}
// SubmitProofAtomicSwap is a paid mutator transaction binding the contract method 0x37c89b89.
//
// Solidity: function submitProofAtomicSwap(bytes32 _seed0, uint64 _sCnt, uint256 _sid, address[2] _addrs, bytes32 _seed2, uint256 _sigma_vw, uint64 _count, uint256 _price, uint256 _expireAt, bytes _sig) returns()
func (_ZkPoDExchange *ZkPoDExchangeTransactor) SubmitProofAtomicSwap(opts *bind.TransactOpts, _seed0 [32]byte, _sCnt uint64, _sid *big.Int, _addrs [2]common.Address, _seed2 [32]byte, _sigma_vw *big.Int, _count uint64, _price *big.Int, _expireAt *big.Int, _sig []byte) (*types.Transaction, error) {
return _ZkPoDExchange.contract.Transact(opts, "submitProofAtomicSwap", _seed0, _sCnt, _sid, _addrs, _seed2, _sigma_vw, _count, _price, _expireAt, _sig)
}
// SubmitProofAtomicSwap is a paid mutator transaction binding the contract method 0x37c89b89.
//
// Solidity: function submitProofAtomicSwap(bytes32 _seed0, uint64 _sCnt, uint256 _sid, address[2] _addrs, bytes32 _seed2, uint256 _sigma_vw, uint64 _count, uint256 _price, uint256 _expireAt, bytes _sig) returns()
func (_ZkPoDExchange *ZkPoDExchangeSession) SubmitProofAtomicSwap(_seed0 [32]byte, _sCnt uint64, _sid *big.Int, _addrs [2]common.Address, _seed2 [32]byte, _sigma_vw *big.Int, _count uint64, _price *big.Int, _expireAt *big.Int, _sig []byte) (*types.Transaction, error) {
return _ZkPoDExchange.Contract.SubmitProofAtomicSwap(&_ZkPoDExchange.TransactOpts, _seed0, _sCnt, _sid, _addrs, _seed2, _sigma_vw, _count, _price, _expireAt, _sig)
}
// SubmitProofAtomicSwap is a paid mutator transaction binding the contract method 0x37c89b89.
//
// Solidity: function submitProofAtomicSwap(bytes32 _seed0, uint64 _sCnt, uint256 _sid, address[2] _addrs, bytes32 _seed2, uint256 _sigma_vw, uint64 _count, uint256 _price, uint256 _expireAt, bytes _sig) returns()
func (_ZkPoDExchange *ZkPoDExchangeTransactorSession) SubmitProofAtomicSwap(_seed0 [32]byte, _sCnt uint64, _sid *big.Int, _addrs [2]common.Address, _seed2 [32]byte, _sigma_vw *big.Int, _count uint64, _price *big.Int, _expireAt *big.Int, _sig []byte) (*types.Transaction, error) {
return _ZkPoDExchange.Contract.SubmitProofAtomicSwap(&_ZkPoDExchange.TransactOpts, _seed0, _sCnt, _sid, _addrs, _seed2, _sigma_vw, _count, _price, _expireAt, _sig)
}
// SubmitProofAtomicSwapVC is a paid mutator transaction binding the contract method 0x99ef8c5f.
//
// Solidity: function submitProofAtomicSwapVC(uint256 _seed0, uint256 _seed0_rand, uint256 _sid, address[2] _addrs, uint256 _seed0_mimc3_digest, uint256 _price, uint256 _expireAt, bytes _sig) returns()
func (_ZkPoDExchange *ZkPoDExchangeTransactor) SubmitProofAtomicSwapVC(opts *bind.TransactOpts, _seed0 *big.Int, _seed0_rand *big.Int, _sid *big.Int, _addrs [2]common.Address, _seed0_mimc3_digest *big.Int, _price *big.Int, _expireAt *big.Int, _sig []byte) (*types.Transaction, error) {
return _ZkPoDExchange.contract.Transact(opts, "submitProofAtomicSwapVC", _seed0, _seed0_rand, _sid, _addrs, _seed0_mimc3_digest, _price, _expireAt, _sig)
}
// SubmitProofAtomicSwapVC is a paid mutator transaction binding the contract method 0x99ef8c5f.
//
// Solidity: function submitProofAtomicSwapVC(uint256 _seed0, uint256 _seed0_rand, uint256 _sid, address[2] _addrs, uint256 _seed0_mimc3_digest, uint256 _price, uint256 _expireAt, bytes _sig) returns()
func (_ZkPoDExchange *ZkPoDExchangeSession) SubmitProofAtomicSwapVC(_seed0 *big.Int, _seed0_rand *big.Int, _sid *big.Int, _addrs [2]common.Address, _seed0_mimc3_digest *big.Int, _price *big.Int, _expireAt *big.Int, _sig []byte) (*types.Transaction, error) {
return _ZkPoDExchange.Contract.SubmitProofAtomicSwapVC(&_ZkPoDExchange.TransactOpts, _seed0, _seed0_rand, _sid, _addrs, _seed0_mimc3_digest, _price, _expireAt, _sig)
}
// SubmitProofAtomicSwapVC is a paid mutator transaction binding the contract method 0x99ef8c5f.
//
// Solidity: function submitProofAtomicSwapVC(uint256 _seed0, uint256 _seed0_rand, uint256 _sid, address[2] _addrs, uint256 _seed0_mimc3_digest, uint256 _price, uint256 _expireAt, bytes _sig) returns()
func (_ZkPoDExchange *ZkPoDExchangeTransactorSession) SubmitProofAtomicSwapVC(_seed0 *big.Int, _seed0_rand *big.Int, _sid *big.Int, _addrs [2]common.Address, _seed0_mimc3_digest *big.Int, _price *big.Int, _expireAt *big.Int, _sig []byte) (*types.Transaction, error) {
return _ZkPoDExchange.Contract.SubmitProofAtomicSwapVC(&_ZkPoDExchange.TransactOpts, _seed0, _seed0_rand, _sid, _addrs, _seed0_mimc3_digest, _price, _expireAt, _sig)
}
// SubmitProofComplaint is a paid mutator transaction binding the contract method 0x75843a12.
//
// Solidity: function submitProofComplaint(bytes32 _seed0, uint256 _sid, address[2] _addrs, bytes32 _bltKey, bytes32 _seed2, bytes32 _k_mkl_root, uint64 _count, uint256 _price, uint256 _expireAt, bytes _sig) returns()
func (_ZkPoDExchange *ZkPoDExchangeTransactor) SubmitProofComplaint(opts *bind.TransactOpts, _seed0 [32]byte, _sid *big.Int, _addrs [2]common.Address, _bltKey [32]byte, _seed2 [32]byte, _k_mkl_root [32]byte, _count uint64, _price *big.Int, _expireAt *big.Int, _sig []byte) (*types.Transaction, error) {
return _ZkPoDExchange.contract.Transact(opts, "submitProofComplaint", _seed0, _sid, _addrs, _bltKey, _seed2, _k_mkl_root, _count, _price, _expireAt, _sig)
}
// SubmitProofComplaint is a paid mutator transaction binding the contract method 0x75843a12.
//
// Solidity: function submitProofComplaint(bytes32 _seed0, uint256 _sid, address[2] _addrs, bytes32 _bltKey, bytes32 _seed2, bytes32 _k_mkl_root, uint64 _count, uint256 _price, uint256 _expireAt, bytes _sig) returns()
func (_ZkPoDExchange *ZkPoDExchangeSession) SubmitProofComplaint(_seed0 [32]byte, _sid *big.Int, _addrs [2]common.Address, _bltKey [32]byte, _seed2 [32]byte, _k_mkl_root [32]byte, _count uint64, _price *big.Int, _expireAt *big.Int, _sig []byte) (*types.Transaction, error) {
return _ZkPoDExchange.Contract.SubmitProofComplaint(&_ZkPoDExchange.TransactOpts, _seed0, _sid, _addrs, _bltKey, _seed2, _k_mkl_root, _count, _price, _expireAt, _sig)
}
// SubmitProofComplaint is a paid mutator transaction binding the contract method 0x75843a12.
//
// Solidity: function submitProofComplaint(bytes32 _seed0, uint256 _sid, address[2] _addrs, bytes32 _bltKey, bytes32 _seed2, bytes32 _k_mkl_root, uint64 _count, uint256 _price, uint256 _expireAt, bytes _sig) returns()
func (_ZkPoDExchange *ZkPoDExchangeTransactorSession) SubmitProofComplaint(_seed0 [32]byte, _sid *big.Int, _addrs [2]common.Address, _bltKey [32]byte, _seed2 [32]byte, _k_mkl_root [32]byte, _count uint64, _price *big.Int, _expireAt *big.Int, _sig []byte) (*types.Transaction, error) {
return _ZkPoDExchange.Contract.SubmitProofComplaint(&_ZkPoDExchange.TransactOpts, _seed0, _sid, _addrs, _bltKey, _seed2, _k_mkl_root, _count, _price, _expireAt, _sig)
}
// SubmitProofVRF is a paid mutator transaction binding the contract method 0xe1752391.
//
// Solidity: function submitProofVRF(uint256 _s_r, uint256 _sid, address[2] _addrs, uint256[2] _g_exp_r, uint256 _price, uint256 _expireAt, bytes _sig) returns()
func (_ZkPoDExchange *ZkPoDExchangeTransactor) SubmitProofVRF(opts *bind.TransactOpts, _s_r *big.Int, _sid *big.Int, _addrs [2]common.Address, _g_exp_r [2]*big.Int, _price *big.Int, _expireAt *big.Int, _sig []byte) (*types.Transaction, error) {
return _ZkPoDExchange.contract.Transact(opts, "submitProofVRF", _s_r, _sid, _addrs, _g_exp_r, _price, _expireAt, _sig)
}
// SubmitProofVRF is a paid mutator transaction binding the contract method 0xe1752391.
//
// Solidity: function submitProofVRF(uint256 _s_r, uint256 _sid, address[2] _addrs, uint256[2] _g_exp_r, uint256 _price, uint256 _expireAt, bytes _sig) returns()
func (_ZkPoDExchange *ZkPoDExchangeSession) SubmitProofVRF(_s_r *big.Int, _sid *big.Int, _addrs [2]common.Address, _g_exp_r [2]*big.Int, _price *big.Int, _expireAt *big.Int, _sig []byte) (*types.Transaction, error) {
return _ZkPoDExchange.Contract.SubmitProofVRF(&_ZkPoDExchange.TransactOpts, _s_r, _sid, _addrs, _g_exp_r, _price, _expireAt, _sig)
}
// SubmitProofVRF is a paid mutator transaction binding the contract method 0xe1752391.
//
// Solidity: function submitProofVRF(uint256 _s_r, uint256 _sid, address[2] _addrs, uint256[2] _g_exp_r, uint256 _price, uint256 _expireAt, bytes _sig) returns()
func (_ZkPoDExchange *ZkPoDExchangeTransactorSession) SubmitProofVRF(_s_r *big.Int, _sid *big.Int, _addrs [2]common.Address, _g_exp_r [2]*big.Int, _price *big.Int, _expireAt *big.Int, _sig []byte) (*types.Transaction, error) {
return _ZkPoDExchange.Contract.SubmitProofVRF(&_ZkPoDExchange.TransactOpts, _s_r, _sid, _addrs, _g_exp_r, _price, _expireAt, _sig)
}
// UnPublish is a paid mutator transaction binding the contract method 0x52bb0780.
//
// Solidity: function unPublish(bytes32 _bltKey) returns()
func (_ZkPoDExchange *ZkPoDExchangeTransactor) UnPublish(opts *bind.TransactOpts, _bltKey [32]byte) (*types.Transaction, error) {
return _ZkPoDExchange.contract.Transact(opts, "unPublish", _bltKey)
}
// UnPublish is a paid mutator transaction binding the contract method 0x52bb0780.
//
// Solidity: function unPublish(bytes32 _bltKey) returns()
func (_ZkPoDExchange *ZkPoDExchangeSession) UnPublish(_bltKey [32]byte) (*types.Transaction, error) {
return _ZkPoDExchange.Contract.UnPublish(&_ZkPoDExchange.TransactOpts, _bltKey)
}
// UnPublish is a paid mutator transaction binding the contract method 0x52bb0780.
//
// Solidity: function unPublish(bytes32 _bltKey) returns()
func (_ZkPoDExchange *ZkPoDExchangeTransactorSession) UnPublish(_bltKey [32]byte) (*types.Transaction, error) {
return _ZkPoDExchange.Contract.UnPublish(&_ZkPoDExchange.TransactOpts, _bltKey)
}
// WithdrawA is a paid mutator transaction binding the contract method 0x9ecd2944.
//
// Solidity: function withdrawA(bytes32 _bltKey) returns()
func (_ZkPoDExchange *ZkPoDExchangeTransactor) WithdrawA(opts *bind.TransactOpts, _bltKey [32]byte) (*types.Transaction, error) {
return _ZkPoDExchange.contract.Transact(opts, "withdrawA", _bltKey)
}
// WithdrawA is a paid mutator transaction binding the contract method 0x9ecd2944.
//
// Solidity: function withdrawA(bytes32 _bltKey) returns()
func (_ZkPoDExchange *ZkPoDExchangeSession) WithdrawA(_bltKey [32]byte) (*types.Transaction, error) {
return _ZkPoDExchange.Contract.WithdrawA(&_ZkPoDExchange.TransactOpts, _bltKey)
}
// WithdrawA is a paid mutator transaction binding the contract method 0x9ecd2944.
//
// Solidity: function withdrawA(bytes32 _bltKey) returns()
func (_ZkPoDExchange *ZkPoDExchangeTransactorSession) WithdrawA(_bltKey [32]byte) (*types.Transaction, error) {
return _ZkPoDExchange.Contract.WithdrawA(&_ZkPoDExchange.TransactOpts, _bltKey)
}
// WithdrawB is a paid mutator transaction binding the contract method 0x2927251f.
//
// Solidity: function withdrawB(address _a) returns()
func (_ZkPoDExchange *ZkPoDExchangeTransactor) WithdrawB(opts *bind.TransactOpts, _a common.Address) (*types.Transaction, error) {
return _ZkPoDExchange.contract.Transact(opts, "withdrawB", _a)
}
// WithdrawB is a paid mutator transaction binding the contract method 0x2927251f.
//
// Solidity: function withdrawB(address _a) returns()
func (_ZkPoDExchange *ZkPoDExchangeSession) WithdrawB(_a common.Address) (*types.Transaction, error) {
return _ZkPoDExchange.Contract.WithdrawB(&_ZkPoDExchange.TransactOpts, _a)
}
// WithdrawB is a paid mutator transaction binding the contract method 0x2927251f.
//
// Solidity: function withdrawB(address _a) returns()
func (_ZkPoDExchange *ZkPoDExchangeTransactorSession) WithdrawB(_a common.Address) (*types.Transaction, error) {
return _ZkPoDExchange.Contract.WithdrawB(&_ZkPoDExchange.TransactOpts, _a)
}
// ZkPoDExchangeOnAtomicSwapDealIterator is returned from FilterOnAtomicSwapDeal and is used to iterate over the raw logs and unpacked data for OnAtomicSwapDeal events raised by the ZkPoDExchange contract.
type ZkPoDExchangeOnAtomicSwapDealIterator struct {
Event *ZkPoDExchangeOnAtomicSwapDeal // 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 *ZkPoDExchangeOnAtomicSwapDealIterator) 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(ZkPoDExchangeOnAtomicSwapDeal)
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(ZkPoDExchangeOnAtomicSwapDeal)
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 *ZkPoDExchangeOnAtomicSwapDealIterator) Error() error {
return it.fail
}
// Close terminates the iteration process, releasing any pending underlying
// resources.
func (it *ZkPoDExchangeOnAtomicSwapDealIterator) Close() error {
it.sub.Unsubscribe()
return nil
}
// ZkPoDExchangeOnAtomicSwapDeal represents a OnAtomicSwapDeal event raised by the ZkPoDExchange contract.
type ZkPoDExchangeOnAtomicSwapDeal struct {
A common.Address
B common.Address
Sid *big.Int
Seed0 [32]byte
Raw types.Log // Blockchain specific contextual infos
}
// FilterOnAtomicSwapDeal is a free log retrieval operation binding the contract event 0xff2c2f55ea8e89ebf103b88cb5f7806ec36789e2e8ffb192727fa47ccfec5d63.
//
// Solidity: event OnAtomicSwapDeal(address indexed _a, address indexed _b, uint256 indexed _sid, bytes32 _seed0)
func (_ZkPoDExchange *ZkPoDExchangeFilterer) FilterOnAtomicSwapDeal(opts *bind.FilterOpts, _a []common.Address, _b []common.Address, _sid []*big.Int) (*ZkPoDExchangeOnAtomicSwapDealIterator, error) {
var _aRule []interface{}
for _, _aItem := range _a {
_aRule = append(_aRule, _aItem)
}
var _bRule []interface{}
for _, _bItem := range _b {
_bRule = append(_bRule, _bItem)
}
var _sidRule []interface{}
for _, _sidItem := range _sid {
_sidRule = append(_sidRule, _sidItem)
}
logs, sub, err := _ZkPoDExchange.contract.FilterLogs(opts, "OnAtomicSwapDeal", _aRule, _bRule, _sidRule)
if err != nil {
return nil, err
}
return &ZkPoDExchangeOnAtomicSwapDealIterator{contract: _ZkPoDExchange.contract, event: "OnAtomicSwapDeal", logs: logs, sub: sub}, nil
}
// WatchOnAtomicSwapDeal is a free log subscription operation binding the contract event 0xff2c2f55ea8e89ebf103b88cb5f7806ec36789e2e8ffb192727fa47ccfec5d63.
//
// Solidity: event OnAtomicSwapDeal(address indexed _a, address indexed _b, uint256 indexed _sid, bytes32 _seed0)
func (_ZkPoDExchange *ZkPoDExchangeFilterer) WatchOnAtomicSwapDeal(opts *bind.WatchOpts, sink chan<- *ZkPoDExchangeOnAtomicSwapDeal, _a []common.Address, _b []common.Address, _sid []*big.Int) (event.Subscription, error) {
var _aRule []interface{}
for _, _aItem := range _a {
_aRule = append(_aRule, _aItem)
}
var _bRule []interface{}
for _, _bItem := range _b {
_bRule = append(_bRule, _bItem)
}
var _sidRule []interface{}
for _, _sidItem := range _sid {
_sidRule = append(_sidRule, _sidItem)
}
logs, sub, err := _ZkPoDExchange.contract.WatchLogs(opts, "OnAtomicSwapDeal", _aRule, _bRule, _sidRule)