@story-protocol/core-sdk 1.3.0-rc.3 → 1.3.1-beta

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (61) hide show
  1. package/README.md +29 -101
  2. package/dist/declarations/src/abi/generated.d.ts +1803 -3477
  3. package/dist/declarations/src/abi/generated.d.ts.map +1 -1
  4. package/dist/declarations/src/client.d.ts +3 -27
  5. package/dist/declarations/src/client.d.ts.map +1 -1
  6. package/dist/declarations/src/constants/common.d.ts +1 -4
  7. package/dist/declarations/src/constants/common.d.ts.map +1 -1
  8. package/dist/declarations/src/index.d.ts +13 -13
  9. package/dist/declarations/src/index.d.ts.map +1 -1
  10. package/dist/declarations/src/resources/dispute.d.ts +13 -29
  11. package/dist/declarations/src/resources/dispute.d.ts.map +1 -1
  12. package/dist/declarations/src/resources/group.d.ts +17 -14
  13. package/dist/declarations/src/resources/group.d.ts.map +1 -1
  14. package/dist/declarations/src/resources/ipAccount.d.ts +6 -24
  15. package/dist/declarations/src/resources/ipAccount.d.ts.map +1 -1
  16. package/dist/declarations/src/resources/ipAsset.d.ts +74 -171
  17. package/dist/declarations/src/resources/ipAsset.d.ts.map +1 -1
  18. package/dist/declarations/src/resources/license.d.ts +22 -79
  19. package/dist/declarations/src/resources/license.d.ts.map +1 -1
  20. package/dist/declarations/src/resources/nftClient.d.ts +3 -15
  21. package/dist/declarations/src/resources/nftClient.d.ts.map +1 -1
  22. package/dist/declarations/src/resources/permission.d.ts +13 -56
  23. package/dist/declarations/src/resources/permission.d.ts.map +1 -1
  24. package/dist/declarations/src/resources/royalty.d.ts +12 -8
  25. package/dist/declarations/src/resources/royalty.d.ts.map +1 -1
  26. package/dist/declarations/src/types/common.d.ts +20 -6
  27. package/dist/declarations/src/types/common.d.ts.map +1 -1
  28. package/dist/declarations/src/types/config.d.ts +15 -0
  29. package/dist/declarations/src/types/config.d.ts.map +1 -1
  30. package/dist/declarations/src/types/options.d.ts +9 -4
  31. package/dist/declarations/src/types/options.d.ts.map +1 -1
  32. package/dist/declarations/src/types/resources/dispute.d.ts +14 -3
  33. package/dist/declarations/src/types/resources/dispute.d.ts.map +1 -1
  34. package/dist/declarations/src/types/resources/group.d.ts +29 -9
  35. package/dist/declarations/src/types/resources/group.d.ts.map +1 -1
  36. package/dist/declarations/src/types/resources/ipAccount.d.ts +13 -2
  37. package/dist/declarations/src/types/resources/ipAccount.d.ts.map +1 -1
  38. package/dist/declarations/src/types/resources/ipAsset.d.ts +99 -35
  39. package/dist/declarations/src/types/resources/ipAsset.d.ts.map +1 -1
  40. package/dist/declarations/src/types/resources/license.d.ts +77 -13
  41. package/dist/declarations/src/types/resources/license.d.ts.map +1 -1
  42. package/dist/declarations/src/types/resources/nftClient.d.ts +11 -3
  43. package/dist/declarations/src/types/resources/nftClient.d.ts.map +1 -1
  44. package/dist/declarations/src/types/resources/permission.d.ts +36 -4
  45. package/dist/declarations/src/types/resources/permission.d.ts.map +1 -1
  46. package/dist/declarations/src/types/resources/royalty.d.ts +4 -0
  47. package/dist/declarations/src/types/resources/royalty.d.ts.map +1 -1
  48. package/dist/declarations/src/types/utils/wip.d.ts +64 -0
  49. package/dist/declarations/src/types/utils/wip.d.ts.map +1 -0
  50. package/dist/declarations/src/utils/chain.d.ts +2 -0
  51. package/dist/declarations/src/utils/chain.d.ts.map +1 -1
  52. package/dist/declarations/src/utils/getIpMetadataForWorkflow.d.ts +1 -1
  53. package/dist/declarations/src/utils/getIpMetadataForWorkflow.d.ts.map +1 -1
  54. package/dist/declarations/src/utils/sign.d.ts +0 -17
  55. package/dist/declarations/src/utils/sign.d.ts.map +1 -1
  56. package/dist/declarations/src/utils/token.d.ts +28 -0
  57. package/dist/declarations/src/utils/token.d.ts.map +1 -0
  58. package/dist/story-protocol-core-sdk.cjs.dev.js +3538 -2847
  59. package/dist/story-protocol-core-sdk.cjs.prod.js +3538 -2847
  60. package/dist/story-protocol-core-sdk.esm.js +3538 -2847
  61. package/package.json +1 -1
@@ -1,10 +1,10 @@
1
- import { Address, Hash, Hex, TransactionReceipt } from "viem";
1
+ import { Address, Hash, Hex, TransactionReceipt, WaitForTransactionReceiptParameters } from "viem";
2
2
  import { TxOptions, WithWipOptions } from "../options.js";
