@story-protocol/core-sdk 0.0.1-beta-rc.11 → 0.0.1-beta-rc.12

Sign up to get free protection for your applications and to get access to all the features.
Files changed (28) hide show
  1. package/dist/declarations/src/client.d.ts +9 -0
  2. package/dist/declarations/src/client.d.ts.map +1 -1
  3. package/dist/declarations/src/index.d.ts +2 -1
  4. package/dist/declarations/src/index.d.ts.map +1 -1
  5. package/dist/declarations/src/resources/dispute.d.ts +103 -78
  6. package/dist/declarations/src/resources/dispute.d.ts.map +1 -1
  7. package/dist/declarations/src/resources/ipAccount.d.ts +84 -76
  8. package/dist/declarations/src/resources/ipAccount.d.ts.map +1 -1
  9. package/dist/declarations/src/resources/ipAsset.d.ts +26 -756
  10. package/dist/declarations/src/resources/ipAsset.d.ts.map +1 -1
  11. package/dist/declarations/src/resources/license.d.ts +875 -858
  12. package/dist/declarations/src/resources/license.d.ts.map +1 -1
  13. package/dist/declarations/src/resources/permission.d.ts +271 -216
  14. package/dist/declarations/src/resources/permission.d.ts.map +1 -1
  15. package/dist/declarations/src/resources/policy.d.ts +1094 -277
  16. package/dist/declarations/src/resources/policy.d.ts.map +1 -1
  17. package/dist/declarations/src/resources/royalty.d.ts +2155 -0
  18. package/dist/declarations/src/resources/royalty.d.ts.map +1 -0
  19. package/dist/declarations/src/types/config.d.ts +4 -1
  20. package/dist/declarations/src/types/config.d.ts.map +1 -1
  21. package/dist/declarations/src/types/resources/ipAsset.d.ts +4 -20
  22. package/dist/declarations/src/types/resources/ipAsset.d.ts.map +1 -1
  23. package/dist/declarations/src/types/resources/royalty.d.ts +41 -0
  24. package/dist/declarations/src/types/resources/royalty.d.ts.map +1 -1
  25. package/dist/story-protocol-core-sdk.cjs.dev.js +864 -613
  26. package/dist/story-protocol-core-sdk.cjs.prod.js +864 -613
  27. package/dist/story-protocol-core-sdk.esm.js +866 -615
  28. package/package.json +1 -1
@@ -1,5 +1,6 @@
1
1
  import { PublicClient, WalletClient } from "viem";
2
2
  import { RegisterPILPolicyRequest, RegisterPILPolicyResponse, RegisterPILSocialRemixPolicyRequest, RegisterPILSocialRemixPolicyResponse, RegisterPILCommercialUsePolicyRequest, RegisterPILCommercialUsePolicyResponse, AddPolicyToIpRequest, AddPolicyToIpResponse } from "../types/resources/policy.js";
