Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mint #98

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open

Mint #98

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion backend/.env.example

This file was deleted.

Binary file removed backend/layers/Background/Black.png
Binary file not shown.
Binary file removed backend/layers/Background/Blue.png
Binary file not shown.
Binary file removed backend/layers/Background/Orange.png
Binary file not shown.
Binary file removed backend/layers/Background/Yellow.png
Binary file not shown.
Binary file removed backend/layers/Bottom lid/High High #20.png
Binary file not shown.
Binary file removed backend/layers/Bottom lid/Low#40.png
Binary file not shown.
Binary file removed backend/layers/Bottom lid/Middle#40.png
Binary file not shown.
Binary file removed backend/layers/Eye color/Cyan#1.png
Binary file not shown.
Binary file removed backend/layers/Eye color/Green#1.png
Binary file not shown.
Binary file removed backend/layers/Eye color/Pink#1.png
Binary file not shown.
Binary file removed backend/layers/Eye color/Purple#1.png
Binary file not shown.
Binary file removed backend/layers/Eye color/Red#1.png
Binary file not shown.
Binary file removed backend/layers/Eye color/Yellow#10.png
Binary file not shown.
Binary file removed backend/layers/Eyeball/Red#50.png
Binary file not shown.
Binary file removed backend/layers/Eyeball/White#50.png
Binary file not shown.
Binary file removed backend/layers/Goo/Green#1.png
Binary file not shown.
Binary file removed backend/layers/Iris/Large#20.png
Binary file not shown.
Binary file removed backend/layers/Iris/Medium#20.png
Binary file not shown.
Binary file removed backend/layers/Iris/Small#60.png
Binary file not shown.
Binary file removed backend/layers/Shine/Shapes#100.png
Binary file not shown.
Binary file removed backend/layers/Top lid/High#30.png
Binary file not shown.
Binary file removed backend/layers/Top lid/Low#20.png
Binary file not shown.
Binary file removed backend/layers/Top lid/Middle#50.png
Binary file not shown.
Binary file added backend/layers/background/background1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added backend/layers/background/background10.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added backend/layers/background/background11.png
Binary file added backend/layers/background/background12.png
Binary file added backend/layers/background/background13.png
Binary file added backend/layers/background/background14.png
Binary file added backend/layers/background/background15.png
Binary file added backend/layers/background/background16.png
Binary file added backend/layers/background/background17.png
Binary file added backend/layers/background/background18.png
Binary file added backend/layers/background/background19.png
Binary file added backend/layers/background/background2.png
Binary file added backend/layers/background/background20.png
Binary file added backend/layers/background/background3.png
Binary file added backend/layers/background/background4.png
Binary file added backend/layers/background/background5.png
Binary file added backend/layers/background/background6.png
Binary file added backend/layers/background/background7.png
Binary file added backend/layers/background/background8.png
Binary file added backend/layers/background/background9.png
Binary file added backend/layers/face/face1.png
Binary file added backend/layers/face/face10.png
Binary file added backend/layers/face/face11.png
Binary file added backend/layers/face/face12.png
Binary file added backend/layers/face/face13.png
Binary file added backend/layers/face/face14.png
Binary file added backend/layers/face/face15.png
Binary file added backend/layers/face/face16.png
Binary file added backend/layers/face/face17.png
Binary file added backend/layers/face/face18.png
Binary file added backend/layers/face/face19.png
Binary file added backend/layers/face/face2.png
Binary file added backend/layers/face/face20.png
Binary file added backend/layers/face/face21.png
Binary file added backend/layers/face/face22.png
Binary file added backend/layers/face/face23.png
Binary file added backend/layers/face/face24.png
Binary file added backend/layers/face/face25.png
Binary file added backend/layers/face/face26.png
Binary file added backend/layers/face/face27.png
Binary file added backend/layers/face/face28.png
Binary file added backend/layers/face/face29.png
Binary file added backend/layers/face/face3.png
Binary file added backend/layers/face/face30.png
Binary file added backend/layers/face/face31.png
Binary file added backend/layers/face/face32.png
Binary file added backend/layers/face/face33.png
Binary file added backend/layers/face/face34.png
Binary file added backend/layers/face/face35.png
Binary file added backend/layers/face/face36.png
Binary file added backend/layers/face/face37.png
Binary file added backend/layers/face/face38.png
Binary file added backend/layers/face/face39.png
Binary file added backend/layers/face/face4.png
Binary file added backend/layers/face/face40.png
Binary file added backend/layers/face/face5.png
Binary file added backend/layers/face/face6.png
Binary file added backend/layers/face/face7.png
Binary file added backend/layers/face/face8.png
Binary file added backend/layers/face/face9.png
Binary file added backend/layers/hand/hand1.png
Binary file added backend/layers/hand/hand10.png
Binary file added backend/layers/hand/hand11.png
Binary file added backend/layers/hand/hand12.png
Binary file added backend/layers/hand/hand13.png
Binary file added backend/layers/hand/hand14.png
Binary file added backend/layers/hand/hand15 (1).png
Binary file added backend/layers/hand/hand15.png
Binary file added backend/layers/hand/hand16.png
Binary file added backend/layers/hand/hand17.png
Binary file added backend/layers/hand/hand18.png
Binary file added backend/layers/hand/hand19.png
Binary file added backend/layers/hand/hand2.png
Binary file added backend/layers/hand/hand20.png
Binary file added backend/layers/hand/hand21.png
Binary file added backend/layers/hand/hand22.png
Binary file added backend/layers/hand/hand23.png
Binary file added backend/layers/hand/hand24.png
Binary file added backend/layers/hand/hand25.png
Binary file added backend/layers/hand/hand26.png
Binary file added backend/layers/hand/hand4.png
Binary file added backend/layers/hand/hand5.png
Binary file added backend/layers/hand/hand6.png
Binary file added backend/layers/hand/hand7.png
Binary file added backend/layers/hand/hand8.png
Binary file added backend/layers/hand/hand9.png
Binary file added backend/layers/hat/hat1.png
Binary file added backend/layers/hat/hat10.png
Binary file added backend/layers/hat/hat2.png
Binary file added backend/layers/hat/hat3.png
Binary file added backend/layers/hat/hat4.png
Binary file added backend/layers/hat/hat5.png
Binary file added backend/layers/hat/hat7.png
Binary file added backend/layers/hat/hat8.png
Binary file added backend/layers/hat/hat9.png
Binary file added backend/layers/hat/nohat.png
Binary file added backend/layers/peppers/peppers.png
232 changes: 113 additions & 119 deletions backend/src/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,194 +7,188 @@ const { NETWORK } = require(`${basePath}/constants/network.js`);
const network = NETWORK.eth;

