From dad6d4e633add8813723475a111ccb6c00e2fbac Mon Sep 17 00:00:00 2001 From: Jonathan Fung <121899091+jonfung-dydx@users.noreply.github.com> Date: Mon, 9 Sep 2024 16:43:44 -0400 Subject: [PATCH] Full Node Streaming - reorder protobuf single length fields before variable length fields (#2227) --- .../src/codegen/dydxprotocol/clob/query.ts | 106 ++-- proto/dydxprotocol/clob/query.proto | 32 +- protocol/x/clob/types/query.pb.go | 458 +++++++++--------- 3 files changed, 297 insertions(+), 299 deletions(-) diff --git a/indexer/packages/v4-protos/src/codegen/dydxprotocol/clob/query.ts b/indexer/packages/v4-protos/src/codegen/dydxprotocol/clob/query.ts index 27872be567..41ca0c872a 100644 --- a/indexer/packages/v4-protos/src/codegen/dydxprotocol/clob/query.ts +++ b/indexer/packages/v4-protos/src/codegen/dydxprotocol/clob/query.ts @@ -293,16 +293,15 @@ export interface StreamOrderbookUpdatesResponseSDKType { */ export interface StreamUpdate { - orderbookUpdate?: StreamOrderbookUpdate; - orderFill?: StreamOrderbookFill; - takerOrder?: StreamTakerOrder; - subaccountUpdate?: StreamSubaccountUpdate; /** Block height of the update. */ - blockHeight: number; /** Exec mode of the update. */ execMode: number; + orderbookUpdate?: StreamOrderbookUpdate; + orderFill?: StreamOrderbookFill; + takerOrder?: StreamTakerOrder; + subaccountUpdate?: StreamSubaccountUpdate; } /** * StreamUpdate is an update that will be pushed through the @@ -310,16 +309,15 @@ export interface StreamUpdate { */ export interface StreamUpdateSDKType { - orderbook_update?: StreamOrderbookUpdateSDKType; - order_fill?: StreamOrderbookFillSDKType; - taker_order?: StreamTakerOrderSDKType; - subaccount_update?: StreamSubaccountUpdateSDKType; /** Block height of the update. */ - block_height: number; /** Exec mode of the update. */ exec_mode: number; + orderbook_update?: StreamOrderbookUpdateSDKType; + order_fill?: StreamOrderbookFillSDKType; + taker_order?: StreamTakerOrderSDKType; + subaccount_update?: StreamSubaccountUpdateSDKType; } /** * StreamOrderbookUpdate provides information on an orderbook update. Used in @@ -327,19 +325,19 @@ export interface StreamUpdateSDKType { */ export interface StreamOrderbookUpdate { - /** - * Orderbook updates for the clob pair. Can contain order place, removals, - * or updates. - */ - updates: OffChainUpdateV1[]; /** * Snapshot indicates if the response is from a snapshot of the orderbook. * All updates should be ignored until snapshot is recieved. * If the snapshot is true, then all previous entries should be * discarded and the orderbook should be resynced. */ - snapshot: boolean; + /** + * Orderbook updates for the clob pair. Can contain order place, removals, + * or updates. + */ + + updates: OffChainUpdateV1[]; } /** * StreamOrderbookUpdate provides information on an orderbook update. Used in @@ -347,19 +345,19 @@ export interface StreamOrderbookUpdate { */ export interface StreamOrderbookUpdateSDKType { - /** - * Orderbook updates for the clob pair. Can contain order place, removals, - * or updates. - */ - updates: OffChainUpdateV1SDKType[]; /** * Snapshot indicates if the response is from a snapshot of the orderbook. * All updates should be ignored until snapshot is recieved. * If the snapshot is true, then all previous entries should be * discarded and the orderbook should be resynced. */ - snapshot: boolean; + /** + * Orderbook updates for the clob pair. Can contain order place, removals, + * or updates. + */ + + updates: OffChainUpdateV1SDKType[]; } /** * StreamOrderbookFill provides information on an orderbook fill. Used in @@ -1305,39 +1303,39 @@ export const StreamOrderbookUpdatesResponse = { function createBaseStreamUpdate(): StreamUpdate { return { + blockHeight: 0, + execMode: 0, orderbookUpdate: undefined, orderFill: undefined, takerOrder: undefined, - subaccountUpdate: undefined, - blockHeight: 0, - execMode: 0 + subaccountUpdate: undefined }; } export const StreamUpdate = { encode(message: StreamUpdate, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { - if (message.orderbookUpdate !== undefined) { - StreamOrderbookUpdate.encode(message.orderbookUpdate, writer.uint32(10).fork()).ldelim(); + if (message.blockHeight !== 0) { + writer.uint32(8).uint32(message.blockHeight); } - if (message.orderFill !== undefined) { - StreamOrderbookFill.encode(message.orderFill, writer.uint32(18).fork()).ldelim(); + if (message.execMode !== 0) { + writer.uint32(16).uint32(message.execMode); } - if (message.takerOrder !== undefined) { - StreamTakerOrder.encode(message.takerOrder, writer.uint32(26).fork()).ldelim(); + if (message.orderbookUpdate !== undefined) { + StreamOrderbookUpdate.encode(message.orderbookUpdate, writer.uint32(26).fork()).ldelim(); } - if (message.subaccountUpdate !== undefined) { - StreamSubaccountUpdate.encode(message.subaccountUpdate, writer.uint32(34).fork()).ldelim(); + if (message.orderFill !== undefined) { + StreamOrderbookFill.encode(message.orderFill, writer.uint32(34).fork()).ldelim(); } - if (message.blockHeight !== 0) { - writer.uint32(40).uint32(message.blockHeight); + if (message.takerOrder !== undefined) { + StreamTakerOrder.encode(message.takerOrder, writer.uint32(42).fork()).ldelim(); } - if (message.execMode !== 0) { - writer.uint32(48).uint32(message.execMode); + if (message.subaccountUpdate !== undefined) { + StreamSubaccountUpdate.encode(message.subaccountUpdate, writer.uint32(50).fork()).ldelim(); } return writer; @@ -1353,27 +1351,27 @@ export const StreamUpdate = { switch (tag >>> 3) { case 1: - message.orderbookUpdate = StreamOrderbookUpdate.decode(reader, reader.uint32()); + message.blockHeight = reader.uint32(); break; case 2: - message.orderFill = StreamOrderbookFill.decode(reader, reader.uint32()); + message.execMode = reader.uint32(); break; case 3: - message.takerOrder = StreamTakerOrder.decode(reader, reader.uint32()); + message.orderbookUpdate = StreamOrderbookUpdate.decode(reader, reader.uint32()); break; case 4: - message.subaccountUpdate = StreamSubaccountUpdate.decode(reader, reader.uint32()); + message.orderFill = StreamOrderbookFill.decode(reader, reader.uint32()); break; case 5: - message.blockHeight = reader.uint32(); + message.takerOrder = StreamTakerOrder.decode(reader, reader.uint32()); break; case 6: - message.execMode = reader.uint32(); + message.subaccountUpdate = StreamSubaccountUpdate.decode(reader, reader.uint32()); break; default: @@ -1387,12 +1385,12 @@ export const StreamUpdate = { fromPartial(object: DeepPartial): StreamUpdate { const message = createBaseStreamUpdate(); + message.blockHeight = object.blockHeight ?? 0; + message.execMode = object.execMode ?? 0; message.orderbookUpdate = object.orderbookUpdate !== undefined && object.orderbookUpdate !== null ? StreamOrderbookUpdate.fromPartial(object.orderbookUpdate) : undefined; message.orderFill = object.orderFill !== undefined && object.orderFill !== null ? StreamOrderbookFill.fromPartial(object.orderFill) : undefined; message.takerOrder = object.takerOrder !== undefined && object.takerOrder !== null ? StreamTakerOrder.fromPartial(object.takerOrder) : undefined; message.subaccountUpdate = object.subaccountUpdate !== undefined && object.subaccountUpdate !== null ? StreamSubaccountUpdate.fromPartial(object.subaccountUpdate) : undefined; - message.blockHeight = object.blockHeight ?? 0; - message.execMode = object.execMode ?? 0; return message; } @@ -1400,19 +1398,19 @@ export const StreamUpdate = { function createBaseStreamOrderbookUpdate(): StreamOrderbookUpdate { return { - updates: [], - snapshot: false + snapshot: false, + updates: [] }; } export const StreamOrderbookUpdate = { encode(message: StreamOrderbookUpdate, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { - for (const v of message.updates) { - OffChainUpdateV1.encode(v!, writer.uint32(10).fork()).ldelim(); + if (message.snapshot === true) { + writer.uint32(8).bool(message.snapshot); } - if (message.snapshot === true) { - writer.uint32(16).bool(message.snapshot); + for (const v of message.updates) { + OffChainUpdateV1.encode(v!, writer.uint32(18).fork()).ldelim(); } return writer; @@ -1428,11 +1426,11 @@ export const StreamOrderbookUpdate = { switch (tag >>> 3) { case 1: - message.updates.push(OffChainUpdateV1.decode(reader, reader.uint32())); + message.snapshot = reader.bool(); break; case 2: - message.snapshot = reader.bool(); + message.updates.push(OffChainUpdateV1.decode(reader, reader.uint32())); break; default: @@ -1446,8 +1444,8 @@ export const StreamOrderbookUpdate = { fromPartial(object: DeepPartial): StreamOrderbookUpdate { const message = createBaseStreamOrderbookUpdate(); - message.updates = object.updates?.map(e => OffChainUpdateV1.fromPartial(e)) || []; message.snapshot = object.snapshot ?? false; + message.updates = object.updates?.map(e => OffChainUpdateV1.fromPartial(e)) || []; return message; } diff --git a/proto/dydxprotocol/clob/query.proto b/proto/dydxprotocol/clob/query.proto index b0342bc3c6..9d47ea4641 100644 --- a/proto/dydxprotocol/clob/query.proto +++ b/proto/dydxprotocol/clob/query.proto @@ -182,35 +182,35 @@ message StreamOrderbookUpdatesResponse { // StreamUpdate is an update that will be pushed through the // GRPC stream. message StreamUpdate { + // Block height of the update. + uint32 block_height = 1; + + // Exec mode of the update. + uint32 exec_mode = 2; + // Contains one of an StreamOrderbookUpdate, // StreamOrderbookFill, StreamTakerOrderStatus. oneof update_message { - StreamOrderbookUpdate orderbook_update = 1; - StreamOrderbookFill order_fill = 2; - StreamTakerOrder taker_order = 3; - dydxprotocol.subaccounts.StreamSubaccountUpdate subaccount_update = 4; + StreamOrderbookUpdate orderbook_update = 3; + StreamOrderbookFill order_fill = 4; + StreamTakerOrder taker_order = 5; + dydxprotocol.subaccounts.StreamSubaccountUpdate subaccount_update = 6; } - - // Block height of the update. - uint32 block_height = 5; - - // Exec mode of the update. - uint32 exec_mode = 6; } // StreamOrderbookUpdate provides information on an orderbook update. Used in // the full node GRPC stream. message StreamOrderbookUpdate { - // Orderbook updates for the clob pair. Can contain order place, removals, - // or updates. - repeated dydxprotocol.indexer.off_chain_updates.OffChainUpdateV1 updates = 1 - [ (gogoproto.nullable) = false ]; - // Snapshot indicates if the response is from a snapshot of the orderbook. // All updates should be ignored until snapshot is recieved. // If the snapshot is true, then all previous entries should be // discarded and the orderbook should be resynced. - bool snapshot = 2; + bool snapshot = 1; + + // Orderbook updates for the clob pair. Can contain order place, removals, + // or updates. + repeated dydxprotocol.indexer.off_chain_updates.OffChainUpdateV1 updates = 2 + [ (gogoproto.nullable) = false ]; } // StreamOrderbookFill provides information on an orderbook fill. Used in diff --git a/protocol/x/clob/types/query.pb.go b/protocol/x/clob/types/query.pb.go index d0d00fd50a..4f4d01af14 100644 --- a/protocol/x/clob/types/query.pb.go +++ b/protocol/x/clob/types/query.pb.go @@ -872,6 +872,10 @@ func (m *StreamOrderbookUpdatesResponse) GetUpdates() []StreamUpdate { // StreamUpdate is an update that will be pushed through the // GRPC stream. type StreamUpdate struct { + // Block height of the update. + BlockHeight uint32 `protobuf:"varint,1,opt,name=block_height,json=blockHeight,proto3" json:"block_height,omitempty"` + // Exec mode of the update. + ExecMode uint32 `protobuf:"varint,2,opt,name=exec_mode,json=execMode,proto3" json:"exec_mode,omitempty"` // Contains one of an StreamOrderbookUpdate, // StreamOrderbookFill, StreamTakerOrderStatus. // @@ -882,10 +886,6 @@ type StreamUpdate struct { // *StreamUpdate_TakerOrder // *StreamUpdate_SubaccountUpdate UpdateMessage isStreamUpdate_UpdateMessage `protobuf_oneof:"update_message"` - // Block height of the update. - BlockHeight uint32 `protobuf:"varint,5,opt,name=block_height,json=blockHeight,proto3" json:"block_height,omitempty"` - // Exec mode of the update. - ExecMode uint32 `protobuf:"varint,6,opt,name=exec_mode,json=execMode,proto3" json:"exec_mode,omitempty"` } func (m *StreamUpdate) Reset() { *m = StreamUpdate{} } @@ -928,16 +928,16 @@ type isStreamUpdate_UpdateMessage interface { } type StreamUpdate_OrderbookUpdate struct { - OrderbookUpdate *StreamOrderbookUpdate `protobuf:"bytes,1,opt,name=orderbook_update,json=orderbookUpdate,proto3,oneof" json:"orderbook_update,omitempty"` + OrderbookUpdate *StreamOrderbookUpdate `protobuf:"bytes,3,opt,name=orderbook_update,json=orderbookUpdate,proto3,oneof" json:"orderbook_update,omitempty"` } type StreamUpdate_OrderFill struct { - OrderFill *StreamOrderbookFill `protobuf:"bytes,2,opt,name=order_fill,json=orderFill,proto3,oneof" json:"order_fill,omitempty"` + OrderFill *StreamOrderbookFill `protobuf:"bytes,4,opt,name=order_fill,json=orderFill,proto3,oneof" json:"order_fill,omitempty"` } type StreamUpdate_TakerOrder struct { - TakerOrder *StreamTakerOrder `protobuf:"bytes,3,opt,name=taker_order,json=takerOrder,proto3,oneof" json:"taker_order,omitempty"` + TakerOrder *StreamTakerOrder `protobuf:"bytes,5,opt,name=taker_order,json=takerOrder,proto3,oneof" json:"taker_order,omitempty"` } type StreamUpdate_SubaccountUpdate struct { - SubaccountUpdate *types.StreamSubaccountUpdate `protobuf:"bytes,4,opt,name=subaccount_update,json=subaccountUpdate,proto3,oneof" json:"subaccount_update,omitempty"` + SubaccountUpdate *types.StreamSubaccountUpdate `protobuf:"bytes,6,opt,name=subaccount_update,json=subaccountUpdate,proto3,oneof" json:"subaccount_update,omitempty"` } func (*StreamUpdate_OrderbookUpdate) isStreamUpdate_UpdateMessage() {} @@ -952,6 +952,20 @@ func (m *StreamUpdate) GetUpdateMessage() isStreamUpdate_UpdateMessage { return nil } +func (m *StreamUpdate) GetBlockHeight() uint32 { + if m != nil { + return m.BlockHeight + } + return 0 +} + +func (m *StreamUpdate) GetExecMode() uint32 { + if m != nil { + return m.ExecMode + } + return 0 +} + func (m *StreamUpdate) GetOrderbookUpdate() *StreamOrderbookUpdate { if x, ok := m.GetUpdateMessage().(*StreamUpdate_OrderbookUpdate); ok { return x.OrderbookUpdate @@ -980,20 +994,6 @@ func (m *StreamUpdate) GetSubaccountUpdate() *types.StreamSubaccountUpdate { return nil } -func (m *StreamUpdate) GetBlockHeight() uint32 { - if m != nil { - return m.BlockHeight - } - return 0 -} - -func (m *StreamUpdate) GetExecMode() uint32 { - if m != nil { - return m.ExecMode - } - return 0 -} - // XXX_OneofWrappers is for the internal use of the proto package. func (*StreamUpdate) XXX_OneofWrappers() []interface{} { return []interface{}{ @@ -1007,14 +1007,14 @@ func (*StreamUpdate) XXX_OneofWrappers() []interface{} { // StreamOrderbookUpdate provides information on an orderbook update. Used in // the full node GRPC stream. type StreamOrderbookUpdate struct { - // Orderbook updates for the clob pair. Can contain order place, removals, - // or updates. - Updates []types1.OffChainUpdateV1 `protobuf:"bytes,1,rep,name=updates,proto3" json:"updates"` // Snapshot indicates if the response is from a snapshot of the orderbook. // All updates should be ignored until snapshot is recieved. // If the snapshot is true, then all previous entries should be // discarded and the orderbook should be resynced. - Snapshot bool `protobuf:"varint,2,opt,name=snapshot,proto3" json:"snapshot,omitempty"` + Snapshot bool `protobuf:"varint,1,opt,name=snapshot,proto3" json:"snapshot,omitempty"` + // Orderbook updates for the clob pair. Can contain order place, removals, + // or updates. + Updates []types1.OffChainUpdateV1 `protobuf:"bytes,2,rep,name=updates,proto3" json:"updates"` } func (m *StreamOrderbookUpdate) Reset() { *m = StreamOrderbookUpdate{} } @@ -1050,18 +1050,18 @@ func (m *StreamOrderbookUpdate) XXX_DiscardUnknown() { var xxx_messageInfo_StreamOrderbookUpdate proto.InternalMessageInfo -func (m *StreamOrderbookUpdate) GetUpdates() []types1.OffChainUpdateV1 { +func (m *StreamOrderbookUpdate) GetSnapshot() bool { if m != nil { - return m.Updates + return m.Snapshot } - return nil + return false } -func (m *StreamOrderbookUpdate) GetSnapshot() bool { +func (m *StreamOrderbookUpdate) GetUpdates() []types1.OffChainUpdateV1 { if m != nil { - return m.Snapshot + return m.Updates } - return false + return nil } // StreamOrderbookFill provides information on an orderbook fill. Used in @@ -1333,111 +1333,111 @@ func init() { func init() { proto.RegisterFile("dydxprotocol/clob/query.proto", fileDescriptor_3365c195b25c5bc0) } var fileDescriptor_3365c195b25c5bc0 = []byte{ - // 1656 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x58, 0x41, 0x4f, 0xdc, 0x46, - 0x14, 0x5e, 0xb3, 0x84, 0xc0, 0xdb, 0x40, 0x60, 0x08, 0xc9, 0x66, 0x21, 0x0b, 0x71, 0x1a, 0xb2, - 0x90, 0x66, 0x0d, 0x24, 0x8a, 0xd2, 0x50, 0xa5, 0x02, 0x5a, 0x42, 0xa4, 0xd0, 0x10, 0x43, 0x12, - 0xd4, 0x46, 0xb2, 0xbc, 0xf6, 0xb0, 0x58, 0xd8, 0x9e, 0xc5, 0x1e, 0xaf, 0x40, 0x55, 0x55, 0xa9, - 0x87, 0x5c, 0xda, 0x4a, 0x91, 0x7a, 0xe8, 0xa1, 0x52, 0x2f, 0x3d, 0xf5, 0x50, 0xa9, 0x97, 0x1e, - 0xab, 0xb6, 0xb7, 0x1c, 0x23, 0xf5, 0xd2, 0x43, 0x55, 0x55, 0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 0x12, 0x23, - 0xdd, 0x07, 0xac, 0x45, 0x6d, 0x58, 0xd8, 0xbb, 0x1f, 0x36, 0xa8, 0x25, 0xd6, 0x32, 0x02, 0x2f, - 0x5e, 0x57, 0xf9, 0x5b, 0x09, 0xa6, 0x8e, 0xa0, 0x2c, 0xb2, 0xe4, 0x42, 0x3e, 0xad, 0xef, 0x09, - 0x1e, 0x28, 0x09, 0x69, 0xeb, 0xe4, 0x5a, 0xa4, 0x67, 0x04, 0x27, 0xe9, 0xc8, 0x53, 0x70, 0x85, - 0x81, 0x5b, 0x0c, 0x49, 0xa3, 0xea, 0x14, 0xa7, 0x07, 0xf2, 0x8d, 0x24, 0xa2, 0xee, 0xa8, 0x2b, - 0xe2, 0xd8, 0x81, 0x73, 0x29, 0x77, 0x82, 0x08, 0xa3, 0x9c, 0x10, 0x46, 0x07, 0xc7, 0x22, 0x0a, - 0x4e, 0xee, 0x16, 0x15, 0x79, 0x13, 0xce, 0x33, 0x60, 0xeb, 0x54, 0xa7, 0x78, 0x2b, 0xb0, 0x1f, - 0x84, 0xf7, 0x40, 0x74, 0xae, 0xe6, 0xa1, 0x97, 0xdd, 0x0b, 0x51, 0xcd, 0x73, 0x73, 0x85, 0x84, - 0xad, 0x99, 0xc9, 0x3d, 0x33, 0xe2, 0x12, 0xe1, 0xaf, 0xf2, 0xcf, 0x12, 0x14, 0x92, 0x5c, 0x8b, - 0x28, 0x37, 0xe1, 0x34, 0xf7, 0x5d, 0xb3, 0x75, 0x03, 0x3b, 0xd8, 0xa5, 0x62, 0x8b, 0xa9, 0x84, - 0x2d, 0xee, 0x13, 0xb7, 0xba, 0x81, 0x3d, 0x87, 0xb9, 0x58, 0x8b, 0x0c, 0xc4, 0x8e, 0x03, 0xa4, - 0x49, 0x8a, 0xc6, 0x21, 0xb7, 0x65, 0xd9, 0xb6, 0xa6, 0x3b, 0x61, 0x4f, 0x67, 0x9c, 0xec, 0x56, - 0x21, 0x14, 0x2d, 0x30, 0x09, 0x1a, 0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d1, 0xdb, 0x69, 0x7b, - 0x27, 0xcd, 0xec, 0x85, 0x6b, 0x47, 0xd4, 0x16, 0xe8, 0x32, 0xe8, 0xb3, 0xa8, 0xa3, 0xb6, 0x8e, - 0x6a, 0x68, 0xe6, 0xa8, 0x63, 0x53, 0x34, 0x67, 0x16, 0x66, 0xdf, 0xc0, 0x82, 0x03, 0x98, 0x91, - 0x16, 0xd7, 0x5e, 0xbc, 0x2a, 0x4a, 0x2f, 0x5f, 0x15, 0xa5, 0x7f, 0x5e, 0x15, 0xa5, 0xe7, 0xaf, - 0x8b, 0x99, 0x97, 0xaf, 0x8b, 0x99, 0x3f, 0x5f, 0x17, 0x33, 0x1f, 0xdd, 0xac, 0x5a, 0x74, 0x3b, - 0xa8, 0x94, 0x0d, 0xe2, 0x34, 0x27, 0xaf, 0x7e, 0xe3, 0x1a, 0x1b, 0x06, 0x94, 0x86, 0x64, 0x8f, - 0x27, 0x94, 0xee, 0xd7, 0xb0, 0x5f, 0xe9, 0x61, 0xe2, 0xeb, 0xff, 0x07, 0x00, 0x00, 0xff, 0xff, - 0x4d, 0x56, 0xef, 0xe3, 0x00, 0x14, 0x00, 0x00, + // 1661 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x58, 0xc1, 0x4f, 0xdc, 0x46, + 0x17, 0x5f, 0xb3, 0x84, 0xc0, 0xdb, 0x40, 0x60, 0x08, 0xc9, 0x66, 0x21, 0x0b, 0x71, 0xbe, 0x90, + 0x85, 0x7c, 0x59, 0x03, 0x89, 0xa2, 0x7c, 0xe1, 0x53, 0x3e, 0x01, 0xdf, 0x47, 0x88, 0x14, 0xbe, + 0x10, 0x43, 0x12, 0xd4, 0x46, 0xb2, 0xbc, 0xf6, 0xb0, 0x58, 0xd8, 0x9e, 0xc5, 0x1e, 0xaf, 0x40, + 0x55, 0x55, 0xa9, 0x87, 0x5c, 0xda, 0x4a, 0x91, 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d0, 0x9d, 0x34, 0x04, 0x47, 0xcd, 0x7a, 0x85, 0x7f, 0x9d, 0xc0, 0x52, + 0x20, 0x2f, 0x33, 0xe4, 0x25, 0x34, 0xad, 0x1c, 0xeb, 0x57, 0x13, 0xe4, 0xc2, 0x60, 0xcb, 0xc4, + 0x8c, 0xfe, 0x99, 0xb6, 0x77, 0xd2, 0xcc, 0x5e, 0xb8, 0x71, 0x4c, 0x6d, 0x81, 0x2e, 0x83, 0x3e, + 0x8a, 0x3a, 0x6a, 0xfb, 0xa8, 0x86, 0xe6, 0x8e, 0x3b, 0xf6, 0x44, 0x73, 0x66, 0x61, 0xfe, 0x1d, + 0x2c, 0x38, 0x80, 0x39, 0x69, 0x79, 0xe3, 0xd5, 0x9b, 0xa2, 0xf4, 0xfa, 0x4d, 0x51, 0xfa, 0xe3, + 0x4d, 0x51, 0x7a, 0xf9, 0xb6, 0x98, 0x79, 0xfd, 0xb6, 0x98, 0xf9, 0xf5, 0x6d, 0x31, 0xf3, 0xde, + 0xed, 0xaa, 0x45, 0x77, 0x83, 0x4a, 0xd9, 0x20, 0x4e, 0x6b, 0xf2, 0xea, 0xb7, 0x6e, 0xb0, 0x0b, + 0x5f, 0x69, 0x48, 0x0e, 0x78, 0x42, 0xe9, 0x61, 0x0d, 0xfb, 0x95, 0x3e, 0x26, 0xbe, 0xf9, 0x77, + 0x00, 0x00, 0x00, 0xff, 0xff, 0xa1, 0x46, 0x6b, 0x53, 0x00, 0x14, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. @@ -2447,16 +2447,6 @@ func (m *StreamUpdate) MarshalToSizedBuffer(dAtA []byte) (int, error) { _ = i var l int _ = l - if m.ExecMode != 0 { - i = encodeVarintQuery(dAtA, i, uint64(m.ExecMode)) - i-- - dAtA[i] = 0x30 - } - if m.BlockHeight != 0 { - i = encodeVarintQuery(dAtA, i, uint64(m.BlockHeight)) - i-- - dAtA[i] = 0x28 - } if m.UpdateMessage != nil { { size := m.UpdateMessage.Size() @@ -2466,6 +2456,16 @@ func (m *StreamUpdate) MarshalToSizedBuffer(dAtA []byte) (int, error) { } } } + if m.ExecMode != 0 { + i = encodeVarintQuery(dAtA, i, uint64(m.ExecMode)) + i-- + dAtA[i] = 0x10 + } + if m.BlockHeight != 0 { + i = encodeVarintQuery(dAtA, i, uint64(m.BlockHeight)) + i-- + dAtA[i] = 0x8 + } return len(dAtA) - i, nil } @@ -2486,7 +2486,7 @@ func (m *StreamUpdate_OrderbookUpdate) MarshalToSizedBuffer(dAtA []byte) (int, e i = encodeVarintQuery(dAtA, i, uint64(size)) } i-- - dAtA[i] = 0xa + dAtA[i] = 0x1a } return len(dAtA) - i, nil } @@ -2507,7 +2507,7 @@ func (m *StreamUpdate_OrderFill) MarshalToSizedBuffer(dAtA []byte) (int, error) i = encodeVarintQuery(dAtA, i, uint64(size)) } i-- - dAtA[i] = 0x12 + dAtA[i] = 0x22 } return len(dAtA) - i, nil } @@ -2528,7 +2528,7 @@ func (m *StreamUpdate_TakerOrder) MarshalToSizedBuffer(dAtA []byte) (int, error) i = encodeVarintQuery(dAtA, i, uint64(size)) } i-- - dAtA[i] = 0x1a + dAtA[i] = 0x2a } return len(dAtA) - i, nil } @@ -2549,7 +2549,7 @@ func (m *StreamUpdate_SubaccountUpdate) MarshalToSizedBuffer(dAtA []byte) (int, i = encodeVarintQuery(dAtA, i, uint64(size)) } i-- - dAtA[i] = 0x22 + dAtA[i] = 0x32 } return len(dAtA) - i, nil } @@ -2573,16 +2573,6 @@ func (m *StreamOrderbookUpdate) MarshalToSizedBuffer(dAtA []byte) (int, error) { _ = i var l int _ = l - if m.Snapshot { - i-- - if m.Snapshot { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x10 - } if len(m.Updates) > 0 { for iNdEx := len(m.Updates) - 1; iNdEx >= 0; iNdEx-- { { @@ -2594,9 +2584,19 @@ func (m *StreamOrderbookUpdate) MarshalToSizedBuffer(dAtA []byte) (int, error) { i = encodeVarintQuery(dAtA, i, uint64(size)) } i-- - dAtA[i] = 0xa + dAtA[i] = 0x12 } } + if m.Snapshot { + i-- + if m.Snapshot { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x8 + } return len(dAtA) - i, nil } @@ -3038,15 +3038,15 @@ func (m *StreamUpdate) Size() (n int) { } var l int _ = l - if m.UpdateMessage != nil { - n += m.UpdateMessage.Size() - } if m.BlockHeight != 0 { n += 1 + sovQuery(uint64(m.BlockHeight)) } if m.ExecMode != 0 { n += 1 + sovQuery(uint64(m.ExecMode)) } + if m.UpdateMessage != nil { + n += m.UpdateMessage.Size() + } return n } @@ -3104,15 +3104,15 @@ func (m *StreamOrderbookUpdate) Size() (n int) { } var l int _ = l + if m.Snapshot { + n += 2 + } if len(m.Updates) > 0 { for _, e := range m.Updates { l = e.Size() n += 1 + l + sovQuery(uint64(l)) } } - if m.Snapshot { - n += 2 - } return n } @@ -4747,6 +4747,44 @@ func (m *StreamUpdate) Unmarshal(dAtA []byte) error { } switch fieldNum { case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field BlockHeight", wireType) + } + m.BlockHeight = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.BlockHeight |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field ExecMode", wireType) + } + m.ExecMode = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.ExecMode |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 3: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field OrderbookUpdate", wireType) } @@ -4781,7 +4819,7 @@ func (m *StreamUpdate) Unmarshal(dAtA []byte) error { } m.UpdateMessage = &StreamUpdate_OrderbookUpdate{v} iNdEx = postIndex - case 2: + case 4: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field OrderFill", wireType) } @@ -4816,7 +4854,7 @@ func (m *StreamUpdate) Unmarshal(dAtA []byte) error { } m.UpdateMessage = &StreamUpdate_OrderFill{v} iNdEx = postIndex - case 3: + case 5: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field TakerOrder", wireType) } @@ -4851,7 +4889,7 @@ func (m *StreamUpdate) Unmarshal(dAtA []byte) error { } m.UpdateMessage = &StreamUpdate_TakerOrder{v} iNdEx = postIndex - case 4: + case 6: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field SubaccountUpdate", wireType) } @@ -4886,44 +4924,6 @@ func (m *StreamUpdate) Unmarshal(dAtA []byte) error { } m.UpdateMessage = &StreamUpdate_SubaccountUpdate{v} iNdEx = postIndex - case 5: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field BlockHeight", wireType) - } - m.BlockHeight = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.BlockHeight |= uint32(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 6: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field ExecMode", wireType) - } - m.ExecMode = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.ExecMode |= uint32(b&0x7F) << shift - if b < 0x80 { - break - } - } default: iNdEx = preIndex skippy, err := skipQuery(dAtA[iNdEx:]) @@ -4975,6 +4975,26 @@ func (m *StreamOrderbookUpdate) Unmarshal(dAtA []byte) error { } switch fieldNum { case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Snapshot", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Snapshot = bool(v != 0) + case 2: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field Updates", wireType) } @@ -5008,26 +5028,6 @@ func (m *StreamOrderbookUpdate) Unmarshal(dAtA []byte) error { return err } iNdEx = postIndex - case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Snapshot", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.Snapshot = bool(v != 0) default: iNdEx = preIndex skippy, err := skipQuery(dAtA[iNdEx:])