@story-protocol/core-sdk 1.1.0-stable → 1.2.0-rc.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (40) hide show
  1. package/dist/declarations/src/abi/generated.d.ts +26547 -14534
  2. package/dist/declarations/src/abi/generated.d.ts.map +1 -1
  3. package/dist/declarations/src/client.d.ts +9 -0
  4. package/dist/declarations/src/client.d.ts.map +1 -1
  5. package/dist/declarations/src/index.d.ts +6 -5
  6. package/dist/declarations/src/index.d.ts.map +1 -1
  7. package/dist/declarations/src/resources/dispute.d.ts +6 -7
  8. package/dist/declarations/src/resources/dispute.d.ts.map +1 -1
  9. package/dist/declarations/src/resources/group.d.ts +85 -0
  10. package/dist/declarations/src/resources/group.d.ts.map +1 -0
  11. package/dist/declarations/src/resources/ipAsset.d.ts +90 -13
  12. package/dist/declarations/src/resources/ipAsset.d.ts.map +1 -1
  13. package/dist/declarations/src/resources/license.d.ts +4 -6
  14. package/dist/declarations/src/resources/license.d.ts.map +1 -1
  15. package/dist/declarations/src/resources/nftClient.d.ts +14 -9
  16. package/dist/declarations/src/resources/nftClient.d.ts.map +1 -1
  17. package/dist/declarations/src/resources/permission.d.ts +1 -2
  18. package/dist/declarations/src/resources/permission.d.ts.map +1 -1
  19. package/dist/declarations/src/resources/royalty.d.ts +64 -13
  20. package/dist/declarations/src/resources/royalty.d.ts.map +1 -1
  21. package/dist/declarations/src/types/common.d.ts +10 -11
  22. package/dist/declarations/src/types/common.d.ts.map +1 -1
  23. package/dist/declarations/src/types/resources/dispute.d.ts +4 -5
  24. package/dist/declarations/src/types/resources/dispute.d.ts.map +1 -1
  25. package/dist/declarations/src/types/resources/group.d.ts +65 -0
  26. package/dist/declarations/src/types/resources/group.d.ts.map +1 -0
  27. package/dist/declarations/src/types/resources/ipAsset.d.ts +32 -14
  28. package/dist/declarations/src/types/resources/ipAsset.d.ts.map +1 -1
  29. package/dist/declarations/src/types/resources/nftClient.d.ts +7 -2
  30. package/dist/declarations/src/types/resources/nftClient.d.ts.map +1 -1
  31. package/dist/declarations/src/types/resources/permission.d.ts +11 -1
  32. package/dist/declarations/src/types/resources/permission.d.ts.map +1 -1
  33. package/dist/declarations/src/types/resources/royalty.d.ts +57 -10
  34. package/dist/declarations/src/types/resources/royalty.d.ts.map +1 -1
  35. package/dist/declarations/src/utils/sign.d.ts +1 -1
  36. package/dist/declarations/src/utils/sign.d.ts.map +1 -1
  37. package/dist/story-protocol-core-sdk.cjs.dev.js +6480 -20671
  38. package/dist/story-protocol-core-sdk.cjs.prod.js +6480 -20671
  39. package/dist/story-protocol-core-sdk.esm.js +6481 -20673
  40. package/package.json +1 -1
@@ -0,0 +1,85 @@
1
+ import { PublicClient } from "viem";
2
+ import { CoreMetadataModuleClient, GroupingModuleClient, GroupingModuleEventClient, GroupingWorkflowsClient, IpAssetRegistryClient, LicenseRegistryReadOnlyClient, LicenseTokenReadOnlyClient, LicensingModuleClient, PiLicenseTemplateClient, SimpleWalletClient } from "../abi/generated.js";
3
+ import { SupportedChainIds } from "../types/config.js";
4
+ import { MintAndRegisterIpAndAttachLicenseAndAddToGroupRequest, MintAndRegisterIpAndAttachLicenseAndAddToGroupResponse, RegisterGroupAndAttachLicenseAndAddIpsRequest, RegisterGroupAndAttachLicenseAndAddIpsResponse, RegisterGroupAndAttachLicenseRequest, RegisterGroupAndAttachLicenseResponse, RegisterGroupRequest, RegisterGroupResponse, RegisterIpAndAttachLicenseAndAddToGroupRequest, RegisterIpAndAttachLicenseAndAddToGroupResponse } from "../types/resources/group.js";
5
+ export declare class GroupClient {
6
+ groupingWorkflowsClient: GroupingWorkflowsClient;
7
+ groupingModuleEventClient: GroupingModuleEventClient;
8
+ groupingModuleClient: GroupingModuleClient;
9
+ licenseTemplateClient: PiLicenseTemplateClient;
10
+ licenseTokenReadOnlyClient: LicenseTokenReadOnlyClient;
11
+ ipAssetRegistryClient: IpAssetRegistryClient;
12
+ coreMetadataModuleClient: CoreMetadataModuleClient;
13
+ licensingModuleClient: LicensingModuleClient;
14
+ licenseRegistryReadOnlyClient: LicenseRegistryReadOnlyClient;
15
+ private readonly rpcClient;
16
+ private readonly wallet;
17
+ private readonly chainId;
18
+ constructor(rpcClient: PublicClient, wallet: SimpleWalletClient, chainId: SupportedChainIds);
19
+ /** Registers a Group IPA.
20
+ * @param request - The request object containing necessary data to register group.
21
+ * @param request.groupPool The address specifying how royalty will be split amongst the pool of IPs in the group.
22
+ * @param request.txOptions [Optional] This extends `WaitForTransactionReceiptParameters` from the Viem library, excluding the `hash` property.
23
+ * @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.
24
+ * @emits PGroupRegistered (groupId, groupPool);
25
+ */
26
+ registerGroup(request: RegisterGroupRequest): Promise<RegisterGroupResponse>;
27
+ /** 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.
28
+ * @param request - The request object containing necessary data to mint and register Ip and attach license and add to group.
29
+ * @param request.nftContract The address of the NFT collection.
30
+ * @param request.groupId The ID of the group IP to add the newly registered IP.
31
+ * @param request.licenseTermsId The ID of the registered license terms that will be attached to the new IP.
32
+ * @param request.recipient [Optional] The address of the recipient of the minted NFT,default value is your wallet address.
33
+ * @param request.licenseTemplate [Optional] The address of the license template to be attached to the new group IP,default value is Programmable IP License.
34
+ * . @param request.deadline [Optional] The deadline for the signature in milliseconds,default value is 1000ms.
35
+ * @param request.ipMetadata - [Optional] The desired metadata for the newly minted NFT and newly registered IP.
36
+ * @param request.ipMetadata.ipMetadataURI [Optional] The URI of the metadata for the IP.
37
+ * @param request.ipMetadata.ipMetadataHash [Optional] The hash of the metadata for the IP.
38
+ * @param request.ipMetadata.nftMetadataURI [Optional] The URI of the metadata for the NFT.
39
+ * @param request.ipMetadata.nftMetadataHash [Optional] The hash of the metadata for the IP NFT.
40
+ * @param request.txOptions [Optional] This extends `WaitForTransactionReceiptParameters` from the Viem library, excluding the `hash` property.
41
+ * @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.
42
+ * @emits IPRegistered (ipId, chainId, tokenContract, tokenId, resolverAddr, metadataProviderAddress, metadata)
43
+ */
44
+ mintAndRegisterIpAndAttachLicenseAndAddToGroup(request: MintAndRegisterIpAndAttachLicenseAndAddToGroupRequest): Promise<MintAndRegisterIpAndAttachLicenseAndAddToGroupResponse>;
45
+ /** Register an NFT as IP with metadata, attach license terms to the registered IP, and add it to a group IP.
46
+ * @param request - The request object containing necessary data to register ip and attach license and add to group.
47
+ * @param request.spgNftContract The address of the NFT collection.
48
+ * @param request.tokenId The ID of the NFT.
49
+ * @param request.groupId The ID of the group IP to add the newly registered IP.
50
+ * @param request.licenseTermsId The ID of the registered license terms that will be attached to the new IP.
51
+ * @param request.licenseTemplate [Optional] The address of the license template to be attached to the new group IP,default value is Programmable IP License.
52
+ * . @param request.deadline [Optional] The deadline for the signature in milliseconds,default is 1000ms.
53
+ * @param request.ipMetadata - [Optional] The desired metadata for the newly minted NFT and newly registered IP.
54
+ * @param request.ipMetadata.ipMetadataURI [Optional] The URI of the metadata for the IP.
55
+ * @param request.ipMetadata.ipMetadataHash [Optional] The hash of the metadata for the IP.
56
+ * @param request.ipMetadata.nftMetadataURI [Optional] The URI of the metadata for the NFT.
57
+ * @param request.ipMetadata.nftMetadataHash [Optional] The hash of the metadata for the IP NFT.
58
+ * @param request.txOptions [Optional] This extends `WaitForTransactionReceiptParameters` from the Viem library, excluding the `hash` property.
59
+ * @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.
60
+ * @emits IPRegistered (ipId, chainId, tokenContract, tokenId, resolverAddr, metadataProviderAddress, metadata)
61
+ */
62
+ registerIpAndAttachLicenseAndAddToGroup(request: RegisterIpAndAttachLicenseAndAddToGroupRequest): Promise<RegisterIpAndAttachLicenseAndAddToGroupResponse>;
63
+ /** Register a group IP with a group reward pool and attach license terms to the group IP.
64
+ * @param request - The request object containing necessary data to register group and attach license.
65
+ * @param request.groupPool The address specifying how royalty will be split amongst the pool of IPs in the group.
66
+ * @param request.licenseTermsId The ID of the registered license terms that will be attached to the new group IP.
67
+ * @param request.licenseTemplate [Optional] The address of the license template to be attached to the new group IP, default value is Programmable IP License.
68
+ * @param request.txOptions [Optional] transaction. This extends `WaitForTransactionReceiptParameters` from the Viem library, excluding the `hash` property.
69
+ * @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.
70
+ * @emits PGroupRegistered (groupId, groupPool);
71
+ */
72
+ registerGroupAndAttachLicense(request: RegisterGroupAndAttachLicenseRequest): Promise<RegisterGroupAndAttachLicenseResponse>;
73
+ /** Register a group IP with a group reward pool, attach license terms to the group IP, and add individual IPs to the group IP.
74
+ * @param request - The request object containing necessary data to register group and attach license and add ips.
75
+ * @param request.pIds must have the same PIL terms as the group IP.
76
+ * @param request.groupPool The address specifying how royalty will be split amongst the pool of IPs in the group.
77
+ * @param request.licenseTermsId The ID of the registered license terms that will be attached to the new group IP.
78
+ * @param request.licenseTemplate [Optional] The address of the license template to be attached to the new group IP,default value is Programmable IP License.
79
+ * @param request.txOptions [Optional] transaction. This extends `WaitForTransactionReceiptParameters` from the Viem library, excluding the `hash` property.
80
+ * @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.
81
+ * @emits PGroupRegistered (groupId, groupPool);
82
+ */
83
+ registerGroupAndAttachLicenseAndAddIps(request: RegisterGroupAndAttachLicenseAndAddIpsRequest): Promise<RegisterGroupAndAttachLicenseAndAddIpsResponse>;
84
+ }
85
+ //# sourceMappingURL=group.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"group.d.ts","sourceRoot":"../../../../src/resources","sources":["group.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAiC,MAAM,MAAM,CAAC;AAEnE,OAAO,EACL,wBAAwB,EACxB,oBAAo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,6BAA6B,CACxC,OAAO,EAAE,oCAAoC,GAC5C,OAAO,CAAC,qCAAqC,CAAC;IA8BjD;;;;;;;;;OASG;IACU,sCAAsC,CACjD,OAAO,EAAE,6CAA6C,GACrD,OAAO,CAAC,8CAA8C,CAAC;CAyD3D"}
@@ -1,17 +1,18 @@
1
1
  import { PublicClient } from "viem";
