You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/contracts/ERC1155DelayedReveal.md
+37-39Lines changed: 37 additions & 39 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,7 +7,7 @@ displayed_sidebar: contracts
7
7
8
8
# ERC1155DelayedReveal
9
9
10
-
BASE: ERC1155Base EXTENSION: LazyMint, DelayedReveal The `ERC1155DelayedReveal` contract uses the`ERC1155Base` contract, along with the `LazyMint` and`DelayedReveal` extension. 'Lazy minting' means defining the metadata of NFTs without minting it to an address. Regular 'minting' of NFTs means actually assigning an owner to an NFT. As a contract admin, this lets you prepare the metadata for NFTs that will be minted by an external party, without paying the gas cost for actually minting the NFTs. 'Delayed reveal' is a mechanism by which you can distribute NFTs to your audience and reveal the metadata of the distributed NFTs, after the fact. You can read more about how the `DelayedReveal` extension works, here: https://blog.thirdweb.com/delayed-reveal-nfts
10
+
BASE: ERC1155LazyMint EXTENSION: DelayedReveal The `ERC1155DelayedReveal` contract uses the `DelayedReveal` extension. 'Lazy minting' means defining the metadata of NFTs without minting it to an address. Regular 'minting' of NFTs means actually assigning an owner to an NFT. As a contract admin, this lets you prepare the metadata for NFTs that will be minted by an external party, without paying the gas cost for actually minting the NFTs. 'Delayed reveal' is a mechanism by which you can distribute NFTs to your audience and reveal the metadata of the distributed NFTs, after the fact. You can read more about how the `DelayedReveal` extension works, here: https://blog.thirdweb.com/delayed-reveal-nfts
|\_to | address | The recipient of the NFT to mint. |
69
-
|\_tokenIds | uint256[]| The tokenIds of the NFTs to mint. |
70
-
|\_amounts | uint256[]| The amounts of each NFT to mint. |
71
-
|\_3 | string | undefined |
72
-
73
54
### burn
74
55
75
56
```solidity
@@ -102,6 +83,24 @@ Lets an owner or approved operator burn NFTs of the given tokenIds.
102
83
|\_tokenIds | uint256[]| The tokenIds of the NFTs to burn. |
103
84
|\_amounts | uint256[]| The amounts of the NFTs to burn. |
104
85
86
+
### claim
87
+
88
+
```solidity
89
+
function claim(address _receiver, uint256 _tokenId, uint256 _quantity) external payable
90
+
```
91
+
92
+
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.
93
+
94
+
_The logic in the `verifyClaim` function determines whether the caller is authorized to mint NFTs._
Copy file name to clipboardExpand all lines: docs/contracts/ERC1155LazyMint.md
+39-39Lines changed: 39 additions & 39 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,7 +7,7 @@ displayed_sidebar: contracts
7
7
8
8
# ERC1155LazyMint
9
9
10
-
BASE: ERC1155Base EXTENSION: LazyMint The `ERC1155LazyMint` contract uses the `ERC1155Base` contract, along with the `LazyMint` extension. 'Lazy minting' means defining the metadata of NFTs without minting it to an address. Regular 'minting' of NFTs means actually assigning an owner to an NFT. As a contract admin, this lets you prepare the metadata for NFTs that will be minted by an external party, without paying the gas cost for actually minting the NFTs.
10
+
BASE: ERC1155Base EXTENSION: LazyMint The `ERC1155LazyMint` smart contract implements the ERC1155 NFT standard. It includes the following additions to standard ERC1155 logic: - Lazy minting - Ability to mint NFTs via the provided `mintTo` and `batchMintTo` functions. - Contract metadata for royalty support on platforms such as OpenSea that use off-chain information to distribute roaylties. - Ownership of the contract, with the ability to restrict certain functions to only be called by the contract's owner. - Multicall capability to perform multiple actions atomically - EIP 2981 compliance for royalty support on NFT marketplaces. The `ERC1155LazyMint` contract uses the `LazyMint` extension. 'Lazy minting' means defining the metadata of NFTs without minting it to an address. Regular 'minting' of NFTs means actually assigning an owner to an NFT. As a contract admin, this lets you prepare the metadata for NFTs that will be minted by an external party, without paying the gas cost for actually minting the NFTs.
|\_to | address | The recipient of the NFT to mint. |
69
-
|\_tokenIds | uint256[]| The tokenIds of the NFTs to mint. |
70
-
|\_amounts | uint256[]| The amounts of each NFT to mint. |
71
-
|\_3 | string | undefined |
72
-
73
54
### burn
74
55
75
56
```solidity
@@ -102,6 +83,24 @@ Lets an owner or approved operator burn NFTs of the given tokenIds.
102
83
|\_tokenIds | uint256[]| The tokenIds of the NFTs to burn. |
103
84
|\_amounts | uint256[]| The amounts of the NFTs to burn. |
104
85
86
+
### claim
87
+
88
+
```solidity
89
+
function claim(address _receiver, uint256 _tokenId, uint256 _quantity) external payable
90
+
```
91
+
92
+
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.
93
+
94
+
_The logic in the `verifyClaim` function determines whether the caller is authorized to mint NFTs._
Copy file name to clipboardExpand all lines: docs/contracts/ERC721DelayedReveal.md
+47-56Lines changed: 47 additions & 56 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,7 +7,7 @@ displayed_sidebar: contracts
7
7
8
8
# ERC721DelayedReveal
9
9
10
-
BASE: ERC721Base EXTENSION: LazyMint, DelayedReveal The `ERC721DelayedReveal` contract uses the `ERC721Base` contract, along with the `LazyMint` and`DelayedReveal` extension. 'Lazy minting' means defining the metadata of NFTs without minting it to an address. Regular 'minting' of NFTs means actually assigning an owner to an NFT. As a contract admin, this lets you prepare the metadata for NFTs that will be minted by an external party, without paying the gas cost for actually minting the NFTs. 'Delayed reveal' is a mechanism by which you can distribute NFTs to your audience and reveal the metadata of the distributed NFTs, after the fact. You can read more about how the `DelayedReveal` extension works, here: https://blog.thirdweb.com/delayed-reveal-nfts
10
+
BASE: ERC721LazyMint EXTENSION: DelayedReveal The `ERC721DelayedReveal` contract uses the `ERC721LazyMint` contract, along with `DelayedReveal` extension. 'Lazy minting' means defining the metadata of NFTs without minting it to an address. Regular 'minting' of NFTs means actually assigning an owner to an NFT. As a contract admin, this lets you prepare the metadata for NFTs that will be minted by an external party, without paying the gas cost for actually minting the NFTs. 'Delayed reveal' is a mechanism by which you can distribute NFTs to your audience and reveal the metadata of the distributed NFTs, after the fact. You can read more about how the `DelayedReveal` extension works, here: https://blog.thirdweb.com/delayed-reveal-nfts
11
11
12
12
## Methods
13
13
@@ -46,40 +46,38 @@ _See {IERC721-balanceOf}._
46
46
| ---- | ------- | ----------- |
47
47
|\_0 | uint256 | undefined |
48
48
49
-
### batchMintTo
49
+
### burn
50
50
51
51
```solidity
52
-
function batchMintTo(address _to, uint256 _quantity, string, bytes _data) external nonpayable
52
+
function burn(uint256 _tokenId) external nonpayable
53
53
```
54
54
55
-
Lets an authorized address mint multiple lazy minted NFTs at once to a recipient.
55
+
Lets an owner or approved operator burn the NFT of the given tokenId.
56
56
57
-
_The logic in the `_canMint` function determines whether the caller is authorized to mint NFTs._
57
+
_ERC721A's `_burn(uint256,bool)` internally checks for token approvals._
|\_tokenId | uint256 | The tokenId of the NFT to burn. |
67
64
68
-
### burn
65
+
### claim
69
66
70
67
```solidity
71
-
function burn(uint256 _tokenId) external nonpayable
68
+
function claim(address _receiver, uint256 _quantity) external payable
72
69
```
73
70
74
-
Lets an owner or approved operator burn the NFT of the given tokenId.
71
+
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.
75
72
76
-
_ERC721A's `_burn(uint256,bool)` internally checks for token approvals._
73
+
_The logic in the `verifyClaim` function determines whether the caller is authorized to mint NFTs._
0 commit comments