@story-protocol/core-sdk 0.0.1-beta-rc.3 → 0.0.1-beta-rc.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (37) hide show
  1. package/dist/declarations/src/client.d.ts +28 -13
  2. package/dist/declarations/src/client.d.ts.map +1 -1
  3. package/dist/declarations/src/clients/storyAPI.d.ts +11 -0
  4. package/dist/declarations/src/clients/storyAPI.d.ts.map +1 -0
  5. package/dist/declarations/src/index.d.ts +2 -4
  6. package/dist/declarations/src/index.d.ts.map +1 -1
  7. package/dist/declarations/src/resources/dispute.d.ts.map +1 -1
  8. package/dist/declarations/src/resources/ipAccount.d.ts +752 -0
  9. package/dist/declarations/src/resources/ipAccount.d.ts.map +1 -0
  10. package/dist/declarations/src/resources/ipAsset.d.ts +674 -4
  11. package/dist/declarations/src/resources/ipAsset.d.ts.map +1 -1
  12. package/dist/declarations/src/resources/license.d.ts +736 -66
  13. package/dist/declarations/src/resources/license.d.ts.map +1 -1
  14. package/dist/declarations/src/resources/permission.d.ts +58 -58
  15. package/dist/declarations/src/resources/policy.d.ts +1416 -66
  16. package/dist/declarations/src/resources/policy.d.ts.map +1 -1
  17. package/dist/declarations/src/types/resources/ipAccount.d.ts +25 -0
  18. package/dist/declarations/src/types/resources/ipAccount.d.ts.map +1 -0
  19. package/dist/declarations/src/types/resources/ipAsset.d.ts +1 -1
  20. package/dist/declarations/src/types/resources/ipAsset.d.ts.map +1 -1
  21. package/dist/declarations/src/types/resources/license.d.ts +8 -1
  22. package/dist/declarations/src/types/resources/license.d.ts.map +1 -1
  23. package/dist/declarations/src/types/resources/permission.d.ts +2 -2
  24. package/dist/declarations/src/types/resources/policy.d.ts +11 -1
  25. package/dist/declarations/src/types/resources/policy.d.ts.map +1 -1
  26. package/dist/declarations/src/types/resources/royalty.d.ts +17 -0
  27. package/dist/declarations/src/types/resources/royalty.d.ts.map +1 -0
  28. package/dist/story-protocol-core-sdk.cjs.dev.js +412 -299
  29. package/dist/story-protocol-core-sdk.cjs.prod.js +412 -299
  30. package/dist/story-protocol-core-sdk.esm.js +413 -298
  31. package/package.json +5 -5
  32. package/dist/declarations/src/resources/tagging.d.ts +0 -718
  33. package/dist/declarations/src/resources/tagging.d.ts.map +0 -1
  34. package/dist/declarations/src/types/resources/tagging.d.ts +0 -23
  35. package/dist/declarations/src/types/resources/tagging.d.ts.map +0 -1
  36. package/dist/declarations/src/utils/platform.d.ts +0 -17
  37. package/dist/declarations/src/utils/platform.d.ts.map +0 -1
@@ -1,65 +1,11 @@
1
1
  import { PublicClient, WalletClient } from "viem";
2
+ import { StoryAPIClient } from "../clients/storyAPI.js";
2
3
  import { LinkIpToParentRequest, LinkIpToParentResponse, MintLicenseRequest, MintLicenseResponse } from "../types/resources/license.js";
