@story-protocol/core-sdk 1.3.0-beta.2 → 1.3.0-rc.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (58) hide show
  1. package/dist/declarations/src/abi/generated.d.ts +4327 -3815
  2. package/dist/declarations/src/abi/generated.d.ts.map +1 -1
  3. package/dist/declarations/src/client.d.ts +1 -0
  4. package/dist/declarations/src/client.d.ts.map +1 -1
  5. package/dist/declarations/src/index.d.ts +10 -5
  6. package/dist/declarations/src/index.d.ts.map +1 -1
  7. package/dist/declarations/src/resources/dispute.d.ts +33 -20
  8. package/dist/declarations/src/resources/dispute.d.ts.map +1 -1
  9. package/dist/declarations/src/resources/group.d.ts +11 -100
  10. package/dist/declarations/src/resources/group.d.ts.map +1 -1
  11. package/dist/declarations/src/resources/ipAccount.d.ts +9 -3
  12. package/dist/declarations/src/resources/ipAccount.d.ts.map +1 -1
  13. package/dist/declarations/src/resources/ipAsset.d.ts +36 -364
  14. package/dist/declarations/src/resources/ipAsset.d.ts.map +1 -1
  15. package/dist/declarations/src/resources/license.d.ts +4 -21
  16. package/dist/declarations/src/resources/license.d.ts.map +1 -1
  17. package/dist/declarations/src/resources/nftClient.d.ts +9 -1
  18. package/dist/declarations/src/resources/nftClient.d.ts.map +1 -1
  19. package/dist/declarations/src/resources/permission.d.ts +2 -2
  20. package/dist/declarations/src/resources/permission.d.ts.map +1 -1
  21. package/dist/declarations/src/resources/royalty.d.ts +22 -13
  22. package/dist/declarations/src/resources/royalty.d.ts.map +1 -1
  23. package/dist/declarations/src/resources/wip.d.ts +15 -9
  24. package/dist/declarations/src/resources/wip.d.ts.map +1 -1
  25. package/dist/declarations/src/types/common.d.ts +20 -2
  26. package/dist/declarations/src/types/common.d.ts.map +1 -1
  27. package/dist/declarations/src/types/config.d.ts +2 -1
  28. package/dist/declarations/src/types/config.d.ts.map +1 -1
  29. package/dist/declarations/src/types/options.d.ts +67 -1
  30. package/dist/declarations/src/types/options.d.ts.map +1 -1
  31. package/dist/declarations/src/types/resources/dispute.d.ts +56 -4
  32. package/dist/declarations/src/types/resources/dispute.d.ts.map +1 -1
  33. package/dist/declarations/src/types/resources/group.d.ts +30 -5
  34. package/dist/declarations/src/types/resources/group.d.ts.map +1 -1
  35. package/dist/declarations/src/types/resources/ipAccount.d.ts +10 -2
  36. package/dist/declarations/src/types/resources/ipAccount.d.ts.map +1 -1
  37. package/dist/declarations/src/types/resources/ipAsset.d.ts +118 -117
  38. package/dist/declarations/src/types/resources/ipAsset.d.ts.map +1 -1
  39. package/dist/declarations/src/types/resources/ipMetadata.d.ts +274 -0
  40. package/dist/declarations/src/types/resources/ipMetadata.d.ts.map +1 -0
  41. package/dist/declarations/src/types/resources/license.d.ts +6 -8
  42. package/dist/declarations/src/types/resources/license.d.ts.map +1 -1
  43. package/dist/declarations/src/types/resources/royalty.d.ts +40 -119
  44. package/dist/declarations/src/types/resources/royalty.d.ts.map +1 -1
  45. package/dist/declarations/src/types/resources/wip.d.ts +7 -0
  46. package/dist/declarations/src/types/resources/wip.d.ts.map +1 -1
  47. package/dist/declarations/src/utils/chain.d.ts +33 -1
  48. package/dist/declarations/src/utils/chain.d.ts.map +1 -1
  49. package/dist/declarations/src/utils/getIpMetadataForWorkflow.d.ts +4 -0
  50. package/dist/declarations/src/utils/getIpMetadataForWorkflow.d.ts.map +1 -1
  51. package/dist/story-protocol-core-sdk.cjs.dev.js +2932 -2467
  52. package/dist/story-protocol-core-sdk.cjs.prod.js +2932 -2467
  53. package/dist/story-protocol-core-sdk.esm.js +2928 -2470
  54. package/package.json +1 -1
  55. package/dist/declarations/src/types/utils/txOptions.d.ts +0 -13
  56. package/dist/declarations/src/types/utils/txOptions.d.ts.map +0 -1
  57. package/dist/declarations/src/types/utils/wip.d.ts +0 -87
  58. package/dist/declarations/src/types/utils/wip.d.ts.map +0 -1
