Skip to content

Commit

Permalink
fix subgraph type (#28)
Browse files Browse the repository at this point in the history
  • Loading branch information
racso2609 authored Mar 19, 2024
1 parent 2ce2d3a commit 07c8383
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions src/interfaces/subgraphTypes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,23 +2,23 @@
//////////////////// ENUMS //////////////////////////////
////////////////////////////////////////////////////////////////
export enum OrderType {
OPEN_NEW_POSITION,
CLOSE_POSITION,
INCREASE_POSITION,
DECREASE_POSITION,
CANCEL_ORDER,
OPEN_NEW_POSITION = 'OPEN_NEW_POSITION',
CLOSE_POSITION = 'CLOSE_POSITION',
INCREASE_POSITION = 'INCREASE_POSITION',
DECREASE_POSITION = 'DECREASE_POSITION',
CANCEL_ORDER = 'CANCEL_ORDER',
}

export enum OrderStatus {
PENDING,
CANCELLED,
SETTLED,
PENDING = 'PENDING',
CANCELLED = 'CANCELLED',
SETTLED = 'SETTLED',
}

export enum PositionStatus {
OPEN,
CLOSED,
LIQUIDATED,
OPEN = 'OPEN',
CLOSED = 'CLOSED',
LIQUIDATED = 'LIQUIDATED',
}

////////////////////////////////////////////////////////////////
Expand Down Expand Up @@ -206,7 +206,7 @@ export interface Order {
// " Account/Address of the order "
user?: Account;

// " 0 => OPEN, 1 => CLOSE, 2 => INCREASE, 3 => DECREASE "
// "OPEN, CLOSE, INCREASE, DECREASE "
orderType?: OrderType;

// " True if LONG order "
Expand Down

0 comments on commit 07c8383

Please sign in to comment.