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
/
data.pb.go
169 lines (148 loc) · 6.13 KB
/
data.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
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: vega/oracles/v1/data.proto
package v1
import (
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
// OracleData describes an oracle data that has been broadcast.
type OracleData struct {
// pubKeys is the list of authorized public keys that signed the data for this
// oracle. All the public keys in the oracle data should be contained in these
// public keys.
PubKeys []string `protobuf:"bytes,1,rep,name=pub_keys,json=pubKeys,proto3" json:"pub_keys,omitempty"`
// data holds all the properties of the oracle data
Data []*Property `protobuf:"bytes,2,rep,name=data,proto3" json:"data,omitempty"`
// matched_specs_ids lists all the oracle specs that matched this oracle data.
MatchedSpecIds []string `protobuf:"bytes,3,rep,name=matched_spec_ids,json=matchedSpecIds,proto3" json:"matched_spec_ids,omitempty"`
// broadcast_at is the time at which the data was broadcast for the first
// time.
BroadcastAt int64 `protobuf:"varint,4,opt,name=broadcast_at,json=broadcastAt,proto3" json:"broadcast_at,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *OracleData) Reset() { *m = OracleData{} }
func (m *OracleData) String() string { return proto.CompactTextString(m) }
func (*OracleData) ProtoMessage() {}
func (*OracleData) Descriptor() ([]byte, []int) {
return fileDescriptor_531447dbb4586543, []int{0}
}
func (m *OracleData) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_OracleData.Unmarshal(m, b)
}
func (m *OracleData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_OracleData.Marshal(b, m, deterministic)
}
func (m *OracleData) XXX_Merge(src proto.Message) {
xxx_messageInfo_OracleData.Merge(m, src)
}
func (m *OracleData) XXX_Size() int {
return xxx_messageInfo_OracleData.Size(m)
}
func (m *OracleData) XXX_DiscardUnknown() {
xxx_messageInfo_OracleData.DiscardUnknown(m)
}
var xxx_messageInfo_OracleData proto.InternalMessageInfo
func (m *OracleData) GetPubKeys() []string {
if m != nil {
return m.PubKeys
}
return nil
}
func (m *OracleData) GetData() []*Property {
if m != nil {
return m.Data
}
return nil
}
func (m *OracleData) GetMatchedSpecIds() []string {
if m != nil {
return m.MatchedSpecIds
}
return nil
}
func (m *OracleData) GetBroadcastAt() int64 {
if m != nil {
return m.BroadcastAt
}
return 0
}
// Property describes one property of an oracle spec with a key with its value.
type Property struct {
// name is the name of the property.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// value is the value of the property.
Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *Property) Reset() { *m = Property{} }
func (m *Property) String() string { return proto.CompactTextString(m) }
func (*Property) ProtoMessage() {}
func (*Property) Descriptor() ([]byte, []int) {
return fileDescriptor_531447dbb4586543, []int{1}
}
func (m *Property) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Property.Unmarshal(m, b)
}
func (m *Property) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Property.Marshal(b, m, deterministic)
}
func (m *Property) XXX_Merge(src proto.Message) {
xxx_messageInfo_Property.Merge(m, src)
}
func (m *Property) XXX_Size() int {
return xxx_messageInfo_Property.Size(m)
}
func (m *Property) XXX_DiscardUnknown() {
xxx_messageInfo_Property.DiscardUnknown(m)
}
var xxx_messageInfo_Property proto.InternalMessageInfo
func (m *Property) GetName() string {
if m != nil {
return m.Name
}
return ""
}
func (m *Property) GetValue() string {
if m != nil {
return m.Value
}
return ""
}
func init() {
proto.RegisterType((*OracleData)(nil), "oracles.v1.OracleData")
proto.RegisterType((*Property)(nil), "oracles.v1.Property")
}
func init() { proto.RegisterFile("vega/oracles/v1/data.proto", fileDescriptor_531447dbb4586543) }
var fileDescriptor_531447dbb4586543 = []byte{
// 247 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x5c, 0x90, 0xc1, 0x4a, 0x03, 0x31,
0x10, 0x86, 0x49, 0x77, 0xd5, 0x76, 0x2a, 0x22, 0xa1, 0x87, 0xe8, 0x69, 0xed, 0x29, 0x20, 0x26,
0x54, 0x7d, 0x01, 0xc5, 0x8b, 0x78, 0x50, 0xd6, 0x9b, 0x97, 0x65, 0x36, 0x19, 0xb4, 0xb8, 0x35,
0x21, 0xc9, 0x2e, 0xec, 0xcb, 0xf8, 0xac, 0xd2, 0x58, 0x15, 0xbc, 0xfd, 0xff, 0xc7, 0xf0, 0xc1,
0xfc, 0x70, 0x3a, 0xd0, 0x2b, 0x6a, 0x17, 0xd0, 0x74, 0x14, 0xf5, 0xb0, 0xd2, 0x16, 0x13, 0x2a,
0x1f, 0x5c, 0x72, 0x1c, 0x76, 0x58, 0x0d, 0xab, 0xe5, 0x27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