@story-protocol/core-sdk 0.0.1-beta-test.1 → 0.0.1-beta-rc.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +0 -15
- package/dist/declarations/src/client.d.ts +22 -38
- package/dist/declarations/src/client.d.ts.map +1 -1
- package/dist/declarations/src/index.d.ts +11 -12
- package/dist/declarations/src/index.d.ts.map +1 -1
- package/dist/declarations/src/resources/dispute.d.ts +835 -0
- package/dist/declarations/src/resources/dispute.d.ts.map +1 -0
- package/dist/declarations/src/resources/ipAsset.d.ts +145 -12
- package/dist/declarations/src/resources/ipAsset.d.ts.map +1 -1
- package/dist/declarations/src/resources/license.d.ts +1014 -0
- package/dist/declarations/src/resources/license.d.ts.map +1 -0
- package/dist/declarations/src/resources/permission.d.ts +1478 -8
- package/dist/declarations/src/resources/permission.d.ts.map +1 -1
- package/dist/declarations/src/resources/policy.d.ts +1063 -0
- package/dist/declarations/src/resources/policy.d.ts.map +1 -0
- package/dist/declarations/src/resources/tagging.d.ts +711 -4
- package/dist/declarations/src/resources/tagging.d.ts.map +1 -1
- package/dist/declarations/src/types/config.d.ts +8 -9
- package/dist/declarations/src/types/config.d.ts.map +1 -1
- package/dist/declarations/src/types/options.d.ts +0 -6
- package/dist/declarations/src/types/options.d.ts.map +1 -1
- 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/ipAsset.d.ts +11 -126
- package/dist/declarations/src/types/resources/ipAsset.d.ts.map +1 -1
- package/dist/declarations/src/types/resources/license.d.ts +23 -0
- package/dist/declarations/src/types/resources/license.d.ts.map +1 -0
- package/dist/declarations/src/types/resources/permission.d.ts +5 -26
- package/dist/declarations/src/types/resources/permission.d.ts.map +1 -1
- package/dist/declarations/src/types/resources/policy.d.ts +35 -0
- package/dist/declarations/src/types/resources/policy.d.ts.map +1 -0
- package/dist/declarations/src/types/resources/tagging.d.ts +1 -13
- package/dist/declarations/src/types/resources/tagging.d.ts.map +1 -1
- package/dist/story-protocol-core-sdk.cjs.dev.js +2492 -1617
- package/dist/story-protocol-core-sdk.cjs.prod.js +2492 -1617
- package/dist/story-protocol-core-sdk.esm.js +2490 -1612
- package/package.json +5 -5
- package/dist/declarations/src/enums/ActionType.d.ts +0 -11
- package/dist/declarations/src/enums/ActionType.d.ts.map +0 -1
- package/dist/declarations/src/enums/ResourceType.d.ts +0 -15
- package/dist/declarations/src/enums/ResourceType.d.ts.map +0 -1
- package/dist/declarations/src/resources/ipAssetReadOnly.d.ts +0 -26
- package/dist/declarations/src/resources/ipAssetReadOnly.d.ts.map +0 -1
- package/dist/declarations/src/resources/moduleReadOnly.d.ts +0 -25
- package/dist/declarations/src/resources/moduleReadOnly.d.ts.map +0 -1
- package/dist/declarations/src/resources/permissionReadOnly.d.ts +0 -25
- package/dist/declarations/src/resources/permissionReadOnly.d.ts.map +0 -1
- package/dist/declarations/src/resources/taggingReadOnly.d.ts +0 -24
- package/dist/declarations/src/resources/taggingReadOnly.d.ts.map +0 -1
- package/dist/declarations/src/resources/transaction.d.ts +0 -11
- package/dist/declarations/src/resources/transaction.d.ts.map +0 -1
- package/dist/declarations/src/resources/transactionReadOnly.d.ts +0 -25
- package/dist/declarations/src/resources/transactionReadOnly.d.ts.map +0 -1
- package/dist/declarations/src/types/client.d.ts +0 -23
- package/dist/declarations/src/types/client.d.ts.map +0 -1
- package/dist/declarations/src/types/resources/module.d.ts +0 -43
- package/dist/declarations/src/types/resources/module.d.ts.map +0 -1
- package/dist/declarations/src/types/resources/transaction.d.ts +0 -52
- package/dist/declarations/src/types/resources/transaction.d.ts.map +0 -1
@@ -0,0 +1,835 @@
|
|
1
|
+
import { PublicClient, WalletClient } from "viem";
|
2
|
+
import { CancelDisputeRequest, CancelDisputeResponse, RaiseDisputeRequest, RaiseDisputeResponse, ResolveDisputeRequest, ResolveDisputeResponse } from "../types/resources/dispute.js";
|
3
|
+
export declare class DisputeClient {
|
4
|
+
private readonly wallet;
|
5
|
+
private readonly rpcClient;
|
6
|
+
disputeModuleConfig: {
|
7
|
+
abi: ({
|
8
|
+
readonly inputs: readonly [{
|
9
|
+
readonly internalType: "address";
|
10
|
+
readonly name: "caller";
|
11
|
+
readonly type: "address";
|
12
|
+
}];
|
13
|
+
readonly name: "AccessControlled__CallerIsNotIpAccount";
|
14
|
+
readonly type: "error";
|
15
|
+
} | {
|
16
|
+
readonly inputs: readonly [{
|
17
|
+
readonly internalType: "address";
|
18
|
+
readonly name: "ipAccount";
|
19
|
+
readonly type: "address";
|
20
|
+
}];
|
21
|
+
readonly name: "AccessControlled__NotIpAccount";
|
22
|
+
readonly type: "error";
|
23
|
+
} | {
|
24
|
+
readonly inputs: readonly [];
|
25
|
+
readonly name: "AccessControlled__ZeroAddress";
|
26
|
+
readonly type: "error";
|
27
|
+
} | {
|
28
|
+
readonly inputs: readonly [];
|
29
|
+
readonly name: "AccessController__CallerIsNotIPAccount";
|
30
|
+
readonly type: "error";
|
31
|
+
} | {
|
32
|
+
readonly inputs: readonly [{
|
33
|
+
readonly internalType: "address";
|
34
|
+
readonly name: "ipAccount";
|
35
|
+
readonly type: "address";
|
36
|
+
}];
|
37
|
+
readonly name: "AccessController__IPAccountIsNotValid";
|
38
|
+
readonly type: "error";
|
39
|
+
} | {
|
40
|
+
readonly inputs: readonly [];
|
41
|
+
readonly name: "AccessController__IPAccountIsZeroAddress";
|
42
|
+
readonly type: "error";
|
43
|
+
} | {
|
44
|
+
readonly inputs: readonly [{
|
45
|
+
readonly internalType: "address";
|
46
|
+
readonly name: "ipAccount";
|
47
|
+
readonly type: "address";
|
48
|
+
}, {
|
49
|
+
readonly internalType: "address";
|
50
|
+
readonly name: "signer";
|
51
|
+
readonly type: "address";
|
52
|
+
}, {
|
53
|
+
readonly internalType: "address";
|
54
|
+
readonly name: "to";
|
55
|
+
readonly type: "address";
|
56
|
+
}, {
|
57
|
+
readonly internalType: "bytes4";
|
58
|
+
readonly name: "func";
|
59
|
+
readonly type: "bytes4";
|
60
|
+
}];
|
61
|
+
readonly name: "AccessController__PermissionDenied";
|
62
|
+
readonly type: "error";
|
63
|
+
} | {
|
64
|
+
readonly inputs: readonly [];
|
65
|
+
readonly name: "AccessController__PermissionIsNotValid";
|
66
|
+
readonly type: "error";
|
67
|
+
} | {
|
68
|
+
readonly inputs: readonly [{
|
69
|
+
readonly internalType: "address";
|
70
|
+
readonly name: "to";
|
71
|
+
readonly type: "address";
|
72
|
+
}];
|
73
|
+
readonly name: "AccessController__RecipientIsNotRegisteredModule";
|
74
|
+
readonly type: "error";
|
75
|
+
} | {
|
76
|
+
readonly inputs: readonly [];
|
77
|
+
readonly name: "AccessController__SignerIsZeroAddress";
|
78
|
+
readonly type: "error";
|
79
|
+
} | {
|
80
|
+
readonly inputs: readonly [];
|
81
|
+
readonly name: "AncestorsVaultLAP__AlreadyClaimed";
|
82
|
+
readonly type: "error";
|
83
|
+
} | {
|
84
|
+
readonly inputs: readonly [];
|
85
|
+
readonly name: "AncestorsVaultLAP__ClaimerNotAnAncestor";
|
86
|
+
readonly type: "error";
|
87
|
+
} | {
|
88
|
+
readonly inputs: readonly [];
|
89
|
+
readonly name: "AncestorsVaultLAP__ERC20BalanceNotZero";
|
90
|
+
readonly type: "error";
|
91
|
+
} | {
|
92
|
+
readonly inputs: readonly [];
|
93
|
+
readonly name: "AncestorsVaultLAP__ETHBalanceNotZero";
|
94
|
+
readonly type: "error";
|
95
|
+
} | {
|
96
|
+
readonly inputs: readonly [];
|
97
|
+
readonly name: "AncestorsVaultLAP__InvalidAncestorsHash";
|
98
|
+
readonly type: "error";
|
99
|
+
} | {
|
100
|
+
readonly inputs: readonly [];
|
101
|
+
readonly name: "AncestorsVaultLAP__InvalidClaimer";
|
102
|
+
readonly type: "error";
|
103
|
+
} | {
|
104
|
+
readonly inputs: readonly [];
|
105
|
+
readonly name: "AncestorsVaultLAP__TransferFailed";
|
106
|
+
readonly type: "error";
|
107
|
+
} | {
|
108
|
+
readonly inputs: readonly [];
|
109
|
+
readonly name: "AncestorsVaultLAP__ZeroRoyaltyPolicyLAP";
|
110
|
+
readonly type: "error";
|
111
|
+
} | {
|
112
|
+
readonly inputs: readonly [];
|
113
|
+
readonly name: "ArbitrationPolicySP__NotDisputeModule";
|
114
|
+
readonly type: "error";
|
115
|
+
} | {
|
116
|
+
readonly inputs: readonly [];
|
117
|
+
readonly name: "ArbitrationPolicySP__ZeroDisputeModule";
|
118
|
+
readonly type: "error";
|
119
|
+
} | {
|
120
|
+
readonly inputs: readonly [];
|
121
|
+
readonly name: "ArbitrationPolicySP__ZeroPaymentToken";
|
122
|
+
readonly type: "error";
|
123
|
+
} | {
|
124
|
+
readonly inputs: readonly [];
|
125
|
+
readonly name: "DisputeModule__NotAbleToResolve";
|
126
|
+
readonly type: "error";
|
127
|
+
} | {
|
128
|
+
readonly inputs: readonly [];
|
129
|
+
readonly name: "DisputeModule__NotDisputeInitiator";
|
130
|
+
readonly type: "error";
|
131
|
+
} | {
|
132
|
+
readonly inputs: readonly [];
|
133
|
+
readonly name: "DisputeModule__NotInDisputeState";
|
134
|
+
readonly type: "error";
|
135
|
+
} | {
|
136
|
+
readonly inputs: readonly [];
|
137
|
+
readonly name: "DisputeModule__NotRegisteredIpId";
|
138
|
+
readonly type: "error";
|
139
|
+
} | {
|
140
|
+
readonly inputs: readonly [];
|
141
|
+
readonly name: "DisputeModule__NotWhitelistedArbitrationPolicy";
|
142
|
+
readonly type: "error";
|
143
|
+
} | {
|
144
|
+
readonly inputs: readonly [];
|
145
|
+
readonly name: "DisputeModule__NotWhitelistedArbitrationRelayer";
|
146
|
+
readonly type: "error";
|
147
|
+
} | {
|
148
|
+
readonly inputs: readonly [];
|
149
|
+
readonly name: "DisputeModule__NotWhitelistedDisputeTag";
|
150
|
+
readonly type: "error";
|
151
|
+
} | {
|
152
|
+
readonly inputs: readonly [];
|
153
|
+
readonly name: "DisputeModule__UnauthorizedAccess";
|
154
|
+
readonly type: "error";
|
155
|
+
} | {
|
156
|
+
readonly inputs: readonly [];
|
157
|
+
readonly name: "DisputeModule__ZeroArbitrationPolicy";
|
158
|
+
readonly type: "error";
|
159
|
+
} | {
|
160
|
+
readonly inputs: readonly [];
|
161
|
+
readonly name: "DisputeModule__ZeroArbitrationRelayer";
|
162
|
+
readonly type: "error";
|
163
|
+
} | {
|
164
|
+
readonly inputs: readonly [];
|
165
|
+
readonly name: "DisputeModule__ZeroDisputeTag";
|
166
|
+
readonly type: "error";
|
167
|
+
} | {
|
168
|
+
readonly inputs: readonly [];
|
169
|
+
readonly name: "DisputeModule__ZeroLinkToDisputeEvidence";
|
170
|
+
readonly type: "error";
|
171
|
+
} | {
|
172
|
+
readonly inputs: readonly [];
|
173
|
+
readonly name: "Governance__InconsistentState";
|
174
|
+
readonly type: "error";
|
175
|
+
} | {
|
176
|
+
readonly inputs: readonly [];
|
177
|
+
readonly name: "Governance__NewStateIsTheSameWithOldState";
|
178
|
+
readonly type: "error";
|
179
|
+
} | {
|
180
|
+
readonly inputs: readonly [];
|
181
|
+
readonly name: "Governance__OnlyProtocolAdmin";
|
182
|
+
readonly type: "error";
|
183
|
+
} | {
|
184
|
+
readonly inputs: readonly [];
|
185
|
+
readonly name: "Governance__ProtocolPaused";
|
186
|
+
readonly type: "error";
|
187
|
+
} | {
|
188
|
+
readonly inputs: readonly [{
|
189
|
+
readonly internalType: "string";
|
190
|
+
readonly name: "interfaceName";
|
191
|
+
readonly type: "string";
|
192
|
+
}];
|
193
|
+
readonly name: "Governance__UnsupportedInterface";
|
194
|
+
readonly type: "error";
|
195
|
+
} | {
|
196
|
+
readonly inputs: readonly [];
|
197
|
+
readonly name: "Governance__ZeroAddress";
|
198
|
+
readonly type: "error";
|
199
|
+
} | {
|
200
|
+
readonly inputs: readonly [];
|
201
|
+
readonly name: "IPAccountRegistry_InvalidIpAccountImpl";
|
202
|
+
readonly type: "error";
|
203
|
+
} | {
|
204
|
+
readonly inputs: readonly [];
|
205
|
+
readonly name: "IPAccount__ExpiredSignature";
|
206
|
+
readonly type: "error";
|
207
|
+
} | {
|
208
|
+
readonly inputs: readonly [];
|
209
|
+
readonly name: "IPAccount__InvalidAccessController";
|
210
|
+
readonly type: "error";
|
211
|
+
} | {
|
212
|
+
readonly inputs: readonly [];
|
213
|
+
readonly name: "IPAccount__InvalidCalldata";
|
214
|
+
readonly type: "error";
|
215
|
+
} | {
|
216
|
+
readonly inputs: readonly [];
|
217
|
+
readonly name: "IPAccount__InvalidSignature";
|
218
|
+
readonly type: "error";
|
219
|
+
} | {
|
220
|
+
readonly inputs: readonly [];
|
221
|
+
readonly name: "IPAccount__InvalidSigner";
|
222
|
+
readonly type: "error";
|
223
|
+
} | {
|
224
|
+
readonly inputs: readonly [];
|
225
|
+
readonly name: "IPAssetRegistry__AlreadyRegistered";
|
226
|
+
readonly type: "error";
|
227
|
+
} | {
|
228
|
+
readonly inputs: readonly [];
|
229
|
+
readonly name: "IPAssetRegistry__IPAccountAlreadyCreated";
|
230
|
+
readonly type: "error";
|
231
|
+
} | {
|
232
|
+
readonly inputs: readonly [];
|
233
|
+
readonly name: "IPAssetRegistry__InvalidAccount";
|
234
|
+
readonly type: "error";
|
235
|
+
} | {
|
236
|
+
readonly inputs: readonly [];
|
237
|
+
readonly name: "IPAssetRegistry__InvalidMetadataProvider";
|
238
|
+
readonly type: "error";
|
239
|
+
} | {
|
240
|
+
readonly inputs: readonly [];
|
241
|
+
readonly name: "IPAssetRegistry__NotYetRegistered";
|
242
|
+
readonly type: "error";
|
243
|
+
} | {
|
244
|
+
readonly inputs: readonly [];
|
245
|
+
readonly name: "IPAssetRegistry__RegistrantUnauthorized";
|
246
|
+
readonly type: "error";
|
247
|
+
} | {
|
248
|
+
readonly inputs: readonly [];
|
249
|
+
readonly name: "IPAssetRegistry__ResolverInvalid";
|
250
|
+
readonly type: "error";
|
251
|
+
} | {
|
252
|
+
readonly inputs: readonly [];
|
253
|
+
readonly name: "IPAssetRegistry__Unauthorized";
|
254
|
+
readonly type: "error";
|
255
|
+
} | {
|
256
|
+
readonly inputs: readonly [];
|
257
|
+
readonly name: "IPResolver_InvalidIP";
|
258
|
+
readonly type: "error";
|
259
|
+
} | {
|
260
|
+
readonly inputs: readonly [];
|
261
|
+
readonly name: "IPResolver_Unauthorized";
|
262
|
+
readonly type: "error";
|
263
|
+
} | {
|
264
|
+
readonly inputs: readonly [];
|
265
|
+
readonly name: "LicenseRegistry__CallerNotLicensingModule";
|
266
|
+
readonly type: "error";
|
267
|
+
} | {
|
268
|
+
readonly inputs: readonly [];
|
269
|
+
readonly name: "LicenseRegistry__NotTransferable";
|
270
|
+
readonly type: "error";
|
271
|
+
} | {
|
272
|
+
readonly inputs: readonly [];
|
273
|
+
readonly name: "LicenseRegistry__RevokedLicense";
|
274
|
+
readonly type: "error";
|
275
|
+
} | {
|
276
|
+
readonly inputs: readonly [];
|
277
|
+
readonly name: "LicenseRegistry__ZeroDisputeModule";
|
278
|
+
readonly type: "error";
|
279
|
+
} | {
|
280
|
+
readonly inputs: readonly [];
|
281
|
+
readonly name: "LicenseRegistry__ZeroLicensingModule";
|
282
|
+
readonly type: "error";
|
283
|
+
} | {
|
284
|
+
readonly inputs: readonly [];
|
285
|
+
readonly name: "LicensingModuleAware__CallerNotLicensingModule";
|
286
|
+
readonly type: "error";
|
287
|
+
} | {
|
288
|
+
readonly inputs: readonly [];
|
289
|
+
readonly name: "LicensingModule__CallerNotLicenseRegistry";
|
290
|
+
readonly type: "error";
|
291
|
+
} | {
|
292
|
+
readonly inputs: readonly [];
|
293
|
+
readonly name: "LicensingModule__CallerNotLicensorAndPolicyNotSet";
|
294
|
+
readonly type: "error";
|
295
|
+
} | {
|
296
|
+
readonly inputs: readonly [];
|
297
|
+
readonly name: "LicensingModule__CommercialTermInNonCommercialPolicy";
|
298
|
+
readonly type: "error";
|
299
|
+
} | {
|
300
|
+
readonly inputs: readonly [];
|
301
|
+
readonly name: "LicensingModule__DerivativeRevShareSumExceedsMaxRNFTSupply";
|
302
|
+
readonly type: "error";
|
303
|
+
} | {
|
304
|
+
readonly inputs: readonly [];
|
305
|
+
readonly name: "LicensingModule__DerivativesCannotAddPolicy";
|
306
|
+
readonly type: "error";
|
307
|
+
} | {
|
308
|
+
readonly inputs: readonly [];
|
309
|
+
readonly name: "LicensingModule__DisputedIpId";
|
310
|
+
readonly type: "error";
|
311
|
+
} | {
|
312
|
+
readonly inputs: readonly [];
|
313
|
+
readonly name: "LicensingModule__EmptyLicenseUrl";
|
314
|
+
readonly type: "error";
|
315
|
+
} | {
|
316
|
+
readonly inputs: readonly [];
|
317
|
+
readonly name: "LicensingModule__EmptyParamName";
|
318
|
+
readonly type: "error";
|
319
|
+
} | {
|
320
|
+
readonly inputs: readonly [];
|
321
|
+
readonly name: "LicensingModule__FrameworkNotFound";
|
322
|
+
readonly type: "error";
|
323
|
+
} | {
|
324
|
+
readonly inputs: readonly [];
|
325
|
+
readonly name: "LicensingModule__IncompatibleLicensorCommercialPolicy";
|
326
|
+
readonly type: "error";
|
327
|
+
} | {
|
328
|
+
readonly inputs: readonly [];
|
329
|
+
readonly name: "LicensingModule__IncompatibleLicensorRoyaltyDerivativeRevShare";
|
330
|
+
readonly type: "error";
|
331
|
+
} | {
|
332
|
+
readonly inputs: readonly [];
|
333
|
+
readonly name: "LicensingModule__IncompatibleRoyaltyPolicyAddress";
|
334
|
+
readonly type: "error";
|
335
|
+
} | {
|
336
|
+
readonly inputs: readonly [];
|
337
|
+
readonly name: "LicensingModule__IncompatibleRoyaltyPolicyDerivativeRevShare";
|
338
|
+
readonly type: "error";
|
339
|
+
} | {
|
340
|
+
readonly inputs: readonly [];
|
341
|
+
readonly name: "LicensingModule__InvalidLicensor";
|
342
|
+
readonly type: "error";
|
343
|
+
} | {
|
344
|
+
readonly inputs: readonly [];
|
345
|
+
readonly name: "LicensingModule__InvalidPolicyFramework";
|
346
|
+
readonly type: "error";
|
347
|
+
} | {
|
348
|
+
readonly inputs: readonly [];
|
349
|
+
readonly name: "LicensingModule__LicensorDoesntHaveThisPolicy";
|
350
|
+
readonly type: "error";
|
351
|
+
} | {
|
352
|
+
readonly inputs: readonly [];
|
353
|
+
readonly name: "LicensingModule__LicensorNotRegistered";
|
354
|
+
readonly type: "error";
|
355
|
+
} | {
|
356
|
+
readonly inputs: readonly [];
|
357
|
+
readonly name: "LicensingModule__LinkParentParamFailed";
|
358
|
+
readonly type: "error";
|
359
|
+
} | {
|
360
|
+
readonly inputs: readonly [];
|
361
|
+
readonly name: "LicensingModule__LinkingRevokedLicense";
|
362
|
+
readonly type: "error";
|
363
|
+
} | {
|
364
|
+
readonly inputs: readonly [];
|
365
|
+
readonly name: "LicensingModule__MintLicenseParamFailed";
|
366
|
+
readonly type: "error";
|
367
|
+
} | {
|
368
|
+
readonly inputs: readonly [];
|
369
|
+
readonly name: "LicensingModule__MintingFeeTokenNotWhitelisted";
|
370
|
+
readonly type: "error";
|
371
|
+
} | {
|
372
|
+
readonly inputs: readonly [];
|
373
|
+
readonly name: "LicensingModule__MismatchBetweenRoyaltyPolicy";
|
374
|
+
readonly type: "error";
|
375
|
+
} | {
|
376
|
+
readonly inputs: readonly [];
|
377
|
+
readonly name: "LicensingModule__NotLicensee";
|
378
|
+
readonly type: "error";
|
379
|
+
} | {
|
380
|
+
readonly inputs: readonly [];
|
381
|
+
readonly name: "LicensingModule__ParamVerifierAlreadySet";
|
382
|
+
readonly type: "error";
|
383
|
+
} | {
|
384
|
+
readonly inputs: readonly [];
|
385
|
+
readonly name: "LicensingModule__ParamVerifierLengthMismatch";
|
386
|
+
readonly type: "error";
|
387
|
+
} | {
|
388
|
+
readonly inputs: readonly [];
|
389
|
+
readonly name: "LicensingModule__ParentIdEqualThanChild";
|
390
|
+
readonly type: "error";
|
391
|
+
} | {
|
392
|
+
readonly inputs: readonly [];
|
393
|
+
readonly name: "LicensingModule__PolicyAlreadySetForIpId";
|
394
|
+
readonly type: "error";
|
395
|
+
} | {
|
396
|
+
readonly inputs: readonly [];
|
397
|
+
readonly name: "LicensingModule__PolicyNotFound";
|
398
|
+
readonly type: "error";
|
399
|
+
} | {
|
400
|
+
readonly inputs: readonly [];
|
401
|
+
readonly name: "LicensingModule__RegisterPolicyFrameworkMismatch";
|
402
|
+
readonly type: "error";
|
403
|
+
} | {
|
404
|
+
readonly inputs: readonly [];
|
405
|
+
readonly name: "LicensingModule__RoyaltyPolicyNotWhitelisted";
|
406
|
+
readonly type: "error";
|
407
|
+
} | {
|
408
|
+
readonly inputs: readonly [];
|
409
|
+
readonly name: "LicensingModule__TransferParamFailed";
|
410
|
+
readonly type: "error";
|
411
|
+
} | {
|
412
|
+
readonly inputs: readonly [];
|
413
|
+
readonly name: "LicensingModule__UnauthorizedAccess";
|
414
|
+
readonly type: "error";
|
415
|
+
} | {
|
416
|
+
readonly inputs: readonly [];
|
417
|
+
readonly name: "LicensingModule__UnregisteredFrameworkAddingPolicy";
|
418
|
+
readonly type: "error";
|
419
|
+
} | {
|
420
|
+
readonly inputs: readonly [];
|
421
|
+
readonly name: "LicensorApprovalChecker__Unauthorized";
|
422
|
+
readonly type: "error";
|
423
|
+
} | {
|
424
|
+
readonly inputs: readonly [];
|
425
|
+
readonly name: "MetadataProvider__HashInvalid";
|
426
|
+
readonly type: "error";
|
427
|
+
} | {
|
428
|
+
readonly inputs: readonly [];
|
429
|
+
readonly name: "MetadataProvider__IPAssetOwnerInvalid";
|
430
|
+
readonly type: "error";
|
431
|
+
} | {
|
432
|
+
readonly inputs: readonly [];
|
433
|
+
readonly name: "MetadataProvider__MetadataNotCompatible";
|
434
|
+
readonly type: "error";
|
435
|
+
} | {
|
436
|
+
readonly inputs: readonly [];
|
437
|
+
readonly name: "MetadataProvider__NameInvalid";
|
438
|
+
readonly type: "error";
|
439
|
+
} | {
|
440
|
+
readonly inputs: readonly [];
|
441
|
+
readonly name: "MetadataProvider__RegistrantInvalid";
|
442
|
+
readonly type: "error";
|
443
|
+
} | {
|
444
|
+
readonly inputs: readonly [];
|
445
|
+
readonly name: "MetadataProvider__RegistrationDateInvalid";
|
446
|
+
readonly type: "error";
|
447
|
+
} | {
|
448
|
+
readonly inputs: readonly [];
|
449
|
+
readonly name: "MetadataProvider__URIInvalid";
|
450
|
+
readonly type: "error";
|
451
|
+
} | {
|
452
|
+
readonly inputs: readonly [];
|
453
|
+
readonly name: "MetadataProvider__Unauthorized";
|
454
|
+
readonly type: "error";
|
455
|
+
} | {
|
456
|
+
readonly inputs: readonly [];
|
457
|
+
readonly name: "MetadataProvider__UpgradeProviderInvalid";
|
458
|
+
readonly type: "error";
|
459
|
+
} | {
|
460
|
+
readonly inputs: readonly [];
|
461
|
+
readonly name: "MetadataProvider__UpgradeUnavailable";
|
462
|
+
readonly type: "error";
|
463
|
+
} | {
|
464
|
+
readonly inputs: readonly [];
|
465
|
+
readonly name: "ModuleRegistry__InterfaceIdZero";
|
466
|
+
readonly type: "error";
|
467
|
+
} | {
|
468
|
+
readonly inputs: readonly [];
|
469
|
+
readonly name: "ModuleRegistry__ModuleAddressNotContract";
|
470
|
+
readonly type: "error";
|
471
|
+
} | {
|
472
|
+
readonly inputs: readonly [];
|
473
|
+
readonly name: "ModuleRegistry__ModuleAddressZeroAddress";
|
474
|
+
readonly type: "error";
|
475
|
+
} | {
|
476
|
+
readonly inputs: readonly [];
|
477
|
+
readonly name: "ModuleRegistry__ModuleAlreadyRegistered";
|
478
|
+
readonly type: "error";
|
479
|
+
} | {
|
480
|
+
readonly inputs: readonly [];
|
481
|
+
readonly name: "ModuleRegistry__ModuleNotRegistered";
|
482
|
+
readonly type: "error";
|
483
|
+
} | {
|
484
|
+
readonly inputs: readonly [];
|
485
|
+
readonly name: "ModuleRegistry__ModuleNotSupportExpectedModuleTypeInterfaceId";
|
486
|
+
readonly type: "error";
|
487
|
+
} | {
|
488
|
+
readonly inputs: readonly [];
|
489
|
+
readonly name: "ModuleRegistry__ModuleTypeAlreadyRegistered";
|
490
|
+
readonly type: "error";
|
491
|
+
} | {
|
492
|
+
readonly inputs: readonly [];
|
493
|
+
readonly name: "ModuleRegistry__ModuleTypeEmptyString";
|
494
|
+
readonly type: "error";
|
495
|
+
} | {
|
496
|
+
readonly inputs: readonly [];
|
497
|
+
readonly name: "ModuleRegistry__ModuleTypeNotRegistered";
|
498
|
+
readonly type: "error";
|
499
|
+
} | {
|
500
|
+
readonly inputs: readonly [];
|
501
|
+
readonly name: "ModuleRegistry__NameAlreadyRegistered";
|
502
|
+
readonly type: "error";
|
503
|
+
} | {
|
504
|
+
readonly inputs: readonly [];
|
505
|
+
readonly name: "ModuleRegistry__NameDoesNotMatch";
|
506
|
+
readonly type: "error";
|
507
|
+
} | {
|
508
|
+
readonly inputs: readonly [];
|
509
|
+
readonly name: "ModuleRegistry__NameEmptyString";
|
510
|
+
readonly type: "error";
|
511
|
+
} | {
|
512
|
+
readonly inputs: readonly [];
|
513
|
+
readonly name: "Module_Unauthorized";
|
514
|
+
readonly type: "error";
|
515
|
+
} | {
|
516
|
+
readonly inputs: readonly [{
|
517
|
+
readonly internalType: "address";
|
518
|
+
readonly name: "commercializer";
|
519
|
+
readonly type: "address";
|
520
|
+
}];
|
521
|
+
readonly name: "PolicyFrameworkManager__CommercializerCheckerDoesNotSupportHook";
|
522
|
+
readonly type: "error";
|
523
|
+
} | {
|
524
|
+
readonly inputs: readonly [];
|
525
|
+
readonly name: "PolicyFrameworkManager__GettingPolicyWrongFramework";
|
526
|
+
readonly type: "error";
|
527
|
+
} | {
|
528
|
+
readonly inputs: readonly [];
|
529
|
+
readonly name: "RegistrationModule__InvalidOwner";
|
530
|
+
readonly type: "error";
|
531
|
+
} | {
|
532
|
+
readonly inputs: readonly [];
|
533
|
+
readonly name: "RoyaltyModule__CanOnlyMintSelectedPolicy";
|
534
|
+
readonly type: "error";
|
535
|
+
} | {
|
536
|
+
readonly inputs: readonly [];
|
537
|
+
readonly name: "RoyaltyModule__IncompatibleRoyaltyPolicy";
|
538
|
+
readonly type: "error";
|
539
|
+
} | {
|
540
|
+
readonly inputs: readonly [];
|
541
|
+
readonly name: "RoyaltyModule__NoParentsOnLinking";
|
542
|
+
readonly type: "error";
|
543
|
+
} | {
|
544
|
+
readonly inputs: readonly [];
|
545
|
+
readonly name: "RoyaltyModule__NoRoyaltyPolicySet";
|
546
|
+
readonly type: "error";
|
547
|
+
} | {
|
548
|
+
readonly inputs: readonly [];
|
549
|
+
readonly name: "RoyaltyModule__NotAllowedCaller";
|
550
|
+
readonly type: "error";
|
551
|
+
} | {
|
552
|
+
readonly inputs: readonly [];
|
553
|
+
readonly name: "RoyaltyModule__NotRegisteredIpId";
|
554
|
+
readonly type: "error";
|
555
|
+
} | {
|
556
|
+
readonly inputs: readonly [];
|
557
|
+
readonly name: "RoyaltyModule__NotWhitelistedRoyaltyPolicy";
|
558
|
+
readonly type: "error";
|
559
|
+
} | {
|
560
|
+
readonly inputs: readonly [];
|
561
|
+
readonly name: "RoyaltyModule__NotWhitelistedRoyaltyToken";
|
562
|
+
readonly type: "error";
|
563
|
+
} | {
|
564
|
+
readonly inputs: readonly [];
|
565
|
+
readonly name: "RoyaltyModule__ZeroLicensingModule";
|
566
|
+
readonly type: "error";
|
567
|
+
} | {
|
568
|
+
readonly inputs: readonly [];
|
569
|
+
readonly name: "RoyaltyModule__ZeroRoyaltyPolicy";
|
570
|
+
readonly type: "error";
|
571
|
+
} | {
|
572
|
+
readonly inputs: readonly [];
|
573
|
+
readonly name: "RoyaltyModule__ZeroRoyaltyToken";
|
574
|
+
readonly type: "error";
|
575
|
+
} | {
|
576
|
+
readonly inputs: readonly [];
|
577
|
+
readonly name: "RoyaltyPolicyLAP__AboveAncestorsLimit";
|
578
|
+
readonly type: "error";
|
579
|
+
} | {
|
580
|
+
readonly inputs: readonly [];
|
581
|
+
readonly name: "RoyaltyPolicyLAP__AboveParentLimit";
|
582
|
+
readonly type: "error";
|
583
|
+
} | {
|
584
|
+
readonly inputs: readonly [];
|
585
|
+
readonly name: "RoyaltyPolicyLAP__AboveRoyaltyStackLimit";
|
586
|
+
readonly type: "error";
|
587
|
+
} | {
|
588
|
+
readonly inputs: readonly [];
|
589
|
+
readonly name: "RoyaltyPolicyLAP__ImplementationAlreadySet";
|
590
|
+
readonly type: "error";
|
591
|
+
} | {
|
592
|
+
readonly inputs: readonly [];
|
593
|
+
readonly name: "RoyaltyPolicyLAP__InvalidAncestors";
|
594
|
+
readonly type: "error";
|
595
|
+
} | {
|
596
|
+
readonly inputs: readonly [];
|
597
|
+
readonly name: "RoyaltyPolicyLAP__InvalidAncestorsHash";
|
598
|
+
readonly type: "error";
|
599
|
+
} | {
|
600
|
+
readonly inputs: readonly [];
|
601
|
+
readonly name: "RoyaltyPolicyLAP__InvalidAncestorsLength";
|
602
|
+
readonly type: "error";
|
603
|
+
} | {
|
604
|
+
readonly inputs: readonly [];
|
605
|
+
readonly name: "RoyaltyPolicyLAP__InvalidAncestorsRoyalty";
|
606
|
+
readonly type: "error";
|
607
|
+
} | {
|
608
|
+
readonly inputs: readonly [];
|
609
|
+
readonly name: "RoyaltyPolicyLAP__InvalidParentRoyaltiesLength";
|
610
|
+
readonly type: "error";
|
611
|
+
} | {
|
612
|
+
readonly inputs: readonly [];
|
613
|
+
readonly name: "RoyaltyPolicyLAP__InvalidRoyaltyAmountLength";
|
614
|
+
readonly type: "error";
|
615
|
+
} | {
|
616
|
+
readonly inputs: readonly [];
|
617
|
+
readonly name: "RoyaltyPolicyLAP__LastPositionNotAbleToMintLicense";
|
618
|
+
readonly type: "error";
|
619
|
+
} | {
|
620
|
+
readonly inputs: readonly [];
|
621
|
+
readonly name: "RoyaltyPolicyLAP__NotFullOwnership";
|
622
|
+
readonly type: "error";
|
623
|
+
} | {
|
624
|
+
readonly inputs: readonly [];
|
625
|
+
readonly name: "RoyaltyPolicyLAP__NotRoyaltyModule";
|
626
|
+
readonly type: "error";
|
627
|
+
} | {
|
628
|
+
readonly inputs: readonly [];
|
629
|
+
readonly name: "RoyaltyPolicyLAP__TransferFailed";
|
630
|
+
readonly type: "error";
|
631
|
+
} | {
|
632
|
+
readonly inputs: readonly [];
|
633
|
+
readonly name: "RoyaltyPolicyLAP__UnlinkableToParents";
|
634
|
+
readonly type: "error";
|
635
|
+
} | {
|
636
|
+
readonly inputs: readonly [];
|
637
|
+
readonly name: "RoyaltyPolicyLAP__ZeroAncestorsVaultImpl";
|
638
|
+
readonly type: "error";
|
639
|
+
} | {
|
640
|
+
readonly inputs: readonly [];
|
641
|
+
readonly name: "RoyaltyPolicyLAP__ZeroLicensingModule";
|
642
|
+
readonly type: "error";
|
643
|
+
} | {
|
644
|
+
readonly inputs: readonly [];
|
645
|
+
readonly name: "RoyaltyPolicyLAP__ZeroLiquidSplitFactory";
|
646
|
+
readonly type: "error";
|
647
|
+
} | {
|
648
|
+
readonly inputs: readonly [];
|
649
|
+
readonly name: "RoyaltyPolicyLAP__ZeroLiquidSplitMain";
|
650
|
+
readonly type: "error";
|
651
|
+
} | {
|
652
|
+
readonly inputs: readonly [];
|
653
|
+
readonly name: "RoyaltyPolicyLAP__ZeroRoyaltyModule";
|
654
|
+
readonly type: "error";
|
655
|
+
} | {
|
656
|
+
readonly inputs: readonly [];
|
657
|
+
readonly name: "TaggingModule__DstIpIdDoesNotHaveDstTag";
|
658
|
+
readonly type: "error";
|
659
|
+
} | {
|
660
|
+
readonly inputs: readonly [];
|
661
|
+
readonly name: "TaggingModule__InvalidRelationTypeName";
|
662
|
+
readonly type: "error";
|
663
|
+
} | {
|
664
|
+
readonly inputs: readonly [];
|
665
|
+
readonly name: "TaggingModule__RelationTypeAlreadyExists";
|
666
|
+
readonly type: "error";
|
667
|
+
} | {
|
668
|
+
readonly inputs: readonly [];
|
669
|
+
readonly name: "TaggingModule__RelationTypeDoesNotExist";
|
670
|
+
readonly type: "error";
|
671
|
+
} | {
|
672
|
+
readonly inputs: readonly [];
|
673
|
+
readonly name: "TaggingModule__SrcIpIdDoesNotHaveSrcTag";
|
674
|
+
readonly type: "error";
|
675
|
+
} | {
|
676
|
+
readonly anonymous: false;
|
677
|
+
readonly inputs: readonly [{
|
678
|
+
readonly indexed: false;
|
679
|
+
readonly internalType: "uint256";
|
680
|
+
readonly name: "disputeId";
|
681
|
+
readonly type: "uint256";
|
682
|
+
}, {
|
683
|
+
readonly indexed: false;
|
684
|
+
readonly internalType: "bytes";
|
685
|
+
readonly name: "data";
|
686
|
+
readonly type: "bytes";
|
687
|
+
}];
|
688
|
+
readonly name: "DisputeCancelled";
|
689
|
+
readonly type: "event";
|
690
|
+
} | {
|
691
|
+
readonly anonymous: false;
|
692
|
+
readonly inputs: readonly [{
|
693
|
+
readonly indexed: false;
|
694
|
+
readonly internalType: "uint256";
|
695
|
+
readonly name: "disputeId";
|
696
|
+
readonly type: "uint256";
|
697
|
+
}, {
|
698
|
+
readonly indexed: false;
|
699
|
+
readonly internalType: "address";
|
700
|
+
readonly name: "targetIpId";
|
701
|
+
readonly type: "address";
|
702
|
+
}, {
|
703
|
+
readonly indexed: false;
|
704
|
+
readonly internalType: "address";
|
705
|
+
readonly name: "disputeInitiator";
|
706
|
+
readonly type: "address";
|
707
|
+
}, {
|
708
|
+
readonly indexed: false;
|
709
|
+
readonly internalType: "address";
|
710
|
+
readonly name: "arbitrationPolicy";
|
711
|
+
readonly type: "address";
|
712
|
+
}, {
|
713
|
+
readonly indexed: false;
|
714
|
+
readonly internalType: "bytes32";
|
715
|
+
readonly name: "linkToDisputeEvidence";
|
716
|
+
readonly type: "bytes32";
|
717
|
+
}, {
|
718
|
+
readonly indexed: false;
|
719
|
+
readonly internalType: "bytes32";
|
720
|
+
readonly name: "targetTag";
|
721
|
+
readonly type: "bytes32";
|
722
|
+
}, {
|
723
|
+
readonly indexed: false;
|
724
|
+
readonly internalType: "bytes";
|
725
|
+
readonly name: "data";
|
726
|
+
readonly type: "bytes";
|
727
|
+
}];
|
728
|
+
readonly name: "DisputeRaised";
|
729
|
+
readonly type: "event";
|
730
|
+
} | {
|
731
|
+
readonly anonymous: false;
|
732
|
+
readonly inputs: readonly [{
|
733
|
+
readonly indexed: false;
|
734
|
+
readonly internalType: "uint256";
|
735
|
+
readonly name: "disputeId";
|
736
|
+
readonly type: "uint256";
|
737
|
+
}];
|
738
|
+
readonly name: "DisputeResolved";
|
739
|
+
readonly type: "event";
|
740
|
+
} | {
|
741
|
+
readonly inputs: readonly [{
|
742
|
+
readonly internalType: "uint256";
|
743
|
+
readonly name: "disputeId";
|
744
|
+
readonly type: "uint256";
|
745
|
+
}, {
|
746
|
+
readonly internalType: "bytes";
|
747
|
+
readonly name: "data";
|
748
|
+
readonly type: "bytes";
|
749
|
+
}];
|
750
|
+
readonly name: "cancelDispute";
|
751
|
+
readonly outputs: readonly [];
|
752
|
+
readonly stateMutability: "nonpayable";
|
753
|
+
readonly type: "function";
|
754
|
+
} | {
|
755
|
+
readonly inputs: readonly [{
|
756
|
+
readonly internalType: "address";
|
757
|
+
readonly name: "targetIpId";
|
758
|
+
readonly type: "address";
|
759
|
+
}, {
|
760
|
+
readonly internalType: "string";
|
761
|
+
readonly name: "linkToDisputeEvidence";
|
762
|
+
readonly type: "string";
|
763
|
+
}, {
|
764
|
+
readonly internalType: "bytes32";
|
765
|
+
readonly name: "targetTag";
|
766
|
+
readonly type: "bytes32";
|
767
|
+
}, {
|
768
|
+
readonly internalType: "bytes";
|
769
|
+
readonly name: "data";
|
770
|
+
readonly type: "bytes";
|
771
|
+
}];
|
772
|
+
readonly name: "raiseDispute";
|
773
|
+
readonly outputs: readonly [{
|
774
|
+
readonly internalType: "uint256";
|
775
|
+
readonly name: "";
|
776
|
+
readonly type: "uint256";
|
777
|
+
}];
|
778
|
+
readonly stateMutability: "nonpayable";
|
779
|
+
readonly type: "function";
|
780
|
+
} | {
|
781
|
+
readonly inputs: readonly [{
|
782
|
+
readonly internalType: "uint256";
|
783
|
+
readonly name: "disputeId";
|
784
|
+
readonly type: "uint256";
|
785
|
+
}];
|
786
|
+
readonly name: "resolveDispute";
|
787
|
+
readonly outputs: readonly [];
|
788
|
+
readonly stateMutability: "nonpayable";
|
789
|
+
readonly type: "function";
|
790
|
+
})[];
|
791
|
+
address: `0x${string}`;
|
792
|
+
};
|
793
|
+
constructor(rpcClient: PublicClient, wallet: WalletClient);
|
794
|
+
/**
|
795
|
+
* Raises a dispute on a given ipId
|
796
|
+
* @param request - The request object containing necessary data to raise a dispute.
|
797
|
+
* @param request.targetIpId - The IP ID that is the target of the dispute.
|
798
|
+
* @param request.arbitrationPolicy - The address of the arbitration policy.
|
799
|
+
* @param request.linkToDisputeEvidence - The link to the dispute evidence.
|
800
|
+
* @param request.targetTag - The target tag of the dispute.
|
801
|
+
* @param request.calldata - Optional calldata to initialize the policy.
|
802
|
+
* @param request.txOptions - Optional transaction options.
|
803
|
+
* @returns A Promise that resolves to a RaiseDisputeResponse containing the transaction hash.
|
804
|
+
* @throws `NotRegisteredIpId` if targetIpId is not registered in the IPA Registry.
|
805
|
+
* @throws `NotWhitelistedDisputeTag` if targetTag is not whitelisted.
|
806
|
+
* @throws `ZeroLinkToDisputeEvidence` if linkToDisputeEvidence is empty
|
807
|
+
* @calls raiseDispute(address _targetIpId, string memory _linkToDisputeEvidence, bytes32 _targetTag, bytes calldata _data) external nonReentrant returns (uint256) {
|
808
|
+
* @emits DisputeRaised (disputeId_, targetIpId, msg.sender, arbitrationPolicy, linkToDisputeEvidence, targetTag, calldata);
|
809
|
+
*/
|
810
|
+
raiseDispute(request: RaiseDisputeRequest): Promise<RaiseDisputeResponse>;
|
811
|
+
/**
|
812
|
+
* Cancels an ongoing dispute
|
813
|
+
* @param request The request object containing details to cancel the dispute.
|
814
|
+
* @param request.disputeId The ID of the dispute to be cancelled.
|
815
|
+
* @param request.calldata Optional additional data used in the cancellation process.
|
816
|
+
* @returns A Promise that resolves to a CancelDisputeResponse containing the transaction hash.
|
817
|
+
* @throws NotInDisputeState, if the currentTag of the Dispute is not being disputed
|
818
|
+
* @throws NotDisputeInitiator, if the transaction executor is not the one that initiated the dispute
|
819
|
+
* @throws error if the Dispute's ArbitrationPolicy contract is not valid
|
820
|
+
* @calls cancelDispute(uint256 _disputeId, bytes calldata _data) external nonReentrant {
|
821
|
+
* @emits DisputeCancelled (_disputeId, _data);
|
822
|
+
*/
|
823
|
+
cancelDispute(request: CancelDisputeRequest): Promise<CancelDisputeResponse>;
|
824
|
+
/**
|
825
|
+
* Resolves a dispute after it has been judged
|
826
|
+
* @param request The request object containing details to resolve the dispute.
|
827
|
+
* @param request.disputeId The ID of the dispute to be resolved.
|
828
|
+
* @returns A Promise that resolves to a ResolveDisputeResponse.
|
829
|
+
* @throws NotAbleToResolve, if currentTag is still in dispute (i.e still needs a judgement to be set)
|
830
|
+
* @throws NotDisputeInitiator, if the transaction executor is not the one that initiated the dispute
|
831
|
+
* @emits DisputeResolved (_disputeId)
|
832
|
+
*/
|
833
|
+
resolveDispute(request: ResolveDisputeRequest): Promise<ResolveDisputeResponse>;
|
834
|
+
}
|
835
|
+
//# sourceMappingURL=dispute.d.ts.map
|