3
+ import { SupportedChainIds } from "../types/config.js";
3
4
  export declare class PolicyClient {
4
5
  private readonly wallet;
5
6
  private readonly rpcClient;
@@ -23,6 +24,18 @@ export declare class PolicyClient {
23
24
  readonly inputs: readonly [];
24
25
  readonly name: "AccessControlled__ZeroAddress";
25
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";
26
39
  } | {
27
40
  readonly inputs: readonly [];
28
41
  readonly name: "AccessController__CallerIsNotIPAccount";
@@ -46,7 +59,25 @@ export declare class PolicyClient {
46
59
  readonly type: "address";
47
60
  }, {
48
61
  readonly internalType: "address";
49
- readonly name: "signer";
62
+ readonly name: "signer"; /**
63
+ * Registers a PIL policy to the registry
64
+ * Internally, this function must generate a Licensing.Policy struct and call registerPolicy.
65
+ * @param request - the licensing parameters for the Programmable IP License v1 (PIL) standard.
66
+ * @param request.transferable Whether or not the license is transferable
67
+ * @param request.attribution Whether or not attribution is required when reproducing the work
68
+ * @param request.commercialUse Whether or not the work can be used commercially
69
+ * @param request.commercialAttribution Whether or not attribution is required when reproducing the work commercially
70
+ * @param request.commercializerChecker commericializers that are allowed to commercially exploit the work. If zero address, then no restrictions is enforced.
71
+ * @param request.commercialRevShare Percentage of revenue that must be shared with the licensor
72
+ * @param request.derivativesAllowed Whether or not the licensee can create derivatives of his work
73
+ * @param request.derivativesAttribution Whether or not attribution is required for derivatives of the work
74
+ * @param request.derivativesApproval Whether or not the licensor must approve derivatives of the work before they can be linked to the licensor IP ID
75
+ * @param request.derivativesReciprocal Whether or not the licensee must license derivatives of the work under the same terms.
76
+ * @param request.territories List of territories where the license is valid. If empty, global.
77
+ * @param request.distributionChannels List of distribution channels where the license is valid. Empty if no restrictions.
78
+ * @param request.royaltyPolicy Address of a royalty policy contract (e.g. RoyaltyPolicyLS) that will handle royalty payments
79
+ * @returns the transaction hash and the policy ID if the txOptions.waitForTransaction is set to true
80
+ */
50
81
  readonly type: "address";
51
82
  }, {
52
83
  readonly internalType: "address";
@@ -63,61 +94,29 @@ export declare class PolicyClient {
63
94
  readonly inputs: readonly [];
64
95
  readonly name: "AccessController__PermissionIsNotValid";
65
96
  readonly type: "error";
66
- } | {
67
- readonly inputs: readonly [{
68
- readonly internalType: "address";
69
- readonly name: "to";
70
- readonly type: "address";
71
- }];
72
- readonly name: "AccessController__RecipientIsNotRegisteredModule";
73
- readonly type: "error";
74
97
  } | {
75
98
  readonly inputs: readonly [];
76
99
  readonly name: "AccessController__SignerIsZeroAddress";
77
100
  readonly type: "error";
78
101
  } | {
79
102
  readonly inputs: readonly [];
80
- readonly name: "AncestorsVaultLAP__AlreadyClaimed";
81
- readonly type: "error";
82
- } | {
83
- readonly inputs: readonly [];
84
- readonly name: "AncestorsVaultLAP__ClaimerNotAnAncestor";
85
- readonly type: "error";
86
- } | {
87
- readonly inputs: readonly [];
88
- readonly name: "AncestorsVaultLAP__ERC20BalanceNotZero";
89
- readonly type: "error";
90
- } | {
91
- readonly inputs: readonly [];
92
- readonly name: "AncestorsVaultLAP__ETHBalanceNotZero";
93
- readonly type: "error";
94
- } | {
95
- readonly inputs: readonly [];
96
- readonly name: "AncestorsVaultLAP__InvalidAncestorsHash";
97
- readonly type: "error";
98
- } | {
99
- readonly inputs: readonly [];
100
- readonly name: "AncestorsVaultLAP__InvalidClaimer";
101
- readonly type: "error";
102
- } | {
103
- readonly inputs: readonly [];
104
- readonly name: "AncestorsVaultLAP__TransferFailed";
103
+ readonly name: "ArbitrationPolicySP__NotDisputeModule";
105
104
  readonly type: "error";
106
105
  } | {
107
106
  readonly inputs: readonly [];
108
- readonly name: "AncestorsVaultLAP__ZeroRoyaltyPolicyLAP";
107
+ readonly name: "ArbitrationPolicySP__ZeroDisputeModule";
109
108
  readonly type: "error";
110
109
  } | {
111
110
  readonly inputs: readonly [];
112
- readonly name: "ArbitrationPolicySP__NotDisputeModule";
111
+ readonly name: "ArbitrationPolicySP__ZeroPaymentToken";
113
112
  readonly type: "error";
114
113
  } | {
115
114
  readonly inputs: readonly [];
116
- readonly name: "ArbitrationPolicySP__ZeroDisputeModule";
115
+ readonly name: "BasePolicyFrameworkManager__CallerNotLicensingModule";
117
116
  readonly type: "error";
118
117
  } | {
119
118
  readonly inputs: readonly [];
120
- readonly name: "ArbitrationPolicySP__ZeroPaymentToken";
119
+ readonly name: "CoreMetadataModule__MetadataAlreadyFrozen";
121
120
  readonly type: "error";
122
121
  } | {
123
122
  readonly inputs: readonly [];
@@ -147,10 +146,6 @@ export declare class PolicyClient {
147
146
  readonly inputs: readonly [];
148
147
  readonly name: "DisputeModule__NotWhitelistedDisputeTag";
149
148
  readonly type: "error";
150
- } | {
151
- readonly inputs: readonly [];
152
- readonly name: "DisputeModule__UnauthorizedAccess";
153
- readonly type: "error";
154
149
  } | {
155
150
  readonly inputs: readonly [];
156
151
  readonly name: "DisputeModule__ZeroArbitrationPolicy";
@@ -235,6 +230,18 @@ export declare class PolicyClient {
235
230
  readonly inputs: readonly [];
236
231
  readonly name: "IPAssetRegistry__InvalidMetadataProvider";
237
232
  readonly type: "error";
233
+ } | {
234
+ readonly inputs: readonly [{
235
+ readonly internalType: "address";
236
+ readonly name: "contractAddress";
237
+ readonly type: "address";
238
+ }, {
239
+ readonly internalType: "uint256";
240
+ readonly name: "tokenId";
241
+ readonly type: "uint256";
242
+ }];
243
+ readonly name: "IPAssetRegistry__InvalidToken";
244
+ readonly type: "error";
238
245
  } | {
239
246
  readonly inputs: readonly [];
240
247
  readonly name: "IPAssetRegistry__NotYetRegistered";
@@ -251,6 +258,22 @@ export declare class PolicyClient {
251
258
  readonly inputs: readonly [];
252
259
  readonly name: "IPAssetRegistry__Unauthorized";
253
260
  readonly type: "error";
261
+ } | {
262
+ readonly inputs: readonly [{
263
+ readonly internalType: "address";
264
+ readonly name: "contractAddress";
265
+ readonly type: "address";
266
+ }];
267
+ readonly name: "IPAssetRegistry__UnsupportedIERC721";
268
+ readonly type: "error";
269
+ } | {
270
+ readonly inputs: readonly [{
271
+ readonly internalType: "address";
272
+ readonly name: "contractAddress";
273
+ readonly type: "address";
274
+ }];
275
+ readonly name: "IPAssetRegistry__UnsupportedIERC721Metadata";
276
+ readonly type: "error";
254
277
  } | {
255
278
  readonly inputs: readonly [];
256
279
  readonly name: "IPResolver_InvalidIP";
@@ -259,6 +282,30 @@ export declare class PolicyClient {
259
282
  readonly inputs: readonly [];
260
283
  readonly name: "IPResolver_Unauthorized";
261
284
  readonly type: "error";
285
+ } | {
286
+ readonly inputs: readonly [];
287
+ readonly name: "IpRoyaltyVault__AlreadyClaimed";
288
+ readonly type: "error";
289
+ } | {
290
+ readonly inputs: readonly [];
291
+ readonly name: "IpRoyaltyVault__ClaimerNotAnAncestor";
292
+ readonly type: "error";
293
+ } | {
294
+ readonly inputs: readonly [];
295
+ readonly name: "IpRoyaltyVault__NotRoyaltyPolicyLAP";
296
+ readonly type: "error";
297
+ } | {
298
+ readonly inputs: readonly [];
299
+ readonly name: "IpRoyaltyVault__SnapshotIntervalTooShort";
300
+ readonly type: "error";
301
+ } | {
302
+ readonly inputs: readonly [];
303
+ readonly name: "IpRoyaltyVault__ZeroIpId";
304
+ readonly type: "error";
305
+ } | {
306
+ readonly inputs: readonly [];
307
+ readonly name: "IpRoyaltyVault__ZeroRoyaltyPolicyLAP";
308
+ readonly type: "error";
262
309
  } | {
263
310
  readonly inputs: readonly [];
264
311
  readonly name: "LicenseRegistry__CallerNotLicensingModule";
@@ -279,10 +326,6 @@ export declare class PolicyClient {
279
326
  readonly inputs: readonly [];
280
327
  readonly name: "LicenseRegistry__ZeroLicensingModule";
281
328
  readonly type: "error";
282
- } | {
283
- readonly inputs: readonly [];
284
- readonly name: "LicensingModuleAware__CallerNotLicensingModule";
285
- readonly type: "error";
286
329
  } | {
287
330
  readonly inputs: readonly [];
288
331
  readonly name: "LicensingModule__CallerNotLicenseRegistry";
@@ -343,6 +386,10 @@ export declare class PolicyClient {
343
386
  readonly inputs: readonly [];
344
387
  readonly name: "LicensingModule__InvalidPolicyFramework";
345
388
  readonly type: "error";
389
+ } | {
390
+ readonly inputs: readonly [];
391
+ readonly name: "LicensingModule__IpAlreadyLinked";
392
+ readonly type: "error";
346
393
  } | {
347
394
  readonly inputs: readonly [];
348
395
  readonly name: "LicensingModule__LicensorDoesntHaveThisPolicy";
@@ -359,6 +406,10 @@ export declare class PolicyClient {
359
406
  readonly inputs: readonly [];
360
407
  readonly name: "LicensingModule__LinkingRevokedLicense";
361
408
  readonly type: "error";
409
+ } | {
410
+ readonly inputs: readonly [];
411
+ readonly name: "LicensingModule__MintAmountZero";
412
+ readonly type: "error";
362
413
  } | {
363
414
  readonly inputs: readonly [];
364
415
  readonly name: "LicensingModule__MintLicenseParamFailed";
@@ -397,6 +448,21 @@ export declare class PolicyClient {
397
448
  readonly type: "error";
398
449
  } | {
399
450
  readonly inputs: readonly [];
451
+ readonly name: "LicensingModule__ReceiverZeroAddress";
452
+ readonly type: "error";
453
+ } | {
454
+ readonly inputs: readonly []; /**
455
+ * Convenient function to register a PIL social remix policy to the registry
456
+ * Internally, this function must generate a Licensing.Policy struct and call registerPolicy.
457
+ * @param request - the licensing parameters for the Programmable IP License v1 (PIL) standard.
458
+ * @param request.commercialRevShare Percentage of revenue that must be shared with the licensor
459
+ * @param mintingFee Fee to be paid when minting a license
460
+ * @param mintingFeeToken Token to be used to pay the minting fee
461
+ * @param request.territories List of territories where the license is valid. If empty, global.
462
+ * @param request.distributionChannels List of distribution channels where the license is valid. Empty if no restrictions.
463
+ * @param request.contentRestrictions List of content restrictions where the license is valid. Empty if no restrictions.
464
+ * @returns the transaction hash and the policy ID if the txOptions.waitForTransaction is set to true
465
+ */
400
466
  readonly name: "LicensingModule__RegisterPolicyFrameworkMismatch";
401
467
  readonly type: "error";
402
468
  } | {
@@ -424,18 +490,7 @@ export declare class PolicyClient {
424
490
  readonly name: "MetadataProvider__HashInvalid";
425
491
  readonly type: "error";
426
492
  } | {
427
- readonly inputs: readonly []; /**
428
- * Convenient function to register a PIL social remix policy to the registry
429
- * Internally, this function must generate a Licensing.Policy struct and call registerPolicy.
430
- * @param request - the licensing parameters for the Programmable IP License v1 (PIL) standard.
431
- * @param request.commercialRevShare Percentage of revenue that must be shared with the licensor
432
- * @param mintingFee Fee to be paid when minting a license
433
- * @param mintingFeeToken Token to be used to pay the minting fee
434
- * @param request.territories List of territories where the license is valid. If empty, global.
435
- * @param request.distributionChannels List of distribution channels where the license is valid. Empty if no restrictions.
436
- * @param request.contentRestrictions List of content restrictions where the license is valid. Empty if no restrictions.
437
- * @returns the transaction hash and the policy ID if the txOptions.waitForTransaction is set to true
438
- */
493
+ readonly inputs: readonly [];
439
494
  readonly name: "MetadataProvider__IPAssetOwnerInvalid";
440
495
  readonly type: "error";
441
496
  } | {
@@ -534,10 +589,6 @@ export declare class PolicyClient {
534
589
  readonly inputs: readonly [];
535
590
  readonly name: "PolicyFrameworkManager__GettingPolicyWrongFramework";
536
591
  readonly type: "error";
537
- } | {
538
- readonly inputs: readonly [];
539
- readonly name: "RegistrationModule__InvalidOwner";
540
- readonly type: "error";
541
592
  } | {
542
593
  readonly inputs: readonly [];
543
594
  readonly name: "RoyaltyModule__CanOnlyMintSelectedPolicy";
@@ -558,10 +609,6 @@ export declare class PolicyClient {
558
609
  readonly inputs: readonly [];
559
610
  readonly name: "RoyaltyModule__NotAllowedCaller";
560
611
  readonly type: "error";
561
- } | {
562
- readonly inputs: readonly [];
563
- readonly name: "RoyaltyModule__NotRegisteredIpId";
564
- readonly type: "error";
565
612
  } | {
566
613
  readonly inputs: readonly [];
567
614
  readonly name: "RoyaltyModule__NotWhitelistedRoyaltyPolicy";
@@ -598,30 +645,10 @@ export declare class PolicyClient {
598
645
  readonly inputs: readonly [];
599
646
  readonly name: "RoyaltyPolicyLAP__ImplementationAlreadySet";
600
647
  readonly type: "error";
601
- } | {
602
- readonly inputs: readonly [];
603
- readonly name: "RoyaltyPolicyLAP__InvalidAncestors";
604
- readonly type: "error";
605
- } | {
606
- readonly inputs: readonly [];
607
- readonly name: "RoyaltyPolicyLAP__InvalidAncestorsHash";
608
- readonly type: "error";
609
- } | {
610
- readonly inputs: readonly [];
611
- readonly name: "RoyaltyPolicyLAP__InvalidAncestorsLength";
612
- readonly type: "error";
613
- } | {
614
- readonly inputs: readonly [];
615
- readonly name: "RoyaltyPolicyLAP__InvalidAncestorsRoyalty";
616
- readonly type: "error";
617
648
  } | {
618
649
  readonly inputs: readonly [];
619
650
  readonly name: "RoyaltyPolicyLAP__InvalidParentRoyaltiesLength";
620
651
  readonly type: "error";
621
- } | {
622
- readonly inputs: readonly [];
623
- readonly name: "RoyaltyPolicyLAP__InvalidRoyaltyAmountLength";
624
- readonly type: "error";
625
652
  } | {
626
653
  readonly inputs: readonly [];
627
654
  readonly name: "RoyaltyPolicyLAP__LastPositionNotAbleToMintLicense";
@@ -636,15 +663,15 @@ export declare class PolicyClient {
636
663
  readonly type: "error";
637
664
  } | {
638
665
  readonly inputs: readonly [];
639
- readonly name: "RoyaltyPolicyLAP__TransferFailed";
666
+ readonly name: "RoyaltyPolicyLAP__UnlinkableToParents";
640
667
  readonly type: "error";
641
668
  } | {
642
669
  readonly inputs: readonly [];
643
- readonly name: "RoyaltyPolicyLAP__UnlinkableToParents";
670
+ readonly name: "RoyaltyPolicyLAP__ZeroAncestorsVaultImpl";
644
671
  readonly type: "error";
645
672
  } | {
646
673
  readonly inputs: readonly [];
647
- readonly name: "RoyaltyPolicyLAP__ZeroAncestorsVaultImpl";
674
+ readonly name: "RoyaltyPolicyLAP__ZeroIpRoyaltyVaultBeacon";
648
675
  readonly type: "error";
649
676
  } | {
650
677
  readonly inputs: readonly [];
@@ -740,6 +767,18 @@ export declare class PolicyClient {
740
767
  readonly inputs: readonly [];
741
768
  readonly name: "AccessControlled__ZeroAddress";
742
769
  readonly type: "error";
770
+ } | {
771
+ readonly inputs: readonly [{
772
+ readonly internalType: "address";
773
+ readonly name: "signer";
774
+ readonly type: "address";
775
+ }, {
776
+ readonly internalType: "address";
777
+ readonly name: "to";
778
+ readonly type: "address";
779
+ }];
780
+ readonly name: "AccessController__BothCallerAndRecipientAreNotRegisteredModule";
781
+ readonly type: "error";
743
782
  } | {
744
783
  readonly inputs: readonly [];
745
784
  readonly name: "AccessController__CallerIsNotIPAccount";
@@ -763,7 +802,25 @@ export declare class PolicyClient {
763
802
  readonly type: "address";
764
803
  }, {
765
804
  readonly internalType: "address";
766
- readonly name: "signer";
805
+ readonly name: "signer"; /**
806
+ * Registers a PIL policy to the registry
807
+ * Internally, this function must generate a Licensing.Policy struct and call registerPolicy.
808
+ * @param request - the licensing parameters for the Programmable IP License v1 (PIL) standard.
809
+ * @param request.transferable Whether or not the license is transferable
810
+ * @param request.attribution Whether or not attribution is required when reproducing the work
811
+ * @param request.commercialUse Whether or not the work can be used commercially
812
+ * @param request.commercialAttribution Whether or not attribution is required when reproducing the work commercially
813
+ * @param request.commercializerChecker commericializers that are allowed to commercially exploit the work. If zero address, then no restrictions is enforced.
814
+ * @param request.commercialRevShare Percentage of revenue that must be shared with the licensor
815
+ * @param request.derivativesAllowed Whether or not the licensee can create derivatives of his work
816
+ * @param request.derivativesAttribution Whether or not attribution is required for derivatives of the work
817
+ * @param request.derivativesApproval Whether or not the licensor must approve derivatives of the work before they can be linked to the licensor IP ID
818
+ * @param request.derivativesReciprocal Whether or not the licensee must license derivatives of the work under the same terms.
819
+ * @param request.territories List of territories where the license is valid. If empty, global.
820
+ * @param request.distributionChannels List of distribution channels where the license is valid. Empty if no restrictions.
821
+ * @param request.royaltyPolicy Address of a royalty policy contract (e.g. RoyaltyPolicyLS) that will handle royalty payments
822
+ * @returns the transaction hash and the policy ID if the txOptions.waitForTransaction is set to true
823
+ */
767
824
  readonly type: "address";
768
825
  }, {
769
826
  readonly internalType: "address";
@@ -780,61 +837,29 @@ export declare class PolicyClient {
780
837
  readonly inputs: readonly [];
781
838
  readonly name: "AccessController__PermissionIsNotValid";
782
839
  readonly type: "error";
783
- } | {
784
- readonly inputs: readonly [{
785
- readonly internalType: "address";
786
- readonly name: "to";
787
- readonly type: "address";
788
- }];
789
- readonly name: "AccessController__RecipientIsNotRegisteredModule";
790
- readonly type: "error";
791
840
  } | {
792
841
  readonly inputs: readonly [];
793
842
  readonly name: "AccessController__SignerIsZeroAddress";
794
843
  readonly type: "error";
795
844
  } | {
796
845
  readonly inputs: readonly [];
797
- readonly name: "AncestorsVaultLAP__AlreadyClaimed";
798
- readonly type: "error";
799
- } | {
800
- readonly inputs: readonly [];
801
- readonly name: "AncestorsVaultLAP__ClaimerNotAnAncestor";
802
- readonly type: "error";
803
- } | {
804
- readonly inputs: readonly [];
805
- readonly name: "AncestorsVaultLAP__ERC20BalanceNotZero";
806
- readonly type: "error";
807
- } | {
808
- readonly inputs: readonly [];
809
- readonly name: "AncestorsVaultLAP__ETHBalanceNotZero";
810
- readonly type: "error";
811
- } | {
812
- readonly inputs: readonly [];
813
- readonly name: "AncestorsVaultLAP__InvalidAncestorsHash";
814
- readonly type: "error";
815
- } | {
816
- readonly inputs: readonly [];
817
- readonly name: "AncestorsVaultLAP__InvalidClaimer";
818
- readonly type: "error";
819
- } | {
820
- readonly inputs: readonly [];
821
- readonly name: "AncestorsVaultLAP__TransferFailed";
846
+ readonly name: "ArbitrationPolicySP__NotDisputeModule";
822
847
  readonly type: "error";
823
848
  } | {
824
849
  readonly inputs: readonly [];
825
- readonly name: "AncestorsVaultLAP__ZeroRoyaltyPolicyLAP";
850
+ readonly name: "ArbitrationPolicySP__ZeroDisputeModule";
826
851
  readonly type: "error";
827
852
  } | {
828
853
  readonly inputs: readonly [];
829
- readonly name: "ArbitrationPolicySP__NotDisputeModule";
854
+ readonly name: "ArbitrationPolicySP__ZeroPaymentToken";
830
855
  readonly type: "error";
831
856
  } | {
832
857
  readonly inputs: readonly [];
833
- readonly name: "ArbitrationPolicySP__ZeroDisputeModule";
858
+ readonly name: "BasePolicyFrameworkManager__CallerNotLicensingModule";
834
859
  readonly type: "error";
835
860
  } | {
836
861
  readonly inputs: readonly [];
837
- readonly name: "ArbitrationPolicySP__ZeroPaymentToken";
862
+ readonly name: "CoreMetadataModule__MetadataAlreadyFrozen";
838
863
  readonly type: "error";
839
864
  } | {
840
865
  readonly inputs: readonly [];
@@ -864,10 +889,6 @@ export declare class PolicyClient {
864
889
  readonly inputs: readonly [];
865
890
  readonly name: "DisputeModule__NotWhitelistedDisputeTag";
866
891
  readonly type: "error";
867
- } | {
868
- readonly inputs: readonly [];
869
- readonly name: "DisputeModule__UnauthorizedAccess";
870
- readonly type: "error";
871
892
  } | {
872
893
  readonly inputs: readonly [];
873
894
  readonly name: "DisputeModule__ZeroArbitrationPolicy";
@@ -952,6 +973,18 @@ export declare class PolicyClient {
952
973
  readonly inputs: readonly [];
953
974
  readonly name: "IPAssetRegistry__InvalidMetadataProvider";
954
975
  readonly type: "error";
976
+ } | {
977
+ readonly inputs: readonly [{
978
+ readonly internalType: "address";
979
+ readonly name: "contractAddress";
980
+ readonly type: "address";
981
+ }, {
982
+ readonly internalType: "uint256";
983
+ readonly name: "tokenId";
984
+ readonly type: "uint256";
985
+ }];
986
+ readonly name: "IPAssetRegistry__InvalidToken";
987
+ readonly type: "error";
955
988
  } | {
956
989
  readonly inputs: readonly [];
957
990
  readonly name: "IPAssetRegistry__NotYetRegistered";
@@ -968,6 +1001,22 @@ export declare class PolicyClient {
968
1001
  readonly inputs: readonly [];
969
1002
  readonly name: "IPAssetRegistry__Unauthorized";
970
1003
  readonly type: "error";
1004
+ } | {
1005
+ readonly inputs: readonly [{
1006
+ readonly internalType: "address";
1007
+ readonly name: "contractAddress";
1008
+ readonly type: "address";
1009
+ }];
1010
+ readonly name: "IPAssetRegistry__UnsupportedIERC721";
1011
+ readonly type: "error";
1012
+ } | {
1013
+ readonly inputs: readonly [{
1014
+ readonly internalType: "address";
1015
+ readonly name: "contractAddress";
1016
+ readonly type: "address";
1017
+ }];
1018
+ readonly name: "IPAssetRegistry__UnsupportedIERC721Metadata";
1019
+ readonly type: "error";
971
1020
  } | {
972
1021
  readonly inputs: readonly [];
973
1022
  readonly name: "IPResolver_InvalidIP";
@@ -976,6 +1025,30 @@ export declare class PolicyClient {
976
1025
  readonly inputs: readonly [];
977
1026
  readonly name: "IPResolver_Unauthorized";
978
1027
  readonly type: "error";
1028
+ } | {
1029
+ readonly inputs: readonly [];
1030
+ readonly name: "IpRoyaltyVault__AlreadyClaimed";
1031
+ readonly type: "error";
1032
+ } | {
1033
+ readonly inputs: readonly [];
1034
+ readonly name: "IpRoyaltyVault__ClaimerNotAnAncestor";
1035
+ readonly type: "error";
1036
+ } | {
1037
+ readonly inputs: readonly [];
1038
+ readonly name: "IpRoyaltyVault__NotRoyaltyPolicyLAP";
1039
+ readonly type: "error";
1040
+ } | {
1041
+ readonly inputs: readonly [];
1042
+ readonly name: "IpRoyaltyVault__SnapshotIntervalTooShort";
1043
+ readonly type: "error";
1044
+ } | {
1045
+ readonly inputs: readonly [];
1046
+ readonly name: "IpRoyaltyVault__ZeroIpId";
1047
+ readonly type: "error";
1048
+ } | {
1049
+ readonly inputs: readonly [];
1050
+ readonly name: "IpRoyaltyVault__ZeroRoyaltyPolicyLAP";
1051
+ readonly type: "error";
979
1052
  } | {
980
1053
  readonly inputs: readonly [];
981
1054
  readonly name: "LicenseRegistry__CallerNotLicensingModule";
@@ -996,10 +1069,6 @@ export declare class PolicyClient {
996
1069
  readonly inputs: readonly [];
997
1070
  readonly name: "LicenseRegistry__ZeroLicensingModule";
998
1071
  readonly type: "error";
999
- } | {
1000
- readonly inputs: readonly [];
1001
- readonly name: "LicensingModuleAware__CallerNotLicensingModule";
1002
- readonly type: "error";
1003
1072
  } | {
1004
1073
  readonly inputs: readonly [];
1005
1074
  readonly name: "LicensingModule__CallerNotLicenseRegistry";
@@ -1060,6 +1129,10 @@ export declare class PolicyClient {
1060
1129
  readonly inputs: readonly [];
1061
1130
  readonly name: "LicensingModule__InvalidPolicyFramework";
1062
1131
  readonly type: "error";
1132
+ } | {
1133
+ readonly inputs: readonly [];
1134
+ readonly name: "LicensingModule__IpAlreadyLinked";
1135
+ readonly type: "error";
1063
1136
  } | {
1064
1137
  readonly inputs: readonly [];
1065
1138
  readonly name: "LicensingModule__LicensorDoesntHaveThisPolicy";
@@ -1076,6 +1149,10 @@ export declare class PolicyClient {
1076
1149
  readonly inputs: readonly [];
1077
1150
  readonly name: "LicensingModule__LinkingRevokedLicense";
1078
1151
  readonly type: "error";
1152
+ } | {
1153
+ readonly inputs: readonly [];
1154
+ readonly name: "LicensingModule__MintAmountZero";
1155
+ readonly type: "error";
1079
1156
  } | {
1080
1157
  readonly inputs: readonly [];
1081
1158
  readonly name: "LicensingModule__MintLicenseParamFailed";
@@ -1114,15 +1191,30 @@ export declare class PolicyClient {
1114
1191
  readonly type: "error";
1115
1192
  } | {
1116
1193
  readonly inputs: readonly [];
1117
- readonly name: "LicensingModule__RegisterPolicyFrameworkMismatch";
1118
- readonly type: "error";
1119
- } | {
1120
- readonly inputs: readonly [];
1121
- readonly name: "LicensingModule__RoyaltyPolicyNotWhitelisted";
1122
- readonly type: "error";
1123
- } | {
1124
- readonly inputs: readonly [];
1125
- readonly name: "LicensingModule__TransferParamFailed";
1194
+ readonly name: "LicensingModule__ReceiverZeroAddress";
1195
+ readonly type: "error";
1196
+ } | {
1197
+ readonly inputs: readonly []; /**
1198
+ * Convenient function to register a PIL social remix policy to the registry
1199
+ * Internally, this function must generate a Licensing.Policy struct and call registerPolicy.
1200
+ * @param request - the licensing parameters for the Programmable IP License v1 (PIL) standard.
1201
+ * @param request.commercialRevShare Percentage of revenue that must be shared with the licensor
1202
+ * @param mintingFee Fee to be paid when minting a license
1203
+ * @param mintingFeeToken Token to be used to pay the minting fee
1204
+ * @param request.territories List of territories where the license is valid. If empty, global.
1205
+ * @param request.distributionChannels List of distribution channels where the license is valid. Empty if no restrictions.
1206
+ * @param request.contentRestrictions List of content restrictions where the license is valid. Empty if no restrictions.
1207
+ * @returns the transaction hash and the policy ID if the txOptions.waitForTransaction is set to true
1208
+ */
1209
+ readonly name: "LicensingModule__RegisterPolicyFrameworkMismatch";
1210
+ readonly type: "error";
1211
+ } | {
1212
+ readonly inputs: readonly [];
1213
+ readonly name: "LicensingModule__RoyaltyPolicyNotWhitelisted";
1214
+ readonly type: "error";
1215
+ } | {
1216
+ readonly inputs: readonly [];
1217
+ readonly name: "LicensingModule__TransferParamFailed";
1126
1218
  readonly type: "error";
1127
1219
  } | {
1128
1220
  readonly inputs: readonly [];
@@ -1141,18 +1233,7 @@ export declare class PolicyClient {
1141
1233
  readonly name: "MetadataProvider__HashInvalid";
1142
1234
  readonly type: "error";
1143
1235
  } | {
1144
- readonly inputs: readonly []; /**
1145
- * Convenient function to register a PIL social remix policy to the registry
1146
- * Internally, this function must generate a Licensing.Policy struct and call registerPolicy.
1147
- * @param request - the licensing parameters for the Programmable IP License v1 (PIL) standard.
1148
- * @param request.commercialRevShare Percentage of revenue that must be shared with the licensor
1149
- * @param mintingFee Fee to be paid when minting a license
1150
- * @param mintingFeeToken Token to be used to pay the minting fee
1151
- * @param request.territories List of territories where the license is valid. If empty, global.
1152
- * @param request.distributionChannels List of distribution channels where the license is valid. Empty if no restrictions.
1153
- * @param request.contentRestrictions List of content restrictions where the license is valid. Empty if no restrictions.
1154
- * @returns the transaction hash and the policy ID if the txOptions.waitForTransaction is set to true
1155
- */
1236
+ readonly inputs: readonly [];
1156
1237
  readonly name: "MetadataProvider__IPAssetOwnerInvalid";
1157
1238
  readonly type: "error";
1158
1239
  } | {
@@ -1251,10 +1332,6 @@ export declare class PolicyClient {
1251
1332
  readonly inputs: readonly [];
1252
1333
  readonly name: "PolicyFrameworkManager__GettingPolicyWrongFramework";
1253
1334
  readonly type: "error";
1254
- } | {
1255
- readonly inputs: readonly [];
1256
- readonly name: "RegistrationModule__InvalidOwner";
1257
- readonly type: "error";
1258
1335
  } | {
1259
1336
  readonly inputs: readonly [];
1260
1337
  readonly name: "RoyaltyModule__CanOnlyMintSelectedPolicy";
@@ -1275,10 +1352,6 @@ export declare class PolicyClient {
1275
1352
  readonly inputs: readonly [];
1276
1353
  readonly name: "RoyaltyModule__NotAllowedCaller";
1277
1354
  readonly type: "error";
1278
- } | {
1279
- readonly inputs: readonly [];
1280
- readonly name: "RoyaltyModule__NotRegisteredIpId";
1281
- readonly type: "error";
1282
1355
  } | {
1283
1356
  readonly inputs: readonly [];
1284
1357
  readonly name: "RoyaltyModule__NotWhitelistedRoyaltyPolicy";
@@ -1315,30 +1388,10 @@ export declare class PolicyClient {
1315
1388
  readonly inputs: readonly [];
1316
1389
  readonly name: "RoyaltyPolicyLAP__ImplementationAlreadySet";
1317
1390
  readonly type: "error";
1318
- } | {
1319
- readonly inputs: readonly [];
1320
- readonly name: "RoyaltyPolicyLAP__InvalidAncestors";
1321
- readonly type: "error";
1322
- } | {
1323
- readonly inputs: readonly [];
1324
- readonly name: "RoyaltyPolicyLAP__InvalidAncestorsHash";
1325
- readonly type: "error";
1326
- } | {
1327
- readonly inputs: readonly [];
1328
- readonly name: "RoyaltyPolicyLAP__InvalidAncestorsLength";
1329
- readonly type: "error";
1330
- } | {
1331
- readonly inputs: readonly [];
1332
- readonly name: "RoyaltyPolicyLAP__InvalidAncestorsRoyalty";
1333
- readonly type: "error";
1334
1391
  } | {
1335
1392
  readonly inputs: readonly [];
1336
1393
  readonly name: "RoyaltyPolicyLAP__InvalidParentRoyaltiesLength";
1337
1394
  readonly type: "error";
1338
- } | {
1339
- readonly inputs: readonly [];
1340
- readonly name: "RoyaltyPolicyLAP__InvalidRoyaltyAmountLength";
1341
- readonly type: "error";
1342
1395
  } | {
1343
1396
  readonly inputs: readonly [];
1344
1397
  readonly name: "RoyaltyPolicyLAP__LastPositionNotAbleToMintLicense";
@@ -1353,15 +1406,15 @@ export declare class PolicyClient {
1353
1406
  readonly type: "error";
1354
1407
  } | {
1355
1408
  readonly inputs: readonly [];
1356
- readonly name: "RoyaltyPolicyLAP__TransferFailed";
1409
+ readonly name: "RoyaltyPolicyLAP__UnlinkableToParents";
1357
1410
  readonly type: "error";
1358
1411
  } | {
1359
1412
  readonly inputs: readonly [];
1360
- readonly name: "RoyaltyPolicyLAP__UnlinkableToParents";
1413
+ readonly name: "RoyaltyPolicyLAP__ZeroAncestorsVaultImpl";
1361
1414
  readonly type: "error";
1362
1415
  } | {
1363
1416
  readonly inputs: readonly [];
1364
- readonly name: "RoyaltyPolicyLAP__ZeroAncestorsVaultImpl";
1417
+ readonly name: "RoyaltyPolicyLAP__ZeroIpRoyaltyVaultBeacon";
1365
1418
  readonly type: "error";
1366
1419
  } | {
1367
1420
  readonly inputs: readonly [];
@@ -1645,6 +1698,18 @@ export declare class PolicyClient {
1645
1698
  readonly inputs: readonly [];
1646
1699
  readonly name: "AccessControlled__ZeroAddress";
1647
1700
  readonly type: "error";
1701
+ } | {
1702
+ readonly inputs: readonly [{
1703
+ readonly internalType: "address";
1704
+ readonly name: "signer";
1705
+ readonly type: "address";
1706
+ }, {
1707
+ readonly internalType: "address";
1708
+ readonly name: "to";
1709
+ readonly type: "address";
1710
+ }];
1711
+ readonly name: "AccessController__BothCallerAndRecipientAreNotRegisteredModule";
1712
+ readonly type: "error";
1648
1713
  } | {
1649
1714
  readonly inputs: readonly [];
1650
1715
  readonly name: "AccessController__CallerIsNotIPAccount";
@@ -1668,7 +1733,25 @@ export declare class PolicyClient {
1668
1733
  readonly type: "address";
1669
1734
  }, {
1670
1735
  readonly internalType: "address";
1671
- readonly name: "signer";
1736
+ readonly name: "signer"; /**
1737
+ * Registers a PIL policy to the registry
1738
+ * Internally, this function must generate a Licensing.Policy struct and call registerPolicy.
1739
+ * @param request - the licensing parameters for the Programmable IP License v1 (PIL) standard.
1740
+ * @param request.transferable Whether or not the license is transferable
1741
+ * @param request.attribution Whether or not attribution is required when reproducing the work
1742
+ * @param request.commercialUse Whether or not the work can be used commercially
1743
+ * @param request.commercialAttribution Whether or not attribution is required when reproducing the work commercially
1744
+ * @param request.commercializerChecker commericializers that are allowed to commercially exploit the work. If zero address, then no restrictions is enforced.
1745
+ * @param request.commercialRevShare Percentage of revenue that must be shared with the licensor
1746
+ * @param request.derivativesAllowed Whether or not the licensee can create derivatives of his work
1747
+ * @param request.derivativesAttribution Whether or not attribution is required for derivatives of the work
1748
+ * @param request.derivativesApproval Whether or not the licensor must approve derivatives of the work before they can be linked to the licensor IP ID
1749
+ * @param request.derivativesReciprocal Whether or not the licensee must license derivatives of the work under the same terms.
1750
+ * @param request.territories List of territories where the license is valid. If empty, global.
1751
+ * @param request.distributionChannels List of distribution channels where the license is valid. Empty if no restrictions.
1752
+ * @param request.royaltyPolicy Address of a royalty policy contract (e.g. RoyaltyPolicyLS) that will handle royalty payments
1753
+ * @returns the transaction hash and the policy ID if the txOptions.waitForTransaction is set to true
1754
+ */
1672
1755
  readonly type: "address";
1673
1756
  }, {
1674
1757
  readonly internalType: "address";
@@ -1685,61 +1768,29 @@ export declare class PolicyClient {
1685
1768
  readonly inputs: readonly [];
1686
1769
  readonly name: "AccessController__PermissionIsNotValid";
1687
1770
  readonly type: "error";
1688
- } | {
1689
- readonly inputs: readonly [{
1690
- readonly internalType: "address";
1691
- readonly name: "to";
1692
- readonly type: "address";
1693
- }];
1694
- readonly name: "AccessController__RecipientIsNotRegisteredModule";
1695
- readonly type: "error";
1696
1771
  } | {
1697
1772
  readonly inputs: readonly [];
1698
1773
  readonly name: "AccessController__SignerIsZeroAddress";
1699
1774
  readonly type: "error";
1700
1775
  } | {
1701
1776
  readonly inputs: readonly [];
1702
- readonly name: "AncestorsVaultLAP__AlreadyClaimed";
1703
- readonly type: "error";
1704
- } | {
1705
- readonly inputs: readonly [];
1706
- readonly name: "AncestorsVaultLAP__ClaimerNotAnAncestor";
1707
- readonly type: "error";
1708
- } | {
1709
- readonly inputs: readonly [];
1710
- readonly name: "AncestorsVaultLAP__ERC20BalanceNotZero";
1711
- readonly type: "error";
1712
- } | {
1713
- readonly inputs: readonly [];
1714
- readonly name: "AncestorsVaultLAP__ETHBalanceNotZero";
1715
- readonly type: "error";
1716
- } | {
1717
- readonly inputs: readonly [];
1718
- readonly name: "AncestorsVaultLAP__InvalidAncestorsHash";
1719
- readonly type: "error";
1720
- } | {
1721
- readonly inputs: readonly [];
1722
- readonly name: "AncestorsVaultLAP__InvalidClaimer";
1723
- readonly type: "error";
1724
- } | {
1725
- readonly inputs: readonly [];
1726
- readonly name: "AncestorsVaultLAP__TransferFailed";
1777
+ readonly name: "ArbitrationPolicySP__NotDisputeModule";
1727
1778
  readonly type: "error";
1728
1779
  } | {
1729
1780
  readonly inputs: readonly [];
1730
- readonly name: "AncestorsVaultLAP__ZeroRoyaltyPolicyLAP";
1781
+ readonly name: "ArbitrationPolicySP__ZeroDisputeModule";
1731
1782
  readonly type: "error";
1732
1783
  } | {
1733
1784
  readonly inputs: readonly [];
1734
- readonly name: "ArbitrationPolicySP__NotDisputeModule";
1785
+ readonly name: "ArbitrationPolicySP__ZeroPaymentToken";
1735
1786
  readonly type: "error";
1736
1787
  } | {
1737
1788
  readonly inputs: readonly [];
1738
- readonly name: "ArbitrationPolicySP__ZeroDisputeModule";
1789
+ readonly name: "BasePolicyFrameworkManager__CallerNotLicensingModule";
1739
1790
  readonly type: "error";
1740
1791
  } | {
1741
1792
  readonly inputs: readonly [];
1742
- readonly name: "ArbitrationPolicySP__ZeroPaymentToken";
1793
+ readonly name: "CoreMetadataModule__MetadataAlreadyFrozen";
1743
1794
  readonly type: "error";
1744
1795
  } | {
1745
1796
  readonly inputs: readonly [];
@@ -1769,10 +1820,6 @@ export declare class PolicyClient {
1769
1820
  readonly inputs: readonly [];
1770
1821
  readonly name: "DisputeModule__NotWhitelistedDisputeTag";
1771
1822
  readonly type: "error";
1772
- } | {
1773
- readonly inputs: readonly [];
1774
- readonly name: "DisputeModule__UnauthorizedAccess";
1775
- readonly type: "error";
1776
1823
  } | {
1777
1824
  readonly inputs: readonly [];
1778
1825
  readonly name: "DisputeModule__ZeroArbitrationPolicy";
@@ -1857,6 +1904,18 @@ export declare class PolicyClient {
1857
1904
  readonly inputs: readonly [];
1858
1905
  readonly name: "IPAssetRegistry__InvalidMetadataProvider";
1859
1906
  readonly type: "error";
1907
+ } | {
1908
+ readonly inputs: readonly [{
1909
+ readonly internalType: "address";
1910
+ readonly name: "contractAddress";
1911
+ readonly type: "address";
1912
+ }, {
1913
+ readonly internalType: "uint256";
1914
+ readonly name: "tokenId";
1915
+ readonly type: "uint256";
1916
+ }];
1917
+ readonly name: "IPAssetRegistry__InvalidToken";
1918
+ readonly type: "error";
1860
1919
  } | {
1861
1920
  readonly inputs: readonly [];
1862
1921
  readonly name: "IPAssetRegistry__NotYetRegistered";
@@ -1873,6 +1932,22 @@ export declare class PolicyClient {
1873
1932
  readonly inputs: readonly [];
1874
1933
  readonly name: "IPAssetRegistry__Unauthorized";
1875
1934
  readonly type: "error";
1935
+ } | {
1936
+ readonly inputs: readonly [{
1937
+ readonly internalType: "address";
1938
+ readonly name: "contractAddress";
1939
+ readonly type: "address";
1940
+ }];
1941
+ readonly name: "IPAssetRegistry__UnsupportedIERC721";
1942
+ readonly type: "error";
1943
+ } | {
1944
+ readonly inputs: readonly [{
1945
+ readonly internalType: "address";
1946
+ readonly name: "contractAddress";
1947
+ readonly type: "address";
1948
+ }];
1949
+ readonly name: "IPAssetRegistry__UnsupportedIERC721Metadata";
1950
+ readonly type: "error";
1876
1951
  } | {
1877
1952
  readonly inputs: readonly [];
1878
1953
  readonly name: "IPResolver_InvalidIP";
@@ -1881,6 +1956,30 @@ export declare class PolicyClient {
1881
1956
  readonly inputs: readonly [];
1882
1957
  readonly name: "IPResolver_Unauthorized";
1883
1958
  readonly type: "error";
1959
+ } | {
1960
+ readonly inputs: readonly [];
1961
+ readonly name: "IpRoyaltyVault__AlreadyClaimed";
1962
+ readonly type: "error";
1963
+ } | {
1964
+ readonly inputs: readonly [];
1965
+ readonly name: "IpRoyaltyVault__ClaimerNotAnAncestor";
1966
+ readonly type: "error";
1967
+ } | {
1968
+ readonly inputs: readonly [];
1969
+ readonly name: "IpRoyaltyVault__NotRoyaltyPolicyLAP";
1970
+ readonly type: "error";
1971
+ } | {
1972
+ readonly inputs: readonly [];
1973
+ readonly name: "IpRoyaltyVault__SnapshotIntervalTooShort";
1974
+ readonly type: "error";
1975
+ } | {
1976
+ readonly inputs: readonly [];
1977
+ readonly name: "IpRoyaltyVault__ZeroIpId";
1978
+ readonly type: "error";
1979
+ } | {
1980
+ readonly inputs: readonly [];
1981
+ readonly name: "IpRoyaltyVault__ZeroRoyaltyPolicyLAP";
1982
+ readonly type: "error";
1884
1983
  } | {
1885
1984
  readonly inputs: readonly [];
1886
1985
  readonly name: "LicenseRegistry__CallerNotLicensingModule";
@@ -1901,10 +2000,6 @@ export declare class PolicyClient {
1901
2000
  readonly inputs: readonly [];
1902
2001
  readonly name: "LicenseRegistry__ZeroLicensingModule";
1903
2002
  readonly type: "error";
1904
- } | {
1905
- readonly inputs: readonly [];
1906
- readonly name: "LicensingModuleAware__CallerNotLicensingModule";
1907
- readonly type: "error";
1908
2003
  } | {
1909
2004
  readonly inputs: readonly [];
1910
2005
  readonly name: "LicensingModule__CallerNotLicenseRegistry";
@@ -1965,6 +2060,10 @@ export declare class PolicyClient {
1965
2060
  readonly inputs: readonly [];
1966
2061
  readonly name: "LicensingModule__InvalidPolicyFramework";
1967
2062
  readonly type: "error";
2063
+ } | {
2064
+ readonly inputs: readonly [];
2065
+ readonly name: "LicensingModule__IpAlreadyLinked";
2066
+ readonly type: "error";
1968
2067
  } | {
1969
2068
  readonly inputs: readonly [];
1970
2069
  readonly name: "LicensingModule__LicensorDoesntHaveThisPolicy";
@@ -1981,6 +2080,10 @@ export declare class PolicyClient {
1981
2080
  readonly inputs: readonly [];
1982
2081
  readonly name: "LicensingModule__LinkingRevokedLicense";
1983
2082
  readonly type: "error";
2083
+ } | {
2084
+ readonly inputs: readonly [];
2085
+ readonly name: "LicensingModule__MintAmountZero";
2086
+ readonly type: "error";
1984
2087
  } | {
1985
2088
  readonly inputs: readonly [];
1986
2089
  readonly name: "LicensingModule__MintLicenseParamFailed";
@@ -2019,6 +2122,21 @@ export declare class PolicyClient {
2019
2122
  readonly type: "error";
2020
2123
  } | {
2021
2124
  readonly inputs: readonly [];
2125
+ readonly name: "LicensingModule__ReceiverZeroAddress";
2126
+ readonly type: "error";
2127
+ } | {
2128
+ readonly inputs: readonly []; /**
2129
+ * Convenient function to register a PIL social remix policy to the registry
2130
+ * Internally, this function must generate a Licensing.Policy struct and call registerPolicy.
2131
+ * @param request - the licensing parameters for the Programmable IP License v1 (PIL) standard.
2132
+ * @param request.commercialRevShare Percentage of revenue that must be shared with the licensor
2133
+ * @param mintingFee Fee to be paid when minting a license
2134
+ * @param mintingFeeToken Token to be used to pay the minting fee
2135
+ * @param request.territories List of territories where the license is valid. If empty, global.
2136
+ * @param request.distributionChannels List of distribution channels where the license is valid. Empty if no restrictions.
2137
+ * @param request.contentRestrictions List of content restrictions where the license is valid. Empty if no restrictions.
2138
+ * @returns the transaction hash and the policy ID if the txOptions.waitForTransaction is set to true
2139
+ */
2022
2140
  readonly name: "LicensingModule__RegisterPolicyFrameworkMismatch";
2023
2141
  readonly type: "error";
2024
2142
  } | {
@@ -2046,18 +2164,7 @@ export declare class PolicyClient {
2046
2164
  readonly name: "MetadataProvider__HashInvalid";
2047
2165
  readonly type: "error";
2048
2166
  } | {
2049
- readonly inputs: readonly []; /**
2050
- * Convenient function to register a PIL social remix policy to the registry
2051
- * Internally, this function must generate a Licensing.Policy struct and call registerPolicy.
2052
- * @param request - the licensing parameters for the Programmable IP License v1 (PIL) standard.
2053
- * @param request.commercialRevShare Percentage of revenue that must be shared with the licensor
2054
- * @param mintingFee Fee to be paid when minting a license
2055
- * @param mintingFeeToken Token to be used to pay the minting fee
2056
- * @param request.territories List of territories where the license is valid. If empty, global.
2057
- * @param request.distributionChannels List of distribution channels where the license is valid. Empty if no restrictions.
2058
- * @param request.contentRestrictions List of content restrictions where the license is valid. Empty if no restrictions.
2059
- * @returns the transaction hash and the policy ID if the txOptions.waitForTransaction is set to true
2060
- */
2167
+ readonly inputs: readonly [];
2061
2168
  readonly name: "MetadataProvider__IPAssetOwnerInvalid";
2062
2169
  readonly type: "error";
2063
2170
  } | {
@@ -2156,10 +2263,6 @@ export declare class PolicyClient {
2156
2263
  readonly inputs: readonly [];
2157
2264
  readonly name: "PolicyFrameworkManager__GettingPolicyWrongFramework";
2158
2265
  readonly type: "error";
2159
- } | {
2160
- readonly inputs: readonly [];
2161
- readonly name: "RegistrationModule__InvalidOwner";
2162
- readonly type: "error";
2163
2266
  } | {
2164
2267
  readonly inputs: readonly [];
2165
2268
  readonly name: "RoyaltyModule__CanOnlyMintSelectedPolicy";
@@ -2180,10 +2283,6 @@ export declare class PolicyClient {
2180
2283
  readonly inputs: readonly [];
2181
2284
  readonly name: "RoyaltyModule__NotAllowedCaller";
2182
2285
  readonly type: "error";
2183
- } | {
2184
- readonly inputs: readonly [];
2185
- readonly name: "RoyaltyModule__NotRegisteredIpId";
2186
- readonly type: "error";
2187
2286
  } | {
2188
2287
  readonly inputs: readonly [];
2189
2288
  readonly name: "RoyaltyModule__NotWhitelistedRoyaltyPolicy";
@@ -2220,30 +2319,10 @@ export declare class PolicyClient {
2220
2319
  readonly inputs: readonly [];
2221
2320
  readonly name: "RoyaltyPolicyLAP__ImplementationAlreadySet";
2222
2321
  readonly type: "error";
2223
- } | {
2224
- readonly inputs: readonly [];
2225
- readonly name: "RoyaltyPolicyLAP__InvalidAncestors";
2226
- readonly type: "error";
2227
- } | {
2228
- readonly inputs: readonly [];
2229
- readonly name: "RoyaltyPolicyLAP__InvalidAncestorsHash";
2230
- readonly type: "error";
2231
- } | {
2232
- readonly inputs: readonly [];
2233
- readonly name: "RoyaltyPolicyLAP__InvalidAncestorsLength";
2234
- readonly type: "error";
2235
- } | {
2236
- readonly inputs: readonly [];
2237
- readonly name: "RoyaltyPolicyLAP__InvalidAncestorsRoyalty";
2238
- readonly type: "error";
2239
2322
  } | {
2240
2323
  readonly inputs: readonly [];
2241
2324
  readonly name: "RoyaltyPolicyLAP__InvalidParentRoyaltiesLength";
2242
2325
  readonly type: "error";
2243
- } | {
2244
- readonly inputs: readonly [];
2245
- readonly name: "RoyaltyPolicyLAP__InvalidRoyaltyAmountLength";
2246
- readonly type: "error";
2247
2326
  } | {
2248
2327
  readonly inputs: readonly [];
2249
2328
  readonly name: "RoyaltyPolicyLAP__LastPositionNotAbleToMintLicense";
@@ -2258,15 +2337,15 @@ export declare class PolicyClient {
2258
2337
  readonly type: "error";
2259
2338
  } | {
2260
2339
  readonly inputs: readonly [];
2261
- readonly name: "RoyaltyPolicyLAP__TransferFailed";
2340
+ readonly name: "RoyaltyPolicyLAP__UnlinkableToParents";
2262
2341
  readonly type: "error";
2263
2342
  } | {
2264
2343
  readonly inputs: readonly [];
2265
- readonly name: "RoyaltyPolicyLAP__UnlinkableToParents";
2344
+ readonly name: "RoyaltyPolicyLAP__ZeroAncestorsVaultImpl";
2266
2345
  readonly type: "error";
2267
2346
  } | {
2268
2347
  readonly inputs: readonly [];
2269
- readonly name: "RoyaltyPolicyLAP__ZeroAncestorsVaultImpl";
2348
+ readonly name: "RoyaltyPolicyLAP__ZeroIpRoyaltyVaultBeacon";
2270
2349
  readonly type: "error";
2271
2350
  } | {
2272
2351
  readonly inputs: readonly [];
@@ -2376,9 +2455,747 @@ export declare class PolicyClient {
2376
2455
  address: `0x${string}`;
2377
2456
  };
2378
2457
  royaltyPolicyLAPConfig: {
2458
+ abi: ({
2459
+ readonly inputs: readonly [{
2460
+ readonly internalType: "address";
2461
+ readonly name: "caller";
2462
+ readonly type: "address";
2463
+ }];
2464
+ readonly name: "AccessControlled__CallerIsNotIpAccount";
2465
+ readonly type: "error";
2466
+ } | {
2467
+ readonly inputs: readonly [{
2468
+ readonly internalType: "address";
2469
+ readonly name: "ipAccount";
2470
+ readonly type: "address";
2471
+ }];
2472
+ readonly name: "AccessControlled__NotIpAccount";
2473
+ readonly type: "error";
2474
+ } | {
2475
+ readonly inputs: readonly [];
2476
+ readonly name: "AccessControlled__ZeroAddress";
2477
+ readonly type: "error";
2478
+ } | {
2479
+ readonly inputs: readonly [{
2480
+ readonly internalType: "address";
2481
+ readonly name: "signer";
2482
+ readonly type: "address";
2483
+ }, {
2484
+ readonly internalType: "address";
2485
+ readonly name: "to";
2486
+ readonly type: "address";
2487
+ }];
2488
+ readonly name: "AccessController__BothCallerAndRecipientAreNotRegisteredModule";
2489
+ readonly type: "error";
2490
+ } | {
2491
+ readonly inputs: readonly [];
2492
+ readonly name: "AccessController__CallerIsNotIPAccount";
2493
+ readonly type: "error";
2494
+ } | {
2495
+ readonly inputs: readonly [{
2496
+ readonly internalType: "address";
2497
+ readonly name: "ipAccount";
2498
+ readonly type: "address";
2499
+ }];
2500
+ readonly name: "AccessController__IPAccountIsNotValid";
2501
+ readonly type: "error";
2502
+ } | {
2503
+ readonly inputs: readonly [];
2504
+ readonly name: "AccessController__IPAccountIsZeroAddress";
2505
+ readonly type: "error";
2506
+ } | {
2507
+ readonly inputs: readonly [{
2508
+ readonly internalType: "address";
2509
+ readonly name: "ipAccount";
2510
+ readonly type: "address";
2511
+ }, {
2512
+ readonly internalType: "address";
2513
+ readonly name: "signer"; /**
2514
+ * Registers a PIL policy to the registry
2515
+ * Internally, this function must generate a Licensing.Policy struct and call registerPolicy.
2516
+ * @param request - the licensing parameters for the Programmable IP License v1 (PIL) standard.
2517
+ * @param request.transferable Whether or not the license is transferable
2518
+ * @param request.attribution Whether or not attribution is required when reproducing the work
2519
+ * @param request.commercialUse Whether or not the work can be used commercially
2520
+ * @param request.commercialAttribution Whether or not attribution is required when reproducing the work commercially
2521
+ * @param request.commercializerChecker commericializers that are allowed to commercially exploit the work. If zero address, then no restrictions is enforced.
2522
+ * @param request.commercialRevShare Percentage of revenue that must be shared with the licensor
2523
+ * @param request.derivativesAllowed Whether or not the licensee can create derivatives of his work
2524
+ * @param request.derivativesAttribution Whether or not attribution is required for derivatives of the work
2525
+ * @param request.derivativesApproval Whether or not the licensor must approve derivatives of the work before they can be linked to the licensor IP ID
2526
+ * @param request.derivativesReciprocal Whether or not the licensee must license derivatives of the work under the same terms.
2527
+ * @param request.territories List of territories where the license is valid. If empty, global.
2528
+ * @param request.distributionChannels List of distribution channels where the license is valid. Empty if no restrictions.
2529
+ * @param request.royaltyPolicy Address of a royalty policy contract (e.g. RoyaltyPolicyLS) that will handle royalty payments
2530
+ * @returns the transaction hash and the policy ID if the txOptions.waitForTransaction is set to true
2531
+ */
2532
+ readonly type: "address";
2533
+ }, {
2534
+ readonly internalType: "address";
2535
+ readonly name: "to";
2536
+ readonly type: "address";
2537
+ }, {
2538
+ readonly internalType: "bytes4";
2539
+ readonly name: "func";
2540
+ readonly type: "bytes4";
2541
+ }];
2542
+ readonly name: "AccessController__PermissionDenied";
2543
+ readonly type: "error";
2544
+ } | {
2545
+ readonly inputs: readonly [];
2546
+ readonly name: "AccessController__PermissionIsNotValid";
2547
+ readonly type: "error";
2548
+ } | {
2549
+ readonly inputs: readonly [];
2550
+ readonly name: "AccessController__SignerIsZeroAddress";
2551
+ readonly type: "error";
2552
+ } | {
2553
+ readonly inputs: readonly [];
2554
+ readonly name: "ArbitrationPolicySP__NotDisputeModule";
2555
+ readonly type: "error";
2556
+ } | {
2557
+ readonly inputs: readonly [];
2558
+ readonly name: "ArbitrationPolicySP__ZeroDisputeModule";
2559
+ readonly type: "error";
2560
+ } | {
2561
+ readonly inputs: readonly [];
2562
+ readonly name: "ArbitrationPolicySP__ZeroPaymentToken";
2563
+ readonly type: "error";
2564
+ } | {
2565
+ readonly inputs: readonly [];
2566
+ readonly name: "BasePolicyFrameworkManager__CallerNotLicensingModule";
2567
+ readonly type: "error";
2568
+ } | {
2569
+ readonly inputs: readonly [];
2570
+ readonly name: "CoreMetadataModule__MetadataAlreadyFrozen";
2571
+ readonly type: "error";
2572
+ } | {
2573
+ readonly inputs: readonly [];
2574
+ readonly name: "DisputeModule__NotAbleToResolve";
2575
+ readonly type: "error";
2576
+ } | {
2577
+ readonly inputs: readonly [];
2578
+ readonly name: "DisputeModule__NotDisputeInitiator";
2579
+ readonly type: "error";
2580
+ } | {
2581
+ readonly inputs: readonly [];
2582
+ readonly name: "DisputeModule__NotInDisputeState";
2583
+ readonly type: "error";
2584
+ } | {
2585
+ readonly inputs: readonly [];
2586
+ readonly name: "DisputeModule__NotRegisteredIpId";
2587
+ readonly type: "error";
2588
+ } | {
2589
+ readonly inputs: readonly [];
2590
+ readonly name: "DisputeModule__NotWhitelistedArbitrationPolicy";
2591
+ readonly type: "error";
2592
+ } | {
2593
+ readonly inputs: readonly [];
2594
+ readonly name: "DisputeModule__NotWhitelistedArbitrationRelayer";
2595
+ readonly type: "error";
2596
+ } | {
2597
+ readonly inputs: readonly [];
2598
+ readonly name: "DisputeModule__NotWhitelistedDisputeTag";
2599
+ readonly type: "error";
2600
+ } | {
2601
+ readonly inputs: readonly [];
2602
+ readonly name: "DisputeModule__ZeroArbitrationPolicy";
2603
+ readonly type: "error";
2604
+ } | {
2605
+ readonly inputs: readonly [];
2606
+ readonly name: "DisputeModule__ZeroArbitrationRelayer";
2607
+ readonly type: "error";
2608
+ } | {
2609
+ readonly inputs: readonly [];
2610
+ readonly name: "DisputeModule__ZeroDisputeTag";
2611
+ readonly type: "error";
2612
+ } | {
2613
+ readonly inputs: readonly [];
2614
+ readonly name: "DisputeModule__ZeroLinkToDisputeEvidence";
2615
+ readonly type: "error";
2616
+ } | {
2617
+ readonly inputs: readonly [];
2618
+ readonly name: "Governance__InconsistentState";
2619
+ readonly type: "error";
2620
+ } | {
2621
+ readonly inputs: readonly [];
2622
+ readonly name: "Governance__NewStateIsTheSameWithOldState";
2623
+ readonly type: "error";
2624
+ } | {
2625
+ readonly inputs: readonly [];
2626
+ readonly name: "Governance__OnlyProtocolAdmin";
2627
+ readonly type: "error";
2628
+ } | {
2629
+ readonly inputs: readonly [];
2630
+ readonly name: "Governance__ProtocolPaused";
2631
+ readonly type: "error";
2632
+ } | {
2633
+ readonly inputs: readonly [{
2634
+ readonly internalType: "string";
2635
+ readonly name: "interfaceName";
2636
+ readonly type: "string";
2637
+ }];
2638
+ readonly name: "Governance__UnsupportedInterface";
2639
+ readonly type: "error";
2640
+ } | {
2641
+ readonly inputs: readonly [];
2642
+ readonly name: "Governance__ZeroAddress";
2643
+ readonly type: "error";
2644
+ } | {
2645
+ readonly inputs: readonly [];
2646
+ readonly name: "IPAccountRegistry_InvalidIpAccountImpl";
2647
+ readonly type: "error";
2648
+ } | {
2649
+ readonly inputs: readonly [];
2650
+ readonly name: "IPAccount__ExpiredSignature";
2651
+ readonly type: "error";
2652
+ } | {
2653
+ readonly inputs: readonly [];
2654
+ readonly name: "IPAccount__InvalidAccessController";
2655
+ readonly type: "error";
2656
+ } | {
2657
+ readonly inputs: readonly [];
2658
+ readonly name: "IPAccount__InvalidCalldata";
2659
+ readonly type: "error";
2660
+ } | {
2661
+ readonly inputs: readonly [];
2662
+ readonly name: "IPAccount__InvalidSignature";
2663
+ readonly type: "error";
2664
+ } | {
2665
+ readonly inputs: readonly [];
2666
+ readonly name: "IPAccount__InvalidSigner";
2667
+ readonly type: "error";
2668
+ } | {
2669
+ readonly inputs: readonly [];
2670
+ readonly name: "IPAssetRegistry__AlreadyRegistered";
2671
+ readonly type: "error";
2672
+ } | {
2673
+ readonly inputs: readonly [];
2674
+ readonly name: "IPAssetRegistry__IPAccountAlreadyCreated";
2675
+ readonly type: "error";
2676
+ } | {
2677
+ readonly inputs: readonly [];
2678
+ readonly name: "IPAssetRegistry__InvalidAccount";
2679
+ readonly type: "error";
2680
+ } | {
2681
+ readonly inputs: readonly [];
2682
+ readonly name: "IPAssetRegistry__InvalidMetadataProvider";
2683
+ readonly type: "error";
2684
+ } | {
2685
+ readonly inputs: readonly [{
2686
+ readonly internalType: "address";
2687
+ readonly name: "contractAddress";
2688
+ readonly type: "address";
2689
+ }, {
2690
+ readonly internalType: "uint256";
2691
+ readonly name: "tokenId";
2692
+ readonly type: "uint256";
2693
+ }];
2694
+ readonly name: "IPAssetRegistry__InvalidToken";
2695
+ readonly type: "error";
2696
+ } | {
2697
+ readonly inputs: readonly [];
2698
+ readonly name: "IPAssetRegistry__NotYetRegistered";
2699
+ readonly type: "error";
2700
+ } | {
2701
+ readonly inputs: readonly [];
2702
+ readonly name: "IPAssetRegistry__RegistrantUnauthorized";
2703
+ readonly type: "error";
2704
+ } | {
2705
+ readonly inputs: readonly [];
2706
+ readonly name: "IPAssetRegistry__ResolverInvalid";
2707
+ readonly type: "error";
2708
+ } | {
2709
+ readonly inputs: readonly [];
2710
+ readonly name: "IPAssetRegistry__Unauthorized";
2711
+ readonly type: "error";
2712
+ } | {
2713
+ readonly inputs: readonly [{
2714
+ readonly internalType: "address";
2715
+ readonly name: "contractAddress";
2716
+ readonly type: "address";
2717
+ }];
2718
+ readonly name: "IPAssetRegistry__UnsupportedIERC721";
2719
+ readonly type: "error";
2720
+ } | {
2721
+ readonly inputs: readonly [{
2722
+ readonly internalType: "address";
2723
+ readonly name: "contractAddress";
2724
+ readonly type: "address";
2725
+ }];
2726
+ readonly name: "IPAssetRegistry__UnsupportedIERC721Metadata";
2727
+ readonly type: "error";
2728
+ } | {
2729
+ readonly inputs: readonly [];
2730
+ readonly name: "IPResolver_InvalidIP";
2731
+ readonly type: "error";
2732
+ } | {
2733
+ readonly inputs: readonly [];
2734
+ readonly name: "IPResolver_Unauthorized";
2735
+ readonly type: "error";
2736
+ } | {
2737
+ readonly inputs: readonly [];
2738
+ readonly name: "IpRoyaltyVault__AlreadyClaimed";
2739
+ readonly type: "error";
2740
+ } | {
2741
+ readonly inputs: readonly [];
2742
+ readonly name: "IpRoyaltyVault__ClaimerNotAnAncestor";
2743
+ readonly type: "error";
2744
+ } | {
2745
+ readonly inputs: readonly [];
2746
+ readonly name: "IpRoyaltyVault__NotRoyaltyPolicyLAP";
2747
+ readonly type: "error";
2748
+ } | {
2749
+ readonly inputs: readonly [];
2750
+ readonly name: "IpRoyaltyVault__SnapshotIntervalTooShort";
2751
+ readonly type: "error";
2752
+ } | {
2753
+ readonly inputs: readonly [];
2754
+ readonly name: "IpRoyaltyVault__ZeroIpId";
2755
+ readonly type: "error";
2756
+ } | {
2757
+ readonly inputs: readonly [];
2758
+ readonly name: "IpRoyaltyVault__ZeroRoyaltyPolicyLAP";
2759
+ readonly type: "error";
2760
+ } | {
2761
+ readonly inputs: readonly [];
2762
+ readonly name: "LicenseRegistry__CallerNotLicensingModule";
2763
+ readonly type: "error";
2764
+ } | {
2765
+ readonly inputs: readonly [];
2766
+ readonly name: "LicenseRegistry__NotTransferable";
2767
+ readonly type: "error";
2768
+ } | {
2769
+ readonly inputs: readonly [];
2770
+ readonly name: "LicenseRegistry__RevokedLicense";
2771
+ readonly type: "error";
2772
+ } | {
2773
+ readonly inputs: readonly [];
2774
+ readonly name: "LicenseRegistry__ZeroDisputeModule";
2775
+ readonly type: "error";
2776
+ } | {
2777
+ readonly inputs: readonly [];
2778
+ readonly name: "LicenseRegistry__ZeroLicensingModule";
2779
+ readonly type: "error";
2780
+ } | {
2781
+ readonly inputs: readonly [];
2782
+ readonly name: "LicensingModule__CallerNotLicenseRegistry";
2783
+ readonly type: "error";
2784
+ } | {
2785
+ readonly inputs: readonly [];
2786
+ readonly name: "LicensingModule__CallerNotLicensorAndPolicyNotSet";
2787
+ readonly type: "error";
2788
+ } | {
2789
+ readonly inputs: readonly [];
2790
+ readonly name: "LicensingModule__CommercialTermInNonCommercialPolicy";
2791
+ readonly type: "error";
2792
+ } | {
2793
+ readonly inputs: readonly [];
2794
+ readonly name: "LicensingModule__DerivativeRevShareSumExceedsMaxRNFTSupply";
2795
+ readonly type: "error";
2796
+ } | {
2797
+ readonly inputs: readonly [];
2798
+ readonly name: "LicensingModule__DerivativesCannotAddPolicy";
2799
+ readonly type: "error";
2800
+ } | {
2801
+ readonly inputs: readonly [];
2802
+ readonly name: "LicensingModule__DisputedIpId";
2803
+ readonly type: "error";
2804
+ } | {
2805
+ readonly inputs: readonly [];
2806
+ readonly name: "LicensingModule__EmptyLicenseUrl";
2807
+ readonly type: "error";
2808
+ } | {
2809
+ readonly inputs: readonly [];
2810
+ readonly name: "LicensingModule__EmptyParamName";
2811
+ readonly type: "error";
2812
+ } | {
2813
+ readonly inputs: readonly [];
2814
+ readonly name: "LicensingModule__FrameworkNotFound";
2815
+ readonly type: "error";
2816
+ } | {
2817
+ readonly inputs: readonly [];
2818
+ readonly name: "LicensingModule__IncompatibleLicensorCommercialPolicy";
2819
+ readonly type: "error";
2820
+ } | {
2821
+ readonly inputs: readonly [];
2822
+ readonly name: "LicensingModule__IncompatibleLicensorRoyaltyDerivativeRevShare";
2823
+ readonly type: "error";
2824
+ } | {
2825
+ readonly inputs: readonly [];
2826
+ readonly name: "LicensingModule__IncompatibleRoyaltyPolicyAddress";
2827
+ readonly type: "error";
2828
+ } | {
2829
+ readonly inputs: readonly [];
2830
+ readonly name: "LicensingModule__IncompatibleRoyaltyPolicyDerivativeRevShare";
2831
+ readonly type: "error";
2832
+ } | {
2833
+ readonly inputs: readonly [];
2834
+ readonly name: "LicensingModule__InvalidLicensor";
2835
+ readonly type: "error";
2836
+ } | {
2837
+ readonly inputs: readonly [];
2838
+ readonly name: "LicensingModule__InvalidPolicyFramework";
2839
+ readonly type: "error";
2840
+ } | {
2841
+ readonly inputs: readonly [];
2842
+ readonly name: "LicensingModule__IpAlreadyLinked";
2843
+ readonly type: "error";
2844
+ } | {
2845
+ readonly inputs: readonly [];
2846
+ readonly name: "LicensingModule__LicensorDoesntHaveThisPolicy";
2847
+ readonly type: "error";
2848
+ } | {
2849
+ readonly inputs: readonly [];
2850
+ readonly name: "LicensingModule__LicensorNotRegistered";
2851
+ readonly type: "error";
2852
+ } | {
2853
+ readonly inputs: readonly [];
2854
+ readonly name: "LicensingModule__LinkParentParamFailed";
2855
+ readonly type: "error";
2856
+ } | {
2857
+ readonly inputs: readonly [];
2858
+ readonly name: "LicensingModule__LinkingRevokedLicense";
2859
+ readonly type: "error";
2860
+ } | {
2861
+ readonly inputs: readonly [];
2862
+ readonly name: "LicensingModule__MintAmountZero";
2863
+ readonly type: "error";
2864
+ } | {
2865
+ readonly inputs: readonly [];
2866
+ readonly name: "LicensingModule__MintLicenseParamFailed";
2867
+ readonly type: "error";
2868
+ } | {
2869
+ readonly inputs: readonly [];
2870
+ readonly name: "LicensingModule__MintingFeeTokenNotWhitelisted";
2871
+ readonly type: "error";
2872
+ } | {
2873
+ readonly inputs: readonly [];
2874
+ readonly name: "LicensingModule__MismatchBetweenRoyaltyPolicy";
2875
+ readonly type: "error";
2876
+ } | {
2877
+ readonly inputs: readonly [];
2878
+ readonly name: "LicensingModule__NotLicensee";
2879
+ readonly type: "error";
2880
+ } | {
2881
+ readonly inputs: readonly [];
2882
+ readonly name: "LicensingModule__ParamVerifierAlreadySet";
2883
+ readonly type: "error";
2884
+ } | {
2885
+ readonly inputs: readonly [];
2886
+ readonly name: "LicensingModule__ParamVerifierLengthMismatch";
2887
+ readonly type: "error";
2888
+ } | {
2889
+ readonly inputs: readonly [];
2890
+ readonly name: "LicensingModule__ParentIdEqualThanChild";
2891
+ readonly type: "error";
2892
+ } | {
2893
+ readonly inputs: readonly [];
2894
+ readonly name: "LicensingModule__PolicyAlreadySetForIpId";
2895
+ readonly type: "error";
2896
+ } | {
2897
+ readonly inputs: readonly [];
2898
+ readonly name: "LicensingModule__PolicyNotFound";
2899
+ readonly type: "error";
2900
+ } | {
2901
+ readonly inputs: readonly [];
2902
+ readonly name: "LicensingModule__ReceiverZeroAddress";
2903
+ readonly type: "error";
2904
+ } | {
2905
+ readonly inputs: readonly []; /**
2906
+ * Convenient function to register a PIL social remix policy to the registry
2907
+ * Internally, this function must generate a Licensing.Policy struct and call registerPolicy.
2908
+ * @param request - the licensing parameters for the Programmable IP License v1 (PIL) standard.
2909
+ * @param request.commercialRevShare Percentage of revenue that must be shared with the licensor
2910
+ * @param mintingFee Fee to be paid when minting a license
2911
+ * @param mintingFeeToken Token to be used to pay the minting fee
2912
+ * @param request.territories List of territories where the license is valid. If empty, global.
2913
+ * @param request.distributionChannels List of distribution channels where the license is valid. Empty if no restrictions.
2914
+ * @param request.contentRestrictions List of content restrictions where the license is valid. Empty if no restrictions.
2915
+ * @returns the transaction hash and the policy ID if the txOptions.waitForTransaction is set to true
2916
+ */
2917
+ readonly name: "LicensingModule__RegisterPolicyFrameworkMismatch";
2918
+ readonly type: "error";
2919
+ } | {
2920
+ readonly inputs: readonly [];
2921
+ readonly name: "LicensingModule__RoyaltyPolicyNotWhitelisted";
2922
+ readonly type: "error";
2923
+ } | {
2924
+ readonly inputs: readonly [];
2925
+ readonly name: "LicensingModule__TransferParamFailed";
2926
+ readonly type: "error";
2927
+ } | {
2928
+ readonly inputs: readonly [];
2929
+ readonly name: "LicensingModule__UnauthorizedAccess";
2930
+ readonly type: "error";
2931
+ } | {
2932
+ readonly inputs: readonly [];
2933
+ readonly name: "LicensingModule__UnregisteredFrameworkAddingPolicy";
2934
+ readonly type: "error";
2935
+ } | {
2936
+ readonly inputs: readonly [];
2937
+ readonly name: "LicensorApprovalChecker__Unauthorized";
2938
+ readonly type: "error";
2939
+ } | {
2940
+ readonly inputs: readonly [];
2941
+ readonly name: "MetadataProvider__HashInvalid";
2942
+ readonly type: "error";
2943
+ } | {
2944
+ readonly inputs: readonly [];
2945
+ readonly name: "MetadataProvider__IPAssetOwnerInvalid";
2946
+ readonly type: "error";
2947
+ } | {
2948
+ readonly inputs: readonly [];
2949
+ readonly name: "MetadataProvider__MetadataNotCompatible";
2950
+ readonly type: "error";
2951
+ } | {
2952
+ readonly inputs: readonly [];
2953
+ readonly name: "MetadataProvider__NameInvalid";
2954
+ readonly type: "error";
2955
+ } | {
2956
+ readonly inputs: readonly [];
2957
+ readonly name: "MetadataProvider__RegistrantInvalid";
2958
+ readonly type: "error";
2959
+ } | {
2960
+ readonly inputs: readonly [];
2961
+ readonly name: "MetadataProvider__RegistrationDateInvalid";
2962
+ readonly type: "error";
2963
+ } | {
2964
+ readonly inputs: readonly [];
2965
+ readonly name: "MetadataProvider__URIInvalid";
2966
+ readonly type: "error";
2967
+ } | {
2968
+ readonly inputs: readonly [];
2969
+ readonly name: "MetadataProvider__Unauthorized";
2970
+ readonly type: "error";
2971
+ } | {
2972
+ readonly inputs: readonly [];
2973
+ readonly name: "MetadataProvider__UpgradeProviderInvalid";
2974
+ readonly type: "error";
2975
+ } | {
2976
+ readonly inputs: readonly [];
2977
+ readonly name: "MetadataProvider__UpgradeUnavailable";
2978
+ readonly type: "error";
2979
+ } | {
2980
+ readonly inputs: readonly [];
2981
+ readonly name: "ModuleRegistry__InterfaceIdZero";
2982
+ readonly type: "error";
2983
+ } | {
2984
+ readonly inputs: readonly [];
2985
+ readonly name: "ModuleRegistry__ModuleAddressNotContract";
2986
+ readonly type: "error";
2987
+ } | {
2988
+ readonly inputs: readonly [];
2989
+ readonly name: "ModuleRegistry__ModuleAddressZeroAddress";
2990
+ readonly type: "error";
2991
+ } | {
2992
+ readonly inputs: readonly [];
2993
+ readonly name: "ModuleRegistry__ModuleAlreadyRegistered";
2994
+ readonly type: "error";
2995
+ } | {
2996
+ readonly inputs: readonly [];
2997
+ readonly name: "ModuleRegistry__ModuleNotRegistered";
2998
+ readonly type: "error";
2999
+ } | {
3000
+ readonly inputs: readonly [];
3001
+ readonly name: "ModuleRegistry__ModuleNotSupportExpectedModuleTypeInterfaceId";
3002
+ readonly type: "error";
3003
+ } | {
3004
+ readonly inputs: readonly [];
3005
+ readonly name: "ModuleRegistry__ModuleTypeAlreadyRegistered";
3006
+ readonly type: "error";
3007
+ } | {
3008
+ readonly inputs: readonly [];
3009
+ readonly name: "ModuleRegistry__ModuleTypeEmptyString";
3010
+ readonly type: "error";
3011
+ } | {
3012
+ readonly inputs: readonly [];
3013
+ readonly name: "ModuleRegistry__ModuleTypeNotRegistered";
3014
+ readonly type: "error";
3015
+ } | {
3016
+ readonly inputs: readonly [];
3017
+ readonly name: "ModuleRegistry__NameAlreadyRegistered";
3018
+ readonly type: "error";
3019
+ } | {
3020
+ readonly inputs: readonly [];
3021
+ readonly name: "ModuleRegistry__NameDoesNotMatch";
3022
+ readonly type: "error";
3023
+ } | {
3024
+ readonly inputs: readonly [];
3025
+ readonly name: "ModuleRegistry__NameEmptyString";
3026
+ readonly type: "error";
3027
+ } | {
3028
+ readonly inputs: readonly [];
3029
+ readonly name: "Module_Unauthorized";
3030
+ readonly type: "error";
3031
+ } | {
3032
+ readonly inputs: readonly [{
3033
+ readonly internalType: "address";
3034
+ readonly name: "commercializer";
3035
+ readonly type: "address";
3036
+ }];
3037
+ readonly name: "PolicyFrameworkManager__CommercializerCheckerDoesNotSupportHook";
3038
+ readonly type: "error";
3039
+ } | {
3040
+ readonly inputs: readonly [];
3041
+ readonly name: "PolicyFrameworkManager__GettingPolicyWrongFramework";
3042
+ readonly type: "error";
3043
+ } | {
3044
+ readonly inputs: readonly [];
3045
+ readonly name: "RoyaltyModule__CanOnlyMintSelectedPolicy";
3046
+ readonly type: "error";
3047
+ } | {
3048
+ readonly inputs: readonly [];
3049
+ readonly name: "RoyaltyModule__IncompatibleRoyaltyPolicy";
3050
+ readonly type: "error";
3051
+ } | {
3052
+ readonly inputs: readonly [];
3053
+ readonly name: "RoyaltyModule__NoParentsOnLinking";
3054
+ readonly type: "error";
3055
+ } | {
3056
+ readonly inputs: readonly [];
3057
+ readonly name: "RoyaltyModule__NoRoyaltyPolicySet";
3058
+ readonly type: "error";
3059
+ } | {
3060
+ readonly inputs: readonly [];
3061
+ readonly name: "RoyaltyModule__NotAllowedCaller";
3062
+ readonly type: "error";
3063
+ } | {
3064
+ readonly inputs: readonly [];
3065
+ readonly name: "RoyaltyModule__NotWhitelistedRoyaltyPolicy";
3066
+ readonly type: "error";
3067
+ } | {
3068
+ readonly inputs: readonly [];
3069
+ readonly name: "RoyaltyModule__NotWhitelistedRoyaltyToken";
3070
+ readonly type: "error";
3071
+ } | {
3072
+ readonly inputs: readonly [];
3073
+ readonly name: "RoyaltyModule__ZeroLicensingModule";
3074
+ readonly type: "error";
3075
+ } | {
3076
+ readonly inputs: readonly [];
3077
+ readonly name: "RoyaltyModule__ZeroRoyaltyPolicy";
3078
+ readonly type: "error";
3079
+ } | {
3080
+ readonly inputs: readonly [];
3081
+ readonly name: "RoyaltyModule__ZeroRoyaltyToken";
3082
+ readonly type: "error";
3083
+ } | {
3084
+ readonly inputs: readonly [];
3085
+ readonly name: "RoyaltyPolicyLAP__AboveAncestorsLimit";
3086
+ readonly type: "error";
3087
+ } | {
3088
+ readonly inputs: readonly [];
3089
+ readonly name: "RoyaltyPolicyLAP__AboveParentLimit";
3090
+ readonly type: "error";
3091
+ } | {
3092
+ readonly inputs: readonly [];
3093
+ readonly name: "RoyaltyPolicyLAP__AboveRoyaltyStackLimit";
3094
+ readonly type: "error";
3095
+ } | {
3096
+ readonly inputs: readonly [];
3097
+ readonly name: "RoyaltyPolicyLAP__ImplementationAlreadySet";
3098
+ readonly type: "error";
3099
+ } | {
3100
+ readonly inputs: readonly [];
3101
+ readonly name: "RoyaltyPolicyLAP__InvalidParentRoyaltiesLength";
3102
+ readonly type: "error";
3103
+ } | {
3104
+ readonly inputs: readonly [];
3105
+ readonly name: "RoyaltyPolicyLAP__LastPositionNotAbleToMintLicense";
3106
+ readonly type: "error";
3107
+ } | {
3108
+ readonly inputs: readonly [];
3109
+ readonly name: "RoyaltyPolicyLAP__NotFullOwnership";
3110
+ readonly type: "error";
3111
+ } | {
3112
+ readonly inputs: readonly [];
3113
+ readonly name: "RoyaltyPolicyLAP__NotRoyaltyModule";
3114
+ readonly type: "error";
3115
+ } | {
3116
+ readonly inputs: readonly [];
3117
+ readonly name: "RoyaltyPolicyLAP__UnlinkableToParents";
3118
+ readonly type: "error";
3119
+ } | {
3120
+ readonly inputs: readonly [];
3121
+ readonly name: "RoyaltyPolicyLAP__ZeroAncestorsVaultImpl";
3122
+ readonly type: "error";
3123
+ } | {
3124
+ readonly inputs: readonly [];
3125
+ readonly name: "RoyaltyPolicyLAP__ZeroIpRoyaltyVaultBeacon";
3126
+ readonly type: "error";
3127
+ } | {
3128
+ readonly inputs: readonly [];
3129
+ readonly name: "RoyaltyPolicyLAP__ZeroLicensingModule";
3130
+ readonly type: "error";
3131
+ } | {
3132
+ readonly inputs: readonly [];
3133
+ readonly name: "RoyaltyPolicyLAP__ZeroLiquidSplitFactory";
3134
+ readonly type: "error";
3135
+ } | {
3136
+ readonly inputs: readonly [];
3137
+ readonly name: "RoyaltyPolicyLAP__ZeroLiquidSplitMain";
3138
+ readonly type: "error";
3139
+ } | {
3140
+ readonly inputs: readonly [];
3141
+ readonly name: "RoyaltyPolicyLAP__ZeroRoyaltyModule";
3142
+ readonly type: "error";
3143
+ } | {
3144
+ readonly inputs: readonly [{
3145
+ readonly internalType: "address";
3146
+ readonly name: "ipId";
3147
+ readonly type: "address";
3148
+ }];
3149
+ readonly name: "getRoyaltyData";
3150
+ readonly outputs: readonly [{
3151
+ readonly internalType: "bool";
3152
+ readonly name: "";
3153
+ readonly type: "bool";
3154
+ }, {
3155
+ readonly internalType: "address";
3156
+ readonly name: "";
3157
+ readonly type: "address";
3158
+ }, {
3159
+ readonly internalType: "uint32";
3160
+ readonly name: "";
3161
+ readonly type: "uint32";
3162
+ }, {
3163
+ readonly internalType: "address[]";
3164
+ readonly name: "";
3165
+ readonly type: "address[]";
3166
+ }, {
3167
+ readonly internalType: "uint32[]";
3168
+ readonly name: "";
3169
+ readonly type: "uint32[]";
3170
+ }];
3171
+ readonly stateMutability: "view";
3172
+ readonly type: "function";
3173
+ } | {
3174
+ readonly inputs: readonly [{
3175
+ readonly internalType: "address";
3176
+ readonly name: "caller";
3177
+ readonly type: "address";
3178
+ }, {
3179
+ readonly internalType: "address";
3180
+ readonly name: "ipId";
3181
+ readonly type: "address";
3182
+ }, {
3183
+ readonly internalType: "address";
3184
+ readonly name: "token";
3185
+ readonly type: "address";
3186
+ }, {
3187
+ readonly internalType: "uint256";
3188
+ readonly name: "amount";
3189
+ readonly type: "uint256";
3190
+ }];
3191
+ readonly name: "onRoyaltyPayment";
3192
+ readonly outputs: readonly [];
3193
+ readonly stateMutability: "nonpayable";
3194
+ readonly type: "function";
3195
+ })[];
2379
3196
  address: `0x${string}`;
2380
3197
  };
2381
- constructor(rpcClient: PublicClient, wallet: WalletClient);
3198
+ constructor(rpcClient: PublicClient, wallet: WalletClient, chainId: SupportedChainIds);
2382
3199
  /**
2383
3200
  * Registers a PIL policy to the registry
2384
3201
  * Internally, this function must generate a Licensing.Policy struct and call registerPolicy.