-
Notifications
You must be signed in to change notification settings - Fork 9
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/metadata-field-hip-766 #64
feat/metadata-field-hip-766 #64
Conversation
Signed-off-by: michalrozekariane <[email protected]>
…adata-field-hip-766 Signed-off-by: michalrozekariane <[email protected]>
Signed-off-by: michalrozekariane <[email protected]>
Signed-off-by: michalrozekariane <[email protected]>
Signed-off-by: michalrozekariane <[email protected]>
Signed-off-by: michalrozekariane <[email protected]>
Signed-off-by: michalrozekariane <[email protected]>
Signed-off-by: michalrozekariane <[email protected]>
Signed-off-by: michalrozekariane <[email protected]>
Signed-off-by: michalrozekariane <[email protected]>
Signed-off-by: michalrozekariane <[email protected]>
Signed-off-by: michalrozekariane <[email protected]>
Signed-off-by: michalrozekariane <[email protected]>
README.md
Outdated
@@ -30,6 +30,7 @@ This package includes all sorts of tooling for the Hedera NFT ecosystem, includi | |||
- **PinataService:** Utilizes Pinata Cloud to pin files to IPFS, providing an `ipfs://` URL upon successful upload. Includes metadata and options customization. | |||
- **NftStorageService:** Integrates with the NFT.storage API to upload files directly to IPFS and returns an `ipfs://` URL. It supports dynamic API key usage based on a provided list. | |||
- **MockStorageService:** A mock storage service for testing purposes, returning predefined URLs. | |||
15. **Collection Metadata Validation** Provides a possibility to validate the collection metadata of a collection against the HIP766 metadata schema. This method can handle both direct HTTP(S) URLs or IPFS CIDs as input. If an IPFS CID is provided without a full URL, the method will attempt to use an IPFS gateway to retrieve the metadata. The IPFS gateway parameter is optional; if not specified and required (i.e., when a CID is provided without a full URL), the method will throw an error indicating that the IPFS gateway is required. This ensures that the metadata conforms to the standards required for NFT collections on the Hedera network. The validator provides a thorough check, highlighting any errors or missing fields in the collection metadata structure. |
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.
change HIP766 to HIP-766 and add a hyperlink to https://hips.hedera.com/hip/hip-766
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.
done
README.md
Outdated
@@ -1812,6 +1814,39 @@ type UploadResult = { | |||
|
|||
--- | |||
|
|||
## Collection Metadata Validation | |||
|
|||
The `validateCollectionMetadata` validates the metadata of a collection against the [HIP766 metadata schema](https://hips.hedera.com/hip/hip-766) using a specified IPFS gateway to retrieve the metadata. This method ensures that the metadata conforms to the standards required for NFT collections on the Hedera network, offering a comprehensive check that highlights any errors or missing fields in the metadata structure. |
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.
change HIP766 to HIP-766
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.
done
README.md
Outdated
|
||
This method returns an object that contains: | ||
|
||
- `isValid`: A boolean flag indicating whether the metadata conforms to the HIP766 schema. |
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.
change HIP766 to HIP-766
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.
done
Signed-off-by: michalrozekariane <[email protected]>
Signed-off-by: kacper-koza-arianelabs <[email protected]>
Signed-off-by: kacper-koza-arianelabs <[email protected]>
Signed-off-by: kacper-koza-arianelabs <[email protected]>
398f480
to
d4dd707
Compare
Checklist