Skip to content

Commit

Permalink
NFT launchpad
Browse files Browse the repository at this point in the history
  • Loading branch information
tempe-techie committed Sep 30, 2023
1 parent 4d93261 commit 6462f54
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 7 deletions.
2 changes: 1 addition & 1 deletion components/navbars/NavbarDesktop.vue
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
<div class="dropdown-menu dropdown-menu-end">
<NuxtLink class="dropdown-item cursor-pointer" to="/airdrop">Claim {{ $config.chatTokenSymbol }} airdrop</NuxtLink>
<NuxtLink class="dropdown-item cursor-pointer" to="/stake">Stake & earn weekly {{ $config.tokenSymbol }} rewards</NuxtLink>
<span class="dropdown-item cursor-pointer" @click="addToMetaMask">Add {{ $config.chatTokenSymbol }} to MetaMask</span>s
<span class="dropdown-item cursor-pointer" @click="addToMetaMask">Add {{ $config.chatTokenSymbol }} to MetaMask</span>
</div>
</li>

Expand Down
2 changes: 1 addition & 1 deletion nuxt.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ export default defineNuxtConfig({
maxImageUploadSizeMb: 1, // max image upload size in MB
newsletterLink: "",
nftDefaultRatio: 1, // default ratio for the NFT price bonding curve
nftLaunchpadBondingAddress: "", // NFT launchpad with bonding curve contract address
nftLaunchpadBondingAddress: "0x0Eb744549406eeBb135C0bc139Ad63ac56350b66", // NFT launchpad with bonding curve contract address
nftLaunchpadLatestItems: 4, // number of latest NFTs to show in the NFT launchpad
nftOrbisContext: "kjzl6cwe1jw1490l9agydb0vh2x0mddzxbsmga7s3yhl86utbhwne6zkhpikytw", // Orbis context for NFT collection pages
orbisCategories: [ // use only alphanumeric ASCII characters for slugs! (no spaces, only dash is allowed)
Expand Down
9 changes: 4 additions & 5 deletions pages/nft/collection.vue
Original file line number Diff line number Diff line change
Expand Up @@ -476,7 +476,6 @@ export default {
}
const nftInterface = new ethers.utils.Interface([
"function collectionPreview() public view returns (string memory)",
"function getBurnPrice() public view returns (uint256)",
"function getMintPrice() public view returns (uint256)",
"function metadataAddress() public view returns (address)",
Expand All @@ -495,8 +494,8 @@ export default {
}
const metadataInterface = new ethers.utils.Interface([
"function descriptions(address) public view returns (string memory)",
"function names(address) public view returns (string memory)"
"function getCollectionDescription(address) public view returns (string memory)",
"function getCollectionPreviewImage(address) public view returns (string memory)"
]);
const metadataContract = new ethers.Contract(this.mdAddress, metadataInterface, provider);
Expand All @@ -509,14 +508,14 @@ export default {
if (collection?.image) {
this.cImage = collection.image;
} else {
this.cImage = await nftContract.collectionPreview();
this.cImage = await metadataContract.getCollectionPreviewImage(this.cAddress);
}
// get description
if (collection?.description && collection.description !== "" && collection.description !== null) {
this.cDescription = collection.description;
} else {
this.cDescription = await metadataContract.descriptions(this.cAddress);
this.cDescription = await metadataContract.getCollectionDescription(this.cAddress);
}
// get name
Expand Down

1 comment on commit 6462f54

@vercel
Copy link

@vercel vercel bot commented on 6462f54 Sep 30, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.