@@ -0,0 +1,274 @@
1
+ import { Address, Hash } from "viem";
2
+ export type AIMetadata = {
3
+ /**
4
+ * Url to the character file.
5
+ *
6
+ * @example https://github.com/elizaOS/characterfile/blob/main/examples/example.character.json
7
+ */
8
+ characterFileUrl: string;
9
+ /**
10
+ * Hash of the character file using SHA-256 hashing algorithm.
11
+ */
12
+ characterFileHash: Hash;
13
+ };
14
+ /**
15
+ * IPA Metadata Standard Parameters
16
+ *
17
+ * This is the metadata that is associated with an IP Asset,
18
+ * and gets stored inside of an IP Account.
19
+ *
20
+ * @see {@link https://docs.story.foundation/docs/ipa-metadata-standard|IPA Metadata Standard Docs}
21
+ */
22
+ export type IpMetadata = {
23
+ /** Title of the IP. Required for Story Explorer. */
24
+ title?: string;
25
+ /** Description of the IP. Required for Story Explorer. */
26
+ description?: string;
27
+ /**
28
+ * Date/Time that the IP was created (either ISO8601 or unix format).
29
+ *
30
+ * This field can be used to specify historical dates that aren’t on-chain.
31
+ * For example, Harry Potter was published on June 26.
32
+ *
33
+ * Required for Story Explorer.
34
+ *
35
+ * @example "1728401700"
36
+ */
37
+ createdAt?: string;
38
+ /** An image for the IP. Required for Story Explorer. */
39
+ image?: string;
40
+ /**
41
+ * Hash of your `image` using SHA-256 hashing algorithm.
42
+ * See {@link https://docs.story.foundation/docs/ipa-metadata-standard#hashing-content|here} for how that is done.
43
+ *
44
+ * Required for Story Explorer.
45
+ */
46
+ imageHash?: Hash;
47
+ /**
48
+ * An array of information about the creators.
49
+ *
50
+ * Required for Story Explorer.
51
+ */
52
+ creators?: IpCreator[];
53
+ /**
54
+ * Url to the actual media file (ex video, audio, image, etc).
55
+ * Used for infringement checking.
56
+ *
57
+ * Required for Commercial Infringement Check
58
+ *
59
+ * @example https://ipfs.io/ipfs/QmSamy4zqP91X42k6wS7kLJQVzuYJuW2EN94couPaq82A8
60
+ */
61
+ mediaUrl?: string;
62
+ /**
63
+ * Hashed string of the media using SHA-256 hashing algorithm.
64
+ *
65
+ * Required for Commercial Infringement Check
66
+ *
67
+ * @example 0x21937ba9d821cb0306c7f1a1a2cc5a257509f228ea6abccc9af1a67dd754af6e
68
+ */
69
+ mediaHash?: Hash;
70
+ /**
71
+ * Type of media (audio, video, image), based on mimeType.
72
+ *
73
+ * See {@link https://docs.story.foundation/docs/ipa-metadata-standard#media-types|here}
74
+ * for all the allowed media types.
75
+ *
76
+ * Required for Commercial Infringement Check
77
+ */
78
+ mediaType?: string;
79
+ /**
80
+ * Used for registering & displaying AI Agent Metadata.
81
+ *
82
+ * Required for AI Agents
83
+ */
84
+ aiMetadata?: AIMetadata;
85
+ /**
86
+ * Any other fields can be included in the metadata.
87
+ */
88
+ [key: string]: unknown;
89
+ } & IpMetadataExperimentalAttributes;
90
+ /**
91
+ * Experimental ip metadata fields that are not required but may be
92
+ * considered for future use.
93
+ */
94
+ export type IpMetadataExperimentalAttributes = {
95
+ /**
96
+ * **Experimental**: Type of the IP Asset, can be defined arbitrarily by the
97
+ * creator. I.e. “character”, “chapter”, “location”, “items”, "music", etc
98
+ */
99
+ ipType?: string;
100
+ /**
101
+ * **Experimental**: The detailed relationship info with the IPA’s direct parent asset,
102
+ * such as APPEARS_IN, FINETUNED_FROM, etc
103
+ */
104
+ relationships?: IpRelationship[];
105
+ /**
106
+ * **Experimental**: A separate image with your watermark already applied.
107
+ * This way apps choosing to use it can render this version of the image (with watermark applied).
108
+ */
109
+ watermarkImg?: string;
110
+ /**
111
+ * **Experimental**: An array of supporting media
112
+ */
113
+ media?: IpMedia[];
114
+ /**
115
+ * **Experimental**: This is assigned to verified application from
116
+ * Story Protocol directly (on a request basis so far).
117
+ */
118
+ app?: StoryProtocolApp;
119
+ /**
120
+ * **Experimental**: Any tags that can help surface this IPA
121
+ */
122
+ tags?: string[];
123
+ /**
124
+ * **Experimental**: Allows you to set Do Not Train for a specific agent
125
+ */
126
+ robotTerms?: IPRobotTerms;
127
+ };
128
+ export type IPRobotTerms = {
129
+ userAgent: string;
130
+ allow: string;
131
+ };
132
+ export type StoryProtocolApp = {
133
+ id: string;
134
+ name: string;
135
+ website: string;
136
+ action?: string;
137
+ };
138
+ export type IpMedia = {
139
+ name: string;
140
+ url: string;
141
+ mimeType: string;
142
+ };
143
+ export type IpRelationship = {
144
+ parentIpId: Address;
145
+ /**
146
+ * Type of relationship between the parent and child IP.
147
+ *
148
+ * @see {@link https://docs.story.foundation/docs/ipa-metadata-standard#relationship-types|Relationship Types} for all relationship types.
149
+ *
150
+ * @example StoryRelationship.APPEARS_IN
151
+ */
152
+ type: StoryRelationship | AIRelationship;
153
+ };
154
+ export type IpCreator = {
155
+ /**
156
+ * Name of the creator.
157
+ *
158
+ * @example "Story Foundation"
159
+ */
160
+ name: string;
161
+ address: Address;
162
+ description?: string;
163
+ image?: string;
164
+ socialMedia?: IpCreatorSocial[];
165
+ role?: string;
166
+ /**
167
+ * Contribution percent of the creator.
168
+ *
169
+ * Total contribution percent of all creators should add up to 100.
170
+ */
171
+ contributionPercent: number;
172
+ };
173
+ export type IpCreatorSocial = {
174
+ /**
175
+ * Social media platform.
176
+ *
177
+ * @example "Discord"
178
+ */
179
+ platform: string;
180
+ url: string;
181
+ };
182
+ /**
183
+ * Enum representing the various relationship types in a story narrative.
184
+ */
185
+ export declare enum StoryRelationship {
186
+ /** A character appears in a chapter. */
187
+ APPEARS_IN = "APPEARS_IN",
188
+ /** A chapter belongs to a book. */
189
+ BELONGS_TO = "BELONGS_TO",
190
+ /** A book is part of a series. */
191
+ PART_OF = "PART_OF",
192
+ /** A chapter continues from the previous one. */
193
+ CONTINUES_FROM = "CONTINUES_FROM",
194
+ /** An event leads to a consequence. */
195
+ LEADS_TO = "LEADS_TO",
196
+ /** An event foreshadows future developments. */
197
+ FORESHADOWS = "FORESHADOWS",
198
+ /** A character conflicts with another character. */
199
+ CONFLICTS_WITH = "CONFLICTS_WITH",
200
+ /** A decision results in a significant change. */
201
+ RESULTS_IN = "RESULTS_IN",
202
+ /** A subplot depends on the main plot. */
203
+ DEPENDS_ON = "DEPENDS_ON",
204
+ /** A prologue sets up the story. */
205
+ SETS_UP = "SETS_UP",
206
+ /** A chapter follows from the previous one. */
207
+ FOLLOWS_FROM = "FOLLOWS_FROM",
208
+ /** A twist reveals that something unexpected occurred. */
209
+ REVEALS_THAT = "REVEALS_THAT",
210
+ /** A character develops over the course of the story. */
211
+ DEVELOPS_OVER = "DEVELOPS_OVER",
212
+ /** A chapter introduces a new character or element. */
213
+ INTRODUCES = "INTRODUCES",
214
+ /** A conflict resolves in a particular outcome. */
215
+ RESOLVES_IN = "RESOLVES_IN",
216
+ /** A theme connects to the main narrative. */
217
+ CONNECTS_TO = "CONNECTS_TO",
218
+ /** A subplot relates to the central theme. */
219
+ RELATES_TO = "RELATES_TO",
220
+ /** A scene transitions from one setting to another. */
221
+ TRANSITIONS_FROM = "TRANSITIONS_FROM",
222
+ /** A character interacted with another character. */
223
+ INTERACTED_WITH = "INTERACTED_WITH",
224
+ /** An event leads into the climax. */
225
+ LEADS_INTO = "LEADS_INTO",
226
+ /** Story happening in parallel or around the same timeframe. */
227
+ PARALLEL = "PARALLEL"
228
+ }
229
+ /**
230
+ * Enum representing the different relationship types for AI-related metadata.
231
+ */
232
+ export declare enum AIRelationship {
233
+ /** A model is trained on a dataset. */
234
+ TRAINED_ON = "TRAINED_ON",
235
+ /** A model is finetuned from a base model. */
236
+ FINETUNED_FROM = "FINETUNED_FROM",
237
+ /** An image is generated from a fine-tuned model. */
238
+ GENERATED_FROM = "GENERATED_FROM",
239
+ /** A model requires data for training. */
240
+ REQUIRES_DATA = "REQUIRES_DATA",
241
+ /** A remix is based on a specific workflow. */
242
+ BASED_ON = "BASED_ON",
243
+ /** Sample data influences model output. */
244
+ INFLUENCES = "INFLUENCES",
245
+ /** A pipeline creates a fine-tuned model. */
246
+ CREATES = "CREATES",
247
+ /** A workflow utilizes a base model. */
248
+ UTILIZES = "UTILIZES",
249
+ /** A fine-tuned model is derived from a base model. */
250
+ DERIVED_FROM = "DERIVED_FROM",
251
+ /** A model produces generated images. */
252
+ PRODUCES = "PRODUCES",
253
+ /** A remix modifies the base workflow. */
254
+ MODIFIES = "MODIFIES",
255
+ /** An AI-generated image references original data. */
256
+ REFERENCES = "REFERENCES",
257
+ /** A model is optimized by specific algorithms. */
258
+ OPTIMIZED_BY = "OPTIMIZED_BY",
259
+ /** A fine-tuned model inherits features from the base model. */
260
+ INHERITS = "INHERITS",
261
+ /** A fine-tuning process applies to a model. */
262
+ APPLIES_TO = "APPLIES_TO",
263
+ /** A remix combines elements from multiple datasets. */
264
+ COMBINES = "COMBINES",
265
+ /** A model generates variants of an image. */
266
+ GENERATES_VARIANTS = "GENERATES_VARIANTS",
267
+ /** A fine-tuning process expands on base capabilities. */
268
+ EXPANDS_ON = "EXPANDS_ON",
269
+ /** A workflow configures a model’s parameters. */
270
+ CONFIGURES = "CONFIGURES",
271
+ /** A fine-tuned model adapts to new data. */
272
+ ADAPTS_TO = "ADAPTS_TO"
273
+ }
274
+ //# sourceMappingURL=ipMetadata.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ipMetadata.d.ts","sourceRoot":"../../../../../src/types/resources","sources":["ipMetadata.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAC;AAErC,MAAM,MAAM,UAAU,GAAG;IACvB;;;;OAIG;IACH,gBAAgB,EAAE,MAAM,CAAC;IACzB;;OAEG;IACH,iBAAiB,EAAE,IAAI,CAAC;CACzB,CAAC;AAEF;;;;;;;GAOG;AACH,MAAM,MAAM,UAAU,GAAG;IACvB,oDAAoD;IACpD,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,0DAA0D;IAC1D,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;;;;;;;;OASG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,wDAAwD;IACxD,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;;;;OAKG;IACH,SAAS,CAAC,EAAE,IAAI,CAAC;IACjB;;;;OAIG;IACH,QAAQ,CAAC,EAAE,SAAS,EAAE,CAAC;IACvB;;;;;;;OAOG;IACH,QAAQ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AAuC;IACvC,UAAU,eAAe;IACzB,8CAA8C;IAC9C,cAAc,mBAAmB;IACjC,qDAAqD;IACrD,cAAc,mBAAmB;IACjC,0CAA0C;IAC1C,aAAa,kBAAkB;IAC/B,+CAA+C;IAC/C,QAAQ,aAAa;IACrB,2CAA2C;IAC3C,UAAU,eAAe;IACzB,6CAA6C;IAC7C,OAAO,YAAY;IACnB,wCAAwC;IACxC,QAAQ,aAAa;IACrB,uDAAuD;IACvD,YAAY,iBAAiB;IAC7B,yCAAyC;IACzC,QAAQ,aAAa;IACrB,0CAA0C;IAC1C,QAAQ,aAAa;IACrB,sDAAsD;IACtD,UAAU,eAAe;IACzB,mDAAmD;IACnD,YAAY,iBAAiB;IAC7B,gEAAgE;IAChE,QAAQ,aAAa;IACrB,gDAAgD;IAChD,UAAU,eAAe;IACzB,wDAAwD;IACxD,QAAQ,aAAa;IACrB,8CAA8C;IAC9C,kBAAkB,uBAAuB;IACzC,0DAA0D;IAC1D,UAAU,eAAe;IACzB,kDAAkD;IAClD,UAAU,eAAe;IACzB,6CAA6C;IAC7C,SAAS,cAAc;CACxB"}
@@ -1,8 +1,7 @@
1
1
  import { Address, TransactionReceipt } from "viem";
