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
/
governance.pb.go
2709 lines (2438 loc) · 113 KB
/
governance.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.
// versions:
// protoc-gen-go v1.27.1
// protoc (unknown)
// source: vega/governance.proto
package vega
import (
v1 "code.vegaprotocol.io/protos/vega/oracles/v1"
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
reflect "reflect"
sync "sync"
)
const (
// Verify that this generated code is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
// Verify that runtime/protoimpl is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
)
// A list of possible errors that can cause a proposal to be in state rejected or failed
type ProposalError int32
const (
// Default value
ProposalError_PROPOSAL_ERROR_UNSPECIFIED ProposalError = 0
// The specified close time is too early base on network parameters
ProposalError_PROPOSAL_ERROR_CLOSE_TIME_TOO_SOON ProposalError = 1
// The specified close time is too late based on network parameters
ProposalError_PROPOSAL_ERROR_CLOSE_TIME_TOO_LATE ProposalError = 2
// The specified enact time is too early based on network parameters
ProposalError_PROPOSAL_ERROR_ENACT_TIME_TOO_SOON ProposalError = 3
// The specified enact time is too late based on network parameters
ProposalError_PROPOSAL_ERROR_ENACT_TIME_TOO_LATE ProposalError = 4
// The proposer for this proposal as insufficient tokens
ProposalError_PROPOSAL_ERROR_INSUFFICIENT_TOKENS ProposalError = 5
// The instrument quote name and base name were the same
ProposalError_PROPOSAL_ERROR_INVALID_INSTRUMENT_SECURITY ProposalError = 6
// The proposal has no product
ProposalError_PROPOSAL_ERROR_NO_PRODUCT ProposalError = 7
// The specified product is not supported
ProposalError_PROPOSAL_ERROR_UNSUPPORTED_PRODUCT ProposalError = 8
// The proposal has no trading mode
ProposalError_PROPOSAL_ERROR_NO_TRADING_MODE ProposalError = 11
// The proposal has an unsupported trading mode
ProposalError_PROPOSAL_ERROR_UNSUPPORTED_TRADING_MODE ProposalError = 12
// The proposal failed node validation
ProposalError_PROPOSAL_ERROR_NODE_VALIDATION_FAILED ProposalError = 13
// A field is missing in a builtin asset source
ProposalError_PROPOSAL_ERROR_MISSING_BUILTIN_ASSET_FIELD ProposalError = 14
// The contract address is missing in the ERC20 asset source
ProposalError_PROPOSAL_ERROR_MISSING_ERC20_CONTRACT_ADDRESS ProposalError = 15
// The asset identifier is invalid or does not exist on the Vega network
ProposalError_PROPOSAL_ERROR_INVALID_ASSET ProposalError = 16
// Proposal terms timestamps are not compatible (Validation < Closing < Enactment)
ProposalError_PROPOSAL_ERROR_INCOMPATIBLE_TIMESTAMPS ProposalError = 17
// No risk parameters were specified
ProposalError_PROPOSAL_ERROR_NO_RISK_PARAMETERS ProposalError = 18
// Invalid key in update network parameter proposal
ProposalError_PROPOSAL_ERROR_NETWORK_PARAMETER_INVALID_KEY ProposalError = 19
// Invalid valid in update network parameter proposal
ProposalError_PROPOSAL_ERROR_NETWORK_PARAMETER_INVALID_VALUE ProposalError = 20
// Validation failed for network parameter proposal
ProposalError_PROPOSAL_ERROR_NETWORK_PARAMETER_VALIDATION_FAILED ProposalError = 21
// Opening auction duration is less than the network minimum opening auction time
ProposalError_PROPOSAL_ERROR_OPENING_AUCTION_DURATION_TOO_SMALL ProposalError = 22
// Opening auction duration is more than the network minimum opening auction time
ProposalError_PROPOSAL_ERROR_OPENING_AUCTION_DURATION_TOO_LARGE ProposalError = 23
// Market proposal is missing a liquidity commitment
ProposalError_PROPOSAL_ERROR_MARKET_MISSING_LIQUIDITY_COMMITMENT ProposalError = 24
// Market proposal market could not be instantiate in execution
ProposalError_PROPOSAL_ERROR_COULD_NOT_INSTANTIATE_MARKET ProposalError = 25
// Market proposal market contained invalid product definition
ProposalError_PROPOSAL_ERROR_INVALID_FUTURE_PRODUCT ProposalError = 26
// Market proposal is missing commitment amount
ProposalError_PROPOSAL_ERROR_MISSING_COMMITMENT_AMOUNT ProposalError = 27
// Market proposal have invalid fee
ProposalError_PROPOSAL_ERROR_INVALID_FEE_AMOUNT ProposalError = 28
// Market proposal have invalid shape
ProposalError_PROPOSAL_ERROR_INVALID_SHAPE ProposalError = 29
// Market proposal invalid risk parameter
ProposalError_PROPOSAL_ERROR_INVALID_RISK_PARAMETER ProposalError = 30
// Proposal was declined because vote didn't reach the majority threshold required
ProposalError_PROPOSAL_ERROR_MAJORITY_THRESHOLD_NOT_REACHED ProposalError = 31
// Proposal declined because the participation threshold was not reached
ProposalError_PROPOSAL_ERROR_PARTICIPATION_THRESHOLD_NOT_REACHED ProposalError = 32
// Asset proposal invalid asset details
ProposalError_PROPOSAL_ERROR_INVALID_ASSET_DETAILS ProposalError = 33
// Proposal is an unknown type.
ProposalError_PROPOSAL_ERROR_UNKNOWN_TYPE ProposalError = 34
// Proposal has an unknown risk parameter type.
ProposalError_PROPOSAL_ERROR_UNKNOWN_RISK_PARAMETER_TYPE ProposalError = 35
// Validation failed for freeform proposal.
ProposalError_PROPOSAL_ERROR_INVALID_FREEFORM ProposalError = 36
// The party doesn't have enough equity-like share to propose an update on the market
// targeted by the proposal.
ProposalError_PROPOSAL_ERROR_INSUFFICIENT_EQUITY_LIKE_SHARE ProposalError = 37
// The market targeted by the proposal does not exist or is not eligible to modification.
ProposalError_PROPOSAL_ERROR_INVALID_MARKET ProposalError = 38
// The market proposal decimal place is higher to the market settlement asset decimal places
ProposalError_PROPOSAL_ERROR_TOO_MANY_MARKET_DECIMAL_PLACES ProposalError = 39
// The market proposal contains too many price monitoring triggers
ProposalError_PROPOSAL_ERROR_TOO_MANY_PRICE_MONITORING_TRIGGERS ProposalError = 40
)
// Enum value maps for ProposalError.
var (
ProposalError_name = map[int32]string{
0: "PROPOSAL_ERROR_UNSPECIFIED",
1: "PROPOSAL_ERROR_CLOSE_TIME_TOO_SOON",
2: "PROPOSAL_ERROR_CLOSE_TIME_TOO_LATE",
3: "PROPOSAL_ERROR_ENACT_TIME_TOO_SOON",
4: "PROPOSAL_ERROR_ENACT_TIME_TOO_LATE",
5: "PROPOSAL_ERROR_INSUFFICIENT_TOKENS",
6: "PROPOSAL_ERROR_INVALID_INSTRUMENT_SECURITY",
7: "PROPOSAL_ERROR_NO_PRODUCT",
8: "PROPOSAL_ERROR_UNSUPPORTED_PRODUCT",
11: "PROPOSAL_ERROR_NO_TRADING_MODE",
12: "PROPOSAL_ERROR_UNSUPPORTED_TRADING_MODE",
13: "PROPOSAL_ERROR_NODE_VALIDATION_FAILED",
14: "PROPOSAL_ERROR_MISSING_BUILTIN_ASSET_FIELD",
15: "PROPOSAL_ERROR_MISSING_ERC20_CONTRACT_ADDRESS",
16: "PROPOSAL_ERROR_INVALID_ASSET",
17: "PROPOSAL_ERROR_INCOMPATIBLE_TIMESTAMPS",
18: "PROPOSAL_ERROR_NO_RISK_PARAMETERS",
19: "PROPOSAL_ERROR_NETWORK_PARAMETER_INVALID_KEY",
20: "PROPOSAL_ERROR_NETWORK_PARAMETER_INVALID_VALUE",
21: "PROPOSAL_ERROR_NETWORK_PARAMETER_VALIDATION_FAILED",
22: "PROPOSAL_ERROR_OPENING_AUCTION_DURATION_TOO_SMALL",
23: "PROPOSAL_ERROR_OPENING_AUCTION_DURATION_TOO_LARGE",
24: "PROPOSAL_ERROR_MARKET_MISSING_LIQUIDITY_COMMITMENT",
25: "PROPOSAL_ERROR_COULD_NOT_INSTANTIATE_MARKET",
26: "PROPOSAL_ERROR_INVALID_FUTURE_PRODUCT",
27: "PROPOSAL_ERROR_MISSING_COMMITMENT_AMOUNT",
28: "PROPOSAL_ERROR_INVALID_FEE_AMOUNT",
29: "PROPOSAL_ERROR_INVALID_SHAPE",
30: "PROPOSAL_ERROR_INVALID_RISK_PARAMETER",
31: "PROPOSAL_ERROR_MAJORITY_THRESHOLD_NOT_REACHED",
32: "PROPOSAL_ERROR_PARTICIPATION_THRESHOLD_NOT_REACHED",
33: "PROPOSAL_ERROR_INVALID_ASSET_DETAILS",
34: "PROPOSAL_ERROR_UNKNOWN_TYPE",
35: "PROPOSAL_ERROR_UNKNOWN_RISK_PARAMETER_TYPE",
36: "PROPOSAL_ERROR_INVALID_FREEFORM",
37: "PROPOSAL_ERROR_INSUFFICIENT_EQUITY_LIKE_SHARE",
38: "PROPOSAL_ERROR_INVALID_MARKET",
39: "PROPOSAL_ERROR_TOO_MANY_MARKET_DECIMAL_PLACES",
40: "PROPOSAL_ERROR_TOO_MANY_PRICE_MONITORING_TRIGGERS",
}
ProposalError_value = map[string]int32{
"PROPOSAL_ERROR_UNSPECIFIED": 0,
"PROPOSAL_ERROR_CLOSE_TIME_TOO_SOON": 1,
"PROPOSAL_ERROR_CLOSE_TIME_TOO_LATE": 2,
"PROPOSAL_ERROR_ENACT_TIME_TOO_SOON": 3,
"PROPOSAL_ERROR_ENACT_TIME_TOO_LATE": 4,
"PROPOSAL_ERROR_INSUFFICIENT_TOKENS": 5,
"PROPOSAL_ERROR_INVALID_INSTRUMENT_SECURITY": 6,
"PROPOSAL_ERROR_NO_PRODUCT": 7,
"PROPOSAL_ERROR_UNSUPPORTED_PRODUCT": 8,
"PROPOSAL_ERROR_NO_TRADING_MODE": 11,
"PROPOSAL_ERROR_UNSUPPORTED_TRADING_MODE": 12,
"PROPOSAL_ERROR_NODE_VALIDATION_FAILED": 13,
"PROPOSAL_ERROR_MISSING_BUILTIN_ASSET_FIELD": 14,
"PROPOSAL_ERROR_MISSING_ERC20_CONTRACT_ADDRESS": 15,
"PROPOSAL_ERROR_INVALID_ASSET": 16,
"PROPOSAL_ERROR_INCOMPATIBLE_TIMESTAMPS": 17,
"PROPOSAL_ERROR_NO_RISK_PARAMETERS": 18,
"PROPOSAL_ERROR_NETWORK_PARAMETER_INVALID_KEY": 19,
"PROPOSAL_ERROR_NETWORK_PARAMETER_INVALID_VALUE": 20,
"PROPOSAL_ERROR_NETWORK_PARAMETER_VALIDATION_FAILED": 21,
"PROPOSAL_ERROR_OPENING_AUCTION_DURATION_TOO_SMALL": 22,
"PROPOSAL_ERROR_OPENING_AUCTION_DURATION_TOO_LARGE": 23,
"PROPOSAL_ERROR_MARKET_MISSING_LIQUIDITY_COMMITMENT": 24,
"PROPOSAL_ERROR_COULD_NOT_INSTANTIATE_MARKET": 25,
"PROPOSAL_ERROR_INVALID_FUTURE_PRODUCT": 26,
"PROPOSAL_ERROR_MISSING_COMMITMENT_AMOUNT": 27,
"PROPOSAL_ERROR_INVALID_FEE_AMOUNT": 28,
"PROPOSAL_ERROR_INVALID_SHAPE": 29,
"PROPOSAL_ERROR_INVALID_RISK_PARAMETER": 30,
"PROPOSAL_ERROR_MAJORITY_THRESHOLD_NOT_REACHED": 31,
"PROPOSAL_ERROR_PARTICIPATION_THRESHOLD_NOT_REACHED": 32,
"PROPOSAL_ERROR_INVALID_ASSET_DETAILS": 33,
"PROPOSAL_ERROR_UNKNOWN_TYPE": 34,
"PROPOSAL_ERROR_UNKNOWN_RISK_PARAMETER_TYPE": 35,
"PROPOSAL_ERROR_INVALID_FREEFORM": 36,
"PROPOSAL_ERROR_INSUFFICIENT_EQUITY_LIKE_SHARE": 37,
"PROPOSAL_ERROR_INVALID_MARKET": 38,
"PROPOSAL_ERROR_TOO_MANY_MARKET_DECIMAL_PLACES": 39,
"PROPOSAL_ERROR_TOO_MANY_PRICE_MONITORING_TRIGGERS": 40,
}
)
func (x ProposalError) Enum() *ProposalError {
p := new(ProposalError)
*p = x
return p
}
func (x ProposalError) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (ProposalError) Descriptor() protoreflect.EnumDescriptor {
return file_vega_governance_proto_enumTypes[0].Descriptor()
}
func (ProposalError) Type() protoreflect.EnumType {
return &file_vega_governance_proto_enumTypes[0]
}
func (x ProposalError) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use ProposalError.Descriptor instead.
func (ProposalError) EnumDescriptor() ([]byte, []int) {
return file_vega_governance_proto_rawDescGZIP(), []int{0}
}
// Proposal state transition:
// Open ->
// - Passed -> Enacted.
// - Passed -> Failed.
// - Declined
// Rejected
// Proposal can enter Failed state from any other state
type Proposal_State int32
const (
// Default value, always invalid
Proposal_STATE_UNSPECIFIED Proposal_State = 0
// Proposal enactment has failed - even though proposal has passed, its execution could not be performed
Proposal_STATE_FAILED Proposal_State = 1
// Proposal is open for voting
Proposal_STATE_OPEN Proposal_State = 2
// Proposal has gained enough support to be executed
Proposal_STATE_PASSED Proposal_State = 3
// Proposal wasn't accepted (proposal terms failed validation due to wrong configuration or failing to meet network requirements)
Proposal_STATE_REJECTED Proposal_State = 4
// Proposal didn't get enough votes (either failing to gain required participation or majority level)
Proposal_STATE_DECLINED Proposal_State = 5
// Proposal enacted
Proposal_STATE_ENACTED Proposal_State = 6
// Waiting for node validation of the proposal
Proposal_STATE_WAITING_FOR_NODE_VOTE Proposal_State = 7
)
// Enum value maps for Proposal_State.
var (
Proposal_State_name = map[int32]string{
0: "STATE_UNSPECIFIED",
1: "STATE_FAILED",
2: "STATE_OPEN",
3: "STATE_PASSED",
4: "STATE_REJECTED",
5: "STATE_DECLINED",
6: "STATE_ENACTED",
7: "STATE_WAITING_FOR_NODE_VOTE",
}
Proposal_State_value = map[string]int32{
"STATE_UNSPECIFIED": 0,
"STATE_FAILED": 1,
"STATE_OPEN": 2,
"STATE_PASSED": 3,
"STATE_REJECTED": 4,
"STATE_DECLINED": 5,
"STATE_ENACTED": 6,
"STATE_WAITING_FOR_NODE_VOTE": 7,
}
)
func (x Proposal_State) Enum() *Proposal_State {
p := new(Proposal_State)
*p = x
return p
}
func (x Proposal_State) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (Proposal_State) Descriptor() protoreflect.EnumDescriptor {
return file_vega_governance_proto_enumTypes[1].Descriptor()
}
func (Proposal_State) Type() protoreflect.EnumType {
return &file_vega_governance_proto_enumTypes[1]
}
func (x Proposal_State) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use Proposal_State.Descriptor instead.
func (Proposal_State) EnumDescriptor() ([]byte, []int) {
return file_vega_governance_proto_rawDescGZIP(), []int{16, 0}
}
// Vote value
type Vote_Value int32
const (
// Default value, always invalid
Vote_VALUE_UNSPECIFIED Vote_Value = 0
// A vote against the proposal
Vote_VALUE_NO Vote_Value = 1
// A vote in favour of the proposal
Vote_VALUE_YES Vote_Value = 2
)
// Enum value maps for Vote_Value.
var (
Vote_Value_name = map[int32]string{
0: "VALUE_UNSPECIFIED",
1: "VALUE_NO",
2: "VALUE_YES",
}
Vote_Value_value = map[string]int32{
"VALUE_UNSPECIFIED": 0,
"VALUE_NO": 1,
"VALUE_YES": 2,
}
)
func (x Vote_Value) Enum() *Vote_Value {
p := new(Vote_Value)
*p = x
return p
}
func (x Vote_Value) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (Vote_Value) Descriptor() protoreflect.EnumDescriptor {
return file_vega_governance_proto_enumTypes[2].Descriptor()
}
func (Vote_Value) Type() protoreflect.EnumType {
return &file_vega_governance_proto_enumTypes[2]
}
func (x Vote_Value) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use Vote_Value.Descriptor instead.
func (Vote_Value) EnumDescriptor() ([]byte, []int) {
return file_vega_governance_proto_rawDescGZIP(), []int{17, 0}
}
// Future product configuration
type FutureProduct struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Product settlement asset identifier
SettlementAsset string `protobuf:"bytes,2,opt,name=settlement_asset,json=settlementAsset,proto3" json:"settlement_asset,omitempty"`
// Product quote name
QuoteName string `protobuf:"bytes,3,opt,name=quote_name,json=quoteName,proto3" json:"quote_name,omitempty"`
// The oracle spec describing the oracle data of settlement price
OracleSpecForSettlementPrice *v1.OracleSpecConfiguration `protobuf:"bytes,5,opt,name=oracle_spec_for_settlement_price,json=oracleSpecForSettlementPrice,proto3" json:"oracle_spec_for_settlement_price,omitempty"`
// The oracle spec describing the oracle data of trading termination
OracleSpecForTradingTermination *v1.OracleSpecConfiguration `protobuf:"bytes,6,opt,name=oracle_spec_for_trading_termination,json=oracleSpecForTradingTermination,proto3" json:"oracle_spec_for_trading_termination,omitempty"`
// The binding between the oracle spec and the settlement price
OracleSpecBinding *OracleSpecToFutureBinding `protobuf:"bytes,7,opt,name=oracle_spec_binding,json=oracleSpecBinding,proto3" json:"oracle_spec_binding,omitempty"`
// the number of decimal places implied by the settlement price emitted by the settlement oracle
SettlementPriceDecimals uint32 `protobuf:"varint,8,opt,name=settlement_price_decimals,json=settlementPriceDecimals,proto3" json:"settlement_price_decimals,omitempty"`
}
func (x *FutureProduct) Reset() {
*x = FutureProduct{}
if protoimpl.UnsafeEnabled {
mi := &file_vega_governance_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *FutureProduct) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*FutureProduct) ProtoMessage() {}
func (x *FutureProduct) ProtoReflect() protoreflect.Message {
mi := &file_vega_governance_proto_msgTypes[0]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use FutureProduct.ProtoReflect.Descriptor instead.
func (*FutureProduct) Descriptor() ([]byte, []int) {
return file_vega_governance_proto_rawDescGZIP(), []int{0}
}
func (x *FutureProduct) GetSettlementAsset() string {
if x != nil {
return x.SettlementAsset
}
return ""
}
func (x *FutureProduct) GetQuoteName() string {
if x != nil {
return x.QuoteName
}
return ""
}
func (x *FutureProduct) GetOracleSpecForSettlementPrice() *v1.OracleSpecConfiguration {
if x != nil {
return x.OracleSpecForSettlementPrice
}
return nil
}
func (x *FutureProduct) GetOracleSpecForTradingTermination() *v1.OracleSpecConfiguration {
if x != nil {
return x.OracleSpecForTradingTermination
}
return nil
}
func (x *FutureProduct) GetOracleSpecBinding() *OracleSpecToFutureBinding {
if x != nil {
return x.OracleSpecBinding
}
return nil
}
func (x *FutureProduct) GetSettlementPriceDecimals() uint32 {
if x != nil {
return x.SettlementPriceDecimals
}
return 0
}
// Instrument configuration
type InstrumentConfiguration struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Instrument name
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// Instrument code
Code string `protobuf:"bytes,2,opt,name=code,proto3" json:"code,omitempty"`
// Product specification
//
// Types that are assignable to Product:
// *InstrumentConfiguration_Future
Product isInstrumentConfiguration_Product `protobuf_oneof:"product"`
}
func (x *InstrumentConfiguration) Reset() {
*x = InstrumentConfiguration{}
if protoimpl.UnsafeEnabled {
mi := &file_vega_governance_proto_msgTypes[1]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *InstrumentConfiguration) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*InstrumentConfiguration) ProtoMessage() {}
func (x *InstrumentConfiguration) ProtoReflect() protoreflect.Message {
mi := &file_vega_governance_proto_msgTypes[1]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use InstrumentConfiguration.ProtoReflect.Descriptor instead.
func (*InstrumentConfiguration) Descriptor() ([]byte, []int) {
return file_vega_governance_proto_rawDescGZIP(), []int{1}
}
func (x *InstrumentConfiguration) GetName() string {
if x != nil {
return x.Name
}
return ""
}
func (x *InstrumentConfiguration) GetCode() string {
if x != nil {
return x.Code
}
return ""
}
func (m *InstrumentConfiguration) GetProduct() isInstrumentConfiguration_Product {
if m != nil {
return m.Product
}
return nil
}
func (x *InstrumentConfiguration) GetFuture() *FutureProduct {
if x, ok := x.GetProduct().(*InstrumentConfiguration_Future); ok {
return x.Future
}
return nil
}
type isInstrumentConfiguration_Product interface {
isInstrumentConfiguration_Product()
}
type InstrumentConfiguration_Future struct {
// Future
Future *FutureProduct `protobuf:"bytes,100,opt,name=future,proto3,oneof"`
}
func (*InstrumentConfiguration_Future) isInstrumentConfiguration_Product() {}
// Configuration for a new market on Vega
type NewMarketConfiguration struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// New market instrument configuration
Instrument *InstrumentConfiguration `protobuf:"bytes,1,opt,name=instrument,proto3" json:"instrument,omitempty"`
// Decimal places used for the new market
DecimalPlaces uint64 `protobuf:"varint,2,opt,name=decimal_places,json=decimalPlaces,proto3" json:"decimal_places,omitempty"`
// Optional new market meta data, tags
Metadata []string `protobuf:"bytes,3,rep,name=metadata,proto3" json:"metadata,omitempty"`
// Price monitoring parameters
PriceMonitoringParameters *PriceMonitoringParameters `protobuf:"bytes,4,opt,name=price_monitoring_parameters,json=priceMonitoringParameters,proto3" json:"price_monitoring_parameters,omitempty"`
// Liquidity monitoring parameters
LiquidityMonitoringParameters *LiquidityMonitoringParameters `protobuf:"bytes,5,opt,name=liquidity_monitoring_parameters,json=liquidityMonitoringParameters,proto3" json:"liquidity_monitoring_parameters,omitempty"`
// New market risk model parameters
//
// Types that are assignable to RiskParameters:
// *NewMarketConfiguration_Simple
// *NewMarketConfiguration_LogNormal
RiskParameters isNewMarketConfiguration_RiskParameters `protobuf_oneof:"risk_parameters"`
// Decimal places for order sizes
PositionDecimalPlaces uint64 `protobuf:"varint,6,opt,name=position_decimal_places,json=positionDecimalPlaces,proto3" json:"position_decimal_places,omitempty"`
}
func (x *NewMarketConfiguration) Reset() {
*x = NewMarketConfiguration{}
if protoimpl.UnsafeEnabled {
mi := &file_vega_governance_proto_msgTypes[2]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *NewMarketConfiguration) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*NewMarketConfiguration) ProtoMessage() {}
func (x *NewMarketConfiguration) ProtoReflect() protoreflect.Message {
mi := &file_vega_governance_proto_msgTypes[2]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use NewMarketConfiguration.ProtoReflect.Descriptor instead.
func (*NewMarketConfiguration) Descriptor() ([]byte, []int) {
return file_vega_governance_proto_rawDescGZIP(), []int{2}
}
func (x *NewMarketConfiguration) GetInstrument() *InstrumentConfiguration {
if x != nil {
return x.Instrument
}
return nil
}
func (x *NewMarketConfiguration) GetDecimalPlaces() uint64 {
if x != nil {
return x.DecimalPlaces
}
return 0
}
func (x *NewMarketConfiguration) GetMetadata() []string {
if x != nil {
return x.Metadata
}
return nil
}
func (x *NewMarketConfiguration) GetPriceMonitoringParameters() *PriceMonitoringParameters {
if x != nil {
return x.PriceMonitoringParameters
}
return nil
}
func (x *NewMarketConfiguration) GetLiquidityMonitoringParameters() *LiquidityMonitoringParameters {
if x != nil {
return x.LiquidityMonitoringParameters
}
return nil
}
func (m *NewMarketConfiguration) GetRiskParameters() isNewMarketConfiguration_RiskParameters {
if m != nil {
return m.RiskParameters
}
return nil
}
func (x *NewMarketConfiguration) GetSimple() *SimpleModelParams {
if x, ok := x.GetRiskParameters().(*NewMarketConfiguration_Simple); ok {
return x.Simple
}
return nil
}
func (x *NewMarketConfiguration) GetLogNormal() *LogNormalRiskModel {
if x, ok := x.GetRiskParameters().(*NewMarketConfiguration_LogNormal); ok {
return x.LogNormal
}
return nil
}
func (x *NewMarketConfiguration) GetPositionDecimalPlaces() uint64 {
if x != nil {
return x.PositionDecimalPlaces
}
return 0
}
type isNewMarketConfiguration_RiskParameters interface {
isNewMarketConfiguration_RiskParameters()
}
type NewMarketConfiguration_Simple struct {
// Simple risk model parameters, valid only if MODEL_SIMPLE is selected
Simple *SimpleModelParams `protobuf:"bytes,100,opt,name=simple,proto3,oneof"`
}
type NewMarketConfiguration_LogNormal struct {
// Log normal risk model parameters, valid only if MODEL_LOG_NORMAL is selected
LogNormal *LogNormalRiskModel `protobuf:"bytes,101,opt,name=log_normal,json=logNormal,proto3,oneof"`
}
func (*NewMarketConfiguration_Simple) isNewMarketConfiguration_RiskParameters() {}
func (*NewMarketConfiguration_LogNormal) isNewMarketConfiguration_RiskParameters() {}
// A commitment of liquidity to be made by the party which proposes a market
type NewMarketCommitment struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Specified as a unitless number that represents the amount of settlement asset of the market
CommitmentAmount string `protobuf:"bytes,1,opt,name=commitment_amount,json=commitmentAmount,proto3" json:"commitment_amount,omitempty"`
// Nominated liquidity fee factor, which is an input to the calculation of taker fees on the market, as per seeting fees and rewarding liquidity providers
Fee string `protobuf:"bytes,2,opt,name=fee,proto3" json:"fee,omitempty"`
// A set of liquidity sell orders to meet the liquidity provision obligation
Sells []*LiquidityOrder `protobuf:"bytes,3,rep,name=sells,proto3" json:"sells,omitempty"`
// A set of liquidity buy orders to meet the liquidity provision obligation
Buys []*LiquidityOrder `protobuf:"bytes,4,rep,name=buys,proto3" json:"buys,omitempty"`
// A reference to be associated to all orders created from this commitment
Reference string `protobuf:"bytes,5,opt,name=reference,proto3" json:"reference,omitempty"`
}
func (x *NewMarketCommitment) Reset() {
*x = NewMarketCommitment{}
if protoimpl.UnsafeEnabled {
mi := &file_vega_governance_proto_msgTypes[3]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *NewMarketCommitment) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*NewMarketCommitment) ProtoMessage() {}
func (x *NewMarketCommitment) ProtoReflect() protoreflect.Message {
mi := &file_vega_governance_proto_msgTypes[3]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use NewMarketCommitment.ProtoReflect.Descriptor instead.
func (*NewMarketCommitment) Descriptor() ([]byte, []int) {
return file_vega_governance_proto_rawDescGZIP(), []int{3}
}
func (x *NewMarketCommitment) GetCommitmentAmount() string {
if x != nil {
return x.CommitmentAmount
}
return ""
}
func (x *NewMarketCommitment) GetFee() string {
if x != nil {
return x.Fee
}
return ""
}
func (x *NewMarketCommitment) GetSells() []*LiquidityOrder {
if x != nil {
return x.Sells
}
return nil
}
func (x *NewMarketCommitment) GetBuys() []*LiquidityOrder {
if x != nil {
return x.Buys
}
return nil
}
func (x *NewMarketCommitment) GetReference() string {
if x != nil {
return x.Reference
}
return ""
}
// New market on Vega
type NewMarket struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// The configuration of the new market
Changes *NewMarketConfiguration `protobuf:"bytes,1,opt,name=changes,proto3" json:"changes,omitempty"`
// The commitment from the party creating the NewMarket proposal
LiquidityCommitment *NewMarketCommitment `protobuf:"bytes,2,opt,name=liquidity_commitment,json=liquidityCommitment,proto3" json:"liquidity_commitment,omitempty"`
}
func (x *NewMarket) Reset() {
*x = NewMarket{}
if protoimpl.UnsafeEnabled {
mi := &file_vega_governance_proto_msgTypes[4]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *NewMarket) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*NewMarket) ProtoMessage() {}
func (x *NewMarket) ProtoReflect() protoreflect.Message {
mi := &file_vega_governance_proto_msgTypes[4]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use NewMarket.ProtoReflect.Descriptor instead.
func (*NewMarket) Descriptor() ([]byte, []int) {
return file_vega_governance_proto_rawDescGZIP(), []int{4}
}
func (x *NewMarket) GetChanges() *NewMarketConfiguration {
if x != nil {
return x.Changes
}
return nil
}
func (x *NewMarket) GetLiquidityCommitment() *NewMarketCommitment {
if x != nil {
return x.LiquidityCommitment
}
return nil
}
// Update an existing market on Vega
type UpdateMarket struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// The market to update
MarketId string `protobuf:"bytes,1,opt,name=market_id,json=marketId,proto3" json:"market_id,omitempty"`
// The updated configuration of the market
Changes *UpdateMarketConfiguration `protobuf:"bytes,2,opt,name=changes,proto3" json:"changes,omitempty"`
}
func (x *UpdateMarket) Reset() {
*x = UpdateMarket{}
if protoimpl.UnsafeEnabled {
mi := &file_vega_governance_proto_msgTypes[5]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *UpdateMarket) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*UpdateMarket) ProtoMessage() {}
func (x *UpdateMarket) ProtoReflect() protoreflect.Message {
mi := &file_vega_governance_proto_msgTypes[5]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use UpdateMarket.ProtoReflect.Descriptor instead.
func (*UpdateMarket) Descriptor() ([]byte, []int) {
return file_vega_governance_proto_rawDescGZIP(), []int{5}
}
func (x *UpdateMarket) GetMarketId() string {
if x != nil {
return x.MarketId
}
return ""
}
func (x *UpdateMarket) GetChanges() *UpdateMarketConfiguration {
if x != nil {
return x.Changes
}
return nil
}
// Configuration to update a market on Vega
type UpdateMarketConfiguration struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Updated market instrument configuration
Instrument *UpdateInstrumentConfiguration `protobuf:"bytes,1,opt,name=instrument,proto3" json:"instrument,omitempty"`
// Optional market metadata, tags
Metadata []string `protobuf:"bytes,2,rep,name=metadata,proto3" json:"metadata,omitempty"`
// Price monitoring parameters
PriceMonitoringParameters *PriceMonitoringParameters `protobuf:"bytes,3,opt,name=price_monitoring_parameters,json=priceMonitoringParameters,proto3" json:"price_monitoring_parameters,omitempty"`
// Liquidity monitoring parameters
LiquidityMonitoringParameters *LiquidityMonitoringParameters `protobuf:"bytes,4,opt,name=liquidity_monitoring_parameters,json=liquidityMonitoringParameters,proto3" json:"liquidity_monitoring_parameters,omitempty"`
// Updated market risk model parameters
//
// Types that are assignable to RiskParameters:
// *UpdateMarketConfiguration_Simple
// *UpdateMarketConfiguration_LogNormal
RiskParameters isUpdateMarketConfiguration_RiskParameters `protobuf_oneof:"risk_parameters"`
}
func (x *UpdateMarketConfiguration) Reset() {
*x = UpdateMarketConfiguration{}
if protoimpl.UnsafeEnabled {
mi := &file_vega_governance_proto_msgTypes[6]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *UpdateMarketConfiguration) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*UpdateMarketConfiguration) ProtoMessage() {}
func (x *UpdateMarketConfiguration) ProtoReflect() protoreflect.Message {
mi := &file_vega_governance_proto_msgTypes[6]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use UpdateMarketConfiguration.ProtoReflect.Descriptor instead.
func (*UpdateMarketConfiguration) Descriptor() ([]byte, []int) {
return file_vega_governance_proto_rawDescGZIP(), []int{6}
}
func (x *UpdateMarketConfiguration) GetInstrument() *UpdateInstrumentConfiguration {
if x != nil {
return x.Instrument
}
return nil
}
func (x *UpdateMarketConfiguration) GetMetadata() []string {
if x != nil {
return x.Metadata
}
return nil
}
func (x *UpdateMarketConfiguration) GetPriceMonitoringParameters() *PriceMonitoringParameters {
if x != nil {
return x.PriceMonitoringParameters
}
return nil
}
func (x *UpdateMarketConfiguration) GetLiquidityMonitoringParameters() *LiquidityMonitoringParameters {
if x != nil {
return x.LiquidityMonitoringParameters
}
return nil
}
func (m *UpdateMarketConfiguration) GetRiskParameters() isUpdateMarketConfiguration_RiskParameters {
if m != nil {
return m.RiskParameters
}
return nil
}
func (x *UpdateMarketConfiguration) GetSimple() *SimpleModelParams {
if x, ok := x.GetRiskParameters().(*UpdateMarketConfiguration_Simple); ok {
return x.Simple
}
return nil
}
func (x *UpdateMarketConfiguration) GetLogNormal() *LogNormalRiskModel {
if x, ok := x.GetRiskParameters().(*UpdateMarketConfiguration_LogNormal); ok {
return x.LogNormal
}
return nil
}
type isUpdateMarketConfiguration_RiskParameters interface {
isUpdateMarketConfiguration_RiskParameters()
}
type UpdateMarketConfiguration_Simple struct {
// Simple risk model parameters, valid only if MODEL_SIMPLE is selected
Simple *SimpleModelParams `protobuf:"bytes,100,opt,name=simple,proto3,oneof"`
}
type UpdateMarketConfiguration_LogNormal struct {
// Log normal risk model parameters, valid only if MODEL_LOG_NORMAL is selected
LogNormal *LogNormalRiskModel `protobuf:"bytes,101,opt,name=log_normal,json=logNormal,proto3,oneof"`
}
func (*UpdateMarketConfiguration_Simple) isUpdateMarketConfiguration_RiskParameters() {}
func (*UpdateMarketConfiguration_LogNormal) isUpdateMarketConfiguration_RiskParameters() {}
// Instrument configuration
type UpdateInstrumentConfiguration struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache