π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
setPresaleTimeSets the timestamp for starting pre-sales.
Parameters
_preSaleTime
uint256
Timestamp to start the pre-sale.
perWalletPreSaleMint
perWalletPreSaleMintAllows 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
preSaleMintAllows whitelisted addresses to mint a specified amount of tokens during the pre-sale.
Parameters
amount
uint256
Number of tokens to mint.
setScheduleDropMintTime
setScheduleDropMintTimeSets 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
scheduledDropMintEnables minting during a scheduled drop for whitelisted addresses.
Parameters
amount
uint256
Number of tokens to mint.
setURI
setURIUpdates the base URI for the token metadata.
Parameters
newuri
string
The new base URI.
addToWhitelist
addToWhitelistAdds addresses to the whitelist for pre-sale and scheduled drops.
Parameters
accounts
address[]
Addresses to be added to the whitelist.
removeFromWhitelist
removeFromWhitelistRemoves addresses from the whitelist.
Parameters
accounts
address[]
Addresses to be removed from the whitelist.
isWhitelisted
isWhitelistedChecks 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
mintMint tokens and are only accessible by the owner.
mintBatch
mintBatchMint batches of tokens. Only accessible by the owner.
airdrop
airdropDistributes tokens to multiple addresses.
Parameters
recipients
address[]
Array of recipient addresses.
amounts
uint256[]
Array of token amounts for each recipient.
burn
burnBurns 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
setTwitterProfileSets the respective social media or website URL for the contract.
Parameters
_url
string
The URL to be set.
transferFromWhitelisted
transferFromWhitelistedAllows 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
mintByWhitelistedAllows a whitelisted address to mint a specified amount of tokens.
Parameters
amount
uint256
Number of tokens to mint.
setWebsiteURL
setWebsiteURLSets the website URL for the contract.
Parameters
_websiteURL
string
URL of the website.
setTelegramChannel
setTelegramChannelSets the Telegram channel link for the contract.
Parameters
_telegramChannel
string
URL of the Telegram channel.
preSaleMintBatch
preSaleMintBatchAllows 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
perWalletPreSaleMintBatchAllows 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
pausePauses all contract activities, preventing transfers and other state-changing operations.
unpause
unpauseResumes all contract activities, allowing transfers and other state-changing operations to occur again.
Last updated