@reptilianhq/chain-data-contract 0.10.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.
@@ -0,0 +1,1052 @@
1
+ /** Internal type. DO NOT USE DIRECTLY. */
2
+ type Exact<T extends {
3
+ [key: string]: unknown;
4
+ }> = {
5
+ [K in keyof T]: T[K];
6
+ };
7
+ /** Internal type. DO NOT USE DIRECTLY. */
8
+ export type Incremental<T> = T | {
9
+ [P in keyof T]?: P extends ' $fragmentName' | '__typename' ? T[P] : never;
10
+ };
11
+ export type EthUsdPriceSource = 'WETH_USDG_SPOT';
12
+ export type ExternalMarketProtocol = 'uniswap_v2' | 'uniswap_v3' | 'uniswap_v4';
13
+ export type IndexedLaunchPhase = 'bonding' | 'graduated';
14
+ export type LaunchPhase = 'BONDING' | 'GRADUATED';
15
+ export type LaunchProvider = 'launchonblock' | 'pons';
16
+ export type PonsLifecyclePhase = 'bonding' | 'pool_created' | 'rescued' | 'swept';
17
+ export type PriceVenue = 'ALL' | 'CANONICAL';
18
+ export type TradeSide = 'buy' | 'sell';
19
+ export type TradeVenue = 'amm' | 'curve' | 'lb';
20
+ export type LaunchFeedQueryVariables = Exact<{
21
+ deploymentId: string | number;
22
+ phase?: LaunchPhase | null | undefined;
23
+ first: number;
24
+ after?: string | null | undefined;
25
+ }>;
26
+ export type LaunchFeedQuery = {
27
+ launches: {
28
+ nodes: Array<{
29
+ id: string;
30
+ provider: LaunchProvider;
31
+ token: string;
32
+ quoteToken: string;
33
+ name: string | null;
34
+ symbol: string | null;
35
+ creator: string;
36
+ creatorBps: number;
37
+ curveFeeBps: number;
38
+ payoutWallet: string;
39
+ metadataURI: string;
40
+ phase: IndexedLaunchPhase;
41
+ pool: string | null;
42
+ amountRaisedQuote: {
43
+ wei: string;
44
+ decimal: string;
45
+ };
46
+ raiseThresholdQuote: {
47
+ wei: string;
48
+ decimal: string;
49
+ };
50
+ curveProgressPct: string | null;
51
+ holderCount: number;
52
+ holderCountPartial: boolean;
53
+ volume24hQuote: {
54
+ wei: string;
55
+ decimal: string;
56
+ };
57
+ anchoredVolume24hQuote: {
58
+ wei: string;
59
+ decimal: string;
60
+ };
61
+ volume24hHoldingsAnchored: boolean;
62
+ volume24hPartial: boolean;
63
+ volumeWindowSeconds: number;
64
+ totalCanonicalVolumeQuote: {
65
+ wei: string;
66
+ decimal: string;
67
+ };
68
+ totalLbVolumeQuote: {
69
+ wei: string;
70
+ decimal: string;
71
+ };
72
+ tradeCount: number;
73
+ lastCanonicalPrice: string | null;
74
+ lastCanonicalPriceBlock: number | null;
75
+ createdBlock: number;
76
+ createdTimestamp: number;
77
+ graduatedBlock: number | null;
78
+ graduatedTimestamp: number | null;
79
+ pons: {
80
+ lifecyclePhase: PonsLifecyclePhase;
81
+ curve: string;
82
+ launchConfigId: string;
83
+ configSupply: {
84
+ raw: string;
85
+ decimal: string;
86
+ };
87
+ configEnabledAtLaunchBlock: boolean;
88
+ curveFeeBps: number;
89
+ creatorTaxBps: number;
90
+ buybackEnabled: boolean;
91
+ buybackController: string | null;
92
+ poolFeePips: number;
93
+ tickSpacing: number;
94
+ creatorFeeRecipient: string;
95
+ protocolFeeRecipient: string;
96
+ protocolFeeShareBps: number;
97
+ buybackBurnBps: number;
98
+ hookFeeBps: number;
99
+ maxInternalPriceImpactBps: number;
100
+ sweptTokens: {
101
+ raw: string;
102
+ decimal: string;
103
+ };
104
+ sweptAt: string | null;
105
+ poolPositionId: string | null;
106
+ rescueRecipient: string | null;
107
+ rescueTokens: {
108
+ raw: string;
109
+ decimal: string;
110
+ } | null;
111
+ lastUpdatedBlock: string;
112
+ lastUpdatedAt: string;
113
+ phantomQuote: {
114
+ token: string;
115
+ symbol: string | null;
116
+ raw: string;
117
+ decimals: number | null;
118
+ decimal: string | null;
119
+ };
120
+ graduationThreshold: {
121
+ token: string;
122
+ symbol: string | null;
123
+ raw: string;
124
+ decimals: number | null;
125
+ decimal: string | null;
126
+ };
127
+ sweptQuote: {
128
+ token: string;
129
+ symbol: string | null;
130
+ raw: string;
131
+ decimals: number | null;
132
+ decimal: string | null;
133
+ };
134
+ rescueQuote: {
135
+ token: string;
136
+ symbol: string | null;
137
+ raw: string;
138
+ decimals: number | null;
139
+ decimal: string | null;
140
+ } | null;
141
+ } | null;
142
+ amountRaisedQuoteAsset: {
143
+ token: string;
144
+ symbol: string | null;
145
+ raw: string;
146
+ decimals: number | null;
147
+ decimal: string | null;
148
+ };
149
+ raiseThresholdQuoteAsset: {
150
+ token: string;
151
+ symbol: string | null;
152
+ raw: string;
153
+ decimals: number | null;
154
+ decimal: string | null;
155
+ };
156
+ volume24hQuoteAsset: {
157
+ token: string;
158
+ symbol: string | null;
159
+ raw: string;
160
+ decimals: number | null;
161
+ decimal: string | null;
162
+ };
163
+ anchoredVolume24hQuoteAsset: {
164
+ token: string;
165
+ symbol: string | null;
166
+ raw: string;
167
+ decimals: number | null;
168
+ decimal: string | null;
169
+ };
170
+ totalCanonicalVolumeQuoteAsset: {
171
+ token: string;
172
+ symbol: string | null;
173
+ raw: string;
174
+ decimals: number | null;
175
+ decimal: string | null;
176
+ };
177
+ volumeByQuoteAsset: Array<{
178
+ tradeCount: number;
179
+ amount: {
180
+ token: string;
181
+ symbol: string | null;
182
+ raw: string;
183
+ decimals: number | null;
184
+ decimal: string | null;
185
+ };
186
+ }>;
187
+ lbVolumeByQuoteAsset: Array<{
188
+ tradeCount: number;
189
+ amount: {
190
+ token: string;
191
+ symbol: string | null;
192
+ raw: string;
193
+ decimals: number | null;
194
+ decimal: string | null;
195
+ };
196
+ }>;
197
+ }>;
198
+ pageInfo: {
199
+ endCursor: string | null;
200
+ hasNextPage: boolean;
201
+ };
202
+ };
203
+ };
204
+ export type LaunchDetailQueryVariables = Exact<{
205
+ deploymentId: string | number;
206
+ token: string;
207
+ }>;
208
+ export type LaunchDetailQuery = {
209
+ launch: {
210
+ id: string;
211
+ provider: LaunchProvider;
212
+ token: string;
213
+ quoteToken: string;
214
+ name: string | null;
215
+ symbol: string | null;
216
+ creator: string;
217
+ creatorBps: number;
218
+ curveFeeBps: number;
219
+ payoutWallet: string;
220
+ metadataURI: string;
221
+ phase: IndexedLaunchPhase;
222
+ pool: string | null;
223
+ amountRaisedQuote: {
224
+ wei: string;
225
+ decimal: string;
226
+ };
227
+ raiseThresholdQuote: {
228
+ wei: string;
229
+ decimal: string;
230
+ };
231
+ curveProgressPct: string | null;
232
+ holderCount: number;
233
+ holderCountPartial: boolean;
234
+ volume24hQuote: {
235
+ wei: string;
236
+ decimal: string;
237
+ };
238
+ anchoredVolume24hQuote: {
239
+ wei: string;
240
+ decimal: string;
241
+ };
242
+ volume24hHoldingsAnchored: boolean;
243
+ volume24hPartial: boolean;
244
+ volumeWindowSeconds: number;
245
+ totalCanonicalVolumeQuote: {
246
+ wei: string;
247
+ decimal: string;
248
+ };
249
+ totalLbVolumeQuote: {
250
+ wei: string;
251
+ decimal: string;
252
+ };
253
+ tradeCount: number;
254
+ lastCanonicalPrice: string | null;
255
+ lastCanonicalPriceBlock: number | null;
256
+ createdBlock: number;
257
+ createdTimestamp: number;
258
+ graduatedBlock: number | null;
259
+ graduatedTimestamp: number | null;
260
+ poolsPartial: boolean;
261
+ externalMarketsPartial: boolean;
262
+ pons: {
263
+ lifecyclePhase: PonsLifecyclePhase;
264
+ curve: string;
265
+ launchConfigId: string;
266
+ configSupply: {
267
+ raw: string;
268
+ decimal: string;
269
+ };
270
+ configEnabledAtLaunchBlock: boolean;
271
+ curveFeeBps: number;
272
+ creatorTaxBps: number;
273
+ buybackEnabled: boolean;
274
+ buybackController: string | null;
275
+ poolFeePips: number;
276
+ tickSpacing: number;
277
+ creatorFeeRecipient: string;
278
+ protocolFeeRecipient: string;
279
+ protocolFeeShareBps: number;
280
+ buybackBurnBps: number;
281
+ hookFeeBps: number;
282
+ maxInternalPriceImpactBps: number;
283
+ sweptTokens: {
284
+ raw: string;
285
+ decimal: string;
286
+ };
287
+ sweptAt: string | null;
288
+ poolPositionId: string | null;
289
+ rescueRecipient: string | null;
290
+ rescueTokens: {
291
+ raw: string;
292
+ decimal: string;
293
+ } | null;
294
+ lastUpdatedBlock: string;
295
+ lastUpdatedAt: string;
296
+ phantomQuote: {
297
+ token: string;
298
+ symbol: string | null;
299
+ raw: string;
300
+ decimals: number | null;
301
+ decimal: string | null;
302
+ };
303
+ graduationThreshold: {
304
+ token: string;
305
+ symbol: string | null;
306
+ raw: string;
307
+ decimals: number | null;
308
+ decimal: string | null;
309
+ };
310
+ sweptQuote: {
311
+ token: string;
312
+ symbol: string | null;
313
+ raw: string;
314
+ decimals: number | null;
315
+ decimal: string | null;
316
+ };
317
+ rescueQuote: {
318
+ token: string;
319
+ symbol: string | null;
320
+ raw: string;
321
+ decimals: number | null;
322
+ decimal: string | null;
323
+ } | null;
324
+ } | null;
325
+ amountRaisedQuoteAsset: {
326
+ token: string;
327
+ symbol: string | null;
328
+ raw: string;
329
+ decimals: number | null;
330
+ decimal: string | null;
331
+ };
332
+ raiseThresholdQuoteAsset: {
333
+ token: string;
334
+ symbol: string | null;
335
+ raw: string;
336
+ decimals: number | null;
337
+ decimal: string | null;
338
+ };
339
+ volume24hQuoteAsset: {
340
+ token: string;
341
+ symbol: string | null;
342
+ raw: string;
343
+ decimals: number | null;
344
+ decimal: string | null;
345
+ };
346
+ anchoredVolume24hQuoteAsset: {
347
+ token: string;
348
+ symbol: string | null;
349
+ raw: string;
350
+ decimals: number | null;
351
+ decimal: string | null;
352
+ };
353
+ totalCanonicalVolumeQuoteAsset: {
354
+ token: string;
355
+ symbol: string | null;
356
+ raw: string;
357
+ decimals: number | null;
358
+ decimal: string | null;
359
+ };
360
+ volumeByQuoteAsset: Array<{
361
+ tradeCount: number;
362
+ amount: {
363
+ token: string;
364
+ symbol: string | null;
365
+ raw: string;
366
+ decimals: number | null;
367
+ decimal: string | null;
368
+ };
369
+ }>;
370
+ lbVolumeByQuoteAsset: Array<{
371
+ tradeCount: number;
372
+ amount: {
373
+ token: string;
374
+ symbol: string | null;
375
+ raw: string;
376
+ decimals: number | null;
377
+ decimal: string | null;
378
+ };
379
+ }>;
380
+ pools: Array<{
381
+ address: string;
382
+ poolType: string;
383
+ token0: string;
384
+ token1: string;
385
+ quoteIsToken1: boolean;
386
+ quoteToken: string;
387
+ ignoredForRouting: boolean;
388
+ binStep: string | null;
389
+ reserveToken: {
390
+ raw: string;
391
+ decimal: string;
392
+ } | null;
393
+ reserveQuote: {
394
+ wei: string;
395
+ decimal: string;
396
+ } | null;
397
+ tvlQuote: {
398
+ wei: string;
399
+ decimal: string;
400
+ } | null;
401
+ reserveSource: string;
402
+ createdBlock: number;
403
+ lastUpdatedBlock: number;
404
+ reserveQuoteAsset: {
405
+ token: string;
406
+ symbol: string | null;
407
+ raw: string;
408
+ decimals: number | null;
409
+ decimal: string | null;
410
+ } | null;
411
+ tvlQuoteAsset: {
412
+ token: string;
413
+ symbol: string | null;
414
+ raw: string;
415
+ decimals: number | null;
416
+ decimal: string | null;
417
+ } | null;
418
+ }>;
419
+ externalMarkets: Array<{
420
+ id: string;
421
+ protocol: ExternalMarketProtocol;
422
+ venueAddress: string;
423
+ poolAddress: string | null;
424
+ poolId: string | null;
425
+ token0: string;
426
+ token1: string;
427
+ feePips: number | null;
428
+ tickSpacing: number | null;
429
+ hooks: string | null;
430
+ createdBlock: number;
431
+ createdTransactionHash: string;
432
+ createdLogIndex: number;
433
+ }>;
434
+ supplyDistribution: {
435
+ originalSupply: {
436
+ raw: string;
437
+ decimal: string;
438
+ };
439
+ reconciled: boolean;
440
+ partial: boolean;
441
+ bondingCurveCustody: {
442
+ amount: {
443
+ raw: string;
444
+ decimal: string;
445
+ };
446
+ basisPoints: number;
447
+ };
448
+ graduationPoolLiquidity: {
449
+ amount: {
450
+ raw: string;
451
+ decimal: string;
452
+ };
453
+ basisPoints: number;
454
+ };
455
+ lbLiquidity: {
456
+ amount: {
457
+ raw: string;
458
+ decimal: string;
459
+ };
460
+ basisPoints: number;
461
+ };
462
+ poolNonLiquidityCustody: {
463
+ amount: {
464
+ raw: string;
465
+ decimal: string;
466
+ };
467
+ basisPoints: number;
468
+ };
469
+ lockedDead: {
470
+ amount: {
471
+ raw: string;
472
+ decimal: string;
473
+ };
474
+ basisPoints: number;
475
+ };
476
+ otherProtocolCustody: {
477
+ amount: {
478
+ raw: string;
479
+ decimal: string;
480
+ };
481
+ basisPoints: number;
482
+ };
483
+ userHeld: {
484
+ amount: {
485
+ raw: string;
486
+ decimal: string;
487
+ };
488
+ basisPoints: number;
489
+ };
490
+ };
491
+ recentTrades: Array<{
492
+ id: string;
493
+ venue: TradeVenue;
494
+ side: TradeSide;
495
+ sender: string;
496
+ recipient: string;
497
+ attributedWallet: string | null;
498
+ quoteToken: string;
499
+ quoteAmount: {
500
+ wei: string;
501
+ decimal: string;
502
+ };
503
+ tokenAmount: {
504
+ raw: string;
505
+ decimal: string;
506
+ };
507
+ price: string | null;
508
+ blockNumber: number;
509
+ blockTimestamp: number;
510
+ transactionHash: string;
511
+ logIndex: number;
512
+ quoteAmountAsset: {
513
+ token: string;
514
+ symbol: string | null;
515
+ raw: string;
516
+ decimals: number | null;
517
+ decimal: string | null;
518
+ };
519
+ }>;
520
+ fees: Array<{
521
+ id: string;
522
+ kind: string;
523
+ economicType: string;
524
+ pair: string | null;
525
+ quoteToken: string;
526
+ creatorTokenAmount: {
527
+ raw: string;
528
+ decimal: string;
529
+ };
530
+ creatorQuoteAmount: {
531
+ wei: string;
532
+ decimal: string;
533
+ };
534
+ protocolTokenAmount: {
535
+ raw: string;
536
+ decimal: string;
537
+ };
538
+ protocolQuoteAmount: {
539
+ wei: string;
540
+ decimal: string;
541
+ };
542
+ payoutAmount: {
543
+ wei: string;
544
+ decimal: string;
545
+ };
546
+ payoutStatus: string | null;
547
+ blockNumber: number;
548
+ blockTimestamp: number;
549
+ transactionHash: string;
550
+ creatorQuoteAmountAsset: {
551
+ token: string;
552
+ symbol: string | null;
553
+ raw: string;
554
+ decimals: number | null;
555
+ decimal: string | null;
556
+ };
557
+ protocolQuoteAmountAsset: {
558
+ token: string;
559
+ symbol: string | null;
560
+ raw: string;
561
+ decimals: number | null;
562
+ decimal: string | null;
563
+ };
564
+ }>;
565
+ } | null;
566
+ };
567
+ export type TrendingLaunchesQueryVariables = Exact<{
568
+ deploymentId: string | number;
569
+ first: number;
570
+ }>;
571
+ export type TrendingLaunchesQuery = {
572
+ trendingLaunches: {
573
+ partial: boolean;
574
+ minDistinctTraders: number;
575
+ maxTraderPct: number;
576
+ holdingsMultiple: number;
577
+ nodes: Array<{
578
+ token: string;
579
+ name: string | null;
580
+ symbol: string | null;
581
+ phase: IndexedLaunchPhase;
582
+ lastCanonicalPrice: string | null;
583
+ recentVolumeQuote: {
584
+ wei: string;
585
+ decimal: string;
586
+ };
587
+ rankVolumeQuote: {
588
+ wei: string;
589
+ decimal: string;
590
+ };
591
+ retainedValueQuote: {
592
+ wei: string;
593
+ decimal: string;
594
+ } | null;
595
+ holdingsAnchored: boolean;
596
+ distinctTraders: number;
597
+ recentTrades: number;
598
+ changePct: string;
599
+ windowSeconds: number;
600
+ }>;
601
+ };
602
+ };
603
+ export type LaunchPriceSeriesQueryVariables = Exact<{
604
+ deploymentId: string | number;
605
+ token: string;
606
+ venue: PriceVenue;
607
+ first: number;
608
+ after?: string | null | undefined;
609
+ }>;
610
+ export type LaunchPriceSeriesQuery = {
611
+ launchPriceSeries: {
612
+ nodes: Array<{
613
+ cursor: string;
614
+ timestamp: number;
615
+ blockNumber: number;
616
+ price: string | null;
617
+ volumeQuote: {
618
+ wei: string;
619
+ decimal: string;
620
+ };
621
+ venue: TradeVenue;
622
+ side: TradeSide;
623
+ transactionHash: string;
624
+ volumeQuoteAsset: {
625
+ token: string;
626
+ symbol: string | null;
627
+ raw: string;
628
+ decimals: number | null;
629
+ decimal: string | null;
630
+ };
631
+ }>;
632
+ pageInfo: {
633
+ endCursor: string | null;
634
+ hasNextPage: boolean;
635
+ };
636
+ };
637
+ };
638
+ export type WalletLaunchPositionsQueryVariables = Exact<{
639
+ deploymentId: string | number;
640
+ wallet: string;
641
+ first: number;
642
+ after?: string | null | undefined;
643
+ }>;
644
+ export type WalletLaunchPositionsQuery = {
645
+ walletLaunchPositions: {
646
+ wallet: string;
647
+ partial: boolean;
648
+ positions: Array<{
649
+ token: string;
650
+ name: string | null;
651
+ symbol: string | null;
652
+ phase: IndexedLaunchPhase;
653
+ balance: {
654
+ raw: string;
655
+ decimal: string;
656
+ };
657
+ tokenBalance: string;
658
+ quoteToken: string;
659
+ valueQuote: {
660
+ wei: string;
661
+ decimal: string;
662
+ };
663
+ investedQuote: {
664
+ wei: string;
665
+ decimal: string;
666
+ };
667
+ proceedsQuote: {
668
+ wei: string;
669
+ decimal: string;
670
+ };
671
+ pnlQuote: {
672
+ wei: string;
673
+ decimal: string;
674
+ };
675
+ lastCanonicalPrice: string | null;
676
+ buyCount: number;
677
+ sellCount: number;
678
+ valueQuoteAsset: {
679
+ token: string;
680
+ symbol: string | null;
681
+ raw: string;
682
+ decimals: number | null;
683
+ decimal: string | null;
684
+ };
685
+ investedQuoteAsset: {
686
+ token: string;
687
+ symbol: string | null;
688
+ raw: string;
689
+ decimals: number | null;
690
+ decimal: string | null;
691
+ };
692
+ proceedsQuoteAsset: {
693
+ token: string;
694
+ symbol: string | null;
695
+ raw: string;
696
+ decimals: number | null;
697
+ decimal: string | null;
698
+ };
699
+ pnlQuoteAsset: {
700
+ token: string;
701
+ symbol: string | null;
702
+ raw: string;
703
+ decimals: number | null;
704
+ decimal: string | null;
705
+ };
706
+ }>;
707
+ pageInfo: {
708
+ endCursor: string | null;
709
+ hasNextPage: boolean;
710
+ };
711
+ totals: {
712
+ valueQuote: {
713
+ wei: string;
714
+ decimal: string;
715
+ };
716
+ investedQuote: {
717
+ wei: string;
718
+ decimal: string;
719
+ };
720
+ proceedsQuote: {
721
+ wei: string;
722
+ decimal: string;
723
+ };
724
+ pnlQuote: {
725
+ wei: string;
726
+ decimal: string;
727
+ };
728
+ } | null;
729
+ totalsByQuoteAsset: Array<{
730
+ quoteToken: string;
731
+ valueQuoteAsset: {
732
+ token: string;
733
+ symbol: string | null;
734
+ raw: string;
735
+ decimals: number | null;
736
+ decimal: string | null;
737
+ };
738
+ investedQuoteAsset: {
739
+ token: string;
740
+ symbol: string | null;
741
+ raw: string;
742
+ decimals: number | null;
743
+ decimal: string | null;
744
+ };
745
+ proceedsQuoteAsset: {
746
+ token: string;
747
+ symbol: string | null;
748
+ raw: string;
749
+ decimals: number | null;
750
+ decimal: string | null;
751
+ };
752
+ pnlQuoteAsset: {
753
+ token: string;
754
+ symbol: string | null;
755
+ raw: string;
756
+ decimals: number | null;
757
+ decimal: string | null;
758
+ };
759
+ }> | null;
760
+ };
761
+ };
762
+ export type PortfolioWalletBalancesQueryVariables = Exact<{
763
+ deploymentId: string | number;
764
+ wallet: string;
765
+ first: number;
766
+ after?: string | null | undefined;
767
+ }>;
768
+ export type PortfolioWalletBalancesQuery = {
769
+ walletLaunchPositions: {
770
+ wallet: string;
771
+ partial: boolean;
772
+ observationWatermark: {
773
+ sourceWatermark: string;
774
+ observedAtBlock: string;
775
+ observedAt: string;
776
+ } | null;
777
+ positions: Array<{
778
+ tokenIdentity: string;
779
+ token: string;
780
+ name: string | null;
781
+ symbol: string | null;
782
+ decimals: number | null;
783
+ amountDisplay: string | null;
784
+ tokenBalance: string;
785
+ quoteToken: string;
786
+ sourceWatermark: string;
787
+ observedAtBlock: string;
788
+ observedAt: string;
789
+ lastCanonicalPrice: string | null;
790
+ lastCanonicalPriceQuoteToken: string | null;
791
+ lastCanonicalUnitPrice: string | null;
792
+ lastCanonicalPriceBlock: string | null;
793
+ lastCanonicalPriceObservedAt: string | null;
794
+ valueQuoteAsset: {
795
+ token: string;
796
+ symbol: string | null;
797
+ raw: string;
798
+ decimals: number | null;
799
+ decimal: string | null;
800
+ };
801
+ investedQuoteAsset: {
802
+ token: string;
803
+ symbol: string | null;
804
+ raw: string;
805
+ decimals: number | null;
806
+ decimal: string | null;
807
+ };
808
+ proceedsQuoteAsset: {
809
+ token: string;
810
+ symbol: string | null;
811
+ raw: string;
812
+ decimals: number | null;
813
+ decimal: string | null;
814
+ };
815
+ pnlQuoteAsset: {
816
+ token: string;
817
+ symbol: string | null;
818
+ raw: string;
819
+ decimals: number | null;
820
+ decimal: string | null;
821
+ };
822
+ }>;
823
+ pageInfo: {
824
+ endCursor: string | null;
825
+ hasNextPage: boolean;
826
+ };
827
+ };
828
+ };
829
+ export type WalletLiquidityBookPositionsQueryVariables = Exact<{
830
+ deploymentId: string | number;
831
+ wallet: string;
832
+ first: number;
833
+ after?: string | null | undefined;
834
+ }>;
835
+ export type WalletLiquidityBookPositionsQuery = {
836
+ walletLiquidityBookPositions: {
837
+ wallet: string;
838
+ partial: boolean;
839
+ positions: Array<{
840
+ poolAddress: string;
841
+ walletAddress: string;
842
+ activeBinCount: string;
843
+ totalReceiptBalance: string;
844
+ lastUpdatedBlock: string;
845
+ lastUpdatedBlockHash: string;
846
+ lastUpdatedTimestamp: string;
847
+ lastUpdatedTransactionHash: string;
848
+ pair: {
849
+ address: string;
850
+ token0: string;
851
+ token1: string;
852
+ binStep: string;
853
+ activeBinId: string | null;
854
+ createdBlock: string;
855
+ lastUpdatedBlock: string;
856
+ } | null;
857
+ }>;
858
+ pageInfo: {
859
+ endCursor: string | null;
860
+ hasNextPage: boolean;
861
+ };
862
+ };
863
+ };
864
+ export type PortfolioWalletLiquidityPositionsQueryVariables = Exact<{
865
+ deploymentId: string | number;
866
+ wallet: string;
867
+ first: number;
868
+ after?: string | null | undefined;
869
+ }>;
870
+ export type PortfolioWalletLiquidityPositionsQuery = {
871
+ walletLiquidityBookPositions: {
872
+ wallet: string;
873
+ partial: boolean;
874
+ observationWatermark: {
875
+ sourceWatermark: string;
876
+ observedAtBlock: string;
877
+ observedAt: string;
878
+ } | null;
879
+ positions: Array<{
880
+ poolAddress: string;
881
+ walletAddress: string;
882
+ activeBinCount: string;
883
+ totalReceiptBalance: string;
884
+ lastUpdatedBlock: string;
885
+ lastUpdatedBlockHash: string;
886
+ lastUpdatedTimestamp: string;
887
+ lastUpdatedTransactionHash: string;
888
+ pair: {
889
+ address: string;
890
+ token0: string;
891
+ token1: string;
892
+ binStep: string;
893
+ activeBinId: string | null;
894
+ createdBlock: string;
895
+ lastUpdatedBlock: string;
896
+ } | null;
897
+ underlyingAssets: Array<{
898
+ tokenIdentity: string;
899
+ token: string;
900
+ decimals: number;
901
+ amountRaw: string;
902
+ amountDisplay: string;
903
+ lastCanonicalPrice: string | null;
904
+ lastCanonicalPriceQuoteToken: string | null;
905
+ lastCanonicalUnitPrice: string | null;
906
+ lastCanonicalPriceBlock: string | null;
907
+ lastCanonicalPriceObservedAt: string | null;
908
+ }> | null;
909
+ }>;
910
+ pageInfo: {
911
+ endCursor: string | null;
912
+ hasNextPage: boolean;
913
+ };
914
+ };
915
+ };
916
+ export type LiquidityBookPositionQueryVariables = Exact<{
917
+ deploymentId: string | number;
918
+ wallet: string;
919
+ pool: string;
920
+ binFirst: number;
921
+ binsAfter?: string | null | undefined;
922
+ }>;
923
+ export type LiquidityBookPositionQuery = {
924
+ liquidityBookPosition: {
925
+ partial: boolean;
926
+ position: {
927
+ poolAddress: string;
928
+ walletAddress: string;
929
+ activeBinCount: string;
930
+ totalReceiptBalance: string;
931
+ lastUpdatedBlock: string;
932
+ lastUpdatedBlockHash: string;
933
+ lastUpdatedTimestamp: string;
934
+ lastUpdatedTransactionHash: string;
935
+ pair: {
936
+ address: string;
937
+ token0: string;
938
+ token1: string;
939
+ binStep: string;
940
+ activeBinId: string | null;
941
+ createdBlock: string;
942
+ lastUpdatedBlock: string;
943
+ } | null;
944
+ };
945
+ bins: Array<{
946
+ cursor: string;
947
+ binId: string;
948
+ receiptBalance: string;
949
+ lastUpdatedBlock: string;
950
+ lastUpdatedBlockHash: string;
951
+ lastUpdatedTimestamp: string;
952
+ lastUpdatedTransactionHash: string;
953
+ }>;
954
+ binsPageInfo: {
955
+ endCursor: string | null;
956
+ hasNextPage: boolean;
957
+ };
958
+ } | null;
959
+ };
960
+ export type ProtocolStatsQueryVariables = Exact<{
961
+ deploymentId: string | number;
962
+ }>;
963
+ export type ProtocolStatsQuery = {
964
+ protocolStats: {
965
+ launched: number;
966
+ graduated: number;
967
+ bonding: number;
968
+ poolCount: number;
969
+ tradeCount: number;
970
+ tvlQuote: {
971
+ wei: string;
972
+ decimal: string;
973
+ } | null;
974
+ tvlPartial: boolean;
975
+ volumePartial: boolean;
976
+ totalVolumeQuote: {
977
+ wei: string;
978
+ decimal: string;
979
+ } | null;
980
+ curveVolumeQuote: {
981
+ wei: string;
982
+ decimal: string;
983
+ } | null;
984
+ ammVolumeQuote: {
985
+ wei: string;
986
+ decimal: string;
987
+ } | null;
988
+ lbVolumeQuote: {
989
+ wei: string;
990
+ decimal: string;
991
+ } | null;
992
+ lastIndexedBlock: number;
993
+ lastUpdatedTimestamp: number;
994
+ volumeByQuoteAsset: Array<{
995
+ tradeCount: number;
996
+ amount: {
997
+ token: string;
998
+ symbol: string | null;
999
+ raw: string;
1000
+ decimals: number | null;
1001
+ decimal: string | null;
1002
+ };
1003
+ }>;
1004
+ lbVolumeByQuoteAsset: Array<{
1005
+ tradeCount: number;
1006
+ amount: {
1007
+ token: string;
1008
+ symbol: string | null;
1009
+ raw: string;
1010
+ decimals: number | null;
1011
+ decimal: string | null;
1012
+ };
1013
+ }>;
1014
+ };
1015
+ };
1016
+ export type ChainDataFreshnessQueryVariables = Exact<{
1017
+ deploymentId: string | number;
1018
+ }>;
1019
+ export type ChainDataFreshnessQuery = {
1020
+ chainDataFreshness: {
1021
+ deploymentId: string;
1022
+ healthy: boolean;
1023
+ backfilling: boolean;
1024
+ chainId: number;
1025
+ launchpadAddress: string;
1026
+ startBlock: number;
1027
+ chainHead: number;
1028
+ indexedHead: number;
1029
+ sourceHead: number;
1030
+ blockLag: number;
1031
+ configuredBlockLag: number;
1032
+ lastProcessedAt: string | null;
1033
+ hasuraReachable: boolean;
1034
+ rpcReachable: boolean;
1035
+ };
1036
+ };
1037
+ export type EthUsdPriceQueryVariables = Exact<{
1038
+ [key: string]: never;
1039
+ }>;
1040
+ export type EthUsdPriceQuery = {
1041
+ ethUsdPrice: {
1042
+ price: string;
1043
+ source: EthUsdPriceSource;
1044
+ observedAt: string;
1045
+ observedBlock: string;
1046
+ sourceChainId: number;
1047
+ pair: string;
1048
+ reserveTimestamp: number;
1049
+ };
1050
+ };
1051
+ export {};
1052
+ //# sourceMappingURL=types.generated.d.ts.map