-
Notifications
You must be signed in to change notification settings - Fork 56
/
solveoutbox.go
2134 lines (1838 loc) · 103 KB
/
solveoutbox.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 bindings
import (
"errors"
"math/big"
"strings"
ethereum "github.com/ethereum/go-ethereum"
"github.com/ethereum/go-ethereum/accounts/abi"
"github.com/ethereum/go-ethereum/accounts/abi/bind"
"github.com/ethereum/go-ethereum/common"
"github.com/ethereum/go-ethereum/core/types"
"github.com/ethereum/go-ethereum/event"
)
// Reference imports to suppress errors if they are not otherwise used.
var (
_ = errors.New
_ = big.NewInt
_ = strings.NewReader
_ = ethereum.NotFound
_ = bind.Bind
_ = common.Big1
_ = types.BloomLookup
_ = event.NewSubscription
_ = abi.ConvertType
)
// SolveCall is an auto generated low-level Go binding around an user-defined struct.
// autocommented by commenttypes.go
// type SolveCall struct {
// DestChainId uint64
// Target common.Address
// Value *big.Int
// Data []byte
// }
// SolveTokenPrereq is an auto generated low-level Go binding around an user-defined struct.
type SolveTokenPrereq struct {
Token common.Address
Spender common.Address
Amount *big.Int
}
// SolveOutboxMetaData contains all meta data concerning the SolveOutbox contract.
var SolveOutboxMetaData = &bind.MetaData{
ABI: "[{\"type\":\"constructor\",\"inputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"allowedCalls\",\"inputs\":[{\"name\":\"target\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"selector\",\"type\":\"bytes4\",\"internalType\":\"bytes4\"}],\"outputs\":[{\"name\":\"\",\"type\":\"bool\",\"internalType\":\"bool\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"cancelOwnershipHandover\",\"inputs\":[],\"outputs\":[],\"stateMutability\":\"payable\"},{\"type\":\"function\",\"name\":\"completeOwnershipHandover\",\"inputs\":[{\"name\":\"pendingOwner\",\"type\":\"address\",\"internalType\":\"address\"}],\"outputs\":[],\"stateMutability\":\"payable\"},{\"type\":\"function\",\"name\":\"defaultConfLevel\",\"inputs\":[],\"outputs\":[{\"name\":\"\",\"type\":\"uint8\",\"internalType\":\"uint8\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"deployedAt\",\"inputs\":[],\"outputs\":[{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"didFulfill\",\"inputs\":[{\"name\":\"srcReqId\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"},{\"name\":\"srcChainId\",\"type\":\"uint64\",\"internalType\":\"uint64\"},{\"name\":\"call\",\"type\":\"tuple\",\"internalType\":\"structSolve.Call\",\"components\":[{\"name\":\"destChainId\",\"type\":\"uint64\",\"internalType\":\"uint64\"},{\"name\":\"target\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"value\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"data\",\"type\":\"bytes\",\"internalType\":\"bytes\"}]}],\"outputs\":[{\"name\":\"\",\"type\":\"bool\",\"internalType\":\"bool\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"fulfill\",\"inputs\":[{\"name\":\"srcReqId\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"},{\"name\":\"srcChainId\",\"type\":\"uint64\",\"internalType\":\"uint64\"},{\"name\":\"call\",\"type\":\"tuple\",\"internalType\":\"structSolve.Call\",\"components\":[{\"name\":\"destChainId\",\"type\":\"uint64\",\"internalType\":\"uint64\"},{\"name\":\"target\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"value\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"data\",\"type\":\"bytes\",\"internalType\":\"bytes\"}]},{\"name\":\"prereqs\",\"type\":\"tuple[]\",\"internalType\":\"structSolve.TokenPrereq[]\",\"components\":[{\"name\":\"token\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"spender\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"amount\",\"type\":\"uint256\",\"internalType\":\"uint256\"}]}],\"outputs\":[],\"stateMutability\":\"payable\"},{\"type\":\"function\",\"name\":\"fulfillFee\",\"inputs\":[{\"name\":\"srcChainId\",\"type\":\"uint64\",\"internalType\":\"uint64\"}],\"outputs\":[{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"fulfilledCalls\",\"inputs\":[{\"name\":\"callHash\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"}],\"outputs\":[{\"name\":\"fulfilled\",\"type\":\"bool\",\"internalType\":\"bool\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"grantRoles\",\"inputs\":[{\"name\":\"user\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"roles\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"outputs\":[],\"stateMutability\":\"payable\"},{\"type\":\"function\",\"name\":\"hasAllRoles\",\"inputs\":[{\"name\":\"user\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"roles\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"outputs\":[{\"name\":\"\",\"type\":\"bool\",\"internalType\":\"bool\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"hasAnyRole\",\"inputs\":[{\"name\":\"user\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"roles\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"outputs\":[{\"name\":\"\",\"type\":\"bool\",\"internalType\":\"bool\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"initialize\",\"inputs\":[{\"name\":\"owner_\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"solver_\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"omni_\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"inbox_\",\"type\":\"address\",\"internalType\":\"address\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"omni\",\"inputs\":[],\"outputs\":[{\"name\":\"\",\"type\":\"address\",\"internalType\":\"contractIOmniPortal\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"owner\",\"inputs\":[],\"outputs\":[{\"name\":\"result\",\"type\":\"address\",\"internalType\":\"address\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"ownershipHandoverExpiresAt\",\"inputs\":[{\"name\":\"pendingOwner\",\"type\":\"address\",\"internalType\":\"address\"}],\"outputs\":[{\"name\":\"result\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"renounceOwnership\",\"inputs\":[],\"outputs\":[],\"stateMutability\":\"payable\"},{\"type\":\"function\",\"name\":\"renounceRoles\",\"inputs\":[{\"name\":\"roles\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"outputs\":[],\"stateMutability\":\"payable\"},{\"type\":\"function\",\"name\":\"requestOwnershipHandover\",\"inputs\":[],\"outputs\":[],\"stateMutability\":\"payable\"},{\"type\":\"function\",\"name\":\"revokeRoles\",\"inputs\":[{\"name\":\"user\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"roles\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"outputs\":[],\"stateMutability\":\"payable\"},{\"type\":\"function\",\"name\":\"rolesOf\",\"inputs\":[{\"name\":\"user\",\"type\":\"address\",\"internalType\":\"address\"}],\"outputs\":[{\"name\":\"roles\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"setAllowedCall\",\"inputs\":[{\"name\":\"target\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"selector\",\"type\":\"bytes4\",\"internalType\":\"bytes4\"},{\"name\":\"allowed\",\"type\":\"bool\",\"internalType\":\"bool\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"transferOwnership\",\"inputs\":[{\"name\":\"newOwner\",\"type\":\"address\",\"internalType\":\"address\"}],\"outputs\":[],\"stateMutability\":\"payable\"},{\"type\":\"event\",\"name\":\"AllowedCallSet\",\"inputs\":[{\"name\":\"target\",\"type\":\"address\",\"indexed\":true,\"internalType\":\"address\"},{\"name\":\"selector\",\"type\":\"bytes4\",\"indexed\":true,\"internalType\":\"bytes4\"},{\"name\":\"allowed\",\"type\":\"bool\",\"indexed\":false,\"internalType\":\"bool\"}],\"anonymous\":false},{\"type\":\"event\",\"name\":\"DefaultConfLevelSet\",\"inputs\":[{\"name\":\"conf\",\"type\":\"uint8\",\"indexed\":false,\"internalType\":\"uint8\"}],\"anonymous\":false},{\"type\":\"event\",\"name\":\"Fulfilled\",\"inputs\":[{\"name\":\"reqId\",\"type\":\"bytes32\",\"indexed\":true,\"internalType\":\"bytes32\"},{\"name\":\"callHash\",\"type\":\"bytes32\",\"indexed\":true,\"internalType\":\"bytes32\"},{\"name\":\"solvedBy\",\"type\":\"address\",\"indexed\":true,\"internalType\":\"address\"}],\"anonymous\":false},{\"type\":\"event\",\"name\":\"Initialized\",\"inputs\":[{\"name\":\"version\",\"type\":\"uint64\",\"indexed\":false,\"internalType\":\"uint64\"}],\"anonymous\":false},{\"type\":\"event\",\"name\":\"OmniPortalSet\",\"inputs\":[{\"name\":\"omni\",\"type\":\"address\",\"indexed\":false,\"internalType\":\"address\"}],\"anonymous\":false},{\"type\":\"event\",\"name\":\"OwnershipHandoverCanceled\",\"inputs\":[{\"name\":\"pendingOwner\",\"type\":\"address\",\"indexed\":true,\"internalType\":\"address\"}],\"anonymous\":false},{\"type\":\"event\",\"name\":\"OwnershipHandoverRequested\",\"inputs\":[{\"name\":\"pendingOwner\",\"type\":\"address\",\"indexed\":true,\"internalType\":\"address\"}],\"anonymous\":false},{\"type\":\"event\",\"name\":\"OwnershipTransferred\",\"inputs\":[{\"name\":\"oldOwner\",\"type\":\"address\",\"indexed\":true,\"internalType\":\"address\"},{\"name\":\"newOwner\",\"type\":\"address\",\"indexed\":true,\"internalType\":\"address\"}],\"anonymous\":false},{\"type\":\"event\",\"name\":\"RolesUpdated\",\"inputs\":[{\"name\":\"user\",\"type\":\"address\",\"indexed\":true,\"internalType\":\"address\"},{\"name\":\"roles\",\"type\":\"uint256\",\"indexed\":true,\"internalType\":\"uint256\"}],\"anonymous\":false},{\"type\":\"error\",\"name\":\"AlreadyInitialized\",\"inputs\":[]},{\"type\":\"error\",\"name\":\"AreadyFulfilled\",\"inputs\":[]},{\"type\":\"error\",\"name\":\"CallFailed\",\"inputs\":[]},{\"type\":\"error\",\"name\":\"CallNotAllowed\",\"inputs\":[]},{\"type\":\"error\",\"name\":\"IncorrectPrereqs\",\"inputs\":[]},{\"type\":\"error\",\"name\":\"InsufficientFee\",\"inputs\":[]},{\"type\":\"error\",\"name\":\"InvalidInitialization\",\"inputs\":[]},{\"type\":\"error\",\"name\":\"NewOwnerIsZeroAddress\",\"inputs\":[]},{\"type\":\"error\",\"name\":\"NoHandoverRequest\",\"inputs\":[]},{\"type\":\"error\",\"name\":\"NotInitializing\",\"inputs\":[]},{\"type\":\"error\",\"name\":\"Reentrancy\",\"inputs\":[]},{\"type\":\"error\",\"name\":\"Unauthorized\",\"inputs\":[]},{\"type\":\"error\",\"name\":\"WrongDestChain\",\"inputs\":[]}]",
Bin: "0x60a06040523480156200001157600080fd5b5063ffffffff60643b1615620000975760646001600160a01b031663a3b1b31d6040518163ffffffff1660e01b8152600401602060405180830381865afa9250505080156200007f575060408051601f3d908101601f191682019092526200007c9181019062000110565b60015b6200008e57436080526200009c565b6080526200009c565b436080525b620000a6620000ac565b6200012a565b63409feecd1980546001811615620000cc5763f92ee8a96000526004601cfd5b8160c01c808260011c146200010b578060011b8355806020527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d2602080a15b505050565b6000602082840312156200012357600080fd5b5051919050565b60805161162e6200014660003960006103d0015261162e6000f3fe6080604052600436106101405760003560e01c80635ba15647116100b6578063cb01a09a1161006f578063cb01a09a146103ab578063eae4c19f146103be578063f04e283e146103f2578063f2fde38b14610405578063f8c8765e14610418578063fee81cf41461043857600080fd5b80635ba15647146102cc5780635db9cbe4146102ec578063715018a61461031c57806374eeb847146103245780638da5cb5b14610357578063b23ade801461037057600080fd5b80632b370b67116101085780632b370b67146101ef5780632de948071461020f57806339acf9f1146102425780634a4ee7b11461027a578063514e62fc1461028d57806354d1f13d146102c457600080fd5b8063183a4f6e14610145578063188a97aa1461015a5780631c10893f1461018d5780631cd64df4146101a057806325692962146101e7575b600080fd5b6101586101533660046110a1565b61046b565b005b34801561016657600080fd5b5061017a6101753660046110d7565b610478565b6040519081526020015b60405180910390f35b61015861019b366004611110565b6104cf565b3480156101ac57600080fd5b506101d76101bb366004611110565b638b78c6d8600c90815260009290925260209091205481161490565b6040519015158152602001610184565b6101586104e5565b3480156101fb57600080fd5b5061015861020a366004611152565b610535565b34801561021b57600080fd5b5061017a61022a36600461119e565b638b78c6d8600c908152600091909152602090205490565b34801561024e57600080fd5b50600054610262906001600160a01b031681565b6040516001600160a01b039091168152602001610184565b610158610288366004611110565b6105b4565b34801561029957600080fd5b506101d76102a8366004611110565b638b78c6d8600c90815260009290925260209091205416151590565b6101586105c6565b3480156102d857600080fd5b506101d76102e73660046111d1565b610602565b3480156102f857600080fd5b506101d76103073660046110a1565b60046020526000908152604090205460ff1681565b61015861062f565b34801561033057600080fd5b5060005461034590600160a01b900460ff1681565b60405160ff9091168152602001610184565b34801561036357600080fd5b50638b78c6d81954610262565b34801561037c57600080fd5b506101d761038b366004611228565b600360209081526000928352604080842090915290825290205460ff1681565b6101586103b936600461125b565b610643565b3480156103ca57600080fd5b5061017a7f000000000000000000000000000000000000000000000000000000000000000081565b61015861040036600461119e565b610af4565b61015861041336600461119e565b610b31565b34801561042457600080fd5b5061015861043336600461130d565b610b58565b34801561044457600080fd5b5061017a61045336600461119e565b63389a75e1600c908152600091909152602090205490565b6104753382610c04565b50565b6040516000196024820181905260448201526000906104c990839060640160408051601f198184030181529190526020810180516001600160e01b031663019bfff160e51b179052620186a0610c10565b92915050565b6104d7610c8e565b6104e18282610ca9565b5050565b60006202a30067ffffffffffffffff164201905063389a75e1600c5233600052806020600c2055337fdbf36a107da19e49527a7176a1babf963b4b0ff8cde35ee35d6cd8f1f9ac7e1d600080a250565b61053d610c8e565b6001600160a01b03831660008181526003602090815260408083206001600160e01b0319871680855290835292819020805460ff191686151590811790915590519081529192917f4a2dc3dabd793cd88cb7b56ba4aa70196892e5b996fc72f4f3d45e20343d305b910160405180910390a3505050565b6105bc610c8e565b6104e18282610c04565b63389a75e1600c523360005260006020600c2055337ffa7b8eab7da67f412cc9575ed43464468f9bfbae89d1675917346ca6d8fe3c92600080a2565b600060046000610613868686610cb5565b815260208101919091526040016000205460ff16949350505050565b610637610c8e565b6106416000610ceb565b565b600161064e81610d29565b3068929eee149b4bd21268540361066d5763ab143c066000526004601cfd5b3068929eee149b4bd21268554661068760208601866110d7565b67ffffffffffffffff16146106af5760405163fd24301760e01b815260040160405180910390fd5b600360006106c3604087016020880161119e565b6001600160a01b0316815260208101919091526040016000908120906106ec6060870187611361565b6106f5916113af565b6001600160e01b031916815260208101919091526040016000205460ff16610730576040516315dace2d60e21b815260040160405180910390fd5b600061073d878787610cb5565b60008181526004602052604090205490915060ff161561077057604051630c4a31a760e01b815260040160405180910390fd5b6000818152600460205260408120805460ff191660011790558367ffffffffffffffff8111156107a2576107a26113df565b6040519080825280602002602001820160405280156107cb578160200160208202803683370190505b50905060005b8481101561091557610814308787848181106107ef576107ef6113f5565b610805926020606090920201908101915061119e565b6001600160a01b031690610d4f565b828281518110610826576108266113f5565b60200260200101818152505061088c3330888885818110610849576108496113f5565b90506060020160400135898986818110610865576108656113f5565b61087b926020606090920201908101915061119e565b6001600160a01b0316929190610d7b565b61090d8686838181106108a1576108a16113f5565b90506060020160200160208101906108b9919061119e565b8787848181106108cb576108cb6113f5565b905060600201604001358888858181106108e7576108e76113f5565b6108fd926020606090920201908101915061119e565b6001600160a01b03169190610dd9565b6001016107d1565b506000610928604088016020890161119e565b6001600160a01b0316604088013561094360608a018a611361565b60405161095192919061140b565b60006040518083038185875af1925050503d806000811461098e576040519150601f19603f3d011682016040523d82523d6000602084013e610993565b606091505b50509050806109b557604051633204506f60e01b815260040160405180910390fd5b60005b85811015610a16578281815181106109d2576109d26113f5565b60200260200101516109f0308989858181106107ef576107ef6113f5565b14610a0e5760405163903c78cd60e01b815260040160405180910390fd5b6001016109b8565b50604051602481018a90526044810184905260009060640160408051601f198184030181529190526020810180516001600160e01b031663019bfff160e51b179052600254909150600090610a7d908b906004906001600160a01b031685620186a0610e29565b905080610a8e60408b01353461141b565b1015610aac5760405162976f7560e21b815260040160405180910390fd5b604051339086908d907f7898a125e0970666c80e00bbf2e7041d84dfe5bbe6bcf562ce53d540fd6cd89190600090a450505050503868929eee149b4bd2126855505050505050565b610afc610c8e565b63389a75e1600c52806000526020600c208054421115610b2457636f5e88186000526004601cfd5b6000905561047581610ceb565b610b39610c8e565b8060601b610b4f57637448fbae6000526004601cfd5b61047581610ceb565b63409feecd198054600382558015610b8f5760018160011c14303b10610b865763f92ee8a96000526004601cfd5b818160ff1b1b91505b50610b9985610f6d565b610ba4846001610ca9565b610bad83610fa9565b600280546001600160a01b0319166001600160a01b0384161790558015610bfd576002815560016020527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d2602080a15b5050505050565b6104e182826000611048565b60008054604051632376548f60e21b81526001600160a01b0390911690638dd9523c90610c4590879087908790600401611482565b602060405180830381865afa158015610c62573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c8691906114b9565b949350505050565b638b78c6d819543314610641576382b429006000526004601cfd5b6104e182826001611048565b6000838383604051602001610ccc939291906114fb565b6040516020818303038152906040528051906020012090509392505050565b638b78c6d81980546001600160a01b039092169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0600080a355565b638b78c6d8600c5233600052806020600c205416610475576382b429006000526004601cfd5b6000816014526370a0823160601b60005260208060246010865afa601f3d111660205102905092915050565b60405181606052826040528360601b602c526323b872dd60601b600c52602060006064601c6000895af18060016000511416610dca57803d873b151710610dca57637939f4246000526004601cfd5b50600060605260405250505050565b816014528060345263095ea7b360601b60005260206000604460106000875af18060016000511416610e1e57803d853b151710610e1e57633e3f8f736000526004601cfd5b506000603452505050565b60008054604051632376548f60e21b815282916001600160a01b031690638dd9523c90610e5e908a9088908890600401611482565b602060405180830381865afa158015610e7b573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e9f91906114b9565b905080471015610ef65760405162461bcd60e51b815260206004820152601860248201527f584170703a20696e73756666696369656e742066756e6473000000000000000060448201526064015b60405180910390fd5b60005460405163c21dda4f60e01b81526001600160a01b039091169063c21dda4f908390610f30908b908b908b908b908b906004016115a8565b6000604051808303818588803b158015610f4957600080fd5b505af1158015610f5d573d6000803e3d6000fd5b50939a9950505050505050505050565b6001600160a01b0316638b78c6d8198190558060007f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08180a350565b6001600160a01b038116610ff45760405162461bcd60e51b8152602060048201526012602482015271584170703a206e6f207a65726f206f6d6e6960701b6044820152606401610eed565b600080546001600160a01b0319166001600160a01b0383169081179091556040519081527f79162c8d053a07e70cdc1ccc536f0440b571f8508377d2bef51094fadab98f479060200160405180910390a150565b638b78c6d8600c52826000526020600c2080548381178361106a575080841681185b80835580600c5160601c7f715ad5ce61fc9595c7b415289d59cf203f23a94fa06f04af7e489a0a76e1fe26600080a3505050505050565b6000602082840312156110b357600080fd5b5035919050565b803567ffffffffffffffff811681146110d257600080fd5b919050565b6000602082840312156110e957600080fd5b6110f2826110ba565b9392505050565b80356001600160a01b03811681146110d257600080fd5b6000806040838503121561112357600080fd5b61112c836110f9565b946020939093013593505050565b80356001600160e01b0319811681146110d257600080fd5b60008060006060848603121561116757600080fd5b611170846110f9565b925061117e6020850161113a565b91506040840135801515811461119357600080fd5b809150509250925092565b6000602082840312156111b057600080fd5b6110f2826110f9565b6000608082840312156111cb57600080fd5b50919050565b6000806000606084860312156111e657600080fd5b833592506111f6602085016110ba565b9150604084013567ffffffffffffffff81111561121257600080fd5b61121e868287016111b9565b9150509250925092565b6000806040838503121561123b57600080fd5b611244836110f9565b91506112526020840161113a565b90509250929050565b60008060008060006080868803121561127357600080fd5b85359450611283602087016110ba565b9350604086013567ffffffffffffffff808211156112a057600080fd5b6112ac89838a016111b9565b945060608801359150808211156112c257600080fd5b818801915088601f8301126112d657600080fd5b8135818111156112e557600080fd5b8960206060830285010111156112fa57600080fd5b9699959850939650602001949392505050565b6000806000806080858703121561132357600080fd5b61132c856110f9565b935061133a602086016110f9565b9250611348604086016110f9565b9150611356606086016110f9565b905092959194509250565b6000808335601e1984360301811261137857600080fd5b83018035915067ffffffffffffffff82111561139357600080fd5b6020019150368190038213156113a857600080fd5b9250929050565b6001600160e01b031981358181169160048510156113d75780818660040360031b1b83161692505b505092915050565b634e487b7160e01b600052604160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b8183823760009101908152919050565b818103818111156104c957634e487b7160e01b600052601160045260246000fd5b6000815180845260005b8181101561146257602081850181015186830182015201611446565b506000602082860101526020601f19601f83011685010191505092915050565b600067ffffffffffffffff8086168352606060208401526114a6606084018661143c565b9150808416604084015250949350505050565b6000602082840312156114cb57600080fd5b5051919050565b81835281816020850137506000828201602090810191909152601f909101601f19169091010190565b838152600067ffffffffffffffff80851660208401526060604084015280611522856110ba565b1660608401526001600160a01b0361153c602086016110f9565b166080840152604084013560a08401526060840135601e1985360301811261156357600080fd5b84016020810190358281111561157857600080fd5b80360382131561158757600080fd5b608060c086015261159c60e0860182846114d2565b98975050505050505050565b600067ffffffffffffffff808816835260ff8716602084015260018060a01b038616604084015260a060608401526115e360a084018661143c565b9150808416608084015250969550505050505056fea2646970667358221220b1365ed1962463ccf6fe81a85cd0b651f50923a67faa69b37c1a1906b2c4718c64736f6c63430008180033",
}
// SolveOutboxABI is the input ABI used to generate the binding from.
// Deprecated: Use SolveOutboxMetaData.ABI instead.
var SolveOutboxABI = SolveOutboxMetaData.ABI
// SolveOutboxBin is the compiled bytecode used for deploying new contracts.
// Deprecated: Use SolveOutboxMetaData.Bin instead.
var SolveOutboxBin = SolveOutboxMetaData.Bin
// DeploySolveOutbox deploys a new Ethereum contract, binding an instance of SolveOutbox to it.
func DeploySolveOutbox(auth *bind.TransactOpts, backend bind.ContractBackend) (common.Address, *types.Transaction, *SolveOutbox, error) {
parsed, err := SolveOutboxMetaData.GetAbi()
if err != nil {
return common.Address{}, nil, nil, err
}
if parsed == nil {
return common.Address{}, nil, nil, errors.New("GetABI returned nil")
}
address, tx, contract, err := bind.DeployContract(auth, *parsed, common.FromHex(SolveOutboxBin), backend)
if err != nil {
return common.Address{}, nil, nil, err
}
return address, tx, &SolveOutbox{SolveOutboxCaller: SolveOutboxCaller{contract: contract}, SolveOutboxTransactor: SolveOutboxTransactor{contract: contract}, SolveOutboxFilterer: SolveOutboxFilterer{contract: contract}}, nil
}
// SolveOutbox is an auto generated Go binding around an Ethereum contract.
type SolveOutbox struct {
SolveOutboxCaller // Read-only binding to the contract
SolveOutboxTransactor // Write-only binding to the contract
SolveOutboxFilterer // Log filterer for contract events
}
// SolveOutboxCaller is an auto generated read-only Go binding around an Ethereum contract.
type SolveOutboxCaller struct {
contract *bind.BoundContract // Generic contract wrapper for the low level calls
}
// SolveOutboxTransactor is an auto generated write-only Go binding around an Ethereum contract.
type SolveOutboxTransactor struct {
contract *bind.BoundContract // Generic contract wrapper for the low level calls
}
// SolveOutboxFilterer is an auto generated log filtering Go binding around an Ethereum contract events.
type SolveOutboxFilterer struct {
contract *bind.BoundContract // Generic contract wrapper for the low level calls
}
// SolveOutboxSession is an auto generated Go binding around an Ethereum contract,
// with pre-set call and transact options.
type SolveOutboxSession struct {
Contract *SolveOutbox // 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
}
// SolveOutboxCallerSession is an auto generated read-only Go binding around an Ethereum contract,
// with pre-set call options.
type SolveOutboxCallerSession struct {
Contract *SolveOutboxCaller // Generic contract caller binding to set the session for
CallOpts bind.CallOpts // Call options to use throughout this session
}
// SolveOutboxTransactorSession is an auto generated write-only Go binding around an Ethereum contract,
// with pre-set transact options.
type SolveOutboxTransactorSession struct {
Contract *SolveOutboxTransactor // Generic contract transactor binding to set the session for
TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session
}
// SolveOutboxRaw is an auto generated low-level Go binding around an Ethereum contract.
type SolveOutboxRaw struct {
Contract *SolveOutbox // Generic contract binding to access the raw methods on
}
// SolveOutboxCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract.
type SolveOutboxCallerRaw struct {
Contract *SolveOutboxCaller // Generic read-only contract binding to access the raw methods on
}
// SolveOutboxTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract.
type SolveOutboxTransactorRaw struct {
Contract *SolveOutboxTransactor // Generic write-only contract binding to access the raw methods on
}
// NewSolveOutbox creates a new instance of SolveOutbox, bound to a specific deployed contract.
func NewSolveOutbox(address common.Address, backend bind.ContractBackend) (*SolveOutbox, error) {
contract, err := bindSolveOutbox(address, backend, backend, backend)
if err != nil {
return nil, err
}
return &SolveOutbox{SolveOutboxCaller: SolveOutboxCaller{contract: contract}, SolveOutboxTransactor: SolveOutboxTransactor{contract: contract}, SolveOutboxFilterer: SolveOutboxFilterer{contract: contract}}, nil
}
// NewSolveOutboxCaller creates a new read-only instance of SolveOutbox, bound to a specific deployed contract.
func NewSolveOutboxCaller(address common.Address, caller bind.ContractCaller) (*SolveOutboxCaller, error) {
contract, err := bindSolveOutbox(address, caller, nil, nil)
if err != nil {
return nil, err
}
return &SolveOutboxCaller{contract: contract}, nil
}
// NewSolveOutboxTransactor creates a new write-only instance of SolveOutbox, bound to a specific deployed contract.
func NewSolveOutboxTransactor(address common.Address, transactor bind.ContractTransactor) (*SolveOutboxTransactor, error) {
contract, err := bindSolveOutbox(address, nil, transactor, nil)
if err != nil {
return nil, err
}
return &SolveOutboxTransactor{contract: contract}, nil
}
// NewSolveOutboxFilterer creates a new log filterer instance of SolveOutbox, bound to a specific deployed contract.
func NewSolveOutboxFilterer(address common.Address, filterer bind.ContractFilterer) (*SolveOutboxFilterer, error) {
contract, err := bindSolveOutbox(address, nil, nil, filterer)
if err != nil {
return nil, err
}
return &SolveOutboxFilterer{contract: contract}, nil
}
// bindSolveOutbox binds a generic wrapper to an already deployed contract.
func bindSolveOutbox(address common.Address, caller bind.ContractCaller, transactor bind.ContractTransactor, filterer bind.ContractFilterer) (*bind.BoundContract, error) {
parsed, err := SolveOutboxMetaData.GetAbi()
if err != nil {
return nil, err
}
return bind.NewBoundContract(address, *parsed, caller, transactor, filterer), nil
}
// Call invokes the (constant) contract method with params as input values and
// sets the output to result. The result type might be a single field for simple
// returns, a slice of interfaces for anonymous returns and a struct for named
// returns.
func (_SolveOutbox *SolveOutboxRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error {
return _SolveOutbox.Contract.SolveOutboxCaller.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 (_SolveOutbox *SolveOutboxRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) {
return _SolveOutbox.Contract.SolveOutboxTransactor.contract.Transfer(opts)
}
// Transact invokes the (paid) contract method with params as input values.
func (_SolveOutbox *SolveOutboxRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) {
return _SolveOutbox.Contract.SolveOutboxTransactor.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 (_SolveOutbox *SolveOutboxCallerRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error {
return _SolveOutbox.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 (_SolveOutbox *SolveOutboxTransactorRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) {
return _SolveOutbox.Contract.contract.Transfer(opts)
}
// Transact invokes the (paid) contract method with params as input values.
func (_SolveOutbox *SolveOutboxTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) {
return _SolveOutbox.Contract.contract.Transact(opts, method, params...)
}
// AllowedCalls is a free data retrieval call binding the contract method 0xb23ade80.
//
// Solidity: function allowedCalls(address target, bytes4 selector) view returns(bool)
func (_SolveOutbox *SolveOutboxCaller) AllowedCalls(opts *bind.CallOpts, target common.Address, selector [4]byte) (bool, error) {
var out []interface{}
err := _SolveOutbox.contract.Call(opts, &out, "allowedCalls", target, selector)
if err != nil {
return *new(bool), err
}
out0 := *abi.ConvertType(out[0], new(bool)).(*bool)
return out0, err
}
// AllowedCalls is a free data retrieval call binding the contract method 0xb23ade80.
//
// Solidity: function allowedCalls(address target, bytes4 selector) view returns(bool)
func (_SolveOutbox *SolveOutboxSession) AllowedCalls(target common.Address, selector [4]byte) (bool, error) {
return _SolveOutbox.Contract.AllowedCalls(&_SolveOutbox.CallOpts, target, selector)
}
// AllowedCalls is a free data retrieval call binding the contract method 0xb23ade80.
//
// Solidity: function allowedCalls(address target, bytes4 selector) view returns(bool)
func (_SolveOutbox *SolveOutboxCallerSession) AllowedCalls(target common.Address, selector [4]byte) (bool, error) {
return _SolveOutbox.Contract.AllowedCalls(&_SolveOutbox.CallOpts, target, selector)
}
// DefaultConfLevel is a free data retrieval call binding the contract method 0x74eeb847.
//
// Solidity: function defaultConfLevel() view returns(uint8)
func (_SolveOutbox *SolveOutboxCaller) DefaultConfLevel(opts *bind.CallOpts) (uint8, error) {
var out []interface{}
err := _SolveOutbox.contract.Call(opts, &out, "defaultConfLevel")
if err != nil {
return *new(uint8), err
}
out0 := *abi.ConvertType(out[0], new(uint8)).(*uint8)
return out0, err
}
// DefaultConfLevel is a free data retrieval call binding the contract method 0x74eeb847.
//
// Solidity: function defaultConfLevel() view returns(uint8)
func (_SolveOutbox *SolveOutboxSession) DefaultConfLevel() (uint8, error) {
return _SolveOutbox.Contract.DefaultConfLevel(&_SolveOutbox.CallOpts)
}
// DefaultConfLevel is a free data retrieval call binding the contract method 0x74eeb847.
//
// Solidity: function defaultConfLevel() view returns(uint8)
func (_SolveOutbox *SolveOutboxCallerSession) DefaultConfLevel() (uint8, error) {
return _SolveOutbox.Contract.DefaultConfLevel(&_SolveOutbox.CallOpts)
}
// DeployedAt is a free data retrieval call binding the contract method 0xeae4c19f.
//
// Solidity: function deployedAt() view returns(uint256)
func (_SolveOutbox *SolveOutboxCaller) DeployedAt(opts *bind.CallOpts) (*big.Int, error) {
var out []interface{}
err := _SolveOutbox.contract.Call(opts, &out, "deployedAt")
if err != nil {
return *new(*big.Int), err
}
out0 := *abi.ConvertType(out[0], new(*big.Int)).(**big.Int)
return out0, err
}
// DeployedAt is a free data retrieval call binding the contract method 0xeae4c19f.
//
// Solidity: function deployedAt() view returns(uint256)
func (_SolveOutbox *SolveOutboxSession) DeployedAt() (*big.Int, error) {
return _SolveOutbox.Contract.DeployedAt(&_SolveOutbox.CallOpts)
}
// DeployedAt is a free data retrieval call binding the contract method 0xeae4c19f.
//
// Solidity: function deployedAt() view returns(uint256)
func (_SolveOutbox *SolveOutboxCallerSession) DeployedAt() (*big.Int, error) {
return _SolveOutbox.Contract.DeployedAt(&_SolveOutbox.CallOpts)
}
// DidFulfill is a free data retrieval call binding the contract method 0x5ba15647.
//
// Solidity: function didFulfill(bytes32 srcReqId, uint64 srcChainId, (uint64,address,uint256,bytes) call) view returns(bool)
func (_SolveOutbox *SolveOutboxCaller) DidFulfill(opts *bind.CallOpts, srcReqId [32]byte, srcChainId uint64, call SolveCall) (bool, error) {
var out []interface{}
err := _SolveOutbox.contract.Call(opts, &out, "didFulfill", srcReqId, srcChainId, call)
if err != nil {
return *new(bool), err
}
out0 := *abi.ConvertType(out[0], new(bool)).(*bool)
return out0, err
}
// DidFulfill is a free data retrieval call binding the contract method 0x5ba15647.
//
// Solidity: function didFulfill(bytes32 srcReqId, uint64 srcChainId, (uint64,address,uint256,bytes) call) view returns(bool)
func (_SolveOutbox *SolveOutboxSession) DidFulfill(srcReqId [32]byte, srcChainId uint64, call SolveCall) (bool, error) {
return _SolveOutbox.Contract.DidFulfill(&_SolveOutbox.CallOpts, srcReqId, srcChainId, call)
}
// DidFulfill is a free data retrieval call binding the contract method 0x5ba15647.
//
// Solidity: function didFulfill(bytes32 srcReqId, uint64 srcChainId, (uint64,address,uint256,bytes) call) view returns(bool)
func (_SolveOutbox *SolveOutboxCallerSession) DidFulfill(srcReqId [32]byte, srcChainId uint64, call SolveCall) (bool, error) {
return _SolveOutbox.Contract.DidFulfill(&_SolveOutbox.CallOpts, srcReqId, srcChainId, call)
}
// FulfillFee is a free data retrieval call binding the contract method 0x188a97aa.
//
// Solidity: function fulfillFee(uint64 srcChainId) view returns(uint256)
func (_SolveOutbox *SolveOutboxCaller) FulfillFee(opts *bind.CallOpts, srcChainId uint64) (*big.Int, error) {
var out []interface{}
err := _SolveOutbox.contract.Call(opts, &out, "fulfillFee", srcChainId)
if err != nil {
return *new(*big.Int), err
}
out0 := *abi.ConvertType(out[0], new(*big.Int)).(**big.Int)
return out0, err
}
// FulfillFee is a free data retrieval call binding the contract method 0x188a97aa.
//
// Solidity: function fulfillFee(uint64 srcChainId) view returns(uint256)
func (_SolveOutbox *SolveOutboxSession) FulfillFee(srcChainId uint64) (*big.Int, error) {
return _SolveOutbox.Contract.FulfillFee(&_SolveOutbox.CallOpts, srcChainId)
}
// FulfillFee is a free data retrieval call binding the contract method 0x188a97aa.
//
// Solidity: function fulfillFee(uint64 srcChainId) view returns(uint256)
func (_SolveOutbox *SolveOutboxCallerSession) FulfillFee(srcChainId uint64) (*big.Int, error) {
return _SolveOutbox.Contract.FulfillFee(&_SolveOutbox.CallOpts, srcChainId)
}
// FulfilledCalls is a free data retrieval call binding the contract method 0x5db9cbe4.
//
// Solidity: function fulfilledCalls(bytes32 callHash) view returns(bool fulfilled)
func (_SolveOutbox *SolveOutboxCaller) FulfilledCalls(opts *bind.CallOpts, callHash [32]byte) (bool, error) {
var out []interface{}
err := _SolveOutbox.contract.Call(opts, &out, "fulfilledCalls", callHash)
if err != nil {
return *new(bool), err
}
out0 := *abi.ConvertType(out[0], new(bool)).(*bool)
return out0, err
}
// FulfilledCalls is a free data retrieval call binding the contract method 0x5db9cbe4.
//
// Solidity: function fulfilledCalls(bytes32 callHash) view returns(bool fulfilled)
func (_SolveOutbox *SolveOutboxSession) FulfilledCalls(callHash [32]byte) (bool, error) {
return _SolveOutbox.Contract.FulfilledCalls(&_SolveOutbox.CallOpts, callHash)
}
// FulfilledCalls is a free data retrieval call binding the contract method 0x5db9cbe4.
//
// Solidity: function fulfilledCalls(bytes32 callHash) view returns(bool fulfilled)
func (_SolveOutbox *SolveOutboxCallerSession) FulfilledCalls(callHash [32]byte) (bool, error) {
return _SolveOutbox.Contract.FulfilledCalls(&_SolveOutbox.CallOpts, callHash)
}
// HasAllRoles is a free data retrieval call binding the contract method 0x1cd64df4.
//
// Solidity: function hasAllRoles(address user, uint256 roles) view returns(bool)
func (_SolveOutbox *SolveOutboxCaller) HasAllRoles(opts *bind.CallOpts, user common.Address, roles *big.Int) (bool, error) {
var out []interface{}
err := _SolveOutbox.contract.Call(opts, &out, "hasAllRoles", user, roles)
if err != nil {
return *new(bool), err
}
out0 := *abi.ConvertType(out[0], new(bool)).(*bool)
return out0, err
}
// HasAllRoles is a free data retrieval call binding the contract method 0x1cd64df4.
//
// Solidity: function hasAllRoles(address user, uint256 roles) view returns(bool)
func (_SolveOutbox *SolveOutboxSession) HasAllRoles(user common.Address, roles *big.Int) (bool, error) {
return _SolveOutbox.Contract.HasAllRoles(&_SolveOutbox.CallOpts, user, roles)
}
// HasAllRoles is a free data retrieval call binding the contract method 0x1cd64df4.
//
// Solidity: function hasAllRoles(address user, uint256 roles) view returns(bool)
func (_SolveOutbox *SolveOutboxCallerSession) HasAllRoles(user common.Address, roles *big.Int) (bool, error) {
return _SolveOutbox.Contract.HasAllRoles(&_SolveOutbox.CallOpts, user, roles)
}
// HasAnyRole is a free data retrieval call binding the contract method 0x514e62fc.
//
// Solidity: function hasAnyRole(address user, uint256 roles) view returns(bool)
func (_SolveOutbox *SolveOutboxCaller) HasAnyRole(opts *bind.CallOpts, user common.Address, roles *big.Int) (bool, error) {
var out []interface{}
err := _SolveOutbox.contract.Call(opts, &out, "hasAnyRole", user, roles)
if err != nil {
return *new(bool), err
}
out0 := *abi.ConvertType(out[0], new(bool)).(*bool)
return out0, err
}
// HasAnyRole is a free data retrieval call binding the contract method 0x514e62fc.
//
// Solidity: function hasAnyRole(address user, uint256 roles) view returns(bool)
func (_SolveOutbox *SolveOutboxSession) HasAnyRole(user common.Address, roles *big.Int) (bool, error) {
return _SolveOutbox.Contract.HasAnyRole(&_SolveOutbox.CallOpts, user, roles)
}
// HasAnyRole is a free data retrieval call binding the contract method 0x514e62fc.
//
// Solidity: function hasAnyRole(address user, uint256 roles) view returns(bool)
func (_SolveOutbox *SolveOutboxCallerSession) HasAnyRole(user common.Address, roles *big.Int) (bool, error) {
return _SolveOutbox.Contract.HasAnyRole(&_SolveOutbox.CallOpts, user, roles)
}
// Omni is a free data retrieval call binding the contract method 0x39acf9f1.
//
// Solidity: function omni() view returns(address)
func (_SolveOutbox *SolveOutboxCaller) Omni(opts *bind.CallOpts) (common.Address, error) {
var out []interface{}
err := _SolveOutbox.contract.Call(opts, &out, "omni")
if err != nil {
return *new(common.Address), err
}
out0 := *abi.ConvertType(out[0], new(common.Address)).(*common.Address)
return out0, err
}
// Omni is a free data retrieval call binding the contract method 0x39acf9f1.
//
// Solidity: function omni() view returns(address)
func (_SolveOutbox *SolveOutboxSession) Omni() (common.Address, error) {
return _SolveOutbox.Contract.Omni(&_SolveOutbox.CallOpts)
}
// Omni is a free data retrieval call binding the contract method 0x39acf9f1.
//
// Solidity: function omni() view returns(address)
func (_SolveOutbox *SolveOutboxCallerSession) Omni() (common.Address, error) {
return _SolveOutbox.Contract.Omni(&_SolveOutbox.CallOpts)
}
// Owner is a free data retrieval call binding the contract method 0x8da5cb5b.
//
// Solidity: function owner() view returns(address result)
func (_SolveOutbox *SolveOutboxCaller) Owner(opts *bind.CallOpts) (common.Address, error) {
var out []interface{}
err := _SolveOutbox.contract.Call(opts, &out, "owner")
if err != nil {
return *new(common.Address), err
}
out0 := *abi.ConvertType(out[0], new(common.Address)).(*common.Address)
return out0, err
}
// Owner is a free data retrieval call binding the contract method 0x8da5cb5b.
//
// Solidity: function owner() view returns(address result)
func (_SolveOutbox *SolveOutboxSession) Owner() (common.Address, error) {
return _SolveOutbox.Contract.Owner(&_SolveOutbox.CallOpts)
}
// Owner is a free data retrieval call binding the contract method 0x8da5cb5b.
//
// Solidity: function owner() view returns(address result)
func (_SolveOutbox *SolveOutboxCallerSession) Owner() (common.Address, error) {
return _SolveOutbox.Contract.Owner(&_SolveOutbox.CallOpts)
}
// OwnershipHandoverExpiresAt is a free data retrieval call binding the contract method 0xfee81cf4.
//
// Solidity: function ownershipHandoverExpiresAt(address pendingOwner) view returns(uint256 result)
func (_SolveOutbox *SolveOutboxCaller) OwnershipHandoverExpiresAt(opts *bind.CallOpts, pendingOwner common.Address) (*big.Int, error) {
var out []interface{}
err := _SolveOutbox.contract.Call(opts, &out, "ownershipHandoverExpiresAt", pendingOwner)
if err != nil {
return *new(*big.Int), err
}
out0 := *abi.ConvertType(out[0], new(*big.Int)).(**big.Int)
return out0, err
}
// OwnershipHandoverExpiresAt is a free data retrieval call binding the contract method 0xfee81cf4.
//
// Solidity: function ownershipHandoverExpiresAt(address pendingOwner) view returns(uint256 result)
func (_SolveOutbox *SolveOutboxSession) OwnershipHandoverExpiresAt(pendingOwner common.Address) (*big.Int, error) {
return _SolveOutbox.Contract.OwnershipHandoverExpiresAt(&_SolveOutbox.CallOpts, pendingOwner)
}
// OwnershipHandoverExpiresAt is a free data retrieval call binding the contract method 0xfee81cf4.
//
// Solidity: function ownershipHandoverExpiresAt(address pendingOwner) view returns(uint256 result)
func (_SolveOutbox *SolveOutboxCallerSession) OwnershipHandoverExpiresAt(pendingOwner common.Address) (*big.Int, error) {
return _SolveOutbox.Contract.OwnershipHandoverExpiresAt(&_SolveOutbox.CallOpts, pendingOwner)
}
// RolesOf is a free data retrieval call binding the contract method 0x2de94807.
//
// Solidity: function rolesOf(address user) view returns(uint256 roles)
func (_SolveOutbox *SolveOutboxCaller) RolesOf(opts *bind.CallOpts, user common.Address) (*big.Int, error) {
var out []interface{}
err := _SolveOutbox.contract.Call(opts, &out, "rolesOf", user)
if err != nil {
return *new(*big.Int), err
}
out0 := *abi.ConvertType(out[0], new(*big.Int)).(**big.Int)
return out0, err
}
// RolesOf is a free data retrieval call binding the contract method 0x2de94807.
//
// Solidity: function rolesOf(address user) view returns(uint256 roles)
func (_SolveOutbox *SolveOutboxSession) RolesOf(user common.Address) (*big.Int, error) {
return _SolveOutbox.Contract.RolesOf(&_SolveOutbox.CallOpts, user)
}
// RolesOf is a free data retrieval call binding the contract method 0x2de94807.
//
// Solidity: function rolesOf(address user) view returns(uint256 roles)
func (_SolveOutbox *SolveOutboxCallerSession) RolesOf(user common.Address) (*big.Int, error) {
return _SolveOutbox.Contract.RolesOf(&_SolveOutbox.CallOpts, user)
}
// CancelOwnershipHandover is a paid mutator transaction binding the contract method 0x54d1f13d.
//
// Solidity: function cancelOwnershipHandover() payable returns()
func (_SolveOutbox *SolveOutboxTransactor) CancelOwnershipHandover(opts *bind.TransactOpts) (*types.Transaction, error) {
return _SolveOutbox.contract.Transact(opts, "cancelOwnershipHandover")
}
// CancelOwnershipHandover is a paid mutator transaction binding the contract method 0x54d1f13d.
//
// Solidity: function cancelOwnershipHandover() payable returns()
func (_SolveOutbox *SolveOutboxSession) CancelOwnershipHandover() (*types.Transaction, error) {
return _SolveOutbox.Contract.CancelOwnershipHandover(&_SolveOutbox.TransactOpts)
}
// CancelOwnershipHandover is a paid mutator transaction binding the contract method 0x54d1f13d.
//
// Solidity: function cancelOwnershipHandover() payable returns()
func (_SolveOutbox *SolveOutboxTransactorSession) CancelOwnershipHandover() (*types.Transaction, error) {
return _SolveOutbox.Contract.CancelOwnershipHandover(&_SolveOutbox.TransactOpts)
}
// CompleteOwnershipHandover is a paid mutator transaction binding the contract method 0xf04e283e.
//
// Solidity: function completeOwnershipHandover(address pendingOwner) payable returns()
func (_SolveOutbox *SolveOutboxTransactor) CompleteOwnershipHandover(opts *bind.TransactOpts, pendingOwner common.Address) (*types.Transaction, error) {
return _SolveOutbox.contract.Transact(opts, "completeOwnershipHandover", pendingOwner)
}
// CompleteOwnershipHandover is a paid mutator transaction binding the contract method 0xf04e283e.
//
// Solidity: function completeOwnershipHandover(address pendingOwner) payable returns()
func (_SolveOutbox *SolveOutboxSession) CompleteOwnershipHandover(pendingOwner common.Address) (*types.Transaction, error) {
return _SolveOutbox.Contract.CompleteOwnershipHandover(&_SolveOutbox.TransactOpts, pendingOwner)
}
// CompleteOwnershipHandover is a paid mutator transaction binding the contract method 0xf04e283e.
//
// Solidity: function completeOwnershipHandover(address pendingOwner) payable returns()
func (_SolveOutbox *SolveOutboxTransactorSession) CompleteOwnershipHandover(pendingOwner common.Address) (*types.Transaction, error) {
return _SolveOutbox.Contract.CompleteOwnershipHandover(&_SolveOutbox.TransactOpts, pendingOwner)
}
// Fulfill is a paid mutator transaction binding the contract method 0xcb01a09a.
//
// Solidity: function fulfill(bytes32 srcReqId, uint64 srcChainId, (uint64,address,uint256,bytes) call, (address,address,uint256)[] prereqs) payable returns()
func (_SolveOutbox *SolveOutboxTransactor) Fulfill(opts *bind.TransactOpts, srcReqId [32]byte, srcChainId uint64, call SolveCall, prereqs []SolveTokenPrereq) (*types.Transaction, error) {
return _SolveOutbox.contract.Transact(opts, "fulfill", srcReqId, srcChainId, call, prereqs)
}
// Fulfill is a paid mutator transaction binding the contract method 0xcb01a09a.
//
// Solidity: function fulfill(bytes32 srcReqId, uint64 srcChainId, (uint64,address,uint256,bytes) call, (address,address,uint256)[] prereqs) payable returns()
func (_SolveOutbox *SolveOutboxSession) Fulfill(srcReqId [32]byte, srcChainId uint64, call SolveCall, prereqs []SolveTokenPrereq) (*types.Transaction, error) {
return _SolveOutbox.Contract.Fulfill(&_SolveOutbox.TransactOpts, srcReqId, srcChainId, call, prereqs)
}
// Fulfill is a paid mutator transaction binding the contract method 0xcb01a09a.
//
// Solidity: function fulfill(bytes32 srcReqId, uint64 srcChainId, (uint64,address,uint256,bytes) call, (address,address,uint256)[] prereqs) payable returns()
func (_SolveOutbox *SolveOutboxTransactorSession) Fulfill(srcReqId [32]byte, srcChainId uint64, call SolveCall, prereqs []SolveTokenPrereq) (*types.Transaction, error) {
return _SolveOutbox.Contract.Fulfill(&_SolveOutbox.TransactOpts, srcReqId, srcChainId, call, prereqs)
}
// GrantRoles is a paid mutator transaction binding the contract method 0x1c10893f.
//
// Solidity: function grantRoles(address user, uint256 roles) payable returns()
func (_SolveOutbox *SolveOutboxTransactor) GrantRoles(opts *bind.TransactOpts, user common.Address, roles *big.Int) (*types.Transaction, error) {
return _SolveOutbox.contract.Transact(opts, "grantRoles", user, roles)
}
// GrantRoles is a paid mutator transaction binding the contract method 0x1c10893f.
//
// Solidity: function grantRoles(address user, uint256 roles) payable returns()
func (_SolveOutbox *SolveOutboxSession) GrantRoles(user common.Address, roles *big.Int) (*types.Transaction, error) {
return _SolveOutbox.Contract.GrantRoles(&_SolveOutbox.TransactOpts, user, roles)
}
// GrantRoles is a paid mutator transaction binding the contract method 0x1c10893f.
//
// Solidity: function grantRoles(address user, uint256 roles) payable returns()
func (_SolveOutbox *SolveOutboxTransactorSession) GrantRoles(user common.Address, roles *big.Int) (*types.Transaction, error) {
return _SolveOutbox.Contract.GrantRoles(&_SolveOutbox.TransactOpts, user, roles)
}
// Initialize is a paid mutator transaction binding the contract method 0xf8c8765e.
//
// Solidity: function initialize(address owner_, address solver_, address omni_, address inbox_) returns()
func (_SolveOutbox *SolveOutboxTransactor) Initialize(opts *bind.TransactOpts, owner_ common.Address, solver_ common.Address, omni_ common.Address, inbox_ common.Address) (*types.Transaction, error) {
return _SolveOutbox.contract.Transact(opts, "initialize", owner_, solver_, omni_, inbox_)
}
// Initialize is a paid mutator transaction binding the contract method 0xf8c8765e.
//
// Solidity: function initialize(address owner_, address solver_, address omni_, address inbox_) returns()
func (_SolveOutbox *SolveOutboxSession) Initialize(owner_ common.Address, solver_ common.Address, omni_ common.Address, inbox_ common.Address) (*types.Transaction, error) {
return _SolveOutbox.Contract.Initialize(&_SolveOutbox.TransactOpts, owner_, solver_, omni_, inbox_)
}
// Initialize is a paid mutator transaction binding the contract method 0xf8c8765e.
//
// Solidity: function initialize(address owner_, address solver_, address omni_, address inbox_) returns()
func (_SolveOutbox *SolveOutboxTransactorSession) Initialize(owner_ common.Address, solver_ common.Address, omni_ common.Address, inbox_ common.Address) (*types.Transaction, error) {
return _SolveOutbox.Contract.Initialize(&_SolveOutbox.TransactOpts, owner_, solver_, omni_, inbox_)
}
// RenounceOwnership is a paid mutator transaction binding the contract method 0x715018a6.
//
// Solidity: function renounceOwnership() payable returns()
func (_SolveOutbox *SolveOutboxTransactor) RenounceOwnership(opts *bind.TransactOpts) (*types.Transaction, error) {
return _SolveOutbox.contract.Transact(opts, "renounceOwnership")
}
// RenounceOwnership is a paid mutator transaction binding the contract method 0x715018a6.
//
// Solidity: function renounceOwnership() payable returns()
func (_SolveOutbox *SolveOutboxSession) RenounceOwnership() (*types.Transaction, error) {
return _SolveOutbox.Contract.RenounceOwnership(&_SolveOutbox.TransactOpts)
}
// RenounceOwnership is a paid mutator transaction binding the contract method 0x715018a6.
//
// Solidity: function renounceOwnership() payable returns()
func (_SolveOutbox *SolveOutboxTransactorSession) RenounceOwnership() (*types.Transaction, error) {
return _SolveOutbox.Contract.RenounceOwnership(&_SolveOutbox.TransactOpts)
}
// RenounceRoles is a paid mutator transaction binding the contract method 0x183a4f6e.
//
// Solidity: function renounceRoles(uint256 roles) payable returns()
func (_SolveOutbox *SolveOutboxTransactor) RenounceRoles(opts *bind.TransactOpts, roles *big.Int) (*types.Transaction, error) {
return _SolveOutbox.contract.Transact(opts, "renounceRoles", roles)
}
// RenounceRoles is a paid mutator transaction binding the contract method 0x183a4f6e.
//
// Solidity: function renounceRoles(uint256 roles) payable returns()
func (_SolveOutbox *SolveOutboxSession) RenounceRoles(roles *big.Int) (*types.Transaction, error) {
return _SolveOutbox.Contract.RenounceRoles(&_SolveOutbox.TransactOpts, roles)
}
// RenounceRoles is a paid mutator transaction binding the contract method 0x183a4f6e.
//
// Solidity: function renounceRoles(uint256 roles) payable returns()
func (_SolveOutbox *SolveOutboxTransactorSession) RenounceRoles(roles *big.Int) (*types.Transaction, error) {
return _SolveOutbox.Contract.RenounceRoles(&_SolveOutbox.TransactOpts, roles)
}
// RequestOwnershipHandover is a paid mutator transaction binding the contract method 0x25692962.
//
// Solidity: function requestOwnershipHandover() payable returns()
func (_SolveOutbox *SolveOutboxTransactor) RequestOwnershipHandover(opts *bind.TransactOpts) (*types.Transaction, error) {
return _SolveOutbox.contract.Transact(opts, "requestOwnershipHandover")
}
// RequestOwnershipHandover is a paid mutator transaction binding the contract method 0x25692962.
//
// Solidity: function requestOwnershipHandover() payable returns()
func (_SolveOutbox *SolveOutboxSession) RequestOwnershipHandover() (*types.Transaction, error) {
return _SolveOutbox.Contract.RequestOwnershipHandover(&_SolveOutbox.TransactOpts)
}
// RequestOwnershipHandover is a paid mutator transaction binding the contract method 0x25692962.
//
// Solidity: function requestOwnershipHandover() payable returns()
func (_SolveOutbox *SolveOutboxTransactorSession) RequestOwnershipHandover() (*types.Transaction, error) {
return _SolveOutbox.Contract.RequestOwnershipHandover(&_SolveOutbox.TransactOpts)
}
// RevokeRoles is a paid mutator transaction binding the contract method 0x4a4ee7b1.
//
// Solidity: function revokeRoles(address user, uint256 roles) payable returns()
func (_SolveOutbox *SolveOutboxTransactor) RevokeRoles(opts *bind.TransactOpts, user common.Address, roles *big.Int) (*types.Transaction, error) {
return _SolveOutbox.contract.Transact(opts, "revokeRoles", user, roles)
}
// RevokeRoles is a paid mutator transaction binding the contract method 0x4a4ee7b1.
//
// Solidity: function revokeRoles(address user, uint256 roles) payable returns()
func (_SolveOutbox *SolveOutboxSession) RevokeRoles(user common.Address, roles *big.Int) (*types.Transaction, error) {
return _SolveOutbox.Contract.RevokeRoles(&_SolveOutbox.TransactOpts, user, roles)
}
// RevokeRoles is a paid mutator transaction binding the contract method 0x4a4ee7b1.
//
// Solidity: function revokeRoles(address user, uint256 roles) payable returns()
func (_SolveOutbox *SolveOutboxTransactorSession) RevokeRoles(user common.Address, roles *big.Int) (*types.Transaction, error) {
return _SolveOutbox.Contract.RevokeRoles(&_SolveOutbox.TransactOpts, user, roles)
}
// SetAllowedCall is a paid mutator transaction binding the contract method 0x2b370b67.
//
// Solidity: function setAllowedCall(address target, bytes4 selector, bool allowed) returns()
func (_SolveOutbox *SolveOutboxTransactor) SetAllowedCall(opts *bind.TransactOpts, target common.Address, selector [4]byte, allowed bool) (*types.Transaction, error) {
return _SolveOutbox.contract.Transact(opts, "setAllowedCall", target, selector, allowed)
}
// SetAllowedCall is a paid mutator transaction binding the contract method 0x2b370b67.
//
// Solidity: function setAllowedCall(address target, bytes4 selector, bool allowed) returns()
func (_SolveOutbox *SolveOutboxSession) SetAllowedCall(target common.Address, selector [4]byte, allowed bool) (*types.Transaction, error) {
return _SolveOutbox.Contract.SetAllowedCall(&_SolveOutbox.TransactOpts, target, selector, allowed)
}
// SetAllowedCall is a paid mutator transaction binding the contract method 0x2b370b67.
//
// Solidity: function setAllowedCall(address target, bytes4 selector, bool allowed) returns()
func (_SolveOutbox *SolveOutboxTransactorSession) SetAllowedCall(target common.Address, selector [4]byte, allowed bool) (*types.Transaction, error) {
return _SolveOutbox.Contract.SetAllowedCall(&_SolveOutbox.TransactOpts, target, selector, allowed)
}
// TransferOwnership is a paid mutator transaction binding the contract method 0xf2fde38b.
//
// Solidity: function transferOwnership(address newOwner) payable returns()
func (_SolveOutbox *SolveOutboxTransactor) TransferOwnership(opts *bind.TransactOpts, newOwner common.Address) (*types.Transaction, error) {
return _SolveOutbox.contract.Transact(opts, "transferOwnership", newOwner)
}
// TransferOwnership is a paid mutator transaction binding the contract method 0xf2fde38b.
//
// Solidity: function transferOwnership(address newOwner) payable returns()
func (_SolveOutbox *SolveOutboxSession) TransferOwnership(newOwner common.Address) (*types.Transaction, error) {
return _SolveOutbox.Contract.TransferOwnership(&_SolveOutbox.TransactOpts, newOwner)
}
// TransferOwnership is a paid mutator transaction binding the contract method 0xf2fde38b.
//
// Solidity: function transferOwnership(address newOwner) payable returns()
func (_SolveOutbox *SolveOutboxTransactorSession) TransferOwnership(newOwner common.Address) (*types.Transaction, error) {
return _SolveOutbox.Contract.TransferOwnership(&_SolveOutbox.TransactOpts, newOwner)
}
// SolveOutboxAllowedCallSetIterator is returned from FilterAllowedCallSet and is used to iterate over the raw logs and unpacked data for AllowedCallSet events raised by the SolveOutbox contract.
type SolveOutboxAllowedCallSetIterator struct {
Event *SolveOutboxAllowedCallSet // 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 *SolveOutboxAllowedCallSetIterator) 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(SolveOutboxAllowedCallSet)
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(SolveOutboxAllowedCallSet)
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 *SolveOutboxAllowedCallSetIterator) Error() error {
return it.fail
}
// Close terminates the iteration process, releasing any pending underlying
// resources.
func (it *SolveOutboxAllowedCallSetIterator) Close() error {
it.sub.Unsubscribe()
return nil
}
// SolveOutboxAllowedCallSet represents a AllowedCallSet event raised by the SolveOutbox contract.
type SolveOutboxAllowedCallSet struct {
Target common.Address
Selector [4]byte
Allowed bool
Raw types.Log // Blockchain specific contextual infos
}
// FilterAllowedCallSet is a free log retrieval operation binding the contract event 0x4a2dc3dabd793cd88cb7b56ba4aa70196892e5b996fc72f4f3d45e20343d305b.
//
// Solidity: event AllowedCallSet(address indexed target, bytes4 indexed selector, bool allowed)
func (_SolveOutbox *SolveOutboxFilterer) FilterAllowedCallSet(opts *bind.FilterOpts, target []common.Address, selector [][4]byte) (*SolveOutboxAllowedCallSetIterator, error) {
var targetRule []interface{}
for _, targetItem := range target {
targetRule = append(targetRule, targetItem)
}
var selectorRule []interface{}
for _, selectorItem := range selector {
selectorRule = append(selectorRule, selectorItem)
}
logs, sub, err := _SolveOutbox.contract.FilterLogs(opts, "AllowedCallSet", targetRule, selectorRule)
if err != nil {
return nil, err
}
return &SolveOutboxAllowedCallSetIterator{contract: _SolveOutbox.contract, event: "AllowedCallSet", logs: logs, sub: sub}, nil
}
// WatchAllowedCallSet is a free log subscription operation binding the contract event 0x4a2dc3dabd793cd88cb7b56ba4aa70196892e5b996fc72f4f3d45e20343d305b.
//
// Solidity: event AllowedCallSet(address indexed target, bytes4 indexed selector, bool allowed)
func (_SolveOutbox *SolveOutboxFilterer) WatchAllowedCallSet(opts *bind.WatchOpts, sink chan<- *SolveOutboxAllowedCallSet, target []common.Address, selector [][4]byte) (event.Subscription, error) {
var targetRule []interface{}
for _, targetItem := range target {
targetRule = append(targetRule, targetItem)
}
var selectorRule []interface{}
for _, selectorItem := range selector {
selectorRule = append(selectorRule, selectorItem)
}
logs, sub, err := _SolveOutbox.contract.WatchLogs(opts, "AllowedCallSet", targetRule, selectorRule)
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(SolveOutboxAllowedCallSet)
if err := _SolveOutbox.contract.UnpackLog(event, "AllowedCallSet", 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
}
// ParseAllowedCallSet is a log parse operation binding the contract event 0x4a2dc3dabd793cd88cb7b56ba4aa70196892e5b996fc72f4f3d45e20343d305b.
//
// Solidity: event AllowedCallSet(address indexed target, bytes4 indexed selector, bool allowed)
func (_SolveOutbox *SolveOutboxFilterer) ParseAllowedCallSet(log types.Log) (*SolveOutboxAllowedCallSet, error) {
event := new(SolveOutboxAllowedCallSet)
if err := _SolveOutbox.contract.UnpackLog(event, "AllowedCallSet", log); err != nil {
return nil, err
}
event.Raw = log
return event, nil
}
// SolveOutboxDefaultConfLevelSetIterator is returned from FilterDefaultConfLevelSet and is used to iterate over the raw logs and unpacked data for DefaultConfLevelSet events raised by the SolveOutbox contract.
type SolveOutboxDefaultConfLevelSetIterator struct {
Event *SolveOutboxDefaultConfLevelSet // 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 *SolveOutboxDefaultConfLevelSetIterator) 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 {