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
Add default value for DerivativeData and LicenseConfig
Add default value for LicenseConfig
Update the doc about multiple line
Update the doc
Update event with link
Update zero address
Modify licenseConfig logic
Refactor via comments
Enhance LicenseTermsData type
Make licensingConfig required in the setLicensingConfig method
Update default show style
@@ -538,80 +539,43 @@ export class LicenseClient {
538
539
539
540
/**
540
541
* Sets the licensing configuration for a specific license terms of an IP. If both licenseTemplate and licenseTermsId are not specified then the licensing config apply to all licenses of given IP.
541
-
* @param request - The request object that contains all data needed to set licensing config.
542
-
* @param request.ipId The address of the IP for which the configuration is being set.
543
-
* @param request.licenseTermsId The ID of the license terms within the license template.
544
-
* @param request.licenseTemplate The address of the license template used, If not specified, the configuration applies to all licenses.
545
-
* @param request.licensingConfig The licensing configuration for the license.
546
-
* @param request.licensingConfig.isSet Whether the configuration is set or not.
547
-
* @param request.licensingConfig.mintingFee The minting fee to be paid when minting license tokens.
548
-
* @param request.licensingConfig.hookData The data to be used by the licensing hook.
549
-
* @param request.licensingConfig.licensingHook The hook contract address for the licensing module, or address(0) if none.
550
-
* @param request.licensingConfig.commercialRevShare The commercial revenue share percentage.
551
-
* @param request.licensingConfig.disabled Whether the license is disabled or not.
552
-
* @param request.licensingConfig.expectMinimumGroupRewardShare The minimum percentage of the group’s reward share (from 0 to 100%, represented as 100 * 10 ** 6) that can be allocated to the IP when it is added to the group.
553
-
* If the remaining reward share in the group is less than the minimumGroupRewardShare, the IP cannot be added to the group.
554
-
* @param request.licensingConfig.expectGroupRewardPool The address of the expected group reward pool. The IP can only be added to a group with this specified reward pool address,
555
-
* or address(0) if the IP does not want to be added to any group.
556
-
* @param request.txOptions [Optional] This extends `WaitForTransactionReceiptParameters` from the Viem library, excluding the `hash` property.
557
-
* @returns A Promise that resolves to a transaction hash, and if encodedTxDataOnly is true, includes encoded transaction data, and if waitForTransaction is true, includes success.
Copy file name to clipboardExpand all lines: packages/core-sdk/src/types/common.ts
+11-3Lines changed: 11 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -9,25 +9,33 @@ export type TypedData = {
9
9
};
10
10
11
11
exporttypeIpMetadataAndTxOptions=WithTxOptions&{
12
+
/** The desired metadata for the newly minted NFT and newly registered IP. */
12
13
ipMetadata?: Partial<IpMetadataForWorkflow>;
13
14
};
14
-
15
15
exporttypeLicensingConfig={
16
+
/** Whether the configuration is set or not */
16
17
isSet: boolean;
18
+
/** The minting fee to be paid when minting license tokens. */
17
19
mintingFee: bigint|string|number;
20
+
/** The hook contract address for the licensing module, or zero address if none. */
18
21
licensingHook: Address;
22
+
/** The data to be used by the licensing hook. */
19
23
hookData: Hex;
24
+
/** The commercial revenue share percentage (from 0 to 100%, represented as 100_000_000). */
20
25
commercialRevShare: number|string;
26
+
/** Whether the licensing is disabled or not. */
21
27
disabled: boolean;
28
+
/** The minimum percentage of the group’s reward share (from 0 to 100%, represented as 100_000_000) that can be allocated to the IP when it is added to the group. */
22
29
expectMinimumGroupRewardShare: number|string;
30
+
/** The address of the expected group reward pool. The IP can only be added to a group with this specified reward pool address, or zero address if the IP does not want to be added to any group. */
0 commit comments