-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' of https://github.com/cowprotocol/cow-sdk into fe…
…at/swap-for-people
- Loading branch information
Showing
12 changed files
with
116 additions
and
2 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
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,37 @@ | ||
/* 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, sorted by score in ascending order, where the last element is the winner. | ||
* 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
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,25 @@ | ||
/* istanbul ignore file */ | ||
/* tslint:disable */ | ||
/* eslint-disable */ | ||
|
||
import type { TokenAmount } from './TokenAmount'; | ||
|
||
/** | ||
* A calculated order quote. | ||
* | ||
*/ | ||
export type Quote = { | ||
/** | ||
* The amount of the sell token. | ||
*/ | ||
sellAmount?: TokenAmount; | ||
/** | ||
* The amount of the buy token. | ||
*/ | ||
buyAmount?: TokenAmount; | ||
/** | ||
* The amount that needs to be paid, denominated in the sell token. | ||
*/ | ||
fee?: TokenAmount; | ||
}; | ||
|
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