forked from HashLips/hashlips_art_engine
-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathconfig.js
201 lines (178 loc) · 4.33 KB
/
config.js
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
import dotenv from 'dotenv';
dotenv.config();
import { MODE } from '../constants/blend_mode.js';
import { NETWORK } from '../constants/network.js';
// Default to BCH output, SOL and ETH are fully functional.
const network = NETWORK.bch;
// General collection metadata.
const collectionName = "Shinobi"; // Name of your collection.
const collectionDescription = "Elite digital ninjas, guardians of BCH."; // Description of your collection.
const namePrefix = "Shinobi"; // Prefix for the NFT name.
const description = "Elite digital ninja, guardian of BCH."; // NFT description.
const baseUri = process.env.SHINOBI_BASE_URI || "ipfs://NewUriToReplace/images";
const baseIconUri = process.env.SHINOBI_BASE_ICON_URI || "ipfs://NewUriToReplace/icons";
// Background for your collection. This is used for OpenAI integration.
const collectionBackground = `The Shinobi are elite digital ninjas, guardians of the BCH Blockchain and its Cashtokens. Entrusted by the mysterious Satoshi, they blend cryptographic arts with ancient martial traditions, ensuring the integrity and balance of the decentralized world.`;
// BCMR specific metadata.
const bcmrMetadata = {
"$schema": "https://cashtokens.org/bcmr-v2.schema.json",
version: {
major: 1,
minor: 0,
patch: 0
},
latestRevision: "",
registryIdentity: {
name: "Project Registry",
description: "Description for your registry.",
uris: {
icon: "https://example.com/img/icon.png",
web: "https://example.com/",
registry: "https://example.com/.well-known/bitcoin-cash-metadata-registry.json"
}
},
identities: {},
license: "CC0-1.0"
};
// Set the category to your CashToken genesis unspent.
// https://bitcash.dev/guide/cashtokens.html
const bchMetadata = {
category: "YOUR_GENESIS_UNSPENT_TX",
symbol: "SHINOBI",
uris: {
icon: "",
image: "",
web: "",
telegram: "",
twitter: "",
youtube: "",
instagram: "",
reddit: "",
},
};
const solanaMetadata = {
symbol: "SHO",
seller_fee_basis_points: 1000, // Define how much % you want from secondary market sales 1000 = 10%
external_url: "https://www.youtube.com/@CashNinjasBCH",
creators: [
{
address: "7fXNuer5sbZtaTEPhtJ5g5gNtuyRoKkvxdjEjEnPN4mC",
share: 100,
},
],
};
// Simple configuration.
// const layerConfigurations = [
// {
// growEditionSizeTo: 5,
// layersOrder: [
// { name: "Background" },
// { name: "Glow" },
// { name: "Weapons" },
// { name: "Body" },
// { name: "Eyes" },
// ],
// },
// ];
// Advanced configuration.
const layerConfigurations = [
{
growEditionSizeTo: 11,
layersOrder: [
{
name: "Background",
options: {
bypassDNA: false,
},
},
{ name: "Glow" },
{ name: "Weapons", options: { blend: MODE.overlay, opacity: 0.9 } },
{ name: "Body" },
{ name: "Eyes" },
],
},
];
const shuffleLayerConfigurations = false;
const debugLogs = false;
const format = {
width: 512,
height: 512,
smoothing: true,
};
// Icon metadata is not supported for Solana.
const iconFormat = {
enabled: network != NETWORK.sol ? true : false,
width: 256,
height: 256,
};
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: 16 / 128,
};
const background = {
generate: true,
brightness: "80%",
static: false,
default: "#000000",
};
const extraMetadata = {};
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: "MIXED", // ASC, DESC, MIXED
repeat: 0,
quality: 100,
delay: 500,
imageName: "preview.gif",
};
export {
format,
iconFormat,
baseUri,
baseIconUri,
description,
background,
uniqueDnaTorrance,
layerConfigurations,
rarityDelimiter,
preview,
shuffleLayerConfigurations,
debugLogs,
extraMetadata,
pixelFormat,
text,
namePrefix,
network,
bchMetadata,
bcmrMetadata,
solanaMetadata,
gif,
preview_gif,
collectionName,
collectionDescription,
collectionBackground,
};