Skip to content

Commit 3d5db4e

Browse files
committed
updates
1 parent 079ffd5 commit 3d5db4e

File tree

1 file changed

+0
-283
lines changed
  • indexer/packages/v4-protos/src/codegen/dydxprotocol/clob

1 file changed

+0
-283
lines changed

indexer/packages/v4-protos/src/codegen/dydxprotocol/clob/query.ts

Lines changed: 0 additions & 283 deletions
Original file line numberDiff line numberDiff line change
@@ -321,104 +321,6 @@ export interface StreamUpdateSDKType {
321321

322322
exec_mode: number;
323323
}
324-
/**
325-
* SubaccountPerpetualPosition provides information on a subaccount's updated
326-
* perpetual positions.
327-
*/
328-
329-
export interface SubaccountPerpetualPosition {
330-
/** The `Id` of the `Perpetual`. */
331-
perpetualId: number;
332-
/** The size of the position in base quantums. */
333-
334-
quantums: Long;
335-
}
336-
/**
337-
* SubaccountPerpetualPosition provides information on a subaccount's updated
338-
* perpetual positions.
339-
*/
340-
341-
export interface SubaccountPerpetualPositionSDKType {
342-
/** The `Id` of the `Perpetual`. */
343-
perpetual_id: number;
344-
/** The size of the position in base quantums. */
345-
346-
quantums: Long;
347-
}
348-
/**
349-
* SubaccountAssetPosition provides information on a subaccount's updated asset
350-
* positions.
351-
*/
352-
353-
export interface SubaccountAssetPosition {
354-
/** The `Id` of the `Asset`. */
355-
assetId: number;
356-
/** The absolute size of the position in base quantums. */
357-
358-
quantums: Long;
359-
}
360-
/**
361-
* SubaccountAssetPosition provides information on a subaccount's updated asset
362-
* positions.
363-
*/
364-
365-
export interface SubaccountAssetPositionSDKType {
366-
/** The `Id` of the `Asset`. */
367-
asset_id: number;
368-
/** The absolute size of the position in base quantums. */
369-
370-
quantums: Long;
371-
}
372-
/**
373-
* StreamSubaccountUpdate provides information on a subaccount update. Used in
374-
* the full node GRPC stream.
375-
*/
376-
377-
export interface StreamSubaccountUpdate {
378-
subaccountId?: SubaccountId;
379-
/** updated_perpetual_positions will each be for unique perpetuals. */
380-
381-
updatedPerpetualPositions: SubaccountPerpetualPosition[];
382-
/** updated_asset_positions will each be for unique assets. */
383-
384-
updatedAssetPositions: SubaccountAssetPosition[];
385-
/**
386-
* Snapshot indicates if the response is from a snapshot of the subaccount.
387-
* All updates should be ignored until snapshot is received.
388-
* If the snapshot is true, then all previous entries should be
389-
* discarded and the subaccount should be resynced.
390-
* For a snapshot subaccount update, the `updated_perpetual_positions` and
391-
* `updated_asset_positions` fields will contain the full state of the
392-
* subaccount.
393-
*/
394-
395-
snapshot: boolean;
396-
}
397-
/**
398-
* StreamSubaccountUpdate provides information on a subaccount update. Used in
399-
* the full node GRPC stream.
400-
*/
401-
402-
export interface StreamSubaccountUpdateSDKType {
403-
subaccount_id?: SubaccountIdSDKType;
404-
/** updated_perpetual_positions will each be for unique perpetuals. */
405-
406-
updated_perpetual_positions: SubaccountPerpetualPositionSDKType[];
407-
/** updated_asset_positions will each be for unique assets. */
408-
409-
updated_asset_positions: SubaccountAssetPositionSDKType[];
410-
/**
411-
* Snapshot indicates if the response is from a snapshot of the subaccount.
412-
* All updates should be ignored until snapshot is received.
413-
* If the snapshot is true, then all previous entries should be
414-
* discarded and the subaccount should be resynced.
415-
* For a snapshot subaccount update, the `updated_perpetual_positions` and
416-
* `updated_asset_positions` fields will contain the full state of the
417-
* subaccount.
418-
*/
419-
420-
snapshot: boolean;
421-
}
422324
/**
423325
* StreamOrderbookUpdate provides information on an orderbook update. Used in
424326
* the full node GRPC stream.
@@ -1496,191 +1398,6 @@ export const StreamUpdate = {
14961398

14971399
};
14981400

1499-
function createBaseSubaccountPerpetualPosition(): SubaccountPerpetualPosition {
1500-
return {
1501-
perpetualId: 0,
1502-
quantums: Long.UZERO
1503-
};
1504-
}
1505-
1506-
export const SubaccountPerpetualPosition = {
1507-
encode(message: SubaccountPerpetualPosition, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
1508-
if (message.perpetualId !== 0) {
1509-
writer.uint32(8).uint32(message.perpetualId);
1510-
}
1511-
1512-
if (!message.quantums.isZero()) {
1513-
writer.uint32(16).uint64(message.quantums);
1514-
}
1515-
1516-
return writer;
1517-
},
1518-
1519-
decode(input: _m0.Reader | Uint8Array, length?: number): SubaccountPerpetualPosition {
1520-
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
1521-
let end = length === undefined ? reader.len : reader.pos + length;
1522-
const message = createBaseSubaccountPerpetualPosition();
1523-
1524-
while (reader.pos < end) {
1525-
const tag = reader.uint32();
1526-
1527-
switch (tag >>> 3) {
1528-
case 1:
1529-
message.perpetualId = reader.uint32();
1530-
break;
1531-
1532-
case 2:
1533-
message.quantums = (reader.uint64() as Long);
1534-
break;
1535-
1536-
default:
1537-
reader.skipType(tag & 7);
1538-
break;
1539-
}
1540-
}
1541-
1542-
return message;
1543-
},
1544-
1545-
fromPartial(object: DeepPartial<SubaccountPerpetualPosition>): SubaccountPerpetualPosition {
1546-
const message = createBaseSubaccountPerpetualPosition();
1547-
message.perpetualId = object.perpetualId ?? 0;
1548-
message.quantums = object.quantums !== undefined && object.quantums !== null ? Long.fromValue(object.quantums) : Long.UZERO;
1549-
return message;
1550-
}
1551-
1552-
};
1553-
1554-
function createBaseSubaccountAssetPosition(): SubaccountAssetPosition {
1555-
return {
1556-
assetId: 0,
1557-
quantums: Long.UZERO
1558-
};
1559-
}
1560-
1561-
export const SubaccountAssetPosition = {
1562-
encode(message: SubaccountAssetPosition, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
1563-
if (message.assetId !== 0) {
1564-
writer.uint32(8).uint32(message.assetId);
1565-
}
1566-
1567-
if (!message.quantums.isZero()) {
1568-
writer.uint32(16).uint64(message.quantums);
1569-
}
1570-
1571-
return writer;
1572-
},
1573-
1574-
decode(input: _m0.Reader | Uint8Array, length?: number): SubaccountAssetPosition {
1575-
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
1576-
let end = length === undefined ? reader.len : reader.pos + length;
1577-
const message = createBaseSubaccountAssetPosition();
1578-
1579-
while (reader.pos < end) {
1580-
const tag = reader.uint32();
1581-
1582-
switch (tag >>> 3) {
1583-
case 1:
1584-
message.assetId = reader.uint32();
1585-
break;
1586-
1587-
case 2:
1588-
message.quantums = (reader.uint64() as Long);
1589-
break;
1590-
1591-
default:
1592-
reader.skipType(tag & 7);
1593-
break;
1594-
}
1595-
}
1596-
1597-
return message;
1598-
},
1599-
1600-
fromPartial(object: DeepPartial<SubaccountAssetPosition>): SubaccountAssetPosition {
1601-
const message = createBaseSubaccountAssetPosition();
1602-
message.assetId = object.assetId ?? 0;
1603-
message.quantums = object.quantums !== undefined && object.quantums !== null ? Long.fromValue(object.quantums) : Long.UZERO;
1604-
return message;
1605-
}
1606-
1607-
};
1608-
1609-
function createBaseStreamSubaccountUpdate(): StreamSubaccountUpdate {
1610-
return {
1611-
subaccountId: undefined,
1612-
updatedPerpetualPositions: [],
1613-
updatedAssetPositions: [],
1614-
snapshot: false
1615-
};
1616-
}
1617-
1618-
export const StreamSubaccountUpdate = {
1619-
encode(message: StreamSubaccountUpdate, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
1620-
if (message.subaccountId !== undefined) {
1621-
SubaccountId.encode(message.subaccountId, writer.uint32(10).fork()).ldelim();
1622-
}
1623-
1624-
for (const v of message.updatedPerpetualPositions) {
1625-
SubaccountPerpetualPosition.encode(v!, writer.uint32(18).fork()).ldelim();
1626-
}
1627-
1628-
for (const v of message.updatedAssetPositions) {
1629-
SubaccountAssetPosition.encode(v!, writer.uint32(26).fork()).ldelim();
1630-
}
1631-
1632-
if (message.snapshot === true) {
1633-
writer.uint32(32).bool(message.snapshot);
1634-
}
1635-
1636-
return writer;
1637-
},
1638-
1639-
decode(input: _m0.Reader | Uint8Array, length?: number): StreamSubaccountUpdate {
1640-
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
1641-
let end = length === undefined ? reader.len : reader.pos + length;
1642-
const message = createBaseStreamSubaccountUpdate();
1643-
1644-
while (reader.pos < end) {
1645-
const tag = reader.uint32();
1646-
1647-
switch (tag >>> 3) {
1648-
case 1:
1649-
message.subaccountId = SubaccountId.decode(reader, reader.uint32());
1650-
break;
1651-
1652-
case 2:
1653-
message.updatedPerpetualPositions.push(SubaccountPerpetualPosition.decode(reader, reader.uint32()));
1654-
break;
1655-
1656-
case 3:
1657-
message.updatedAssetPositions.push(SubaccountAssetPosition.decode(reader, reader.uint32()));
1658-
break;
1659-
1660-
case 4:
1661-
message.snapshot = reader.bool();
1662-
break;
1663-
1664-
default:
1665-
reader.skipType(tag & 7);
1666-
break;
1667-
}
1668-
}
1669-
1670-
return message;
1671-
},
1672-
1673-
fromPartial(object: DeepPartial<StreamSubaccountUpdate>): StreamSubaccountUpdate {
1674-
const message = createBaseStreamSubaccountUpdate();
1675-
message.subaccountId = object.subaccountId !== undefined && object.subaccountId !== null ? SubaccountId.fromPartial(object.subaccountId) : undefined;
1676-
message.updatedPerpetualPositions = object.updatedPerpetualPositions?.map(e => SubaccountPerpetualPosition.fromPartial(e)) || [];
1677-
message.updatedAssetPositions = object.updatedAssetPositions?.map(e => SubaccountAssetPosition.fromPartial(e)) || [];
1678-
message.snapshot = object.snapshot ?? false;
1679-
return message;
1680-
}
1681-
1682-
};
1683-
16841401
function createBaseStreamOrderbookUpdate(): StreamOrderbookUpdate {
16851402
return {
16861403
updates: [],

0 commit comments

Comments
 (0)