@berachain/graphql 0.2.6-beta.1 → 0.3.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.
@@ -1,2851 +0,0 @@
1
- import * as _apollo_client from '@apollo/client';
2
-
3
- type Maybe<T> = T | null;
4
- type InputMaybe<T> = Maybe<T>;
5
- type Exact<T extends {
6
- [key: string]: unknown;
7
- }> = {
8
- [K in keyof T]: T[K];
9
- };
10
- type MakeOptional<T, K extends keyof T> = Omit<T, K> & {
11
- [SubKey in K]?: Maybe<T[SubKey]>;
12
- };
13
- type MakeMaybe<T, K extends keyof T> = Omit<T, K> & {
14
- [SubKey in K]: Maybe<T[SubKey]>;
15
- };
16
- type MakeEmpty<T extends {
17
- [key: string]: unknown;
18
- }, K extends keyof T> = {
19
- [_ in K]?: never;
20
- };
21
- type Incremental<T> = T | {
22
- [P in keyof T]?: P extends ' $fragmentName' | '__typename' ? T[P] : never;
23
- };
24
- /** All built-in and custom scalars, mapped to their actual values */
25
- type Scalars = {
26
- ID: {
27
- input: string;
28
- output: string;
29
- };
30
- String: {
31
- input: string;
32
- output: string;
33
- };
34
- Boolean: {
35
- input: boolean;
36
- output: boolean;
37
- };
38
- Int: {
39
- input: number;
40
- output: number;
41
- };
42
- Float: {
43
- input: number;
44
- output: number;
45
- };
46
- Address: {
47
- input: `0x${string}`;
48
- output: `0x${string}`;
49
- };
50
- BigInt: {
51
- input: string;
52
- output: string;
53
- };
54
- ChainId: {
55
- input: 80094;
56
- output: 80094;
57
- };
58
- Hex: {
59
- input: `0x${string}`;
60
- output: `0x${string}`;
61
- };
62
- URL: {
63
- input: string;
64
- output: string;
65
- };
66
- };
67
- type Adapter = {
68
- /**
69
- * Address of the adapter
70
- * @deprecated Schema is subject to change, not yet stable
71
- */
72
- adapterAddress: Scalars['Address']['output'];
73
- /**
74
- * Cap for the adapter, null if and only if the adapter doesn't adhere to abi.encode('this', address)
75
- * @deprecated Schema is subject to change, not yet stable
76
- */
77
- adapterCap: Maybe<AdapterCap>;
78
- /**
79
- * Is the adapter enabled
80
- * @deprecated Schema is subject to change, not yet stable
81
- */
82
- isEnabled: Scalars['Boolean']['output'];
83
- };
84
- type AdapterCap = Cap & {
85
- __typename?: 'AdapterCap';
86
- /**
87
- * Absolute cap in underlying units
88
- * @deprecated Schema is subject to change, not yet stable
89
- */
90
- absoluteCap: TokenAmount;
91
- /**
92
- * Current amount allocated under this id
93
- * @deprecated Schema is subject to change, not yet stable
94
- */
95
- allocation: TokenAmount;
96
- /**
97
- * bytes32 key
98
- * @deprecated Schema is subject to change, not yet stable
99
- */
100
- capId: Scalars['Hex']['output'];
101
- /**
102
- * Relative cap (wad)
103
- * @deprecated Schema is subject to change, not yet stable
104
- */
105
- relativeCap: OnchainAmount;
106
- };
107
- /** Aera vault */
108
- type AeraVault = {
109
- __typename?: 'AeraVault';
110
- /** Chain the vault is deployed on */
111
- chain: Chain;
112
- /** Vault-level paused flag (guardian operations) */
113
- isPaused: Scalars['Boolean']['output'];
114
- /** Management fee of the vault */
115
- managementFee: OnchainAmount;
116
- /** Name of the vault */
117
- name: Scalars['String']['output'];
118
- /** Numeraire asset of the vault */
119
- numeraireAsset: Token;
120
- /** Performance fee of the vault */
121
- performanceFee: OnchainAmount;
122
- /** APY earned when supplying to the vault smoothed over 1 day. */
123
- supplyApy1d: Apy;
124
- /** APY earned when supplying to the vault smoothed over 7 days. */
125
- supplyApy7d: Apy;
126
- /** APY earned when supplying to the vault smoothed over 30 days. */
127
- supplyApy30d: Apy;
128
- /** Total amount of the numeraire assets supplied to the vault */
129
- totalSupplied: TokenAmount;
130
- /** Address of the vault contract */
131
- vaultAddress: Scalars['Address']['output'];
132
- };
133
- /** Filter for Aera vaults */
134
- type AeraVaultFilter = {
135
- /** Filter for certain chainIds */
136
- chainId_in: InputMaybe<Array<Scalars['ChainId']['input']>>;
137
- /** Filter for certain vault addresses */
138
- vaultAddress_in: InputMaybe<Array<Scalars['Address']['input']>>;
139
- };
140
- /** Page of Aera vaults */
141
- type AeraVaultPage = {
142
- __typename?: 'AeraVaultPage';
143
- /** The items in the page */
144
- items: Array<Maybe<AeraVault>>;
145
- /** Pagination information for the page */
146
- pageInfo: PageInfo;
147
- /** Total number of items */
148
- totalCount: Scalars['Int']['output'];
149
- };
150
- /** Position of an account in an Aera vault */
151
- type AeraVaultPosition = {
152
- __typename?: 'AeraVaultPosition';
153
- /** Address of the account */
154
- accountAddress: Scalars['Address']['output'];
155
- /** Whether the account has a pending deposit */
156
- hasPendingDeposit: Scalars['Boolean']['output'];
157
- /** Whether the account has a pending withdrawal */
158
- hasPendingWithdrawal: Scalars['Boolean']['output'];
159
- /** Position balance in numeraire assets */
160
- supplyAmount: TokenAmount;
161
- /** Position balance in shares */
162
- supplyShares: OnchainAmount;
163
- /** Vault the position is in */
164
- vault: AeraVault;
165
- };
166
- /** Filter for Aera vault positions */
167
- type AeraVaultPositionFilter = {
168
- /** Filter for certain account addresses */
169
- accountAddress_in: InputMaybe<Array<Scalars['Address']['input']>>;
170
- /** Filter for certain chainIds */
171
- chainId_in: InputMaybe<Array<Scalars['ChainId']['input']>>;
172
- /** Filter for certain vault addresses */
173
- vaultAddress_in: InputMaybe<Array<Scalars['Address']['input']>>;
174
- };
175
- /** Page of Aera vault positions */
176
- type AeraVaultPositionPage = {
177
- __typename?: 'AeraVaultPositionPage';
178
- /** The items in the page */
179
- items: Array<Maybe<AeraVaultPosition>>;
180
- /** Pagination information for the page */
181
- pageInfo: PageInfo;
182
- /** Total number of items */
183
- totalCount: Scalars['Int']['output'];
184
- };
185
- /** Annual Percentage Yield (APY) of an opportunity */
186
- type Apy = {
187
- __typename?: 'Apy';
188
- /** The base APY. For Supply: rate earned by supplying. For Borrow: rate paid for borrowing. Will always be positive. */
189
- base: Scalars['Float']['output'];
190
- /** Fees that reduce the effective APY (decreasing Supply APY, increasing Borrow APY). Will always be positive. */
191
- fee: Scalars['Float']['output'];
192
- /** Additional reward tokens that improve the total APY (increasing Supply APY, decreasing Borrow APY). The APRs will always be positive. */
193
- rewards: Array<Reward>;
194
- /** Whether this APY applies to the supply or borrow side of an opportunity */
195
- side: ApySide;
196
- /** The net APY after combining base rate, rewards, and fees (base + rewards - fee). Negative borrow APY means being paid to borrow. */
197
- total: Scalars['Float']['output'];
198
- };
199
- /** Whether an APY applies to the supply or borrow side of an opportunity */
200
- declare enum ApySide {
201
- /** APY paid when borrowing */
202
- Borrow = "Borrow",
203
- /** APY earned when supplying */
204
- Supply = "Supply"
205
- }
206
- /** Timeframe for APY calculations */
207
- declare enum ApyTimeframe {
208
- OneDay = "one_day",
209
- SevenDays = "seven_days",
210
- ThirtyDays = "thirty_days"
211
- }
212
- type BoxVault = Erc4626Vault & {
213
- __typename?: 'BoxVault';
214
- /** @deprecated Schema is subject to change, not yet stable */
215
- allocations: Array<TokenHolding>;
216
- /** APY earned when supplying to the vault */
217
- apy: Apy;
218
- /** Underlying asset of the vault */
219
- asset: Token;
220
- /** Chain the vault is deployed on */
221
- chain: Chain;
222
- /** Decimals of the vault's shares */
223
- decimals: Scalars['Int']['output'];
224
- /** Name of the vault */
225
- name: Scalars['String']['output'];
226
- /** Symbol of the vault */
227
- symbol: Scalars['String']['output'];
228
- /** Total amount of the underlying assets supplied to the vault */
229
- totalAssets: TokenAmount;
230
- /** Address of the vault contract */
231
- vaultAddress: Scalars['Address']['output'];
232
- };
233
- type BoxVaultApyArgs = {
234
- timeframe: ApyTimeframe;
235
- };
236
- type BoxVaultAdapter = Adapter & {
237
- __typename?: 'BoxVaultAdapter';
238
- /**
239
- * Address of the adapter
240
- * @deprecated Schema is subject to change, not yet stable
241
- */
242
- adapterAddress: Scalars['Address']['output'];
243
- /**
244
- * Cap for the adapter
245
- * @deprecated Schema is subject to change, not yet stable
246
- */
247
- adapterCap: Maybe<AdapterCap>;
248
- /**
249
- * Is the adapter enabled
250
- * @deprecated Schema is subject to change, not yet stable
251
- */
252
- isEnabled: Scalars['Boolean']['output'];
253
- /** @deprecated Schema is subject to change, not yet stable */
254
- vault: Maybe<BoxVault>;
255
- };
256
- /** V2: Caps for a Morpho vault adapter id */
257
- type Cap = {
258
- /**
259
- * Absolute cap in underlying units
260
- * @deprecated Schema is subject to change, not yet stable
261
- */
262
- absoluteCap: TokenAmount;
263
- /**
264
- * Current amount allocated under this id
265
- * @deprecated Schema is subject to change, not yet stable
266
- */
267
- allocation: TokenAmount;
268
- /**
269
- * bytes32 key
270
- * @deprecated Schema is subject to change, not yet stable
271
- */
272
- capId: Scalars['Hex']['output'];
273
- /**
274
- * Relative cap (wad)
275
- * @deprecated Schema is subject to change, not yet stable
276
- */
277
- relativeCap: OnchainAmount;
278
- };
279
- /** A blockchain */
280
- type Chain = {
281
- __typename?: 'Chain';
282
- /** URL to the chain's icon/logo image */
283
- icon: Scalars['URL']['output'];
284
- /** Unique blockchain identifier */
285
- id: Scalars['ChainId']['output'];
286
- /** Human-readable name of the blockchain (e.g., 'Ethereum', 'Polygon') */
287
- name: Scalars['String']['output'];
288
- /** The native token of the blockchain (e.g., ETH for Ethereum) */
289
- nativeToken: Token;
290
- /** The wrapped version of the native token (e.g., WETH for Ethereum) */
291
- wrappedNativeToken: Token;
292
- };
293
- /** Filter for chains */
294
- type ChainFilter = {
295
- /** Filter for certain chainIds */
296
- chainId_in: InputMaybe<Array<Scalars['ChainId']['input']>>;
297
- };
298
- type CollateralExposureCap = Cap & {
299
- __typename?: 'CollateralExposureCap';
300
- /**
301
- * Absolute cap in underlying units
302
- * @deprecated Schema is subject to change, not yet stable
303
- */
304
- absoluteCap: TokenAmount;
305
- /**
306
- * Current amount allocated under this id
307
- * @deprecated Schema is subject to change, not yet stable
308
- */
309
- allocation: TokenAmount;
310
- /**
311
- * bytes32 key
312
- * @deprecated Schema is subject to change, not yet stable
313
- */
314
- capId: Scalars['Hex']['output'];
315
- /**
316
- * Collateral token
317
- * @deprecated Schema is subject to change, not yet stable
318
- */
319
- collateralToken: Token;
320
- /**
321
- * Relative cap (wad)
322
- * @deprecated Schema is subject to change, not yet stable
323
- */
324
- relativeCap: OnchainAmount;
325
- };
326
- /** Curator of a Morpho vault */
327
- type Curator = {
328
- __typename?: 'Curator';
329
- /** Image of the curator */
330
- image: Scalars['String']['output'];
331
- /** Name of the curator */
332
- name: Scalars['String']['output'];
333
- /** URL of the curator */
334
- url: Scalars['String']['output'];
335
- };
336
- type Erc4626Vault = {
337
- /** APY earned when supplying to the vault, computed by annualized share price change over the given timeframe */
338
- apy: Apy;
339
- /** Underlying asset of the vault */
340
- asset: Token;
341
- /** Chain the vault is deployed on */
342
- chain: Chain;
343
- /** Decimals of the vault's shares */
344
- decimals: Scalars['Int']['output'];
345
- /** Name of the vault */
346
- name: Scalars['String']['output'];
347
- /** Symbol of the vault */
348
- symbol: Scalars['String']['output'];
349
- /** Total amount of the underlying assets supplied to the vault */
350
- totalAssets: TokenAmount;
351
- /** Address of the vault contract */
352
- vaultAddress: Scalars['Address']['output'];
353
- };
354
- type Erc4626VaultApyArgs = {
355
- timeframe: ApyTimeframe;
356
- };
357
- type Erc4626VaultFilter = {
358
- keys: InputMaybe<Array<Erc4626VaultKey>>;
359
- };
360
- type Erc4626VaultKey = {
361
- /** Chain the vault is deployed on */
362
- chainId: Scalars['ChainId']['input'];
363
- /** Protocol the vault is part of */
364
- protocol: Erc4626VaultProtocol;
365
- /** Address of the vault contract */
366
- vaultAddress: Scalars['Address']['input'];
367
- };
368
- type Erc4626VaultPage = {
369
- __typename?: 'Erc4626VaultPage';
370
- /** The items in the page */
371
- items: Array<Maybe<Erc4626Vault>>;
372
- /** Pagination information for the page */
373
- pageInfo: PageInfo;
374
- /** Total number of items */
375
- totalCount: Scalars['Int']['output'];
376
- };
377
- declare enum Erc4626VaultProtocol {
378
- Box = "box",
379
- Generic = "generic",
380
- MorphoV1 = "morpho_v1",
381
- MorphoV2 = "morpho_v2"
382
- }
383
- type GenericErc4626Vault = Erc4626Vault & {
384
- __typename?: 'GenericErc4626Vault';
385
- /** APY earned when supplying to the vault */
386
- apy: Apy;
387
- /** Underlying asset of the vault */
388
- asset: Token;
389
- /** Chain the vault is deployed on */
390
- chain: Chain;
391
- /** Decimals of the vault's shares */
392
- decimals: Scalars['Int']['output'];
393
- /** Name of the vault */
394
- name: Scalars['String']['output'];
395
- /** Symbol of the vault's shares */
396
- symbol: Scalars['String']['output'];
397
- /** Total amount of the underlying assets supplied to the vault */
398
- totalAssets: TokenAmount;
399
- /** Address of the vault contract */
400
- vaultAddress: Scalars['Address']['output'];
401
- };
402
- type GenericErc4626VaultApyArgs = {
403
- timeframe: ApyTimeframe;
404
- };
405
- type Identity = {
406
- __typename?: 'Identity';
407
- aggregate: IdentityResolverOutput;
408
- base: IdentityResolverOutput;
409
- ens: IdentityResolverOutput;
410
- farcaster: IdentityResolverOutput;
411
- isOfacSanctioned: Scalars['Boolean']['output'];
412
- lens: IdentityResolverOutput;
413
- nns: IdentityResolverOutput;
414
- uni: IdentityResolverOutput;
415
- world: IdentityResolverOutput;
416
- };
417
- declare enum IdentityResolver {
418
- Base = "base",
419
- Ens = "ens",
420
- Farcaster = "farcaster",
421
- Lens = "lens",
422
- Nns = "nns",
423
- Uni = "uni",
424
- World = "world"
425
- }
426
- type IdentityResolverOutput = {
427
- __typename?: 'IdentityResolverOutput';
428
- avatar: Maybe<Scalars['String']['output']>;
429
- bio: Maybe<Scalars['String']['output']>;
430
- discord: Maybe<Scalars['String']['output']>;
431
- github: Maybe<Scalars['String']['output']>;
432
- name: Maybe<Scalars['String']['output']>;
433
- telegram: Maybe<Scalars['String']['output']>;
434
- website: Maybe<Scalars['String']['output']>;
435
- x: Maybe<Scalars['String']['output']>;
436
- };
437
- type MarketV1Adapter = Adapter & {
438
- __typename?: 'MarketV1Adapter';
439
- /**
440
- * Address of the adapter
441
- * @deprecated Schema is subject to change, not yet stable
442
- */
443
- adapterAddress: Scalars['Address']['output'];
444
- /**
445
- * Cap for the adapter
446
- * @deprecated Schema is subject to change, not yet stable
447
- */
448
- adapterCap: Maybe<AdapterCap>;
449
- /**
450
- * Collateral caps for the adapter
451
- * @deprecated Schema is subject to change, not yet stable
452
- */
453
- collateralCaps: Array<CollateralExposureCap>;
454
- /**
455
- * Is the adapter enabled
456
- * @deprecated Schema is subject to change, not yet stable
457
- */
458
- isEnabled: Scalars['Boolean']['output'];
459
- /**
460
- * Markets for the adapter
461
- * @deprecated Schema is subject to change, not yet stable
462
- */
463
- marketCaps: Array<MarketV1ExposureCap>;
464
- };
465
- type MarketV1ExposureCap = Cap & {
466
- __typename?: 'MarketV1ExposureCap';
467
- /**
468
- * Absolute cap in underlying units
469
- * @deprecated Schema is subject to change, not yet stable
470
- */
471
- absoluteCap: TokenAmount;
472
- /**
473
- * Current amount allocated under this id
474
- * @deprecated Schema is subject to change, not yet stable
475
- */
476
- allocation: TokenAmount;
477
- /**
478
- * bytes32 key
479
- * @deprecated Schema is subject to change, not yet stable
480
- */
481
- capId: Scalars['Hex']['output'];
482
- /**
483
- * Market
484
- * @deprecated Schema is subject to change, not yet stable
485
- */
486
- market: MorphoMarket;
487
- /**
488
- * Relative cap (wad)
489
- * @deprecated Schema is subject to change, not yet stable
490
- */
491
- relativeCap: OnchainAmount;
492
- };
493
- /** A reward earned by an account */
494
- type MerklAccountReward = {
495
- __typename?: 'MerklAccountReward';
496
- /** The amount of tokens that are currently claimable (creditedAmount - claimedAmount) */
497
- claimableAmount: TokenAmount;
498
- /** The total amount of tokens that have been credited to the account. This value should be used in the claim call with the proof. */
499
- creditedAmount: TokenAmount;
500
- /** The address of the contract that distributes the rewards */
501
- distributorAddress: Scalars['Address']['output'];
502
- /** The amount of the token that will become claimable on the next Merkle Root update (not yet credited to the account) */
503
- pendingAmount: TokenAmount;
504
- /** The Merkle proofs to claim the claimable tokens */
505
- proofs: Array<Scalars['Hex']['output']>;
506
- /** The token being rewarded */
507
- token: Token;
508
- };
509
- declare enum MerklAction {
510
- Borrow = "Borrow",
511
- Lend = "Lend"
512
- }
513
- type MerklRewardInput = {
514
- /** The action of the opportunity */
515
- action: MerklAction;
516
- /** The chain ID of the main protocol */
517
- chainId: Scalars['ChainId']['input'];
518
- /** The identifier (a.k.a mainParameter) of the reward (ex. vault address for a Morpho vault) */
519
- identifier: Scalars['String']['input'];
520
- /** The main protocol ID the rewards are on (ex. 'morpho'), see https://api.merkl.xyz/v4/protocols */
521
- mainProtocolId: Scalars['String']['input'];
522
- };
523
- /** Interest rate model of a Morpho market */
524
- type MorphoIrm = {
525
- __typename?: 'MorphoIrm';
526
- /** Address of the IRM contract */
527
- address: Scalars['Address']['output'];
528
- /** Curve of the IRM */
529
- curve: Maybe<Array<MorphoIrmCurvePoint>>;
530
- /** Rate at target of the IRM, only null if the IRM is not the adaptive curve IRM */
531
- rateAtTarget: Maybe<Scalars['BigInt']['output']>;
532
- /** Target utilization of the IRM */
533
- targetUtilization: Scalars['Float']['output'];
534
- };
535
- /** Curve point of an IRM */
536
- type MorphoIrmCurvePoint = {
537
- __typename?: 'MorphoIrmCurvePoint';
538
- /** Base APY paid for borrowing from the market at this utilization */
539
- borrowApy: Scalars['Float']['output'];
540
- /** Base APY earned for supplying to the market at this utilization */
541
- supplyApy: Scalars['Float']['output'];
542
- /** Utilization at this curve point */
543
- utilization: Scalars['Float']['output'];
544
- };
545
- /** Morpho market */
546
- type MorphoMarket = {
547
- __typename?: 'MorphoMarket';
548
- /** APY paid for borrowing from the market (instantaneous) */
549
- borrowApy: Apy;
550
- /** APY paid for borrowing from the market smoothed over 1 day. Note rewards are instantaneous, and base is instantaneous when the market has been deployed less than 1 day ago. */
551
- borrowApy1d: Apy;
552
- /** APY paid for borrowing from the market smoothed over 7 days. Note rewards are instantaneous, and base is instantaneous when the market has been deployed less than 7 days ago. */
553
- borrowApy7d: Apy;
554
- /** APY paid for borrowing from the market smoothed over 30 days. Note rewards are instantaneous, and base is instantaneous when the market has been deployed less than 30 days ago. */
555
- borrowApy30d: Apy;
556
- /** Chain the market is deployed on */
557
- chain: Chain;
558
- /** Collateral asset of the market, only null for idle or misconfigured markets */
559
- collateralAsset: Maybe<Token>;
560
- /** Collateral price in loan asset, null if market is idle, or oracle has issue */
561
- collateralPriceInLoanAsset: Maybe<OnchainAmount>;
562
- /** Fee of the market */
563
- fee: OnchainAmount;
564
- /** Historical data for the market, will be null if historical data is not supported for this chain */
565
- historical: Maybe<MorphoMarketHistorical>;
566
- /** IRM of the market */
567
- irm: MorphoIrm;
568
- /** Whether the market is an idle market (no collateral asset, doesn't earn yield) */
569
- isIdle: Scalars['Boolean']['output'];
570
- /** Liquidation penalty of the market */
571
- liquidationPenalty: Scalars['Float']['output'];
572
- /** Amount of loan assets that are idle in the market (not being borrowed) */
573
- liquidityInMarket: TokenAmount;
574
- /** LLTV of the market */
575
- lltv: OnchainAmount;
576
- /** Loan asset of the market */
577
- loanAsset: Token;
578
- /** Unique market ID of the market */
579
- marketId: Scalars['Hex']['output'];
580
- /** Name of the market */
581
- name: Scalars['String']['output'];
582
- /** Oracle address of the market */
583
- oracleAddress: Scalars['Address']['output'];
584
- /** Amount of loan assets that can be allocated to this market via the public allocator */
585
- publicAllocatorSharedLiquidity: TokenAmount;
586
- /** APY earned for supplying to the market (instantaneous) */
587
- supplyApy: Apy;
588
- /** APY earned for supplying to the market smoothed over 1 day. Note rewards are instantaneous, and base is instantaneous when the market has been deployed less than 1 day ago. */
589
- supplyApy1d: Apy;
590
- /** APY earned for supplying to the market smoothed over 7 days. Note rewards are instantaneous, and base is instantaneous when the market has been deployed less than 7 days ago. */
591
- supplyApy7d: Apy;
592
- /** APY earned for supplying to the market smoothed over 30 days. Note rewards are instantaneous, and base is instantaneous when the market has been deployed less than 30 days ago. */
593
- supplyApy30d: Apy;
594
- /** Total amount of loan assets borrowed from the market */
595
- totalBorrowed: TokenAmount;
596
- /** Total amount of collateral supplied to the market, null for idle markets, and when historical data is not supported for this chain */
597
- totalCollateral: Maybe<TokenAmount>;
598
- /** Total amount of loan assets supplied to the market */
599
- totalSupplied: TokenAmount;
600
- /** Utilization of the market */
601
- utilization: Scalars['Float']['output'];
602
- /** Allocations from vault to this market */
603
- vaultAllocations: Array<MorphoVaultMarketAllocation>;
604
- };
605
- /** Filter for Morpho markets */
606
- type MorphoMarketFilter = {
607
- /** Filter for certain chainIds */
608
- chainId_in: InputMaybe<Array<Scalars['ChainId']['input']>>;
609
- /** Filter for certain market addresses */
610
- marketId_in: InputMaybe<Array<Scalars['Hex']['input']>>;
611
- /** Filter for whitelisted markets */
612
- whitelisted: InputMaybe<Scalars['Boolean']['input']>;
613
- };
614
- /** Historical data for a Morpho market */
615
- type MorphoMarketHistorical = {
616
- __typename?: 'MorphoMarketHistorical';
617
- /** Historical data with daily resolution. Only provides the 200 most recent entries (i.e up to 200 hours of data). */
618
- daily: Array<MorphoMarketHistoricalEntry>;
619
- /**
620
- * Historical data with hourly resolution. Only provides the 200 most recent entries (i.e up to 200 hours of data).
621
- * @deprecated Hourly data is no longer supported
622
- */
623
- hourly: Array<MorphoMarketHistoricalEntry>;
624
- /** Historical data with weekly resolution. Only provides the 200 most recent entries (i.e up to 200 hours of data). */
625
- weekly: Array<MorphoMarketHistoricalEntry>;
626
- };
627
- /** Historical entry for a Morpho market */
628
- type MorphoMarketHistoricalEntry = {
629
- __typename?: 'MorphoMarketHistoricalEntry';
630
- /** APY paid for borrowing from the market smoothed over 1 day. Note that doesn't yet include rewards */
631
- borrowApy1d: Apy;
632
- /** APY paid for borrowing from the market smoothed over 7 days. Note that doesn't yet include rewards */
633
- borrowApy7d: Apy;
634
- /** APY paid for borrowing from the market smoothed over 30 days. Note that doesn't yet include rewards */
635
- borrowApy30d: Apy;
636
- /** APY paid for borrowing from the market (instantaneous, no smoothing). Note that doesn't yet include rewards */
637
- borrowApyInstantaneous: Apy;
638
- /** The timestamp of the data rounded down to the nearest resolution (ex. hour, day, week). */
639
- bucketTimestamp: Scalars['Int']['output'];
640
- /** Collateral price in loan asset, null if market is idle, or oracle has issue */
641
- collateralPriceInLoanAsset: Maybe<OnchainAmount>;
642
- /** APY earned when supplying to the market smoothed over 1 day. Note that doesn't yet include rewards */
643
- supplyApy1d: Apy;
644
- /** APY earned when supplying to the market smoothed over 7 days. Note that doesn't yet include rewards */
645
- supplyApy7d: Apy;
646
- /** APY earned when supplying to the market smoothed over 30 days. Note that doesn't yet include rewards */
647
- supplyApy30d: Apy;
648
- /** APY earned when supplying to the market (instantaneous, no smoothing). Note that doesn't yet include rewards */
649
- supplyApyInstantaneous: Apy;
650
- /** Total amount of loan assets borrowed from the market */
651
- totalBorrowed: TokenAmount;
652
- /** Total amount of collateral supplied to the market */
653
- totalCollateral: TokenAmount;
654
- /** Total amount of loan assets supplied to the market */
655
- totalSupplied: TokenAmount;
656
- };
657
- /** Page of Morpho markets */
658
- type MorphoMarketPage = {
659
- __typename?: 'MorphoMarketPage';
660
- /** The items in the page */
661
- items: Array<Maybe<MorphoMarket>>;
662
- /** Pagination information for the page */
663
- pageInfo: PageInfo;
664
- /** Total number of items */
665
- totalCount: Scalars['Int']['output'];
666
- };
667
- /** Position of an account in a Morpho market */
668
- type MorphoMarketPosition = {
669
- __typename?: 'MorphoMarketPosition';
670
- /** Address of the account */
671
- accountAddress: Scalars['Address']['output'];
672
- /** Borrow assets of the account */
673
- borrowAmount: TokenAmount;
674
- /** Borrow shares of the account */
675
- borrowShares: Scalars['BigInt']['output'];
676
- /** Collateral assets of the account, null iff the market is idle */
677
- collateralAmount: Maybe<TokenAmount>;
678
- /** Health factor of the account, null iff the market is idle or its oracle is misconfigured */
679
- healthFactor: Maybe<OnchainAmount>;
680
- /** LTV of the account, null iff the market is idle or its oracle is misconfigured */
681
- ltv: Maybe<OnchainAmount>;
682
- /** Market the position is in */
683
- market: MorphoMarket;
684
- /** Supply assets of the account */
685
- supplyAmount: TokenAmount;
686
- /** Supply shares of the account */
687
- supplyShares: Scalars['BigInt']['output'];
688
- /** Holding of collateral assets in the account's wallet, null iff the market is idle */
689
- walletCollateralAssetHolding: Maybe<TokenHolding>;
690
- /** Holding of loan assets in the account's wallet */
691
- walletLoanAssetHolding: TokenHolding;
692
- };
693
- type MorphoMarketPositionFilter = {
694
- /** Filter for positions for certain accounts */
695
- accountAddress_in: Array<Scalars['Address']['input']>;
696
- /** Filter for positions on certain chains */
697
- chainId_in: InputMaybe<Array<Scalars['ChainId']['input']>>;
698
- /** Filter for positions in certain markets */
699
- marketId_in: InputMaybe<Array<Scalars['Hex']['input']>>;
700
- /** Filter for positions in whitelisted markets only */
701
- whitelisted: InputMaybe<Scalars['Boolean']['input']>;
702
- };
703
- /** Page of Morpho market positions */
704
- type MorphoMarketPositionPage = {
705
- __typename?: 'MorphoMarketPositionPage';
706
- /** The items in the page */
707
- items: Array<Maybe<MorphoMarketPosition>>;
708
- /** Pagination information for the page */
709
- pageInfo: PageInfo;
710
- /** Total number of items */
711
- totalCount: Scalars['Int']['output'];
712
- };
713
- /** Morpho vault */
714
- type MorphoVault = Erc4626Vault & {
715
- __typename?: 'MorphoVault';
716
- /** APY earned when supplying to the vault */
717
- apy: Apy;
718
- /** Underlying asset of the vault */
719
- asset: Token;
720
- /** Chain the vault is deployed on */
721
- chain: Chain;
722
- /** Curator address of the vault, this is the address that can modify the vaults allocations */
723
- curatorAddress: Scalars['Address']['output'];
724
- /** Decimals of the vault's shares */
725
- decimals: Scalars['Int']['output'];
726
- /** Fee recipient address of the vault, this is the address that receives the performance fee */
727
- feeRecipientAddress: Maybe<Scalars['Address']['output']>;
728
- /** Guardian address of the vault, this is the address that can make emergency changes to the vault */
729
- guardianAddress: Scalars['Address']['output'];
730
- /** Historical data for the vault, will be null if historical data is not supported for this chain */
731
- historical: Maybe<MorphoVaultHistorical>;
732
- /** Allocations of the vault to the markets */
733
- marketAllocations: Array<MorphoVaultMarketAllocation>;
734
- /** Metadata for the vault */
735
- metadata: Maybe<MorphoVaultMetadata>;
736
- /** Name of the vault */
737
- name: Scalars['String']['output'];
738
- /** Owner address of the vault, this is the address that can modify the vaults configuration */
739
- ownerAddress: Scalars['Address']['output'];
740
- /** Performance fee of the vault, this is the fee that is taken from the vaults profits */
741
- performanceFee: Scalars['Float']['output'];
742
- /**
743
- * APY earned when supplying to the vault
744
- * @deprecated Use apy(timeframe: one_day) instead
745
- */
746
- supplyApy: Apy;
747
- /**
748
- * APY earned when supplying to the vault smoothed over 1 day. Note rewards are instantaneous, and base is instantaneous when the vault has been deployed less than 1 day ago.
749
- * @deprecated Use apy(timeframe: one_day) instead
750
- */
751
- supplyApy1d: Apy;
752
- /**
753
- * APY earned when supplying to the vault smoothed over 7 days. Note rewards are instantaneous, and base is instantaneous when the vault has been deployed less than 7 days ago.
754
- * @deprecated Use apy(timeframe: seven_days) instead
755
- */
756
- supplyApy7d: Apy;
757
- /**
758
- * APY earned when supplying to the vault smoothed over 30 days. Note rewards are instantaneous, and base is instantaneous when the vault has been deployed less than 30 days ago.
759
- * @deprecated Use apy(timeframe: thirty_days) instead
760
- */
761
- supplyApy30d: Apy;
762
- /** Symbol of the vault */
763
- symbol: Scalars['String']['output'];
764
- /** Total amount of the underlying assets supplied to the vault */
765
- totalAssets: TokenAmount;
766
- /** Total amount of the idle underlying assets (not being borrowed from the vault) */
767
- totalLiquidity: TokenAmount;
768
- /**
769
- * Total amount of the underlying assets supplied to the vault
770
- * @deprecated Use totalAssets instead
771
- */
772
- totalSupplied: TokenAmount;
773
- /** Address of the vault contract */
774
- vaultAddress: Scalars['Address']['output'];
775
- };
776
- /** Morpho vault */
777
- type MorphoVaultApyArgs = {
778
- timeframe: ApyTimeframe;
779
- };
780
- /** Filter for Morpho vaults */
781
- type MorphoVaultFilter = {
782
- /** Filter for certain chainIds */
783
- chainId_in: InputMaybe<Array<Scalars['ChainId']['input']>>;
784
- /** Filter for certain vault addresses */
785
- vaultAddress_in: InputMaybe<Array<Scalars['Address']['input']>>;
786
- /** Filter for whitelisted vaults */
787
- whitelisted: InputMaybe<Scalars['Boolean']['input']>;
788
- };
789
- /** Historical data for a Morpho vault */
790
- type MorphoVaultHistorical = {
791
- __typename?: 'MorphoVaultHistorical';
792
- /** Historical data with daily resolution. Only provides the 200 most recent entries (i.e up to 200 hours of data). */
793
- daily: Array<MorphoVaultHistoricalEntry>;
794
- /**
795
- * Historical data with hourly resolution. Only provides the 200 most recent entries (i.e up to 200 hours of data).
796
- * @deprecated Hourly data is currently not supported, and will return an empty array. Use daily or weekly instead.
797
- */
798
- hourly: Array<MorphoVaultHistoricalEntry>;
799
- /** Historical data with weekly resolution. Only provides the 200 most recent entries (i.e up to 200 hours of data). */
800
- weekly: Array<MorphoVaultHistoricalEntry>;
801
- };
802
- /** Historical entry for a Morpho vault */
803
- type MorphoVaultHistoricalEntry = {
804
- __typename?: 'MorphoVaultHistoricalEntry';
805
- /** The timestamp of the data rounded down to the nearest resolution (ex. hour, day, week). */
806
- bucketTimestamp: Scalars['Int']['output'];
807
- /** APY earned when supplying to the vault smoothed over 1 day. Note that doesn't yet include rewards */
808
- supplyApy1d: Apy;
809
- /** APY earned when supplying to the vault smoothed over 7 days. Note that doesn't yet include rewards */
810
- supplyApy7d: Apy;
811
- /** APY earned when supplying to the vault smoothed over 30 days. Note that doesn't yet include rewards */
812
- supplyApy30d: Apy;
813
- /** Total amount of the underlying assets supplied to the vault */
814
- totalSupplied: TokenAmount;
815
- };
816
- /** Allocation of a vault to a market */
817
- type MorphoVaultMarketAllocation = {
818
- __typename?: 'MorphoVaultMarketAllocation';
819
- /** Whether the vault has enabled this market for allocations */
820
- enabled: Scalars['Boolean']['output'];
821
- /** Market the allocation is to */
822
- market: MorphoMarket;
823
- /** Share of the market's total supply from this vault */
824
- marketSupplyShare: Scalars['Float']['output'];
825
- /** Position of the vault in the market */
826
- position: MorphoMarketPosition;
827
- /** Supply cap of the allocation */
828
- supplyCap: TokenAmount;
829
- /** Vault the allocation is from */
830
- vault: MorphoVault;
831
- /** Share of the vault's total supply to this market */
832
- vaultSupplyShare: Scalars['Float']['output'];
833
- };
834
- /** Metadata for a Morpho vault */
835
- type MorphoVaultMetadata = {
836
- __typename?: 'MorphoVaultMetadata';
837
- /** Curator of the vault */
838
- curator: Maybe<Curator>;
839
- /**
840
- * Curators of the vault
841
- * @deprecated Use curator field instead.
842
- */
843
- curators: Array<Curator>;
844
- /** Description of the vault */
845
- description: Maybe<Scalars['String']['output']>;
846
- /**
847
- * Forum link of the vault
848
- * @deprecated Hourly data is currently not supported, and will return an empty array. Use daily or weekly instead.
849
- */
850
- forumLink: Maybe<Scalars['String']['output']>;
851
- /** Image of the vault */
852
- image: Maybe<Scalars['String']['output']>;
853
- };
854
- /** Page of Morpho vaults */
855
- type MorphoVaultPage = {
856
- __typename?: 'MorphoVaultPage';
857
- /** The items in the page */
858
- items: Array<Maybe<MorphoVault>>;
859
- /** Pagination information for the page */
860
- pageInfo: PageInfo;
861
- /** Total number of items */
862
- totalCount: Scalars['Int']['output'];
863
- };
864
- /** Position of an account in a Morpho vault */
865
- type MorphoVaultPosition = {
866
- __typename?: 'MorphoVaultPosition';
867
- /** Address of the account */
868
- accountAddress: Scalars['Address']['output'];
869
- /** Supply assets of the account */
870
- supplyAmount: TokenAmount;
871
- /** Supply shares of the account */
872
- supplyShares: Scalars['BigInt']['output'];
873
- /** Vault the position is in */
874
- vault: MorphoVault;
875
- /** Holding of the underlying asset in the accounts wallet */
876
- walletUnderlyingAssetHolding: Maybe<TokenHolding>;
877
- };
878
- type MorphoVaultPositionFilter = {
879
- /** Filter for positions for certain accounts */
880
- accountAddress_in: Array<Scalars['Address']['input']>;
881
- /** Filter for positions on certain chains */
882
- chainId_in: InputMaybe<Array<Scalars['ChainId']['input']>>;
883
- /** Filter for positions in certain vaults */
884
- vaultAddress_in: InputMaybe<Array<Scalars['Address']['input']>>;
885
- /** Filter for positions in whitelisted vaults only */
886
- whitelisted: InputMaybe<Scalars['Boolean']['input']>;
887
- };
888
- type MorphoVaultPositionPage = {
889
- __typename?: 'MorphoVaultPositionPage';
890
- /** The items in the page */
891
- items: Array<Maybe<MorphoVaultPosition>>;
892
- /** Pagination information for the page */
893
- pageInfo: PageInfo;
894
- /** Total number of items */
895
- totalCount: Scalars['Int']['output'];
896
- };
897
- type MorphoVaultV2 = Erc4626Vault & {
898
- __typename?: 'MorphoVaultV2';
899
- /**
900
- * Generic V2 adapter surface
901
- * @deprecated Schema is subject to change, not yet stable
902
- */
903
- adapters: Array<Adapter>;
904
- /**
905
- * Allocator address of the vault, null if and only if there are indexer issues
906
- * @deprecated Schema is subject to change, not yet stable
907
- */
908
- allocatorAddresses: Maybe<Array<Scalars['Address']['output']>>;
909
- /**
910
- * APY earned when supplying to the vault
911
- * @deprecated Schema is subject to change, not yet stable
912
- */
913
- apy: Apy;
914
- /**
915
- * Underlying asset of the vault
916
- * @deprecated Schema is subject to change, not yet stable
917
- */
918
- asset: Token;
919
- /**
920
- * Chain the vault is deployed on
921
- * @deprecated Schema is subject to change, not yet stable
922
- */
923
- chain: Chain;
924
- /**
925
- * Curator address of the vault, this is the address that can modify the vaults allocations
926
- * @deprecated Schema is subject to change, not yet stable
927
- */
928
- curatorAddress: Scalars['Address']['output'];
929
- /**
930
- * Decimals of the vault's shares
931
- * @deprecated Schema is subject to change, not yet stable
932
- */
933
- decimals: Scalars['Int']['output'];
934
- /** Historical data for the vault, will be null if historical data is not supported for this chain */
935
- historical: Maybe<MorphoVaultHistorical>;
936
- /**
937
- * Liquidity adapter address
938
- * @deprecated Schema is subject to change, not yet stable
939
- */
940
- liquidityAdapter: Adapter;
941
- /**
942
- * Management fee of the vault, this is the fee that is taken from the vaults profits
943
- * @deprecated Schema is subject to change, not yet stable
944
- */
945
- managementFee: OnchainAmount;
946
- /**
947
- * Management fee recipient address of the vault, this is the address that receives the management fee
948
- * @deprecated Schema is subject to change, not yet stable
949
- */
950
- managementFeeRecipientAddress: Scalars['Address']['output'];
951
- /**
952
- * Metadata for the vault
953
- * @deprecated Schema is subject to change, not yet stable
954
- */
955
- metadata: Maybe<MorphoVaultMetadata>;
956
- /**
957
- * Name of the vault
958
- * @deprecated Schema is subject to change, not yet stable
959
- */
960
- name: Scalars['String']['output'];
961
- /**
962
- * Owner address of the vault, this is the address that can modify the vaults configuration
963
- * @deprecated Schema is subject to change, not yet stable
964
- */
965
- ownerAddress: Scalars['Address']['output'];
966
- /**
967
- * Performance fee of the vault, this is the fee that is taken from the vaults profits
968
- * @deprecated Schema is subject to change, not yet stable
969
- */
970
- performanceFee: OnchainAmount;
971
- /**
972
- * Performance fee recipient address of the vault, this is the address that receives the performance fee
973
- * @deprecated Schema is subject to change, not yet stable
974
- */
975
- performanceFeeRecipientAddress: Scalars['Address']['output'];
976
- /**
977
- * Receive assets gate
978
- * @deprecated Schema is subject to change, not yet stable
979
- */
980
- receiveAssetsGateAddress: Scalars['Address']['output'];
981
- /**
982
- * Receive shares gate
983
- * @deprecated Schema is subject to change, not yet stable
984
- */
985
- receiveSharesGateAddress: Scalars['Address']['output'];
986
- /**
987
- * Send assets gate
988
- * @deprecated Schema is subject to change, not yet stable
989
- */
990
- sendAssetsGateAddress: Scalars['Address']['output'];
991
- /**
992
- * Send shares gate
993
- * @deprecated Schema is subject to change, not yet stable
994
- */
995
- sendSharesGateAddress: Scalars['Address']['output'];
996
- /**
997
- * Sentinel address of the vault, null if and only if there are indexer issues
998
- * @deprecated Schema is subject to change, not yet stable
999
- */
1000
- sentinelAddresses: Maybe<Array<Scalars['Address']['output']>>;
1001
- /**
1002
- * Symbol of the vault
1003
- * @deprecated Schema is subject to change, not yet stable
1004
- */
1005
- symbol: Scalars['String']['output'];
1006
- /**
1007
- * Total amount of the underlying assets supplied to the vault
1008
- * @deprecated Schema is subject to change, not yet stable
1009
- */
1010
- totalAssets: TokenAmount;
1011
- /**
1012
- * Address of the vault contract
1013
- * @deprecated Schema is subject to change, not yet stable
1014
- */
1015
- vaultAddress: Scalars['Address']['output'];
1016
- };
1017
- type MorphoVaultV2ApyArgs = {
1018
- timeframe: ApyTimeframe;
1019
- };
1020
- /** An arbitrary onchain amount */
1021
- type OnchainAmount = {
1022
- __typename?: 'OnchainAmount';
1023
- /** The formatted representation of the amount, this is the raw value scaled by its decimals (formatted = raw / 10^decimals) */
1024
- formatted: Scalars['String']['output'];
1025
- /** The integer representation of the amount as stored onchain */
1026
- raw: Scalars['BigInt']['output'];
1027
- };
1028
- /** Pagination information for a page of items */
1029
- type PageInfo = {
1030
- __typename?: 'PageInfo';
1031
- /** The cursor to the last item in the current page, this can be used for the queries `after` parameter to get the next page */
1032
- endCursor: Maybe<Scalars['String']['output']>;
1033
- /** Whether there are more items after the current page */
1034
- hasNextPage: Scalars['Boolean']['output'];
1035
- /** Whether there are more items before the current page */
1036
- hasPreviousPage: Scalars['Boolean']['output'];
1037
- /** The cursor to the first item in the current page, this can be used for the queries `before` parameter to get the previous page */
1038
- startCursor: Maybe<Scalars['String']['output']>;
1039
- };
1040
- /** Protocol */
1041
- type Protocol = {
1042
- __typename?: 'Protocol';
1043
- /** Icon of the protocol */
1044
- icon: Scalars['String']['output'];
1045
- /** Name of the protocol */
1046
- name: Scalars['String']['output'];
1047
- };
1048
- type Query = {
1049
- __typename?: 'Query';
1050
- aeraVaultPositions: AeraVaultPositionPage;
1051
- aeraVaults: AeraVaultPage;
1052
- /** Get supported chains (note that not all kits support all chains) */
1053
- chains: Array<Chain>;
1054
- erc4626Vaults: Erc4626VaultPage;
1055
- identities: Array<Identity>;
1056
- identity: Maybe<Identity>;
1057
- /** Query for Merkl rewards earned on chainId for the accountAddress */
1058
- merklAccountRewards: Array<MerklAccountReward>;
1059
- /** Query for Morpho market positions */
1060
- morphoMarketPositions: MorphoMarketPositionPage;
1061
- /** Query for Morpho markets */
1062
- morphoMarkets: MorphoMarketPage;
1063
- /** Query for Morpho vault positions */
1064
- morphoVaultPositions: MorphoVaultPositionPage;
1065
- /** Query for Morpho vaults */
1066
- morphoVaults: MorphoVaultPage;
1067
- /** Query for the token balance for a specific account and token */
1068
- tokenHoldings: Array<Maybe<TokenHolding>>;
1069
- /** Query for tokens */
1070
- tokens: Array<Maybe<Token>>;
1071
- /** Query for vaults */
1072
- vaults: Array<Maybe<Vault>>;
1073
- };
1074
- type QueryAeraVaultPositionsArgs = {
1075
- after: InputMaybe<Scalars['String']['input']>;
1076
- before: InputMaybe<Scalars['String']['input']>;
1077
- limit: InputMaybe<Scalars['Int']['input']>;
1078
- where: AeraVaultPositionFilter;
1079
- };
1080
- type QueryAeraVaultsArgs = {
1081
- after: InputMaybe<Scalars['String']['input']>;
1082
- before: InputMaybe<Scalars['String']['input']>;
1083
- limit: InputMaybe<Scalars['Int']['input']>;
1084
- where: InputMaybe<AeraVaultFilter>;
1085
- };
1086
- type QueryChainsArgs = {
1087
- where: InputMaybe<ChainFilter>;
1088
- };
1089
- type QueryErc4626VaultsArgs = {
1090
- after: InputMaybe<Scalars['String']['input']>;
1091
- before: InputMaybe<Scalars['String']['input']>;
1092
- limit: InputMaybe<Scalars['Int']['input']>;
1093
- where: InputMaybe<Erc4626VaultFilter>;
1094
- };
1095
- type QueryIdentitiesArgs = {
1096
- addresses: Array<Scalars['Address']['input']>;
1097
- resolverOrder: InputMaybe<Array<IdentityResolver>>;
1098
- };
1099
- type QueryIdentityArgs = {
1100
- address: Scalars['Address']['input'];
1101
- resolverOrder: InputMaybe<Array<IdentityResolver>>;
1102
- };
1103
- type QueryMerklAccountRewardsArgs = {
1104
- accountAddress: Scalars['Address']['input'];
1105
- chainId: Scalars['ChainId']['input'];
1106
- };
1107
- type QueryMorphoMarketPositionsArgs = {
1108
- after: InputMaybe<Scalars['String']['input']>;
1109
- before: InputMaybe<Scalars['String']['input']>;
1110
- limit: InputMaybe<Scalars['Int']['input']>;
1111
- where: MorphoMarketPositionFilter;
1112
- };
1113
- type QueryMorphoMarketsArgs = {
1114
- after: InputMaybe<Scalars['String']['input']>;
1115
- before: InputMaybe<Scalars['String']['input']>;
1116
- limit: InputMaybe<Scalars['Int']['input']>;
1117
- where: InputMaybe<MorphoMarketFilter>;
1118
- };
1119
- type QueryMorphoVaultPositionsArgs = {
1120
- after: InputMaybe<Scalars['String']['input']>;
1121
- before: InputMaybe<Scalars['String']['input']>;
1122
- limit: InputMaybe<Scalars['Int']['input']>;
1123
- where: MorphoVaultPositionFilter;
1124
- };
1125
- type QueryMorphoVaultsArgs = {
1126
- after: InputMaybe<Scalars['String']['input']>;
1127
- before: InputMaybe<Scalars['String']['input']>;
1128
- limit: InputMaybe<Scalars['Int']['input']>;
1129
- where: InputMaybe<MorphoVaultFilter>;
1130
- };
1131
- type QueryTokenHoldingsArgs = {
1132
- inputs: Array<TokenHoldingInput>;
1133
- };
1134
- type QueryTokensArgs = {
1135
- inputs: Array<TokenInput>;
1136
- };
1137
- type QueryVaultsArgs = {
1138
- inputs: Array<VaultInput>;
1139
- };
1140
- /** Rewards incentive */
1141
- type Reward = {
1142
- __typename?: 'Reward';
1143
- /** The Annual Percentage Rate (APR) for this reward token. Will always be positive. */
1144
- apr: Scalars['Float']['output'];
1145
- /** The token being rewarded */
1146
- asset: Token;
1147
- };
1148
- /** ERC-20 token with metadata and pricing information */
1149
- type Token = {
1150
- __typename?: 'Token';
1151
- /** The contract address of the token */
1152
- address: Scalars['Address']['output'];
1153
- /** The category of the token */
1154
- category: Maybe<TokenCategory>;
1155
- /** The chain this token exists on */
1156
- chain: Chain;
1157
- /** The number of decimal places the token uses */
1158
- decimals: Scalars['Int']['output'];
1159
- historical: TokenHistorical;
1160
- /** URL to the token's image, null if not available */
1161
- icon: Maybe<Scalars['URL']['output']>;
1162
- /** The full name of the token (e.g., 'Ethereum') */
1163
- name: Scalars['String']['output'];
1164
- /** Current price of the token in USD, null iff price data unavailable */
1165
- priceUsd: Maybe<Scalars['Float']['output']>;
1166
- /** The symbol of the token (e.g., 'ETH') */
1167
- symbol: Scalars['String']['output'];
1168
- };
1169
- /** An amount for an onchain token */
1170
- type TokenAmount = {
1171
- __typename?: 'TokenAmount';
1172
- /** The formatted representation of the amount, this is the raw value scaled by the token's decimals (formatted = raw / 10^decimals) */
1173
- formatted: Scalars['String']['output'];
1174
- /** The integer representation of the amount as stored onchain */
1175
- raw: Scalars['BigInt']['output'];
1176
- /** The USD representation of the amount, null if price data unavailable */
1177
- usd: Maybe<Scalars['Float']['output']>;
1178
- };
1179
- /** The category for a token which can be used to easily group and filter */
1180
- declare enum TokenCategory {
1181
- /** Bitcoin or Bitcoin derivative (e.g., WBTC, cbBTC) */
1182
- Btc = "Btc",
1183
- /** Ether or Ether derivative (e.g., WETH, stETH) */
1184
- Eth = "Eth",
1185
- /** Stable coin (e.g., USDC, USDT, DAI) */
1186
- Stable = "Stable"
1187
- }
1188
- /** Historical token data at different resolutions */
1189
- type TokenHistorical = {
1190
- __typename?: 'TokenHistorical';
1191
- /** Historical token data with daily resolution. Null if no price source is configured. Only provides the 200 most recent entries (i.e up to 200 days of data). */
1192
- daily: Maybe<Array<TokenHistoricalEntry>>;
1193
- /** Historical token data with hourly resolution. Null if no price source is configured. Only provides the 200 most recent entries (i.e up to 200 hours of data). */
1194
- hourly: Maybe<Array<TokenHistoricalEntry>>;
1195
- /** Historical token data with weekly resolution. Null if no price source is configured. Only provides the 200 most recent entries (i.e up to 200 weeks of data). */
1196
- weekly: Maybe<Array<TokenHistoricalEntry>>;
1197
- };
1198
- /** A single entry of historical token data */
1199
- type TokenHistoricalEntry = {
1200
- __typename?: 'TokenHistoricalEntry';
1201
- /** The timestamp of the data rounded down to the nearest resolution (ex. hour, day, week). */
1202
- bucketTimestamp: Scalars['Int']['output'];
1203
- /** The price of the token in USD at this bucket timestamp */
1204
- priceUsd: Scalars['Float']['output'];
1205
- };
1206
- /** Token balance held by a specific account */
1207
- type TokenHolding = {
1208
- __typename?: 'TokenHolding';
1209
- /** The address of the account holding the token */
1210
- accountAddress: Scalars['Address']['output'];
1211
- /** The balance of the token held by the account */
1212
- balance: TokenAmount;
1213
- /** The token being held */
1214
- token: Token;
1215
- };
1216
- /** Input for querying a token holding */
1217
- type TokenHoldingInput = {
1218
- /** The address of the account holding the token */
1219
- accountAddress: Scalars['Address']['input'];
1220
- /** The chain ID (e.g., 1 for Ethereum mainnet) */
1221
- chainId: Scalars['ChainId']['input'];
1222
- /** The token contract address */
1223
- tokenAddress: Scalars['Address']['input'];
1224
- };
1225
- /** Input for batch token queries, specifying chain and contract address pairs. */
1226
- type TokenInput = {
1227
- /** The chain ID (e.g., 1 for Ethereum mainnet) */
1228
- chainId: Scalars['ChainId']['input'];
1229
- /** The token contract address */
1230
- tokenAddress: Scalars['Address']['input'];
1231
- };
1232
- type UnknownAdapter = Adapter & {
1233
- __typename?: 'UnknownAdapter';
1234
- /**
1235
- * Address of the adapter
1236
- * @deprecated Schema is subject to change, not yet stable
1237
- */
1238
- adapterAddress: Scalars['Address']['output'];
1239
- /**
1240
- * Cap for the adapter
1241
- * @deprecated Schema is subject to change, not yet stable
1242
- */
1243
- adapterCap: Maybe<AdapterCap>;
1244
- /**
1245
- * Is the adapter enabled
1246
- * @deprecated Schema is subject to change, not yet stable
1247
- */
1248
- isEnabled: Scalars['Boolean']['output'];
1249
- };
1250
- type UnknownCap = Cap & {
1251
- __typename?: 'UnknownCap';
1252
- /**
1253
- * Absolute cap in underlying units
1254
- * @deprecated Schema is subject to change, not yet stable
1255
- */
1256
- absoluteCap: TokenAmount;
1257
- /**
1258
- * Current amount allocated under this id
1259
- * @deprecated Schema is subject to change, not yet stable
1260
- */
1261
- allocation: TokenAmount;
1262
- /**
1263
- * bytes32 key
1264
- * @deprecated Schema is subject to change, not yet stable
1265
- */
1266
- capId: Scalars['Hex']['output'];
1267
- /**
1268
- * Relative cap (wad)
1269
- * @deprecated Schema is subject to change, not yet stable
1270
- */
1271
- relativeCap: OnchainAmount;
1272
- };
1273
- /** Input for vaults */
1274
- type VaultInput = {
1275
- /** Chain the vault is deployed on */
1276
- chainId: Scalars['ChainId']['input'];
1277
- /** Protocol the vault is part of */
1278
- protocol: VaultProtocol;
1279
- /** Address of the vault */
1280
- vaultAddress: Scalars['Address']['input'];
1281
- };
1282
- /** Protocols supported by vault kit */
1283
- declare enum VaultProtocol {
1284
- Enzyme = "enzyme",
1285
- EulerEarn = "euler_earn",
1286
- EulerV2 = "euler_v2",
1287
- Gearbox = "gearbox",
1288
- Lista = "lista",
1289
- Mellow = "mellow",
1290
- Midas = "midas",
1291
- Morpho = "morpho",
1292
- Napier = "napier",
1293
- Pendle = "pendle",
1294
- Reserve = "reserve",
1295
- Silo = "silo",
1296
- TurtleClub = "turtle_club"
1297
- }
1298
- /** Types of vaults */
1299
- declare enum VaultType {
1300
- Index = "index",
1301
- Lending = "lending",
1302
- Staking = "staking"
1303
- }
1304
- type VaultV1Adapter = Adapter & {
1305
- __typename?: 'VaultV1Adapter';
1306
- /**
1307
- * Address of the adapter
1308
- * @deprecated Schema is subject to change, not yet stable
1309
- */
1310
- adapterAddress: Scalars['Address']['output'];
1311
- /**
1312
- * Cap for the adapter
1313
- * @deprecated Schema is subject to change, not yet stable
1314
- */
1315
- adapterCap: Maybe<AdapterCap>;
1316
- /**
1317
- * Is the adapter enabled
1318
- * @deprecated Schema is subject to change, not yet stable
1319
- */
1320
- isEnabled: Scalars['Boolean']['output'];
1321
- /**
1322
- * Vault for the adapter
1323
- * @deprecated Schema is subject to change, not yet stable
1324
- */
1325
- vault: Maybe<MorphoVault>;
1326
- };
1327
- type TokenInfoFragmentFragment = {
1328
- __typename?: 'Token';
1329
- address: `0x${string}`;
1330
- symbol: string;
1331
- decimals: number;
1332
- icon: string | null;
1333
- category: TokenCategory | null;
1334
- name: string;
1335
- };
1336
- type ChainInfoFragmentFragment = {
1337
- __typename?: 'Chain';
1338
- id: 80094;
1339
- name: string;
1340
- icon: string;
1341
- };
1342
- type CuratorInfoFragmentFragment = {
1343
- __typename?: 'Curator';
1344
- name: string;
1345
- image: string;
1346
- url: string;
1347
- };
1348
- type ApyFragmentFragment = {
1349
- __typename?: 'Apy';
1350
- base: number;
1351
- total: number;
1352
- fee: number;
1353
- rewards: Array<{
1354
- __typename?: 'Reward';
1355
- apr: number;
1356
- asset: {
1357
- __typename?: 'Token';
1358
- address: `0x${string}`;
1359
- symbol: string;
1360
- decimals: number;
1361
- icon: string | null;
1362
- category: TokenCategory | null;
1363
- name: string;
1364
- };
1365
- }>;
1366
- };
1367
- type VaultSummaryFragmentFragment = {
1368
- __typename?: 'MorphoVault';
1369
- vaultAddress: `0x${string}`;
1370
- name: string;
1371
- chain: {
1372
- __typename?: 'Chain';
1373
- id: 80094;
1374
- name: string;
1375
- icon: string;
1376
- };
1377
- asset: {
1378
- __typename?: 'Token';
1379
- priceUsd: number | null;
1380
- address: `0x${string}`;
1381
- symbol: string;
1382
- decimals: number;
1383
- icon: string | null;
1384
- category: TokenCategory | null;
1385
- name: string;
1386
- };
1387
- metadata: {
1388
- __typename?: 'MorphoVaultMetadata';
1389
- curators: Array<{
1390
- __typename?: 'Curator';
1391
- name: string;
1392
- image: string;
1393
- url: string;
1394
- }>;
1395
- } | null;
1396
- totalSupplied: {
1397
- __typename?: 'TokenAmount';
1398
- raw: string;
1399
- formatted: string;
1400
- usd: number | null;
1401
- };
1402
- totalLiquidity: {
1403
- __typename?: 'TokenAmount';
1404
- raw: string;
1405
- formatted: string;
1406
- usd: number | null;
1407
- };
1408
- supplyApy: {
1409
- __typename?: 'Apy';
1410
- base: number;
1411
- total: number;
1412
- fee: number;
1413
- rewards: Array<{
1414
- __typename?: 'Reward';
1415
- apr: number;
1416
- asset: {
1417
- __typename?: 'Token';
1418
- address: `0x${string}`;
1419
- symbol: string;
1420
- decimals: number;
1421
- icon: string | null;
1422
- category: TokenCategory | null;
1423
- name: string;
1424
- };
1425
- }>;
1426
- };
1427
- supplyApy1d: {
1428
- __typename?: 'Apy';
1429
- base: number;
1430
- total: number;
1431
- fee: number;
1432
- rewards: Array<{
1433
- __typename?: 'Reward';
1434
- apr: number;
1435
- asset: {
1436
- __typename?: 'Token';
1437
- address: `0x${string}`;
1438
- symbol: string;
1439
- decimals: number;
1440
- icon: string | null;
1441
- category: TokenCategory | null;
1442
- name: string;
1443
- };
1444
- }>;
1445
- };
1446
- supplyApy7d: {
1447
- __typename?: 'Apy';
1448
- base: number;
1449
- total: number;
1450
- fee: number;
1451
- rewards: Array<{
1452
- __typename?: 'Reward';
1453
- apr: number;
1454
- asset: {
1455
- __typename?: 'Token';
1456
- address: `0x${string}`;
1457
- symbol: string;
1458
- decimals: number;
1459
- icon: string | null;
1460
- category: TokenCategory | null;
1461
- name: string;
1462
- };
1463
- }>;
1464
- };
1465
- marketAllocations: Array<{
1466
- __typename?: 'MorphoVaultMarketAllocation';
1467
- vaultSupplyShare: number;
1468
- market: {
1469
- __typename?: 'MorphoMarket';
1470
- isIdle: boolean;
1471
- collateralAsset: {
1472
- __typename?: 'Token';
1473
- address: `0x${string}`;
1474
- symbol: string;
1475
- decimals: number;
1476
- icon: string | null;
1477
- category: TokenCategory | null;
1478
- name: string;
1479
- } | null;
1480
- supplyApy: {
1481
- __typename?: 'Apy';
1482
- base: number;
1483
- total: number;
1484
- fee: number;
1485
- rewards: Array<{
1486
- __typename?: 'Reward';
1487
- apr: number;
1488
- asset: {
1489
- __typename?: 'Token';
1490
- address: `0x${string}`;
1491
- symbol: string;
1492
- decimals: number;
1493
- icon: string | null;
1494
- category: TokenCategory | null;
1495
- name: string;
1496
- };
1497
- }>;
1498
- };
1499
- fee: {
1500
- __typename?: 'OnchainAmount';
1501
- raw: string;
1502
- formatted: string;
1503
- };
1504
- };
1505
- supplyCap: {
1506
- __typename?: 'TokenAmount';
1507
- usd: number | null;
1508
- };
1509
- }>;
1510
- };
1511
- type MarketSummaryFragmentFragment = {
1512
- __typename?: 'MorphoMarket';
1513
- name: string;
1514
- marketId: `0x${string}`;
1515
- isIdle: boolean;
1516
- chain: {
1517
- __typename?: 'Chain';
1518
- id: 80094;
1519
- name: string;
1520
- icon: string;
1521
- };
1522
- totalBorrowed: {
1523
- __typename?: 'TokenAmount';
1524
- raw: string;
1525
- formatted: string;
1526
- usd: number | null;
1527
- };
1528
- totalSupplied: {
1529
- __typename?: 'TokenAmount';
1530
- raw: string;
1531
- formatted: string;
1532
- usd: number | null;
1533
- };
1534
- liquidityInMarket: {
1535
- __typename?: 'TokenAmount';
1536
- raw: string;
1537
- formatted: string;
1538
- usd: number | null;
1539
- };
1540
- publicAllocatorSharedLiquidity: {
1541
- __typename?: 'TokenAmount';
1542
- raw: string;
1543
- formatted: string;
1544
- usd: number | null;
1545
- };
1546
- collateralAsset: {
1547
- __typename?: 'Token';
1548
- address: `0x${string}`;
1549
- symbol: string;
1550
- decimals: number;
1551
- icon: string | null;
1552
- category: TokenCategory | null;
1553
- name: string;
1554
- } | null;
1555
- loanAsset: {
1556
- __typename?: 'Token';
1557
- address: `0x${string}`;
1558
- symbol: string;
1559
- decimals: number;
1560
- icon: string | null;
1561
- category: TokenCategory | null;
1562
- name: string;
1563
- };
1564
- lltv: {
1565
- __typename?: 'OnchainAmount';
1566
- raw: string;
1567
- formatted: string;
1568
- };
1569
- borrowApy: {
1570
- __typename?: 'Apy';
1571
- base: number;
1572
- total: number;
1573
- fee: number;
1574
- rewards: Array<{
1575
- __typename?: 'Reward';
1576
- apr: number;
1577
- asset: {
1578
- __typename?: 'Token';
1579
- address: `0x${string}`;
1580
- symbol: string;
1581
- decimals: number;
1582
- icon: string | null;
1583
- category: TokenCategory | null;
1584
- name: string;
1585
- };
1586
- }>;
1587
- };
1588
- borrowApy1d: {
1589
- __typename?: 'Apy';
1590
- base: number;
1591
- total: number;
1592
- fee: number;
1593
- rewards: Array<{
1594
- __typename?: 'Reward';
1595
- apr: number;
1596
- asset: {
1597
- __typename?: 'Token';
1598
- address: `0x${string}`;
1599
- symbol: string;
1600
- decimals: number;
1601
- icon: string | null;
1602
- category: TokenCategory | null;
1603
- name: string;
1604
- };
1605
- }>;
1606
- };
1607
- borrowApy7d: {
1608
- __typename?: 'Apy';
1609
- base: number;
1610
- total: number;
1611
- fee: number;
1612
- rewards: Array<{
1613
- __typename?: 'Reward';
1614
- apr: number;
1615
- asset: {
1616
- __typename?: 'Token';
1617
- address: `0x${string}`;
1618
- symbol: string;
1619
- decimals: number;
1620
- icon: string | null;
1621
- category: TokenCategory | null;
1622
- name: string;
1623
- };
1624
- }>;
1625
- };
1626
- vaultAllocations: Array<{
1627
- __typename?: 'MorphoVaultMarketAllocation';
1628
- vault: {
1629
- __typename?: 'MorphoVault';
1630
- vaultAddress: `0x${string}`;
1631
- };
1632
- position: {
1633
- __typename?: 'MorphoMarketPosition';
1634
- supplyAmount: {
1635
- __typename?: 'TokenAmount';
1636
- usd: number | null;
1637
- };
1638
- };
1639
- supplyCap: {
1640
- __typename?: 'TokenAmount';
1641
- usd: number | null;
1642
- };
1643
- }>;
1644
- };
1645
- type VaultSummariesQueryVariables = Exact<{
1646
- chainIds: Array<Scalars['ChainId']['input']> | Scalars['ChainId']['input'];
1647
- vaultAddresses: Array<Scalars['Address']['input']> | Scalars['Address']['input'];
1648
- }>;
1649
- type VaultSummariesQuery = {
1650
- __typename?: 'Query';
1651
- morphoVaults: {
1652
- __typename?: 'MorphoVaultPage';
1653
- pageInfo: {
1654
- __typename?: 'PageInfo';
1655
- hasNextPage: boolean;
1656
- };
1657
- items: Array<{
1658
- __typename?: 'MorphoVault';
1659
- vaultAddress: `0x${string}`;
1660
- name: string;
1661
- chain: {
1662
- __typename?: 'Chain';
1663
- id: 80094;
1664
- name: string;
1665
- icon: string;
1666
- };
1667
- asset: {
1668
- __typename?: 'Token';
1669
- priceUsd: number | null;
1670
- address: `0x${string}`;
1671
- symbol: string;
1672
- decimals: number;
1673
- icon: string | null;
1674
- category: TokenCategory | null;
1675
- name: string;
1676
- };
1677
- metadata: {
1678
- __typename?: 'MorphoVaultMetadata';
1679
- curators: Array<{
1680
- __typename?: 'Curator';
1681
- name: string;
1682
- image: string;
1683
- url: string;
1684
- }>;
1685
- } | null;
1686
- totalSupplied: {
1687
- __typename?: 'TokenAmount';
1688
- raw: string;
1689
- formatted: string;
1690
- usd: number | null;
1691
- };
1692
- totalLiquidity: {
1693
- __typename?: 'TokenAmount';
1694
- raw: string;
1695
- formatted: string;
1696
- usd: number | null;
1697
- };
1698
- supplyApy: {
1699
- __typename?: 'Apy';
1700
- base: number;
1701
- total: number;
1702
- fee: number;
1703
- rewards: Array<{
1704
- __typename?: 'Reward';
1705
- apr: number;
1706
- asset: {
1707
- __typename?: 'Token';
1708
- address: `0x${string}`;
1709
- symbol: string;
1710
- decimals: number;
1711
- icon: string | null;
1712
- category: TokenCategory | null;
1713
- name: string;
1714
- };
1715
- }>;
1716
- };
1717
- supplyApy1d: {
1718
- __typename?: 'Apy';
1719
- base: number;
1720
- total: number;
1721
- fee: number;
1722
- rewards: Array<{
1723
- __typename?: 'Reward';
1724
- apr: number;
1725
- asset: {
1726
- __typename?: 'Token';
1727
- address: `0x${string}`;
1728
- symbol: string;
1729
- decimals: number;
1730
- icon: string | null;
1731
- category: TokenCategory | null;
1732
- name: string;
1733
- };
1734
- }>;
1735
- };
1736
- supplyApy7d: {
1737
- __typename?: 'Apy';
1738
- base: number;
1739
- total: number;
1740
- fee: number;
1741
- rewards: Array<{
1742
- __typename?: 'Reward';
1743
- apr: number;
1744
- asset: {
1745
- __typename?: 'Token';
1746
- address: `0x${string}`;
1747
- symbol: string;
1748
- decimals: number;
1749
- icon: string | null;
1750
- category: TokenCategory | null;
1751
- name: string;
1752
- };
1753
- }>;
1754
- };
1755
- marketAllocations: Array<{
1756
- __typename?: 'MorphoVaultMarketAllocation';
1757
- vaultSupplyShare: number;
1758
- market: {
1759
- __typename?: 'MorphoMarket';
1760
- isIdle: boolean;
1761
- collateralAsset: {
1762
- __typename?: 'Token';
1763
- address: `0x${string}`;
1764
- symbol: string;
1765
- decimals: number;
1766
- icon: string | null;
1767
- category: TokenCategory | null;
1768
- name: string;
1769
- } | null;
1770
- supplyApy: {
1771
- __typename?: 'Apy';
1772
- base: number;
1773
- total: number;
1774
- fee: number;
1775
- rewards: Array<{
1776
- __typename?: 'Reward';
1777
- apr: number;
1778
- asset: {
1779
- __typename?: 'Token';
1780
- address: `0x${string}`;
1781
- symbol: string;
1782
- decimals: number;
1783
- icon: string | null;
1784
- category: TokenCategory | null;
1785
- name: string;
1786
- };
1787
- }>;
1788
- };
1789
- fee: {
1790
- __typename?: 'OnchainAmount';
1791
- raw: string;
1792
- formatted: string;
1793
- };
1794
- };
1795
- supplyCap: {
1796
- __typename?: 'TokenAmount';
1797
- usd: number | null;
1798
- };
1799
- }>;
1800
- } | null>;
1801
- };
1802
- };
1803
- type MarketSummariesQueryVariables = Exact<{
1804
- chainIds: Array<Scalars['ChainId']['input']> | Scalars['ChainId']['input'];
1805
- marketIds: Array<Scalars['Hex']['input']> | Scalars['Hex']['input'];
1806
- }>;
1807
- type MarketSummariesQuery = {
1808
- __typename?: 'Query';
1809
- morphoMarkets: {
1810
- __typename?: 'MorphoMarketPage';
1811
- pageInfo: {
1812
- __typename?: 'PageInfo';
1813
- hasNextPage: boolean;
1814
- };
1815
- items: Array<{
1816
- __typename?: 'MorphoMarket';
1817
- name: string;
1818
- marketId: `0x${string}`;
1819
- isIdle: boolean;
1820
- chain: {
1821
- __typename?: 'Chain';
1822
- id: 80094;
1823
- name: string;
1824
- icon: string;
1825
- };
1826
- totalBorrowed: {
1827
- __typename?: 'TokenAmount';
1828
- raw: string;
1829
- formatted: string;
1830
- usd: number | null;
1831
- };
1832
- totalSupplied: {
1833
- __typename?: 'TokenAmount';
1834
- raw: string;
1835
- formatted: string;
1836
- usd: number | null;
1837
- };
1838
- liquidityInMarket: {
1839
- __typename?: 'TokenAmount';
1840
- raw: string;
1841
- formatted: string;
1842
- usd: number | null;
1843
- };
1844
- publicAllocatorSharedLiquidity: {
1845
- __typename?: 'TokenAmount';
1846
- raw: string;
1847
- formatted: string;
1848
- usd: number | null;
1849
- };
1850
- collateralAsset: {
1851
- __typename?: 'Token';
1852
- address: `0x${string}`;
1853
- symbol: string;
1854
- decimals: number;
1855
- icon: string | null;
1856
- category: TokenCategory | null;
1857
- name: string;
1858
- } | null;
1859
- loanAsset: {
1860
- __typename?: 'Token';
1861
- address: `0x${string}`;
1862
- symbol: string;
1863
- decimals: number;
1864
- icon: string | null;
1865
- category: TokenCategory | null;
1866
- name: string;
1867
- };
1868
- lltv: {
1869
- __typename?: 'OnchainAmount';
1870
- raw: string;
1871
- formatted: string;
1872
- };
1873
- borrowApy: {
1874
- __typename?: 'Apy';
1875
- base: number;
1876
- total: number;
1877
- fee: number;
1878
- rewards: Array<{
1879
- __typename?: 'Reward';
1880
- apr: number;
1881
- asset: {
1882
- __typename?: 'Token';
1883
- address: `0x${string}`;
1884
- symbol: string;
1885
- decimals: number;
1886
- icon: string | null;
1887
- category: TokenCategory | null;
1888
- name: string;
1889
- };
1890
- }>;
1891
- };
1892
- borrowApy1d: {
1893
- __typename?: 'Apy';
1894
- base: number;
1895
- total: number;
1896
- fee: number;
1897
- rewards: Array<{
1898
- __typename?: 'Reward';
1899
- apr: number;
1900
- asset: {
1901
- __typename?: 'Token';
1902
- address: `0x${string}`;
1903
- symbol: string;
1904
- decimals: number;
1905
- icon: string | null;
1906
- category: TokenCategory | null;
1907
- name: string;
1908
- };
1909
- }>;
1910
- };
1911
- borrowApy7d: {
1912
- __typename?: 'Apy';
1913
- base: number;
1914
- total: number;
1915
- fee: number;
1916
- rewards: Array<{
1917
- __typename?: 'Reward';
1918
- apr: number;
1919
- asset: {
1920
- __typename?: 'Token';
1921
- address: `0x${string}`;
1922
- symbol: string;
1923
- decimals: number;
1924
- icon: string | null;
1925
- category: TokenCategory | null;
1926
- name: string;
1927
- };
1928
- }>;
1929
- };
1930
- vaultAllocations: Array<{
1931
- __typename?: 'MorphoVaultMarketAllocation';
1932
- vault: {
1933
- __typename?: 'MorphoVault';
1934
- vaultAddress: `0x${string}`;
1935
- };
1936
- position: {
1937
- __typename?: 'MorphoMarketPosition';
1938
- supplyAmount: {
1939
- __typename?: 'TokenAmount';
1940
- usd: number | null;
1941
- };
1942
- };
1943
- supplyCap: {
1944
- __typename?: 'TokenAmount';
1945
- usd: number | null;
1946
- };
1947
- }>;
1948
- } | null>;
1949
- };
1950
- };
1951
- type VaultQueryVariables = Exact<{
1952
- chainId: Scalars['ChainId']['input'];
1953
- vaultAddress: Scalars['Address']['input'];
1954
- }>;
1955
- type VaultQuery = {
1956
- __typename?: 'Query';
1957
- morphoVaults: {
1958
- __typename?: 'MorphoVaultPage';
1959
- items: Array<{
1960
- __typename?: 'MorphoVault';
1961
- performanceFee: number;
1962
- feeRecipientAddress: `0x${string}` | null;
1963
- ownerAddress: `0x${string}`;
1964
- curatorAddress: `0x${string}`;
1965
- guardianAddress: `0x${string}`;
1966
- vaultAddress: `0x${string}`;
1967
- name: string;
1968
- supplyApy1d: {
1969
- __typename?: 'Apy';
1970
- total: number;
1971
- base: number;
1972
- fee: number;
1973
- rewards: Array<{
1974
- __typename?: 'Reward';
1975
- apr: number;
1976
- asset: {
1977
- __typename?: 'Token';
1978
- address: `0x${string}`;
1979
- symbol: string;
1980
- decimals: number;
1981
- icon: string | null;
1982
- category: TokenCategory | null;
1983
- name: string;
1984
- };
1985
- }>;
1986
- };
1987
- supplyApy7d: {
1988
- __typename?: 'Apy';
1989
- total: number;
1990
- base: number;
1991
- fee: number;
1992
- rewards: Array<{
1993
- __typename?: 'Reward';
1994
- apr: number;
1995
- asset: {
1996
- __typename?: 'Token';
1997
- address: `0x${string}`;
1998
- symbol: string;
1999
- decimals: number;
2000
- icon: string | null;
2001
- category: TokenCategory | null;
2002
- name: string;
2003
- };
2004
- }>;
2005
- };
2006
- supplyApy30d: {
2007
- __typename?: 'Apy';
2008
- total: number;
2009
- };
2010
- asset: {
2011
- __typename?: 'Token';
2012
- priceUsd: number | null;
2013
- address: `0x${string}`;
2014
- symbol: string;
2015
- decimals: number;
2016
- icon: string | null;
2017
- category: TokenCategory | null;
2018
- name: string;
2019
- };
2020
- totalSupplied: {
2021
- __typename?: 'TokenAmount';
2022
- raw: string;
2023
- formatted: string;
2024
- usd: number | null;
2025
- };
2026
- totalLiquidity: {
2027
- __typename?: 'TokenAmount';
2028
- raw: string;
2029
- formatted: string;
2030
- usd: number | null;
2031
- };
2032
- marketAllocations: Array<{
2033
- __typename?: 'MorphoVaultMarketAllocation';
2034
- enabled: boolean;
2035
- vaultSupplyShare: number;
2036
- market: {
2037
- __typename?: 'MorphoMarket';
2038
- marketId: `0x${string}`;
2039
- isIdle: boolean;
2040
- name: string;
2041
- oracleAddress: `0x${string}`;
2042
- utilization: number;
2043
- chain: {
2044
- __typename?: 'Chain';
2045
- id: 80094;
2046
- name: string;
2047
- icon: string;
2048
- };
2049
- irm: {
2050
- __typename?: 'MorphoIrm';
2051
- address: `0x${string}`;
2052
- };
2053
- lltv: {
2054
- __typename?: 'OnchainAmount';
2055
- raw: string;
2056
- formatted: string;
2057
- };
2058
- collateralAsset: {
2059
- __typename?: 'Token';
2060
- address: `0x${string}`;
2061
- symbol: string;
2062
- decimals: number;
2063
- icon: string | null;
2064
- category: TokenCategory | null;
2065
- name: string;
2066
- } | null;
2067
- loanAsset: {
2068
- __typename?: 'Token';
2069
- address: `0x${string}`;
2070
- symbol: string;
2071
- decimals: number;
2072
- icon: string | null;
2073
- category: TokenCategory | null;
2074
- name: string;
2075
- };
2076
- supplyApy: {
2077
- __typename?: 'Apy';
2078
- total: number;
2079
- base: number;
2080
- fee: number;
2081
- rewards: Array<{
2082
- __typename?: 'Reward';
2083
- apr: number;
2084
- asset: {
2085
- __typename?: 'Token';
2086
- address: `0x${string}`;
2087
- symbol: string;
2088
- decimals: number;
2089
- icon: string | null;
2090
- category: TokenCategory | null;
2091
- name: string;
2092
- };
2093
- }>;
2094
- };
2095
- fee: {
2096
- __typename?: 'OnchainAmount';
2097
- raw: string;
2098
- formatted: string;
2099
- };
2100
- liquidityInMarket: {
2101
- __typename?: 'TokenAmount';
2102
- raw: string;
2103
- formatted: string;
2104
- usd: number | null;
2105
- };
2106
- };
2107
- position: {
2108
- __typename?: 'MorphoMarketPosition';
2109
- supplyShares: string;
2110
- supplyAmount: {
2111
- __typename?: 'TokenAmount';
2112
- raw: string;
2113
- formatted: string;
2114
- usd: number | null;
2115
- };
2116
- };
2117
- supplyCap: {
2118
- __typename?: 'TokenAmount';
2119
- raw: string;
2120
- formatted: string;
2121
- usd: number | null;
2122
- };
2123
- }>;
2124
- chain: {
2125
- __typename?: 'Chain';
2126
- id: 80094;
2127
- name: string;
2128
- icon: string;
2129
- };
2130
- metadata: {
2131
- __typename?: 'MorphoVaultMetadata';
2132
- curators: Array<{
2133
- __typename?: 'Curator';
2134
- name: string;
2135
- image: string;
2136
- url: string;
2137
- }>;
2138
- } | null;
2139
- supplyApy: {
2140
- __typename?: 'Apy';
2141
- base: number;
2142
- total: number;
2143
- fee: number;
2144
- rewards: Array<{
2145
- __typename?: 'Reward';
2146
- apr: number;
2147
- asset: {
2148
- __typename?: 'Token';
2149
- address: `0x${string}`;
2150
- symbol: string;
2151
- decimals: number;
2152
- icon: string | null;
2153
- category: TokenCategory | null;
2154
- name: string;
2155
- };
2156
- }>;
2157
- };
2158
- } | null>;
2159
- };
2160
- };
2161
- type MarketQueryVariables = Exact<{
2162
- chainId: Scalars['ChainId']['input'];
2163
- marketId: Scalars['Hex']['input'];
2164
- }>;
2165
- type MarketQuery = {
2166
- __typename?: 'Query';
2167
- morphoMarkets: {
2168
- __typename?: 'MorphoMarketPage';
2169
- items: Array<{
2170
- __typename?: 'MorphoMarket';
2171
- isIdle: boolean;
2172
- utilization: number;
2173
- liquidationPenalty: number;
2174
- oracleAddress: `0x${string}`;
2175
- name: string;
2176
- marketId: `0x${string}`;
2177
- totalSupplied: {
2178
- __typename?: 'TokenAmount';
2179
- raw: string;
2180
- formatted: string;
2181
- usd: number | null;
2182
- };
2183
- totalBorrowed: {
2184
- __typename?: 'TokenAmount';
2185
- raw: string;
2186
- formatted: string;
2187
- usd: number | null;
2188
- };
2189
- liquidityInMarket: {
2190
- __typename?: 'TokenAmount';
2191
- raw: string;
2192
- formatted: string;
2193
- usd: number | null;
2194
- };
2195
- publicAllocatorSharedLiquidity: {
2196
- __typename?: 'TokenAmount';
2197
- raw: string;
2198
- formatted: string;
2199
- usd: number | null;
2200
- };
2201
- collateralAsset: {
2202
- __typename?: 'Token';
2203
- priceUsd: number | null;
2204
- address: `0x${string}`;
2205
- symbol: string;
2206
- decimals: number;
2207
- icon: string | null;
2208
- category: TokenCategory | null;
2209
- name: string;
2210
- } | null;
2211
- loanAsset: {
2212
- __typename?: 'Token';
2213
- priceUsd: number | null;
2214
- address: `0x${string}`;
2215
- symbol: string;
2216
- decimals: number;
2217
- icon: string | null;
2218
- category: TokenCategory | null;
2219
- name: string;
2220
- };
2221
- vaultAllocations: Array<{
2222
- __typename?: 'MorphoVaultMarketAllocation';
2223
- enabled: boolean;
2224
- marketSupplyShare: number;
2225
- vault: {
2226
- __typename?: 'MorphoVault';
2227
- vaultAddress: `0x${string}`;
2228
- name: string;
2229
- curatorAddress: `0x${string}`;
2230
- asset: {
2231
- __typename?: 'Token';
2232
- address: `0x${string}`;
2233
- symbol: string;
2234
- decimals: number;
2235
- icon: string | null;
2236
- category: TokenCategory | null;
2237
- name: string;
2238
- };
2239
- chain: {
2240
- __typename?: 'Chain';
2241
- id: 80094;
2242
- name: string;
2243
- icon: string;
2244
- };
2245
- metadata: {
2246
- __typename?: 'MorphoVaultMetadata';
2247
- curators: Array<{
2248
- __typename?: 'Curator';
2249
- name: string;
2250
- image: string;
2251
- url: string;
2252
- }>;
2253
- } | null;
2254
- };
2255
- position: {
2256
- __typename?: 'MorphoMarketPosition';
2257
- supplyShares: string;
2258
- supplyAmount: {
2259
- __typename?: 'TokenAmount';
2260
- raw: string;
2261
- formatted: string;
2262
- usd: number | null;
2263
- };
2264
- };
2265
- supplyCap: {
2266
- __typename?: 'TokenAmount';
2267
- raw: string;
2268
- formatted: string;
2269
- usd: number | null;
2270
- };
2271
- }>;
2272
- irm: {
2273
- __typename?: 'MorphoIrm';
2274
- address: `0x${string}`;
2275
- targetUtilization: number;
2276
- curve: Array<{
2277
- __typename?: 'MorphoIrmCurvePoint';
2278
- utilization: number;
2279
- supplyApy: number;
2280
- borrowApy: number;
2281
- }> | null;
2282
- };
2283
- collateralPriceInLoanAsset: {
2284
- __typename?: 'OnchainAmount';
2285
- raw: string;
2286
- formatted: string;
2287
- } | null;
2288
- chain: {
2289
- __typename?: 'Chain';
2290
- id: 80094;
2291
- name: string;
2292
- icon: string;
2293
- };
2294
- lltv: {
2295
- __typename?: 'OnchainAmount';
2296
- raw: string;
2297
- formatted: string;
2298
- };
2299
- borrowApy: {
2300
- __typename?: 'Apy';
2301
- base: number;
2302
- total: number;
2303
- fee: number;
2304
- rewards: Array<{
2305
- __typename?: 'Reward';
2306
- apr: number;
2307
- asset: {
2308
- __typename?: 'Token';
2309
- address: `0x${string}`;
2310
- symbol: string;
2311
- decimals: number;
2312
- icon: string | null;
2313
- category: TokenCategory | null;
2314
- name: string;
2315
- };
2316
- }>;
2317
- };
2318
- borrowApy1d: {
2319
- __typename?: 'Apy';
2320
- base: number;
2321
- total: number;
2322
- fee: number;
2323
- rewards: Array<{
2324
- __typename?: 'Reward';
2325
- apr: number;
2326
- asset: {
2327
- __typename?: 'Token';
2328
- address: `0x${string}`;
2329
- symbol: string;
2330
- decimals: number;
2331
- icon: string | null;
2332
- category: TokenCategory | null;
2333
- name: string;
2334
- };
2335
- }>;
2336
- };
2337
- borrowApy7d: {
2338
- __typename?: 'Apy';
2339
- base: number;
2340
- total: number;
2341
- fee: number;
2342
- rewards: Array<{
2343
- __typename?: 'Reward';
2344
- apr: number;
2345
- asset: {
2346
- __typename?: 'Token';
2347
- address: `0x${string}`;
2348
- symbol: string;
2349
- decimals: number;
2350
- icon: string | null;
2351
- category: TokenCategory | null;
2352
- name: string;
2353
- };
2354
- }>;
2355
- };
2356
- } | null>;
2357
- };
2358
- };
2359
- type VaultPositionsQueryVariables = Exact<{
2360
- chainIds: Array<Scalars['ChainId']['input']> | Scalars['ChainId']['input'];
2361
- vaultAddresses: Array<Scalars['Address']['input']> | Scalars['Address']['input'];
2362
- accountAddress: Scalars['Address']['input'];
2363
- }>;
2364
- type VaultPositionsQuery = {
2365
- __typename?: 'Query';
2366
- morphoVaultPositions: {
2367
- __typename?: 'MorphoVaultPositionPage';
2368
- items: Array<{
2369
- __typename?: 'MorphoVaultPosition';
2370
- vault: {
2371
- __typename?: 'MorphoVault';
2372
- vaultAddress: `0x${string}`;
2373
- chain: {
2374
- __typename?: 'Chain';
2375
- id: 80094;
2376
- };
2377
- };
2378
- supplyAmount: {
2379
- __typename?: 'TokenAmount';
2380
- raw: string;
2381
- formatted: string;
2382
- usd: number | null;
2383
- };
2384
- walletUnderlyingAssetHolding: {
2385
- __typename?: 'TokenHolding';
2386
- balance: {
2387
- __typename?: 'TokenAmount';
2388
- raw: string;
2389
- formatted: string;
2390
- usd: number | null;
2391
- };
2392
- } | null;
2393
- } | null>;
2394
- };
2395
- };
2396
- type MarketPositionsQueryVariables = Exact<{
2397
- chainIds: Array<Scalars['ChainId']['input']> | Scalars['ChainId']['input'];
2398
- marketIds: Array<Scalars['Hex']['input']> | Scalars['Hex']['input'];
2399
- accountAddress: Scalars['Address']['input'];
2400
- }>;
2401
- type MarketPositionsQuery = {
2402
- __typename?: 'Query';
2403
- morphoMarketPositions: {
2404
- __typename?: 'MorphoMarketPositionPage';
2405
- items: Array<{
2406
- __typename?: 'MorphoMarketPosition';
2407
- market: {
2408
- __typename?: 'MorphoMarket';
2409
- marketId: `0x${string}`;
2410
- chain: {
2411
- __typename?: 'Chain';
2412
- id: 80094;
2413
- };
2414
- };
2415
- collateralAmount: {
2416
- __typename?: 'TokenAmount';
2417
- raw: string;
2418
- formatted: string;
2419
- usd: number | null;
2420
- } | null;
2421
- borrowAmount: {
2422
- __typename?: 'TokenAmount';
2423
- raw: string;
2424
- formatted: string;
2425
- usd: number | null;
2426
- };
2427
- ltv: {
2428
- __typename?: 'OnchainAmount';
2429
- formatted: string;
2430
- } | null;
2431
- walletLoanAssetHolding: {
2432
- __typename?: 'TokenHolding';
2433
- balance: {
2434
- __typename?: 'TokenAmount';
2435
- raw: string;
2436
- formatted: string;
2437
- usd: number | null;
2438
- };
2439
- };
2440
- walletCollateralAssetHolding: {
2441
- __typename?: 'TokenHolding';
2442
- balance: {
2443
- __typename?: 'TokenAmount';
2444
- raw: string;
2445
- formatted: string;
2446
- usd: number | null;
2447
- };
2448
- } | null;
2449
- } | null>;
2450
- };
2451
- };
2452
- type SupportedMarketIdsQueryVariables = Exact<{
2453
- chainIds: Array<Scalars['ChainId']['input']> | Scalars['ChainId']['input'];
2454
- vaultAddresses: Array<Scalars['Address']['input']> | Scalars['Address']['input'];
2455
- }>;
2456
- type SupportedMarketIdsQuery = {
2457
- __typename?: 'Query';
2458
- morphoVaults: {
2459
- __typename?: 'MorphoVaultPage';
2460
- items: Array<{
2461
- __typename?: 'MorphoVault';
2462
- chain: {
2463
- __typename?: 'Chain';
2464
- id: 80094;
2465
- };
2466
- marketAllocations: Array<{
2467
- __typename?: 'MorphoVaultMarketAllocation';
2468
- market: {
2469
- __typename?: 'MorphoMarket';
2470
- marketId: `0x${string}`;
2471
- };
2472
- }>;
2473
- } | null>;
2474
- };
2475
- };
2476
- type VaultHistoryDataQueryVariables = Exact<{
2477
- chainId: Scalars['ChainId']['input'];
2478
- vaultId: Scalars['Address']['input'];
2479
- }>;
2480
- type VaultHistoryDataQuery = {
2481
- __typename?: 'Query';
2482
- morphoVaults: {
2483
- __typename?: 'MorphoVaultPage';
2484
- items: Array<{
2485
- __typename?: 'MorphoVault';
2486
- historical: {
2487
- __typename?: 'MorphoVaultHistorical';
2488
- daily: Array<{
2489
- __typename?: 'MorphoVaultHistoricalEntry';
2490
- bucketTimestamp: number;
2491
- supplyApy1d: {
2492
- __typename?: 'Apy';
2493
- total: number;
2494
- };
2495
- supplyApy30d: {
2496
- __typename?: 'Apy';
2497
- total: number;
2498
- };
2499
- supplyApy7d: {
2500
- __typename?: 'Apy';
2501
- total: number;
2502
- };
2503
- totalSupplied: {
2504
- __typename?: 'TokenAmount';
2505
- usd: number | null;
2506
- raw: string;
2507
- formatted: string;
2508
- };
2509
- }>;
2510
- hourly: Array<{
2511
- __typename?: 'MorphoVaultHistoricalEntry';
2512
- bucketTimestamp: number;
2513
- supplyApy1d: {
2514
- __typename?: 'Apy';
2515
- total: number;
2516
- };
2517
- supplyApy30d: {
2518
- __typename?: 'Apy';
2519
- total: number;
2520
- };
2521
- supplyApy7d: {
2522
- __typename?: 'Apy';
2523
- total: number;
2524
- };
2525
- totalSupplied: {
2526
- __typename?: 'TokenAmount';
2527
- usd: number | null;
2528
- raw: string;
2529
- formatted: string;
2530
- };
2531
- }>;
2532
- } | null;
2533
- } | null>;
2534
- };
2535
- };
2536
- type VaultMarketAllocationHistoryDataQueryVariables = Exact<{
2537
- chainId: Scalars['ChainId']['input'];
2538
- vaultId: Scalars['Address']['input'];
2539
- }>;
2540
- type VaultMarketAllocationHistoryDataQuery = {
2541
- __typename?: 'Query';
2542
- morphoVaults: {
2543
- __typename?: 'MorphoVaultPage';
2544
- items: Array<{
2545
- __typename?: 'MorphoVault';
2546
- name: string;
2547
- marketAllocations: Array<{
2548
- __typename?: 'MorphoVaultMarketAllocation';
2549
- enabled: boolean;
2550
- market: {
2551
- __typename?: 'MorphoMarket';
2552
- name: string;
2553
- marketId: `0x${string}`;
2554
- utilization: number;
2555
- historical: {
2556
- __typename?: 'MorphoMarketHistorical';
2557
- daily: Array<{
2558
- __typename?: 'MorphoMarketHistoricalEntry';
2559
- bucketTimestamp: number;
2560
- borrowApy1d: {
2561
- __typename?: 'Apy';
2562
- total: number;
2563
- };
2564
- borrowApy30d: {
2565
- __typename?: 'Apy';
2566
- total: number;
2567
- };
2568
- borrowApy7d: {
2569
- __typename?: 'Apy';
2570
- total: number;
2571
- };
2572
- supplyApy1d: {
2573
- __typename?: 'Apy';
2574
- total: number;
2575
- };
2576
- supplyApy7d: {
2577
- __typename?: 'Apy';
2578
- total: number;
2579
- };
2580
- supplyApy30d: {
2581
- __typename?: 'Apy';
2582
- total: number;
2583
- };
2584
- totalBorrowed: {
2585
- __typename?: 'TokenAmount';
2586
- formatted: string;
2587
- raw: string;
2588
- usd: number | null;
2589
- };
2590
- totalCollateral: {
2591
- __typename?: 'TokenAmount';
2592
- formatted: string;
2593
- raw: string;
2594
- usd: number | null;
2595
- };
2596
- totalSupplied: {
2597
- __typename?: 'TokenAmount';
2598
- formatted: string;
2599
- raw: string;
2600
- usd: number | null;
2601
- };
2602
- }>;
2603
- hourly: Array<{
2604
- __typename?: 'MorphoMarketHistoricalEntry';
2605
- bucketTimestamp: number;
2606
- borrowApy1d: {
2607
- __typename?: 'Apy';
2608
- total: number;
2609
- };
2610
- borrowApy30d: {
2611
- __typename?: 'Apy';
2612
- total: number;
2613
- };
2614
- borrowApy7d: {
2615
- __typename?: 'Apy';
2616
- total: number;
2617
- };
2618
- supplyApy1d: {
2619
- __typename?: 'Apy';
2620
- total: number;
2621
- };
2622
- supplyApy7d: {
2623
- __typename?: 'Apy';
2624
- total: number;
2625
- };
2626
- supplyApy30d: {
2627
- __typename?: 'Apy';
2628
- total: number;
2629
- };
2630
- totalBorrowed: {
2631
- __typename?: 'TokenAmount';
2632
- formatted: string;
2633
- raw: string;
2634
- usd: number | null;
2635
- };
2636
- totalCollateral: {
2637
- __typename?: 'TokenAmount';
2638
- formatted: string;
2639
- raw: string;
2640
- usd: number | null;
2641
- };
2642
- totalSupplied: {
2643
- __typename?: 'TokenAmount';
2644
- formatted: string;
2645
- raw: string;
2646
- usd: number | null;
2647
- };
2648
- }>;
2649
- } | null;
2650
- };
2651
- vault: {
2652
- __typename?: 'MorphoVault';
2653
- decimals: number;
2654
- asset: {
2655
- __typename?: 'Token';
2656
- decimals: number;
2657
- };
2658
- };
2659
- }>;
2660
- } | null>;
2661
- };
2662
- };
2663
- type MarketHistoryDataQueryVariables = Exact<{
2664
- chainId: Scalars['ChainId']['input'];
2665
- marketId: Scalars['Hex']['input'];
2666
- }>;
2667
- type MarketHistoryDataQuery = {
2668
- __typename?: 'Query';
2669
- morphoMarkets: {
2670
- __typename?: 'MorphoMarketPage';
2671
- items: Array<{
2672
- __typename?: 'MorphoMarket';
2673
- historical: {
2674
- __typename?: 'MorphoMarketHistorical';
2675
- daily: Array<{
2676
- __typename?: 'MorphoMarketHistoricalEntry';
2677
- bucketTimestamp: number;
2678
- borrowApy1d: {
2679
- __typename?: 'Apy';
2680
- total: number;
2681
- };
2682
- borrowApy30d: {
2683
- __typename?: 'Apy';
2684
- total: number;
2685
- };
2686
- borrowApy7d: {
2687
- __typename?: 'Apy';
2688
- total: number;
2689
- };
2690
- supplyApy1d: {
2691
- __typename?: 'Apy';
2692
- total: number;
2693
- };
2694
- supplyApy7d: {
2695
- __typename?: 'Apy';
2696
- total: number;
2697
- };
2698
- supplyApy30d: {
2699
- __typename?: 'Apy';
2700
- total: number;
2701
- };
2702
- totalBorrowed: {
2703
- __typename?: 'TokenAmount';
2704
- formatted: string;
2705
- raw: string;
2706
- usd: number | null;
2707
- };
2708
- totalCollateral: {
2709
- __typename?: 'TokenAmount';
2710
- formatted: string;
2711
- raw: string;
2712
- usd: number | null;
2713
- };
2714
- totalSupplied: {
2715
- __typename?: 'TokenAmount';
2716
- formatted: string;
2717
- raw: string;
2718
- usd: number | null;
2719
- };
2720
- }>;
2721
- hourly: Array<{
2722
- __typename?: 'MorphoMarketHistoricalEntry';
2723
- bucketTimestamp: number;
2724
- borrowApy1d: {
2725
- __typename?: 'Apy';
2726
- total: number;
2727
- };
2728
- borrowApy30d: {
2729
- __typename?: 'Apy';
2730
- total: number;
2731
- };
2732
- borrowApy7d: {
2733
- __typename?: 'Apy';
2734
- total: number;
2735
- };
2736
- supplyApy1d: {
2737
- __typename?: 'Apy';
2738
- total: number;
2739
- };
2740
- supplyApy7d: {
2741
- __typename?: 'Apy';
2742
- total: number;
2743
- };
2744
- supplyApy30d: {
2745
- __typename?: 'Apy';
2746
- total: number;
2747
- };
2748
- totalBorrowed: {
2749
- __typename?: 'TokenAmount';
2750
- formatted: string;
2751
- raw: string;
2752
- usd: number | null;
2753
- };
2754
- totalCollateral: {
2755
- __typename?: 'TokenAmount';
2756
- formatted: string;
2757
- raw: string;
2758
- usd: number | null;
2759
- };
2760
- totalSupplied: {
2761
- __typename?: 'TokenAmount';
2762
- formatted: string;
2763
- raw: string;
2764
- usd: number | null;
2765
- };
2766
- }>;
2767
- } | null;
2768
- } | null>;
2769
- };
2770
- };
2771
- type MarketIbrHistoryDataQueryVariables = Exact<{
2772
- chainId: Scalars['ChainId']['input'];
2773
- marketId: Scalars['Hex']['input'];
2774
- }>;
2775
- type MarketIbrHistoryDataQuery = {
2776
- __typename?: 'Query';
2777
- morphoMarkets: {
2778
- __typename?: 'MorphoMarketPage';
2779
- items: Array<{
2780
- __typename?: 'MorphoMarket';
2781
- historical: {
2782
- __typename?: 'MorphoMarketHistorical';
2783
- daily: Array<{
2784
- __typename?: 'MorphoMarketHistoricalEntry';
2785
- bucketTimestamp: number;
2786
- borrowApyInstantaneous: {
2787
- __typename?: 'Apy';
2788
- total: number;
2789
- };
2790
- }>;
2791
- hourly: Array<{
2792
- __typename?: 'MorphoMarketHistoricalEntry';
2793
- bucketTimestamp: number;
2794
- borrowApyInstantaneous: {
2795
- __typename?: 'Apy';
2796
- total: number;
2797
- };
2798
- }>;
2799
- } | null;
2800
- } | null>;
2801
- };
2802
- };
2803
- declare const ChainInfoFragment: _apollo_client.DocumentNode;
2804
- declare const TokenInfoFragment: _apollo_client.DocumentNode;
2805
- declare const CuratorInfoFragment: _apollo_client.DocumentNode;
2806
- declare const ApyFragment: _apollo_client.DocumentNode;
2807
- declare const VaultSummaryFragment: _apollo_client.DocumentNode;
2808
- declare const MarketSummaryFragment: _apollo_client.DocumentNode;
2809
- declare const VaultSummaries: _apollo_client.DocumentNode;
2810
- declare const MarketSummaries: _apollo_client.DocumentNode;
2811
- /** Vault */
2812
- type Vault = {
2813
- __typename?: 'Vault';
2814
- /** Underlying asset of the vault */
2815
- asset: Token;
2816
- /** Chain the vault is deployed on */
2817
- chain: Chain;
2818
- /** Description of the vault */
2819
- description: Maybe<Scalars['String']['output']>;
2820
- /** Name of the vault */
2821
- name: Scalars['String']['output'];
2822
- /** Protocol the vault is part of */
2823
- protocol: Protocol;
2824
- /** APY of the vault */
2825
- supplyApy: Apy;
2826
- /** Total amount of underlying assets supplied to the vault */
2827
- totalSupplied: TokenAmount;
2828
- /** Type of vault */
2829
- type: VaultType;
2830
- /** URL of the vault */
2831
- url: Scalars['String']['output'];
2832
- /** Address of the vault */
2833
- vaultAddress: Scalars['Address']['output'];
2834
- };
2835
- declare const Vault: _apollo_client.DocumentNode;
2836
- declare const Market: _apollo_client.DocumentNode;
2837
- declare const VaultPositions: _apollo_client.DocumentNode;
2838
- declare const MarketPositions: _apollo_client.DocumentNode;
2839
- declare const SupportedMarketIds: _apollo_client.DocumentNode;
2840
- declare const VaultHistoryData: _apollo_client.DocumentNode;
2841
- declare const VaultMarketAllocationHistoryData: _apollo_client.DocumentNode;
2842
- declare const MarketHistoryData: _apollo_client.DocumentNode;
2843
- declare const MarketIbrHistoryData: _apollo_client.DocumentNode;
2844
- interface PossibleTypesResultData {
2845
- possibleTypes: {
2846
- [key: string]: string[];
2847
- };
2848
- }
2849
- declare const result: PossibleTypesResultData;
2850
-
2851
- export { type Adapter, type AdapterCap, type AeraVault, type AeraVaultFilter, type AeraVaultPage, type AeraVaultPosition, type AeraVaultPositionFilter, type AeraVaultPositionPage, type Apy, ApyFragment, type ApyFragmentFragment, ApySide, ApyTimeframe, type BoxVault, type BoxVaultAdapter, type BoxVaultApyArgs, type Cap, type Chain, type ChainFilter, ChainInfoFragment, type ChainInfoFragmentFragment, type CollateralExposureCap, type Curator, CuratorInfoFragment, type CuratorInfoFragmentFragment, type Erc4626Vault, type Erc4626VaultApyArgs, type Erc4626VaultFilter, type Erc4626VaultKey, type Erc4626VaultPage, Erc4626VaultProtocol, type Exact, type GenericErc4626Vault, type GenericErc4626VaultApyArgs, type Identity, IdentityResolver, type IdentityResolverOutput, type Incremental, type InputMaybe, type MakeEmpty, type MakeMaybe, type MakeOptional, Market, MarketHistoryData, type MarketHistoryDataQuery, type MarketHistoryDataQueryVariables, MarketIbrHistoryData, type MarketIbrHistoryDataQuery, type MarketIbrHistoryDataQueryVariables, MarketPositions, type MarketPositionsQuery, type MarketPositionsQueryVariables, type MarketQuery, type MarketQueryVariables, MarketSummaries, type MarketSummariesQuery, type MarketSummariesQueryVariables, MarketSummaryFragment, type MarketSummaryFragmentFragment, type MarketV1Adapter, type MarketV1ExposureCap, type Maybe, type MerklAccountReward, MerklAction, type MerklRewardInput, type MorphoIrm, type MorphoIrmCurvePoint, type MorphoMarket, type MorphoMarketFilter, type MorphoMarketHistorical, type MorphoMarketHistoricalEntry, type MorphoMarketPage, type MorphoMarketPosition, type MorphoMarketPositionFilter, type MorphoMarketPositionPage, type MorphoVault, type MorphoVaultApyArgs, type MorphoVaultFilter, type MorphoVaultHistorical, type MorphoVaultHistoricalEntry, type MorphoVaultMarketAllocation, type MorphoVaultMetadata, type MorphoVaultPage, type MorphoVaultPosition, type MorphoVaultPositionFilter, type MorphoVaultPositionPage, type MorphoVaultV2, type MorphoVaultV2ApyArgs, type OnchainAmount, type PageInfo, type PossibleTypesResultData, type Protocol, type Query, type QueryAeraVaultPositionsArgs, type QueryAeraVaultsArgs, type QueryChainsArgs, type QueryErc4626VaultsArgs, type QueryIdentitiesArgs, type QueryIdentityArgs, type QueryMerklAccountRewardsArgs, type QueryMorphoMarketPositionsArgs, type QueryMorphoMarketsArgs, type QueryMorphoVaultPositionsArgs, type QueryMorphoVaultsArgs, type QueryTokenHoldingsArgs, type QueryTokensArgs, type QueryVaultsArgs, type Reward, type Scalars, SupportedMarketIds, type SupportedMarketIdsQuery, type SupportedMarketIdsQueryVariables, type Token, type TokenAmount, TokenCategory, type TokenHistorical, type TokenHistoricalEntry, type TokenHolding, type TokenHoldingInput, TokenInfoFragment, type TokenInfoFragmentFragment, type TokenInput, type UnknownAdapter, type UnknownCap, Vault, VaultHistoryData, type VaultHistoryDataQuery, type VaultHistoryDataQueryVariables, type VaultInput, VaultMarketAllocationHistoryData, type VaultMarketAllocationHistoryDataQuery, type VaultMarketAllocationHistoryDataQueryVariables, VaultPositions, type VaultPositionsQuery, type VaultPositionsQueryVariables, VaultProtocol, type VaultQuery, type VaultQueryVariables, VaultSummaries, type VaultSummariesQuery, type VaultSummariesQueryVariables, VaultSummaryFragment, type VaultSummaryFragmentFragment, VaultType, type VaultV1Adapter, result as default };