@story-protocol/core-sdk 0.0.1-beta-rc.3 → 0.0.1-beta-rc.5
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/declarations/src/client.d.ts +28 -13
- package/dist/declarations/src/client.d.ts.map +1 -1
- package/dist/declarations/src/clients/storyAPI.d.ts +11 -0
- package/dist/declarations/src/clients/storyAPI.d.ts.map +1 -0
- package/dist/declarations/src/index.d.ts +2 -4
- package/dist/declarations/src/index.d.ts.map +1 -1
- package/dist/declarations/src/resources/dispute.d.ts.map +1 -1
- package/dist/declarations/src/resources/ipAccount.d.ts +752 -0
- package/dist/declarations/src/resources/ipAccount.d.ts.map +1 -0
- package/dist/declarations/src/resources/ipAsset.d.ts +674 -4
- package/dist/declarations/src/resources/ipAsset.d.ts.map +1 -1
- package/dist/declarations/src/resources/license.d.ts +736 -66
- package/dist/declarations/src/resources/license.d.ts.map +1 -1
- package/dist/declarations/src/resources/permission.d.ts +58 -58
- package/dist/declarations/src/resources/policy.d.ts +1416 -66
- package/dist/declarations/src/resources/policy.d.ts.map +1 -1
- package/dist/declarations/src/types/resources/ipAccount.d.ts +25 -0
- package/dist/declarations/src/types/resources/ipAccount.d.ts.map +1 -0
- package/dist/declarations/src/types/resources/ipAsset.d.ts +1 -1
- package/dist/declarations/src/types/resources/ipAsset.d.ts.map +1 -1
- package/dist/declarations/src/types/resources/license.d.ts +8 -1
- package/dist/declarations/src/types/resources/license.d.ts.map +1 -1
- package/dist/declarations/src/types/resources/permission.d.ts +2 -2
- package/dist/declarations/src/types/resources/policy.d.ts +11 -1
- package/dist/declarations/src/types/resources/policy.d.ts.map +1 -1
- package/dist/declarations/src/types/resources/royalty.d.ts +17 -0
- package/dist/declarations/src/types/resources/royalty.d.ts.map +1 -0
- package/dist/story-protocol-core-sdk.cjs.dev.js +412 -299
- package/dist/story-protocol-core-sdk.cjs.prod.js +412 -299
- package/dist/story-protocol-core-sdk.esm.js +413 -298
- package/package.json +5 -5
- package/dist/declarations/src/resources/tagging.d.ts +0 -718
- package/dist/declarations/src/resources/tagging.d.ts.map +0 -1
- package/dist/declarations/src/types/resources/tagging.d.ts +0 -23
- package/dist/declarations/src/types/resources/tagging.d.ts.map +0 -1
- package/dist/declarations/src/utils/platform.d.ts +0 -17
- package/dist/declarations/src/utils/platform.d.ts.map +0 -1
@@ -1,8 +1,10 @@
|
|
1
1
|
import { PublicClient, WalletClient } from "viem";
|
2
|
+
import { StoryAPIClient } from "../clients/storyAPI.js";
|
2
3
|
import { RegisterDerivativeIpRequest, RegisterDerivativeIpResponse, RegisterRootIpRequest, RegisterRootIpResponse } from "../types/resources/ipAsset.js";
|
3
4
|
export declare class IPAssetClient {
|
4
5
|
private readonly wallet;
|
5
6
|
private readonly rpcClient;
|
7
|
+
private readonly storyClient;
|
6
8
|
ipAssetRegistryConfig: {
|
7
9
|
abi: readonly [{
|
8
10
|
readonly anonymous: false;
|
@@ -48,7 +50,7 @@ export declare class IPAssetClient {
|
|
48
50
|
address: `0x${string}`;
|
49
51
|
};
|
50
52
|
registrationModuleConfig: {
|
51
|
-
abi:
|
53
|
+
abi: ({
|
52
54
|
readonly inputs: readonly [{
|
53
55
|
readonly internalType: "uint256[]";
|
54
56
|
readonly name: "licenseIds";
|
@@ -82,7 +84,7 @@ export declare class IPAssetClient {
|
|
82
84
|
readonly outputs: readonly [];
|
83
85
|
readonly stateMutability: "nonpayable";
|
84
86
|
readonly type: "function";
|
85
|
-
}
|
87
|
+
} | {
|
86
88
|
readonly inputs: readonly [{
|
87
89
|
readonly internalType: "uint256";
|
88
90
|
readonly name: "policyId";
|
@@ -116,10 +118,678 @@ export declare class IPAssetClient {
|
|
116
118
|
}];
|
117
119
|
readonly stateMutability: "nonpayable";
|
118
120
|
readonly type: "function";
|
119
|
-
}
|
121
|
+
} | {
|
122
|
+
readonly inputs: readonly [{
|
123
|
+
readonly internalType: "address";
|
124
|
+
readonly name: "caller";
|
125
|
+
readonly type: "address";
|
126
|
+
}];
|
127
|
+
readonly name: "AccessControlled__CallerIsNotIpAccount";
|
128
|
+
readonly type: "error";
|
129
|
+
} | {
|
130
|
+
readonly inputs: readonly [{
|
131
|
+
readonly internalType: "address";
|
132
|
+
readonly name: "ipAccount";
|
133
|
+
readonly type: "address";
|
134
|
+
}];
|
135
|
+
readonly name: "AccessControlled__NotIpAccount";
|
136
|
+
readonly type: "error";
|
137
|
+
} | {
|
138
|
+
readonly inputs: readonly [];
|
139
|
+
readonly name: "AccessControlled__ZeroAddress";
|
140
|
+
readonly type: "error";
|
141
|
+
} | {
|
142
|
+
readonly inputs: readonly [];
|
143
|
+
readonly name: "AccessController__CallerIsNotIPAccount";
|
144
|
+
readonly type: "error";
|
145
|
+
} | {
|
146
|
+
readonly inputs: readonly [{
|
147
|
+
readonly internalType: "address";
|
148
|
+
readonly name: "ipAccount";
|
149
|
+
readonly type: "address";
|
150
|
+
}];
|
151
|
+
readonly name: "AccessController__IPAccountIsNotValid";
|
152
|
+
readonly type: "error";
|
153
|
+
} | {
|
154
|
+
readonly inputs: readonly [];
|
155
|
+
readonly name: "AccessController__IPAccountIsZeroAddress";
|
156
|
+
readonly type: "error";
|
157
|
+
} | {
|
158
|
+
readonly inputs: readonly [{
|
159
|
+
readonly internalType: "address";
|
160
|
+
readonly name: "ipAccount";
|
161
|
+
readonly type: "address";
|
162
|
+
}, {
|
163
|
+
readonly internalType: "address";
|
164
|
+
readonly name: "signer";
|
165
|
+
readonly type: "address";
|
166
|
+
}, {
|
167
|
+
readonly internalType: "address";
|
168
|
+
readonly name: "to";
|
169
|
+
readonly type: "address";
|
170
|
+
}, {
|
171
|
+
readonly internalType: "bytes4";
|
172
|
+
readonly name: "func";
|
173
|
+
readonly type: "bytes4";
|
174
|
+
}];
|
175
|
+
readonly name: "AccessController__PermissionDenied";
|
176
|
+
readonly type: "error";
|
177
|
+
} | {
|
178
|
+
readonly inputs: readonly [];
|
179
|
+
readonly name: "AccessController__PermissionIsNotValid";
|
180
|
+
readonly type: "error";
|
181
|
+
} | {
|
182
|
+
readonly inputs: readonly [{
|
183
|
+
readonly internalType: "address";
|
184
|
+
readonly name: "to";
|
185
|
+
readonly type: "address";
|
186
|
+
}];
|
187
|
+
readonly name: "AccessController__RecipientIsNotRegisteredModule";
|
188
|
+
readonly type: "error";
|
189
|
+
} | {
|
190
|
+
readonly inputs: readonly [];
|
191
|
+
readonly name: "AccessController__SignerIsZeroAddress";
|
192
|
+
readonly type: "error";
|
193
|
+
} | {
|
194
|
+
readonly inputs: readonly [];
|
195
|
+
readonly name: "AncestorsVaultLAP__AlreadyClaimed";
|
196
|
+
readonly type: "error";
|
197
|
+
} | {
|
198
|
+
readonly inputs: readonly [];
|
199
|
+
readonly name: "AncestorsVaultLAP__ClaimerNotAnAncestor";
|
200
|
+
readonly type: "error";
|
201
|
+
} | {
|
202
|
+
readonly inputs: readonly [];
|
203
|
+
readonly name: "AncestorsVaultLAP__ERC20BalanceNotZero";
|
204
|
+
readonly type: "error";
|
205
|
+
} | {
|
206
|
+
readonly inputs: readonly [];
|
207
|
+
readonly name: "AncestorsVaultLAP__ETHBalanceNotZero";
|
208
|
+
readonly type: "error";
|
209
|
+
} | {
|
210
|
+
readonly inputs: readonly [];
|
211
|
+
readonly name: "AncestorsVaultLAP__InvalidAncestorsHash";
|
212
|
+
readonly type: "error";
|
213
|
+
} | {
|
214
|
+
readonly inputs: readonly [];
|
215
|
+
readonly name: "AncestorsVaultLAP__InvalidClaimer";
|
216
|
+
readonly type: "error";
|
217
|
+
} | {
|
218
|
+
readonly inputs: readonly [];
|
219
|
+
readonly name: "AncestorsVaultLAP__TransferFailed";
|
220
|
+
readonly type: "error";
|
221
|
+
} | {
|
222
|
+
readonly inputs: readonly [];
|
223
|
+
readonly name: "AncestorsVaultLAP__ZeroRoyaltyPolicyLAP";
|
224
|
+
readonly type: "error";
|
225
|
+
} | {
|
226
|
+
readonly inputs: readonly [];
|
227
|
+
readonly name: "ArbitrationPolicySP__NotDisputeModule";
|
228
|
+
readonly type: "error";
|
229
|
+
} | {
|
230
|
+
readonly inputs: readonly [];
|
231
|
+
readonly name: "ArbitrationPolicySP__ZeroDisputeModule";
|
232
|
+
readonly type: "error";
|
233
|
+
} | {
|
234
|
+
readonly inputs: readonly [];
|
235
|
+
readonly name: "ArbitrationPolicySP__ZeroPaymentToken";
|
236
|
+
readonly type: "error";
|
237
|
+
} | {
|
238
|
+
readonly inputs: readonly [];
|
239
|
+
readonly name: "DisputeModule__NotAbleToResolve";
|
240
|
+
readonly type: "error";
|
241
|
+
} | {
|
242
|
+
readonly inputs: readonly [];
|
243
|
+
readonly name: "DisputeModule__NotDisputeInitiator";
|
244
|
+
readonly type: "error";
|
245
|
+
} | {
|
246
|
+
readonly inputs: readonly [];
|
247
|
+
readonly name: "DisputeModule__NotInDisputeState";
|
248
|
+
readonly type: "error";
|
249
|
+
} | {
|
250
|
+
readonly inputs: readonly [];
|
251
|
+
readonly name: "DisputeModule__NotRegisteredIpId";
|
252
|
+
readonly type: "error";
|
253
|
+
} | {
|
254
|
+
readonly inputs: readonly [];
|
255
|
+
readonly name: "DisputeModule__NotWhitelistedArbitrationPolicy";
|
256
|
+
readonly type: "error";
|
257
|
+
} | {
|
258
|
+
readonly inputs: readonly [];
|
259
|
+
readonly name: "DisputeModule__NotWhitelistedArbitrationRelayer";
|
260
|
+
readonly type: "error";
|
261
|
+
} | {
|
262
|
+
readonly inputs: readonly [];
|
263
|
+
readonly name: "DisputeModule__NotWhitelistedDisputeTag";
|
264
|
+
readonly type: "error";
|
265
|
+
} | {
|
266
|
+
readonly inputs: readonly [];
|
267
|
+
readonly name: "DisputeModule__UnauthorizedAccess";
|
268
|
+
readonly type: "error";
|
269
|
+
} | {
|
270
|
+
readonly inputs: readonly [];
|
271
|
+
readonly name: "DisputeModule__ZeroArbitrationPolicy";
|
272
|
+
readonly type: "error";
|
273
|
+
} | {
|
274
|
+
readonly inputs: readonly [];
|
275
|
+
readonly name: "DisputeModule__ZeroArbitrationRelayer";
|
276
|
+
readonly type: "error";
|
277
|
+
} | {
|
278
|
+
readonly inputs: readonly [];
|
279
|
+
readonly name: "DisputeModule__ZeroDisputeTag";
|
280
|
+
readonly type: "error";
|
281
|
+
} | {
|
282
|
+
readonly inputs: readonly [];
|
283
|
+
readonly name: "DisputeModule__ZeroLinkToDisputeEvidence";
|
284
|
+
readonly type: "error";
|
285
|
+
} | {
|
286
|
+
readonly inputs: readonly [];
|
287
|
+
readonly name: "Governance__InconsistentState";
|
288
|
+
readonly type: "error";
|
289
|
+
} | {
|
290
|
+
readonly inputs: readonly [];
|
291
|
+
readonly name: "Governance__NewStateIsTheSameWithOldState";
|
292
|
+
readonly type: "error";
|
293
|
+
} | {
|
294
|
+
readonly inputs: readonly [];
|
295
|
+
readonly name: "Governance__OnlyProtocolAdmin";
|
296
|
+
readonly type: "error";
|
297
|
+
} | {
|
298
|
+
readonly inputs: readonly [];
|
299
|
+
readonly name: "Governance__ProtocolPaused";
|
300
|
+
readonly type: "error";
|
301
|
+
} | {
|
302
|
+
readonly inputs: readonly [{
|
303
|
+
readonly internalType: "string";
|
304
|
+
readonly name: "interfaceName";
|
305
|
+
readonly type: "string";
|
306
|
+
}];
|
307
|
+
readonly name: "Governance__UnsupportedInterface";
|
308
|
+
readonly type: "error";
|
309
|
+
} | {
|
310
|
+
readonly inputs: readonly [];
|
311
|
+
readonly name: "Governance__ZeroAddress";
|
312
|
+
readonly type: "error";
|
313
|
+
} | {
|
314
|
+
readonly inputs: readonly [];
|
315
|
+
readonly name: "IPAccountRegistry_InvalidIpAccountImpl";
|
316
|
+
readonly type: "error";
|
317
|
+
} | {
|
318
|
+
readonly inputs: readonly [];
|
319
|
+
readonly name: "IPAccount__ExpiredSignature";
|
320
|
+
readonly type: "error";
|
321
|
+
} | {
|
322
|
+
readonly inputs: readonly [];
|
323
|
+
readonly name: "IPAccount__InvalidAccessController";
|
324
|
+
readonly type: "error";
|
325
|
+
} | {
|
326
|
+
readonly inputs: readonly [];
|
327
|
+
readonly name: "IPAccount__InvalidCalldata";
|
328
|
+
readonly type: "error";
|
329
|
+
} | {
|
330
|
+
readonly inputs: readonly [];
|
331
|
+
readonly name: "IPAccount__InvalidSignature";
|
332
|
+
readonly type: "error";
|
333
|
+
} | {
|
334
|
+
readonly inputs: readonly [];
|
335
|
+
readonly name: "IPAccount__InvalidSigner";
|
336
|
+
readonly type: "error";
|
337
|
+
} | {
|
338
|
+
readonly inputs: readonly [];
|
339
|
+
readonly name: "IPAssetRegistry__AlreadyRegistered";
|
340
|
+
readonly type: "error";
|
341
|
+
} | {
|
342
|
+
readonly inputs: readonly [];
|
343
|
+
readonly name: "IPAssetRegistry__IPAccountAlreadyCreated";
|
344
|
+
readonly type: "error";
|
345
|
+
} | {
|
346
|
+
readonly inputs: readonly [];
|
347
|
+
readonly name: "IPAssetRegistry__InvalidAccount";
|
348
|
+
readonly type: "error";
|
349
|
+
} | {
|
350
|
+
readonly inputs: readonly [];
|
351
|
+
readonly name: "IPAssetRegistry__InvalidMetadataProvider";
|
352
|
+
readonly type: "error";
|
353
|
+
} | {
|
354
|
+
readonly inputs: readonly [];
|
355
|
+
readonly name: "IPAssetRegistry__NotYetRegistered";
|
356
|
+
readonly type: "error";
|
357
|
+
} | {
|
358
|
+
readonly inputs: readonly [];
|
359
|
+
readonly name: "IPAssetRegistry__RegistrantUnauthorized";
|
360
|
+
readonly type: "error";
|
361
|
+
} | {
|
362
|
+
readonly inputs: readonly [];
|
363
|
+
readonly name: "IPAssetRegistry__ResolverInvalid";
|
364
|
+
readonly type: "error";
|
365
|
+
} | {
|
366
|
+
readonly inputs: readonly [];
|
367
|
+
readonly name: "IPAssetRegistry__Unauthorized";
|
368
|
+
readonly type: "error";
|
369
|
+
} | {
|
370
|
+
readonly inputs: readonly [];
|
371
|
+
readonly name: "IPResolver_InvalidIP";
|
372
|
+
readonly type: "error";
|
373
|
+
} | {
|
374
|
+
readonly inputs: readonly [];
|
375
|
+
readonly name: "IPResolver_Unauthorized";
|
376
|
+
readonly type: "error";
|
377
|
+
} | {
|
378
|
+
readonly inputs: readonly [];
|
379
|
+
readonly name: "LicenseRegistry__CallerNotLicensingModule";
|
380
|
+
readonly type: "error";
|
381
|
+
} | {
|
382
|
+
readonly inputs: readonly [];
|
383
|
+
readonly name: "LicenseRegistry__NotTransferable";
|
384
|
+
readonly type: "error";
|
385
|
+
} | {
|
386
|
+
readonly inputs: readonly [];
|
387
|
+
readonly name: "LicenseRegistry__RevokedLicense";
|
388
|
+
readonly type: "error";
|
389
|
+
} | {
|
390
|
+
readonly inputs: readonly [];
|
391
|
+
readonly name: "LicenseRegistry__ZeroDisputeModule";
|
392
|
+
readonly type: "error";
|
393
|
+
} | {
|
394
|
+
readonly inputs: readonly [];
|
395
|
+
readonly name: "LicenseRegistry__ZeroLicensingModule";
|
396
|
+
readonly type: "error";
|
397
|
+
} | {
|
398
|
+
readonly inputs: readonly [];
|
399
|
+
readonly name: "LicensingModuleAware__CallerNotLicensingModule";
|
400
|
+
readonly type: "error";
|
401
|
+
} | {
|
402
|
+
readonly inputs: readonly [];
|
403
|
+
readonly name: "LicensingModule__CallerNotLicenseRegistry";
|
404
|
+
readonly type: "error";
|
405
|
+
} | {
|
406
|
+
readonly inputs: readonly [];
|
407
|
+
readonly name: "LicensingModule__CallerNotLicensorAndPolicyNotSet";
|
408
|
+
readonly type: "error";
|
409
|
+
} | {
|
410
|
+
readonly inputs: readonly [];
|
411
|
+
readonly name: "LicensingModule__CommercialTermInNonCommercialPolicy";
|
412
|
+
readonly type: "error";
|
413
|
+
} | {
|
414
|
+
readonly inputs: readonly [];
|
415
|
+
readonly name: "LicensingModule__DerivativeRevShareSumExceedsMaxRNFTSupply";
|
416
|
+
readonly type: "error";
|
417
|
+
} | {
|
418
|
+
readonly inputs: readonly [];
|
419
|
+
readonly name: "LicensingModule__DerivativesCannotAddPolicy";
|
420
|
+
readonly type: "error";
|
421
|
+
} | {
|
422
|
+
readonly inputs: readonly [];
|
423
|
+
readonly name: "LicensingModule__DisputedIpId";
|
424
|
+
readonly type: "error";
|
425
|
+
} | {
|
426
|
+
readonly inputs: readonly [];
|
427
|
+
readonly name: "LicensingModule__EmptyLicenseUrl";
|
428
|
+
readonly type: "error";
|
429
|
+
} | {
|
430
|
+
readonly inputs: readonly [];
|
431
|
+
readonly name: "LicensingModule__EmptyParamName";
|
432
|
+
readonly type: "error";
|
433
|
+
} | {
|
434
|
+
readonly inputs: readonly [];
|
435
|
+
readonly name: "LicensingModule__FrameworkNotFound";
|
436
|
+
readonly type: "error";
|
437
|
+
} | {
|
438
|
+
readonly inputs: readonly [];
|
439
|
+
readonly name: "LicensingModule__IncompatibleLicensorCommercialPolicy";
|
440
|
+
readonly type: "error";
|
441
|
+
} | {
|
442
|
+
readonly inputs: readonly [];
|
443
|
+
readonly name: "LicensingModule__IncompatibleLicensorRoyaltyDerivativeRevShare";
|
444
|
+
readonly type: "error";
|
445
|
+
} | {
|
446
|
+
readonly inputs: readonly [];
|
447
|
+
readonly name: "LicensingModule__IncompatibleRoyaltyPolicyAddress";
|
448
|
+
readonly type: "error";
|
449
|
+
} | {
|
450
|
+
readonly inputs: readonly [];
|
451
|
+
readonly name: "LicensingModule__IncompatibleRoyaltyPolicyDerivativeRevShare";
|
452
|
+
readonly type: "error";
|
453
|
+
} | {
|
454
|
+
readonly inputs: readonly [];
|
455
|
+
readonly name: "LicensingModule__InvalidLicensor";
|
456
|
+
readonly type: "error";
|
457
|
+
} | {
|
458
|
+
readonly inputs: readonly [];
|
459
|
+
readonly name: "LicensingModule__InvalidPolicyFramework";
|
460
|
+
readonly type: "error";
|
461
|
+
} | {
|
462
|
+
readonly inputs: readonly [];
|
463
|
+
readonly name: "LicensingModule__LicensorDoesntHaveThisPolicy";
|
464
|
+
readonly type: "error";
|
465
|
+
} | {
|
466
|
+
readonly inputs: readonly [];
|
467
|
+
readonly name: "LicensingModule__LicensorNotRegistered";
|
468
|
+
readonly type: "error";
|
469
|
+
} | {
|
470
|
+
readonly inputs: readonly [];
|
471
|
+
readonly name: "LicensingModule__LinkParentParamFailed";
|
472
|
+
readonly type: "error";
|
473
|
+
} | {
|
474
|
+
readonly inputs: readonly [];
|
475
|
+
readonly name: "LicensingModule__LinkingRevokedLicense";
|
476
|
+
readonly type: "error";
|
477
|
+
} | {
|
478
|
+
readonly inputs: readonly [];
|
479
|
+
readonly name: "LicensingModule__MintLicenseParamFailed";
|
480
|
+
readonly type: "error";
|
481
|
+
} | {
|
482
|
+
readonly inputs: readonly [];
|
483
|
+
readonly name: "LicensingModule__MintingFeeTokenNotWhitelisted";
|
484
|
+
readonly type: "error";
|
485
|
+
} | {
|
486
|
+
readonly inputs: readonly [];
|
487
|
+
readonly name: "LicensingModule__MismatchBetweenRoyaltyPolicy";
|
488
|
+
readonly type: "error";
|
489
|
+
} | {
|
490
|
+
readonly inputs: readonly [];
|
491
|
+
readonly name: "LicensingModule__NotLicensee";
|
492
|
+
readonly type: "error";
|
493
|
+
} | {
|
494
|
+
readonly inputs: readonly [];
|
495
|
+
readonly name: "LicensingModule__ParamVerifierAlreadySet";
|
496
|
+
readonly type: "error";
|
497
|
+
} | {
|
498
|
+
readonly inputs: readonly [];
|
499
|
+
readonly name: "LicensingModule__ParamVerifierLengthMismatch";
|
500
|
+
readonly type: "error";
|
501
|
+
} | {
|
502
|
+
readonly inputs: readonly [];
|
503
|
+
readonly name: "LicensingModule__ParentIdEqualThanChild";
|
504
|
+
readonly type: "error";
|
505
|
+
} | {
|
506
|
+
readonly inputs: readonly [];
|
507
|
+
readonly name: "LicensingModule__PolicyAlreadySetForIpId";
|
508
|
+
readonly type: "error";
|
509
|
+
} | {
|
510
|
+
readonly inputs: readonly [];
|
511
|
+
readonly name: "LicensingModule__PolicyNotFound";
|
512
|
+
readonly type: "error";
|
513
|
+
} | {
|
514
|
+
readonly inputs: readonly [];
|
515
|
+
readonly name: "LicensingModule__RegisterPolicyFrameworkMismatch";
|
516
|
+
readonly type: "error";
|
517
|
+
} | {
|
518
|
+
readonly inputs: readonly [];
|
519
|
+
readonly name: "LicensingModule__RoyaltyPolicyNotWhitelisted";
|
520
|
+
readonly type: "error";
|
521
|
+
} | {
|
522
|
+
readonly inputs: readonly [];
|
523
|
+
readonly name: "LicensingModule__TransferParamFailed";
|
524
|
+
readonly type: "error";
|
525
|
+
} | {
|
526
|
+
readonly inputs: readonly [];
|
527
|
+
readonly name: "LicensingModule__UnauthorizedAccess";
|
528
|
+
readonly type: "error";
|
529
|
+
} | {
|
530
|
+
readonly inputs: readonly [];
|
531
|
+
readonly name: "LicensingModule__UnregisteredFrameworkAddingPolicy";
|
532
|
+
readonly type: "error";
|
533
|
+
} | {
|
534
|
+
readonly inputs: readonly [];
|
535
|
+
readonly name: "LicensorApprovalChecker__Unauthorized";
|
536
|
+
readonly type: "error";
|
537
|
+
} | {
|
538
|
+
readonly inputs: readonly [];
|
539
|
+
readonly name: "MetadataProvider__HashInvalid";
|
540
|
+
readonly type: "error";
|
541
|
+
} | {
|
542
|
+
readonly inputs: readonly [];
|
543
|
+
readonly name: "MetadataProvider__IPAssetOwnerInvalid";
|
544
|
+
readonly type: "error";
|
545
|
+
} | {
|
546
|
+
readonly inputs: readonly [];
|
547
|
+
readonly name: "MetadataProvider__MetadataNotCompatible";
|
548
|
+
readonly type: "error";
|
549
|
+
} | {
|
550
|
+
readonly inputs: readonly [];
|
551
|
+
readonly name: "MetadataProvider__NameInvalid";
|
552
|
+
readonly type: "error";
|
553
|
+
} | {
|
554
|
+
readonly inputs: readonly [];
|
555
|
+
readonly name: "MetadataProvider__RegistrantInvalid";
|
556
|
+
readonly type: "error";
|
557
|
+
} | {
|
558
|
+
readonly inputs: readonly [];
|
559
|
+
readonly name: "MetadataProvider__RegistrationDateInvalid";
|
560
|
+
readonly type: "error";
|
561
|
+
} | {
|
562
|
+
readonly inputs: readonly [];
|
563
|
+
readonly name: "MetadataProvider__URIInvalid";
|
564
|
+
readonly type: "error";
|
565
|
+
} | {
|
566
|
+
readonly inputs: readonly [];
|
567
|
+
readonly name: "MetadataProvider__Unauthorized";
|
568
|
+
readonly type: "error";
|
569
|
+
} | {
|
570
|
+
readonly inputs: readonly [];
|
571
|
+
readonly name: "MetadataProvider__UpgradeProviderInvalid";
|
572
|
+
readonly type: "error";
|
573
|
+
} | {
|
574
|
+
readonly inputs: readonly [];
|
575
|
+
readonly name: "MetadataProvider__UpgradeUnavailable";
|
576
|
+
readonly type: "error";
|
577
|
+
} | {
|
578
|
+
readonly inputs: readonly [];
|
579
|
+
readonly name: "ModuleRegistry__InterfaceIdZero";
|
580
|
+
readonly type: "error";
|
581
|
+
} | {
|
582
|
+
readonly inputs: readonly [];
|
583
|
+
readonly name: "ModuleRegistry__ModuleAddressNotContract";
|
584
|
+
readonly type: "error";
|
585
|
+
} | {
|
586
|
+
readonly inputs: readonly [];
|
587
|
+
readonly name: "ModuleRegistry__ModuleAddressZeroAddress";
|
588
|
+
readonly type: "error";
|
589
|
+
} | {
|
590
|
+
readonly inputs: readonly [];
|
591
|
+
readonly name: "ModuleRegistry__ModuleAlreadyRegistered";
|
592
|
+
readonly type: "error";
|
593
|
+
} | {
|
594
|
+
readonly inputs: readonly [];
|
595
|
+
readonly name: "ModuleRegistry__ModuleNotRegistered";
|
596
|
+
readonly type: "error";
|
597
|
+
} | {
|
598
|
+
readonly inputs: readonly [];
|
599
|
+
readonly name: "ModuleRegistry__ModuleNotSupportExpectedModuleTypeInterfaceId";
|
600
|
+
readonly type: "error";
|
601
|
+
} | {
|
602
|
+
readonly inputs: readonly [];
|
603
|
+
readonly name: "ModuleRegistry__ModuleTypeAlreadyRegistered";
|
604
|
+
readonly type: "error";
|
605
|
+
} | {
|
606
|
+
readonly inputs: readonly [];
|
607
|
+
readonly name: "ModuleRegistry__ModuleTypeEmptyString";
|
608
|
+
readonly type: "error";
|
609
|
+
} | {
|
610
|
+
readonly inputs: readonly [];
|
611
|
+
readonly name: "ModuleRegistry__ModuleTypeNotRegistered";
|
612
|
+
readonly type: "error";
|
613
|
+
} | {
|
614
|
+
readonly inputs: readonly [];
|
615
|
+
readonly name: "ModuleRegistry__NameAlreadyRegistered";
|
616
|
+
readonly type: "error";
|
617
|
+
} | {
|
618
|
+
readonly inputs: readonly [];
|
619
|
+
readonly name: "ModuleRegistry__NameDoesNotMatch";
|
620
|
+
readonly type: "error";
|
621
|
+
} | {
|
622
|
+
readonly inputs: readonly [];
|
623
|
+
readonly name: "ModuleRegistry__NameEmptyString";
|
624
|
+
readonly type: "error";
|
625
|
+
} | {
|
626
|
+
readonly inputs: readonly [];
|
627
|
+
readonly name: "Module_Unauthorized";
|
628
|
+
readonly type: "error";
|
629
|
+
} | {
|
630
|
+
readonly inputs: readonly [{
|
631
|
+
readonly internalType: "address";
|
632
|
+
readonly name: "commercializer";
|
633
|
+
readonly type: "address";
|
634
|
+
}];
|
635
|
+
readonly name: "PolicyFrameworkManager__CommercializerCheckerDoesNotSupportHook";
|
636
|
+
readonly type: "error";
|
637
|
+
} | {
|
638
|
+
readonly inputs: readonly [];
|
639
|
+
readonly name: "PolicyFrameworkManager__GettingPolicyWrongFramework";
|
640
|
+
readonly type: "error";
|
641
|
+
} | {
|
642
|
+
readonly inputs: readonly [];
|
643
|
+
readonly name: "RegistrationModule__InvalidOwner";
|
644
|
+
readonly type: "error";
|
645
|
+
} | {
|
646
|
+
readonly inputs: readonly [];
|
647
|
+
readonly name: "RoyaltyModule__CanOnlyMintSelectedPolicy";
|
648
|
+
readonly type: "error";
|
649
|
+
} | {
|
650
|
+
readonly inputs: readonly [];
|
651
|
+
readonly name: "RoyaltyModule__IncompatibleRoyaltyPolicy";
|
652
|
+
readonly type: "error";
|
653
|
+
} | {
|
654
|
+
readonly inputs: readonly [];
|
655
|
+
readonly name: "RoyaltyModule__NoParentsOnLinking";
|
656
|
+
readonly type: "error";
|
657
|
+
} | {
|
658
|
+
readonly inputs: readonly [];
|
659
|
+
readonly name: "RoyaltyModule__NoRoyaltyPolicySet";
|
660
|
+
readonly type: "error";
|
661
|
+
} | {
|
662
|
+
readonly inputs: readonly [];
|
663
|
+
readonly name: "RoyaltyModule__NotAllowedCaller";
|
664
|
+
readonly type: "error";
|
665
|
+
} | {
|
666
|
+
readonly inputs: readonly [];
|
667
|
+
readonly name: "RoyaltyModule__NotRegisteredIpId";
|
668
|
+
readonly type: "error";
|
669
|
+
} | {
|
670
|
+
readonly inputs: readonly [];
|
671
|
+
readonly name: "RoyaltyModule__NotWhitelistedRoyaltyPolicy";
|
672
|
+
readonly type: "error";
|
673
|
+
} | {
|
674
|
+
readonly inputs: readonly [];
|
675
|
+
readonly name: "RoyaltyModule__NotWhitelistedRoyaltyToken";
|
676
|
+
readonly type: "error";
|
677
|
+
} | {
|
678
|
+
readonly inputs: readonly [];
|
679
|
+
readonly name: "RoyaltyModule__ZeroLicensingModule";
|
680
|
+
readonly type: "error";
|
681
|
+
} | {
|
682
|
+
readonly inputs: readonly [];
|
683
|
+
readonly name: "RoyaltyModule__ZeroRoyaltyPolicy";
|
684
|
+
readonly type: "error";
|
685
|
+
} | {
|
686
|
+
readonly inputs: readonly [];
|
687
|
+
readonly name: "RoyaltyModule__ZeroRoyaltyToken";
|
688
|
+
readonly type: "error";
|
689
|
+
} | {
|
690
|
+
readonly inputs: readonly [];
|
691
|
+
readonly name: "RoyaltyPolicyLAP__AboveAncestorsLimit";
|
692
|
+
readonly type: "error";
|
693
|
+
} | {
|
694
|
+
readonly inputs: readonly [];
|
695
|
+
readonly name: "RoyaltyPolicyLAP__AboveParentLimit";
|
696
|
+
readonly type: "error";
|
697
|
+
} | {
|
698
|
+
readonly inputs: readonly [];
|
699
|
+
readonly name: "RoyaltyPolicyLAP__AboveRoyaltyStackLimit";
|
700
|
+
readonly type: "error";
|
701
|
+
} | {
|
702
|
+
readonly inputs: readonly [];
|
703
|
+
readonly name: "RoyaltyPolicyLAP__ImplementationAlreadySet";
|
704
|
+
readonly type: "error";
|
705
|
+
} | {
|
706
|
+
readonly inputs: readonly [];
|
707
|
+
readonly name: "RoyaltyPolicyLAP__InvalidAncestors";
|
708
|
+
readonly type: "error";
|
709
|
+
} | {
|
710
|
+
readonly inputs: readonly [];
|
711
|
+
readonly name: "RoyaltyPolicyLAP__InvalidAncestorsHash";
|
712
|
+
readonly type: "error";
|
713
|
+
} | {
|
714
|
+
readonly inputs: readonly [];
|
715
|
+
readonly name: "RoyaltyPolicyLAP__InvalidAncestorsLength";
|
716
|
+
readonly type: "error";
|
717
|
+
} | {
|
718
|
+
readonly inputs: readonly [];
|
719
|
+
readonly name: "RoyaltyPolicyLAP__InvalidAncestorsRoyalty";
|
720
|
+
readonly type: "error";
|
721
|
+
} | {
|
722
|
+
readonly inputs: readonly [];
|
723
|
+
readonly name: "RoyaltyPolicyLAP__InvalidParentRoyaltiesLength";
|
724
|
+
readonly type: "error";
|
725
|
+
} | {
|
726
|
+
readonly inputs: readonly [];
|
727
|
+
readonly name: "RoyaltyPolicyLAP__InvalidRoyaltyAmountLength";
|
728
|
+
readonly type: "error";
|
729
|
+
} | {
|
730
|
+
readonly inputs: readonly [];
|
731
|
+
readonly name: "RoyaltyPolicyLAP__LastPositionNotAbleToMintLicense";
|
732
|
+
readonly type: "error";
|
733
|
+
} | {
|
734
|
+
readonly inputs: readonly [];
|
735
|
+
readonly name: "RoyaltyPolicyLAP__NotFullOwnership";
|
736
|
+
readonly type: "error";
|
737
|
+
} | {
|
738
|
+
readonly inputs: readonly [];
|
739
|
+
readonly name: "RoyaltyPolicyLAP__NotRoyaltyModule";
|
740
|
+
readonly type: "error";
|
741
|
+
} | {
|
742
|
+
readonly inputs: readonly [];
|
743
|
+
readonly name: "RoyaltyPolicyLAP__TransferFailed";
|
744
|
+
readonly type: "error";
|
745
|
+
} | {
|
746
|
+
readonly inputs: readonly [];
|
747
|
+
readonly name: "RoyaltyPolicyLAP__UnlinkableToParents";
|
748
|
+
readonly type: "error";
|
749
|
+
} | {
|
750
|
+
readonly inputs: readonly [];
|
751
|
+
readonly name: "RoyaltyPolicyLAP__ZeroAncestorsVaultImpl";
|
752
|
+
readonly type: "error";
|
753
|
+
} | {
|
754
|
+
readonly inputs: readonly [];
|
755
|
+
readonly name: "RoyaltyPolicyLAP__ZeroLicensingModule";
|
756
|
+
readonly type: "error";
|
757
|
+
} | {
|
758
|
+
readonly inputs: readonly [];
|
759
|
+
readonly name: "RoyaltyPolicyLAP__ZeroLiquidSplitFactory";
|
760
|
+
readonly type: "error";
|
761
|
+
} | {
|
762
|
+
readonly inputs: readonly [];
|
763
|
+
readonly name: "RoyaltyPolicyLAP__ZeroLiquidSplitMain";
|
764
|
+
readonly type: "error";
|
765
|
+
} | {
|
766
|
+
readonly inputs: readonly [];
|
767
|
+
readonly name: "RoyaltyPolicyLAP__ZeroRoyaltyModule";
|
768
|
+
readonly type: "error";
|
769
|
+
} | {
|
770
|
+
readonly inputs: readonly [];
|
771
|
+
readonly name: "TaggingModule__DstIpIdDoesNotHaveDstTag";
|
772
|
+
readonly type: "error";
|
773
|
+
} | {
|
774
|
+
readonly inputs: readonly [];
|
775
|
+
readonly name: "TaggingModule__InvalidRelationTypeName";
|
776
|
+
readonly type: "error";
|
777
|
+
} | {
|
778
|
+
readonly inputs: readonly [];
|
779
|
+
readonly name: "TaggingModule__RelationTypeAlreadyExists";
|
780
|
+
readonly type: "error";
|
781
|
+
} | {
|
782
|
+
readonly inputs: readonly [];
|
783
|
+
readonly name: "TaggingModule__RelationTypeDoesNotExist";
|
784
|
+
readonly type: "error";
|
785
|
+
} | {
|
786
|
+
readonly inputs: readonly [];
|
787
|
+
readonly name: "TaggingModule__SrcIpIdDoesNotHaveSrcTag";
|
788
|
+
readonly type: "error";
|
789
|
+
})[];
|
120
790
|
address: `0x${string}`;
|
121
791
|
};
|
122
|
-
constructor(rpcClient: PublicClient, wallet: WalletClient);
|
792
|
+
constructor(rpcClient: PublicClient, wallet: WalletClient, storyClient: StoryAPIClient);
|
123
793
|
/**
|
124
794
|
* Registers a root-level IP into the protocol. Root-level IPs can be thought of as organizational hubs
|
125
795
|
* for encapsulating policies that actual IPs can use to register through. As such, a root-level IP is not an
|