@story-protocol/core-sdk 1.0.0-rc.1 → 1.0.0-rc.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (30) hide show
  1. package/dist/declarations/src/abi/generated.d.ts +14247 -0
  2. package/dist/declarations/src/abi/generated.d.ts.map +1 -0
  3. package/dist/declarations/src/client.d.ts +14 -2
  4. package/dist/declarations/src/client.d.ts.map +1 -1
  5. package/dist/declarations/src/index.d.ts +2 -2
  6. package/dist/declarations/src/index.d.ts.map +1 -1
  7. package/dist/declarations/src/resources/dispute.d.ts +4 -1083
  8. package/dist/declarations/src/resources/dispute.d.ts.map +1 -1
  9. package/dist/declarations/src/resources/ipAccount.d.ts +3 -1003
  10. package/dist/declarations/src/resources/ipAccount.d.ts.map +1 -1
  11. package/dist/declarations/src/resources/ipAsset.d.ts +8 -2322
  12. package/dist/declarations/src/resources/ipAsset.d.ts.map +1 -1
  13. package/dist/declarations/src/resources/license.d.ts +19 -4290
  14. package/dist/declarations/src/resources/license.d.ts.map +1 -1
  15. package/dist/declarations/src/resources/permission.d.ts +4 -2051
  16. package/dist/declarations/src/resources/permission.d.ts.map +1 -1
  17. package/dist/declarations/src/resources/royalty.d.ts +32 -2997
  18. package/dist/declarations/src/resources/royalty.d.ts.map +1 -1
  19. package/dist/declarations/src/types/config.d.ts +15 -4
  20. package/dist/declarations/src/types/config.d.ts.map +1 -1
  21. package/dist/declarations/src/types/options.d.ts +4 -0
  22. package/dist/declarations/src/types/options.d.ts.map +1 -1
  23. package/dist/declarations/src/types/resources/license.d.ts +2 -2
  24. package/dist/declarations/src/types/resources/license.d.ts.map +1 -1
  25. package/dist/declarations/src/types/resources/royalty.d.ts +12 -8
  26. package/dist/declarations/src/types/resources/royalty.d.ts.map +1 -1
  27. package/dist/story-protocol-core-sdk.cjs.dev.js +10594 -2141
  28. package/dist/story-protocol-core-sdk.cjs.prod.js +10594 -2141
  29. package/dist/story-protocol-core-sdk.esm.js +10600 -2147
  30. package/package.json +2 -2
@@ -1,2058 +1,11 @@
1
- import { PublicClient, WalletClient } from "viem";
1
+ import { PublicClient } from "viem";
2
2
  import { SetPermissionsRequest, SetPermissionsResponse } from "../types/resources/permission.js";
