@tokemak/graph-cli 0.0.4 → 0.0.5

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.d.ts CHANGED
@@ -1 +1,588 @@
1
- export { getSdkByChainId } from "./clients";
1
+ type Maybe<T> = T | null;
2
+ type InputMaybe<T> = Maybe<T>;
3
+ type Exact<T extends {
4
+ [key: string]: unknown;
5
+ }> = {
6
+ [K in keyof T]: T[K];
7
+ };
8
+ /** All built-in and custom scalars, mapped to their actual values */
9
+ type Scalars = {
10
+ ID: {
11
+ input: string;
12
+ output: string;
13
+ };
14
+ String: {
15
+ input: string;
16
+ output: string;
17
+ };
18
+ Boolean: {
19
+ input: boolean;
20
+ output: boolean;
21
+ };
22
+ Int: {
23
+ input: number;
24
+ output: number;
25
+ };
26
+ Float: {
27
+ input: number;
28
+ output: number;
29
+ };
30
+ BigDecimal: {
31
+ input: any;
32
+ output: any;
33
+ };
34
+ BigInt: {
35
+ input: any;
36
+ output: any;
37
+ };
38
+ Bytes: {
39
+ input: any;
40
+ output: any;
41
+ };
42
+ Int8: {
43
+ input: any;
44
+ output: any;
45
+ };
46
+ Timestamp: {
47
+ input: any;
48
+ output: any;
49
+ };
50
+ };
51
+ /**
52
+ * Type of activity
53
+ *
54
+ */
55
+ declare enum UserActivityType {
56
+ ExtendStake = "ExtendStake",
57
+ Stake = "Stake",
58
+ StakingRewardsClaimed = "StakingRewardsClaimed",
59
+ StakingRewardsCollected = "StakingRewardsCollected",
60
+ Unstake = "Unstake",
61
+ VaultDeposit = "VaultDeposit",
62
+ VaultRewardStake = "VaultRewardStake",
63
+ VaultRewardUnstake = "VaultRewardUnstake",
64
+ VaultRewardsClaimed = "VaultRewardsClaimed",
65
+ VaultRewardsCollected = "VaultRewardsCollected",
66
+ VaultWithdraw = "VaultWithdraw"
67
+ }
68
+ type GetAllAutopoolRebalancesQueryVariables = Exact<{
69
+ first?: InputMaybe<Scalars['Int']['input']>;
70
+ skip?: InputMaybe<Scalars['Int']['input']>;
71
+ }>;
72
+ type GetAllAutopoolRebalancesQuery = {
73
+ __typename?: 'Query';
74
+ autopoolRebalances: Array<{
75
+ __typename?: 'AutopoolRebalance';
76
+ autopool: any;
77
+ timestamp: any;
78
+ blockNumber: any;
79
+ tokenOutValueInEth: any;
80
+ tokenOutValueBaseAsset: any;
81
+ tokenOut: {
82
+ __typename?: 'RefToken';
83
+ id: any;
84
+ symbol?: string | null;
85
+ decimals: any;
86
+ };
87
+ }>;
88
+ };
89
+ type GetAutopoolDayDataQueryVariables = Exact<{
90
+ address: Scalars['String']['input'];
91
+ timestamp: Scalars['BigInt']['input'];
92
+ }>;
93
+ type GetAutopoolDayDataQuery = {
94
+ __typename?: 'Query';
95
+ autopoolDayDatas: Array<{
96
+ __typename?: 'AutopoolDayData';
97
+ totalSupply: any;
98
+ nav: any;
99
+ date: string;
100
+ timestamp: any;
101
+ id: string;
102
+ autopoolApy?: any | null;
103
+ autopoolDay7MAApy?: any | null;
104
+ autopoolDay30MAApy?: any | null;
105
+ rewarderApy?: any | null;
106
+ rewarderDay7MAApy?: any | null;
107
+ rewarderDay30MAApy?: any | null;
108
+ baseAsset: {
109
+ __typename?: 'Token';
110
+ id: any;
111
+ decimals: any;
112
+ };
113
+ }>;
114
+ };
115
+ type GetAutopoolRebalancesQueryVariables = Exact<{
116
+ address: Scalars['Bytes']['input'];
117
+ first?: Scalars['Int']['input'];
118
+ skip?: Scalars['Int']['input'];
119
+ }>;
120
+ type GetAutopoolRebalancesQuery = {
121
+ __typename?: 'Query';
122
+ autopoolRebalances: Array<{
123
+ __typename?: 'AutopoolRebalance';
124
+ autopool: any;
125
+ timestamp: any;
126
+ logIndex: any;
127
+ transactionHash: any;
128
+ blockNumber: any;
129
+ tokenOutAmount: any;
130
+ tokenOutValueInEth: any;
131
+ tokenOutValueBaseAsset: any;
132
+ tokenOutValueDenominatedIn: any;
133
+ tokenInAmount: any;
134
+ tokenInValueInEth: any;
135
+ tokenInValueBaseAsset: any;
136
+ tokenInValueDenominatedIn: any;
137
+ destinationOutName: string;
138
+ destinationOutAddress: any;
139
+ destinationOutExchangeName: string;
140
+ destinationInName: string;
141
+ destinationInAddress: any;
142
+ destinationInExchangeName: string;
143
+ tokenOut: {
144
+ __typename?: 'RefToken';
145
+ id: any;
146
+ symbol?: string | null;
147
+ };
148
+ tokenIn: {
149
+ __typename?: 'RefToken';
150
+ id: any;
151
+ symbol?: string | null;
152
+ };
153
+ destinationOutUnderlyingTokens: Array<{
154
+ __typename?: 'RefToken';
155
+ id: any;
156
+ symbol?: string | null;
157
+ }>;
158
+ destinationInUnderlyingTokens: Array<{
159
+ __typename?: 'RefToken';
160
+ id: any;
161
+ symbol?: string | null;
162
+ }>;
163
+ }>;
164
+ };
165
+ type GetAutopoolsAprQueryVariables = Exact<{
166
+ [key: string]: never;
167
+ }>;
168
+ type GetAutopoolsAprQuery = {
169
+ __typename?: 'Query';
170
+ autopools: Array<{
171
+ __typename?: 'Autopool';
172
+ id: any;
173
+ currentApy?: any | null;
174
+ day7MAApy?: any | null;
175
+ day30MAApy?: any | null;
176
+ rewarder?: {
177
+ __typename?: 'Rewarder';
178
+ id: any;
179
+ currentApy?: any | null;
180
+ day7MAApy?: any | null;
181
+ day30MAApy?: any | null;
182
+ currentRewardDuration?: any | null;
183
+ currentRewardAmount?: any | null;
184
+ extraRewarders?: Array<{
185
+ __typename?: 'Rewarder';
186
+ id: any;
187
+ currentApy?: any | null;
188
+ rewardToken?: {
189
+ __typename?: 'RefToken';
190
+ symbol?: string | null;
191
+ id: any;
192
+ } | null;
193
+ }> | null;
194
+ } | null;
195
+ denominatedIn: {
196
+ __typename?: 'Token';
197
+ id: any;
198
+ decimals: any;
199
+ symbol?: string | null;
200
+ };
201
+ }>;
202
+ };
203
+ type GetAutopoolsDayDataQueryVariables = Exact<{
204
+ timestamp: Scalars['BigInt']['input'];
205
+ first?: InputMaybe<Scalars['Int']['input']>;
206
+ skip?: InputMaybe<Scalars['Int']['input']>;
207
+ }>;
208
+ type GetAutopoolsDayDataQuery = {
209
+ __typename?: 'Query';
210
+ autopoolDayDatas: Array<{
211
+ __typename?: 'AutopoolDayData';
212
+ totalSupply: any;
213
+ nav: any;
214
+ date: string;
215
+ timestamp: any;
216
+ id: string;
217
+ }>;
218
+ };
219
+ type GetAutopoolsInactiveDestinationsQueryVariables = Exact<{
220
+ [key: string]: never;
221
+ }>;
222
+ type GetAutopoolsInactiveDestinationsQuery = {
223
+ __typename?: 'Query';
224
+ autopools: Array<{
225
+ __typename?: 'Autopool';
226
+ id: any;
227
+ inactiveDestinations: Array<{
228
+ __typename?: 'RemovedDestination';
229
+ vaultAddress: any;
230
+ exchangeName: string;
231
+ totalSupply: any;
232
+ debtValueHeldByVault: any;
233
+ lastSnapshotTimestamp: any;
234
+ dexPool: any;
235
+ lpTokenAddress: any;
236
+ lpTokenSymbol: string;
237
+ lpTokenName: string;
238
+ compositeReturn: any;
239
+ reservesInEth: Array<any>;
240
+ underlyingTokens: Array<{
241
+ __typename?: 'RemovedDestinationsUnderlyingTokens';
242
+ tokenAddress: any;
243
+ }>;
244
+ underlyingTokenSymbols: Array<{
245
+ __typename?: 'RemovedDestinationsUnderlyingTokenSymbols';
246
+ symbol: string;
247
+ }>;
248
+ underlyingTokenValueHeld: Array<{
249
+ __typename?: 'RemovedDestinationsUnderlyingValueHeld';
250
+ valueHeldInEth: any;
251
+ }>;
252
+ }>;
253
+ }>;
254
+ };
255
+ type GetAutopoolsRebalancesQueryVariables = Exact<{
256
+ [key: string]: never;
257
+ }>;
258
+ type GetAutopoolsRebalancesQuery = {
259
+ __typename?: 'Query';
260
+ autopools: Array<{
261
+ __typename?: 'Autopool';
262
+ id: any;
263
+ rebalances: Array<{
264
+ __typename?: 'Rebalance';
265
+ autopool: any;
266
+ blockNumber: any;
267
+ hash: string;
268
+ id: string;
269
+ ix: any;
270
+ timestamp: any;
271
+ outData?: {
272
+ __typename?: 'RebalanceInOut';
273
+ id: string;
274
+ exchangeName: string;
275
+ ethValue: any;
276
+ destination: any;
277
+ underlyer: {
278
+ __typename?: 'RefToken';
279
+ decimals: any;
280
+ id: any;
281
+ name?: string | null;
282
+ symbol?: string | null;
283
+ };
284
+ tokens: Array<{
285
+ __typename?: 'RefToken';
286
+ decimals: any;
287
+ id: any;
288
+ name?: string | null;
289
+ symbol?: string | null;
290
+ }>;
291
+ } | null;
292
+ inData?: {
293
+ __typename?: 'RebalanceInOut';
294
+ ethValue: any;
295
+ exchangeName: string;
296
+ id: string;
297
+ destination: any;
298
+ underlyer: {
299
+ __typename?: 'RefToken';
300
+ decimals: any;
301
+ id: any;
302
+ name?: string | null;
303
+ symbol?: string | null;
304
+ };
305
+ tokens: Array<{
306
+ __typename?: 'RefToken';
307
+ decimals: any;
308
+ id: any;
309
+ name?: string | null;
310
+ symbol?: string | null;
311
+ }>;
312
+ } | null;
313
+ }>;
314
+ }>;
315
+ };
316
+ type GetLatestSubgraphTimestampQueryVariables = Exact<{
317
+ [key: string]: never;
318
+ }>;
319
+ type GetLatestSubgraphTimestampQuery = {
320
+ __typename?: 'Query';
321
+ _meta?: {
322
+ __typename?: '_Meta_';
323
+ block: {
324
+ __typename?: '_Block_';
325
+ timestamp?: number | null;
326
+ };
327
+ } | null;
328
+ };
329
+ type GetMutlipleAutopoolRebalancesQueryVariables = Exact<{
330
+ addresses: Array<Scalars['Bytes']['input']> | Scalars['Bytes']['input'];
331
+ }>;
332
+ type GetMutlipleAutopoolRebalancesQuery = {
333
+ __typename?: 'Query';
334
+ autopools: Array<{
335
+ __typename?: 'Autopool';
336
+ id: any;
337
+ rebalances: Array<{
338
+ __typename?: 'Rebalance';
339
+ autopool: any;
340
+ blockNumber: any;
341
+ hash: string;
342
+ id: string;
343
+ ix: any;
344
+ timestamp: any;
345
+ outData?: {
346
+ __typename?: 'RebalanceInOut';
347
+ id: string;
348
+ exchangeName: string;
349
+ ethValue: any;
350
+ destination: any;
351
+ underlyer: {
352
+ __typename?: 'RefToken';
353
+ decimals: any;
354
+ id: any;
355
+ name?: string | null;
356
+ symbol?: string | null;
357
+ };
358
+ tokens: Array<{
359
+ __typename?: 'RefToken';
360
+ decimals: any;
361
+ id: any;
362
+ name?: string | null;
363
+ symbol?: string | null;
364
+ }>;
365
+ } | null;
366
+ inData?: {
367
+ __typename?: 'RebalanceInOut';
368
+ ethValue: any;
369
+ exchangeName: string;
370
+ id: string;
371
+ destination: any;
372
+ underlyer: {
373
+ __typename?: 'RefToken';
374
+ decimals: any;
375
+ id: any;
376
+ name?: string | null;
377
+ symbol?: string | null;
378
+ };
379
+ tokens: Array<{
380
+ __typename?: 'RefToken';
381
+ decimals: any;
382
+ id: any;
383
+ name?: string | null;
384
+ symbol?: string | null;
385
+ }>;
386
+ } | null;
387
+ }>;
388
+ }>;
389
+ };
390
+ type GetSTokeRewardsQueryVariables = Exact<{
391
+ first?: InputMaybe<Scalars['Int']['input']>;
392
+ skip?: InputMaybe<Scalars['Int']['input']>;
393
+ }>;
394
+ type GetSTokeRewardsQuery = {
395
+ __typename?: 'Query';
396
+ poolRewardsBalances: Array<{
397
+ __typename?: 'PoolRewardsBalance';
398
+ id: any;
399
+ balance: any;
400
+ balanceUSD: any;
401
+ currentAprPerCredit?: any | null;
402
+ }>;
403
+ poolRewardsBalanceDayDatas: Array<{
404
+ __typename?: 'PoolRewardsBalanceDayData';
405
+ id: string;
406
+ earned: any;
407
+ earnedUSD: any;
408
+ balance: any;
409
+ balanceUSD: any;
410
+ dayAprPerCredit: any;
411
+ timestamp: any;
412
+ }>;
413
+ };
414
+ type GetSTokeVotesQueryVariables = Exact<{
415
+ [key: string]: never;
416
+ }>;
417
+ type GetSTokeVotesQuery = {
418
+ __typename?: 'Query';
419
+ voteStatuses: Array<{
420
+ __typename?: 'VoteStatus';
421
+ id: string;
422
+ pools: Array<any>;
423
+ points: Array<any>;
424
+ }>;
425
+ accTokeVoteWeights: Array<{
426
+ __typename?: 'AccTokeVoteWeight';
427
+ id: string;
428
+ voted: any;
429
+ notVoted: any;
430
+ }>;
431
+ };
432
+ type GetTopAutopoolHoldersQueryVariables = Exact<{
433
+ address?: InputMaybe<Scalars['Bytes']['input']>;
434
+ }>;
435
+ type GetTopAutopoolHoldersQuery = {
436
+ __typename?: 'Query';
437
+ holders: Array<{
438
+ __typename?: 'Holder';
439
+ sharesHeld: any;
440
+ user: any;
441
+ lastUpdated: any;
442
+ }>;
443
+ };
444
+ type GetUserActivityQueryVariables = Exact<{
445
+ address: Scalars['Bytes']['input'];
446
+ }>;
447
+ type GetUserActivityQuery = {
448
+ __typename?: 'Query';
449
+ userActivities: Array<{
450
+ __typename?: 'UserActivity';
451
+ id: string;
452
+ timestamp: any;
453
+ type: UserActivityType;
454
+ data: string;
455
+ }>;
456
+ };
457
+ type GetUserBalanceChangeHistoryQueryVariables = Exact<{
458
+ userAddress: Scalars['Bytes']['input'];
459
+ }>;
460
+ type GetUserBalanceChangeHistoryQuery = {
461
+ __typename?: 'Query';
462
+ userAutopoolBalanceChanges: Array<{
463
+ __typename?: 'UserAutopoolBalanceChange';
464
+ vaultAddress: any;
465
+ timestamp: any;
466
+ items: Array<{
467
+ __typename?: 'UserAutopoolBalanceChangeItem';
468
+ shareChange: any;
469
+ assetChange: any;
470
+ staked: boolean;
471
+ }>;
472
+ }>;
473
+ };
474
+ type GetUserSTokeBalanceQueryVariables = Exact<{
475
+ address: Scalars['ID']['input'];
476
+ }>;
477
+ type GetUserSTokeBalanceQuery = {
478
+ __typename?: 'Query';
479
+ accountBalanceV1S: Array<{
480
+ __typename?: 'AccountBalanceV1';
481
+ id: string;
482
+ amount: any;
483
+ points: any;
484
+ cycleStartPoints: any;
485
+ cycleStartBalance: any;
486
+ cycleStartBalanceIndex: any;
487
+ }>;
488
+ };
489
+ type GetUserSTokeVotesQueryVariables = Exact<{
490
+ address: Scalars['ID']['input'];
491
+ }>;
492
+ type GetUserSTokeVotesQuery = {
493
+ __typename?: 'Query';
494
+ userVotes: Array<{
495
+ __typename?: 'UserVote';
496
+ id: string;
497
+ weights: Array<any>;
498
+ pools: Array<any>;
499
+ }>;
500
+ accountBalanceV1S: Array<{
501
+ __typename?: 'AccountBalanceV1';
502
+ id: string;
503
+ amount: any;
504
+ points: any;
505
+ cycleStartPoints: any;
506
+ cycleStartBalance: any;
507
+ cycleStartBalanceIndex: any;
508
+ }>;
509
+ };
510
+ type GetUserVaultInfoQueryVariables = Exact<{
511
+ address: Scalars['ID']['input'];
512
+ }>;
513
+ type GetUserVaultInfoQuery = {
514
+ __typename?: 'Query';
515
+ userInfo?: {
516
+ __typename?: 'UserInfo';
517
+ vaults: Array<{
518
+ __typename?: 'UserVault';
519
+ vaultAddress: any;
520
+ totalShares: any;
521
+ walletShares: any;
522
+ stakedShares: any;
523
+ rewardsClaimed: any;
524
+ }>;
525
+ } | null;
526
+ };
527
+ type GetUserVaultsDayDataQueryVariables = Exact<{
528
+ address: Scalars['Bytes']['input'];
529
+ timestamp: Scalars['BigInt']['input'];
530
+ }>;
531
+ type GetUserVaultsDayDataQuery = {
532
+ __typename?: 'Query';
533
+ userVaultDayDatas: Array<{
534
+ __typename?: 'UserVaultDayData';
535
+ date: string;
536
+ vaultAddress: any;
537
+ totalShares: any;
538
+ rewardsClaimed: any;
539
+ timestamp?: any | null;
540
+ }>;
541
+ };
542
+ type GetVaultAddedsQueryVariables = Exact<{
543
+ [key: string]: never;
544
+ }>;
545
+ type GetVaultAddedsQuery = {
546
+ __typename?: 'Query';
547
+ vaultAddeds: Array<{
548
+ __typename?: 'VaultAdded';
549
+ vault: any;
550
+ blockTimestamp: any;
551
+ }>;
552
+ };
553
+ type GetTokenValueDayDatasQueryVariables = Exact<{
554
+ tokenAddress: Scalars['String']['input'];
555
+ }>;
556
+ type GetTokenValueDayDatasQuery = {
557
+ __typename?: 'Query';
558
+ tokenValueDayDatas: Array<{
559
+ __typename?: 'TokenValueDayData';
560
+ lastSnapshotTimestamp: any;
561
+ priceInUsd: any;
562
+ }>;
563
+ };
564
+
565
+ declare const getSdkByChainId: (chainId: number) => {
566
+ GetAllAutopoolRebalances(variables?: GetAllAutopoolRebalancesQueryVariables, requestHeaders?: HeadersInit | undefined): Promise<GetAllAutopoolRebalancesQuery>;
567
+ GetAutopoolDayData(variables: GetAutopoolDayDataQueryVariables, requestHeaders?: HeadersInit | undefined): Promise<GetAutopoolDayDataQuery>;
568
+ GetAutopoolRebalances(variables: GetAutopoolRebalancesQueryVariables, requestHeaders?: HeadersInit | undefined): Promise<GetAutopoolRebalancesQuery>;
569
+ GetAutopoolsApr(variables?: GetAutopoolsAprQueryVariables, requestHeaders?: HeadersInit | undefined): Promise<GetAutopoolsAprQuery>;
570
+ GetAutopoolsDayData(variables: GetAutopoolsDayDataQueryVariables, requestHeaders?: HeadersInit | undefined): Promise<GetAutopoolsDayDataQuery>;
571
+ GetAutopoolsInactiveDestinations(variables?: GetAutopoolsInactiveDestinationsQueryVariables, requestHeaders?: HeadersInit | undefined): Promise<GetAutopoolsInactiveDestinationsQuery>;
572
+ GetAutopoolsRebalances(variables?: GetAutopoolsRebalancesQueryVariables, requestHeaders?: HeadersInit | undefined): Promise<GetAutopoolsRebalancesQuery>;
573
+ GetLatestSubgraphTimestamp(variables?: GetLatestSubgraphTimestampQueryVariables, requestHeaders?: HeadersInit | undefined): Promise<GetLatestSubgraphTimestampQuery>;
574
+ GetMutlipleAutopoolRebalances(variables: GetMutlipleAutopoolRebalancesQueryVariables, requestHeaders?: HeadersInit | undefined): Promise<GetMutlipleAutopoolRebalancesQuery>;
575
+ GetSTokeRewards(variables?: GetSTokeRewardsQueryVariables, requestHeaders?: HeadersInit | undefined): Promise<GetSTokeRewardsQuery>;
576
+ GetSTokeVotes(variables?: GetSTokeVotesQueryVariables, requestHeaders?: HeadersInit | undefined): Promise<GetSTokeVotesQuery>;
577
+ GetTopAutopoolHolders(variables?: GetTopAutopoolHoldersQueryVariables, requestHeaders?: HeadersInit | undefined): Promise<GetTopAutopoolHoldersQuery>;
578
+ GetUserActivity(variables: GetUserActivityQueryVariables, requestHeaders?: HeadersInit | undefined): Promise<GetUserActivityQuery>;
579
+ GetUserBalanceChangeHistory(variables: GetUserBalanceChangeHistoryQueryVariables, requestHeaders?: HeadersInit | undefined): Promise<GetUserBalanceChangeHistoryQuery>;
580
+ GetUserSTokeBalance(variables: GetUserSTokeBalanceQueryVariables, requestHeaders?: HeadersInit | undefined): Promise<GetUserSTokeBalanceQuery>;
581
+ GetUserSTokeVotes(variables: GetUserSTokeVotesQueryVariables, requestHeaders?: HeadersInit | undefined): Promise<GetUserSTokeVotesQuery>;
582
+ GetUserVaultInfo(variables: GetUserVaultInfoQueryVariables, requestHeaders?: HeadersInit | undefined): Promise<GetUserVaultInfoQuery>;
583
+ GetUserVaultsDayData(variables: GetUserVaultsDayDataQueryVariables, requestHeaders?: HeadersInit | undefined): Promise<GetUserVaultsDayDataQuery>;
584
+ GetVaultAddeds(variables?: GetVaultAddedsQueryVariables, requestHeaders?: HeadersInit | undefined): Promise<GetVaultAddedsQuery>;
585
+ GetTokenValueDayDatas(variables: GetTokenValueDayDatasQueryVariables, requestHeaders?: HeadersInit | undefined): Promise<GetTokenValueDayDatasQuery>;
586
+ };
587
+
588
+ export { getSdkByChainId };