-
Notifications
You must be signed in to change notification settings - Fork 791
/
enums.pb.go
235 lines (192 loc) · 7.18 KB
/
enums.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
// Code generated by protoc-gen-gogo. DO NOT EDIT.
// source: dex/enums.proto
package types
import (
fmt "fmt"
proto "github.com/gogo/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.GoGoProtoPackageIsVersion3 // please upgrade the proto package
type PositionDirection int32
const (
PositionDirection_LONG PositionDirection = 0
PositionDirection_SHORT PositionDirection = 1
)
var PositionDirection_name = map[int32]string{
0: "LONG",
1: "SHORT",
}
var PositionDirection_value = map[string]int32{
"LONG": 0,
"SHORT": 1,
}
func (x PositionDirection) String() string {
return proto.EnumName(PositionDirection_name, int32(x))
}
func (PositionDirection) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_b8c5bb23c6eb0b88, []int{0}
}
type PositionEffect int32
const (
PositionEffect_OPEN PositionEffect = 0
PositionEffect_CLOSE PositionEffect = 1
)
var PositionEffect_name = map[int32]string{
0: "OPEN",
1: "CLOSE",
}
var PositionEffect_value = map[string]int32{
"OPEN": 0,
"CLOSE": 1,
}
func (x PositionEffect) String() string {
return proto.EnumName(PositionEffect_name, int32(x))
}
func (PositionEffect) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_b8c5bb23c6eb0b88, []int{1}
}
type OrderType int32
const (
OrderType_LIMIT OrderType = 0
OrderType_MARKET OrderType = 1
OrderType_FOKMARKET OrderType = 3
OrderType_FOKMARKETBYVALUE OrderType = 4
OrderType_STOPLOSS OrderType = 5
OrderType_STOPLIMIT OrderType = 6
)
var OrderType_name = map[int32]string{
0: "LIMIT",
1: "MARKET",
3: "FOKMARKET",
4: "FOKMARKETBYVALUE",
5: "STOPLOSS",
6: "STOPLIMIT",
}
var OrderType_value = map[string]int32{
"LIMIT": 0,
"MARKET": 1,
"FOKMARKET": 3,
"FOKMARKETBYVALUE": 4,
"STOPLOSS": 5,
"STOPLIMIT": 6,
}
func (x OrderType) String() string {
return proto.EnumName(OrderType_name, int32(x))
}
func (OrderType) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_b8c5bb23c6eb0b88, []int{2}
}
type Unit int32
const (
Unit_STANDARD Unit = 0
Unit_MILLI Unit = 1
Unit_MICRO Unit = 2
Unit_NANO Unit = 3
)
var Unit_name = map[int32]string{
0: "STANDARD",
1: "MILLI",
2: "MICRO",
3: "NANO",
}
var Unit_value = map[string]int32{
"STANDARD": 0,
"MILLI": 1,
"MICRO": 2,
"NANO": 3,
}
func (x Unit) String() string {
return proto.EnumName(Unit_name, int32(x))
}
func (Unit) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_b8c5bb23c6eb0b88, []int{3}
}
type OrderStatus int32
const (
OrderStatus_PLACED OrderStatus = 0
OrderStatus_FAILED_TO_PLACE OrderStatus = 1
OrderStatus_CANCELLED OrderStatus = 2
OrderStatus_FULFILLED OrderStatus = 3
)
var OrderStatus_name = map[int32]string{
0: "PLACED",
1: "FAILED_TO_PLACE",
2: "CANCELLED",
3: "FULFILLED",
}
var OrderStatus_value = map[string]int32{
"PLACED": 0,
"FAILED_TO_PLACE": 1,
"CANCELLED": 2,
"FULFILLED": 3,
}
func (x OrderStatus) String() string {
return proto.EnumName(OrderStatus_name, int32(x))
}
func (OrderStatus) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_b8c5bb23c6eb0b88, []int{4}
}
type CancellationInitiator int32
const (
CancellationInitiator_USER CancellationInitiator = 0
CancellationInitiator_LIQUIDATED CancellationInitiator = 1
)
var CancellationInitiator_name = map[int32]string{
0: "USER",
1: "LIQUIDATED",
}
var CancellationInitiator_value = map[string]int32{
"USER": 0,
"LIQUIDATED": 1,
}
func (x CancellationInitiator) String() string {
return proto.EnumName(CancellationInitiator_name, int32(x))
}
func (CancellationInitiator) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_b8c5bb23c6eb0b88, []int{5}
}
func init() {
proto.RegisterEnum("seiprotocol.seichain.dex.PositionDirection", PositionDirection_name, PositionDirection_value)
proto.RegisterEnum("seiprotocol.seichain.dex.PositionEffect", PositionEffect_name, PositionEffect_value)
proto.RegisterEnum("seiprotocol.seichain.dex.OrderType", OrderType_name, OrderType_value)
proto.RegisterEnum("seiprotocol.seichain.dex.Unit", Unit_name, Unit_value)
proto.RegisterEnum("seiprotocol.seichain.dex.OrderStatus", OrderStatus_name, OrderStatus_value)
proto.RegisterEnum("seiprotocol.seichain.dex.CancellationInitiator", CancellationInitiator_name, CancellationInitiator_value)
}
func init() { proto.RegisterFile("dex/enums.proto", fileDescriptor_b8c5bb23c6eb0b88) }
var fileDescriptor_b8c5bb23c6eb0b88 = []byte{
// 394 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x3c, 0x91, 0xdf, 0x6e, 0xd3, 0x30,
0x18, 0xc5, 0xe3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