Skip to content

Commit

Permalink
Merge pull request #1272 from joejordan/main
Browse files Browse the repository at this point in the history
docs: add issue type to SeaportValidator return values
  • Loading branch information
0age authored Sep 13, 2023
2 parents 539f0c1 + 03cdb72 commit 777acc9
Showing 1 changed file with 69 additions and 69 deletions.
138 changes: 69 additions & 69 deletions docs/OrderValidator.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,72 +33,72 @@ Special thanks to:
- [horsefacts](https://github.com/horsefacts), who implemented support for a ready-only version of the helper contract

## Errors and Warnings
| Code | Issue |
| - | ----------- |
| 100 | Invalid order format. Ensure offer/consideration follow requirements |
| 200 | ERC20 identifier must be zero |
| 201 | ERC20 invalid token |
| 202 | ERC20 insufficient allowance to conduit |
| 203 | ERC20 insufficient balance |
| 300 | ERC721 amount must be one |
| 301 | ERC721 token is invalid |
| 302 | ERC721 token with identifier does not exist |
| 303 | ERC721 not owner of token |
| 304 | ERC721 conduit not approved |
| 305 | ERC721 offer item using criteria and more than amount of one requires partial fills |
| 400 | ERC1155 invalid token |
| 401 | ERC1155 conduit not approved |
| 402 | ERC1155 insufficient balance |
| 500 | Consideration amount must not be zero |
| 501 | Consideration recipient must not be null address |
| 502 | Consideration contains extra items |
| 503 | Private sale cannot be to self |
| 504 | Zero consideration items |
| 505 | Duplicate consideration items |
| 506 | Offerer is not receiving at least one item |
| 507 | Private Sale Order. Be careful on fulfillment |
| 508 | Amount velocity is too high. Amount changes over 5% per 30 min if warning and over 50% per 30 min if error |
| 509 | Amount step large. The steps between each step may be more than expected. Offer items are rounded down and consideration items are rounded up. |
| 600 | Zero offer items |
| 601 | Offer amount must not be zero |
| 602 | More than one offer item |
| 603 | Native offer item |
| 604 | Duplicate offer item |
| 605 | Amount velocity is too high. Amount changes over 5% per 30 min if warning and over 50% per 30 min if error |
| 606 | Amount step large. The steps between each step may be more than expected. Offer items are rounded down and consideration items are rounded up. |
| 700 | Primary fee missing |
| 701 | Primary fee item type incorrect |
| 702 | Primary fee token incorrect |
| 703 | Primary fee start amount too low |
| 704 | Primary fee end amount too low |
| 705 | Primary fee recipient incorrect |
| 800 | Order cancelled |
| 801 | Order fully filled |
| 802 | Cannot validate status of contract order
| 900 | End time is before start time |
| 901 | Order expired |
| 902 | Order expiration in too long (default 26 weeks) |
| 903 | Order not active |
| 904 | Short order duration (default 30 min) |
| 1000 | Conduit key invalid |
| 1001 | Conduit does not have canonical Seaport as an open channel |
| 1100 | Signature invalid |
| 1101 | Contract orders do not have signatures |
| 1102 | Signature counter below current counter |
| 1103 | Signature counter above current counter |
| 1104 | Signature may be invalid since `totalOriginalConsiderationItems` is not set correctly |
| 1200 | Creator fee missing |
| 1201 | Creator fee item type incorrect |
| 1202 | Creator fee token incorrect |
| 1203 | Creator fee start amount too low |
| 1204 | Creator fee end amount too low |
| 1205 | Creator fee recipient incorrect |
| 1300 | Native token address must be null address |
| 1301 | Native token identifier must be zero |
| 1302 | Native token insufficient balance |
| 1400 | Zone is invalid |
| 1401 | Zone rejected order. This order must be fulfilled by the zone. |
| 1402 | Zone not set. Order unfulfillable |
| 1500 | Merkle input only has one leaf |
| 1501 | Merkle input not sorted correctly |
| 1600 | Contract offerer is invalid |
| Code | Issue | Type
| - | ----------- | - |
| 100 | Invalid order format. Ensure offer/consideration follow requirements | Error |
| 200 | ERC20 identifier must be zero | Error |
| 201 | ERC20 invalid token | Error |
| 202 | ERC20 insufficient allowance to conduit | Error |
| 203 | ERC20 insufficient balance | Error |
| 300 | ERC721 amount must be one | Error |
| 301 | ERC721 token is invalid | Error |
| 302 | ERC721 token with identifier does not exist | Error |
| 303 | ERC721 not owner of token | Error |
| 304 | ERC721 conduit not approved | Error |
| 305 | ERC721 offer item using criteria and more than amount of one requires partial fills | Error |
| 400 | ERC1155 invalid token | Error |
| 401 | ERC1155 conduit not approved | Error |
| 402 | ERC1155 insufficient balance | Error |
| 500 | Consideration amount must not be zero | Error |
| 501 | Consideration recipient must not be null address | Error |
| 502 | Consideration contains extra items | Error |
| 503 | Private sale cannot be to self | Error |
| 504 | Zero consideration items | Warning |
| 505 | Duplicate consideration items | Warning |
| 506 | Offerer is not receiving at least one item | Warning |
| 507 | Private Sale Order. Be careful on fulfillment | Warning |
| 508 | Amount velocity is too high. Amount changes over 5% per 30 min if warning and over 50% per 30 min if error | Both |
| 509 | Amount step large. The steps between each step may be more than expected. Offer items are rounded down and consideration items are rounded up. | Warning |
| 600 | Zero offer items | Warning |
| 601 | Offer amount must not be zero | Error |
| 602 | More than one offer item | Warning |
| 603 | Native offer item | Warning |
| 604 | Duplicate offer item | Error |
| 605 | Amount velocity is too high. Amount changes over 5% per 30 min if warning and over 50% per 30 min if error | Both |
| 606 | Amount step large. The steps between each step may be more than expected. Offer items are rounded down and consideration items are rounded up. | Warning |
| 700 | Primary fee missing | Error |
| 701 | Primary fee item type incorrect | Error |
| 702 | Primary fee token incorrect | Error |
| 703 | Primary fee start amount too low | Error |
| 704 | Primary fee end amount too low | Error |
| 705 | Primary fee recipient incorrect | Error |
| 800 | Order cancelled | Error |
| 801 | Order fully filled | Error |
| 802 | Cannot validate status of contract order | Warning |
| 900 | End time is before start time | Error |
| 901 | Order expired | Error |
| 902 | Order expiration in too long (default 26 weeks) | Warning |
| 903 | Order not active | Warning |
| 904 | Short order duration (default 30 min) | Warning |
| 1000 | Conduit key invalid | Error |
| 1001 | Conduit does not have canonical Seaport as an open channel | Error |
| 1100 | Signature invalid | Error |
| 1101 | Contract orders do not have signatures | Warning |
| 1102 | Signature counter below current counter | Error |
| 1103 | Signature counter above current counter | Error |
| 1104 | Signature may be invalid since `totalOriginalConsiderationItems` is not set correctly | Warning |
| 1200 | Creator fee missing | Error |
| 1201 | Creator fee item type incorrect | Error |
| 1202 | Creator fee token incorrect | Error |
| 1203 | Creator fee start amount too low | Error |
| 1204 | Creator fee end amount too low | Error |
| 1205 | Creator fee recipient incorrect | Error |
| 1300 | Native token address must be null address | Error |
| 1301 | Native token identifier must be zero | Error |
| 1302 | Native token insufficient balance | Error |
| 1400 | Zone is invalid | Warning |
| 1401 | Zone rejected order. This order must be fulfilled by the zone. | Warning |
| 1402 | Zone not set. Order unfulfillable | Error |
| 1500 | Merkle input only has one leaf | Error |
| 1501 | Merkle input not sorted correctly | Error |
| 1600 | Contract offerer is invalid | Warning |

0 comments on commit 777acc9

Please sign in to comment.