📌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

Name
Type
Description

_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

Name
Type
Description

amount

uint256

Number of tokens to mint.

preSaleMint

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

Parameters

Name
Type
Description

amount

uint256

Number of tokens to mint.

setScheduleDropMintTime

Sets the start and end times for scheduled drop mints.

Parameters

Name
Type
Description

_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

Name
Type
Description

amount

uint256

Number of tokens to mint.

setURI

Updates the base URI for the token metadata.

Parameters

Name
Type
Description

newuri

string

The new base URI.

addToWhitelist

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

Parameters

Name
Type
Description

accounts

address[]

Addresses to be added to the whitelist.

removeFromWhitelist

Removes addresses from the whitelist.

Parameters

Name
Type
Description

accounts

address[]

Addresses to be removed from the whitelist.

isWhitelisted

Checks if an address is whitelisted.

Parameters

Name
Type
Description

account

address

Address to check for whitelist status.

Returns

Name
Type
Description

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

Name
Type
Description

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

Name
Type
Description

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

Name
Type
Description

_url

string

The URL to be set.

transferFromWhitelisted

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

Parameters

Name
Type
Description

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

Name
Type
Description

amount

uint256

Number of tokens to mint.

setWebsiteURL

Sets the website URL for the contract.

Parameters

Name
Type
Description

_websiteURL

string

URL of the website.

setTelegramChannel

Sets the Telegram channel link for the contract.

Parameters

Name
Type
Description

_telegramChannel

string

URL of the Telegram channel.

preSaleMintBatch

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

Parameters

Name
Type
Description

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

Name
Type
Description

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