@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,5 +1,6 @@
|
|
1
1
|
import { PublicClient, WalletClient } from "viem";
|
2
2
|
import { CancelDisputeRequest, CancelDisputeResponse, RaiseDisputeRequest, RaiseDisputeResponse, ResolveDisputeRequest, ResolveDisputeResponse } from "../types/resources/dispute.js";
|
3
|
+
import { SupportedChainIds } from "../types/config.js";
|
3
4
|
export declare class DisputeClient {
|
4
5
|
private readonly wallet;
|
5
6
|
private readonly rpcClient;
|
@@ -25,7 +26,35 @@ export declare class DisputeClient {
|
|
25
26
|
readonly name: "AccessControlled__ZeroAddress";
|
26
27
|
readonly type: "error";
|
27
28
|
} | {
|
28
|
-
readonly inputs: readonly [
|
29
|
+
readonly inputs: readonly [{
|
30
|
+
readonly internalType: "address";
|
31
|
+
readonly name: "signer";
|
32
|
+
readonly type: "address";
|
33
|
+
}, {
|
34
|
+
readonly internalType: "address";
|
35
|
+
readonly name: "to";
|
36
|
+
readonly type: "address";
|
37
|
+
}];
|
38
|
+
readonly name: "AccessController__BothCallerAndRecipientAreNotRegisteredModule";
|
39
|
+
readonly type: "error";
|
40
|
+
} | {
|
41
|
+
readonly inputs: readonly [];
|
42
|
+
/**
|
43
|
+
* Raises a dispute on a given ipId
|
44
|
+
* @param request - The request object containing necessary data to raise a dispute.
|
45
|
+
* @param request.targetIpId - The IP ID that is the target of the dispute.
|
46
|
+
* @param request.arbitrationPolicy - The address of the arbitration policy.
|
47
|
+
* @param request.linkToDisputeEvidence - The link to the dispute evidence.
|
48
|
+
* @param request.targetTag - The target tag of the dispute.
|
49
|
+
* @param request.calldata - Optional calldata to initialize the policy.
|
50
|
+
* @param request.txOptions - Optional transaction options.
|
51
|
+
* @returns A Promise that resolves to a RaiseDisputeResponse containing the transaction hash.
|
52
|
+
* @throws `NotRegisteredIpId` if targetIpId is not registered in the IPA Registry.
|
53
|
+
* @throws `NotWhitelistedDisputeTag` if targetTag is not whitelisted.
|
54
|
+
* @throws `ZeroLinkToDisputeEvidence` if linkToDisputeEvidence is empty
|
55
|
+
* @calls raiseDispute(address _targetIpId, string memory _linkToDisputeEvidence, bytes32 _targetTag, bytes calldata _data) external nonReentrant returns (uint256) {
|
56
|
+
* @emits DisputeRaised (disputeId_, targetIpId, msg.sender, arbitrationPolicy, linkToDisputeEvidence, targetTag, calldata);
|
57
|
+
*/
|
29
58
|
readonly name: "AccessController__CallerIsNotIPAccount";
|
30
59
|
readonly type: "error";
|
31
60
|
} | {
|
@@ -64,61 +93,29 @@ export declare class DisputeClient {
|
|
64
93
|
readonly inputs: readonly [];
|
65
94
|
readonly name: "AccessController__PermissionIsNotValid";
|
66
95
|
readonly type: "error";
|
67
|
-
} | {
|
68
|
-
readonly inputs: readonly [{
|
69
|
-
readonly internalType: "address";
|
70
|
-
readonly name: "to";
|
71
|
-
readonly type: "address";
|
72
|
-
}];
|
73
|
-
readonly name: "AccessController__RecipientIsNotRegisteredModule";
|
74
|
-
readonly type: "error";
|
75
96
|
} | {
|
76
97
|
readonly inputs: readonly [];
|
77
98
|
readonly name: "AccessController__SignerIsZeroAddress";
|
78
99
|
readonly type: "error";
|
79
100
|
} | {
|
80
101
|
readonly inputs: readonly [];
|
81
|
-
readonly name: "
|
82
|
-
readonly type: "error";
|
83
|
-
} | {
|
84
|
-
readonly inputs: readonly [];
|
85
|
-
readonly name: "AncestorsVaultLAP__ClaimerNotAnAncestor";
|
86
|
-
readonly type: "error";
|
87
|
-
} | {
|
88
|
-
readonly inputs: readonly [];
|
89
|
-
readonly name: "AncestorsVaultLAP__ERC20BalanceNotZero";
|
90
|
-
readonly type: "error";
|
91
|
-
} | {
|
92
|
-
readonly inputs: readonly [];
|
93
|
-
readonly name: "AncestorsVaultLAP__ETHBalanceNotZero";
|
94
|
-
readonly type: "error";
|
95
|
-
} | {
|
96
|
-
readonly inputs: readonly [];
|
97
|
-
readonly name: "AncestorsVaultLAP__InvalidAncestorsHash";
|
98
|
-
readonly type: "error";
|
99
|
-
} | {
|
100
|
-
readonly inputs: readonly [];
|
101
|
-
readonly name: "AncestorsVaultLAP__InvalidClaimer";
|
102
|
-
readonly type: "error";
|
103
|
-
} | {
|
104
|
-
readonly inputs: readonly [];
|
105
|
-
readonly name: "AncestorsVaultLAP__TransferFailed";
|
102
|
+
readonly name: "ArbitrationPolicySP__NotDisputeModule";
|
106
103
|
readonly type: "error";
|
107
104
|
} | {
|
108
105
|
readonly inputs: readonly [];
|
109
|
-
readonly name: "
|
106
|
+
readonly name: "ArbitrationPolicySP__ZeroDisputeModule";
|
110
107
|
readonly type: "error";
|
111
108
|
} | {
|
112
109
|
readonly inputs: readonly [];
|
113
|
-
readonly name: "
|
110
|
+
readonly name: "ArbitrationPolicySP__ZeroPaymentToken";
|
114
111
|
readonly type: "error";
|
115
112
|
} | {
|
116
113
|
readonly inputs: readonly [];
|
117
|
-
readonly name: "
|
114
|
+
readonly name: "BasePolicyFrameworkManager__CallerNotLicensingModule";
|
118
115
|
readonly type: "error";
|
119
116
|
} | {
|
120
117
|
readonly inputs: readonly [];
|
121
|
-
readonly name: "
|
118
|
+
readonly name: "CoreMetadataModule__MetadataAlreadyFrozen";
|
122
119
|
readonly type: "error";
|
123
120
|
} | {
|
124
121
|
readonly inputs: readonly [];
|
@@ -148,10 +145,6 @@ export declare class DisputeClient {
|
|
148
145
|
readonly inputs: readonly [];
|
149
146
|
readonly name: "DisputeModule__NotWhitelistedDisputeTag";
|
150
147
|
readonly type: "error";
|
151
|
-
} | {
|
152
|
-
readonly inputs: readonly [];
|
153
|
-
readonly name: "DisputeModule__UnauthorizedAccess";
|
154
|
-
readonly type: "error";
|
155
148
|
} | {
|
156
149
|
readonly inputs: readonly [];
|
157
150
|
readonly name: "DisputeModule__ZeroArbitrationPolicy";
|
@@ -236,6 +229,18 @@ export declare class DisputeClient {
|
|
236
229
|
readonly inputs: readonly [];
|
237
230
|
readonly name: "IPAssetRegistry__InvalidMetadataProvider";
|
238
231
|
readonly type: "error";
|
232
|
+
} | {
|
233
|
+
readonly inputs: readonly [{
|
234
|
+
readonly internalType: "address";
|
235
|
+
readonly name: "contractAddress";
|
236
|
+
readonly type: "address";
|
237
|
+
}, {
|
238
|
+
readonly internalType: "uint256";
|
239
|
+
readonly name: "tokenId";
|
240
|
+
readonly type: "uint256";
|
241
|
+
}];
|
242
|
+
readonly name: "IPAssetRegistry__InvalidToken";
|
243
|
+
readonly type: "error";
|
239
244
|
} | {
|
240
245
|
readonly inputs: readonly [];
|
241
246
|
readonly name: "IPAssetRegistry__NotYetRegistered";
|
@@ -252,6 +257,22 @@ export declare class DisputeClient {
|
|
252
257
|
readonly inputs: readonly [];
|
253
258
|
readonly name: "IPAssetRegistry__Unauthorized";
|
254
259
|
readonly type: "error";
|
260
|
+
} | {
|
261
|
+
readonly inputs: readonly [{
|
262
|
+
readonly internalType: "address";
|
263
|
+
readonly name: "contractAddress";
|
264
|
+
readonly type: "address";
|
265
|
+
}];
|
266
|
+
readonly name: "IPAssetRegistry__UnsupportedIERC721";
|
267
|
+
readonly type: "error";
|
268
|
+
} | {
|
269
|
+
readonly inputs: readonly [{
|
270
|
+
readonly internalType: "address";
|
271
|
+
readonly name: "contractAddress";
|
272
|
+
readonly type: "address";
|
273
|
+
}];
|
274
|
+
readonly name: "IPAssetRegistry__UnsupportedIERC721Metadata";
|
275
|
+
readonly type: "error";
|
255
276
|
} | {
|
256
277
|
readonly inputs: readonly [];
|
257
278
|
readonly name: "IPResolver_InvalidIP";
|
@@ -260,17 +281,165 @@ export declare class DisputeClient {
|
|
260
281
|
readonly inputs: readonly [];
|
261
282
|
readonly name: "IPResolver_Unauthorized";
|
262
283
|
readonly type: "error";
|
284
|
+
} | {
|
285
|
+
readonly inputs: readonly [];
|
286
|
+
readonly name: "IpRoyaltyVault__AlreadyClaimed";
|
287
|
+
readonly type: "error";
|
288
|
+
} | {
|
289
|
+
readonly inputs: readonly [];
|
290
|
+
readonly name: "IpRoyaltyVault__ClaimerNotAnAncestor";
|
291
|
+
readonly type: "error";
|
292
|
+
} | {
|
293
|
+
readonly inputs: readonly [];
|
294
|
+
readonly name: "IpRoyaltyVault__IpTagged";
|
295
|
+
readonly type: "error";
|
296
|
+
} | {
|
297
|
+
readonly inputs: readonly [];
|
298
|
+
readonly name: "IpRoyaltyVault__NotRoyaltyPolicyLAP";
|
299
|
+
readonly type: "error";
|
300
|
+
} | {
|
301
|
+
readonly inputs: readonly [];
|
302
|
+
readonly name: "IpRoyaltyVault__SnapshotIntervalTooShort";
|
303
|
+
readonly type: "error";
|
304
|
+
} | {
|
305
|
+
readonly inputs: readonly [];
|
306
|
+
readonly name: "IpRoyaltyVault__ZeroDisputeModule";
|
307
|
+
readonly type: "error";
|
308
|
+
} | {
|
309
|
+
readonly inputs: readonly [];
|
310
|
+
readonly name: "IpRoyaltyVault__ZeroIpId";
|
311
|
+
readonly type: "error";
|
312
|
+
} | {
|
313
|
+
readonly inputs: readonly [];
|
314
|
+
readonly name: "IpRoyaltyVault__ZeroRoyaltyPolicyLAP";
|
315
|
+
readonly type: "error";
|
263
316
|
} | {
|
264
317
|
readonly inputs: readonly [];
|
265
318
|
readonly name: "LicenseRegistry__CallerNotLicensingModule";
|
266
319
|
readonly type: "error";
|
320
|
+
} | {
|
321
|
+
readonly inputs: readonly [{
|
322
|
+
readonly internalType: "address";
|
323
|
+
readonly name: "childIpId";
|
324
|
+
readonly type: "address";
|
325
|
+
}];
|
326
|
+
readonly name: "LicenseRegistry__DerivativeAlreadyRegistered";
|
327
|
+
readonly type: "error";
|
328
|
+
} | {
|
329
|
+
readonly inputs: readonly [{
|
330
|
+
readonly internalType: "address";
|
331
|
+
readonly name: "childIpId";
|
332
|
+
readonly type: "address";
|
333
|
+
}];
|
334
|
+
readonly name: "LicenseRegistry__DerivativeIpAlreadyHasLicense";
|
335
|
+
readonly type: "error";
|
336
|
+
} | {
|
337
|
+
readonly inputs: readonly [{
|
338
|
+
readonly internalType: "address";
|
339
|
+
readonly name: "ipId";
|
340
|
+
readonly type: "address";
|
341
|
+
}];
|
342
|
+
readonly name: "LicenseRegistry__DerivativeIsParent";
|
343
|
+
readonly type: "error";
|
344
|
+
} | {
|
345
|
+
readonly inputs: readonly [{
|
346
|
+
readonly internalType: "address";
|
347
|
+
readonly name: "ipId";
|
348
|
+
readonly type: "address";
|
349
|
+
}, {
|
350
|
+
readonly internalType: "uint256";
|
351
|
+
readonly name: "index";
|
352
|
+
readonly type: "uint256";
|
353
|
+
}, {
|
354
|
+
readonly internalType: "uint256";
|
355
|
+
readonly name: "length";
|
356
|
+
readonly type: "uint256";
|
357
|
+
}];
|
358
|
+
readonly name: "LicenseRegistry__IndexOutOfBounds";
|
359
|
+
readonly type: "error";
|
360
|
+
} | {
|
361
|
+
readonly inputs: readonly [{
|
362
|
+
readonly internalType: "address";
|
363
|
+
readonly name: "ipId";
|
364
|
+
readonly type: "address";
|
365
|
+
}];
|
366
|
+
readonly name: "LicenseRegistry__IpExpired";
|
367
|
+
readonly type: "error";
|
368
|
+
} | {
|
369
|
+
readonly inputs: readonly [{
|
370
|
+
readonly internalType: "address";
|
371
|
+
readonly name: "licenseTemplate";
|
372
|
+
readonly type: "address";
|
373
|
+
}, {
|
374
|
+
readonly internalType: "uint256";
|
375
|
+
readonly name: "licenseTermsId";
|
376
|
+
readonly type: "uint256";
|
377
|
+
}];
|
378
|
+
readonly name: "LicenseRegistry__LicenseTermsNotExists";
|
379
|
+
readonly type: "error";
|
267
380
|
} | {
|
268
381
|
readonly inputs: readonly [];
|
269
|
-
readonly name: "
|
382
|
+
readonly name: "LicenseRegistry__NoParentIp";
|
383
|
+
readonly type: "error";
|
384
|
+
} | {
|
385
|
+
readonly inputs: readonly [{
|
386
|
+
readonly internalType: "address";
|
387
|
+
readonly name: "licenseTemplate";
|
388
|
+
readonly type: "address";
|
389
|
+
}];
|
390
|
+
readonly name: "LicenseRegistry__NotLicenseTemplate";
|
270
391
|
readonly type: "error";
|
271
392
|
} | {
|
272
393
|
readonly inputs: readonly [];
|
273
|
-
readonly name: "
|
394
|
+
readonly name: "LicenseRegistry__NotTransferable";
|
395
|
+
readonly type: "error";
|
396
|
+
} | {
|
397
|
+
readonly inputs: readonly [{
|
398
|
+
readonly internalType: "address";
|
399
|
+
readonly name: "ipId";
|
400
|
+
readonly type: "address";
|
401
|
+
}];
|
402
|
+
readonly name: "LicenseRegistry__ParentIpExpired";
|
403
|
+
readonly type: "error";
|
404
|
+
} | {
|
405
|
+
readonly inputs: readonly [{
|
406
|
+
readonly internalType: "address";
|
407
|
+
readonly name: "ipId";
|
408
|
+
readonly type: "address";
|
409
|
+
}, {
|
410
|
+
readonly internalType: "uint256";
|
411
|
+
readonly name: "licenseTermsId";
|
412
|
+
readonly type: "uint256";
|
413
|
+
}];
|
414
|
+
readonly name: "LicenseRegistry__ParentIpHasNoLicenseTerms";
|
415
|
+
readonly type: "error";
|
416
|
+
} | {
|
417
|
+
readonly inputs: readonly [{
|
418
|
+
readonly internalType: "address";
|
419
|
+
readonly name: "ipId";
|
420
|
+
readonly type: "address";
|
421
|
+
}];
|
422
|
+
readonly name: "LicenseRegistry__ParentIpTagged";
|
423
|
+
readonly type: "error";
|
424
|
+
} | {
|
425
|
+
readonly inputs: readonly [{
|
426
|
+
readonly internalType: "address";
|
427
|
+
readonly name: "ipId";
|
428
|
+
readonly type: "address";
|
429
|
+
}, {
|
430
|
+
readonly internalType: "address";
|
431
|
+
readonly name: "licenseTemplate";
|
432
|
+
readonly type: "address";
|
433
|
+
}];
|
434
|
+
readonly name: "LicenseRegistry__ParentIpUnmachedLicenseTemplate";
|
435
|
+
readonly type: "error";
|
436
|
+
} | {
|
437
|
+
readonly inputs: readonly [{
|
438
|
+
readonly internalType: "address";
|
439
|
+
readonly name: "licenseTemplate";
|
440
|
+
readonly type: "address";
|
441
|
+
}];
|
442
|
+
readonly name: "LicenseRegistry__UnregisteredLicenseTemplate";
|
274
443
|
readonly type: "error";
|
275
444
|
} | {
|
276
445
|
readonly inputs: readonly [];
|
@@ -280,14 +449,98 @@ export declare class DisputeClient {
|
|
280
449
|
readonly inputs: readonly [];
|
281
450
|
readonly name: "LicenseRegistry__ZeroLicensingModule";
|
282
451
|
readonly type: "error";
|
452
|
+
} | {
|
453
|
+
readonly inputs: readonly [{
|
454
|
+
readonly internalType: "address";
|
455
|
+
readonly name: "licenseTemplate";
|
456
|
+
readonly type: "address";
|
457
|
+
}, {
|
458
|
+
readonly internalType: "address";
|
459
|
+
readonly name: "anotherLicenseTemplate";
|
460
|
+
readonly type: "address";
|
461
|
+
}];
|
462
|
+
readonly name: "LicenseToken__AllLicenseTokensMustFromSameLicenseTemplate";
|
463
|
+
readonly type: "error";
|
464
|
+
} | {
|
465
|
+
readonly inputs: readonly [];
|
466
|
+
readonly name: "LicenseToken__CallerNotLicensingModule";
|
467
|
+
readonly type: "error";
|
468
|
+
} | {
|
469
|
+
readonly inputs: readonly [{
|
470
|
+
readonly internalType: "uint256";
|
471
|
+
readonly name: "tokenId";
|
472
|
+
readonly type: "uint256";
|
473
|
+
}, {
|
474
|
+
readonly internalType: "uint256";
|
475
|
+
readonly name: "expiredAt";
|
476
|
+
readonly type: "uint256";
|
477
|
+
}, {
|
478
|
+
readonly internalType: "uint256";
|
479
|
+
readonly name: "currentTimestamp";
|
480
|
+
readonly type: "uint256";
|
481
|
+
}];
|
482
|
+
readonly name: "LicenseToken__LicenseTokenExpired";
|
483
|
+
readonly type: "error";
|
484
|
+
} | {
|
485
|
+
readonly inputs: readonly [{
|
486
|
+
readonly internalType: "uint256";
|
487
|
+
readonly name: "tokenId";
|
488
|
+
readonly type: "uint256";
|
489
|
+
}, {
|
490
|
+
readonly internalType: "address";
|
491
|
+
readonly name: "iPowner";
|
492
|
+
readonly type: "address";
|
493
|
+
}, {
|
494
|
+
readonly internalType: "address";
|
495
|
+
readonly name: "tokenOwner";
|
496
|
+
readonly type: "address";
|
497
|
+
}];
|
498
|
+
readonly name: "LicenseToken__NotLicenseTokenOwner";
|
499
|
+
readonly type: "error";
|
500
|
+
} | {
|
501
|
+
readonly inputs: readonly [];
|
502
|
+
readonly name: "LicenseToken__NotTransferable";
|
503
|
+
readonly type: "error";
|
504
|
+
} | {
|
505
|
+
readonly inputs: readonly [{
|
506
|
+
readonly internalType: "uint256";
|
507
|
+
readonly name: "tokenId";
|
508
|
+
readonly type: "uint256";
|
509
|
+
}];
|
510
|
+
readonly name: "LicenseToken__RevokedLicense";
|
511
|
+
readonly type: "error";
|
512
|
+
} | {
|
513
|
+
readonly inputs: readonly [];
|
514
|
+
readonly name: "LicenseToken__ZeroDisputeModule";
|
515
|
+
readonly type: "error";
|
283
516
|
} | {
|
284
517
|
readonly inputs: readonly [];
|
285
|
-
readonly name: "
|
518
|
+
readonly name: "LicenseToken__ZeroLicensingModule";
|
286
519
|
readonly type: "error";
|
287
520
|
} | {
|
288
521
|
readonly inputs: readonly [];
|
289
522
|
readonly name: "LicensingModule__CallerNotLicenseRegistry";
|
290
523
|
readonly type: "error";
|
524
|
+
} | {
|
525
|
+
readonly inputs: readonly [{
|
526
|
+
readonly internalType: "address";
|
527
|
+
readonly name: "caller";
|
528
|
+
readonly type: "address";
|
529
|
+
}, {
|
530
|
+
readonly internalType: "address";
|
531
|
+
readonly name: "licensorIpId";
|
532
|
+
readonly type: "address";
|
533
|
+
}, {
|
534
|
+
readonly internalType: "address";
|
535
|
+
readonly name: "licenseTemplate";
|
536
|
+
readonly type: "address";
|
537
|
+
}, {
|
538
|
+
readonly internalType: "uint256";
|
539
|
+
readonly name: "licenseTermsId";
|
540
|
+
readonly type: "uint256";
|
541
|
+
}];
|
542
|
+
readonly name: "LicensingModule__CallerNotLicensorAndIpHasNotAttachedLicenseTerms";
|
543
|
+
readonly type: "error";
|
291
544
|
} | {
|
292
545
|
readonly inputs: readonly [];
|
293
546
|
readonly name: "LicensingModule__CallerNotLicensorAndPolicyNotSet";
|
@@ -296,10 +549,30 @@ export declare class DisputeClient {
|
|
296
549
|
readonly inputs: readonly [];
|
297
550
|
readonly name: "LicensingModule__CommercialTermInNonCommercialPolicy";
|
298
551
|
readonly type: "error";
|
552
|
+
} | {
|
553
|
+
readonly inputs: readonly [{
|
554
|
+
readonly internalType: "address";
|
555
|
+
readonly name: "ipId";
|
556
|
+
readonly type: "address";
|
557
|
+
}];
|
558
|
+
readonly name: "LicensingModule__DerivativeAlreadyHasLicenseTerms";
|
559
|
+
readonly type: "error";
|
560
|
+
} | {
|
561
|
+
readonly inputs: readonly [];
|
562
|
+
readonly name: "LicensingModule__DerivativeAlreadyRegistered";
|
563
|
+
readonly type: "error";
|
564
|
+
} | {
|
565
|
+
readonly inputs: readonly [];
|
566
|
+
readonly name: "LicensingModule__DerivativeIsParent";
|
567
|
+
readonly type: "error";
|
299
568
|
} | {
|
300
569
|
readonly inputs: readonly [];
|
301
570
|
readonly name: "LicensingModule__DerivativeRevShareSumExceedsMaxRNFTSupply";
|
302
571
|
readonly type: "error";
|
572
|
+
} | {
|
573
|
+
readonly inputs: readonly [];
|
574
|
+
readonly name: "LicensingModule__DerivativesCannotAddLicenseTerms";
|
575
|
+
readonly type: "error";
|
303
576
|
} | {
|
304
577
|
readonly inputs: readonly [];
|
305
578
|
readonly name: "LicensingModule__DerivativesCannotAddPolicy";
|
@@ -322,11 +595,19 @@ export declare class DisputeClient {
|
|
322
595
|
readonly type: "error";
|
323
596
|
} | {
|
324
597
|
readonly inputs: readonly [];
|
325
|
-
readonly name: "
|
598
|
+
readonly name: "LicensingModule__IncompatibleLicensorRoyaltyDerivativeRevShare";
|
326
599
|
readonly type: "error";
|
327
600
|
} | {
|
328
|
-
readonly inputs: readonly [
|
329
|
-
|
601
|
+
readonly inputs: readonly [{
|
602
|
+
readonly internalType: "address";
|
603
|
+
readonly name: "royaltyPolicy";
|
604
|
+
readonly type: "address";
|
605
|
+
}, {
|
606
|
+
readonly internalType: "address";
|
607
|
+
readonly name: "anotherRoyaltyPolicy";
|
608
|
+
readonly type: "address";
|
609
|
+
}];
|
610
|
+
readonly name: "LicensingModule__IncompatibleRoyaltyPolicy";
|
330
611
|
readonly type: "error";
|
331
612
|
} | {
|
332
613
|
readonly inputs: readonly [];
|
@@ -344,6 +625,54 @@ export declare class DisputeClient {
|
|
344
625
|
readonly inputs: readonly [];
|
345
626
|
readonly name: "LicensingModule__InvalidPolicyFramework";
|
346
627
|
readonly type: "error";
|
628
|
+
} | {
|
629
|
+
readonly inputs: readonly [];
|
630
|
+
readonly name: "LicensingModule__IpAlreadyLinked";
|
631
|
+
readonly type: "error";
|
632
|
+
} | {
|
633
|
+
readonly inputs: readonly [{
|
634
|
+
readonly internalType: "address";
|
635
|
+
readonly name: "childIpId";
|
636
|
+
readonly type: "address";
|
637
|
+
}];
|
638
|
+
readonly name: "LicensingModule__LicenseNotCompatibleForDerivative";
|
639
|
+
readonly type: "error";
|
640
|
+
} | {
|
641
|
+
readonly inputs: readonly [{
|
642
|
+
readonly internalType: "uint256";
|
643
|
+
readonly name: "ipLength";
|
644
|
+
readonly type: "uint256";
|
645
|
+
}, {
|
646
|
+
readonly internalType: "uint256";
|
647
|
+
readonly name: "licenseTermsLength";
|
648
|
+
readonly type: "uint256";
|
649
|
+
}];
|
650
|
+
readonly name: "LicensingModule__LicenseTermsLengthMismatch";
|
651
|
+
readonly type: "error";
|
652
|
+
} | {
|
653
|
+
readonly inputs: readonly [{
|
654
|
+
readonly internalType: "address";
|
655
|
+
readonly name: "licenseTemplate";
|
656
|
+
readonly type: "address";
|
657
|
+
}, {
|
658
|
+
readonly internalType: "uint256";
|
659
|
+
readonly name: "licenseTermsId";
|
660
|
+
readonly type: "uint256";
|
661
|
+
}];
|
662
|
+
readonly name: "LicensingModule__LicenseTermsNotFound";
|
663
|
+
readonly type: "error";
|
664
|
+
} | {
|
665
|
+
readonly inputs: readonly [{
|
666
|
+
readonly internalType: "address";
|
667
|
+
readonly name: "childIpId";
|
668
|
+
readonly type: "address";
|
669
|
+
}, {
|
670
|
+
readonly internalType: "uint256[]";
|
671
|
+
readonly name: "licenseTokenIds";
|
672
|
+
readonly type: "uint256[]";
|
673
|
+
}];
|
674
|
+
readonly name: "LicensingModule__LicenseTokenNotCompatibleForDerivative";
|
675
|
+
readonly type: "error";
|
347
676
|
} | {
|
348
677
|
readonly inputs: readonly [];
|
349
678
|
readonly name: "LicensingModule__LicensorDoesntHaveThisPolicy";
|
@@ -360,6 +689,10 @@ export declare class DisputeClient {
|
|
360
689
|
readonly inputs: readonly [];
|
361
690
|
readonly name: "LicensingModule__LinkingRevokedLicense";
|
362
691
|
readonly type: "error";
|
692
|
+
} | {
|
693
|
+
readonly inputs: readonly [];
|
694
|
+
readonly name: "LicensingModule__MintAmountZero";
|
695
|
+
readonly type: "error";
|
363
696
|
} | {
|
364
697
|
readonly inputs: readonly [];
|
365
698
|
readonly name: "LicensingModule__MintLicenseParamFailed";
|
@@ -372,6 +705,14 @@ export declare class DisputeClient {
|
|
372
705
|
readonly inputs: readonly [];
|
373
706
|
readonly name: "LicensingModule__MismatchBetweenRoyaltyPolicy";
|
374
707
|
readonly type: "error";
|
708
|
+
} | {
|
709
|
+
readonly inputs: readonly [];
|
710
|
+
readonly name: "LicensingModule__NoLicenseToken";
|
711
|
+
readonly type: "error";
|
712
|
+
} | {
|
713
|
+
readonly inputs: readonly [];
|
714
|
+
readonly name: "LicensingModule__NoParentIp";
|
715
|
+
readonly type: "error";
|
375
716
|
} | {
|
376
717
|
readonly inputs: readonly [];
|
377
718
|
readonly name: "LicensingModule__NotLicensee";
|
@@ -388,6 +729,14 @@ export declare class DisputeClient {
|
|
388
729
|
readonly inputs: readonly [];
|
389
730
|
readonly name: "LicensingModule__ParentIdEqualThanChild";
|
390
731
|
readonly type: "error";
|
732
|
+
} | {
|
733
|
+
readonly inputs: readonly [{
|
734
|
+
readonly internalType: "address";
|
735
|
+
readonly name: "ipId";
|
736
|
+
readonly type: "address";
|
737
|
+
}];
|
738
|
+
readonly name: "LicensingModule__ParentIpHasNoLicenseTerms";
|
739
|
+
readonly type: "error";
|
391
740
|
} | {
|
392
741
|
readonly inputs: readonly [];
|
393
742
|
readonly name: "LicensingModule__PolicyAlreadySetForIpId";
|
@@ -396,6 +745,18 @@ export declare class DisputeClient {
|
|
396
745
|
readonly inputs: readonly [];
|
397
746
|
readonly name: "LicensingModule__PolicyNotFound";
|
398
747
|
readonly type: "error";
|
748
|
+
} | {
|
749
|
+
readonly inputs: readonly [{
|
750
|
+
readonly internalType: "address";
|
751
|
+
readonly name: "receiver";
|
752
|
+
readonly type: "address";
|
753
|
+
}];
|
754
|
+
readonly name: "LicensingModule__ReceiverCheckFailed";
|
755
|
+
readonly type: "error";
|
756
|
+
} | {
|
757
|
+
readonly inputs: readonly [];
|
758
|
+
readonly name: "LicensingModule__ReceiverZeroAddress";
|
759
|
+
readonly type: "error";
|
399
760
|
} | {
|
400
761
|
readonly inputs: readonly [];
|
401
762
|
readonly name: "LicensingModule__RegisterPolicyFrameworkMismatch";
|
@@ -526,15 +887,15 @@ export declare class DisputeClient {
|
|
526
887
|
readonly type: "error";
|
527
888
|
} | {
|
528
889
|
readonly inputs: readonly [];
|
529
|
-
readonly name: "
|
890
|
+
readonly name: "RoyaltyModule__CanOnlyMintSelectedPolicy";
|
530
891
|
readonly type: "error";
|
531
892
|
} | {
|
532
893
|
readonly inputs: readonly [];
|
533
|
-
readonly name: "
|
894
|
+
readonly name: "RoyaltyModule__IncompatibleRoyaltyPolicy";
|
534
895
|
readonly type: "error";
|
535
896
|
} | {
|
536
897
|
readonly inputs: readonly [];
|
537
|
-
readonly name: "
|
898
|
+
readonly name: "RoyaltyModule__IpIsTagged";
|
538
899
|
readonly type: "error";
|
539
900
|
} | {
|
540
901
|
readonly inputs: readonly [];
|
@@ -550,15 +911,15 @@ export declare class DisputeClient {
|
|
550
911
|
readonly type: "error";
|
551
912
|
} | {
|
552
913
|
readonly inputs: readonly [];
|
553
|
-
readonly name: "
|
914
|
+
readonly name: "RoyaltyModule__NotWhitelistedRoyaltyPolicy";
|
554
915
|
readonly type: "error";
|
555
916
|
} | {
|
556
917
|
readonly inputs: readonly [];
|
557
|
-
readonly name: "
|
918
|
+
readonly name: "RoyaltyModule__NotWhitelistedRoyaltyToken";
|
558
919
|
readonly type: "error";
|
559
920
|
} | {
|
560
921
|
readonly inputs: readonly [];
|
561
|
-
readonly name: "
|
922
|
+
readonly name: "RoyaltyModule__ZeroDisputeModule";
|
562
923
|
readonly type: "error";
|
563
924
|
} | {
|
564
925
|
readonly inputs: readonly [];
|
@@ -588,30 +949,10 @@ export declare class DisputeClient {
|
|
588
949
|
readonly inputs: readonly [];
|
589
950
|
readonly name: "RoyaltyPolicyLAP__ImplementationAlreadySet";
|
590
951
|
readonly type: "error";
|
591
|
-
} | {
|
592
|
-
readonly inputs: readonly [];
|
593
|
-
readonly name: "RoyaltyPolicyLAP__InvalidAncestors";
|
594
|
-
readonly type: "error";
|
595
|
-
} | {
|
596
|
-
readonly inputs: readonly [];
|
597
|
-
readonly name: "RoyaltyPolicyLAP__InvalidAncestorsHash";
|
598
|
-
readonly type: "error";
|
599
|
-
} | {
|
600
|
-
readonly inputs: readonly [];
|
601
|
-
readonly name: "RoyaltyPolicyLAP__InvalidAncestorsLength";
|
602
|
-
readonly type: "error";
|
603
|
-
} | {
|
604
|
-
readonly inputs: readonly [];
|
605
|
-
readonly name: "RoyaltyPolicyLAP__InvalidAncestorsRoyalty";
|
606
|
-
readonly type: "error";
|
607
952
|
} | {
|
608
953
|
readonly inputs: readonly [];
|
609
954
|
readonly name: "RoyaltyPolicyLAP__InvalidParentRoyaltiesLength";
|
610
955
|
readonly type: "error";
|
611
|
-
} | {
|
612
|
-
readonly inputs: readonly [];
|
613
|
-
readonly name: "RoyaltyPolicyLAP__InvalidRoyaltyAmountLength";
|
614
|
-
readonly type: "error";
|
615
956
|
} | {
|
616
957
|
readonly inputs: readonly [];
|
617
958
|
readonly name: "RoyaltyPolicyLAP__LastPositionNotAbleToMintLicense";
|
@@ -626,15 +967,15 @@ export declare class DisputeClient {
|
|
626
967
|
readonly type: "error";
|
627
968
|
} | {
|
628
969
|
readonly inputs: readonly [];
|
629
|
-
readonly name: "
|
970
|
+
readonly name: "RoyaltyPolicyLAP__UnlinkableToParents";
|
630
971
|
readonly type: "error";
|
631
972
|
} | {
|
632
973
|
readonly inputs: readonly [];
|
633
|
-
readonly name: "
|
974
|
+
readonly name: "RoyaltyPolicyLAP__ZeroAncestorsVaultImpl";
|
634
975
|
readonly type: "error";
|
635
976
|
} | {
|
636
977
|
readonly inputs: readonly [];
|
637
|
-
readonly name: "
|
978
|
+
readonly name: "RoyaltyPolicyLAP__ZeroIpRoyaltyVaultBeacon";
|
638
979
|
readonly type: "error";
|
639
980
|
} | {
|
640
981
|
readonly inputs: readonly [];
|
@@ -770,7 +1111,7 @@ export declare class DisputeClient {
|
|
770
1111
|
})[];
|
771
1112
|
address: `0x${string}`;
|
772
1113
|
};
|
773
|
-
constructor(rpcClient: PublicClient, wallet: WalletClient);
|
1114
|
+
constructor(rpcClient: PublicClient, wallet: WalletClient, chainId: SupportedChainIds);
|
774
1115
|
/**
|
775
1116
|
* Raises a dispute on a given ipId
|
776
1117
|
* @param request - The request object containing necessary data to raise a dispute.
|