@story-protocol/core-sdk 0.0.1-beta-rc.11 → 0.0.1-beta-rc.12
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/dist/declarations/src/client.d.ts +9 -0
- package/dist/declarations/src/client.d.ts.map +1 -1
- package/dist/declarations/src/index.d.ts +2 -1
- package/dist/declarations/src/index.d.ts.map +1 -1
- package/dist/declarations/src/resources/dispute.d.ts +103 -78
- package/dist/declarations/src/resources/dispute.d.ts.map +1 -1
- package/dist/declarations/src/resources/ipAccount.d.ts +84 -76
- package/dist/declarations/src/resources/ipAccount.d.ts.map +1 -1
- package/dist/declarations/src/resources/ipAsset.d.ts +26 -756
- package/dist/declarations/src/resources/ipAsset.d.ts.map +1 -1
- package/dist/declarations/src/resources/license.d.ts +875 -858
- package/dist/declarations/src/resources/license.d.ts.map +1 -1
- package/dist/declarations/src/resources/permission.d.ts +271 -216
- package/dist/declarations/src/resources/permission.d.ts.map +1 -1
- package/dist/declarations/src/resources/policy.d.ts +1094 -277
- package/dist/declarations/src/resources/policy.d.ts.map +1 -1
- package/dist/declarations/src/resources/royalty.d.ts +2155 -0
- package/dist/declarations/src/resources/royalty.d.ts.map +1 -0
- package/dist/declarations/src/types/config.d.ts +4 -1
- package/dist/declarations/src/types/config.d.ts.map +1 -1
- package/dist/declarations/src/types/resources/ipAsset.d.ts +4 -20
- package/dist/declarations/src/types/resources/ipAsset.d.ts.map +1 -1
- package/dist/declarations/src/types/resources/royalty.d.ts +41 -0
- package/dist/declarations/src/types/resources/royalty.d.ts.map +1 -1
- package/dist/story-protocol-core-sdk.cjs.dev.js +864 -613
- package/dist/story-protocol-core-sdk.cjs.prod.js +864 -613
- package/dist/story-protocol-core-sdk.esm.js +866 -615
- package/package.json +1 -1
@@ -5,6 +5,7 @@ import { LicenseClient } from "./resources/license.js";
|
|
5
5
|
import { PolicyClient } from "./resources/policy.js";
|
6
6
|
import { DisputeClient } from "./resources/dispute.js";
|
7
7
|
import { IPAccountClient } from "./resources/ipAccount.js";
|
8
|
+
import { RoyaltyClient } from "./resources/royalty.js";
|
8
9
|
/**
|
9
10
|
* The StoryClient is the main entry point for the SDK.
|
10
11
|
*/
|
@@ -19,6 +20,7 @@ export declare class StoryClient {
|
|
19
20
|
private _policy;
|
20
21
|
private _dispute;
|
21
22
|
private _ipAccount;
|
23
|
+
private _royalty;
|
22
24
|
/**
|
23
25
|
* @param config - the configuration for the SDK client
|
24
26
|
*/
|
@@ -71,5 +73,12 @@ export declare class StoryClient {
|
|
71
73
|
* @returns the IPAccountClient instance
|
72
74
|
*/
|
73
75
|
get ipAccount(): IPAccountClient;
|
76
|
+
/**
|
77
|
+
* Getter for the royalty client. The client is lazily created when
|
78
|
+
* this method is called.
|
79
|
+
*
|
80
|
+
* @returns the RoyaltyClient instance
|
81
|
+
*/
|
82
|
+
get royalty(): RoyaltyClient;
|
74
83
|
}
|
75
84
|
//# sourceMappingURL=client.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"client.d.ts","sourceRoot":"../../../src","sources":["client.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,WAAW,
|
1
|
+
{"version":3,"file":"client.d.ts","sourceRoot":"../../../src","sources":["client.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,WAAW,EAAqB,0BAAuB;AAChE,OAAO,EAAE,aAAa,EAAE,+BAA4B;AACpD,OAAO,EAAE,gBAAgB,EAAE,kCAA+B;AAC1D,OAAO,EAAE,aAAa,EAAE,+BAA4B;AACpD,OAAO,EAAE,YAAY,EAAE,8BAA2B;AAClD,OAAO,EAAE,aAAa,EAAE,+BAA4B;AACpD,OAAO,EAAE,eAAe,EAAE,iCAA8B;AAGxD,OAAO,EAAE,aAAa,EAAE,+BAA4B;AAKpD;;GAEG;AACH,qBAAa,WAAW;IACtB,OAAO,CAAC,QAAQ,CAAC,MAAM,CAA+C;IACtE,OAAO,CAAC,QAAQ,CAAC,SAAS,CAAe;IACzC,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAe;IACtC,OAAO,CAAC,QAAQ,CAAC,WAAW,CAAiB;IAC7C,OAAO,CAAC,QAAQ,CAA8B;IAC9C,OAAO,CAAC,WAAW,CAAiC;IACpD,OAAO,CAAC,QAAQ,CAA8B;IAC9C,OAAO,CAAC,OAAO,CAA6B;IAC5C,OAAO,CAAC,QAAQ,CAA8B;IAC9C,OAAO,CAAC,UAAU,CAAgC;IAClD,OAAO,CAAC,QAAQ,CAA8B;IAC9C;;OAEG;IACH,OAAO;IA8BP;;;;OAIG;IACH,MAAM,CAAC,SAAS,CAAC,MAAM,EAAE,WAAW,GAAG,WAAW;IAIlD;;;;;OAKG;IACH,IAAW,OAAO,IAAI,aAAa,CAMlC;IAED;;;;;OAKG;IACH,IAAW,UAAU,IAAI,gBAAgB,CAMxC;IAED;;;;;OAKG;IACH,IAAW,OAAO,IAAI,aAAa,CAWlC;IAED;;;;;OAKG;IACH,IAAW,MAAM,IAAI,YAAY,CAMhC;IAED;;;;;OAKG;IACH,IAAW,OAAO,IAAI,aAAa,CAMlC;IAED;;;;;OAKG;IACH,IAAW,SAAS,IAAI,eAAe,CAMtC;IACD;;;;;OAKG;IACH,IAAW,OAAO,IAAI,aAAa,CAMlC;CACF"}
|
@@ -7,9 +7,10 @@ export { PolicyClient } from "./resources/policy.js";
|
|
7
7
|
export { DisputeClient } from "./resources/dispute.js";
|
8
8
|
export type { StoryConfig } from "./types/config.js";
|
9
9
|
export type { Hex, TypedData } from "./types/common.js";
|
10
|
-
export type {
|
10
|
+
export type { RegisterIpResponse, RegisterRequest } from "./types/resources/ipAsset.js";
|
11
11
|
export type { MintLicenseRequest, MintLicenseResponse, LinkIpToParentRequest, LinkIpToParentResponse, } from "./types/resources/license.js";
|
12
12
|
export type { RegisterPILPolicyRequest, RegisterPILPolicyResponse, AddPolicyToIpRequest, AddPolicyToIpResponse, } from "./types/resources/policy.js";
|
13
|
+
export type { CollectRoyaltyTokensRequest, CollectRoyaltyTokensResponse, PayRoyaltyOnBehalfRequest, PayRoyaltyOnBehalfResponse, } from "./types/resources/royalty.js";
|
13
14
|
export type { SetPermissionsRequest, SetPermissionsResponse } from "./types/resources/permission.js";
|
14
15
|
export type { Dispute, RaiseDisputeRequest, RaiseDisputeResponse, SetDisputeJudgementRequest, SetDisputeJudgementResponse, CancelDisputeRequest, CancelDisputeResponse, ResolveDisputeRequest, ResolveDisputeResponse, } from "./types/resources/dispute.js";
|
15
16
|
export type { IPAccountExecuteRequest, IPAccountExecuteResponse, IPAccountExecuteWithSigRequest, IPAccountExecuteWithSigResponse, } from "./types/resources/ipAccount.js";
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"../../../src","sources":["index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,oBAAiB;AACvC,OAAO,EAAE,WAAW,EAAE,QAAQ,EAAE,8BAA2B;AAE3D,OAAO,EAAE,aAAa,EAAE,+BAA4B;AACpD,OAAO,EAAE,gBAAgB,EAAE,kCAA+B;AAC1D,OAAO,EAAE,aAAa,EAAE,+BAA4B;AACpD,OAAO,EAAE,YAAY,EAAE,8BAA2B;AAClD,OAAO,EAAE,aAAa,EAAE,+BAA4B;AAEpD,YAAY,EAAE,WAAW,EAAE,0BAAuB;AAClD,YAAY,EAAE,GAAG,EAAE,SAAS,EAAE,0BAAuB;AAErD,YAAY,
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"../../../src","sources":["index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,oBAAiB;AACvC,OAAO,EAAE,WAAW,EAAE,QAAQ,EAAE,8BAA2B;AAE3D,OAAO,EAAE,aAAa,EAAE,+BAA4B;AACpD,OAAO,EAAE,gBAAgB,EAAE,kCAA+B;AAC1D,OAAO,EAAE,aAAa,EAAE,+BAA4B;AACpD,OAAO,EAAE,YAAY,EAAE,8BAA2B;AAClD,OAAO,EAAE,aAAa,EAAE,+BAA4B;AAEpD,YAAY,EAAE,WAAW,EAAE,0BAAuB;AAClD,YAAY,EAAE,GAAG,EAAE,SAAS,EAAE,0BAAuB;AAErD,YAAY,EAAE,kBAAkB,EAAE,eAAe,EAAE,qCAAkC;AAErF,YAAY,EACV,kBAAkB,EAClB,mBAAmB,EACnB,qBAAqB,EACrB,sBAAsB,GACvB,qCAAkC;AAEnC,YAAY,EACV,wBAAwB,EACxB,yBAAyB,EACzB,oBAAoB,EACpB,qBAAqB,GACtB,oCAAiC;AAElC,YAAY,EACV,2BAA2B,EAC3B,4BAA4B,EAC5B,yBAAyB,EACzB,0BAA0B,GAC3B,qCAAkC;AAEnC,YAAY,EAAE,qBAAqB,EAAE,sBAAsB,EAAE,wCAAqC;AAElG,YAAY,EACV,OAAO,EACP,mBAAmB,EACnB,oBAAoB,EACpB,0BAA0B,EAC1B,2BAA2B,EAC3B,oBAAoB,EACpB,qBAAqB,EACrB,qBAAqB,EACrB,sBAAsB,GACvB,qCAAkC;AAEnC,YAAY,EACV,uBAAuB,EACvB,wBAAwB,EACxB,8BAA8B,EAC9B,+BAA+B,GAChC,uCAAoC"}
|
@@ -1,5 +1,6 @@
|
|
1
1
|
import { PublicClient, WalletClient } from "viem";
|
2
2
|
import { CancelDisputeRequest, CancelDisputeResponse, RaiseDisputeRequest, RaiseDisputeResponse, ResolveDisputeRequest, ResolveDisputeResponse } from "../types/resources/dispute.js";
|
3
|
+
import { SupportedChainIds } from "../types/config.js";
|
3
4
|
export declare class DisputeClient {
|
4
5
|
private readonly wallet;
|
5
6
|
private readonly rpcClient;
|
@@ -25,7 +26,35 @@ export declare class DisputeClient {
|
|
25
26
|
readonly name: "AccessControlled__ZeroAddress";
|
26
27
|
readonly type: "error";
|
27
28
|
} | {
|
28
|
-
readonly inputs: readonly [
|
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
|
+
*/
|
29
58
|
readonly name: "AccessController__CallerIsNotIPAccount";
|
30
59
|
readonly type: "error";
|
31
60
|
} | {
|
@@ -64,61 +93,29 @@ export declare class DisputeClient {
|
|
64
93
|
readonly inputs: readonly [];
|
65
94
|
readonly name: "AccessController__PermissionIsNotValid";
|
66
95
|
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
96
|
} | {
|
76
97
|
readonly inputs: readonly [];
|
77
98
|
readonly name: "AccessController__SignerIsZeroAddress";
|
78
99
|
readonly type: "error";
|
79
100
|
} | {
|
80
101
|
readonly inputs: readonly [];
|
81
|
-
readonly name: "
|
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";
|
102
|
+
readonly name: "ArbitrationPolicySP__NotDisputeModule";
|
106
103
|
readonly type: "error";
|
107
104
|
} | {
|
108
105
|
readonly inputs: readonly [];
|
109
|
-
readonly name: "
|
106
|
+
readonly name: "ArbitrationPolicySP__ZeroDisputeModule";
|
110
107
|
readonly type: "error";
|
111
108
|
} | {
|
112
109
|
readonly inputs: readonly [];
|
113
|
-
readonly name: "
|
110
|
+
readonly name: "ArbitrationPolicySP__ZeroPaymentToken";
|
114
111
|
readonly type: "error";
|
115
112
|
} | {
|
116
113
|
readonly inputs: readonly [];
|
117
|
-
readonly name: "
|
114
|
+
readonly name: "BasePolicyFrameworkManager__CallerNotLicensingModule";
|
118
115
|
readonly type: "error";
|
119
116
|
} | {
|
120
117
|
readonly inputs: readonly [];
|
121
|
-
readonly name: "
|
118
|
+
readonly name: "CoreMetadataModule__MetadataAlreadyFrozen";
|
122
119
|
readonly type: "error";
|
123
120
|
} | {
|
124
121
|
readonly inputs: readonly [];
|
@@ -148,10 +145,6 @@ export declare class DisputeClient {
|
|
148
145
|
readonly inputs: readonly [];
|
149
146
|
readonly name: "DisputeModule__NotWhitelistedDisputeTag";
|
150
147
|
readonly type: "error";
|
151
|
-
} | {
|
152
|
-
readonly inputs: readonly [];
|
153
|
-
readonly name: "DisputeModule__UnauthorizedAccess";
|
154
|
-
readonly type: "error";
|
155
148
|
} | {
|
156
149
|
readonly inputs: readonly [];
|
157
150
|
readonly name: "DisputeModule__ZeroArbitrationPolicy";
|
@@ -236,6 +229,18 @@ export declare class DisputeClient {
|
|
236
229
|
readonly inputs: readonly [];
|
237
230
|
readonly name: "IPAssetRegistry__InvalidMetadataProvider";
|
238
231
|
readonly type: "error";
|
232
|
+
} | {
|
233
|
+
readonly inputs: readonly [{
|
234
|
+
readonly internalType: "address";
|
235
|
+
readonly name: "contractAddress";
|
236
|
+
readonly type: "address";
|
237
|
+
}, {
|
238
|
+
readonly internalType: "uint256";
|
239
|
+
readonly name: "tokenId";
|
240
|
+
readonly type: "uint256";
|
241
|
+
}];
|
242
|
+
readonly name: "IPAssetRegistry__InvalidToken";
|
243
|
+
readonly type: "error";
|
239
244
|
} | {
|
240
245
|
readonly inputs: readonly [];
|
241
246
|
readonly name: "IPAssetRegistry__NotYetRegistered";
|
@@ -252,6 +257,22 @@ export declare class DisputeClient {
|
|
252
257
|
readonly inputs: readonly [];
|
253
258
|
readonly name: "IPAssetRegistry__Unauthorized";
|
254
259
|
readonly type: "error";
|
260
|
+
} | {
|
261
|
+
readonly inputs: readonly [{
|
262
|
+
readonly internalType: "address";
|
263
|
+
readonly name: "contractAddress";
|
264
|
+
readonly type: "address";
|
265
|
+
}];
|
266
|
+
readonly name: "IPAssetRegistry__UnsupportedIERC721";
|
267
|
+
readonly type: "error";
|
268
|
+
} | {
|
269
|
+
readonly inputs: readonly [{
|
270
|
+
readonly internalType: "address";
|
271
|
+
readonly name: "contractAddress";
|
272
|
+
readonly type: "address";
|
273
|
+
}];
|
274
|
+
readonly name: "IPAssetRegistry__UnsupportedIERC721Metadata";
|
275
|
+
readonly type: "error";
|
255
276
|
} | {
|
256
277
|
readonly inputs: readonly [];
|
257
278
|
readonly name: "IPResolver_InvalidIP";
|
@@ -260,6 +281,30 @@ export declare class DisputeClient {
|
|
260
281
|
readonly inputs: readonly [];
|
261
282
|
readonly name: "IPResolver_Unauthorized";
|
262
283
|
readonly type: "error";
|
284
|
+
} | {
|
285
|
+
readonly inputs: readonly [];
|
286
|
+
readonly name: "IpRoyaltyVault__AlreadyClaimed";
|
287
|
+
readonly type: "error";
|
288
|
+
} | {
|
289
|
+
readonly inputs: readonly [];
|
290
|
+
readonly name: "IpRoyaltyVault__ClaimerNotAnAncestor";
|
291
|
+
readonly type: "error";
|
292
|
+
} | {
|
293
|
+
readonly inputs: readonly [];
|
294
|
+
readonly name: "IpRoyaltyVault__NotRoyaltyPolicyLAP";
|
295
|
+
readonly type: "error";
|
296
|
+
} | {
|
297
|
+
readonly inputs: readonly [];
|
298
|
+
readonly name: "IpRoyaltyVault__SnapshotIntervalTooShort";
|
299
|
+
readonly type: "error";
|
300
|
+
} | {
|
301
|
+
readonly inputs: readonly [];
|
302
|
+
readonly name: "IpRoyaltyVault__ZeroIpId";
|
303
|
+
readonly type: "error";
|
304
|
+
} | {
|
305
|
+
readonly inputs: readonly [];
|
306
|
+
readonly name: "IpRoyaltyVault__ZeroRoyaltyPolicyLAP";
|
307
|
+
readonly type: "error";
|
263
308
|
} | {
|
264
309
|
readonly inputs: readonly [];
|
265
310
|
readonly name: "LicenseRegistry__CallerNotLicensingModule";
|
@@ -280,10 +325,6 @@ export declare class DisputeClient {
|
|
280
325
|
readonly inputs: readonly [];
|
281
326
|
readonly name: "LicenseRegistry__ZeroLicensingModule";
|
282
327
|
readonly type: "error";
|
283
|
-
} | {
|
284
|
-
readonly inputs: readonly [];
|
285
|
-
readonly name: "LicensingModuleAware__CallerNotLicensingModule";
|
286
|
-
readonly type: "error";
|
287
328
|
} | {
|
288
329
|
readonly inputs: readonly [];
|
289
330
|
readonly name: "LicensingModule__CallerNotLicenseRegistry";
|
@@ -344,6 +385,10 @@ export declare class DisputeClient {
|
|
344
385
|
readonly inputs: readonly [];
|
345
386
|
readonly name: "LicensingModule__InvalidPolicyFramework";
|
346
387
|
readonly type: "error";
|
388
|
+
} | {
|
389
|
+
readonly inputs: readonly [];
|
390
|
+
readonly name: "LicensingModule__IpAlreadyLinked";
|
391
|
+
readonly type: "error";
|
347
392
|
} | {
|
348
393
|
readonly inputs: readonly [];
|
349
394
|
readonly name: "LicensingModule__LicensorDoesntHaveThisPolicy";
|
@@ -360,6 +405,10 @@ export declare class DisputeClient {
|
|
360
405
|
readonly inputs: readonly [];
|
361
406
|
readonly name: "LicensingModule__LinkingRevokedLicense";
|
362
407
|
readonly type: "error";
|
408
|
+
} | {
|
409
|
+
readonly inputs: readonly [];
|
410
|
+
readonly name: "LicensingModule__MintAmountZero";
|
411
|
+
readonly type: "error";
|
363
412
|
} | {
|
364
413
|
readonly inputs: readonly [];
|
365
414
|
readonly name: "LicensingModule__MintLicenseParamFailed";
|
@@ -396,6 +445,10 @@ export declare class DisputeClient {
|
|
396
445
|
readonly inputs: readonly [];
|
397
446
|
readonly name: "LicensingModule__PolicyNotFound";
|
398
447
|
readonly type: "error";
|
448
|
+
} | {
|
449
|
+
readonly inputs: readonly [];
|
450
|
+
readonly name: "LicensingModule__ReceiverZeroAddress";
|
451
|
+
readonly type: "error";
|
399
452
|
} | {
|
400
453
|
readonly inputs: readonly [];
|
401
454
|
readonly name: "LicensingModule__RegisterPolicyFrameworkMismatch";
|
@@ -524,10 +577,6 @@ export declare class DisputeClient {
|
|
524
577
|
readonly inputs: readonly [];
|
525
578
|
readonly name: "PolicyFrameworkManager__GettingPolicyWrongFramework";
|
526
579
|
readonly type: "error";
|
527
|
-
} | {
|
528
|
-
readonly inputs: readonly [];
|
529
|
-
readonly name: "RegistrationModule__InvalidOwner";
|
530
|
-
readonly type: "error";
|
531
580
|
} | {
|
532
581
|
readonly inputs: readonly [];
|
533
582
|
readonly name: "RoyaltyModule__CanOnlyMintSelectedPolicy";
|
@@ -548,10 +597,6 @@ export declare class DisputeClient {
|
|
548
597
|
readonly inputs: readonly [];
|
549
598
|
readonly name: "RoyaltyModule__NotAllowedCaller";
|
550
599
|
readonly type: "error";
|
551
|
-
} | {
|
552
|
-
readonly inputs: readonly [];
|
553
|
-
readonly name: "RoyaltyModule__NotRegisteredIpId";
|
554
|
-
readonly type: "error";
|
555
600
|
} | {
|
556
601
|
readonly inputs: readonly [];
|
557
602
|
readonly name: "RoyaltyModule__NotWhitelistedRoyaltyPolicy";
|
@@ -588,30 +633,10 @@ export declare class DisputeClient {
|
|
588
633
|
readonly inputs: readonly [];
|
589
634
|
readonly name: "RoyaltyPolicyLAP__ImplementationAlreadySet";
|
590
635
|
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
636
|
} | {
|
608
637
|
readonly inputs: readonly [];
|
609
638
|
readonly name: "RoyaltyPolicyLAP__InvalidParentRoyaltiesLength";
|
610
639
|
readonly type: "error";
|
611
|
-
} | {
|
612
|
-
readonly inputs: readonly [];
|
613
|
-
readonly name: "RoyaltyPolicyLAP__InvalidRoyaltyAmountLength";
|
614
|
-
readonly type: "error";
|
615
640
|
} | {
|
616
641
|
readonly inputs: readonly [];
|
617
642
|
readonly name: "RoyaltyPolicyLAP__LastPositionNotAbleToMintLicense";
|
@@ -626,15 +651,15 @@ export declare class DisputeClient {
|
|
626
651
|
readonly type: "error";
|
627
652
|
} | {
|
628
653
|
readonly inputs: readonly [];
|
629
|
-
readonly name: "
|
654
|
+
readonly name: "RoyaltyPolicyLAP__UnlinkableToParents";
|
630
655
|
readonly type: "error";
|
631
656
|
} | {
|
632
657
|
readonly inputs: readonly [];
|
633
|
-
readonly name: "
|
658
|
+
readonly name: "RoyaltyPolicyLAP__ZeroAncestorsVaultImpl";
|
634
659
|
readonly type: "error";
|
635
660
|
} | {
|
636
661
|
readonly inputs: readonly [];
|
637
|
-
readonly name: "
|
662
|
+
readonly name: "RoyaltyPolicyLAP__ZeroIpRoyaltyVaultBeacon";
|
638
663
|
readonly type: "error";
|
639
664
|
} | {
|
640
665
|
readonly inputs: readonly [];
|
@@ -770,7 +795,7 @@ export declare class DisputeClient {
|
|
770
795
|
})[];
|
771
796
|
address: `0x${string}`;
|
772
797
|
};
|
773
|
-
constructor(rpcClient: PublicClient, wallet: WalletClient);
|
798
|
+
constructor(rpcClient: PublicClient, wallet: WalletClient, chainId: SupportedChainIds);
|
774
799
|
/**
|
775
800
|
* Raises a dispute on a given ipId
|
776
801
|
* @param request - The request object containing necessary data to raise a dispute.
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"dispute.d.ts","sourceRoot":"../../../../src/resources","sources":["dispute.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,YAAY,EAAe,MAAM,MAAM,CAAC;
|
1
|
+
{"version":3,"file":"dispute.d.ts","sourceRoot":"../../../../src/resources","sources":["dispute.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,YAAY,EAAe,MAAM,MAAM,CAAC;AAG/D,OAAO,EACL,oBAAoB,EACpB,qBAAqB,EACrB,mBAAmB,EACnB,oBAAoB,EACpB,qBAAqB,EACrB,sBAAsB,EACvB,sCAAmC;AAGpC,OAAO,EAAE,iBAAiB,EAAE,2BAAwB;AAEpD,qBAAa,aAAa;IACxB,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAe;IACtC,OAAO,CAAC,QAAQ,CAAC,SAAS,CAAe;IAClC,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;YAQ1B;;;;;;;;;;;;;;;eAeG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAvBwB;gBAEf,SAAS,EAAE,YAAY,EAAE,MAAM,EAAE,YAAY,EAAE,OAAO,EAAE,iBAAiB;IAMrF;;;;;;;;;;;;;;;OAeG;IACU,YAAY,CAAC,OAAO,EAAE,mBAAmB,GAAG,OAAO,CAAC,oBAAoB,CAAC;IAgCtF;;;;;;;;;;;OAWG;IACU,aAAa,CAAC,OAAO,EAAE,oBAAoB,GAAG,OAAO,CAAC,qBAAqB,CAAC;IAqBzF;;;;;;;;OAQG;IACU,cAAc,CAAC,OAAO,EAAE,qBAAqB,GAAG,OAAO,CAAC,sBAAsB,CAAC;CAoB7F"}
|
@@ -23,6 +23,18 @@ export declare class IPAccountClient {
|
|
23
23
|
readonly inputs: readonly [];
|
24
24
|
readonly name: "AccessControlled__ZeroAddress";
|
25
25
|
readonly type: "error";
|
26
|
+
} | {
|
27
|
+
readonly inputs: readonly [{
|
28
|
+
readonly internalType: "address";
|
29
|
+
readonly name: "signer";
|
30
|
+
readonly type: "address";
|
31
|
+
}, {
|
32
|
+
readonly internalType: "address";
|
33
|
+
readonly name: "to";
|
34
|
+
readonly type: "address";
|
35
|
+
}];
|
36
|
+
readonly name: "AccessController__BothCallerAndRecipientAreNotRegisteredModule";
|
37
|
+
readonly type: "error";
|
26
38
|
} | {
|
27
39
|
readonly inputs: readonly [];
|
28
40
|
readonly name: "AccessController__CallerIsNotIPAccount";
|
@@ -63,61 +75,29 @@ export declare class IPAccountClient {
|
|
63
75
|
readonly inputs: readonly [];
|
64
76
|
readonly name: "AccessController__PermissionIsNotValid";
|
65
77
|
readonly type: "error";
|
66
|
-
} | {
|
67
|
-
readonly inputs: readonly [{
|
68
|
-
readonly internalType: "address";
|
69
|
-
readonly name: "to";
|
70
|
-
readonly type: "address";
|
71
|
-
}];
|
72
|
-
readonly name: "AccessController__RecipientIsNotRegisteredModule";
|
73
|
-
readonly type: "error";
|
74
78
|
} | {
|
75
79
|
readonly inputs: readonly [];
|
76
80
|
readonly name: "AccessController__SignerIsZeroAddress";
|
77
81
|
readonly type: "error";
|
78
82
|
} | {
|
79
83
|
readonly inputs: readonly [];
|
80
|
-
readonly name: "
|
81
|
-
readonly type: "error";
|
82
|
-
} | {
|
83
|
-
readonly inputs: readonly [];
|
84
|
-
readonly name: "AncestorsVaultLAP__ClaimerNotAnAncestor";
|
85
|
-
readonly type: "error";
|
86
|
-
} | {
|
87
|
-
readonly inputs: readonly [];
|
88
|
-
readonly name: "AncestorsVaultLAP__ERC20BalanceNotZero";
|
89
|
-
readonly type: "error";
|
90
|
-
} | {
|
91
|
-
readonly inputs: readonly [];
|
92
|
-
readonly name: "AncestorsVaultLAP__ETHBalanceNotZero";
|
93
|
-
readonly type: "error";
|
94
|
-
} | {
|
95
|
-
readonly inputs: readonly [];
|
96
|
-
readonly name: "AncestorsVaultLAP__InvalidAncestorsHash";
|
97
|
-
readonly type: "error";
|
98
|
-
} | {
|
99
|
-
readonly inputs: readonly [];
|
100
|
-
readonly name: "AncestorsVaultLAP__InvalidClaimer";
|
101
|
-
readonly type: "error";
|
102
|
-
} | {
|
103
|
-
readonly inputs: readonly [];
|
104
|
-
readonly name: "AncestorsVaultLAP__TransferFailed";
|
84
|
+
readonly name: "ArbitrationPolicySP__NotDisputeModule";
|
105
85
|
readonly type: "error";
|
106
86
|
} | {
|
107
87
|
readonly inputs: readonly [];
|
108
|
-
readonly name: "
|
88
|
+
readonly name: "ArbitrationPolicySP__ZeroDisputeModule";
|
109
89
|
readonly type: "error";
|
110
90
|
} | {
|
111
91
|
readonly inputs: readonly [];
|
112
|
-
readonly name: "
|
92
|
+
readonly name: "ArbitrationPolicySP__ZeroPaymentToken";
|
113
93
|
readonly type: "error";
|
114
94
|
} | {
|
115
95
|
readonly inputs: readonly [];
|
116
|
-
readonly name: "
|
96
|
+
readonly name: "BasePolicyFrameworkManager__CallerNotLicensingModule";
|
117
97
|
readonly type: "error";
|
118
98
|
} | {
|
119
99
|
readonly inputs: readonly [];
|
120
|
-
readonly name: "
|
100
|
+
readonly name: "CoreMetadataModule__MetadataAlreadyFrozen";
|
121
101
|
readonly type: "error";
|
122
102
|
} | {
|
123
103
|
readonly inputs: readonly [];
|
@@ -147,10 +127,6 @@ export declare class IPAccountClient {
|
|
147
127
|
readonly inputs: readonly [];
|
148
128
|
readonly name: "DisputeModule__NotWhitelistedDisputeTag";
|
149
129
|
readonly type: "error";
|
150
|
-
} | {
|
151
|
-
readonly inputs: readonly [];
|
152
|
-
readonly name: "DisputeModule__UnauthorizedAccess";
|
153
|
-
readonly type: "error";
|
154
130
|
} | {
|
155
131
|
readonly inputs: readonly [];
|
156
132
|
readonly name: "DisputeModule__ZeroArbitrationPolicy";
|
@@ -235,6 +211,18 @@ export declare class IPAccountClient {
|
|
235
211
|
readonly inputs: readonly [];
|
236
212
|
readonly name: "IPAssetRegistry__InvalidMetadataProvider";
|
237
213
|
readonly type: "error";
|
214
|
+
} | {
|
215
|
+
readonly inputs: readonly [{
|
216
|
+
readonly internalType: "address";
|
217
|
+
readonly name: "contractAddress";
|
218
|
+
readonly type: "address";
|
219
|
+
}, {
|
220
|
+
readonly internalType: "uint256";
|
221
|
+
readonly name: "tokenId";
|
222
|
+
readonly type: "uint256";
|
223
|
+
}];
|
224
|
+
readonly name: "IPAssetRegistry__InvalidToken";
|
225
|
+
readonly type: "error";
|
238
226
|
} | {
|
239
227
|
readonly inputs: readonly [];
|
240
228
|
readonly name: "IPAssetRegistry__NotYetRegistered";
|
@@ -251,6 +239,22 @@ export declare class IPAccountClient {
|
|
251
239
|
readonly inputs: readonly [];
|
252
240
|
readonly name: "IPAssetRegistry__Unauthorized";
|
253
241
|
readonly type: "error";
|
242
|
+
} | {
|
243
|
+
readonly inputs: readonly [{
|
244
|
+
readonly internalType: "address";
|
245
|
+
readonly name: "contractAddress";
|
246
|
+
readonly type: "address";
|
247
|
+
}];
|
248
|
+
readonly name: "IPAssetRegistry__UnsupportedIERC721";
|
249
|
+
readonly type: "error";
|
250
|
+
} | {
|
251
|
+
readonly inputs: readonly [{
|
252
|
+
readonly internalType: "address";
|
253
|
+
readonly name: "contractAddress";
|
254
|
+
readonly type: "address";
|
255
|
+
}];
|
256
|
+
readonly name: "IPAssetRegistry__UnsupportedIERC721Metadata";
|
257
|
+
readonly type: "error";
|
254
258
|
} | {
|
255
259
|
readonly inputs: readonly [];
|
256
260
|
readonly name: "IPResolver_InvalidIP";
|
@@ -259,6 +263,30 @@ export declare class IPAccountClient {
|
|
259
263
|
readonly inputs: readonly [];
|
260
264
|
readonly name: "IPResolver_Unauthorized";
|
261
265
|
readonly type: "error";
|
266
|
+
} | {
|
267
|
+
readonly inputs: readonly [];
|
268
|
+
readonly name: "IpRoyaltyVault__AlreadyClaimed";
|
269
|
+
readonly type: "error";
|
270
|
+
} | {
|
271
|
+
readonly inputs: readonly [];
|
272
|
+
readonly name: "IpRoyaltyVault__ClaimerNotAnAncestor";
|
273
|
+
readonly type: "error";
|
274
|
+
} | {
|
275
|
+
readonly inputs: readonly [];
|
276
|
+
readonly name: "IpRoyaltyVault__NotRoyaltyPolicyLAP";
|
277
|
+
readonly type: "error";
|
278
|
+
} | {
|
279
|
+
readonly inputs: readonly [];
|
280
|
+
readonly name: "IpRoyaltyVault__SnapshotIntervalTooShort";
|
281
|
+
readonly type: "error";
|
282
|
+
} | {
|
283
|
+
readonly inputs: readonly [];
|
284
|
+
readonly name: "IpRoyaltyVault__ZeroIpId";
|
285
|
+
readonly type: "error";
|
286
|
+
} | {
|
287
|
+
readonly inputs: readonly [];
|
288
|
+
readonly name: "IpRoyaltyVault__ZeroRoyaltyPolicyLAP";
|
289
|
+
readonly type: "error";
|
262
290
|
} | {
|
263
291
|
readonly inputs: readonly [];
|
264
292
|
readonly name: "LicenseRegistry__CallerNotLicensingModule";
|
@@ -279,10 +307,6 @@ export declare class IPAccountClient {
|
|
279
307
|
readonly inputs: readonly [];
|
280
308
|
readonly name: "LicenseRegistry__ZeroLicensingModule";
|
281
309
|
readonly type: "error";
|
282
|
-
} | {
|
283
|
-
readonly inputs: readonly [];
|
284
|
-
readonly name: "LicensingModuleAware__CallerNotLicensingModule";
|
285
|
-
readonly type: "error";
|
286
310
|
} | {
|
287
311
|
readonly inputs: readonly [];
|
288
312
|
readonly name: "LicensingModule__CallerNotLicenseRegistry";
|
@@ -343,6 +367,10 @@ export declare class IPAccountClient {
|
|
343
367
|
readonly inputs: readonly [];
|
344
368
|
readonly name: "LicensingModule__InvalidPolicyFramework";
|
345
369
|
readonly type: "error";
|
370
|
+
} | {
|
371
|
+
readonly inputs: readonly [];
|
372
|
+
readonly name: "LicensingModule__IpAlreadyLinked";
|
373
|
+
readonly type: "error";
|
346
374
|
} | {
|
347
375
|
readonly inputs: readonly [];
|
348
376
|
readonly name: "LicensingModule__LicensorDoesntHaveThisPolicy";
|
@@ -359,6 +387,10 @@ export declare class IPAccountClient {
|
|
359
387
|
readonly inputs: readonly [];
|
360
388
|
readonly name: "LicensingModule__LinkingRevokedLicense";
|
361
389
|
readonly type: "error";
|
390
|
+
} | {
|
391
|
+
readonly inputs: readonly [];
|
392
|
+
readonly name: "LicensingModule__MintAmountZero";
|
393
|
+
readonly type: "error";
|
362
394
|
} | {
|
363
395
|
readonly inputs: readonly [];
|
364
396
|
readonly name: "LicensingModule__MintLicenseParamFailed";
|
@@ -395,6 +427,10 @@ export declare class IPAccountClient {
|
|
395
427
|
readonly inputs: readonly [];
|
396
428
|
readonly name: "LicensingModule__PolicyNotFound";
|
397
429
|
readonly type: "error";
|
430
|
+
} | {
|
431
|
+
readonly inputs: readonly [];
|
432
|
+
readonly name: "LicensingModule__ReceiverZeroAddress";
|
433
|
+
readonly type: "error";
|
398
434
|
} | {
|
399
435
|
readonly inputs: readonly [];
|
400
436
|
readonly name: "LicensingModule__RegisterPolicyFrameworkMismatch";
|
@@ -523,10 +559,6 @@ export declare class IPAccountClient {
|
|
523
559
|
readonly inputs: readonly [];
|
524
560
|
readonly name: "PolicyFrameworkManager__GettingPolicyWrongFramework";
|
525
561
|
readonly type: "error";
|
526
|
-
} | {
|
527
|
-
readonly inputs: readonly [];
|
528
|
-
readonly name: "RegistrationModule__InvalidOwner";
|
529
|
-
readonly type: "error";
|
530
562
|
} | {
|
531
563
|
readonly inputs: readonly [];
|
532
564
|
readonly name: "RoyaltyModule__CanOnlyMintSelectedPolicy";
|
@@ -547,10 +579,6 @@ export declare class IPAccountClient {
|
|
547
579
|
readonly inputs: readonly [];
|
548
580
|
readonly name: "RoyaltyModule__NotAllowedCaller";
|
549
581
|
readonly type: "error";
|
550
|
-
} | {
|
551
|
-
readonly inputs: readonly [];
|
552
|
-
readonly name: "RoyaltyModule__NotRegisteredIpId";
|
553
|
-
readonly type: "error";
|
554
582
|
} | {
|
555
583
|
readonly inputs: readonly [];
|
556
584
|
readonly name: "RoyaltyModule__NotWhitelistedRoyaltyPolicy";
|
@@ -587,30 +615,10 @@ export declare class IPAccountClient {
|
|
587
615
|
readonly inputs: readonly [];
|
588
616
|
readonly name: "RoyaltyPolicyLAP__ImplementationAlreadySet";
|
589
617
|
readonly type: "error";
|
590
|
-
} | {
|
591
|
-
readonly inputs: readonly [];
|
592
|
-
readonly name: "RoyaltyPolicyLAP__InvalidAncestors";
|
593
|
-
readonly type: "error";
|
594
|
-
} | {
|
595
|
-
readonly inputs: readonly [];
|
596
|
-
readonly name: "RoyaltyPolicyLAP__InvalidAncestorsHash";
|
597
|
-
readonly type: "error";
|
598
|
-
} | {
|
599
|
-
readonly inputs: readonly [];
|
600
|
-
readonly name: "RoyaltyPolicyLAP__InvalidAncestorsLength";
|
601
|
-
readonly type: "error";
|
602
|
-
} | {
|
603
|
-
readonly inputs: readonly [];
|
604
|
-
readonly name: "RoyaltyPolicyLAP__InvalidAncestorsRoyalty";
|
605
|
-
readonly type: "error";
|
606
618
|
} | {
|
607
619
|
readonly inputs: readonly [];
|
608
620
|
readonly name: "RoyaltyPolicyLAP__InvalidParentRoyaltiesLength";
|
609
621
|
readonly type: "error";
|
610
|
-
} | {
|
611
|
-
readonly inputs: readonly [];
|
612
|
-
readonly name: "RoyaltyPolicyLAP__InvalidRoyaltyAmountLength";
|
613
|
-
readonly type: "error";
|
614
622
|
} | {
|
615
623
|
readonly inputs: readonly [];
|
616
624
|
readonly name: "RoyaltyPolicyLAP__LastPositionNotAbleToMintLicense";
|
@@ -625,15 +633,15 @@ export declare class IPAccountClient {
|
|
625
633
|
readonly type: "error";
|
626
634
|
} | {
|
627
635
|
readonly inputs: readonly [];
|
628
|
-
readonly name: "
|
636
|
+
readonly name: "RoyaltyPolicyLAP__UnlinkableToParents";
|
629
637
|
readonly type: "error";
|
630
638
|
} | {
|
631
639
|
readonly inputs: readonly [];
|
632
|
-
readonly name: "
|
640
|
+
readonly name: "RoyaltyPolicyLAP__ZeroAncestorsVaultImpl";
|
633
641
|
readonly type: "error";
|
634
642
|
} | {
|
635
643
|
readonly inputs: readonly [];
|
636
|
-
readonly name: "
|
644
|
+
readonly name: "RoyaltyPolicyLAP__ZeroIpRoyaltyVaultBeacon";
|
637
645
|
readonly type: "error";
|
638
646
|
} | {
|
639
647
|
readonly inputs: readonly [];
|