Skip to content

Commit

Permalink
Merge branch 'main' into chenyao/order-replacement-protos
Browse files Browse the repository at this point in the history
  • Loading branch information
chenyaoy committed May 20, 2024
2 parents be51070 + 56501d6 commit 0e454f5
Show file tree
Hide file tree
Showing 3 changed files with 160 additions and 147 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -619,6 +619,7 @@ export interface SubaccountUpdateEventV1SDKType {
*/

export interface StatefulOrderEventV1 {
/** @deprecated */
orderPlace?: StatefulOrderEventV1_StatefulOrderPlacementV1;
orderRemoval?: StatefulOrderEventV1_StatefulOrderRemovalV1;
conditionalOrderPlacement?: StatefulOrderEventV1_ConditionalOrderPlacementV1;
Expand All @@ -634,19 +635,26 @@ export interface StatefulOrderEventV1 {
*/

export interface StatefulOrderEventV1SDKType {
/** @deprecated */
order_place?: StatefulOrderEventV1_StatefulOrderPlacementV1SDKType;
order_removal?: StatefulOrderEventV1_StatefulOrderRemovalV1SDKType;
conditional_order_placement?: StatefulOrderEventV1_ConditionalOrderPlacementV1SDKType;
conditional_order_triggered?: StatefulOrderEventV1_ConditionalOrderTriggeredV1SDKType;
long_term_order_placement?: StatefulOrderEventV1_LongTermOrderPlacementV1SDKType;
order_replace?: StatefulOrderEventV1_StatefulOrderReplacementV1SDKType;
}
/** A stateful order placement contains an order. */
/**
* A stateful order placement contains an order.
* Deprecated in favor of LongTermOrderPlacementV1.
*/

export interface StatefulOrderEventV1_StatefulOrderPlacementV1 {
order?: IndexerOrder;
}
/** A stateful order placement contains an order. */
/**
* A stateful order placement contains an order.
* Deprecated in favor of LongTermOrderPlacementV1.
*/

export interface StatefulOrderEventV1_StatefulOrderPlacementV1SDKType {
order?: IndexerOrderSDKType;
Expand Down
5 changes: 4 additions & 1 deletion proto/dydxprotocol/indexer/events/events.proto
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,9 @@ message StatefulOrderEventV1 {

// The type of event that this StatefulOrderEvent contains.
oneof event {
StatefulOrderPlacementV1 order_place = 1;
StatefulOrderPlacementV1 order_place = 1
[ deprecated =
true ]; // Deprecated in favor of long_term_order_placement
StatefulOrderRemovalV1 order_removal = 4;
ConditionalOrderPlacementV1 conditional_order_placement = 5;
ConditionalOrderTriggeredV1 conditional_order_triggered = 6;
Expand All @@ -251,6 +253,7 @@ message StatefulOrderEventV1 {
}

// A stateful order placement contains an order.
// Deprecated in favor of LongTermOrderPlacementV1.
message StatefulOrderPlacementV1 {
dydxprotocol.indexer.protocol.v1.IndexerOrder order = 1;
}
Expand Down
Loading

0 comments on commit 0e454f5

Please sign in to comment.