Skip to content

Commit

Permalink
feature: for sol mint of cNFT, use the attributes that drip mentioned…
Browse files Browse the repository at this point in the history
… so the indexers work better
  • Loading branch information
newbreedofgeek committed Dec 12, 2024
1 parent ecb9828 commit d06e316
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@itheum/sdk-mx-data-nft",
"version": "3.8.0-alpha.18",
"version": "3.8.0-alpha.19",
"description": "SDK for Itheum's Data NFT Technology on MultiversX Blockchain",
"main": "out/index.js",
"types": "out/index.d.js",
Expand Down
2 changes: 1 addition & 1 deletion src/cnft-sol-minter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ export class CNftSolMinter extends MinterSol {
* @param datasetTitle the title of the dataset. Between 10 and 60 alphanumeric characters.
* @param datasetDescription the description of the dataset. Between 10 and 400 alphanumeric characters.
* @param options [optional] below parameters are optional or required based on use case
* - imageUrl: the URL of the image for the Data NFT
* - imageUrl: the URL of the image for the Data NFT (HAS to be PNG as the cNFT metadata hardcodes the filetype property as PNG)
* - traitsUrl: the URL of the traits for the Data NFT
* - nftStorageToken: the nft storage token to be used to upload the image and metadata to IPFS
* - extraAssets: [optional] extra URIs to attached to the NFT. Can be media files, documents, etc. These URIs are public
Expand Down
14 changes: 13 additions & 1 deletion src/common/mint-utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,19 @@ export function createIpfsMetadataSolCNft(
itheum_data_stream_url: dataNFTStreamUrl,
itheum_data_preview_url: dataNFTStreamPreviewUrl,
itheum_data_marshal_url: dataNFTDataMarshalUrl,
attributes: [] as object[]
attributes: [] as object[],
animation_url: '',
external_url: 'https://itheum.io/datanfts-solana',
properties: {
category: 'image',
files: [
{
type: 'image/png',
uri: imageOnIpfsUrl
}
]
},
symbol: ''
};

if (extraAssets && extraAssets.length > 0) {
Expand Down

0 comments on commit d06e316

Please sign in to comment.