@story-protocol/core-sdk 0.1.0-rc.7 → 1.0.0-rc.10

Sign up to get free protection for your applications and to get access to all the features.
Files changed (111) hide show
  1. package/README.md +94 -55
  2. package/dist/declarations/src/abi/generated.d.ts +23328 -0
  3. package/dist/declarations/src/abi/generated.d.ts.map +1 -0
  4. package/dist/declarations/src/client.d.ts +50 -49
  5. package/dist/declarations/src/client.d.ts.map +1 -1
  6. package/dist/declarations/src/constants/common.d.ts +4 -0
  7. package/dist/declarations/src/constants/common.d.ts.map +1 -0
  8. package/dist/declarations/src/index.d.ts +16 -10
  9. package/dist/declarations/src/index.d.ts.map +1 -1
  10. package/dist/declarations/src/resources/dispute.d.ts +50 -0
  11. package/dist/declarations/src/resources/dispute.d.ts.map +1 -0
  12. package/dist/declarations/src/resources/ipAccount.d.ts +29 -0
  13. package/dist/declarations/src/resources/ipAccount.d.ts.map +1 -0
  14. package/dist/declarations/src/resources/ipAsset.d.ts +92 -20
  15. package/dist/declarations/src/resources/ipAsset.d.ts.map +1 -1
  16. package/dist/declarations/src/resources/license.d.ts +83 -18
  17. package/dist/declarations/src/resources/license.d.ts.map +1 -1
  18. package/dist/declarations/src/resources/nftClient.d.ts +24 -0
  19. package/dist/declarations/src/resources/nftClient.d.ts.map +1 -0
  20. package/dist/declarations/src/resources/permission.d.ts +30 -0
  21. package/dist/declarations/src/resources/permission.d.ts.map +1 -0
  22. package/dist/declarations/src/resources/royalty.d.ts +73 -0
  23. package/dist/declarations/src/resources/royalty.d.ts.map +1 -0
  24. package/dist/declarations/src/types/common.d.ts +5 -0
  25. package/dist/declarations/src/types/common.d.ts.map +1 -0
  26. package/dist/declarations/src/types/config.d.ts +27 -12
  27. package/dist/declarations/src/types/config.d.ts.map +1 -1
  28. package/dist/declarations/src/types/options.d.ts +10 -0
  29. package/dist/declarations/src/types/options.d.ts.map +1 -0
  30. package/dist/declarations/src/types/resources/dispute.d.ts +52 -0
  31. package/dist/declarations/src/types/resources/dispute.d.ts.map +1 -0
  32. package/dist/declarations/src/types/resources/ipAccount.d.ts +26 -0
  33. package/dist/declarations/src/types/resources/ipAccount.d.ts.map +1 -0
  34. package/dist/declarations/src/types/resources/ipAsset.d.ts +62 -63
  35. package/dist/declarations/src/types/resources/ipAsset.d.ts.map +1 -1
  36. package/dist/declarations/src/types/resources/license.d.ts +62 -68
  37. package/dist/declarations/src/types/resources/license.d.ts.map +1 -1
  38. package/dist/declarations/src/types/resources/nftClient.d.ts +21 -0
  39. package/dist/declarations/src/types/resources/nftClient.d.ts.map +1 -0
  40. package/dist/declarations/src/types/resources/permission.d.ts +14 -0
  41. package/dist/declarations/src/types/resources/permission.d.ts.map +1 -0
  42. package/dist/declarations/src/types/resources/royalty.d.ts +72 -0
  43. package/dist/declarations/src/types/resources/royalty.d.ts.map +1 -0
  44. package/dist/story-protocol-core-sdk.cjs.d.ts +1 -1
  45. package/dist/story-protocol-core-sdk.cjs.dev.js +16636 -1651
  46. package/dist/story-protocol-core-sdk.cjs.prod.js +16636 -1651
  47. package/dist/story-protocol-core-sdk.esm.js +16631 -1647
  48. package/package.json +16 -13
  49. package/dist/declarations/src/abi/generated/CollectModule.d.ts +0 -80
  50. package/dist/declarations/src/abi/generated/CollectModule.d.ts.map +0 -1
  51. package/dist/declarations/src/abi/generated/FranchiseRegistry.d.ts +0 -78
  52. package/dist/declarations/src/abi/generated/FranchiseRegistry.d.ts.map +0 -1
  53. package/dist/declarations/src/abi/generated/IpAssetRegistry.d.ts +0 -94
  54. package/dist/declarations/src/abi/generated/IpAssetRegistry.d.ts.map +0 -1
  55. package/dist/declarations/src/abi/generated/LicensingModule.d.ts +0 -97
  56. package/dist/declarations/src/abi/generated/LicensingModule.d.ts.map +0 -1
  57. package/dist/declarations/src/abi/generated/RelationshipModule.d.ts +0 -116
  58. package/dist/declarations/src/abi/generated/RelationshipModule.d.ts.map +0 -1
  59. package/dist/declarations/src/abi/generated/common.d.ts +0 -22
  60. package/dist/declarations/src/abi/generated/common.d.ts.map +0 -1
  61. package/dist/declarations/src/abi/generated/factories/CollectModule__factory.d.ts +0 -52
  62. package/dist/declarations/src/abi/generated/factories/CollectModule__factory.d.ts.map +0 -1
  63. package/dist/declarations/src/abi/generated/factories/FranchiseRegistry__factory.d.ts +0 -58
  64. package/dist/declarations/src/abi/generated/factories/FranchiseRegistry__factory.d.ts.map +0 -1
  65. package/dist/declarations/src/abi/generated/factories/IpAssetRegistry__factory.d.ts +0 -112
  66. package/dist/declarations/src/abi/generated/factories/IpAssetRegistry__factory.d.ts.map +0 -1
  67. package/dist/declarations/src/abi/generated/factories/LicensingModule__factory.d.ts +0 -88
  68. package/dist/declarations/src/abi/generated/factories/LicensingModule__factory.d.ts.map +0 -1
  69. package/dist/declarations/src/abi/generated/factories/RelationshipModule__factory.d.ts +0 -175
  70. package/dist/declarations/src/abi/generated/factories/RelationshipModule__factory.d.ts.map +0 -1
  71. package/dist/declarations/src/abi/generated/factories/index.d.ts +0 -6
  72. package/dist/declarations/src/abi/generated/factories/index.d.ts.map +0 -1
  73. package/dist/declarations/src/abi/generated/index.d.ts +0 -12
  74. package/dist/declarations/src/abi/generated/index.d.ts.map +0 -1
  75. package/dist/declarations/src/enums/Environment.d.ts +0 -8
  76. package/dist/declarations/src/enums/Environment.d.ts.map +0 -1
  77. package/dist/declarations/src/enums/IPAssetType.d.ts +0 -12
  78. package/dist/declarations/src/enums/IPAssetType.d.ts.map +0 -1
  79. package/dist/declarations/src/enums/ResourceType.d.ts +0 -11
  80. package/dist/declarations/src/enums/ResourceType.d.ts.map +0 -1
  81. package/dist/declarations/src/resources/collect.d.ts +0 -17
  82. package/dist/declarations/src/resources/collect.d.ts.map +0 -1
  83. package/dist/declarations/src/resources/collectReadOnly.d.ts +0 -15
  84. package/dist/declarations/src/resources/collectReadOnly.d.ts.map +0 -1
  85. package/dist/declarations/src/resources/franchise.d.ts +0 -26
  86. package/dist/declarations/src/resources/franchise.d.ts.map +0 -1
  87. package/dist/declarations/src/resources/franchiseReadOnly.d.ts +0 -27
  88. package/dist/declarations/src/resources/franchiseReadOnly.d.ts.map +0 -1
  89. package/dist/declarations/src/resources/ipAssetReadOnly.d.ts +0 -25
  90. package/dist/declarations/src/resources/ipAssetReadOnly.d.ts.map +0 -1
  91. package/dist/declarations/src/resources/licenseReadOnly.d.ts +0 -27
  92. package/dist/declarations/src/resources/licenseReadOnly.d.ts.map +0 -1
  93. package/dist/declarations/src/resources/relationship.d.ts +0 -47
  94. package/dist/declarations/src/resources/relationship.d.ts.map +0 -1
  95. package/dist/declarations/src/resources/relationshipReadOnly.d.ts +0 -16
  96. package/dist/declarations/src/resources/relationshipReadOnly.d.ts.map +0 -1
  97. package/dist/declarations/src/resources/transaction.d.ts +0 -10
  98. package/dist/declarations/src/resources/transaction.d.ts.map +0 -1
  99. package/dist/declarations/src/resources/transactionReadOnly.d.ts +0 -25
  100. package/dist/declarations/src/resources/transactionReadOnly.d.ts.map +0 -1
  101. package/dist/declarations/src/types/client.d.ts +0 -29
  102. package/dist/declarations/src/types/client.d.ts.map +0 -1
  103. package/dist/declarations/src/types/resources/collect.d.ts +0 -45
  104. package/dist/declarations/src/types/resources/collect.d.ts.map +0 -1
  105. package/dist/declarations/src/types/resources/franchise.d.ts +0 -71
  106. package/dist/declarations/src/types/resources/franchise.d.ts.map +0 -1
  107. package/dist/declarations/src/types/resources/relationship.d.ts +0 -83
  108. package/dist/declarations/src/types/resources/relationship.d.ts.map +0 -1
  109. package/dist/declarations/src/types/resources/transaction.d.ts +0 -40
  110. package/dist/declarations/src/types/resources/transaction.d.ts.map +0 -1
  111. package/dist/story-protocol-core-sdk.cjs.d.ts.map +0 -1