2
- import { WithTxOptions, TxOptions } from "../options.js";
2
+ import { WithTxOptions, TxOptions, WithWipOptions } from "../options.js";
3
3
  import { EncodedTxData } from "../../abi/generated.js";
4
4
  import { LicensingConfig } from "../common.js";
5
- import { WithWipOptions } from "../utils/wip.js";
6
5
  export type LicenseApiResponse = {
7
6
  data: License;
8
7
  };
@@ -104,16 +103,15 @@ export type PredictMintingLicenseFeeRequest = {
104
103
  receiver?: Address;
105
104
  txOptions?: TxOptions;
106
105
  };
107
- export type InnerLicensingConfig = {
108
- mintingFee: bigint;
109
- commercialRevShare: number;
110
- expectMinimumGroupRewardShare: number;
111
- } & LicensingConfig;
112
106
  export type SetLicensingConfigRequest = {
107
+ /** The address of the IP for which the configuration is being set. */
113
108
  ipId: Address;
109
+ /** The ID of the license terms within the license template. */
114
110
  licenseTermsId: string | number | bigint;
115
- licensingConfig: LicensingConfig;
111
+ /** The address of the license template used. */
116
112
  licenseTemplate: Address;
113
+ /** The licensing configuration for the license. */
114
+ licensingConfig: LicensingConfig;
117
115
  txOptions?: TxOptions;
118
116
  };