// General metadata for Ethereum
const namePrefix = "YOUR COLLECTION NAME";
const description = "Remember to replace this description";
const namePrefix = "Hot Peppers";
const description = "Come to calabria! ";
const baseUri = "ipfs://NewUriToReplace"; // This will be replaced automatically

// If you have selected Solana then the collection starts from 0 automatically
const layerConfigurations = [
{
growEditionSizeTo: 5,
const layerConfigurations = [{
growEditionSizeTo: 10000,
layersOrder: [
{ name: "Background" },
{ name: "Eyeball" },
{ name: "Eye color" },
{ name: "Iris" },
{ name: "Shine" },
{ name: "Bottom lid" },
{ name: "Top lid" },
{ name: "background" },
{ name: "hand" },
{ name: "peppers" },
{ name: "hat" },
{ name: "face" },
],
},
];
}, ];

const shuffleLayerConfigurations = true;

const debugLogs = false;

const format = {
width: 512,
height: 512,
smoothing: false,
width: 3000,
height: 3000,
smoothing: false,
};

const extraMetadata = {
external_url: "https://codecats.xyz", // Replace with your website or remove this line if you do not have one.
external_url: "https://hotpeppersclub.com", // Replace with your website or remove this line if you do not have one.
};

// NFTPort Info

// ** REQUIRED **
const AUTH = process.env.NFTPORT_API_KEY; // Set this in the .env file to prevent exposing your API key when pushing to Github
const LIMIT = 2; // Your API key rate limit
const LIMIT = 10; // Your API key rate limit
const CHAIN = 'rinkeby'; // only rinkeby or polygon

