-
Notifications
You must be signed in to change notification settings - Fork 114
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'upstream' into eric/protocol-feature-flags
- Loading branch information
Showing
95 changed files
with
1,785 additions
and
904 deletions.
There are no files selected for viewing
330 changes: 166 additions & 164 deletions
330
indexer/packages/v4-protos/src/codegen/dydxprotocol/bundle.ts
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
67 changes: 67 additions & 0 deletions
67
indexer/packages/v4-protos/src/codegen/dydxprotocol/indexer/protocol/v1/perpetual.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
/** | ||
* Market type of perpetual. | ||
* Defined in perpetual. | ||
*/ | ||
export enum PerpetualMarketType { | ||
/** PERPETUAL_MARKET_TYPE_UNSPECIFIED - Unspecified market type. */ | ||
PERPETUAL_MARKET_TYPE_UNSPECIFIED = 0, | ||
|
||
/** PERPETUAL_MARKET_TYPE_CROSS - Market type for cross margin perpetual markets. */ | ||
PERPETUAL_MARKET_TYPE_CROSS = 1, | ||
|
||
/** PERPETUAL_MARKET_TYPE_ISOLATED - Market type for isolated margin perpetual markets. */ | ||
PERPETUAL_MARKET_TYPE_ISOLATED = 2, | ||
UNRECOGNIZED = -1, | ||
} | ||
/** | ||
* Market type of perpetual. | ||
* Defined in perpetual. | ||
*/ | ||
|
||
export enum PerpetualMarketTypeSDKType { | ||
/** PERPETUAL_MARKET_TYPE_UNSPECIFIED - Unspecified market type. */ | ||
PERPETUAL_MARKET_TYPE_UNSPECIFIED = 0, | ||
|
||
/** PERPETUAL_MARKET_TYPE_CROSS - Market type for cross margin perpetual markets. */ | ||
PERPETUAL_MARKET_TYPE_CROSS = 1, | ||
|
||
/** PERPETUAL_MARKET_TYPE_ISOLATED - Market type for isolated margin perpetual markets. */ | ||
PERPETUAL_MARKET_TYPE_ISOLATED = 2, | ||
UNRECOGNIZED = -1, | ||
} | ||
export function perpetualMarketTypeFromJSON(object: any): PerpetualMarketType { | ||
switch (object) { | ||
case 0: | ||
case "PERPETUAL_MARKET_TYPE_UNSPECIFIED": | ||
return PerpetualMarketType.PERPETUAL_MARKET_TYPE_UNSPECIFIED; | ||
|
||
case 1: | ||
case "PERPETUAL_MARKET_TYPE_CROSS": | ||
return PerpetualMarketType.PERPETUAL_MARKET_TYPE_CROSS; | ||
|
||
case 2: | ||
case "PERPETUAL_MARKET_TYPE_ISOLATED": | ||
return PerpetualMarketType.PERPETUAL_MARKET_TYPE_ISOLATED; | ||
|
||
case -1: | ||
case "UNRECOGNIZED": | ||
default: | ||
return PerpetualMarketType.UNRECOGNIZED; | ||
} | ||
} | ||
export function perpetualMarketTypeToJSON(object: PerpetualMarketType): string { | ||
switch (object) { | ||
case PerpetualMarketType.PERPETUAL_MARKET_TYPE_UNSPECIFIED: | ||
return "PERPETUAL_MARKET_TYPE_UNSPECIFIED"; | ||
|
||
case PerpetualMarketType.PERPETUAL_MARKET_TYPE_CROSS: | ||
return "PERPETUAL_MARKET_TYPE_CROSS"; | ||
|
||
case PerpetualMarketType.PERPETUAL_MARKET_TYPE_ISOLATED: | ||
return "PERPETUAL_MARKET_TYPE_ISOLATED"; | ||
|
||
case PerpetualMarketType.UNRECOGNIZED: | ||
default: | ||
return "UNRECOGNIZED"; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
import * as _102 from "./gogo"; | ||
export const gogoproto = { ..._102 | ||
import * as _103 from "./gogo"; | ||
export const gogoproto = { ..._103 | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,16 @@ | ||
import * as _103 from "./api/annotations"; | ||
import * as _104 from "./api/http"; | ||
import * as _105 from "./protobuf/descriptor"; | ||
import * as _106 from "./protobuf/duration"; | ||
import * as _107 from "./protobuf/timestamp"; | ||
import * as _108 from "./protobuf/any"; | ||
import * as _104 from "./api/annotations"; | ||
import * as _105 from "./api/http"; | ||
import * as _106 from "./protobuf/descriptor"; | ||
import * as _107 from "./protobuf/duration"; | ||
import * as _108 from "./protobuf/timestamp"; | ||
import * as _109 from "./protobuf/any"; | ||
export namespace google { | ||
export const api = { ..._103, | ||
..._104 | ||
export const api = { ..._104, | ||
..._105 | ||
}; | ||
export const protobuf = { ..._105, | ||
..._106, | ||
export const protobuf = { ..._106, | ||
..._107, | ||
..._108 | ||
..._108, | ||
..._109 | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.