[AUTOMATED] Update files from 0xsequence/indexer#285
Merged
VojtechVitek merged 16 commits intomasterfrom Nov 28, 2025
Merged
Conversation
indexer/indexer.gen.go
Outdated
Comment on lines
1336
to
1374
| // GetMarketplaceOrders queries marketplace orders with filtering and pagination. | ||
| // | ||
| // Retrieves buy orders (offers) and sell orders (listings) from a specific marketplace | ||
| // and collection with comprehensive filtering options. | ||
| // | ||
| // Parameters: | ||
| // marketplaceContractAddress: Target marketplace contract (required) | ||
| // collectionAddress: NFT collection contract (required) | ||
| // filter: MarketplaceOrderFilter with options: | ||
| // - isListing: true=listings, false=offers, omit=both | ||
| // - userAddresses: Include specific users | ||
| // - currencyAddresses: Filter by currencies (empty=all) | ||
| // - tokenIds: Filter by specific tokens (empty=all) | ||
| // - excludeUserAddresses: Exclude specific users | ||
| // - blockNumberGt: Orders greater than block number | ||
| // - createdAtAfter: Orders after timestamp | ||
| // - orderStatuses: Filter by status (OPEN, CLOSED, CANCELLED) | ||
| // - returnExpired: Include expired orders | ||
| // page: Pagination control (optional) | ||
| // | ||
| // Returns: Updated pagination info and array of matching orders | ||
| GetMarketplaceOrders(ctx context.Context, marketplaceContractAddress string, collectionAddress string, filter *MarketplaceOrderFilter, page *Page) (*Page, []*MarketplaceOrder, error) | ||
| // GetMarketplaceTopOrders finds the most competitive orders for specific tokens. | ||
| // | ||
| // Optimized for price discovery, returns the best available orders for each token. | ||
| // Useful for displaying current market prices and finding trading opportunities. | ||
| // | ||
| // Parameters: | ||
| // marketplaceContractAddress: Target marketplace contract (required) | ||
| // collectionAddress: NFT collection contract (required) | ||
| // filter: MarketplaceTopOrdersFilter with options: | ||
| // - currencyAddresses: Consider specific currencies (empty=all) | ||
| // - tokenIds: Target token IDs (required, non-empty) | ||
| // - isListing: true=listings/sell orders, false=offers/buy orders | ||
| // - priceSort: ASC=lowest first, DESC=highest first | ||
| // - excludeUser: Hide orders from specific user | ||
| // | ||
| // Returns: Array of top-priced active orders, sorted by priceSort preference | ||
| GetMarketplaceTopOrders(ctx context.Context, marketplaceContractAddress string, collectionAddress string, filter *MarketplaceTopOrdersFilter) ([]*MarketplaceOrder, error) |
Contributor
There was a problem hiding this comment.
@david-littlefarmer here's the new Marketplace orderbook endpoints.
Related PR: https://github.com/0xsequence/indexer/pull/386 - indexer marketplace pipeline
Comment on lines
-1528
to
-1541
| // These parameters are depracated, please don't use them: | ||
| // - filters | ||
| // - beforeExpiryTimestamp | ||
| // - blockNumberAfter | ||
| // - createdAtAfter | ||
| // and in OrderbookOrderFilter these fields are depracated: | ||
| // - userAddress | ||
| // - excludeUserAddress | ||
| // | ||
| // Use 'filter' and these fields instead | ||
| // - userAddresses | ||
| // - excludeUserAddress' | ||
| GetOrderbookOrders(ctx context.Context, page *Page, orderbookContractAddress string, collectionAddress string, currencyAddresses []string, filter *OrderbookOrderFilter, orderStatuses []OrderStatus, filters []*OrderbookOrderFilter, beforeExpiryTimestamp int64, blockNumberAfter int64, createdAtAfter int64) (*Page, []*OrderbookOrder, error) | ||
| GetTopOrders(ctx context.Context, orderbookContractAddress string, collectionAddress string, currencyAddresses []string, tokenIDs []string, isListing bool, priceSort SortOrder, excludeUser *string) ([]*OrderbookOrder, error) |
d9907c8 to
7e4f78c
Compare
7e4f78c to
12ea9e9
Compare
12ea9e9 to
212350c
Compare
4fa5343 to
947e452
Compare
947e452 to
2a6f5f3
Compare
2a6f5f3 to
9666ee8
Compare
VojtechVitek
approved these changes
Nov 28, 2025
Contributor
VojtechVitek
left a comment
There was a problem hiding this comment.
LGTM
The only breaking changes I know of are for marketplace.
I'm checking with Marcin too
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Triggered by https://github.com/0xsequence/indexer/commit/9f3b69e7c34d0dbda79cab7d7796c398d5647036