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/IMultiwrap.md
+1-258Lines changed: 1 addition & 258 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,234 +4,12 @@
4
4
5
5
6
6
7
-
Thirdweb's Multiwrap contract lets you wrap arbitrary ERC20, ERC721 and ERC1155 tokens you own into a single wrapped token / NFT. A wrapped NFT can be unwrapped i.e. burned in exchange for its underlying contents.
7
+
Thirdweb's Multiwrap contract lets you wrap arbitrary ERC20, ERC721 and ERC1155 tokens you own into a single wrapped token / NFT. A wrapped NFT can be unwrapped i.e. burned in exchange for its underlying contents.
8
8
9
9
10
10
11
11
## Methods
12
12
13
-
### contractType
14
-
15
-
```solidity
16
-
function contractType() external pure returns (bytes32)
17
-
```
18
-
19
-
20
-
21
-
*Returns the module type of the contract.*
22
-
23
-
24
-
#### Returns
25
-
26
-
| Name | Type | Description |
27
-
|---|---|---|
28
-
| _0 | bytes32 | undefined
29
-
30
-
### contractURI
31
-
32
-
```solidity
33
-
function contractURI() external view returns (string)
34
-
```
35
-
36
-
37
-
38
-
*Returns the metadata URI of the contract.*
39
-
40
-
41
-
#### Returns
42
-
43
-
| Name | Type | Description |
44
-
|---|---|---|
45
-
| _0 | string | undefined
46
-
47
-
### contractVersion
48
-
49
-
```solidity
50
-
function contractVersion() external pure returns (uint8)
51
-
```
52
-
53
-
54
-
55
-
*Returns the version of the contract.*
56
-
57
-
58
-
#### Returns
59
-
60
-
| Name | Type | Description |
61
-
|---|---|---|
62
-
| _0 | uint8 | undefined
63
-
64
-
### getDefaultRoyaltyInfo
65
-
66
-
```solidity
67
-
function getDefaultRoyaltyInfo() external view returns (address, uint16)
68
-
```
69
-
70
-
71
-
72
-
*Returns the royalty recipient and fee bps.*
73
-
74
-
75
-
#### Returns
76
-
77
-
| Name | Type | Description |
78
-
|---|---|---|
79
-
| _0 | address | undefined
80
-
| _1 | uint16 | undefined
81
-
82
-
### getRoyaltyInfoForToken
83
-
84
-
```solidity
85
-
function getRoyaltyInfoForToken(uint256 tokenId) external view returns (address, uint16)
86
-
```
87
-
88
-
89
-
90
-
*Returns the royalty recipient for a particular token Id.*
*Returns how much royalty is owed and to whom, based on a sale price that may be denominated in any unit of exchange. The royalty amount is denominated and should be payed in that same unit of exchange.*
131
-
132
-
#### Parameters
133
-
134
-
| Name | Type | Description |
135
-
|---|---|---|
136
-
| tokenId | uint256 | undefined
137
-
| salePrice | uint256 | undefined
138
-
139
-
#### Returns
140
-
141
-
| Name | Type | Description |
142
-
|---|---|---|
143
-
| receiver | address | undefined
144
-
| royaltyAmount | uint256 | undefined
145
-
146
-
### setContractURI
147
-
148
-
```solidity
149
-
function setContractURI(string _uri) external nonpayable
150
-
```
151
-
152
-
153
-
154
-
*Sets contract URI for the storefront-level metadata of the contract. Only module admin can call this function.*
155
-
156
-
#### Parameters
157
-
158
-
| Name | Type | Description |
159
-
|---|---|---|
160
-
| _uri | string | undefined
161
-
162
-
### setDefaultRoyaltyInfo
163
-
164
-
```solidity
165
-
function setDefaultRoyaltyInfo(address _royaltyRecipient, uint256 _royaltyBps) external nonpayable
166
-
```
167
-
168
-
169
-
170
-
*Lets a module admin update the royalty bps and recipient.*
171
-
172
-
#### Parameters
173
-
174
-
| Name | Type | Description |
175
-
|---|---|---|
176
-
| _royaltyRecipient | address | undefined
177
-
| _royaltyBps | uint256 | undefined
178
-
179
-
### setOwner
180
-
181
-
```solidity
182
-
function setOwner(address _newOwner) external nonpayable
183
-
```
184
-
185
-
186
-
187
-
*Lets a module admin set a new owner for the contract. The new owner must be a module admin.*
188
-
189
-
#### Parameters
190
-
191
-
| Name | Type | Description |
192
-
|---|---|---|
193
-
| _newOwner | address | undefined
194
-
195
-
### setRoyaltyInfoForToken
196
-
197
-
```solidity
198
-
function setRoyaltyInfoForToken(uint256 tokenId, address recipient, uint256 bps) external nonpayable
199
-
```
200
-
201
-
202
-
203
-
*Lets a module admin set the royalty recipient for a particular token Id.*
204
-
205
-
#### Parameters
206
-
207
-
| Name | Type | Description |
208
-
|---|---|---|
209
-
| tokenId | uint256 | undefined
210
-
| recipient | address | undefined
211
-
| bps | uint256 | undefined
212
-
213
-
### supportsInterface
214
-
215
-
```solidity
216
-
function supportsInterface(bytes4 interfaceId) external view returns (bool)
217
-
```
218
-
219
-
220
-
221
-
*Returns true if this contract implements the interface defined by `interfaceId`. See the corresponding https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] to learn more about how these ids are created. This function call must use less than 30 000 gas.*
222
-
223
-
#### Parameters
224
-
225
-
| Name | Type | Description |
226
-
|---|---|---|
227
-
| interfaceId | bytes4 | undefined
228
-
229
-
#### Returns
230
-
231
-
| Name | Type | Description |
232
-
|---|---|---|
233
-
| _0 | bool | undefined
234
-
235
13
### unwrap
236
14
237
15
```solidity
@@ -277,23 +55,6 @@ Wrap multiple ERC1155, ERC721, ERC20 tokens into a single wrapped NFT.
0 commit comments