Skip to content

merge to main #116

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

Open
wants to merge 32 commits into
base: main
Choose a base branch
from
Open
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
8 changes: 8 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
// Is git enabled
"git.enabled": true,

// Path to the git executable
"git.path": "C:\\git.exe",
"liveServer.settings.port": 5501
}
1 change: 0 additions & 1 deletion backend/.env.example

This file was deleted.

Binary file added backend/layers/Background/#1.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/#2.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/#3.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/#4.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/#5.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 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 added backend/layers/Body/#1.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/Body/#2.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/Body/#3.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/Body/#4.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/Body/#5.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 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 added backend/layers/Eyes/#1.png
Binary file added backend/layers/Eyes/#2.png
Binary file added backend/layers/Eyes/#3.png
Binary file added backend/layers/Eyes/#4.png
Binary file added backend/layers/Eyes/#5.png
Binary file removed backend/layers/Goo/Green#1.png
Diff not rendered.
Binary file added backend/layers/Hair/#1.png
Binary file added backend/layers/Hair/#2.png
Binary file added backend/layers/Hair/#3.png
Binary file added backend/layers/Hair/#4.png
Binary file added backend/layers/Hair/#5.png
Binary file removed backend/layers/Iris/Large#20.png
Diff not rendered.
Binary file removed backend/layers/Iris/Medium#20.png
Diff not rendered.
Binary file removed backend/layers/Iris/Small#60.png
Diff not rendered.
Binary file added backend/layers/Nose/#1.png
Binary file added backend/layers/Nose/#2.png
Binary file added backend/layers/Nose/#3.png
Binary file added backend/layers/Nose/#4.png
Binary file added backend/layers/Nose/#5.png
Binary file removed backend/layers/Shine/Shapes#100.png
Diff not rendered.
Binary file removed backend/layers/Top lid/High#30.png
Diff not rendered.
Binary file removed backend/layers/Top lid/Low#20.png
Diff not rendered.
Binary file removed backend/layers/Top lid/Middle#50.png
Diff not rendered.
64 changes: 33 additions & 31 deletions backend/src/config.js
Original file line number Diff line number Diff line change
@@ -1,81 +1,83 @@
require('dotenv').config();
require("dotenv").config();
const basePath = process.cwd();
const fs = require("fs");
const { MODE } = require(`${basePath}/constants/blend_mode.js`);
const { NETWORK } = require(`${basePath}/constants/network.js`);

const network = NETWORK.eth;
const network = NETWORK.rinkeby;

// General metadata for Ethereum
const namePrefix = "YOUR COLLECTION NAME";
const description = "Remember to replace this description";
const namePrefix = "Centurion";
const description =
"The CENTURION NFT is a collection of 3,333 unique NFTs on the Polygon Blockchain. A centurion—an officer who was leading the ancient Roman army-inspired these NFT concepts. We combine the centurion and his horse in one frame to solidify their comradeship.";
const baseUri = "ipfs://NewUriToReplace"; // This will be replaced automatically

const layerConfigurations = [
{
growEditionSizeTo: 5,
growEditionSizeTo: 20,
layersOrder: [
{ name: "Background" },
{ name: "Eyeball" },
{ name: "Eye color" },
{ name: "Iris" },
{ name: "Shine" },
{ name: "Bottom lid" },
{ name: "Top lid" },
{ name: "Body" },
{ name: "Eyes" },
{ name: "Hair" },
{ name: "Nose" },
],
},
];

const shuffleLayerConfigurations = true;
const shuffleLayerConfigurations = false;

const debugLogs = false;

