@xoxno/sdk-js 0.1.355 → 1.0.1
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/index.cjs.js +1 -1
- package/dist/index.d.ts +1 -6
- package/dist/index.esm.js +1 -1
- package/dist/interactions/index.d.ts +27 -4
- package/dist/{types/interactions.d.ts → interactions/types.d.ts} +5 -39
- package/dist/interactor.cjs.js +1 -1
- package/dist/interactor.d.ts +0 -2
- package/dist/interactor.esm.js +1 -1
- package/dist/sdk/endpoints.d.ts +19 -0
- package/dist/sdk/index.d.ts +86 -0
- package/dist/sdk/swagger.d.ts +1708 -0
- package/dist/sdk/utils.d.ts +9 -0
- package/dist/utils/api.d.ts +3 -2
- package/package.json +7 -7
- package/dist/collection/index.d.ts +0 -294
- package/dist/common/index.d.ts +0 -72
- package/dist/nft/index.d.ts +0 -75
- package/dist/staking/index.d.ts +0 -11
- package/dist/types/collection.d.ts +0 -733
- package/dist/types/common.d.ts +0 -71
- package/dist/types/event.d.ts +0 -195
- package/dist/types/index.d.ts +0 -23
- package/dist/types/nft.d.ts +0 -129
- package/dist/types/staking.d.ts +0 -68
- package/dist/types/trading.d.ts +0 -111
- package/dist/types/user.d.ts +0 -290
- package/dist/users/index.d.ts +0 -201
- /package/dist/{utils/types.d.ts → sdk/parseSwagger.d.ts} +0 -0
|
@@ -1,733 +0,0 @@
|
|
|
1
|
-
import type { IEventDoc } from './event';
|
|
2
|
-
import type { ActivityChain, CollectionInfo, Media, NftData, NFTMetadata, Owner, SaleInfo } from './nft';
|
|
3
|
-
import type { NftActivityType } from './trading';
|
|
4
|
-
import type { CreatorProfile, IUserProfileSearch } from './user';
|
|
5
|
-
export interface ISocials {
|
|
6
|
-
twitter: string;
|
|
7
|
-
instagram: string;
|
|
8
|
-
website: string;
|
|
9
|
-
telegram: string;
|
|
10
|
-
discord: string;
|
|
11
|
-
facebook: string;
|
|
12
|
-
youtube: string;
|
|
13
|
-
}
|
|
14
|
-
export interface IMintInfo {
|
|
15
|
-
dataType: string;
|
|
16
|
-
collection: string;
|
|
17
|
-
contractAddress: string;
|
|
18
|
-
collectionTag: string;
|
|
19
|
-
cid: string;
|
|
20
|
-
mediaType: string;
|
|
21
|
-
baseNftName: string;
|
|
22
|
-
hasAttributes: boolean;
|
|
23
|
-
ownerTransferred: boolean;
|
|
24
|
-
collectionSize: number;
|
|
25
|
-
totalNftMinted: number;
|
|
26
|
-
globalWalletLimit: number;
|
|
27
|
-
royalties: number;
|
|
28
|
-
oldVersion: boolean;
|
|
29
|
-
nameShuffle: boolean;
|
|
30
|
-
nftTransferLimited: boolean;
|
|
31
|
-
allowsPublicBurn: boolean;
|
|
32
|
-
kycRequired: boolean;
|
|
33
|
-
allowsRefund: boolean;
|
|
34
|
-
hasBotProtection: boolean;
|
|
35
|
-
hasReveal: boolean;
|
|
36
|
-
tags: string[];
|
|
37
|
-
id: string;
|
|
38
|
-
_ts: number;
|
|
39
|
-
}
|
|
40
|
-
export interface IMintInfoExtended extends IMintInfo {
|
|
41
|
-
collectionInfo: CollectionInfo;
|
|
42
|
-
}
|
|
43
|
-
export interface CollectionCreatorInfo extends CreatorProfile {
|
|
44
|
-
listing: IMintInfoExtended[];
|
|
45
|
-
}
|
|
46
|
-
export interface EventCreatorInfo extends CreatorProfile {
|
|
47
|
-
events: IEventDoc[];
|
|
48
|
-
}
|
|
49
|
-
export interface CreatorInfo extends CollectionCreatorInfo, EventCreatorInfo {
|
|
50
|
-
}
|
|
51
|
-
export interface CollectionStatisticsProfile {
|
|
52
|
-
tradeData: TradeData;
|
|
53
|
-
mintData: MintStatistics;
|
|
54
|
-
other: OtherStatistics;
|
|
55
|
-
}
|
|
56
|
-
export interface Rule {
|
|
57
|
-
type: 'kiosk_lock_rule' | 'royalty_rule';
|
|
58
|
-
amount_bp?: number;
|
|
59
|
-
min_amount?: string;
|
|
60
|
-
}
|
|
61
|
-
export interface TransferPolicy {
|
|
62
|
-
id: string;
|
|
63
|
-
type: string;
|
|
64
|
-
rules: Rule[];
|
|
65
|
-
is_origin_byte: boolean;
|
|
66
|
-
}
|
|
67
|
-
export interface ICollectionProfile {
|
|
68
|
-
dataType: 'collectionProfile';
|
|
69
|
-
collection: string;
|
|
70
|
-
name: string;
|
|
71
|
-
description: string;
|
|
72
|
-
isVisible: boolean;
|
|
73
|
-
isVerified: boolean;
|
|
74
|
-
profile: string;
|
|
75
|
-
banner: string;
|
|
76
|
-
statistics: CollectionStatisticsProfile;
|
|
77
|
-
owner: string;
|
|
78
|
-
creator: string;
|
|
79
|
-
isMintable: boolean;
|
|
80
|
-
hasStaking: boolean;
|
|
81
|
-
id: string;
|
|
82
|
-
socials: ISocials;
|
|
83
|
-
type: string;
|
|
84
|
-
chain?: ActivityChain;
|
|
85
|
-
transferPolicies: TransferPolicy[];
|
|
86
|
-
royalty?: number;
|
|
87
|
-
minSalePrice?: string;
|
|
88
|
-
lastVerifiedTimestamp: number;
|
|
89
|
-
lastVerifiedBy: string;
|
|
90
|
-
customConfig?: {
|
|
91
|
-
collection: string;
|
|
92
|
-
reversedCutFees: boolean;
|
|
93
|
-
reversedRoyalties: boolean;
|
|
94
|
-
customRoyalties: boolean;
|
|
95
|
-
minRoyalties: number;
|
|
96
|
-
maxRoyalties: number;
|
|
97
|
-
extraFees: {
|
|
98
|
-
amount: number;
|
|
99
|
-
address: string;
|
|
100
|
-
};
|
|
101
|
-
};
|
|
102
|
-
_ts: number;
|
|
103
|
-
}
|
|
104
|
-
export interface AttributeData {
|
|
105
|
-
attributeOccurrence: number;
|
|
106
|
-
floorPrice: number;
|
|
107
|
-
onSaleCount: number;
|
|
108
|
-
usdValue: number;
|
|
109
|
-
}
|
|
110
|
-
export interface MetadataAttribute {
|
|
111
|
-
trait_type: string;
|
|
112
|
-
value: string;
|
|
113
|
-
}
|
|
114
|
-
export interface TraitValues {
|
|
115
|
-
[traitValue: string]: AttributeData;
|
|
116
|
-
}
|
|
117
|
-
export interface ICollectionAttributes {
|
|
118
|
-
[traitType: string]: TraitValues;
|
|
119
|
-
}
|
|
120
|
-
export declare enum Marketplace {
|
|
121
|
-
XO = "xoxno",
|
|
122
|
-
FM = "frameit",
|
|
123
|
-
DR = "deadrare",
|
|
124
|
-
KG = "krogan"
|
|
125
|
-
}
|
|
126
|
-
export interface GlobalOffer {
|
|
127
|
-
attributes: MetadataAttribute[];
|
|
128
|
-
collection: string;
|
|
129
|
-
isActive: boolean;
|
|
130
|
-
marketplace: string;
|
|
131
|
-
offer_id: number;
|
|
132
|
-
owner: string;
|
|
133
|
-
ownerProfile?: string;
|
|
134
|
-
ownerUsername?: string;
|
|
135
|
-
payment_nonce: number;
|
|
136
|
-
payment_token: string;
|
|
137
|
-
price: string;
|
|
138
|
-
quantity: number;
|
|
139
|
-
short_price: number;
|
|
140
|
-
timestamp: number;
|
|
141
|
-
}
|
|
142
|
-
export declare enum FieldsToSelect {
|
|
143
|
-
Rank = "metadata.rarity.rank",
|
|
144
|
-
Attributes = "metadata.attributes",
|
|
145
|
-
Description = "metadata.description",
|
|
146
|
-
Name = "name",
|
|
147
|
-
OnSale = "onSale",
|
|
148
|
-
SaleInfo = "saleInfo",
|
|
149
|
-
Royalties = "royalties",
|
|
150
|
-
Identifier = "identifier",
|
|
151
|
-
Collection = "collection",
|
|
152
|
-
OriginalURL = "url",
|
|
153
|
-
Nonce = "nonce",
|
|
154
|
-
ContentType = "originalMedia.contentType",
|
|
155
|
-
WasProcessed = "wasProcessed",
|
|
156
|
-
AvifURL = "avifUrl",
|
|
157
|
-
WebpURL = "webpUrl",
|
|
158
|
-
Type = "type"
|
|
159
|
-
}
|
|
160
|
-
export declare enum SearchOrderBy {
|
|
161
|
-
PriceHighToLow = "saleInfo.minBidShort desc",
|
|
162
|
-
PriceLowToHigh = "saleInfo.minBidShort asc",
|
|
163
|
-
MaxPriceHighToLow = "saleInfo.maxBidShort desc",
|
|
164
|
-
MaxPriceLowToHigh = "saleInfo.maxBidShort asc",
|
|
165
|
-
BidPriceHighToLow = "saleInfo.currentBidShort desc",
|
|
166
|
-
BidPriceLowToHigh = "saleInfo.currentBidShort asc",
|
|
167
|
-
RarityHighToLow = "metadata.rarity.rank desc",
|
|
168
|
-
RarityLowToHigh = "metadata.rarity.rank asc",
|
|
169
|
-
NonceHighToLow = "nonce desc",
|
|
170
|
-
NonceLowToHigh = "nonce asc",
|
|
171
|
-
RecentListed = "saleInfo.timestamp desc",
|
|
172
|
-
OldestListed = "saleInfo.timestamp asc",
|
|
173
|
-
EndingLate = "saleInfo.deadline desc",
|
|
174
|
-
EndingSoon = "saleInfo.deadline asc"
|
|
175
|
-
}
|
|
176
|
-
export declare enum DropsOderBy {
|
|
177
|
-
EndingLate = "startTime desc",
|
|
178
|
-
EndingSoon = "startTime asc"
|
|
179
|
-
}
|
|
180
|
-
export declare enum SuggestOrderBy {
|
|
181
|
-
TotalVolumeHighToLow = "statistics/tradeData/totalEgldVolume desc",
|
|
182
|
-
FollowersHighToLow = "statistics/other/followCount desc",
|
|
183
|
-
IsVerifiedTrueToFalse = "isVerified desc",
|
|
184
|
-
HasImageTrueToFalse = "profile desc",
|
|
185
|
-
HasBannerTrueToFalse = "banner desc"
|
|
186
|
-
}
|
|
187
|
-
export declare enum CollectionsOrderBy {
|
|
188
|
-
WeekVolumeHighToLow = "statistics.tradeData.weekEgldVolume desc",
|
|
189
|
-
WeekVolumeLowToHigh = "statistics.tradeData.weekEgldVolume asc",
|
|
190
|
-
DailyVolumeHighToLow = "statistics.tradeData.dayEgldVolume desc",
|
|
191
|
-
DailyVolumeLowToHigh = "statistics.tradeData.dayEgldVolume asc",
|
|
192
|
-
TotalVolumeHighToLow = "statistics.tradeData.totalEgldVolume desc",
|
|
193
|
-
TotalVolumeLowToHigh = "statistics.tradeData.totalEgldVolume asc",
|
|
194
|
-
AvgVolumePriceHighToLow = "statistics.tradeData.averageEgldPrice desc",
|
|
195
|
-
AvgVolumePriceLowToHigh = "statistics.tradeData.averageEgldPrice asc",
|
|
196
|
-
ATHHighToLow = "statistics.tradeData.athEgldPrice desc",
|
|
197
|
-
ATHLowToHigh = "statistics.tradeData.athEgldPrice asc",
|
|
198
|
-
TotalTradesHighToLow = "statistics.tradeData.totalTrades desc",
|
|
199
|
-
TotalTradesLowToHigh = "statistics.tradeData.totalTrades asc",
|
|
200
|
-
SupplyHighToLow = "statistics.other.nftCount desc",
|
|
201
|
-
SupplyLowToHigh = "statistics.other.nftCount asc",
|
|
202
|
-
FollowersHighToLow = "statistics.other.followCount desc",
|
|
203
|
-
FollowersLowToHigh = "statistics.other.followCount asc"
|
|
204
|
-
}
|
|
205
|
-
export declare enum GlobalOfferOrderBy {
|
|
206
|
-
PriceHighToLow = "priceShort desc",
|
|
207
|
-
PriceLowToHigh = "priceShort asc",
|
|
208
|
-
OfferIdHighToLow = "offerIddesc",
|
|
209
|
-
OfferIdLowToHigh = "offerId asc",
|
|
210
|
-
RecentListed = "timestamp desc",
|
|
211
|
-
OldestListed = "timestamp asc"
|
|
212
|
-
}
|
|
213
|
-
export declare enum CollectionsFieldsToSelect {
|
|
214
|
-
Profile = "profile",
|
|
215
|
-
Description = "description",
|
|
216
|
-
Creator = "creator",
|
|
217
|
-
Owner = "owner",
|
|
218
|
-
Socials = "socials",
|
|
219
|
-
Type = "type",
|
|
220
|
-
HasStaking = "hasStaking",
|
|
221
|
-
Name = "name",
|
|
222
|
-
Banner = "banner",
|
|
223
|
-
IsVerified = "isVerified",
|
|
224
|
-
IsMintable = "isMintable",
|
|
225
|
-
Statistics = "statistics",
|
|
226
|
-
Collection = "collection"
|
|
227
|
-
}
|
|
228
|
-
export declare enum GlobalOfferFieldsToSelect {
|
|
229
|
-
Attributes = "attributes",
|
|
230
|
-
Collection = "collection",
|
|
231
|
-
Marketplace = "marketplace",
|
|
232
|
-
PaymentToken = "paymentToken",
|
|
233
|
-
LongPrice = "price",
|
|
234
|
-
ShortPrice = "priceShort"
|
|
235
|
-
}
|
|
236
|
-
export interface Filter {
|
|
237
|
-
dataType?: string[];
|
|
238
|
-
identifier?: string[];
|
|
239
|
-
chain?: ActivityChain[];
|
|
240
|
-
collection?: string[];
|
|
241
|
-
mintToken?: string[];
|
|
242
|
-
type?: string[];
|
|
243
|
-
nonce?: number[];
|
|
244
|
-
onSale?: boolean;
|
|
245
|
-
owner?: string[];
|
|
246
|
-
currentOwner?: string[];
|
|
247
|
-
saleInfo?: {
|
|
248
|
-
seller?: string[];
|
|
249
|
-
paymentToken?: string[];
|
|
250
|
-
marketplace?: string[];
|
|
251
|
-
auctionType?: string[];
|
|
252
|
-
};
|
|
253
|
-
range?: RangeFilter[];
|
|
254
|
-
metadata?: {
|
|
255
|
-
attributes?: NftMetadataAttributes[];
|
|
256
|
-
};
|
|
257
|
-
wasProcessed?: boolean;
|
|
258
|
-
cp_staked?: boolean;
|
|
259
|
-
activeAuction?: boolean;
|
|
260
|
-
customFilter?: string;
|
|
261
|
-
verifiedOnly?: boolean;
|
|
262
|
-
}
|
|
263
|
-
export interface NftMetadataAttributes {
|
|
264
|
-
trait_type: string;
|
|
265
|
-
value: string;
|
|
266
|
-
}
|
|
267
|
-
export interface SearchNFTs {
|
|
268
|
-
name?: string;
|
|
269
|
-
filters: Filter;
|
|
270
|
-
applyNftExtraDetails?: boolean;
|
|
271
|
-
select?: string[];
|
|
272
|
-
strictSelect?: boolean;
|
|
273
|
-
orderBy?: string[];
|
|
274
|
-
top?: number;
|
|
275
|
-
skip?: number;
|
|
276
|
-
includeCount?: boolean;
|
|
277
|
-
}
|
|
278
|
-
export declare enum AuctionTypes {
|
|
279
|
-
FixedPrice = "FixedPrice",
|
|
280
|
-
Auctions = "Auctions",
|
|
281
|
-
All = "All",
|
|
282
|
-
AllListed = "AllListed"
|
|
283
|
-
}
|
|
284
|
-
export interface GETDropsArgs {
|
|
285
|
-
name?: string;
|
|
286
|
-
/** If set, will return only NFTs from the specified collections */
|
|
287
|
-
collections?: string[];
|
|
288
|
-
chain?: ActivityChain[];
|
|
289
|
-
/** If set, will return only NFTs from verified collections */
|
|
290
|
-
onlyVerified?: boolean;
|
|
291
|
-
/** If set, will return only NFTs listed in the specified tokens */
|
|
292
|
-
listedInToken?: string[];
|
|
293
|
-
/** If set, will return only NFTs with a cantina level in the specified range */
|
|
294
|
-
timeRange?: {
|
|
295
|
-
min: number;
|
|
296
|
-
max: number;
|
|
297
|
-
};
|
|
298
|
-
/** If set, will return the total count of the NFTs, recommended to be set true only for the first call, then false for the next pages */
|
|
299
|
-
includeCount?: boolean;
|
|
300
|
-
/** The number of results to return */
|
|
301
|
-
top?: number;
|
|
302
|
-
/** The order by to use */
|
|
303
|
-
skip?: number;
|
|
304
|
-
/** The order of the results based on a field */
|
|
305
|
-
orderBy?: DropsOderBy[];
|
|
306
|
-
/** If set, will return only the specified fields */
|
|
307
|
-
onlySelectFields?: FieldsToSelect[];
|
|
308
|
-
}
|
|
309
|
-
export interface SuggestNFTsArgs {
|
|
310
|
-
/** If set, will return only collections or users with a name that contains the specified string */
|
|
311
|
-
name: string;
|
|
312
|
-
/** The number of results to return */
|
|
313
|
-
top?: number;
|
|
314
|
-
/** The order by to use */
|
|
315
|
-
skip?: number;
|
|
316
|
-
/** The order of the results based on a field */
|
|
317
|
-
orderBy?: SuggestOrderBy[];
|
|
318
|
-
chain?: ActivityChain[];
|
|
319
|
-
}
|
|
320
|
-
export interface OfferFilters {
|
|
321
|
-
isActive?: boolean[];
|
|
322
|
-
identifier?: string[];
|
|
323
|
-
collection?: string[];
|
|
324
|
-
owner?: string[];
|
|
325
|
-
nftOwner?: string[];
|
|
326
|
-
marketplace?: Marketplace[];
|
|
327
|
-
range?: {
|
|
328
|
-
min: number;
|
|
329
|
-
max: number;
|
|
330
|
-
field: string;
|
|
331
|
-
}[];
|
|
332
|
-
}
|
|
333
|
-
export interface GetOffersArgs {
|
|
334
|
-
select?: string[];
|
|
335
|
-
strictSelect?: boolean;
|
|
336
|
-
orderBy?: string[];
|
|
337
|
-
top?: number;
|
|
338
|
-
skip?: number;
|
|
339
|
-
includeCount?: boolean;
|
|
340
|
-
filters?: OfferFilters;
|
|
341
|
-
}
|
|
342
|
-
export type ActivityData = {
|
|
343
|
-
collection: string;
|
|
344
|
-
identifier: string;
|
|
345
|
-
price: number;
|
|
346
|
-
paymentToken: string;
|
|
347
|
-
scId: number;
|
|
348
|
-
usdValue: number;
|
|
349
|
-
egldValue: number;
|
|
350
|
-
nftInfo: Pick<NftData, 'identifier' | 'collection' | 'name' | 'metadata' | 'url' | 'wasProcessed' | 'media'>;
|
|
351
|
-
collectionInfo: ShortCollectionInfo;
|
|
352
|
-
originalTokenAmount?: string;
|
|
353
|
-
originalTokenAmountShort?: number;
|
|
354
|
-
originalTokenEgldValue?: number;
|
|
355
|
-
originalTokenUsdValue?: number;
|
|
356
|
-
originalTokenIdentifier?: string;
|
|
357
|
-
};
|
|
358
|
-
export type ShortCollectionInfo = Pick<ICollectionProfile, 'name' | 'isVerified' | 'isVisible' | 'profile' | 'description'> & {
|
|
359
|
-
collectionSize: number;
|
|
360
|
-
holderCount: number;
|
|
361
|
-
followCount: number;
|
|
362
|
-
};
|
|
363
|
-
export type TradingActivity = {
|
|
364
|
-
id: string;
|
|
365
|
-
txHash: string;
|
|
366
|
-
eventIdentifier: string;
|
|
367
|
-
timestamp: number;
|
|
368
|
-
activityType: NftActivityType;
|
|
369
|
-
source: string;
|
|
370
|
-
from: Owner;
|
|
371
|
-
to: Owner;
|
|
372
|
-
activityData: ActivityData;
|
|
373
|
-
chain?: ActivityChain;
|
|
374
|
-
};
|
|
375
|
-
export interface GetCollectionsArgs {
|
|
376
|
-
/** The collections to fetch the profile */
|
|
377
|
-
collections?: string[];
|
|
378
|
-
chain?: ActivityChain[];
|
|
379
|
-
/** If true, will return only NFTs that are mintable */
|
|
380
|
-
onlyMintable?: boolean;
|
|
381
|
-
/** The number of results to return */
|
|
382
|
-
top?: number;
|
|
383
|
-
/** The order by to use */
|
|
384
|
-
skip?: number;
|
|
385
|
-
/** The order of the results based on a field */
|
|
386
|
-
orderBy?: CollectionsOrderBy;
|
|
387
|
-
/** If set, will return only the specified fields */
|
|
388
|
-
onlySelectFields?: CollectionsFieldsToSelect[];
|
|
389
|
-
}
|
|
390
|
-
export interface GetGlobalOffersArgs {
|
|
391
|
-
/** The collections to fetch the profile */
|
|
392
|
-
collections?: string[];
|
|
393
|
-
/** The number of results to return */
|
|
394
|
-
top?: number;
|
|
395
|
-
/** The order by to use */
|
|
396
|
-
skip?: number;
|
|
397
|
-
/** The order of the results based on a field */
|
|
398
|
-
orderBy?: GlobalOfferOrderBy[];
|
|
399
|
-
/** If set, will return only the offers with required attributes */
|
|
400
|
-
withAttributes?: boolean;
|
|
401
|
-
/** If set, will return only the specified fields */
|
|
402
|
-
onlySelectFields?: GlobalOfferFieldsToSelect[];
|
|
403
|
-
onlyActive?: boolean;
|
|
404
|
-
offerIds?: number[];
|
|
405
|
-
ownedBy?: string[];
|
|
406
|
-
listedOnlyOn?: Marketplace[];
|
|
407
|
-
priceRange?: RangeFilter;
|
|
408
|
-
attributes?: MetadataAttribute[];
|
|
409
|
-
}
|
|
410
|
-
export interface CollectionsNFTsResponse {
|
|
411
|
-
/** The results count for the current page */
|
|
412
|
-
resultsCount: number;
|
|
413
|
-
/** The results for the current page */
|
|
414
|
-
results: ICollectionProfile[];
|
|
415
|
-
/** If the results are empty */
|
|
416
|
-
/** The payload to use to get the next page */
|
|
417
|
-
/** If there are more results to fetch */
|
|
418
|
-
hasMoreResults: boolean;
|
|
419
|
-
}
|
|
420
|
-
export interface ResultsBody {
|
|
421
|
-
collections: (ICollectionProfile & {
|
|
422
|
-
floorPrice: number;
|
|
423
|
-
})[];
|
|
424
|
-
users: IUserProfileSearch[];
|
|
425
|
-
nft: NftData[];
|
|
426
|
-
}
|
|
427
|
-
export interface OtherStatistics {
|
|
428
|
-
nftCount: number;
|
|
429
|
-
followCount: number;
|
|
430
|
-
holdersCount?: number;
|
|
431
|
-
}
|
|
432
|
-
export interface TradeData {
|
|
433
|
-
dayEgldVolume: number;
|
|
434
|
-
weekEgldVolume: number;
|
|
435
|
-
totalEgldVolume: number;
|
|
436
|
-
averageEgldPrice: number;
|
|
437
|
-
athEgldPrice: number;
|
|
438
|
-
athTxHash: string;
|
|
439
|
-
totalTrades: number;
|
|
440
|
-
}
|
|
441
|
-
export interface MintStatistics {
|
|
442
|
-
totalMintEgldVolume: number;
|
|
443
|
-
weekMintEgldVolume: number;
|
|
444
|
-
dayMintEgldVolume: number;
|
|
445
|
-
}
|
|
446
|
-
export interface CollectionVolume {
|
|
447
|
-
Day: string;
|
|
448
|
-
DR_Trades: number;
|
|
449
|
-
DR_Volume: number;
|
|
450
|
-
DR_VolumeUSD: number;
|
|
451
|
-
DR_Buyers: number;
|
|
452
|
-
DR_Sellers: number;
|
|
453
|
-
DR_FeesPaid: number;
|
|
454
|
-
DR_FeesPaidUSD: number;
|
|
455
|
-
DR_RoyaltiesPaid: number;
|
|
456
|
-
DR_RoyaltiesPaidUSD: number;
|
|
457
|
-
FM_Trades: number;
|
|
458
|
-
FM_Volume: number;
|
|
459
|
-
FM_VolumeUSD: number;
|
|
460
|
-
FM_Buyers: number;
|
|
461
|
-
FM_Sellers: number;
|
|
462
|
-
FM_FeesPaid: number;
|
|
463
|
-
FM_FeesPaidUSD: number;
|
|
464
|
-
FM_RoyaltiesPaid: number;
|
|
465
|
-
FM_RoyaltiesPaidUSD: number;
|
|
466
|
-
KG_Trades: number;
|
|
467
|
-
KG_Volume: number;
|
|
468
|
-
KG_VolumeUSD: number;
|
|
469
|
-
KG_Buyers: number;
|
|
470
|
-
KG_Sellers: number;
|
|
471
|
-
KG_FeesPaid: number;
|
|
472
|
-
KG_FeesPaidUSD: number;
|
|
473
|
-
KG_RoyaltiesPaid: number;
|
|
474
|
-
KG_RoyaltiesPaidUSD: number;
|
|
475
|
-
Total_Trades: number;
|
|
476
|
-
Total_Volume: number;
|
|
477
|
-
Total_VolumeUSD: number;
|
|
478
|
-
Total_Buyers: number;
|
|
479
|
-
Total_Sellers: number;
|
|
480
|
-
Total_FeesPaid: number;
|
|
481
|
-
Total_FeesPaidUSD: number;
|
|
482
|
-
Total_RoyaltiesPaid: number;
|
|
483
|
-
Total_RoyaltiesPaidUSD: number;
|
|
484
|
-
XO_Trades: number;
|
|
485
|
-
XO_Volume: number;
|
|
486
|
-
XO_VolumeUSD: number;
|
|
487
|
-
XO_Buyers: number;
|
|
488
|
-
XO_Sellers: number;
|
|
489
|
-
XO_FeesPaid: number;
|
|
490
|
-
XO_FeesPaidUSD: number;
|
|
491
|
-
XO_RoyaltiesPaid: number;
|
|
492
|
-
XO_RoyaltiesPaidUSD: number;
|
|
493
|
-
}
|
|
494
|
-
export interface FloorPriceHistory {
|
|
495
|
-
Day: string;
|
|
496
|
-
FloorPrice: number;
|
|
497
|
-
AveragePrice: number;
|
|
498
|
-
}
|
|
499
|
-
export type FungibleAssets = {
|
|
500
|
-
id?: string;
|
|
501
|
-
identifier: string;
|
|
502
|
-
collection?: string;
|
|
503
|
-
dataType?: string;
|
|
504
|
-
decimals: number;
|
|
505
|
-
name: string;
|
|
506
|
-
type: string;
|
|
507
|
-
category: string[];
|
|
508
|
-
svgUrl: string;
|
|
509
|
-
pngUrl: string;
|
|
510
|
-
ticker: string;
|
|
511
|
-
usdPrice?: number;
|
|
512
|
-
isAshSupported: boolean;
|
|
513
|
-
_ts?: number;
|
|
514
|
-
chain?: ActivityChain;
|
|
515
|
-
};
|
|
516
|
-
export type FungibleAssetsMap = {
|
|
517
|
-
[key: string]: FungibleAssets;
|
|
518
|
-
};
|
|
519
|
-
export declare enum AssetCategory {
|
|
520
|
-
ALL = "all",
|
|
521
|
-
Trade = "trade",
|
|
522
|
-
P2P = "p2p",
|
|
523
|
-
Staking = "staking",
|
|
524
|
-
Minting = "minting"
|
|
525
|
-
}
|
|
526
|
-
export type ISingleHolder = {
|
|
527
|
-
address: string;
|
|
528
|
-
username?: string;
|
|
529
|
-
count: number;
|
|
530
|
-
weight: number;
|
|
531
|
-
};
|
|
532
|
-
export type IOwners = {
|
|
533
|
-
totalSupply: number;
|
|
534
|
-
onMarket: HoldedDetails;
|
|
535
|
-
staked: HoldedDetails;
|
|
536
|
-
otherSCs: HoldedDetails;
|
|
537
|
-
burnWallet: HoldedDetails;
|
|
538
|
-
uniqueHolders: HoldedDetails;
|
|
539
|
-
holded: AvgHolder;
|
|
540
|
-
walletDetails: ISingleHolder[];
|
|
541
|
-
};
|
|
542
|
-
export type HoldedDetails = {
|
|
543
|
-
count: number;
|
|
544
|
-
weight: number;
|
|
545
|
-
};
|
|
546
|
-
export interface AvgHolder extends HoldedDetails {
|
|
547
|
-
avgPerHodler: number;
|
|
548
|
-
}
|
|
549
|
-
export type GlobalOffers = {
|
|
550
|
-
offerId: number;
|
|
551
|
-
collection: string;
|
|
552
|
-
quantity: number;
|
|
553
|
-
paymentToken: string;
|
|
554
|
-
price: string;
|
|
555
|
-
priceShort: number;
|
|
556
|
-
owner: Owner;
|
|
557
|
-
usdValue: string;
|
|
558
|
-
marketplace: string;
|
|
559
|
-
timestamp: number;
|
|
560
|
-
attributes: MetadataAttribute[];
|
|
561
|
-
collectionInfo?: CollectionInfo;
|
|
562
|
-
isActive: boolean;
|
|
563
|
-
floorPrice: number;
|
|
564
|
-
floorPriceMargin: number | null;
|
|
565
|
-
chain?: ActivityChain;
|
|
566
|
-
};
|
|
567
|
-
export type GlobalOfferOwner = {
|
|
568
|
-
address: string;
|
|
569
|
-
userName: string;
|
|
570
|
-
profile: string;
|
|
571
|
-
};
|
|
572
|
-
export type CollectionRanksExport = Partial<Pick<NftData, 'identifier' | 'name'>> & {
|
|
573
|
-
rank: number;
|
|
574
|
-
};
|
|
575
|
-
export type GetCollectionMintInfo = {
|
|
576
|
-
collection: string;
|
|
577
|
-
contractAddress: string;
|
|
578
|
-
collectionTag: string;
|
|
579
|
-
startTime: number;
|
|
580
|
-
prices?: StagePrice[];
|
|
581
|
-
nftTransferLimited: boolean;
|
|
582
|
-
hasBotProtection: boolean;
|
|
583
|
-
kycRequired: boolean;
|
|
584
|
-
totalNftMinted: number;
|
|
585
|
-
collectionSize: number;
|
|
586
|
-
globalWalletLimit: number;
|
|
587
|
-
cid: string;
|
|
588
|
-
hasMetadata: boolean;
|
|
589
|
-
mediaType: string;
|
|
590
|
-
mintStages: MintStage[];
|
|
591
|
-
collectionInfo: CollectionInfo;
|
|
592
|
-
creatorInfo: CreatorProfile;
|
|
593
|
-
isExcludedFromMint: boolean;
|
|
594
|
-
};
|
|
595
|
-
export type MintStage = {
|
|
596
|
-
name: string;
|
|
597
|
-
startTime: number;
|
|
598
|
-
endTime: number;
|
|
599
|
-
mintCount: number;
|
|
600
|
-
mintLimit: number;
|
|
601
|
-
mintEnabled: boolean;
|
|
602
|
-
isWhitelist: boolean;
|
|
603
|
-
walletLimit: number;
|
|
604
|
-
maxBuyable?: number;
|
|
605
|
-
walletLimitReached?: boolean;
|
|
606
|
-
userMintsPerStage?: number;
|
|
607
|
-
prices?: StagePrice[];
|
|
608
|
-
isSoldOut: boolean;
|
|
609
|
-
};
|
|
610
|
-
export type StagePrice = {
|
|
611
|
-
tokenIdentifier: string;
|
|
612
|
-
tokenNonce: string;
|
|
613
|
-
amount: string;
|
|
614
|
-
amountShort: number;
|
|
615
|
-
usdValue: number;
|
|
616
|
-
decimals: number;
|
|
617
|
-
};
|
|
618
|
-
export type GetCollectionStatsArgs = {
|
|
619
|
-
filters?: {
|
|
620
|
-
chain?: ActivityChain[];
|
|
621
|
-
collection?: string[];
|
|
622
|
-
verifiedOnly?: boolean;
|
|
623
|
-
range?: RangeFilter[];
|
|
624
|
-
};
|
|
625
|
-
orderBy?: CollectionStatsOrderBy[];
|
|
626
|
-
select?: CollectionStatsSelectFields[];
|
|
627
|
-
top: number;
|
|
628
|
-
skip: number;
|
|
629
|
-
};
|
|
630
|
-
export declare enum CollectionStatsSelectFields {
|
|
631
|
-
TradingStats = "tradingStats"
|
|
632
|
-
}
|
|
633
|
-
export interface RangeFilter {
|
|
634
|
-
min?: number;
|
|
635
|
-
max?: number;
|
|
636
|
-
field?: string;
|
|
637
|
-
}
|
|
638
|
-
export declare enum CollectionStatsOrderBy {
|
|
639
|
-
ListedCountDesc = "tradingStats.listedCount DESC",
|
|
640
|
-
ListedCountAsc = "tradingStats.listedCount ASC",
|
|
641
|
-
FloorPriceDesc = "tradingStats.floorPrice DESC",
|
|
642
|
-
FloorPriceAsc = "tradingStats.floorPrice ASC",
|
|
643
|
-
TotalVolumeDesc = "tradingStats.totalVolume DESC",
|
|
644
|
-
TotalVolumeAsc = "tradingStats.totalVolume ASC",
|
|
645
|
-
TotalTradesDesc = "tradingStats.totalTrades DESC",
|
|
646
|
-
TotalTradesAsc = "tradingStats.totalTrades ASC",
|
|
647
|
-
AllTimeHighDesc = "tradingStats.allTimeHigh.price DESC",
|
|
648
|
-
AllTimeHighAsc = "tradingStats.allTimeHigh.price ASC",
|
|
649
|
-
DayVolumeDesc = "tradingStats.day.volume DESC",
|
|
650
|
-
DayVolumeAsc = "tradingStats.day.volume ASC",
|
|
651
|
-
DayVolumeMarginDesc = "tradingStats.day.volumeMargin DESC",
|
|
652
|
-
DayVolumeMarginAsc = "tradingStats.day.volumeMargin ASC",
|
|
653
|
-
DayTradesDesc = "tradingStats.day.trades DESC",
|
|
654
|
-
DayTradesAsc = "tradingStats.day.trades ASC",
|
|
655
|
-
DayTradesMarginDesc = "tradingStats.day.tradesMargin DESC",
|
|
656
|
-
DayTradesMarginAsc = "tradingStats.day.tradesMargin ASC",
|
|
657
|
-
WeekVolumeDesc = "tradingStats.week.volume DESC",
|
|
658
|
-
WeekVolumeAsc = "tradingStats.week.volume ASC",
|
|
659
|
-
WeekVolumeMarginDesc = "tradingStats.week.volumeMargin DESC",
|
|
660
|
-
WeekVolumeMarginAsc = "tradingStats.week.volumeMargin ASC",
|
|
661
|
-
WeekTradesDesc = "tradingStats.week.trades DESC",
|
|
662
|
-
WeekTradesAsc = "tradingStats.week.trades ASC",
|
|
663
|
-
WeekTradesMarginDesc = "tradingStats.week.tradesMargin DESC",
|
|
664
|
-
WeekTradesMarginAsc = "tradingStats.week.tradesMargin ASC",
|
|
665
|
-
MonthVolumeDesc = "tradingStats.month.volume DESC",
|
|
666
|
-
MonthVolumeAsc = "tradingStats.month.volume ASC",
|
|
667
|
-
MonthVolumeMarginDesc = "tradingStats.month.volumeMargin DESC",
|
|
668
|
-
MonthVolumeMarginAsc = "tradingStats.month.volumeMargin ASC",
|
|
669
|
-
MonthTradesDesc = "tradingStats.month.trades DESC",
|
|
670
|
-
MonthTradesAsc = "tradingStats.month.trades ASC",
|
|
671
|
-
MonthTradesMarginDesc = "tradingStats.month.tradesMargin DESC",
|
|
672
|
-
MonthTradesMarginAsc = "tradingStats.month.tradesMargin ASC",
|
|
673
|
-
YearVolumeDesc = "tradingStats.year.volume DESC",
|
|
674
|
-
YearVolumeAsc = "tradingStats.year.volume ASC",
|
|
675
|
-
YearVolumeMarginDesc = "tradingStats.year.volumeMargin DESC",
|
|
676
|
-
YearVolumeMarginAsc = "tradingStats.year.volumeMargin ASC",
|
|
677
|
-
YearTradesDesc = "tradingStats.year.trades DESC",
|
|
678
|
-
YearTradesAsc = "tradingStats.year.trades ASC",
|
|
679
|
-
YearTradesMarginDesc = "tradingStats.year.tradesMargin DESC",
|
|
680
|
-
YearTradesMarginAsc = "tradingStats.year.tradesMargin ASC"
|
|
681
|
-
}
|
|
682
|
-
export type CollectionStatsDoc = {
|
|
683
|
-
collection: string;
|
|
684
|
-
listedCount: number;
|
|
685
|
-
floorPrice: number;
|
|
686
|
-
tradingStats: {
|
|
687
|
-
totalVolume: number;
|
|
688
|
-
totalTrades: number;
|
|
689
|
-
allTimeHigh: {
|
|
690
|
-
price: number;
|
|
691
|
-
timestamp: number;
|
|
692
|
-
txHash: string;
|
|
693
|
-
identifier: string;
|
|
694
|
-
};
|
|
695
|
-
day: TradingDataSummary;
|
|
696
|
-
week: TradingDataSummary;
|
|
697
|
-
month: TradingDataSummary;
|
|
698
|
-
quarter: TradingDataSummary;
|
|
699
|
-
halfYear: TradingDataSummary;
|
|
700
|
-
year: TradingDataSummary;
|
|
701
|
-
};
|
|
702
|
-
collectionInfo: CollectionInfo;
|
|
703
|
-
id: string;
|
|
704
|
-
};
|
|
705
|
-
export type TradingDataSummary = {
|
|
706
|
-
volume: number;
|
|
707
|
-
volumeMargin: number;
|
|
708
|
-
trades: number;
|
|
709
|
-
tradesMargin: number;
|
|
710
|
-
minPrice?: number;
|
|
711
|
-
maxPrice?: number;
|
|
712
|
-
averagePrice?: number;
|
|
713
|
-
};
|
|
714
|
-
export interface CollectionListings {
|
|
715
|
-
density: Density[];
|
|
716
|
-
listings: Pick<NftData, 'name' | 'collection' | 'metadata' | 'saleInfo' | 'wasProcessed' | 'media' | 'url' | 'identifier' | 'id'>[];
|
|
717
|
-
}
|
|
718
|
-
export interface Density {
|
|
719
|
-
key: string;
|
|
720
|
-
intervalName: string;
|
|
721
|
-
intervalCount: number;
|
|
722
|
-
totalCount: number;
|
|
723
|
-
}
|
|
724
|
-
export interface Listing {
|
|
725
|
-
identifier: string;
|
|
726
|
-
name: string;
|
|
727
|
-
collection: string;
|
|
728
|
-
metadata: Pick<NFTMetadata, 'rarity'>;
|
|
729
|
-
url: string;
|
|
730
|
-
media: Media;
|
|
731
|
-
wasProcessed: boolean;
|
|
732
|
-
saleInfo: Pick<SaleInfo, 'minBidShort'>;
|
|
733
|
-
}
|