Skip to content

Commit 577ab16

Browse files
committed
init
0 parents  commit 577ab16

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

52 files changed

+2387
-0
lines changed

.gitignore

Lines changed: 146 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,146 @@
1+
# Logs
2+
3+
logs
4+
_.log
5+
npm-debug.log_
6+
yarn-debug.log*
7+
yarn-error.log*
8+
lerna-debug.log\*
9+
10+
# Diagnostic reports (https://nodejs.org/api/report.html)
11+
12+
report.[0-9]_.[0-9]_.[0-9]_.[0-9]_.json
13+
14+
# Runtime data
15+
16+
pids
17+
_.pid
18+
_.seed
19+
\*.pid.lock
20+
21+
# Directory for instrumented libs generated by jscoverage/JSCover
22+
23+
lib-cov
24+
25+
# Coverage directory used by tools like istanbul
26+
27+
coverage
28+
\*.lcov
29+
30+
# nyc test coverage
31+
32+
.nyc_output
33+
34+
# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files)
35+
36+
.grunt
37+
38+
# Bower dependency directory (https://bower.io/)
39+
40+
bower_components
41+
42+
# node-waf configuration
43+
44+
.lock-wscript
45+
46+
# Compiled binary addons (https://nodejs.org/api/addons.html)
47+
48+
build/Release
49+
50+
# Dependency directories
51+
52+
build/
53+
dist/
54+
node_modules/
55+
jspm_packages/
56+
package-lock.json
57+
yarn.lock
58+
59+
# TypeScript v1 declaration files
60+
61+
typings/
62+
63+
# TypeScript cache
64+
65+
\*.tsbuildinfo
66+
67+
# Optional npm cache directory
68+
69+
.npm
70+
71+
# Optional eslint cache
72+
73+
.eslintcache
74+
75+
# Microbundle cache
76+
77+
.rpt2_cache/
78+
.rts2_cache_cjs/
79+
.rts2_cache_es/
80+
.rts2_cache_umd/
81+
82+
# Optional REPL history
83+
84+
.node_repl_history
85+
86+
# Output of 'npm pack'
87+
88+
\*.tgz
89+
90+
# Yarn Integrity file
91+
92+
.yarn-integrity
93+
94+
# dotenv environment variables file
95+
96+
.env
97+
.env.test
98+
99+
# parcel-bundler cache (https://parceljs.org/)
100+
101+
.cache
102+
103+
# Next.js build output
104+
105+
.next
106+
107+
# Nuxt.js build / generate output
108+
109+
.nuxt
110+
dist
111+
112+
# Gatsby files
113+
114+
.cache/
115+
116+
# Comment in the public line in if your project uses Gatsby and _not_ Next.js
117+
118+
# https://nextjs.org/blog/next-9-1#public-directory-support
119+
120+
# public
121+
122+
# vuepress build output
123+
124+
.vuepress/dist
125+
126+
# Serverless directories
127+
128+
.serverless/
129+
130+
# FuseBox cache
131+
132+
.fusebox/
133+
134+
# DynamoDB Local files
135+
136+
.dynamodb/
137+
138+
# TernJS port file
139+
140+
.tern-port
141+
142+
# OSX
143+
144+
.DS_Store
145+
146+
build*

LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2021 codeSTACKr
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

README.md

