File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed
Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change 11{
22 "name" : " @aithranetwork/sdk-aithra-toolkit" ,
3- "version" : " 0.0.7-alpha.4 " ,
3+ "version" : " 0.0.7-alpha.5 " ,
44 "description" : " The Aithra Network Toolkit SDK for the agents" ,
55 "main" : " dist/index.js" ,
66 "module" : " dist/index.mjs" ,
Original file line number Diff line number Diff line change @@ -52,6 +52,7 @@ export interface BuildMusicNFTResult {
5252 assetIds : string [ ] ;
5353 animationUrl : string ;
5454 trackUrl : string ;
55+ trackImageUrl : string ;
5556}
5657
5758export class AithraManager {
@@ -215,6 +216,7 @@ export class AithraManager {
215216 const animationUrl = animationResult . unwrap ( ) ;
216217
217218 const trackUrl = `https://gateway.lighthouse.storage/ipfs/${ uploadResult . unwrap ( ) [ 0 ] . hash } ` ;
219+ const trackImageUrl = `https://gateway.lighthouse.storage/ipfs/${ uploadResult . unwrap ( ) [ 1 ] . hash } ` ;
218220
219221 // 6. Generate and upload NFT metadata
220222 const nftConfig : MusicNFTConfig = {
@@ -302,7 +304,8 @@ export class AithraManager {
302304 success : true ,
303305 assetIds : mintResult . unwrap ( ) ,
304306 animationUrl : animationUrl ,
305- trackUrl : trackUrl
307+ trackUrl : trackUrl ,
308+ trackImageUrl :trackImageUrl
306309 } ) ;
307310 }
308311
You can’t perform that action at this time.
0 commit comments