Skip to content
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

fix: Add support for the signature server integration #124

Merged
merged 6 commits into from
Aug 11, 2022

Conversation

LautaroPetaccio
Copy link
Contributor

Closes #63

@@ -2,6 +2,7 @@ CORS_ORIGIN=*
CORS_METHOD=*
MARKETPLACE_SUBGRAPH_URL=https://api.thegraph.com/subgraphs/name/decentraland/marketplace
COLLECTIONS_SUBGRAPH_URL=https://api.thegraph.com/subgraphs/name/decentraland/collections-matic-mainnet
SIGNATURES_SERVER_URL=http://localhost:3000
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is this intentional or did this slip thru?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We can add whatever we want here as it's only for the specs, so I added a localhost site, but it could be anything we want.

Copy link
Member

@cazala cazala Aug 10, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yea but once the signatures server is live it should be something like https://signatures-api.decentraland.org right? Otherwise you need to have your own local instance running

src/ports/merger/types.ts Outdated Show resolved Hide resolved
rental.tokenId
)
if (!nftResult) {
throw new Error('NFT for the rental listing was not found')
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should the whole request fail if one nft is not found? Or should we filter them out? I honestly don't know the answer lol, but I figured asking would not hurt.

Copy link
Contributor Author

@LautaroPetaccio LautaroPetaccio Aug 10, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's a great question, filtering the item if the NFT doesn't exist would work, but that shouldn't ever happen, I mean, there can't be a listing without a NFT. Allowing listings to be created without NFTs might be a pretty big bug, we would like to know if this is happening I guess. What do you think?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Okay! As long as the signature server doesn't allow the creation of rents for nfts that are not part of the nft-server then I guess it's not an issue

src/logic/http/response.ts Show resolved Hide resolved
src/ports/rentals/components.ts Outdated Show resolved Hide resolved
@LautaroPetaccio LautaroPetaccio merged commit 51f43dc into master Aug 11, 2022
@LautaroPetaccio LautaroPetaccio deleted the feat/support-signatures-server branch August 11, 2022 19:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Integrate the rentals endpoints with the nft-server
2 participants