-
Notifications
You must be signed in to change notification settings - Fork 26
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: Rentals NFT Component #152
Conversation
ec19aca
to
201062f
Compare
Co-authored-by: Juanma Hidalgo <juanma06@gmail.com>
Co-authored-by: Juanma Hidalgo <juanma06@gmail.com>
…_in no matter the amount of elements
lessors: [options.owner!], | ||
contractAddresses: [contractAddresses.land, contractAddresses.estate], | ||
isClaimed: false, | ||
// In order to avoid pagination issues, we need to fetch all the assets for this owner in the rentals subgraph. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would you mind creating a ticket to fix this eventually? We might forget about it and it could come in handy to have it recorded somewhere.
} | ||
|
||
// This function is currently not needed for the current use cases of this component so it will always return an empty array. | ||
async function fetchByTokenIds(_tokenIds: string[]): Promise<NFTResult[]> { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What if you make fetchByTokenIds
optional in the INFTsComponent
type?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is it really necessary?
Co-authored-by: Lautaro Petaccio <1120791+LautaroPetaccio@users.noreply.github.com>
Co-authored-by: Lautaro Petaccio <1120791+LautaroPetaccio@users.noreply.github.com>
Co-authored-by: Lautaro Petaccio <1120791+LautaroPetaccio@users.noreply.github.com>
Co-authored-by: Lautaro Petaccio <1120791+LautaroPetaccio@users.noreply.github.com>
* feat: Rental status option * feat: Remove rental status from source instantiation * feat: Get rental status to enhance nfts from query params * chore: Fix test * chore: Refactor logic for status
Closes #150
Added rentalsNFTComponent in charge of looking for assets that belonged to a certain user that are currently locked in the rentals contract.
With this component, any nft search with owner and isLand query params will also return the lands in the rentals contract that have lessor as the provided owner.