-
-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathindex.js
56 lines (49 loc) · 1.26 KB
/
index.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
const { ArtEngine, inputs, generators, renderers, exporters } = require('@hashlips-lab/art-engine');
const BASE_PATH = __dirname;
const ae = new ArtEngine({
cachePath: `${BASE_PATH}/cache`,
outputPath: `${BASE_PATH}/output`,
inputs: {
apes: new inputs.ImageLayersInput({
assetsBasePath: `${BASE_PATH}/data`,
}),
},
generators: [
new generators.ImageLayersAttributesGenerator({
dataSet: 'emoji',
startIndex: 0,
endIndex: 10,
}),
],
renderers: [
new renderers.ItemAttributesRenderer({
name: (itemUid) => `Emoji NFT ${itemUid}`,
description: (attributes) => {
return `This is a token with "${attributes['Background'][0]}" as Background`;
},
}),
new renderers.ImageLayersRenderer({
width: 2048,
height: 2048,
}),
],
exporters: [
new exporters.ImagesExporter(),
new exporters.Erc721MetadataExporter({
imageUriPrefix: 'ipfs://__CID__/',
}),
new exporters.SolMetadataExporter({
imageUriPrefix: 'ipfs://__CID__/',
symbol: 'EMOJI',
sellerFeeBasisPoints: 200,
collectionName: 'The Emojis',
creators: [
{
address: '__SOLANA_WALLET_ADDRESS_HERE__',
share: 100,
},
],
}),
],
});
ae.run();