This repository has been archived by the owner on Mar 31, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
/
events.pb.go
2446 lines (2132 loc) · 88.6 KB
/
events.pb.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 by protoc-gen-go. DO NOT EDIT.
// source: vega/events/v1/events.proto
package v1
import (
vega "code.vegaprotocol.io/protos/vega"
v1 "code.vegaprotocol.io/protos/vega/commands/v1"
v11 "code.vegaprotocol.io/protos/vega/oracles/v1"
fmt "fmt"
proto "github.com/golang/protobuf/proto"
math "math"
)
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
// This is a compile-time assertion to ensure that this generated file
// is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the
// proto package needs to be updated.
const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package
// An (event) bus event type is used to specify a type of event
// It has 2 styles of event:
// Single values (e.g. BUS_EVENT_TYPE_ORDER) where they represent one data item
// Group values (e.g. BUS_EVENT_TYPE_AUCTION) where they represent a group of data items
type BusEventType int32
const (
// Default value, always invalid
BusEventType_BUS_EVENT_TYPE_UNSPECIFIED BusEventType = 0
// Events of ALL event types, used when filtering stream from event bus
BusEventType_BUS_EVENT_TYPE_ALL BusEventType = 1
// Event for blockchain time updates
BusEventType_BUS_EVENT_TYPE_TIME_UPDATE BusEventType = 2
// Event for when a transfer happens internally, contains the transfer information
BusEventType_BUS_EVENT_TYPE_TRANSFER_RESPONSES BusEventType = 3
// Event indicating position resolution has occurred
BusEventType_BUS_EVENT_TYPE_POSITION_RESOLUTION BusEventType = 4
// Event for order updates, both new and existing orders
BusEventType_BUS_EVENT_TYPE_ORDER BusEventType = 5
// Event for account updates
BusEventType_BUS_EVENT_TYPE_ACCOUNT BusEventType = 6
// Event for party updates
BusEventType_BUS_EVENT_TYPE_PARTY BusEventType = 7
// Event indicating a new trade has occurred
BusEventType_BUS_EVENT_TYPE_TRADE BusEventType = 8
// Event indicating margin levels have changed for a party
BusEventType_BUS_EVENT_TYPE_MARGIN_LEVELS BusEventType = 9
// Event for proposal updates (for governance)
BusEventType_BUS_EVENT_TYPE_PROPOSAL BusEventType = 10
// Event indicating a new vote has occurred (for governance)
BusEventType_BUS_EVENT_TYPE_VOTE BusEventType = 11
// Event for market data updates
BusEventType_BUS_EVENT_TYPE_MARKET_DATA BusEventType = 12
// Event for a new signature for a Vega node
BusEventType_BUS_EVENT_TYPE_NODE_SIGNATURE BusEventType = 13
// Event indicating loss socialisation occurred for a party
BusEventType_BUS_EVENT_TYPE_LOSS_SOCIALIZATION BusEventType = 14
// Event for when a position is being settled
BusEventType_BUS_EVENT_TYPE_SETTLE_POSITION BusEventType = 15
// Event for when a position is distressed
BusEventType_BUS_EVENT_TYPE_SETTLE_DISTRESSED BusEventType = 16
// Event indicating a new market was created
BusEventType_BUS_EVENT_TYPE_MARKET_CREATED BusEventType = 17
// Event for when an asset is added to Vega
BusEventType_BUS_EVENT_TYPE_ASSET BusEventType = 18
// Event indicating a market tick event
BusEventType_BUS_EVENT_TYPE_MARKET_TICK BusEventType = 19
// Event for when a withdrawal occurs
BusEventType_BUS_EVENT_TYPE_WITHDRAWAL BusEventType = 20
// Event for when a deposit occurs
BusEventType_BUS_EVENT_TYPE_DEPOSIT BusEventType = 21
// Event indicating a change in auction state, for example starting or ending an auction
BusEventType_BUS_EVENT_TYPE_AUCTION BusEventType = 22
// Event indicating a risk factor has been updated
BusEventType_BUS_EVENT_TYPE_RISK_FACTOR BusEventType = 23
// Event indicating a network parameter has been added or updated
BusEventType_BUS_EVENT_TYPE_NETWORK_PARAMETER BusEventType = 24
// Event indicating a liquidity provision has been created or updated
BusEventType_BUS_EVENT_TYPE_LIQUIDITY_PROVISION BusEventType = 25
// Event indicating a new market was created
BusEventType_BUS_EVENT_TYPE_MARKET_UPDATED BusEventType = 26
// Event indicating an oracle spec has been created or updated
BusEventType_BUS_EVENT_TYPE_ORACLE_SPEC BusEventType = 27
// Event indicating that an oracle data has been broadcast
BusEventType_BUS_EVENT_TYPE_ORACLE_DATA BusEventType = 28
// Event indicating that an delegation balance of a party to a node for current epoch has changed
BusEventType_BUS_EVENT_TYPE_DELEGATION_BALANCE BusEventType = 29
// Event indicating the validator score for the given epoch
BusEventType_BUS_EVENT_TYPE_VALIDATOR_SCORE BusEventType = 30
// Event indicating the start or end of an epoch
BusEventType_BUS_EVENT_TYPE_EPOCH_UPDATE BusEventType = 31
// Event indicating that validator node has been updated
BusEventType_BUS_EVENT_TYPE_VALIDATOR_UPDATE BusEventType = 32
// Event indicating a new staking event have been processed by the network
BusEventType_BUS_EVENT_TYPE_STAKE_LINKING BusEventType = 33
// Event indicating the payout of a reward has been initiated
BusEventType_BUS_EVENT_TYPE_REWARD_PAYOUT_EVENT BusEventType = 34
// Event indicating a new checkpoint was created
BusEventType_BUS_EVENT_TYPE_CHECKPOINT BusEventType = 35
// Event indicating a market related event, for example when a market opens
BusEventType_BUS_EVENT_TYPE_MARKET BusEventType = 101
// Event used to report failed transactions back to a user, this is excluded from the ALL type
BusEventType_BUS_EVENT_TYPE_TX_ERROR BusEventType = 201
)
var BusEventType_name = map[int32]string{
0: "BUS_EVENT_TYPE_UNSPECIFIED",
1: "BUS_EVENT_TYPE_ALL",
2: "BUS_EVENT_TYPE_TIME_UPDATE",
3: "BUS_EVENT_TYPE_TRANSFER_RESPONSES",
4: "BUS_EVENT_TYPE_POSITION_RESOLUTION",
5: "BUS_EVENT_TYPE_ORDER",
6: "BUS_EVENT_TYPE_ACCOUNT",
7: "BUS_EVENT_TYPE_PARTY",
8: "BUS_EVENT_TYPE_TRADE",
9: "BUS_EVENT_TYPE_MARGIN_LEVELS",
10: "BUS_EVENT_TYPE_PROPOSAL",
11: "BUS_EVENT_TYPE_VOTE",
12: "BUS_EVENT_TYPE_MARKET_DATA",
13: "BUS_EVENT_TYPE_NODE_SIGNATURE",
14: "BUS_EVENT_TYPE_LOSS_SOCIALIZATION",
15: "BUS_EVENT_TYPE_SETTLE_POSITION",
16: "BUS_EVENT_TYPE_SETTLE_DISTRESSED",
17: "BUS_EVENT_TYPE_MARKET_CREATED",
18: "BUS_EVENT_TYPE_ASSET",
19: "BUS_EVENT_TYPE_MARKET_TICK",
20: "BUS_EVENT_TYPE_WITHDRAWAL",
21: "BUS_EVENT_TYPE_DEPOSIT",
22: "BUS_EVENT_TYPE_AUCTION",
23: "BUS_EVENT_TYPE_RISK_FACTOR",
24: "BUS_EVENT_TYPE_NETWORK_PARAMETER",
25: "BUS_EVENT_TYPE_LIQUIDITY_PROVISION",
26: "BUS_EVENT_TYPE_MARKET_UPDATED",
27: "BUS_EVENT_TYPE_ORACLE_SPEC",
28: "BUS_EVENT_TYPE_ORACLE_DATA",
29: "BUS_EVENT_TYPE_DELEGATION_BALANCE",
30: "BUS_EVENT_TYPE_VALIDATOR_SCORE",
31: "BUS_EVENT_TYPE_EPOCH_UPDATE",
32: "BUS_EVENT_TYPE_VALIDATOR_UPDATE",
33: "BUS_EVENT_TYPE_STAKE_LINKING",
34: "BUS_EVENT_TYPE_REWARD_PAYOUT_EVENT",
35: "BUS_EVENT_TYPE_CHECKPOINT",
101: "BUS_EVENT_TYPE_MARKET",
201: "BUS_EVENT_TYPE_TX_ERROR",
}
var BusEventType_value = map[string]int32{
"BUS_EVENT_TYPE_UNSPECIFIED": 0,
"BUS_EVENT_TYPE_ALL": 1,
"BUS_EVENT_TYPE_TIME_UPDATE": 2,
"BUS_EVENT_TYPE_TRANSFER_RESPONSES": 3,
"BUS_EVENT_TYPE_POSITION_RESOLUTION": 4,
"BUS_EVENT_TYPE_ORDER": 5,
"BUS_EVENT_TYPE_ACCOUNT": 6,
"BUS_EVENT_TYPE_PARTY": 7,
"BUS_EVENT_TYPE_TRADE": 8,
"BUS_EVENT_TYPE_MARGIN_LEVELS": 9,
"BUS_EVENT_TYPE_PROPOSAL": 10,
"BUS_EVENT_TYPE_VOTE": 11,
"BUS_EVENT_TYPE_MARKET_DATA": 12,
"BUS_EVENT_TYPE_NODE_SIGNATURE": 13,
"BUS_EVENT_TYPE_LOSS_SOCIALIZATION": 14,
"BUS_EVENT_TYPE_SETTLE_POSITION": 15,
"BUS_EVENT_TYPE_SETTLE_DISTRESSED": 16,
"BUS_EVENT_TYPE_MARKET_CREATED": 17,
"BUS_EVENT_TYPE_ASSET": 18,
"BUS_EVENT_TYPE_MARKET_TICK": 19,
"BUS_EVENT_TYPE_WITHDRAWAL": 20,
"BUS_EVENT_TYPE_DEPOSIT": 21,
"BUS_EVENT_TYPE_AUCTION": 22,
"BUS_EVENT_TYPE_RISK_FACTOR": 23,
"BUS_EVENT_TYPE_NETWORK_PARAMETER": 24,
"BUS_EVENT_TYPE_LIQUIDITY_PROVISION": 25,
"BUS_EVENT_TYPE_MARKET_UPDATED": 26,
"BUS_EVENT_TYPE_ORACLE_SPEC": 27,
"BUS_EVENT_TYPE_ORACLE_DATA": 28,
"BUS_EVENT_TYPE_DELEGATION_BALANCE": 29,
"BUS_EVENT_TYPE_VALIDATOR_SCORE": 30,
"BUS_EVENT_TYPE_EPOCH_UPDATE": 31,
"BUS_EVENT_TYPE_VALIDATOR_UPDATE": 32,
"BUS_EVENT_TYPE_STAKE_LINKING": 33,
"BUS_EVENT_TYPE_REWARD_PAYOUT_EVENT": 34,
"BUS_EVENT_TYPE_CHECKPOINT": 35,
"BUS_EVENT_TYPE_MARKET": 101,
"BUS_EVENT_TYPE_TX_ERROR": 201,
}
func (x BusEventType) String() string {
return proto.EnumName(BusEventType_name, int32(x))
}
func (BusEventType) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_2565b4e8491d341a, []int{0}
}
type StakeLinking_Type int32
const (
// Default value
StakeLinking_TYPE_UNSPECIFIED StakeLinking_Type = 0
// Indicate of a stake deposit instruction
StakeLinking_TYPE_LINK StakeLinking_Type = 1
// Indicate of a stake remove instruction
StakeLinking_TYPE_UNLINK StakeLinking_Type = 2
)
var StakeLinking_Type_name = map[int32]string{
0: "TYPE_UNSPECIFIED",
1: "TYPE_LINK",
2: "TYPE_UNLINK",
}
var StakeLinking_Type_value = map[string]int32{
"TYPE_UNSPECIFIED": 0,
"TYPE_LINK": 1,
"TYPE_UNLINK": 2,
}
func (x StakeLinking_Type) String() string {
return proto.EnumName(StakeLinking_Type_name, int32(x))
}
func (StakeLinking_Type) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_2565b4e8491d341a, []int{0, 0}
}
type StakeLinking_Status int32
const (
// Default value
StakeLinking_STATUS_UNSPECIFIED StakeLinking_Status = 0
// Indicate an event waiting for confirmation from the vega network
StakeLinking_STATUS_PENDING StakeLinking_Status = 1
// Indicate of an event accepted by the vega network
StakeLinking_STATUS_ACCEPTED StakeLinking_Status = 2
// Indaicate of an event rejected by the vega network
StakeLinking_STATUS_REJECTED StakeLinking_Status = 3
)
var StakeLinking_Status_name = map[int32]string{
0: "STATUS_UNSPECIFIED",
1: "STATUS_PENDING",
2: "STATUS_ACCEPTED",
3: "STATUS_REJECTED",
}
var StakeLinking_Status_value = map[string]int32{
"STATUS_UNSPECIFIED": 0,
"STATUS_PENDING": 1,
"STATUS_ACCEPTED": 2,
"STATUS_REJECTED": 3,
}
func (x StakeLinking_Status) String() string {
return proto.EnumName(StakeLinking_Status_name, int32(x))
}
func (StakeLinking_Status) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_2565b4e8491d341a, []int{0, 1}
}
// StakeLinking - an event notifying of stake being deposited or removed for a given party
// These events are emitted for every Staking deposit or removed accepted by the network
type StakeLinking struct {
// The internal ID for this staking event
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
// The type of event
Type StakeLinking_Type `protobuf:"varint,2,opt,name=type,proto3,enum=vega.events.v1.StakeLinking_Type" json:"type,omitempty"`
// The timestamps at which the event was emitted by ethereum
Ts int64 `protobuf:"varint,3,opt,name=ts,proto3" json:"ts,omitempty"`
// The party to whom the event is directed at.
Party string `protobuf:"bytes,4,opt,name=party,proto3" json:"party,omitempty"`
// The amount of stake deposited or removed
Amount string `protobuf:"bytes,5,opt,name=amount,proto3" json:"amount,omitempty"`
// The status of the event
Status StakeLinking_Status `protobuf:"varint,6,opt,name=status,proto3,enum=vega.events.v1.StakeLinking_Status" json:"status,omitempty"`
// The time at which the vega network finalized the state of the event
FinalizedAt int64 `protobuf:"varint,7,opt,name=finalized_at,json=finalizedAt,proto3" json:"finalized_at,omitempty"`
// The hash of the transaction from which the events happen
TxHash string `protobuf:"bytes,8,opt,name=tx_hash,json=txHash,proto3" json:"tx_hash,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *StakeLinking) Reset() { *m = StakeLinking{} }
func (m *StakeLinking) String() string { return proto.CompactTextString(m) }
func (*StakeLinking) ProtoMessage() {}
func (*StakeLinking) Descriptor() ([]byte, []int) {
return fileDescriptor_2565b4e8491d341a, []int{0}
}
func (m *StakeLinking) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_StakeLinking.Unmarshal(m, b)
}
func (m *StakeLinking) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_StakeLinking.Marshal(b, m, deterministic)
}
func (m *StakeLinking) XXX_Merge(src proto.Message) {
xxx_messageInfo_StakeLinking.Merge(m, src)
}
func (m *StakeLinking) XXX_Size() int {
return xxx_messageInfo_StakeLinking.Size(m)
}
func (m *StakeLinking) XXX_DiscardUnknown() {
xxx_messageInfo_StakeLinking.DiscardUnknown(m)
}
var xxx_messageInfo_StakeLinking proto.InternalMessageInfo
func (m *StakeLinking) GetId() string {
if m != nil {
return m.Id
}
return ""
}
func (m *StakeLinking) GetType() StakeLinking_Type {
if m != nil {
return m.Type
}
return StakeLinking_TYPE_UNSPECIFIED
}
func (m *StakeLinking) GetTs() int64 {
if m != nil {
return m.Ts
}
return 0
}
func (m *StakeLinking) GetParty() string {
if m != nil {
return m.Party
}
return ""
}
func (m *StakeLinking) GetAmount() string {
if m != nil {
return m.Amount
}
return ""
}
func (m *StakeLinking) GetStatus() StakeLinking_Status {
if m != nil {
return m.Status
}
return StakeLinking_STATUS_UNSPECIFIED
}
func (m *StakeLinking) GetFinalizedAt() int64 {
if m != nil {
return m.FinalizedAt
}
return 0
}
func (m *StakeLinking) GetTxHash() string {
if m != nil {
return m.TxHash
}
return ""
}
type CheckpointEvent struct {
Hash string `protobuf:"bytes,1,opt,name=hash,proto3" json:"hash,omitempty"`
BlockHash string `protobuf:"bytes,2,opt,name=block_hash,json=blockHash,proto3" json:"block_hash,omitempty"`
BlockHeight uint64 `protobuf:"varint,3,opt,name=block_height,json=blockHeight,proto3" json:"block_height,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *CheckpointEvent) Reset() { *m = CheckpointEvent{} }
func (m *CheckpointEvent) String() string { return proto.CompactTextString(m) }
func (*CheckpointEvent) ProtoMessage() {}
func (*CheckpointEvent) Descriptor() ([]byte, []int) {
return fileDescriptor_2565b4e8491d341a, []int{1}
}
func (m *CheckpointEvent) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_CheckpointEvent.Unmarshal(m, b)
}
func (m *CheckpointEvent) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_CheckpointEvent.Marshal(b, m, deterministic)
}
func (m *CheckpointEvent) XXX_Merge(src proto.Message) {
xxx_messageInfo_CheckpointEvent.Merge(m, src)
}
func (m *CheckpointEvent) XXX_Size() int {
return xxx_messageInfo_CheckpointEvent.Size(m)
}
func (m *CheckpointEvent) XXX_DiscardUnknown() {
xxx_messageInfo_CheckpointEvent.DiscardUnknown(m)
}
var xxx_messageInfo_CheckpointEvent proto.InternalMessageInfo
func (m *CheckpointEvent) GetHash() string {
if m != nil {
return m.Hash
}
return ""
}
func (m *CheckpointEvent) GetBlockHash() string {
if m != nil {
return m.BlockHash
}
return ""
}
func (m *CheckpointEvent) GetBlockHeight() uint64 {
if m != nil {
return m.BlockHeight
}
return 0
}
type RewardPayoutEvent struct {
Party string `protobuf:"bytes,1,opt,name=party,proto3" json:"party,omitempty"`
EpochSeq string `protobuf:"bytes,2,opt,name=epoch_seq,json=epochSeq,proto3" json:"epoch_seq,omitempty"`
Asset string `protobuf:"bytes,3,opt,name=asset,proto3" json:"asset,omitempty"`
Amount string `protobuf:"bytes,4,opt,name=amount,proto3" json:"amount,omitempty"`
PercentOfTotalReward string `protobuf:"bytes,5,opt,name=percent_of_total_reward,json=percentOfTotalReward,proto3" json:"percent_of_total_reward,omitempty"`
Timestamp int64 `protobuf:"varint,6,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *RewardPayoutEvent) Reset() { *m = RewardPayoutEvent{} }
func (m *RewardPayoutEvent) String() string { return proto.CompactTextString(m) }
func (*RewardPayoutEvent) ProtoMessage() {}
func (*RewardPayoutEvent) Descriptor() ([]byte, []int) {
return fileDescriptor_2565b4e8491d341a, []int{2}
}
func (m *RewardPayoutEvent) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_RewardPayoutEvent.Unmarshal(m, b)
}
func (m *RewardPayoutEvent) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_RewardPayoutEvent.Marshal(b, m, deterministic)
}
func (m *RewardPayoutEvent) XXX_Merge(src proto.Message) {
xxx_messageInfo_RewardPayoutEvent.Merge(m, src)
}
func (m *RewardPayoutEvent) XXX_Size() int {
return xxx_messageInfo_RewardPayoutEvent.Size(m)
}
func (m *RewardPayoutEvent) XXX_DiscardUnknown() {
xxx_messageInfo_RewardPayoutEvent.DiscardUnknown(m)
}
var xxx_messageInfo_RewardPayoutEvent proto.InternalMessageInfo
func (m *RewardPayoutEvent) GetParty() string {
if m != nil {
return m.Party
}
return ""
}
func (m *RewardPayoutEvent) GetEpochSeq() string {
if m != nil {
return m.EpochSeq
}
return ""
}
func (m *RewardPayoutEvent) GetAsset() string {
if m != nil {
return m.Asset
}
return ""
}
func (m *RewardPayoutEvent) GetAmount() string {
if m != nil {
return m.Amount
}
return ""
}
func (m *RewardPayoutEvent) GetPercentOfTotalReward() string {
if m != nil {
return m.PercentOfTotalReward
}
return ""
}
func (m *RewardPayoutEvent) GetTimestamp() int64 {
if m != nil {
return m.Timestamp
}
return 0
}
//ValidatorScoreEvent is the score a validator gets for a given epoch
type ValidatorScoreEvent struct {
NodeId string `protobuf:"bytes,1,opt,name=node_id,json=nodeId,proto3" json:"node_id,omitempty"`
EpochSeq string `protobuf:"bytes,2,opt,name=epoch_seq,json=epochSeq,proto3" json:"epoch_seq,omitempty"`
ValidatorScore string `protobuf:"bytes,3,opt,name=validator_score,json=validatorScore,proto3" json:"validator_score,omitempty"`
NormalisedScore string `protobuf:"bytes,4,opt,name=normalised_score,json=normalisedScore,proto3" json:"normalised_score,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ValidatorScoreEvent) Reset() { *m = ValidatorScoreEvent{} }
func (m *ValidatorScoreEvent) String() string { return proto.CompactTextString(m) }
func (*ValidatorScoreEvent) ProtoMessage() {}
func (*ValidatorScoreEvent) Descriptor() ([]byte, []int) {
return fileDescriptor_2565b4e8491d341a, []int{3}
}
func (m *ValidatorScoreEvent) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ValidatorScoreEvent.Unmarshal(m, b)
}
func (m *ValidatorScoreEvent) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ValidatorScoreEvent.Marshal(b, m, deterministic)
}
func (m *ValidatorScoreEvent) XXX_Merge(src proto.Message) {
xxx_messageInfo_ValidatorScoreEvent.Merge(m, src)
}
func (m *ValidatorScoreEvent) XXX_Size() int {
return xxx_messageInfo_ValidatorScoreEvent.Size(m)
}
func (m *ValidatorScoreEvent) XXX_DiscardUnknown() {
xxx_messageInfo_ValidatorScoreEvent.DiscardUnknown(m)
}
var xxx_messageInfo_ValidatorScoreEvent proto.InternalMessageInfo
func (m *ValidatorScoreEvent) GetNodeId() string {
if m != nil {
return m.NodeId
}
return ""
}
func (m *ValidatorScoreEvent) GetEpochSeq() string {
if m != nil {
return m.EpochSeq
}
return ""
}
func (m *ValidatorScoreEvent) GetValidatorScore() string {
if m != nil {
return m.ValidatorScore
}
return ""
}
func (m *ValidatorScoreEvent) GetNormalisedScore() string {
if m != nil {
return m.NormalisedScore
}
return ""
}
//DelegationBalanceEvent - updates on the delegation balance of a party to a node in the current epoch in effect
type DelegationBalanceEvent struct {
Party string `protobuf:"bytes,1,opt,name=party,proto3" json:"party,omitempty"`
NodeId string `protobuf:"bytes,2,opt,name=node_id,json=nodeId,proto3" json:"node_id,omitempty"`
Amount uint64 `protobuf:"varint,3,opt,name=amount,proto3" json:"amount,omitempty"`
EpochSeq string `protobuf:"bytes,4,opt,name=epoch_seq,json=epochSeq,proto3" json:"epoch_seq,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *DelegationBalanceEvent) Reset() { *m = DelegationBalanceEvent{} }
func (m *DelegationBalanceEvent) String() string { return proto.CompactTextString(m) }
func (*DelegationBalanceEvent) ProtoMessage() {}
func (*DelegationBalanceEvent) Descriptor() ([]byte, []int) {
return fileDescriptor_2565b4e8491d341a, []int{4}
}
func (m *DelegationBalanceEvent) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_DelegationBalanceEvent.Unmarshal(m, b)
}
func (m *DelegationBalanceEvent) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_DelegationBalanceEvent.Marshal(b, m, deterministic)
}
func (m *DelegationBalanceEvent) XXX_Merge(src proto.Message) {
xxx_messageInfo_DelegationBalanceEvent.Merge(m, src)
}
func (m *DelegationBalanceEvent) XXX_Size() int {
return xxx_messageInfo_DelegationBalanceEvent.Size(m)
}
func (m *DelegationBalanceEvent) XXX_DiscardUnknown() {
xxx_messageInfo_DelegationBalanceEvent.DiscardUnknown(m)
}
var xxx_messageInfo_DelegationBalanceEvent proto.InternalMessageInfo
func (m *DelegationBalanceEvent) GetParty() string {
if m != nil {
return m.Party
}
return ""
}
func (m *DelegationBalanceEvent) GetNodeId() string {
if m != nil {
return m.NodeId
}
return ""
}
func (m *DelegationBalanceEvent) GetAmount() uint64 {
if m != nil {
return m.Amount
}
return 0
}
func (m *DelegationBalanceEvent) GetEpochSeq() string {
if m != nil {
return m.EpochSeq
}
return ""
}
//PendingDelegationBalanceEvent - updates on the delegation/undelegation balance of a party to a node for the next epoch
type PendingDelegationBalanceEvent struct {
Party string `protobuf:"bytes,1,opt,name=party,proto3" json:"party,omitempty"`
NodeId string `protobuf:"bytes,2,opt,name=node_id,json=nodeId,proto3" json:"node_id,omitempty"`
DelegationAmount uint64 `protobuf:"varint,3,opt,name=delegation_amount,json=delegationAmount,proto3" json:"delegation_amount,omitempty"`
UndelegationAmount uint64 `protobuf:"varint,4,opt,name=undelegation_amount,json=undelegationAmount,proto3" json:"undelegation_amount,omitempty"`
EpochSeq string `protobuf:"bytes,5,opt,name=epoch_seq,json=epochSeq,proto3" json:"epoch_seq,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *PendingDelegationBalanceEvent) Reset() { *m = PendingDelegationBalanceEvent{} }
func (m *PendingDelegationBalanceEvent) String() string { return proto.CompactTextString(m) }
func (*PendingDelegationBalanceEvent) ProtoMessage() {}
func (*PendingDelegationBalanceEvent) Descriptor() ([]byte, []int) {
return fileDescriptor_2565b4e8491d341a, []int{5}
}
func (m *PendingDelegationBalanceEvent) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_PendingDelegationBalanceEvent.Unmarshal(m, b)
}
func (m *PendingDelegationBalanceEvent) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_PendingDelegationBalanceEvent.Marshal(b, m, deterministic)
}
func (m *PendingDelegationBalanceEvent) XXX_Merge(src proto.Message) {
xxx_messageInfo_PendingDelegationBalanceEvent.Merge(m, src)
}
func (m *PendingDelegationBalanceEvent) XXX_Size() int {
return xxx_messageInfo_PendingDelegationBalanceEvent.Size(m)
}
func (m *PendingDelegationBalanceEvent) XXX_DiscardUnknown() {
xxx_messageInfo_PendingDelegationBalanceEvent.DiscardUnknown(m)
}
var xxx_messageInfo_PendingDelegationBalanceEvent proto.InternalMessageInfo
func (m *PendingDelegationBalanceEvent) GetParty() string {
if m != nil {
return m.Party
}
return ""
}
func (m *PendingDelegationBalanceEvent) GetNodeId() string {
if m != nil {
return m.NodeId
}
return ""
}
func (m *PendingDelegationBalanceEvent) GetDelegationAmount() uint64 {
if m != nil {
return m.DelegationAmount
}
return 0
}
func (m *PendingDelegationBalanceEvent) GetUndelegationAmount() uint64 {
if m != nil {
return m.UndelegationAmount
}
return 0
}
func (m *PendingDelegationBalanceEvent) GetEpochSeq() string {
if m != nil {
return m.EpochSeq
}
return ""
}
// MarketEvent - the common denominator for all market events
// interface has a method to return a string for logging
type MarketEvent struct {
// Market identifier for the event
MarketId string `protobuf:"bytes,1,opt,name=market_id,json=marketId,proto3" json:"market_id,omitempty"`
// Payload is a unique information string
Payload string `protobuf:"bytes,2,opt,name=payload,proto3" json:"payload,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *MarketEvent) Reset() { *m = MarketEvent{} }
func (m *MarketEvent) String() string { return proto.CompactTextString(m) }
func (*MarketEvent) ProtoMessage() {}
func (*MarketEvent) Descriptor() ([]byte, []int) {
return fileDescriptor_2565b4e8491d341a, []int{6}
}
func (m *MarketEvent) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_MarketEvent.Unmarshal(m, b)
}
func (m *MarketEvent) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_MarketEvent.Marshal(b, m, deterministic)
}
func (m *MarketEvent) XXX_Merge(src proto.Message) {
xxx_messageInfo_MarketEvent.Merge(m, src)
}
func (m *MarketEvent) XXX_Size() int {
return xxx_messageInfo_MarketEvent.Size(m)
}
func (m *MarketEvent) XXX_DiscardUnknown() {
xxx_messageInfo_MarketEvent.DiscardUnknown(m)
}
var xxx_messageInfo_MarketEvent proto.InternalMessageInfo
func (m *MarketEvent) GetMarketId() string {
if m != nil {
return m.MarketId
}
return ""
}
func (m *MarketEvent) GetPayload() string {
if m != nil {
return m.Payload
}
return ""
}
type TxErrorEvent struct {
// Unique party identifier for the related party
PartyId string `protobuf:"bytes,1,opt,name=party_id,json=partyId,proto3" json:"party_id,omitempty"`
// An error message describing what went wrong
ErrMsg string `protobuf:"bytes,2,opt,name=err_msg,json=errMsg,proto3" json:"err_msg,omitempty"`
// The transaction that failed
//
// Types that are valid to be assigned to Transaction:
// *TxErrorEvent_OrderSubmission
// *TxErrorEvent_OrderAmendment
// *TxErrorEvent_OrderCancellation
// *TxErrorEvent_Proposal
// *TxErrorEvent_VoteSubmission
// *TxErrorEvent_LiquidityProvisionSubmission
// *TxErrorEvent_WithdrawSubmission
Transaction isTxErrorEvent_Transaction `protobuf_oneof:"transaction"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *TxErrorEvent) Reset() { *m = TxErrorEvent{} }
func (m *TxErrorEvent) String() string { return proto.CompactTextString(m) }
func (*TxErrorEvent) ProtoMessage() {}
func (*TxErrorEvent) Descriptor() ([]byte, []int) {
return fileDescriptor_2565b4e8491d341a, []int{7}
}
func (m *TxErrorEvent) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_TxErrorEvent.Unmarshal(m, b)
}
func (m *TxErrorEvent) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_TxErrorEvent.Marshal(b, m, deterministic)
}
func (m *TxErrorEvent) XXX_Merge(src proto.Message) {
xxx_messageInfo_TxErrorEvent.Merge(m, src)
}
func (m *TxErrorEvent) XXX_Size() int {
return xxx_messageInfo_TxErrorEvent.Size(m)
}
func (m *TxErrorEvent) XXX_DiscardUnknown() {
xxx_messageInfo_TxErrorEvent.DiscardUnknown(m)
}
var xxx_messageInfo_TxErrorEvent proto.InternalMessageInfo
func (m *TxErrorEvent) GetPartyId() string {
if m != nil {
return m.PartyId
}
return ""
}
func (m *TxErrorEvent) GetErrMsg() string {
if m != nil {
return m.ErrMsg
}
return ""
}
type isTxErrorEvent_Transaction interface {
isTxErrorEvent_Transaction()
}
type TxErrorEvent_OrderSubmission struct {
OrderSubmission *v1.OrderSubmission `protobuf:"bytes,101,opt,name=order_submission,json=orderSubmission,proto3,oneof"`
}
type TxErrorEvent_OrderAmendment struct {
OrderAmendment *v1.OrderAmendment `protobuf:"bytes,102,opt,name=order_amendment,json=orderAmendment,proto3,oneof"`
}
type TxErrorEvent_OrderCancellation struct {
OrderCancellation *v1.OrderCancellation `protobuf:"bytes,103,opt,name=order_cancellation,json=orderCancellation,proto3,oneof"`
}
type TxErrorEvent_Proposal struct {
Proposal *v1.ProposalSubmission `protobuf:"bytes,104,opt,name=proposal,proto3,oneof"`
}
type TxErrorEvent_VoteSubmission struct {
VoteSubmission *v1.VoteSubmission `protobuf:"bytes,105,opt,name=vote_submission,json=voteSubmission,proto3,oneof"`
}
type TxErrorEvent_LiquidityProvisionSubmission struct {
LiquidityProvisionSubmission *v1.LiquidityProvisionSubmission `protobuf:"bytes,106,opt,name=liquidity_provision_submission,json=liquidityProvisionSubmission,proto3,oneof"`
}
type TxErrorEvent_WithdrawSubmission struct {
WithdrawSubmission *v1.WithdrawSubmission `protobuf:"bytes,107,opt,name=withdraw_submission,json=withdrawSubmission,proto3,oneof"`
}
func (*TxErrorEvent_OrderSubmission) isTxErrorEvent_Transaction() {}
func (*TxErrorEvent_OrderAmendment) isTxErrorEvent_Transaction() {}
func (*TxErrorEvent_OrderCancellation) isTxErrorEvent_Transaction() {}
func (*TxErrorEvent_Proposal) isTxErrorEvent_Transaction() {}
func (*TxErrorEvent_VoteSubmission) isTxErrorEvent_Transaction() {}
func (*TxErrorEvent_LiquidityProvisionSubmission) isTxErrorEvent_Transaction() {}
func (*TxErrorEvent_WithdrawSubmission) isTxErrorEvent_Transaction() {}
func (m *TxErrorEvent) GetTransaction() isTxErrorEvent_Transaction {
if m != nil {
return m.Transaction
}
return nil
}
func (m *TxErrorEvent) GetOrderSubmission() *v1.OrderSubmission {
if x, ok := m.GetTransaction().(*TxErrorEvent_OrderSubmission); ok {
return x.OrderSubmission
}
return nil
}
func (m *TxErrorEvent) GetOrderAmendment() *v1.OrderAmendment {
if x, ok := m.GetTransaction().(*TxErrorEvent_OrderAmendment); ok {
return x.OrderAmendment
}
return nil
}
func (m *TxErrorEvent) GetOrderCancellation() *v1.OrderCancellation {
if x, ok := m.GetTransaction().(*TxErrorEvent_OrderCancellation); ok {
return x.OrderCancellation
}
return nil
}
func (m *TxErrorEvent) GetProposal() *v1.ProposalSubmission {
if x, ok := m.GetTransaction().(*TxErrorEvent_Proposal); ok {
return x.Proposal
}
return nil
}
func (m *TxErrorEvent) GetVoteSubmission() *v1.VoteSubmission {
if x, ok := m.GetTransaction().(*TxErrorEvent_VoteSubmission); ok {
return x.VoteSubmission
}
return nil
}
func (m *TxErrorEvent) GetLiquidityProvisionSubmission() *v1.LiquidityProvisionSubmission {
if x, ok := m.GetTransaction().(*TxErrorEvent_LiquidityProvisionSubmission); ok {
return x.LiquidityProvisionSubmission
}
return nil
}
func (m *TxErrorEvent) GetWithdrawSubmission() *v1.WithdrawSubmission {
if x, ok := m.GetTransaction().(*TxErrorEvent_WithdrawSubmission); ok {
return x.WithdrawSubmission
}
return nil
}
// XXX_OneofWrappers is for the internal use of the proto package.
func (*TxErrorEvent) XXX_OneofWrappers() []interface{} {
return []interface{}{
(*TxErrorEvent_OrderSubmission)(nil),
(*TxErrorEvent_OrderAmendment)(nil),
(*TxErrorEvent_OrderCancellation)(nil),
(*TxErrorEvent_Proposal)(nil),
(*TxErrorEvent_VoteSubmission)(nil),
(*TxErrorEvent_LiquidityProvisionSubmission)(nil),
(*TxErrorEvent_WithdrawSubmission)(nil),
}
}
// A time update event contains the latest time update from Vega blockchain
type TimeUpdate struct {
// Timestamp containing latest update from Vega blockchain aka Vega-time
Timestamp int64 `protobuf:"varint,1,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *TimeUpdate) Reset() { *m = TimeUpdate{} }
func (m *TimeUpdate) String() string { return proto.CompactTextString(m) }
func (*TimeUpdate) ProtoMessage() {}
func (*TimeUpdate) Descriptor() ([]byte, []int) {
return fileDescriptor_2565b4e8491d341a, []int{8}
}
func (m *TimeUpdate) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_TimeUpdate.Unmarshal(m, b)
}
func (m *TimeUpdate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_TimeUpdate.Marshal(b, m, deterministic)
}
func (m *TimeUpdate) XXX_Merge(src proto.Message) {
xxx_messageInfo_TimeUpdate.Merge(m, src)
}
func (m *TimeUpdate) XXX_Size() int {
return xxx_messageInfo_TimeUpdate.Size(m)
}
func (m *TimeUpdate) XXX_DiscardUnknown() {
xxx_messageInfo_TimeUpdate.DiscardUnknown(m)
}
var xxx_messageInfo_TimeUpdate proto.InternalMessageInfo
func (m *TimeUpdate) GetTimestamp() int64 {
if m != nil {
return m.Timestamp
}
return 0
}
// Epoch details
type EpochEvent struct {
// Sequence number that increases by one each epoch
Seq uint64 `protobuf:"varint,1,opt,name=seq,proto3" json:"seq,omitempty"`
// What time did this epoch start
StartTime int64 `protobuf:"varint,2,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"`
// What time should this epoch end
ExpireTime int64 `protobuf:"varint,3,opt,name=expire_time,json=expireTime,proto3" json:"expire_time,omitempty"`
// What time did it actually end
EndTime int64 `protobuf:"varint,4,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *EpochEvent) Reset() { *m = EpochEvent{} }
func (m *EpochEvent) String() string { return proto.CompactTextString(m) }
func (*EpochEvent) ProtoMessage() {}
func (*EpochEvent) Descriptor() ([]byte, []int) {
return fileDescriptor_2565b4e8491d341a, []int{9}
}
func (m *EpochEvent) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_EpochEvent.Unmarshal(m, b)
}
func (m *EpochEvent) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_EpochEvent.Marshal(b, m, deterministic)
}