Skip to content

Commit

Permalink
proto lint
Browse files Browse the repository at this point in the history
  • Loading branch information
jonfung-dydx committed Apr 30, 2024
1 parent 2d0ed2f commit a0ee1e1
Show file tree
Hide file tree
Showing 3 changed files with 96 additions and 96 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -332,7 +332,7 @@ export interface StreamOrderbookFill {
orders: Order[];
/** Resulting fill amounts for each order in the orders array. */

fillAmounts: number[];
fillAmounts: Long[];
}
/**
* StreamOrderbookFill provides information on an orderbook fill. Used in
Expand All @@ -353,7 +353,7 @@ export interface StreamOrderbookFillSDKType {
orders: OrderSDKType[];
/** Resulting fill amounts for each order in the orders array. */

fillAmounts: number[];
fill_amounts: Long[];
}

function createBaseQueryGetClobPairRequest(): QueryGetClobPairRequest {
Expand Down Expand Up @@ -1201,7 +1201,7 @@ export const StreamOrderbookFill = {
writer.uint32(26).fork();

for (const v of message.fillAmounts) {
writer.uint32(v);
writer.uint64(v);
}

writer.ldelim();
Expand Down Expand Up @@ -1230,10 +1230,10 @@ export const StreamOrderbookFill = {
const end2 = reader.uint32() + reader.pos;

while (reader.pos < end2) {
message.fillAmounts.push(reader.uint32());
message.fillAmounts.push((reader.uint64() as Long));
}
} else {
message.fillAmounts.push(reader.uint32());
message.fillAmounts.push((reader.uint64() as Long));
}

break;
Expand All @@ -1251,7 +1251,7 @@ export const StreamOrderbookFill = {
const message = createBaseStreamOrderbookFill();
message.clobMatch = object.clobMatch !== undefined && object.clobMatch !== null ? ClobMatch.fromPartial(object.clobMatch) : undefined;
message.orders = object.orders?.map(e => Order.fromPartial(e)) || [];
message.fillAmounts = object.fillAmounts?.map(e => e) || [];
message.fillAmounts = object.fillAmounts?.map(e => Long.fromValue(e)) || [];
return message;
}

Expand Down
3 changes: 1 addition & 2 deletions proto/dydxprotocol/clob/query.proto
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,6 @@ message StreamOrderbookUpdate {
bool snapshot = 2;
}


// StreamOrderbookFill provides information on an orderbook fill. Used in
// the full node GRPC stream.
message StreamOrderbookFill {
Expand All @@ -197,5 +196,5 @@ message StreamOrderbookFill {
repeated Order orders = 2 [ (gogoproto.nullable) = false ];

// Resulting fill amounts for each order in the orders array.
repeated uint32 fillAmounts = 3 [ (gogoproto.nullable) = false ];
repeated uint64 fill_amounts = 3 [ (gogoproto.nullable) = false ];
}
177 changes: 89 additions & 88 deletions protocol/x/clob/types/query.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit a0ee1e1

Please sign in to comment.