3
- import { LicenseTerms, RegisterPILTermsRequest } from "./license.js";
4
- import { EncodedTxData } from "../../abi/generated.js";
5
- import { IpMetadataAndTxOptions, LicensingConfig, ValidatedLicensingConfig } from "../common.js";
6
- import { IpMetadataForWorkflow } from "../../utils/getIpMetadataForWorkflow.js";
7
- export type DerivativeData = {
3
+ import { LicenseTerms, LicenseTermsInput } from "./license.js";
4
+ import { DerivativeWorkflowsClient, DerivativeWorkflowsMintAndRegisterIpAndMakeDerivativeRequest, DerivativeWorkflowsRegisterIpAndMakeDerivativeRequest, EncodedTxData, LicenseAttachmentWorkflowsClient, LicenseAttachmentWorkflowsMintAndRegisterIpAndAttachPilTermsRequest, LicenseAttachmentWorkflowsRegisterIpAndAttachPilTermsRequest, RoyaltyModuleIpRoyaltyVaultDeployedEvent, RoyaltyTokenDistributionWorkflowsClient, RoyaltyTokenDistributionWorkflowsDistributeRoyaltyTokensRequest, RoyaltyTokenDistributionWorkflowsMintAndRegisterIpAndAttachPilTermsAndDistributeRoyaltyTokensRequest, RoyaltyTokenDistributionWorkflowsMintAndRegisterIpAndMakeDerivativeAndDistributeRoyaltyTokensRequest, RoyaltyTokenDistributionWorkflowsRegisterIpAndAttachPilTermsAndDeployRoyaltyVaultRequest, RoyaltyTokenDistributionWorkflowsRegisterIpAndMakeDerivativeAndDeployRoyaltyVaultRequest } from "../../abi/generated.js";
5
+ import { IpMetadataAndTxOptions, LicensingConfig, LicensingConfigInput } from "../common.js";
6
+ import { Erc20Spender } from "../utils/wip.js";
7
+ export type DerivativeDataInput = {
8
8
  parentIpIds: Address[];
9
9
  /** The IDs of the license terms that the parent IP supports. */
10
10
  licenseTermsIds: bigint[] | string[] | number[];
@@ -23,10 +23,13 @@ export type DerivativeData = {
23
23
  * @default 100
24
24
  */
25
25
  maxRevenueShare?: number | string;
26
- /** The license template address, default value is Programmable IP License. */
26
+ /**
27
+ * The address of the license template.
28
+ * Defaults to {@link https://docs.story.foundation/docs/programmable-ip-license | License Template} address if not provided.
29
+ */
27
30
  licenseTemplate?: Address;
28
31
  };
29
- export type InternalDerivativeData = {
32
+ export type DerivativeData = {
30
33
  parentIpIds: readonly Address[];
31
34
  licenseTermsIds: readonly bigint[];
32
35
  royaltyContext: Hex;
@@ -39,13 +42,22 @@ export type RegisterIpResponse = RegistrationResponse & {
39
42
  encodedTxData?: EncodedTxData;
40
43
  };
41
44
  export type RegisterRequest = {
45
+ /** The address of the NFT. */
42
46
  nftContract: Address;
47
+ /** The token identifier of the NFT. */
43
48
  tokenId: string | number | bigint;
49
+ /**
50
+ * The deadline of the transaction signature in seconds.
51
+ * @default 1000
52
+ */
44
53
  deadline?: string | number | bigint;
45
54
  } & IpMetadataAndTxOptions;
46
55
  export type RegisterDerivativeWithLicenseTokensRequest = {
56
+ /** The derivative IP ID. */
47
57
  childIpId: Address;
58
+ /** The IDs of the license tokens. */
48
59
  licenseTokenIds: string[] | bigint[] | number[];
60
+ /** The maximum number of royalty tokens that can be distributed to the external royalty policies (max: 100,000,000). */
49
61
  maxRts: number | string;
50
62
  txOptions?: TxOptions;
51
63
  };
@@ -53,7 +65,7 @@ export type RegisterDerivativeWithLicenseTokensResponse = {
53
65
  txHash?: Hex;
54
66
  encodedTxData?: EncodedTxData;
55
67
  };
56
- export type RegisterDerivativeRequest = WithWipOptions & DerivativeData & {
68
+ export type RegisterDerivativeRequest = WithWipOptions & DerivativeDataInput & {
57
69
  txOptions?: TxOptions;
58
70
  childIpId: Address;
59
71
  };
@@ -61,12 +73,12 @@ export type RegisterDerivativeResponse = {
61
73
  txHash?: Hex;
62
74
  encodedTxData?: EncodedTxData;
63
75
  };
64
- export type LicenseTermsData<T = RegisterPILTermsRequest, C = LicensingConfig> = {
76
+ export type LicenseTermsDataInput<T = LicenseTermsInput, C = LicensingConfigInput> = {
65
77
  terms: T;
66
78
  licensingConfig?: C;
67
79
  };
68
- export type ValidatedLicenseTermsData = Omit<LicenseTermsData<LicenseTerms, ValidatedLicensingConfig>, "licensingConfig"> & {
69
- licensingConfig: ValidatedLicensingConfig;
80
+ export type LicenseTermsData = Omit<LicenseTermsDataInput<LicenseTerms, LicensingConfig>, "licensingConfig"> & {
81
+ licensingConfig: LicensingConfig;
70
82
  };
71
83
  export type MintAndRegisterIpAssetWithPilTermsRequest = {
72
84
  spgNftContract: Address;
@@ -76,8 +88,8 @@ export type MintAndRegisterIpAssetWithPilTermsRequest = {
76
88
  */
77
89
  allowDuplicates?: boolean;
78
90
  /** The data of the license and its configuration to be attached to the IP. */
79
- licenseTermsData: LicenseTermsData[];
80
- /** The address to receive the minted NFT. If not provided, the function will use the user's own wallet address. */
91
+ licenseTermsData: LicenseTermsDataInput[];
92
+ /** The address to receive the minted NFT. If not provided, the client's own wallet address will be used. */
81
93
  recipient?: Address;
82
94
  } & IpMetadataAndTxOptions & WithWipOptions;
83
95
  export type MintAndRegisterIpAssetWithPilTermsResponse = {
@@ -97,7 +109,7 @@ export type RegisterIpAndMakeDerivativeRequest = {
97
109
  */
98
110
  deadline?: string | number | bigint;
99
111
  /** The derivative data to be used for register derivative. */
100
- derivData: DerivativeData;
112
+ derivData: DerivativeDataInput;
101
113
  } & IpMetadataAndTxOptions & WithWipOptions;
102
114
  export type RegisterIpAndMakeDerivativeResponse = {
103
115
  txHash?: Hex;
@@ -110,7 +122,7 @@ export type RegisterIpAndAttachPilTermsRequest = {
110
122
  nftContract: Address;
111
123
  tokenId: bigint | string | number;
112
124
  /** The data of the license and its configuration to be attached to the IP. */
113
- licenseTermsData: LicenseTermsData[];
125
+ licenseTermsData: LicenseTermsDataInput[];
114
126
  /**
115
127
  * The deadline for the signature in seconds.
116
128
  * @default 1000
@@ -127,8 +139,8 @@ export type RegisterIpAndAttachPilTermsResponse = {
127
139
  export type MintAndRegisterIpAndMakeDerivativeRequest = {
128
140
  spgNftContract: Address;
129
141
  /** The derivative data to be used for register derivative. */
130
- derivData: DerivativeData;
131
- /** The address to receive the minted NFT. If not provided, the function will use the user's own wallet address. */
142
+ derivData: DerivativeDataInput;
143
+ /** The address to receive the minted NFT. If not provided, the client's own wallet address will be used. */
132
144
  recipient?: Address;
133
145
  /**
134
146
  * Set to true to allow minting an NFT with a duplicate metadata hash.
@@ -139,7 +151,7 @@ export type MintAndRegisterIpAndMakeDerivativeRequest = {
139
151
  export type MintAndRegisterIpAndMakeDerivativeResponse = RegistrationResponse & {
140
152
  encodedTxData?: EncodedTxData;
141
153
  };
142
- type IPMetadataInfo = {
154
+ type WithIpMetadata = {
143
155
  ipMetadata?: {
144
156
  ipMetadataURI?: string;
145
157
  ipMetadataHash?: Hex;
@@ -149,6 +161,7 @@ type IPMetadataInfo = {
149
161
  };
150
162
  export type MintAndRegisterIpRequest = IpMetadataAndTxOptions & WithWipOptions & {
151
163
  spgNftContract: Address;
164
+ /** The address of the recipient of the minted NFT. If not provided, the client's own wallet address will be used. */
152
165
  recipient?: Address;
153
166
  /**
154
167
  * Set to true to allow minting an NFT with a duplicate metadata hash.
@@ -159,7 +172,7 @@ export type MintAndRegisterIpRequest = IpMetadataAndTxOptions & WithWipOptions &
159
172
  export type RegisterPilTermsAndAttachRequest = {
160
173
  ipId: Address;
161
174
  /** The data of the license and its configuration to be attached to the IP. */
162
- licenseTermsData: LicenseTermsData[];
175
+ licenseTermsData: LicenseTermsDataInput[];
163
176
  /** The deadline for the signature in seconds.
164
177
  * @default 1000
165
178
  */
@@ -173,8 +186,11 @@ export type RegisterPilTermsAndAttachResponse = {
173
186
  };
174
187
  export type MintAndRegisterIpAndMakeDerivativeWithLicenseTokensRequest = {
175
188
  spgNftContract: Address;
189
+ /** The IDs of the license tokens to be burned for linking the IP to parent IPs. */
176
190
  licenseTokenIds: string[] | bigint[] | number[];
191
+ /** The address of the recipient of the minted NFT. If not provided, the client's own wallet address will be used. */
177
192
  recipient?: Address;
193
+ /** The maximum number of royalty tokens that can be distributed to the external royalty policies (max: 100,000,000). */
178
194
  maxRts: number | string;
179
195
  /**
180
196
  * Set to true to allow minting an NFT with a duplicate metadata hash.
@@ -185,9 +201,15 @@ export type MintAndRegisterIpAndMakeDerivativeWithLicenseTokensRequest = {
185
201
  export type RegisterIpAndMakeDerivativeWithLicenseTokensRequest = {
186
202
  nftContract: Address;
187
203
  tokenId: string | number | bigint;
204
+ /** The IDs of the license tokens to be burned for linking the IP to parent IPs. */
188
205
  licenseTokenIds: string[] | bigint[] | number[];
189
- deadline?: string | number | bigint;
206
+ /** The maximum number of royalty tokens that can be distributed to the external royalty policies (max: 100,000,000). */
190
207
  maxRts: number | string;
208
+ /**
209
+ * The deadline for the signature in seconds.
210
+ * @default 1000
211
+ */
212
+ deadline?: string | number | bigint;
191
213
  } & IpMetadataAndTxOptions & WithWipOptions;
192
214
  export type BatchMintAndRegisterIpAssetWithPilTermsRequest = {
193
215
  args: Omit<MintAndRegisterIpAssetWithPilTermsRequest, "txOptions">[];
@@ -205,6 +227,9 @@ export type BatchMintAndRegisterIpAssetWithPilTermsResponse = {
205
227
  };
206
228
  export type BatchRegisterDerivativeRequest = {
207
229
  args: RegisterDerivativeRequest[];
230
+ /** The deadline for the signature in seconds.
231
+ * @default 1000
232
+ */
208
233
  deadline?: string | number | bigint;
209
234
  txOptions?: Omit<TxOptions, "encodedTxDataOnly">;
210
235
  };
@@ -232,7 +257,7 @@ export type RegisterIPAndAttachLicenseTermsAndDistributeRoyaltyTokensRequest = {
232
257
  nftContract: Address;
233
258
  tokenId: bigint | string | number;
234
259
  /** The data of the license and its configuration to be attached to the new group IP. */
235
- licenseTermsData: LicenseTermsData[];
260
+ licenseTermsData: LicenseTermsDataInput[];
236
261
  /**
237
262
  * The deadline for the signature in seconds.
238
263
  * @default 1000
@@ -241,7 +266,7 @@ export type RegisterIPAndAttachLicenseTermsAndDistributeRoyaltyTokensRequest = {
241
266
  /** Authors of the IP and their shares of the royalty tokens. */
242
267
  royaltyShares: RoyaltyShare[];
243
268
  txOptions?: Omit<TxOptions, "encodedTxDataOnly">;
244
- } & IPMetadataInfo;
269
+ } & WithIpMetadata;
245
270
  export type RegisterIPAndAttachLicenseTermsAndDistributeRoyaltyTokensResponse = {
246
271
  registerIpAndAttachPilTermsAndDeployRoyaltyVaultTxHash: Hex;
247
272
  distributeRoyaltyTokensTxHash: Hex;
@@ -251,7 +276,7 @@ export type RegisterIPAndAttachLicenseTermsAndDistributeRoyaltyTokensResponse =
251
276
  };
252
277
  export type DistributeRoyaltyTokens = {
253
278
  ipId: Address;
254
- deadline: bigint;
279
+ deadline?: bigint | string | number;
255
280
  ipRoyaltyVault: Address;
256
281
  royaltyShares: RoyaltyShare[];
257
282
  totalAmount: number;
@@ -284,13 +309,11 @@ export type RegisterDerivativeAndAttachLicenseTermsAndDistributeRoyaltyTokensReq
284
309
  */
285
310
  deadline?: string | number | bigint;
286
311
  /** The derivative data to be used for register derivative.*/
287
- derivData: DerivativeData;
312
+ derivData: DerivativeDataInput;
288
313
  /** Authors of the IP and their shares of the royalty tokens. */
289
314
  royaltyShares: RoyaltyShare[];
290
- /** The desired metadata for the newly minted NFT and newly registered IP. */
291
- ipMetadata?: IpMetadataForWorkflow;
292
315
  txOptions?: Omit<TxOptions, "encodedTxDataOnly">;
293
- } & WithWipOptions;
316
+ } & WithWipOptions & WithIpMetadata;
294
317
  export type RegisterDerivativeAndAttachLicenseTermsAndDistributeRoyaltyTokensResponse = {
295
318
  registerDerivativeIpAndAttachLicenseTermsAndDistributeRoyaltyTokensTxHash: Address;
296
319
  distributeRoyaltyTokensTxHash: Address;
@@ -307,13 +330,13 @@ export type MintAndRegisterIpAndAttachPILTermsAndDistributeRoyaltyTokensRequest
307
330
  */
308
331
  allowDuplicates?: boolean;
309
332
  /** The data of the license and its configuration to be attached to the new group IP. */
310
- licenseTermsData: LicenseTermsData[];
333
+ licenseTermsData: LicenseTermsDataInput[];
311
334
  /** Authors of the IP and their shares of the royalty tokens */
312
335
  royaltyShares: RoyaltyShare[];
313
- /** The address to receive the minted NFT. If not provided, the function will use the user's own wallet address. */
336
+ /** The address to receive the minted NFT. If not provided, the client's own wallet address will be used. */
314
337
  recipient?: Address;
315
338
  txOptions?: Omit<TxOptions, "encodedTxDataOnly">;
316
- } & IPMetadataInfo & WithWipOptions;
339
+ } & WithIpMetadata & WithWipOptions;
317
340
  export type MintAndRegisterIpAndAttachPILTermsAndDistributeRoyaltyTokensResponse = {
318
341
  txHash: Hex;
319
342
  ipId?: Address;
@@ -324,7 +347,7 @@ export type MintAndRegisterIpAndAttachPILTermsAndDistributeRoyaltyTokensResponse
324
347
  export type MintAndRegisterIpAndMakeDerivativeAndDistributeRoyaltyTokensRequest = {
325
348
  spgNftContract: Address;
326
349
  /** The derivative data to be used for register derivative. */
327
- derivData: DerivativeData;
350
+ derivData: DerivativeDataInput;
328
351
  /** Authors of the IP and their shares of the royalty tokens. */
329
352
  royaltyShares: RoyaltyShare[];
330
353
  /**
@@ -332,10 +355,10 @@ export type MintAndRegisterIpAndMakeDerivativeAndDistributeRoyaltyTokensRequest
332
355
  * @default true
333
356
  */
334
357
  allowDuplicates?: boolean;
335
- /** The address to receive the minted NFT. If not provided, the function will use the user's own wallet address. */
358
+ /** The address to receive the minted NFT. If not provided, the client's own wallet address will be used. */
336
359
  recipient?: Address;
337
360
  txOptions?: Omit<TxOptions, "encodedTxDataOnly">;
338
- } & IPMetadataInfo & WithWipOptions;
361
+ } & WithIpMetadata & WithWipOptions;
339
362
  export type MintAndRegisterIpAndMakeDerivativeAndDistributeRoyaltyTokensResponse = {
340
363
  txHash: Hex;
341
364
  ipId?: Address;
@@ -347,7 +370,7 @@ export type CommonRegistrationParams = WithWipOptions & {
347
370
  spgNftContract?: Address;
348
371
  /** the spg contract in which the minting fee is paid to */
349
372
  spgSpenderAddress: Address;
350
- derivData?: InternalDerivativeData;
373
+ derivData?: DerivativeData;
351
374
  sender: Address;
352
375
  txOptions?: TxOptions;
353
376
  };
@@ -360,5 +383,46 @@ export type RegistrationResponse = {
360
383
  export type CommonRegistrationTxResponse = RegistrationResponse & {
361
384
  txHash: Hex;
362
385
  };
386
+ export type TransformIpRegistrationWorkflowRequest = RoyaltyTokenDistributionWorkflowsMintAndRegisterIpAndAttachPilTermsAndDistributeRoyaltyTokensRequest | LicenseAttachmentWorkflowsMintAndRegisterIpAndAttachPilTermsRequest | RoyaltyTokenDistributionWorkflowsMintAndRegisterIpAndMakeDerivativeAndDistributeRoyaltyTokensRequest | DerivativeWorkflowsMintAndRegisterIpAndMakeDerivativeRequest | RoyaltyTokenDistributionWorkflowsRegisterIpAndAttachPilTermsAndDeployRoyaltyVaultRequest | LicenseAttachmentWorkflowsRegisterIpAndAttachPilTermsRequest | RoyaltyTokenDistributionWorkflowsRegisterIpAndMakeDerivativeAndDeployRoyaltyVaultRequest | DerivativeWorkflowsRegisterIpAndMakeDerivativeRequest | RoyaltyTokenDistributionWorkflowsDistributeRoyaltyTokensRequest;
387
+ export type TransformIpRegistrationWorkflowResponse<T extends TransformIpRegistrationWorkflowRequest = TransformIpRegistrationWorkflowRequest> = {
388
+ transformRequest: T;
389
+ contractCall: () => Promise<Hash>;
390
+ encodedTxData: EncodedTxData;
391
+ isUseMulticall3: boolean;
392
+ workflowClient: DerivativeWorkflowsClient | LicenseAttachmentWorkflowsClient | RoyaltyTokenDistributionWorkflowsClient;
393
+ spenders?: Erc20Spender[];
394
+ totalFees?: bigint;
395
+ extraData?: {
396
+ royaltyShares: RoyaltyShare[];
397
+ deadline?: bigint;
398
+ };
399
+ };
400
+ /**
401
+ * Utility type that removes option-related fields (txOptions and wipOptions) from a type.
402
+ * This preserves discriminated unions unlike using Omit directly.
403
+ */
404
+ type RemoveOptionsFields<Type> = {
405
+ [Property in keyof Type as Exclude<Property, "txOptions" | "wipOptions">]: Type[Property];
406
+ };
407
+ export type MintSpgNftRegistrationRequest = RemoveOptionsFields<MintAndRegisterIpAndMakeDerivativeRequest | MintAndRegisterIpAssetWithPilTermsRequest | MintAndRegisterIpAndAttachPILTermsAndDistributeRoyaltyTokensRequest | MintAndRegisterIpAndMakeDerivativeAndDistributeRoyaltyTokensRequest>;
408
+ export type IpRegistrationWorkflowRequest = MintSpgNftRegistrationRequest | RegisterRegistrationRequest;
409
+ export type RegisterRegistrationRequest = RemoveOptionsFields<RegisterDerivativeAndAttachLicenseTermsAndDistributeRoyaltyTokensRequest | RegisterIpAndAttachPilTermsRequest | RegisterIPAndAttachLicenseTermsAndDistributeRoyaltyTokensRequest | RegisterIpAndMakeDerivativeRequest>;
410
+ export type BatchRegistrationResult = {
411
+ txHash: Hash;
412
+ receipt: TransactionReceipt;
413
+ ipRoyaltyVault?: RoyaltyModuleIpRoyaltyVaultDeployedEvent[];
414
+ ipIdAndTokenId: {
415
+ ipId: Address;
416
+ tokenId: bigint;
417
+ }[];
418
+ };
419
+ export type BatchRegisterIpAssetsWithOptimizedWorkflowsRequest = WithWipOptions & {
420
+ requests: IpRegistrationWorkflowRequest[];
421
+ txOptions?: Omit<WaitForTransactionReceiptParameters, "hash">;
422
+ };
423
+ export type BatchRegisterIpAssetsWithOptimizedWorkflowsResponse = {
424
+ distributeRoyaltyTokensTxHashes?: Hash[];
425
+ registrationResults: BatchRegistrationResult[];
426
+ };
363
427
  export {};
364
428
  //# sourceMappingURL=ipAsset.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ipAsset.d.ts","sourceRoot":"../../../../../src/types/resources","sources":["ipAsset.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,GAAG,EAAE,kBAAkB,EAAE,MAAM,MAAM,CAAC;AAE9D,OAAO,EAAE,SAAS,EAAE,cAAc,EAAE,sBAAmB;AACvD,OAAO,EAAE,YAAY,EAAE,uBAAuB,EAAE,qBAAkB;AAClE,OAAO,EAAE,aAAa,EAAE,+BAA4B;AACpD,OAAO,EAAE,sBAAsB,EAAE,eAAe,EAAE,wBAAwB,EAAE,qBAAkB;AAC9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E,MAAM,CAAC;KACnB,CAAC;CACH,CAAC;AAEF;;;GAGG;AACH,KAAK,mBAAmB,CAAC,IAAI,IAAI;KAC9B,QAAQ,IAAI,MAAM,IAAI,IAAI,OAAO,CAAC,QAAQ,EAAE,WAAW,GAAG,YAAY,CAAC,GAAG,IAAI,CAAC,QAAQ,CAAC;CAC1F,CAAC;AAEF,MAAM,MAAM,6BAA6B,GAAG,mBAAmB,CAC3D,yCAAyC,GACzC,yCAAyC,GACzC,mEAAmE,GACnE,mEAAmE,CACtE,CAAC;AAEF,MAAM,MAAM,6BAA6B,GACrC,6BAA6B,GAC7B,2BAA2B,CAAC;AAEhC,MAAM,MAAM,2BAA2B,GAAG,mBAAmB,CACzD,wEAAwE,GACxE,kCAAkC,GAClC,gEAAgE,GAChE,kCAAkC,CACrC,CAAC;AAEF,MAAM,MAAM,uBAAuB,GAAG;IACpC,MAAM,EAAE,IAAI,CAAC;IACb,OAAO,EAAE,kBAAkB,CAAC;IAC5B,cAAc,CAAC,EAAE,wCAAwC,EAAE,CAAC;IAC5D,cAAc,EAAE;QACd,IAAI,EAAE,OAAO,CAAC;QACd,OAAO,EAAE,MAAM,CAAC;KACjB,EAAE,CAAC;CACL,CAAC;AAEF,MAAM,MAAM,kDAAkD,GAAG,cAAc,GAAG;IAChF,QAAQ,EAAE,6BAA6B,EAAE,CAAC;IAC1C,SAAS,CAAC,EAAE,IAAI,CAAC,mCAAmC,EAAE,MAAM,CAAC,CAAC;CAC/D,CAAC;AAEF,MAAM,MAAM,mDAAmD,GAAG;IAChE,+BAA+B,CAAC,EAAE,IAAI,EAAE,CAAC;IACzC,mBAAmB,EAAE,uBAAuB,EAAE,CAAC;CAChD,CAAC"}
@@ -1,7 +1,7 @@
1
1
  import { Address, TransactionReceipt } from "viem";
2
2
  import { WithTxOptions, TxOptions, WithWipOptions } from "../options.js";
3
3
  import { EncodedTxData } from "../../abi/generated.js";
4
- import { LicensingConfig } from "../common.js";
4
+ import { LicensingConfigInput } from "../common.js";
5
5
  export type LicenseApiResponse = {
6
6
  data: License;
7
7
  };
@@ -14,34 +14,56 @@ export type RegisterNonComSocialRemixingPILRequest = {
14
14
  txOptions?: TxOptions;
15
15
  };
16
16
  /**
17
- * This structure defines the terms for a Programmable IP License (PIL). These terms can be attached to IP Assets. The legal document of the PIL can be found in this repository.
18
- * @type LicenseTerms
17
+ * This structure defines the terms for a Programmable IP License (PIL).
18
+ * These terms can be attached to IP Assets.
19
19
  **/
20
20
  export type LicenseTerms = {
21
+ /** Indicates whether the license is transferable or not. */
21
22
  transferable: boolean;
23
+ /** The address of the royalty policy contract which required to StoryProtocol in advance. */
22
24
  royaltyPolicy: Address;
25
+ /** The default minting fee to be paid when minting a license. */
23
26
  defaultMintingFee: bigint;
27
+ /** The expiration period of the license. */
24
28
  expiration: bigint;
29
+ /** Indicates whether the work can be used commercially or not. */
25
30
  commercialUse: boolean;
31
+ /** Whether attribution is required when reproducing the work commercially or not. */
26
32
  commercialAttribution: boolean;
33
+ /** Commercializers that are allowed to commercially exploit the work. If zero address, then no restrictions is enforced. */
27
34
  commercializerChecker: Address;
35
+ /** The data to be passed to the commercializer checker contract. */
28
36
  commercializerCheckerData: Address;
29
- /**Percentage of revenue that must be shared with the licensor. Must be from 0-100.*/
37
+ /** *Percentage of revenue that must be shared with the licensor. Must be from 0-100. */
30
38
  commercialRevShare: number;
39
+ /** The maximum revenue that can be generated from the commercial use of the work. */
31
40
  commercialRevCeiling: bigint;
41
+ /** Indicates whether the licensee can create derivatives of his work or not. */
32
42
  derivativesAllowed: boolean;
43
+ /** Indicates whether attribution is required for derivatives of the work or not. */
33
44
  derivativesAttribution: boolean;
45
+ /** Indicates whether the licensor must approve derivatives of the work before they can be linked to the licensor IP ID or not. */
34
46
  derivativesApproval: boolean;
47
+ /** Indicates whether the licensee must license derivatives of the work under the same terms or not. */
35
48
  derivativesReciprocal: boolean;
49
+ /** The maximum revenue that can be generated from the derivative use of the work. */
36
50
  derivativeRevCeiling: bigint;
51
+ /** The ERC20 token to be used to pay the minting fee. the token must be registered in story protocol. */
37
52
  currency: Address;
53
+ /** The URI of the license terms, which can be used to fetch the offchain license terms. */
38
54
  uri: string;
39
55
  };
40
- export type RegisterPILTermsRequest = Omit<LicenseTerms, "defaultMintingFee" | "expiration" | "commercialRevCeiling" | "derivativeRevCeiling"> & {
56
+ export type LicenseTermsInput = Omit<LicenseTerms, "defaultMintingFee" | "expiration" | "commercialRevCeiling" | "derivativeRevCeiling"> & {
57
+ /** The default minting fee to be paid when minting a license. */
41
58
  defaultMintingFee: bigint | string | number;
59
+ /** The expiration period of the license. */
42
60
  expiration: bigint | string | number;
61
+ /** The maximum revenue that can be generated from the commercial use of the work. */
43
62
  commercialRevCeiling: bigint | string | number;
63
+ /** The maximum revenue that can be generated from the derivative use of the work. */
44
64
  derivativeRevCeiling: bigint | string | number;
65
+ };
66
+ export type RegisterPILTermsRequest = LicenseTermsInput & {
45
67
  txOptions?: TxOptions;
46
68
  };
47
69
  export type LicenseTermsIdResponse = bigint;
@@ -51,21 +73,42 @@ export type RegisterPILResponse = {
51
73
  encodedTxData?: EncodedTxData;
52
74
  };
53
75
  export type RegisterCommercialUsePILRequest = {
76
+ /** The fee to be paid when minting a license. */
54
77
  defaultMintingFee: string | number | bigint;
78
+ /** The ERC20 token to be used to pay the minting fee */
55
79
  currency: Address;
80
+ /**
81
+ * The address of the royalty policy contract.
82
+ * Defaults to {@link https://docs.story.foundation/docs/liquid-absolute-percentage | LAP} policy address if not provided.
83
+ */
56
84
  royaltyPolicyAddress?: Address;
57
85
  txOptions?: TxOptions;
58
86
  };
59
87
  export type RegisterCommercialRemixPILRequest = {
88
+ /** The fee to be paid when minting a license. */
60
89
  defaultMintingFee: string | number | bigint;
90
+ /**
91
+ * Percentage of revenue that must be shared with the licensor.
92
+ * Must be between 0 and 100 (where 100% represents 100_000_000).
93
+ */
61
94
  commercialRevShare: number;
95
+ /** The ERC20 token to be used to pay the minting fee */
62
96
  currency: Address;
97
+ /**
98
+ * The address of the royalty policy contract.
99
+ * Defaults to {@link https://docs.story.foundation/docs/liquid-absolute-percentage | LAP} policy address if not provided.
100
+ */
63
101
  royaltyPolicyAddress?: Address;
64
102
  txOptions?: TxOptions;
65
103
  };
66
104
  export type AttachLicenseTermsRequest = {
105
+ /** The address of the IP ID to which the license terms are being attached. */
67
106
  ipId: Address;
68
107
  licenseTermsId: string | number | bigint;
108
+ /**
109
+ * The address of the license template.
110
+ * Defaults to {@link https://docs.story.foundation/docs/programmable-ip-license | PIL} address if not provided.
111
+ */
69
112
  licenseTemplate?: Address;
70
113
  txOptions?: TxOptions;
71
114
  };
@@ -77,10 +120,21 @@ export type AttachLicenseTermsResponse = {
77
120
  export type MintLicenseTokensRequest = {
78
121
  licensorIpId: Address;
79
122
  licenseTermsId: string | number | bigint;
123
+ /**
124
+ * The address of the license template.
125
+ * Defaults to {@link https://docs.story.foundation/docs/programmable-ip-license | PIL} address if not provided.
126
+ */
80
127
  licenseTemplate?: Address;
128
+ /** The maximum minting fee that the caller is willing to pay. if set to 0 then no limit. */
81
129
  maxMintingFee: bigint | string | number;
130
+ /** The maximum revenue share percentage allowed for minting the License Tokens. Must be between 0 and 100,000,000 (where 100,000,000 represents 100%). */
82
131
  maxRevenueShare: number | string;
132
+ /**
133
+ * The amount of license tokens to mint.
134
+ * @default 1
135
+ */
83
136
  amount?: number | string | bigint;
137
+ /** The address of the receiver. */
84
138
  receiver?: Address;
85
139
  } & WithTxOptions & WithWipOptions;
86
140
  export type MintLicenseTokensResponse = {
@@ -98,20 +152,19 @@ export type LicenseTermsId = string | number | bigint;
98
152
  export type PredictMintingLicenseFeeRequest = {
99
153
  licensorIpId: Address;
100
154
  licenseTermsId: LicenseTermsId;
155
+ /** The amount of license tokens to mint. */
101
156
  amount: string | number | bigint;
157
+ /**
158
+ * The address of the license template.
159
+ * Defaults to {@link https://docs.story.foundation/docs/programmable-ip-license | PIL} address if not provided.
160
+ */
102
161
  licenseTemplate?: Address;
103
162
  receiver?: Address;
104
163
  txOptions?: TxOptions;
105
164
  };
106
- export type SetLicensingConfigRequest = {
107
- /** The address of the IP for which the configuration is being set. */
108
- ipId: Address;
109
- /** The ID of the license terms within the license template. */
110
- licenseTermsId: string | number | bigint;
111
- /** The address of the license template used. */
112
- licenseTemplate: Address;
165
+ export type SetLicensingConfigRequest = GetLicensingConfigRequest & {
113
166
  /** The licensing configuration for the license. */
114
- licensingConfig: LicensingConfig;
167
+ licensingConfig: LicensingConfigInput;
115
168
  txOptions?: TxOptions;
116
169
  };
117
170
  export type SetLicensingConfigResponse = {
@@ -119,4 +172,15 @@ export type SetLicensingConfigResponse = {
119
172
  encodedTxData?: EncodedTxData;
120
173
  success?: boolean;
121
174
  };
175
+ export type GetLicensingConfigRequest = {
176
+ /** The address of the IP for which the configuration is being set. */
177
+ ipId: Address;
178
+ /** The ID of the license terms within the license template. */
179
+ licenseTermsId: number | bigint;
180
+ /**
181
+ * The address of the license template.
182
+ * Defaults to {@link https://docs.story.foundation/docs/programmable-ip-license | PIL} address if not provided.
183
+ */
184
+ licenseTemplate?: Address;
185
+ };
122
186
  //# sourceMappingURL=license.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"license.d.ts","sourceRoot":"../../../../../src/types/resources","sources":["license.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,kBAAkB,EAAE,MAAM,MAAM,CAAC;AAEnD,OAAO,EAAE,aAAa,EAAE,SAAS,EAAE,cAAc,EAAE,sBAAmB;AACtE,OAAO,EAAE,aAAa,EAAE,+BAA4B;AACpD,OAAO,EAAE,eAAe,EAAE,qBAAkB;AAE5C,MAAM,MAAM,kBAAkB,GAAG;IAC/B,IAAI,EAAE,OAAO,CAAC;CACf,CAAC;AAEF,MAAM,MAAM,OAAO,GAAG;IACpB,EAAE,EAAE,MAAM,CAAC;IACX,QAAQ,EAAE,MAAM,CAAC;IACjB,YAAY,EAAE,OAAO,CAAC;CACvB,CAAC;AAEF,MAAM,MAAM,sCAAsC,GAAG;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AAC;AAEtD,MAAM,MAAM,+BAA+B,GAAG;IAC5C,YAAY,EAAE,OAAO,CAAC;IACtB,cAAc,EAAE,cAAc,CAAC;IAC/B,4CAA4C;IAC5C,MAAM,EAAE,MAAM,GAAG,MAAM,GAAG,MAAM,CAAC;IACjC;;;OAGG;IACH,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,SAAS,CAAC,EAAE,SAAS,CAAC;CACvB,CAAC;AAEF,MAAM,MAAM,yBAAyB,GAAG,yBAAyB,GAAG;IAClE,mDAAmD;IACnD,eAAe,EAAE,oBAAoB,CAAC;IACtC,SAAS,CAAC,EAAE,SAAS,CAAC;CACvB,CAAC;AAEF,MAAM,MAAM,0BAA0B,GAAG;IACvC,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,aAAa,CAAC,EAAE,aAAa,CAAC;IAC9B,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB,CAAC;AAEF,MAAM,MAAM,yBAAyB,GAAG;IACtC,sEAAsE;IACtE,IAAI,EAAE,OAAO,CAAC;IACd,+DAA+D;IAC/D,cAAc,EAAE,MAAM,GAAG,MAAM,CAAC;IAChC;;;OAGG;IACH,eAAe,CAAC,EAAE,OAAO,CAAC;CAC3B,CAAC"}
@@ -1,18 +1,26 @@
1
- import { Address, Hex } from "viem";
1
+ import { Address } from "viem";
2
2
  import { TxOptions } from "../options.js";
3
3
  import { EncodedTxData } from "../../abi/generated.js";
4
4
  export type CreateNFTCollectionRequest = {
5
5
  name: string;
6
6
  symbol: string;
7
+ /** If true, anyone can mint from the collection. If false, only the addresses with the minter role can mint. */
7
8
  isPublicMinting: boolean;
9
+ /** Whether the collection is open for minting on creation. */
8
10
  mintOpen: boolean;
11
+ /** The address to receive mint fees. */
9
12
  mintFeeRecipient: Address;
13
+ /** The contract URI for the collection. Follows ERC-7572 standard. See https://eips.ethereum.org/EIPS/eip-7572. */
10
14
  contractURI: string;
15
+ /** 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. */
11
16
  baseURI?: string;
12
17
  maxSupply?: number;
18
+ /** The cost to mint a token. */
13
19
  mintFee?: bigint;
14
- mintFeeToken?: Hex;
15
- owner?: Hex;
20
+ /** The token to mint. */
21
+ mintFeeToken?: Address;
22
+ /** The owner of the collection. */
23
+ owner?: Address;
16
24
  txOptions?: TxOptions;
17
25
  };
18
26
  export type CreateNFTCollectionResponse = {
@@ -1 +1 @@
1
- {"version":3,"file":"nftClient.d.ts","sourceRoot":"../../../../../src/types/resources","sources":["nftClient.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,GAAG,EAAE,MAAM,MAAM,CAAC;AAEpC,OAAO,EAAE,SAAS,EAAE,sBAAmB;AACvC,OAAO,EAAE,aAAa,EAAE,+BAA4B;AAEpD,MAAM,MAAM,0BAA0B,GAAG;IACvC,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;IACf,eAAe,EAAE,OAAO,CAAC;IACzB,QAAQ,EAAE,OAAO,CAAC;IAClB,gBAAgB,EAAE,OAAO,CAAC;IAC1B,WAAW,EAAE,MAAM,CAAC;IACpB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,YAAY,CAAC,EAAE,GAAG,CAAC;IACnB,KAAK,CAAC,EAAE,GAAG,CAAC;IACZ,SAAS,CAAC,EAAE,SAAS,CAAC;CACvB,CAAC;AAEF,MAAM,MAAM,2BAA2B,GAAG;IACxC,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,aAAa,CAAC,EAAE,aAAa,CAAC;IAC9B,cAAc,CAAC,EAAE,OAAO,CAAC;CAC1B,CAAC"}
1
+ {"version":3,"file":"nftClient.d.ts","sourceRoot":"../../../../../src/types/resources","sources":["nftClient.ts"],"names":[],"mappings":"AAAA,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