📌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

Sets the timestamp for starting pre-sales.

Parameters

NameTypeDescription

_preSaleTime

uint256

Timestamp to start the pre-sale.

perWalletPreSaleMint

Allows whitelisted addresses to mint a specified amount of tokens during the pre-sale, adhering to per-wallet limits.

Parameters

NameTypeDescription

amount

uint256

Number of tokens to mint.

preSaleMint

Allows whitelisted addresses to mint a specified amount of tokens during the pre-sale.

Parameters

NameTypeDescription

amount

uint256

Number of tokens to mint.

setScheduleDropMintTime

Sets the start and end times for scheduled drop mints.

Parameters

NameTypeDescription

_startDropTime

uint256

Start time for the drop mint.

_endDropTime

uint256

End time for the drop mint.

scheduledDropMint

Enables minting during a scheduled drop for whitelisted addresses.

Parameters

NameTypeDescription

amount

uint256

Number of tokens to mint.

setURI

Updates the base URI for the token metadata.

Parameters

NameTypeDescription

newuri

string

The new base URI.

addToWhitelist

Adds addresses to the whitelist for pre-sale and scheduled drops.

Parameters

NameTypeDescription

accounts

address[]

Addresses to be added to the whitelist.

removeFromWhitelist

Removes addresses from the whitelist.

Parameters

NameTypeDescription

accounts

address[]

Addresses to be removed from the whitelist.

isWhitelisted

Checks if an address is whitelisted.

Parameters

NameTypeDescription

account

address

Address to check for whitelist status.

Returns

NameTypeDescription

whitelisted

bool

True if the address is whitelisted, false otherwise.

mint

Mint tokens and are only accessible by the owner.

mintBatch

Mint batches of tokens. Only accessible by the owner.

airdrop

Distributes tokens to multiple addresses.

Parameters

NameTypeDescription

recipients

address[]

Array of recipient addresses.

amounts

uint256[]

Array of token amounts for each recipient.

burn

Burns a specified amount of tokens from a given account.

Parameters

NameTypeDescription

account

address

Address of the token holder.

id

uint256

Token ID to burn.

amount

uint256

Amount of tokens to burn.

setTwitterProfile

Sets the respective social media or website URL for the contract.

Parameters

NameTypeDescription

_url

string

The URL to be set.

transferFromWhitelisted

Allows whitelisted addresses to transfer a specified amount of tokens to any address.

Parameters

NameTypeDescription

to

address

Recipient address.

id

uint256

ID of the token.

amount

uint256

Amount of the token to transfer.

mintByWhitelisted

Allows a whitelisted address to mint a specified amount of tokens.

Parameters

NameTypeDescription

amount

uint256

Number of tokens to mint.

setWebsiteURL

Sets the website URL for the contract.

Parameters

NameTypeDescription

_websiteURL

string

URL of the website.

setTelegramChannel

Sets the Telegram channel link for the contract.

Parameters

NameTypeDescription

_telegramChannel

string

URL of the Telegram channel.

preSaleMintBatch

Allows whitelisted addresses to mint batches of tokens during the pre-sale.

Parameters

NameTypeDescription

to

address

Recipient address.

ids

uint256[]

Array of token IDs.

amounts

uint256[]

Array of token amounts.

perWalletPreSaleMintBatch

Allows whitelisted addresses to mint batches of tokens during the pre-sale, adhering to per-wallet limits.

Parameters

NameTypeDescription

to

address

Recipient address.

ids

uint256[]

Array of token IDs.

amounts

uint256[]

Array of token amounts.

pause

Pauses all contract activities, preventing transfers and other state-changing operations.

unpause

Resumes all contract activities, allowing transfers and other state-changing operations to occur again.

Last updated