-
-
Notifications
You must be signed in to change notification settings - Fork 3.3k
Expand file tree
/
Copy pathconfig.js
More file actions
201 lines (176 loc) · 5.82 KB
/
config.js
File metadata and controls
201 lines (176 loc) · 5.82 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
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.rinkeby;
// General metadata for Ethereum
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: 20,
layersOrder: [
{ name: "Background" },
{ name: "Body" },
{ name: "Eyes" },
{ name: "Hair" },
{ name: "Nose" },
],
},
];
const shuffleLayerConfigurations = false;
const debugLogs = false;
const format = {
width: 840,
height: 640,
smoothing: false,
};
const extraMetadata = {
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
// REQUIRED CONTRACT DETAILS THAT CANNOT BE UPDATED LATER!
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 = "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-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 = "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 = [
"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 = "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 {
const rawContractData = fs.readFileSync(
`${basePath}/build/contract/_contract.json`
);
const contractData = JSON.parse(rawContractData);
if (contractData.response === "OK") {
CONTRACT_ADDRESS = contractData.contract_address;
}
} catch (error) {
// Do nothing, falling back to manual contract address
}
// END NFTPort Info
const solanaMetadata = {
symbol: "YC",
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: [
{
address: "7fXNuer5sbZtaTEPhtJ5g5gNtuyRoKkvxdjEjEnPN4mC",
share: 100,
},
],
};
const gif = {
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: " => ",
};
const pixelFormat = {
ratio: 2 / 128,
};
const background = {
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",
};
const 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,
};