You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Oct 11, 2024. It is now read-only.
Copy file name to clipboardExpand all lines: mdx/guides/0x-v4-nft-features-over.mdx
+8-7Lines changed: 8 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,8 +1,9 @@
1
1
# 0x V4 NFT Features Overview
2
2
3
-
> Note: his feature is in beta and is subject to change. Testnet deployments coming soon, mainnet deployments are pending audit.
3
+
> Note: This feature is in beta and is subject to change. Testnet deployments coming soon. Mainnet deployments are pending audit.
4
+
> We invite you to join our [Discord](https://discord.com/invite/YyG9fkK) and share feedback in the [#dev-feature-feedback](https://discord.com/channels/435912040142602260/936366257521954857).
4
5
5
-
We are adding support for ERC721<>ERC20 and ERC1155<>ERC20 orders to 0x v4. Contracts can be found [here](https://github.com/0xProject/protocol/tree/refactor/nft-orders/contracts/zero-ex/contracts/src/features/nft_orders). Contract interfaces are also in this doc.
6
+
We are adding support for ERC721<>ERC20 and ERC1155<>ERC20 orders to 0x v4. Contracts can be found [here](https://github.com/0xProject/protocol/tree/refactor/nft-orders/contracts/zero-ex/contracts/src/features/nft_orders). Contract interfaces are also in [this doc](https://0x.org/docs/guides/0x-v4-nft-contract-interfaces)
6
7
7
8
## Basics
8
9
@@ -25,7 +26,7 @@ enum TradeDirection {
25
26
}
26
27
```
27
28
28
-
## Collection/floor/property-based orders
29
+
## Collection/Floor/Property-Based Orders
29
30
30
31
In lieu of specifying a particular token ID, buy orders can specify a list of properties that an NFT asset must satisfy to be used to fill the order.
31
32
@@ -127,7 +128,7 @@ For cheaper chains like Polygon, it may make sense for orders to specify multipl
127
128
128
129
For expensive chains like Ethereum mainnet, disbursing multiple fees would be costly, so instead an order can specify a single `Fee`, the `recipient` of which is a contract that would handle splitting the fee between multiple recipients using a withdrawal model.
129
130
130
-
## ETH/WETH handling
131
+
## ETH/WETH Handling
131
132
132
133
A **sell** order must use WETH instead of ETH, since we require the ERC20 `transferFrom` functionality to transfer WETH from the maker to the taker. Even so, the taker can choose to *receive* ETH when filling a WETH sell order by setting the `unwrapNativeToken` parameter to `true` in `sellERC721` or `sellERC1155`.
133
134
@@ -139,7 +140,7 @@ A **buy** order can specify either ETH or WETH, i.e. the buyer can indicate whet
139
140
140
141
This allows takers to fill an NFT buy order without needing to first approving the 0x contract. As a side-effect, this will also mitigate the risk of users accidentally sending NFTs to the 0x contract.
141
142
142
-
## Order matching
143
+
## Order Matching
143
144
144
145
The `matchERC721Orders` function can be used to simultaneously fill a sell order and a buy order if:
145
146
@@ -148,7 +149,7 @@ The `matchERC721Orders` function can be used to simultaneously fill a sell order
148
149
149
150
Order matching is currently only support for ERC721 orders. Support for ERC1155 order matching will be added at a future date if there is sufficient interest.
150
151
151
-
## Pre-signing orders
152
+
## Pre-Signing Orders
152
153
153
154
Since smart contracts cannot sign orders in the traditional sense, they can instead “sign” orders by calling the `preSignERC721Order` or `preSignERC1155Order` functions.
154
155
@@ -167,4 +168,4 @@ A smart contract can subsequently cancel an order just like an EOA would, by cal
167
168
168
169
The pre-sign functions will emit the entire order as an event, so that the order is easily indexable by subgraphs and thus easily discoverable without the need for an off-chain database.
169
170
170
-
Note that EOAs can also call the pre-sign functions if they so desire.
171
+
Note that EOAs can also call the pre-sign functions if they so desire.
0 commit comments