3
4
  export declare class LicenseClient {
4
5
  private readonly wallet;
5
6
  private readonly rpcClient;
7
+ private readonly storyClient;
6
8
  ipAccountABI: ({
7
- readonly inputs: readonly [{
8
- readonly internalType: "address";
9
- readonly name: "to";
10
- readonly type: "address";
11
- }, {
12
- readonly internalType: "uint256";
13
- readonly name: "value";
14
- readonly type: "uint256";
15
- }, {
16
- readonly internalType: "bytes";
17
- readonly name: "data";
18
- readonly type: "bytes";
19
- }];
20
- readonly name: "execute";
21
- readonly outputs: readonly [{
22
- readonly internalType: "bytes";
23
- readonly name: "result";
24
- readonly type: "bytes";
25
- }];
26
- readonly stateMutability: "payable";
27
- readonly type: "function";
28
- } | {
29
- readonly inputs: readonly [{
30
- readonly internalType: "address";
31
- readonly name: "to";
32
- readonly type: "address";
33
- }, {
34
- readonly internalType: "uint256";
35
- readonly name: "value";
36
- readonly type: "uint256";
37
- }, {
38
- readonly internalType: "bytes";
39
- readonly name: "data";
40
- readonly type: "bytes";
41
- }, {
42
- readonly internalType: "address";
43
- readonly name: "signer";
44
- readonly type: "address";
45
- }, {
46
- readonly internalType: "uint256";
47
- readonly name: "deadline";
48
- readonly type: "uint256";
49
- }, {
50
- readonly internalType: "bytes";
51
- readonly name: "signature";
52
- readonly type: "bytes";
53
- }];
54
- readonly name: "executeWithSig";
55
- readonly outputs: readonly [{
56
- readonly internalType: "bytes";
57
- readonly name: "result";
58
- readonly type: "bytes";
59
- }];
60
- readonly stateMutability: "payable";
61
- readonly type: "function";
62
- } | {
63
9
  readonly inputs: readonly [{
64
10
  readonly internalType: "address";
65
11
  readonly name: "caller";
@@ -727,6 +673,62 @@ export declare class LicenseClient {
727
673
  readonly inputs: readonly [];
728
674
  readonly name: "TaggingModule__SrcIpIdDoesNotHaveSrcTag";
729
675
  readonly type: "error";
676
+ } | {
677
+ readonly inputs: readonly [{
678
+ readonly internalType: "address";
679
+ readonly name: "to";
680
+ readonly type: "address";
681
+ }, {
682
+ readonly internalType: "uint256";
683
+ readonly name: "value";
684
+ readonly type: "uint256";
685
+ }, {
686
+ readonly internalType: "bytes";
687
+ readonly name: "data";
688
+ readonly type: "bytes";
689
+ }];
690
+ readonly name: "execute";
691
+ readonly outputs: readonly [{
692
+ readonly internalType: "bytes";
693
+ readonly name: "result";
694
+ readonly type: "bytes";
695
+ }];
696
+ readonly stateMutability: "payable";
697
+ readonly type: "function";
698
+ } | {
699
+ readonly inputs: readonly [{
700
+ readonly internalType: "address";
701
+ readonly name: "to";
702
+ readonly type: "address";
703
+ }, {
704
+ readonly internalType: "uint256";
705
+ readonly name: "value";
706
+ readonly type: "uint256";
707
+ }, {
708
+ readonly internalType: "bytes";
709
+ readonly name: "data";
710
+ readonly type: "bytes";
711
+ }, {
712
+ readonly internalType: "address";
713
+ readonly name: "signer";
714
+ readonly type: "address";
715
+ }, {
716
+ readonly internalType: "uint256";
717
+ readonly name: "deadline";
718
+ readonly type: "uint256";
719
+ }, {
720
+ readonly internalType: "bytes";
721
+ readonly name: "signature";
722
+ readonly type: "bytes";
723
+ }];
724
+ readonly name: "executeWithSig";
725
+ readonly outputs: readonly [{
726
+ readonly internalType: "bytes";
727
+ readonly name: "result";
728
+ readonly type: "bytes";
729
+ }];
730
+ readonly stateMutability: "payable";
731
+ readonly type: "function";
730
732
  })[];
731
733
  licenseRegistryConfig: {
732
734
  abi: readonly [{
@@ -793,7 +795,675 @@ export declare class LicenseClient {
793
795
  address: `0x${string}`;
794
796
  };
795
797
  licensingModuleConfig: {
796
- abi: readonly [{
798
+ abi: ({
799
+ readonly inputs: readonly [{
800
+ readonly internalType: "address";
801
+ readonly name: "caller";
802
+ readonly type: "address";
803
+ }];
804
+ readonly name: "AccessControlled__CallerIsNotIpAccount";
805
+ readonly type: "error";
806
+ } | {
807
+ readonly inputs: readonly [{
808
+ readonly internalType: "address";
809
+ readonly name: "ipAccount";
810
+ readonly type: "address";
811
+ }];
812
+ readonly name: "AccessControlled__NotIpAccount";
813
+ readonly type: "error";
814
+ } | {
815
+ readonly inputs: readonly [];
816
+ readonly name: "AccessControlled__ZeroAddress";
817
+ readonly type: "error";
818
+ } | {
819
+ readonly inputs: readonly [];
820
+ readonly name: "AccessController__CallerIsNotIPAccount";
821
+ readonly type: "error";
822
+ } | {
823
+ readonly inputs: readonly [{
824
+ readonly internalType: "address";
825
+ readonly name: "ipAccount";
826
+ readonly type: "address";
827
+ }];
828
+ readonly name: "AccessController__IPAccountIsNotValid";
829
+ readonly type: "error";
830
+ } | {
831
+ readonly inputs: readonly [];
832
+ readonly name: "AccessController__IPAccountIsZeroAddress";
833
+ readonly type: "error";
834
+ } | {
835
+ readonly inputs: readonly [{
836
+ readonly internalType: "address";
837
+ readonly name: "ipAccount";
838
+ readonly type: "address";
839
+ }, {
840
+ readonly internalType: "address";
841
+ readonly name: "signer";
842
+ readonly type: "address";
843
+ }, {
844
+ readonly internalType: "address";
845
+ readonly name: "to";
846
+ readonly type: "address";
847
+ }, {
848
+ readonly internalType: "bytes4";
849
+ readonly name: "func";
850
+ readonly type: "bytes4";
851
+ }];
852
+ readonly name: "AccessController__PermissionDenied";
853
+ readonly type: "error";
854
+ } | {
855
+ readonly inputs: readonly [];
856
+ readonly name: "AccessController__PermissionIsNotValid";
857
+ readonly type: "error";
858
+ } | {
859
+ readonly inputs: readonly [{
860
+ readonly internalType: "address";
861
+ readonly name: "to";
862
+ readonly type: "address";
863
+ }];
864
+ readonly name: "AccessController__RecipientIsNotRegisteredModule";
865
+ readonly type: "error";
866
+ } | {
867
+ readonly inputs: readonly [];
868
+ readonly name: "AccessController__SignerIsZeroAddress";
869
+ readonly type: "error";
870
+ } | {
871
+ readonly inputs: readonly [];
872
+ readonly name: "AncestorsVaultLAP__AlreadyClaimed";
873
+ readonly type: "error";
874
+ } | {
875
+ readonly inputs: readonly [];
876
+ readonly name: "AncestorsVaultLAP__ClaimerNotAnAncestor";
877
+ readonly type: "error";
878
+ } | {
879
+ readonly inputs: readonly [];
880
+ readonly name: "AncestorsVaultLAP__ERC20BalanceNotZero";
881
+ readonly type: "error";
882
+ } | {
883
+ readonly inputs: readonly [];
884
+ readonly name: "AncestorsVaultLAP__ETHBalanceNotZero";
885
+ readonly type: "error";
886
+ } | {
887
+ readonly inputs: readonly [];
888
+ readonly name: "AncestorsVaultLAP__InvalidAncestorsHash";
889
+ readonly type: "error";
890
+ } | {
891
+ readonly inputs: readonly [];
892
+ readonly name: "AncestorsVaultLAP__InvalidClaimer";
893
+ readonly type: "error";
894
+ } | {
895
+ readonly inputs: readonly [];
896
+ readonly name: "AncestorsVaultLAP__TransferFailed";
897
+ readonly type: "error";
898
+ } | {
899
+ readonly inputs: readonly [];
900
+ readonly name: "AncestorsVaultLAP__ZeroRoyaltyPolicyLAP";
901
+ readonly type: "error";
902
+ } | {
903
+ readonly inputs: readonly [];
904
+ readonly name: "ArbitrationPolicySP__NotDisputeModule";
905
+ readonly type: "error";
906
+ } | {
907
+ readonly inputs: readonly [];
908
+ readonly name: "ArbitrationPolicySP__ZeroDisputeModule";
909
+ readonly type: "error";
910
+ } | {
911
+ readonly inputs: readonly [];
912
+ readonly name: "ArbitrationPolicySP__ZeroPaymentToken";
913
+ readonly type: "error";
914
+ } | {
915
+ readonly inputs: readonly [];
916
+ readonly name: "DisputeModule__NotAbleToResolve";
917
+ readonly type: "error";
918
+ } | {
919
+ readonly inputs: readonly [];
920
+ readonly name: "DisputeModule__NotDisputeInitiator";
921
+ readonly type: "error";
922
+ } | {
923
+ readonly inputs: readonly [];
924
+ readonly name: "DisputeModule__NotInDisputeState";
925
+ readonly type: "error";
926
+ } | {
927
+ readonly inputs: readonly [];
928
+ readonly name: "DisputeModule__NotRegisteredIpId";
929
+ readonly type: "error";
930
+ } | {
931
+ readonly inputs: readonly [];
932
+ readonly name: "DisputeModule__NotWhitelistedArbitrationPolicy";
933
+ readonly type: "error";
934
+ } | {
935
+ readonly inputs: readonly [];
936
+ readonly name: "DisputeModule__NotWhitelistedArbitrationRelayer";
937
+ readonly type: "error";
938
+ } | {
939
+ readonly inputs: readonly [];
940
+ readonly name: "DisputeModule__NotWhitelistedDisputeTag";
941
+ readonly type: "error";
942
+ } | {
943
+ readonly inputs: readonly [];
944
+ readonly name: "DisputeModule__UnauthorizedAccess";
945
+ readonly type: "error";
946
+ } | {
947
+ readonly inputs: readonly [];
948
+ readonly name: "DisputeModule__ZeroArbitrationPolicy";
949
+ readonly type: "error";
950
+ } | {
951
+ readonly inputs: readonly [];
952
+ readonly name: "DisputeModule__ZeroArbitrationRelayer";
953
+ readonly type: "error";
954
+ } | {
955
+ readonly inputs: readonly [];
956
+ readonly name: "DisputeModule__ZeroDisputeTag";
957
+ readonly type: "error";
958
+ } | {
959
+ readonly inputs: readonly [];
960
+ readonly name: "DisputeModule__ZeroLinkToDisputeEvidence";
961
+ readonly type: "error";
962
+ } | {
963
+ readonly inputs: readonly [];
964
+ readonly name: "Governance__InconsistentState";
965
+ readonly type: "error";
966
+ } | {
967
+ readonly inputs: readonly [];
968
+ readonly name: "Governance__NewStateIsTheSameWithOldState";
969
+ readonly type: "error";
970
+ } | {
971
+ readonly inputs: readonly [];
972
+ readonly name: "Governance__OnlyProtocolAdmin";
973
+ readonly type: "error";
974
+ } | {
975
+ readonly inputs: readonly [];
976
+ readonly name: "Governance__ProtocolPaused";
977
+ readonly type: "error";
978
+ } | {
979
+ readonly inputs: readonly [{
980
+ readonly internalType: "string";
981
+ readonly name: "interfaceName";
982
+ readonly type: "string";
983
+ }];
984
+ readonly name: "Governance__UnsupportedInterface";
985
+ readonly type: "error";
986
+ } | {
987
+ readonly inputs: readonly [];
988
+ readonly name: "Governance__ZeroAddress";
989
+ readonly type: "error";
990
+ } | {
991
+ readonly inputs: readonly [];
992
+ readonly name: "IPAccountRegistry_InvalidIpAccountImpl";
993
+ readonly type: "error";
994
+ } | {
995
+ readonly inputs: readonly [];
996
+ readonly name: "IPAccount__ExpiredSignature";
997
+ readonly type: "error";
998
+ } | {
999
+ readonly inputs: readonly [];
1000
+ readonly name: "IPAccount__InvalidAccessController";
1001
+ readonly type: "error";
1002
+ } | {
1003
+ readonly inputs: readonly [];
1004
+ readonly name: "IPAccount__InvalidCalldata";
1005
+ readonly type: "error";
1006
+ } | {
1007
+ readonly inputs: readonly [];
1008
+ readonly name: "IPAccount__InvalidSignature";
1009
+ readonly type: "error";
1010
+ } | {
1011
+ readonly inputs: readonly [];
1012
+ readonly name: "IPAccount__InvalidSigner";
1013
+ readonly type: "error";
1014
+ } | {
1015
+ readonly inputs: readonly [];
1016
+ readonly name: "IPAssetRegistry__AlreadyRegistered";
1017
+ readonly type: "error";
1018
+ } | {
1019
+ readonly inputs: readonly [];
1020
+ readonly name: "IPAssetRegistry__IPAccountAlreadyCreated";
1021
+ readonly type: "error";
1022
+ } | {
1023
+ readonly inputs: readonly [];
1024
+ readonly name: "IPAssetRegistry__InvalidAccount";
1025
+ readonly type: "error";
1026
+ } | {
1027
+ readonly inputs: readonly [];
1028
+ readonly name: "IPAssetRegistry__InvalidMetadataProvider";
1029
+ readonly type: "error";
1030
+ } | {
1031
+ readonly inputs: readonly [];
1032
+ readonly name: "IPAssetRegistry__NotYetRegistered";
1033
+ readonly type: "error";
1034
+ } | {
1035
+ readonly inputs: readonly [];
1036
+ readonly name: "IPAssetRegistry__RegistrantUnauthorized";
1037
+ readonly type: "error";
1038
+ } | {
1039
+ readonly inputs: readonly [];
1040
+ readonly name: "IPAssetRegistry__ResolverInvalid";
1041
+ readonly type: "error";
1042
+ } | {
1043
+ readonly inputs: readonly [];
1044
+ readonly name: "IPAssetRegistry__Unauthorized";
1045
+ readonly type: "error";
1046
+ } | {
1047
+ readonly inputs: readonly [];
1048
+ readonly name: "IPResolver_InvalidIP";
1049
+ readonly type: "error";
1050
+ } | {
1051
+ readonly inputs: readonly [];
1052
+ readonly name: "IPResolver_Unauthorized";
1053
+ readonly type: "error";
1054
+ } | {
1055
+ readonly inputs: readonly [];
1056
+ readonly name: "LicenseRegistry__CallerNotLicensingModule";
1057
+ readonly type: "error";
1058
+ } | {
1059
+ readonly inputs: readonly [];
1060
+ readonly name: "LicenseRegistry__NotTransferable";
1061
+ readonly type: "error";
1062
+ } | {
1063
+ readonly inputs: readonly [];
1064
+ readonly name: "LicenseRegistry__RevokedLicense";
1065
+ readonly type: "error";
1066
+ } | {
1067
+ readonly inputs: readonly [];
1068
+ readonly name: "LicenseRegistry__ZeroDisputeModule";
1069
+ readonly type: "error";
1070
+ } | {
1071
+ readonly inputs: readonly [];
1072
+ readonly name: "LicenseRegistry__ZeroLicensingModule";
1073
+ readonly type: "error";
1074
+ } | {
1075
+ readonly inputs: readonly [];
1076
+ readonly name: "LicensingModuleAware__CallerNotLicensingModule";
1077
+ readonly type: "error";
1078
+ } | {
1079
+ readonly inputs: readonly [];
1080
+ readonly name: "LicensingModule__CallerNotLicenseRegistry";
1081
+ readonly type: "error";
1082
+ } | {
1083
+ readonly inputs: readonly [];
1084
+ readonly name: "LicensingModule__CallerNotLicensorAndPolicyNotSet";
1085
+ readonly type: "error";
1086
+ } | {
1087
+ readonly inputs: readonly [];
1088
+ readonly name: "LicensingModule__CommercialTermInNonCommercialPolicy";
1089
+ readonly type: "error";
1090
+ } | {
1091
+ readonly inputs: readonly [];
1092
+ readonly name: "LicensingModule__DerivativeRevShareSumExceedsMaxRNFTSupply";
1093
+ readonly type: "error";
1094
+ } | {
1095
+ readonly inputs: readonly [];
1096
+ readonly name: "LicensingModule__DerivativesCannotAddPolicy";
1097
+ readonly type: "error";
1098
+ } | {
1099
+ readonly inputs: readonly [];
1100
+ readonly name: "LicensingModule__DisputedIpId";
1101
+ readonly type: "error";
1102
+ } | {
1103
+ readonly inputs: readonly [];
1104
+ readonly name: "LicensingModule__EmptyLicenseUrl";
1105
+ readonly type: "error";
1106
+ } | {
1107
+ readonly inputs: readonly [];
1108
+ readonly name: "LicensingModule__EmptyParamName";
1109
+ readonly type: "error";
1110
+ } | {
1111
+ readonly inputs: readonly [];
1112
+ readonly name: "LicensingModule__FrameworkNotFound";
1113
+ readonly type: "error";
1114
+ } | {
1115
+ readonly inputs: readonly [];
1116
+ readonly name: "LicensingModule__IncompatibleLicensorCommercialPolicy";
1117
+ readonly type: "error";
1118
+ } | {
1119
+ readonly inputs: readonly [];
1120
+ readonly name: "LicensingModule__IncompatibleLicensorRoyaltyDerivativeRevShare";
1121
+ readonly type: "error";
1122
+ } | {
1123
+ readonly inputs: readonly [];
1124
+ readonly name: "LicensingModule__IncompatibleRoyaltyPolicyAddress";
1125
+ readonly type: "error";
1126
+ } | {
1127
+ readonly inputs: readonly [];
1128
+ readonly name: "LicensingModule__IncompatibleRoyaltyPolicyDerivativeRevShare";
1129
+ readonly type: "error";
1130
+ } | {
1131
+ readonly inputs: readonly [];
1132
+ readonly name: "LicensingModule__InvalidLicensor";
1133
+ readonly type: "error";
1134
+ } | {
1135
+ readonly inputs: readonly [];
1136
+ readonly name: "LicensingModule__InvalidPolicyFramework";
1137
+ readonly type: "error";
1138
+ } | {
1139
+ readonly inputs: readonly [];
1140
+ readonly name: "LicensingModule__LicensorDoesntHaveThisPolicy";
1141
+ readonly type: "error";
1142
+ } | {
1143
+ readonly inputs: readonly [];
1144
+ readonly name: "LicensingModule__LicensorNotRegistered";
1145
+ readonly type: "error";
1146
+ } | {
1147
+ readonly inputs: readonly [];
1148
+ readonly name: "LicensingModule__LinkParentParamFailed";
1149
+ readonly type: "error";
1150
+ } | {
1151
+ readonly inputs: readonly [];
1152
+ readonly name: "LicensingModule__LinkingRevokedLicense";
1153
+ readonly type: "error";
1154
+ } | {
1155
+ readonly inputs: readonly [];
1156
+ readonly name: "LicensingModule__MintLicenseParamFailed";
1157
+ readonly type: "error";
1158
+ } | {
1159
+ readonly inputs: readonly [];
1160
+ readonly name: "LicensingModule__MintingFeeTokenNotWhitelisted";
1161
+ readonly type: "error";
1162
+ } | {
1163
+ readonly inputs: readonly [];
1164
+ readonly name: "LicensingModule__MismatchBetweenRoyaltyPolicy";
1165
+ readonly type: "error";
1166
+ } | {
1167
+ readonly inputs: readonly [];
1168
+ readonly name: "LicensingModule__NotLicensee";
1169
+ readonly type: "error";
1170
+ } | {
1171
+ readonly inputs: readonly [];
1172
+ readonly name: "LicensingModule__ParamVerifierAlreadySet";
1173
+ readonly type: "error";
1174
+ } | {
1175
+ readonly inputs: readonly [];
1176
+ readonly name: "LicensingModule__ParamVerifierLengthMismatch";
1177
+ readonly type: "error";
1178
+ } | {
1179
+ readonly inputs: readonly [];
1180
+ readonly name: "LicensingModule__ParentIdEqualThanChild";
1181
+ readonly type: "error";
1182
+ } | {
1183
+ readonly inputs: readonly [];
1184
+ readonly name: "LicensingModule__PolicyAlreadySetForIpId";
1185
+ readonly type: "error";
1186
+ } | {
1187
+ readonly inputs: readonly [];
1188
+ readonly name: "LicensingModule__PolicyNotFound";
1189
+ readonly type: "error";
1190
+ } | {
1191
+ readonly inputs: readonly [];
1192
+ readonly name: "LicensingModule__RegisterPolicyFrameworkMismatch";
1193
+ readonly type: "error";
1194
+ } | {
1195
+ readonly inputs: readonly [];
1196
+ readonly name: "LicensingModule__RoyaltyPolicyNotWhitelisted";
1197
+ readonly type: "error";
1198
+ } | {
1199
+ readonly inputs: readonly [];
1200
+ readonly name: "LicensingModule__TransferParamFailed";
1201
+ readonly type: "error";
1202
+ } | {
1203
+ readonly inputs: readonly [];
1204
+ readonly name: "LicensingModule__UnauthorizedAccess";
1205
+ readonly type: "error";
1206
+ } | {
1207
+ readonly inputs: readonly [];
1208
+ readonly name: "LicensingModule__UnregisteredFrameworkAddingPolicy";
1209
+ readonly type: "error";
1210
+ } | {
1211
+ readonly inputs: readonly [];
1212
+ readonly name: "LicensorApprovalChecker__Unauthorized";
1213
+ readonly type: "error";
1214
+ } | {
1215
+ readonly inputs: readonly [];
1216
+ readonly name: "MetadataProvider__HashInvalid";
1217
+ readonly type: "error";
1218
+ } | {
1219
+ readonly inputs: readonly [];
1220
+ readonly name: "MetadataProvider__IPAssetOwnerInvalid";
1221
+ readonly type: "error";
1222
+ } | {
1223
+ readonly inputs: readonly [];
1224
+ readonly name: "MetadataProvider__MetadataNotCompatible";
1225
+ readonly type: "error";
1226
+ } | {
1227
+ readonly inputs: readonly [];
1228
+ readonly name: "MetadataProvider__NameInvalid";
1229
+ readonly type: "error";
1230
+ } | {
1231
+ readonly inputs: readonly [];
1232
+ readonly name: "MetadataProvider__RegistrantInvalid";
1233
+ readonly type: "error";
1234
+ } | {
1235
+ readonly inputs: readonly [];
1236
+ readonly name: "MetadataProvider__RegistrationDateInvalid";
1237
+ readonly type: "error";
1238
+ } | {
1239
+ readonly inputs: readonly [];
1240
+ readonly name: "MetadataProvider__URIInvalid";
1241
+ readonly type: "error";
1242
+ } | {
1243
+ readonly inputs: readonly [];
1244
+ readonly name: "MetadataProvider__Unauthorized";
1245
+ readonly type: "error";
1246
+ } | {
1247
+ readonly inputs: readonly [];
1248
+ readonly name: "MetadataProvider__UpgradeProviderInvalid";
1249
+ readonly type: "error";
1250
+ } | {
1251
+ readonly inputs: readonly [];
1252
+ readonly name: "MetadataProvider__UpgradeUnavailable";
1253
+ readonly type: "error";
1254
+ } | {
1255
+ readonly inputs: readonly [];
1256
+ readonly name: "ModuleRegistry__InterfaceIdZero";
1257
+ readonly type: "error";
1258
+ } | {
1259
+ readonly inputs: readonly [];
1260
+ readonly name: "ModuleRegistry__ModuleAddressNotContract";
1261
+ readonly type: "error";
1262
+ } | {
1263
+ readonly inputs: readonly [];
1264
+ readonly name: "ModuleRegistry__ModuleAddressZeroAddress";
1265
+ readonly type: "error";
1266
+ } | {
1267
+ readonly inputs: readonly [];
1268
+ readonly name: "ModuleRegistry__ModuleAlreadyRegistered";
1269
+ readonly type: "error";
1270
+ } | {
1271
+ readonly inputs: readonly [];
1272
+ readonly name: "ModuleRegistry__ModuleNotRegistered";
1273
+ readonly type: "error";
1274
+ } | {
1275
+ readonly inputs: readonly [];
1276
+ readonly name: "ModuleRegistry__ModuleNotSupportExpectedModuleTypeInterfaceId";
1277
+ readonly type: "error";
1278
+ } | {
1279
+ readonly inputs: readonly [];
1280
+ readonly name: "ModuleRegistry__ModuleTypeAlreadyRegistered";
1281
+ readonly type: "error";
1282
+ } | {
1283
+ readonly inputs: readonly [];
1284
+ readonly name: "ModuleRegistry__ModuleTypeEmptyString";
1285
+ readonly type: "error";
1286
+ } | {
1287
+ readonly inputs: readonly [];
1288
+ readonly name: "ModuleRegistry__ModuleTypeNotRegistered";
1289
+ readonly type: "error";
1290
+ } | {
1291
+ readonly inputs: readonly [];
1292
+ readonly name: "ModuleRegistry__NameAlreadyRegistered";
1293
+ readonly type: "error";
1294
+ } | {
1295
+ readonly inputs: readonly [];
1296
+ readonly name: "ModuleRegistry__NameDoesNotMatch";
1297
+ readonly type: "error";
1298
+ } | {
1299
+ readonly inputs: readonly [];
1300
+ readonly name: "ModuleRegistry__NameEmptyString";
1301
+ readonly type: "error";
1302
+ } | {
1303
+ readonly inputs: readonly [];
1304
+ readonly name: "Module_Unauthorized";
1305
+ readonly type: "error";
1306
+ } | {
1307
+ readonly inputs: readonly [{
1308
+ readonly internalType: "address";
1309
+ readonly name: "commercializer";
1310
+ readonly type: "address";
1311
+ }];
1312
+ readonly name: "PolicyFrameworkManager__CommercializerCheckerDoesNotSupportHook";
1313
+ readonly type: "error";
1314
+ } | {
1315
+ readonly inputs: readonly [];
1316
+ readonly name: "PolicyFrameworkManager__GettingPolicyWrongFramework";
1317
+ readonly type: "error";
1318
+ } | {
1319
+ readonly inputs: readonly [];
1320
+ readonly name: "RegistrationModule__InvalidOwner";
1321
+ readonly type: "error";
1322
+ } | {
1323
+ readonly inputs: readonly [];
1324
+ readonly name: "RoyaltyModule__CanOnlyMintSelectedPolicy";
1325
+ readonly type: "error";
1326
+ } | {
1327
+ readonly inputs: readonly [];
1328
+ readonly name: "RoyaltyModule__IncompatibleRoyaltyPolicy";
1329
+ readonly type: "error";
1330
+ } | {
1331
+ readonly inputs: readonly [];
1332
+ readonly name: "RoyaltyModule__NoParentsOnLinking";
1333
+ readonly type: "error";
1334
+ } | {
1335
+ readonly inputs: readonly [];
1336
+ readonly name: "RoyaltyModule__NoRoyaltyPolicySet";
1337
+ readonly type: "error";
1338
+ } | {
1339
+ readonly inputs: readonly [];
1340
+ readonly name: "RoyaltyModule__NotAllowedCaller";
1341
+ readonly type: "error";
1342
+ } | {
1343
+ readonly inputs: readonly [];
1344
+ readonly name: "RoyaltyModule__NotRegisteredIpId";
1345
+ readonly type: "error";
1346
+ } | {
1347
+ readonly inputs: readonly [];
1348
+ readonly name: "RoyaltyModule__NotWhitelistedRoyaltyPolicy";
1349
+ readonly type: "error";
1350
+ } | {
1351
+ readonly inputs: readonly [];
1352
+ readonly name: "RoyaltyModule__NotWhitelistedRoyaltyToken";
1353
+ readonly type: "error";
1354
+ } | {
1355
+ readonly inputs: readonly [];
1356
+ readonly name: "RoyaltyModule__ZeroLicensingModule";
1357
+ readonly type: "error";
1358
+ } | {
1359
+ readonly inputs: readonly [];
1360
+ readonly name: "RoyaltyModule__ZeroRoyaltyPolicy";
1361
+ readonly type: "error";
1362
+ } | {
1363
+ readonly inputs: readonly [];
1364
+ readonly name: "RoyaltyModule__ZeroRoyaltyToken";
1365
+ readonly type: "error";
1366
+ } | {
1367
+ readonly inputs: readonly [];
1368
+ readonly name: "RoyaltyPolicyLAP__AboveAncestorsLimit";
1369
+ readonly type: "error";
1370
+ } | {
1371
+ readonly inputs: readonly [];
1372
+ readonly name: "RoyaltyPolicyLAP__AboveParentLimit";
1373
+ readonly type: "error";
1374
+ } | {
1375
+ readonly inputs: readonly [];
1376
+ readonly name: "RoyaltyPolicyLAP__AboveRoyaltyStackLimit";
1377
+ readonly type: "error";
1378
+ } | {
1379
+ readonly inputs: readonly [];
1380
+ readonly name: "RoyaltyPolicyLAP__ImplementationAlreadySet";
1381
+ readonly type: "error";
1382
+ } | {
1383
+ readonly inputs: readonly [];
1384
+ readonly name: "RoyaltyPolicyLAP__InvalidAncestors";
1385
+ readonly type: "error";
1386
+ } | {
1387
+ readonly inputs: readonly [];
1388
+ readonly name: "RoyaltyPolicyLAP__InvalidAncestorsHash";
1389
+ readonly type: "error";
1390
+ } | {
1391
+ readonly inputs: readonly [];
1392
+ readonly name: "RoyaltyPolicyLAP__InvalidAncestorsLength";
1393
+ readonly type: "error";
1394
+ } | {
1395
+ readonly inputs: readonly [];
1396
+ readonly name: "RoyaltyPolicyLAP__InvalidAncestorsRoyalty";
1397
+ readonly type: "error";
1398
+ } | {
1399
+ readonly inputs: readonly [];
1400
+ readonly name: "RoyaltyPolicyLAP__InvalidParentRoyaltiesLength";
1401
+ readonly type: "error";
1402
+ } | {
1403
+ readonly inputs: readonly [];
1404
+ readonly name: "RoyaltyPolicyLAP__InvalidRoyaltyAmountLength";
1405
+ readonly type: "error";
1406
+ } | {
1407
+ readonly inputs: readonly [];
1408
+ readonly name: "RoyaltyPolicyLAP__LastPositionNotAbleToMintLicense";
1409
+ readonly type: "error";
1410
+ } | {
1411
+ readonly inputs: readonly [];
1412
+ readonly name: "RoyaltyPolicyLAP__NotFullOwnership";
1413
+ readonly type: "error";
1414
+ } | {
1415
+ readonly inputs: readonly [];
1416
+ readonly name: "RoyaltyPolicyLAP__NotRoyaltyModule";
1417
+ readonly type: "error";
1418
+ } | {
1419
+ readonly inputs: readonly [];
1420
+ readonly name: "RoyaltyPolicyLAP__TransferFailed";
1421
+ readonly type: "error";
1422
+ } | {
1423
+ readonly inputs: readonly [];
1424
+ readonly name: "RoyaltyPolicyLAP__UnlinkableToParents";
1425
+ readonly type: "error";
1426
+ } | {
1427
+ readonly inputs: readonly [];
1428
+ readonly name: "RoyaltyPolicyLAP__ZeroAncestorsVaultImpl";
1429
+ readonly type: "error";
1430
+ } | {
1431
+ readonly inputs: readonly [];
1432
+ readonly name: "RoyaltyPolicyLAP__ZeroLicensingModule";
1433
+ readonly type: "error";
1434
+ } | {
1435
+ readonly inputs: readonly [];
1436
+ readonly name: "RoyaltyPolicyLAP__ZeroLiquidSplitFactory";
1437
+ readonly type: "error";
1438
+ } | {
1439
+ readonly inputs: readonly [];
1440
+ readonly name: "RoyaltyPolicyLAP__ZeroLiquidSplitMain";
1441
+ readonly type: "error";
1442
+ } | {
1443
+ readonly inputs: readonly [];
1444
+ readonly name: "RoyaltyPolicyLAP__ZeroRoyaltyModule";
1445
+ readonly type: "error";
1446
+ } | {
1447
+ readonly inputs: readonly [];
1448
+ readonly name: "TaggingModule__DstIpIdDoesNotHaveDstTag";
1449
+ readonly type: "error";
1450
+ } | {
1451
+ readonly inputs: readonly [];
1452
+ readonly name: "TaggingModule__InvalidRelationTypeName";
1453
+ readonly type: "error";
1454
+ } | {
1455
+ readonly inputs: readonly [];
1456
+ readonly name: "TaggingModule__RelationTypeAlreadyExists";
1457
+ readonly type: "error";
1458
+ } | {
1459
+ readonly inputs: readonly [];
1460
+ readonly name: "TaggingModule__RelationTypeDoesNotExist";
1461
+ readonly type: "error";
1462
+ } | {
1463
+ readonly inputs: readonly [];
1464
+ readonly name: "TaggingModule__SrcIpIdDoesNotHaveSrcTag";
1465
+ readonly type: "error";
1466
+ } | {
797
1467
  readonly anonymous: false;
798
1468
  readonly inputs: readonly [{
799
1469
  readonly indexed: true;
@@ -813,7 +1483,7 @@ export declare class LicenseClient {
813
1483
  }];
814
1484
  readonly name: "IpIdLinkedToParents";
815
1485
  readonly type: "event";
816
- }, {
1486
+ } | {
817
1487
  readonly anonymous: false;
818
1488
  readonly inputs: readonly [{
819
1489
  readonly indexed: true;
@@ -843,7 +1513,7 @@ export declare class LicenseClient {
843
1513
  }];
844
1514
  readonly name: "PolicyAddedToIpId";
845
1515
  readonly type: "event";
846
- }, {
1516
+ } | {
847
1517
  readonly anonymous: false;
848
1518
  readonly inputs: readonly [{
849
1519
  readonly indexed: true;
@@ -883,7 +1553,7 @@ export declare class LicenseClient {
883
1553
  }];
884
1554
  readonly name: "PolicyRegistered";
885
1555
  readonly type: "event";
886
- }, {
1556
+ } | {
887
1557
  readonly inputs: readonly [{
888
1558
  readonly internalType: "address";
889
1559
  readonly name: "ipId";
@@ -901,7 +1571,7 @@ export declare class LicenseClient {
901
1571
  }];
902
1572
  readonly stateMutability: "nonpayable";
903
1573
  readonly type: "function";
904
- }, {
1574
+ } | {
905
1575
  readonly inputs: readonly [{
906
1576
  readonly internalType: "uint256[]";
907
1577
  readonly name: "licenseIds";
@@ -919,7 +1589,7 @@ export declare class LicenseClient {
919
1589
  readonly outputs: readonly [];
920
1590
  readonly stateMutability: "nonpayable";
921
1591
  readonly type: "function";
922
- }, {
1592
+ } | {
923
1593
  readonly inputs: readonly [{
924
1594
  readonly internalType: "uint256";
925
1595
  readonly name: "policyId";
@@ -949,7 +1619,7 @@ export declare class LicenseClient {
949
1619
  }];
950
1620
  readonly stateMutability: "nonpayable";
951
1621
  readonly type: "function";
952
- }, {
1622
+ } | {
953
1623
  readonly inputs: readonly [{
954
1624
  readonly components: readonly [{
955
1625
  readonly internalType: "bool";
@@ -992,10 +1662,10 @@ export declare class LicenseClient {
992
1662
  }];
993
1663
  readonly stateMutability: "nonpayable";
994
1664
  readonly type: "function";
995
- }];
1665
+ })[];
996
1666
  address: `0x${string}`;
997
1667
  };
998
- constructor(rpcClient: PublicClient, wallet: WalletClient);
1668
+ constructor(rpcClient: PublicClient, wallet: WalletClient, storyClient: StoryAPIClient);
999
1669
  /**
1000
1670
  * Mints license NFTs representing a policy granted by a set of ipIds (licensors). This NFT needs to be
1001
1671
  * burned in order to link a derivative IP with its parents. If this is the first combination of policy and
@@ -1006,7 +1676,7 @@ export declare class LicenseClient {
1006
1676
  * @param request.licensorIpId_ The ID of the IP granting the license (ie. licensor)
1007
1677
  * @param request.mintAmount Number of licenses to mint. License NFT is fungible for same policy and same licensors
1008
1678
  * @param request.receiver Receiver address of the minted license NFT(s).
1009
- * @return licenseId The ID of the minted license NFT(s).
1679
+ * @returns licenseId The ID of the minted license NFT(s).
1010
1680
  */
1011
1681
  mintLicense(request: MintLicenseRequest): Promise<MintLicenseResponse>;
1012
1682
  linkIpToParent(request: LinkIpToParentRequest): Promise<LinkIpToParentResponse>;