-
Notifications
You must be signed in to change notification settings - Fork 83
/
common.pb.go
141 lines (128 loc) · 7.65 KB
/
common.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
// Code generated by protoc-gen-gogo. DO NOT EDIT.
// source: dydxprotocol/indexer/common/common.proto
package common
import (
fmt "fmt"
proto "github.com/cosmos/gogoproto/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
// OrderRemovalReason is an enum of all the reasons an order was removed.
type OrderRemovalReason int32
const (
// Default value, this is invalid and unused.
OrderRemovalReason_ORDER_REMOVAL_REASON_UNSPECIFIED OrderRemovalReason = 0
// The order was removed due to being expired.
OrderRemovalReason_ORDER_REMOVAL_REASON_EXPIRED OrderRemovalReason = 1
// The order was removed due to being canceled by a user.
OrderRemovalReason_ORDER_REMOVAL_REASON_USER_CANCELED OrderRemovalReason = 2
// The order was removed due to being undercollateralized.
OrderRemovalReason_ORDER_REMOVAL_REASON_UNDERCOLLATERALIZED OrderRemovalReason = 3
// The order caused an internal error during order placement and was
// removed.
OrderRemovalReason_ORDER_REMOVAL_REASON_INTERNAL_ERROR OrderRemovalReason = 4
// The order would have matched against another order placed by the same
// subaccount and was removed.
OrderRemovalReason_ORDER_REMOVAL_REASON_SELF_TRADE_ERROR OrderRemovalReason = 5
// The order would have matched against maker orders on the orderbook
// despite being a post-only order and was removed.
OrderRemovalReason_ORDER_REMOVAL_REASON_POST_ONLY_WOULD_CROSS_MAKER_ORDER OrderRemovalReason = 6
// The order was an ICO order and would have been placed on the orderbook as
// resting liquidity and was removed.
OrderRemovalReason_ORDER_REMOVAL_REASON_IMMEDIATE_OR_CANCEL_WOULD_REST_ON_BOOK OrderRemovalReason = 7
// The order was a fill-or-kill order that could not be fully filled and was
// removed.
OrderRemovalReason_ORDER_REMOVAL_REASON_FOK_ORDER_COULD_NOT_BE_FULLY_FULLED OrderRemovalReason = 8
// The order was a reduce-only order that was removed due to either:
// - being a taker order and fully-filling the order would flip the side of
// the subaccount's position, in this case the remaining size of the
// order is removed
// - being a maker order resting on the book and being removed when either
// the subaccount's position is closed or flipped sides
OrderRemovalReason_ORDER_REMOVAL_REASON_REDUCE_ONLY_RESIZE OrderRemovalReason = 9
// The order should be expired, according to the Indexer's cached data, but
// the Indexer has yet to receive a message to remove the order. In order to
// keep the data cached by the Indexer up-to-date and accurate, clear out
// the data if it's expired by sending an order removal with this reason.
// Protocol should never send this reason to Indexer.
OrderRemovalReason_ORDER_REMOVAL_REASON_INDEXER_EXPIRED OrderRemovalReason = 10
// The order has been replaced.
OrderRemovalReason_ORDER_REMOVAL_REASON_REPLACED OrderRemovalReason = 11
)
var OrderRemovalReason_name = map[int32]string{
0: "ORDER_REMOVAL_REASON_UNSPECIFIED",
1: "ORDER_REMOVAL_REASON_EXPIRED",
2: "ORDER_REMOVAL_REASON_USER_CANCELED",
3: "ORDER_REMOVAL_REASON_UNDERCOLLATERALIZED",
4: "ORDER_REMOVAL_REASON_INTERNAL_ERROR",
5: "ORDER_REMOVAL_REASON_SELF_TRADE_ERROR",
6: "ORDER_REMOVAL_REASON_POST_ONLY_WOULD_CROSS_MAKER_ORDER",
7: "ORDER_REMOVAL_REASON_IMMEDIATE_OR_CANCEL_WOULD_REST_ON_BOOK",
8: "ORDER_REMOVAL_REASON_FOK_ORDER_COULD_NOT_BE_FULLY_FULLED",
9: "ORDER_REMOVAL_REASON_REDUCE_ONLY_RESIZE",
10: "ORDER_REMOVAL_REASON_INDEXER_EXPIRED",
11: "ORDER_REMOVAL_REASON_REPLACED",
}
var OrderRemovalReason_value = map[string]int32{
"ORDER_REMOVAL_REASON_UNSPECIFIED": 0,
"ORDER_REMOVAL_REASON_EXPIRED": 1,
"ORDER_REMOVAL_REASON_USER_CANCELED": 2,
"ORDER_REMOVAL_REASON_UNDERCOLLATERALIZED": 3,
"ORDER_REMOVAL_REASON_INTERNAL_ERROR": 4,
"ORDER_REMOVAL_REASON_SELF_TRADE_ERROR": 5,
"ORDER_REMOVAL_REASON_POST_ONLY_WOULD_CROSS_MAKER_ORDER": 6,
"ORDER_REMOVAL_REASON_IMMEDIATE_OR_CANCEL_WOULD_REST_ON_BOOK": 7,
"ORDER_REMOVAL_REASON_FOK_ORDER_COULD_NOT_BE_FULLY_FULLED": 8,
"ORDER_REMOVAL_REASON_REDUCE_ONLY_RESIZE": 9,
"ORDER_REMOVAL_REASON_INDEXER_EXPIRED": 10,
"ORDER_REMOVAL_REASON_REPLACED": 11,
}
func (x OrderRemovalReason) String() string {
return proto.EnumName(OrderRemovalReason_name, int32(x))
}
func (OrderRemovalReason) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_cc7f22a39c006b65, []int{0}
}
func init() {
proto.RegisterEnum("dydxprotocol.indexer.common.OrderRemovalReason", OrderRemovalReason_name, OrderRemovalReason_value)
}
func init() {
proto.RegisterFile("dydxprotocol/indexer/common/common.proto", fileDescriptor_cc7f22a39c006b65)
}
var fileDescriptor_cc7f22a39c006b65 = []byte{
// 410 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x74, 0x92, 0xc1, 0x6e, 0xd4, 0x30,
0x10, 0x86, 0x13, 0x28, 0x05, 0xcc, 0xc5, 0xf2, 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