Skip to content

Commit 9818cba

Browse files
committed
added display
1 parent 19ddf0b commit 9818cba

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

pds/contracts/PackNFT_TopShot.cdc

+25
Original file line numberDiff line numberDiff line change
@@ -439,6 +439,31 @@ access(all) contract PackNFT: NonFungibleToken, IPackNFT {
439439
})
440440
)
441441
return collectionData
442+
case Type<MetadataViews.NFTCollectionDisplay>():
443+
let bannerImage = MetadataViews.Media(
444+
file: MetadataViews.HTTPFile(
445+
url: "https://nbatopshot.com/static/img/top-shot-logo-horizontal-white.svg"
446+
),
447+
mediaType: "image/svg+xml"
448+
)
449+
let squareImage = MetadataViews.Media(
450+
file: MetadataViews.HTTPFile(
451+
url: "https://nbatopshot.com/static/img/og/og.png"
452+
),
453+
mediaType: "image/png"
454+
)
455+
return MetadataViews.NFTCollectionDisplay(
456+
name: "NBA-Top-Shot-Packs",
457+
description: "NBA Top Shot is your chance to own, sell, and trade official digital collectibles of the NBA and WNBA's greatest plays and players",
458+
externalURL: MetadataViews.ExternalURL("https://nbatopshot.com/"),
459+
squareImage: squareImage,
460+
bannerImage: bannerImage,
461+
socials: {
462+
"twitter": MetadataViews.ExternalURL("https://twitter.com/nbatopshot"),
463+
"discord": MetadataViews.ExternalURL("https://discord.com/invite/nbatopshot"),
464+
"instagram": MetadataViews.ExternalURL("https://www.instagram.com/nbatopshot")
465+
}
466+
)
442467
}
443468
return nil
444469
}

0 commit comments

Comments
 (0)