Lines changed: 142 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,142 @@
1+
# Minting DAPP
2+
3+
## Table of Contents
4+
5+
- [RESOURCES](#resources)
6+
- [Installation](#installation)
7+
- [COMMANDS](#commands)
8+
9+
## RESOURCES
10+
11+
Video:
12+
13+
🌟 [How To Create An ENTIRE NFT Collection (10,000+) & MINT with ZERO Coding Knowledge v2.0](https://youtu.be/quGdJweadFM)
14+
15+
Base code is from [hashlips_art_engine](https://github.com/HashLips/hashlips_art_engine)
16+
17+
Minting uses [NFTPort](https://nftport.xyz)
18+
19+
Join the Discord server for more help from the community: [codeSTACKr Discord](https://discord.gg/A9CnsVzzkZ)
20+
21+
## INSTALLATION
22+
23+
- Clone this repo or download the latest release zip file.
24+
- Unzip, if needed, and open the folder in VS Code.
25+
- From the terminal run:
26+
```
27+
npm install
28+
```
29+
- Copy your image layers into the `layers` folder.
30+
- Use the `src/config.js` file to set up your layers and NFT information.
31+
32+
## COMMANDS
33+
34+
Generate:
35+
```
36+
$ npm run generate
37+
```
38+
- Generates unique images based on the layers in the `layers` folder.
39+
- WARNING: This command deletes the `build` folder if it exists!
40+
41+
Rarity (Hashlips):
42+
```
43+
$ npm run rarity
44+
```
45+
- Calculates the rarity of NFT properties based on layer files.
46+
47+
Rarity (codeSTACKr):
48+
```
49+
$ npm run rarity_md
50+
```
51+
52+
- Calculates the rarity of NFT properties based on metadata.
53+
54+
Rarity Rank (codeSTACKr):
55+
```
56+
$ npm run rarity_rank
57+
```
58+
59+
- Provides ranking details through a user interface after calculating using the codeSTACKr Rarity command.
60+
61+
Update Info:
62+
```
63+
$ npm run update_info
64+
```
65+
66+
- Allows you to update `namePrefix`, `description`, and/or `baseUri` for metadata after it was already generated.
67+
68+
Create Generic Metadata:
69+
```
70+
$ npm run create_generic
71+
```
72+
73+
- Creates generic metadata using the settings from the `src/config.js` file.
74+
75+
Upload Files/Images:
76+
```
77+
$ npm run upload_files
78+
```
79+
80+
- Uploads all files in the `build/images` folder.
81+
82+
Upload Metadata:
83+
```
84+
$ npm run upload_metadata
85+
```
86+
87+
- Uploads all `.json` files in both the `build/json` folder and, if it exists, the `build/genericJson` folder as well.
88+
89+
Deploy Contract:
90+
```
91+
$ npm run deploy_contract
92+
```
93+
94+
- Deploys a contract to the blockchain using the settings from the `src/config.js` file.
95+
96+
Get Contract:
97+
```
98+
$ npm run get_contract
99+
```
100+
101+
- Gets the deployed contract details using the transactions hash from the Deploy Contract command.
102+
103+
Mint:
104+
```
105+
$ npm run mint
106+
```
107+
108+
- Running this command with no flags will mint all NFTs
109+
- `--start=1`
110+
- The start flag indicates the edition number to start minting from.
111+
- `--end=100`
112+
- The end flag indicates the edition number to stop at.
113+
- To start at a number and continue minting all, do not include the end flag.
114+
- Make both flags the same number to only mint a single NFT.
115+
- NOTE: The start and end numbers are inclusive.
116+
117+
Reveal:
118+
```
119+
$ npm run reveal
120+
```
121+
122+
- Checks the contract owners wallet to see which NFTs have sold and reveals all sold NFTs.
123+
- Including the `--start=1` and/or `--end=100` flags will reveal only the specified edition or range of editions.
124+
- Make both flags the same number to only reveal a single NFT.
125+
126+
Check Transactions:
127+
```
128+
$ npm run check_txns --dir=minted
129+
```
130+
131+
- Verifies the success of mint or reveal transactions.
132+
- The `--dir` flag is required. Accepted values are `minted` or `revealed`.
133+
134+
Refresh OpenSea:
135+
```
136+
$ npm run refresh_os --start=1 --end=100
137+
```
138+
139+
- Refreshes the listing for the specified editions on OpenSea.
140+
- Both the `--start` and `--end` flags are required.
141+
142+
## Reference the [video](https://youtu.be/quGdJweadFM) for more details.

backend/constants/blend_mode.js

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
const MODE = {
2+
sourceOver: "source-over",
3+
sourceIn: "source-in",
4+
sourceOut: "source-out",
5+
sourceAtop: "source-out",
6+
destinationOver: "destination-over",
7+
destinationIn: "destination-in",
8+
destinationOut: "destination-out",
9+
destinationAtop: "destination-atop",
10+
lighter: "lighter",
11+
copy: "copy",
12+
xor: "xor",
13+
multiply: "multiply",
14+
screen: "screen",
15+
overlay: "overlay",
16+
darken: "darken",
17+
lighten: "lighten",
18+
colorDodge: "color-dodge",
19+
colorBurn: "color-burn",
20+
hardLight: "hard-light",
21+
softLight: "soft-light",
22+
difference: "difference",
23+
exclusion: "exclusion",
24+
hue: "hue",
25+
saturation: "saturation",
26+
color: "color",
27+
luminosity: "luminosity",
28+
};
29+
30+
module.exports = {
31+
MODE,
32+
};

backend/constants/network.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
const NETWORK = {
2+
eth: "eth",
3+
sol: "sol",
4+
};
5+
6+
module.exports = {
7+
NETWORK,
8+
};

backend/index.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
const basePath = process.cwd();
2+
const { startCreating, buildSetup } = require(`${basePath}/src/main.js`);
3+
4+
(() => {
5+
buildSetup();
6+
startCreating();
7+
})();

backend/layers/Background/Black.png

2.37 KB
Loading

backend/layers/Background/Blue.png

1.88 KB
Loading

backend/layers/Background/Orange.png

1.88 KB
Loading

backend/layers/Background/Yellow.png

1.88 KB
Loading

0 commit comments

Comments
 (0)