Skip to content

Solidity API

PropsERC1155Airdrop

This contract implements ERC1155 token airdrop functionality

Inherits from PropsBaseFacet, PropsERC1155Base, and implements IPropsERC1155Airdrop

AIRDROP_ROLE

solidity
bytes32 AIRDROP_ROLE

Role identifier for accounts allowed to perform airdrops

batchMintAirdrop

solidity
function batchMintAirdrop(uint256[] _tokenIds, address[] _recipients, uint256[] _amounts) external

Batch mints multiple ERC1155 tokens to multiple recipients

This function can only be called by accounts with AIRDROP_ROLE or the diamond owner

Parameters

NameTypeDescription
_tokenIdsuint256[]The IDs of the tokens to mint
_recipientsaddress[]The list of recipient addresses
_amountsuint256[]The list of amounts to mint to each recipient for each token

supportsInterface

solidity
function supportsInterface(bytes4 interfaceId) public view virtual returns (bool)

Checks if the contract supports a given interface

This function overrides the supportsInterface function from parent contracts

Parameters

NameTypeDescription
interfaceIdbytes4The interface identifier, as specified in ERC-165

Return Values

NameTypeDescription
[0]boolbool True if the contract supports the interface, false otherwise