-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(orderbook-api): order solution status (#216)
* feat: update services types based on cowprotocol/services#2804 * feat: add getOrderCompetitionStatus method to orderbook api * chore: bump version to 5.4.0-RC.0 * chore: update orderbook open api version * chore: bump version to 5.4.0
- Loading branch information
1 parent
97d0315
commit d7e3c54
Showing
9 changed files
with
74 additions
and
3 deletions.
There are no files selected for viewing
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
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
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,36 @@ | ||
/* istanbul ignore file */ | ||
/* tslint:disable */ | ||
/* eslint-disable */ | ||
|
||
import type { ExecutedAmounts } from './ExecutedAmounts'; | ||
|
||
export type CompetitionOrderStatus = { | ||
type: CompetitionOrderStatus.type; | ||
/** | ||
* A list of solvers who participated in the latest competition. The presence of executed amounts defines whether the solver provided a solution for the desired order. | ||
* | ||
*/ | ||
value?: Array<{ | ||
/** | ||
* Name of the solver. | ||
*/ | ||
solver: string; | ||
executedAmounts?: ExecutedAmounts; | ||
}>; | ||
}; | ||
|
||
export namespace CompetitionOrderStatus { | ||
|
||
export enum type { | ||
OPEN = 'Open', | ||
SCHEDULED = 'Scheduled', | ||
ACTIVE = 'Active', | ||
SOLVED = 'Solved', | ||
EXECUTING = 'Executing', | ||
TRADED = 'Traded', | ||
CANCELLED = 'Cancelled', | ||
} | ||
|
||
|
||
} | ||
|
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,11 @@ | ||
/* istanbul ignore file */ | ||
/* tslint:disable */ | ||
/* eslint-disable */ | ||
|
||
import type { BigUint } from './BigUint'; | ||
|
||
export type ExecutedAmounts = { | ||
sell: BigUint; | ||
buy: BigUint; | ||
}; | ||
|
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
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