Skip to content

Commit

Permalink
Include necessary data for simulations within the auction json sent t…
Browse files Browse the repository at this point in the history
…o solvers
  • Loading branch information
m-lord-renkse committed Apr 17, 2024
1 parent 26a2c6b commit 2081385
Showing 1 changed file with 50 additions and 6 deletions.
56 changes: 50 additions & 6 deletions openapi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -208,19 +208,69 @@ components:
$ref: "#/components/schemas/Token"
sellAmount:
$ref: "#/components/schemas/TokenAmount"
fullSellAmount:
$ref: "#/components/schemas/TokenAmount"
buyAmount:
$ref: "#/components/schemas/TokenAmount"
fullBuyAmount:
$ref: "#/components/schemas/TokenAmount"
feePolicies:
description: |
Any protocol fee policies that apply to the order.
type: array
items:
$ref: "#/components/schemas/FeePolicy"
validTo:
type: integer
kind:
$ref: "#/components/schemas/OrderKind"
receiver:
$ref: "#/components/schemas/Address"
owner:
$ref: "#/components/schemas/Address"
partiallyFillable:
description: |
Whether or not this order can be partially filled. If this is false,
then the order is a "fill-or-kill" order, meaning it needs to be
completely filled or not at all.
type: boolean
executed:
$ref: "#/components/schemas/TokenAmount"
preInteractions:
type: array
items:
$ref: "#/components/schemas/Interaction"
postInteractions:
type: array
items:
$ref: "#/components/schemas/InteractionData"
sellTokenBalance:
allOf:
- $ref: "#/components/schemas/SellTokenBalance"
default: "erc20"
buyTokenDestination:
allOf:
- $ref: "#/components/schemas/BuyTokenBalance"
default: "erc20"
class:
$ref: "#/components/schemas/OrderClass"
appData:
$ref: "#/components/schemas/AppData"
signingScheme:
$ref: "#/components/schemas/SigningScheme"
signature:
$ref: "#/components/schemas/Signature"

InteractionData:
type: object
properties:
target:
$ref: "#/components/schemas/Address"
value:
$ref: "#/components/schemas/TokenAmount"
calldata:
description: Hex encoded bytes with `0x` prefix.
type: string
TokenReserve:
description: |
A reserve of tokens in an on-chain liquidity pool.
Expand Down Expand Up @@ -516,12 +566,6 @@ components:
$ref: "#/components/schemas/SigningScheme"
signature:
$ref: "#/components/schemas/Signature"
feePolicies:
description: |
Any protocol fee policies that apply to the order.
type: array
items:
$ref: "#/components/schemas/FeePolicy"

FeePolicy:
description: |
Expand Down

0 comments on commit 2081385

Please sign in to comment.