119
117
  export type SetLicensingConfigResponse = {
@@ -1 +1 @@
1
- {"version":3,"file":"license.d.ts","sourceRoot":"../../../../../src/types/resources","sources":["license.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,kBAAkB,EAAE,MAAM,MAAM,CAAC;AAEnD,OAAO,EAAE,aAAa,EAAE,SAAS,EAAE,sBAAmB;AACtD,OAAO,EAAE,aAAa,EAAE,+BAA4B;AACpD,OAAO,EAAE,eAAe,EAAE,qBAAkB;AAC5C,OAAO,EAAE,cAAc,EAAE,wBAAqB;AAE9C,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,OAAO,CAAC;CACvB,CAAC;AAEF,MAAM,MAAM,sCAAsC,GAAG;IACnD,SAAS,CAAC,EAAE,SAAS,CAAC;CACvB,CAAC;AAEF;;;IAGI;AACJ,MAAM,MAAM,YAAY,GAAG;IAEzB,YAAY,EAAE,OAAO,CAAC;IAEtB,aAAa,EAAE,OAAO,CAAC;IAEvB,iBAAiB,EAAE,MAAM,CAAC;IAE1B,UAAU,EAAE,MAAM,CAAC;IAEnB,aAAa,EAAE,OAAO,CAAC;IAEvB,qBAAqB,EAAE,OAAO,CAAC;IAE/B,qBAAqB,EAAE,OAAO,CAAC;IAE/B,yBAAyB,EAAE,OAAO,CAAC;IACnC,qFAAqF;IACrF,kBAAkB,EAAE,MAAM,CAAC;IAE3B,oBAAoB,EAAE,MAAM,CAAC;IAE7B,kBAAkB,EAAE,OAAO,CAAC;IAE5B,sBAA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C,EAAE,MAAM,EAAE,CAAC;IAC3B,OAAO,CAAC,EAAE,kBAAkB,CAAC;IAC7B,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;AAEtD,MAAM,MAAM,+BAA+B,GAAG;IAC5C,YAAY,EAAE,OAAO,CAAC;IACtB,cAAc,EAAE,cAAc,CAAC;IAC/B,MAAM,EAAE,MAAM,GAAG,MAAM,GAAG,MAAM,CAAC;IACjC,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,SAAS,CAAC,EAAE,SAAS,CAAC;CACvB,CAAC;AAEF,MAAM,MAAM,yBAAyB,GAAG;IACtC,sEAAsE;IACtE,IAAI,EAAE,OAAO,CAAC;IACd,+DAA+D;IAC/D,cAAc,EAAE,MAAM,GAAG,MAAM,GAAG,MAAM,CAAC;IACzC,gDAAgD;IAChD,eAAe,EAAE,OAAO,CAAC;IACzB,mDAAmD;IACnD,eAAe,EAAE,eAAe,CAAC;IACjC,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"}
@@ -1,131 +1,30 @@
1
1
  import { Address, Hash, TransactionReceipt } from "viem";
2
- import { TxOptions, WithTxOptions } from "../options.js";
3
- import { EncodedTxData, IpAccountImplClient } from "../../abi/generated.js";
4
- import { WithWipOptions } from "../utils/wip.js";
2
+ import { WithTxOptions, WithWipOptions } from "../options.js";
3
+ import { EncodedTxData, IpAccountImplClient, IpRoyaltyVaultImplRevenueTokenClaimedEvent } from "../../abi/generated.js";
4
+ import { WithERC20Options } from "../options.js";
5
5
  import { TokenAmountInput } from "../common.js";
6
- export type RoyaltyPolicyApiResponse = {
7
- data: RoyaltyPolicy;
8
- };
9
- export type RoyaltyPolicy = {
10
- id: Address;
11
- targetAncestors: string[];
12
- targetRoyaltyAmount: string[];
13
- };
14
- export type RoyaltyContext = {
15
- targetAncestors: string[];
16
- targetRoyaltyAmount: number[];
17
- parentAncestors1: string[];
18
- parentAncestors2: string[];
19
- parentAncestorsRoyalties1: number[];
20
- parentAncestorsRoyalties2: number[];
21
- };
22
- export type RoyaltyData = [
23
- isUnlinkableToParents: boolean,
24
- ipRoyaltyVault: Address,
25
- royaltyStack: bigint,
26
- ancestorsAddresses: Address,
27
- ancestorsRoyalties: bigint[]
28
- ];
29
6
  export type ClaimableRevenueRequest = {
30
7
  royaltyVaultIpId: Address;
31
8
  claimer: Address;
32
9
  token: Address;
33
10
  };
34
11
  export type ClaimableRevenueResponse = bigint;
35
- export type PayRoyaltyOnBehalfRequest = {
12
+ export type PayRoyaltyOnBehalfRequest = WithTxOptions & WithERC20Options & WithWipOptions & {
13
+ /** The IP ID that receives the royalties. */
36
14
  receiverIpId: Address;
15
+ /** The IP ID that pays the royalties. */
37
16
  payerIpId: Address;
17
+ /** The token to use to pay the royalties. */
38
18
  token: Address;
19
+ /** The amount to pay. */
39
20
  amount: TokenAmountInput;
40
- } & WithTxOptions & WithWipOptions;
21
+ };
41
22
  export type PayRoyaltyOnBehalfResponse = {
42
23
  txHash?: string;
43
24
  receipt?: TransactionReceipt;
44
25
  encodedTxData?: EncodedTxData;
45
26
  };
46
- export type SnapshotRequest = {
47
- royaltyVaultIpId: Address;
48
- txOptions?: TxOptions;
49
- };
50
- export type ClaimRevenueRequest = {
51
- snapshotIds: string[] | number[] | bigint[];
52
- token: Address;
53
- royaltyVaultIpId: Address;
54
- account?: Address;
55
- txOptions?: TxOptions;
56
- };
57
- export type ClaimRevenueResponse = {
58
- txHash?: string;
59
- encodedTxData?: EncodedTxData;
60
- claimableToken?: bigint;
61
- };
62
- export type SnapshotResponse = {
63
- txHash?: string;
64
- encodedTxData?: EncodedTxData;
65
- snapshotId?: bigint;
66
- };
67
- type RoyaltyClaimDetail = {
68
- childIpId: Address;
69
- royaltyPolicy: Address;
70
- currencyToken: Address;
71
- amount: bigint | string | number;
72
- };
73
- export type TransferToVaultAndSnapshotAndClaimByTokenBatchRequest = {
74
- ancestorIpId: Address;
75
- royaltyClaimDetails: RoyaltyClaimDetail[];
76
- claimer?: Address;
77
- txOptions?: TxOptions;
78
- };
79
- export type TransferToVaultAndSnapshotAndClaimByTokenBatchResponse = {
80
- txHash?: string;
81
- encodedTxData?: EncodedTxData;
82
- snapshotId?: bigint;
83
- amountsClaimed?: bigint;
84
- };
85
- export type TransferToVaultAndSnapshotAndClaimBySnapshotBatchRequest = {
86
- ancestorIpId: Address;
87
- unclaimedSnapshotIds: bigint[] | number[] | string[];
88
- claimer?: Address;
89
- royaltyClaimDetails: RoyaltyClaimDetail[];
90
- txOptions?: TxOptions;
91
- };
92
- export type TransferToVaultAndSnapshotAndClaimBySnapshotBatchResponse = {
93
- txHash?: string;
94
- encodedTxData?: EncodedTxData;
95
- snapshotId?: bigint;
96
- amountsClaimed?: bigint;
97
- };
98
- export type SnapshotAndClaimByTokenBatchRequest = {
99
- royaltyVaultIpId: Address;
100
- currencyTokens: Address[];
101
- claimer?: Address;
102
- txOptions?: TxOptions;
103
- };
104
- export type SnapshotAndClaimByTokenBatchResponse = {
105
- txHash?: string;
106
- encodedTxData?: EncodedTxData;
107
- snapshotId?: bigint;
108
- amountsClaimed?: bigint;
109
- };
110
- export type SnapshotAndClaimBySnapshotBatchRequest = {
111
- royaltyVaultIpId: Address;
112
- unclaimedSnapshotIds: bigint[] | number[] | string[];
113
- currencyTokens: Address[];
114
- claimer?: Address;
115
- txOptions?: TxOptions;
116
- };
117
- export type SnapshotAndClaimBySnapshotBatchResponse = {
118
- txHash?: string;
119
- encodedTxData?: EncodedTxData;
120
- snapshotId?: bigint;
121
- amountsClaimed?: bigint;
122
- };
123
- /**
124
- * Claims all revenue from the child IPs of an ancestor IP, then transfer
125
- * all claimed tokens to the wallet if the wallet owns the IP or is the claimer.
126
- * If claimed token is WIP, it will also be converted back to IP.
127
- */
128
- export type ClaimAllRevenueRequest = {
27
+ export type ClaimAllRevenueRequest = WithClaimOptions & {
129
28
  /** The address of the ancestor IP from which the revenue is being claimed. */
130
29
  ancestorIpId: Address;
131
30
  /**
@@ -144,6 +43,8 @@ export type ClaimAllRevenueRequest = {
144
43
  royaltyPolicies: Address[];
145
44
  /** The addresses of the currency tokens in which royalties will be claimed */
146
45
  currencyTokens: Address[];
46
+ };
47
+ export type WithClaimOptions = {
147
48
  claimOptions?: {
148
49
  /**
149
50
  * When enabled, all claimed tokens on the claimer are transferred to the
@@ -165,19 +66,39 @@ export type ClaimAllRevenueRequest = {
165
66
  autoUnwrapIpTokens?: boolean;
166
67
  };
167
68
  };
168
- export type ClaimedToken = {
169
- token: Address;
170
- amount: bigint;
69
+ export type BatchClaimAllRevenueRequest = WithClaimOptions & {
70
+ /** The ancestor IPs from which the revenue is being claimed. */
71
+ ancestorIps: (Omit<ClaimAllRevenueRequest, "ancestorIpId" | "claimOptions"> & {
72
+ /** The address of the ancestor IP from which the revenue is being claimed. */
73
+ ipId: Address;
74
+ })[];
75
+ options?: {
76
+ /**
77
+ * Use multicall to batch the calls `claimAllRevenue` into one transaction when possible.
78
+ *
79
+ * If only 1 ancestorIp is provided, multicall will not be used.
80
+ * @default true
81
+ */
82
+ useMulticallWhenPossible?: boolean;
83
+ };
84
+ };
85
+ export type BatchClaimAllRevenueResponse = {
86
+ txHashes: Hash[];
87
+ receipts: TransactionReceipt[];
88
+ claimedTokens?: IpRoyaltyVaultImplRevenueTokenClaimedEvent[];
171
89
  };
172
90
  export type ClaimAllRevenueResponse = {
173
91
  txHashes: Hash[];
174
- receipt?: TransactionReceipt;
175
- claimedTokens?: ClaimedToken[];
92
+ receipt: TransactionReceipt;
93
+ /**
94
+ * Aggregate list of all tokens claimed across all transactions in the batch.
95
+ * Events are aggregated by unique combinations of claimer and token addresses,
96
+ * summing up the amounts for the same claimer-token pairs.
97
+ */
98
+ claimedTokens?: IpRoyaltyVaultImplRevenueTokenClaimedEvent[];
176
99
  };
177
100
  export type TransferClaimedTokensFromIpToWalletParams = {
178
101
  ipAccount: IpAccountImplClient;
179
- skipUnwrapIp: boolean;
180
- claimedTokens: ClaimedToken[];
102
+ claimedTokens: IpRoyaltyVaultImplRevenueTokenClaimedEvent[];
181
103
  };
182
- export {};
183
104
  //# sourceMappingURL=royalty.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"royalty.d.ts","sourceRoot":"../../../../../src/types/resources","sources":["royalty.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,kBAAkB,EAAE,MAAM,MAAM,CAAC;AAEzD,OAAO,EAAE,SAAS,EAAE,aAAa,EAAE,sBAAmB;AACtD,OAAO,EAAE,aAAa,EAAE,mBAAmB,EAAE,+BAA4B;AACzE,OAAO,EAAE,cAAc,EAAE,wBAAqB;AAC9C,OAAO,EAAE,gBAAgB,EAAE,qBAAkB;AAE7C,MAAM,MAAM,wBAAwB,GAAG;IACrC,IAAI,EAAE,aAAa,CAAC;CACrB,CAAC;AAEF,MAAM,MAAM,aAAa,GAAG;IAC1B,EAAE,EAAE,OAAO,CAAC;IACZ,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,E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C;IACjB,OAAO,EAAE,kBAAkB,CAAC;IAC5B;;;;OAIG;IACH,aAAa,CAAC,EAAE,0CAA0C,EAAE,CAAC;CAC9D,CAAC;AAEF,MAAM,MAAM,yCAAyC,GAAG;IACtD,SAAS,EAAE,mBAAmB,CAAC;IAC/B,aAAa,EAAE,0CAA0C,EAAE,CAAC;CAC7D,CAAC"}
@@ -13,4 +13,11 @@ export type DepositRequest = WithTxOptions & {
13
13
  export type WithdrawRequest = WithTxOptions & {
14
14
  amount: TokenAmountInput;
15
15
  };
16
+ export type TransferRequest = WithTxOptions & {
17
+ to: Address;
18
+ amount: TokenAmountInput;
19
+ };
20
+ export type TransferFromRequest = TransferRequest & {
21
+ from: Address;
22
+ };
16
23
  //# sourceMappingURL=wip.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"wip.d.ts","sourceRoot":"../../../../../src/types/resources","sources":["wip.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,MAAM,CAAC;AAE/B,OAAO,EAAE,gBAAgB,EAAE,qBAAkB;AAC7C,OAAO,EAAE,aAAa,EAAE,sBAAmB;AAE3C,MAAM,MAAM,cAAc,GAAG,aAAa,GAAG;IAC3C,+CAA+C;IAC/C,OAAO,EAAE,OAAO,CAAC;IACjB,4CAA4C;IAC5C,MAAM,EAAE,gBAAgB,CAAC;CAC1B,CAAC;AAEF,MAAM,MAAM,cAAc,GAAG,aAAa,GAAG;IAC3C,MAAM,EAAE,gBAAgB,CAAC;CAC1B,CAAC;AAEF,MAAM,MAAM,eAAe,GAAG,aAAa,GAAG;IAC5C,MAAM,EAAE,gBAAgB,CAAC;CAC1B,CAAC"}
1
+ {"version":3,"file":"wip.d.ts","sourceRoot":"../../../../../src/types/resources","sources":["wip.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,MAAM,CAAC;AAE/B,OAAO,EAAE,gBAAgB,EAAE,qBAAkB;AAC7C,OAAO,EAAE,aAAa,EAAE,sBAAmB;AAE3C,MAAM,MAAM,cAAc,GAAG,aAAa,GAAG;IAC3C,+CAA+C;IAC/C,OAAO,EAAE,OAAO,CAAC;IACjB,4CAA4C;IAC5C,MAAM,EAAE,gBAAgB,CAAC;CAC1B,CAAC;AAEF,MAAM,MAAM,cAAc,GAAG,aAAa,GAAG;IAC3C,MAAM,EAAE,gBAAgB,CAAC;CAC1B,CAAC;AAEF,MAAM,MAAM,eAAe,GAAG,aAAa,GAAG;IAC5C,MAAM,EAAE,gBAAgB,CAAC;CAC1B,CAAC;AAEF,MAAM,MAAM,eAAe,GAAG,aAAa,GAAG;IAC5C,EAAE,EAAE,OAAO,CAAC;IACZ,MAAM,EAAE,gBAAgB,CAAC;CAC1B,CAAC;AAEF,MAAM,MAAM,mBAAmB,GAAG,eAAe,GAAG;IAClD,IAAI,EAAE,OAAO,CAAC;CACf,CAAC"}
@@ -8,7 +8,7 @@ export declare const aeneid: {
8
8
  contracts: {
9
9
  readonly multicall3: {
10
10
  readonly address: "0xca11bde05977b3631167028862be2a173976ca11";
11
- readonly blockCreated: 5882;
11
+ readonly blockCreated: 1792;
12
12
  };
13
13
  };
14
14
  id: 1315;
@@ -30,4 +30,36 @@ export declare const aeneid: {
30
30
  serializers?: import("viem").ChainSerializers<undefined> | undefined;
31
31
  fees?: import("viem").ChainFees<undefined> | undefined;
32
32
  };
33
+ export declare const mainnet: {
34
+ blockExplorers: {
35
+ readonly default: {
36
+ readonly name: "Explorer";
37
+ readonly url: "https://dev-mainnet.storyscan.xyz/";
38
+ };
39
+ };
40
+ contracts: {
41
+ readonly multicall3: {
42
+ readonly address: "0xca11bde05977b3631167028862be2a173976ca11";
43
+ readonly blockCreated: 340998;
44
+ };
45
+ };
46
+ id: 1514;
47
+ name: "mainnet";
48
+ nativeCurrency: {
49
+ readonly name: "IP";
50
+ readonly symbol: "IP";
51
+ readonly decimals: 18;
52
+ };
53
+ rpcUrls: {
54
+ readonly default: {
55
+ readonly http: readonly ["https://mainnet.storyrpc.io/"];
56
+ };
57
+ };
58
+ sourceId?: number | undefined;
59
+ testnet: false;
60
+ custom?: Record<string, unknown> | undefined;
61
+ formatters?: undefined;
62
+ serializers?: import("viem").ChainSerializers<undefined> | undefined;
63
+ fees?: import("viem").ChainFees<undefined> | undefined;
64
+ };
33
65
  //# sourceMappingURL=chain.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"chain.d.ts","sourceRoot":"../../../../src/utils","sources":["chain.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAsBjB,CAAC"}
1
+ {"version":3,"file":"chain.d.ts","sourceRoot":"../../../../src/utils","sources":["chain.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAsBjB,CAAC;AAEH,eAAO,MAAM,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAsBlB,CAAC"}
@@ -1,8 +1,12 @@
1
1
  import { Hex } from "viem";
2
2
  export type IpMetadataForWorkflow = {
3
+ /** The URI of the metadata for the IP. */
3
4
  ipMetadataURI: string;
5
+ /** The hash of the metadata for the IP. */
4
6
  ipMetadataHash: Hex;
7
+ /** The URI of the metadata for the NFT. */
5
8
  nftMetadataURI: string;
9
+ /** The hash of the metadata for the IP NFT. */
6
10
  nftMetadataHash: Hex;
7
11
  };
8
12
  export declare const getIpMetadataForWorkflow: (metadata?: Partial<IpMetadataForWorkflow>) => IpMetadataForWorkflow;
@@ -1 +1 @@
1
- {"version":3,"file":"getIpMetadataForWorkflow.d.ts","sourceRoot":"../../../../src/utils","sources":["getIpMetadataForWorkflow.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAY,MAAM,MAAM,CAAC;AAErC,MAAM,MAAM,qBAAqB,GAAG;IAClC,aAAa,EAAE,MAAM,CAAC;IACtB,cAAc,EAAE,GAAG,CAAC;IACpB,cAAc,EAAE,MAAM,CAAC;IACvB,eAAe,EAAE,GAAG,CAAC;CACtB,CAAC;AAEF,eAAO,MAAM,wBAAwB,cACxB,QAAQ,qBAAqB,CAAC,KACxC,qBAOF,CAAC"}
1
+ {"version":3,"file":"getIpMetadataForWorkflow.d.ts","sourceRoot":"../../../../src/utils","sources":["getIpMetadataForWorkflow.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAY,MAAM,MAAM,CAAC;AAErC,MAAM,MAAM,qBAAqB,GAAG;IAClC,0CAA0C;IAC1C,aAAa,EAAE,MAAM,CAAC;IACtB,2CAA2C;IAC3C,cAAc,EAAE,GAAG,CAAC;IACpB,2CAA2C;IAC3C,cAAc,EAAE,MAAM,CAAC;IACvB,+CAA+C;IAC/C,eAAe,EAAE,GAAG,CAAC;CACtB,CAAC;AAEF,eAAO,MAAM,wBAAwB,cACxB,QAAQ,qBAAqB,CAAC,KACxC,qBAOF,CAAC"}