📌ERC1155
Overview
This contract is an advanced ERC1155 implementation, featuring mint limits, whitelisting, scheduled drops, airdrop functionality, and social media integration. It's designed to offer flexible and controlled NFT minting and distribution.
Methods
setPresaleTime
setPresaleTime
Sets the timestamp for starting pre-sales.
Parameters
_preSaleTime
uint256
Timestamp to start the pre-sale.
perWalletPreSaleMint
perWalletPreSaleMint
Allows whitelisted addresses to mint a specified amount of tokens during the pre-sale, adhering to per-wallet limits.
Parameters
amount
uint256
Number of tokens to mint.
preSaleMint
preSaleMint
Allows whitelisted addresses to mint a specified amount of tokens during the pre-sale.
Parameters
amount
uint256
Number of tokens to mint.
setScheduleDropMintTime
setScheduleDropMintTime
Sets the start and end times for scheduled drop mints.
Parameters
_startDropTime
uint256
Start time for the drop mint.
_endDropTime
uint256
End time for the drop mint.
scheduledDropMint
scheduledDropMint
Enables minting during a scheduled drop for whitelisted addresses.
Parameters
amount
uint256
Number of tokens to mint.
setURI
setURI
Updates the base URI for the token metadata.
Parameters
newuri
string
The new base URI.
addToWhitelist
addToWhitelist
Adds addresses to the whitelist for pre-sale and scheduled drops.
Parameters
accounts
address[]
Addresses to be added to the whitelist.
removeFromWhitelist
removeFromWhitelist
Removes addresses from the whitelist.
Parameters
accounts
address[]
Addresses to be removed from the whitelist.
isWhitelisted
isWhitelisted
Checks if an address is whitelisted.
Parameters
account
address
Address to check for whitelist status.
Returns
whitelisted
bool
True if the address is whitelisted, false otherwise.
mint
mint
Mint tokens and are only accessible by the owner.
mintBatch
mintBatch
Mint batches of tokens. Only accessible by the owner.
airdrop
airdrop
Distributes tokens to multiple addresses.
Parameters
recipients
address[]
Array of recipient addresses.
amounts
uint256[]
Array of token amounts for each recipient.
burn
burn
Burns a specified amount of tokens from a given account.
Parameters
account
address
Address of the token holder.
id
uint256
Token ID to burn.
amount
uint256
Amount of tokens to burn.
setTwitterProfile
setTwitterProfile
Sets the respective social media or website URL for the contract.
Parameters
_url
string
The URL to be set.
transferFromWhitelisted
transferFromWhitelisted
Allows whitelisted addresses to transfer a specified amount of tokens to any address.
Parameters
to
address
Recipient address.
id
uint256
ID of the token.
amount
uint256
Amount of the token to transfer.
mintByWhitelisted
mintByWhitelisted
Allows a whitelisted address to mint a specified amount of tokens.
Parameters
amount
uint256
Number of tokens to mint.
setWebsiteURL
setWebsiteURL
Sets the website URL for the contract.
Parameters
_websiteURL
string
URL of the website.
setTelegramChannel
setTelegramChannel
Sets the Telegram channel link for the contract.
Parameters
_telegramChannel
string
URL of the Telegram channel.
preSaleMintBatch
preSaleMintBatch
Allows whitelisted addresses to mint batches of tokens during the pre-sale.
Parameters
to
address
Recipient address.
ids
uint256[]
Array of token IDs.
amounts
uint256[]
Array of token amounts.
perWalletPreSaleMintBatch
perWalletPreSaleMintBatch
Allows whitelisted addresses to mint batches of tokens during the pre-sale, adhering to per-wallet limits.
Parameters
to
address
Recipient address.
ids
uint256[]
Array of token IDs.
amounts
uint256[]
Array of token amounts.
pause
pause
Pauses all contract activities, preventing transfers and other state-changing operations.
unpause
unpause
Resumes all contract activities, allowing transfers and other state-changing operations to occur again.
Last updated