@story-protocol/core-sdk 1.3.0-beta.3 → 1.3.0-rc.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 +3649 -3815
- package/dist/declarations/src/abi/generated.d.ts.map +1 -1
- package/dist/declarations/src/index.d.ts +8 -3
- package/dist/declarations/src/index.d.ts.map +1 -1
- package/dist/declarations/src/resources/dispute.d.ts +34 -18
- package/dist/declarations/src/resources/dispute.d.ts.map +1 -1
- package/dist/declarations/src/resources/group.d.ts +9 -98
- package/dist/declarations/src/resources/group.d.ts.map +1 -1
- package/dist/declarations/src/resources/ipAccount.d.ts +17 -4
- package/dist/declarations/src/resources/ipAccount.d.ts.map +1 -1
- package/dist/declarations/src/resources/ipAsset.d.ts +32 -360
- package/dist/declarations/src/resources/ipAsset.d.ts.map +1 -1
- package/dist/declarations/src/resources/license.d.ts +0 -17
- package/dist/declarations/src/resources/license.d.ts.map +1 -1
- package/dist/declarations/src/resources/nftClient.d.ts +9 -1
- package/dist/declarations/src/resources/nftClient.d.ts.map +1 -1
- package/dist/declarations/src/resources/royalty.d.ts +22 -13
- package/dist/declarations/src/resources/royalty.d.ts.map +1 -1
- package/dist/declarations/src/resources/wip.d.ts +14 -8
- package/dist/declarations/src/resources/wip.d.ts.map +1 -1
- package/dist/declarations/src/types/common.d.ts +20 -2
- package/dist/declarations/src/types/common.d.ts.map +1 -1
- package/dist/declarations/src/types/options.d.ts +67 -1
- package/dist/declarations/src/types/options.d.ts.map +1 -1
- package/dist/declarations/src/types/resources/dispute.d.ts +66 -4
- package/dist/declarations/src/types/resources/dispute.d.ts.map +1 -1
- package/dist/declarations/src/types/resources/group.d.ts +30 -5
- package/dist/declarations/src/types/resources/group.d.ts.map +1 -1
- package/dist/declarations/src/types/resources/ipAccount.d.ts +22 -2
- package/dist/declarations/src/types/resources/ipAccount.d.ts.map +1 -1
- package/dist/declarations/src/types/resources/ipAsset.d.ts +116 -116
- package/dist/declarations/src/types/resources/ipAsset.d.ts.map +1 -1
- package/dist/declarations/src/types/resources/ipMetadata.d.ts +274 -0
- package/dist/declarations/src/types/resources/ipMetadata.d.ts.map +1 -0
- package/dist/declarations/src/types/resources/license.d.ts +6 -8
- package/dist/declarations/src/types/resources/license.d.ts.map +1 -1
- package/dist/declarations/src/types/resources/royalty.d.ts +40 -119
- package/dist/declarations/src/types/resources/royalty.d.ts.map +1 -1
- package/dist/declarations/src/types/resources/wip.d.ts +7 -0
- package/dist/declarations/src/types/resources/wip.d.ts.map +1 -1
- package/dist/declarations/src/utils/chain.d.ts +2 -2
- package/dist/declarations/src/utils/getIpMetadataForWorkflow.d.ts +4 -0
- package/dist/declarations/src/utils/getIpMetadataForWorkflow.d.ts.map +1 -1
- package/dist/story-protocol-core-sdk.cjs.dev.js +2415 -1717
- package/dist/story-protocol-core-sdk.cjs.prod.js +2415 -1717
- package/dist/story-protocol-core-sdk.esm.js +2412 -1719
- package/package.json +1 -1
- package/dist/declarations/src/types/utils/txOptions.d.ts +0 -13
- package/dist/declarations/src/types/utils/txOptions.d.ts.map +0 -1
- package/dist/declarations/src/types/utils/wip.d.ts +0 -88
- package/dist/declarations/src/types/utils/wip.d.ts.map +0 -1
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"ipMetadata.d.ts","sourceRoot":"../../../../../src/types/resources","sources":["ipMetadata.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAC;AAErC,MAAM,MAAM,UAAU,GAAG;IACvB;;;;OAIG;IACH,gBAAgB,EAAE,MAAM,CAAC;IACzB;;OAEG;IACH,iBAAiB,EAAE,IAAI,CAAC;CACzB,CAAC;AAEF;;;;;;;GAOG;AACH,MAAM,MAAM,UAAU,GAAG;IACvB,oDAAoD;IACpD,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,0DAA0D;IAC1D,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;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AC9C,WAAW,gBAAgB;IAC3B,8CAA8C;IAC9C,UAAU,eAAe;IACzB,uDAAuD;IACvD,gBAAgB,qBAAqB;IACrC,qDAAqD;IACrD,eAAe,oBAAoB;IACnC,sCAAsC;IACtC,UAAU,eAAe;IACzB,gEAAgE;IAChE,QAAQ,aAAa;CACtB;AAED;;GAEG;AACH,oBAAY,cAAc;IACxB,uCAAuC;IACvC,UAAU,eAAe;IACzB,8CAA8C;IAC9C,cAAc,mBAAmB;IACjC,qDAAqD;IACrD,cAAc,mBAAmB;IACjC,0CAA0C;IAC1C,aAAa,kBAAkB;IAC/B,+CAA+C;IAC/C,QAAQ,aAAa;IACrB,2CAA2C;IAC3C,UAAU,eAAe;IACzB,6CAA6C;IAC7C,OAAO,YAAY;IACnB,wCAAwC;IACxC,QAAQ,aAAa;IACrB,uDAAuD;IACvD,YAAY,iBAAiB;IAC7B,yCAAyC;IACzC,QAAQ,aAAa;IACrB,0CAA0C;IAC1C,QAAQ,aAAa;IACrB,sDAAsD;IACtD,UAAU,eAAe;IACzB,mDAAmD;IACnD,YAAY,iBAAiB;IAC7B,gEAAgE;IAChE,QAAQ,aAAa;IACrB,gDAAgD;IAChD,UAAU,eAAe;IACzB,wDAAwD;IACxD,QAAQ,aAAa;IACrB,8CAA8C;IAC9C,kBAAkB,uBAAuB;IACzC,0DAA0D;IAC1D,UAAU,eAAe;IACzB,kDAAkD;IAClD,UAAU,eAAe;IACzB,6CAA6C;IAC7C,SAAS,cAAc;CACxB"}
|
@@ -1,8 +1,7 @@
|
|
1
1
|
import { Address, TransactionReceipt } from "viem";
|
2
|
-
import { WithTxOptions, TxOptions } from "../options.js";
|
2
|
+
import { WithTxOptions, TxOptions, WithWipOptions } from "../options.js";
|
3
3
|
import { EncodedTxData } from "../../abi/generated.js";
|
4
4
|
import { LicensingConfig } from "../common.js";
|
5
|
-
import { WithWipOptions } from "../utils/wip.js";
|
6
5
|
export type LicenseApiResponse = {
|
7
6
|
data: License;
|
8
7
|
};
|
@@ -104,16 +103,15 @@ export type PredictMintingLicenseFeeRequest = {
|
|
104
103
|
receiver?: Address;
|
105
104
|
txOptions?: TxOptions;
|
106
105
|
};
|
107
|
-
export type InnerLicensingConfig = {
|
108
|
-
mintingFee: bigint;
|
109
|
-
commercialRevShare: number;
|
110
|
-
expectMinimumGroupRewardShare: number;
|
111
|
-
} & LicensingConfig;
|
112
106
|
export type SetLicensingConfigRequest = {
|
107
|
+
/** The address of the IP for which the configuration is being set. */
|
113
108
|
ipId: Address;
|
109
|
+
/** The ID of the license terms within the license template. */
|
114
110
|
licenseTermsId: string | number | bigint;
|
115
|
-
|
111
|
+
/** The address of the license template used. */
|
116
112
|
licenseTemplate: Address;
|
113
|
+
/** The licensing configuration for the license. */
|
114
|
+
licensingConfig: LicensingConfig;
|
117
115
|
txOptions?: TxOptions;
|
118
116
|
};
|
119
117
|
export type SetLicensingConfigResponse = {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"license.d.ts","sourceRoot":"../../../../../src/types/resources","sources":["license.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,kBAAkB,EAAE,MAAM,MAAM,CAAC;AAEnD,OAAO,EAAE,aAAa,EAAE,SAAS,EAAE,sBAAmB;
|
1
|
+
{"version":3,"file":"license.d.ts","sourceRoot":"../../../../../src/types/resources","sources":["license.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,kBAAkB,EAAE,MAAM,MAAM,CAAC;AAEnD,OAAO,EAAE,aAAa,EAAE,SAAS,EAAE,cAAc,EAAE,sBAAmB;AACtE,OAAO,EAAE,aAAa,EAAE,+BAA4B;AACpD,OAAO,EAAE,eAAe,EAAE,qBAAkB;AAE5C,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,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../abi/generated.js";
|
4
|
-
import {
|
2
|
+
import { WithTxOptions, WithWipOptions } from "../options.js";
|
3
|
+
import { EncodedTxData, IpAccountImplClient, IpRoyaltyVaultImplRevenueTokenClaimedEvent } from "../../abi/generated.js";
|
4
|
+
import { WithERC20Options } from "../options.js";
|
5
5
|
import { TokenAmountInput } from "../common.js";
|
6
|
-
export type RoyaltyPolicyApiResponse = {
|
7
|
-
data: RoyaltyPolicy;
|
8
|
-
};
|
9
|
-
export type RoyaltyPolicy = {
|
10
|
-
id: Address;
|
11
|
-
targetAncestors: string[];
|
12
|
-
targetRoyaltyAmount: string[];
|
13
|
-
};
|
14
|
-
export type RoyaltyContext = {
|
15
|
-
targetAncestors: string[];
|
16
|
-
targetRoyaltyAmount: number[];
|
17
|
-
parentAncestors1: string[];
|
18
|
-
parentAncestors2: string[];
|
19
|
-
parentAncestorsRoyalties1: number[];
|
20
|
-
parentAncestorsRoyalties2: number[];
|
21
|
-
};
|
22
|
-
export type RoyaltyData = [
|
23
|
-
isUnlinkableToParents: boolean,
|
24
|
-
ipRoyaltyVault: Address,
|
25
|
-
royaltyStack: bigint,
|
26
|
-
ancestorsAddresses: Address,
|
27
|
-
ancestorsRoyalties: bigint[]
|
28
|
-
];
|
29
6
|
export type ClaimableRevenueRequest = {
|
30
7
|
royaltyVaultIpId: Address;
|
31
8
|
claimer: Address;
|
32
9
|
token: Address;
|
33
10
|
};
|
34
11
|
export type ClaimableRevenueResponse = bigint;
|
35
|
-
export type PayRoyaltyOnBehalfRequest = {
|
12
|
+
export type PayRoyaltyOnBehalfRequest = WithTxOptions & WithERC20Options & WithWipOptions & {
|
13
|
+
/** The IP ID that receives the royalties. */
|
36
14
|
receiverIpId: Address;
|
15
|
+
/** The IP ID that pays the royalties. */
|
37
16
|
payerIpId: Address;
|
17
|
+
/** The token to use to pay the royalties. */
|
38
18
|
token: Address;
|
19
|
+
/** The amount to pay. */
|
39
20
|
amount: TokenAmountInput;
|
40
|
-
}
|
21
|
+
};
|
41
22
|
export type PayRoyaltyOnBehalfResponse = {
|
42
23
|
txHash?: string;
|
43
24
|
receipt?: TransactionReceipt;
|
44
25
|
encodedTxData?: EncodedTxData;
|
45
26
|
};
|
46
|
-
export type
|
47
|
-
royaltyVaultIpId: Address;
|
48
|
-
txOptions?: TxOptions;
|
49
|
-
};
|
50
|
-
export type ClaimRevenueRequest = {
|
51
|
-
snapshotIds: string[] | number[] | bigint[];
|
52
|
-
token: Address;
|
53
|
-
royaltyVaultIpId: Address;
|
54
|
-
account?: Address;
|
55
|
-
txOptions?: TxOptions;
|
56
|
-
};
|
57
|
-
export type ClaimRevenueResponse = {
|
58
|
-
txHash?: string;
|
59
|
-
encodedTxData?: EncodedTxData;
|
60
|
-
claimableToken?: bigint;
|
61
|
-
};
|
62
|
-
export type SnapshotResponse = {
|
63
|
-
txHash?: string;
|
64
|
-
encodedTxData?: EncodedTxData;
|
65
|
-
snapshotId?: bigint;
|
66
|
-
};
|
67
|
-
type RoyaltyClaimDetail = {
|
68
|
-
childIpId: Address;
|
69
|
-
royaltyPolicy: Address;
|
70
|
-
currencyToken: Address;
|
71
|
-
amount: bigint | string | number;
|
72
|
-
};
|
73
|
-
export type TransferToVaultAndSnapshotAndClaimByTokenBatchRequest = {
|
74
|
-
ancestorIpId: Address;
|
75
|
-
royaltyClaimDetails: RoyaltyClaimDetail[];
|
76
|
-
claimer?: Address;
|
77
|
-
txOptions?: TxOptions;
|
78
|
-
};
|
79
|
-
export type TransferToVaultAndSnapshotAndClaimByTokenBatchResponse = {
|
80
|
-
txHash?: string;
|
81
|
-
encodedTxData?: EncodedTxData;
|
82
|
-
snapshotId?: bigint;
|
83
|
-
amountsClaimed?: bigint;
|
84
|
-
};
|
85
|
-
export type TransferToVaultAndSnapshotAndClaimBySnapshotBatchRequest = {
|
86
|
-
ancestorIpId: Address;
|
87
|
-
unclaimedSnapshotIds: bigint[] | number[] | string[];
|
88
|
-
claimer?: Address;
|
89
|
-
royaltyClaimDetails: RoyaltyClaimDetail[];
|
90
|
-
txOptions?: TxOptions;
|
91
|
-
};
|
92
|
-
export type TransferToVaultAndSnapshotAndClaimBySnapshotBatchResponse = {
|
93
|
-
txHash?: string;
|
94
|
-
encodedTxData?: EncodedTxData;
|
95
|
-
snapshotId?: bigint;
|
96
|
-
amountsClaimed?: bigint;
|
97
|
-
};
|
98
|
-
export type SnapshotAndClaimByTokenBatchRequest = {
|
99
|
-
royaltyVaultIpId: Address;
|
100
|
-
currencyTokens: Address[];
|
101
|
-
claimer?: Address;
|
102
|
-
txOptions?: TxOptions;
|
103
|
-
};
|
104
|
-
export type SnapshotAndClaimByTokenBatchResponse = {
|
105
|
-
txHash?: string;
|
106
|
-
encodedTxData?: EncodedTxData;
|
107
|
-
snapshotId?: bigint;
|
108
|
-
amountsClaimed?: bigint;
|
109
|
-
};
|
110
|
-
export type SnapshotAndClaimBySnapshotBatchRequest = {
|
111
|
-
royaltyVaultIpId: Address;
|
112
|
-
unclaimedSnapshotIds: bigint[] | number[] | string[];
|
113
|
-
currencyTokens: Address[];
|
114
|
-
claimer?: Address;
|
115
|
-
txOptions?: TxOptions;
|
116
|
-
};
|
117
|
-
export type SnapshotAndClaimBySnapshotBatchResponse = {
|
118
|
-
txHash?: string;
|
119
|
-
encodedTxData?: EncodedTxData;
|
120
|
-
snapshotId?: bigint;
|
121
|
-
amountsClaimed?: bigint;
|
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 = {
|
27
|
+
export type ClaimAllRevenueRequest = WithClaimOptions & {
|
129
28
|
/** The address of the ancestor IP from which the revenue is being claimed. */
|
130
29
|
ancestorIpId: Address;
|
131
30
|
/**
|
@@ -144,6 +43,8 @@ export type ClaimAllRevenueRequest = {
|
|
144
43
|
royaltyPolicies: Address[];
|
145
44
|
/** The addresses of the currency tokens in which royalties will be claimed */
|
146
45
|
currencyTokens: Address[];
|
46
|
+
};
|
47
|
+
export type WithClaimOptions = {
|
147
48
|
claimOptions?: {
|
148
49
|
/**
|
149
50
|
* When enabled, all claimed tokens on the claimer are transferred to the
|
@@ -165,19 +66,39 @@ export type ClaimAllRevenueRequest = {
|
|
165
66
|
autoUnwrapIpTokens?: boolean;
|
166
67
|
};
|
167
68
|
};
|
168
|
-
export type
|
169
|
-
|
170
|
-
|
69
|
+
export type BatchClaimAllRevenueRequest = WithClaimOptions & {
|
70
|
+
/** The ancestor IPs from which the revenue is being claimed. */
|
71
|
+
ancestorIps: (Omit<ClaimAllRevenueRequest, "ancestorIpId" | "claimOptions"> & {
|
72
|
+
/** The address of the ancestor IP from which the revenue is being claimed. */
|
73
|
+
ipId: Address;
|
74
|
+
})[];
|
75
|
+
options?: {
|
76
|
+
/**
|
77
|
+
* Use multicall to batch the calls `claimAllRevenue` into one transaction when possible.
|
78
|
+
*
|
79
|
+
* If only 1 ancestorIp is provided, multicall will not be used.
|
80
|
+
* @default true
|
81
|
+
*/
|
82
|
+
useMulticallWhenPossible?: boolean;
|
83
|
+
};
|
84
|
+
};
|
85
|
+
export type BatchClaimAllRevenueResponse = {
|
86
|
+
txHashes: Hash[];
|
87
|
+
receipts: TransactionReceipt[];
|
88
|
+
claimedTokens?: IpRoyaltyVaultImplRevenueTokenClaimedEvent[];
|
171
89
|
};
|
172
90
|
export type ClaimAllRevenueResponse = {
|
173
91
|
txHashes: Hash[];
|
174
|
-
receipt
|
175
|
-
|
92
|
+
receipt: TransactionReceipt;
|
93
|
+
/**
|
94
|
+
* Aggregate list of all tokens claimed across all transactions in the batch.
|
95
|
+
* Events are aggregated by unique combinations of claimer and token addresses,
|
96
|
+
* summing up the amounts for the same claimer-token pairs.
|
97
|
+
*/
|
98
|
+
claimedTokens?: IpRoyaltyVaultImplRevenueTokenClaimedEvent[];
|
176
99
|
};
|
177
100
|
export type TransferClaimedTokensFromIpToWalletParams = {
|
178
101
|
ipAccount: IpAccountImplClient;
|
179
|
-
|
180
|
-
claimedTokens: ClaimedToken[];
|
102
|
+
claimedTokens: IpRoyaltyVaultImplRevenueTokenClaimedEvent[];
|
181
103
|
};
|
182
|
-
export {};
|
183
104
|
//# 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,IAAI,EAAE,kBAAkB,EAAE,MAAM,MAAM,CAAC;AAEzD,OAAO,EAAE,
|
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,aAAa,EAAE,cAAc,EAAE,sBAAmB;AAC3D,OAAO,EACL,aAAa,EACb,mBAAmB,EACnB,0CAA0C,EAC3C,+BAA4B;AAC7B,OAAO,EAAE,gBAAgB,EAAE,sBAAmB;AAC9C,OAAO,EAAE,gBAAgB,EAAE,qBAAkB;AAE7C,MAAM,MAAM,uBAAuB,GAAG;IACpC,gBAAgB,EAAE,OAAO,CAAC;IAC1B,OAAO,EAAE,OAAO,CAAC;IACjB,KAAK,EAAE,OAAO,CAAC;CAChB,CAAC;AACF,MAAM,MAAM,wBAAwB,GAAG,MAAM,CAAC;AAC9C,MAAM,MAAM,yBAAyB,GAAG,aAAa,GACnD,gBAAgB,GAChB,cAAc,GAAG;IACf,6CAA6C;IAC7C,YAAY,EAAE,OAAO,CAAC;IACtB,yCAAyC;IACzC,SAAS,EAAE,OAAO,CAAC;IACnB,6CAA6C;IAC7C,KAAK,EAAE,OAAO,CAAC;IACf,yBAAyB;IACzB,MAAM,EAAE,gBAAgB,CAAC;CAC1B,CAAC;AAEJ,MAAM,M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;;;OAIG;IACH,aAAa,CAAC,EAAE,0CAA0C,EAAE,CAAC;CAC9D,CAAC;AAEF,MAAM,MAAM,yCAAyC,GAAG;IACtD,SAAS,EAAE,mBAAmB,CAAC;IAC/B,aAAa,EAAE,0CAA0C,EAAE,CAAC;CAC7D,CAAC"}
|
@@ -13,4 +13,11 @@ export type DepositRequest = WithTxOptions & {
|
|
13
13
|
export type WithdrawRequest = WithTxOptions & {
|
14
14
|
amount: TokenAmountInput;
|
15
15
|
};
|
16
|
+
export type TransferRequest = WithTxOptions & {
|
17
|
+
to: Address;
|
18
|
+
amount: TokenAmountInput;
|
19
|
+
};
|
20
|
+
export type TransferFromRequest = TransferRequest & {
|
21
|
+
from: Address;
|
22
|
+
};
|
16
23
|
//# sourceMappingURL=wip.d.ts.map
|
@@ -1 +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"}
|
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;AAEF,MAAM,MAAM,eAAe,GAAG,aAAa,GAAG;IAC5C,EAAE,EAAE,OAAO,CAAC;IACZ,MAAM,EAAE,gBAAgB,CAAC;CAC1B,CAAC;AAEF,MAAM,MAAM,mBAAmB,GAAG,eAAe,GAAG;IAClD,IAAI,EAAE,OAAO,CAAC;CACf,CAAC"}
|
@@ -8,7 +8,7 @@ export declare const aeneid: {
|
|
8
8
|
contracts: {
|
9
9
|
readonly multicall3: {
|
10
10
|
readonly address: "0xca11bde05977b3631167028862be2a173976ca11";
|
11
|
-
readonly blockCreated:
|
11
|
+
readonly blockCreated: 1792;
|
12
12
|
};
|
13
13
|
};
|
14
14
|
id: 1315;
|
@@ -40,7 +40,7 @@ export declare const mainnet: {
|
|
40
40
|
contracts: {
|
41
41
|
readonly multicall3: {
|
42
42
|
readonly address: "0xca11bde05977b3631167028862be2a173976ca11";
|
43
|
-
readonly blockCreated:
|
43
|
+
readonly blockCreated: 340998;
|
44
44
|
};
|
45
45
|
};
|
46
46
|
id: 1514;
|
@@ -1,8 +1,12 @@
|
|
1
1
|
import { Hex } from "viem";
|
2
2
|
export type IpMetadataForWorkflow = {
|
3
|
+
/** The URI of the metadata for the IP. */
|
3
4
|
ipMetadataURI: string;
|
5
|
+
/** The hash of the metadata for the IP. */
|
4
6
|
ipMetadataHash: Hex;
|
7
|
+
/** The URI of the metadata for the NFT. */
|
5
8
|
nftMetadataURI: string;
|
9
|
+
/** The hash of the metadata for the IP NFT. */
|
6
10
|
nftMetadataHash: Hex;
|
7
11
|
};
|
8
12
|
export declare const getIpMetadataForWorkflow: (metadata?: Partial<IpMetadataForWorkflow>) => IpMetadataForWorkflow;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"getIpMetadataForWorkflow.d.ts","sourceRoot":"../../../../src/utils","sources":["getIpMetadataForWorkflow.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAY,MAAM,MAAM,CAAC;AAErC,MAAM,MAAM,qBAAqB,GAAG;IAClC,aAAa,EAAE,MAAM,CAAC;IACtB,cAAc,EAAE,GAAG,CAAC;IACpB,cAAc,EAAE,MAAM,CAAC;IACvB,eAAe,EAAE,GAAG,CAAC;CACtB,CAAC;AAEF,eAAO,MAAM,wBAAwB,cACxB,QAAQ,qBAAqB,CAAC,KACxC,qBAOF,CAAC"}
|
1
|
+
{"version":3,"file":"getIpMetadataForWorkflow.d.ts","sourceRoot":"../../../../src/utils","sources":["getIpMetadataForWorkflow.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAY,MAAM,MAAM,CAAC;AAErC,MAAM,MAAM,qBAAqB,GAAG;IAClC,0CAA0C;IAC1C,aAAa,EAAE,MAAM,CAAC;IACtB,2CAA2C;IAC3C,cAAc,EAAE,GAAG,CAAC;IACpB,2CAA2C;IAC3C,cAAc,EAAE,MAAM,CAAC;IACvB,+CAA+C;IAC/C,eAAe,EAAE,GAAG,CAAC;CACtB,CAAC;AAEF,eAAO,MAAM,wBAAwB,cACxB,QAAQ,qBAAqB,CAAC,KACxC,qBAOF,CAAC"}
|