@@ -1,78 +1,72 @@
1
- import { BytesLike } from "ethers";
2
- /**
3
- * Represents the core data model for a License, containing essential information.
4
- *
5
- * @public
6
- */
1
+ import { Hex } from "viem";
2
+ import { TxOptions } from "../options.js";
3
+ export type LicenseApiResponse = {
4
+ data: License;
5
+ };
7
6
  export type License = {
8
- licenseId: string;
9
- ipAssetId: string;
10
- franchiseId: string;
11
- ownerAddress: string;
12
- uri: string;
13
- txHash: string;
7
+ id: string;
8
+ policyId: string;
9
+ licensorIpId: Hex;
14
10
  };
15
- /**
16
- * Represents the request structure for retrieving license details using the `franchise.get` method.
17
- *
18
- * @public
19
- */
20
- export type GetLicenseRequest = {
21
- licenseId: string;
11
+ export type RegisterNonComSocialRemixingPILRequest = {
12
+ txOptions?: TxOptions;
22
13
  };
23
- /**
24
- * Represents the response structure for retrieving license details using the `license.get` method.
25
- *
26
- * @public
27
- */
28
- export type GetLicenseResponse = {
29
- data: License;
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
+ uri: string;
32
+ };
33
+ export type LicenseTermsIdResponse = number;
34
+ export type RegisterPILResponse = {
35
+ licenseTermsId?: string;
36
+ txHash?: string;
30
37
  };
31
- export type ListLicenseRequest = {
32
- ipAssetId: string;
33
- franchiseId: string;
38
+ export type RegisterCommercialUsePILRequest = {
39
+ mintingFee: string;
40
+ currency: Hex;
41
+ txOptions?: TxOptions;
34
42
  };
35
- /**
36
- * Represents the request structure for listing multiple licenses using the `license.list` method.
37
- *
38
- * @public
39
- */
40
- export type ListLicenseResponse = {
41
- data: License[];
43
+ export type RegisterCommercialRemixPILRequest = {
44
+ mintingFee: string;
45
+ commercialRevShare: number;
46
+ currency: Hex;
47
+ txOptions?: TxOptions;
42
48
  };
43
- /**
44
- * Represents the optional parameters for creating a new license using the `license.create` method.
45
- *
46
- * @public
47
- */
48
- export type CreateLicenseRequestOptions = {
49
- parentLicenseId?: string;
50
- ownerAddress?: string;
51
- revoker?: string;
52
- isCommercial?: boolean;
53
- isSublicensable?: boolean;
54
- terms?: {
55
- processor: string;
56
- data: BytesLike | string;
57
- };
49
+ export type AttachLicenseTermsRequest = {
50
+ ipId: Hex;
51
+ licenseTermsId: string;
52
+ licenseTemplate?: Hex;
53
+ txOptions?: TxOptions;
58
54
  };
59
- /**
60
- * Represents the request structure for creating a new license using the `license.create` method.
61
- *
62
- * @public
63
- */
64
- export type CreateLicenseRequest = {
65
- franchiseId: string;
66
- ipAssetId: string;
67
- licenseURI: string;
68
- options?: CreateLicenseRequestOptions;
55
+ export type MintLicenseTokensRequest = {
56
+ licensorIpId: Hex;
57
+ licenseTermsId: string;
58
+ licenseTemplate?: Hex;
59
+ amount?: number;
60
+ receiver?: Hex;
61
+ txOptions?: TxOptions;
69
62
  };
70
- /**
71
- * Represents the response structure for creating a new license using the `license.create` method.
72
- *
73
- * @public
74
- */
75
- export type CreateLicenseResponse = {
76
- txHash: string;
63
+ export type MintLicenseTokensResponse = {
64
+ licenseTokenId?: string;
65
+ txHash?: string;
77
66
  };
67
+ export declare enum PIL_TYPE {
68
+ NON_COMMERCIAL_REMIX = 0,
69
+ COMMERCIAL_USE = 1,
70
+ COMMERCIAL_REMIX = 2
71
+ }
78
72
  //# 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,MAAM,QAAQ,CAAC;AAEnC;;;;GAIG;AACH,MAAM,MAAM,OAAO,GAAG;IACpB,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;IAClB,WAAW,EAAE,MAAM,CAAC;IACpB,YAAY,EAAE,MAAM,CAAC;IACrB,GAAG,EAAE,MAAM,CAAC;IACZ,MAAM,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF;;;;GAIG;AACH,MAAM,MAAM,iBAAiB,GAAG;IAC9B,SAAS,EAAE,MAAM,CAAC;CACnB,CAAC;AAEF;;;;GAIG;AACH,MAAM,MAAM,kBAAkB,GAAG;IAC/B,IAAI,EAAE,OAAO,CAAC;CACf,CAAC;AAEF,MAAM,MAAM,kBAAkB,GAAG;IAC/B,SAAS,EAAE,MAAM,CAAC;IAClB,WAAW,EAAE,MAAM,CAAC;CACrB,CAAC;AAEF;;;;GAIG;AACH,MAAM,MAAM,mBAAmB,GAAG;IAChC,IAAI,EAAE,OAAO,EAAE,CAAC;CACjB,CAAC;AAEF;;;;GAIG;AACH,MAAM,MAAM,2BAA2B,GAAG;IACxC,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,KAAK,CAAC,EAAE;QACN,SAAS,EAAE,MAAM,CAAC;QAClB,IAAI,EAAE,SAAS,GAAG,MAAM,CAAC;KAC1B,CAAC;CACH,CAAC;AAEF;;;;GAIG;AACH,MAAM,MAAM,oBAAoB,GAAG;IACjC,WAAW,EAAE,MAAM,CAAC;IACpB,SAAS,EAAE,MAAM,CAAC;IAClB,UAAU,EAAE,MAAM,CAAC;IACnB,OAAO,CAAC,EAAE,2BAA2B,CAAC;CACvC,CAAC;AAEF;;;;GAIG;AACH,MAAM,MAAM,qBAAqB,GAAG;IAClC,MAAM,EAAE,MAAM,CAAC;CAChB,CAAC"}
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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CACvB,CAAC;AAEF,MAAM,MAAM,yBAAyB,GAAG;IACtC,IAAI,EAAE,GAAG,CAAC;IACV,cAAc,EAAE,MAAM,CAAC;IACvB,eAAe,CAAC,EAAE,GAAG,CAAC;IACtB,SAAS,CAAC,EAAE,SAAS,CAAC;CACvB,CAAC;AAEF,MAAM,MAAM,wBAAwB,GAAG;IACrC,YAAY,EAAE,GAAG,CAAC;IAClB,cAAc,EAAE,MAAM,CAAC;IACvB,eAAe,CAAC,EAAE,GAAG,CAAC;IACtB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,QAAQ,CAAC,EAAE,GAAG,CAAC;IACf,SAAS,CAAC,EAAE,SAAS,CAAC;CACvB,CAAC;AAEF,MAAM,MAAM,yBAAyB,GAAG;IACtC,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB,CAAC;AAEF,oBAAY,QAAQ;IAClB,oBAAoB,IAAA;IACpB,cAAc,IAAA;IACd,gBAAgB,IAAA;CACjB"}
@@ -0,0 +1,21 @@
1
+ import { Hex } from "viem";
2
+ import { TxOptions } from "../options.js";
3
+ export type CreateNFTCollectionRequest = {
4
+ name: string;
5
+ symbol: string;
6
+ maxSupply?: number;
7
+ mintCost?: bigint;
8
+ mintToken?: Hex;
9
+ owner?: Hex;
10
+ txOptions?: TxOptions;
11
+ };
12
+ export type CreateNFTCollectionResponse<TReq extends CreateNFTCollectionRequest> = TReq["txOptions"] extends {
13
+ waitForTransaction: true;
14
+ } ? {
15
+ txHash: string;
16
+ nftContract: Hex;
17
+ } : {
18
+ txHash: string;
19
+ nftContract?: Hex;
20
+ };
21
+ //# sourceMappingURL=nftClient.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"nftClient.d.ts","sourceRoot":"../../../../../src/types/resources","sources":["nftClient.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,MAAM,CAAC;AAE3B,OAAO,EAAE,SAAS,EAAE,sBAAmB;AAEvC,MAAM,MAAM,0BAA0B,GAAG;IACvC,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;IACf,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE,GAAG,CAAC;IAChB,KAAK,CAAC,EAAE,GAAG,CAAC;IACZ,SAAS,CAAC,EAAE,SAAS,CAAC;CACvB,CAAC;AAEF,MAAM,MAAM,2BAA2B,CAAC,IAAI,SAAS,0BAA0B,IAC7E,IAAI,CAAC,WAAW,CAAC,SAAS;IAAE,kBAAkB,EAAE,IAAI,CAAA;CAAE,GAClD;IAAE,MAAM,EAAE,MAAM,CAAC;IAAC,WAAW,EAAE,GAAG,CAAA;CAAE,GACpC;IAAE,MAAM,EAAE,MAAM,CAAC;IAAC,WAAW,CAAC,EAAE,GAAG,CAAA;CAAE,CAAC"}
@@ -0,0 +1,14 @@
1
+ import { TxOptions } from "../options.js";
2
+ export type SetPermissionsRequest = {
3
+ ipId: `0x${string}`;
4
+ signer: `0x${string}`;
5
+ to: `0x${string}`;
6
+ func?: string;
7
+ permission: number;
8
+ txOptions?: TxOptions;
9
+ };
10
+ export type SetPermissionsResponse = {
11
+ txHash: string;
12
+ success?: boolean;
13
+ };
14
+ //# sourceMappingURL=permission.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"permission.d.ts","sourceRoot":"../../../../../src/types/resources","sources":["permission.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,sBAAmB;AAEvC,MAAM,MAAM,qBAAqB,GAAG;IAClC,IAAI,EAAE,KAAK,MAAM,EAAE,CAAC;IACpB,MAAM,EAAE,KAAK,MAAM,EAAE,CAAC;IACtB,EAAE,EAAE,KAAK,MAAM,EAAE,CAAC;IAClB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,UAAU,EAAE,MAAM,CAAC;IACnB,SAAS,CAAC,EAAE,SAAS,CAAC;CACvB,CAAC;AAEF,MAAM,MAAM,sBAAsB,GAAG;IACnC,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB,CAAC"}
@@ -0,0 +1,72 @@
1
+ import { Hex } from "viem";
2
+ import { TxOptions } from "../options.js";
3
+ export type RoyaltyPolicyApiResponse = {
4
+ data: RoyaltyPolicy;
5
+ };
6
+ export type RoyaltyPolicy = {
7
+ id: `0x${string}`;
8
+ targetAncestors: string[];
9
+ targetRoyaltyAmount: string[];
10
+ };
11
+ export type RoyaltyContext = {
12
+ targetAncestors: string[];
13
+ targetRoyaltyAmount: number[];
14
+ parentAncestors1: string[];
15
+ parentAncestors2: string[];
16
+ parentAncestorsRoyalties1: number[];
17
+ parentAncestorsRoyalties2: number[];
18
+ };
19
+ export type CollectRoyaltyTokensRequest = {
20
+ parentIpId: Hex;
21
+ royaltyVaultIpId: Hex;
22
+ txOptions?: TxOptions;
23
+ };
24
+ export type CollectRoyaltyTokensResponse = {
25
+ txHash: string;
26
+ royaltyTokensCollected?: string;
27
+ };
28
+ export type RoyaltyData = [
29
+ isUnlinkableToParents: boolean,
30
+ ipRoyaltyVault: Hex,
31
+ royaltyStack: bigint,
32
+ ancestorsAddresses: Hex,
33
+ ancestorsRoyalties: bigint[]
34
+ ];
35
+ export type ClaimableRevenueRequest = {
36
+ royaltyVaultIpId: Hex;
37
+ account: Hex;
38
+ snapshotId: string;
39
+ token: Hex;
40
+ };
41
+ export type ClaimableRevenueResponse = string;
42
+ export type PayRoyaltyOnBehalfRequest = {
43
+ receiverIpId: Hex;
44
+ payerIpId: Hex;
45
+ token: Hex;
46
+ amount: string;
47
+ txOptions?: TxOptions;
48
+ };
49
+ export type PayRoyaltyOnBehalfResponse = {
50
+ txHash: string;
51
+ };
52
+ export type SnapshotRequest = {
53
+ royaltyVaultIpId: Hex;
54
+ txOptions?: TxOptions;
55
+ };
56
+ export type ClaimRevenueRequest = {
57
+ snapshotIds: string[];
58
+ token: Hex;
59
+ royaltyVaultIpId: Hex;
60
+ account?: Hex;
61
+ txOptions?: TxOptions;
62
+ };
63
+ export type ClaimRevenueResponse = {
64
+ txHash: string;
65
+ claimableToken?: string;
66
+ };
67
+ export type SnapshotResponse = {
68
+ txHash: string;
69
+ snapshotId?: string;
70
+ };
71
+ export type RoyaltyVaultAddress = Hex;
72
+ //# sourceMappingURL=royalty.d.ts.map
@@ -0,0 +1 @@
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;IAC3B,yBAAyB,EAAE,MAAM,EAAE,CAAC;IACpC,yBAAyB,EAAE,MAAM,EAAE,CAAC;CACrC,CAAC;AAEF,MAAM,MAAM,2BAA2B,GAAG;IACxC,UAAU,EAAE,GAAG,CAAC;IAChB,gBAAgB,EAAE,GAAG,CAAC;IACtB,SAAS,CAAC,EAAE,SAAS,CAAC;CACvB,CAAC;AAEF,MAAM,MAAM,4BAA4B,GAAG;IACzC,MAAM,EAAE,MAAM,CAAC;IACf,sBAAsB,CAAC,EAAE,MAAM,CAAC;CACjC,CAAC;AAEF,MAAM,MAAM,WAAW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@ -1,2 +1,2 @@
1
1
  export * from "./declarations/src/index";
2
- //# sourceMappingURL=story-protocol-core-sdk.cjs.d.ts.map
2
+ //# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic3RvcnktcHJvdG9jb2wtY29yZS1zZGsuY2pzLmQudHMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuL2RlY2xhcmF0aW9ucy9zcmMvaW5kZXguZC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSJ9