@story-protocol/core-sdk 1.0.0-rc.1 → 1.0.0-rc.11
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/declarations/src/abi/generated.d.ts +23837 -0
- package/dist/declarations/src/abi/generated.d.ts.map +1 -0
- package/dist/declarations/src/client.d.ts +23 -3
- package/dist/declarations/src/client.d.ts.map +1 -1
- package/dist/declarations/src/index.d.ts +8 -5
- package/dist/declarations/src/index.d.ts.map +1 -1
- package/dist/declarations/src/resources/dispute.d.ts +7 -1085
- package/dist/declarations/src/resources/dispute.d.ts.map +1 -1
- package/dist/declarations/src/resources/ipAccount.d.ts +11 -1005
- package/dist/declarations/src/resources/ipAccount.d.ts.map +1 -1
- package/dist/declarations/src/resources/ipAsset.d.ts +105 -2337
- package/dist/declarations/src/resources/ipAsset.d.ts.map +1 -1
- package/dist/declarations/src/resources/license.d.ts +46 -4319
- package/dist/declarations/src/resources/license.d.ts.map +1 -1
- package/dist/declarations/src/resources/nftClient.d.ts +24 -0
- package/dist/declarations/src/resources/nftClient.d.ts.map +1 -0
- package/dist/declarations/src/resources/permission.d.ts +5 -2052
- package/dist/declarations/src/resources/permission.d.ts.map +1 -1
- package/dist/declarations/src/resources/royalty.d.ts +53 -2999
- package/dist/declarations/src/resources/royalty.d.ts.map +1 -1
- package/dist/declarations/src/types/common.d.ts +0 -1
- package/dist/declarations/src/types/common.d.ts.map +1 -1
- package/dist/declarations/src/types/config.d.ts +16 -5
- package/dist/declarations/src/types/config.d.ts.map +1 -1
- package/dist/declarations/src/types/options.d.ts +4 -0
- package/dist/declarations/src/types/options.d.ts.map +1 -1
- package/dist/declarations/src/types/resources/dispute.d.ts +13 -11
- package/dist/declarations/src/types/resources/dispute.d.ts.map +1 -1
- package/dist/declarations/src/types/resources/ipAccount.d.ts +10 -9
- package/dist/declarations/src/types/resources/ipAccount.d.ts.map +1 -1
- package/dist/declarations/src/types/resources/ipAsset.d.ts +90 -11
- package/dist/declarations/src/types/resources/ipAsset.d.ts.map +1 -1
- package/dist/declarations/src/types/resources/license.d.ts +28 -22
- package/dist/declarations/src/types/resources/license.d.ts.map +1 -1
- package/dist/declarations/src/types/resources/nftClient.d.ts +21 -0
- package/dist/declarations/src/types/resources/nftClient.d.ts.map +1 -0
- 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 +33 -19
- package/dist/declarations/src/types/resources/royalty.d.ts.map +1 -1
- package/dist/story-protocol-core-sdk.cjs.dev.js +16400 -2742
- package/dist/story-protocol-core-sdk.cjs.prod.js +16400 -2742
- package/dist/story-protocol-core-sdk.esm.js +16403 -2743
- package/package.json +5 -5
- package/dist/declarations/src/clients/storyAPI.d.ts +0 -9
- package/dist/declarations/src/clients/storyAPI.d.ts.map +0 -1
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"royalty.d.ts","sourceRoot":"../../../../src/resources","sources":["royalty.ts"],"names":[],"mappings":"AAAA,OAAO,
|
1
|
+
{"version":3,"file":"royalty.d.ts","sourceRoot":"../../../../src/resources","sources":["royalty.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,YAAY,EAAkC,MAAM,MAAM,CAAC;AAGzE,OAAO,EACL,uBAAuB,EACvB,wBAAwB,EACxB,2BAA2B,EAC3B,4BAA4B,EAC5B,yBAAyB,EACzB,0BAA0B,EAC1B,mBAAmB,EACnB,eAAe,EACf,gBAAgB,EAChB,mBAAmB,EACnB,oBAAoB,EACrB,sCAAmC;AACpC,OAAO,EACL,qBAAqB,EAErB,mBAAmB,EACnB,sBAAsB,EACtB,kBAAkB,EAEnB,4BAAyB;AAC1B,OAAO,EAAE,eAAe,EAAE,uBAAoB;AAE9C,qBAAa,aAAa;IACjB,sBAAsB,EAAE,sBAAsB,CAAC;IAC/C,mBAAmB,EAAE,mBAAmB,CAAC;IACzC,qBAAqB,EAAE,qBAAqB,CAAC;IAC7C,eAAe,EAAE,eAAe,CAAC;IACxC,OAAO,CAAC,QAAQ,CAAC,SAAS,CAAe;IACzC,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAqB;gBAEhC,SAAS,EAAE,YAAY,EAAE,MAAM,EAAE,kBAAkB;IAS/D;;;;;;;;OAQG;IACU,oBAAoB,CAC/B,OAAO,EAAE,2BAA2B,GACnC,OAAO,CAAC,4BAA4B,CAAC;IAgCxC;;;;;;;;;OASG;IACU,kBAAkB,CAC7B,OAAO,EAAE,yBAAyB,GACjC,OAAO,CAAC,0BAA0B,CAAC;IA+BtC;;;;;;;;;OASG;IACU,gBAAgB,CAC3B,OAAO,EAAE,uBAAuB,GAC/B,OAAO,CAAC,wBAAwB,CAAC;IAkBpC;;;;;;;;;;OAUG;IACU,YAAY,CAAC,OAAO,EAAE,mBAAmB,GAAG,OAAO,CAAC,oBAAoB,CAAC;IA4CtF;;;;;;;OAOG;IACU,QAAQ,CAAC,OAAO,EAAE,eAAe,GAAG,OAAO,CAAC,gBAAgB,CAAC;IAqB1E;;;;OAIG;IACU,sBAAsB,CAAC,gBAAgB,EAAE,GAAG,GAAG,OAAO,CAAC,mBAAmB,CAAC;CAezF"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"common.d.ts","sourceRoot":"../../../../src/types","sources":["common.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,
|
1
|
+
{"version":3,"file":"common.d.ts","sourceRoot":"../../../../src/types","sources":["common.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,SAAS,GAAG;IACtB,SAAS,EAAE,MAAM,CAAC;IAClB,IAAI,EAAE,OAAO,EAAE,CAAC;CACjB,CAAC"}
|
@@ -1,21 +1,32 @@
|
|
1
|
-
import { Account, Transport, Address
|
1
|
+
import { Account, Transport, Address } from "viem";
|
2
|
+
import { SimpleWalletClient } from "../abi/generated.js";
|
2
3
|
/**
|
3
4
|
* Supported chains. For convenience, both name or chain ID are supported.
|
4
5
|
*
|
5
6
|
* @public
|
6
7
|
*/
|
7
|
-
export type SupportedChainIds = "11155111" | "sepolia"
|
8
|
+
export type SupportedChainIds = "11155111" | "sepolia";
|
8
9
|
/**
|
9
10
|
* Configuration for the SDK Client.
|
10
11
|
*
|
11
12
|
* @public
|
12
13
|
*/
|
13
|
-
export
|
14
|
+
export type UseAccountStoryConfig = {
|
14
15
|
readonly account: Account | Address;
|
15
16
|
readonly chainId?: SupportedChainIds;
|
16
17
|
readonly transport: Transport;
|
17
|
-
|
18
|
-
|
18
|
+
};
|
19
|
+
export type UseWalletStoryConfig = {
|
20
|
+
readonly chainId?: SupportedChainIds;
|
21
|
+
readonly transport: Transport;
|
22
|
+
readonly wallet: SimpleWalletClient;
|
23
|
+
};
|
24
|
+
export type StoryConfig = {
|
25
|
+
readonly chainId?: SupportedChainIds;
|
26
|
+
readonly transport: Transport;
|
27
|
+
readonly wallet?: SimpleWalletClient;
|
28
|
+
readonly account?: Account | Address;
|
29
|
+
};
|
19
30
|
export type ContractAddress = {
|
20
31
|
[key in SupportedChainIds]: Record<string, string>;
|
21
32
|
};
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"config.d.ts","sourceRoot":"../../../../src/types","sources":["config.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,SAAS,EAAE,OAAO,EAAE,
|
1
|
+
{"version":3,"file":"config.d.ts","sourceRoot":"../../../../src/types","sources":["config.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,SAAS,EAAE,OAAO,EAAE,MAAM,MAAM,CAAC;AAEnD,OAAO,EAAE,kBAAkB,EAAE,4BAAyB;AAEtD;;;;GAIG;AACH,MAAM,MAAM,iBAAiB,GAAG,UAAU,GAAG,SAAS,CAAC;AAEvD;;;;GAIG;AACH,MAAM,MAAM,qBAAqB,GAAG;IAClC,QAAQ,CAAC,OAAO,EAAE,OAAO,GAAG,OAAO,CAAC;IACpC,QAAQ,CAAC,OAAO,CAAC,EAAE,iBAAiB,CAAC;IACrC,QAAQ,CAAC,SAAS,EAAE,SAAS,CAAC;CAC/B,CAAC;AAEF,MAAM,MAAM,oBAAoB,GAAG;IACjC,QAAQ,CAAC,OAAO,CAAC,EAAE,iBAAiB,CAAC;IACrC,QAAQ,CAAC,SAAS,EAAE,SAAS,CAAC;IAC9B,QAAQ,CAAC,MAAM,EAAE,kBAAkB,CAAC;CACrC,CAAC;AAEF,MAAM,MAAM,WAAW,GAAG;IACxB,QAAQ,CAAC,OAAO,CAAC,EAAE,iBAAiB,CAAC;IACrC,QAAQ,CAAC,SAAS,EAAE,SAAS,CAAC;IAC9B,QAAQ,CAAC,MAAM,CAAC,EAAE,kBAAkB,CAAC;IACrC,QAAQ,CAAC,OAAO,CAAC,EAAE,OAAO,GAAG,OAAO,CAAC;CACtC,CAAC;AAEF,MAAM,MAAM,eAAe,GAAG;KAAG,GAAG,IAAI,iBAAiB,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC;CAAE,CAAC"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"options.d.ts","sourceRoot":"../../../../src/types","sources":["options.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,SAAS,GAAG;IACtB,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAC7B,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,qBAAqB,CAAC,EAAE,MAAM,CAAC;CAChC,CAAC"}
|
1
|
+
{"version":3,"file":"options.d.ts","sourceRoot":"../../../../src/types","sources":["options.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,SAAS,GAAG;IACtB,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAC7B,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,qBAAqB,CAAC,EAAE,MAAM,CAAC;CAChC,CAAC;AAEF,MAAM,MAAM,aAAa,CAAC,CAAC,IAAI,CAAC,GAAG;IACjC,SAAS,CAAC,EAAE,SAAS,CAAC;CACvB,CAAC"}
|
@@ -1,40 +1,41 @@
|
|
1
|
+
import { Address } from "viem";
|
1
2
|
import { TxOptions } from "../options.js";
|
2
3
|
export type Dispute = {
|
3
|
-
targetIpId:
|
4
|
-
disputeInitiator:
|
5
|
-
arbitrationPolicy:
|
4
|
+
targetIpId: Address;
|
5
|
+
disputeInitiator: Address;
|
6
|
+
arbitrationPolicy: Address;
|
6
7
|
linkToDisputeEvidence: string;
|
7
8
|
targetTag: string;
|
8
9
|
currentTag: string;
|
9
10
|
};
|
10
11
|
export type RaiseDisputeRequest = {
|
11
|
-
targetIpId:
|
12
|
-
arbitrationPolicy:
|
12
|
+
targetIpId: Address;
|
13
|
+
arbitrationPolicy: Address;
|
13
14
|
linkToDisputeEvidence: string;
|
14
15
|
targetTag: string;
|
15
|
-
calldata?:
|
16
|
+
calldata?: Address;
|
16
17
|
txOptions?: TxOptions;
|
17
18
|
};
|
18
19
|
export type RaiseDisputeResponse = {
|
19
20
|
txHash: string;
|
20
|
-
disputeId?:
|
21
|
-
arbitrationPolicy?:
|
21
|
+
disputeId?: bigint;
|
22
|
+
arbitrationPolicy?: Address;
|
22
23
|
};
|
23
24
|
export type SetDisputeJudgementRequest = {
|
24
25
|
disputeId: number;
|
25
26
|
decision: boolean;
|
26
|
-
calldata?:
|
27
|
+
calldata?: Address;
|
27
28
|
txOptions?: TxOptions;
|
28
29
|
};
|
29
30
|
export type SetDisputeJudgementResponse = {
|
30
31
|
txHash: string;
|
31
32
|
disputeId?: bigint;
|
32
33
|
decision?: boolean;
|
33
|
-
data?:
|
34
|
+
data?: Address;
|
34
35
|
};
|
35
36
|
export type CancelDisputeRequest = {
|
36
37
|
disputeId: number | string | bigint;
|
37
|
-
calldata?:
|
38
|
+
calldata?: Address;
|
38
39
|
txOptions?: TxOptions;
|
39
40
|
};
|
40
41
|
export type CancelDisputeResponse = {
|
@@ -42,6 +43,7 @@ export type CancelDisputeResponse = {
|
|
42
43
|
};
|
43
44
|
export type ResolveDisputeRequest = {
|
44
45
|
disputeId: number | string | bigint;
|
46
|
+
data: Address;
|
45
47
|
txOptions?: TxOptions;
|
46
48
|
};
|
47
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,SAAS,EAAE,sBAAmB;AAEvC,MAAM,MAAM,OAAO,GAAG;IACpB,UAAU,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,22 +1,23 @@
|
|
1
|
+
import { Address } from "viem";
|
1
2
|
import { TxOptions } from "../options.js";
|
2
3
|
export type IPAccountExecuteRequest = {
|
3
|
-
accountAddress:
|
4
|
-
to:
|
4
|
+
accountAddress: Address;
|
5
|
+
to: Address;
|
5
6
|
value: number;
|
6
|
-
data:
|
7
|
+
data: Address;
|
7
8
|
txOptions?: TxOptions;
|
8
9
|
};
|
9
10
|
export type IPAccountExecuteResponse = {
|
10
11
|
txHash: string;
|
11
12
|
};
|
12
13
|
export type IPAccountExecuteWithSigRequest = {
|
13
|
-
accountAddress:
|
14
|
-
to:
|
14
|
+
accountAddress: Address;
|
15
|
+
to: Address;
|
15
16
|
value: number;
|
16
|
-
data:
|
17
|
-
signer:
|
18
|
-
deadline: number;
|
19
|
-
signature:
|
17
|
+
data: Address;
|
18
|
+
signer: Address;
|
19
|
+
deadline: number | bigint | string;
|
20
|
+
signature: Address;
|
20
21
|
txOptions?: TxOptions;
|
21
22
|
};
|
22
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,SAAS,EAAE,sBAAmB;AAEvC,MAAM,MAAM,uBAAuB,GAAG;IACpC,cAAc,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,31 +1,110 @@
|
|
1
|
-
import { Hex } from "viem";
|
1
|
+
import { Address, Hex } from "viem";
|
2
2
|
import { TxOptions } from "../options.js";
|
3
|
+
import { PIL_TYPE } from "./license.js";
|
3
4
|
export type RegisterIpResponse = {
|
4
5
|
txHash?: string;
|
5
|
-
ipId?:
|
6
|
+
ipId?: Address;
|
6
7
|
};
|
7
8
|
export type RegisterRequest = {
|
8
|
-
|
9
|
-
tokenId: string;
|
9
|
+
nftContract: Address;
|
10
|
+
tokenId: string | number | bigint;
|
10
11
|
txOptions?: TxOptions;
|
11
12
|
};
|
12
13
|
export type RegisterDerivativeWithLicenseTokensRequest = {
|
13
|
-
childIpId:
|
14
|
-
licenseTokenIds: string[];
|
14
|
+
childIpId: Address;
|
15
|
+
licenseTokenIds: string[] | bigint[] | number[];
|
15
16
|
txOptions?: TxOptions;
|
16
17
|
};
|
17
18
|
export type RegisterDerivativeWithLicenseTokensResponse = {
|
18
19
|
txHash: string;
|
19
20
|
};
|
20
21
|
export type RegisterDerivativeRequest = {
|
21
|
-
childIpId:
|
22
|
-
parentIpIds:
|
23
|
-
licenseTermsIds: string[];
|
24
|
-
licenseTemplate?:
|
22
|
+
childIpId: Address;
|
23
|
+
parentIpIds: Address[];
|
24
|
+
licenseTermsIds: string[] | bigint[] | number[];
|
25
|
+
licenseTemplate?: Address;
|
25
26
|
txOptions?: TxOptions;
|
26
27
|
};
|
27
28
|
export type RegisterDerivativeResponse = {
|
28
29
|
txHash?: string;
|
29
|
-
childIpId?:
|
30
|
+
childIpId?: Address;
|
31
|
+
};
|
32
|
+
export type CreateIpAssetWithPilTermsRequest = {
|
33
|
+
nftContract: Address;
|
34
|
+
pilType: PIL_TYPE;
|
35
|
+
metadata?: {
|
36
|
+
metadataURI: string;
|
37
|
+
metadata: string;
|
38
|
+
nftMetadata: string;
|
39
|
+
};
|
40
|
+
recipient?: Address;
|
41
|
+
mintingFee?: string;
|
42
|
+
currency?: Address;
|
43
|
+
commercialRevShare?: number;
|
44
|
+
txOptions?: TxOptions;
|
45
|
+
};
|
46
|
+
export type CreateIpAssetWithPilTermsResponse = {
|
47
|
+
txHash: string;
|
48
|
+
ipId?: Address;
|
49
|
+
tokenId?: bigint;
|
50
|
+
licenseTermsId?: bigint;
|
51
|
+
};
|
52
|
+
export type RegisterIpAndMakeDerivativeRequest = {
|
53
|
+
nftContract: Address;
|
54
|
+
tokenId: string | number | bigint;
|
55
|
+
derivData: {
|
56
|
+
parentIpIds: Address[];
|
57
|
+
licenseTermsIds: string[] | bigint[] | number[];
|
58
|
+
licenseTemplate?: Address;
|
59
|
+
};
|
60
|
+
metadata?: {
|
61
|
+
metadataURI: string;
|
62
|
+
metadata: string;
|
63
|
+
nftMetadata: string;
|
64
|
+
};
|
65
|
+
sigMetadata?: {
|
66
|
+
signer: Address;
|
67
|
+
deadline: string | number | bigint;
|
68
|
+
signature: Hex;
|
69
|
+
};
|
70
|
+
sigRegister: {
|
71
|
+
signer: Address;
|
72
|
+
deadline: string | number | bigint;
|
73
|
+
signature: Hex;
|
74
|
+
};
|
75
|
+
txOptions?: TxOptions;
|
76
|
+
};
|
77
|
+
export type RegisterIpAndMakeDerivativeResponse = {
|
78
|
+
txHash: string;
|
79
|
+
ipId?: Address;
|
80
|
+
};
|
81
|
+
export type RegisterIpAndAttachPilTermsRequest = {
|
82
|
+
nftContract: Address;
|
83
|
+
tokenId: bigint | string | number;
|
84
|
+
metadata: {
|
85
|
+
metadataURI: string;
|
86
|
+
metadata: string;
|
87
|
+
nftMetadata: string;
|
88
|
+
};
|
89
|
+
pilType: PIL_TYPE;
|
90
|
+
sigMetadata: {
|
91
|
+
signer: Address;
|
92
|
+
deadline: bigint | number | string;
|
93
|
+
signature: Hex;
|
94
|
+
};
|
95
|
+
sigAttach: {
|
96
|
+
signer: Address;
|
97
|
+
deadline: bigint | number | string;
|
98
|
+
signature: Hex;
|
99
|
+
};
|
100
|
+
mintingFee?: string;
|
101
|
+
currency?: Address;
|
102
|
+
commercialRevShare?: number;
|
103
|
+
txOptions?: TxOptions;
|
104
|
+
};
|
105
|
+
export type RegisterIpAndAttachPilTermsResponse = {
|
106
|
+
txHash: string;
|
107
|
+
ipId?: Address;
|
108
|
+
licenseTermsId?: bigint;
|
30
109
|
};
|
31
110
|
//# 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,GAAG,EAAE,MAAM,MAAM,CAAC;
|
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,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;CACvB,CAAC;AAEF,MAAM,MAAM,0CAA0C,GAAG;IACvD,SAAS,EAAE,OAAO,CAAC;IACnB,eAAe,EAAE,MAAM,EAAE,GAAG,MAAM,EAAE,GAAG,MAAM,EAAE,CAAC;IAChD,SAAS,CAAC,EAAE,SAAS,CAAC;CACvB,CAAC;AAEF,MAAM,MAAM,2CAA2C,GAAG;IACxD,MAAM,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF,MAAM,MAAM,yBAAyB,GAAG;IACtC,SAAS,EAAE,OAAO,CAAC;IACnB,WAAW,EAAE,OAAO,EAAE,CAAC;IACvB,eAAe,EAAE,MAAM,EAAE,GAAG,MAAM,EAAE,GAAG,MAAM,EAAE,CAAC;IAChD,eAAe,CAAC,EAAE,OAAO,CAAC;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C,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,9 +6,9 @@ export type LicenseApiResponse = {
|
|
6
6
|
export type License = {
|
7
7
|
id: string;
|
8
8
|
policyId: string;
|
9
|
-
licensorIpId:
|
9
|
+
licensorIpId: Address;
|
10
10
|
};
|
11
|
-
export type
|
11
|
+
export type RegisterNonComSocialRemixingPILRequest = {
|
12
12
|
txOptions?: TxOptions;
|
13
13
|
};
|
14
14
|
export type LicenseTerms = {
|
@@ -16,51 +16,57 @@ 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
|
+
uri: string;
|
31
32
|
};
|
32
|
-
export type LicenseTermsIdResponse =
|
33
|
-
export type
|
34
|
-
licenseTermsId?:
|
33
|
+
export type LicenseTermsIdResponse = bigint;
|
34
|
+
export type RegisterPILResponse = {
|
35
|
+
licenseTermsId?: bigint;
|
35
36
|
txHash?: string;
|
36
37
|
};
|
37
38
|
export type RegisterCommercialUsePILRequest = {
|
38
|
-
mintingFee: string;
|
39
|
-
currency:
|
39
|
+
mintingFee: string | number | bigint;
|
40
|
+
currency: Address;
|
40
41
|
txOptions?: TxOptions;
|
41
42
|
};
|
42
43
|
export type RegisterCommercialRemixPILRequest = {
|
43
44
|
mintingFee: string;
|
44
45
|
commercialRevShare: number;
|
45
|
-
currency:
|
46
|
+
currency: Address;
|
46
47
|
txOptions?: TxOptions;
|
47
48
|
};
|
48
49
|
export type AttachLicenseTermsRequest = {
|
49
|
-
ipId:
|
50
|
-
licenseTermsId: string;
|
51
|
-
licenseTemplate?:
|
50
|
+
ipId: Address;
|
51
|
+
licenseTermsId: string | number | bigint;
|
52
|
+
licenseTemplate?: Address;
|
52
53
|
txOptions?: TxOptions;
|
53
54
|
};
|
54
55
|
export type MintLicenseTokensRequest = {
|
55
|
-
licensorIpId:
|
56
|
-
licenseTermsId: string;
|
57
|
-
licenseTemplate?:
|
58
|
-
amount?: number;
|
59
|
-
receiver?:
|
56
|
+
licensorIpId: Address;
|
57
|
+
licenseTermsId: string | number | bigint;
|
58
|
+
licenseTemplate?: Address;
|
59
|
+
amount?: number | string | bigint;
|
60
|
+
receiver?: Address;
|
60
61
|
txOptions?: TxOptions;
|
61
62
|
};
|
62
63
|
export type MintLicenseTokensResponse = {
|
63
|
-
licenseTokenId?:
|
64
|
+
licenseTokenId?: bigint;
|
64
65
|
txHash?: string;
|
65
66
|
};
|
67
|
+
export declare enum PIL_TYPE {
|
68
|
+
NON_COMMERCIAL_REMIX = 0,
|
69
|
+
COMMERCIAL_USE = 1,
|
70
|
+
COMMERCIAL_REMIX = 2
|
71
|
+
}
|
66
72
|
//# sourceMappingURL=license.d.ts.map
|
@@ -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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iCAAiC,GAAG;IAC9C,UAAU,EAAE,MAAM,CAAC;IACnB,kBAAkB,EAAE,MAAM,CAAC;IAC3B,QAAQ,EAAE,OAAO,CAAC;IAClB,SAAS,CAAC,EAAE,SAAS,CAAC;CACvB,CAAC;AAEF,MAAM,MAAM,yBAAyB,GAAG;IACtC,IAAI,EAAE,OAAO,CAAC;IACd,cAAc,EAAE,MAAM,GAAG,MAAM,GAAG,MAAM,CAAC;IACzC,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,SAAS,CAAC,EAAE,SAAS,CAAC;CACvB,CAAC;AAEF,MAAM,MAAM,wBAAwB,GAAG;IACrC,YAAY,EAAE,OAAO,CAAC;IACtB,cAAc,EAAE,MAAM,GAAG,MAAM,GAAG,MAAM,CAAC;IACzC,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,MAAM,CAAC;IAClC,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,SAAS,CAAC,EAAE,SAAS,CAAC;CACvB,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"}
|
@@ -0,0 +1,21 @@
|
|
1
|
+
import { Hex } from "viem";
|
2
|
+
import { TxOptions } from "../options.js";
|
3
|
+
export type CreateNFTCollectionRequest = {
|
4
|
+
name: string;
|
5
|
+
symbol: string;
|
6
|
+
maxSupply?: number;
|
7
|
+
mintCost?: bigint;
|
8
|
+
mintToken?: Hex;
|
9
|
+
owner?: Hex;
|
10
|
+
txOptions?: TxOptions;
|
11
|
+
};
|
12
|
+
export type CreateNFTCollectionResponse<TReq extends CreateNFTCollectionRequest> = TReq["txOptions"] extends {
|
13
|
+
waitForTransaction: true;
|
14
|
+
} ? {
|
15
|
+
txHash: string;
|
16
|
+
nftContract: Hex;
|
17
|
+
} : {
|
18
|
+
txHash: string;
|
19
|
+
nftContract?: Hex;
|
20
|
+
};
|
21
|
+
//# sourceMappingURL=nftClient.d.ts.map
|
@@ -0,0 +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,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE,GAAG,CAAC;IAChB,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,42 +17,56 @@ export type RoyaltyContext = {
|
|
17
17
|
parentAncestorsRoyalties2: number[];
|
18
18
|
};
|
19
19
|
export type CollectRoyaltyTokensRequest = {
|
20
|
-
|
21
|
-
|
20
|
+
parentIpId: Address;
|
21
|
+
royaltyVaultIpId: Address;
|
22
22
|
txOptions?: TxOptions;
|
23
23
|
};
|
24
24
|
export type CollectRoyaltyTokensResponse = {
|
25
25
|
txHash: string;
|
26
|
+
royaltyTokensCollected?: bigint;
|
26
27
|
};
|
27
28
|
export type RoyaltyData = [
|
28
29
|
isUnlinkableToParents: boolean,
|
29
|
-
ipRoyaltyVault:
|
30
|
+
ipRoyaltyVault: Address,
|
30
31
|
royaltyStack: bigint,
|
31
|
-
ancestorsAddresses:
|
32
|
+
ancestorsAddresses: Address,
|
32
33
|
ancestorsRoyalties: bigint[]
|
33
34
|
];
|
34
35
|
export type ClaimableRevenueRequest = {
|
35
|
-
|
36
|
-
|
37
|
-
|
36
|
+
royaltyVaultIpId: Address;
|
37
|
+
account: Address;
|
38
|
+
snapshotId: string | number | bigint;
|
39
|
+
token: Address;
|
40
|
+
};
|
41
|
+
export type ClaimableRevenueResponse = bigint;
|
42
|
+
export type PayRoyaltyOnBehalfRequest = {
|
43
|
+
receiverIpId: Address;
|
44
|
+
payerIpId: Address;
|
45
|
+
token: Address;
|
46
|
+
amount: string | number | bigint;
|
38
47
|
txOptions?: TxOptions;
|
39
48
|
};
|
40
|
-
export type
|
41
|
-
claimableRevenueAmount: bigint;
|
49
|
+
export type PayRoyaltyOnBehalfResponse = {
|
42
50
|
txHash: string;
|
43
51
|
};
|
44
|
-
export type
|
45
|
-
|
46
|
-
payerIpId: Hex;
|
47
|
-
token: Hex;
|
48
|
-
amount: bigint;
|
52
|
+
export type SnapshotRequest = {
|
53
|
+
royaltyVaultIpId: Address;
|
49
54
|
txOptions?: TxOptions;
|
50
55
|
};
|
51
|
-
export type
|
56
|
+
export type ClaimRevenueRequest = {
|
57
|
+
snapshotIds: string[] | number[] | bigint[];
|
58
|
+
token: Address;
|
59
|
+
royaltyVaultIpId: Address;
|
60
|
+
account?: Address;
|
61
|
+
txOptions?: TxOptions;
|
62
|
+
};
|
63
|
+
export type ClaimRevenueResponse = {
|
52
64
|
txHash: string;
|
65
|
+
claimableToken?: bigint;
|
53
66
|
};
|
54
|
-
export type
|
67
|
+
export type SnapshotResponse = {
|
55
68
|
txHash: string;
|
56
|
-
|
69
|
+
snapshotId?: bigint;
|
57
70
|
};
|
71
|
+
export type RoyaltyVaultAddress = Address;
|
58
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,mBAAmB,EAAE,MAAM,EAAE,CAAC;IAC9B,gBAAgB,EAAE,MAAM,EAAE,CAAC;IAC3B,gBAAgB,EAAE,MAAM,EAAE,CAAC;IAC3B,yBAAyB,EAAE,MAAM,EAAE,CAAC;IACpC,yBAAyB,EAAE,MAAM,EAAE,CAAC;CACrC,CAAC;AAEF,MAAM,MAAM,2BAA2B,GAAG;IACxC,UAAU,EAAE,OAAO,CAAC;IACpB,gBAAgB,EAAE,OAAO,CAAC;IAC1B,SAAS,CAAC,EAAE,SAAS,CAAC;CACvB,CAAC;AAEF,MAAM,MAAM,4BAA4B,GAAG;IACzC,MAAM,EAAE,MAAM,CAAC;IACf,sBAAsB,CAAC,EAAE,MAAM,CAAC;CACjC,CAAC;AAEF,MAAM,MAAM,WAAW,GAAG;IACxB,qBAAqB,EAAE,OAAO;IAC9B,cAAc,EAAE,OAAO;IACvB,YAAY,EAAE,M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