Skip to content

Commit 04df114

Browse files
chore: update OpenAPI spec from 0x-labs (#192)
Co-authored-by: alexfertel <22298999+alexfertel@users.noreply.github.com>
1 parent dd738e3 commit 04df114

1 file changed

Lines changed: 48 additions & 0 deletions

File tree

fern/openapi.json

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -172,6 +172,18 @@
172172
"default": "false"
173173
},
174174
"description": "If set to `true`, the taker's entire `sellToken` balance will be sold during trade execution. The `sellAmount` should be the maximum estimated value, as close as possible to the actual taker's balance to ensure the best routing. Selling more than the `sellAmount` may cause the trade to revert. This feature is designed for cases where the precise sell amount is determined during execution. Learn more [here](https://docs.0x.org/docs/0x-swap-api/additional-topics/sell-entire-balance)."
175+
},
176+
{
177+
"name": "wrapUnwrapMode",
178+
"in": "query",
179+
"required": false,
180+
"schema": {
181+
"anyOf": [
182+
{ "not": {} },
183+
{ "type": "string", "enum": ["direct", "settler"] }
184+
]
185+
},
186+
"description": "Controls how native wrap/unwrap trades are executed. `direct` calls the wrapped-native token contract directly. `settler` routes wrap/unwrap through Settler or Allowance Holder for compatibility. Ignored for non-wrap/unwrap swaps. If omitted, `direct` mode is used."
175187
}
176188
],
177189
"responses": {
@@ -977,6 +989,18 @@
977989
"default": "false"
978990
},
979991
"description": "If set to `true`, the taker's entire `sellToken` balance will be sold during trade execution. The `sellAmount` should be the maximum estimated value, as close as possible to the actual taker's balance to ensure the best routing. Selling more than the `sellAmount` may cause the trade to revert. This feature is designed for cases where the precise sell amount is determined during execution. Learn more [here](https://docs.0x.org/docs/0x-swap-api/additional-topics/sell-entire-balance)."
992+
},
993+
{
994+
"name": "wrapUnwrapMode",
995+
"in": "query",
996+
"required": false,
997+
"schema": {
998+
"anyOf": [
999+
{ "not": {} },
1000+
{ "type": "string", "enum": ["direct", "settler"] }
1001+
]
1002+
},
1003+
"description": "Controls how native wrap/unwrap trades are executed. `direct` calls the wrapped-native token contract directly. `settler` routes wrap/unwrap through Settler or Allowance Holder for compatibility. Ignored for non-wrap/unwrap swaps. If omitted, `direct` mode is used."
9801004
}
9811005
],
9821006
"responses": {
@@ -1818,6 +1842,18 @@
18181842
"default": "false"
18191843
},
18201844
"description": "If set to `true`, the taker's entire `sellToken` balance will be sold during trade execution. The `sellAmount` should be the maximum estimated value, as close as possible to the actual taker's balance to ensure the best routing. Selling more than the `sellAmount` may cause the trade to revert. This feature is designed for cases where the precise sell amount is determined during execution. Learn more [here](https://docs.0x.org/docs/0x-swap-api/additional-topics/sell-entire-balance)."
1845+
},
1846+
{
1847+
"name": "wrapUnwrapMode",
1848+
"in": "query",
1849+
"required": false,
1850+
"schema": {
1851+
"anyOf": [
1852+
{ "not": {} },
1853+
{ "type": "string", "enum": ["direct", "settler"] }
1854+
]
1855+
},
1856+
"description": "Controls how native wrap/unwrap trades are executed. `direct` calls the wrapped-native token contract directly. `settler` routes wrap/unwrap through Settler or Allowance Holder for compatibility. Ignored for non-wrap/unwrap swaps. If omitted, `direct` mode is used."
18211857
}
18221858
],
18231859
"responses": {
@@ -2623,6 +2659,18 @@
26232659
"default": "false"
26242660
},
26252661
"description": "If set to `true`, the taker's entire `sellToken` balance will be sold during trade execution. The `sellAmount` should be the maximum estimated value, as close as possible to the actual taker's balance to ensure the best routing. Selling more than the `sellAmount` may cause the trade to revert. This feature is designed for cases where the precise sell amount is determined during execution. Learn more [here](https://docs.0x.org/docs/0x-swap-api/additional-topics/sell-entire-balance)."
2662+
},
2663+
{
2664+
"name": "wrapUnwrapMode",
2665+
"in": "query",
2666+
"required": false,
2667+
"schema": {
2668+
"anyOf": [
2669+
{ "not": {} },
2670+
{ "type": "string", "enum": ["direct", "settler"] }
2671+
]
2672+
},
2673+
"description": "Controls how native wrap/unwrap trades are executed. `direct` calls the wrapped-native token contract directly. `settler` routes wrap/unwrap through Settler or Allowance Holder for compatibility. Ignored for non-wrap/unwrap swaps. If omitted, `direct` mode is used."
26262674
}
26272675
],
26282676
"responses": {

0 commit comments

Comments
 (0)