// REQUIRED CONTRACT DETAILS THAT CANNOT BE UPDATED LATER!
const CONTRACT_NAME = 'CRYPTOPUNKS';
const CONTRACT_SYMBOL = 'CP';
const CONTRACT_NAME = 'Hot Peppers';
const CONTRACT_SYMBOL = 'PEP';
const METADATA_UPDATABLE = true; // set to false if you don't want to allow metadata updates after minting
const OWNER_ADDRESS = 'YOUR WALLET ADDRESS HERE';
const TREASURY_ADDRESS = 'YOUR WALLET ADDRESS HERE';
const MAX_SUPPLY = 5000; // The maximum number of NFTs that can be minted. CANNOT BE UPDATED!
const MINT_PRICE = 1; // Minting price per NFT. Rinkeby = ETH, Polygon = MATIC. CANNOT BE UPDATED!
const TOKENS_PER_MINT = 10; // maximum number of NFTs a user can mint in a single transaction. CANNOT BE UPDATED!
const OWNER_ADDRESS = '0xd8C89A37FdC5eAA51EB92969AE7FD27B95D4d57e';
const TREASURY_ADDRESS = '0xd8C89A37FdC5eAA51EB92969AE7FD27B95D4d57e';
const MAX_SUPPLY = 10000; // The maximum number of NFTs that can be minted. CANNOT BE UPDATED!
const MINT_PRICE = 0.10; // Minting price per NFT. Rinkeby = ETH, Polygon = MATIC. CANNOT BE UPDATED!
const TOKENS_PER_MINT = 5; // maximum number of NFTs a user can mint in a single transaction. CANNOT BE UPDATED!

// REQUIRED CONTRACT DETAILS THAT CAN BE UPDATED LATER.
const PUBLIC_MINT_START_DATE = "2022-03-20T11:30:48+00:00"; // This is required. Eg: 2022-02-08T11:30:48+00:00
const PUBLIC_MINT_START_DATE = "2022-07-15T09:00:48+00:00"; // This is required. Eg: 2022-02-08T11:30:48+00:00

// OPTIONAL CONTRACT DETAILS THAT CAN BE UPDATED LATER.
const PRESALE_MINT_START_DATE = null; // Optional. Eg: 2022-02-08T11:30:48+00:00
const ROYALTY_SHARE = 1000; // Percentage of the token price that goes to the royalty address. 100 bps = 1%
const ROYALTY_ADDRESS = "0xd8B808A887326F45B2D0cd999709Aa6264CeF919"; // Address that will receive the royalty
const ROYALTY_ADDRESS = "0xd8C89A37FdC5eAA51EB92969AE7FD27B95D4d57e"; // Address that will receive the royalty
const BASE_URI = null; // only update if you want to manually set the base uri
const PREREVEAL_TOKEN_URI = null; // only update if you want to manually set the prereveal token uri
const PRESALE_WHITELISTED_ADDRESSES = []; // only update if you want to manually set the whitelisted addresses
const PRESALE_WHITELISTED_ADDRESSES = []; // only update if you want to manually set the whitelisted addresses

// ** OPTIONAL **
let CONTRACT_ADDRESS = "YOUR CONTRACT ADDRESS"; // If you want to manually include it

// Generic Metadata is optional if you want to reveal your NFTs
const GENERIC = true; // Set to true if you want to upload generic metas and reveal the real NFTs in the future
const GENERIC_TITLE = CONTRACT_NAME; // Replace with what you want the generic titles to say if you want it to be different from the contract name.
const GENERIC_DESCRIPTION = "REPLACE THIS"; // Replace with what you want the generic descriptions to say.
const GENERIC_IMAGE = "https://ipfs.io/ipfs/QmUf9tDbkqnfHkQaMdFWSGAeXwVXWA61pFED7ypx4hcsfh"; // Replace with your generic image that will display for all NFTs pre-reveal.
const GENERIC_DESCRIPTION = "Wich Peppers will you get?"; // Replace with what you want the generic descriptions to say.
const GENERIC_IMAGE = "https://ipfs.io/ipfs/bafkreiaru3rl456wkcwgyo3jk35vjuxzjo6n2aqkq5hnt734owvyfwc5am"; // Replace with your generic image that will display for all NFTs pre-reveal.

// Automatically set contract address if deployed using the deployContract.js script
try {
const rawContractData = fs.readFileSync(
`${basePath}/build/contract/_contract.json`
);
const contractData = JSON.parse(rawContractData);
if (contractData.response === "OK" && contractData.error === null) {
CONTRACT_ADDRESS = contractData.contract_address;
}
const rawContractData = fs.readFileSync(
`${basePath}/build/contract/_contract.json`
);
const contractData = JSON.parse(rawContractData);
if (contractData.response === "OK" && contractData.error === null) {
CONTRACT_ADDRESS = contractData.contract_address;
}
} catch (error) {
// Do nothing, falling back to manual contract address
// Do nothing, falling back to manual contract address
}
// END NFTPort Info

