@story-protocol/core-sdk 1.0.0-rc.22 → 1.0.0-rc.23
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/declarations/src/abi/generated.d.ts +300 -3
- package/dist/declarations/src/abi/generated.d.ts.map +1 -1
- package/dist/declarations/src/index.d.ts +3 -2
- package/dist/declarations/src/index.d.ts.map +1 -1
- package/dist/declarations/src/resources/ipAccount.d.ts +9 -4
- package/dist/declarations/src/resources/ipAccount.d.ts.map +1 -1
- package/dist/declarations/src/resources/license.d.ts +32 -4
- package/dist/declarations/src/resources/license.d.ts.map +1 -1
- package/dist/declarations/src/resources/royalty.d.ts.map +1 -1
- package/dist/declarations/src/types/resources/ipAccount.d.ts +5 -0
- package/dist/declarations/src/types/resources/ipAccount.d.ts.map +1 -1
- package/dist/declarations/src/types/resources/license.d.ts +18 -7
- package/dist/declarations/src/types/resources/license.d.ts.map +1 -1
- package/dist/declarations/src/utils/chain.d.ts +34 -0
- package/dist/declarations/src/utils/chain.d.ts.map +1 -0
- package/dist/declarations/src/utils/sign.d.ts.map +1 -1
- package/dist/story-protocol-core-sdk.cjs.dev.js +1652 -1075
- package/dist/story-protocol-core-sdk.cjs.prod.js +1652 -1075
- package/dist/story-protocol-core-sdk.esm.js +1652 -1076
- package/package.json +1 -1
@@ -12,25 +12,36 @@ export type License = {
|
|
12
12
|
export type RegisterNonComSocialRemixingPILRequest = {
|
13
13
|
txOptions?: TxOptions;
|
14
14
|
};
|
15
|
+
/**
|
16
|
+
* 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.
|
17
|
+
* @type LicenseTerms
|
18
|
+
**/
|
15
19
|
export type LicenseTerms = {
|
16
|
-
defaultMintingFee: bigint;
|
17
|
-
expiration: bigint;
|
18
|
-
commercialRevCeiling: bigint;
|
19
|
-
derivativeRevCeiling: bigint;
|
20
|
-
commercializerCheckerData: Address;
|
21
20
|
transferable: boolean;
|
22
21
|
royaltyPolicy: Address;
|
22
|
+
defaultMintingFee: bigint;
|
23
|
+
expiration: bigint;
|
23
24
|
commercialUse: boolean;
|
24
25
|
commercialAttribution: boolean;
|
25
26
|
commercializerChecker: Address;
|
27
|
+
commercializerCheckerData: Address;
|
26
28
|
commercialRevShare: number;
|
29
|
+
commercialRevCeiling: bigint;
|
27
30
|
derivativesAllowed: boolean;
|
28
31
|
derivativesAttribution: boolean;
|
29
32
|
derivativesApproval: boolean;
|
30
33
|
derivativesReciprocal: boolean;
|
34
|
+
derivativeRevCeiling: bigint;
|
31
35
|
currency: Address;
|
32
36
|
uri: string;
|
33
37
|
};
|
38
|
+
export type RegisterPILTermsRequest = Omit<LicenseTerms, "defaultMintingFee" | "expiration" | "commercialRevCeiling" | "derivativeRevCeiling"> & {
|
39
|
+
defaultMintingFee: bigint | string | number;
|
40
|
+
expiration: bigint | string | number;
|
41
|
+
commercialRevCeiling: bigint | string | number;
|
42
|
+
derivativeRevCeiling: bigint | string | number;
|
43
|
+
txOptions?: TxOptions;
|
44
|
+
};
|
34
45
|
export type LicenseTermsIdResponse = bigint;
|
35
46
|
export type RegisterPILResponse = {
|
36
47
|
licenseTermsId?: bigint;
|
@@ -38,12 +49,12 @@ export type RegisterPILResponse = {
|
|
38
49
|
encodedTxData?: EncodedTxData;
|
39
50
|
};
|
40
51
|
export type RegisterCommercialUsePILRequest = {
|
41
|
-
|
52
|
+
defaultMintingFee: string | number | bigint;
|
42
53
|
currency: Address;
|
43
54
|
txOptions?: TxOptions;
|
44
55
|
};
|
45
56
|
export type RegisterCommercialRemixPILRequest = {
|
46
|
-
|
57
|
+
defaultMintingFee: string | number | bigint;
|
47
58
|
commercialRevShare: number;
|
48
59
|
currency: Address;
|
49
60
|
txOptions?: TxOptions;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"license.d.ts","sourceRoot":"../../../../../src/types/resources","sources":["license.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,MAAM,CAAC;AAE/B,OAAO,EAAE,SAAS,EAAE,sBAA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AG;IACtC,IAAI,EAAE,OAAO,CAAC;IACd,cAAc,EAAE,MAAM,GAAG,MAAM,GAAG,MAAM,CAAC;IACzC,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,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,wBAAwB,GAAG;IACrC,YAAY,EAAE,OAAO,CAAC;IACtB,cAAc,EAAE,MAAM,GAAG,MAAM,GAAG,MAAM,CAAC;IACzC,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,MAAM,CAAC;IAClC,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,SAAS,CAAC,EAAE,SAAS,CAAC;CACvB,CAAC;AAEF,MAAM,MAAM,yBAAyB,GAAG;IACtC,eAAe,CAAC,EAAE,MAAM,EAAE,CAAC;IAC3B,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,aAAa,CAAC,EAAE,aAAa,CAAC;CAC/B,CAAC;AAEF,oBAAY,QAAQ;IAClB,oBAAoB,IAAA;IACpB,cAAc,IAAA;IACd,gBAAgB,IAAA;CACjB;AAED,MAAM,MAAM,cAAc,GAAG,MAAM,GAAG,MAAM,GAAG,MAAM,CAAC"}
|
@@ -0,0 +1,34 @@
|
|
1
|
+
export declare const iliad: {
|
2
|
+
blockExplorers: {
|
3
|
+
readonly default: {
|
4
|
+
readonly name: "Explorer";
|
5
|
+
readonly url: "https://testnet.storyscan.xyz";
|
6
|
+
};
|
7
|
+
};
|
8
|
+
contracts: {
|
9
|
+
readonly multicall3: {
|
10
|
+
readonly address: "0xcA11bde05977b3631167028862bE2a173976CA11";
|
11
|
+
readonly blockCreated: 5882;
|
12
|
+
};
|
13
|
+
};
|
14
|
+
id: 1513;
|
15
|
+
name: "iliad";
|
16
|
+
nativeCurrency: {
|
17
|
+
readonly name: "IP";
|
18
|
+
readonly symbol: "IP";
|
19
|
+
readonly decimals: 18;
|
20
|
+
};
|
21
|
+
rpcUrls: {
|
22
|
+
readonly default: {
|
23
|
+
readonly http: readonly ["https://testnet.storyrpc.io"];
|
24
|
+
readonly webSocket: readonly ["wss://story-network.rpc.caldera.xyz/ws"];
|
25
|
+
};
|
26
|
+
};
|
27
|
+
sourceId?: number | undefined;
|
28
|
+
testnet: true;
|
29
|
+
custom?: Record<string, unknown> | undefined;
|
30
|
+
formatters?: undefined;
|
31
|
+
serializers?: import("viem").ChainSerializers<undefined> | undefined;
|
32
|
+
fees?: import("viem").ChainFees<undefined> | undefined;
|
33
|
+
};
|
34
|
+
//# sourceMappingURL=chain.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"chain.d.ts","sourceRoot":"../../../../src/utils","sources":["chain.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAuBhB,CAAC"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"sign.d.ts","sourceRoot":"../../../../src/utils","sources":["sign.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,0BAA0B,EAAE,2BAA2B,EAAE,2BAAwB;AAE1F;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,sBAAsB,UAC1B,0BAA0B,KAChC,
|
1
|
+
{"version":3,"file":"sign.d.ts","sourceRoot":"../../../../src/utils","sources":["sign.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,0BAA0B,EAAE,2BAA2B,EAAE,2BAAwB;AAE1F;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,sBAAsB,UAC1B,0BAA0B,KAChC,QAAQ,2BAA2B,CA8ErC,CAAC;AAEF,eAAO,MAAM,WAAW,cAAe,MAAM,GAAG,MAAM,GAAG,MAAM,KAAG,MAMjE,CAAC"}
|