@story-protocol/core-sdk 1.0.0-rc.10 → 1.0.0-rc.12
Sign up to get free protection for your applications and to get access to all the features.
- package/README.md +2 -4
- package/dist/declarations/src/abi/generated.d.ts +832 -15
- package/dist/declarations/src/abi/generated.d.ts.map +1 -1
- package/dist/declarations/src/index.d.ts +4 -3
- package/dist/declarations/src/index.d.ts.map +1 -1
- package/dist/declarations/src/resources/ipAccount.d.ts +6 -1
- package/dist/declarations/src/resources/ipAccount.d.ts.map +1 -1
- package/dist/declarations/src/resources/ipAsset.d.ts +49 -24
- package/dist/declarations/src/resources/ipAsset.d.ts.map +1 -1
- package/dist/declarations/src/resources/license.d.ts +1 -1
- package/dist/declarations/src/resources/license.d.ts.map +1 -1
- package/dist/declarations/src/resources/nftClient.d.ts +2 -2
- package/dist/declarations/src/resources/nftClient.d.ts.map +1 -1
- package/dist/declarations/src/resources/permission.d.ts.map +1 -1
- package/dist/declarations/src/resources/royalty.d.ts.map +1 -1
- package/dist/declarations/src/types/options.d.ts.map +1 -1
- package/dist/declarations/src/types/resources/dispute.d.ts +13 -13
- package/dist/declarations/src/types/resources/dispute.d.ts.map +1 -1
- package/dist/declarations/src/types/resources/ipAccount.d.ts +10 -10
- package/dist/declarations/src/types/resources/ipAccount.d.ts.map +1 -1
- package/dist/declarations/src/types/resources/ipAsset.d.ts +51 -35
- package/dist/declarations/src/types/resources/ipAsset.d.ts.map +1 -1
- package/dist/declarations/src/types/resources/license.d.ts +20 -20
- package/dist/declarations/src/types/resources/license.d.ts.map +1 -1
- package/dist/declarations/src/types/resources/nftClient.d.ts +2 -2
- package/dist/declarations/src/types/resources/nftClient.d.ts.map +1 -1
- package/dist/declarations/src/types/resources/permission.d.ts +4 -3
- package/dist/declarations/src/types/resources/permission.d.ts.map +1 -1
- package/dist/declarations/src/types/resources/royalty.d.ts +24 -24
- package/dist/declarations/src/types/resources/royalty.d.ts.map +1 -1
- package/dist/story-protocol-core-sdk.cjs.dev.js +3049 -1560
- package/dist/story-protocol-core-sdk.cjs.prod.js +3049 -1560
- package/dist/story-protocol-core-sdk.esm.js +3050 -1562
- package/package.json +1 -1
@@ -1,41 +1,41 @@
|
|
1
|
-
import {
|
1
|
+
import { Address } from "viem";
|
2
2
|
import { TxOptions } from "../options.js";
|
3
3
|
export type Dispute = {
|
4
|
-
targetIpId:
|
5
|
-
disputeInitiator:
|
6
|
-
arbitrationPolicy:
|
4
|
+
targetIpId: Address;
|
5
|
+
disputeInitiator: Address;
|
6
|
+
arbitrationPolicy: Address;
|
7
7
|
linkToDisputeEvidence: string;
|
8
8
|
targetTag: string;
|
9
9
|
currentTag: string;
|
10
10
|
};
|
11
11
|
export type RaiseDisputeRequest = {
|
12
|
-
targetIpId:
|
13
|
-
arbitrationPolicy:
|
12
|
+
targetIpId: Address;
|
13
|
+
arbitrationPolicy: Address;
|
14
14
|
linkToDisputeEvidence: string;
|
15
15
|
targetTag: string;
|
16
|
-
calldata?:
|
16
|
+
calldata?: Address;
|
17
17
|
txOptions?: TxOptions;
|
18
18
|
};
|
19
19
|
export type RaiseDisputeResponse = {
|
20
20
|
txHash: string;
|
21
|
-
disputeId?:
|
22
|
-
arbitrationPolicy?:
|
21
|
+
disputeId?: bigint;
|
22
|
+
arbitrationPolicy?: Address;
|
23
23
|
};
|
24
24
|
export type SetDisputeJudgementRequest = {
|
25
25
|
disputeId: number;
|
26
26
|
decision: boolean;
|
27
|
-
calldata?:
|
27
|
+
calldata?: Address;
|
28
28
|
txOptions?: TxOptions;
|
29
29
|
};
|
30
30
|
export type SetDisputeJudgementResponse = {
|
31
31
|
txHash: string;
|
32
32
|
disputeId?: bigint;
|
33
33
|
decision?: boolean;
|
34
|
-
data?:
|
34
|
+
data?: Address;
|
35
35
|
};
|
36
36
|
export type CancelDisputeRequest = {
|
37
37
|
disputeId: number | string | bigint;
|
38
|
-
calldata?:
|
38
|
+
calldata?: Address;
|
39
39
|
txOptions?: TxOptions;
|
40
40
|
};
|
41
41
|
export type CancelDisputeResponse = {
|
@@ -43,7 +43,7 @@ export type CancelDisputeResponse = {
|
|
43
43
|
};
|
44
44
|
export type ResolveDisputeRequest = {
|
45
45
|
disputeId: number | string | bigint;
|
46
|
-
data:
|
46
|
+
data: Address;
|
47
47
|
txOptions?: TxOptions;
|
48
48
|
};
|
49
49
|
export type ResolveDisputeResponse = {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"dispute.d.ts","sourceRoot":"../../../../../src/types/resources","sources":["dispute.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,
|
1
|
+
{"version":3,"file":"dispute.d.ts","sourceRoot":"../../../../../src/types/resources","sources":["dispute.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,MAAM,CAAC;AAE/B,OAAO,EAAE,SAAS,EAAE,sBAAmB;AAEvC,MAAM,MAAM,OAAO,GAAG;IACpB,UAAU,EAAE,OAAO,CAAC;IACpB,gBAAgB,EAAE,OAAO,CAAC;IAC1B,iBAAiB,EAAE,OAAO,CAAC;IAC3B,qBAAqB,EAAE,MAAM,CAAC;IAC9B,SAAS,EAAE,MAAM,CAAC;IAClB,UAAU,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF,MAAM,MAAM,mBAAmB,GAAG;IAChC,UAAU,EAAE,OAAO,CAAC;IACpB,iBAAiB,EAAE,OAAO,CAAC;IAC3B,qBAAqB,EAAE,MAAM,CAAC;IAC9B,SAAS,EAAE,MAAM,CAAC;IAClB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,SAAS,CAAC,EAAE,SAAS,CAAC;CACvB,CAAC;AAEF,MAAM,MAAM,oBAAoB,GAAG;IACjC,MAAM,EAAE,MAAM,CAAC;IACf,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,iBAAiB,CAAC,EAAE,OAAO,CAAC;CAC7B,CAAC;AAEF,MAAM,MAAM,0BAA0B,GAAG;IACvC,SAAS,EAAE,MAAM,CAAC;IAClB,QAAQ,EAAE,OAAO,CAAC;IAClB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,SAAS,CAAC,EAAE,SAAS,CAAC;CACvB,CAAC;AAEF,MAAM,MAAM,2BAA2B,GAAG;IACxC,MAAM,EAAE,MAAM,CAAC;IACf,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,IAAI,CAAC,EAAE,OAAO,CAAC;CAChB,CAAC;AAEF,MAAM,MAAM,oBAAoB,GAAG;IACjC,SAAS,EAAE,MAAM,GAAG,MAAM,GAAG,MAAM,CAAC;IACpC,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,SAAS,CAAC,EAAE,SAAS,CAAC;CACvB,CAAC;AAEF,MAAM,MAAM,qBAAqB,GAAG;IAClC,MAAM,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF,MAAM,MAAM,qBAAqB,GAAG;IAClC,SAAS,EAAE,MAAM,GAAG,MAAM,GAAG,MAAM,CAAC;IACpC,IAAI,EAAE,OAAO,CAAC;IACd,SAAS,CAAC,EAAE,SAAS,CAAC;CACvB,CAAC;AAEF,MAAM,MAAM,sBAAsB,GAAG;IACnC,MAAM,EAAE,MAAM,CAAC;CAChB,CAAC"}
|
@@ -1,23 +1,23 @@
|
|
1
|
-
import {
|
1
|
+
import { Address } from "viem";
|
2
2
|
import { TxOptions } from "../options.js";
|
3
3
|
export type IPAccountExecuteRequest = {
|
4
|
-
accountAddress:
|
5
|
-
to:
|
4
|
+
accountAddress: Address;
|
5
|
+
to: Address;
|
6
6
|
value: number;
|
7
|
-
data:
|
7
|
+
data: Address;
|
8
8
|
txOptions?: TxOptions;
|
9
9
|
};
|
10
10
|
export type IPAccountExecuteResponse = {
|
11
11
|
txHash: string;
|
12
12
|
};
|
13
13
|
export type IPAccountExecuteWithSigRequest = {
|
14
|
-
accountAddress:
|
15
|
-
to:
|
14
|
+
accountAddress: Address;
|
15
|
+
to: Address;
|
16
16
|
value: number;
|
17
|
-
data:
|
18
|
-
signer:
|
19
|
-
deadline: number;
|
20
|
-
signature:
|
17
|
+
data: Address;
|
18
|
+
signer: Address;
|
19
|
+
deadline: number | bigint | string;
|
20
|
+
signature: Address;
|
21
21
|
txOptions?: TxOptions;
|
22
22
|
};
|
23
23
|
export type IPAccountExecuteWithSigResponse = {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"ipAccount.d.ts","sourceRoot":"../../../../../src/types/resources","sources":["ipAccount.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,
|
1
|
+
{"version":3,"file":"ipAccount.d.ts","sourceRoot":"../../../../../src/types/resources","sources":["ipAccount.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,MAAM,CAAC;AAE/B,OAAO,EAAE,SAAS,EAAE,sBAAmB;AAEvC,MAAM,MAAM,uBAAuB,GAAG;IACpC,cAAc,EAAE,OAAO,CAAC;IACxB,EAAE,EAAE,OAAO,CAAC;IACZ,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,OAAO,CAAC;IACd,SAAS,CAAC,EAAE,SAAS,CAAC;CACvB,CAAC;AAEF,MAAM,MAAM,wBAAwB,GAAG;IACrC,MAAM,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF,MAAM,MAAM,8BAA8B,GAAG;IAC3C,cAAc,EAAE,OAAO,CAAC;IACxB,EAAE,EAAE,OAAO,CAAC;IACZ,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,OAAO,CAAC;IACd,MAAM,EAAE,OAAO,CAAC;IAChB,QAAQ,EAAE,MAAM,GAAG,MAAM,GAAG,MAAM,CAAC;IACnC,SAAS,EAAE,OAAO,CAAC;IACnB,SAAS,CAAC,EAAE,SAAS,CAAC;CACvB,CAAC;AAEF,MAAM,MAAM,+BAA+B,GAAG;IAC5C,MAAM,EAAE,MAAM,CAAC;CAChB,CAAC"}
|
@@ -1,70 +1,86 @@
|
|
1
1
|
import { Address, Hex } from "viem";
|
2
2
|
import { TxOptions } from "../options.js";
|
3
3
|
import { PIL_TYPE } from "./license.js";
|
4
|
+
type Metadata = {
|
5
|
+
metadata?: {
|
6
|
+
metadataURI?: string;
|
7
|
+
metadataHash?: Hex;
|
8
|
+
nftMetadataHash?: Hex;
|
9
|
+
};
|
10
|
+
};
|
4
11
|
export type RegisterIpResponse = {
|
5
12
|
txHash?: string;
|
6
|
-
ipId?:
|
13
|
+
ipId?: Address;
|
7
14
|
};
|
8
15
|
export type RegisterRequest = {
|
9
|
-
|
10
|
-
tokenId: string;
|
16
|
+
nftContract: Address;
|
17
|
+
tokenId: string | number | bigint;
|
11
18
|
txOptions?: TxOptions;
|
12
|
-
|
19
|
+
deadline?: string | number | bigint;
|
20
|
+
} & Metadata;
|
13
21
|
export type RegisterDerivativeWithLicenseTokensRequest = {
|
14
|
-
childIpId:
|
15
|
-
licenseTokenIds: string[];
|
22
|
+
childIpId: Address;
|
23
|
+
licenseTokenIds: string[] | bigint[] | number[];
|
16
24
|
txOptions?: TxOptions;
|
17
25
|
};
|
18
26
|
export type RegisterDerivativeWithLicenseTokensResponse = {
|
19
27
|
txHash: string;
|
20
28
|
};
|
21
29
|
export type RegisterDerivativeRequest = {
|
22
|
-
childIpId:
|
23
|
-
parentIpIds:
|
24
|
-
licenseTermsIds: string[];
|
25
|
-
licenseTemplate?:
|
30
|
+
childIpId: Address;
|
31
|
+
parentIpIds: Address[];
|
32
|
+
licenseTermsIds: string[] | bigint[] | number[];
|
33
|
+
licenseTemplate?: Address;
|
26
34
|
txOptions?: TxOptions;
|
27
35
|
};
|
28
36
|
export type RegisterDerivativeResponse = {
|
29
37
|
txHash?: string;
|
30
|
-
childIpId?:
|
38
|
+
childIpId?: Address;
|
31
39
|
};
|
32
40
|
export type CreateIpAssetWithPilTermsRequest = {
|
33
41
|
nftContract: Address;
|
34
42
|
pilType: PIL_TYPE;
|
35
|
-
|
36
|
-
metadataURI: string;
|
37
|
-
metadata: string;
|
38
|
-
nftMetadata: string;
|
39
|
-
};
|
40
|
-
recipient?: Hex;
|
43
|
+
recipient?: Address;
|
41
44
|
mintingFee?: string;
|
42
|
-
currency?:
|
45
|
+
currency?: Address;
|
43
46
|
commercialRevShare?: number;
|
44
47
|
txOptions?: TxOptions;
|
48
|
+
} & Metadata;
|
49
|
+
export type CreateIpAssetWithPilTermsResponse = {
|
50
|
+
txHash: string;
|
51
|
+
ipId?: Address;
|
52
|
+
tokenId?: bigint;
|
53
|
+
licenseTermsId?: bigint;
|
45
54
|
};
|
46
55
|
export type RegisterIpAndMakeDerivativeRequest = {
|
47
56
|
nftContract: Address;
|
48
|
-
tokenId: string;
|
57
|
+
tokenId: string | number | bigint;
|
58
|
+
deadline?: string | number | bigint;
|
49
59
|
derivData: {
|
50
60
|
parentIpIds: Address[];
|
51
|
-
licenseTermsIds: string[];
|
61
|
+
licenseTermsIds: string[] | bigint[] | number[];
|
52
62
|
licenseTemplate?: Address;
|
53
63
|
};
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
64
|
+
txOptions?: TxOptions;
|
65
|
+
} & Metadata;
|
66
|
+
export type RegisterIpAndMakeDerivativeResponse = {
|
67
|
+
txHash: string;
|
68
|
+
ipId?: Address;
|
69
|
+
};
|
70
|
+
export type RegisterIpAndAttachPilTermsRequest = {
|
71
|
+
nftContract: Address;
|
72
|
+
tokenId: bigint | string | number;
|
73
|
+
pilType: PIL_TYPE;
|
74
|
+
deadline?: bigint | number | string;
|
75
|
+
mintingFee?: string;
|
76
|
+
currency?: Address;
|
77
|
+
commercialRevShare?: number;
|
78
|
+
txOptions?: TxOptions;
|
79
|
+
} & Metadata;
|
80
|
+
export type RegisterIpAndAttachPilTermsResponse = {
|
81
|
+
txHash: string;
|
82
|
+
ipId?: Address;
|
83
|
+
licenseTermsId?: bigint;
|
69
84
|
};
|
85
|
+
export {};
|
70
86
|
//# sourceMappingURL=ipAsset.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"ipAsset.d.ts","sourceRoot":"../../../../../src/types/resources","sources":["ipAsset.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,GAAG,EAAE,MAAM,MAAM,CAAC;AAEpC,OAAO,EAAE,SAAS,EAAE,sBAAmB;AACvC,OAAO,EAAE,QAAQ,EAAE,qBAAkB;AAErC,MAAM,MAAM,kBAAkB,GAAG;IAC/B,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,IAAI,CAAC,EAAE,
|
1
|
+
{"version":3,"file":"ipAsset.d.ts","sourceRoot":"../../../../../src/types/resources","sources":["ipAsset.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,GAAG,EAAE,MAAM,MAAM,CAAC;AAEpC,OAAO,EAAE,SAAS,EAAE,sBAAmB;AACvC,OAAO,EAAE,QAAQ,EAAE,qBAAkB;AAErC,KAAK,QAAQ,GAAG;IACd,QAAQ,CAAC,EAAE;QACT,WAAW,CAAC,EAAE,MAAM,CAAC;QACrB,YAAY,CAAC,EAAE,GAAG,CAAC;QACnB,eAAe,CAAC,EAAE,GAAG,CAAC;KACvB,CAAC;CACH,CAAC;AAEF,MAAM,MAAM,kBAAkB,GAAG;IAC/B,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,IAAI,CAAC,EAAE,OAAO,CAAC;CAChB,CAAC;AAEF,MAAM,MAAM,eAAe,GAAG;IAC5B,WAAW,EAAE,OAAO,CAAC;IACrB,OAAO,EAAE,MAAM,GAAG,MAAM,GAAG,MAAM,CAAC;IAClC,SAAS,CAAC,EAAE,SAAS,CAAC;IACtB,QAAQ,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,MAAM,CAAC;CACrC,GAAG,QAAQ,CAAC;AAEb,MAAM,MAAM,0CAA0C,GAAG;IACvD,SAAS,EAAE,OAAO,CAAC;IACnB,eAAe,EAAE,MAAM,EAAE,GAAG,MAAM,EAAE,GAAG,MAAM,E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eAAe,EAAE,MAAM,EAAE,GAAG,MAAM,EAAE,GAAG,MAAM,EAAE,CAAC;QAChD,eAAe,CAAC,EAAE,OAAO,CAAC;KAC3B,CAAC;IACF,SAAS,CAAC,EAAE,SAAS,CAAC;CACvB,GAAG,QAAQ,CAAC;AAEb,MAAM,MAAM,mCAAmC,GAAG;IAChD,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,CAAC,EAAE,OAAO,CAAC;CAChB,CAAC;AAEF,MAAM,MAAM,kCAAkC,GAAG;IAC/C,WAAW,EAAE,OAAO,CAAC;IACrB,OAAO,EAAE,MAAM,GAAG,MAAM,GAAG,MAAM,CAAC;IAClC,OAAO,EAAE,QAAQ,CAAC;IAClB,QAAQ,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,MAAM,CAAC;IACpC,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,SAAS,CAAC,EAAE,SAAS,CAAC;CACvB,GAAG,QAAQ,CAAC;AAEb,MAAM,MAAM,mCAAmC,GAAG;IAChD,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB,CAAC"}
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import {
|
1
|
+
import { Address } from "viem";
|
2
2
|
import { TxOptions } from "../options.js";
|
3
3
|
export type LicenseApiResponse = {
|
4
4
|
data: License;
|
@@ -6,7 +6,7 @@ export type LicenseApiResponse = {
|
|
6
6
|
export type License = {
|
7
7
|
id: string;
|
8
8
|
policyId: string;
|
9
|
-
licensorIpId:
|
9
|
+
licensorIpId: Address;
|
10
10
|
};
|
11
11
|
export type RegisterNonComSocialRemixingPILRequest = {
|
12
12
|
txOptions?: TxOptions;
|
@@ -16,52 +16,52 @@ export type LicenseTerms = {
|
|
16
16
|
expiration: bigint;
|
17
17
|
commercialRevCelling: bigint;
|
18
18
|
derivativeRevCelling: bigint;
|
19
|
-
commercializerCheckerData:
|
19
|
+
commercializerCheckerData: Address;
|
20
20
|
transferable: boolean;
|
21
|
-
royaltyPolicy:
|
21
|
+
royaltyPolicy: Address;
|
22
22
|
commercialUse: boolean;
|
23
23
|
commercialAttribution: boolean;
|
24
|
-
commercializerChecker:
|
24
|
+
commercializerChecker: Address;
|
25
25
|
commercialRevShare: number;
|
26
26
|
derivativesAllowed: boolean;
|
27
27
|
derivativesAttribution: boolean;
|
28
28
|
derivativesApproval: boolean;
|
29
29
|
derivativesReciprocal: boolean;
|
30
|
-
currency:
|
30
|
+
currency: Address;
|
31
31
|
uri: string;
|
32
32
|
};
|
33
|
-
export type LicenseTermsIdResponse =
|
33
|
+
export type LicenseTermsIdResponse = bigint;
|
34
34
|
export type RegisterPILResponse = {
|
35
|
-
licenseTermsId?:
|
35
|
+
licenseTermsId?: bigint;
|
36
36
|
txHash?: string;
|
37
37
|
};
|
38
38
|
export type RegisterCommercialUsePILRequest = {
|
39
|
-
mintingFee: string;
|
40
|
-
currency:
|
39
|
+
mintingFee: string | number | bigint;
|
40
|
+
currency: Address;
|
41
41
|
txOptions?: TxOptions;
|
42
42
|
};
|
43
43
|
export type RegisterCommercialRemixPILRequest = {
|
44
44
|
mintingFee: string;
|
45
45
|
commercialRevShare: number;
|
46
|
-
currency:
|
46
|
+
currency: Address;
|
47
47
|
txOptions?: TxOptions;
|
48
48
|
};
|
49
49
|
export type AttachLicenseTermsRequest = {
|
50
|
-
ipId:
|
51
|
-
licenseTermsId: string;
|
52
|
-
licenseTemplate?:
|
50
|
+
ipId: Address;
|
51
|
+
licenseTermsId: string | number | bigint;
|
52
|
+
licenseTemplate?: Address;
|
53
53
|
txOptions?: TxOptions;
|
54
54
|
};
|
55
55
|
export type MintLicenseTokensRequest = {
|
56
|
-
licensorIpId:
|
57
|
-
licenseTermsId: string;
|
58
|
-
licenseTemplate?:
|
59
|
-
amount?: number;
|
60
|
-
receiver?:
|
56
|
+
licensorIpId: Address;
|
57
|
+
licenseTermsId: string | number | bigint;
|
58
|
+
licenseTemplate?: Address;
|
59
|
+
amount?: number | string | bigint;
|
60
|
+
receiver?: Address;
|
61
61
|
txOptions?: TxOptions;
|
62
62
|
};
|
63
63
|
export type MintLicenseTokensResponse = {
|
64
|
-
licenseTokenId?:
|
64
|
+
licenseTokenId?: bigint;
|
65
65
|
txHash?: string;
|
66
66
|
};
|
67
67
|
export declare enum PIL_TYPE {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"license.d.ts","sourceRoot":"../../../../../src/types/resources","sources":["license.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,
|
1
|
+
{"version":3,"file":"license.d.ts","sourceRoot":"../../../../../src/types/resources","sources":["license.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,MAAM,CAAC;AAE/B,OAAO,EAAE,SAAS,EAAE,sBAAmB;AAEvC,MAAM,MAAM,kBAAkB,GAAG;IAC/B,IAAI,EAAE,OAAO,CAAC;CACf,CAAC;AAEF,MAAM,MAAM,OAAO,GAAG;IACpB,EAAE,EAAE,MAAM,CAAC;IACX,QAAQ,EAAE,MAAM,CAAC;IACjB,YAAY,EAAE,OAAO,CAAC;CACvB,CAAC;AAEF,MAAM,MAAM,sCAAsC,GAAG;IACnD,SAAS,CAAC,EAAE,SAAS,CAAC;CACvB,CAAC;AAEF,MAAM,MAAM,YAAY,GAAG;IACzB,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,MAAM,CAAC;IACnB,oBAAoB,EAAE,MAAM,CAAC;IAC7B,oBAAoB,EAAE,MAAM,CAAC;IAC7B,yBAAyB,EAAE,OAAO,CAAC;IACnC,YAAY,EAAE,OAAO,CAAC;IACtB,aAAa,EAAE,OAAO,CAAC;IACvB,aAAa,EAAE,OAAO,CAAC;IACvB,qBAAqB,EAAE,OAAO,CAAC;IAC/B,qBAAqB,EAAE,OAAO,CAAC;IAC/B,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,CAAC;AAEF,MAAM,MAAM,yBAAyB,GAAG;IACtC,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB,CAAC;AAEF,oBAAY,QAAQ;IAClB,oBAAoB,IAAA;IACpB,cAAc,IAAA;IACd,gBAAgB,IAAA;CACjB"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"nftClient.d.ts","sourceRoot":"../../../../../src/types/resources","sources":["nftClient.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,MAAM,CAAC;AAE3B,OAAO,EAAE,SAAS,EAAE,sBAAmB;AAEvC,MAAM,MAAM,0BAA0B,GAAG;IACvC,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;IACf,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,
|
1
|
+
{"version":3,"file":"nftClient.d.ts","sourceRoot":"../../../../../src/types/resources","sources":["nftClient.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,MAAM,CAAC;AAE3B,OAAO,EAAE,SAAS,EAAE,sBAAmB;AAEvC,MAAM,MAAM,0BAA0B,GAAG;IACvC,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;IACf,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,YAAY,CAAC,EAAE,GAAG,CAAC;IACnB,KAAK,CAAC,EAAE,GAAG,CAAC;IACZ,SAAS,CAAC,EAAE,SAAS,CAAC;CACvB,CAAC;AAEF,MAAM,MAAM,2BAA2B,CAAC,IAAI,SAAS,0BAA0B,IAC7E,IAAI,CAAC,WAAW,CAAC,SAAS;IAAE,kBAAkB,EAAE,IAAI,CAAA;CAAE,GAClD;IAAE,MAAM,EAAE,MAAM,CAAC;IAAC,WAAW,EAAE,GAAG,CAAA;CAAE,GACpC;IAAE,MAAM,EAAE,MAAM,CAAC;IAAC,WAAW,CAAC,EAAE,GAAG,CAAA;CAAE,CAAC"}
|
@@ -1,8 +1,9 @@
|
|
1
|
+
import { Address } from "viem";
|
1
2
|
import { TxOptions } from "../options.js";
|
2
3
|
export type SetPermissionsRequest = {
|
3
|
-
ipId:
|
4
|
-
signer:
|
5
|
-
to:
|
4
|
+
ipId: Address;
|
5
|
+
signer: Address;
|
6
|
+
to: Address;
|
6
7
|
func?: string;
|
7
8
|
permission: number;
|
8
9
|
txOptions?: TxOptions;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"permission.d.ts","sourceRoot":"../../../../../src/types/resources","sources":["permission.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,sBAAmB;AAEvC,MAAM,MAAM,qBAAqB,GAAG;IAClC,IAAI,EAAE,
|
1
|
+
{"version":3,"file":"permission.d.ts","sourceRoot":"../../../../../src/types/resources","sources":["permission.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,MAAM,CAAC;AAE/B,OAAO,EAAE,SAAS,EAAE,sBAAmB;AAEvC,MAAM,MAAM,qBAAqB,GAAG;IAClC,IAAI,EAAE,OAAO,CAAC;IACd,MAAM,EAAE,OAAO,CAAC;IAChB,EAAE,EAAE,OAAO,CAAC;IACZ,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,UAAU,EAAE,MAAM,CAAC;IACnB,SAAS,CAAC,EAAE,SAAS,CAAC;CACvB,CAAC;AAEF,MAAM,MAAM,sBAAsB,GAAG;IACnC,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB,CAAC"}
|
@@ -1,10 +1,10 @@
|
|
1
|
-
import {
|
1
|
+
import { Address } from "viem";
|
2
2
|
import { TxOptions } from "../options.js";
|
3
3
|
export type RoyaltyPolicyApiResponse = {
|
4
4
|
data: RoyaltyPolicy;
|
5
5
|
};
|
6
6
|
export type RoyaltyPolicy = {
|
7
|
-
id:
|
7
|
+
id: Address;
|
8
8
|
targetAncestors: string[];
|
9
9
|
targetRoyaltyAmount: string[];
|
10
10
|
};
|
@@ -17,56 +17,56 @@ export type RoyaltyContext = {
|
|
17
17
|
parentAncestorsRoyalties2: number[];
|
18
18
|
};
|
19
19
|
export type CollectRoyaltyTokensRequest = {
|
20
|
-
parentIpId:
|
21
|
-
royaltyVaultIpId:
|
20
|
+
parentIpId: Address;
|
21
|
+
royaltyVaultIpId: Address;
|
22
22
|
txOptions?: TxOptions;
|
23
23
|
};
|
24
24
|
export type CollectRoyaltyTokensResponse = {
|
25
25
|
txHash: string;
|
26
|
-
royaltyTokensCollected?:
|
26
|
+
royaltyTokensCollected?: bigint;
|
27
27
|
};
|
28
28
|
export type RoyaltyData = [
|
29
29
|
isUnlinkableToParents: boolean,
|
30
|
-
ipRoyaltyVault:
|
30
|
+
ipRoyaltyVault: Address,
|
31
31
|
royaltyStack: bigint,
|
32
|
-
ancestorsAddresses:
|
32
|
+
ancestorsAddresses: Address,
|
33
33
|
ancestorsRoyalties: bigint[]
|
34
34
|
];
|
35
35
|
export type ClaimableRevenueRequest = {
|
36
|
-
royaltyVaultIpId:
|
37
|
-
account:
|
38
|
-
snapshotId: string;
|
39
|
-
token:
|
36
|
+
royaltyVaultIpId: Address;
|
37
|
+
account: Address;
|
38
|
+
snapshotId: string | number | bigint;
|
39
|
+
token: Address;
|
40
40
|
};
|
41
|
-
export type ClaimableRevenueResponse =
|
41
|
+
export type ClaimableRevenueResponse = bigint;
|
42
42
|
export type PayRoyaltyOnBehalfRequest = {
|
43
|
-
receiverIpId:
|
44
|
-
payerIpId:
|
45
|
-
token:
|
46
|
-
amount: string;
|
43
|
+
receiverIpId: Address;
|
44
|
+
payerIpId: Address;
|
45
|
+
token: Address;
|
46
|
+
amount: string | number | bigint;
|
47
47
|
txOptions?: TxOptions;
|
48
48
|
};
|
49
49
|
export type PayRoyaltyOnBehalfResponse = {
|
50
50
|
txHash: string;
|
51
51
|
};
|
52
52
|
export type SnapshotRequest = {
|
53
|
-
royaltyVaultIpId:
|
53
|
+
royaltyVaultIpId: Address;
|
54
54
|
txOptions?: TxOptions;
|
55
55
|
};
|
56
56
|
export type ClaimRevenueRequest = {
|
57
|
-
snapshotIds: string[];
|
58
|
-
token:
|
59
|
-
royaltyVaultIpId:
|
60
|
-
account?:
|
57
|
+
snapshotIds: string[] | number[] | bigint[];
|
58
|
+
token: Address;
|
59
|
+
royaltyVaultIpId: Address;
|
60
|
+
account?: Address;
|
61
61
|
txOptions?: TxOptions;
|
62
62
|
};
|
63
63
|
export type ClaimRevenueResponse = {
|
64
64
|
txHash: string;
|
65
|
-
claimableToken?:
|
65
|
+
claimableToken?: bigint;
|
66
66
|
};
|
67
67
|
export type SnapshotResponse = {
|
68
68
|
txHash: string;
|
69
|
-
snapshotId?:
|
69
|
+
snapshotId?: bigint;
|
70
70
|
};
|
71
|
-
export type RoyaltyVaultAddress =
|
71
|
+
export type RoyaltyVaultAddress = Address;
|
72
72
|
//# sourceMappingURL=royalty.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"royalty.d.ts","sourceRoot":"../../../../../src/types/resources","sources":["royalty.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,
|
1
|
+
{"version":3,"file":"royalty.d.ts","sourceRoot":"../../../../../src/types/resources","sources":["royalty.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,MAAM,CAAC;AAE/B,OAAO,EAAE,SAAS,EAAE,sBAAmB;AAEvC,MAAM,MAAM,wBAAwB,GAAG;IACrC,IAAI,EAAE,aAAa,CAAC;CACrB,CAAC;AAEF,MAAM,MAAM,aAAa,GAAG;IAC1B,EAAE,EAAE,OAAO,CAAC;IACZ,eAAe,EAAE,MAAM,EAAE,CAAC;IAC1B,mBAAmB,EAAE,MAAM,EAAE,CAAC;CAC/B,CAAC;AAEF,MAAM,MAAM,cAAc,GAAG;IAC3B,eAAe,EAAE,MAAM,EAAE,CAAC;IAC1B,mB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