const solanaMetadata = {
symbol: "YC",
seller_fee_basis_points: 1000, // Define how much % you want from secondary market sales 1000 = 10%
external_url: "https://www.youtube.com/c/hashlipsnft",
creators: [
{
address: "7fXNuer5sbZtaTEPhtJ5g5gNtuyRoKkvxdjEjEnPN4mC",
share: 100,
},
],
symbol: "YC",
seller_fee_basis_points: 1000, // Define how much % you want from secondary market sales 1000 = 10%
external_url: "https://www.youtube.com/c/hashlipsnft",
creators: [{
address: "7fXNuer5sbZtaTEPhtJ5g5gNtuyRoKkvxdjEjEnPN4mC",
share: 100,
}, ],
};

const gif = {
export: false,
repeat: 0,
quality: 100,
delay: 500,
export: false,
repeat: 0,
quality: 100,
delay: 500,
};

const text = {
only: false,
color: "#ffffff",
size: 20,
xGap: 40,
yGap: 40,
align: "left",
baseline: "top",
weight: "regular",
family: "Courier",
spacer: " => ",
only: false,
color: "#ffffff",
size: 20,
xGap: 40,
yGap: 40,
align: "left",
baseline: "top",
weight: "regular",
family: "Courier",
spacer: " => ",
};

const pixelFormat = {
ratio: 2 / 128,
ratio: 2 / 128,
};

const background = {
generate: true,
brightness: "80%",
static: false,
default: "#000000",
generate: true,
brightness: "80%",
static: false,
default: "#000000",
};

const rarityDelimiter = "#";

const uniqueDnaTorrance = 10000;

const preview = {
thumbPerRow: 5,
thumbWidth: 50,
imageRatio: format.height / format.width,
imageName: "preview.png",
thumbPerRow: 5,
thumbWidth: 50,
imageRatio: format.height / format.width,
imageName: "preview.png",
};

const preview_gif = {
numberOfImages: 5,
order: "ASC", // ASC, DESC, MIXED
repeat: 0,
quality: 100,
delay: 500,
imageName: "preview.gif",
numberOfImages: 5,
order: "ASC", // ASC, DESC, MIXED
repeat: 0,
quality: 100,
delay: 500,
imageName: "preview.gif",
};

module.exports = {
format,
baseUri,
description,
background,
uniqueDnaTorrance,
layerConfigurations,
rarityDelimiter,
preview,
shuffleLayerConfigurations,
debugLogs,
extraMetadata,
pixelFormat,
text,
namePrefix,
network,
solanaMetadata,
gif,
preview_gif,
AUTH,
LIMIT,
CONTRACT_ADDRESS,
OWNER_ADDRESS,
TREASURY_ADDRESS,
CHAIN,
GENERIC,
GENERIC_TITLE,
GENERIC_DESCRIPTION,
GENERIC_IMAGE,
CONTRACT_NAME,
CONTRACT_SYMBOL,
METADATA_UPDATABLE,
ROYALTY_SHARE,
ROYALTY_ADDRESS,
MAX_SUPPLY,
MINT_PRICE,
TOKENS_PER_MINT,
PRESALE_MINT_START_DATE,
PUBLIC_MINT_START_DATE,
BASE_URI,
PREREVEAL_TOKEN_URI,
PRESALE_WHITELISTED_ADDRESSES
};
format,
baseUri,
description,
background,
uniqueDnaTorrance,
layerConfigurations,
rarityDelimiter,
preview,
shuffleLayerConfigurations,
debugLogs,
extraMetadata,
pixelFormat,
text,
namePrefix,
network,
solanaMetadata,
gif,
preview_gif,
AUTH,
LIMIT,
CONTRACT_ADDRESS,
OWNER_ADDRESS,
TREASURY_ADDRESS,
CHAIN,
GENERIC,
GENERIC_TITLE,
GENERIC_DESCRIPTION,
GENERIC_IMAGE,
CONTRACT_NAME,
CONTRACT_SYMBOL,
METADATA_UPDATABLE,
ROYALTY_SHARE,
ROYALTY_ADDRESS,
MAX_SUPPLY,
MINT_PRICE,
TOKENS_PER_MINT,
PRESALE_MINT_START_DATE,
PUBLIC_MINT_START_DATE,
BASE_URI,
PREREVEAL_TOKEN_URI,
PRESALE_WHITELISTED_ADDRESSES
};
Binary file modified frontend/images/x-icon/android-chrome-192x192.png
Binary file modified frontend/images/x-icon/android-chrome-512x512.png
Binary file modified frontend/images/x-icon/apple-touch-icon.png
Binary file modified frontend/images/x-icon/favicon-16x16.png
Binary file modified frontend/images/x-icon/favicon-32x32.png
Binary file modified frontend/images/x-icon/favicon.ico
Binary file not shown.
Loading