Skip to content

Commit

Permalink
Rename order_replace proto event to order_replacement (#1665)
Browse files Browse the repository at this point in the history
  • Loading branch information
chenyaoy authored Jun 11, 2024
1 parent 1e234eb commit 8f0d3bc
Show file tree
Hide file tree
Showing 3 changed files with 172 additions and 172 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -625,7 +625,7 @@ export interface StatefulOrderEventV1 {
conditionalOrderPlacement?: StatefulOrderEventV1_ConditionalOrderPlacementV1;
conditionalOrderTriggered?: StatefulOrderEventV1_ConditionalOrderTriggeredV1;
longTermOrderPlacement?: StatefulOrderEventV1_LongTermOrderPlacementV1;
orderReplace?: StatefulOrderEventV1_LongTermOrderReplacementV1;
orderReplacement?: StatefulOrderEventV1_LongTermOrderReplacementV1;
}
/**
* StatefulOrderEvent message contains information about a change to a stateful
Expand All @@ -641,7 +641,7 @@ export interface StatefulOrderEventV1SDKType {
conditional_order_placement?: StatefulOrderEventV1_ConditionalOrderPlacementV1SDKType;
conditional_order_triggered?: StatefulOrderEventV1_ConditionalOrderTriggeredV1SDKType;
long_term_order_placement?: StatefulOrderEventV1_LongTermOrderPlacementV1SDKType;
order_replace?: StatefulOrderEventV1_LongTermOrderReplacementV1SDKType;
order_replacement?: StatefulOrderEventV1_LongTermOrderReplacementV1SDKType;
}
/**
* A stateful order placement contains an order.
Expand Down Expand Up @@ -2412,7 +2412,7 @@ function createBaseStatefulOrderEventV1(): StatefulOrderEventV1 {
conditionalOrderPlacement: undefined,
conditionalOrderTriggered: undefined,
longTermOrderPlacement: undefined,
orderReplace: undefined
orderReplacement: undefined
};
}

Expand All @@ -2438,8 +2438,8 @@ export const StatefulOrderEventV1 = {
StatefulOrderEventV1_LongTermOrderPlacementV1.encode(message.longTermOrderPlacement, writer.uint32(58).fork()).ldelim();
}

if (message.orderReplace !== undefined) {
StatefulOrderEventV1_LongTermOrderReplacementV1.encode(message.orderReplace, writer.uint32(66).fork()).ldelim();
if (message.orderReplacement !== undefined) {
StatefulOrderEventV1_LongTermOrderReplacementV1.encode(message.orderReplacement, writer.uint32(66).fork()).ldelim();
}

return writer;
Expand Down Expand Up @@ -2475,7 +2475,7 @@ export const StatefulOrderEventV1 = {
break;

case 8:
message.orderReplace = StatefulOrderEventV1_LongTermOrderReplacementV1.decode(reader, reader.uint32());
message.orderReplacement = StatefulOrderEventV1_LongTermOrderReplacementV1.decode(reader, reader.uint32());
break;

default:
Expand All @@ -2494,7 +2494,7 @@ export const StatefulOrderEventV1 = {
message.conditionalOrderPlacement = object.conditionalOrderPlacement !== undefined && object.conditionalOrderPlacement !== null ? StatefulOrderEventV1_ConditionalOrderPlacementV1.fromPartial(object.conditionalOrderPlacement) : undefined;
message.conditionalOrderTriggered = object.conditionalOrderTriggered !== undefined && object.conditionalOrderTriggered !== null ? StatefulOrderEventV1_ConditionalOrderTriggeredV1.fromPartial(object.conditionalOrderTriggered) : undefined;
message.longTermOrderPlacement = object.longTermOrderPlacement !== undefined && object.longTermOrderPlacement !== null ? StatefulOrderEventV1_LongTermOrderPlacementV1.fromPartial(object.longTermOrderPlacement) : undefined;
message.orderReplace = object.orderReplace !== undefined && object.orderReplace !== null ? StatefulOrderEventV1_LongTermOrderReplacementV1.fromPartial(object.orderReplace) : undefined;
message.orderReplacement = object.orderReplacement !== undefined && object.orderReplacement !== null ? StatefulOrderEventV1_LongTermOrderReplacementV1.fromPartial(object.orderReplacement) : undefined;
return message;
}

Expand Down
2 changes: 1 addition & 1 deletion proto/dydxprotocol/indexer/events/events.proto
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@ message StatefulOrderEventV1 {
ConditionalOrderPlacementV1 conditional_order_placement = 5;
ConditionalOrderTriggeredV1 conditional_order_triggered = 6;
LongTermOrderPlacementV1 long_term_order_placement = 7;
LongTermOrderReplacementV1 order_replace = 8;
LongTermOrderReplacementV1 order_replacement = 8;
}

// A stateful order placement contains an order.
Expand Down
Loading

0 comments on commit 8f0d3bc

Please sign in to comment.