@story-protocol/core-sdk 1.3.0-beta.1 → 1.3.0-beta.2
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/abi/generated.d.ts +5 -4
- package/dist/declarations/src/abi/generated.d.ts.map +1 -1
- package/dist/declarations/src/client.d.ts +5 -0
- package/dist/declarations/src/client.d.ts.map +1 -1
- package/dist/declarations/src/constants/common.d.ts +2 -0
- package/dist/declarations/src/constants/common.d.ts.map +1 -1
- package/dist/declarations/src/index.d.ts +1 -1
- package/dist/declarations/src/index.d.ts.map +1 -1
- package/dist/declarations/src/resources/ipAsset.d.ts +5 -1
- package/dist/declarations/src/resources/ipAsset.d.ts.map +1 -1
- package/dist/declarations/src/resources/license.d.ts +4 -1
- package/dist/declarations/src/resources/license.d.ts.map +1 -1
- package/dist/declarations/src/resources/royalty.d.ts +8 -2
- package/dist/declarations/src/resources/royalty.d.ts.map +1 -1
- package/dist/declarations/src/resources/wip.d.ts +29 -0
- package/dist/declarations/src/resources/wip.d.ts.map +1 -0
- package/dist/declarations/src/types/common.d.ts +7 -3
- package/dist/declarations/src/types/common.d.ts.map +1 -1
- package/dist/declarations/src/types/config.d.ts +1 -1
- package/dist/declarations/src/types/config.d.ts.map +1 -1
- package/dist/declarations/src/types/options.d.ts +3 -3
- package/dist/declarations/src/types/options.d.ts.map +1 -1
- package/dist/declarations/src/types/resources/group.d.ts +3 -3
- package/dist/declarations/src/types/resources/group.d.ts.map +1 -1
- package/dist/declarations/src/types/resources/ipAsset.d.ts +34 -21
- package/dist/declarations/src/types/resources/ipAsset.d.ts.map +1 -1
- package/dist/declarations/src/types/resources/license.d.ts +6 -4
- package/dist/declarations/src/types/resources/license.d.ts.map +1 -1
- package/dist/declarations/src/types/resources/royalty.d.ts +67 -6
- package/dist/declarations/src/types/resources/royalty.d.ts.map +1 -1
- package/dist/declarations/src/types/resources/wip.d.ts +16 -0
- package/dist/declarations/src/types/resources/wip.d.ts.map +1 -0
- package/dist/declarations/src/types/utils/txOptions.d.ts +13 -0
- package/dist/declarations/src/types/utils/txOptions.d.ts.map +1 -0
- package/dist/declarations/src/types/utils/wip.d.ts +87 -0
- package/dist/declarations/src/types/utils/wip.d.ts.map +1 -0
- package/dist/declarations/src/utils/chain.d.ts +4 -4
- package/dist/declarations/src/utils/chain.d.ts.map +1 -1
- package/dist/declarations/src/utils/sign.d.ts.map +1 -1
- package/dist/story-protocol-core-sdk.cjs.dev.js +2780 -939
- package/dist/story-protocol-core-sdk.cjs.prod.js +2780 -939
- package/dist/story-protocol-core-sdk.esm.js +2781 -940
- package/package.json +2 -2
@@ -1,6 +1,8 @@
|
|
1
|
-
import { Address } from "viem";
|
2
|
-
import { TxOptions } from "../options.js";
|
3
|
-
import { EncodedTxData } from "../../abi/generated.js";
|
1
|
+
import { Address, Hash, TransactionReceipt } from "viem";
|
2
|
+
import { TxOptions, WithTxOptions } from "../options.js";
|
3
|
+
import { EncodedTxData, IpAccountImplClient } from "../../abi/generated.js";
|
4
|
+
import { WithWipOptions } from "../utils/wip.js";
|
5
|
+
import { TokenAmountInput } from "../common.js";
|
4
6
|
export type RoyaltyPolicyApiResponse = {
|
5
7
|
data: RoyaltyPolicy;
|
6
8
|
};
|
@@ -34,11 +36,11 @@ export type PayRoyaltyOnBehalfRequest = {
|
|
34
36
|
receiverIpId: Address;
|
35
37
|
payerIpId: Address;
|
36
38
|
token: Address;
|
37
|
-
amount:
|
38
|
-
|
39
|
-
};
|
39
|
+
amount: TokenAmountInput;
|
40
|
+
} & WithTxOptions & WithWipOptions;
|
40
41
|
export type PayRoyaltyOnBehalfResponse = {
|
41
42
|
txHash?: string;
|
43
|
+
receipt?: TransactionReceipt;
|
42
44
|
encodedTxData?: EncodedTxData;
|
43
45
|
};
|
44
46
|
export type SnapshotRequest = {
|
@@ -118,5 +120,64 @@ export type SnapshotAndClaimBySnapshotBatchResponse = {
|
|
118
120
|
snapshotId?: bigint;
|
119
121
|
amountsClaimed?: bigint;
|
120
122
|
};
|
123
|
+
/**
|
124
|
+
* Claims all revenue from the child IPs of an ancestor IP, then transfer
|
125
|
+
* all claimed tokens to the wallet if the wallet owns the IP or is the claimer.
|
126
|
+
* If claimed token is WIP, it will also be converted back to IP.
|
127
|
+
*/
|
128
|
+
export type ClaimAllRevenueRequest = {
|
129
|
+
/** The address of the ancestor IP from which the revenue is being claimed. */
|
130
|
+
ancestorIpId: Address;
|
131
|
+
/**
|
132
|
+
* The address of the claimer of the currency (revenue) tokens.
|
133
|
+
*
|
134
|
+
* This is normally the ipId of the ancestor IP if the IP has all royalty tokens.
|
135
|
+
* Otherwise, this would be the address that is holding the ancestor IP royalty tokens.
|
136
|
+
*/
|
137
|
+
claimer: Address;
|
138
|
+
/** The addresses of the child IPs from which royalties are derived. */
|
139
|
+
childIpIds: Address[];
|
140
|
+
/**
|
141
|
+
* The addresses of the royalty policies, where
|
142
|
+
* royaltyPolicies[i] governs the royalty flow for childIpIds[i].
|
143
|
+
*/
|
144
|
+
royaltyPolicies: Address[];
|
145
|
+
/** The addresses of the currency tokens in which royalties will be claimed */
|
146
|
+
currencyTokens: Address[];
|
147
|
+
claimOptions?: {
|
148
|
+
/**
|
149
|
+
* When enabled, all claimed tokens on the claimer are transferred to the
|
150
|
+
* wallet address if the wallet owns the IP. If the wallet is the claimer
|
151
|
+
* or if the claimer is not an IP owned by the wallet, then the tokens
|
152
|
+
* will not be transferred.
|
153
|
+
* Set to false to disable auto transferring claimed tokens from the claimer.
|
154
|
+
*
|
155
|
+
* @default true
|
156
|
+
*/
|
157
|
+
autoTransferAllClaimedTokensFromIp?: boolean;
|
158
|
+
/**
|
159
|
+
* By default all claimed WIP tokens are converted back to IP after
|
160
|
+
* they are transferred.
|
161
|
+
* Set this to false to disable this behavior.
|
162
|
+
*
|
163
|
+
* @default false
|
164
|
+
*/
|
165
|
+
autoUnwrapIpTokens?: boolean;
|
166
|
+
};
|
167
|
+
};
|
168
|
+
export type ClaimedToken = {
|
169
|
+
token: Address;
|
170
|
+
amount: bigint;
|
171
|
+
};
|
172
|
+
export type ClaimAllRevenueResponse = {
|
173
|
+
txHashes: Hash[];
|
174
|
+
receipt?: TransactionReceipt;
|
175
|
+
claimedTokens?: ClaimedToken[];
|
176
|
+
};
|
177
|
+
export type TransferClaimedTokensFromIpToWalletParams = {
|
178
|
+
ipAccount: IpAccountImplClient;
|
179
|
+
skipUnwrapIp: boolean;
|
180
|
+
claimedTokens: ClaimedToken[];
|
181
|
+
};
|
121
182
|
export {};
|
122
183
|
//# 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,OAAO,EAAE,MAAM,MAAM,CAAC;
|
1
|
+
{"version":3,"file":"royalty.d.ts","sourceRoot":"../../../../../src/types/resources","sources":["royalty.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,kBAAkB,EAAE,MAAM,MAAM,CAAC;AAEzD,OAAO,EAAE,SAAS,EAAE,aAAa,EAAE,sBAAmB;AACtD,OAAO,EAAE,aAAa,EAAE,mBAAmB,EAAE,+BAA4B;AACzE,OAAO,EAAE,cAAc,EAAE,wBAAqB;AAC9C,OAAO,EAAE,gBAAgB,EAAE,qBAAkB;AAE7C,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;IAC3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CAAC,EAAE,OAAO,CAAC;QAE7C;;;;;;WAMG;QACH,kBAAkB,CAAC,EAAE,OAAO,CAAC;KAC9B,CAAC;CACH,CAAC;AAEF,MAAM,MAAM,YAAY,GAAG;IACzB,KAAK,EAAE,OAAO,CAAC;IACf,MAAM,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF,MAAM,MAAM,uBAAuB,GAAG;IACpC,QAAQ,EAAE,IAAI,EAAE,CAAC;IACjB,OAAO,CAAC,EAAE,kBAAkB,CAAC;IAC7B,aAAa,CAAC,EAAE,YAAY,EAAE,CAAC;CAChC,CAAC;AAEF,MAAM,MAAM,yCAAyC,GAAG;IACtD,SAAS,EAAE,mBAAmB,CAAC;IAC/B,YAAY,EAAE,OAAO,CAAC;IACtB,aAAa,EAAE,YAAY,EAAE,CAAC;CAC/B,CAAC"}
|
@@ -0,0 +1,16 @@
|
|
1
|
+
import { Address } from "viem";
|
2
|
+
import { TokenAmountInput } from "../common.js";
|
3
|
+
import { WithTxOptions } from "../options.js";
|
4
|
+
export type ApproveRequest = WithTxOptions & {
|
5
|
+
/** The address that will use the WIP tokens */
|
6
|
+
spender: Address;
|
7
|
+
/** The amount of WIP tokens to approve. */
|
8
|
+
amount: TokenAmountInput;
|
9
|
+
};
|
10
|
+
export type DepositRequest = WithTxOptions & {
|
11
|
+
amount: TokenAmountInput;
|
12
|
+
};
|
13
|
+
export type WithdrawRequest = WithTxOptions & {
|
14
|
+
amount: TokenAmountInput;
|
15
|
+
};
|
16
|
+
//# sourceMappingURL=wip.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"wip.d.ts","sourceRoot":"../../../../../src/types/resources","sources":["wip.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,MAAM,CAAC;AAE/B,OAAO,EAAE,gBAAgB,EAAE,qBAAkB;AAC7C,OAAO,EAAE,aAAa,EAAE,sBAAmB;AAE3C,MAAM,MAAM,cAAc,GAAG,aAAa,GAAG;IAC3C,+CAA+C;IAC/C,OAAO,EAAE,OAAO,CAAC;IACjB,4CAA4C;IAC5C,MAAM,EAAE,gBAAgB,CAAC;CAC1B,CAAC;AAEF,MAAM,MAAM,cAAc,GAAG,aAAa,GAAG;IAC3C,MAAM,EAAE,gBAAgB,CAAC;CAC1B,CAAC;AAEF,MAAM,MAAM,eAAe,GAAG,aAAa,GAAG;IAC5C,MAAM,EAAE,gBAAgB,CAAC;CAC1B,CAAC"}
|
@@ -0,0 +1,13 @@
|
|
1
|
+
import { Hex, PublicClient, TransactionReceipt } from "viem";
|
2
|
+
import { TxOptions } from "../options.js";
|
3
|
+
export type HandleTxOptionsParams = {
|
4
|
+
txHash: Hex;
|
5
|
+
txOptions?: TxOptions;
|
6
|
+
rpcClient: PublicClient;
|
7
|
+
};
|
8
|
+
export type HandleTxOptionsResponse = {
|
9
|
+
txHash: Hex;
|
10
|
+
/** Transaction receipt, only available if waitForTransaction is set to true */
|
11
|
+
receipt?: TransactionReceipt;
|
12
|
+
};
|
13
|
+
//# sourceMappingURL=txOptions.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"txOptions.d.ts","sourceRoot":"../../../../../src/types/utils","sources":["txOptions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,YAAY,EAAE,kBAAkB,EAAE,MAAM,MAAM,CAAC;AAE7D,OAAO,EAAE,SAAS,EAAE,sBAAmB;AAEvC,MAAM,MAAM,qBAAqB,GAAG;IAClC,MAAM,EAAE,GAAG,CAAC;IACZ,SAAS,CAAC,EAAE,SAAS,CAAC;IACtB,SAAS,EAAE,YAAY,CAAC;CACzB,CAAC;AAEF,MAAM,MAAM,uBAAuB,GAAG;IACpC,MAAM,EAAE,GAAG,CAAC;IAEZ,+EAA+E;IAC/E,OAAO,CAAC,EAAE,kBAAkB,CAAC;CAC9B,CAAC"}
|
@@ -0,0 +1,87 @@
|
|
1
|
+
import { Address, Hash, PublicClient } from "viem";
|
2
|
+
import { Multicall3Aggregate3Request, Multicall3Client, Erc20TokenClient, EncodedTxData, SimpleWalletClient, PiLicenseTemplateClient, LicensingModuleClient } from "../../abi/generated.js";
|
3
|
+
import { TxOptions } from "../options.js";
|
4
|
+
/**
|
5
|
+
* Options to override the default behavior of the auto wrapping IP
|
6
|
+
* and auto approve logic.
|
7
|
+
*/
|
8
|
+
export type WithWipOptions = {
|
9
|
+
/** options to configure WIP behavior */
|
10
|
+
wipOptions?: {
|
11
|
+
/**
|
12
|
+
* Use multicall to batch the WIP calls into one transaction when possible.
|
13
|
+
*
|
14
|
+
* @default true
|
15
|
+
*/
|
16
|
+
useMulticallWhenPossible?: boolean;
|
17
|
+
/**
|
18
|
+
* By default IP is converted to WIP if the current WIP
|
19
|
+
* balance does not cover the fees.
|
20
|
+
* Set this to `false` to disable this behavior.
|
21
|
+
*
|
22
|
+
* @default true
|
23
|
+
*/
|
24
|
+
enableAutoWrapIp?: boolean;
|
25
|
+
/**
|
26
|
+
* Automatically approve WIP usage when WIP is needed but current allowance
|
27
|
+
* is not sufficient.
|
28
|
+
* Set this to `false` to disable this behavior.
|
29
|
+
*
|
30
|
+
* @default true
|
31
|
+
*/
|
32
|
+
enableAutoApprove?: boolean;
|
33
|
+
};
|
34
|
+
};
|
35
|
+
export type Multicall3ValueCall = Multicall3Aggregate3Request["calls"][0] & {
|
36
|
+
value: bigint;
|
37
|
+
};
|
38
|
+
export type WipSpender = {
|
39
|
+
address: Address;
|
40
|
+
/**
|
41
|
+
* Amount that the address will spend in WIP.
|
42
|
+
* If not provided, then unlimited amount is assumed.
|
43
|
+
*/
|
44
|
+
amount?: bigint;
|
45
|
+
};
|
46
|
+
export type WipApprovalCall = {
|
47
|
+
spenders: WipSpender[];
|
48
|
+
client: Erc20TokenClient;
|
49
|
+
rpcClient: PublicClient;
|
50
|
+
/** owner is the address calling the approval */
|
51
|
+
owner: Address;
|
52
|
+
/** when true, will return an array of {@link Multicall3ValueCall} */
|
53
|
+
useMultiCall: boolean;
|
54
|
+
};
|
55
|
+
export type ContractCallWithWipFees = WithWipOptions & {
|
56
|
+
totalFees: bigint;
|
57
|
+
multicall3Client: Multicall3Client;
|
58
|
+
wipClient: Erc20TokenClient;
|
59
|
+
/** all possible spenders of the wip */
|
60
|
+
wipSpenders: WipSpender[];
|
61
|
+
contractCall: () => Promise<Hash>;
|
62
|
+
encodedTxs: EncodedTxData[];
|
63
|
+
rpcClient: PublicClient;
|
64
|
+
wallet: SimpleWalletClient;
|
65
|
+
sender: Address;
|
66
|
+
txOptions?: TxOptions;
|
67
|
+
};
|
68
|
+
export type MulticallWithWrapIp = WithWipOptions & {
|
69
|
+
calls: Multicall3ValueCall[];
|
70
|
+
ipAmountToWrap: bigint;
|
71
|
+
contractCall: () => Promise<Hash>;
|
72
|
+
wipSpenders: WipSpender[];
|
73
|
+
multicall3Client: Multicall3Client;
|
74
|
+
wipClient: Erc20TokenClient;
|
75
|
+
rpcClient: PublicClient;
|
76
|
+
wallet: SimpleWalletClient;
|
77
|
+
};
|
78
|
+
export type CalculateDerivativeMintFeeParams = {
|
79
|
+
multicall3Client: Multicall3Client;
|
80
|
+
licenseTemplateClient: PiLicenseTemplateClient;
|
81
|
+
licensingModuleClient: LicensingModuleClient;
|
82
|
+
parentIpId: Address;
|
83
|
+
licenseTermsId: bigint;
|
84
|
+
receiver: Address;
|
85
|
+
amount: bigint;
|
86
|
+
};
|
87
|
+
//# sourceMappingURL=wip.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"wip.d.ts","sourceRoot":"../../../../../src/types/utils","sources":["wip.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,YAAY,EAAE,MAAM,MAAM,CAAC;AAEnD,OAAO,EACL,2BAA2B,EAC3B,gBAAgB,EAChB,gBAAgB,EAChB,aAAa,EACb,kBAAkB,EAClB,uBAAuB,EACvB,qBAAqB,EACtB,+BAA4B;AAC7B,OAAO,EAAE,SAAS,EAAE,sBAAm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,KAAK,EAAE,mBAAmB,EAAE,CAAC;IAC7B,cAAc,EAAE,MAAM,CAAC;IACvB,YAAY,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;IAClC,WAAW,EAAE,UAAU,EAAE,CAAC;IAC1B,gBAAgB,EAAE,gBAAgB,CAAC;IACnC,SAAS,EAAE,gBAAgB,CAAC;IAC5B,SAAS,EAAE,YAAY,CAAC;IACxB,MAAM,EAAE,kBAAkB,CAAC;CAC5B,CAAC;AAEF,MAAM,MAAM,gCAAgC,GAAG;IAC7C,gBAAgB,EAAE,gBAAgB,CAAC;IACnC,qBAAqB,EAAE,uBAAuB,CAAC;IAC/C,qBAAqB,EAAE,qBAAqB,CAAC;IAC7C,UAAU,EAAE,OAAO,CAAC;IACpB,cAAc,EAAE,MAAM,CAAC;IACvB,QAAQ,EAAE,OAAO,CAAC;IAClB,MAAM,EAAE,MAAM,CAAC;CAChB,CAAC"}
|
@@ -1,8 +1,8 @@
|
|
1
|
-
export declare const
|
1
|
+
export declare const aeneid: {
|
2
2
|
blockExplorers: {
|
3
3
|
readonly default: {
|
4
4
|
readonly name: "Explorer";
|
5
|
-
readonly url: "https://
|
5
|
+
readonly url: "https://aeneid.storyscan.xyz/";
|
6
6
|
};
|
7
7
|
};
|
8
8
|
contracts: {
|
@@ -12,7 +12,7 @@ export declare const homer: {
|
|
12
12
|
};
|
13
13
|
};
|
14
14
|
id: 1315;
|
15
|
-
name: "
|
15
|
+
name: "aeneid";
|
16
16
|
nativeCurrency: {
|
17
17
|
readonly name: "IP";
|
18
18
|
readonly symbol: "IP";
|
@@ -20,7 +20,7 @@ export declare const homer: {
|
|
20
20
|
};
|
21
21
|
rpcUrls: {
|
22
22
|
readonly default: {
|
23
|
-
readonly http: readonly ["https://
|
23
|
+
readonly http: readonly ["https://aeneid.storyrpc.io/"];
|
24
24
|
};
|
25
25
|
};
|
26
26
|
sourceId?: number | undefined;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"chain.d.ts","sourceRoot":"../../../../src/utils","sources":["chain.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,
|
1
|
+
{"version":3,"file":"chain.d.ts","sourceRoot":"../../../../src/utils","sources":["chain.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAsBjB,CAAC"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"sign.d.ts","sourceRoot":"../../../../src/utils","sources":["sign.ts"],"names":[],"mappings":"AAWA,OAAO,EACL,0BAA0B,EAC1B,gBAAgB,EAChB,iBAAiB,EAClB,yCAAsC;AAEvC;;;;;;;;;;GAUG;AACH,eAAO,MAAM,sBAAsB,UAC1B,0BAA0B,KAChC,QAAQ,iBAAiB,
|
1
|
+
{"version":3,"file":"sign.d.ts","sourceRoot":"../../../../src/utils","sources":["sign.ts"],"names":[],"mappings":"AAWA,OAAO,EACL,0BAA0B,EAC1B,gBAAgB,EAChB,iBAAiB,EAClB,yCAAsC;AAEvC;;;;;;;;;;GAUG;AACH,eAAO,MAAM,sBAAsB,UAC1B,0BAA0B,KAChC,QAAQ,iBAAiB,CAqC3B,CAAC;AAEF,eAAO,MAAM,WAAW,kBAAmB,MAAM,aAAa,MAAM,GAAG,MAAM,GAAG,MAAM,KAAG,MAKxF,CAAC;AAEF;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,YAAY,6EAQtB,gBAAgB,KAAG,QAAQ,iBAAiB,CAkD9C,CAAC"}
|