Skip to content

Commit

Permalink
Merge pull request #246 from storyprotocol/dev
Browse files Browse the repository at this point in the history
Bp/sdk pr 4 (#245)
  • Loading branch information
edisonz0718 authored Aug 30, 2024
2 parents 6c4e04f + 972539a commit 9bff31f
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion packages/core-sdk/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@story-protocol/core-sdk",
"version": "1.0.0-rc.20",
"version": "1.0.0-rc.21",
"description": "Story Protocol Core SDK",
"main": "dist/story-protocol-core-sdk.cjs.js",
"module": "dist/story-protocol-core-sdk.esm.js",
Expand Down
2 changes: 2 additions & 0 deletions packages/core-sdk/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ export type {
RegisterIpAndAttachPilTermsRequest,
RegisterIpAndAttachPilTermsResponse,
MintAndRegisterIpAndMakeDerivativeRequest,
IpCreator,
IpMetadata,
} from "./types/resources/ipAsset";

export type {
Expand Down
2 changes: 0 additions & 2 deletions packages/core-sdk/src/types/resources/ipAsset.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,6 @@ export type CreateIpAssetWithPilTermsRequest = {
mintingFee?: string | number | bigint;
recipient?: Address;
commercialRevShare?: number;
nftMetadata?: string;
} & IpMetadataAndTxOption;

export type CreateIpAssetWithPilTermsResponse = {
Expand Down Expand Up @@ -110,7 +109,6 @@ export type MintAndRegisterIpAndMakeDerivativeRequest = {
licenseTermsIds: string[] | bigint[] | number[];
licenseTemplate?: Address;
};
nftMetadata?: string;
recipient?: Address;
} & IpMetadataAndTxOption;

Expand Down
1 change: 1 addition & 0 deletions packages/core-sdk/src/utils/getLicenseTermsByType.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ export function getLicenseTermByType(
uri: "",
};
if (type === PIL_TYPE.NON_COMMERCIAL_REMIX) {
licenseTerms.commercializerCheckerData = "0x";
return licenseTerms;
} else if (type === PIL_TYPE.COMMERCIAL_USE) {
if (!term || term.defaultMintingFee === undefined || term.currency === undefined) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ describe("Get License Terms By Type", () => {
commercialRevShare: 0,
commercialUse: false,
commercializerChecker: "0x0000000000000000000000000000000000000000",
commercializerCheckerData: "0x0000000000000000000000000000000000000000",
commercializerCheckerData: "0x",
currency: "0x0000000000000000000000000000000000000000",
derivativeRevCeiling: 0n,
derivativesAllowed: true,
Expand Down

0 comments on commit 9bff31f

Please sign in to comment.