|
| 1 | +# IClaimableERC1155 |
| 2 | + |
| 3 | + |
| 4 | + |
| 5 | + |
| 6 | + |
| 7 | + |
| 8 | + |
| 9 | + |
| 10 | + |
| 11 | +## Methods |
| 12 | + |
| 13 | +### claim |
| 14 | + |
| 15 | +```solidity |
| 16 | +function claim(address _receiver, uint256 _tokenId, uint256 _quantity) external payable |
| 17 | +``` |
| 18 | + |
| 19 | +Lets an address claim multiple lazy minted NFTs at once to a recipient. Contract creators should override this function to create custom logic for claiming, for e.g. price collection, allowlist, max quantity, etc. |
| 20 | + |
| 21 | +*The logic in the `verifyClaim` function determines whether the caller is authorized to mint NFTs.* |
| 22 | + |
| 23 | +#### Parameters |
| 24 | + |
| 25 | +| Name | Type | Description | |
| 26 | +|---|---|---| |
| 27 | +| _receiver | address | The recipient of the tokens to mint. | |
| 28 | +| _tokenId | uint256 | The tokenId of the lazy minted NFT to mint. | |
| 29 | +| _quantity | uint256 | The number of tokens to mint. | |
| 30 | + |
| 31 | +### verifyClaim |
| 32 | + |
| 33 | +```solidity |
| 34 | +function verifyClaim(address _claimer, uint256 _tokenId, uint256 _quantity) external view |
| 35 | +``` |
| 36 | + |
| 37 | +Override this function to add logic for claim verification, based on conditions such as allowlist, price, max quantity etc. |
| 38 | + |
| 39 | +*Checks a request to claim NFTs against a custom condition.* |
| 40 | + |
| 41 | +#### Parameters |
| 42 | + |
| 43 | +| Name | Type | Description | |
| 44 | +|---|---|---| |
| 45 | +| _claimer | address | Caller of the claim function. | |
| 46 | +| _tokenId | uint256 | The tokenId of the lazy minted NFT to mint. | |
| 47 | +| _quantity | uint256 | The number of NFTs being claimed. | |
| 48 | + |
| 49 | + |
| 50 | + |
| 51 | +## Events |
| 52 | + |
| 53 | +### TokensClaimed |
| 54 | + |
| 55 | +```solidity |
| 56 | +event TokensClaimed(address indexed claimer, address indexed receiver, uint256 indexed tokenId, uint256 quantityClaimed) |
| 57 | +``` |
| 58 | + |
| 59 | + |
| 60 | + |
| 61 | +*Emitted when tokens are claimed* |
| 62 | + |
| 63 | +#### Parameters |
| 64 | + |
| 65 | +| Name | Type | Description | |
| 66 | +|---|---|---| |
| 67 | +| claimer `indexed` | address | undefined | |
| 68 | +| receiver `indexed` | address | undefined | |
| 69 | +| tokenId `indexed` | uint256 | undefined | |
| 70 | +| quantityClaimed | uint256 | undefined | |
| 71 | + |
| 72 | + |
| 73 | + |
0 commit comments