Skip to content

Commit

Permalink
feat: bump version to 0.0.7-alpha.5 and add trackImageUrl to BuildMus…
Browse files Browse the repository at this point in the history
…icNFTResult
  • Loading branch information
bucurdavid committed Feb 20, 2025
1 parent 45d6b3c commit 428d944
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@aithranetwork/sdk-aithra-toolkit",
"version": "0.0.7-alpha.4",
"version": "0.0.7-alpha.5",
"description": "The Aithra Network Toolkit SDK for the agents",
"main": "dist/index.js",
"module": "dist/index.mjs",
Expand Down
5 changes: 4 additions & 1 deletion src/core/manager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ export interface BuildMusicNFTResult {
assetIds: string[];
animationUrl: string;
trackUrl: string;
trackImageUrl: string;
}

export class AithraManager {
Expand Down Expand Up @@ -215,6 +216,7 @@ export class AithraManager {
const animationUrl = animationResult.unwrap();

const trackUrl = `https://gateway.lighthouse.storage/ipfs/${uploadResult.unwrap()[0].hash}`;
const trackImageUrl = `https://gateway.lighthouse.storage/ipfs/${uploadResult.unwrap()[1].hash}`;

// 6. Generate and upload NFT metadata
const nftConfig: MusicNFTConfig = {
Expand Down Expand Up @@ -302,7 +304,8 @@ export class AithraManager {
success: true,
assetIds: mintResult.unwrap(),
animationUrl: animationUrl,
trackUrl: trackUrl
trackUrl: trackUrl,
trackImageUrl:trackImageUrl
});
}

Expand Down

0 comments on commit 428d944

Please sign in to comment.