@story-protocol/core-sdk 0.1.0-rc.5 → 1.0.0-rc.1
Sign up to get free protection for your applications and to get access to all the features.
- package/README.md +100 -52
- package/dist/declarations/src/client.d.ts +36 -28
- package/dist/declarations/src/client.d.ts.map +1 -1
- package/dist/declarations/src/clients/storyAPI.d.ts +9 -0
- package/dist/declarations/src/clients/storyAPI.d.ts.map +1 -0
- package/dist/declarations/src/constants/common.d.ts +4 -0
- package/dist/declarations/src/constants/common.d.ts.map +1 -0
- package/dist/declarations/src/index.d.ts +12 -9
- package/dist/declarations/src/index.d.ts.map +1 -1
- package/dist/declarations/src/resources/dispute.d.ts +1128 -0
- package/dist/declarations/src/resources/dispute.d.ts.map +1 -0
- package/dist/declarations/src/resources/ipAccount.d.ts +1028 -0
- package/dist/declarations/src/resources/ipAccount.d.ts.map +1 -0
- package/dist/declarations/src/resources/ipAsset.d.ts +2357 -31
- package/dist/declarations/src/resources/ipAsset.d.ts.map +1 -1
- package/dist/declarations/src/resources/license.d.ts +4351 -27
- package/dist/declarations/src/resources/license.d.ts.map +1 -1
- package/dist/declarations/src/resources/permission.d.ts +2077 -0
- package/dist/declarations/src/resources/permission.d.ts.map +1 -0
- package/dist/declarations/src/resources/royalty.d.ts +3019 -0
- package/dist/declarations/src/resources/royalty.d.ts.map +1 -0
- package/dist/declarations/src/types/common.d.ts +6 -0
- package/dist/declarations/src/types/common.d.ts.map +1 -0
- package/dist/declarations/src/types/config.d.ts +15 -5
- package/dist/declarations/src/types/config.d.ts.map +1 -1
- package/dist/declarations/src/types/options.d.ts +6 -0
- package/dist/declarations/src/types/options.d.ts.map +1 -0
- package/dist/declarations/src/types/resources/dispute.d.ts +50 -0
- package/dist/declarations/src/types/resources/dispute.d.ts.map +1 -0
- package/dist/declarations/src/types/resources/ipAccount.d.ts +25 -0
- package/dist/declarations/src/types/resources/ipAccount.d.ts.map +1 -0
- package/dist/declarations/src/types/resources/ipAsset.d.ts +23 -63
- package/dist/declarations/src/types/resources/ipAsset.d.ts.map +1 -1
- package/dist/declarations/src/types/resources/license.d.ts +56 -68
- package/dist/declarations/src/types/resources/license.d.ts.map +1 -1
- package/dist/declarations/src/types/resources/permission.d.ts +14 -0
- package/dist/declarations/src/types/resources/permission.d.ts.map +1 -0
- package/dist/declarations/src/types/resources/royalty.d.ts +58 -0
- package/dist/declarations/src/types/resources/royalty.d.ts.map +1 -0
- package/dist/story-protocol-core-sdk.cjs.d.ts +1 -1
- package/dist/story-protocol-core-sdk.cjs.dev.js +3347 -1332
- package/dist/story-protocol-core-sdk.cjs.prod.js +3347 -1332
- package/dist/story-protocol-core-sdk.esm.js +3339 -1327
- package/package.json +16 -13
- package/dist/declarations/src/abi/generated/CollectModule.d.ts +0 -70
- package/dist/declarations/src/abi/generated/CollectModule.d.ts.map +0 -1
- package/dist/declarations/src/abi/generated/FranchiseRegistry.d.ts +0 -73
- package/dist/declarations/src/abi/generated/FranchiseRegistry.d.ts.map +0 -1
- package/dist/declarations/src/abi/generated/IpAssetRegistry.d.ts +0 -94
- package/dist/declarations/src/abi/generated/IpAssetRegistry.d.ts.map +0 -1
- package/dist/declarations/src/abi/generated/LicensingModule.d.ts +0 -97
- package/dist/declarations/src/abi/generated/LicensingModule.d.ts.map +0 -1
- package/dist/declarations/src/abi/generated/RelationshipModule.d.ts +0 -116
- package/dist/declarations/src/abi/generated/RelationshipModule.d.ts.map +0 -1
- package/dist/declarations/src/abi/generated/common.d.ts +0 -22
- package/dist/declarations/src/abi/generated/common.d.ts.map +0 -1
- package/dist/declarations/src/abi/generated/factories/CollectModule__factory.d.ts +0 -52
- package/dist/declarations/src/abi/generated/factories/CollectModule__factory.d.ts.map +0 -1
- package/dist/declarations/src/abi/generated/factories/FranchiseRegistry__factory.d.ts +0 -58
- package/dist/declarations/src/abi/generated/factories/FranchiseRegistry__factory.d.ts.map +0 -1
- package/dist/declarations/src/abi/generated/factories/IpAssetRegistry__factory.d.ts +0 -112
- package/dist/declarations/src/abi/generated/factories/IpAssetRegistry__factory.d.ts.map +0 -1
- package/dist/declarations/src/abi/generated/factories/LicensingModule__factory.d.ts +0 -88
- package/dist/declarations/src/abi/generated/factories/LicensingModule__factory.d.ts.map +0 -1
- package/dist/declarations/src/abi/generated/factories/RelationshipModule__factory.d.ts +0 -175
- package/dist/declarations/src/abi/generated/factories/RelationshipModule__factory.d.ts.map +0 -1
- package/dist/declarations/src/abi/generated/factories/index.d.ts +0 -6
- package/dist/declarations/src/abi/generated/factories/index.d.ts.map +0 -1
- package/dist/declarations/src/abi/generated/index.d.ts +0 -12
- package/dist/declarations/src/abi/generated/index.d.ts.map +0 -1
- package/dist/declarations/src/enums/Environment.d.ts +0 -8
- package/dist/declarations/src/enums/Environment.d.ts.map +0 -1
- package/dist/declarations/src/enums/IPAssetType.d.ts +0 -12
- package/dist/declarations/src/enums/IPAssetType.d.ts.map +0 -1
- package/dist/declarations/src/enums/ResourceType.d.ts +0 -11
- package/dist/declarations/src/enums/ResourceType.d.ts.map +0 -1
- package/dist/declarations/src/resources/collect.d.ts +0 -24
- package/dist/declarations/src/resources/collect.d.ts.map +0 -1
- package/dist/declarations/src/resources/franchise.d.ts +0 -41
- package/dist/declarations/src/resources/franchise.d.ts.map +0 -1
- package/dist/declarations/src/resources/relationship.d.ts +0 -48
- package/dist/declarations/src/resources/relationship.d.ts.map +0 -1
- package/dist/declarations/src/resources/transaction.d.ts +0 -25
- package/dist/declarations/src/resources/transaction.d.ts.map +0 -1
- package/dist/declarations/src/types/resources/collect.d.ts +0 -45
- package/dist/declarations/src/types/resources/collect.d.ts.map +0 -1
- package/dist/declarations/src/types/resources/franchise.d.ts +0 -71
- package/dist/declarations/src/types/resources/franchise.d.ts.map +0 -1
- package/dist/declarations/src/types/resources/relationship.d.ts +0 -83
- package/dist/declarations/src/types/resources/relationship.d.ts.map +0 -1
- package/dist/declarations/src/types/resources/transaction.d.ts +0 -40
- package/dist/declarations/src/types/resources/transaction.d.ts.map +0 -1
- package/dist/story-protocol-core-sdk.cjs.d.ts.map +0 -1
@@ -0,0 +1,1128 @@
|
|
1
|
+
import { PublicClient, WalletClient } from "viem";
|
2
|
+
import { CancelDisputeRequest, CancelDisputeResponse, RaiseDisputeRequest, RaiseDisputeResponse, ResolveDisputeRequest, ResolveDisputeResponse } from "../types/resources/dispute.js";
|
3
|
+
import { SupportedChainIds } from "../types/config.js";
|
4
|
+
export declare class DisputeClient {
|
5
|
+
private readonly wallet;
|
6
|
+
private readonly rpcClient;
|
7
|
+
disputeModuleConfig: {
|
8
|
+
abi: ({
|
9
|
+
readonly inputs: readonly [{
|
10
|
+
readonly internalType: "address";
|
11
|
+
readonly name: "caller";
|
12
|
+
readonly type: "address";
|
13
|
+
}];
|
14
|
+
readonly name: "AccessControlled__CallerIsNotIpAccount";
|
15
|
+
readonly type: "error";
|
16
|
+
} | {
|
17
|
+
readonly inputs: readonly [{
|
18
|
+
readonly internalType: "address";
|
19
|
+
readonly name: "ipAccount";
|
20
|
+
readonly type: "address";
|
21
|
+
}];
|
22
|
+
readonly name: "AccessControlled__NotIpAccount";
|
23
|
+
readonly type: "error";
|
24
|
+
} | {
|
25
|
+
readonly inputs: readonly [];
|
26
|
+
readonly name: "AccessControlled__ZeroAddress";
|
27
|
+
readonly type: "error";
|
28
|
+
} | {
|
29
|
+
readonly inputs: readonly [{
|
30
|
+
readonly internalType: "address";
|
31
|
+
readonly name: "signer";
|
32
|
+
readonly type: "address";
|
33
|
+
}, {
|
34
|
+
readonly internalType: "address";
|
35
|
+
readonly name: "to";
|
36
|
+
readonly type: "address";
|
37
|
+
}];
|
38
|
+
readonly name: "AccessController__BothCallerAndRecipientAreNotRegisteredModule";
|
39
|
+
readonly type: "error";
|
40
|
+
} | {
|
41
|
+
readonly inputs: readonly [];
|
42
|
+
/**
|
43
|
+
* Raises a dispute on a given ipId
|
44
|
+
* @param request - The request object containing necessary data to raise a dispute.
|
45
|
+
* @param request.targetIpId - The IP ID that is the target of the dispute.
|
46
|
+
* @param request.arbitrationPolicy - The address of the arbitration policy.
|
47
|
+
* @param request.linkToDisputeEvidence - The link to the dispute evidence.
|
48
|
+
* @param request.targetTag - The target tag of the dispute.
|
49
|
+
* @param request.calldata - Optional calldata to initialize the policy.
|
50
|
+
* @param request.txOptions - Optional transaction options.
|
51
|
+
* @returns A Promise that resolves to a RaiseDisputeResponse containing the transaction hash.
|
52
|
+
* @throws `NotRegisteredIpId` if targetIpId is not registered in the IPA Registry.
|
53
|
+
* @throws `NotWhitelistedDisputeTag` if targetTag is not whitelisted.
|
54
|
+
* @throws `ZeroLinkToDisputeEvidence` if linkToDisputeEvidence is empty
|
55
|
+
* @calls raiseDispute(address _targetIpId, string memory _linkToDisputeEvidence, bytes32 _targetTag, bytes calldata _data) external nonReentrant returns (uint256) {
|
56
|
+
* @emits DisputeRaised (disputeId_, targetIpId, msg.sender, arbitrationPolicy, linkToDisputeEvidence, targetTag, calldata);
|
57
|
+
*/
|
58
|
+
readonly name: "AccessController__CallerIsNotIPAccount";
|
59
|
+
readonly type: "error";
|
60
|
+
} | {
|
61
|
+
readonly inputs: readonly [{
|
62
|
+
readonly internalType: "address";
|
63
|
+
readonly name: "ipAccount";
|
64
|
+
readonly type: "address";
|
65
|
+
}];
|
66
|
+
readonly name: "AccessController__IPAccountIsNotValid";
|
67
|
+
readonly type: "error";
|
68
|
+
} | {
|
69
|
+
readonly inputs: readonly [];
|
70
|
+
readonly name: "AccessController__IPAccountIsZeroAddress";
|
71
|
+
readonly type: "error";
|
72
|
+
} | {
|
73
|
+
readonly inputs: readonly [{
|
74
|
+
readonly internalType: "address";
|
75
|
+
readonly name: "ipAccount";
|
76
|
+
readonly type: "address";
|
77
|
+
}, {
|
78
|
+
readonly internalType: "address";
|
79
|
+
readonly name: "signer";
|
80
|
+
readonly type: "address";
|
81
|
+
}, {
|
82
|
+
readonly internalType: "address";
|
83
|
+
readonly name: "to";
|
84
|
+
readonly type: "address";
|
85
|
+
}, {
|
86
|
+
readonly internalType: "bytes4";
|
87
|
+
readonly name: "func";
|
88
|
+
readonly type: "bytes4";
|
89
|
+
}];
|
90
|
+
readonly name: "AccessController__PermissionDenied";
|
91
|
+
readonly type: "error";
|
92
|
+
} | {
|
93
|
+
readonly inputs: readonly [];
|
94
|
+
readonly name: "AccessController__PermissionIsNotValid";
|
95
|
+
readonly type: "error";
|
96
|
+
} | {
|
97
|
+
readonly inputs: readonly [];
|
98
|
+
readonly name: "AccessController__SignerIsZeroAddress";
|
99
|
+
readonly type: "error";
|
100
|
+
} | {
|
101
|
+
readonly inputs: readonly [];
|
102
|
+
readonly name: "ArbitrationPolicySP__NotDisputeModule";
|
103
|
+
readonly type: "error";
|
104
|
+
} | {
|
105
|
+
readonly inputs: readonly [];
|
106
|
+
readonly name: "ArbitrationPolicySP__ZeroDisputeModule";
|
107
|
+
readonly type: "error";
|
108
|
+
} | {
|
109
|
+
readonly inputs: readonly [];
|
110
|
+
readonly name: "ArbitrationPolicySP__ZeroPaymentToken";
|
111
|
+
readonly type: "error";
|
112
|
+
} | {
|
113
|
+
readonly inputs: readonly [];
|
114
|
+
readonly name: "BasePolicyFrameworkManager__CallerNotLicensingModule";
|
115
|
+
readonly type: "error";
|
116
|
+
} | {
|
117
|
+
readonly inputs: readonly [];
|
118
|
+
readonly name: "CoreMetadataModule__MetadataAlreadyFrozen";
|
119
|
+
readonly type: "error";
|
120
|
+
} | {
|
121
|
+
readonly inputs: readonly [];
|
122
|
+
readonly name: "DisputeModule__NotAbleToResolve";
|
123
|
+
readonly type: "error";
|
124
|
+
} | {
|
125
|
+
readonly inputs: readonly [];
|
126
|
+
readonly name: "DisputeModule__NotDisputeInitiator";
|
127
|
+
readonly type: "error";
|
128
|
+
} | {
|
129
|
+
readonly inputs: readonly [];
|
130
|
+
readonly name: "DisputeModule__NotInDisputeState";
|
131
|
+
readonly type: "error";
|
132
|
+
} | {
|
133
|
+
readonly inputs: readonly [];
|
134
|
+
readonly name: "DisputeModule__NotRegisteredIpId";
|
135
|
+
readonly type: "error";
|
136
|
+
} | {
|
137
|
+
readonly inputs: readonly [];
|
138
|
+
readonly name: "DisputeModule__NotWhitelistedArbitrationPolicy";
|
139
|
+
readonly type: "error";
|
140
|
+
} | {
|
141
|
+
readonly inputs: readonly [];
|
142
|
+
readonly name: "DisputeModule__NotWhitelistedArbitrationRelayer";
|
143
|
+
readonly type: "error";
|
144
|
+
} | {
|
145
|
+
readonly inputs: readonly [];
|
146
|
+
readonly name: "DisputeModule__NotWhitelistedDisputeTag";
|
147
|
+
readonly type: "error";
|
148
|
+
} | {
|
149
|
+
readonly inputs: readonly [];
|
150
|
+
readonly name: "DisputeModule__ZeroArbitrationPolicy";
|
151
|
+
readonly type: "error";
|
152
|
+
} | {
|
153
|
+
readonly inputs: readonly [];
|
154
|
+
readonly name: "DisputeModule__ZeroArbitrationRelayer";
|
155
|
+
readonly type: "error";
|
156
|
+
} | {
|
157
|
+
readonly inputs: readonly [];
|
158
|
+
readonly name: "DisputeModule__ZeroDisputeTag";
|
159
|
+
readonly type: "error";
|
160
|
+
} | {
|
161
|
+
readonly inputs: readonly [];
|
162
|
+
readonly name: "DisputeModule__ZeroLinkToDisputeEvidence";
|
163
|
+
readonly type: "error";
|
164
|
+
} | {
|
165
|
+
readonly inputs: readonly [];
|
166
|
+
readonly name: "IPAccountRegistry_InvalidIpAccountImpl";
|
167
|
+
readonly type: "error";
|
168
|
+
} | {
|
169
|
+
readonly inputs: readonly [];
|
170
|
+
readonly name: "IPAccount__ExpiredSignature";
|
171
|
+
readonly type: "error";
|
172
|
+
} | {
|
173
|
+
readonly inputs: readonly [];
|
174
|
+
readonly name: "IPAccount__InvalidAccessController";
|
175
|
+
readonly type: "error";
|
176
|
+
} | {
|
177
|
+
readonly inputs: readonly [];
|
178
|
+
readonly name: "IPAccount__InvalidCalldata";
|
179
|
+
readonly type: "error";
|
180
|
+
} | {
|
181
|
+
readonly inputs: readonly [];
|
182
|
+
readonly name: "IPAccount__InvalidSignature";
|
183
|
+
readonly type: "error";
|
184
|
+
} | {
|
185
|
+
readonly inputs: readonly [];
|
186
|
+
readonly name: "IPAccount__InvalidSigner";
|
187
|
+
readonly type: "error";
|
188
|
+
} | {
|
189
|
+
readonly inputs: readonly [];
|
190
|
+
readonly name: "IPAssetRegistry__AlreadyRegistered";
|
191
|
+
readonly type: "error";
|
192
|
+
} | {
|
193
|
+
readonly inputs: readonly [];
|
194
|
+
readonly name: "IPAssetRegistry__IPAccountAlreadyCreated";
|
195
|
+
readonly type: "error";
|
196
|
+
} | {
|
197
|
+
readonly inputs: readonly [];
|
198
|
+
readonly name: "IPAssetRegistry__InvalidAccount";
|
199
|
+
readonly type: "error";
|
200
|
+
} | {
|
201
|
+
readonly inputs: readonly [];
|
202
|
+
readonly name: "IPAssetRegistry__InvalidMetadataProvider";
|
203
|
+
readonly type: "error";
|
204
|
+
} | {
|
205
|
+
readonly inputs: readonly [{
|
206
|
+
readonly internalType: "address";
|
207
|
+
readonly name: "contractAddress";
|
208
|
+
readonly type: "address";
|
209
|
+
}, {
|
210
|
+
readonly internalType: "uint256";
|
211
|
+
readonly name: "tokenId";
|
212
|
+
readonly type: "uint256";
|
213
|
+
}];
|
214
|
+
readonly name: "IPAssetRegistry__InvalidToken";
|
215
|
+
readonly type: "error";
|
216
|
+
} | {
|
217
|
+
readonly inputs: readonly [];
|
218
|
+
readonly name: "IPAssetRegistry__NotYetRegistered";
|
219
|
+
readonly type: "error";
|
220
|
+
} | {
|
221
|
+
readonly inputs: readonly [];
|
222
|
+
readonly name: "IPAssetRegistry__RegistrantUnauthorized";
|
223
|
+
readonly type: "error";
|
224
|
+
} | {
|
225
|
+
readonly inputs: readonly [];
|
226
|
+
readonly name: "IPAssetRegistry__ResolverInvalid";
|
227
|
+
readonly type: "error";
|
228
|
+
} | {
|
229
|
+
readonly inputs: readonly [];
|
230
|
+
readonly name: "IPAssetRegistry__Unauthorized";
|
231
|
+
readonly type: "error";
|
232
|
+
} | {
|
233
|
+
readonly inputs: readonly [{
|
234
|
+
readonly internalType: "address";
|
235
|
+
readonly name: "contractAddress";
|
236
|
+
readonly type: "address";
|
237
|
+
}];
|
238
|
+
readonly name: "IPAssetRegistry__UnsupportedIERC721";
|
239
|
+
readonly type: "error";
|
240
|
+
} | {
|
241
|
+
readonly inputs: readonly [{
|
242
|
+
readonly internalType: "address";
|
243
|
+
readonly name: "contractAddress";
|
244
|
+
readonly type: "address";
|
245
|
+
}];
|
246
|
+
readonly name: "IPAssetRegistry__UnsupportedIERC721Metadata";
|
247
|
+
readonly type: "error";
|
248
|
+
} | {
|
249
|
+
readonly inputs: readonly [];
|
250
|
+
readonly name: "IPResolver_InvalidIP";
|
251
|
+
readonly type: "error";
|
252
|
+
} | {
|
253
|
+
readonly inputs: readonly [];
|
254
|
+
readonly name: "IPResolver_Unauthorized";
|
255
|
+
readonly type: "error";
|
256
|
+
} | {
|
257
|
+
readonly inputs: readonly [];
|
258
|
+
readonly name: "IpRoyaltyVault__AlreadyClaimed";
|
259
|
+
readonly type: "error";
|
260
|
+
} | {
|
261
|
+
readonly inputs: readonly [];
|
262
|
+
readonly name: "IpRoyaltyVault__ClaimerNotAnAncestor";
|
263
|
+
readonly type: "error";
|
264
|
+
} | {
|
265
|
+
readonly inputs: readonly [];
|
266
|
+
readonly name: "IpRoyaltyVault__IpTagged";
|
267
|
+
readonly type: "error";
|
268
|
+
} | {
|
269
|
+
readonly inputs: readonly [];
|
270
|
+
readonly name: "IpRoyaltyVault__NotRoyaltyPolicyLAP";
|
271
|
+
readonly type: "error";
|
272
|
+
} | {
|
273
|
+
readonly inputs: readonly [];
|
274
|
+
readonly name: "IpRoyaltyVault__SnapshotIntervalTooShort";
|
275
|
+
readonly type: "error";
|
276
|
+
} | {
|
277
|
+
readonly inputs: readonly [];
|
278
|
+
readonly name: "IpRoyaltyVault__ZeroDisputeModule";
|
279
|
+
readonly type: "error";
|
280
|
+
} | {
|
281
|
+
readonly inputs: readonly [];
|
282
|
+
readonly name: "IpRoyaltyVault__ZeroIpId";
|
283
|
+
readonly type: "error";
|
284
|
+
} | {
|
285
|
+
readonly inputs: readonly [];
|
286
|
+
readonly name: "IpRoyaltyVault__ZeroRoyaltyPolicyLAP";
|
287
|
+
readonly type: "error";
|
288
|
+
} | {
|
289
|
+
readonly inputs: readonly [];
|
290
|
+
readonly name: "LicenseRegistry__CallerNotLicensingModule";
|
291
|
+
readonly type: "error";
|
292
|
+
} | {
|
293
|
+
readonly inputs: readonly [{
|
294
|
+
readonly internalType: "address";
|
295
|
+
readonly name: "childIpId";
|
296
|
+
readonly type: "address";
|
297
|
+
}];
|
298
|
+
readonly name: "LicenseRegistry__DerivativeAlreadyRegistered";
|
299
|
+
readonly type: "error";
|
300
|
+
} | {
|
301
|
+
readonly inputs: readonly [{
|
302
|
+
readonly internalType: "address";
|
303
|
+
readonly name: "childIpId";
|
304
|
+
readonly type: "address";
|
305
|
+
}];
|
306
|
+
readonly name: "LicenseRegistry__DerivativeIpAlreadyHasLicense";
|
307
|
+
readonly type: "error";
|
308
|
+
} | {
|
309
|
+
readonly inputs: readonly [{
|
310
|
+
readonly internalType: "address";
|
311
|
+
readonly name: "ipId";
|
312
|
+
readonly type: "address";
|
313
|
+
}];
|
314
|
+
readonly name: "LicenseRegistry__DerivativeIsParent";
|
315
|
+
readonly type: "error";
|
316
|
+
} | {
|
317
|
+
readonly inputs: readonly [{
|
318
|
+
readonly internalType: "address";
|
319
|
+
readonly name: "ipId";
|
320
|
+
readonly type: "address";
|
321
|
+
}, {
|
322
|
+
readonly internalType: "uint256";
|
323
|
+
readonly name: "index";
|
324
|
+
readonly type: "uint256";
|
325
|
+
}, {
|
326
|
+
readonly internalType: "uint256";
|
327
|
+
readonly name: "length";
|
328
|
+
readonly type: "uint256";
|
329
|
+
}];
|
330
|
+
readonly name: "LicenseRegistry__IndexOutOfBounds";
|
331
|
+
readonly type: "error";
|
332
|
+
} | {
|
333
|
+
readonly inputs: readonly [{
|
334
|
+
readonly internalType: "address";
|
335
|
+
readonly name: "ipId";
|
336
|
+
readonly type: "address";
|
337
|
+
}];
|
338
|
+
readonly name: "LicenseRegistry__IpExpired";
|
339
|
+
readonly type: "error";
|
340
|
+
} | {
|
341
|
+
readonly inputs: readonly [{
|
342
|
+
readonly internalType: "address";
|
343
|
+
readonly name: "licenseTemplate";
|
344
|
+
readonly type: "address";
|
345
|
+
}, {
|
346
|
+
readonly internalType: "uint256";
|
347
|
+
readonly name: "licenseTermsId";
|
348
|
+
readonly type: "uint256";
|
349
|
+
}];
|
350
|
+
readonly name: "LicenseRegistry__LicenseTermsNotExists";
|
351
|
+
readonly type: "error";
|
352
|
+
} | {
|
353
|
+
readonly inputs: readonly [];
|
354
|
+
readonly name: "LicenseRegistry__NoParentIp";
|
355
|
+
readonly type: "error";
|
356
|
+
} | {
|
357
|
+
readonly inputs: readonly [{
|
358
|
+
readonly internalType: "address";
|
359
|
+
readonly name: "licenseTemplate";
|
360
|
+
readonly type: "address";
|
361
|
+
}];
|
362
|
+
readonly name: "LicenseRegistry__NotLicenseTemplate";
|
363
|
+
readonly type: "error";
|
364
|
+
} | {
|
365
|
+
readonly inputs: readonly [];
|
366
|
+
readonly name: "LicenseRegistry__NotTransferable";
|
367
|
+
readonly type: "error";
|
368
|
+
} | {
|
369
|
+
readonly inputs: readonly [{
|
370
|
+
readonly internalType: "address";
|
371
|
+
readonly name: "ipId";
|
372
|
+
readonly type: "address";
|
373
|
+
}];
|
374
|
+
readonly name: "LicenseRegistry__ParentIpExpired";
|
375
|
+
readonly type: "error";
|
376
|
+
} | {
|
377
|
+
readonly inputs: readonly [{
|
378
|
+
readonly internalType: "address";
|
379
|
+
readonly name: "ipId";
|
380
|
+
readonly type: "address";
|
381
|
+
}, {
|
382
|
+
readonly internalType: "uint256";
|
383
|
+
readonly name: "licenseTermsId";
|
384
|
+
readonly type: "uint256";
|
385
|
+
}];
|
386
|
+
readonly name: "LicenseRegistry__ParentIpHasNoLicenseTerms";
|
387
|
+
readonly type: "error";
|
388
|
+
} | {
|
389
|
+
readonly inputs: readonly [{
|
390
|
+
readonly internalType: "address";
|
391
|
+
readonly name: "ipId";
|
392
|
+
readonly type: "address";
|
393
|
+
}];
|
394
|
+
readonly name: "LicenseRegistry__ParentIpTagged";
|
395
|
+
readonly type: "error";
|
396
|
+
} | {
|
397
|
+
readonly inputs: readonly [{
|
398
|
+
readonly internalType: "address";
|
399
|
+
readonly name: "ipId";
|
400
|
+
readonly type: "address";
|
401
|
+
}, {
|
402
|
+
readonly internalType: "address";
|
403
|
+
readonly name: "licenseTemplate";
|
404
|
+
readonly type: "address";
|
405
|
+
}];
|
406
|
+
readonly name: "LicenseRegistry__ParentIpUnmachedLicenseTemplate";
|
407
|
+
readonly type: "error";
|
408
|
+
} | {
|
409
|
+
readonly inputs: readonly [{
|
410
|
+
readonly internalType: "address";
|
411
|
+
readonly name: "licenseTemplate";
|
412
|
+
readonly type: "address";
|
413
|
+
}];
|
414
|
+
readonly name: "LicenseRegistry__UnregisteredLicenseTemplate";
|
415
|
+
readonly type: "error";
|
416
|
+
} | {
|
417
|
+
readonly inputs: readonly [];
|
418
|
+
readonly name: "LicenseRegistry__ZeroDisputeModule";
|
419
|
+
readonly type: "error";
|
420
|
+
} | {
|
421
|
+
readonly inputs: readonly [];
|
422
|
+
readonly name: "LicenseRegistry__ZeroLicensingModule";
|
423
|
+
readonly type: "error";
|
424
|
+
} | {
|
425
|
+
readonly inputs: readonly [{
|
426
|
+
readonly internalType: "address";
|
427
|
+
readonly name: "licenseTemplate";
|
428
|
+
readonly type: "address";
|
429
|
+
}, {
|
430
|
+
readonly internalType: "address";
|
431
|
+
readonly name: "anotherLicenseTemplate";
|
432
|
+
readonly type: "address";
|
433
|
+
}];
|
434
|
+
readonly name: "LicenseToken__AllLicenseTokensMustFromSameLicenseTemplate";
|
435
|
+
readonly type: "error";
|
436
|
+
} | {
|
437
|
+
readonly inputs: readonly [];
|
438
|
+
readonly name: "LicenseToken__CallerNotLicensingModule";
|
439
|
+
readonly type: "error";
|
440
|
+
} | {
|
441
|
+
readonly inputs: readonly [{
|
442
|
+
readonly internalType: "uint256";
|
443
|
+
readonly name: "tokenId";
|
444
|
+
readonly type: "uint256";
|
445
|
+
}, {
|
446
|
+
readonly internalType: "uint256";
|
447
|
+
readonly name: "expiredAt";
|
448
|
+
readonly type: "uint256";
|
449
|
+
}, {
|
450
|
+
readonly internalType: "uint256";
|
451
|
+
readonly name: "currentTimestamp";
|
452
|
+
readonly type: "uint256";
|
453
|
+
}];
|
454
|
+
readonly name: "LicenseToken__LicenseTokenExpired";
|
455
|
+
readonly type: "error";
|
456
|
+
} | {
|
457
|
+
readonly inputs: readonly [{
|
458
|
+
readonly internalType: "uint256";
|
459
|
+
readonly name: "tokenId";
|
460
|
+
readonly type: "uint256";
|
461
|
+
}, {
|
462
|
+
readonly internalType: "address";
|
463
|
+
readonly name: "iPowner";
|
464
|
+
readonly type: "address";
|
465
|
+
}, {
|
466
|
+
readonly internalType: "address";
|
467
|
+
readonly name: "tokenOwner";
|
468
|
+
readonly type: "address";
|
469
|
+
}];
|
470
|
+
readonly name: "LicenseToken__NotLicenseTokenOwner";
|
471
|
+
readonly type: "error";
|
472
|
+
} | {
|
473
|
+
readonly inputs: readonly [];
|
474
|
+
readonly name: "LicenseToken__NotTransferable";
|
475
|
+
readonly type: "error";
|
476
|
+
} | {
|
477
|
+
readonly inputs: readonly [{
|
478
|
+
readonly internalType: "uint256";
|
479
|
+
readonly name: "tokenId";
|
480
|
+
readonly type: "uint256";
|
481
|
+
}];
|
482
|
+
readonly name: "LicenseToken__RevokedLicense";
|
483
|
+
readonly type: "error";
|
484
|
+
} | {
|
485
|
+
readonly inputs: readonly [];
|
486
|
+
readonly name: "LicenseToken__ZeroDisputeModule";
|
487
|
+
readonly type: "error";
|
488
|
+
} | {
|
489
|
+
readonly inputs: readonly [];
|
490
|
+
readonly name: "LicenseToken__ZeroLicensingModule";
|
491
|
+
readonly type: "error";
|
492
|
+
} | {
|
493
|
+
readonly inputs: readonly [];
|
494
|
+
readonly name: "LicensingModule__CallerNotLicenseRegistry";
|
495
|
+
readonly type: "error";
|
496
|
+
} | {
|
497
|
+
readonly inputs: readonly [{
|
498
|
+
readonly internalType: "address";
|
499
|
+
readonly name: "caller";
|
500
|
+
readonly type: "address";
|
501
|
+
}, {
|
502
|
+
readonly internalType: "address";
|
503
|
+
readonly name: "licensorIpId";
|
504
|
+
readonly type: "address";
|
505
|
+
}, {
|
506
|
+
readonly internalType: "address";
|
507
|
+
readonly name: "licenseTemplate";
|
508
|
+
readonly type: "address";
|
509
|
+
}, {
|
510
|
+
readonly internalType: "uint256";
|
511
|
+
readonly name: "licenseTermsId";
|
512
|
+
readonly type: "uint256";
|
513
|
+
}];
|
514
|
+
readonly name: "LicensingModule__CallerNotLicensorAndIpHasNotAttachedLicenseTerms";
|
515
|
+
readonly type: "error";
|
516
|
+
} | {
|
517
|
+
readonly inputs: readonly [];
|
518
|
+
readonly name: "LicensingModule__CallerNotLicensorAndPolicyNotSet";
|
519
|
+
readonly type: "error";
|
520
|
+
} | {
|
521
|
+
readonly inputs: readonly [];
|
522
|
+
readonly name: "LicensingModule__CommercialTermInNonCommercialPolicy";
|
523
|
+
readonly type: "error";
|
524
|
+
} | {
|
525
|
+
readonly inputs: readonly [{
|
526
|
+
readonly internalType: "address";
|
527
|
+
readonly name: "ipId";
|
528
|
+
readonly type: "address";
|
529
|
+
}];
|
530
|
+
readonly name: "LicensingModule__DerivativeAlreadyHasLicenseTerms";
|
531
|
+
readonly type: "error";
|
532
|
+
} | {
|
533
|
+
readonly inputs: readonly [];
|
534
|
+
readonly name: "LicensingModule__DerivativeAlreadyRegistered";
|
535
|
+
readonly type: "error";
|
536
|
+
} | {
|
537
|
+
readonly inputs: readonly [];
|
538
|
+
readonly name: "LicensingModule__DerivativeIsParent";
|
539
|
+
readonly type: "error";
|
540
|
+
} | {
|
541
|
+
readonly inputs: readonly [];
|
542
|
+
readonly name: "LicensingModule__DerivativeRevShareSumExceedsMaxRNFTSupply";
|
543
|
+
readonly type: "error";
|
544
|
+
} | {
|
545
|
+
readonly inputs: readonly [];
|
546
|
+
readonly name: "LicensingModule__DerivativesCannotAddLicenseTerms";
|
547
|
+
readonly type: "error";
|
548
|
+
} | {
|
549
|
+
readonly inputs: readonly [];
|
550
|
+
readonly name: "LicensingModule__DerivativesCannotAddPolicy";
|
551
|
+
readonly type: "error";
|
552
|
+
} | {
|
553
|
+
readonly inputs: readonly [];
|
554
|
+
readonly name: "LicensingModule__DisputedIpId";
|
555
|
+
readonly type: "error";
|
556
|
+
} | {
|
557
|
+
readonly inputs: readonly [];
|
558
|
+
readonly name: "LicensingModule__EmptyLicenseUrl";
|
559
|
+
readonly type: "error";
|
560
|
+
} | {
|
561
|
+
readonly inputs: readonly [];
|
562
|
+
readonly name: "LicensingModule__EmptyParamName";
|
563
|
+
readonly type: "error";
|
564
|
+
} | {
|
565
|
+
readonly inputs: readonly [];
|
566
|
+
readonly name: "LicensingModule__FrameworkNotFound";
|
567
|
+
readonly type: "error";
|
568
|
+
} | {
|
569
|
+
readonly inputs: readonly [];
|
570
|
+
readonly name: "LicensingModule__IncompatibleLicensorRoyaltyDerivativeRevShare";
|
571
|
+
readonly type: "error";
|
572
|
+
} | {
|
573
|
+
readonly inputs: readonly [{
|
574
|
+
readonly internalType: "address";
|
575
|
+
readonly name: "royaltyPolicy";
|
576
|
+
readonly type: "address";
|
577
|
+
}, {
|
578
|
+
readonly internalType: "address";
|
579
|
+
readonly name: "anotherRoyaltyPolicy";
|
580
|
+
readonly type: "address";
|
581
|
+
}];
|
582
|
+
readonly name: "LicensingModule__IncompatibleRoyaltyPolicy";
|
583
|
+
readonly type: "error";
|
584
|
+
} | {
|
585
|
+
readonly inputs: readonly [];
|
586
|
+
readonly name: "LicensingModule__IncompatibleRoyaltyPolicyAddress";
|
587
|
+
readonly type: "error";
|
588
|
+
} | {
|
589
|
+
readonly inputs: readonly [];
|
590
|
+
readonly name: "LicensingModule__IncompatibleRoyaltyPolicyDerivativeRevShare";
|
591
|
+
readonly type: "error";
|
592
|
+
} | {
|
593
|
+
readonly inputs: readonly [];
|
594
|
+
readonly name: "LicensingModule__InvalidLicensor";
|
595
|
+
readonly type: "error";
|
596
|
+
} | {
|
597
|
+
readonly inputs: readonly [];
|
598
|
+
readonly name: "LicensingModule__InvalidPolicyFramework";
|
599
|
+
readonly type: "error";
|
600
|
+
} | {
|
601
|
+
readonly inputs: readonly [];
|
602
|
+
readonly name: "LicensingModule__IpAlreadyLinked";
|
603
|
+
readonly type: "error";
|
604
|
+
} | {
|
605
|
+
readonly inputs: readonly [{
|
606
|
+
readonly internalType: "address";
|
607
|
+
readonly name: "childIpId";
|
608
|
+
readonly type: "address";
|
609
|
+
}];
|
610
|
+
readonly name: "LicensingModule__LicenseNotCompatibleForDerivative";
|
611
|
+
readonly type: "error";
|
612
|
+
} | {
|
613
|
+
readonly inputs: readonly [{
|
614
|
+
readonly internalType: "uint256";
|
615
|
+
readonly name: "ipLength";
|
616
|
+
readonly type: "uint256";
|
617
|
+
}, {
|
618
|
+
readonly internalType: "uint256";
|
619
|
+
readonly name: "licenseTermsLength";
|
620
|
+
readonly type: "uint256";
|
621
|
+
}];
|
622
|
+
readonly name: "LicensingModule__LicenseTermsLengthMismatch";
|
623
|
+
readonly type: "error";
|
624
|
+
} | {
|
625
|
+
readonly inputs: readonly [{
|
626
|
+
readonly internalType: "address";
|
627
|
+
readonly name: "licenseTemplate";
|
628
|
+
readonly type: "address";
|
629
|
+
}, {
|
630
|
+
readonly internalType: "uint256";
|
631
|
+
readonly name: "licenseTermsId";
|
632
|
+
readonly type: "uint256";
|
633
|
+
}];
|
634
|
+
readonly name: "LicensingModule__LicenseTermsNotFound";
|
635
|
+
readonly type: "error";
|
636
|
+
} | {
|
637
|
+
readonly inputs: readonly [{
|
638
|
+
readonly internalType: "address";
|
639
|
+
readonly name: "childIpId";
|
640
|
+
readonly type: "address";
|
641
|
+
}, {
|
642
|
+
readonly internalType: "uint256[]";
|
643
|
+
readonly name: "licenseTokenIds";
|
644
|
+
readonly type: "uint256[]";
|
645
|
+
}];
|
646
|
+
readonly name: "LicensingModule__LicenseTokenNotCompatibleForDerivative";
|
647
|
+
readonly type: "error";
|
648
|
+
} | {
|
649
|
+
readonly inputs: readonly [];
|
650
|
+
readonly name: "LicensingModule__LicensorDoesntHaveThisPolicy";
|
651
|
+
readonly type: "error";
|
652
|
+
} | {
|
653
|
+
readonly inputs: readonly [];
|
654
|
+
readonly name: "LicensingModule__LicensorNotRegistered";
|
655
|
+
readonly type: "error";
|
656
|
+
} | {
|
657
|
+
readonly inputs: readonly [];
|
658
|
+
readonly name: "LicensingModule__LinkParentParamFailed";
|
659
|
+
readonly type: "error";
|
660
|
+
} | {
|
661
|
+
readonly inputs: readonly [];
|
662
|
+
readonly name: "LicensingModule__LinkingRevokedLicense";
|
663
|
+
readonly type: "error";
|
664
|
+
} | {
|
665
|
+
readonly inputs: readonly [];
|
666
|
+
readonly name: "LicensingModule__MintAmountZero";
|
667
|
+
readonly type: "error";
|
668
|
+
} | {
|
669
|
+
readonly inputs: readonly [];
|
670
|
+
readonly name: "LicensingModule__MintLicenseParamFailed";
|
671
|
+
readonly type: "error";
|
672
|
+
} | {
|
673
|
+
readonly inputs: readonly [];
|
674
|
+
readonly name: "LicensingModule__MintingFeeTokenNotWhitelisted";
|
675
|
+
readonly type: "error";
|
676
|
+
} | {
|
677
|
+
readonly inputs: readonly [];
|
678
|
+
readonly name: "LicensingModule__MismatchBetweenRoyaltyPolicy";
|
679
|
+
readonly type: "error";
|
680
|
+
} | {
|
681
|
+
readonly inputs: readonly [];
|
682
|
+
readonly name: "LicensingModule__NoLicenseToken";
|
683
|
+
readonly type: "error";
|
684
|
+
} | {
|
685
|
+
readonly inputs: readonly [];
|
686
|
+
readonly name: "LicensingModule__NoParentIp";
|
687
|
+
readonly type: "error";
|
688
|
+
} | {
|
689
|
+
readonly inputs: readonly [];
|
690
|
+
readonly name: "LicensingModule__NotLicensee";
|
691
|
+
readonly type: "error";
|
692
|
+
} | {
|
693
|
+
readonly inputs: readonly [];
|
694
|
+
readonly name: "LicensingModule__ParamVerifierAlreadySet";
|
695
|
+
readonly type: "error";
|
696
|
+
} | {
|
697
|
+
readonly inputs: readonly [];
|
698
|
+
readonly name: "LicensingModule__ParamVerifierLengthMismatch";
|
699
|
+
readonly type: "error";
|
700
|
+
} | {
|
701
|
+
readonly inputs: readonly [];
|
702
|
+
readonly name: "LicensingModule__ParentIdEqualThanChild";
|
703
|
+
readonly type: "error";
|
704
|
+
} | {
|
705
|
+
readonly inputs: readonly [{
|
706
|
+
readonly internalType: "address";
|
707
|
+
readonly name: "ipId";
|
708
|
+
readonly type: "address";
|
709
|
+
}];
|
710
|
+
readonly name: "LicensingModule__ParentIpHasNoLicenseTerms";
|
711
|
+
readonly type: "error";
|
712
|
+
} | {
|
713
|
+
readonly inputs: readonly [];
|
714
|
+
readonly name: "LicensingModule__PolicyAlreadySetForIpId";
|
715
|
+
readonly type: "error";
|
716
|
+
} | {
|
717
|
+
readonly inputs: readonly [];
|
718
|
+
readonly name: "LicensingModule__PolicyNotFound";
|
719
|
+
readonly type: "error";
|
720
|
+
} | {
|
721
|
+
readonly inputs: readonly [{
|
722
|
+
readonly internalType: "address";
|
723
|
+
readonly name: "receiver";
|
724
|
+
readonly type: "address";
|
725
|
+
}];
|
726
|
+
readonly name: "LicensingModule__ReceiverCheckFailed";
|
727
|
+
readonly type: "error";
|
728
|
+
} | {
|
729
|
+
readonly inputs: readonly [];
|
730
|
+
readonly name: "LicensingModule__ReceiverZeroAddress";
|
731
|
+
readonly type: "error";
|
732
|
+
} | {
|
733
|
+
readonly inputs: readonly [];
|
734
|
+
readonly name: "LicensingModule__RegisterPolicyFrameworkMismatch";
|
735
|
+
readonly type: "error";
|
736
|
+
} | {
|
737
|
+
readonly inputs: readonly [];
|
738
|
+
readonly name: "LicensingModule__RoyaltyPolicyNotWhitelisted";
|
739
|
+
readonly type: "error";
|
740
|
+
} | {
|
741
|
+
readonly inputs: readonly [];
|
742
|
+
readonly name: "LicensingModule__TransferParamFailed";
|
743
|
+
readonly type: "error";
|
744
|
+
} | {
|
745
|
+
readonly inputs: readonly [];
|
746
|
+
readonly name: "LicensingModule__UnauthorizedAccess";
|
747
|
+
readonly type: "error";
|
748
|
+
} | {
|
749
|
+
readonly inputs: readonly [];
|
750
|
+
readonly name: "LicensingModule__UnregisteredFrameworkAddingPolicy";
|
751
|
+
readonly type: "error";
|
752
|
+
} | {
|
753
|
+
readonly inputs: readonly [];
|
754
|
+
readonly name: "LicensorApprovalChecker__Unauthorized";
|
755
|
+
readonly type: "error";
|
756
|
+
} | {
|
757
|
+
readonly inputs: readonly [];
|
758
|
+
readonly name: "MetadataProvider__HashInvalid";
|
759
|
+
readonly type: "error";
|
760
|
+
} | {
|
761
|
+
readonly inputs: readonly [];
|
762
|
+
readonly name: "MetadataProvider__IPAssetOwnerInvalid";
|
763
|
+
readonly type: "error";
|
764
|
+
} | {
|
765
|
+
readonly inputs: readonly [];
|
766
|
+
readonly name: "MetadataProvider__MetadataNotCompatible";
|
767
|
+
readonly type: "error";
|
768
|
+
} | {
|
769
|
+
readonly inputs: readonly [];
|
770
|
+
readonly name: "MetadataProvider__NameInvalid";
|
771
|
+
readonly type: "error";
|
772
|
+
} | {
|
773
|
+
readonly inputs: readonly [];
|
774
|
+
readonly name: "MetadataProvider__RegistrantInvalid";
|
775
|
+
readonly type: "error";
|
776
|
+
} | {
|
777
|
+
readonly inputs: readonly [];
|
778
|
+
readonly name: "MetadataProvider__RegistrationDateInvalid";
|
779
|
+
readonly type: "error";
|
780
|
+
} | {
|
781
|
+
readonly inputs: readonly [];
|
782
|
+
readonly name: "MetadataProvider__URIInvalid";
|
783
|
+
readonly type: "error";
|
784
|
+
} | {
|
785
|
+
readonly inputs: readonly [];
|
786
|
+
readonly name: "MetadataProvider__Unauthorized";
|
787
|
+
readonly type: "error";
|
788
|
+
} | {
|
789
|
+
readonly inputs: readonly [];
|
790
|
+
readonly name: "MetadataProvider__UpgradeProviderInvalid";
|
791
|
+
readonly type: "error";
|
792
|
+
} | {
|
793
|
+
readonly inputs: readonly [];
|
794
|
+
readonly name: "MetadataProvider__UpgradeUnavailable";
|
795
|
+
readonly type: "error";
|
796
|
+
} | {
|
797
|
+
readonly inputs: readonly [];
|
798
|
+
readonly name: "ModuleRegistry__InterfaceIdZero";
|
799
|
+
readonly type: "error";
|
800
|
+
} | {
|
801
|
+
readonly inputs: readonly [];
|
802
|
+
readonly name: "ModuleRegistry__ModuleAddressNotContract";
|
803
|
+
readonly type: "error";
|
804
|
+
} | {
|
805
|
+
readonly inputs: readonly [];
|
806
|
+
readonly name: "ModuleRegistry__ModuleAddressZeroAddress";
|
807
|
+
readonly type: "error";
|
808
|
+
} | {
|
809
|
+
readonly inputs: readonly [];
|
810
|
+
readonly name: "ModuleRegistry__ModuleAlreadyRegistered";
|
811
|
+
readonly type: "error";
|
812
|
+
} | {
|
813
|
+
readonly inputs: readonly [];
|
814
|
+
readonly name: "ModuleRegistry__ModuleNotRegistered";
|
815
|
+
readonly type: "error";
|
816
|
+
} | {
|
817
|
+
readonly inputs: readonly [];
|
818
|
+
readonly name: "ModuleRegistry__ModuleNotSupportExpectedModuleTypeInterfaceId";
|
819
|
+
readonly type: "error";
|
820
|
+
} | {
|
821
|
+
readonly inputs: readonly [];
|
822
|
+
readonly name: "ModuleRegistry__ModuleTypeAlreadyRegistered";
|
823
|
+
readonly type: "error";
|
824
|
+
} | {
|
825
|
+
readonly inputs: readonly [];
|
826
|
+
readonly name: "ModuleRegistry__ModuleTypeEmptyString";
|
827
|
+
readonly type: "error";
|
828
|
+
} | {
|
829
|
+
readonly inputs: readonly [];
|
830
|
+
readonly name: "ModuleRegistry__ModuleTypeNotRegistered";
|
831
|
+
readonly type: "error";
|
832
|
+
} | {
|
833
|
+
readonly inputs: readonly [];
|
834
|
+
readonly name: "ModuleRegistry__NameAlreadyRegistered";
|
835
|
+
readonly type: "error";
|
836
|
+
} | {
|
837
|
+
readonly inputs: readonly [];
|
838
|
+
readonly name: "ModuleRegistry__NameDoesNotMatch";
|
839
|
+
readonly type: "error";
|
840
|
+
} | {
|
841
|
+
readonly inputs: readonly [];
|
842
|
+
readonly name: "ModuleRegistry__NameEmptyString";
|
843
|
+
readonly type: "error";
|
844
|
+
} | {
|
845
|
+
readonly inputs: readonly [];
|
846
|
+
readonly name: "Module_Unauthorized";
|
847
|
+
readonly type: "error";
|
848
|
+
} | {
|
849
|
+
readonly inputs: readonly [{
|
850
|
+
readonly internalType: "address";
|
851
|
+
readonly name: "commercializer";
|
852
|
+
readonly type: "address";
|
853
|
+
}];
|
854
|
+
readonly name: "PolicyFrameworkManager__CommercializerCheckerDoesNotSupportHook";
|
855
|
+
readonly type: "error";
|
856
|
+
} | {
|
857
|
+
readonly inputs: readonly [];
|
858
|
+
readonly name: "PolicyFrameworkManager__GettingPolicyWrongFramework";
|
859
|
+
readonly type: "error";
|
860
|
+
} | {
|
861
|
+
readonly inputs: readonly [];
|
862
|
+
readonly name: "RoyaltyModule__CanOnlyMintSelectedPolicy";
|
863
|
+
readonly type: "error";
|
864
|
+
} | {
|
865
|
+
readonly inputs: readonly [];
|
866
|
+
readonly name: "RoyaltyModule__IncompatibleRoyaltyPolicy";
|
867
|
+
readonly type: "error";
|
868
|
+
} | {
|
869
|
+
readonly inputs: readonly [];
|
870
|
+
readonly name: "RoyaltyModule__IpIsTagged";
|
871
|
+
readonly type: "error";
|
872
|
+
} | {
|
873
|
+
readonly inputs: readonly [];
|
874
|
+
readonly name: "RoyaltyModule__NoParentsOnLinking";
|
875
|
+
readonly type: "error";
|
876
|
+
} | {
|
877
|
+
readonly inputs: readonly [];
|
878
|
+
readonly name: "RoyaltyModule__NoRoyaltyPolicySet";
|
879
|
+
readonly type: "error";
|
880
|
+
} | {
|
881
|
+
readonly inputs: readonly [];
|
882
|
+
readonly name: "RoyaltyModule__NotAllowedCaller";
|
883
|
+
readonly type: "error";
|
884
|
+
} | {
|
885
|
+
readonly inputs: readonly [];
|
886
|
+
readonly name: "RoyaltyModule__NotWhitelistedRoyaltyPolicy";
|
887
|
+
readonly type: "error";
|
888
|
+
} | {
|
889
|
+
readonly inputs: readonly [];
|
890
|
+
readonly name: "RoyaltyModule__NotWhitelistedRoyaltyToken";
|
891
|
+
readonly type: "error";
|
892
|
+
} | {
|
893
|
+
readonly inputs: readonly [];
|
894
|
+
readonly name: "RoyaltyModule__ZeroDisputeModule";
|
895
|
+
readonly type: "error";
|
896
|
+
} | {
|
897
|
+
readonly inputs: readonly [];
|
898
|
+
readonly name: "RoyaltyModule__ZeroLicensingModule";
|
899
|
+
readonly type: "error";
|
900
|
+
} | {
|
901
|
+
readonly inputs: readonly [];
|
902
|
+
readonly name: "RoyaltyModule__ZeroRoyaltyPolicy";
|
903
|
+
readonly type: "error";
|
904
|
+
} | {
|
905
|
+
readonly inputs: readonly [];
|
906
|
+
readonly name: "RoyaltyModule__ZeroRoyaltyToken";
|
907
|
+
readonly type: "error";
|
908
|
+
} | {
|
909
|
+
readonly inputs: readonly [];
|
910
|
+
readonly name: "RoyaltyPolicyLAP__AboveAncestorsLimit";
|
911
|
+
readonly type: "error";
|
912
|
+
} | {
|
913
|
+
readonly inputs: readonly [];
|
914
|
+
readonly name: "RoyaltyPolicyLAP__AboveParentLimit";
|
915
|
+
readonly type: "error";
|
916
|
+
} | {
|
917
|
+
readonly inputs: readonly [];
|
918
|
+
readonly name: "RoyaltyPolicyLAP__AboveRoyaltyStackLimit";
|
919
|
+
readonly type: "error";
|
920
|
+
} | {
|
921
|
+
readonly inputs: readonly [];
|
922
|
+
readonly name: "RoyaltyPolicyLAP__ImplementationAlreadySet";
|
923
|
+
readonly type: "error";
|
924
|
+
} | {
|
925
|
+
readonly inputs: readonly [];
|
926
|
+
readonly name: "RoyaltyPolicyLAP__InvalidParentRoyaltiesLength";
|
927
|
+
readonly type: "error";
|
928
|
+
} | {
|
929
|
+
readonly inputs: readonly [];
|
930
|
+
readonly name: "RoyaltyPolicyLAP__LastPositionNotAbleToMintLicense";
|
931
|
+
readonly type: "error";
|
932
|
+
} | {
|
933
|
+
readonly inputs: readonly [];
|
934
|
+
readonly name: "RoyaltyPolicyLAP__NotFullOwnership";
|
935
|
+
readonly type: "error";
|
936
|
+
} | {
|
937
|
+
readonly inputs: readonly [];
|
938
|
+
readonly name: "RoyaltyPolicyLAP__NotRoyaltyModule";
|
939
|
+
readonly type: "error";
|
940
|
+
} | {
|
941
|
+
readonly inputs: readonly [];
|
942
|
+
readonly name: "RoyaltyPolicyLAP__UnlinkableToParents";
|
943
|
+
readonly type: "error";
|
944
|
+
} | {
|
945
|
+
readonly inputs: readonly [];
|
946
|
+
readonly name: "RoyaltyPolicyLAP__ZeroAncestorsVaultImpl";
|
947
|
+
readonly type: "error";
|
948
|
+
} | {
|
949
|
+
readonly inputs: readonly [];
|
950
|
+
readonly name: "RoyaltyPolicyLAP__ZeroIpRoyaltyVaultBeacon";
|
951
|
+
readonly type: "error";
|
952
|
+
} | {
|
953
|
+
readonly inputs: readonly [];
|
954
|
+
readonly name: "RoyaltyPolicyLAP__ZeroLicensingModule";
|
955
|
+
readonly type: "error";
|
956
|
+
} | {
|
957
|
+
readonly inputs: readonly [];
|
958
|
+
readonly name: "RoyaltyPolicyLAP__ZeroLiquidSplitFactory";
|
959
|
+
readonly type: "error";
|
960
|
+
} | {
|
961
|
+
readonly inputs: readonly [];
|
962
|
+
readonly name: "RoyaltyPolicyLAP__ZeroLiquidSplitMain";
|
963
|
+
readonly type: "error";
|
964
|
+
} | {
|
965
|
+
readonly inputs: readonly [];
|
966
|
+
readonly name: "RoyaltyPolicyLAP__ZeroRoyaltyModule";
|
967
|
+
readonly type: "error";
|
968
|
+
} | {
|
969
|
+
readonly anonymous: false;
|
970
|
+
readonly inputs: readonly [{
|
971
|
+
readonly indexed: false;
|
972
|
+
readonly internalType: "uint256";
|
973
|
+
readonly name: "disputeId";
|
974
|
+
readonly type: "uint256";
|
975
|
+
}, {
|
976
|
+
readonly indexed: false;
|
977
|
+
readonly internalType: "bytes";
|
978
|
+
readonly name: "data";
|
979
|
+
readonly type: "bytes";
|
980
|
+
}];
|
981
|
+
readonly name: "DisputeCancelled";
|
982
|
+
readonly type: "event";
|
983
|
+
} | {
|
984
|
+
readonly anonymous: false;
|
985
|
+
readonly inputs: readonly [{
|
986
|
+
readonly indexed: false;
|
987
|
+
readonly internalType: "uint256";
|
988
|
+
readonly name: "disputeId";
|
989
|
+
readonly type: "uint256";
|
990
|
+
}, {
|
991
|
+
readonly indexed: false;
|
992
|
+
readonly internalType: "address";
|
993
|
+
readonly name: "targetIpId";
|
994
|
+
readonly type: "address";
|
995
|
+
}, {
|
996
|
+
readonly indexed: false;
|
997
|
+
readonly internalType: "address";
|
998
|
+
readonly name: "disputeInitiator";
|
999
|
+
readonly type: "address";
|
1000
|
+
}, {
|
1001
|
+
readonly indexed: false;
|
1002
|
+
readonly internalType: "address";
|
1003
|
+
readonly name: "arbitrationPolicy";
|
1004
|
+
readonly type: "address";
|
1005
|
+
}, {
|
1006
|
+
readonly indexed: false;
|
1007
|
+
readonly internalType: "bytes32";
|
1008
|
+
readonly name: "linkToDisputeEvidence";
|
1009
|
+
readonly type: "bytes32";
|
1010
|
+
}, {
|
1011
|
+
readonly indexed: false;
|
1012
|
+
readonly internalType: "bytes32";
|
1013
|
+
readonly name: "targetTag";
|
1014
|
+
readonly type: "bytes32";
|
1015
|
+
}, {
|
1016
|
+
readonly indexed: false;
|
1017
|
+
readonly internalType: "bytes";
|
1018
|
+
readonly name: "data";
|
1019
|
+
readonly type: "bytes";
|
1020
|
+
}];
|
1021
|
+
readonly name: "DisputeRaised";
|
1022
|
+
readonly type: "event";
|
1023
|
+
} | {
|
1024
|
+
readonly anonymous: false;
|
1025
|
+
readonly inputs: readonly [{
|
1026
|
+
readonly indexed: false;
|
1027
|
+
readonly internalType: "uint256";
|
1028
|
+
readonly name: "disputeId";
|
1029
|
+
readonly type: "uint256";
|
1030
|
+
}];
|
1031
|
+
readonly name: "DisputeResolved";
|
1032
|
+
readonly type: "event";
|
1033
|
+
} | {
|
1034
|
+
readonly inputs: readonly [{
|
1035
|
+
readonly internalType: "uint256";
|
1036
|
+
readonly name: "disputeId";
|
1037
|
+
readonly type: "uint256";
|
1038
|
+
}, {
|
1039
|
+
readonly internalType: "bytes";
|
1040
|
+
readonly name: "data";
|
1041
|
+
readonly type: "bytes";
|
1042
|
+
}];
|
1043
|
+
readonly name: "cancelDispute";
|
1044
|
+
readonly outputs: readonly [];
|
1045
|
+
readonly stateMutability: "nonpayable";
|
1046
|
+
readonly type: "function";
|
1047
|
+
} | {
|
1048
|
+
readonly inputs: readonly [{
|
1049
|
+
readonly internalType: "address";
|
1050
|
+
readonly name: "targetIpId";
|
1051
|
+
readonly type: "address";
|
1052
|
+
}, {
|
1053
|
+
readonly internalType: "string";
|
1054
|
+
readonly name: "linkToDisputeEvidence";
|
1055
|
+
readonly type: "string";
|
1056
|
+
}, {
|
1057
|
+
readonly internalType: "bytes32";
|
1058
|
+
readonly name: "targetTag";
|
1059
|
+
readonly type: "bytes32";
|
1060
|
+
}, {
|
1061
|
+
readonly internalType: "bytes";
|
1062
|
+
readonly name: "data";
|
1063
|
+
readonly type: "bytes";
|
1064
|
+
}];
|
1065
|
+
readonly name: "raiseDispute";
|
1066
|
+
readonly outputs: readonly [{
|
1067
|
+
readonly internalType: "uint256";
|
1068
|
+
readonly name: "";
|
1069
|
+
readonly type: "uint256";
|
1070
|
+
}];
|
1071
|
+
readonly stateMutability: "nonpayable";
|
1072
|
+
readonly type: "function";
|
1073
|
+
} | {
|
1074
|
+
readonly inputs: readonly [{
|
1075
|
+
readonly internalType: "uint256";
|
1076
|
+
readonly name: "disputeId";
|
1077
|
+
readonly type: "uint256";
|
1078
|
+
}];
|
1079
|
+
readonly name: "resolveDispute";
|
1080
|
+
readonly outputs: readonly [];
|
1081
|
+
readonly stateMutability: "nonpayable";
|
1082
|
+
readonly type: "function";
|
1083
|
+
})[];
|
1084
|
+
address: `0x${string}`;
|
1085
|
+
};
|
1086
|
+
constructor(rpcClient: PublicClient, wallet: WalletClient, chainId: SupportedChainIds);
|
1087
|
+
/**
|
1088
|
+
* Raises a dispute on a given ipId
|
1089
|
+
* @param request - The request object containing necessary data to raise a dispute.
|
1090
|
+
* @param request.targetIpId - The IP ID that is the target of the dispute.
|
1091
|
+
* @param request.arbitrationPolicy - The address of the arbitration policy.
|
1092
|
+
* @param request.linkToDisputeEvidence - The link to the dispute evidence.
|
1093
|
+
* @param request.targetTag - The target tag of the dispute.
|
1094
|
+
* @param request.calldata - Optional calldata to initialize the policy.
|
1095
|
+
* @param request.txOptions - Optional transaction options.
|
1096
|
+
* @returns A Promise that resolves to a RaiseDisputeResponse containing the transaction hash.
|
1097
|
+
* @throws `NotRegisteredIpId` if targetIpId is not registered in the IPA Registry.
|
1098
|
+
* @throws `NotWhitelistedDisputeTag` if targetTag is not whitelisted.
|
1099
|
+
* @throws `ZeroLinkToDisputeEvidence` if linkToDisputeEvidence is empty
|
1100
|
+
* @calls raiseDispute(address _targetIpId, string memory _linkToDisputeEvidence, bytes32 _targetTag, bytes calldata _data) external nonReentrant returns (uint256) {
|
1101
|
+
* @emits DisputeRaised (disputeId_, targetIpId, msg.sender, arbitrationPolicy, linkToDisputeEvidence, targetTag, calldata);
|
1102
|
+
*/
|
1103
|
+
raiseDispute(request: RaiseDisputeRequest): Promise<RaiseDisputeResponse>;
|
1104
|
+
/**
|
1105
|
+
* Cancels an ongoing dispute
|
1106
|
+
* @param request The request object containing details to cancel the dispute.
|
1107
|
+
* @param request.disputeId The ID of the dispute to be cancelled.
|
1108
|
+
* @param request.calldata Optional additional data used in the cancellation process.
|
1109
|
+
* @returns A Promise that resolves to a CancelDisputeResponse containing the transaction hash.
|
1110
|
+
* @throws NotInDisputeState, if the currentTag of the Dispute is not being disputed
|
1111
|
+
* @throws NotDisputeInitiator, if the transaction executor is not the one that initiated the dispute
|
1112
|
+
* @throws error if the Dispute's ArbitrationPolicy contract is not valid
|
1113
|
+
* @calls cancelDispute(uint256 _disputeId, bytes calldata _data) external nonReentrant {
|
1114
|
+
* @emits DisputeCancelled (_disputeId, _data);
|
1115
|
+
*/
|
1116
|
+
cancelDispute(request: CancelDisputeRequest): Promise<CancelDisputeResponse>;
|
1117
|
+
/**
|
1118
|
+
* Resolves a dispute after it has been judged
|
1119
|
+
* @param request The request object containing details to resolve the dispute.
|
1120
|
+
* @param request.disputeId The ID of the dispute to be resolved.
|
1121
|
+
* @returns A Promise that resolves to a ResolveDisputeResponse.
|
1122
|
+
* @throws NotAbleToResolve, if currentTag is still in dispute (i.e still needs a judgement to be set)
|
1123
|
+
* @throws NotDisputeInitiator, if the transaction executor is not the one that initiated the dispute
|
1124
|
+
* @emits DisputeResolved (_disputeId)
|
1125
|
+
*/
|
1126
|
+
resolveDispute(request: ResolveDisputeRequest): Promise<ResolveDisputeResponse>;
|
1127
|
+
}
|
1128
|
+
//# sourceMappingURL=dispute.d.ts.map
|