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

feat: Support Exotic rarity #367

Merged
merged 5 commits into from
Apr 3, 2024
Merged

Conversation

LautaroPetaccio
Copy link
Contributor

@LautaroPetaccio LautaroPetaccio commented Apr 3, 2024

This PR changes the NFT server to support the exotic rarity.

@@ -210,7 +210,7 @@ export const getOrdersQuery = (

export function fromOrderFragment(
fragment: OrderFragment,
network: Network,
network: Network.MATIC | Network.ETHEREUM,

Choose a reason for hiding this comment

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

cant we use AssetsNetwork here too?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done!

fromItemFragment(fragment, network, chainId)
fromItemFragment(
fragment,
network as Network.ETHEREUM | Network.MATIC,

Choose a reason for hiding this comment

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

is this necessary? fromItemFragment is receiving AssetsNetwork too

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This network variable comes from the ItemFilters, which is still using the Rarity type. As changing it might impact multiple projects, I chose casting it here, but I made sure that we were getting one or the other when receiving the query parameters.

@LautaroPetaccio LautaroPetaccio merged commit 1d3cf97 into master Apr 3, 2024
1 check passed
@LautaroPetaccio LautaroPetaccio deleted the feat/support-exotic-rarity branch April 3, 2024 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.

2 participants