Skip to content

Commit

Permalink
+ sappy seals
Browse files Browse the repository at this point in the history
  • Loading branch information
sypeer committed Oct 13, 2022
1 parent a20265f commit afe3589
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 4 deletions.
15 changes: 13 additions & 2 deletions lib/buy-nft.js
Original file line number Diff line number Diff line change
Expand Up @@ -87,14 +87,24 @@ $(document).ready(() => {
let imageLink = result.metadata.image ? result.metadata.image : result.metadata.image_data
imageLink = imageLink.replace("ipfs://", "https://ipfs.io/ipfs/")
let id = result.id.tokenId
if (id.length > 10 | contractAddr === "0xb47e3cd837ddf8e4c57f05d70ab865de6e193bbb") {

const discreteOrderCollections = [
"0x57f1887a8bf19b14fc0df6fd9b2acc9af147ea85", // ENS
"0xb47e3cd837ddf8e4c57f05d70ab865de6e193bbb",
"0x364c828ee171616a39897688a831c2499ad972ec" // Sappy seals
]

if (discreteOrderCollections.includes(contractAddr)) {
$("#finalized-nft-token-id").text(result.id.tokenId)
$(".preapproval-div").hide()
if (id.length > 10) {
id = result.title
$("#finalized-nft-token-id").text(id)
$("#id-label").text("ENS Name")
}
if (contractAddr == "0x364c828ee171616a39897688a831c2499ad972ec") {
$("#buynow").text("Buy a Seal Coward, Pay Later")
}
} else {
$("#finalized-nft-token-id").text(id)
$(".request-div").hide()
Expand All @@ -121,7 +131,8 @@ $(document).ready(() => {
"999-club": "ens",
"10k-club": "ens",
"100k-club": "ens",
"cryptopunks": "cryptopunks"
"cryptopunks": "cryptopunks",
"sappy-seals": "sappy-seals"
}
const openseaCollectionLink = `https://opensea.io/collection/${collections[name]}`
$("#opensea-link").attr("href", openseaCollectionLink)
Expand Down
6 changes: 4 additions & 2 deletions lib/collections.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@ $(document).ready(() => {
"999-club": "999 Club",
"10k-club": "10K Club",
"100k-club": "100K Club",
"cryptopunks": "cryptopunks"
"cryptopunks": "cryptopunks",
"sappy-seals": "sappy-seals"
}

const collection_name = collections[requestedCollection]
Expand All @@ -49,7 +50,8 @@ $(document).ready(() => {
"999-club": "0x57f1887a8bf19b14fc0df6fd9b2acc9af147ea85", // ens
"10k-club": "0x57f1887a8bf19b14fc0df6fd9b2acc9af147ea85", // ens
"100k-club": "0x57f1887a8bf19b14fc0df6fd9b2acc9af147ea85", // ens
"cryptopunks": "0xb47e3cd837ddf8e4c57f05d70ab865de6e193bbb"
"cryptopunks": "0xb47e3cd837ddf8e4c57f05d70ab865de6e193bbb",
"sappy-seals": "0x364c828ee171616a39897688a831c2499ad972ec"
}

const collection_address = collectionAddresses[requestedCollection]
Expand Down

0 comments on commit afe3589

Please sign in to comment.