Appearance
Solidity API
PropsERC1155Airdrop
This contract implements ERC1155 token airdrop functionality
Inherits from PropsBaseFacet, PropsERC1155Base, and implements IPropsERC1155Airdrop
AIRDROP_ROLE
solidity
bytes32 AIRDROP_ROLERole identifier for accounts allowed to perform airdrops
batchMintAirdrop
solidity
function batchMintAirdrop(uint256[] _tokenIds, address[] _recipients, uint256[] _amounts) externalBatch mints multiple ERC1155 tokens to multiple recipients
This function can only be called by accounts with AIRDROP_ROLE or the diamond owner
Parameters
| Name | Type | Description |
|---|---|---|
| _tokenIds | uint256[] | The IDs of the tokens to mint |
| _recipients | address[] | The list of recipient addresses |
| _amounts | uint256[] | 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
| Name | Type | Description |
|---|---|---|
| interfaceId | bytes4 | The interface identifier, as specified in ERC-165 |
Return Values
| Name | Type | Description |
|---|---|---|
| [0] | bool | bool True if the contract supports the interface, false otherwise |