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
/** Mint an NFT from a SPGNFT collection, register it with metadata as an IP, attach license terms to the registered IP, and add it to a group IP.
104
+
/** @deprecated This method is deprecated and will be removed in a future version */
105
+
/** Mint an NFT from a SPGNFT collection, register it with metadata as an IP, attach license terms to the registered IP, and add it to a group IP.
101
106
* @param request - The request object containing necessary data to mint and register Ip and attach license and add to group.
102
107
* @param request.nftContract The address of the NFT collection.
103
108
* @param request.groupId The ID of the group IP to add the newly registered IP.
104
109
* @param request.licenseTermsId The ID of the registered license terms that will be attached to the new IP.
105
110
* @param request.recipient [Optional] The address of the recipient of the minted NFT,default value is your wallet address.
106
-
* @param request.licenseTemplate [Optional] The address of the license template to be attached to the new group IP,default value is Programmable IP License.
111
+
* @param request.licenseTemplate [Optional] The address of the license template to be attached to the new group IP,default value is Programmable IP License.
107
112
* . @param request.deadline [Optional] The deadline for the signature in seconds, default value is 1000s.
108
-
* @param request.ipMetadata - [Optional] The desired metadata for the newly minted NFT and newly registered IP.
109
-
* @param request.ipMetadata.ipMetadataURI [Optional] The URI of the metadata for the IP.
110
-
* @param request.ipMetadata.ipMetadataHash [Optional] The hash of the metadata for the IP.
111
-
* @param request.ipMetadata.nftMetadataURI [Optional] The URI of the metadata for the NFT.
112
-
* @param request.ipMetadata.nftMetadataHash [Optional] The hash of the metadata for the IP NFT.
113
+
* @param{Object} request.ipMetadata - [Optional] The desired metadata for the newly minted NFT and newly registered IP.
114
+
* @param request.ipMetadata.ipMetadataURI [Optional] The URI of the metadata for the IP.
115
+
* @param request.ipMetadata.ipMetadataHash [Optional] The hash of the metadata for the IP.
116
+
* @param request.ipMetadata.nftMetadataURI [Optional] The URI of the metadata for the NFT.
117
+
* @param request.ipMetadata.nftMetadataHash [Optional] The hash of the metadata for the IP NFT.
113
118
* @param request.txOptions [Optional] This extends `WaitForTransactionReceiptParameters` from the Viem library, excluding the `hash` property.
114
119
* @returns A Promise that resolves to a transaction hash, and if encodedTxDataOnly is true, includes encoded transaction data, and if waitForTransaction is true, includes IP ID, token ID.
handleError(error,"Failed to mint and register IP and attach license and add to group");
192
199
}
193
200
}
201
+
/** @deprecated This method is deprecated and will be removed in a future version */
194
202
/** Register an NFT as IP with metadata, attach license terms to the registered IP, and add it to a group IP.
195
203
* @param request - The request object containing necessary data to register ip and attach license and add to group.
196
204
* @param request.spgNftContract The address of the NFT collection.
197
205
* @param request.tokenId The ID of the NFT.
198
206
* @param request.groupId The ID of the group IP to add the newly registered IP.
199
207
* @param request.licenseTermsId The ID of the registered license terms that will be attached to the new IP.
200
-
* @param request.licenseTemplate [Optional] The address of the license template to be attached to the new group IP,default value is Programmable IP License.
208
+
* @param request.licenseTemplate [Optional] The address of the license template to be attached to the new group IP,default value is Programmable IP License.
201
209
* . @param request.deadline [Optional] The deadline for the signature in seconds, default is 1000s.
202
-
* @param request.ipMetadata - [Optional] The desired metadata for the newly minted NFT and newly registered IP.
203
-
* @param request.ipMetadata.ipMetadataURI [Optional] The URI of the metadata for the IP.
204
-
* @param request.ipMetadata.ipMetadataHash [Optional] The hash of the metadata for the IP.
205
-
* @param request.ipMetadata.nftMetadataURI [Optional] The URI of the metadata for the NFT.
206
-
* @param request.ipMetadata.nftMetadataHash [Optional] The hash of the metadata for the IP NFT.
210
+
* @param{Object} request.ipMetadata - [Optional] The desired metadata for the newly minted NFT and newly registered IP.
211
+
* @param request.ipMetadata.ipMetadataURI [Optional] The URI of the metadata for the IP.
212
+
* @param request.ipMetadata.ipMetadataHash [Optional] The hash of the metadata for the IP.
213
+
* @param request.ipMetadata.nftMetadataURI [Optional] The URI of the metadata for the NFT.
214
+
* @param request.ipMetadata.nftMetadataHash [Optional] The hash of the metadata for the IP NFT.
207
215
* @param request.txOptions [Optional] This extends `WaitForTransactionReceiptParameters` from the Viem library, excluding the `hash` property.
208
216
* @returns A Promise that resolves to a transaction hash, and if encodedTxDataOnly is true, includes encoded transaction data, and if waitForTransaction is true, includes IP ID, token ID.
handleError(error,"Failed to register group and attach license");
357
373
}
358
374
}
375
+
/** @deprecated This method is deprecated and will be removed in a future version */
359
376
/** Register a group IP with a group reward pool, attach license terms to the group IP, and add individual IPs to the group IP.
360
377
* @param request - The request object containing necessary data to register group and attach license and add ips.
361
-
* @param request.pIds must have the same PIL terms as the group IP.
378
+
* @param request.ipIds The IP IDs of the IPs to be added to the group.
362
379
* @param request.groupPool The address specifying how royalty will be split amongst the pool of IPs in the group.
363
380
* @param request.licenseTermsId The ID of the registered license terms that will be attached to the new group IP.
364
-
* @param request.licenseTemplate [Optional] The address of the license template to be attached to the new group IP,default value is Programmable IP License.
381
+
* @param request.licenseTemplate [Optional] The address of the license template to be attached to the new group IP,default value is Programmable IP License.
365
382
* @param request.txOptions [Optional] transaction. This extends `WaitForTransactionReceiptParameters` from the Viem library, excluding the `hash` property.
366
383
* @returns A Promise that resolves to a transaction hash, and if encodedTxDataOnly is true, includes encoded transaction data, and if waitForTransaction is true, includes group id.
0 commit comments