-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* chore: bump openapi * chore: minor bump
- Loading branch information
Showing
13 changed files
with
163 additions
and
15 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,92 @@ | ||
/* istanbul ignore file */ | ||
/* tslint:disable */ | ||
/* eslint-disable */ | ||
|
||
import type { Address } from './Address'; | ||
import type { AppDataHash } from './AppDataHash'; | ||
import type { BuyTokenDestination } from './BuyTokenDestination'; | ||
import type { FeePolicy } from './FeePolicy'; | ||
import type { InteractionData } from './InteractionData'; | ||
import type { OrderClass } from './OrderClass'; | ||
import type { OrderKind } from './OrderKind'; | ||
import type { SellTokenSource } from './SellTokenSource'; | ||
import type { Signature } from './Signature'; | ||
import type { TokenAmount } from './TokenAmount'; | ||
import type { UID } from './UID'; | ||
|
||
/** | ||
* A solvable order included in the current batch auction. Contains the data forwarded to solvers for solving. | ||
* | ||
*/ | ||
export type AuctionOrder = { | ||
uid: UID; | ||
/** | ||
* see `OrderParameters::sellToken` | ||
*/ | ||
sellToken: Address; | ||
/** | ||
* see `OrderParameters::buyToken` | ||
*/ | ||
buyToken: Address; | ||
/** | ||
* see `OrderParameters::sellAmount` | ||
*/ | ||
sellAmount: TokenAmount; | ||
/** | ||
* see `OrderParameters::buyAmount` | ||
*/ | ||
buyAmount: TokenAmount; | ||
/** | ||
* see `OrderParameters::feeAmount` | ||
*/ | ||
userFee: TokenAmount; | ||
/** | ||
* see `OrderParameters::validTo` | ||
*/ | ||
validTo: number; | ||
/** | ||
* see `OrderParameters::kind` | ||
*/ | ||
kind: OrderKind; | ||
/** | ||
* see `OrderParameters::receiver` | ||
*/ | ||
receiver: Address | null; | ||
owner: Address; | ||
/** | ||
* see `OrderParameters::partiallyFillable` | ||
*/ | ||
partiallyFillable: boolean; | ||
/** | ||
* Currently executed amount of sell/buy token, depending on the order kind. | ||
* | ||
*/ | ||
executed: TokenAmount; | ||
/** | ||
* The pre-interactions that need to be executed before the first execution of the order. | ||
* | ||
*/ | ||
preInteractions: Array<InteractionData>; | ||
/** | ||
* The post-interactions that need to be executed after the execution of the order. | ||
* | ||
*/ | ||
postInteractions: Array<InteractionData>; | ||
/** | ||
* see `OrderParameters::sellTokenBalance` | ||
*/ | ||
sellTokenBalance: SellTokenSource; | ||
/** | ||
* see `OrderParameters::buyTokenBalance` | ||
*/ | ||
buyTokenBalance: BuyTokenDestination; | ||
class: OrderClass; | ||
appData: AppDataHash; | ||
signature: Signature; | ||
/** | ||
* The fee policies that are used to compute the protocol fees for this order. | ||
* | ||
*/ | ||
protocolFees: Array<FeePolicy>; | ||
}; | ||
|
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,12 @@ | ||
/* istanbul ignore file */ | ||
/* tslint:disable */ | ||
/* eslint-disable */ | ||
|
||
import type { Surplus } from './Surplus'; | ||
import type { Volume } from './Volume'; | ||
|
||
/** | ||
* Defines the ways to calculate the protocol fee. | ||
*/ | ||
export type FeePolicy = (Surplus | Volume); | ||
|
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,17 @@ | ||
/* istanbul ignore file */ | ||
/* tslint:disable */ | ||
/* eslint-disable */ | ||
|
||
import type { Address } from './Address'; | ||
import type { CallData } from './CallData'; | ||
import type { TokenAmount } from './TokenAmount'; | ||
|
||
export type InteractionData = { | ||
target?: Address; | ||
value?: TokenAmount; | ||
/** | ||
* The call data to be used for the interaction. | ||
*/ | ||
call_data?: Array<CallData>; | ||
}; | ||
|
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,12 @@ | ||
/* istanbul ignore file */ | ||
/* tslint:disable */ | ||
/* eslint-disable */ | ||
|
||
/** | ||
* The protocol fee is taken as a percent of the surplus. | ||
*/ | ||
export type Surplus = { | ||
factor: number; | ||
max_volume_factor: number; | ||
}; | ||
|
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 */ | ||
|
||
/** | ||
* The protocol fee is taken as a percent of the order volume. | ||
*/ | ||
export type Volume = { | ||
factor: number; | ||
}; | ||
|