const format = {
width: 512,
height: 512,
width: 840,
height: 640,
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: "", // 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 CHAIN = 'rinkeby'; // only rinkeby, polygon, or ethereum
const CHAIN = "rinkeby"; // only rinkeby, polygon, or ethereum

// REQUIRED CONTRACT DETAILS THAT CANNOT BE UPDATED LATER!
const CONTRACT_NAME = 'CRYPTOPUNKS';
const CONTRACT_SYMBOL = 'CP';
const CONTRACT_NAME = "Centurion";
const CONTRACT_SYMBOL = "CTN";
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 = 0.01; // Minting price per NFT. Rinkeby = ETH, Ethereum = ETH, Polygon = MATIC. CANNOT BE UPDATED!
const OWNER_ADDRESS = "0x7E5BfEe47F306cBA07E8DbAeb44aa1465c1c00C2";
const TREASURY_ADDRESS = "0x7E5BfEe47F306cBA07E8DbAeb44aa1465c1c00C2";
const MAX_SUPPLY = 20; // The maximum number of NFTs that can be minted. CANNOT BE UPDATED!
const MINT_PRICE = 0.001; // Minting price per NFT. Rinkeby = ETH, Ethereum = 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!

// 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-08-05T11:30: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 PRESALE_MINT_START_DATE = "2022-07-01T11:30:48+00:00"; // Optional. Eg: 2022-02-08T11:30:48+00:00
const ROYALTY_SHARE = 100; // Percentage of the token price that goes to the royalty address. 100 bps = 1%
const ROYALTY_ADDRESS = "0x7E5BfEe47F306cBA07E8DbAeb44aa1465c1c00C2"; // 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 = [
"0x6311260610f37dc84E579CE8eE483856F2C75bc9",
]; // 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 = "NFT reveal soon"; // Replace with what you want the generic descriptions to say.
const GENERIC_IMAGE =
"https://ipfs.io/ipfs/bafkreiea3gvhop37yi2747iz3xxkjyatwocmrrpgujfcvpruvpux7znv4i"; // 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 {
Expand All @@ -93,7 +95,7 @@ try {

const solanaMetadata = {
symbol: "YC",
seller_fee_basis_points: 1000, // Define how much % you want from secondary market sales 1000 = 10%
seller_fee_basis_points: 100, // Define how much % you want from secondary market sales 1000 = 10%
external_url: "https://www.youtube.com/c/hashlipsnft",
creators: [
{
Expand Down Expand Up @@ -195,5 +197,5 @@ module.exports = {
PUBLIC_MINT_START_DATE,
BASE_URI,
PREREVEAL_TOKEN_URI,
PRESALE_WHITELISTED_ADDRESSES
PRESALE_WHITELISTED_ADDRESSES,
};
7 changes: 7 additions & 0 deletions frontend/.htaccess
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@



RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME}\.html -f
RewriteRule ^(.*)$ $1.html [NC,L]
73 changes: 73 additions & 0 deletions frontend/contact.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="stylesheet" href="css/contact-style.css" />
<link
href="https://fonts.googleapis.com/css?family=Quicksand&display=swap"
rel="stylesheet"
/>
<link rel="shortcut icon" type="x-icon" href="images/header/icon.png" />
<link
rel="stylesheet"
href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.1.1/css/all.min.css"
/>
<title>Centurion-Contact Us</title>
</head>
<body>
<div class="container">
<div class="contact-box">
<div class="left">
<h1>We love to hear from you.</h1>
<h3>
Please use the form to reach out and share your comments and
suggestions.
</h3>
</div>
<div class="right">
<a onclick="back()"> <i class="fa fa-close"></i> </a>
<h2>Contact Us</h2>
<form
action="https://formsubmit.co/110945613fd2086b377644d13f2be465"
method="POST"
>
<input
type="name"
name="Name"
class="field"
placeholder="Full Name"
required
/>
<input
type="email"
name="Email"
class="field"
placeholder="Email Address"
required
/>
<input
type="country"
name="Country"
class="field"
placeholder="Country"
/>
<textarea
placeholder="Message"
name="Message"
class="field"
></textarea>
<button class="btn">Send</button>
</form>
</div>
</div>
</div>

<script type="text/javascript">
function back() {
window.history.back();
}
</script>
</body>
</html>
Loading