You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Join the Discord server for more help from the community: [codeSTACKr Discord](https://discord.gg/A9CnsVzzkZ)
14
30
15
-
The macro script from the second video: [macro1.mmmacro](macro1.mmmacro)
31
+
The macro script from the "listing for sale" video: [macro1.mmmacro](macro1.mmmacro)
16
32
17
33
UPDATE: Added rarity calculator. See this [video](https://youtu.be/Uz1y4j9gvP8) for the walkthrough.
18
34
35
+
## COMMANDS
36
+
37
+
Generate:
38
+
```
39
+
$ npm run generate
40
+
```
41
+
- Generates unique images based on the layers in the `layers` folder.
42
+
- WARNING: This command deletes the `build` folder if it exists!
43
+
44
+
Rarity (Hashlips):
45
+
```
46
+
$ npm run rarity
47
+
```
48
+
- Calculates the rarity of NFT properties based on layer files.
49
+
50
+
Rarity (codeSTACKr):
51
+
```
52
+
$ npm run rarity_md
53
+
```
54
+
55
+
- Calculates the rarity of NFT properties based on metadata.
56
+
57
+
Rarity Rank (codeSTACKr):
58
+
```
59
+
$ npm run rarity_rank
60
+
```
61
+
62
+
- Provides ranking details through a user interface after calculating using the codeSTACKr Rarity command.
63
+
64
+
Update Info:
65
+
```
66
+
$ npm run update_info
67
+
```
68
+
69
+
- Allows you to update `namePrefix`, `description`, and/or `baseUri` for metadata after it was already generated.
70
+
71
+
Create Generic Metadata:
72
+
```
73
+
$ npm run create_generic
74
+
```
75
+
76
+
- Creates generic metadata using the settings from the `src/config.js` file.
77
+
78
+
Upload Files/Images:
79
+
```
80
+
$ npm run upload_files
81
+
```
82
+
83
+
- Uploads all files in the `build/images` folder.
84
+
85
+
Upload Metadata:
86
+
```
87
+
$ npm run upload_metadata
88
+
```
89
+
90
+
- Uploads all `.json` files in both the `build/json` folder and, if it exists, the `build/genericJson` folder as well.
91
+
92
+
Deploy Contract:
93
+
```
94
+
$ npm run deploy_contract
95
+
```
96
+
97
+
- Deploys a contract to the blockchain using the settings from the `src/config.js` file.
98
+
99
+
Get Contract:
100
+
```
101
+
$ npm run get_contract
102
+
```
103
+
104
+
- Gets the deployed contract details using the transactions hash from the Deploy Contract command.
105
+
106
+
Mint:
107
+
```
108
+
$ npm run mint
109
+
```
110
+
111
+
- Running this command with no flags will mint all NFTs
112
+
-`--start=1`
113
+
- The start flag indicates the edition number to start minting from.
114
+
-`--end=100`
115
+
- The end flag indicates the edition number to stop at.
116
+
- To start at a number and continue minting all, do not include the end flag.
117
+
- Make both flags the same number to only mint a single NFT.
118
+
- NOTE: The start and end numbers are inclusive.
119
+
120
+
Reveal:
121
+
```
122
+
$ npm run reveal
123
+
```
124
+
125
+
- Checks the contract owners wallet to see which NFTs have sold and reveals all sold NFTs.
126
+
- Including the `--start=1` and/or `--end=100` flags will reveal only the specified edition or range of editions.
127
+
- Make both flags the same number to only reveal a single NFT.
128
+
129
+
Check Transactions:
130
+
```
131
+
$ npm run check_txns --dir=minted
132
+
```
133
+
134
+
- Verifies the success of mint or reveal transactions.
135
+
- The `--dir` flag is required. Accepted values are `minted` or `revealed`.
136
+
137
+
Refresh OpenSea:
138
+
```
139
+
$ npm run refresh_os --start=1 --end=100
140
+
```
141
+
142
+
- Refreshes the listing for the specified editions on OpenSea.
143
+
- Both the `--start` and `--end` flags are required.
144
+
19
145
## UPDATES & FIXES
20
146
21
147
### npm not recognized
22
148
23
149
You have not installed [node.js](https://nodejs.org) properly (* and or if you're using a M1 on macs you'll need to downgrade your current version of node.js to v14 for it to work*). Be sure to follow the installation instructions from their download page for your specific operating system. And restart your computer after installation.
24
150
151
+
For Mac M1 users, see this issue for more details: [Hashlips Art Engine - Issue 812](https://github.com/HashLips/hashlips_art_engine/issues/812)
152
+
25
153
### Images not lining up
26
154
27
155
Be sure that every layer is the same size. If you want the resulting image to be 512x512, then each layer needs to be 512x512. This will ensure that everything lines up properly.
@@ -62,4 +190,4 @@ If you've reached your quota limit, contact NFTPort to upgrade your plan to get
62
190
- Copy your image layers into the `layers` folder.
63
191
- Use the `src/config.js` file to set up your layers and NFT information.
64
192
65
-
## Reference the [video](https://youtu.be/AaCgydeMu64) for more details. All commands to upload and mint are the same.
193
+
## Reference the [video](https://youtu.be/quGdJweadFM) for more details.
Copy file name to clipboardExpand all lines: src/config.js
+15-7Lines changed: 15 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -13,7 +13,7 @@ const baseUri = "ipfs://NewUriToReplace"; // This will be replaced automatically
13
13
// If you have selected Solana then the collection starts from 0 automatically
14
14
constlayerConfigurations=[
15
15
{
16
-
growEditionSizeTo: 50,
16
+
growEditionSizeTo: 5,
17
17
layersOrder: [
18
18
{name: "Background"},
19
19
{name: "Eyeball"},
@@ -42,27 +42,33 @@ const extraMetadata = {
42
42
43
43
// NFTPort Info
44
44
// ** REQUIRED **
45
-
constAUTH='YOUR API KEY HERE';
45
+
constAUTH="YOUR API KEY HERE";
46
46
constLIMIT=2;// Your API key rate limit
47
47
constCONTRACT_NAME='CRYPTOPUNKS';
48
48
constCONTRACT_SYMBOL='CP';
49
49
constCONTRACT_TYPE='erc721';
50
50
constMINT_TO_ADDRESS='YOUR WALLET ADDRESS HERE';
51
51
constCHAIN='rinkeby';
52
52
constMETADATA_UPDATABLE=true;// set to false if you don't want to allow metadata updates after minting
53
+
constROYALTY_SHARE=1000;// Percentage of the token price that goes to the royalty address. 100 bps = 1%
54
+
constROYALTY_ADDRESS="0xd8B808A887326F45B2D0cd999709Aa6264CeF919";// Address that will receive the royalty
53
55
// ** OPTIONAL **
54
-
letCONTRACT_ADDRESS='YOUR CONTRACT ADDRESS';// If you want to manually include it
56
+
letCONTRACT_ADDRESS="YOUR CONTRACT ADDRESS";// If you want to manually include it
55
57
// Generic Metadata is optional if you want to reveal your NFTs
56
58
constGENERIC=false;// Set to true if you want to upload generic metas and reveal the real NFTs in the future
57
-
constGENERIC_TITLE="Unknown"// Replace with what you want the generic titles to say.
58
-
constGENERIC_DESCRIPTION="Unknown"// Replace with what you want the generic descriptions to say.
59
-
constGENERIC_IMAGE=["https://ipfs.io/ipfs/QmUf9tDbkqnfHkQaMdFWSGAeXwVXWA61pFED7ypx4hcsfh"]// Replace with your generic image(s). If multiple, separate with a comma.
59
+
constGENERIC_TITLE="Unknown";// Replace with what you want the generic titles to say.
60
+
constGENERIC_DESCRIPTION="Unknown";// Replace with what you want the generic descriptions to say.
0 commit comments