2
2
  import { SupportedChainIds } from "../types/config.js";
3
- import { CreateIpAssetWithPilTermsRequest, CreateIpAssetWithPilTermsResponse, GenerateCreatorMetadataParam, GenerateIpMetadataParam, IpCreator, IpMetadata, MintAndRegisterIpAndMakeDerivativeRequest, RegisterDerivativeRequest, RegisterDerivativeResponse, RegisterDerivativeWithLicenseTokensRequest, RegisterDerivativeWithLicenseTokensResponse, RegisterIpAndAttachPilTermsRequest, RegisterIpAndAttachPilTermsResponse, RegisterIpAndMakeDerivativeRequest, RegisterIpAndMakeDerivativeResponse, RegisterIpResponse, RegisterRequest } from "../types/resources/ipAsset.js";
4
- import { AccessControllerClient, CoreMetadataModuleClient, IpAssetRegistryClient, LicenseRegistryReadOnlyClient, LicenseTokenReadOnlyClient, LicensingModuleClient, PiLicenseTemplateClient, RoyaltyPolicyLapClient, SimpleWalletClient, SpgClient } from "../abi/generated.js";
3
+ import { CreateIpAssetWithPilTermsRequest, CreateIpAssetWithPilTermsResponse, GenerateCreatorMetadataParam, GenerateIpMetadataParam, IpCreator, IpMetadata, MintAndRegisterIpAndMakeDerivativeRequest, MintAndRegisterIpAndMakeDerivativeWithLicenseTokensRequest, MintAndRegisterIpRequest, RegisterDerivativeRequest, RegisterDerivativeResponse, RegisterDerivativeWithLicenseTokensRequest, RegisterDerivativeWithLicenseTokensResponse, RegisterIpAndAttachPilTermsRequest, RegisterIpAndAttachPilTermsResponse, RegisterIpAndMakeDerivativeRequest, RegisterIpAndMakeDerivativeResponse, RegisterIpAndMakeDerivativeWithLicenseTokensRequest, RegisterIpResponse, RegisterPilTermsAndAttachRequest, RegisterPilTermsAndAttachResponse, RegisterRequest } from "../types/resources/ipAsset.js";
4
+ import { AccessControllerClient, CoreMetadataModuleClient, DerivativeWorkflowsClient, IpAssetRegistryClient, LicenseAttachmentWorkflowsClient, LicenseRegistryReadOnlyClient, LicenseTokenReadOnlyClient, LicensingModuleClient, PiLicenseTemplateClient, RegistrationWorkflowsClient, SimpleWalletClient } from "../abi/generated.js";
5
5
  export declare class IPAssetClient {
6
6
  licensingModuleClient: LicensingModuleClient;
7
7
  ipAssetRegistryClient: IpAssetRegistryClient;
8
8
  licenseTemplateClient: PiLicenseTemplateClient;
9
9
  licenseRegistryReadOnlyClient: LicenseRegistryReadOnlyClient;
10
10
  licenseTokenReadOnlyClient: LicenseTokenReadOnlyClient;
11
- royaltyPolicyLAPClient: RoyaltyPolicyLapClient;
12
11
  accessControllerClient: AccessControllerClient;
13
12
  coreMetadataModuleClient: CoreMetadataModuleClient;
14
- spgClient: SpgClient;
13
+ registrationWorkflowsClient: RegistrationWorkflowsClient;
14
+ licenseAttachmentWorkflowsClient: LicenseAttachmentWorkflowsClient;
15
+ derivativeWorkflowsClient: DerivativeWorkflowsClient;
15
16
  private readonly rpcClient;
16
17
  private readonly wallet;
17
18
  private readonly chainId;
@@ -82,8 +83,8 @@ export declare class IPAssetClient {
82
83
  * @param request.ipMetadata.nftMetadataURI [Optional] The URI of the metadata for the NFT.
83
84
  * @param request.ipMetadata.nftMetadataHash [Optional] The hash of the metadata for the IP NFT.
84
85
  * @param request.deadline [Optional] The deadline for the signature in milliseconds, default is 1000ms.
85
- * @param request.txOptions - [Optional] transaction. This extends `WaitForTransactionReceiptParameters` from the Viem library, excluding the `hash` property.
86
- * @returns A Promise that resolves to an object containing the transaction hash and optional IP ID if waitForTxn is set to true.
86
+ * @param request.txOptions [Optional] This extends `WaitForTransactionReceiptParameters` from the Viem library, excluding the `hash` property.
87
+ * @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.
87
88
  * @emits IPRegistered (ipId, chainId, tokenContract, tokenId, resolverAddr, metadataProviderAddress, metadata)
88
89
  */
89
90
  register(request: RegisterRequest): Promise<RegisterIpResponse>;
@@ -116,19 +117,19 @@ export declare class IPAssetClient {
116
117
  /**
117
118
  * Mint an NFT from a collection and register it as an IP.
118
119
  * @param request - The request object that contains all data needed to mint and register ip.
119
- * @param request.nftContract The address of the NFT collection.
120
+ * @param request.spgNftContract The address of the NFT collection.
120
121
  * @param request.pilType The type of the PIL.
121
122
  * @param request.ipMetadata - [Optional] The desired metadata for the newly minted NFT and newly registered IP.
122
123
  * @param request.ipMetadata.ipMetadataURI [Optional] The URI of the metadata for the IP.
123
124
  * @param request.ipMetadata.ipMetadataHash [Optional] The hash of the metadata for the IP.
124
125
  * @param request.ipMetadata.nftMetadataURI [Optional] The URI of the metadata for the NFT.
125
126
  * @param request.ipMetadata.nftMetadataHash [Optional] The hash of the metadata for the IP NFT.
126
- * @param request.recipient [Optional] The address of the recipient of the minted NFT.
127
+ * @param request.recipient [Optional] The address of the recipient of the minted NFT,default value is your wallet address.
127
128
  * @param request.mintingFee [Optional] The fee to be paid when minting a license.
128
129
  * @param request.commercialRevShare [Optional] Percentage of revenue that must be shared with the licensor.
129
130
  * @param request.currency [Optional] The ERC20 token to be used to pay the minting fee. the token must be registered in story protocol.
130
- * @param request.txOptions - [Optional] transaction. This extends `WaitForTransactionReceiptParameters` from the Viem library, excluding the `hash` property.
131
- * @returns A Promise that resolves to an object containing the transaction hash and optional IP ID, Token ID, License Terms Id if waitForTxn is set to true.
131
+ * @param request.txOptions [Optional] This extends `WaitForTransactionReceiptParameters` from the Viem library, excluding the `hash` property.
132
+ * @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, License Terms Id.
132
133
  * @emits IPRegistered (ipId, chainId, tokenContract, tokenId, name, uri, registrationDate)
133
134
  * @emits LicenseTermsAttached (caller, ipId, licenseTemplate, licenseTermsId)
134
135
  */
@@ -176,7 +177,7 @@ export declare class IPAssetClient {
176
177
  /**
177
178
  * Mint an NFT from a collection and register it as a derivative IP without license tokens.
178
179
  * @param request - The request object that contains all data needed to mint and register ip and make derivative.
179
- * @param request.nftContract The address of the NFT collection.
180
+ * @param request.spgNftContract The address of the NFT collection.
180
181
  * @param request.derivData The derivative data to be used for registerDerivative.
181
182
  * @param request.derivData.parentIpIds The IDs of the parent IPs to link the registered derivative IP.
182
183
  * @param request.derivData.licenseTermsIds The IDs of the license terms to be used for the linking.
@@ -185,16 +186,92 @@ export declare class IPAssetClient {
185
186
  * @param request.ipMetadata.ipMetadataURI [Optional] The URI of the metadata for the IP.
186
187
  * @param request.ipMetadata.ipMetadataHash [Optional] The hash of the metadata for the IP.
187
188
  * @param request.ipMetadata.nftMetadataURI [Optional] The URI of the metadata for the NFT.
188
- * @param request.ipMetadata.nftMetadataHash [Optional] The hash of the metadata for the IP NFT.*
189
- * @param request.recipient [Optional] The address of the recipient of the minted NFT.
189
+ * @param request.ipMetadata.nftMetadataHash [Optional] The hash of the metadata for the IP NFT.
190
+ * @param request.recipient [Optional] The address of the recipient of the minted NFT,default value is your wallet address.
190
191
  * @param request.txOptions - [Optional] transaction. This extends `WaitForTransactionReceiptParameters` from the Viem library, excluding the `hash` property.
191
192
  * @returns A Promise that resolves to an object containing the transaction hash and optional IP ID if waitForTxn is set to true.
192
193
  * @emits IPRegistered (ipId, chainId, tokenContract, tokenId, name, uri, registrationDate)
193
194
  */
194
195
  mintAndRegisterIpAndMakeDerivative(request: MintAndRegisterIpAndMakeDerivativeRequest): Promise<RegisterDerivativeResponse>;
196
+ /**
197
+ * Mint an NFT from a SPGNFT collection and register it with metadata as an IP.
198
+ * @param request - The request object that contains all data needed to attach license terms.
199
+ * @param request.spgNftContract The address of the SPGNFT collection.
200
+ * @param request.recipient The address of the recipient of the minted NFT,default value is your wallet address.
201
+ * @param request.ipMetadata - [Optional] The desired metadata for the newly minted NFT and newly registered IP.
202
+ * @param request.ipMetadata.ipMetadataURI [Optional] The URI of the metadata for the IP.
203
+ * @param request.ipMetadata.ipMetadataHash [Optional] The hash of the metadata for the IP.
204
+ * @param request.ipMetadata.nftMetadataURI [Optional] The URI of the metadata for the NFT.
205
+ * @param request.ipMetadata.nftMetadataHash [Optional] The hash of the metadata for the IP NFT.
206
+ * @param request.txOptions - [Optional] transaction. This extends `WaitForTransactionReceiptParameters` from the Viem library, excluding the `hash` property.
207
+ * @returns A Promise that resolves to a transaction hash, and if encodedTxDataOnly is true, includes encoded transaction data, or if waitForTransaction is true, includes IP ID and Token ID.
208
+ * @emits IPRegistered (ipId, chainId, tokenContract, tokenId, name, uri, registrationDate)
209
+ */
210
+ mintAndRegisterIp(request: MintAndRegisterIpRequest): Promise<RegisterIpResponse>;
211
+ /**
212
+ * Register Programmable IP License Terms (if unregistered) and attach it to IP.
213
+ * @param request - The request object that contains all data needed to attach license terms.
214
+ * @param request.ipId The ID of the IP.
215
+ * @param request.terms The PIL terms to be registered.
216
+ * @param request.terms.transferable Indicates whether the license is transferable or not.
217
+ * @param request.terms.royaltyPolicy The address of the royalty policy contract which required to StoryProtocol in advance.
218
+ * @param request.terms.mintingFee The fee to be paid when minting a license.
219
+ * @param request.terms.expiration The expiration period of the license.
220
+ * @param request.terms.commercialUse Indicates whether the work can be used commercially or not.
221
+ * @param request.terms.commercialAttribution Whether attribution is required when reproducing the work commercially or not.
222
+ * @param request.terms.commercializerChecker Commercializers that are allowed to commercially exploit the work. If zero address, then no restrictions is enforced.
223
+ * @param request.terms.commercializerCheckerData The data to be passed to the commercializer checker contract.
224
+ * @param request.terms.commercialRevShare Percentage of revenue that must be shared with the licensor.
225
+ * @param request.terms.commercialRevCeiling The maximum revenue that can be generated from the commercial use of the work.
226
+ * @param request.terms.derivativesAllowed Indicates whether the licensee can create derivatives of his work or not.
227
+ * @param request.terms.derivativesAttribution Indicates whether attribution is required for derivatives of the work or not.
228
+ * @param request.terms.derivativesApproval Indicates whether the licensor must approve derivatives of the work before they can be linked to the licensor IP ID or not.
229
+ * @param request.terms.derivativesReciprocal Indicates whether the licensee must license derivatives of the work under the same terms or not.
230
+ * @param request.terms.derivativeRevCeiling The maximum revenue that can be generated from the derivative use of the work.
231
+ * @param request.terms.currency The ERC20 token to be used to pay the minting fee. the token must be registered in story protocol.
232
+ * @param request.terms.uri The URI of the license terms, which can be used to fetch the offchain license terms.
233
+ * @param request.deadline [Optional] The deadline for the signature in milliseconds,default is 1000ms.
234
+ * @param request.txOptions [Optional] This extends `WaitForTransactionReceiptParameters` from the Viem library, excluding the `hash` property.
235
+ * @returns A Promise that resolves to a transaction hash, and if encodedTxDataOnly is true, includes encoded transaction data, and if waitForTransaction is true, includes license terms id.
236
+ * @emits LicenseTermsAttached (caller, ipId, licenseTemplate, licenseTermsId)
237
+ */
238
+ registerPilTermsAndAttach(request: RegisterPilTermsAndAttachRequest): Promise<RegisterPilTermsAndAttachResponse>;
239
+ /**
240
+ * Mint an NFT from a collection and register it as a derivative IP using license tokens
241
+ * @param request - The request object that contains all data needed to mint and register ip and make derivative with license tokens.
242
+ * @param request.spgNftContract The address of the NFT collection.
243
+ * @param request.licenseTokenIds The IDs of the license tokens to be burned for linking the IP to parent IPs.
244
+ * @param request.ipMetadata - [Optional] The desired metadata for the newly minted NFT and newly registered IP.
245
+ * @param request.ipMetadata.ipMetadataURI [Optional] The URI of the metadata for the IP.
246
+ * @param request.ipMetadata.ipMetadataHash [Optional] The hash of the metadata for the IP.
247
+ * @param request.ipMetadata.nftMetadataURI [Optional] The URI of the metadata for the NFT.
248
+ * @param request.ipMetadata.nftMetadataHash [Optional] The hash of the metadata for the IP NFT.
249
+ * @param request.recipient - [Optional] The address to receive the minted NFT,default value is your wallet address.
250
+ * @param request.txOptions - [Optional] transaction. This extends `WaitForTransactionReceiptParameters` from the Viem library, excluding the `hash` property.
251
+ * @returns A Promise that resolves to a transaction hash, and if encodedTxDataOnly is true, includes encoded transaction data, or if waitForTransaction is true, includes IP ID and Token ID.
252
+ * @emits IPRegistered (ipId, chainId, tokenContract, tokenId, name, uri, registrationDate)
253
+ */
254
+ mintAndRegisterIpAndMakeDerivativeWithLicenseTokens(request: MintAndRegisterIpAndMakeDerivativeWithLicenseTokensRequest): Promise<RegisterIpResponse>;
255
+ /**
256
+ * Register the given NFT as a derivative IP using license tokens.
257
+ * @param request - The request object that contains all data needed to register ip and make derivative with license tokens.
258
+ * @param request.nftContract The address of the NFT collection.
259
+ * @param request.licenseTokenIds The IDs of the license tokens to be burned for linking the IP to parent IPs.
260
+ * @param request.tokenId The ID of the NFT.
261
+ * @param request.deadline [Optional] The deadline for the signature in milliseconds, default is 1000ms.
262
+ * @param request.ipMetadata - [Optional] The desired metadata for the newly minted NFT and newly registered IP.
263
+ * @param request.ipMetadata.ipMetadataURI [Optional] The URI of the metadata for the IP.
264
+ * @param request.ipMetadata.ipMetadataHash [Optional] The hash of the metadata for the IP.
265
+ * @param request.ipMetadata.nftMetadataURI [Optional] The URI of the metadata for the NFT.
266
+ * @param request.ipMetadata.nftMetadataHash [Optional] The hash of the metadata for the IP NFT.
267
+ * @param request.txOptions [Optional] This extends `WaitForTransactionReceiptParameters` from the Viem library, excluding the `hash` property.
268
+ * @returns A Promise that resolves to a transaction hash, and if encodedTxDataOnly is true, includes encoded transaction data, or if waitForTransaction is true, includes IP ID.
269
+ */
270
+ registerIpAndMakeDerivativeWithLicenseTokens(request: RegisterIpAndMakeDerivativeWithLicenseTokensRequest): Promise<RegisterIpResponse>;
195
271
  private getIpIdAddress;
196
272
  private isRegistered;
197
273
  private getSigSignatureState;
198
274
  private getLicenseTermsId;
275
+ private validateLicenseTokenIds;
199
276
  }
200
277
  //# sourceMappingURL=ipAsset.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ipAsset.d.ts","sourceRoot":"../../../../src/resources","sources":["ipAsset.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,YAAY,EAWb,MAAM,MAAM,CAAC;AAGd,OAAO,EAAE,iBAAiB,EAAE,2BAAwB;AAE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UG;IACU,mCAAmC,CAC9C,OAAO,EAAE,0CAA0C,GAClD,OAAO,CAAC,2CAA2C,CAAC;IAiCvD;;;;;;;;;;;;;;;;;;OAkBG;IACU,kCAAkC,CAC7C,OAAO,EAAE,gCAAgC,GACxC,OAAO,CAAC,iCAAiC,CAAC;IAwD7C;;;;;;;;;;;;;;;;;;OAkBG;IACU,2BAA2B,CACtC,OAAO,EAAE,kCAAkC,GAC1C,OAAO,CAAC,mCAAmC,CAAC;IAoH/C;;;;;;;;;;;;;;;;;;OAkBG;IACU,oBAAoB,CAC/B,OAAO,EAAE,kCAAkC,GAC1C,OAAO,CAAC,mCAAmC,CAAC;IA+H/C;;;;;;;;;;;;;;;;;OAiBG;IACU,kCAAkC,CAC7C,OAAO,EAAE,yCAAyC,GACjD,OAAO,CAAC,0BAA0B,CAAC;IAiEtC;;;;;;;;;;;;;OAaG;IACU,iBAAiB,CAAC,OAAO,EAAE,wBAAwB,GAAG,OAAO,CAAC,kBAAkB,CAAC;IAgC9F;;;;;;;;;;;;;;;;;;;;;;;;;;OA0BG;IACU,yBAAyB,CACpC,OAAO,EAAE,gCAAgC,GACxC,OAAO,CAAC,iCAAiC,CAAC;IAiE7C;;;;;;;;;;;;;;OAcG;IACU,mDAAmD,CAC9D,OAAO,EAAE,0DAA0D,GAClE,OAAO,CAAC,kBAAkB,CAAC;IA4C9B;;;;;;;;;;;;;;OAcG;IACU,4CAA4C,CACvD,OAAO,EAAE,mDAAmD,GAC3D,OAAO,CAAC,kBAAkB,CAAC;YA+FhB,cAAc;YAYd,YAAY;IAI1B,OAAO,CAAC,oBAAoB;YA+Bd,iBAAiB;YAajB,uBAAuB;CAiBtC"}
@@ -1,18 +1,18 @@
1
1
  import { PublicClient } from "viem";
2
- import { IpAssetRegistryClient, LicenseRegistryEventClient, LicenseRegistryReadOnlyClient, LicensingModuleClient, PiLicenseTemplateClient, PiLicenseTemplateGetLicenseTermsResponse, PiLicenseTemplateReadOnlyClient, RoyaltyModuleReadOnlyClient, RoyaltyPolicyLapClient, SimpleWalletClient } from "../abi/generated.js";
2
+ import { IpAssetRegistryClient, LicenseRegistryEventClient, LicenseRegistryReadOnlyClient, LicensingModuleClient, PiLicenseTemplateClient, PiLicenseTemplateGetLicenseTermsResponse, PiLicenseTemplateReadOnlyClient, SimpleWalletClient } from "../abi/generated.js";
3
3
  import { RegisterNonComSocialRemixingPILRequest, RegisterPILResponse, RegisterCommercialUsePILRequest, RegisterCommercialRemixPILRequest, AttachLicenseTermsRequest, MintLicenseTokensRequest, MintLicenseTokensResponse, AttachLicenseTermsResponse, LicenseTermsId, RegisterPILTermsRequest } from "../types/resources/license.js";
4
+ import { SupportedChainIds } from "../types/config.js";
4
5
  export declare class LicenseClient {
5
6
  licenseRegistryClient: LicenseRegistryEventClient;
6
7
  licensingModuleClient: LicensingModuleClient;
7
8
  ipAssetRegistryClient: IpAssetRegistryClient;
8
9
  piLicenseTemplateReadOnlyClient: PiLicenseTemplateReadOnlyClient;
9
10
  licenseTemplateClient: PiLicenseTemplateClient;
10
- royaltyPolicyLAPClient: RoyaltyPolicyLapClient;
11
- royaltyModuleReadOnlyClient: RoyaltyModuleReadOnlyClient;
12
11
  licenseRegistryReadOnlyClient: LicenseRegistryReadOnlyClient;
13
12
  private readonly rpcClient;
14
13
  private readonly wallet;
15
- constructor(rpcClient: PublicClient, wallet: SimpleWalletClient);
14
+ private readonly chainId;
15
+ constructor(rpcClient: PublicClient, wallet: SimpleWalletClient, chainId: SupportedChainIds);
16
16
  /**
17
17
  * Registers new license terms and return the ID of the newly registered license terms.
18
18
  * @param request - The request object that contains all data needed to register a license term.
@@ -107,7 +107,5 @@ export declare class LicenseClient {
107
107
  */
108
108
  getLicenseTerms(selectedLicenseTermsId: LicenseTermsId): Promise<PiLicenseTemplateGetLicenseTermsResponse>;
109
109
  private getLicenseTermsId;
110
- private verifyCommercialUse;
111
- private verifyDerivatives;
112
110
  }
113
111
  //# sourceMappingURL=license.d.ts.map
@@ -1 +1 @@
1
- {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AC,QAAQ,CAAC,MAAM,CAAqB;IAC5C,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAoB;gBAEhC,SAAS,EAAE,YAAY,EAAE,MAAM,EAAE,kBAAkB,EAAE,OAAO,EAAE,iBAAiB;IAW3F;;;;;;;;;;;;;;;;;;;;;;;OAuBG;IACU,gBAAgB,CAAC,OAAO,EAAE,uBAAuB,GAAG,OAAO,CAAC,mBAAmB,CAAC;IAiC7F;;;;;;OAMG;IACU,+BAA+B,CAC1C,OAAO,CAAC,EAAE,sCAAsC,GAC/C,OAAO,CAAC,mBAAmB,CAAC;IAiC/B;;;;;;;;OAQG;IACU,wBAAwB,CACnC,OAAO,EAAE,+BAA+B,GACvC,OAAO,CAAC,mBAAmB,CAAC;IAwC/B;;;;;;;;;OASG;IACU,0BAA0B,CACrC,OAAO,EAAE,iCAAiC,GACzC,OAAO,CAAC,mBAAmB,CAAC;IA0C/B;;;;;;;;OAQG;IACU,kBAAkB,CAC7B,OAAO,EAAE,yBAAyB,GACjC,OAAO,CAAC,0BAA0B,CAAC;IAmDtC;;;;;;;;;;;;;;;;;;;;;OAqBG;IACU,iBAAiB,CAC5B,OAAO,EAAE,wBAAwB,GAChC,OAAO,CAAC,yBAAyB,CAAC;IAiErC;;;;OAIG;IACU,eAAe,CAC1B,sBAAsB,EAAE,cAAc,GACrC,OAAO,CAAC,wCAAwC,CAAC;YAUtC,iBAAiB;CAIhC"}
@@ -1,8 +1,8 @@
1
1
  import { PublicClient } from "viem";
2
- import { SimpleWalletClient, SpgClient } from "../abi/generated.js";
2
+ import { RegistrationWorkflowsClient, SimpleWalletClient } from "../abi/generated.js";
3
3
  import { CreateNFTCollectionRequest, CreateNFTCollectionResponse } from "../types/resources/nftClient.js";
4
4
  export declare class NftClient {
5
- spgClient: SpgClient;
5
+ registrationWorkflowsClient: RegistrationWorkflowsClient;
6
6
  private readonly rpcClient;
7
7
  private readonly wallet;
8
8
  constructor(rpcClient: PublicClient, wallet: SimpleWalletClient);
@@ -11,13 +11,18 @@ export declare class NftClient {
11
11
  * @param request - The request object containing necessary data to create a SPG NFT Collection.
12
12
  * @param request.name - The name of the collection.
13
13
  * @param request.symbol - The symbol of the collection.
14
- * @param request.maxSupply - The maximum supply of the collection.
15
- * @param request.mintFee - The cost to mint a token.
16
- * @param request.mintFeeToken - The token to mint.
17
- * @param request.owner - The owner of the collection.
18
- * @param request.txOptions - [Optional] transaction. This extends `WaitForTransactionReceiptParameters` from the Viem library, excluding the `hash` property.
19
- * @returns A Promise that resolves to a CreateNFTCollectionResponse containing the transaction hash and collection address.
20
- * @emits CollectionCreated (nftContract);
14
+ * @param request.isPublicMinting - If true, anyone can mint from the collection. If false, only the addresses with the minter role can mint.
15
+ * @param request.mintOpen Whether the collection is open for minting on creation.
16
+ * @param request.mintFeeRecipient - The address to receive mint fees.
17
+ * @param request.mintFeeRecipient - The contract URI for the collection. Follows ERC-7572 standard. See https://eips.ethereum.org/EIPS/eip-7572
18
+ * @param request.baseURI - [Optional] The base URI for the collection. If baseURI is not empty, tokenURI will be either baseURI + token ID (if nftMetadataURI is empty) or baseURI + nftMetadataURI.
19
+ * @param request.maxSupply - [Optional] The maximum supply of the collection.
20
+ * @param request.mintFee - [Optional] The cost to mint a token.
21
+ * @param request.mintFeeToken - [Optional] The token to mint.
22
+ * @param request.owner - [Optional] The owner of the collection.
23
+ * @param request.txOptions [Optional] This extends `WaitForTransactionReceiptParameters` from the Viem library, excluding the `hash` property.
24
+ * @returns A Promise that resolves to a transaction hash, and if encodedTxDataOnly is true, includes encoded transaction data, and if waitForTransaction is true, includes spg nft contract address.
25
+ * @emits CollectionCreated (spgNftContract);
21
26
  */
22
27
  createNFTCollection(request: CreateNFTCollectionRequest): Promise<CreateNFTCollectionResponse>;
23
28
  }
@@ -1 +1 @@
1
- {"version":3,"file":"nftClient.d.ts","sourceRoot":"../../../../src/resources","sources":["nftClient.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAqC,MAAM,MAAM,CAAC;AAEvE,OAAO,EAAE,kBAAkB,EAAE,SAAS,EAAE,4BAAyB;AACjE,OAAO,EACL,0BAA0B,EAC1B,2BAA2B,EAC5B,wCAAqC;AAItC,qBAAa,SAAS;IACb,SAAS,EAAE,SAAS,CAAC;IAC5B,OAAO,CAAC,QAAQ,CAAC,SAAS,CAAe;IACzC,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAqB;gBAEhC,SAAS,EAAE,YAAY,EAAE,MAAM,EAAE,kBAAkB;IAM/D;;;;;;;;;;;;OAYG;IACU,mBAAmB,CAC9B,OAAO,EAAE,0BAA0B,GAClC,OAAO,CAAC,2BAA2B,CAAC;CAyCxC"}
1
+ {"version":3,"file":"nftClient.d.ts","sourceRoot":"../../../../src/resources","sources":["nftClient.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAqC,MAAM,MAAM,CAAC;AAEvE,OAAO,EACL,2BAA2B,EAE3B,kBAAkB,EACnB,4BAAyB;AAC1B,OAAO,EACL,0BAA0B,EAC1B,2BAA2B,EAC5B,wCAAqC;AAItC,qBAAa,SAAS;IACb,2BAA2B,EAAE,2BAA2B,CAAC;IAChE,OAAO,CAAC,QAAQ,CAAC,SAAS,CAAe;IACzC,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAqB;gBAEhC,SAAS,EAAE,YAAY,EAAE,MAAM,EAAE,kBAAkB;IAM/D;;;;;;;;;;;;;;;;;OAiBG;IACU,mBAAmB,CAC9B,OAAO,EAAE,0BAA0B,GAClC,OAAO,CAAC,2BAA2B,CAAC;CAmDxC"}
@@ -1,11 +1,10 @@
1
1
  import { PublicClient } from "viem";
2
2
  import { CreateBatchPermissionSignatureRequest, CreateSetPermissionSignatureRequest, SetAllPermissionsRequest, SetBatchPermissionsRequest, SetPermissionsRequest, SetPermissionsResponse } from "../types/resources/permission.js";
3
- import { AccessControllerClient, CoreMetadataModuleClient, IpAssetRegistryClient, SimpleWalletClient, SpgClient } from "../abi/generated.js";
3
+ import { AccessControllerClient, CoreMetadataModuleClient, IpAssetRegistryClient, SimpleWalletClient } from "../abi/generated.js";
4
4
  import { SupportedChainIds } from "../types/config.js";
5
5
  export declare class PermissionClient {
6
6
  accessControllerClient: AccessControllerClient;
7
7
  ipAssetRegistryClient: IpAssetRegistryClient;
8
- spgClient: SpgClient;
9
8
  coreMetadataModuleClient: CoreMetadataModuleClient;
10
9
  private readonly wallet;
11
10
  private readonly rpcClient;
@@ -1 +1 @@
1
- {"version":3,"file":"permission.d.ts","sourceRoot":"../../../../src/resources","sources":["permission.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAiE,MAAM,MAAM,CAAC;AAGnG,OAAO,EACL,qCAAqC,EACrC,mCAAmC,EACnC,wBAAwB,EACxB,0BAA0B,EAC1B,qBAAqB,EACrB,sBAAsB,EACvB,yCAAsC;AACvC,OAAO,EAEL,sBAAsB,EACtB,wBAAwB,EAExB,qBAAqB,EACrB,kBAAkB,EAClB,SAAS,EACV,4BAAyB;AAE1B,OAAO,EAAE,iBAAiB,EAAE,2BAAwB;AAIpD,qBAAa,gBAAgB;IACpB,sBAAsB,EAAE,sBAAsB,CAAC;IAC/C,qBAAqB,EAAE,qBAAqB,CAAC;IAC7C,SAAS,EAAE,SAAS,CAAC;IACrB,wBAAwB,EAAE,wBAAwB,CAAC;IAC1D,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAqB;IAC5C,OAAO,CAAC,QAAQ,CAAC,SAAS,CAAe;IACzC,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAoB;gBAEhC,SAAS,EAAE,YAAY,EAAE,MAAM,EAAE,kBAAkB,EAAE,OAAO,EAAE,iBAAiB;IAU3F;;;;;;;;;;;;;;;;;;;OAmBG;IACU,aAAa,CAAC,OAAO,EAAE,qBAAqB,GAAG,OAAO,CAAC,sBAAsB,CAAC;IA8B3F;;;;;;;;;;;;OAYG;IACU,4BAA4B,CACvC,OAAO,EAAE,mCAAmC,GAC3C,OAAO,CAAC,sBAAsB,CAAC;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B,CAAC;IA6DlC;;;;;;;;;OASG;IACU,iBAAiB,CAC5B,OAAO,EAAE,wBAAwB,GAChC,OAAO,CAAC,sBAAsB,CAAC;IA0BlC;;;;;;;;;;;;;OAaG;IACU,mBAAmB,CAC9B,OAAO,EAAE,0BAA0B,GAClC,OAAO,CAAC,sBAAsB,CAAC;IAiClC;;;;;;;;;;;;;OAaG;IACU,8BAA8B,CACzC,OAAO,EAAE,qCAAqC,GAC7C,OAAO,CAAC,sBAAsB,CAAC;YA0DpB,iBAAiB;CAQhC"}
@@ -1,25 +1,17 @@
1
1
  import { Address, Hex, PublicClient } from "viem";
2
- import { ClaimableRevenueRequest, ClaimableRevenueResponse, CollectRoyaltyTokensRequest, CollectRoyaltyTokensResponse, PayRoyaltyOnBehalfRequest, PayRoyaltyOnBehalfResponse, SnapshotRequest, SnapshotResponse, ClaimRevenueRequest, ClaimRevenueResponse } from "../types/resources/royalty.js";
3
- import { IpAssetRegistryClient, RoyaltyModuleClient, RoyaltyPolicyLapClient, SimpleWalletClient } from "../abi/generated.js";
2
+ import { ClaimableRevenueRequest, ClaimableRevenueResponse, PayRoyaltyOnBehalfRequest, PayRoyaltyOnBehalfResponse, SnapshotRequest, SnapshotResponse, TransferToVaultAndSnapshotAndClaimByTokenBatchRequest, TransferToVaultAndSnapshotAndClaimBySnapshotBatchRequest, SnapshotAndClaimByTokenBatchRequest, SnapshotAndClaimBySnapshotBatchRequest, ClaimRevenueRequest, ClaimRevenueResponse, SnapshotAndClaimBySnapshotBatchResponse, TransferToVaultAndSnapshotAndClaimBySnapshotBatchResponse, TransferToVaultAndSnapshotAndClaimByTokenBatchResponse, SnapshotAndClaimByTokenBatchResponse } from "../types/resources/royalty.js";
3
+ import { IpAssetRegistryClient, IpRoyaltyVaultImplClient, IpRoyaltyVaultImplEventClient, RoyaltyModuleClient, RoyaltyWorkflowsClient, SimpleWalletClient } from "../abi/generated.js";
4
4
  import { IPAccountClient } from "./ipAccount.js";
5
5
  export declare class RoyaltyClient {
6
- royaltyPolicyLapClient: RoyaltyPolicyLapClient;
7
6
  royaltyModuleClient: RoyaltyModuleClient;
8
7
  ipAssetRegistryClient: IpAssetRegistryClient;
9
8
  ipAccountClient: IPAccountClient;
9
+ royaltyWorkflowsClient: RoyaltyWorkflowsClient;
10
+ ipRoyaltyVaultImplClient: IpRoyaltyVaultImplClient;
11
+ ipRoyaltyVaultImplEventClient: IpRoyaltyVaultImplEventClient;
10
12
  private readonly rpcClient;
11
13
  private readonly wallet;
12
14
  constructor(rpcClient: PublicClient, wallet: SimpleWalletClient);
13
- /**
14
- * Allows ancestors to claim the royalty tokens and any accrued revenue tokens
15
- * @param request - The request object that contains all data needed to collect royalty tokens.
16
- * @param request.parentIpId The ip id of the ancestor to whom the royalty tokens belong to.
17
- * @param request.royaltyVaultIpId The id of the royalty vault.
18
- * @param request.txOptions - [Optional] transaction. This extends `WaitForTransactionReceiptParameters` from the Viem library, excluding the `hash` property.
19
- * @returns A Promise that resolves to an object containing the transaction hash and optional the amount of royalty tokens collected if waitForTxn is set to true.
20
- * @emits RoyaltyTokensCollected (ancestorIpId, royaltyTokensCollected)
21
- */
22
- collectRoyaltyTokens(request: CollectRoyaltyTokensRequest): Promise<CollectRoyaltyTokensResponse>;
23
15
  /**
24
16
  * Allows the function caller to pay royalties to the receiver IP asset on behalf of the payer IP asset.
25
17
  * @param request - The request object that contains all data needed to pay royalty on behalf.
@@ -68,5 +60,64 @@ export declare class RoyaltyClient {
68
60
  * @returns A Promise that resolves to an object containing the royalty vault address.
69
61
  */
70
62
  getRoyaltyVaultAddress(royaltyVaultIpId: Hex): Promise<Address>;
63
+ /**
64
+ * Transfers royalties from royalty policy to the ancestor IP's royalty vault, takes a snapshot, and claims revenue on that snapshot for each specified currency token.
65
+ * @param request - The request object that contains all data needed to transfer to vault and snapshot and claim by token batch.
66
+ * @param request.ancestorIpId The address of the ancestor IP.
67
+ * @param request.royaltyClaimDetails The details of the royalty claim from child IPs
68
+ * @param request.royaltyClaimDetails - The details of the royalty claim from child IPs
69
+ * @param request.royaltyClaimDetails.childIpId The address of the child IP.
70
+ * @param request.royaltyClaimDetails.royaltyPolicy The address of the royalty policy.
71
+ * @param request.royaltyClaimDetails.currencyToken The address of the currency (revenue) token to claim.
72
+ * @param request.claimer [Optional] The address of the claimer of the revenue tokens (must be a royalty token holder), default value is wallet address.
73
+ * @param request.txOptions [Optional] This extends `WaitForTransactionReceiptParameters` from the Viem library, excluding the `hash` property.
74
+ * @returns A Promise that resolves to a transaction hash, and if encodedTxDataOnly is true, includes encoded transaction data, or if waitForTransaction is true, includes snapshot ID and amounts claimed.
75
+ * @emits SnapshotCompleted (snapshotId, snapshotTimestamp, unclaimedTokens).
76
+ * @emits RevenueTokenClaimed (claimer, token, amount).
77
+ */
78
+ transferToVaultAndSnapshotAndClaimByTokenBatch(request: TransferToVaultAndSnapshotAndClaimByTokenBatchRequest): Promise<TransferToVaultAndSnapshotAndClaimByTokenBatchResponse>;
79
+ /**
80
+ * Transfers royalties to the ancestor IP's royalty vault, takes a snapshot, claims revenue for each
81
+ * specified currency token both on the new snapshot and on each specified unclaimed snapshots.
82
+ * @param request - The request object that contains all data needed to transfer to vault and snapshot and claim by snapshot batch.
83
+ * @param request.ancestorIpId The address of the ancestor IP.
84
+ * @param request.unclaimedSnapshotIds The IDs of unclaimed snapshots to include in the claim.
85
+ * @param request.royaltyClaimDetails The details of the royalty claim from child IPs
86
+ * @param request.royaltyClaimDetails - The details of the royalty claim from child IPs
87
+ * @param request.royaltyClaimDetails.childIpId The address of the child IP.
88
+ * @param request.royaltyClaimDetails.royaltyPolicy The address of the royalty policy.
89
+ * @param request.royaltyClaimDetails.currencyToken The address of the currency (revenue) token to claim.
90
+ * @param request.claimer [Optional] The address of the claimer of the revenue tokens (must be a royalty token holder), default value is wallet address.
91
+ * @param request.txOptions [Optional] This extends `WaitForTransactionReceiptParameters` from the Viem library, excluding the `hash` property.
92
+ * @returns A Promise that resolves to a transaction hash, and if encodedTxDataOnly is true, includes encoded transaction data, or if waitForTransaction is true, includes snapshot ID and amounts claimed.
93
+ * @emits SnapshotCompleted (snapshotId, snapshotTimestamp, unclaimedTokens).
94
+ * @emits RevenueTokenClaimed (claimer, token, amount).
95
+ */
96
+ transferToVaultAndSnapshotAndClaimBySnapshotBatch(request: TransferToVaultAndSnapshotAndClaimBySnapshotBatchRequest): Promise<TransferToVaultAndSnapshotAndClaimBySnapshotBatchResponse>;
97
+ /**
98
+ * Takes a snapshot of the IP's royalty vault and claims revenue on that snapshot for each
99
+ * @param request - The request object that contains all data needed to snapshot and claim by token batch.
100
+ * @param request.royaltyVaultIpId The address of the IP.
101
+ * @param request.currencyTokens The addresses of the currency (revenue) tokens to claim.
102
+ * @param request.claimer [Optional] The address of the claimer of the revenue tokens (must be a royalty token holder), default value is wallet address.
103
+ * @param request.txOptions [Optional] This extends `WaitForTransactionReceiptParameters` from the Viem library, excluding the `hash` property.
104
+ * @returns A Promise that resolves to a transaction hash, and if encodedTxDataOnly is true, includes encoded transaction data, or if waitForTransaction is true, includes snapshot ID and amounts claimed.
105
+ * @emits SnapshotCompleted (snapshotId, snapshotTimestamp, unclaimedTokens).
106
+ * @emits RevenueTokenClaimed (claimer, token, amount).
107
+ */
108
+ snapshotAndClaimByTokenBatch(request: SnapshotAndClaimByTokenBatchRequest): Promise<SnapshotAndClaimByTokenBatchResponse>;
109
+ /**
110
+ * Takes a snapshot of the IP's royalty vault and claims revenue for each specified currency token
111
+ * @param request - The request object that contains all data needed to snapshot and claim by snapshot batch.
112
+ * @param request.royaltyVaultIpId The address of the IP.
113
+ * @param request.unclaimedSnapshotIds The IDs of unclaimed snapshots to include in the claim.
114
+ * @param request.currencyTokens The addresses of the currency (revenue) tokens to claim.
115
+ * @param request.claimer [Optional] The address of the claimer of the revenue tokens (must be a royalty token holder), default value is wallet address.
116
+ * @param request.txOptions [Optional] This extends `WaitForTransactionReceiptParameters` from the Viem library, excluding the `hash` property.
117
+ * @returns A Promise that resolves to a transaction hash, and if encodedTxDataOnly is true, includes encoded transaction data, or if waitForTransaction is true, includes snapshot ID and amounts claimed.
118
+ * @emits SnapshotCompleted (snapshotId, snapshotTimestamp, unclaimedTokens).
119
+ * @emits RevenueTokenClaimed (claimer, token, amount).
120
+ */
121
+ snapshotAndClaimBySnapshotBatch(request: SnapshotAndClaimBySnapshotBatchRequest): Promise<SnapshotAndClaimBySnapshotBatchResponse>;
71
122
  }
72
123
  //# sourceMappingURL=royalty.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"royalty.d.ts","sourceRoot":"../../../../src/resources","sources":["royalty.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,GAAG,EAAE,YAAY,EAAmC,MAAM,MAAM,CAAC;AAGnF,OAAO,EACL,uBAAuB,EACvB,wBAAwB,EACxB,2BAA2B,EAC3B,4BAA4B,EAC5B,yBAAyB,EACzB,0BAA0B,EAC1B,eAAe,EACf,gBAAgB,EAChB,mBAAmB,EACnB,oBAAoB,EACrB,sCAAmC;AACpC,OAAO,EACL,qBAAqB,EAErB,mBAAmB,EACnB,sBAAsB,EACtB,kBAAkB,EAEnB,4BAAyB;AAC1B,OAAO,EAAE,eAAe,EAAE,uBAAoB;AAG9C,qBAAa,aAAa;IACjB,sBAAsB,EAAE,sBAAsB,CAAC;IAC/C,mBAAmB,EAAE,mBAAmB,CAAC;IACzC,qBAAqB,EAAE,qBAAqB,CAAC;IAC7C,eAAe,EAAE,eAAe,CAAC;IACxC,OAAO,CAAC,QAAQ,CAAC,SAAS,CAAe;IACzC,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAqB;gBAEhC,SAAS,EAAE,YAAY,EAAE,MAAM,EAAE,kBAAkB;IAS/D;;;;;;;;OAQG;IACU,oBAAoB,CAC/B,OAAO,EAAE,2BAA2B,GACnC,OAAO,CAAC,4BAA4B,CAAC;IA0CxC;;;;;;;;;OASG;IACU,kBAAkB,CAC7B,OAAO,EAAE,yBAAyB,GACjC,OAAO,CAAC,0BAA0B,CAAC;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Q,CAAC,MAAM,CAAqB;gBAEhC,SAAS,EAAE,YAAY,EAAE,MAAM,EAAE,kBAAkB;IAW/D;;;;;;;;;OASG;IACU,kBAAkB,CAC7B,OAAO,EAAE,yBAAyB,GACjC,OAAO,CAAC,0BAA0B,CAAC;IA0CtC;;;;;;;;OAQG;IACU,gBAAgB,CAC3B,OAAO,EAAE,uBAAuB,GAC/B,OAAO,CAAC,wBAAwB,CAAC;IAmBpC;;;;;;;;;;OAUG;IACU,YAAY,CAAC,OAAO,EAAE,mBAAmB,GAAG,OAAO,CAAC,oBAAoB,CAAC;IAsDtF;;;;;;;OAOG;IACU,QAAQ,CAAC,OAAO,EAAE,eAAe,GAAG,OAAO,CAAC,gBAAgB,CAAC;IA8B1E;;;;OAIG;IACU,sBAAsB,CAAC,gBAAgB,EAAE,GAAG,GAAG,OAAO,CAAC,OAAO,CAAC;IAS5E;;;;;;;;;;;;;;OAcG;IACU,8CAA8C,CACzD,OAAO,EAAE,qDAAqD,GAC7D,OAAO,CAAC,sDAAsD,CAAC;IAuDlE;;;;;;;;;;;;;;;;OAgBG;IACU,iDAAiD,CAC5D,OAAO,EAAE,wDAAwD,GAChE,OAAO,CAAC,yDAAyD,CAAC;IA8DrE;;;;;;;;;;OAUG;IACU,4BAA4B,CACvC,OAAO,EAAE,mCAAmC,GAC3C,OAAO,CAAC,oCAAoC,CAAC;IA+ChD;;;;;;;;;;;OAWG;IACU,+BAA+B,CAC1C,OAAO,EAAE,sCAAsC,GAC9C,OAAO,CAAC,uCAAuC,CAAC;CAgDpD"}
@@ -1,17 +1,16 @@
1
- import { Address, Hex, WalletClient } from "viem";
2
- import { SetPermissionsRequest } from "./resources/permission.js";
1
+ import { Hex } from "viem";
2
+ import { TxOptions } from "./options.js";
3
3
  export type TypedData = {
4
4
  interface: string;
5
5
  data: unknown[];
6
6
  };
7
- export type PermissionSignatureRequest = {
8
- ipId: Address;
9
- state: Hex;
10
- deadline: string | number | bigint;
11
- wallet: WalletClient;
12
- chainId: string | number | bigint;
13
- permissions: Omit<SetPermissionsRequest, "txOptions">[];
14
- permissionFunc?: "setPermission" | "setBatchPermissions";
7
+ export type IpMetadataAndTxOption = {
8
+ ipMetadata?: {
9
+ ipMetadataURI?: string;
10
+ ipMetadataHash?: Hex;
11
+ nftMetadataURI?: string;
12
+ nftMetadataHash?: Hex;
13
+ };
14
+ txOptions?: TxOptions;
15
15
  };
16
- export type PermissionSignatureResponse = Hex;
17
16
  //# sourceMappingURL=common.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"common.d.ts","sourceRoot":"../../../../src/types","sources":["common.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,GAAG,EAAE,YAAY,EAAE,MAAM,MAAM,CAAC;AAElD,OAAO,EAAE,qBAAqB,EAAE,kCAA+B;AAE/D,MAAM,MAAM,SAAS,GAAG;IACtB,SAAS,EAAE,MAAM,CAAC;IAClB,IAAI,EAAE,OAAO,EAAE,CAAC;CACjB,CAAC;AAEF,MAAM,MAAM,0BAA0B,GAAG;IACvC,IAAI,EAAE,OAAO,CAAC;IACd,KAAK,EAAE,GAAG,CAAC;IACX,QAAQ,EAAE,MAAM,GAAG,MAAM,GAAG,MAAM,CAAC;IACnC,MAAM,EAAE,YAAY,CAAC;IACrB,OAAO,EAAE,MAAM,GAAG,MAAM,GAAG,MAAM,CAAC;IAClC,WAAW,EAAE,IAAI,CAAC,qBAAqB,EAAE,WAAW,CAAC,EAAE,CAAC;IACxD,cAAc,CAAC,EAAE,eAAe,GAAG,qBAAqB,CAAC;CAC1D,CAAC;AAEF,MAAM,MAAM,2BAA2B,GAAG,GAAG,CAAC"}
1
+ {"version":3,"file":"common.d.ts","sourceRoot":"../../../../src/types","sources":["common.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,MAAM,CAAC;AAE3B,OAAO,EAAE,SAAS,EAAE,qBAAkB;AAEtC,MAAM,MAAM,SAAS,GAAG;IACtB,SAAS,EAAE,MAAM,CAAC;IAClB,IAAI,EAAE,OAAO,EAAE,CAAC;CACjB,CAAC;AAEF,MAAM,MAAM,qBAAqB,GAAG;IAClC,UAAU,CAAC,EAAE;QACX,aAAa,CAAC,EAAE,MAAM,CAAC;QACvB,cAAc,CAAC,EAAE,GAAG,CAAC;QACrB,cAAc,CAAC,EAAE,MAAM,CAAC;QACxB,eAAe,CAAC,EAAE,GAAG,CAAC;KACvB,CAAC;IACF,SAAS,CAAC,EAAE,SAAS,CAAC;CACvB,CAAC"}
@@ -1,12 +1,11 @@
1
- import { Address } from "viem";
1
+ import { Address, Hex } from "viem";
2
2
  import { TxOptions } from "../options.js";
3
3
  import { EncodedTxData } from "../../abi/generated.js";
4
4
  export type RaiseDisputeRequest = {
5
5
  targetIpId: Address;
6
- arbitrationPolicy: Address;
7
- linkToDisputeEvidence: string;
6
+ disputeEvidenceHash: Hex;
8
7
  targetTag: string;
9
- calldata?: Address;
8
+ data?: Address;
10
9
  txOptions?: TxOptions;
11
10
  };
12
11
  export type RaiseDisputeResponse = {
@@ -16,7 +15,7 @@ export type RaiseDisputeResponse = {
16
15
  };
17
16
  export type CancelDisputeRequest = {
18
17
  disputeId: number | string | bigint;
19
- calldata?: Address;
18
+ data?: Address;
20
19
  txOptions?: TxOptions;
21
20
  };
22
21
  export type CancelDisputeResponse = {
@@ -1 +1 @@
1
- {"version":3,"file":"dispute.d.ts","sourceRoot":"../../../../../src/types/resources","sources":["dispute.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,MAAM,CAAC;AAE/B,OAAO,EAAE,SAAS,EAAE,sBAAmB;AACvC,OAAO,EAAE,aAAa,EAAE,+BAA4B;AAEpD,MAAM,MAAM,mBAAmB,GAAG;IAChC,UAAU,EAAE,OAAO,CAAC;IACpB,iBAAiB,EAAE,OAAO,CAAC;IAC3B,qBAAqB,EAAE,MAAM,CAAC;IAC9B,SAAS,EAAE,MAAM,CAAC;IAClB,QAAQ,CAAC,EAAE,OAAO,CA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