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

Add parser for third party collections #118

Merged
merged 7 commits into from
Apr 13, 2022

Conversation

agusaldasoro
Copy link
Contributor

No description provided.

@@ -115,7 +115,7 @@ export type BlockchainCollectionV2Asset = BaseBlockchainAsset & {
/**
* @public
*/
export type BlockchainCollectionThirdParty = BaseBlockchainAsset & {
export type BlockchainCollectionThirdPartyItem = BaseBlockchainAsset & {
namespace: 'decentraland'
type: "blockchain-collection-third-party"
Copy link
Member

Choose a reason for hiding this comment

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

id should be different for third party collection and third party collection item

Copy link
Contributor Author

Choose a reason for hiding this comment

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

That's something that I wasn't sure about, anyway, should I make a breaking change for the items? Or how should I name the collection itself? 🤔

Choose a reason for hiding this comment

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

To be consistent with the others collection, i think it should be BlockchainCollectionThirdParty for the collection and BlockchainCollectionThirdPartyAsset for the items.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I thought the same, but doing that will imply a breaking change: BlockchainCollectionThirdParty -> BlockchainCollectionThirdPartyAsset and we want to avoid that

Choose a reason for hiding this comment

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

😭

test/urn.spec.ts Outdated
blockchain: "ethereum",
thirdPartyName: "aThirdParty",
network: "mumbai",
type: "blockchain-collection-third-party"
Copy link
Member

Choose a reason for hiding this comment

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

type should be different for third party collection and third party collection item

@agusaldasoro agusaldasoro requested a review from menduz April 12, 2022 14:13
src/resolvers.ts Outdated
@@ -263,7 +266,7 @@ export async function resolveCollectionV2(
}
}

export async function resolveThirdPartyCollection(
export async function resolveThirdPartyCollectionItem(

Choose a reason for hiding this comment

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

Item -> Asset?

@agusaldasoro agusaldasoro merged commit 27d9f4c into main Apr 13, 2022
@agusaldasoro agusaldasoro deleted the add-parser-for-tpcollections branch April 13, 2022 20:41
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.

3 participants