Skip to content

Commit

Permalink
update proto formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
jakob-dydx committed Dec 1, 2023
1 parent ddef3f7 commit 3131060
Show file tree
Hide file tree
Showing 8 changed files with 19 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,8 @@ export enum ClobPair_Status {

/**
* STATUS_FINAL_SETTLEMENT - STATUS_FINAL_SETTLEMENT represents a clob pair which is deactivated
* and trading has ceased. All open positions will be closed by the protocol.option
* and trading has ceased. All open positions will be closed by the
* protocol.
*/
STATUS_FINAL_SETTLEMENT = 6,
UNRECOGNIZED = -1,
Expand Down Expand Up @@ -77,7 +78,8 @@ export enum ClobPair_StatusSDKType {

/**
* STATUS_FINAL_SETTLEMENT - STATUS_FINAL_SETTLEMENT represents a clob pair which is deactivated
* and trading has ceased. All open positions will be closed by the protocol.option
* and trading has ceased. All open positions will be closed by the
* protocol.
*/
STATUS_FINAL_SETTLEMENT = 6,
UNRECOGNIZED = -1,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -311,8 +311,8 @@ export enum ClobPairStatus {
/**
* CLOB_PAIR_STATUS_FINAL_SETTLEMENT - CLOB_PAIR_STATUS_FINAL_SETTLEMENT represents a clob pair that has been
* deactivated. Clob pairs in this state do not accept new orders and trading
* is blocked. All open positions are closed by the protocol when the clob pair
* gains this status.
* is blocked. All open positions are closed by the protocol when the clob
* pair gains this status.
*/
CLOB_PAIR_STATUS_FINAL_SETTLEMENT = 6,
UNRECOGNIZED = -1,
Expand Down Expand Up @@ -360,8 +360,8 @@ export enum ClobPairStatusSDKType {
/**
* CLOB_PAIR_STATUS_FINAL_SETTLEMENT - CLOB_PAIR_STATUS_FINAL_SETTLEMENT represents a clob pair that has been
* deactivated. Clob pairs in this state do not accept new orders and trading
* is blocked. All open positions are closed by the protocol when the clob pair
* gains this status.
* is blocked. All open positions are closed by the protocol when the clob
* pair gains this status.
*/
CLOB_PAIR_STATUS_FINAL_SETTLEMENT = 6,
UNRECOGNIZED = -1,
Expand Down
1 change: 1 addition & 0 deletions indexer/services/comlink/public/api-documentation.md
Original file line number Diff line number Diff line change
Expand Up @@ -2816,6 +2816,7 @@ or
|*anonymous*|CANCEL_ONLY|
|*anonymous*|POST_ONLY|
|*anonymous*|INITIALIZING|
|*anonymous*|FINAL_SETTLEMENT|

## PerpetualMarketResponseObject

Expand Down
3 changes: 2 additions & 1 deletion indexer/services/comlink/public/swagger.json
Original file line number Diff line number Diff line change
Expand Up @@ -686,7 +686,8 @@
"PAUSED",
"CANCEL_ONLY",
"POST_ONLY",
"INITIALIZING"
"INITIALIZING",
"FINAL_SETTLEMENT"
],
"type": "string"
},
Expand Down
3 changes: 2 additions & 1 deletion proto/dydxprotocol/clob/clob_pair.proto
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,8 @@ message ClobPair {
// both short-term and post-only.
STATUS_INITIALIZING = 5;
// STATUS_FINAL_SETTLEMENT represents a clob pair which is deactivated
// and trading has ceased. All open positions will be closed by the protocol.option
// and trading has ceased. All open positions will be closed by the
// protocol.
STATUS_FINAL_SETTLEMENT = 6;
}

Expand Down
4 changes: 2 additions & 2 deletions proto/dydxprotocol/indexer/protocol/v1/clob.proto
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ enum ClobPairStatus {
CLOB_PAIR_STATUS_INITIALIZING = 5;
// CLOB_PAIR_STATUS_FINAL_SETTLEMENT represents a clob pair that has been
// deactivated. Clob pairs in this state do not accept new orders and trading
// is blocked. All open positions are closed by the protocol when the clob pair
// gains this status.
// is blocked. All open positions are closed by the protocol when the clob
// pair gains this status.
CLOB_PAIR_STATUS_FINAL_SETTLEMENT = 6;
}
4 changes: 2 additions & 2 deletions protocol/indexer/protocol/v1/clob.pb.go

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

3 changes: 2 additions & 1 deletion protocol/x/clob/types/clob_pair.pb.go

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

0 comments on commit 3131060

Please sign in to comment.