diff --git a/pds/contracts/PackNFT_TopShot.cdc b/pds/contracts/PackNFT_TopShot.cdc index 689be77..bb50be8 100644 --- a/pds/contracts/PackNFT_TopShot.cdc +++ b/pds/contracts/PackNFT_TopShot.cdc @@ -234,9 +234,9 @@ access(all) contract PackNFT: NonFungibleToken, IPackNFT { ) let squareImage = MetadataViews.Media( file: MetadataViews.HTTPFile( - url: "https://nbatopshot.com/static/img/og/og.png" + url: "https://nbatopshot.com/static/favicon/favicon.svg" ), - mediaType: "image/png" + mediaType: "image/svg+xml" ) return MetadataViews.NFTCollectionDisplay( name: "NBA-Top-Shot-Packs", @@ -417,7 +417,8 @@ access(all) contract PackNFT: NonFungibleToken, IPackNFT { /// access(all) view fun getContractViews(resourceType: Type?): [Type] { return [ - Type() + Type(), + Type() ] } @@ -439,6 +440,31 @@ access(all) contract PackNFT: NonFungibleToken, IPackNFT { }) ) return collectionData + case Type(): + let bannerImage = MetadataViews.Media( + file: MetadataViews.HTTPFile( + url: "https://nbatopshot.com/static/img/top-shot-logo-horizontal-white.svg" + ), + mediaType: "image/svg+xml" + ) + let squareImage = MetadataViews.Media( + file: MetadataViews.HTTPFile( + url: "https://nbatopshot.com/static/favicon/favicon.svg" + ), + mediaType: "image/svg+xml" + ) + return MetadataViews.NFTCollectionDisplay( + name: "NBA-Top-Shot-Packs", + 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", + externalURL: MetadataViews.ExternalURL("https://nbatopshot.com/"), + squareImage: squareImage, + bannerImage: bannerImage, + socials: { + "twitter": MetadataViews.ExternalURL("https://twitter.com/nbatopshot"), + "discord": MetadataViews.ExternalURL("https://discord.com/invite/nbatopshot"), + "instagram": MetadataViews.ExternalURL("https://www.instagram.com/nbatopshot") + } + ) } return nil }