3
- import { SupportedChainIds } from "../types/config.js";
3
+ import { SimpleWalletClient } from "../abi/generated.js";
4
4
  export declare class PermissionClient {
5
5
  private readonly wallet;
6
6
  private readonly rpcClient;
7
- ipAccountABI: ({
8
- readonly inputs: readonly [{
9
- readonly internalType: "address";
10
- readonly name: "caller";
11
- readonly type: "address";
12
- }];
13
- readonly name: "AccessControlled__CallerIsNotIpAccount";
14
- readonly type: "error";
15
- } | {
16
- readonly inputs: readonly [{
17
- readonly internalType: "address";
18
- readonly name: "ipAccount";
19
- readonly type: "address";
20
- }];
21
- readonly name: "AccessControlled__NotIpAccount";
22
- readonly type: "error";
23
- } | {
24
- readonly inputs: readonly [];
25
- readonly name: "AccessControlled__ZeroAddress";
26
- readonly type: "error";
27
- } | {
28
- readonly inputs: readonly [{
29
- readonly internalType: "address";
30
- readonly name: "signer";
31
- readonly type: "address";
32
- }, {
33
- readonly internalType: "address";
34
- readonly name: "to";
35
- readonly type: "address";
36
- }];
37
- readonly name: "AccessController__BothCallerAndRecipientAreNotRegisteredModule";
38
- readonly type: "error";
39
- } | {
40
- readonly inputs: readonly [];
41
- /**
42
- * Sets the permission for a specific function call
43
- * Each policy is represented as a mapping from an IP account address to a signer address to a recipient
44
- * address to a function selector to a permission level. The permission level can be 0 (ABSTAIN), 1 (ALLOW), or
45
- * 2 (DENY).
46
- * By default, all policies are set to 0 (ABSTAIN), which means that the permission is not set.
47
- * The owner of ipAccount by default has all permission.
48
- * address(0) => wildcard
49
- * bytes4(0) => wildcard
50
- * Specific permission overrides wildcard permission.
51
- * @param request The request object containing necessary data to set permissions.
52
- * @param request.ipAsset The address of the IP account that grants the permission for `signer`
53
- * @param request.signer The address that can call `to` on behalf of the `ipAccount`
54
- * @param request.to The address that can be called by the `signer` (currently only modules can be `to`)
55
- * @param request.func Optional. The function selector string of `to` that can be called by the `signer` on behalf of the `ipAccount`. Be default, it allows all functions.
56
- * @param request.permission The new permission level
57
- * @returns A Promise that resolves to an object containing the transaction hash
58
- * @emits PermissionSet (ipAccountOwner, ipAccount, signer, to, func, permission)
59
- */
60
- readonly name: "AccessController__CallerIsNotIPAccount";
61
- readonly type: "error";
62
- } | {
63
- readonly inputs: readonly [{
64
- readonly internalType: "address";
65
- readonly name: "ipAccount";
66
- readonly type: "address";
67
- }];
68
- readonly name: "AccessController__IPAccountIsNotValid";
69
- readonly type: "error";
70
- } | {
71
- readonly inputs: readonly [];
72
- readonly name: "AccessController__IPAccountIsZeroAddress";
73
- readonly type: "error";
74
- } | {
75
- readonly inputs: readonly [{
76
- readonly internalType: "address";
77
- readonly name: "ipAccount";
78
- readonly type: "address";
79
- }, {
80
- readonly internalType: "address";
81
- readonly name: "signer";
82
- readonly type: "address";
83
- }, {
84
- readonly internalType: "address";
85
- readonly name: "to";
86
- readonly type: "address";
87
- }, {
88
- readonly internalType: "bytes4";
89
- readonly name: "func";
90
- readonly type: "bytes4";
91
- }];
92
- readonly name: "AccessController__PermissionDenied";
93
- readonly type: "error";
94
- } | {
95
- readonly inputs: readonly [];
96
- readonly name: "AccessController__PermissionIsNotValid";
97
- readonly type: "error";
98
- } | {
99
- readonly inputs: readonly [];
100
- readonly name: "AccessController__SignerIsZeroAddress";
101
- readonly type: "error";
102
- } | {
103
- readonly inputs: readonly [];
104
- readonly name: "ArbitrationPolicySP__NotDisputeModule";
105
- readonly type: "error";
106
- } | {
107
- readonly inputs: readonly [];
108
- readonly name: "ArbitrationPolicySP__ZeroDisputeModule";
109
- readonly type: "error";
110
- } | {
111
- readonly inputs: readonly [];
112
- readonly name: "ArbitrationPolicySP__ZeroPaymentToken";
113
- readonly type: "error";
114
- } | {
115
- readonly inputs: readonly [];
116
- readonly name: "BasePolicyFrameworkManager__CallerNotLicensingModule";
117
- readonly type: "error";
118
- } | {
119
- readonly inputs: readonly [];
120
- readonly name: "CoreMetadataModule__MetadataAlreadyFrozen";
121
- readonly type: "error";
122
- } | {
123
- readonly inputs: readonly [];
124
- readonly name: "DisputeModule__NotAbleToResolve";
125
- readonly type: "error";
126
- } | {
127
- readonly inputs: readonly [];
128
- readonly name: "DisputeModule__NotDisputeInitiator";
129
- readonly type: "error";
130
- } | {
131
- readonly inputs: readonly [];
132
- readonly name: "DisputeModule__NotInDisputeState";
133
- readonly type: "error";
134
- } | {
135
- readonly inputs: readonly [];
136
- readonly name: "DisputeModule__NotRegisteredIpId";
137
- readonly type: "error";
138
- } | {
139
- readonly inputs: readonly [];
140
- readonly name: "DisputeModule__NotWhitelistedArbitrationPolicy";
141
- readonly type: "error";
142
- } | {
143
- readonly inputs: readonly [];
144
- readonly name: "DisputeModule__NotWhitelistedArbitrationRelayer";
145
- readonly type: "error";
146
- } | {
147
- readonly inputs: readonly [];
148
- readonly name: "DisputeModule__NotWhitelistedDisputeTag";
149
- readonly type: "error";
150
- } | {
151
- readonly inputs: readonly [];
152
- readonly name: "DisputeModule__ZeroArbitrationPolicy";
153
- readonly type: "error";
154
- } | {
155
- readonly inputs: readonly [];
156
- readonly name: "DisputeModule__ZeroArbitrationRelayer";
157
- readonly type: "error";
158
- } | {
159
- readonly inputs: readonly [];
160
- readonly name: "DisputeModule__ZeroDisputeTag";
161
- readonly type: "error";
162
- } | {
163
- readonly inputs: readonly [];
164
- readonly name: "DisputeModule__ZeroLinkToDisputeEvidence";
165
- readonly type: "error";
166
- } | {
167
- readonly inputs: readonly [];
168
- readonly name: "IPAccountRegistry_InvalidIpAccountImpl";
169
- readonly type: "error";
170
- } | {
171
- readonly inputs: readonly [];
172
- readonly name: "IPAccount__ExpiredSignature";
173
- readonly type: "error";
174
- } | {
175
- readonly inputs: readonly [];
176
- readonly name: "IPAccount__InvalidAccessController";
177
- readonly type: "error";
178
- } | {
179
- readonly inputs: readonly [];
180
- readonly name: "IPAccount__InvalidCalldata";
181
- readonly type: "error";
182
- } | {
183
- readonly inputs: readonly [];
184
- readonly name: "IPAccount__InvalidSignature";
185
- readonly type: "error";
186
- } | {
187
- readonly inputs: readonly [];
188
- readonly name: "IPAccount__InvalidSigner";
189
- readonly type: "error";
190
- } | {
191
- readonly inputs: readonly [];
192
- readonly name: "IPAssetRegistry__AlreadyRegistered";
193
- readonly type: "error";
194
- } | {
195
- readonly inputs: readonly [];
196
- readonly name: "IPAssetRegistry__IPAccountAlreadyCreated";
197
- readonly type: "error";
198
- } | {
199
- readonly inputs: readonly [];
200
- readonly name: "IPAssetRegistry__InvalidAccount";
201
- readonly type: "error";
202
- } | {
203
- readonly inputs: readonly [];
204
- readonly name: "IPAssetRegistry__InvalidMetadataProvider";
205
- readonly type: "error";
206
- } | {
207
- readonly inputs: readonly [{
208
- readonly internalType: "address";
209
- readonly name: "contractAddress";
210
- readonly type: "address";
211
- }, {
212
- readonly internalType: "uint256";
213
- readonly name: "tokenId";
214
- readonly type: "uint256";
215
- }];
216
- readonly name: "IPAssetRegistry__InvalidToken";
217
- readonly type: "error";
218
- } | {
219
- readonly inputs: readonly [];
220
- readonly name: "IPAssetRegistry__NotYetRegistered";
221
- readonly type: "error";
222
- } | {
223
- readonly inputs: readonly [];
224
- readonly name: "IPAssetRegistry__RegistrantUnauthorized";
225
- readonly type: "error";
226
- } | {
227
- readonly inputs: readonly [];
228
- readonly name: "IPAssetRegistry__ResolverInvalid";
229
- readonly type: "error";
230
- } | {
231
- readonly inputs: readonly [];
232
- readonly name: "IPAssetRegistry__Unauthorized";
233
- readonly type: "error";
234
- } | {
235
- readonly inputs: readonly [{
236
- readonly internalType: "address";
237
- readonly name: "contractAddress";
238
- readonly type: "address";
239
- }];
240
- readonly name: "IPAssetRegistry__UnsupportedIERC721";
241
- readonly type: "error";
242
- } | {
243
- readonly inputs: readonly [{
244
- readonly internalType: "address";
245
- readonly name: "contractAddress";
246
- readonly type: "address";
247
- }];
248
- readonly name: "IPAssetRegistry__UnsupportedIERC721Metadata";
249
- readonly type: "error";
250
- } | {
251
- readonly inputs: readonly [];
252
- readonly name: "IPResolver_InvalidIP";
253
- readonly type: "error";
254
- } | {
255
- readonly inputs: readonly [];
256
- readonly name: "IPResolver_Unauthorized";
257
- readonly type: "error";
258
- } | {
259
- readonly inputs: readonly [];
260
- readonly name: "IpRoyaltyVault__AlreadyClaimed";
261
- readonly type: "error";
262
- } | {
263
- readonly inputs: readonly [];
264
- readonly name: "IpRoyaltyVault__ClaimerNotAnAncestor";
265
- readonly type: "error";
266
- } | {
267
- readonly inputs: readonly [];
268
- readonly name: "IpRoyaltyVault__IpTagged";
269
- readonly type: "error";
270
- } | {
271
- readonly inputs: readonly [];
272
- readonly name: "IpRoyaltyVault__NotRoyaltyPolicyLAP";
273
- readonly type: "error";
274
- } | {
275
- readonly inputs: readonly [];
276
- readonly name: "IpRoyaltyVault__SnapshotIntervalTooShort";
277
- readonly type: "error";
278
- } | {
279
- readonly inputs: readonly [];
280
- readonly name: "IpRoyaltyVault__ZeroDisputeModule";
281
- readonly type: "error";
282
- } | {
283
- readonly inputs: readonly [];
284
- readonly name: "IpRoyaltyVault__ZeroIpId";
285
- readonly type: "error";
286
- } | {
287
- readonly inputs: readonly [];
288
- readonly name: "IpRoyaltyVault__ZeroRoyaltyPolicyLAP";
289
- readonly type: "error";
290
- } | {
291
- readonly inputs: readonly [];
292
- readonly name: "LicenseRegistry__CallerNotLicensingModule";
293
- readonly type: "error";
294
- } | {
295
- readonly inputs: readonly [{
296
- readonly internalType: "address";
297
- readonly name: "childIpId";
298
- readonly type: "address";
299
- }];
300
- readonly name: "LicenseRegistry__DerivativeAlreadyRegistered";
301
- readonly type: "error";
302
- } | {
303
- readonly inputs: readonly [{
304
- readonly internalType: "address";
305
- readonly name: "childIpId";
306
- readonly type: "address";
307
- }];
308
- readonly name: "LicenseRegistry__DerivativeIpAlreadyHasLicense";
309
- readonly type: "error";
310
- } | {
311
- readonly inputs: readonly [{
312
- readonly internalType: "address";
313
- readonly name: "ipId";
314
- readonly type: "address";
315
- }];
316
- readonly name: "LicenseRegistry__DerivativeIsParent";
317
- readonly type: "error";
318
- } | {
319
- readonly inputs: readonly [{
320
- readonly internalType: "address";
321
- readonly name: "ipId";
322
- readonly type: "address";
323
- }, {
324
- readonly internalType: "uint256";
325
- readonly name: "index";
326
- readonly type: "uint256";
327
- }, {
328
- readonly internalType: "uint256";
329
- readonly name: "length";
330
- readonly type: "uint256";
331
- }];
332
- readonly name: "LicenseRegistry__IndexOutOfBounds";
333
- readonly type: "error";
334
- } | {
335
- readonly inputs: readonly [{
336
- readonly internalType: "address";
337
- readonly name: "ipId";
338
- readonly type: "address";
339
- }];
340
- readonly name: "LicenseRegistry__IpExpired";
341
- readonly type: "error";
342
- } | {
343
- readonly inputs: readonly [{
344
- readonly internalType: "address";
345
- readonly name: "licenseTemplate";
346
- readonly type: "address";
347
- }, {
348
- readonly internalType: "uint256";
349
- readonly name: "licenseTermsId";
350
- readonly type: "uint256";
351
- }];
352
- readonly name: "LicenseRegistry__LicenseTermsNotExists";
353
- readonly type: "error";
354
- } | {
355
- readonly inputs: readonly [];
356
- readonly name: "LicenseRegistry__NoParentIp";
357
- readonly type: "error";
358
- } | {
359
- readonly inputs: readonly [{
360
- readonly internalType: "address";
361
- readonly name: "licenseTemplate";
362
- readonly type: "address";
363
- }];
364
- readonly name: "LicenseRegistry__NotLicenseTemplate";
365
- readonly type: "error";
366
- } | {
367
- readonly inputs: readonly [];
368
- readonly name: "LicenseRegistry__NotTransferable";
369
- readonly type: "error";
370
- } | {
371
- readonly inputs: readonly [{
372
- readonly internalType: "address";
373
- readonly name: "ipId";
374
- readonly type: "address";
375
- }];
376
- readonly name: "LicenseRegistry__ParentIpExpired";
377
- readonly type: "error";
378
- } | {
379
- readonly inputs: readonly [{
380
- readonly internalType: "address";
381
- readonly name: "ipId";
382
- readonly type: "address";
383
- }, {
384
- readonly internalType: "uint256";
385
- readonly name: "licenseTermsId";
386
- readonly type: "uint256";
387
- }];
388
- readonly name: "LicenseRegistry__ParentIpHasNoLicenseTerms";
389
- readonly type: "error";
390
- } | {
391
- readonly inputs: readonly [{
392
- readonly internalType: "address";
393
- readonly name: "ipId";
394
- readonly type: "address";
395
- }];
396
- readonly name: "LicenseRegistry__ParentIpTagged";
397
- readonly type: "error";
398
- } | {
399
- readonly inputs: readonly [{
400
- readonly internalType: "address";
401
- readonly name: "ipId";
402
- readonly type: "address";
403
- }, {
404
- readonly internalType: "address";
405
- readonly name: "licenseTemplate";
406
- readonly type: "address";
407
- }];
408
- readonly name: "LicenseRegistry__ParentIpUnmachedLicenseTemplate";
409
- readonly type: "error";
410
- } | {
411
- readonly inputs: readonly [{
412
- readonly internalType: "address";
413
- readonly name: "licenseTemplate";
414
- readonly type: "address";
415
- }];
416
- readonly name: "LicenseRegistry__UnregisteredLicenseTemplate";
417
- readonly type: "error";
418
- } | {
419
- readonly inputs: readonly [];
420
- readonly name: "LicenseRegistry__ZeroDisputeModule";
421
- readonly type: "error";
422
- } | {
423
- readonly inputs: readonly [];
424
- readonly name: "LicenseRegistry__ZeroLicensingModule";
425
- readonly type: "error";
426
- } | {
427
- readonly inputs: readonly [{
428
- readonly internalType: "address";
429
- readonly name: "licenseTemplate";
430
- readonly type: "address";
431
- }, {
432
- readonly internalType: "address";
433
- readonly name: "anotherLicenseTemplate";
434
- readonly type: "address";
435
- }];
436
- readonly name: "LicenseToken__AllLicenseTokensMustFromSameLicenseTemplate";
437
- readonly type: "error";
438
- } | {
439
- readonly inputs: readonly [];
440
- readonly name: "LicenseToken__CallerNotLicensingModule";
441
- readonly type: "error";
442
- } | {
443
- readonly inputs: readonly [{
444
- readonly internalType: "uint256";
445
- readonly name: "tokenId";
446
- readonly type: "uint256";
447
- }, {
448
- readonly internalType: "uint256";
449
- readonly name: "expiredAt";
450
- readonly type: "uint256";
451
- }, {
452
- readonly internalType: "uint256";
453
- readonly name: "currentTimestamp";
454
- readonly type: "uint256";
455
- }];
456
- readonly name: "LicenseToken__LicenseTokenExpired";
457
- readonly type: "error";
458
- } | {
459
- readonly inputs: readonly [{
460
- readonly internalType: "uint256";
461
- readonly name: "tokenId";
462
- readonly type: "uint256";
463
- }, {
464
- readonly internalType: "address";
465
- readonly name: "iPowner";
466
- readonly type: "address";
467
- }, {
468
- readonly internalType: "address";
469
- readonly name: "tokenOwner";
470
- readonly type: "address";
471
- }];
472
- readonly name: "LicenseToken__NotLicenseTokenOwner";
473
- readonly type: "error";
474
- } | {
475
- readonly inputs: readonly [];
476
- readonly name: "LicenseToken__NotTransferable";
477
- readonly type: "error";
478
- } | {
479
- readonly inputs: readonly [{
480
- readonly internalType: "uint256";
481
- readonly name: "tokenId";
482
- readonly type: "uint256";
483
- }];
484
- readonly name: "LicenseToken__RevokedLicense";
485
- readonly type: "error";
486
- } | {
487
- readonly inputs: readonly [];
488
- readonly name: "LicenseToken__ZeroDisputeModule";
489
- readonly type: "error";
490
- } | {
491
- readonly inputs: readonly [];
492
- readonly name: "LicenseToken__ZeroLicensingModule";
493
- readonly type: "error";
494
- } | {
495
- readonly inputs: readonly [];
496
- readonly name: "LicensingModule__CallerNotLicenseRegistry";
497
- readonly type: "error";
498
- } | {
499
- readonly inputs: readonly [{
500
- readonly internalType: "address";
501
- readonly name: "caller";
502
- readonly type: "address";
503
- }, {
504
- readonly internalType: "address";
505
- readonly name: "licensorIpId";
506
- readonly type: "address";
507
- }, {
508
- readonly internalType: "address";
509
- readonly name: "licenseTemplate";
510
- readonly type: "address";
511
- }, {
512
- readonly internalType: "uint256";
513
- readonly name: "licenseTermsId";
514
- readonly type: "uint256";
515
- }];
516
- readonly name: "LicensingModule__CallerNotLicensorAndIpHasNotAttachedLicenseTerms";
517
- readonly type: "error";
518
- } | {
519
- readonly inputs: readonly [];
520
- readonly name: "LicensingModule__CallerNotLicensorAndPolicyNotSet";
521
- readonly type: "error";
522
- } | {
523
- readonly inputs: readonly [];
524
- readonly name: "LicensingModule__CommercialTermInNonCommercialPolicy";
525
- readonly type: "error";
526
- } | {
527
- readonly inputs: readonly [{
528
- readonly internalType: "address";
529
- readonly name: "ipId";
530
- readonly type: "address";
531
- }];
532
- readonly name: "LicensingModule__DerivativeAlreadyHasLicenseTerms";
533
- readonly type: "error";
534
- } | {
535
- readonly inputs: readonly [];
536
- readonly name: "LicensingModule__DerivativeAlreadyRegistered";
537
- readonly type: "error";
538
- } | {
539
- readonly inputs: readonly [];
540
- readonly name: "LicensingModule__DerivativeIsParent";
541
- readonly type: "error";
542
- } | {
543
- readonly inputs: readonly [];
544
- readonly name: "LicensingModule__DerivativeRevShareSumExceedsMaxRNFTSupply";
545
- readonly type: "error";
546
- } | {
547
- readonly inputs: readonly [];
548
- readonly name: "LicensingModule__DerivativesCannotAddLicenseTerms";
549
- readonly type: "error";
550
- } | {
551
- readonly inputs: readonly [];
552
- readonly name: "LicensingModule__DerivativesCannotAddPolicy";
553
- readonly type: "error";
554
- } | {
555
- readonly inputs: readonly [];
556
- readonly name: "LicensingModule__DisputedIpId";
557
- readonly type: "error";
558
- } | {
559
- readonly inputs: readonly [];
560
- readonly name: "LicensingModule__EmptyLicenseUrl";
561
- readonly type: "error";
562
- } | {
563
- readonly inputs: readonly [];
564
- readonly name: "LicensingModule__EmptyParamName";
565
- readonly type: "error";
566
- } | {
567
- readonly inputs: readonly [];
568
- readonly name: "LicensingModule__FrameworkNotFound";
569
- readonly type: "error";
570
- } | {
571
- readonly inputs: readonly [];
572
- readonly name: "LicensingModule__IncompatibleLicensorRoyaltyDerivativeRevShare";
573
- readonly type: "error";
574
- } | {
575
- readonly inputs: readonly [{
576
- readonly internalType: "address";
577
- readonly name: "royaltyPolicy";
578
- readonly type: "address";
579
- }, {
580
- readonly internalType: "address";
581
- readonly name: "anotherRoyaltyPolicy";
582
- readonly type: "address";
583
- }];
584
- readonly name: "LicensingModule__IncompatibleRoyaltyPolicy";
585
- readonly type: "error";
586
- } | {
587
- readonly inputs: readonly [];
588
- readonly name: "LicensingModule__IncompatibleRoyaltyPolicyAddress";
589
- readonly type: "error";
590
- } | {
591
- readonly inputs: readonly [];
592
- readonly name: "LicensingModule__IncompatibleRoyaltyPolicyDerivativeRevShare";
593
- readonly type: "error";
594
- } | {
595
- readonly inputs: readonly [];
596
- readonly name: "LicensingModule__InvalidLicensor";
597
- readonly type: "error";
598
- } | {
599
- readonly inputs: readonly [];
600
- readonly name: "LicensingModule__InvalidPolicyFramework";
601
- readonly type: "error";
602
- } | {
603
- readonly inputs: readonly [];
604
- readonly name: "LicensingModule__IpAlreadyLinked";
605
- readonly type: "error";
606
- } | {
607
- readonly inputs: readonly [{
608
- readonly internalType: "address";
609
- readonly name: "childIpId";
610
- readonly type: "address";
611
- }];
612
- readonly name: "LicensingModule__LicenseNotCompatibleForDerivative";
613
- readonly type: "error";
614
- } | {
615
- readonly inputs: readonly [{
616
- readonly internalType: "uint256";
617
- readonly name: "ipLength";
618
- readonly type: "uint256";
619
- }, {
620
- readonly internalType: "uint256";
621
- readonly name: "licenseTermsLength";
622
- readonly type: "uint256";
623
- }];
624
- readonly name: "LicensingModule__LicenseTermsLengthMismatch";
625
- readonly type: "error";
626
- } | {
627
- readonly inputs: readonly [{
628
- readonly internalType: "address";
629
- readonly name: "licenseTemplate";
630
- readonly type: "address";
631
- }, {
632
- readonly internalType: "uint256";
633
- readonly name: "licenseTermsId";
634
- readonly type: "uint256";
635
- }];
636
- readonly name: "LicensingModule__LicenseTermsNotFound";
637
- readonly type: "error";
638
- } | {
639
- readonly inputs: readonly [{
640
- readonly internalType: "address";
641
- readonly name: "childIpId";
642
- readonly type: "address";
643
- }, {
644
- readonly internalType: "uint256[]";
645
- readonly name: "licenseTokenIds";
646
- readonly type: "uint256[]";
647
- }];
648
- readonly name: "LicensingModule__LicenseTokenNotCompatibleForDerivative";
649
- readonly type: "error";
650
- } | {
651
- readonly inputs: readonly [];
652
- readonly name: "LicensingModule__LicensorDoesntHaveThisPolicy";
653
- readonly type: "error";
654
- } | {
655
- readonly inputs: readonly [];
656
- readonly name: "LicensingModule__LicensorNotRegistered";
657
- readonly type: "error";
658
- } | {
659
- readonly inputs: readonly [];
660
- readonly name: "LicensingModule__LinkParentParamFailed";
661
- readonly type: "error";
662
- } | {
663
- readonly inputs: readonly [];
664
- readonly name: "LicensingModule__LinkingRevokedLicense";
665
- readonly type: "error";
666
- } | {
667
- readonly inputs: readonly [];
668
- readonly name: "LicensingModule__MintAmountZero";
669
- readonly type: "error";
670
- } | {
671
- readonly inputs: readonly [];
672
- readonly name: "LicensingModule__MintLicenseParamFailed";
673
- readonly type: "error";
674
- } | {
675
- readonly inputs: readonly [];
676
- readonly name: "LicensingModule__MintingFeeTokenNotWhitelisted";
677
- readonly type: "error";
678
- } | {
679
- readonly inputs: readonly [];
680
- readonly name: "LicensingModule__MismatchBetweenRoyaltyPolicy";
681
- readonly type: "error";
682
- } | {
683
- readonly inputs: readonly [];
684
- readonly name: "LicensingModule__NoLicenseToken";
685
- readonly type: "error";
686
- } | {
687
- readonly inputs: readonly [];
688
- readonly name: "LicensingModule__NoParentIp";
689
- readonly type: "error";
690
- } | {
691
- readonly inputs: readonly [];
692
- readonly name: "LicensingModule__NotLicensee";
693
- readonly type: "error";
694
- } | {
695
- readonly inputs: readonly [];
696
- readonly name: "LicensingModule__ParamVerifierAlreadySet";
697
- readonly type: "error";
698
- } | {
699
- readonly inputs: readonly [];
700
- readonly name: "LicensingModule__ParamVerifierLengthMismatch";
701
- readonly type: "error";
702
- } | {
703
- readonly inputs: readonly [];
704
- readonly name: "LicensingModule__ParentIdEqualThanChild";
705
- readonly type: "error";
706
- } | {
707
- readonly inputs: readonly [{
708
- readonly internalType: "address";
709
- readonly name: "ipId";
710
- readonly type: "address";
711
- }];
712
- readonly name: "LicensingModule__ParentIpHasNoLicenseTerms";
713
- readonly type: "error";
714
- } | {
715
- readonly inputs: readonly [];
716
- readonly name: "LicensingModule__PolicyAlreadySetForIpId";
717
- readonly type: "error";
718
- } | {
719
- readonly inputs: readonly [];
720
- readonly name: "LicensingModule__PolicyNotFound";
721
- readonly type: "error";
722
- } | {
723
- readonly inputs: readonly [{
724
- readonly internalType: "address";
725
- readonly name: "receiver";
726
- readonly type: "address";
727
- }];
728
- readonly name: "LicensingModule__ReceiverCheckFailed";
729
- readonly type: "error";
730
- } | {
731
- readonly inputs: readonly [];
732
- readonly name: "LicensingModule__ReceiverZeroAddress";
733
- readonly type: "error";
734
- } | {
735
- readonly inputs: readonly [];
736
- readonly name: "LicensingModule__RegisterPolicyFrameworkMismatch";
737
- readonly type: "error";
738
- } | {
739
- readonly inputs: readonly [];
740
- readonly name: "LicensingModule__RoyaltyPolicyNotWhitelisted";
741
- readonly type: "error";
742
- } | {
743
- readonly inputs: readonly [];
744
- readonly name: "LicensingModule__TransferParamFailed";
745
- readonly type: "error";
746
- } | {
747
- readonly inputs: readonly [];
748
- readonly name: "LicensingModule__UnauthorizedAccess";
749
- readonly type: "error";
750
- } | {
751
- readonly inputs: readonly [];
752
- readonly name: "LicensingModule__UnregisteredFrameworkAddingPolicy";
753
- readonly type: "error";
754
- } | {
755
- readonly inputs: readonly [];
756
- readonly name: "LicensorApprovalChecker__Unauthorized";
757
- readonly type: "error";
758
- } | {
759
- readonly inputs: readonly [];
760
- readonly name: "MetadataProvider__HashInvalid";
761
- readonly type: "error";
762
- } | {
763
- readonly inputs: readonly [];
764
- readonly name: "MetadataProvider__IPAssetOwnerInvalid";
765
- readonly type: "error";
766
- } | {
767
- readonly inputs: readonly [];
768
- readonly name: "MetadataProvider__MetadataNotCompatible";
769
- readonly type: "error";
770
- } | {
771
- readonly inputs: readonly [];
772
- readonly name: "MetadataProvider__NameInvalid";
773
- readonly type: "error";
774
- } | {
775
- readonly inputs: readonly [];
776
- readonly name: "MetadataProvider__RegistrantInvalid";
777
- readonly type: "error";
778
- } | {
779
- readonly inputs: readonly [];
780
- readonly name: "MetadataProvider__RegistrationDateInvalid";
781
- readonly type: "error";
782
- } | {
783
- readonly inputs: readonly [];
784
- readonly name: "MetadataProvider__URIInvalid";
785
- readonly type: "error";
786
- } | {
787
- readonly inputs: readonly [];
788
- readonly name: "MetadataProvider__Unauthorized";
789
- readonly type: "error";
790
- } | {
791
- readonly inputs: readonly [];
792
- readonly name: "MetadataProvider__UpgradeProviderInvalid";
793
- readonly type: "error";
794
- } | {
795
- readonly inputs: readonly [];
796
- readonly name: "MetadataProvider__UpgradeUnavailable";
797
- readonly type: "error";
798
- } | {
799
- readonly inputs: readonly [];
800
- readonly name: "ModuleRegistry__InterfaceIdZero";
801
- readonly type: "error";
802
- } | {
803
- readonly inputs: readonly [];
804
- readonly name: "ModuleRegistry__ModuleAddressNotContract";
805
- readonly type: "error";
806
- } | {
807
- readonly inputs: readonly [];
808
- readonly name: "ModuleRegistry__ModuleAddressZeroAddress";
809
- readonly type: "error";
810
- } | {
811
- readonly inputs: readonly [];
812
- readonly name: "ModuleRegistry__ModuleAlreadyRegistered";
813
- readonly type: "error";
814
- } | {
815
- readonly inputs: readonly [];
816
- readonly name: "ModuleRegistry__ModuleNotRegistered";
817
- readonly type: "error";
818
- } | {
819
- readonly inputs: readonly [];
820
- readonly name: "ModuleRegistry__ModuleNotSupportExpectedModuleTypeInterfaceId";
821
- readonly type: "error";
822
- } | {
823
- readonly inputs: readonly [];
824
- readonly name: "ModuleRegistry__ModuleTypeAlreadyRegistered";
825
- readonly type: "error";
826
- } | {
827
- readonly inputs: readonly [];
828
- readonly name: "ModuleRegistry__ModuleTypeEmptyString";
829
- readonly type: "error";
830
- } | {
831
- readonly inputs: readonly [];
832
- readonly name: "ModuleRegistry__ModuleTypeNotRegistered";
833
- readonly type: "error";
834
- } | {
835
- readonly inputs: readonly [];
836
- readonly name: "ModuleRegistry__NameAlreadyRegistered";
837
- readonly type: "error";
838
- } | {
839
- readonly inputs: readonly [];
840
- readonly name: "ModuleRegistry__NameDoesNotMatch";
841
- readonly type: "error";
842
- } | {
843
- readonly inputs: readonly [];
844
- readonly name: "ModuleRegistry__NameEmptyString";
845
- readonly type: "error";
846
- } | {
847
- readonly inputs: readonly [];
848
- readonly name: "Module_Unauthorized";
849
- readonly type: "error";
850
- } | {
851
- readonly inputs: readonly [{
852
- readonly internalType: "address";
853
- readonly name: "commercializer";
854
- readonly type: "address";
855
- }];
856
- readonly name: "PolicyFrameworkManager__CommercializerCheckerDoesNotSupportHook";
857
- readonly type: "error";
858
- } | {
859
- readonly inputs: readonly [];
860
- readonly name: "PolicyFrameworkManager__GettingPolicyWrongFramework";
861
- readonly type: "error";
862
- } | {
863
- readonly inputs: readonly [];
864
- readonly name: "RoyaltyModule__CanOnlyMintSelectedPolicy";
865
- readonly type: "error";
866
- } | {
867
- readonly inputs: readonly [];
868
- readonly name: "RoyaltyModule__IncompatibleRoyaltyPolicy";
869
- readonly type: "error";
870
- } | {
871
- readonly inputs: readonly [];
872
- readonly name: "RoyaltyModule__IpIsTagged";
873
- readonly type: "error";
874
- } | {
875
- readonly inputs: readonly [];
876
- readonly name: "RoyaltyModule__NoParentsOnLinking";
877
- readonly type: "error";
878
- } | {
879
- readonly inputs: readonly [];
880
- readonly name: "RoyaltyModule__NoRoyaltyPolicySet";
881
- readonly type: "error";
882
- } | {
883
- readonly inputs: readonly [];
884
- readonly name: "RoyaltyModule__NotAllowedCaller";
885
- readonly type: "error";
886
- } | {
887
- readonly inputs: readonly [];
888
- readonly name: "RoyaltyModule__NotWhitelistedRoyaltyPolicy";
889
- readonly type: "error";
890
- } | {
891
- readonly inputs: readonly [];
892
- readonly name: "RoyaltyModule__NotWhitelistedRoyaltyToken";
893
- readonly type: "error";
894
- } | {
895
- readonly inputs: readonly [];
896
- readonly name: "RoyaltyModule__ZeroDisputeModule";
897
- readonly type: "error";
898
- } | {
899
- readonly inputs: readonly [];
900
- readonly name: "RoyaltyModule__ZeroLicensingModule";
901
- readonly type: "error";
902
- } | {
903
- readonly inputs: readonly [];
904
- readonly name: "RoyaltyModule__ZeroRoyaltyPolicy";
905
- readonly type: "error";
906
- } | {
907
- readonly inputs: readonly [];
908
- readonly name: "RoyaltyModule__ZeroRoyaltyToken";
909
- readonly type: "error";
910
- } | {
911
- readonly inputs: readonly [];
912
- readonly name: "RoyaltyPolicyLAP__AboveAncestorsLimit";
913
- readonly type: "error";
914
- } | {
915
- readonly inputs: readonly [];
916
- readonly name: "RoyaltyPolicyLAP__AboveParentLimit";
917
- readonly type: "error";
918
- } | {
919
- readonly inputs: readonly [];
920
- readonly name: "RoyaltyPolicyLAP__AboveRoyaltyStackLimit";
921
- readonly type: "error";
922
- } | {
923
- readonly inputs: readonly [];
924
- readonly name: "RoyaltyPolicyLAP__ImplementationAlreadySet";
925
- readonly type: "error";
926
- } | {
927
- readonly inputs: readonly [];
928
- readonly name: "RoyaltyPolicyLAP__InvalidParentRoyaltiesLength";
929
- readonly type: "error";
930
- } | {
931
- readonly inputs: readonly [];
932
- readonly name: "RoyaltyPolicyLAP__LastPositionNotAbleToMintLicense";
933
- readonly type: "error";
934
- } | {
935
- readonly inputs: readonly [];
936
- readonly name: "RoyaltyPolicyLAP__NotFullOwnership";
937
- readonly type: "error";
938
- } | {
939
- readonly inputs: readonly [];
940
- readonly name: "RoyaltyPolicyLAP__NotRoyaltyModule";
941
- readonly type: "error";
942
- } | {
943
- readonly inputs: readonly [];
944
- readonly name: "RoyaltyPolicyLAP__UnlinkableToParents";
945
- readonly type: "error";
946
- } | {
947
- readonly inputs: readonly [];
948
- readonly name: "RoyaltyPolicyLAP__ZeroAncestorsVaultImpl";
949
- readonly type: "error";
950
- } | {
951
- readonly inputs: readonly [];
952
- readonly name: "RoyaltyPolicyLAP__ZeroIpRoyaltyVaultBeacon";
953
- readonly type: "error";
954
- } | {
955
- readonly inputs: readonly [];
956
- readonly name: "RoyaltyPolicyLAP__ZeroLicensingModule";
957
- readonly type: "error";
958
- } | {
959
- readonly inputs: readonly [];
960
- readonly name: "RoyaltyPolicyLAP__ZeroLiquidSplitFactory";
961
- readonly type: "error";
962
- } | {
963
- readonly inputs: readonly [];
964
- readonly name: "RoyaltyPolicyLAP__ZeroLiquidSplitMain";
965
- readonly type: "error";
966
- } | {
967
- readonly inputs: readonly [];
968
- readonly name: "RoyaltyPolicyLAP__ZeroRoyaltyModule";
969
- readonly type: "error";
970
- } | {
971
- readonly inputs: readonly [{
972
- readonly internalType: "address";
973
- readonly name: "to";
974
- readonly type: "address";
975
- }, {
976
- readonly internalType: "uint256";
977
- readonly name: "value";
978
- readonly type: "uint256";
979
- }, {
980
- readonly internalType: "bytes";
981
- readonly name: "data";
982
- readonly type: "bytes";
983
- }];
984
- readonly name: "execute";
985
- readonly outputs: readonly [{
986
- readonly internalType: "bytes";
987
- readonly name: "result";
988
- readonly type: "bytes";
989
- }];
990
- readonly stateMutability: "payable";
991
- readonly type: "function";
992
- } | {
993
- readonly inputs: readonly [{
994
- readonly internalType: "address";
995
- readonly name: "to";
996
- readonly type: "address";
997
- }, {
998
- readonly internalType: "uint256";
999
- readonly name: "value";
1000
- readonly type: "uint256";
1001
- }, {
1002
- readonly internalType: "bytes";
1003
- readonly name: "data";
1004
- readonly type: "bytes";
1005
- }, {
1006
- readonly internalType: "address";
1007
- readonly name: "signer";
1008
- readonly type: "address";
1009
- }, {
1010
- readonly internalType: "uint256";
1011
- readonly name: "deadline";
1012
- readonly type: "uint256";
1013
- }, {
1014
- readonly internalType: "bytes";
1015
- readonly name: "signature";
1016
- readonly type: "bytes";
1017
- }];
1018
- readonly name: "executeWithSig";
1019
- readonly outputs: readonly [{
1020
- readonly internalType: "bytes";
1021
- readonly name: "result";
1022
- readonly type: "bytes";
1023
- }];
1024
- readonly stateMutability: "payable";
1025
- readonly type: "function";
1026
- })[];
1027
- accessControllerConfig: {
1028
- abi: ({
1029
- readonly inputs: readonly [{
1030
- readonly internalType: "address";
1031
- readonly name: "caller";
1032
- readonly type: "address";
1033
- }];
1034
- readonly name: "AccessControlled__CallerIsNotIpAccount";
1035
- readonly type: "error";
1036
- } | {
1037
- readonly inputs: readonly [{
1038
- readonly internalType: "address";
1039
- readonly name: "ipAccount";
1040
- readonly type: "address";
1041
- }];
1042
- readonly name: "AccessControlled__NotIpAccount";
1043
- readonly type: "error";
1044
- } | {
1045
- readonly inputs: readonly [];
1046
- readonly name: "AccessControlled__ZeroAddress";
1047
- readonly type: "error";
1048
- } | {
1049
- readonly inputs: readonly [{
1050
- readonly internalType: "address";
1051
- readonly name: "signer";
1052
- readonly type: "address";
1053
- }, {
1054
- readonly internalType: "address";
1055
- readonly name: "to";
1056
- readonly type: "address";
1057
- }];
1058
- readonly name: "AccessController__BothCallerAndRecipientAreNotRegisteredModule";
1059
- readonly type: "error";
1060
- } | {
1061
- readonly inputs: readonly [];
1062
- /**
1063
- * Sets the permission for a specific function call
1064
- * Each policy is represented as a mapping from an IP account address to a signer address to a recipient
1065
- * address to a function selector to a permission level. The permission level can be 0 (ABSTAIN), 1 (ALLOW), or
1066
- * 2 (DENY).
1067
- * By default, all policies are set to 0 (ABSTAIN), which means that the permission is not set.
1068
- * The owner of ipAccount by default has all permission.
1069
- * address(0) => wildcard
1070
- * bytes4(0) => wildcard
1071
- * Specific permission overrides wildcard permission.
1072
- * @param request The request object containing necessary data to set permissions.
1073
- * @param request.ipAsset The address of the IP account that grants the permission for `signer`
1074
- * @param request.signer The address that can call `to` on behalf of the `ipAccount`
1075
- * @param request.to The address that can be called by the `signer` (currently only modules can be `to`)
1076
- * @param request.func Optional. The function selector string of `to` that can be called by the `signer` on behalf of the `ipAccount`. Be default, it allows all functions.
1077
- * @param request.permission The new permission level
1078
- * @returns A Promise that resolves to an object containing the transaction hash
1079
- * @emits PermissionSet (ipAccountOwner, ipAccount, signer, to, func, permission)
1080
- */
1081
- readonly name: "AccessController__CallerIsNotIPAccount";
1082
- readonly type: "error";
1083
- } | {
1084
- readonly inputs: readonly [{
1085
- readonly internalType: "address";
1086
- readonly name: "ipAccount";
1087
- readonly type: "address";
1088
- }];
1089
- readonly name: "AccessController__IPAccountIsNotValid";
1090
- readonly type: "error";
1091
- } | {
1092
- readonly inputs: readonly [];
1093
- readonly name: "AccessController__IPAccountIsZeroAddress";
1094
- readonly type: "error";
1095
- } | {
1096
- readonly inputs: readonly [{
1097
- readonly internalType: "address";
1098
- readonly name: "ipAccount";
1099
- readonly type: "address";
1100
- }, {
1101
- readonly internalType: "address";
1102
- readonly name: "signer";
1103
- readonly type: "address";
1104
- }, {
1105
- readonly internalType: "address";
1106
- readonly name: "to";
1107
- readonly type: "address";
1108
- }, {
1109
- readonly internalType: "bytes4";
1110
- readonly name: "func";
1111
- readonly type: "bytes4";
1112
- }];
1113
- readonly name: "AccessController__PermissionDenied";
1114
- readonly type: "error";
1115
- } | {
1116
- readonly inputs: readonly [];
1117
- readonly name: "AccessController__PermissionIsNotValid";
1118
- readonly type: "error";
1119
- } | {
1120
- readonly inputs: readonly [];
1121
- readonly name: "AccessController__SignerIsZeroAddress";
1122
- readonly type: "error";
1123
- } | {
1124
- readonly inputs: readonly [];
1125
- readonly name: "ArbitrationPolicySP__NotDisputeModule";
1126
- readonly type: "error";
1127
- } | {
1128
- readonly inputs: readonly [];
1129
- readonly name: "ArbitrationPolicySP__ZeroDisputeModule";
1130
- readonly type: "error";
1131
- } | {
1132
- readonly inputs: readonly [];
1133
- readonly name: "ArbitrationPolicySP__ZeroPaymentToken";
1134
- readonly type: "error";
1135
- } | {
1136
- readonly inputs: readonly [];
1137
- readonly name: "BasePolicyFrameworkManager__CallerNotLicensingModule";
1138
- readonly type: "error";
1139
- } | {
1140
- readonly inputs: readonly [];
1141
- readonly name: "CoreMetadataModule__MetadataAlreadyFrozen";
1142
- readonly type: "error";
1143
- } | {
1144
- readonly inputs: readonly [];
1145
- readonly name: "DisputeModule__NotAbleToResolve";
1146
- readonly type: "error";
1147
- } | {
1148
- readonly inputs: readonly [];
1149
- readonly name: "DisputeModule__NotDisputeInitiator";
1150
- readonly type: "error";
1151
- } | {
1152
- readonly inputs: readonly [];
1153
- readonly name: "DisputeModule__NotInDisputeState";
1154
- readonly type: "error";
1155
- } | {
1156
- readonly inputs: readonly [];
1157
- readonly name: "DisputeModule__NotRegisteredIpId";
1158
- readonly type: "error";
1159
- } | {
1160
- readonly inputs: readonly [];
1161
- readonly name: "DisputeModule__NotWhitelistedArbitrationPolicy";
1162
- readonly type: "error";
1163
- } | {
1164
- readonly inputs: readonly [];
1165
- readonly name: "DisputeModule__NotWhitelistedArbitrationRelayer";
1166
- readonly type: "error";
1167
- } | {
1168
- readonly inputs: readonly [];
1169
- readonly name: "DisputeModule__NotWhitelistedDisputeTag";
1170
- readonly type: "error";
1171
- } | {
1172
- readonly inputs: readonly [];
1173
- readonly name: "DisputeModule__ZeroArbitrationPolicy";
1174
- readonly type: "error";
1175
- } | {
1176
- readonly inputs: readonly [];
1177
- readonly name: "DisputeModule__ZeroArbitrationRelayer";
1178
- readonly type: "error";
1179
- } | {
1180
- readonly inputs: readonly [];
1181
- readonly name: "DisputeModule__ZeroDisputeTag";
1182
- readonly type: "error";
1183
- } | {
1184
- readonly inputs: readonly [];
1185
- readonly name: "DisputeModule__ZeroLinkToDisputeEvidence";
1186
- readonly type: "error";
1187
- } | {
1188
- readonly inputs: readonly [];
1189
- readonly name: "IPAccountRegistry_InvalidIpAccountImpl";
1190
- readonly type: "error";
1191
- } | {
1192
- readonly inputs: readonly [];
1193
- readonly name: "IPAccount__ExpiredSignature";
1194
- readonly type: "error";
1195
- } | {
1196
- readonly inputs: readonly [];
1197
- readonly name: "IPAccount__InvalidAccessController";
1198
- readonly type: "error";
1199
- } | {
1200
- readonly inputs: readonly [];
1201
- readonly name: "IPAccount__InvalidCalldata";
1202
- readonly type: "error";
1203
- } | {
1204
- readonly inputs: readonly [];
1205
- readonly name: "IPAccount__InvalidSignature";
1206
- readonly type: "error";
1207
- } | {
1208
- readonly inputs: readonly [];
1209
- readonly name: "IPAccount__InvalidSigner";
1210
- readonly type: "error";
1211
- } | {
1212
- readonly inputs: readonly [];
1213
- readonly name: "IPAssetRegistry__AlreadyRegistered";
1214
- readonly type: "error";
1215
- } | {
1216
- readonly inputs: readonly [];
1217
- readonly name: "IPAssetRegistry__IPAccountAlreadyCreated";
1218
- readonly type: "error";
1219
- } | {
1220
- readonly inputs: readonly [];
1221
- readonly name: "IPAssetRegistry__InvalidAccount";
1222
- readonly type: "error";
1223
- } | {
1224
- readonly inputs: readonly [];
1225
- readonly name: "IPAssetRegistry__InvalidMetadataProvider";
1226
- readonly type: "error";
1227
- } | {
1228
- readonly inputs: readonly [{
1229
- readonly internalType: "address";
1230
- readonly name: "contractAddress";
1231
- readonly type: "address";
1232
- }, {
1233
- readonly internalType: "uint256";
1234
- readonly name: "tokenId";
1235
- readonly type: "uint256";
1236
- }];
1237
- readonly name: "IPAssetRegistry__InvalidToken";
1238
- readonly type: "error";
1239
- } | {
1240
- readonly inputs: readonly [];
1241
- readonly name: "IPAssetRegistry__NotYetRegistered";
1242
- readonly type: "error";
1243
- } | {
1244
- readonly inputs: readonly [];
1245
- readonly name: "IPAssetRegistry__RegistrantUnauthorized";
1246
- readonly type: "error";
1247
- } | {
1248
- readonly inputs: readonly [];
1249
- readonly name: "IPAssetRegistry__ResolverInvalid";
1250
- readonly type: "error";
1251
- } | {
1252
- readonly inputs: readonly [];
1253
- readonly name: "IPAssetRegistry__Unauthorized";
1254
- readonly type: "error";
1255
- } | {
1256
- readonly inputs: readonly [{
1257
- readonly internalType: "address";
1258
- readonly name: "contractAddress";
1259
- readonly type: "address";
1260
- }];
1261
- readonly name: "IPAssetRegistry__UnsupportedIERC721";
1262
- readonly type: "error";
1263
- } | {
1264
- readonly inputs: readonly [{
1265
- readonly internalType: "address";
1266
- readonly name: "contractAddress";
1267
- readonly type: "address";
1268
- }];
1269
- readonly name: "IPAssetRegistry__UnsupportedIERC721Metadata";
1270
- readonly type: "error";
1271
- } | {
1272
- readonly inputs: readonly [];
1273
- readonly name: "IPResolver_InvalidIP";
1274
- readonly type: "error";
1275
- } | {
1276
- readonly inputs: readonly [];
1277
- readonly name: "IPResolver_Unauthorized";
1278
- readonly type: "error";
1279
- } | {
1280
- readonly inputs: readonly [];
1281
- readonly name: "IpRoyaltyVault__AlreadyClaimed";
1282
- readonly type: "error";
1283
- } | {
1284
- readonly inputs: readonly [];
1285
- readonly name: "IpRoyaltyVault__ClaimerNotAnAncestor";
1286
- readonly type: "error";
1287
- } | {
1288
- readonly inputs: readonly [];
1289
- readonly name: "IpRoyaltyVault__IpTagged";
1290
- readonly type: "error";
1291
- } | {
1292
- readonly inputs: readonly [];
1293
- readonly name: "IpRoyaltyVault__NotRoyaltyPolicyLAP";
1294
- readonly type: "error";
1295
- } | {
1296
- readonly inputs: readonly [];
1297
- readonly name: "IpRoyaltyVault__SnapshotIntervalTooShort";
1298
- readonly type: "error";
1299
- } | {
1300
- readonly inputs: readonly [];
1301
- readonly name: "IpRoyaltyVault__ZeroDisputeModule";
1302
- readonly type: "error";
1303
- } | {
1304
- readonly inputs: readonly [];
1305
- readonly name: "IpRoyaltyVault__ZeroIpId";
1306
- readonly type: "error";
1307
- } | {
1308
- readonly inputs: readonly [];
1309
- readonly name: "IpRoyaltyVault__ZeroRoyaltyPolicyLAP";
1310
- readonly type: "error";
1311
- } | {
1312
- readonly inputs: readonly [];
1313
- readonly name: "LicenseRegistry__CallerNotLicensingModule";
1314
- readonly type: "error";
1315
- } | {
1316
- readonly inputs: readonly [{
1317
- readonly internalType: "address";
1318
- readonly name: "childIpId";
1319
- readonly type: "address";
1320
- }];
1321
- readonly name: "LicenseRegistry__DerivativeAlreadyRegistered";
1322
- readonly type: "error";
1323
- } | {
1324
- readonly inputs: readonly [{
1325
- readonly internalType: "address";
1326
- readonly name: "childIpId";
1327
- readonly type: "address";
1328
- }];
1329
- readonly name: "LicenseRegistry__DerivativeIpAlreadyHasLicense";
1330
- readonly type: "error";
1331
- } | {
1332
- readonly inputs: readonly [{
1333
- readonly internalType: "address";
1334
- readonly name: "ipId";
1335
- readonly type: "address";
1336
- }];
1337
- readonly name: "LicenseRegistry__DerivativeIsParent";
1338
- readonly type: "error";
1339
- } | {
1340
- readonly inputs: readonly [{
1341
- readonly internalType: "address";
1342
- readonly name: "ipId";
1343
- readonly type: "address";
1344
- }, {
1345
- readonly internalType: "uint256";
1346
- readonly name: "index";
1347
- readonly type: "uint256";
1348
- }, {
1349
- readonly internalType: "uint256";
1350
- readonly name: "length";
1351
- readonly type: "uint256";
1352
- }];
1353
- readonly name: "LicenseRegistry__IndexOutOfBounds";
1354
- readonly type: "error";
1355
- } | {
1356
- readonly inputs: readonly [{
1357
- readonly internalType: "address";
1358
- readonly name: "ipId";
1359
- readonly type: "address";
1360
- }];
1361
- readonly name: "LicenseRegistry__IpExpired";
1362
- readonly type: "error";
1363
- } | {
1364
- readonly inputs: readonly [{
1365
- readonly internalType: "address";
1366
- readonly name: "licenseTemplate";
1367
- readonly type: "address";
1368
- }, {
1369
- readonly internalType: "uint256";
1370
- readonly name: "licenseTermsId";
1371
- readonly type: "uint256";
1372
- }];
1373
- readonly name: "LicenseRegistry__LicenseTermsNotExists";
1374
- readonly type: "error";
1375
- } | {
1376
- readonly inputs: readonly [];
1377
- readonly name: "LicenseRegistry__NoParentIp";
1378
- readonly type: "error";
1379
- } | {
1380
- readonly inputs: readonly [{
1381
- readonly internalType: "address";
1382
- readonly name: "licenseTemplate";
1383
- readonly type: "address";
1384
- }];
1385
- readonly name: "LicenseRegistry__NotLicenseTemplate";
1386
- readonly type: "error";
1387
- } | {
1388
- readonly inputs: readonly [];
1389
- readonly name: "LicenseRegistry__NotTransferable";
1390
- readonly type: "error";
1391
- } | {
1392
- readonly inputs: readonly [{
1393
- readonly internalType: "address";
1394
- readonly name: "ipId";
1395
- readonly type: "address";
1396
- }];
1397
- readonly name: "LicenseRegistry__ParentIpExpired";
1398
- readonly type: "error";
1399
- } | {
1400
- readonly inputs: readonly [{
1401
- readonly internalType: "address";
1402
- readonly name: "ipId";
1403
- readonly type: "address";
1404
- }, {
1405
- readonly internalType: "uint256";
1406
- readonly name: "licenseTermsId";
1407
- readonly type: "uint256";
1408
- }];
1409
- readonly name: "LicenseRegistry__ParentIpHasNoLicenseTerms";
1410
- readonly type: "error";
1411
- } | {
1412
- readonly inputs: readonly [{
1413
- readonly internalType: "address";
1414
- readonly name: "ipId";
1415
- readonly type: "address";
1416
- }];
1417
- readonly name: "LicenseRegistry__ParentIpTagged";
1418
- readonly type: "error";
1419
- } | {
1420
- readonly inputs: readonly [{
1421
- readonly internalType: "address";
1422
- readonly name: "ipId";
1423
- readonly type: "address";
1424
- }, {
1425
- readonly internalType: "address";
1426
- readonly name: "licenseTemplate";
1427
- readonly type: "address";
1428
- }];
1429
- readonly name: "LicenseRegistry__ParentIpUnmachedLicenseTemplate";
1430
- readonly type: "error";
1431
- } | {
1432
- readonly inputs: readonly [{
1433
- readonly internalType: "address";
1434
- readonly name: "licenseTemplate";
1435
- readonly type: "address";
1436
- }];
1437
- readonly name: "LicenseRegistry__UnregisteredLicenseTemplate";
1438
- readonly type: "error";
1439
- } | {
1440
- readonly inputs: readonly [];
1441
- readonly name: "LicenseRegistry__ZeroDisputeModule";
1442
- readonly type: "error";
1443
- } | {
1444
- readonly inputs: readonly [];
1445
- readonly name: "LicenseRegistry__ZeroLicensingModule";
1446
- readonly type: "error";
1447
- } | {
1448
- readonly inputs: readonly [{
1449
- readonly internalType: "address";
1450
- readonly name: "licenseTemplate";
1451
- readonly type: "address";
1452
- }, {
1453
- readonly internalType: "address";
1454
- readonly name: "anotherLicenseTemplate";
1455
- readonly type: "address";
1456
- }];
1457
- readonly name: "LicenseToken__AllLicenseTokensMustFromSameLicenseTemplate";
1458
- readonly type: "error";
1459
- } | {
1460
- readonly inputs: readonly [];
1461
- readonly name: "LicenseToken__CallerNotLicensingModule";
1462
- readonly type: "error";
1463
- } | {
1464
- readonly inputs: readonly [{
1465
- readonly internalType: "uint256";
1466
- readonly name: "tokenId";
1467
- readonly type: "uint256";
1468
- }, {
1469
- readonly internalType: "uint256";
1470
- readonly name: "expiredAt";
1471
- readonly type: "uint256";
1472
- }, {
1473
- readonly internalType: "uint256";
1474
- readonly name: "currentTimestamp";
1475
- readonly type: "uint256";
1476
- }];
1477
- readonly name: "LicenseToken__LicenseTokenExpired";
1478
- readonly type: "error";
1479
- } | {
1480
- readonly inputs: readonly [{
1481
- readonly internalType: "uint256";
1482
- readonly name: "tokenId";
1483
- readonly type: "uint256";
1484
- }, {
1485
- readonly internalType: "address";
1486
- readonly name: "iPowner";
1487
- readonly type: "address";
1488
- }, {
1489
- readonly internalType: "address";
1490
- readonly name: "tokenOwner";
1491
- readonly type: "address";
1492
- }];
1493
- readonly name: "LicenseToken__NotLicenseTokenOwner";
1494
- readonly type: "error";
1495
- } | {
1496
- readonly inputs: readonly [];
1497
- readonly name: "LicenseToken__NotTransferable";
1498
- readonly type: "error";
1499
- } | {
1500
- readonly inputs: readonly [{
1501
- readonly internalType: "uint256";
1502
- readonly name: "tokenId";
1503
- readonly type: "uint256";
1504
- }];
1505
- readonly name: "LicenseToken__RevokedLicense";
1506
- readonly type: "error";
1507
- } | {
1508
- readonly inputs: readonly [];
1509
- readonly name: "LicenseToken__ZeroDisputeModule";
1510
- readonly type: "error";
1511
- } | {
1512
- readonly inputs: readonly [];
1513
- readonly name: "LicenseToken__ZeroLicensingModule";
1514
- readonly type: "error";
1515
- } | {
1516
- readonly inputs: readonly [];
1517
- readonly name: "LicensingModule__CallerNotLicenseRegistry";
1518
- readonly type: "error";
1519
- } | {
1520
- readonly inputs: readonly [{
1521
- readonly internalType: "address";
1522
- readonly name: "caller";
1523
- readonly type: "address";
1524
- }, {
1525
- readonly internalType: "address";
1526
- readonly name: "licensorIpId";
1527
- readonly type: "address";
1528
- }, {
1529
- readonly internalType: "address";
1530
- readonly name: "licenseTemplate";
1531
- readonly type: "address";
1532
- }, {
1533
- readonly internalType: "uint256";
1534
- readonly name: "licenseTermsId";
1535
- readonly type: "uint256";
1536
- }];
1537
- readonly name: "LicensingModule__CallerNotLicensorAndIpHasNotAttachedLicenseTerms";
1538
- readonly type: "error";
1539
- } | {
1540
- readonly inputs: readonly [];
1541
- readonly name: "LicensingModule__CallerNotLicensorAndPolicyNotSet";
1542
- readonly type: "error";
1543
- } | {
1544
- readonly inputs: readonly [];
1545
- readonly name: "LicensingModule__CommercialTermInNonCommercialPolicy";
1546
- readonly type: "error";
1547
- } | {
1548
- readonly inputs: readonly [{
1549
- readonly internalType: "address";
1550
- readonly name: "ipId";
1551
- readonly type: "address";
1552
- }];
1553
- readonly name: "LicensingModule__DerivativeAlreadyHasLicenseTerms";
1554
- readonly type: "error";
1555
- } | {
1556
- readonly inputs: readonly [];
1557
- readonly name: "LicensingModule__DerivativeAlreadyRegistered";
1558
- readonly type: "error";
1559
- } | {
1560
- readonly inputs: readonly [];
1561
- readonly name: "LicensingModule__DerivativeIsParent";
1562
- readonly type: "error";
1563
- } | {
1564
- readonly inputs: readonly [];
1565
- readonly name: "LicensingModule__DerivativeRevShareSumExceedsMaxRNFTSupply";
1566
- readonly type: "error";
1567
- } | {
1568
- readonly inputs: readonly [];
1569
- readonly name: "LicensingModule__DerivativesCannotAddLicenseTerms";
1570
- readonly type: "error";
1571
- } | {
1572
- readonly inputs: readonly [];
1573
- readonly name: "LicensingModule__DerivativesCannotAddPolicy";
1574
- readonly type: "error";
1575
- } | {
1576
- readonly inputs: readonly [];
1577
- readonly name: "LicensingModule__DisputedIpId";
1578
- readonly type: "error";
1579
- } | {
1580
- readonly inputs: readonly [];
1581
- readonly name: "LicensingModule__EmptyLicenseUrl";
1582
- readonly type: "error";
1583
- } | {
1584
- readonly inputs: readonly [];
1585
- readonly name: "LicensingModule__EmptyParamName";
1586
- readonly type: "error";
1587
- } | {
1588
- readonly inputs: readonly [];
1589
- readonly name: "LicensingModule__FrameworkNotFound";
1590
- readonly type: "error";
1591
- } | {
1592
- readonly inputs: readonly [];
1593
- readonly name: "LicensingModule__IncompatibleLicensorRoyaltyDerivativeRevShare";
1594
- readonly type: "error";
1595
- } | {
1596
- readonly inputs: readonly [{
1597
- readonly internalType: "address";
1598
- readonly name: "royaltyPolicy";
1599
- readonly type: "address";
1600
- }, {
1601
- readonly internalType: "address";
1602
- readonly name: "anotherRoyaltyPolicy";
1603
- readonly type: "address";
1604
- }];
1605
- readonly name: "LicensingModule__IncompatibleRoyaltyPolicy";
1606
- readonly type: "error";
1607
- } | {
1608
- readonly inputs: readonly [];
1609
- readonly name: "LicensingModule__IncompatibleRoyaltyPolicyAddress";
1610
- readonly type: "error";
1611
- } | {
1612
- readonly inputs: readonly [];
1613
- readonly name: "LicensingModule__IncompatibleRoyaltyPolicyDerivativeRevShare";
1614
- readonly type: "error";
1615
- } | {
1616
- readonly inputs: readonly [];
1617
- readonly name: "LicensingModule__InvalidLicensor";
1618
- readonly type: "error";
1619
- } | {
1620
- readonly inputs: readonly [];
1621
- readonly name: "LicensingModule__InvalidPolicyFramework";
1622
- readonly type: "error";
1623
- } | {
1624
- readonly inputs: readonly [];
1625
- readonly name: "LicensingModule__IpAlreadyLinked";
1626
- readonly type: "error";
1627
- } | {
1628
- readonly inputs: readonly [{
1629
- readonly internalType: "address";
1630
- readonly name: "childIpId";
1631
- readonly type: "address";
1632
- }];
1633
- readonly name: "LicensingModule__LicenseNotCompatibleForDerivative";
1634
- readonly type: "error";
1635
- } | {
1636
- readonly inputs: readonly [{
1637
- readonly internalType: "uint256";
1638
- readonly name: "ipLength";
1639
- readonly type: "uint256";
1640
- }, {
1641
- readonly internalType: "uint256";
1642
- readonly name: "licenseTermsLength";
1643
- readonly type: "uint256";
1644
- }];
1645
- readonly name: "LicensingModule__LicenseTermsLengthMismatch";
1646
- readonly type: "error";
1647
- } | {
1648
- readonly inputs: readonly [{
1649
- readonly internalType: "address";
1650
- readonly name: "licenseTemplate";
1651
- readonly type: "address";
1652
- }, {
1653
- readonly internalType: "uint256";
1654
- readonly name: "licenseTermsId";
1655
- readonly type: "uint256";
1656
- }];
1657
- readonly name: "LicensingModule__LicenseTermsNotFound";
1658
- readonly type: "error";
1659
- } | {
1660
- readonly inputs: readonly [{
1661
- readonly internalType: "address";
1662
- readonly name: "childIpId";
1663
- readonly type: "address";
1664
- }, {
1665
- readonly internalType: "uint256[]";
1666
- readonly name: "licenseTokenIds";
1667
- readonly type: "uint256[]";
1668
- }];
1669
- readonly name: "LicensingModule__LicenseTokenNotCompatibleForDerivative";
1670
- readonly type: "error";
1671
- } | {
1672
- readonly inputs: readonly [];
1673
- readonly name: "LicensingModule__LicensorDoesntHaveThisPolicy";
1674
- readonly type: "error";
1675
- } | {
1676
- readonly inputs: readonly [];
1677
- readonly name: "LicensingModule__LicensorNotRegistered";
1678
- readonly type: "error";
1679
- } | {
1680
- readonly inputs: readonly [];
1681
- readonly name: "LicensingModule__LinkParentParamFailed";
1682
- readonly type: "error";
1683
- } | {
1684
- readonly inputs: readonly [];
1685
- readonly name: "LicensingModule__LinkingRevokedLicense";
1686
- readonly type: "error";
1687
- } | {
1688
- readonly inputs: readonly [];
1689
- readonly name: "LicensingModule__MintAmountZero";
1690
- readonly type: "error";
1691
- } | {
1692
- readonly inputs: readonly [];
1693
- readonly name: "LicensingModule__MintLicenseParamFailed";
1694
- readonly type: "error";
1695
- } | {
1696
- readonly inputs: readonly [];
1697
- readonly name: "LicensingModule__MintingFeeTokenNotWhitelisted";
1698
- readonly type: "error";
1699
- } | {
1700
- readonly inputs: readonly [];
1701
- readonly name: "LicensingModule__MismatchBetweenRoyaltyPolicy";
1702
- readonly type: "error";
1703
- } | {
1704
- readonly inputs: readonly [];
1705
- readonly name: "LicensingModule__NoLicenseToken";
1706
- readonly type: "error";
1707
- } | {
1708
- readonly inputs: readonly [];
1709
- readonly name: "LicensingModule__NoParentIp";
1710
- readonly type: "error";
1711
- } | {
1712
- readonly inputs: readonly [];
1713
- readonly name: "LicensingModule__NotLicensee";
1714
- readonly type: "error";
1715
- } | {
1716
- readonly inputs: readonly [];
1717
- readonly name: "LicensingModule__ParamVerifierAlreadySet";
1718
- readonly type: "error";
1719
- } | {
1720
- readonly inputs: readonly [];
1721
- readonly name: "LicensingModule__ParamVerifierLengthMismatch";
1722
- readonly type: "error";
1723
- } | {
1724
- readonly inputs: readonly [];
1725
- readonly name: "LicensingModule__ParentIdEqualThanChild";
1726
- readonly type: "error";
1727
- } | {
1728
- readonly inputs: readonly [{
1729
- readonly internalType: "address";
1730
- readonly name: "ipId";
1731
- readonly type: "address";
1732
- }];
1733
- readonly name: "LicensingModule__ParentIpHasNoLicenseTerms";
1734
- readonly type: "error";
1735
- } | {
1736
- readonly inputs: readonly [];
1737
- readonly name: "LicensingModule__PolicyAlreadySetForIpId";
1738
- readonly type: "error";
1739
- } | {
1740
- readonly inputs: readonly [];
1741
- readonly name: "LicensingModule__PolicyNotFound";
1742
- readonly type: "error";
1743
- } | {
1744
- readonly inputs: readonly [{
1745
- readonly internalType: "address";
1746
- readonly name: "receiver";
1747
- readonly type: "address";
1748
- }];
1749
- readonly name: "LicensingModule__ReceiverCheckFailed";
1750
- readonly type: "error";
1751
- } | {
1752
- readonly inputs: readonly [];
1753
- readonly name: "LicensingModule__ReceiverZeroAddress";
1754
- readonly type: "error";
1755
- } | {
1756
- readonly inputs: readonly [];
1757
- readonly name: "LicensingModule__RegisterPolicyFrameworkMismatch";
1758
- readonly type: "error";
1759
- } | {
1760
- readonly inputs: readonly [];
1761
- readonly name: "LicensingModule__RoyaltyPolicyNotWhitelisted";
1762
- readonly type: "error";
1763
- } | {
1764
- readonly inputs: readonly [];
1765
- readonly name: "LicensingModule__TransferParamFailed";
1766
- readonly type: "error";
1767
- } | {
1768
- readonly inputs: readonly [];
1769
- readonly name: "LicensingModule__UnauthorizedAccess";
1770
- readonly type: "error";
1771
- } | {
1772
- readonly inputs: readonly [];
1773
- readonly name: "LicensingModule__UnregisteredFrameworkAddingPolicy";
1774
- readonly type: "error";
1775
- } | {
1776
- readonly inputs: readonly [];
1777
- readonly name: "LicensorApprovalChecker__Unauthorized";
1778
- readonly type: "error";
1779
- } | {
1780
- readonly inputs: readonly [];
1781
- readonly name: "MetadataProvider__HashInvalid";
1782
- readonly type: "error";
1783
- } | {
1784
- readonly inputs: readonly [];
1785
- readonly name: "MetadataProvider__IPAssetOwnerInvalid";
1786
- readonly type: "error";
1787
- } | {
1788
- readonly inputs: readonly [];
1789
- readonly name: "MetadataProvider__MetadataNotCompatible";
1790
- readonly type: "error";
1791
- } | {
1792
- readonly inputs: readonly [];
1793
- readonly name: "MetadataProvider__NameInvalid";
1794
- readonly type: "error";
1795
- } | {
1796
- readonly inputs: readonly [];
1797
- readonly name: "MetadataProvider__RegistrantInvalid";
1798
- readonly type: "error";
1799
- } | {
1800
- readonly inputs: readonly [];
1801
- readonly name: "MetadataProvider__RegistrationDateInvalid";
1802
- readonly type: "error";
1803
- } | {
1804
- readonly inputs: readonly [];
1805
- readonly name: "MetadataProvider__URIInvalid";
1806
- readonly type: "error";
1807
- } | {
1808
- readonly inputs: readonly [];
1809
- readonly name: "MetadataProvider__Unauthorized";
1810
- readonly type: "error";
1811
- } | {
1812
- readonly inputs: readonly [];
1813
- readonly name: "MetadataProvider__UpgradeProviderInvalid";
1814
- readonly type: "error";
1815
- } | {
1816
- readonly inputs: readonly [];
1817
- readonly name: "MetadataProvider__UpgradeUnavailable";
1818
- readonly type: "error";
1819
- } | {
1820
- readonly inputs: readonly [];
1821
- readonly name: "ModuleRegistry__InterfaceIdZero";
1822
- readonly type: "error";
1823
- } | {
1824
- readonly inputs: readonly [];
1825
- readonly name: "ModuleRegistry__ModuleAddressNotContract";
1826
- readonly type: "error";
1827
- } | {
1828
- readonly inputs: readonly [];
1829
- readonly name: "ModuleRegistry__ModuleAddressZeroAddress";
1830
- readonly type: "error";
1831
- } | {
1832
- readonly inputs: readonly [];
1833
- readonly name: "ModuleRegistry__ModuleAlreadyRegistered";
1834
- readonly type: "error";
1835
- } | {
1836
- readonly inputs: readonly [];
1837
- readonly name: "ModuleRegistry__ModuleNotRegistered";
1838
- readonly type: "error";
1839
- } | {
1840
- readonly inputs: readonly [];
1841
- readonly name: "ModuleRegistry__ModuleNotSupportExpectedModuleTypeInterfaceId";
1842
- readonly type: "error";
1843
- } | {
1844
- readonly inputs: readonly [];
1845
- readonly name: "ModuleRegistry__ModuleTypeAlreadyRegistered";
1846
- readonly type: "error";
1847
- } | {
1848
- readonly inputs: readonly [];
1849
- readonly name: "ModuleRegistry__ModuleTypeEmptyString";
1850
- readonly type: "error";
1851
- } | {
1852
- readonly inputs: readonly [];
1853
- readonly name: "ModuleRegistry__ModuleTypeNotRegistered";
1854
- readonly type: "error";
1855
- } | {
1856
- readonly inputs: readonly [];
1857
- readonly name: "ModuleRegistry__NameAlreadyRegistered";
1858
- readonly type: "error";
1859
- } | {
1860
- readonly inputs: readonly [];
1861
- readonly name: "ModuleRegistry__NameDoesNotMatch";
1862
- readonly type: "error";
1863
- } | {
1864
- readonly inputs: readonly [];
1865
- readonly name: "ModuleRegistry__NameEmptyString";
1866
- readonly type: "error";
1867
- } | {
1868
- readonly inputs: readonly [];
1869
- readonly name: "Module_Unauthorized";
1870
- readonly type: "error";
1871
- } | {
1872
- readonly inputs: readonly [{
1873
- readonly internalType: "address";
1874
- readonly name: "commercializer";
1875
- readonly type: "address";
1876
- }];
1877
- readonly name: "PolicyFrameworkManager__CommercializerCheckerDoesNotSupportHook";
1878
- readonly type: "error";
1879
- } | {
1880
- readonly inputs: readonly [];
1881
- readonly name: "PolicyFrameworkManager__GettingPolicyWrongFramework";
1882
- readonly type: "error";
1883
- } | {
1884
- readonly inputs: readonly [];
1885
- readonly name: "RoyaltyModule__CanOnlyMintSelectedPolicy";
1886
- readonly type: "error";
1887
- } | {
1888
- readonly inputs: readonly [];
1889
- readonly name: "RoyaltyModule__IncompatibleRoyaltyPolicy";
1890
- readonly type: "error";
1891
- } | {
1892
- readonly inputs: readonly [];
1893
- readonly name: "RoyaltyModule__IpIsTagged";
1894
- readonly type: "error";
1895
- } | {
1896
- readonly inputs: readonly [];
1897
- readonly name: "RoyaltyModule__NoParentsOnLinking";
1898
- readonly type: "error";
1899
- } | {
1900
- readonly inputs: readonly [];
1901
- readonly name: "RoyaltyModule__NoRoyaltyPolicySet";
1902
- readonly type: "error";
1903
- } | {
1904
- readonly inputs: readonly [];
1905
- readonly name: "RoyaltyModule__NotAllowedCaller";
1906
- readonly type: "error";
1907
- } | {
1908
- readonly inputs: readonly [];
1909
- readonly name: "RoyaltyModule__NotWhitelistedRoyaltyPolicy";
1910
- readonly type: "error";
1911
- } | {
1912
- readonly inputs: readonly [];
1913
- readonly name: "RoyaltyModule__NotWhitelistedRoyaltyToken";
1914
- readonly type: "error";
1915
- } | {
1916
- readonly inputs: readonly [];
1917
- readonly name: "RoyaltyModule__ZeroDisputeModule";
1918
- readonly type: "error";
1919
- } | {
1920
- readonly inputs: readonly [];
1921
- readonly name: "RoyaltyModule__ZeroLicensingModule";
1922
- readonly type: "error";
1923
- } | {
1924
- readonly inputs: readonly [];
1925
- readonly name: "RoyaltyModule__ZeroRoyaltyPolicy";
1926
- readonly type: "error";
1927
- } | {
1928
- readonly inputs: readonly [];
1929
- readonly name: "RoyaltyModule__ZeroRoyaltyToken";
1930
- readonly type: "error";
1931
- } | {
1932
- readonly inputs: readonly [];
1933
- readonly name: "RoyaltyPolicyLAP__AboveAncestorsLimit";
1934
- readonly type: "error";
1935
- } | {
1936
- readonly inputs: readonly [];
1937
- readonly name: "RoyaltyPolicyLAP__AboveParentLimit";
1938
- readonly type: "error";
1939
- } | {
1940
- readonly inputs: readonly [];
1941
- readonly name: "RoyaltyPolicyLAP__AboveRoyaltyStackLimit";
1942
- readonly type: "error";
1943
- } | {
1944
- readonly inputs: readonly [];
1945
- readonly name: "RoyaltyPolicyLAP__ImplementationAlreadySet";
1946
- readonly type: "error";
1947
- } | {
1948
- readonly inputs: readonly [];
1949
- readonly name: "RoyaltyPolicyLAP__InvalidParentRoyaltiesLength";
1950
- readonly type: "error";
1951
- } | {
1952
- readonly inputs: readonly [];
1953
- readonly name: "RoyaltyPolicyLAP__LastPositionNotAbleToMintLicense";
1954
- readonly type: "error";
1955
- } | {
1956
- readonly inputs: readonly [];
1957
- readonly name: "RoyaltyPolicyLAP__NotFullOwnership";
1958
- readonly type: "error";
1959
- } | {
1960
- readonly inputs: readonly [];
1961
- readonly name: "RoyaltyPolicyLAP__NotRoyaltyModule";
1962
- readonly type: "error";
1963
- } | {
1964
- readonly inputs: readonly [];
1965
- readonly name: "RoyaltyPolicyLAP__UnlinkableToParents";
1966
- readonly type: "error";
1967
- } | {
1968
- readonly inputs: readonly [];
1969
- readonly name: "RoyaltyPolicyLAP__ZeroAncestorsVaultImpl";
1970
- readonly type: "error";
1971
- } | {
1972
- readonly inputs: readonly [];
1973
- readonly name: "RoyaltyPolicyLAP__ZeroIpRoyaltyVaultBeacon";
1974
- readonly type: "error";
1975
- } | {
1976
- readonly inputs: readonly [];
1977
- readonly name: "RoyaltyPolicyLAP__ZeroLicensingModule";
1978
- readonly type: "error";
1979
- } | {
1980
- readonly inputs: readonly [];
1981
- readonly name: "RoyaltyPolicyLAP__ZeroLiquidSplitFactory";
1982
- readonly type: "error";
1983
- } | {
1984
- readonly inputs: readonly [];
1985
- readonly name: "RoyaltyPolicyLAP__ZeroLiquidSplitMain";
1986
- readonly type: "error";
1987
- } | {
1988
- readonly inputs: readonly [];
1989
- readonly name: "RoyaltyPolicyLAP__ZeroRoyaltyModule";
1990
- readonly type: "error";
1991
- } | {
1992
- readonly anonymous: false;
1993
- readonly inputs: readonly [{
1994
- readonly indexed: false;
1995
- readonly internalType: "address";
1996
- readonly name: "ipAccountOwner";
1997
- readonly type: "address";
1998
- }, {
1999
- readonly indexed: true;
2000
- readonly internalType: "address";
2001
- readonly name: "ipAccount";
2002
- readonly type: "address";
2003
- }, {
2004
- readonly indexed: true;
2005
- readonly internalType: "address";
2006
- readonly name: "signer";
2007
- readonly type: "address";
2008
- }, {
2009
- readonly indexed: true;
2010
- readonly internalType: "address";
2011
- readonly name: "to";
2012
- readonly type: "address";
2013
- }, {
2014
- readonly indexed: false;
2015
- readonly internalType: "bytes4";
2016
- readonly name: "func";
2017
- readonly type: "bytes4";
2018
- }, {
2019
- readonly indexed: false;
2020
- readonly internalType: "uint8";
2021
- readonly name: "permission";
2022
- readonly type: "uint8";
2023
- }];
2024
- readonly name: "PermissionSet";
2025
- readonly type: "event";
2026
- } | {
2027
- readonly inputs: readonly [{
2028
- readonly internalType: "address";
2029
- readonly name: "ipAccount";
2030
- readonly type: "address";
2031
- }, {
2032
- readonly internalType: "address";
2033
- readonly name: "signer";
2034
- readonly type: "address";
2035
- }, {
2036
- readonly internalType: "address";
2037
- readonly name: "to";
2038
- readonly type: "address";
2039
- }, {
2040
- readonly internalType: "bytes4";
2041
- readonly name: "func";
2042
- readonly type: "bytes4";
2043
- }, {
2044
- readonly internalType: "uint8";
2045
- readonly name: "permission";
2046
- readonly type: "uint8";
2047
- }];
2048
- readonly name: "setPermission";
2049
- readonly outputs: readonly [];
2050
- readonly stateMutability: "nonpayable";
2051
- readonly type: "function";
2052
- })[];
2053
- address: `0x${string}`;
2054
- };
2055
- constructor(rpcClient: PublicClient, wallet: WalletClient, chainId: SupportedChainIds);
7
+ private accessControllerClient;
8
+ constructor(rpcClient: PublicClient, wallet: SimpleWalletClient);
2056
9
  /**
2057
10
  * Sets the permission for a specific function call
2058
11
  * Each policy is represented as a mapping from an IP account address to a signer address to a recipient