@zoralabs/coins-sdk 0.2.9 → 0.2.11
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/CHANGELOG.md +13 -0
- package/dist/actions/getOnchainCoinDetails.d.ts +0 -20
- package/dist/actions/getOnchainCoinDetails.d.ts.map +1 -1
- package/dist/api/queries.d.ts +9 -1
- package/dist/api/queries.d.ts.map +1 -1
- package/dist/client/sdk.gen.d.ts +114 -46
- package/dist/client/sdk.gen.d.ts.map +1 -1
- package/dist/client/types.gen.d.ts +304 -90
- package/dist/client/types.gen.d.ts.map +1 -1
- package/dist/index.cjs +56 -125
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +53 -122
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
- package/src/actions/getOnchainCoinDetails.ts +9 -177
- package/src/api/queries.ts +36 -0
- package/src/client/sdk.gen.ts +48 -0
- package/src/client/types.gen.ts +314 -90
package/src/api/queries.ts
CHANGED
|
@@ -2,9 +2,13 @@ import {
|
|
|
2
2
|
GetCoinCommentsData,
|
|
3
3
|
GetCoinCommentsResponse,
|
|
4
4
|
GetCoinData,
|
|
5
|
+
GetCoinHoldersData,
|
|
6
|
+
GetCoinHoldersResponse,
|
|
5
7
|
GetCoinResponse,
|
|
6
8
|
GetCoinsData,
|
|
7
9
|
GetCoinsResponse,
|
|
10
|
+
GetCoinSwapsData,
|
|
11
|
+
GetCoinSwapsResponse,
|
|
8
12
|
GetProfileBalancesData,
|
|
9
13
|
GetProfileBalancesResponse,
|
|
10
14
|
GetProfileCoinsData,
|
|
@@ -16,6 +20,8 @@ import {
|
|
|
16
20
|
getCoin as getCoinSDK,
|
|
17
21
|
getCoins as getCoinsSDK,
|
|
18
22
|
getCoinComments as getCoinCommentsSDK,
|
|
23
|
+
getCoinHolders as getCoinHoldersSDK,
|
|
24
|
+
getCoinSwaps as getCoinSwapsSDK,
|
|
19
25
|
getProfile as getProfileSDK,
|
|
20
26
|
getProfileBalances as getProfileBalancesSDK,
|
|
21
27
|
getProfileCoins as getProfileCoinsSDK,
|
|
@@ -60,6 +66,36 @@ export const getCoins = async (
|
|
|
60
66
|
});
|
|
61
67
|
};
|
|
62
68
|
|
|
69
|
+
type GetCoinHoldersQuery = GetCoinHoldersData["query"];
|
|
70
|
+
export type { GetCoinHoldersQuery, GetCoinHoldersData };
|
|
71
|
+
export type { GetCoinHoldersResponse } from "../client/types.gen";
|
|
72
|
+
|
|
73
|
+
export const getCoinHolders = async (
|
|
74
|
+
query: GetCoinHoldersQuery,
|
|
75
|
+
options?: RequestOptionsType<GetCoinHoldersData>,
|
|
76
|
+
): Promise<RequestResult<GetCoinHoldersResponse>> => {
|
|
77
|
+
return await getCoinHoldersSDK({
|
|
78
|
+
query,
|
|
79
|
+
...getApiKeyMeta(),
|
|
80
|
+
...options,
|
|
81
|
+
});
|
|
82
|
+
};
|
|
83
|
+
|
|
84
|
+
type GetCoinSwapsQuery = GetCoinSwapsData["query"];
|
|
85
|
+
export type { GetCoinSwapsQuery, GetCoinSwapsData };
|
|
86
|
+
export type { GetCoinSwapsResponse } from "../client/types.gen";
|
|
87
|
+
|
|
88
|
+
export const getCoinSwaps = async (
|
|
89
|
+
query: GetCoinSwapsQuery,
|
|
90
|
+
options?: RequestOptionsType<GetCoinSwapsData>,
|
|
91
|
+
): Promise<RequestResult<GetCoinSwapsResponse>> => {
|
|
92
|
+
return await getCoinSwapsSDK({
|
|
93
|
+
query,
|
|
94
|
+
...getApiKeyMeta(),
|
|
95
|
+
...options,
|
|
96
|
+
});
|
|
97
|
+
};
|
|
98
|
+
|
|
63
99
|
type GetCoinCommentsQuery = GetCoinCommentsData["query"];
|
|
64
100
|
export type { GetCoinCommentsQuery, GetCoinCommentsData };
|
|
65
101
|
export type { GetCoinCommentsResponse } from "../client/types.gen";
|
package/src/client/sdk.gen.ts
CHANGED
|
@@ -12,6 +12,10 @@ import type {
|
|
|
12
12
|
GetCoinResponse,
|
|
13
13
|
GetCoinCommentsData,
|
|
14
14
|
GetCoinCommentsResponse,
|
|
15
|
+
GetCoinHoldersData,
|
|
16
|
+
GetCoinHoldersResponse,
|
|
17
|
+
GetCoinSwapsData,
|
|
18
|
+
GetCoinSwapsResponse,
|
|
15
19
|
GetCoinsData,
|
|
16
20
|
GetCoinsResponse,
|
|
17
21
|
SetCreateUploadJwtData,
|
|
@@ -113,6 +117,50 @@ export const getCoinComments = <ThrowOnError extends boolean = false>(
|
|
|
113
117
|
});
|
|
114
118
|
};
|
|
115
119
|
|
|
120
|
+
/**
|
|
121
|
+
* zoraSDK_coinHolders query
|
|
122
|
+
*/
|
|
123
|
+
export const getCoinHolders = <ThrowOnError extends boolean = false>(
|
|
124
|
+
options: Options<GetCoinHoldersData, ThrowOnError>,
|
|
125
|
+
) => {
|
|
126
|
+
return (options.client ?? _heyApiClient).get<
|
|
127
|
+
GetCoinHoldersResponse,
|
|
128
|
+
unknown,
|
|
129
|
+
ThrowOnError
|
|
130
|
+
>({
|
|
131
|
+
security: [
|
|
132
|
+
{
|
|
133
|
+
name: "api-key",
|
|
134
|
+
type: "apiKey",
|
|
135
|
+
},
|
|
136
|
+
],
|
|
137
|
+
url: "/coinHolders",
|
|
138
|
+
...options,
|
|
139
|
+
});
|
|
140
|
+
};
|
|
141
|
+
|
|
142
|
+
/**
|
|
143
|
+
* zoraSDK_coinSwaps query
|
|
144
|
+
*/
|
|
145
|
+
export const getCoinSwaps = <ThrowOnError extends boolean = false>(
|
|
146
|
+
options: Options<GetCoinSwapsData, ThrowOnError>,
|
|
147
|
+
) => {
|
|
148
|
+
return (options.client ?? _heyApiClient).get<
|
|
149
|
+
GetCoinSwapsResponse,
|
|
150
|
+
unknown,
|
|
151
|
+
ThrowOnError
|
|
152
|
+
>({
|
|
153
|
+
security: [
|
|
154
|
+
{
|
|
155
|
+
name: "api-key",
|
|
156
|
+
type: "apiKey",
|
|
157
|
+
},
|
|
158
|
+
],
|
|
159
|
+
url: "/coinSwaps",
|
|
160
|
+
...options,
|
|
161
|
+
});
|
|
162
|
+
};
|
|
163
|
+
|
|
116
164
|
/**
|
|
117
165
|
* zoraSDK_coins query
|
|
118
166
|
*/
|
package/src/client/types.gen.ts
CHANGED
|
@@ -101,23 +101,6 @@ export type GetCoinResponses = {
|
|
|
101
101
|
*/
|
|
102
102
|
createdAt?: string;
|
|
103
103
|
creatorAddress?: string;
|
|
104
|
-
creatorEarnings?: Array<{
|
|
105
|
-
amount: {
|
|
106
|
-
currencyAddress: string;
|
|
107
|
-
/**
|
|
108
|
-
* The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.
|
|
109
|
-
*/
|
|
110
|
-
amountRaw: string;
|
|
111
|
-
/**
|
|
112
|
-
* The `Float` scalar type represents signed double-precision fractional values as specified by [IEEE 754](https://en.wikipedia.org/wiki/IEEE_floating_point).
|
|
113
|
-
*/
|
|
114
|
-
amountDecimal: number;
|
|
115
|
-
};
|
|
116
|
-
/**
|
|
117
|
-
* The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.
|
|
118
|
-
*/
|
|
119
|
-
amountUsd?: string;
|
|
120
|
-
}>;
|
|
121
104
|
poolCurrencyToken?: {
|
|
122
105
|
/**
|
|
123
106
|
* The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.
|
|
@@ -246,6 +229,15 @@ export type GetCoinResponses = {
|
|
|
246
229
|
count: number;
|
|
247
230
|
edges: Array<{
|
|
248
231
|
node: {
|
|
232
|
+
/**
|
|
233
|
+
* The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.
|
|
234
|
+
*/
|
|
235
|
+
commentId: string;
|
|
236
|
+
/**
|
|
237
|
+
* The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.
|
|
238
|
+
*/
|
|
239
|
+
nonce: string;
|
|
240
|
+
userAddress: string;
|
|
249
241
|
/**
|
|
250
242
|
* The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.
|
|
251
243
|
*/
|
|
@@ -254,7 +246,6 @@ export type GetCoinResponses = {
|
|
|
254
246
|
* The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.
|
|
255
247
|
*/
|
|
256
248
|
comment: string;
|
|
257
|
-
userAddress: string;
|
|
258
249
|
/**
|
|
259
250
|
* The `Int` scalar type represents non-fractional signed whole numeric values. Int can represent values between -(2^31) and 2^31 - 1.
|
|
260
251
|
*/
|
|
@@ -288,6 +279,23 @@ export type GetCoinResponses = {
|
|
|
288
279
|
};
|
|
289
280
|
}>;
|
|
290
281
|
};
|
|
282
|
+
creatorEarnings?: Array<{
|
|
283
|
+
amount: {
|
|
284
|
+
currencyAddress: string;
|
|
285
|
+
/**
|
|
286
|
+
* The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.
|
|
287
|
+
*/
|
|
288
|
+
amountRaw: string;
|
|
289
|
+
/**
|
|
290
|
+
* The `Float` scalar type represents signed double-precision fractional values as specified by [IEEE 754](https://en.wikipedia.org/wiki/IEEE_floating_point).
|
|
291
|
+
*/
|
|
292
|
+
amountDecimal: number;
|
|
293
|
+
};
|
|
294
|
+
/**
|
|
295
|
+
* The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.
|
|
296
|
+
*/
|
|
297
|
+
amountUsd?: string;
|
|
298
|
+
}>;
|
|
291
299
|
};
|
|
292
300
|
};
|
|
293
301
|
};
|
|
@@ -340,6 +348,15 @@ export type GetCoinCommentsResponses = {
|
|
|
340
348
|
count: number;
|
|
341
349
|
edges: Array<{
|
|
342
350
|
node: {
|
|
351
|
+
/**
|
|
352
|
+
* The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.
|
|
353
|
+
*/
|
|
354
|
+
commentId: string;
|
|
355
|
+
/**
|
|
356
|
+
* The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.
|
|
357
|
+
*/
|
|
358
|
+
nonce: string;
|
|
359
|
+
userAddress: string;
|
|
343
360
|
/**
|
|
344
361
|
* The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.
|
|
345
362
|
*/
|
|
@@ -348,7 +365,6 @@ export type GetCoinCommentsResponses = {
|
|
|
348
365
|
* The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.
|
|
349
366
|
*/
|
|
350
367
|
comment: string;
|
|
351
|
-
userAddress: string;
|
|
352
368
|
/**
|
|
353
369
|
* The `Int` scalar type represents non-fractional signed whole numeric values. Int can represent values between -(2^31) and 2^31 - 1.
|
|
354
370
|
*/
|
|
@@ -386,6 +402,15 @@ export type GetCoinCommentsResponses = {
|
|
|
386
402
|
count: number;
|
|
387
403
|
edges: Array<{
|
|
388
404
|
node: {
|
|
405
|
+
/**
|
|
406
|
+
* The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.
|
|
407
|
+
*/
|
|
408
|
+
commentId: string;
|
|
409
|
+
/**
|
|
410
|
+
* The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.
|
|
411
|
+
*/
|
|
412
|
+
nonce: string;
|
|
413
|
+
userAddress: string;
|
|
389
414
|
/**
|
|
390
415
|
* The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.
|
|
391
416
|
*/
|
|
@@ -394,7 +419,6 @@ export type GetCoinCommentsResponses = {
|
|
|
394
419
|
* The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.
|
|
395
420
|
*/
|
|
396
421
|
comment: string;
|
|
397
|
-
userAddress: string;
|
|
398
422
|
/**
|
|
399
423
|
* The `Int` scalar type represents non-fractional signed whole numeric values. Int can represent values between -(2^31) and 2^31 - 1.
|
|
400
424
|
*/
|
|
@@ -438,6 +462,217 @@ export type GetCoinCommentsResponses = {
|
|
|
438
462
|
export type GetCoinCommentsResponse =
|
|
439
463
|
GetCoinCommentsResponses[keyof GetCoinCommentsResponses];
|
|
440
464
|
|
|
465
|
+
export type GetCoinHoldersData = {
|
|
466
|
+
body?: never;
|
|
467
|
+
path?: never;
|
|
468
|
+
query: {
|
|
469
|
+
chainId: number;
|
|
470
|
+
address: string;
|
|
471
|
+
after?: string;
|
|
472
|
+
count?: number;
|
|
473
|
+
};
|
|
474
|
+
url: "/coinHolders";
|
|
475
|
+
};
|
|
476
|
+
|
|
477
|
+
export type GetCoinHoldersErrors = {
|
|
478
|
+
/**
|
|
479
|
+
* Bad request
|
|
480
|
+
*/
|
|
481
|
+
400: unknown;
|
|
482
|
+
/**
|
|
483
|
+
* Internal server error
|
|
484
|
+
*/
|
|
485
|
+
500: unknown;
|
|
486
|
+
};
|
|
487
|
+
|
|
488
|
+
export type GetCoinHoldersResponses = {
|
|
489
|
+
/**
|
|
490
|
+
* Successful operation
|
|
491
|
+
*/
|
|
492
|
+
200: {
|
|
493
|
+
zora20Token?: {
|
|
494
|
+
tokenBalances: {
|
|
495
|
+
pageInfo: {
|
|
496
|
+
/**
|
|
497
|
+
* When paginating forwards, the cursor to continue.
|
|
498
|
+
*/
|
|
499
|
+
endCursor?: string;
|
|
500
|
+
/**
|
|
501
|
+
* When paginating forwards, are there more items?
|
|
502
|
+
*/
|
|
503
|
+
hasNextPage: boolean;
|
|
504
|
+
};
|
|
505
|
+
/**
|
|
506
|
+
* The `Int` scalar type represents non-fractional signed whole numeric values. Int can represent values between -(2^31) and 2^31 - 1.
|
|
507
|
+
*/
|
|
508
|
+
count: number;
|
|
509
|
+
edges: Array<{
|
|
510
|
+
node: {
|
|
511
|
+
/**
|
|
512
|
+
* The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.
|
|
513
|
+
*/
|
|
514
|
+
balance: string;
|
|
515
|
+
ownerAddress: string;
|
|
516
|
+
ownerProfile: {
|
|
517
|
+
/**
|
|
518
|
+
* The Globally Unique ID of this object
|
|
519
|
+
*/
|
|
520
|
+
id: string;
|
|
521
|
+
/**
|
|
522
|
+
* The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.
|
|
523
|
+
*/
|
|
524
|
+
handle: string;
|
|
525
|
+
avatar?: {
|
|
526
|
+
previewImage: {
|
|
527
|
+
/**
|
|
528
|
+
* The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.
|
|
529
|
+
*/
|
|
530
|
+
blurhash?: string;
|
|
531
|
+
/**
|
|
532
|
+
* The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.
|
|
533
|
+
*/
|
|
534
|
+
medium: string;
|
|
535
|
+
/**
|
|
536
|
+
* The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.
|
|
537
|
+
*/
|
|
538
|
+
small: string;
|
|
539
|
+
};
|
|
540
|
+
};
|
|
541
|
+
};
|
|
542
|
+
};
|
|
543
|
+
}>;
|
|
544
|
+
};
|
|
545
|
+
};
|
|
546
|
+
};
|
|
547
|
+
};
|
|
548
|
+
|
|
549
|
+
export type GetCoinHoldersResponse =
|
|
550
|
+
GetCoinHoldersResponses[keyof GetCoinHoldersResponses];
|
|
551
|
+
|
|
552
|
+
export type GetCoinSwapsData = {
|
|
553
|
+
body?: never;
|
|
554
|
+
path?: never;
|
|
555
|
+
query: {
|
|
556
|
+
address: string;
|
|
557
|
+
chain?: number;
|
|
558
|
+
after?: string;
|
|
559
|
+
first?: number;
|
|
560
|
+
};
|
|
561
|
+
url: "/coinSwaps";
|
|
562
|
+
};
|
|
563
|
+
|
|
564
|
+
export type GetCoinSwapsErrors = {
|
|
565
|
+
/**
|
|
566
|
+
* Bad request
|
|
567
|
+
*/
|
|
568
|
+
400: unknown;
|
|
569
|
+
/**
|
|
570
|
+
* Internal server error
|
|
571
|
+
*/
|
|
572
|
+
500: unknown;
|
|
573
|
+
};
|
|
574
|
+
|
|
575
|
+
export type GetCoinSwapsResponses = {
|
|
576
|
+
/**
|
|
577
|
+
* Successful operation
|
|
578
|
+
*/
|
|
579
|
+
200: {
|
|
580
|
+
zora20Token?: {
|
|
581
|
+
swapActivities: {
|
|
582
|
+
/**
|
|
583
|
+
* The `Int` scalar type represents non-fractional signed whole numeric values. Int can represent values between -(2^31) and 2^31 - 1.
|
|
584
|
+
*/
|
|
585
|
+
count: number;
|
|
586
|
+
edges: Array<{
|
|
587
|
+
node: {
|
|
588
|
+
/**
|
|
589
|
+
* The Globally Unique ID of this object
|
|
590
|
+
*/
|
|
591
|
+
id: string;
|
|
592
|
+
currencyAmountWithPrice: {
|
|
593
|
+
/**
|
|
594
|
+
* The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.
|
|
595
|
+
*/
|
|
596
|
+
priceUsdc?: string;
|
|
597
|
+
currencyAmount: {
|
|
598
|
+
currencyAddress: string;
|
|
599
|
+
/**
|
|
600
|
+
* The `Float` scalar type represents signed double-precision fractional values as specified by [IEEE 754](https://en.wikipedia.org/wiki/IEEE_floating_point).
|
|
601
|
+
*/
|
|
602
|
+
amountDecimal: number;
|
|
603
|
+
};
|
|
604
|
+
};
|
|
605
|
+
/**
|
|
606
|
+
* The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.
|
|
607
|
+
*/
|
|
608
|
+
senderAddress: string;
|
|
609
|
+
/**
|
|
610
|
+
* The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.
|
|
611
|
+
*/
|
|
612
|
+
recipientAddress: string;
|
|
613
|
+
/**
|
|
614
|
+
* The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.
|
|
615
|
+
*/
|
|
616
|
+
transactionHash: string;
|
|
617
|
+
/**
|
|
618
|
+
* The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.
|
|
619
|
+
*/
|
|
620
|
+
coinAmount: string;
|
|
621
|
+
/**
|
|
622
|
+
* Date with time (isoformat)
|
|
623
|
+
*/
|
|
624
|
+
blockTimestamp: string;
|
|
625
|
+
activityType?: "BUY" | "SELL";
|
|
626
|
+
senderProfile?: {
|
|
627
|
+
/**
|
|
628
|
+
* The Globally Unique ID of this object
|
|
629
|
+
*/
|
|
630
|
+
id: string;
|
|
631
|
+
/**
|
|
632
|
+
* The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.
|
|
633
|
+
*/
|
|
634
|
+
handle: string;
|
|
635
|
+
avatar?: {
|
|
636
|
+
previewImage: {
|
|
637
|
+
/**
|
|
638
|
+
* The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.
|
|
639
|
+
*/
|
|
640
|
+
blurhash?: string;
|
|
641
|
+
/**
|
|
642
|
+
* The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.
|
|
643
|
+
*/
|
|
644
|
+
medium: string;
|
|
645
|
+
/**
|
|
646
|
+
* The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.
|
|
647
|
+
*/
|
|
648
|
+
small: string;
|
|
649
|
+
};
|
|
650
|
+
};
|
|
651
|
+
};
|
|
652
|
+
};
|
|
653
|
+
/**
|
|
654
|
+
* The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.
|
|
655
|
+
*/
|
|
656
|
+
cursor: string;
|
|
657
|
+
}>;
|
|
658
|
+
pageInfo: {
|
|
659
|
+
/**
|
|
660
|
+
* When paginating forwards, the cursor to continue.
|
|
661
|
+
*/
|
|
662
|
+
endCursor?: string;
|
|
663
|
+
/**
|
|
664
|
+
* When paginating forwards, are there more items?
|
|
665
|
+
*/
|
|
666
|
+
hasNextPage: boolean;
|
|
667
|
+
};
|
|
668
|
+
};
|
|
669
|
+
};
|
|
670
|
+
};
|
|
671
|
+
};
|
|
672
|
+
|
|
673
|
+
export type GetCoinSwapsResponse =
|
|
674
|
+
GetCoinSwapsResponses[keyof GetCoinSwapsResponses];
|
|
675
|
+
|
|
441
676
|
export type GetCoinsData = {
|
|
442
677
|
body?: never;
|
|
443
678
|
path?: never;
|
|
@@ -504,23 +739,6 @@ export type GetCoinsResponses = {
|
|
|
504
739
|
*/
|
|
505
740
|
createdAt?: string;
|
|
506
741
|
creatorAddress?: string;
|
|
507
|
-
creatorEarnings?: Array<{
|
|
508
|
-
amount: {
|
|
509
|
-
currencyAddress: string;
|
|
510
|
-
/**
|
|
511
|
-
* The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.
|
|
512
|
-
*/
|
|
513
|
-
amountRaw: string;
|
|
514
|
-
/**
|
|
515
|
-
* The `Float` scalar type represents signed double-precision fractional values as specified by [IEEE 754](https://en.wikipedia.org/wiki/IEEE_floating_point).
|
|
516
|
-
*/
|
|
517
|
-
amountDecimal: number;
|
|
518
|
-
};
|
|
519
|
-
/**
|
|
520
|
-
* The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.
|
|
521
|
-
*/
|
|
522
|
-
amountUsd?: string;
|
|
523
|
-
}>;
|
|
524
742
|
poolCurrencyToken?: {
|
|
525
743
|
/**
|
|
526
744
|
* The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.
|
|
@@ -649,6 +867,15 @@ export type GetCoinsResponses = {
|
|
|
649
867
|
count: number;
|
|
650
868
|
edges: Array<{
|
|
651
869
|
node: {
|
|
870
|
+
/**
|
|
871
|
+
* The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.
|
|
872
|
+
*/
|
|
873
|
+
commentId: string;
|
|
874
|
+
/**
|
|
875
|
+
* The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.
|
|
876
|
+
*/
|
|
877
|
+
nonce: string;
|
|
878
|
+
userAddress: string;
|
|
652
879
|
/**
|
|
653
880
|
* The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.
|
|
654
881
|
*/
|
|
@@ -657,7 +884,6 @@ export type GetCoinsResponses = {
|
|
|
657
884
|
* The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.
|
|
658
885
|
*/
|
|
659
886
|
comment: string;
|
|
660
|
-
userAddress: string;
|
|
661
887
|
/**
|
|
662
888
|
* The `Int` scalar type represents non-fractional signed whole numeric values. Int can represent values between -(2^31) and 2^31 - 1.
|
|
663
889
|
*/
|
|
@@ -691,6 +917,23 @@ export type GetCoinsResponses = {
|
|
|
691
917
|
};
|
|
692
918
|
}>;
|
|
693
919
|
};
|
|
920
|
+
creatorEarnings?: Array<{
|
|
921
|
+
amount: {
|
|
922
|
+
currencyAddress: string;
|
|
923
|
+
/**
|
|
924
|
+
* The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.
|
|
925
|
+
*/
|
|
926
|
+
amountRaw: string;
|
|
927
|
+
/**
|
|
928
|
+
* The `Float` scalar type represents signed double-precision fractional values as specified by [IEEE 754](https://en.wikipedia.org/wiki/IEEE_floating_point).
|
|
929
|
+
*/
|
|
930
|
+
amountDecimal: number;
|
|
931
|
+
};
|
|
932
|
+
/**
|
|
933
|
+
* The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.
|
|
934
|
+
*/
|
|
935
|
+
amountUsd?: string;
|
|
936
|
+
}>;
|
|
694
937
|
}>;
|
|
695
938
|
};
|
|
696
939
|
};
|
|
@@ -807,23 +1050,6 @@ export type GetExploreResponses = {
|
|
|
807
1050
|
*/
|
|
808
1051
|
createdAt?: string;
|
|
809
1052
|
creatorAddress?: string;
|
|
810
|
-
creatorEarnings?: Array<{
|
|
811
|
-
amount: {
|
|
812
|
-
currencyAddress: string;
|
|
813
|
-
/**
|
|
814
|
-
* The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.
|
|
815
|
-
*/
|
|
816
|
-
amountRaw: string;
|
|
817
|
-
/**
|
|
818
|
-
* The `Float` scalar type represents signed double-precision fractional values as specified by [IEEE 754](https://en.wikipedia.org/wiki/IEEE_floating_point).
|
|
819
|
-
*/
|
|
820
|
-
amountDecimal: number;
|
|
821
|
-
};
|
|
822
|
-
/**
|
|
823
|
-
* The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.
|
|
824
|
-
*/
|
|
825
|
-
amountUsd?: string;
|
|
826
|
-
}>;
|
|
827
1053
|
poolCurrencyToken?: {
|
|
828
1054
|
/**
|
|
829
1055
|
* The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.
|
|
@@ -1026,18 +1252,40 @@ export type GetProfileResponses = {
|
|
|
1026
1252
|
};
|
|
1027
1253
|
socialAccounts: {
|
|
1028
1254
|
instagram?: {
|
|
1255
|
+
/**
|
|
1256
|
+
* The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.
|
|
1257
|
+
*/
|
|
1258
|
+
username?: string;
|
|
1029
1259
|
/**
|
|
1030
1260
|
* The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.
|
|
1031
1261
|
*/
|
|
1032
1262
|
displayName?: string;
|
|
1033
1263
|
};
|
|
1034
1264
|
tiktok?: {
|
|
1265
|
+
/**
|
|
1266
|
+
* The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.
|
|
1267
|
+
*/
|
|
1268
|
+
username?: string;
|
|
1035
1269
|
/**
|
|
1036
1270
|
* The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.
|
|
1037
1271
|
*/
|
|
1038
1272
|
displayName?: string;
|
|
1039
1273
|
};
|
|
1040
1274
|
twitter?: {
|
|
1275
|
+
/**
|
|
1276
|
+
* The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.
|
|
1277
|
+
*/
|
|
1278
|
+
username?: string;
|
|
1279
|
+
/**
|
|
1280
|
+
* The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.
|
|
1281
|
+
*/
|
|
1282
|
+
displayName?: string;
|
|
1283
|
+
};
|
|
1284
|
+
farcaster?: {
|
|
1285
|
+
/**
|
|
1286
|
+
* The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.
|
|
1287
|
+
*/
|
|
1288
|
+
username?: string;
|
|
1041
1289
|
/**
|
|
1042
1290
|
* The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.
|
|
1043
1291
|
*/
|
|
@@ -1076,6 +1324,8 @@ export type GetProfileBalancesData = {
|
|
|
1076
1324
|
identifier: string;
|
|
1077
1325
|
count?: number;
|
|
1078
1326
|
after?: string;
|
|
1327
|
+
sortOption?: "BALANCE" | "MARKET_CAP" | "USD_VALUE" | "PRICE_CHANGE";
|
|
1328
|
+
excludeHidden?: boolean;
|
|
1079
1329
|
chainIds?: Array<number>;
|
|
1080
1330
|
};
|
|
1081
1331
|
url: "/profileBalances";
|
|
@@ -1172,23 +1422,6 @@ export type GetProfileBalancesResponses = {
|
|
|
1172
1422
|
*/
|
|
1173
1423
|
createdAt?: string;
|
|
1174
1424
|
creatorAddress?: string;
|
|
1175
|
-
creatorEarnings?: Array<{
|
|
1176
|
-
amount: {
|
|
1177
|
-
currencyAddress: string;
|
|
1178
|
-
/**
|
|
1179
|
-
* The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.
|
|
1180
|
-
*/
|
|
1181
|
-
amountRaw: string;
|
|
1182
|
-
/**
|
|
1183
|
-
* The `Float` scalar type represents signed double-precision fractional values as specified by [IEEE 754](https://en.wikipedia.org/wiki/IEEE_floating_point).
|
|
1184
|
-
*/
|
|
1185
|
-
amountDecimal: number;
|
|
1186
|
-
};
|
|
1187
|
-
/**
|
|
1188
|
-
* The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.
|
|
1189
|
-
*/
|
|
1190
|
-
amountUsd?: string;
|
|
1191
|
-
}>;
|
|
1192
1425
|
poolCurrencyToken?: {
|
|
1193
1426
|
/**
|
|
1194
1427
|
* The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.
|
|
@@ -1416,23 +1649,6 @@ export type GetProfileCoinsResponses = {
|
|
|
1416
1649
|
*/
|
|
1417
1650
|
createdAt?: string;
|
|
1418
1651
|
creatorAddress?: string;
|
|
1419
|
-
creatorEarnings?: Array<{
|
|
1420
|
-
amount: {
|
|
1421
|
-
currencyAddress: string;
|
|
1422
|
-
/**
|
|
1423
|
-
* The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.
|
|
1424
|
-
*/
|
|
1425
|
-
amountRaw: string;
|
|
1426
|
-
/**
|
|
1427
|
-
* The `Float` scalar type represents signed double-precision fractional values as specified by [IEEE 754](https://en.wikipedia.org/wiki/IEEE_floating_point).
|
|
1428
|
-
*/
|
|
1429
|
-
amountDecimal: number;
|
|
1430
|
-
};
|
|
1431
|
-
/**
|
|
1432
|
-
* The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.
|
|
1433
|
-
*/
|
|
1434
|
-
amountUsd?: string;
|
|
1435
|
-
}>;
|
|
1436
1652
|
poolCurrencyToken?: {
|
|
1437
1653
|
/**
|
|
1438
1654
|
* The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.
|
|
@@ -1561,6 +1777,15 @@ export type GetProfileCoinsResponses = {
|
|
|
1561
1777
|
count: number;
|
|
1562
1778
|
edges: Array<{
|
|
1563
1779
|
node: {
|
|
1780
|
+
/**
|
|
1781
|
+
* The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.
|
|
1782
|
+
*/
|
|
1783
|
+
commentId: string;
|
|
1784
|
+
/**
|
|
1785
|
+
* The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.
|
|
1786
|
+
*/
|
|
1787
|
+
nonce: string;
|
|
1788
|
+
userAddress: string;
|
|
1564
1789
|
/**
|
|
1565
1790
|
* The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.
|
|
1566
1791
|
*/
|
|
@@ -1569,7 +1794,6 @@ export type GetProfileCoinsResponses = {
|
|
|
1569
1794
|
* The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.
|
|
1570
1795
|
*/
|
|
1571
1796
|
comment: string;
|
|
1572
|
-
userAddress: string;
|
|
1573
1797
|
/**
|
|
1574
1798
|
* The `Int` scalar type represents non-fractional signed whole numeric values. Int can represent values between -(2^31) and 2^31 - 1.
|
|
1575
1799
|
*/
|