@story-protocol/core-sdk 0.0.1-beta-rc.11 → 0.0.1-beta-rc.13
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/declarations/src/client.d.ts +9 -9
- package/dist/declarations/src/client.d.ts.map +1 -1
- package/dist/declarations/src/clients/storyAPI.d.ts +0 -2
- package/dist/declarations/src/clients/storyAPI.d.ts.map +1 -1
- package/dist/declarations/src/index.d.ts +3 -4
- package/dist/declarations/src/index.d.ts.map +1 -1
- package/dist/declarations/src/resources/dispute.d.ts +419 -78
- package/dist/declarations/src/resources/dispute.d.ts.map +1 -1
- package/dist/declarations/src/resources/ipAccount.d.ts +400 -76
- package/dist/declarations/src/resources/ipAccount.d.ts.map +1 -1
- package/dist/declarations/src/resources/ipAsset.d.ts +26 -756
- package/dist/declarations/src/resources/ipAsset.d.ts.map +1 -1
- package/dist/declarations/src/resources/license.d.ts +3411 -650
- package/dist/declarations/src/resources/license.d.ts.map +1 -1
- package/dist/declarations/src/resources/permission.d.ts +1000 -313
- package/dist/declarations/src/resources/permission.d.ts.map +1 -1
- package/dist/declarations/src/resources/royalty.d.ts +3103 -0
- package/dist/declarations/src/resources/{policy.d.ts.map → royalty.d.ts.map} +1 -1
- package/dist/declarations/src/types/config.d.ts +6 -2
- package/dist/declarations/src/types/config.d.ts.map +1 -1
- package/dist/declarations/src/types/resources/ipAsset.d.ts +5 -21
- package/dist/declarations/src/types/resources/ipAsset.d.ts.map +1 -1
- package/dist/declarations/src/types/resources/license.d.ts +54 -18
- package/dist/declarations/src/types/resources/license.d.ts.map +1 -1
- package/dist/declarations/src/types/resources/royalty.d.ts +41 -0
- package/dist/declarations/src/types/resources/royalty.d.ts.map +1 -1
- package/dist/story-protocol-core-sdk.cjs.dev.js +1580 -1371
- package/dist/story-protocol-core-sdk.cjs.prod.js +1580 -1371
- package/dist/story-protocol-core-sdk.esm.js +1583 -1373
- package/package.json +5 -5
- package/dist/declarations/src/resources/policy.d.ts +0 -2436
- package/dist/declarations/src/types/resources/policy.d.ts +0 -83
- package/dist/declarations/src/types/resources/policy.d.ts.map +0 -1
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"
|
1
|
+
{"version":3,"file":"royalty.d.ts","sourceRoot":"../../../../src/resources","sources":["royalty.ts"],"names":[],"mappings":"AAAA,OAAO,EAAO,YAAY,EAAE,YAAY,EAAE,MAAM,MAAM,CAAC;AAGvD,OAAO,EAAE,iBAAiB,EAAE,2BAAwB;AACpD,OAAO,EACL,2BAA2B,EAC3B,4BAA4B,EAC5B,yBAAyB,EACzB,0BAA0B,EAC3B,sCAAmC;AAQpC,qBAAa,aAAa;IACxB,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAe;IACtC,OAAO,CAAC,QAAQ,CAAC,SAAS,CAAe;IAClC,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAAC;gBAEf,SAAS,EAAE,YAAY,EAAE,MAAM,EAAE,YAAY,EAAE,OAAO,EAAE,iBAAiB;IAOrF;;;;;;;OAOG;IACU,oBAAoB,CAC/B,OAAO,EAAE,2BAA2B,GACnC,OAAO,CAAC,4BAA4B,CAAC;YAoB1B,eAAe;IAW7B;;;;;;;;;;OAUG;IACU,kBAAkB,CAC7B,OAAO,EAAE,yBAAyB,GACjC,OAAO,CAAC,0BAA0B,CAAC;CAiBvC"}
|
@@ -1,10 +1,10 @@
|
|
1
|
-
import { Account, Transport, Address } from "viem";
|
1
|
+
import { Account, Transport, Address, WalletClient } from "viem";
|
2
2
|
/**
|
3
3
|
* Supported chains. For convenience, both name or chain ID are supported.
|
4
4
|
*
|
5
5
|
* @public
|
6
6
|
*/
|
7
|
-
export type SupportedChainIds = "11155111" | "sepolia" | "
|
7
|
+
export type SupportedChainIds = "11155111" | "sepolia" | "1513" | "storyTestnet";
|
8
8
|
/**
|
9
9
|
* Configuration for the SDK Client.
|
10
10
|
*
|
@@ -14,5 +14,9 @@ export interface StoryConfig {
|
|
14
14
|
readonly account: Account | Address;
|
15
15
|
readonly chainId?: SupportedChainIds;
|
16
16
|
readonly transport: Transport;
|
17
|
+
readonly wallet?: WalletClient;
|
17
18
|
}
|
19
|
+
export type ContractAddress = {
|
20
|
+
[key in SupportedChainIds]: Record<string, string>;
|
21
|
+
};
|
18
22
|
//# sourceMappingURL=config.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"config.d.ts","sourceRoot":"../../../../src/types","sources":["config.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,SAAS,EAAE,OAAO,EAAE,MAAM,MAAM,CAAC;
|
1
|
+
{"version":3,"file":"config.d.ts","sourceRoot":"../../../../src/types","sources":["config.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,SAAS,EAAE,OAAO,EAAE,YAAY,EAAE,MAAM,MAAM,CAAC;AAEjE;;;;GAIG;AACH,MAAM,MAAM,iBAAiB,GAAG,UAAU,GAAG,SAAS,GAAG,MAAM,GAAG,cAAc,CAAC;AAEjF;;;;GAIG;AACH,MAAM,WAAW,WAAW;IAC1B,QAAQ,CAAC,OAAO,EAAE,OAAO,GAAG,OAAO,CAAC;IACpC,QAAQ,CAAC,OAAO,CAAC,EAAE,iBAAiB,CAAC;IACrC,QAAQ,CAAC,SAAS,EAAE,SAAS,CAAC;IAC9B,QAAQ,CAAC,MAAM,CAAC,EAAE,YAAY,CAAC;CAChC;AAED,MAAM,MAAM,eAAe,GAAG;KAAG,GAAG,IAAI,iBAAiB,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC;CAAE,CAAC"}
|
@@ -1,28 +1,12 @@
|
|
1
|
+
import { Hex } from "viem";
|
1
2
|
import { TxOptions } from "../options.js";
|
2
|
-
export type
|
3
|
-
tokenContractAddress: `0x${string}`;
|
4
|
-
tokenId: string;
|
5
|
-
policyId?: string;
|
6
|
-
ipName?: string;
|
7
|
-
contentHash?: `0x${string}`;
|
8
|
-
uri?: string;
|
9
|
-
txOptions?: TxOptions;
|
10
|
-
};
|
11
|
-
export type RegisterRootIpResponse = {
|
3
|
+
export type RegisterIpResponse = {
|
12
4
|
txHash?: string;
|
13
|
-
ipId?:
|
5
|
+
ipId?: Hex;
|
14
6
|
};
|
15
|
-
export type
|
16
|
-
|
17
|
-
tokenContractAddress: `0x${string}`;
|
7
|
+
export type RegisterRequest = {
|
8
|
+
tokenContract: Hex;
|
18
9
|
tokenId: string;
|
19
|
-
ipName?: string;
|
20
|
-
contentHash?: `0x${string}`;
|
21
|
-
uri?: string;
|
22
10
|
txOptions?: TxOptions;
|
23
11
|
};
|
24
|
-
export type RegisterDerivativeIpResponse = {
|
25
|
-
txHash?: string;
|
26
|
-
ipId?: string;
|
27
|
-
};
|
28
12
|
//# 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,
|
1
|
+
{"version":3,"file":"ipAsset.d.ts","sourceRoot":"../../../../../src/types/resources","sources":["ipAsset.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,MAAM,CAAC;AAE3B,OAAO,EAAE,SAAS,EAAE,sBAAmB;AAEvC,MAAM,MAAM,kBAAkB,GAAG;IAC/B,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,IAAI,CAAC,EAAE,GAAG,CAAC;CACZ,CAAC;AAEF,MAAM,MAAM,eAAe,GAAG;IAC5B,aAAa,EAAE,GAAG,CAAC;IACnB,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,CAAC,EAAE,SAAS,CAAC;CACvB,CAAC"}
|
@@ -1,30 +1,66 @@
|
|
1
|
+
import { Hex } from "viem";
|
1
2
|
import { TxOptions } from "../options.js";
|
2
|
-
export type
|
3
|
+
export type LicenseApiResponse = {
|
4
|
+
data: License;
|
5
|
+
};
|
6
|
+
export type License = {
|
7
|
+
id: string;
|
3
8
|
policyId: string;
|
4
|
-
licensorIpId:
|
5
|
-
|
6
|
-
|
9
|
+
licensorIpId: Hex;
|
10
|
+
};
|
11
|
+
export type RegisterLicenseTermsRequest = {
|
7
12
|
txOptions?: TxOptions;
|
8
13
|
};
|
9
|
-
export type
|
10
|
-
|
14
|
+
export type LicenseTerms = {
|
15
|
+
mintingFee: bigint;
|
16
|
+
expiration: bigint;
|
17
|
+
commercialRevCelling: bigint;
|
18
|
+
derivativeRevCelling: bigint;
|
19
|
+
commercializerCheckerData: Hex;
|
20
|
+
transferable: boolean;
|
21
|
+
royaltyPolicy: Hex;
|
22
|
+
commercialUse: boolean;
|
23
|
+
commercialAttribution: boolean;
|
24
|
+
commercializerChecker: Hex;
|
25
|
+
commercialRevShare: number;
|
26
|
+
derivativesAllowed: boolean;
|
27
|
+
derivativesAttribution: boolean;
|
28
|
+
derivativesApproval: boolean;
|
29
|
+
derivativesReciprocal: boolean;
|
30
|
+
currency: Hex;
|
31
|
+
};
|
32
|
+
export type LicenseTermsIdResponse = number;
|
33
|
+
export type RegisterLicenseTermsResponse = {
|
11
34
|
licenseId?: string;
|
35
|
+
txHash?: string;
|
36
|
+
};
|
37
|
+
export type RegisterCommercialUsePILRequest = {
|
38
|
+
mintingFee: string;
|
39
|
+
currency: Hex;
|
40
|
+
txOptions?: TxOptions;
|
12
41
|
};
|
13
|
-
export type
|
14
|
-
|
15
|
-
|
42
|
+
export type RegisterCommercialRemixPILRequest = {
|
43
|
+
mintingFee: string;
|
44
|
+
commercialRevShare: number;
|
45
|
+
currency: Hex;
|
16
46
|
txOptions?: TxOptions;
|
17
47
|
};
|
18
|
-
export type
|
19
|
-
|
20
|
-
|
48
|
+
export type AttachLicenseTermsRequest = {
|
49
|
+
ipId: Hex;
|
50
|
+
licenseTemplate?: Hex;
|
51
|
+
licenseTermsId: string;
|
52
|
+
txOptions?: TxOptions;
|
21
53
|
};
|
22
|
-
export type
|
23
|
-
|
54
|
+
export type MintLicenseTokensRequest = {
|
55
|
+
licensorIpId: Hex;
|
56
|
+
licenseTermsId: string;
|
57
|
+
licenseTemplate?: Hex;
|
58
|
+
amount?: number;
|
59
|
+
receiver?: Hex;
|
60
|
+
txOptions?: TxOptions;
|
24
61
|
};
|
25
|
-
export type
|
26
|
-
|
27
|
-
|
28
|
-
licensorIpId: `0x${string}`;
|
62
|
+
export type MintLicenseTokensResponse = {
|
63
|
+
licenseTokenId?: string;
|
64
|
+
txHash?: string;
|
29
65
|
};
|
30
66
|
//# 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,SAAS,EAAE,sBAAmB;AAEvC,MAAM,MAAM,kBAAkB,GAAG;IAC/B,QAAQ,EAAE,MAAM,CAAC;IACjB,YAAY,EAAE,
|
1
|
+
{"version":3,"file":"license.d.ts","sourceRoot":"../../../../../src/types/resources","sources":["license.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,MAAM,CAAC;AAE3B,OAAO,EAAE,SAAS,EAAE,sBAAmB;AAEvC,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,GAAG,CAAC;CACnB,CAAC;AAEF,MAAM,MAAM,2BAA2B,GAAG;IACxC,SAAS,CAAC,EAAE,SAAS,CAAC;CACvB,CAAC;AAEF,MAAM,MAAM,YAAY,GAAG;IACzB,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,MAAM,CAAC;IACnB,oBAAoB,EAAE,MAAM,CAAC;IAC7B,oBAAoB,EAAE,MAAM,CAAC;IAC7B,yBAAyB,EAAE,GAAG,CAAC;IAC/B,YAAY,EAAE,OAAO,CAAC;IACtB,aAAa,EAAE,GAAG,CAAC;IACnB,aAAa,EAAE,O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Ac,CAAC,EAAE,MAAM,CAAC;IACxB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB,CAAC"}
|
@@ -1,3 +1,5 @@
|
|
1
|
+
import { Hex } from "viem";
|
2
|
+
import { TxOptions } from "../options.js";
|
1
3
|
export type RoyaltyPolicyApiResponse = {
|
2
4
|
data: RoyaltyPolicy;
|
3
5
|
};
|
@@ -14,4 +16,43 @@ export type RoyaltyContext = {
|
|
14
16
|
parentAncestorsRoyalties1: number[];
|
15
17
|
parentAncestorsRoyalties2: number[];
|
16
18
|
};
|
19
|
+
export type CollectRoyaltyTokensRequest = {
|
20
|
+
ancestorIpId: Hex;
|
21
|
+
derivativeId: Hex;
|
22
|
+
txOptions?: TxOptions;
|
23
|
+
};
|
24
|
+
export type CollectRoyaltyTokensResponse = {
|
25
|
+
txHash: string;
|
26
|
+
};
|
27
|
+
export type RoyaltyData = [
|
28
|
+
isUnlinkableToParents: boolean,
|
29
|
+
ipRoyaltyVault: Hex,
|
30
|
+
royaltyStack: bigint,
|
31
|
+
ancestorsAddresses: Hex,
|
32
|
+
ancestorsRoyalties: bigint[]
|
33
|
+
];
|
34
|
+
export type ClaimableRevenueRequest = {
|
35
|
+
account: Hex;
|
36
|
+
snapshotId: bigint;
|
37
|
+
token: Hex;
|
38
|
+
txOptions?: TxOptions;
|
39
|
+
};
|
40
|
+
export type ClaimableRevenueResponse = {
|
41
|
+
claimableRevenueAmount: bigint;
|
42
|
+
txHash: string;
|
43
|
+
};
|
44
|
+
export type PayRoyaltyOnBehalfRequest = {
|
45
|
+
receiverIpId: Hex;
|
46
|
+
payerIpId: Hex;
|
47
|
+
token: Hex;
|
48
|
+
amount: bigint;
|
49
|
+
txOptions?: TxOptions;
|
50
|
+
};
|
51
|
+
export type PayRoyaltyOnBehalfResponse = {
|
52
|
+
txHash: string;
|
53
|
+
};
|
54
|
+
export type ApproveResponse = {
|
55
|
+
txHash: string;
|
56
|
+
success: boolean;
|
57
|
+
};
|
17
58
|
//# sourceMappingURL=royalty.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"royalty.d.ts","sourceRoot":"../../../../../src/types/resources","sources":["royalty.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,wBAAwB,GAAG;IACrC,IAAI,EAAE,aAAa,CAAC;CACrB,CAAC;AAEF,MAAM,MAAM,aAAa,GAAG;IAC1B,EAAE,EAAE,KAAK,MAAM,EAAE,CAAC;IAClB,eAAe,EAAE,MAAM,EAAE,CAAC;IAC1B,mBAAmB,EAAE,MAAM,EAAE,CAAC;CAC/B,CAAC;AAEF,MAAM,MAAM,cAAc,GAAG;IAC3B,eAAe,EAAE,MAAM,EAAE,CAAC;IAC1B,mBAAmB,EAAE,MAAM,EAAE,CAAC;IAC9B,gBAAgB,EAAE,MAAM,EAAE,CAAC;IAC3B,gBAAgB,EAAE,MAAM,EAAE,CAAC;IAC3B,yBAAyB,EAAE,MAAM,EAAE,CAAC;IACpC,yBAAyB,EAAE,MAAM,EAAE,CAAC;CACrC,CAAC"}
|
1
|
+
{"version":3,"file":"royalty.d.ts","sourceRoot":"../../../../../src/types/resources","sources":["royalty.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,MAAM,CAAC;AAE3B,OAAO,EAAE,SAAS,EAAE,sBAAmB;AAEvC,MAAM,MAAM,wBAAwB,GAAG;IACrC,IAAI,EAAE,aAAa,CAAC;CACrB,CAAC;AAEF,MAAM,MAAM,aAAa,GAAG;IAC1B,EAAE,EAAE,KAAK,MAAM,EAAE,CAAC;IAClB,eAAe,EAAE,MAAM,EAAE,CAAC;IAC1B,mBAAmB,EAAE,MAAM,EAAE,CAAC;CAC/B,CAAC;AAEF,MAAM,MAAM,cAAc,GAAG;IAC3B,eAAe,EAAE,MAAM,EAAE,CAAC;IAC1B,mBAAmB,EAAE,MAAM,EAAE,CAAC;IAC9B,gBAAgB,EAAE,MAAM,EAAE,CAAC;IAC3B,gBAAgB,EAAE,MAAM,EAAE,CAAC;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