@medialane/sdk 0.198.0 → 0.200.0
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/README.md +86 -41
- package/dist/chains-CmwjZVU7.d.cts +85 -0
- package/dist/chains-CmwjZVU7.d.ts +85 -0
- package/dist/chunk-3HPMEDYH.cjs +967 -0
- package/dist/chunk-3HPMEDYH.cjs.map +1 -0
- package/dist/{chunk-3ME5YKTW.js → chunk-5KY6P434.js} +2 -2
- package/dist/chunk-5KY6P434.js.map +1 -0
- package/dist/chunk-F7W6IWTL.js +660 -0
- package/dist/chunk-F7W6IWTL.js.map +1 -0
- package/dist/chunk-GIBIHGSV.js +916 -0
- package/dist/chunk-GIBIHGSV.js.map +1 -0
- package/dist/chunk-GV4A2WNO.js +444 -0
- package/dist/chunk-GV4A2WNO.js.map +1 -0
- package/dist/{chunk-7EYJC5CB.cjs → chunk-H2NJB3AK.cjs} +2 -2
- package/dist/chunk-H2NJB3AK.cjs.map +1 -0
- package/dist/chunk-KGAGWULG.js +932 -0
- package/dist/chunk-KGAGWULG.js.map +1 -0
- package/dist/chunk-MEJ47LC3.cjs +463 -0
- package/dist/chunk-MEJ47LC3.cjs.map +1 -0
- package/dist/chunk-W76AZ5WC.cjs +376 -0
- package/dist/chunk-W76AZ5WC.cjs.map +1 -0
- package/dist/chunk-WRBXQPRL.js +323 -0
- package/dist/chunk-WRBXQPRL.js.map +1 -0
- package/dist/chunk-ZLMIHQWM.cjs +975 -0
- package/dist/chunk-ZLMIHQWM.cjs.map +1 -0
- package/dist/chunk-ZVANOWIB.cjs +688 -0
- package/dist/chunk-ZVANOWIB.cjs.map +1 -0
- package/dist/contract/index.cjs +88 -261
- package/dist/contract/index.cjs.map +1 -1
- package/dist/contract/index.d.cts +139 -4
- package/dist/contract/index.d.ts +139 -4
- package/dist/contract/index.js +4 -220
- package/dist/contract/index.js.map +1 -1
- package/dist/evm/index.cjs +3 -3
- package/dist/evm/index.d.cts +2 -1
- package/dist/evm/index.d.ts +2 -1
- package/dist/evm/index.js +1 -1
- package/dist/fetch-Cx9Pr7-B.d.cts +3 -0
- package/dist/fetch-Cx9Pr7-B.d.ts +3 -0
- package/dist/index.cjs +177 -833
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +54 -132
- package/dist/index.d.ts +54 -132
- package/dist/index.js +6 -659
- package/dist/index.js.map +1 -1
- package/dist/passkey-errors-B0HGcjPc.d.ts +981 -0
- package/dist/passkey-errors-yndCFeHv.d.cts +981 -0
- package/dist/provisioning-CwRkCN8D.d.cts +14 -0
- package/dist/provisioning-CwRkCN8D.d.ts +14 -0
- package/dist/{provisioning-BUYiU8Tr.d.ts → responses-D3nBY71f.d.cts} +40 -48
- package/dist/{provisioning-BUYiU8Tr.d.cts → responses-D3nBY71f.d.ts} +40 -48
- package/dist/server/index.cjs +117 -0
- package/dist/server/index.cjs.map +1 -0
- package/dist/server/index.d.cts +98 -0
- package/dist/server/index.d.ts +98 -0
- package/dist/server/index.js +4 -0
- package/dist/server/index.js.map +1 -0
- package/dist/services-B15RJBSW.d.cts +728 -0
- package/dist/services-BAnTJhwt.d.ts +728 -0
- package/dist/solana/index.cjs +2 -2
- package/dist/solana/index.d.cts +2 -1
- package/dist/solana/index.d.ts +2 -1
- package/dist/solana/index.js +1 -1
- package/dist/starknet/index.cjs +898 -1729
- package/dist/starknet/index.cjs.map +1 -1
- package/dist/starknet/index.d.cts +98 -467
- package/dist/starknet/index.d.ts +98 -467
- package/dist/starknet/index.js +704 -1680
- package/dist/starknet/index.js.map +1 -1
- package/dist/stellar/index.cjs +2 -2
- package/dist/stellar/index.d.cts +2 -1
- package/dist/stellar/index.d.ts +2 -1
- package/dist/stellar/index.js +1 -1
- package/dist/types-BW6ktwcT.d.ts +71 -0
- package/dist/types-BftPOVEJ.d.cts +71 -0
- package/dist/wallet/index.cjs +240 -0
- package/dist/wallet/index.cjs.map +1 -0
- package/dist/wallet/index.d.cts +319 -0
- package/dist/wallet/index.d.ts +319 -0
- package/dist/wallet/index.js +7 -0
- package/dist/wallet/index.js.map +1 -0
- package/package.json +13 -2
- package/dist/chunk-2R7XBA34.cjs +0 -1938
- package/dist/chunk-2R7XBA34.cjs.map +0 -1
- package/dist/chunk-3ME5YKTW.js.map +0 -1
- package/dist/chunk-6WVUUBFI.js +0 -1853
- package/dist/chunk-6WVUUBFI.js.map +0 -1
- package/dist/chunk-7EYJC5CB.cjs.map +0 -1
- package/dist/errors-CZm-NZK0.d.cts +0 -1754
- package/dist/errors-h6H6cj3Q.d.ts +0 -1754
- package/dist/types-DC4jNPAF.d.cts +0 -153
- package/dist/types-DC4jNPAF.d.ts +0 -153
|
@@ -1,1754 +0,0 @@
|
|
|
1
|
-
import { C as Chain } from './types-DC4jNPAF.cjs';
|
|
2
|
-
import { z } from 'zod';
|
|
3
|
-
import { s as sponsorshipBidAcceptSchema, a as sponsorshipProposalAcceptSchema, o as ordersListQuery, b as orderSchema, l as listingSchema, c as offerSchema, f as fulfillSchema, d as cancelSchema, e as checkoutBodySchema, m as mintSchema, t as transferTokenSchema, g as transferNftSchema, h as transferCollectionOwnershipSchema, i as commentSchema, j as genesisMintSchema, p as popClaimSchema, k as popBurnSchema, n as dropClaimSchema, w as walletManageSchema, q as swapIntentSchema, r as fundingTransferSchema, u as dropManageSchema, v as popManageSchema, x as createCollectionSchema, y as createTierSchema, z as emissionSchema, A as createCoinSchema, B as launchCoinSchema, C as sponsorshipOfferSchema, D as sponsorshipOfferOpenSchema, E as sponsorshipBidSchema, F as sponsorshipBidRetractSchema, G as sponsorshipProposalSchema, H as sponsorshipProposalWithdrawSchema, I as sponsorshipProposalRejectSchema, J as counterOfferSchema, K as collectionProfileSchema, L as COLLECTION_SERVICE_IDS, M as FACTORY_FAMILY_SERVICE_IDS, T as TIER_SERVICE_IDS, N as provisioningRegisterSchema } from './provisioning-BUYiU8Tr.cjs';
|
|
4
|
-
import { AccountInterface, Call, ProviderInterface, TypedData } from 'starknet';
|
|
5
|
-
|
|
6
|
-
interface RetryOptions {
|
|
7
|
-
maxAttempts?: number;
|
|
8
|
-
baseDelayMs?: number;
|
|
9
|
-
maxDelayMs?: number;
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
declare const FeeConfigSchema: z.ZodObject<{
|
|
13
|
-
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
14
|
-
fundAddress: z.ZodOptional<z.ZodString>;
|
|
15
|
-
marketplaceBps: z.ZodDefault<z.ZodNumber>;
|
|
16
|
-
launchpadBps: z.ZodDefault<z.ZodNumber>;
|
|
17
|
-
sponsorshipBps: z.ZodDefault<z.ZodNumber>;
|
|
18
|
-
}, "strip", z.ZodTypeAny, {
|
|
19
|
-
enabled: boolean;
|
|
20
|
-
marketplaceBps: number;
|
|
21
|
-
launchpadBps: number;
|
|
22
|
-
sponsorshipBps: number;
|
|
23
|
-
fundAddress?: string | undefined;
|
|
24
|
-
}, {
|
|
25
|
-
enabled?: boolean | undefined;
|
|
26
|
-
fundAddress?: string | undefined;
|
|
27
|
-
marketplaceBps?: number | undefined;
|
|
28
|
-
launchpadBps?: number | undefined;
|
|
29
|
-
sponsorshipBps?: number | undefined;
|
|
30
|
-
}>;
|
|
31
|
-
type FeeConfig = z.input<typeof FeeConfigSchema>;
|
|
32
|
-
interface ResolvedFeeConfig {
|
|
33
|
-
enabled: boolean;
|
|
34
|
-
fundAddress: string | undefined;
|
|
35
|
-
marketplaceBps: number;
|
|
36
|
-
launchpadBps: number;
|
|
37
|
-
sponsorshipBps: number;
|
|
38
|
-
}
|
|
39
|
-
declare function resolveFeeConfig(raw: FeeConfig | undefined): ResolvedFeeConfig;
|
|
40
|
-
|
|
41
|
-
declare const MedialaneConfigSchema: z.ZodObject<{
|
|
42
|
-
chain: z.ZodDefault<z.ZodEnum<["STARKNET", "ETHEREUM", "SOLANA", "BASE", "STELLAR", "BITCOIN"]>>;
|
|
43
|
-
backendUrl: z.ZodOptional<z.ZodString>;
|
|
44
|
-
apiKey: z.ZodOptional<z.ZodString>;
|
|
45
|
-
marketplace721Contract: z.ZodOptional<z.ZodString>;
|
|
46
|
-
marketplaceContract: z.ZodOptional<z.ZodString>;
|
|
47
|
-
marketplace1155Contract: z.ZodOptional<z.ZodString>;
|
|
48
|
-
collection721Contract: z.ZodOptional<z.ZodString>;
|
|
49
|
-
collectionContract: z.ZodOptional<z.ZodString>;
|
|
50
|
-
collection1155Contract: z.ZodOptional<z.ZodString>;
|
|
51
|
-
retryOptions: z.ZodOptional<z.ZodObject<{
|
|
52
|
-
maxAttempts: z.ZodOptional<z.ZodNumber>;
|
|
53
|
-
baseDelayMs: z.ZodOptional<z.ZodNumber>;
|
|
54
|
-
maxDelayMs: z.ZodOptional<z.ZodNumber>;
|
|
55
|
-
}, "strip", z.ZodTypeAny, {
|
|
56
|
-
maxAttempts?: number | undefined;
|
|
57
|
-
baseDelayMs?: number | undefined;
|
|
58
|
-
maxDelayMs?: number | undefined;
|
|
59
|
-
}, {
|
|
60
|
-
maxAttempts?: number | undefined;
|
|
61
|
-
baseDelayMs?: number | undefined;
|
|
62
|
-
maxDelayMs?: number | undefined;
|
|
63
|
-
}>>;
|
|
64
|
-
feeConfig: z.ZodOptional<z.ZodObject<{
|
|
65
|
-
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
66
|
-
fundAddress: z.ZodOptional<z.ZodString>;
|
|
67
|
-
marketplaceBps: z.ZodDefault<z.ZodNumber>;
|
|
68
|
-
launchpadBps: z.ZodDefault<z.ZodNumber>;
|
|
69
|
-
sponsorshipBps: z.ZodDefault<z.ZodNumber>;
|
|
70
|
-
}, "strip", z.ZodTypeAny, {
|
|
71
|
-
enabled: boolean;
|
|
72
|
-
marketplaceBps: number;
|
|
73
|
-
launchpadBps: number;
|
|
74
|
-
sponsorshipBps: number;
|
|
75
|
-
fundAddress?: string | undefined;
|
|
76
|
-
}, {
|
|
77
|
-
enabled?: boolean | undefined;
|
|
78
|
-
fundAddress?: string | undefined;
|
|
79
|
-
marketplaceBps?: number | undefined;
|
|
80
|
-
launchpadBps?: number | undefined;
|
|
81
|
-
sponsorshipBps?: number | undefined;
|
|
82
|
-
}>>;
|
|
83
|
-
}, "strip", z.ZodTypeAny, {
|
|
84
|
-
chain: "STARKNET" | "ETHEREUM" | "SOLANA" | "BASE" | "STELLAR" | "BITCOIN";
|
|
85
|
-
collectionContract?: string | undefined;
|
|
86
|
-
backendUrl?: string | undefined;
|
|
87
|
-
apiKey?: string | undefined;
|
|
88
|
-
marketplace721Contract?: string | undefined;
|
|
89
|
-
marketplaceContract?: string | undefined;
|
|
90
|
-
marketplace1155Contract?: string | undefined;
|
|
91
|
-
collection721Contract?: string | undefined;
|
|
92
|
-
collection1155Contract?: string | undefined;
|
|
93
|
-
retryOptions?: {
|
|
94
|
-
maxAttempts?: number | undefined;
|
|
95
|
-
baseDelayMs?: number | undefined;
|
|
96
|
-
maxDelayMs?: number | undefined;
|
|
97
|
-
} | undefined;
|
|
98
|
-
feeConfig?: {
|
|
99
|
-
enabled: boolean;
|
|
100
|
-
marketplaceBps: number;
|
|
101
|
-
launchpadBps: number;
|
|
102
|
-
sponsorshipBps: number;
|
|
103
|
-
fundAddress?: string | undefined;
|
|
104
|
-
} | undefined;
|
|
105
|
-
}, {
|
|
106
|
-
collectionContract?: string | undefined;
|
|
107
|
-
chain?: "STARKNET" | "ETHEREUM" | "SOLANA" | "BASE" | "STELLAR" | "BITCOIN" | undefined;
|
|
108
|
-
backendUrl?: string | undefined;
|
|
109
|
-
apiKey?: string | undefined;
|
|
110
|
-
marketplace721Contract?: string | undefined;
|
|
111
|
-
marketplaceContract?: string | undefined;
|
|
112
|
-
marketplace1155Contract?: string | undefined;
|
|
113
|
-
collection721Contract?: string | undefined;
|
|
114
|
-
collection1155Contract?: string | undefined;
|
|
115
|
-
retryOptions?: {
|
|
116
|
-
maxAttempts?: number | undefined;
|
|
117
|
-
baseDelayMs?: number | undefined;
|
|
118
|
-
maxDelayMs?: number | undefined;
|
|
119
|
-
} | undefined;
|
|
120
|
-
feeConfig?: {
|
|
121
|
-
enabled?: boolean | undefined;
|
|
122
|
-
fundAddress?: string | undefined;
|
|
123
|
-
marketplaceBps?: number | undefined;
|
|
124
|
-
launchpadBps?: number | undefined;
|
|
125
|
-
sponsorshipBps?: number | undefined;
|
|
126
|
-
} | undefined;
|
|
127
|
-
}>;
|
|
128
|
-
type MedialaneConfig = z.input<typeof MedialaneConfigSchema>;
|
|
129
|
-
interface ResolvedConfig {
|
|
130
|
-
chain: Chain;
|
|
131
|
-
backendUrl: string | undefined;
|
|
132
|
-
apiKey: string | undefined;
|
|
133
|
-
marketplace721Contract: string;
|
|
134
|
-
marketplaceContract: string;
|
|
135
|
-
marketplace1155Contract: string;
|
|
136
|
-
collection721Contract: string;
|
|
137
|
-
collectionContract: string;
|
|
138
|
-
collection1155Contract: string;
|
|
139
|
-
retryOptions?: RetryOptions;
|
|
140
|
-
feeConfig: ResolvedFeeConfig;
|
|
141
|
-
}
|
|
142
|
-
declare function resolveConfig(raw: MedialaneConfig): ResolvedConfig;
|
|
143
|
-
|
|
144
|
-
type IPType = "Audio" | "Art" | "Documents" | "NFT" | "Video" | "Photography" | "Patents" | "Posts" | "Publications" | "RWA" | "Software" | "Custom";
|
|
145
|
-
type CollectionSort = "recent" | "supply" | "floor" | "volume" | "name";
|
|
146
|
-
type CollectionTokensSort = "recent" | "oldest" | "name" | "price";
|
|
147
|
-
type ServiceCapability = "list" | "buy" | "make_offer" | "cancel" | "transfer" | "burn" | "mint" | "claim" | "airdrop" | "remix" | "license" | "subscribe" | "redeem" | "launch" | "swap" | "sponsor";
|
|
148
|
-
interface EnforcementDeclaration {
|
|
149
|
-
royalty?: "erc2981" | "service-split" | "none";
|
|
150
|
-
escrow?: boolean;
|
|
151
|
-
timeLock?: boolean;
|
|
152
|
-
revocable?: boolean;
|
|
153
|
-
}
|
|
154
|
-
interface ServiceEventDeclaration {
|
|
155
|
-
name: string;
|
|
156
|
-
emittedBy: "factory" | "instance";
|
|
157
|
-
poll?: "fast" | "slow";
|
|
158
|
-
}
|
|
159
|
-
interface ServiceDefinition {
|
|
160
|
-
id: string;
|
|
161
|
-
displayName: string;
|
|
162
|
-
description: string;
|
|
163
|
-
standard: "ERC721" | "ERC1155" | "ERC20" | "UNKNOWN";
|
|
164
|
-
provenance: "MEDIALANE" | "EXTERNAL";
|
|
165
|
-
onchain?: Partial<Record<Chain, {
|
|
166
|
-
factoryAddress?: string;
|
|
167
|
-
classHash?: string;
|
|
168
|
-
startBlock?: number;
|
|
169
|
-
}>>;
|
|
170
|
-
uiVariant: string;
|
|
171
|
-
capabilities: ServiceCapability[];
|
|
172
|
-
events?: ServiceEventDeclaration[];
|
|
173
|
-
metadataSchema?: {
|
|
174
|
-
requiredTraits?: string[];
|
|
175
|
-
licenseDefault?: string;
|
|
176
|
-
enforcement?: EnforcementDeclaration;
|
|
177
|
-
};
|
|
178
|
-
}
|
|
179
|
-
interface ApiCollectionsQuery {
|
|
180
|
-
page?: number;
|
|
181
|
-
limit?: number;
|
|
182
|
-
isKnown?: boolean;
|
|
183
|
-
sort?: CollectionSort;
|
|
184
|
-
owner?: string;
|
|
185
|
-
service?: string;
|
|
186
|
-
}
|
|
187
|
-
type OrderStatus = "ACTIVE" | "FULFILLED" | "CANCELLED" | "EXPIRED";
|
|
188
|
-
type SortOrder = "price_asc" | "price_desc" | "recent";
|
|
189
|
-
type ActivityType = "mint" | "transfer" | "sale" | "listing" | "offer" | "cancelled";
|
|
190
|
-
type IntentType = "CREATE_LISTING" | "MAKE_OFFER" | "FULFILL_ORDER" | "CANCEL_ORDER" | "MINT" | "CREATE_COLLECTION" | "COUNTER_OFFER";
|
|
191
|
-
type IntentStatus = "PENDING" | "SIGNED" | "SUBMITTED" | "CONFIRMED" | "FAILED" | "EXPIRED";
|
|
192
|
-
interface ApiMeta {
|
|
193
|
-
page: number;
|
|
194
|
-
limit: number;
|
|
195
|
-
total?: number;
|
|
196
|
-
counts?: Record<string, number>;
|
|
197
|
-
}
|
|
198
|
-
interface ApiResponse<T> {
|
|
199
|
-
data: T;
|
|
200
|
-
meta?: ApiMeta;
|
|
201
|
-
}
|
|
202
|
-
type ChainFilter = Chain | "all";
|
|
203
|
-
type ApiOrdersQuery = z.input<typeof ordersListQuery> & {
|
|
204
|
-
chain?: ChainFilter;
|
|
205
|
-
};
|
|
206
|
-
interface ApiOrderOffer {
|
|
207
|
-
itemType: string;
|
|
208
|
-
token: string;
|
|
209
|
-
identifier: string;
|
|
210
|
-
startAmount: string;
|
|
211
|
-
endAmount: string;
|
|
212
|
-
}
|
|
213
|
-
interface ApiOrderConsideration extends ApiOrderOffer {
|
|
214
|
-
recipient: string;
|
|
215
|
-
}
|
|
216
|
-
interface ApiOrderPrice {
|
|
217
|
-
raw: string | null;
|
|
218
|
-
formatted: string | null;
|
|
219
|
-
currency: string | null;
|
|
220
|
-
decimals: number;
|
|
221
|
-
}
|
|
222
|
-
interface ApiOrderTxHash {
|
|
223
|
-
created: string | null;
|
|
224
|
-
fulfilled: string | null;
|
|
225
|
-
cancelled: string | null;
|
|
226
|
-
}
|
|
227
|
-
interface ApiOrderTokenMeta {
|
|
228
|
-
name: string | null;
|
|
229
|
-
image: string | null;
|
|
230
|
-
description: string | null;
|
|
231
|
-
animationUrl: string | null;
|
|
232
|
-
}
|
|
233
|
-
type ApiOrder = z.output<typeof orderSchema>;
|
|
234
|
-
interface IpAttribute {
|
|
235
|
-
trait_type: string;
|
|
236
|
-
value: string;
|
|
237
|
-
}
|
|
238
|
-
interface IpNftMetadata {
|
|
239
|
-
name: string;
|
|
240
|
-
description?: string;
|
|
241
|
-
image?: string | null;
|
|
242
|
-
external_url?: string;
|
|
243
|
-
attributes?: IpAttribute[];
|
|
244
|
-
ipType?: string | null;
|
|
245
|
-
licenseType?: string | null;
|
|
246
|
-
commercialUse?: string | null;
|
|
247
|
-
derivatives?: string | null;
|
|
248
|
-
attribution?: string | null;
|
|
249
|
-
territory?: string | null;
|
|
250
|
-
aiPolicy?: string | null;
|
|
251
|
-
royalty?: string | null;
|
|
252
|
-
registration?: string | null;
|
|
253
|
-
}
|
|
254
|
-
interface ApiTokenMetadata {
|
|
255
|
-
name: string | null;
|
|
256
|
-
description: string | null;
|
|
257
|
-
image: string | null;
|
|
258
|
-
animationUrl: string | null;
|
|
259
|
-
attributes: IpAttribute[] | null;
|
|
260
|
-
ipType: string | null;
|
|
261
|
-
licenseType: string | null;
|
|
262
|
-
commercialUse: string | null;
|
|
263
|
-
derivatives: string | null;
|
|
264
|
-
attribution: string | null;
|
|
265
|
-
territory: string | null;
|
|
266
|
-
aiPolicy: string | null;
|
|
267
|
-
royalty: string | null;
|
|
268
|
-
registration: string | null;
|
|
269
|
-
author: string | null;
|
|
270
|
-
}
|
|
271
|
-
interface ApiTokenBalance {
|
|
272
|
-
owner: string;
|
|
273
|
-
amount: string;
|
|
274
|
-
}
|
|
275
|
-
interface ApiToken {
|
|
276
|
-
id: string;
|
|
277
|
-
chain: string;
|
|
278
|
-
contractAddress: string;
|
|
279
|
-
tokenId: string;
|
|
280
|
-
owner: string | null;
|
|
281
|
-
tokenUri: string | null;
|
|
282
|
-
metadataStatus: "PENDING" | "FETCHING" | "FETCHED" | "FAILED";
|
|
283
|
-
standard: "ERC721" | "ERC1155" | "UNKNOWN";
|
|
284
|
-
metadata: ApiTokenMetadata;
|
|
285
|
-
balances: ApiTokenBalance[] | null;
|
|
286
|
-
holderCount?: number;
|
|
287
|
-
supply?: string;
|
|
288
|
-
activeOrders: ApiOrder[];
|
|
289
|
-
createdAt: string;
|
|
290
|
-
updatedAt: string;
|
|
291
|
-
}
|
|
292
|
-
interface ApiCollection {
|
|
293
|
-
id: string;
|
|
294
|
-
chain: string;
|
|
295
|
-
contractAddress: string;
|
|
296
|
-
collectionId: string | null;
|
|
297
|
-
name: string | null;
|
|
298
|
-
symbol: string | null;
|
|
299
|
-
description: string | null;
|
|
300
|
-
image: string | null;
|
|
301
|
-
owner: string | null;
|
|
302
|
-
startBlock: string;
|
|
303
|
-
metadataStatus: "PENDING" | "FETCHING" | "FETCHED" | "FAILED";
|
|
304
|
-
standard: "ERC721" | "ERC1155";
|
|
305
|
-
isKnown: boolean;
|
|
306
|
-
isHidden: boolean;
|
|
307
|
-
isFeatured: boolean;
|
|
308
|
-
service: string | null;
|
|
309
|
-
claimedBy: string | null;
|
|
310
|
-
profile?: ApiCollectionProfile | null;
|
|
311
|
-
floorPrice: string | null;
|
|
312
|
-
totalVolume: string | null;
|
|
313
|
-
holderCount: number | null;
|
|
314
|
-
totalSupply: number | null;
|
|
315
|
-
createdAt: string;
|
|
316
|
-
updatedAt: string;
|
|
317
|
-
}
|
|
318
|
-
interface ApiCoin {
|
|
319
|
-
id: string;
|
|
320
|
-
chain: string;
|
|
321
|
-
contractAddress: string;
|
|
322
|
-
standard: "ERC20";
|
|
323
|
-
service: string;
|
|
324
|
-
name: string | null;
|
|
325
|
-
symbol: string | null;
|
|
326
|
-
decimals: number;
|
|
327
|
-
totalSupply: string | null;
|
|
328
|
-
description: string | null;
|
|
329
|
-
image: string | null;
|
|
330
|
-
creator: string | null;
|
|
331
|
-
isLaunched?: boolean | null;
|
|
332
|
-
startBlock: string;
|
|
333
|
-
isHidden: boolean;
|
|
334
|
-
createdAt: string;
|
|
335
|
-
updatedAt: string;
|
|
336
|
-
}
|
|
337
|
-
interface ApiCoinPrice {
|
|
338
|
-
usdc: number;
|
|
339
|
-
}
|
|
340
|
-
type ApiCoinPrices = Record<string, ApiCoinPrice | null>;
|
|
341
|
-
type ApiCoinClaimResult = {
|
|
342
|
-
verified: true;
|
|
343
|
-
coin: ApiCoin | null;
|
|
344
|
-
} | {
|
|
345
|
-
verified: false;
|
|
346
|
-
reason: "owner_mismatch" | "owner_check_failed" | "not_erc20" | "no_total_supply";
|
|
347
|
-
};
|
|
348
|
-
interface ApiCoinsQuery {
|
|
349
|
-
chain?: ChainFilter;
|
|
350
|
-
page?: number;
|
|
351
|
-
limit?: number;
|
|
352
|
-
service?: string;
|
|
353
|
-
sort?: string;
|
|
354
|
-
creator?: string;
|
|
355
|
-
}
|
|
356
|
-
interface ApiActivityPrice {
|
|
357
|
-
raw: string | null;
|
|
358
|
-
formatted: string | null;
|
|
359
|
-
currency: string | null;
|
|
360
|
-
}
|
|
361
|
-
interface ApiActivity {
|
|
362
|
-
type: ActivityType;
|
|
363
|
-
chain: Chain;
|
|
364
|
-
contractAddress?: string;
|
|
365
|
-
tokenId?: string;
|
|
366
|
-
from?: string;
|
|
367
|
-
to?: string;
|
|
368
|
-
blockNumber?: string;
|
|
369
|
-
amount?: string;
|
|
370
|
-
orderHash?: string;
|
|
371
|
-
nftContract?: string;
|
|
372
|
-
nftTokenId?: string;
|
|
373
|
-
offerer?: string;
|
|
374
|
-
fulfiller?: string | null;
|
|
375
|
-
price?: ApiActivityPrice;
|
|
376
|
-
tokenStandard?: "ERC721" | "ERC1155";
|
|
377
|
-
txHash: string | null;
|
|
378
|
-
timestamp: string;
|
|
379
|
-
token?: {
|
|
380
|
-
name: string | null;
|
|
381
|
-
image: string | null;
|
|
382
|
-
animationUrl: string | null;
|
|
383
|
-
} | null;
|
|
384
|
-
}
|
|
385
|
-
interface ApiActivitiesQuery {
|
|
386
|
-
chain?: ChainFilter;
|
|
387
|
-
type?: ActivityType;
|
|
388
|
-
contract?: string;
|
|
389
|
-
page?: number;
|
|
390
|
-
limit?: number;
|
|
391
|
-
}
|
|
392
|
-
interface ApiComment {
|
|
393
|
-
id: string;
|
|
394
|
-
chain: string;
|
|
395
|
-
contractAddress: string;
|
|
396
|
-
tokenId: string;
|
|
397
|
-
author: string;
|
|
398
|
-
content: string;
|
|
399
|
-
txHash: string | null;
|
|
400
|
-
blockNumber: string;
|
|
401
|
-
postedAt: string;
|
|
402
|
-
}
|
|
403
|
-
interface ApiSearchTokenResult {
|
|
404
|
-
contractAddress: string;
|
|
405
|
-
tokenId: string;
|
|
406
|
-
name: string | null;
|
|
407
|
-
image: string | null;
|
|
408
|
-
owner: string;
|
|
409
|
-
metadataStatus: string;
|
|
410
|
-
}
|
|
411
|
-
interface ApiSearchCollectionResult {
|
|
412
|
-
contractAddress: string;
|
|
413
|
-
name: string | null;
|
|
414
|
-
image: string | null;
|
|
415
|
-
totalSupply: number | null;
|
|
416
|
-
floorPrice: string | null;
|
|
417
|
-
holderCount: number | null;
|
|
418
|
-
}
|
|
419
|
-
interface ApiSearchCreatorResult {
|
|
420
|
-
walletAddress: string;
|
|
421
|
-
username: string | null;
|
|
422
|
-
name: string | null;
|
|
423
|
-
bio: string | null;
|
|
424
|
-
avatarImage: string | null;
|
|
425
|
-
}
|
|
426
|
-
interface ApiSearchResult {
|
|
427
|
-
tokens: ApiSearchTokenResult[];
|
|
428
|
-
collections: ApiSearchCollectionResult[];
|
|
429
|
-
creators: ApiSearchCreatorResult[];
|
|
430
|
-
}
|
|
431
|
-
interface ApiIntent {
|
|
432
|
-
id: string;
|
|
433
|
-
chain: string;
|
|
434
|
-
type: IntentType;
|
|
435
|
-
status: IntentStatus;
|
|
436
|
-
requester: string;
|
|
437
|
-
typedData: unknown;
|
|
438
|
-
calls: unknown;
|
|
439
|
-
signature: string[];
|
|
440
|
-
txHash: string | null;
|
|
441
|
-
orderHash: string | null;
|
|
442
|
-
parentOrderHash?: string | null;
|
|
443
|
-
counterOfferMessage?: string | null;
|
|
444
|
-
expiresAt: string;
|
|
445
|
-
createdAt: string;
|
|
446
|
-
updatedAt: string;
|
|
447
|
-
}
|
|
448
|
-
interface IntentCall {
|
|
449
|
-
contractAddress: string;
|
|
450
|
-
entrypoint: string;
|
|
451
|
-
calldata: string[];
|
|
452
|
-
}
|
|
453
|
-
type ApiIntentCreated = {
|
|
454
|
-
id: string;
|
|
455
|
-
expiresAt: string;
|
|
456
|
-
requiresSignature: true;
|
|
457
|
-
typedData: unknown;
|
|
458
|
-
} | {
|
|
459
|
-
id: string;
|
|
460
|
-
expiresAt: string;
|
|
461
|
-
requiresSignature: false;
|
|
462
|
-
calls: IntentCall[];
|
|
463
|
-
};
|
|
464
|
-
interface ApiTxSyncResult {
|
|
465
|
-
applied: number;
|
|
466
|
-
contracts?: string[];
|
|
467
|
-
pending: boolean;
|
|
468
|
-
}
|
|
469
|
-
type CreateListingIntentParams = z.input<typeof listingSchema>;
|
|
470
|
-
type MakeOfferIntentParams = z.input<typeof offerSchema>;
|
|
471
|
-
type FulfillOrderIntentParams = z.input<typeof fulfillSchema>;
|
|
472
|
-
type CancelOrderIntentParams = z.input<typeof cancelSchema>;
|
|
473
|
-
type FactoryFamilyServiceId = (typeof FACTORY_FAMILY_SERVICE_IDS)[number];
|
|
474
|
-
type TierServiceId = (typeof TIER_SERVICE_IDS)[number];
|
|
475
|
-
type CollectionServiceId = (typeof COLLECTION_SERVICE_IDS)[number];
|
|
476
|
-
type CreateMintIntentParams = z.input<typeof mintSchema>;
|
|
477
|
-
/** Drop sale terms on the wire: amounts as decimal strings in the token's smallest unit. */
|
|
478
|
-
interface DropTermsBody {
|
|
479
|
-
/** Unix seconds; 0 = open from creation. */
|
|
480
|
-
startTime: number;
|
|
481
|
-
/** Unix seconds; 0 = never closes. */
|
|
482
|
-
endTime: number;
|
|
483
|
-
/** Per token; "0" = free. */
|
|
484
|
-
price: string;
|
|
485
|
-
paymentToken: string;
|
|
486
|
-
/** "0" = unlimited. */
|
|
487
|
-
maxPerWallet: string;
|
|
488
|
-
}
|
|
489
|
-
type ApiDropListStatus = "live" | "upcoming" | "ended";
|
|
490
|
-
interface ApiDrop {
|
|
491
|
-
contractAddress: string;
|
|
492
|
-
dropId: string;
|
|
493
|
-
organizer: string;
|
|
494
|
-
name: string | null;
|
|
495
|
-
symbol: string | null;
|
|
496
|
-
description: string | null;
|
|
497
|
-
image: string | null;
|
|
498
|
-
/** Token URI = baseUri + token id. */
|
|
499
|
-
baseUri: string | null;
|
|
500
|
-
/** "0" = no cap. */
|
|
501
|
-
maxSupply: string;
|
|
502
|
-
minted: string;
|
|
503
|
-
/** Total paid to the organizer, in the payment token's smallest unit. */
|
|
504
|
-
revenue: string;
|
|
505
|
-
collectors: number;
|
|
506
|
-
terms: DropTermsBody;
|
|
507
|
-
/** "0x0" = open to everyone. */
|
|
508
|
-
allowlistRoot: string;
|
|
509
|
-
createdBlock: string;
|
|
510
|
-
}
|
|
511
|
-
interface ApiDropFee {
|
|
512
|
-
/** Platform fee added to a mint, in basis points; 0 when none applies. */
|
|
513
|
-
launchpadBps: number;
|
|
514
|
-
}
|
|
515
|
-
interface ApiDropMint {
|
|
516
|
-
kind: "claim" | "issue";
|
|
517
|
-
wallet: string;
|
|
518
|
-
quantity: string;
|
|
519
|
-
firstTokenId: string;
|
|
520
|
-
totalPaid: string;
|
|
521
|
-
txHash: string;
|
|
522
|
-
blockNumber: string;
|
|
523
|
-
createdAt: string;
|
|
524
|
-
}
|
|
525
|
-
type CreateCollectionIntentParams = z.input<typeof createCollectionSchema>;
|
|
526
|
-
interface CheckoutIntentItem {
|
|
527
|
-
orderHash: string;
|
|
528
|
-
quantity?: string;
|
|
529
|
-
}
|
|
530
|
-
type CreateCheckoutIntentParams = z.input<typeof checkoutBodySchema>;
|
|
531
|
-
interface ApiCheckoutIntentResult {
|
|
532
|
-
id?: string;
|
|
533
|
-
orderHash: string;
|
|
534
|
-
requiresSignature?: false;
|
|
535
|
-
calls?: unknown;
|
|
536
|
-
expiresAt?: string;
|
|
537
|
-
error?: string;
|
|
538
|
-
}
|
|
539
|
-
type CreateTierIntentParams = z.output<typeof createTierSchema>;
|
|
540
|
-
type EmissionParams = z.input<typeof emissionSchema>;
|
|
541
|
-
interface ApiEmissionCall {
|
|
542
|
-
contractAddress: string;
|
|
543
|
-
entrypoint: string;
|
|
544
|
-
calldata: string[];
|
|
545
|
-
}
|
|
546
|
-
interface ApiEmissionResult {
|
|
547
|
-
service: string;
|
|
548
|
-
recipientCount: number;
|
|
549
|
-
callCount: number;
|
|
550
|
-
batches: ApiEmissionCall[][];
|
|
551
|
-
}
|
|
552
|
-
type CreateCoinIntentParams = z.input<typeof createCoinSchema>;
|
|
553
|
-
type LaunchCoinIntentParams = z.output<typeof launchCoinSchema>;
|
|
554
|
-
type CreateSponsorshipOfferIntentParams = z.output<typeof sponsorshipOfferSchema>;
|
|
555
|
-
type SetSponsorshipOfferOpenIntentParams = z.input<typeof sponsorshipOfferOpenSchema>;
|
|
556
|
-
type PlaceSponsorshipBidIntentParams = z.input<typeof sponsorshipBidSchema>;
|
|
557
|
-
type RetractSponsorshipBidIntentParams = z.input<typeof sponsorshipBidRetractSchema>;
|
|
558
|
-
type AcceptSponsorshipBidIntentParams = z.input<typeof sponsorshipBidAcceptSchema>;
|
|
559
|
-
type CreateSponsorshipProposalIntentParams = z.output<typeof sponsorshipProposalSchema>;
|
|
560
|
-
type WithdrawSponsorshipProposalIntentParams = z.input<typeof sponsorshipProposalWithdrawSchema>;
|
|
561
|
-
type AcceptSponsorshipProposalIntentParams = z.input<typeof sponsorshipProposalAcceptSchema>;
|
|
562
|
-
type RejectSponsorshipProposalIntentParams = z.input<typeof sponsorshipProposalRejectSchema>;
|
|
563
|
-
type CreateCounterOfferIntentParams = z.input<typeof counterOfferSchema>;
|
|
564
|
-
interface ApiCounterOffersQuery {
|
|
565
|
-
originalOrderHash?: string;
|
|
566
|
-
sellerAddress?: string;
|
|
567
|
-
page?: number;
|
|
568
|
-
limit?: number;
|
|
569
|
-
}
|
|
570
|
-
declare const OPEN_LICENSES: readonly ["CC0", "CC BY", "CC BY-SA", "CC BY-NC"];
|
|
571
|
-
type OpenLicense = (typeof OPEN_LICENSES)[number];
|
|
572
|
-
type RemixOfferStatus = "PENDING" | "AUTO_PENDING" | "APPROVED" | "COMPLETED" | "REJECTED" | "EXPIRED" | "SELF_MINTED";
|
|
573
|
-
interface ApiRemixOfferPrice {
|
|
574
|
-
raw: string;
|
|
575
|
-
formatted: string;
|
|
576
|
-
currency: string;
|
|
577
|
-
decimals: number;
|
|
578
|
-
}
|
|
579
|
-
interface ApiRemixOffer {
|
|
580
|
-
id: string;
|
|
581
|
-
status: RemixOfferStatus;
|
|
582
|
-
originalContract: string;
|
|
583
|
-
originalTokenId: string;
|
|
584
|
-
creatorAddress: string;
|
|
585
|
-
requesterAddress: string | null;
|
|
586
|
-
message?: string | null;
|
|
587
|
-
price?: ApiRemixOfferPrice;
|
|
588
|
-
licenseType: string;
|
|
589
|
-
commercial: boolean;
|
|
590
|
-
derivatives: boolean;
|
|
591
|
-
royaltyPct: number | null;
|
|
592
|
-
approvedCollection: string | null;
|
|
593
|
-
remixContract: string | null;
|
|
594
|
-
remixTokenId: string | null;
|
|
595
|
-
orderHash: string | null;
|
|
596
|
-
createdAt: string;
|
|
597
|
-
expiresAt: string;
|
|
598
|
-
updatedAt: string;
|
|
599
|
-
}
|
|
600
|
-
interface ApiPublicRemix {
|
|
601
|
-
id: string;
|
|
602
|
-
remixContract: string | null;
|
|
603
|
-
remixTokenId: string | null;
|
|
604
|
-
licenseType: string;
|
|
605
|
-
commercial: boolean;
|
|
606
|
-
derivatives: boolean;
|
|
607
|
-
createdAt: string;
|
|
608
|
-
}
|
|
609
|
-
interface CreateRemixOfferParams {
|
|
610
|
-
originalContract: string;
|
|
611
|
-
originalTokenId: string;
|
|
612
|
-
licenseType: string;
|
|
613
|
-
commercial: boolean;
|
|
614
|
-
derivatives: boolean;
|
|
615
|
-
royaltyPct?: number;
|
|
616
|
-
proposedPrice?: string;
|
|
617
|
-
proposedCurrency?: string;
|
|
618
|
-
message?: string;
|
|
619
|
-
expiresInDays?: number;
|
|
620
|
-
}
|
|
621
|
-
interface AutoRemixOfferParams {
|
|
622
|
-
originalContract: string;
|
|
623
|
-
originalTokenId: string;
|
|
624
|
-
licenseType: string;
|
|
625
|
-
}
|
|
626
|
-
interface ConfirmSelfRemixParams {
|
|
627
|
-
originalContract: string;
|
|
628
|
-
originalTokenId: string;
|
|
629
|
-
remixContract: string;
|
|
630
|
-
remixTokenId: string;
|
|
631
|
-
txHash?: string;
|
|
632
|
-
licenseType: string;
|
|
633
|
-
commercial: boolean;
|
|
634
|
-
derivatives: boolean;
|
|
635
|
-
royaltyPct?: number;
|
|
636
|
-
}
|
|
637
|
-
interface ConfirmRemixOfferParams {
|
|
638
|
-
approvedCollection: string;
|
|
639
|
-
remixContract: string;
|
|
640
|
-
remixTokenId: string;
|
|
641
|
-
orderHash?: string;
|
|
642
|
-
}
|
|
643
|
-
interface ApiRemixOffersQuery {
|
|
644
|
-
role: "creator" | "requester";
|
|
645
|
-
status?: string;
|
|
646
|
-
page?: number;
|
|
647
|
-
limit?: number;
|
|
648
|
-
}
|
|
649
|
-
interface ApiMetadataSignedUrl {
|
|
650
|
-
url: string;
|
|
651
|
-
}
|
|
652
|
-
interface ApiMetadataUpload {
|
|
653
|
-
cid: string;
|
|
654
|
-
url: string;
|
|
655
|
-
}
|
|
656
|
-
interface ApiPortalMe {
|
|
657
|
-
id: string;
|
|
658
|
-
accountId: string;
|
|
659
|
-
status: string;
|
|
660
|
-
creditBalance: number;
|
|
661
|
-
}
|
|
662
|
-
interface ApiPortalKey {
|
|
663
|
-
id: string;
|
|
664
|
-
prefix: string;
|
|
665
|
-
label: string | null;
|
|
666
|
-
lastUsedAt: string | null;
|
|
667
|
-
createdAt: string;
|
|
668
|
-
}
|
|
669
|
-
interface ApiPortalKeyCreated {
|
|
670
|
-
id: string;
|
|
671
|
-
prefix: string;
|
|
672
|
-
label: string | null;
|
|
673
|
-
plaintext: string;
|
|
674
|
-
}
|
|
675
|
-
interface ApiCreditPayment {
|
|
676
|
-
id: string;
|
|
677
|
-
asset: string;
|
|
678
|
-
amountAtomic: string;
|
|
679
|
-
creditedAmount: number;
|
|
680
|
-
mdlnMultiplier: number;
|
|
681
|
-
txHash: string;
|
|
682
|
-
status: string;
|
|
683
|
-
createdAt: string;
|
|
684
|
-
}
|
|
685
|
-
interface ApiFundingMethod {
|
|
686
|
-
id: string;
|
|
687
|
-
[detail: string]: unknown;
|
|
688
|
-
}
|
|
689
|
-
type ApiFundingStatus = "PENDING" | "SETTLED" | "FAILED" | "EXPIRED";
|
|
690
|
-
interface ApiFundingIntent {
|
|
691
|
-
id: string;
|
|
692
|
-
method: string;
|
|
693
|
-
status: ApiFundingStatus;
|
|
694
|
-
expiresAt: string;
|
|
695
|
-
payer?: string | null;
|
|
696
|
-
}
|
|
697
|
-
interface ApiFundingInstructions {
|
|
698
|
-
chain: string;
|
|
699
|
-
payTo: string;
|
|
700
|
-
asset: string;
|
|
701
|
-
amountAtomic: string;
|
|
702
|
-
}
|
|
703
|
-
type ApiFundingSubmit = {
|
|
704
|
-
status: "SETTLED";
|
|
705
|
-
credited?: number;
|
|
706
|
-
} | {
|
|
707
|
-
status: "PENDING";
|
|
708
|
-
reason: string;
|
|
709
|
-
};
|
|
710
|
-
interface ApiSpendByAction {
|
|
711
|
-
actionKey: string;
|
|
712
|
-
credits: number;
|
|
713
|
-
units: number;
|
|
714
|
-
}
|
|
715
|
-
interface ApiPortalSpend {
|
|
716
|
-
recent: Array<{
|
|
717
|
-
actionKey: string;
|
|
718
|
-
credits: number;
|
|
719
|
-
createdAt: string;
|
|
720
|
-
}>;
|
|
721
|
-
byAction: ApiSpendByAction[];
|
|
722
|
-
spent: number;
|
|
723
|
-
credited: number;
|
|
724
|
-
drift: number;
|
|
725
|
-
}
|
|
726
|
-
interface ApiCollectionProfile {
|
|
727
|
-
contractAddress: string;
|
|
728
|
-
chain: string;
|
|
729
|
-
displayName: string | null;
|
|
730
|
-
description: string | null;
|
|
731
|
-
image: string | null;
|
|
732
|
-
bannerImage: string | null;
|
|
733
|
-
websiteUrl: string | null;
|
|
734
|
-
twitterUrl: string | null;
|
|
735
|
-
discordUrl: string | null;
|
|
736
|
-
telegramUrl: string | null;
|
|
737
|
-
hasGatedContent: boolean;
|
|
738
|
-
gatedContentTitle: string | null;
|
|
739
|
-
slug: string | null;
|
|
740
|
-
updatedBy: string | null;
|
|
741
|
-
updatedAt: string;
|
|
742
|
-
}
|
|
743
|
-
type UpdateCollectionProfileInput = z.output<typeof collectionProfileSchema>;
|
|
744
|
-
interface ApiCollectionSlugClaim {
|
|
745
|
-
id: string;
|
|
746
|
-
slug: string;
|
|
747
|
-
contractAddress: string;
|
|
748
|
-
chain: string;
|
|
749
|
-
walletAddress: string;
|
|
750
|
-
status: "PENDING" | "APPROVED" | "REJECTED";
|
|
751
|
-
adminNotes: string | null;
|
|
752
|
-
notifyEmail: string | null;
|
|
753
|
-
reviewedAt: string | null;
|
|
754
|
-
createdAt: string;
|
|
755
|
-
updatedAt: string;
|
|
756
|
-
}
|
|
757
|
-
interface ApiCreatorProfile {
|
|
758
|
-
walletAddress: string;
|
|
759
|
-
chain: string;
|
|
760
|
-
username: string | null;
|
|
761
|
-
name: string | null;
|
|
762
|
-
bio: string | null;
|
|
763
|
-
avatarImage: string | null;
|
|
764
|
-
collectionImage?: string | null;
|
|
765
|
-
websiteUrl: string | null;
|
|
766
|
-
twitterUrl: string | null;
|
|
767
|
-
discordUrl: string | null;
|
|
768
|
-
telegramUrl: string | null;
|
|
769
|
-
updatedAt: string;
|
|
770
|
-
}
|
|
771
|
-
interface ApiCreatorListResult {
|
|
772
|
-
creators: ApiCreatorProfile[];
|
|
773
|
-
total: number;
|
|
774
|
-
page: number;
|
|
775
|
-
limit: number;
|
|
776
|
-
}
|
|
777
|
-
type ApiChain = "STARKNET" | "ETHEREUM" | "SOLANA" | "BASE" | "BITCOIN";
|
|
778
|
-
interface ApiSession {
|
|
779
|
-
accountId: string;
|
|
780
|
-
publicId: string;
|
|
781
|
-
walletAddress: string | null;
|
|
782
|
-
email: string | null;
|
|
783
|
-
emailDeadline: string | null;
|
|
784
|
-
}
|
|
785
|
-
interface ApiUserWallet {
|
|
786
|
-
walletAddress: string;
|
|
787
|
-
email?: string | null;
|
|
788
|
-
emailDeadline?: string | null;
|
|
789
|
-
}
|
|
790
|
-
interface ApiCollectionClaim {
|
|
791
|
-
id: string;
|
|
792
|
-
contractAddress: string;
|
|
793
|
-
chain: string;
|
|
794
|
-
claimantAddress: string | null;
|
|
795
|
-
status: "PENDING" | "AUTO_APPROVED" | "APPROVED" | "REJECTED";
|
|
796
|
-
verificationMethod: "ONCHAIN" | "SIGNATURE" | "MANUAL";
|
|
797
|
-
createdAt: string;
|
|
798
|
-
}
|
|
799
|
-
interface ApiAdminCollectionClaim extends ApiCollectionClaim {
|
|
800
|
-
claimantEmail: string | null;
|
|
801
|
-
notes: string | null;
|
|
802
|
-
adminNotes: string | null;
|
|
803
|
-
reviewedBy: string | null;
|
|
804
|
-
reviewedAt: string | null;
|
|
805
|
-
updatedAt: string;
|
|
806
|
-
}
|
|
807
|
-
interface ApiBusinessProvisioning {
|
|
808
|
-
chain: string;
|
|
809
|
-
walletAddress: string;
|
|
810
|
-
}
|
|
811
|
-
interface ApiWalletActivity {
|
|
812
|
-
id: string;
|
|
813
|
-
chain: string;
|
|
814
|
-
accountAddress: string;
|
|
815
|
-
type: "SEND" | "RECEIVE" | "SWAP" | "DEPLOY" | "GUARDIAN_SET" | "GUARDIAN_TRIGGER_ESCAPE" | "GUARDIAN_COMPLETE_ESCAPE" | "GUARDIAN_CANCEL_ESCAPE";
|
|
816
|
-
txHash: string;
|
|
817
|
-
blockNumber: string;
|
|
818
|
-
timestamp: string;
|
|
819
|
-
tokenAddress: string | null;
|
|
820
|
-
amount: string | null;
|
|
821
|
-
counterparty: string | null;
|
|
822
|
-
tokenInAddress: string | null;
|
|
823
|
-
amountIn: string | null;
|
|
824
|
-
tokenOutAddress: string | null;
|
|
825
|
-
amountOut: string | null;
|
|
826
|
-
}
|
|
827
|
-
interface ApiRewardsBadge {
|
|
828
|
-
key: string;
|
|
829
|
-
name: string;
|
|
830
|
-
description: string;
|
|
831
|
-
icon: string;
|
|
832
|
-
color: string;
|
|
833
|
-
category: string;
|
|
834
|
-
}
|
|
835
|
-
interface ApiRewardsLevel {
|
|
836
|
-
level: number;
|
|
837
|
-
name: string;
|
|
838
|
-
xpRequired: number;
|
|
839
|
-
badgeColor: string;
|
|
840
|
-
description: string | null;
|
|
841
|
-
}
|
|
842
|
-
interface ApiUserRewards {
|
|
843
|
-
address: string;
|
|
844
|
-
totalXp: number;
|
|
845
|
-
currentLevel: number;
|
|
846
|
-
currentLevelName: string;
|
|
847
|
-
badgeColor: string;
|
|
848
|
-
nextLevel: {
|
|
849
|
-
level: number;
|
|
850
|
-
name: string;
|
|
851
|
-
xpRequired: number;
|
|
852
|
-
} | null;
|
|
853
|
-
progressPct: number;
|
|
854
|
-
breakdown: Record<string, number>;
|
|
855
|
-
badges: ApiRewardsBadge[];
|
|
856
|
-
computedAt: string | null;
|
|
857
|
-
}
|
|
858
|
-
interface ApiRewardsLeaderboardEntry {
|
|
859
|
-
rank: number;
|
|
860
|
-
address: string;
|
|
861
|
-
accountId: string | null;
|
|
862
|
-
publicId: string | null;
|
|
863
|
-
totalXp: number;
|
|
864
|
-
currentLevel: number;
|
|
865
|
-
currentLevelName: string;
|
|
866
|
-
badgeColor: string;
|
|
867
|
-
}
|
|
868
|
-
interface ApiRewardsConfig {
|
|
869
|
-
levels: ApiRewardsLevel[];
|
|
870
|
-
actions: {
|
|
871
|
-
type: string;
|
|
872
|
-
label: string;
|
|
873
|
-
xp: number;
|
|
874
|
-
dailyCap: number | null;
|
|
875
|
-
}[];
|
|
876
|
-
badges: ApiRewardsBadge[];
|
|
877
|
-
}
|
|
878
|
-
interface ApiRewardsBatchEntry {
|
|
879
|
-
address: string;
|
|
880
|
-
totalXp: number;
|
|
881
|
-
currentLevel: number;
|
|
882
|
-
currentLevelName: string;
|
|
883
|
-
badgeColor: string;
|
|
884
|
-
}
|
|
885
|
-
interface ApiPointEvent {
|
|
886
|
-
id: string;
|
|
887
|
-
actionType: string;
|
|
888
|
-
xp: number;
|
|
889
|
-
multiplier: number;
|
|
890
|
-
finalXp: number;
|
|
891
|
-
txHash: string | null;
|
|
892
|
-
createdAt: string;
|
|
893
|
-
}
|
|
894
|
-
interface ApiPlatformStats {
|
|
895
|
-
collections: number;
|
|
896
|
-
tokens: number;
|
|
897
|
-
sales: number;
|
|
898
|
-
}
|
|
899
|
-
interface ApiTierOnchain {
|
|
900
|
-
maxSupply: string;
|
|
901
|
-
minted: string;
|
|
902
|
-
startTime: number | null;
|
|
903
|
-
endTime: number | null;
|
|
904
|
-
royaltyBps: number;
|
|
905
|
-
}
|
|
906
|
-
interface ApiSwapQuoteRequest {
|
|
907
|
-
sellSymbol?: string;
|
|
908
|
-
buySymbol?: string;
|
|
909
|
-
sellTokenAddress?: string;
|
|
910
|
-
buyTokenAddress?: string;
|
|
911
|
-
sellAmountRaw?: string;
|
|
912
|
-
buyAmountRaw?: string;
|
|
913
|
-
takerAddress?: string;
|
|
914
|
-
}
|
|
915
|
-
interface ApiSwapQuote {
|
|
916
|
-
quoteId: string;
|
|
917
|
-
sellTokenAddress: string;
|
|
918
|
-
sellAmount: string;
|
|
919
|
-
buyTokenAddress: string;
|
|
920
|
-
buyAmount: string;
|
|
921
|
-
}
|
|
922
|
-
interface ApiIpNftTokenData {
|
|
923
|
-
owner: string;
|
|
924
|
-
metadataUri: string;
|
|
925
|
-
originalCreator: string;
|
|
926
|
-
registeredAt: number;
|
|
927
|
-
}
|
|
928
|
-
interface ApiTokensQuery {
|
|
929
|
-
page?: number;
|
|
930
|
-
limit?: number;
|
|
931
|
-
sort?: string;
|
|
932
|
-
ipType?: string;
|
|
933
|
-
derivatives?: "allowed";
|
|
934
|
-
}
|
|
935
|
-
interface ApiUsernameClaim {
|
|
936
|
-
id: string;
|
|
937
|
-
username: string;
|
|
938
|
-
walletAddress: string;
|
|
939
|
-
status: "PENDING" | "APPROVED" | "REJECTED";
|
|
940
|
-
adminNotes: string | null;
|
|
941
|
-
reviewedAt: string | null;
|
|
942
|
-
createdAt: string;
|
|
943
|
-
}
|
|
944
|
-
type ApiReportTargetType = "COLLECTION" | "TOKEN" | "CREATOR" | "COMMENT";
|
|
945
|
-
interface ApiSubmitReport {
|
|
946
|
-
targetType: ApiReportTargetType;
|
|
947
|
-
targetContract?: string;
|
|
948
|
-
targetTokenId?: string;
|
|
949
|
-
targetAddress?: string;
|
|
950
|
-
targetId?: string;
|
|
951
|
-
categories: string[];
|
|
952
|
-
description?: string;
|
|
953
|
-
}
|
|
954
|
-
interface ApiSponsorshipOffer {
|
|
955
|
-
id: string;
|
|
956
|
-
chain: string;
|
|
957
|
-
contractAddress: string;
|
|
958
|
-
offerId: string;
|
|
959
|
-
author: string;
|
|
960
|
-
nftContract: string;
|
|
961
|
-
tokenId: string;
|
|
962
|
-
minAmount: string;
|
|
963
|
-
duration: number;
|
|
964
|
-
paymentToken: string;
|
|
965
|
-
licenseTermsUri: string;
|
|
966
|
-
transferable: boolean;
|
|
967
|
-
royaltyBps: number;
|
|
968
|
-
specificSponsor: string | null;
|
|
969
|
-
open: boolean;
|
|
970
|
-
createdAtChain: string;
|
|
971
|
-
updatedAt: string;
|
|
972
|
-
}
|
|
973
|
-
interface ApiSponsorshipBid {
|
|
974
|
-
id: string;
|
|
975
|
-
chain: string;
|
|
976
|
-
contractAddress: string;
|
|
977
|
-
offerId: string;
|
|
978
|
-
sponsor: string;
|
|
979
|
-
amount: string;
|
|
980
|
-
placedAtChain: string;
|
|
981
|
-
updatedAt: string;
|
|
982
|
-
}
|
|
983
|
-
interface ApiSponsorshipProposal {
|
|
984
|
-
id: string;
|
|
985
|
-
chain: string;
|
|
986
|
-
contractAddress: string;
|
|
987
|
-
proposalId: string;
|
|
988
|
-
proposer: string;
|
|
989
|
-
nftContract: string;
|
|
990
|
-
tokenId: string;
|
|
991
|
-
amount: string;
|
|
992
|
-
duration: number;
|
|
993
|
-
validUntil: string | null;
|
|
994
|
-
paymentToken: string;
|
|
995
|
-
licenseTermsUri: string;
|
|
996
|
-
transferable: boolean;
|
|
997
|
-
royaltyBps: number;
|
|
998
|
-
open: boolean;
|
|
999
|
-
accepted: boolean | null;
|
|
1000
|
-
createdAtChain: string;
|
|
1001
|
-
closedAtChain: string | null;
|
|
1002
|
-
updatedAt: string;
|
|
1003
|
-
}
|
|
1004
|
-
interface ApiSponsorshipLicense {
|
|
1005
|
-
id: string;
|
|
1006
|
-
chain: string;
|
|
1007
|
-
contractAddress: string;
|
|
1008
|
-
tokenId: string;
|
|
1009
|
-
author: string;
|
|
1010
|
-
recipient: string;
|
|
1011
|
-
assetContract: string;
|
|
1012
|
-
assetTokenId: string;
|
|
1013
|
-
expiresAt: string;
|
|
1014
|
-
transferable: boolean;
|
|
1015
|
-
royaltyBps: number;
|
|
1016
|
-
licenseTermsUri: string;
|
|
1017
|
-
offerId: string | null;
|
|
1018
|
-
proposalId: string | null;
|
|
1019
|
-
mintedAtChain: string;
|
|
1020
|
-
currentHolder?: string | null;
|
|
1021
|
-
}
|
|
1022
|
-
interface ApiSponsorshipOffersQuery {
|
|
1023
|
-
limit?: number;
|
|
1024
|
-
nftContract?: string;
|
|
1025
|
-
author?: string;
|
|
1026
|
-
owner?: string;
|
|
1027
|
-
open?: boolean;
|
|
1028
|
-
}
|
|
1029
|
-
interface ApiSponsorshipProposalsQuery {
|
|
1030
|
-
limit?: number;
|
|
1031
|
-
nftContract?: string;
|
|
1032
|
-
proposer?: string;
|
|
1033
|
-
owner?: string;
|
|
1034
|
-
open?: boolean;
|
|
1035
|
-
}
|
|
1036
|
-
interface ApiSponsorshipLicensesQuery {
|
|
1037
|
-
limit?: number;
|
|
1038
|
-
holder?: string;
|
|
1039
|
-
author?: string;
|
|
1040
|
-
}
|
|
1041
|
-
interface ApiCollectionsListQuery {
|
|
1042
|
-
page?: number;
|
|
1043
|
-
limit?: number;
|
|
1044
|
-
owner?: string;
|
|
1045
|
-
service?: string;
|
|
1046
|
-
sort?: CollectionSort;
|
|
1047
|
-
isFeatured?: boolean;
|
|
1048
|
-
hideEmpty?: boolean;
|
|
1049
|
-
standard?: string;
|
|
1050
|
-
chain?: ChainFilter;
|
|
1051
|
-
}
|
|
1052
|
-
interface ApiPricingRule {
|
|
1053
|
-
actionKey: string;
|
|
1054
|
-
chain: string;
|
|
1055
|
-
service: string;
|
|
1056
|
-
credits: number;
|
|
1057
|
-
}
|
|
1058
|
-
interface ApiPricing {
|
|
1059
|
-
creditsPerUsdc: number;
|
|
1060
|
-
mdln?: {
|
|
1061
|
-
contract: string | null;
|
|
1062
|
-
tiers: {
|
|
1063
|
-
minWholeTokens: number;
|
|
1064
|
-
multiplier: number;
|
|
1065
|
-
}[];
|
|
1066
|
-
};
|
|
1067
|
-
pricing: {
|
|
1068
|
-
default: number;
|
|
1069
|
-
rules: ApiPricingRule[];
|
|
1070
|
-
};
|
|
1071
|
-
}
|
|
1072
|
-
type CreateTransferTokenIntentParams = z.input<typeof transferTokenSchema>;
|
|
1073
|
-
type CreateTransferNftIntentParams = z.input<typeof transferNftSchema>;
|
|
1074
|
-
type CreateTransferCollectionOwnershipIntentParams = z.input<typeof transferCollectionOwnershipSchema>;
|
|
1075
|
-
type CreateCommentIntentParams = z.input<typeof commentSchema>;
|
|
1076
|
-
type CreateGenesisMintIntentParams = z.input<typeof genesisMintSchema>;
|
|
1077
|
-
type CreatePopClaimIntentParams = z.input<typeof popClaimSchema>;
|
|
1078
|
-
type CreatePopBurnIntentParams = z.input<typeof popBurnSchema>;
|
|
1079
|
-
type CreateDropClaimIntentParams = z.input<typeof dropClaimSchema>;
|
|
1080
|
-
type WalletManageAction = "add_owner" | "remove_owner" | "cancel_escape" | "set_first_guardian" | "trigger_escape" | "complete_escape";
|
|
1081
|
-
type CreateWalletManageIntentParams = z.input<typeof walletManageSchema>;
|
|
1082
|
-
type CreateSwapIntentParams = z.input<typeof swapIntentSchema>;
|
|
1083
|
-
type CreateFundingTransferIntentParams = z.input<typeof fundingTransferSchema>;
|
|
1084
|
-
type DropManageAction = "issue" | "set_allowlist_root";
|
|
1085
|
-
type CreateDropManageIntentParams = z.input<typeof dropManageSchema>;
|
|
1086
|
-
type PopManageAction = "issue" | "set_allowlist_root";
|
|
1087
|
-
type CreatePopManageIntentParams = z.input<typeof popManageSchema>;
|
|
1088
|
-
|
|
1089
|
-
type MedialaneErrorCode = "TOKEN_NOT_FOUND" | "COLLECTION_NOT_FOUND" | "ORDER_NOT_FOUND" | "INTENT_NOT_FOUND" | "INTENT_EXPIRED" | "RATE_LIMITED" | "NETWORK_NOT_SUPPORTED" | "APPROVAL_FAILED" | "TRANSACTION_FAILED" | "INVALID_PARAMS" | "UNAUTHORIZED" | "UNKNOWN";
|
|
1090
|
-
|
|
1091
|
-
interface OfferItem {
|
|
1092
|
-
item_type: string;
|
|
1093
|
-
token: string;
|
|
1094
|
-
identifier_or_criteria: string;
|
|
1095
|
-
amount: string;
|
|
1096
|
-
}
|
|
1097
|
-
interface ConsiderationItem extends OfferItem {
|
|
1098
|
-
recipient: string;
|
|
1099
|
-
}
|
|
1100
|
-
interface OrderParameters {
|
|
1101
|
-
offerer: string;
|
|
1102
|
-
marketplace: string;
|
|
1103
|
-
offer: OfferItem;
|
|
1104
|
-
consideration: ConsiderationItem;
|
|
1105
|
-
royalty_max_bps: string;
|
|
1106
|
-
start_time: string;
|
|
1107
|
-
end_time: string;
|
|
1108
|
-
salt: string;
|
|
1109
|
-
counter: string;
|
|
1110
|
-
}
|
|
1111
|
-
interface Order {
|
|
1112
|
-
parameters: OrderParameters;
|
|
1113
|
-
signature: string[];
|
|
1114
|
-
}
|
|
1115
|
-
interface TxResult {
|
|
1116
|
-
txHash: string;
|
|
1117
|
-
}
|
|
1118
|
-
interface OrderDetails {
|
|
1119
|
-
offerer: string;
|
|
1120
|
-
offer: OfferItem;
|
|
1121
|
-
consideration: ConsiderationItem;
|
|
1122
|
-
royalty_max_bps: string;
|
|
1123
|
-
start_time: bigint;
|
|
1124
|
-
end_time: bigint;
|
|
1125
|
-
order_status: string;
|
|
1126
|
-
counter: string;
|
|
1127
|
-
remaining_amount?: string;
|
|
1128
|
-
}
|
|
1129
|
-
|
|
1130
|
-
interface CreateCreatorCoinParams {
|
|
1131
|
-
owner: string;
|
|
1132
|
-
name: string;
|
|
1133
|
-
symbol: string;
|
|
1134
|
-
initialSupply: bigint | string;
|
|
1135
|
-
salt?: bigint | string;
|
|
1136
|
-
}
|
|
1137
|
-
interface EkuboPoolParams {
|
|
1138
|
-
fee: bigint | string;
|
|
1139
|
-
tickSpacing: bigint | string;
|
|
1140
|
-
startingPrice: {
|
|
1141
|
-
mag: bigint | string;
|
|
1142
|
-
sign: boolean;
|
|
1143
|
-
};
|
|
1144
|
-
bound: bigint | string;
|
|
1145
|
-
}
|
|
1146
|
-
interface EkuboLaunchParams {
|
|
1147
|
-
creatorCoin: string;
|
|
1148
|
-
quoteToken: string;
|
|
1149
|
-
initialHolders: string[];
|
|
1150
|
-
initialHoldersAmounts: (bigint | string)[];
|
|
1151
|
-
transferRestrictionDelay?: number;
|
|
1152
|
-
maxPercentageBuyLaunch?: number;
|
|
1153
|
-
ekubo: EkuboPoolParams;
|
|
1154
|
-
quoteFundAmount?: bigint | string;
|
|
1155
|
-
}
|
|
1156
|
-
declare const VALIDATED_EKUBO_PARAMS: EkuboPoolParams;
|
|
1157
|
-
declare function priceToEkuboParams(quoteDecimals: number, price?: number): EkuboPoolParams;
|
|
1158
|
-
declare function validatePrice(quoteDecimals: number, price: number): string | null;
|
|
1159
|
-
declare const MAX_TEAM_ALLOCATION_PERCENT = 10;
|
|
1160
|
-
declare const MAX_HOLDERS_AT_LAUNCH = 10;
|
|
1161
|
-
interface CreatorCoinGuarantees {
|
|
1162
|
-
isLaunched: boolean;
|
|
1163
|
-
launchedAtBlock: number | null;
|
|
1164
|
-
totalSupplyRaw: string;
|
|
1165
|
-
teamAllocationRaw: string;
|
|
1166
|
-
teamAllocationPercent: number | null;
|
|
1167
|
-
liquidityPositionId: string | null;
|
|
1168
|
-
}
|
|
1169
|
-
declare function getCreatorCoinGuarantees(coinAddress: string, provider: ProviderInterface): Promise<CreatorCoinGuarantees | null>;
|
|
1170
|
-
declare function buildCreateCreatorCoinCall(params: CreateCreatorCoinParams): Call;
|
|
1171
|
-
declare function buildLaunchOnEkuboCalls(params: EkuboLaunchParams): Call[];
|
|
1172
|
-
interface CreatorCoinReceiptLike {
|
|
1173
|
-
events?: Array<{
|
|
1174
|
-
from_address?: string;
|
|
1175
|
-
keys?: string[];
|
|
1176
|
-
data?: string[];
|
|
1177
|
-
}>;
|
|
1178
|
-
}
|
|
1179
|
-
declare function parseCreatorCoinCreated(receipt: CreatorCoinReceiptLike): string;
|
|
1180
|
-
declare class CreatorCoinService {
|
|
1181
|
-
private readonly factoryAddress;
|
|
1182
|
-
constructor(config: ResolvedConfig);
|
|
1183
|
-
private _factory;
|
|
1184
|
-
createCreatorCoin(account: AccountInterface, params: CreateCreatorCoinParams): Promise<TxResult>;
|
|
1185
|
-
launchOnEkubo(account: AccountInterface, params: EkuboLaunchParams): Promise<TxResult>;
|
|
1186
|
-
isCreatorCoin(address: string, account: AccountInterface): Promise<boolean>;
|
|
1187
|
-
}
|
|
1188
|
-
|
|
1189
|
-
interface PopAllowlist {
|
|
1190
|
-
/** Merkle root to publish with `set_allowlist_root`. */
|
|
1191
|
-
root: string;
|
|
1192
|
-
/** Proof per address, keyed by normalized Starknet address. */
|
|
1193
|
-
proofs: Record<string, string[]>;
|
|
1194
|
-
}
|
|
1195
|
-
declare function buildPopAllowlist(addresses: string[]): PopAllowlist;
|
|
1196
|
-
/** True when `proof` places `address` under `root` — checked before sending a claim. */
|
|
1197
|
-
declare function verifyPopProof(root: string, address: string, proof: string[]): boolean;
|
|
1198
|
-
declare function encodePopClaimFragment(proof: string[]): string;
|
|
1199
|
-
/** The proof in a claim link's fragment; `null` when absent or malformed. */
|
|
1200
|
-
declare function decodePopClaimFragment(fragment: string): string[] | null;
|
|
1201
|
-
|
|
1202
|
-
interface PopClaimLink {
|
|
1203
|
-
address: string;
|
|
1204
|
-
url: string;
|
|
1205
|
-
}
|
|
1206
|
-
/** One claim link per allowlisted address: the collection page with the proof in its fragment. */
|
|
1207
|
-
declare function popClaimLinks(origin: string, collection: string, list: PopAllowlist): PopClaimLink[];
|
|
1208
|
-
declare function popClaimLinksCsv(links: PopClaimLink[]): string;
|
|
1209
|
-
interface PopClaimInfo {
|
|
1210
|
-
/** Allowlist Merkle root; 0 when claims are closed. */
|
|
1211
|
-
root: string;
|
|
1212
|
-
/** Unix seconds; 0 = no deadline. */
|
|
1213
|
-
claimEndTime: number;
|
|
1214
|
-
}
|
|
1215
|
-
/** Reads a collection's allowlist root and claim deadline from chain. */
|
|
1216
|
-
declare function popClaimInfo(provider: Pick<ProviderInterface, "callContract">, collection: string): Promise<PopClaimInfo>;
|
|
1217
|
-
type PopClaimState = "loading" | "claimed" | "closed" | "ended" | "no-link" | "wrong-wallet" | "ready";
|
|
1218
|
-
/** What a claim page should show, decided before any transaction is sent. */
|
|
1219
|
-
declare function popClaimState(input: {
|
|
1220
|
-
hasClaimed: boolean | null;
|
|
1221
|
-
proof: string[] | null;
|
|
1222
|
-
wallet: string | null;
|
|
1223
|
-
/** The collection's claim settings, with `now` in Unix seconds. */
|
|
1224
|
-
info: (PopClaimInfo & {
|
|
1225
|
-
now: number;
|
|
1226
|
-
}) | null;
|
|
1227
|
-
}): PopClaimState;
|
|
1228
|
-
/** Calls on a POP collection, ready for `account.execute` or a sponsored transaction. */
|
|
1229
|
-
declare const popCalls: {
|
|
1230
|
-
claim(collection: string, proof: string[]): Call;
|
|
1231
|
-
/** An empty `tokenUri` uses the collection's URI. */
|
|
1232
|
-
issue(collection: string, recipient: string, tokenUri?: string): Call;
|
|
1233
|
-
/** Only the token's holder can burn it. */
|
|
1234
|
-
burn(collection: string, tokenId: string | bigint): Call;
|
|
1235
|
-
setAllowlistRoot(collection: string, root: string): Call;
|
|
1236
|
-
};
|
|
1237
|
-
|
|
1238
|
-
interface DropOnchain {
|
|
1239
|
-
organizer: string;
|
|
1240
|
-
/** Unix seconds; 0 = open from creation. */
|
|
1241
|
-
startTime: number;
|
|
1242
|
-
/** Unix seconds; 0 = never closes. */
|
|
1243
|
-
endTime: number;
|
|
1244
|
-
price: bigint;
|
|
1245
|
-
paymentToken: string;
|
|
1246
|
-
/** 0 = unlimited. */
|
|
1247
|
-
maxPerWallet: bigint;
|
|
1248
|
-
/** 0x0 = open to everyone. */
|
|
1249
|
-
allowlistRoot: string;
|
|
1250
|
-
/** 0 = no cap. */
|
|
1251
|
-
maxSupply: bigint;
|
|
1252
|
-
totalMinted: bigint;
|
|
1253
|
-
}
|
|
1254
|
-
/** A drop's organizer, terms, allowlist root and supply, read from chain. */
|
|
1255
|
-
declare function readDrop(provider: Pick<ProviderInterface, "callContract">, collection: string): Promise<DropOnchain>;
|
|
1256
|
-
/** How many tokens `wallet` has claimed from this drop (gifts not included). */
|
|
1257
|
-
declare function dropClaimedBy(provider: Pick<ProviderInterface, "callContract">, collection: string, wallet: string): Promise<bigint>;
|
|
1258
|
-
type DropMintStateKind = "loading" | "upcoming" | "ended" | "sold-out" | "no-wallet" | "no-link" | "not-on-list" | "limit-reached" | "insufficient-balance" | "ready";
|
|
1259
|
-
interface DropMintState {
|
|
1260
|
-
state: DropMintStateKind;
|
|
1261
|
-
/** Largest quantity this wallet can claim now; 0 unless `ready`. */
|
|
1262
|
-
maxQuantity: bigint;
|
|
1263
|
-
}
|
|
1264
|
-
/** What the mint button should show, decided before any transaction is sent. */
|
|
1265
|
-
declare function dropMintState(input: {
|
|
1266
|
-
drop: DropOnchain | null;
|
|
1267
|
-
wallet: string | null;
|
|
1268
|
-
/** `claimed_by(wallet)`; null while loading. */
|
|
1269
|
-
claimed: bigint | null;
|
|
1270
|
-
/** From the claim link; null when the page was opened without one. */
|
|
1271
|
-
proof: string[] | null;
|
|
1272
|
-
/** Wallet balance of the payment token; null while loading (ignored for free drops). */
|
|
1273
|
-
balance: bigint | null;
|
|
1274
|
-
/** Platform fee added to a mint, in basis points. */
|
|
1275
|
-
feeBps: number;
|
|
1276
|
-
/** Unix seconds. */
|
|
1277
|
-
now: number;
|
|
1278
|
-
}): DropMintState;
|
|
1279
|
-
/** One claim link per allowlisted address: the drop page with the proof in its fragment. */
|
|
1280
|
-
declare function dropClaimLinks(origin: string, collection: string, list: PopAllowlist): PopClaimLink[];
|
|
1281
|
-
|
|
1282
|
-
type ApiKeyAction = "replace_api_key" | "delete_api_key";
|
|
1283
|
-
interface ApiKeyConfirmationInput {
|
|
1284
|
-
action: ApiKeyAction;
|
|
1285
|
-
/** For `delete_api_key`, the key's id; for `replace_api_key`, the current key's id, or `none`. */
|
|
1286
|
-
key: string;
|
|
1287
|
-
/** The account's public id. */
|
|
1288
|
-
account: string;
|
|
1289
|
-
/** Unix seconds. */
|
|
1290
|
-
expiresAt: number;
|
|
1291
|
-
}
|
|
1292
|
-
/** What the account's wallet signs to approve one API key change. */
|
|
1293
|
-
interface ApiKeyConfirmation {
|
|
1294
|
-
expiresAt: number;
|
|
1295
|
-
signature: string[];
|
|
1296
|
-
}
|
|
1297
|
-
declare function apiKeyConfirmationTypedData(input: ApiKeyConfirmationInput): TypedData;
|
|
1298
|
-
|
|
1299
|
-
declare class MedialaneApiError extends Error {
|
|
1300
|
-
readonly status: number;
|
|
1301
|
-
readonly retryAfterMs?: number | undefined;
|
|
1302
|
-
readonly details?: unknown | undefined;
|
|
1303
|
-
readonly code: MedialaneErrorCode;
|
|
1304
|
-
constructor(status: number, message: string, retryAfterMs?: number | undefined, details?: unknown | undefined);
|
|
1305
|
-
}
|
|
1306
|
-
declare class ApiClient {
|
|
1307
|
-
private readonly baseUrl;
|
|
1308
|
-
private readonly chain;
|
|
1309
|
-
private readonly baseHeaders;
|
|
1310
|
-
private readonly retryOptions;
|
|
1311
|
-
constructor(baseUrl: string, apiKey?: string, retryOptions?: RetryOptions, chain?: Chain);
|
|
1312
|
-
private addr;
|
|
1313
|
-
private request;
|
|
1314
|
-
private get;
|
|
1315
|
-
private post;
|
|
1316
|
-
private patch;
|
|
1317
|
-
private bearer;
|
|
1318
|
-
getOrders(query?: ApiOrdersQuery): Promise<ApiResponse<ApiOrder[]>>;
|
|
1319
|
-
getOrder(orderHash: string): Promise<ApiResponse<ApiOrder>>;
|
|
1320
|
-
getActiveOrdersForToken(contract: string, tokenId: string): Promise<ApiResponse<ApiOrder[]>>;
|
|
1321
|
-
getReceivedOffers(address: string, opts?: {
|
|
1322
|
-
page?: number;
|
|
1323
|
-
limit?: number;
|
|
1324
|
-
}): Promise<ApiResponse<ApiOrder[]>>;
|
|
1325
|
-
getOrdersByUser(address: string, page?: number, limit?: number): Promise<ApiResponse<ApiOrder[]>>;
|
|
1326
|
-
getToken(contract: string, tokenId: string, wait?: boolean): Promise<ApiResponse<ApiToken>>;
|
|
1327
|
-
getTokenBalance(contract: string, tokenId: string, owner: string): Promise<ApiResponse<ApiTokenBalance>>;
|
|
1328
|
-
getTokensByOwner(address: string, page?: number, limit?: number): Promise<ApiResponse<ApiToken[]>>;
|
|
1329
|
-
getTokenHistory(contract: string, tokenId: string, page?: number, limit?: number): Promise<ApiResponse<ApiActivity[]>>;
|
|
1330
|
-
getCollection(contract: string): Promise<ApiResponse<ApiCollection>>;
|
|
1331
|
-
getCollectionTokens(contract: string, page?: number, limit?: number, sort?: CollectionTokensSort): Promise<ApiResponse<ApiToken[]>>;
|
|
1332
|
-
getActivities(query?: ApiActivitiesQuery): Promise<ApiResponse<ApiActivity[]>>;
|
|
1333
|
-
getActivitiesByAddress(address: string, page?: number, limit?: number): Promise<ApiResponse<ApiActivity[]>>;
|
|
1334
|
-
getTokenComments(contract: string, tokenId: string, opts?: {
|
|
1335
|
-
page?: number;
|
|
1336
|
-
limit?: number;
|
|
1337
|
-
}): Promise<ApiResponse<ApiComment[]>>;
|
|
1338
|
-
search(q: string, limit?: number, chain?: ChainFilter): Promise<ApiResponse<ApiSearchResult> & {
|
|
1339
|
-
query: string;
|
|
1340
|
-
}>;
|
|
1341
|
-
createListingIntent(params: CreateListingIntentParams): Promise<ApiResponse<ApiIntentCreated>>;
|
|
1342
|
-
createOfferIntent(params: MakeOfferIntentParams): Promise<ApiResponse<ApiIntentCreated>>;
|
|
1343
|
-
createFulfillIntent(params: FulfillOrderIntentParams): Promise<ApiResponse<ApiIntentCreated>>;
|
|
1344
|
-
createCancelIntent(params: CancelOrderIntentParams): Promise<ApiResponse<ApiIntentCreated>>;
|
|
1345
|
-
createCheckoutIntent(params: CreateCheckoutIntentParams): Promise<{
|
|
1346
|
-
data: ApiCheckoutIntentResult[];
|
|
1347
|
-
}>;
|
|
1348
|
-
getIntent(id: string): Promise<ApiResponse<ApiIntent>>;
|
|
1349
|
-
submitIntentSignature(id: string, signature: string[]): Promise<ApiResponse<ApiIntent>>;
|
|
1350
|
-
confirmIntent(id: string, txHash: string): Promise<ApiResponse<ApiIntent>>;
|
|
1351
|
-
syncTransaction(txHash: string): Promise<ApiResponse<ApiTxSyncResult>>;
|
|
1352
|
-
createMintIntent(params: CreateMintIntentParams): Promise<ApiResponse<ApiIntentCreated>>;
|
|
1353
|
-
createTransferTokenIntent(params: CreateTransferTokenIntentParams): Promise<ApiResponse<ApiIntentCreated>>;
|
|
1354
|
-
createTransferNftIntent(params: CreateTransferNftIntentParams): Promise<ApiResponse<ApiIntentCreated>>;
|
|
1355
|
-
createTransferCollectionOwnershipIntent(params: CreateTransferCollectionOwnershipIntentParams): Promise<ApiResponse<ApiIntentCreated>>;
|
|
1356
|
-
createCommentIntent(params: CreateCommentIntentParams): Promise<ApiResponse<ApiIntentCreated>>;
|
|
1357
|
-
createGenesisMintIntent(params: CreateGenesisMintIntentParams): Promise<ApiResponse<ApiIntentCreated>>;
|
|
1358
|
-
createPopClaimIntent(params: CreatePopClaimIntentParams): Promise<ApiResponse<ApiIntentCreated>>;
|
|
1359
|
-
createPopBurnIntent(params: CreatePopBurnIntentParams): Promise<ApiResponse<ApiIntentCreated>>;
|
|
1360
|
-
createDropClaimIntent(params: CreateDropClaimIntentParams): Promise<ApiResponse<ApiIntentCreated>>;
|
|
1361
|
-
createWalletManageIntent(params: CreateWalletManageIntentParams): Promise<ApiResponse<ApiIntentCreated>>;
|
|
1362
|
-
createSwapIntent(params: CreateSwapIntentParams): Promise<ApiResponse<ApiIntentCreated>>;
|
|
1363
|
-
createFundingTransferIntent(params: CreateFundingTransferIntentParams): Promise<ApiResponse<ApiIntentCreated>>;
|
|
1364
|
-
createDropManageIntent(params: CreateDropManageIntentParams): Promise<ApiResponse<ApiIntentCreated>>;
|
|
1365
|
-
createPopManageIntent(params: CreatePopManageIntentParams): Promise<ApiResponse<ApiIntentCreated>>;
|
|
1366
|
-
createCollectionIntent(params: CreateCollectionIntentParams): Promise<ApiResponse<ApiIntentCreated>>;
|
|
1367
|
-
createTierIntent(params: CreateTierIntentParams): Promise<ApiResponse<ApiIntentCreated>>;
|
|
1368
|
-
emitToRecipients(params: EmissionParams): Promise<ApiResponse<ApiEmissionResult>>;
|
|
1369
|
-
createCoinIntent(params: CreateCoinIntentParams): Promise<ApiResponse<ApiIntentCreated>>;
|
|
1370
|
-
launchCoinIntent(params: LaunchCoinIntentParams): Promise<ApiResponse<ApiIntentCreated>>;
|
|
1371
|
-
createSponsorshipOfferIntent(params: CreateSponsorshipOfferIntentParams): Promise<ApiResponse<ApiIntentCreated>>;
|
|
1372
|
-
setSponsorshipOfferOpenIntent(params: SetSponsorshipOfferOpenIntentParams): Promise<ApiResponse<ApiIntentCreated>>;
|
|
1373
|
-
placeSponsorshipBidIntent(params: PlaceSponsorshipBidIntentParams): Promise<ApiResponse<ApiIntentCreated>>;
|
|
1374
|
-
retractSponsorshipBidIntent(params: RetractSponsorshipBidIntentParams): Promise<ApiResponse<ApiIntentCreated>>;
|
|
1375
|
-
acceptSponsorshipBidIntent(params: AcceptSponsorshipBidIntentParams): Promise<ApiResponse<ApiIntentCreated>>;
|
|
1376
|
-
createSponsorshipProposalIntent(params: CreateSponsorshipProposalIntentParams): Promise<ApiResponse<ApiIntentCreated>>;
|
|
1377
|
-
withdrawSponsorshipProposalIntent(params: WithdrawSponsorshipProposalIntentParams): Promise<ApiResponse<ApiIntentCreated>>;
|
|
1378
|
-
acceptSponsorshipProposalIntent(params: AcceptSponsorshipProposalIntentParams): Promise<ApiResponse<ApiIntentCreated>>;
|
|
1379
|
-
rejectSponsorshipProposalIntent(params: RejectSponsorshipProposalIntentParams): Promise<ApiResponse<ApiIntentCreated>>;
|
|
1380
|
-
createCounterOfferIntent(params: CreateCounterOfferIntentParams, siwsToken?: string): Promise<ApiResponse<ApiIntentCreated>>;
|
|
1381
|
-
getCounterOffers(query: ApiCounterOffersQuery): Promise<ApiResponse<ApiOrder[]>>;
|
|
1382
|
-
getMetadataSignedUrl(kind?: "image" | "document" | "media"): Promise<ApiResponse<ApiMetadataSignedUrl>>;
|
|
1383
|
-
uploadMetadata(metadata: Record<string, unknown>): Promise<ApiResponse<ApiMetadataUpload>>;
|
|
1384
|
-
uploadMetadataDirectory(files: {
|
|
1385
|
-
name: string;
|
|
1386
|
-
content: unknown;
|
|
1387
|
-
}[]): Promise<{
|
|
1388
|
-
cid: string;
|
|
1389
|
-
baseUri: string;
|
|
1390
|
-
}>;
|
|
1391
|
-
resolveMetadata(uri: string): Promise<ApiResponse<unknown>>;
|
|
1392
|
-
uploadFile(file: File): Promise<ApiResponse<ApiMetadataUpload>>;
|
|
1393
|
-
getMe(): Promise<ApiResponse<ApiPortalMe>>;
|
|
1394
|
-
getApiKeys(): Promise<ApiResponse<ApiPortalKey[]>>;
|
|
1395
|
-
/** `confirmation`: the account's wallet signature over `apiKeyConfirmationTypedData` for this change. */
|
|
1396
|
-
createApiKey(input: {
|
|
1397
|
-
label?: string;
|
|
1398
|
-
} | undefined, confirmation: ApiKeyConfirmation): Promise<ApiResponse<ApiPortalKeyCreated>>;
|
|
1399
|
-
/** `confirmation`: the account's wallet signature over `apiKeyConfirmationTypedData` for this change. */
|
|
1400
|
-
deleteApiKey(id: string, confirmation: ApiKeyConfirmation): Promise<ApiResponse<{
|
|
1401
|
-
id: string;
|
|
1402
|
-
}>>;
|
|
1403
|
-
getCreditHistory(): Promise<ApiResponse<ApiCreditPayment[]>>;
|
|
1404
|
-
getSpend(): Promise<ApiResponse<ApiPortalSpend>>;
|
|
1405
|
-
checkDeposit(txHash: string): Promise<ApiResponse<{
|
|
1406
|
-
deposits: number;
|
|
1407
|
-
}>>;
|
|
1408
|
-
getFundingMethods(): Promise<ApiResponse<ApiFundingMethod[]>>;
|
|
1409
|
-
createFunding(input: {
|
|
1410
|
-
method: string;
|
|
1411
|
-
params: Record<string, unknown>;
|
|
1412
|
-
}): Promise<ApiResponse<ApiFundingIntent>>;
|
|
1413
|
-
getFunding(id: string): Promise<ApiResponse<ApiFundingIntent>>;
|
|
1414
|
-
getFundingChallenge(id: string, payer: string): Promise<ApiResponse<{
|
|
1415
|
-
typedData: unknown;
|
|
1416
|
-
}>>;
|
|
1417
|
-
authorizeFunding(id: string, input: {
|
|
1418
|
-
payer: string;
|
|
1419
|
-
signature: string[];
|
|
1420
|
-
}): Promise<ApiResponse<{
|
|
1421
|
-
instructions: ApiFundingInstructions;
|
|
1422
|
-
}>>;
|
|
1423
|
-
submitFunding(id: string, txHash: string): Promise<ApiResponse<ApiFundingSubmit>>;
|
|
1424
|
-
cancelFunding(id: string): Promise<ApiResponse<{
|
|
1425
|
-
status: string;
|
|
1426
|
-
}>>;
|
|
1427
|
-
claimCollection(contractAddress: string, walletAddress: string, siwsToken?: string): Promise<{
|
|
1428
|
-
verified: boolean;
|
|
1429
|
-
collection?: ApiCollection;
|
|
1430
|
-
reason?: string;
|
|
1431
|
-
}>;
|
|
1432
|
-
requestCollectionClaim(params: {
|
|
1433
|
-
contractAddress: string;
|
|
1434
|
-
walletAddress?: string;
|
|
1435
|
-
email: string;
|
|
1436
|
-
notes?: string;
|
|
1437
|
-
}): Promise<{
|
|
1438
|
-
claim: ApiCollectionClaim;
|
|
1439
|
-
}>;
|
|
1440
|
-
registerBusinessProvisioning(params: z.input<typeof provisioningRegisterSchema>): Promise<ApiResponse<ApiBusinessProvisioning> & {
|
|
1441
|
-
reusedExistingWallet?: boolean;
|
|
1442
|
-
}>;
|
|
1443
|
-
getCollectionProfile(contractAddress: string): Promise<ApiCollectionProfile | null>;
|
|
1444
|
-
updateCollectionProfile(contractAddress: string, data: UpdateCollectionProfileInput, siwsToken?: string): Promise<ApiCollectionProfile>;
|
|
1445
|
-
getWalletActivity(address: string, chain?: "STARKNET"): Promise<ApiResponse<ApiWalletActivity[]>>;
|
|
1446
|
-
getGatedContent(contractAddress: string, siwsToken?: string): Promise<{
|
|
1447
|
-
title: string;
|
|
1448
|
-
url: string;
|
|
1449
|
-
type: string;
|
|
1450
|
-
} | null>;
|
|
1451
|
-
getCreators(opts?: {
|
|
1452
|
-
search?: string;
|
|
1453
|
-
page?: number;
|
|
1454
|
-
limit?: number;
|
|
1455
|
-
}): Promise<ApiCreatorListResult>;
|
|
1456
|
-
getCreatorProfile(walletAddress: string): Promise<ApiCreatorProfile | null>;
|
|
1457
|
-
getCreatorByUsername(username: string): Promise<ApiCreatorProfile | null>;
|
|
1458
|
-
updateCreatorProfile(walletAddress: string, data: Partial<Omit<ApiCreatorProfile, "walletAddress" | "chain" | "updatedAt">>, siwsToken?: string): Promise<ApiCreatorProfile>;
|
|
1459
|
-
checkCollectionSlugAvailability(slug: string): Promise<{
|
|
1460
|
-
available: boolean;
|
|
1461
|
-
reason?: string;
|
|
1462
|
-
}>;
|
|
1463
|
-
submitCollectionSlugClaim(contractAddress: string, slug: string, siwsToken?: string, notifyEmail?: string): Promise<{
|
|
1464
|
-
claim: ApiCollectionSlugClaim;
|
|
1465
|
-
}>;
|
|
1466
|
-
getMyCollectionSlugClaims(siwsToken?: string): Promise<{
|
|
1467
|
-
claims: ApiCollectionSlugClaim[];
|
|
1468
|
-
}>;
|
|
1469
|
-
getCollectionBySlug(slug: string): Promise<ApiCollection | null>;
|
|
1470
|
-
registerUser(params: {
|
|
1471
|
-
walletAddress: string;
|
|
1472
|
-
walletType?: string;
|
|
1473
|
-
chain?: ApiChain;
|
|
1474
|
-
}): Promise<{
|
|
1475
|
-
accountId: string;
|
|
1476
|
-
publicId: string;
|
|
1477
|
-
walletAddress: string;
|
|
1478
|
-
chain: string;
|
|
1479
|
-
provider: string;
|
|
1480
|
-
createdAt: string;
|
|
1481
|
-
}>;
|
|
1482
|
-
upsertMyWallet(siwsToken?: string, options?: {
|
|
1483
|
-
walletType?: string;
|
|
1484
|
-
chain?: ApiChain;
|
|
1485
|
-
email?: string;
|
|
1486
|
-
}): Promise<ApiUserWallet>;
|
|
1487
|
-
checkEmail(email: string): Promise<{
|
|
1488
|
-
exists: boolean;
|
|
1489
|
-
}>;
|
|
1490
|
-
requestEmailCode(email: string): Promise<void>;
|
|
1491
|
-
registerEmailAccount(email: string): Promise<void>;
|
|
1492
|
-
verifyEmailCode(email: string, code: string): Promise<void>;
|
|
1493
|
-
confirmEmail(token: string): Promise<{
|
|
1494
|
-
email: string;
|
|
1495
|
-
}>;
|
|
1496
|
-
setupWalletKey(params: {
|
|
1497
|
-
newOwnerPubkey: string;
|
|
1498
|
-
}): Promise<{
|
|
1499
|
-
walletAddress: string;
|
|
1500
|
-
removeOwnerGuid: string | null;
|
|
1501
|
-
}>;
|
|
1502
|
-
getSessionWallet(): Promise<{
|
|
1503
|
-
walletAddress: string;
|
|
1504
|
-
needsKeySetup: boolean;
|
|
1505
|
-
} | null>;
|
|
1506
|
-
getMyWallet(siwsToken?: string): Promise<ApiUserWallet | null>;
|
|
1507
|
-
changeMyEmail(email: string, siwsToken?: string): Promise<{
|
|
1508
|
-
email: string;
|
|
1509
|
-
}>;
|
|
1510
|
-
getTokenRemixes(contract: string, tokenId: string, opts?: {
|
|
1511
|
-
page?: number;
|
|
1512
|
-
limit?: number;
|
|
1513
|
-
}): Promise<ApiResponse<ApiPublicRemix[]>>;
|
|
1514
|
-
submitRemixOffer(params: CreateRemixOfferParams, siwsToken?: string): Promise<ApiResponse<ApiRemixOffer>>;
|
|
1515
|
-
submitAutoRemixOffer(params: AutoRemixOfferParams, siwsToken?: string): Promise<ApiResponse<ApiRemixOffer>>;
|
|
1516
|
-
confirmSelfRemix(params: ConfirmSelfRemixParams, siwsToken?: string): Promise<ApiResponse<ApiRemixOffer>>;
|
|
1517
|
-
getRemixOffers(query: ApiRemixOffersQuery, siwsToken?: string): Promise<ApiResponse<ApiRemixOffer[]>>;
|
|
1518
|
-
getRemixOffer(id: string, siwsToken?: string): Promise<ApiResponse<ApiRemixOffer>>;
|
|
1519
|
-
confirmRemixOffer(id: string, params: ConfirmRemixOfferParams, siwsToken?: string): Promise<ApiResponse<ApiRemixOffer>>;
|
|
1520
|
-
rejectRemixOffer(id: string, siwsToken?: string): Promise<ApiResponse<ApiRemixOffer>>;
|
|
1521
|
-
extendRemixOffer(id: string, days: number, siwsToken?: string): Promise<ApiResponse<ApiRemixOffer>>;
|
|
1522
|
-
getCoins(opts?: ApiCoinsQuery): Promise<ApiResponse<ApiCoin[]>>;
|
|
1523
|
-
getCoin(contract: string): Promise<{
|
|
1524
|
-
data: ApiCoin;
|
|
1525
|
-
}>;
|
|
1526
|
-
getCoinPrices(): Promise<ApiResponse<ApiCoinPrices>>;
|
|
1527
|
-
claimCoin(coinAddress: string, siwsToken?: string): Promise<ApiCoinClaimResult>;
|
|
1528
|
-
getCoinClaims(status?: string): Promise<ApiResponse<ApiCollectionClaim[]>>;
|
|
1529
|
-
updateCoinProfile(contract: string, data: {
|
|
1530
|
-
image?: string | null;
|
|
1531
|
-
description?: string | null;
|
|
1532
|
-
}, siwsToken?: string): Promise<ApiResponse<ApiCoin>>;
|
|
1533
|
-
getDropFee(): Promise<ApiDropFee>;
|
|
1534
|
-
getDrops(query?: {
|
|
1535
|
-
status?: ApiDropListStatus;
|
|
1536
|
-
organizer?: string;
|
|
1537
|
-
page?: number;
|
|
1538
|
-
limit?: number;
|
|
1539
|
-
}): Promise<ApiResponse<ApiDrop[]>>;
|
|
1540
|
-
getDrop(contract: string): Promise<ApiDrop | null>;
|
|
1541
|
-
getDropMints(contract: string, opts?: {
|
|
1542
|
-
page?: number;
|
|
1543
|
-
limit?: number;
|
|
1544
|
-
}): Promise<ApiResponse<ApiDropMint[]>>;
|
|
1545
|
-
getTicket(contract: string, tokenId: string): Promise<ApiTierOnchain>;
|
|
1546
|
-
getTicketCount(contract: string): Promise<number>;
|
|
1547
|
-
getClubMembershipCount(contract: string): Promise<number>;
|
|
1548
|
-
getClubMembership(contract: string, tokenId: string): Promise<ApiTierOnchain>;
|
|
1549
|
-
isClubMember(contract: string, tokenId: string, wallet: string): Promise<boolean>;
|
|
1550
|
-
getIpNftTokenData(contract: string, tokenId: string): Promise<ApiIpNftTokenData | null>;
|
|
1551
|
-
getCoinGuarantees(contract: string): Promise<CreatorCoinGuarantees | null>;
|
|
1552
|
-
getPopClaimInfo(collection: string): Promise<PopClaimInfo | null>;
|
|
1553
|
-
getDropState(contract: string): Promise<DropOnchain | null>;
|
|
1554
|
-
getSwapQuote(body: ApiSwapQuoteRequest): Promise<ApiSwapQuote>;
|
|
1555
|
-
getPlatformStats(): Promise<ApiPlatformStats>;
|
|
1556
|
-
getTokens(query?: ApiTokensQuery): Promise<ApiResponse<ApiToken[]>>;
|
|
1557
|
-
isCreatorHidden(wallet: string): Promise<boolean>;
|
|
1558
|
-
getMyUsernameClaim(siwsToken?: string): Promise<{
|
|
1559
|
-
username: string | null;
|
|
1560
|
-
claim: ApiUsernameClaim | null;
|
|
1561
|
-
}>;
|
|
1562
|
-
checkUsernameAvailability(username: string): Promise<{
|
|
1563
|
-
available: boolean;
|
|
1564
|
-
reason?: string;
|
|
1565
|
-
}>;
|
|
1566
|
-
submitUsernameClaim(username: string, siwsToken?: string, notifyEmail?: string): Promise<ApiUsernameClaim>;
|
|
1567
|
-
submitReport(report: ApiSubmitReport, siwsToken?: string): Promise<void>;
|
|
1568
|
-
getPricing(): Promise<ApiPricing>;
|
|
1569
|
-
listCollections(query?: ApiCollectionsListQuery): Promise<ApiResponse<ApiCollection[]>>;
|
|
1570
|
-
generateWallet(newWalletSiwsToken: string, siwsToken?: string): Promise<{
|
|
1571
|
-
walletAddress: string;
|
|
1572
|
-
}>;
|
|
1573
|
-
syncCoin(coinAddress: string, owner?: string): Promise<{
|
|
1574
|
-
data: ApiCoin;
|
|
1575
|
-
}>;
|
|
1576
|
-
registerCollection(contractAddress: string): Promise<{
|
|
1577
|
-
data: ApiCollection;
|
|
1578
|
-
}>;
|
|
1579
|
-
getSponsorshipOffers(query?: ApiSponsorshipOffersQuery): Promise<ApiResponse<ApiSponsorshipOffer[]>>;
|
|
1580
|
-
getSponsorshipOffer(offerId: string): Promise<ApiSponsorshipOffer | null>;
|
|
1581
|
-
getSponsorshipProposal(proposalId: string): Promise<ApiSponsorshipProposal | null>;
|
|
1582
|
-
getSponsorshipBids(offerId: string): Promise<ApiSponsorshipBid[]>;
|
|
1583
|
-
getSponsorshipProposals(query?: ApiSponsorshipProposalsQuery): Promise<ApiResponse<ApiSponsorshipProposal[]>>;
|
|
1584
|
-
getSponsorshipLicenses(query?: ApiSponsorshipLicensesQuery): Promise<ApiResponse<ApiSponsorshipLicense[]>>;
|
|
1585
|
-
getRewards(address: string): Promise<ApiUserRewards>;
|
|
1586
|
-
getRewardsLeaderboard(page?: number, limit?: number): Promise<ApiResponse<ApiRewardsLeaderboardEntry[]>>;
|
|
1587
|
-
getRewardsEvents(address: string, page?: number, limit?: number): Promise<ApiResponse<ApiPointEvent[]>>;
|
|
1588
|
-
getRewardsConfig(): Promise<ApiRewardsConfig>;
|
|
1589
|
-
getRewardsBatch(addresses: string[]): Promise<ApiRewardsBatchEntry[]>;
|
|
1590
|
-
}
|
|
1591
|
-
|
|
1592
|
-
interface SealedOwner {
|
|
1593
|
-
credentialId: string;
|
|
1594
|
-
ownerPubKey: string;
|
|
1595
|
-
address: string;
|
|
1596
|
-
iv: string;
|
|
1597
|
-
ciphertext: string;
|
|
1598
|
-
lock?: "device";
|
|
1599
|
-
}
|
|
1600
|
-
interface OwnerSigner {
|
|
1601
|
-
address: string;
|
|
1602
|
-
signTypedData(typedData: TypedData): Promise<string[]>;
|
|
1603
|
-
}
|
|
1604
|
-
interface ExecutedTransaction {
|
|
1605
|
-
transactionHash: string;
|
|
1606
|
-
}
|
|
1607
|
-
interface WalletExecutor {
|
|
1608
|
-
execute(input: {
|
|
1609
|
-
userAddress: string;
|
|
1610
|
-
privateKeyHex: string;
|
|
1611
|
-
calls: Call[];
|
|
1612
|
-
intentIds?: string[];
|
|
1613
|
-
}): Promise<ExecutedTransaction>;
|
|
1614
|
-
}
|
|
1615
|
-
interface ReceiptProviderLike {
|
|
1616
|
-
getClassHashAt(address: string): Promise<unknown>;
|
|
1617
|
-
}
|
|
1618
|
-
|
|
1619
|
-
declare class InvalidRecoveryKeyError extends Error {
|
|
1620
|
-
constructor(message?: string);
|
|
1621
|
-
}
|
|
1622
|
-
interface RecoveryKey {
|
|
1623
|
-
walletAddress: string;
|
|
1624
|
-
privateKey: string;
|
|
1625
|
-
}
|
|
1626
|
-
declare function encodeRecoveryKey(key: RecoveryKey): string;
|
|
1627
|
-
declare function parseRecoveryKey(input: string): RecoveryKey;
|
|
1628
|
-
|
|
1629
|
-
interface DeviceKeyStore {
|
|
1630
|
-
save(credentialId: string, key: CryptoKey): Promise<void>;
|
|
1631
|
-
load(credentialId: string): Promise<CryptoKey | null>;
|
|
1632
|
-
}
|
|
1633
|
-
declare const indexedDbDeviceKeys: DeviceKeyStore;
|
|
1634
|
-
|
|
1635
|
-
declare class PasskeyCancelledError extends Error {
|
|
1636
|
-
constructor(message?: string);
|
|
1637
|
-
}
|
|
1638
|
-
declare class DeviceKeyMissingError extends Error {
|
|
1639
|
-
constructor();
|
|
1640
|
-
}
|
|
1641
|
-
type PasskeyUnsupportedReason = "no-webauthn" | "no-prf";
|
|
1642
|
-
declare class PasskeyUnsupportedError extends Error {
|
|
1643
|
-
readonly reason: PasskeyUnsupportedReason;
|
|
1644
|
-
constructor(reason: PasskeyUnsupportedReason);
|
|
1645
|
-
}
|
|
1646
|
-
interface PasskeyConfig {
|
|
1647
|
-
appName: string;
|
|
1648
|
-
relyingPartyName: string;
|
|
1649
|
-
relyingPartyId: () => string;
|
|
1650
|
-
prfSalt: Uint8Array<ArrayBuffer>;
|
|
1651
|
-
hkdfInfo: Uint8Array<ArrayBuffer>;
|
|
1652
|
-
passkeyUser: () => Promise<PublicKeyCredentialUserEntity>;
|
|
1653
|
-
knownCredentials: () => PublicKeyCredentialDescriptor[];
|
|
1654
|
-
credentials?: CredentialsContainer;
|
|
1655
|
-
deviceKeys?: DeviceKeyStore;
|
|
1656
|
-
randomBytes?: (length: number) => Uint8Array<ArrayBuffer>;
|
|
1657
|
-
}
|
|
1658
|
-
interface CreatedOwner {
|
|
1659
|
-
sealed: SealedOwner;
|
|
1660
|
-
privateKeyHex: string;
|
|
1661
|
-
}
|
|
1662
|
-
interface PasskeyOwner {
|
|
1663
|
-
createOwnerKey(): Promise<CreatedOwner>;
|
|
1664
|
-
unlockOwnerKey(sealed: SealedOwner): Promise<string>;
|
|
1665
|
-
sealImportedOwnerKey(recovery: RecoveryKey): Promise<SealedOwner>;
|
|
1666
|
-
}
|
|
1667
|
-
declare function createPasskeyOwner(config: PasskeyConfig): PasskeyOwner;
|
|
1668
|
-
|
|
1669
|
-
interface CreatePopCollectionParams {
|
|
1670
|
-
name: string;
|
|
1671
|
-
symbol: string;
|
|
1672
|
-
baseUri: string;
|
|
1673
|
-
/** Unix seconds; 0 = no deadline. */
|
|
1674
|
-
claimEndTime: number;
|
|
1675
|
-
}
|
|
1676
|
-
interface DropTerms {
|
|
1677
|
-
/** Unix seconds; 0 = open from creation. */
|
|
1678
|
-
startTime: number;
|
|
1679
|
-
/** Unix seconds; 0 = never closes. */
|
|
1680
|
-
endTime: number;
|
|
1681
|
-
/** Per token, in the payment token's smallest unit; 0 = free. */
|
|
1682
|
-
price: bigint | string;
|
|
1683
|
-
/** Sent as zero when the drop is free. */
|
|
1684
|
-
paymentToken: string;
|
|
1685
|
-
/** Claims per wallet; 0 = unlimited. */
|
|
1686
|
-
maxPerWallet: bigint | string;
|
|
1687
|
-
}
|
|
1688
|
-
interface CreateDropParams {
|
|
1689
|
-
name: string;
|
|
1690
|
-
symbol: string;
|
|
1691
|
-
/** Token URI = baseUri + token id. */
|
|
1692
|
-
baseUri: string;
|
|
1693
|
-
/** 0 = no cap. */
|
|
1694
|
-
maxSupply: bigint | string;
|
|
1695
|
-
terms: DropTerms;
|
|
1696
|
-
/** Merkle root of the allowlist; absent or 0 = open to everyone. */
|
|
1697
|
-
allowlistRoot?: string;
|
|
1698
|
-
}
|
|
1699
|
-
interface CreateTicketParams {
|
|
1700
|
-
collection: string;
|
|
1701
|
-
maxSupply: bigint | string;
|
|
1702
|
-
startTime?: number;
|
|
1703
|
-
endTime?: number;
|
|
1704
|
-
royaltyBps: number;
|
|
1705
|
-
metadataUri: string;
|
|
1706
|
-
}
|
|
1707
|
-
interface MintTicketsParams {
|
|
1708
|
-
collection: string;
|
|
1709
|
-
tokenId: bigint | string;
|
|
1710
|
-
to: string;
|
|
1711
|
-
amount: bigint | string;
|
|
1712
|
-
}
|
|
1713
|
-
interface CreateMembershipParams {
|
|
1714
|
-
collection: string;
|
|
1715
|
-
maxSupply: bigint | string;
|
|
1716
|
-
startTime?: number;
|
|
1717
|
-
endTime?: number;
|
|
1718
|
-
royaltyBps: number;
|
|
1719
|
-
metadataUri: string;
|
|
1720
|
-
}
|
|
1721
|
-
interface MintMembershipsParams {
|
|
1722
|
-
collection: string;
|
|
1723
|
-
tokenId: bigint | string;
|
|
1724
|
-
to: string;
|
|
1725
|
-
amount: bigint | string;
|
|
1726
|
-
}
|
|
1727
|
-
interface CreateSponsorshipOfferParams {
|
|
1728
|
-
nftContract: string;
|
|
1729
|
-
tokenId: bigint | string;
|
|
1730
|
-
minAmount: bigint | string;
|
|
1731
|
-
duration: number;
|
|
1732
|
-
paymentToken: string;
|
|
1733
|
-
licenseTermsUri: string;
|
|
1734
|
-
transferable: boolean;
|
|
1735
|
-
royaltyBps: bigint | string;
|
|
1736
|
-
specificSponsor?: string;
|
|
1737
|
-
}
|
|
1738
|
-
interface ProposeSponsorshipParams {
|
|
1739
|
-
nftContract: string;
|
|
1740
|
-
tokenId: bigint | string;
|
|
1741
|
-
amount: bigint | string;
|
|
1742
|
-
duration: number;
|
|
1743
|
-
validUntil?: number;
|
|
1744
|
-
paymentToken: string;
|
|
1745
|
-
licenseTermsUri: string;
|
|
1746
|
-
transferable: boolean;
|
|
1747
|
-
royaltyBps: bigint | string;
|
|
1748
|
-
}
|
|
1749
|
-
|
|
1750
|
-
declare class UserFacingError extends Error {
|
|
1751
|
-
constructor(message: string);
|
|
1752
|
-
}
|
|
1753
|
-
|
|
1754
|
-
export { type ApiOrdersQuery as $, type AcceptSponsorshipBidIntentParams as A, type ApiCreditPayment as B, type ApiDrop as C, type ApiDropFee as D, type ApiDropListStatus as E, type ApiDropMint as F, type ApiEmissionCall as G, type ApiEmissionResult as H, type ApiFundingInstructions as I, type ApiFundingIntent as J, type ApiFundingMethod as K, type ApiFundingStatus as L, type ApiFundingSubmit as M, type ApiIntent as N, type ApiIntentCreated as O, type ApiIpNftTokenData as P, type ApiMeta as Q, type ResolvedFeeConfig as R, type ServiceDefinition as S, type ApiMetadataSignedUrl as T, type ApiMetadataUpload as U, type ApiOrder as V, type ApiOrderConsideration as W, type ApiOrderOffer as X, type ApiOrderPrice as Y, type ApiOrderTokenMeta as Z, type ApiOrderTxHash as _, type ServiceCapability as a, type CreateFundingTransferIntentParams as a$, type ApiPlatformStats as a0, type ApiPointEvent as a1, type ApiPortalKey as a2, type ApiPortalKeyCreated as a3, type ApiPortalMe as a4, type ApiPortalSpend as a5, type ApiPricing as a6, type ApiPricingRule as a7, type ApiPublicRemix as a8, type ApiRemixOffer as a9, type ApiToken as aA, type ApiTokenBalance as aB, type ApiTokenMetadata as aC, type ApiTokensQuery as aD, type ApiTxSyncResult as aE, type ApiUserRewards as aF, type ApiUserWallet as aG, type ApiUsernameClaim as aH, type ApiWalletActivity as aI, type AutoRemixOfferParams as aJ, type CancelOrderIntentParams as aK, type ChainFilter as aL, type CheckoutIntentItem as aM, type CollectionServiceId as aN, type CollectionSort as aO, type CollectionTokensSort as aP, type ConfirmRemixOfferParams as aQ, type ConfirmSelfRemixParams as aR, type ConsiderationItem as aS, type CreateCheckoutIntentParams as aT, type CreateCoinIntentParams as aU, type CreateCollectionIntentParams as aV, type CreateCommentIntentParams as aW, type CreateCounterOfferIntentParams as aX, type CreateDropClaimIntentParams as aY, type CreateDropManageIntentParams as aZ, type CreateDropParams as a_, type ApiRemixOfferPrice as aa, type ApiRemixOffersQuery as ab, type ApiReportTargetType as ac, type ApiResponse as ad, type ApiRewardsBadge as ae, type ApiRewardsBatchEntry as af, type ApiRewardsConfig as ag, type ApiRewardsLeaderboardEntry as ah, type ApiRewardsLevel as ai, type ApiSearchCollectionResult as aj, type ApiSearchCreatorResult as ak, type ApiSearchResult as al, type ApiSearchTokenResult as am, type ApiSession as an, type ApiSpendByAction as ao, type ApiSponsorshipBid as ap, type ApiSponsorshipLicense as aq, type ApiSponsorshipLicensesQuery as ar, type ApiSponsorshipOffer as as, type ApiSponsorshipOffersQuery as at, type ApiSponsorshipProposal as au, type ApiSponsorshipProposalsQuery as av, type ApiSubmitReport as aw, type ApiSwapQuote as ax, type ApiSwapQuoteRequest as ay, type ApiTierOnchain as az, type AcceptSponsorshipProposalIntentParams as b, type TierServiceId as b$, type CreateGenesisMintIntentParams as b0, type CreateListingIntentParams as b1, type CreateMembershipParams as b2, type CreateMintIntentParams as b3, type CreatePopBurnIntentParams as b4, type CreatePopClaimIntentParams as b5, type CreatePopCollectionParams as b6, type CreatePopManageIntentParams as b7, type CreateRemixOfferParams as b8, type CreateSponsorshipOfferIntentParams as b9, type MakeOfferIntentParams as bA, MedialaneApiError as bB, type MedialaneConfig as bC, type MedialaneErrorCode as bD, type MintMembershipsParams as bE, type MintTicketsParams as bF, OPEN_LICENSES as bG, type OfferItem as bH, type OpenLicense as bI, type Order as bJ, type OrderDetails as bK, type OrderParameters as bL, type OrderStatus as bM, PasskeyCancelledError as bN, PasskeyUnsupportedError as bO, type PasskeyUnsupportedReason as bP, type PlaceSponsorshipBidIntentParams as bQ, type PopManageAction as bR, type ProposeSponsorshipParams as bS, type RejectSponsorshipProposalIntentParams as bT, type RemixOfferStatus as bU, type ResolvedConfig as bV, type RetractSponsorshipBidIntentParams as bW, type RetryOptions as bX, type ServiceEventDeclaration as bY, type SetSponsorshipOfferOpenIntentParams as bZ, type SortOrder as b_, type CreateSponsorshipOfferParams as ba, type CreateSponsorshipProposalIntentParams as bb, type CreateSwapIntentParams as bc, type CreateTicketParams as bd, type CreateTierIntentParams as be, type CreateTransferCollectionOwnershipIntentParams as bf, type CreateTransferNftIntentParams as bg, type CreateTransferTokenIntentParams as bh, type CreateWalletManageIntentParams as bi, DeviceKeyMissingError as bj, type DropManageAction as bk, type DropTerms as bl, type DropTermsBody as bm, type EmissionParams as bn, type EnforcementDeclaration as bo, type FactoryFamilyServiceId as bp, type FeeConfig as bq, FeeConfigSchema as br, type FulfillOrderIntentParams as bs, type IPType as bt, type IntentCall as bu, type IntentStatus as bv, type IntentType as bw, type IpAttribute as bx, type IpNftMetadata as by, type LaunchCoinIntentParams as bz, type ActivityType as c, type TxResult as c0, type UpdateCollectionProfileInput as c1, UserFacingError as c2, type WalletManageAction as c3, type WithdrawSponsorshipProposalIntentParams as c4, resolveConfig as c5, resolveFeeConfig as c6, CreatorCoinService as c7, type SealedOwner as c8, type ReceiptProviderLike as c9, VALIDATED_EKUBO_PARAMS as cA, apiKeyConfirmationTypedData as cB, buildCreateCreatorCoinCall as cC, buildLaunchOnEkuboCalls as cD, buildPopAllowlist as cE, createPasskeyOwner as cF, decodePopClaimFragment as cG, dropClaimLinks as cH, dropClaimedBy as cI, dropMintState as cJ, encodePopClaimFragment as cK, encodeRecoveryKey as cL, getCreatorCoinGuarantees as cM, indexedDbDeviceKeys as cN, parseCreatorCoinCreated as cO, parseRecoveryKey as cP, popCalls as cQ, popClaimInfo as cR, popClaimLinks as cS, popClaimLinksCsv as cT, popClaimState as cU, priceToEkuboParams as cV, readDrop as cW, validatePrice as cX, verifyPopProof as cY, type WalletExecutor as ca, type ExecutedTransaction as cb, type PasskeyOwner as cc, type CreatedOwner as cd, type ApiKeyAction as ce, type ApiKeyConfirmation as cf, type ApiKeyConfirmationInput as cg, type CreateCreatorCoinParams as ch, type CreatorCoinGuarantees as ci, type CreatorCoinReceiptLike as cj, type DeviceKeyStore as ck, type DropMintState as cl, type DropMintStateKind as cm, type DropOnchain as cn, type EkuboLaunchParams as co, type EkuboPoolParams as cp, InvalidRecoveryKeyError as cq, MAX_HOLDERS_AT_LAUNCH as cr, MAX_TEAM_ALLOCATION_PERCENT as cs, type OwnerSigner as ct, type PasskeyConfig as cu, type PopAllowlist as cv, type PopClaimInfo as cw, type PopClaimLink as cx, type PopClaimState as cy, type RecoveryKey as cz, type ApiActivitiesQuery as d, type ApiActivity as e, type ApiActivityPrice as f, type ApiAdminCollectionClaim as g, type ApiBusinessProvisioning as h, type ApiChain as i, type ApiCheckoutIntentResult as j, ApiClient as k, type ApiCoin as l, type ApiCoinClaimResult as m, type ApiCoinPrice as n, type ApiCoinPrices as o, type ApiCoinsQuery as p, type ApiCollection as q, type ApiCollectionClaim as r, type ApiCollectionProfile as s, type ApiCollectionSlugClaim as t, type ApiCollectionsListQuery as u, type ApiCollectionsQuery as v, type ApiComment as w, type ApiCounterOffersQuery as x, type ApiCreatorListResult as y, type ApiCreatorProfile as z };
|