@story-protocol/core-sdk 0.0.1-beta-rc.10 → 0.0.1-beta-rc.12
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 -0
- package/dist/declarations/src/client.d.ts.map +1 -1
- package/dist/declarations/src/index.d.ts +2 -1
- package/dist/declarations/src/index.d.ts.map +1 -1
- package/dist/declarations/src/resources/dispute.d.ts +103 -78
- package/dist/declarations/src/resources/dispute.d.ts.map +1 -1
- package/dist/declarations/src/resources/ipAccount.d.ts +84 -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 +875 -858
- package/dist/declarations/src/resources/license.d.ts.map +1 -1
- package/dist/declarations/src/resources/permission.d.ts +271 -216
- package/dist/declarations/src/resources/permission.d.ts.map +1 -1
- package/dist/declarations/src/resources/policy.d.ts +1094 -277
- package/dist/declarations/src/resources/policy.d.ts.map +1 -1
- package/dist/declarations/src/resources/royalty.d.ts +2155 -0
- package/dist/declarations/src/resources/royalty.d.ts.map +1 -0
- package/dist/declarations/src/types/config.d.ts +6 -3
- package/dist/declarations/src/types/config.d.ts.map +1 -1
- package/dist/declarations/src/types/resources/ipAsset.d.ts +4 -20
- package/dist/declarations/src/types/resources/ipAsset.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.d.ts +1 -1
- package/dist/story-protocol-core-sdk.cjs.dev.js +910 -661
- package/dist/story-protocol-core-sdk.cjs.prod.js +910 -661
- package/dist/story-protocol-core-sdk.esm.js +912 -663
- package/package.json +2 -2
- package/dist/story-protocol-core-sdk.cjs.d.ts.map +0 -1
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"royalty.d.ts","sourceRoot":"../../../../src/resources","sources":["royalty.ts"],"names":[],"mapp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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,18 +1,21 @@
|
|
1
|
-
import { Account, Transport } from "viem";
|
1
|
+
import { Account, Transport, Address } 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
|
*
|
11
11
|
* @public
|
12
12
|
*/
|
13
13
|
export interface StoryConfig {
|
14
|
-
readonly account: Account;
|
14
|
+
readonly account: Account | Address;
|
15
15
|
readonly chainId?: SupportedChainIds;
|
16
16
|
readonly transport: Transport;
|
17
17
|
}
|
18
|
+
export type ContractAddress = {
|
19
|
+
[key in SupportedChainIds]: Record<string, string>;
|
20
|
+
};
|
18
21
|
//# 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,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,MAAM,MAAM,CAAC;AAEnD;;;;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;CAC/B;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
5
|
ipId?: string;
|
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,MAAM,CAAC;CACf,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,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;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,EAAE;CAC7B,CAAC;AAEF,MAAM,MAAM,uBAAuB,GAAG;IACpC,OAAO,EAAE,GAAG,CAAC;IACb,UAAU,EAAE,MAAM,CAAC;IACnB,KAAK,EAAE,GAAG,CAAC;IACX,SAAS,CAAC,EAAE,SAAS,CAAC;CACvB,CAAC;AAEF,MAAM,MAAM,wBAAwB,GAAG;IACrC,sBAAsB,EAAE,MAAM,CAAC;IAC/B,MAAM,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF,MAAM,MAAM,yBAAyB,GAAG;IACtC,YAAY,EAAE,GAAG,CAAC;IAClB,SAAS,EAAE,GAAG,CAAC;IACf,KAAK,EAAE,GAAG,CAAC;IACX,MAAM,EAAE,MAAM,CAAC;IACf,SAAS,CAAC,EAAE,SAAS,CAAC;CACvB,CAAC;AAEF,MAAM,MAAM,0BAA0B,GAAG;IACvC,MAAM,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF,MAAM,MAAM,eAAe,GAAG;IAC5B,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,OAAO,CAAC;CAClB,CAAC"}
|
@@ -1,2 +1,2 @@
|
|
1
1
|
export * from "./declarations/src/index";
|
2
|
-
//# sourceMappingURL=
|
2
|
+
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic3RvcnktcHJvdG9jb2wtY29yZS1zZGsuY2pzLmQudHMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuL2RlY2xhcmF0aW9ucy9zcmMvaW5kZXguZC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSJ9
|