@berachain/graphql 0.5.2 → 0.5.3-beta.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,28 +1,26 @@
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 {
1
+ export type Maybe<T> = T | null;
2
+ export type InputMaybe<T> = Maybe<T>;
3
+ export type Exact<T extends {
6
4
  [key: string]: unknown;
7
5
  }> = {
8
6
  [K in keyof T]: T[K];
9
7
  };
10
- type MakeOptional<T, K extends keyof T> = Omit<T, K> & {
8
+ export type MakeOptional<T, K extends keyof T> = Omit<T, K> & {
11
9
  [SubKey in K]?: Maybe<T[SubKey]>;
12
10
  };
13
- type MakeMaybe<T, K extends keyof T> = Omit<T, K> & {
11
+ export type MakeMaybe<T, K extends keyof T> = Omit<T, K> & {
14
12
  [SubKey in K]: Maybe<T[SubKey]>;
15
13
  };
16
- type MakeEmpty<T extends {
14
+ export type MakeEmpty<T extends {
17
15
  [key: string]: unknown;
18
16
  }, K extends keyof T> = {
19
17
  [_ in K]?: never;
20
18
  };
21
- type Incremental<T> = T | {
19
+ export type Incremental<T> = T | {
22
20
  [P in keyof T]?: P extends ' $fragmentName' | '__typename' ? T[P] : never;
23
21
  };
24
22
  /** All built-in and custom scalars, mapped to their actual values */
25
- type Scalars = {
23
+ export type Scalars = {
26
24
  ID: {
27
25
  input: string;
28
26
  output: string;
@@ -64,47 +62,31 @@ type Scalars = {
64
62
  output: string;
65
63
  };
66
64
  };
67
- type Adapter = {
68
- /**
69
- * Address of the adapter
70
- * @deprecated Schema is subject to change, not yet stable
71
- */
65
+ export type Adapter = {
66
+ /** Address of the adapter */
72
67
  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
- */
68
+ /** Cap for the adapter, null if and only if the adapter doesn't adhere to abi.encode('this', address) */
77
69
  adapterCap: Maybe<AdapterCap>;
70
+ /** Instantaneous APY earned by this adapter's allocation (before vault-level fees) */
71
+ instantApy: Scalars['Float']['output'];
78
72
  /** Name of the adapter */
79
73
  name: Maybe<Scalars['String']['output']>;
80
74
  /** Risk assessment for the adapter */
81
75
  riskAssessment: RiskAssessment;
82
76
  };
83
- type AdapterCap = Cap & {
77
+ export type AdapterCap = Cap & {
84
78
  __typename?: 'AdapterCap';
85
- /**
86
- * Absolute cap in underlying units
87
- * @deprecated Schema is subject to change, not yet stable
88
- */
79
+ /** Absolute cap in underlying units */
89
80
  absoluteCap: TokenAmount;
90
- /**
91
- * Current amount allocated under this id
92
- * @deprecated Schema is subject to change, not yet stable
93
- */
81
+ /** Current amount allocated under this id */
94
82
  allocation: TokenAmount;
95
- /**
96
- * bytes32 key
97
- * @deprecated Schema is subject to change, not yet stable
98
- */
83
+ /** bytes32 key */
99
84
  capId: Scalars['Hex']['output'];
100
- /**
101
- * Relative cap (wad)
102
- * @deprecated Schema is subject to change, not yet stable
103
- */
85
+ /** Relative cap (wad) */
104
86
  relativeCap: OnchainAmount;
105
87
  };
106
88
  /** Pending withdrawals or deposits for an account in an Aera vault */
107
- type AeraPendingAction = {
89
+ export type AeraPendingAction = {
108
90
  __typename?: 'AeraPendingAction';
109
91
  /** Amount of the action */
110
92
  amount: TokenAmount;
@@ -114,7 +96,7 @@ type AeraPendingAction = {
114
96
  token: Token;
115
97
  };
116
98
  /** Aera vault */
117
- type AeraVault = {
99
+ export type AeraVault = {
118
100
  __typename?: 'AeraVault';
119
101
  /** Chain the vault is deployed on */
120
102
  chain: Chain;
@@ -140,14 +122,14 @@ type AeraVault = {
140
122
  vaultAddress: Scalars['Address']['output'];
141
123
  };
142
124
  /** Filter for Aera vaults */
143
- type AeraVaultFilter = {
125
+ export type AeraVaultFilter = {
144
126
  /** Filter for certain chainIds */
145
127
  chainId_in: InputMaybe<Array<Scalars['ChainId']['input']>>;
146
128
  /** Filter for certain vault addresses */
147
129
  vaultAddress_in: InputMaybe<Array<Scalars['Address']['input']>>;
148
130
  };
149
131
  /** Page of Aera vaults */
150
- type AeraVaultPage = {
132
+ export type AeraVaultPage = {
151
133
  __typename?: 'AeraVaultPage';
152
134
  /** The items in the page */
153
135
  items: Array<Maybe<AeraVault>>;
@@ -157,7 +139,7 @@ type AeraVaultPage = {
157
139
  totalCount: Scalars['Int']['output'];
158
140
  };
159
141
  /** Position of an account in an Aera vault */
160
- type AeraVaultPosition = {
142
+ export type AeraVaultPosition = {
161
143
  __typename?: 'AeraVaultPosition';
162
144
  /** Address of the account */
163
145
  accountAddress: Scalars['Address']['output'];
@@ -177,7 +159,7 @@ type AeraVaultPosition = {
177
159
  vault: AeraVault;
178
160
  };
179
161
  /** Filter for Aera vault positions */
180
- type AeraVaultPositionFilter = {
162
+ export type AeraVaultPositionFilter = {
181
163
  /** Filter for certain account addresses */
182
164
  accountAddress_in: InputMaybe<Array<Scalars['Address']['input']>>;
183
165
  /** Filter for certain chainIds */
@@ -186,7 +168,7 @@ type AeraVaultPositionFilter = {
186
168
  vaultAddress_in: InputMaybe<Array<Scalars['Address']['input']>>;
187
169
  };
188
170
  /** Page of Aera vault positions */
189
- type AeraVaultPositionPage = {
171
+ export type AeraVaultPositionPage = {
190
172
  __typename?: 'AeraVaultPositionPage';
191
173
  /** The items in the page */
192
174
  items: Array<Maybe<AeraVaultPosition>>;
@@ -196,7 +178,7 @@ type AeraVaultPositionPage = {
196
178
  totalCount: Scalars['Int']['output'];
197
179
  };
198
180
  /** Annual Percentage Yield (APY) of an opportunity */
199
- type Apy = {
181
+ export type Apy = {
200
182
  __typename?: 'Apy';
201
183
  /** The base APY. For Supply: rate earned by supplying. For Borrow: rate paid for borrowing. Will always be positive. */
202
184
  base: Scalars['Float']['output'];
@@ -210,14 +192,16 @@ type Apy = {
210
192
  total: Scalars['Float']['output'];
211
193
  };
212
194
  /** Whether an APY applies to the supply or borrow side of an opportunity */
213
- declare enum ApySide {
195
+ export declare enum ApySide {
214
196
  /** APY paid when borrowing */
215
197
  Borrow = "Borrow",
216
198
  /** APY earned when supplying */
217
199
  Supply = "Supply"
218
200
  }
219
- /** Timeframe for APY calculations based on historical share price changes */
220
- declare enum ApyTimeframe {
201
+ /** Timeframe for APY calculations */
202
+ export declare enum ApyTimeframe {
203
+ /** Instantaneous APY derived from allocation structure (IRM rates, intrinsic yields). Falls back to 6h share price APY for vaults without known allocation structure. */
204
+ Instant = "instant",
221
205
  /** APY calculated over the last 1 day */
222
206
  OneDay = "one_day",
223
207
  /** APY calculated over the last 7 days */
@@ -228,89 +212,47 @@ declare enum ApyTimeframe {
228
212
  ThirtyDays = "thirty_days"
229
213
  }
230
214
  /** A funding module attached to a Box vault for borrowing/lending operations */
231
- type BoxFundingModule = {
232
- /**
233
- * Collateral tokens with their total balances across all facilities
234
- * @deprecated Schema is subject to change, not yet stable
235
- */
215
+ export type BoxFundingModule = {
216
+ /** Collateral tokens with their total balances across all facilities */
236
217
  collateralHoldings: Array<TokenHolding>;
237
- /**
238
- * Debt tokens with their total balances across all facilities
239
- * @deprecated Schema is subject to change, not yet stable
240
- */
218
+ /** Debt tokens with their total balances across all facilities */
241
219
  debtHoldings: Array<TokenHolding>;
242
- /**
243
- * Address of the funding module contract
244
- * @deprecated Schema is subject to change, not yet stable
245
- */
220
+ /** Address of the funding module contract */
246
221
  fundingModuleAddress: Scalars['Address']['output'];
247
- /**
248
- * Net asset value of the funding module in underlying asset terms
249
- * @deprecated Schema is subject to change, not yet stable
250
- */
222
+ /** Net asset value of the funding module in underlying asset terms */
251
223
  nav: TokenAmount;
252
224
  };
253
225
  /** A Morpho-based funding module */
254
- type BoxMorphoFundingModule = BoxFundingModule & {
226
+ export type BoxMorphoFundingModule = BoxFundingModule & {
255
227
  __typename?: 'BoxMorphoFundingModule';
256
- /**
257
- * Collateral tokens with their total balances across all facilities
258
- * @deprecated Schema is subject to change, not yet stable
259
- */
228
+ /** Collateral tokens with their total balances across all facilities */
260
229
  collateralHoldings: Array<TokenHolding>;
261
- /**
262
- * Debt tokens with their total balances across all facilities
263
- * @deprecated Schema is subject to change, not yet stable
264
- */
230
+ /** Debt tokens with their total balances across all facilities */
265
231
  debtHoldings: Array<TokenHolding>;
266
- /**
267
- * Address of the funding module contract
268
- * @deprecated Schema is subject to change, not yet stable
269
- */
232
+ /** Address of the funding module contract */
270
233
  fundingModuleAddress: Scalars['Address']['output'];
271
- /**
272
- * Net asset value of the funding module in underlying asset terms
273
- * @deprecated Schema is subject to change, not yet stable
274
- */
234
+ /** Net asset value of the funding module in underlying asset terms */
275
235
  nav: TokenAmount;
276
- /**
277
- * Morpho market positions held by this funding module
278
- * @deprecated Schema is subject to change, not yet stable
279
- */
236
+ /** Morpho market positions held by this funding module */
280
237
  positions: Array<MorphoMarketPosition>;
281
238
  };
282
239
  /** An unknown funding module type */
283
- type BoxUnknownFundingModule = BoxFundingModule & {
240
+ export type BoxUnknownFundingModule = BoxFundingModule & {
284
241
  __typename?: 'BoxUnknownFundingModule';
285
- /**
286
- * Collateral tokens with their total balances across all facilities
287
- * @deprecated Schema is subject to change, not yet stable
288
- */
242
+ /** Collateral tokens with their total balances across all facilities */
289
243
  collateralHoldings: Array<TokenHolding>;
290
- /**
291
- * Debt tokens with their total balances across all facilities
292
- * @deprecated Schema is subject to change, not yet stable
293
- */
244
+ /** Debt tokens with their total balances across all facilities */
294
245
  debtHoldings: Array<TokenHolding>;
295
- /**
296
- * Address of the funding module contract
297
- * @deprecated Schema is subject to change, not yet stable
298
- */
246
+ /** Address of the funding module contract */
299
247
  fundingModuleAddress: Scalars['Address']['output'];
300
- /**
301
- * Net asset value of the funding module in underlying asset terms
302
- * @deprecated Schema is subject to change, not yet stable
303
- */
248
+ /** Net asset value of the funding module in underlying asset terms */
304
249
  nav: TokenAmount;
305
250
  };
306
- type BoxVault = Erc20 & Erc4626Vault & {
251
+ export type BoxVault = Erc20 & Erc4626Vault & {
307
252
  __typename?: 'BoxVault';
308
253
  /** The contract address of the vault */
309
254
  address: Scalars['Address']['output'];
310
- /**
311
- * Allocations of the vault to the markets
312
- * @deprecated Schema is subject to change, not yet stable
313
- */
255
+ /** Allocations of the vault to the markets */
314
256
  allocations: Array<TokenHolding>;
315
257
  /** APY earned when supplying to the vault, computed by annualized share price change over the given timeframe */
316
258
  apy: Apy;
@@ -322,13 +264,14 @@ type BoxVault = Erc20 & Erc4626Vault & {
322
264
  chain: Chain;
323
265
  /** The number of decimal places the vault shares use */
324
266
  decimals: Scalars['Int']['output'];
325
- /**
326
- * Funding modules attached to the vault for borrowing/lending operations
327
- * @deprecated Schema is subject to change, not yet stable
328
- */
267
+ /** Funding modules attached to the vault for borrowing/lending operations */
329
268
  fundingModules: Array<BoxFundingModule>;
269
+ /** Historical data for the vault, null if historical data is not supported for this chain */
270
+ historical: Maybe<Erc4626VaultHistorical>;
330
271
  /** URL to the vault's image, null if not available */
331
272
  icon: Maybe<Scalars['URL']['output']>;
273
+ /** Vault-level leverage. */
274
+ leverage: Scalars['Float']['output'];
332
275
  /** The full name of the vault */
333
276
  name: Scalars['String']['output'];
334
277
  /** Current price of vault shares in USD, null if price data unavailable */
@@ -344,60 +287,41 @@ type BoxVault = Erc20 & Erc4626Vault & {
344
287
  * @deprecated Use address instead
345
288
  */
346
289
  vaultAddress: Scalars['Address']['output'];
290
+ /** Yield information, null for vaults (use apy field instead) */
291
+ yield: Maybe<YieldInfo>;
347
292
  };
348
- type BoxVaultApyArgs = {
293
+ export type BoxVaultApyArgs = {
349
294
  timeframe: ApyTimeframe;
350
295
  };
351
- type BoxVaultAdapter = Adapter & {
296
+ /** Legacy adapter for Box-backed positions. Planned to be deprecated in favor of Erc4626Adapter. */
297
+ export type BoxVaultAdapter = Adapter & {
352
298
  __typename?: 'BoxVaultAdapter';
353
- /**
354
- * Address of the adapter
355
- * @deprecated Schema is subject to change, not yet stable
356
- */
299
+ /** Address of the adapter */
357
300
  adapterAddress: Scalars['Address']['output'];
358
- /**
359
- * Cap for the adapter
360
- * @deprecated Schema is subject to change, not yet stable
361
- */
301
+ /** Cap for the adapter */
362
302
  adapterCap: Maybe<AdapterCap>;
363
- /**
364
- * Name of the adapter
365
- * @deprecated Schema is subject to change, not yet stable
366
- */
303
+ /** Instantaneous APY earned by this adapter's allocation (before vault-level fees) */
304
+ instantApy: Scalars['Float']['output'];
305
+ /** Name of the adapter */
367
306
  name: Maybe<Scalars['String']['output']>;
368
307
  /** Risk assessment for the adapter */
369
308
  riskAssessment: RiskAssessment;
370
- /**
371
- * Box vault the adapter allocated to
372
- * @deprecated Schema is subject to change, not yet stable
373
- */
309
+ /** Box vault the adapter allocated to */
374
310
  vault: Maybe<BoxVault>;
375
311
  };
376
312
  /** V2: Caps for a Morpho vault adapter id */
377
- type Cap = {
378
- /**
379
- * Absolute cap in underlying units
380
- * @deprecated Schema is subject to change, not yet stable
381
- */
313
+ export type Cap = {
314
+ /** Absolute cap in underlying units */
382
315
  absoluteCap: TokenAmount;
383
- /**
384
- * Current amount allocated under this id. This uses real time values instead of the cached allocation values where possible
385
- * @deprecated Schema is subject to change, not yet stable
386
- */
316
+ /** Current amount allocated under this id. This uses real time values instead of the cached allocation values where possible */
387
317
  allocation: TokenAmount;
388
- /**
389
- * bytes32 key
390
- * @deprecated Schema is subject to change, not yet stable
391
- */
318
+ /** bytes32 key */
392
319
  capId: Scalars['Hex']['output'];
393
- /**
394
- * Relative cap (wad)
395
- * @deprecated Schema is subject to change, not yet stable
396
- */
320
+ /** Relative cap (wad) */
397
321
  relativeCap: OnchainAmount;
398
322
  };
399
323
  /** A blockchain */
400
- type Chain = {
324
+ export type Chain = {
401
325
  __typename?: 'Chain';
402
326
  /** URL to the chain's icon/logo image */
403
327
  icon: Scalars['URL']['output'];
@@ -411,40 +335,25 @@ type Chain = {
411
335
  wrappedNativeToken: Token;
412
336
  };
413
337
  /** Filter for chains */
414
- type ChainFilter = {
338
+ export type ChainFilter = {
415
339
  /** Filter for certain chainIds */
416
340
  chainId_in: InputMaybe<Array<Scalars['ChainId']['input']>>;
417
341
  };
418
- type CollateralExposureCap = Cap & {
342
+ export type CollateralExposureCap = Cap & {
419
343
  __typename?: 'CollateralExposureCap';
420
- /**
421
- * Absolute cap in underlying units
422
- * @deprecated Schema is subject to change, not yet stable
423
- */
344
+ /** Absolute cap in underlying units */
424
345
  absoluteCap: TokenAmount;
425
- /**
426
- * Current amount allocated under this id
427
- * @deprecated Schema is subject to change, not yet stable
428
- */
346
+ /** Current amount allocated under this id */
429
347
  allocation: TokenAmount;
430
- /**
431
- * bytes32 key
432
- * @deprecated Schema is subject to change, not yet stable
433
- */
348
+ /** bytes32 key */
434
349
  capId: Scalars['Hex']['output'];
435
- /**
436
- * Collateral token
437
- * @deprecated Schema is subject to change, not yet stable
438
- */
350
+ /** Collateral token */
439
351
  collateralToken: Token;
440
- /**
441
- * Relative cap (wad)
442
- * @deprecated Schema is subject to change, not yet stable
443
- */
352
+ /** Relative cap (wad) */
444
353
  relativeCap: OnchainAmount;
445
354
  };
446
355
  /** Curator of a Morpho vault */
447
- type Curator = {
356
+ export type Curator = {
448
357
  __typename?: 'Curator';
449
358
  /** Image of the curator */
450
359
  image: Scalars['String']['output'];
@@ -454,7 +363,7 @@ type Curator = {
454
363
  url: Scalars['String']['output'];
455
364
  };
456
365
  /** ERC-20 compliant token interface - the base interface for all fungible tokens including vault shares */
457
- type Erc20 = {
366
+ export type Erc20 = {
458
367
  /** The contract address of the token */
459
368
  address: Scalars['Address']['output'];
460
369
  /** The category of the token */
@@ -473,12 +382,14 @@ type Erc20 = {
473
382
  riskAssessment: RiskAssessment;
474
383
  /** The symbol of the token (e.g., 'ETH') */
475
384
  symbol: Scalars['String']['output'];
385
+ /** Yield information for the token, null if the token is not yield-bearing or unsupported */
386
+ yield: Maybe<YieldInfo>;
476
387
  };
477
388
  /** ERC-4626 tokenized vault interface - standard for yield-bearing vaults */
478
- type Erc4626Vault = {
389
+ export type Erc4626Vault = {
479
390
  /** The contract address of the vault */
480
391
  address: Scalars['Address']['output'];
481
- /** APY earned when supplying to the vault, computed by annualized share price change over the given timeframe */
392
+ /** APY earned when supplying to the vault. For instant: derived from allocation structure; for other timeframes: annualized share price change. */
482
393
  apy: Apy;
483
394
  /** Underlying asset of the vault */
484
395
  asset: Token;
@@ -488,6 +399,8 @@ type Erc4626Vault = {
488
399
  chain: Chain;
489
400
  /** The number of decimal places the vault shares use */
490
401
  decimals: Scalars['Int']['output'];
402
+ /** Historical data for the vault, null if historical data is not supported for this chain */
403
+ historical: Maybe<Erc4626VaultHistorical>;
491
404
  /** URL to the vault's image, null if not available */
492
405
  icon: Maybe<Scalars['URL']['output']>;
493
406
  /** The full name of the vault */
@@ -505,18 +418,40 @@ type Erc4626Vault = {
505
418
  * @deprecated Use address instead
506
419
  */
507
420
  vaultAddress: Scalars['Address']['output'];
421
+ /** Yield information, null for vaults (use apy field instead) */
422
+ yield: Maybe<YieldInfo>;
508
423
  };
509
424
  /** ERC-4626 tokenized vault interface - standard for yield-bearing vaults */
510
- type Erc4626VaultApyArgs = {
425
+ export type Erc4626VaultApyArgs = {
511
426
  timeframe: ApyTimeframe;
512
427
  };
428
+ export type Erc4626VaultAdapter = Adapter & {
429
+ __typename?: 'Erc4626VaultAdapter';
430
+ /** Address of the adapter */
431
+ adapterAddress: Scalars['Address']['output'];
432
+ /** Cap for the adapter */
433
+ adapterCap: Maybe<AdapterCap>;
434
+ /** Instantaneous APY earned by this adapter's allocation (before vault-level fees) */
435
+ instantApy: Scalars['Float']['output'];
436
+ /** Name of the adapter */
437
+ name: Maybe<Scalars['String']['output']>;
438
+ /** Risk assessment for the adapter */
439
+ riskAssessment: RiskAssessment;
440
+ /** The ERC-4626 vault this adapter allocates to */
441
+ vault: Maybe<Erc4626Vault>;
442
+ };
513
443
  /** Filter for querying ERC-4626 vaults */
514
- type Erc4626VaultFilter = {
444
+ export type Erc4626VaultFilter = {
515
445
  /** List of vault keys to filter by (returns vaults matching any key) */
516
446
  keys: InputMaybe<Array<Erc4626VaultKey>>;
517
447
  };
448
+ /** Historical data for an ERC-4626 vault */
449
+ export type Erc4626VaultHistorical = {
450
+ /** Monthly returns (up to 12 most recent complete calendar months). Null if unavailable. */
451
+ returns: Maybe<Array<TimeSeriesPoint>>;
452
+ };
518
453
  /** Unique identifier for an ERC-4626 vault */
519
- type Erc4626VaultKey = {
454
+ export type Erc4626VaultKey = {
520
455
  /** Chain the vault is deployed on */
521
456
  chainId: Scalars['ChainId']['input'];
522
457
  /** Protocol the vault is part of */
@@ -525,7 +460,7 @@ type Erc4626VaultKey = {
525
460
  vaultAddress: Scalars['Address']['input'];
526
461
  };
527
462
  /** Paginated response containing ERC-4626 vaults */
528
- type Erc4626VaultPage = {
463
+ export type Erc4626VaultPage = {
529
464
  __typename?: 'Erc4626VaultPage';
530
465
  /** The items in the page */
531
466
  items: Array<Maybe<Erc4626Vault>>;
@@ -535,7 +470,7 @@ type Erc4626VaultPage = {
535
470
  totalCount: Scalars['Int']['output'];
536
471
  };
537
472
  /** User position in an ERC-4626 vault */
538
- type Erc4626VaultPosition = {
473
+ export type Erc4626VaultPosition = {
539
474
  /** Address of the account */
540
475
  accountAddress: Scalars['Address']['output'];
541
476
  /** Underlying assets the shares are redeemable for */
@@ -548,12 +483,12 @@ type Erc4626VaultPosition = {
548
483
  walletAssetHolding: TokenHolding;
549
484
  };
550
485
  /** Filter for querying ERC-4626 vault positions */
551
- type Erc4626VaultPositionFilter = {
486
+ export type Erc4626VaultPositionFilter = {
552
487
  /** List of position keys to filter by (returns positions matching any key) */
553
488
  keys: InputMaybe<Array<Erc4626VaultPositionKey>>;
554
489
  };
555
490
  /** Unique identifier for a user's position in an ERC-4626 vault */
556
- type Erc4626VaultPositionKey = {
491
+ export type Erc4626VaultPositionKey = {
557
492
  /** Address of the account to get the position for */
558
493
  accountAddress: Scalars['Address']['input'];
559
494
  /** Chain the vault is deployed on */
@@ -564,7 +499,7 @@ type Erc4626VaultPositionKey = {
564
499
  vaultAddress: Scalars['Address']['input'];
565
500
  };
566
501
  /** Paginated response containing ERC-4626 vault positions */
567
- type Erc4626VaultPositionPage = {
502
+ export type Erc4626VaultPositionPage = {
568
503
  __typename?: 'Erc4626VaultPositionPage';
569
504
  /** The items in the page */
570
505
  items: Array<Maybe<Erc4626VaultPosition>>;
@@ -574,7 +509,7 @@ type Erc4626VaultPositionPage = {
574
509
  totalCount: Scalars['Int']['output'];
575
510
  };
576
511
  /** Protocols that implement ERC-4626 tokenized vault standard */
577
- declare enum Erc4626VaultProtocol {
512
+ export declare enum Erc4626VaultProtocol {
578
513
  /** Box protocol vaults */
579
514
  Box = "box",
580
515
  /** Generic ERC-4626 vault (protocol-agnostic implementation) */
@@ -585,11 +520,11 @@ declare enum Erc4626VaultProtocol {
585
520
  MorphoV2 = "morpho_v2"
586
521
  }
587
522
  /** Generic ERC-4626 vault implementation without protocol-specific features */
588
- type GenericErc4626Vault = Erc20 & Erc4626Vault & {
523
+ export type GenericErc4626Vault = Erc20 & Erc4626Vault & {
589
524
  __typename?: 'GenericErc4626Vault';
590
525
  /** The contract address of the vault */
591
526
  address: Scalars['Address']['output'];
592
- /** APY earned when supplying to the vault, computed by annualized share price change over the given timeframe */
527
+ /** APY earned when supplying to the vault. For instant: derived from allocation structure; for other timeframes: annualized share price change. */
593
528
  apy: Apy;
594
529
  /** Underlying asset of the vault */
595
530
  asset: Token;
@@ -599,6 +534,8 @@ type GenericErc4626Vault = Erc20 & Erc4626Vault & {
599
534
  chain: Chain;
600
535
  /** The number of decimal places the vault shares use */
601
536
  decimals: Scalars['Int']['output'];
537
+ /** Historical data for the vault, null if historical data is not supported for this chain */
538
+ historical: Maybe<Erc4626VaultHistorical>;
602
539
  /** URL to the vault's image, null if not available */
603
540
  icon: Maybe<Scalars['URL']['output']>;
604
541
  /** The full name of the vault */
@@ -616,13 +553,21 @@ type GenericErc4626Vault = Erc20 & Erc4626Vault & {
616
553
  * @deprecated Use address instead
617
554
  */
618
555
  vaultAddress: Scalars['Address']['output'];
556
+ /** Yield information, null for vaults (use apy field instead) */
557
+ yield: Maybe<YieldInfo>;
619
558
  };
620
559
  /** Generic ERC-4626 vault implementation without protocol-specific features */
621
- type GenericErc4626VaultApyArgs = {
560
+ export type GenericErc4626VaultApyArgs = {
622
561
  timeframe: ApyTimeframe;
623
562
  };
563
+ /** Historical data for a generic ERC-4626 vault */
564
+ export type GenericErc4626VaultHistorical = Erc4626VaultHistorical & {
565
+ __typename?: 'GenericErc4626VaultHistorical';
566
+ /** Monthly returns (up to 12 most recent complete calendar months). Null if unavailable. */
567
+ returns: Maybe<Array<TimeSeriesPoint>>;
568
+ };
624
569
  /** User position in a generic ERC-4626 vault */
625
- type GenericErc4626VaultPosition = Erc4626VaultPosition & {
570
+ export type GenericErc4626VaultPosition = Erc4626VaultPosition & {
626
571
  __typename?: 'GenericErc4626VaultPosition';
627
572
  /** Address of the account */
628
573
  accountAddress: Scalars['Address']['output'];
@@ -636,7 +581,7 @@ type GenericErc4626VaultPosition = Erc4626VaultPosition & {
636
581
  walletAssetHolding: TokenHolding;
637
582
  };
638
583
  /** Identity information aggregated from multiple naming services */
639
- type Identity = {
584
+ export type Identity = {
640
585
  __typename?: 'Identity';
641
586
  /** Aggregated identity information with fallback priority based on resolverOrder */
642
587
  aggregate: IdentityResolverOutput;
@@ -658,7 +603,7 @@ type Identity = {
658
603
  world: IdentityResolverOutput;
659
604
  };
660
605
  /** Identity resolution services that can provide name and profile information for addresses */
661
- declare enum IdentityResolver {
606
+ export declare enum IdentityResolver {
662
607
  /** Basename - .base.eth domains on Base network */
663
608
  Base = "base",
664
609
  /** Ethereum Name Service (ENS) - .eth domains */
@@ -675,7 +620,7 @@ declare enum IdentityResolver {
675
620
  World = "world"
676
621
  }
677
622
  /** Profile information resolved from an identity service */
678
- type IdentityResolverOutput = {
623
+ export type IdentityResolverOutput = {
679
624
  __typename?: 'IdentityResolverOutput';
680
625
  /** URL or IPFS hash of the avatar image */
681
626
  avatar: Maybe<Scalars['String']['output']>;
@@ -694,61 +639,36 @@ type IdentityResolverOutput = {
694
639
  /** X (formerly Twitter) handle or profile URL */
695
640
  x: Maybe<Scalars['String']['output']>;
696
641
  };
697
- type MarketV1Adapter = Adapter & {
642
+ export type MarketV1Adapter = Adapter & {
698
643
  __typename?: 'MarketV1Adapter';
699
- /**
700
- * Address of the adapter
701
- * @deprecated Schema is subject to change, not yet stable
702
- */
644
+ /** Address of the adapter */
703
645
  adapterAddress: Scalars['Address']['output'];
704
- /**
705
- * Cap for the adapter
706
- * @deprecated Schema is subject to change, not yet stable
707
- */
646
+ /** Cap for the adapter */
708
647
  adapterCap: Maybe<AdapterCap>;
709
- /**
710
- * Markets the adapter is allocating to. Note that only markets currently being allocated to will appear here
711
- * @deprecated Schema is subject to change, not yet stable
712
- */
648
+ /** Instantaneous APY earned by this adapter's allocation (before vault-level fees) */
649
+ instantApy: Scalars['Float']['output'];
650
+ /** Markets the adapter is allocating to. Note that only markets currently being allocated to will appear here */
713
651
  marketCaps: Array<MarketV1ExposureCap>;
714
- /**
715
- * Name of the adapter
716
- * @deprecated Schema is subject to change, not yet stable
717
- */
652
+ /** Name of the adapter */
718
653
  name: Maybe<Scalars['String']['output']>;
719
654
  /** Risk assessment for the adapter */
720
655
  riskAssessment: RiskAssessment;
721
656
  };
722
- type MarketV1ExposureCap = Cap & {
657
+ export type MarketV1ExposureCap = Cap & {
723
658
  __typename?: 'MarketV1ExposureCap';
724
- /**
725
- * Absolute cap in underlying units
726
- * @deprecated Schema is subject to change, not yet stable
727
- */
659
+ /** Absolute cap in underlying units */
728
660
  absoluteCap: TokenAmount;
729
- /**
730
- * Current amount allocated under this id
731
- * @deprecated Schema is subject to change, not yet stable
732
- */
661
+ /** Current amount allocated under this id */
733
662
  allocation: TokenAmount;
734
- /**
735
- * bytes32 key
736
- * @deprecated Schema is subject to change, not yet stable
737
- */
663
+ /** bytes32 key */
738
664
  capId: Scalars['Hex']['output'];
739
- /**
740
- * Market
741
- * @deprecated Schema is subject to change, not yet stable
742
- */
665
+ /** Market */
743
666
  market: MorphoMarket;
744
- /**
745
- * Relative cap (wad)
746
- * @deprecated Schema is subject to change, not yet stable
747
- */
667
+ /** Relative cap (wad) */
748
668
  relativeCap: OnchainAmount;
749
669
  };
750
670
  /** Merkl reward earned by an account through protocol participation */
751
- type MerklAccountReward = {
671
+ export type MerklAccountReward = {
752
672
  __typename?: 'MerklAccountReward';
753
673
  /** The amount of tokens that are currently claimable (creditedAmount - claimedAmount) */
754
674
  claimableAmount: TokenAmount;
@@ -764,14 +684,14 @@ type MerklAccountReward = {
764
684
  token: Token;
765
685
  };
766
686
  /** Type of DeFi action that generates Merkl rewards */
767
- declare enum MerklAction {
687
+ export declare enum MerklAction {
768
688
  /** Borrowing assets against collateral */
769
689
  Borrow = "Borrow",
770
690
  /** Supplying or depositing assets to earn yield */
771
691
  Lend = "Lend"
772
692
  }
773
693
  /** Input for querying Merkl rewards for a specific opportunity */
774
- type MerklRewardInput = {
694
+ export type MerklRewardInput = {
775
695
  /** The action of the opportunity (lending or borrowing) */
776
696
  action: InputMaybe<MerklAction>;
777
697
  /** The chain ID of the main protocol */
@@ -782,7 +702,7 @@ type MerklRewardInput = {
782
702
  mainProtocolId: Scalars['String']['input'];
783
703
  };
784
704
  /** Interest rate model of a Morpho market */
785
- type MorphoIrm = {
705
+ export type MorphoIrm = {
786
706
  __typename?: 'MorphoIrm';
787
707
  /** Address of the IRM contract */
788
708
  address: Scalars['Address']['output'];
@@ -794,7 +714,7 @@ type MorphoIrm = {
794
714
  targetUtilization: Scalars['Float']['output'];
795
715
  };
796
716
  /** Curve point of an IRM */
797
- type MorphoIrmCurvePoint = {
717
+ export type MorphoIrmCurvePoint = {
798
718
  __typename?: 'MorphoIrmCurvePoint';
799
719
  /** Base APY paid for borrowing from the market at this utilization */
800
720
  borrowApy: Scalars['Float']['output'];
@@ -804,7 +724,7 @@ type MorphoIrmCurvePoint = {
804
724
  utilization: Scalars['Float']['output'];
805
725
  };
806
726
  /** Morpho market */
807
- type MorphoMarket = {
727
+ export type MorphoMarket = {
808
728
  __typename?: 'MorphoMarket';
809
729
  /** APY paid for borrowing from the market (instantaneous) */
810
730
  borrowApy: Apy;
@@ -870,7 +790,7 @@ type MorphoMarket = {
870
790
  vaultAllocations: Array<MorphoVaultMarketAllocation>;
871
791
  };
872
792
  /** Filter for Morpho markets */
873
- type MorphoMarketFilter = {
793
+ export type MorphoMarketFilter = {
874
794
  /** Filter for certain chainIds */
875
795
  chainId_in: InputMaybe<Array<Scalars['ChainId']['input']>>;
876
796
  /** Filter for certain market addresses */
@@ -879,7 +799,7 @@ type MorphoMarketFilter = {
879
799
  whitelisted: InputMaybe<Scalars['Boolean']['input']>;
880
800
  };
881
801
  /** Historical data for a Morpho market */
882
- type MorphoMarketHistorical = {
802
+ export type MorphoMarketHistorical = {
883
803
  __typename?: 'MorphoMarketHistorical';
884
804
  /** Historical data with daily resolution. Only provides the 200 most recent entries (i.e up to 200 hours of data). */
885
805
  daily: Array<MorphoMarketHistoricalEntry>;
@@ -892,7 +812,7 @@ type MorphoMarketHistorical = {
892
812
  weekly: Array<MorphoMarketHistoricalEntry>;
893
813
  };
894
814
  /** Historical entry for a Morpho market */
895
- type MorphoMarketHistoricalEntry = {
815
+ export type MorphoMarketHistoricalEntry = {
896
816
  __typename?: 'MorphoMarketHistoricalEntry';
897
817
  /** APY paid for borrowing from the market smoothed over 1 day. Note that doesn't yet include rewards */
898
818
  borrowApy1d: Apy;
@@ -926,7 +846,7 @@ type MorphoMarketHistoricalEntry = {
926
846
  totalSupplied: TokenAmount;
927
847
  };
928
848
  /** Page of Morpho markets */
929
- type MorphoMarketPage = {
849
+ export type MorphoMarketPage = {
930
850
  __typename?: 'MorphoMarketPage';
931
851
  /** The items in the page */
932
852
  items: Array<Maybe<MorphoMarket>>;
@@ -936,7 +856,7 @@ type MorphoMarketPage = {
936
856
  totalCount: Scalars['Int']['output'];
937
857
  };
938
858
  /** Position of an account in a Morpho market */
939
- type MorphoMarketPosition = {
859
+ export type MorphoMarketPosition = {
940
860
  __typename?: 'MorphoMarketPosition';
941
861
  /** Address of the account */
942
862
  accountAddress: Scalars['Address']['output'];
@@ -948,6 +868,10 @@ type MorphoMarketPosition = {
948
868
  collateralAmount: Maybe<TokenAmount>;
949
869
  /** Health factor of the account, null iff the market is idle or its oracle is misconfigured */
950
870
  healthFactor: Maybe<OnchainAmount>;
871
+ /** Leverage multiple of the looping position: 1 + borrow / equity. 1 if no borrow. */
872
+ loopingLeverage: Scalars['Float']['output'];
873
+ /** Net APY of the looping position: (collateralIntrinsic - borrowCost) / equity. 0 if no borrow. */
874
+ loopingNetApy: Scalars['Float']['output'];
951
875
  /** LTV of the account, null iff the market is idle or its oracle is misconfigured */
952
876
  ltv: Maybe<OnchainAmount>;
953
877
  /** Market the position is in */
@@ -961,7 +885,7 @@ type MorphoMarketPosition = {
961
885
  /** Holding of loan assets in the account's wallet */
962
886
  walletLoanAssetHolding: TokenHolding;
963
887
  };
964
- type MorphoMarketPositionFilter = {
888
+ export type MorphoMarketPositionFilter = {
965
889
  /** Filter for positions for certain accounts */
966
890
  accountAddress_in: Array<Scalars['Address']['input']>;
967
891
  /** Filter for positions on certain chains */
@@ -972,7 +896,7 @@ type MorphoMarketPositionFilter = {
972
896
  whitelisted: InputMaybe<Scalars['Boolean']['input']>;
973
897
  };
974
898
  /** Page of Morpho market positions */
975
- type MorphoMarketPositionPage = {
899
+ export type MorphoMarketPositionPage = {
976
900
  __typename?: 'MorphoMarketPositionPage';
977
901
  /** The items in the page */
978
902
  items: Array<Maybe<MorphoMarketPosition>>;
@@ -981,8 +905,8 @@ type MorphoMarketPositionPage = {
981
905
  /** Total number of items */
982
906
  totalCount: Scalars['Int']['output'];
983
907
  };
984
- /** Morpho vault */
985
- type MorphoVault = Erc20 & Erc4626Vault & {
908
+ /** Morpho Vault V1. For Morpho Vault V2, see `MorphoVaultV2`, or query across protocols via the `erc4626Vaults` query. */
909
+ export type MorphoVault = Erc20 & Erc4626Vault & {
986
910
  __typename?: 'MorphoVault';
987
911
  /** The contract address of the vault */
988
912
  address: Scalars['Address']['output'];
@@ -998,6 +922,8 @@ type MorphoVault = Erc20 & Erc4626Vault & {
998
922
  curatorAddress: Scalars['Address']['output'];
999
923
  /** The number of decimal places the vault shares use */
1000
924
  decimals: Scalars['Int']['output'];
925
+ /** Vault deployment timestamp in unix seconds */
926
+ deploymentTimestamp: Maybe<Scalars['Int']['output']>;
1001
927
  /** Fee recipient address of the vault, this is the address that receives the performance fee */
1002
928
  feeRecipientAddress: Maybe<Scalars['Address']['output']>;
1003
929
  /** Guardian address of the vault, this is the address that can make emergency changes to the vault */
@@ -1022,7 +948,7 @@ type MorphoVault = Erc20 & Erc4626Vault & {
1022
948
  riskAssessment: RiskAssessment;
1023
949
  /**
1024
950
  * APY earned when supplying to the vault
1025
- * @deprecated Use apy(timeframe: one_day) instead
951
+ * @deprecated Use apy(timeframe: instant) instead
1026
952
  */
1027
953
  supplyApy: Apy;
1028
954
  /**
@@ -1042,6 +968,8 @@ type MorphoVault = Erc20 & Erc4626Vault & {
1042
968
  supplyApy30d: Apy;
1043
969
  /** The symbol of the vault shares */
1044
970
  symbol: Scalars['String']['output'];
971
+ /** Timelock duration in seconds for vault configuration changes */
972
+ timelockDuration: Scalars['BigInt']['output'];
1045
973
  /** Total amount of the underlying assets supplied to the vault */
1046
974
  totalAssets: TokenAmount;
1047
975
  /** Total amount of the idle underlying assets (not being borrowed from the vault) */
@@ -1056,13 +984,15 @@ type MorphoVault = Erc20 & Erc4626Vault & {
1056
984
  * @deprecated Use address instead
1057
985
  */
1058
986
  vaultAddress: Scalars['Address']['output'];
987
+ /** Yield information, null for vaults (use apy field instead) */
988
+ yield: Maybe<YieldInfo>;
1059
989
  };
1060
- /** Morpho vault */
1061
- type MorphoVaultApyArgs = {
990
+ /** Morpho Vault V1. For Morpho Vault V2, see `MorphoVaultV2`, or query across protocols via the `erc4626Vaults` query. */
991
+ export type MorphoVaultApyArgs = {
1062
992
  timeframe: ApyTimeframe;
1063
993
  };
1064
994
  /** Filter for Morpho vaults */
1065
- type MorphoVaultFilter = {
995
+ export type MorphoVaultFilter = {
1066
996
  /** Filter for certain chainIds */
1067
997
  chainId_in: InputMaybe<Array<Scalars['ChainId']['input']>>;
1068
998
  /** Filter for certain vault addresses */
@@ -1071,7 +1001,7 @@ type MorphoVaultFilter = {
1071
1001
  whitelisted: InputMaybe<Scalars['Boolean']['input']>;
1072
1002
  };
1073
1003
  /** Historical data for a Morpho vault */
1074
- type MorphoVaultHistorical = {
1004
+ export type MorphoVaultHistorical = Erc4626VaultHistorical & {
1075
1005
  __typename?: 'MorphoVaultHistorical';
1076
1006
  /** Historical data with daily resolution. Only provides the 200 most recent entries (i.e up to 200 hours of data). */
1077
1007
  daily: Array<MorphoVaultHistoricalEntry>;
@@ -1080,11 +1010,13 @@ type MorphoVaultHistorical = {
1080
1010
  * @deprecated Hourly data is currently not supported, and will return an empty array. Use daily or weekly instead.
1081
1011
  */
1082
1012
  hourly: Array<MorphoVaultHistoricalEntry>;
1013
+ /** Monthly returns (up to 24 most recent complete calendar months). Null if unavailable. */
1014
+ returns: Maybe<Array<TimeSeriesPoint>>;
1083
1015
  /** Historical data with weekly resolution. Only provides the 200 most recent entries (i.e up to 200 hours of data). */
1084
1016
  weekly: Array<MorphoVaultHistoricalEntry>;
1085
1017
  };
1086
1018
  /** Historical entry for a Morpho vault */
1087
- type MorphoVaultHistoricalEntry = {
1019
+ export type MorphoVaultHistoricalEntry = {
1088
1020
  __typename?: 'MorphoVaultHistoricalEntry';
1089
1021
  /** The timestamp of the data rounded down to the nearest resolution (ex. hour, day, week). */
1090
1022
  bucketTimestamp: Scalars['Int']['output'];
@@ -1100,7 +1032,7 @@ type MorphoVaultHistoricalEntry = {
1100
1032
  totalSupplied: TokenAmount;
1101
1033
  };
1102
1034
  /** Allocation of a vault to a market */
1103
- type MorphoVaultMarketAllocation = {
1035
+ export type MorphoVaultMarketAllocation = {
1104
1036
  __typename?: 'MorphoVaultMarketAllocation';
1105
1037
  /** Whether the vault has enabled this market for allocations */
1106
1038
  enabled: Scalars['Boolean']['output'];
@@ -1118,7 +1050,7 @@ type MorphoVaultMarketAllocation = {
1118
1050
  vaultSupplyShare: Scalars['Float']['output'];
1119
1051
  };
1120
1052
  /** Metadata for a Morpho vault */
1121
- type MorphoVaultMetadata = {
1053
+ export type MorphoVaultMetadata = {
1122
1054
  __typename?: 'MorphoVaultMetadata';
1123
1055
  /** Curator of the vault */
1124
1056
  curator: Maybe<Curator>;
@@ -1138,7 +1070,7 @@ type MorphoVaultMetadata = {
1138
1070
  image: Maybe<Scalars['String']['output']>;
1139
1071
  };
1140
1072
  /** Page of Morpho vaults */
1141
- type MorphoVaultPage = {
1073
+ export type MorphoVaultPage = {
1142
1074
  __typename?: 'MorphoVaultPage';
1143
1075
  /** The items in the page */
1144
1076
  items: Array<Maybe<MorphoVault>>;
@@ -1148,7 +1080,7 @@ type MorphoVaultPage = {
1148
1080
  totalCount: Scalars['Int']['output'];
1149
1081
  };
1150
1082
  /** Position of an account in a Morpho vault */
1151
- type MorphoVaultPosition = {
1083
+ export type MorphoVaultPosition = {
1152
1084
  __typename?: 'MorphoVaultPosition';
1153
1085
  /** Address of the account */
1154
1086
  accountAddress: Scalars['Address']['output'];
@@ -1161,7 +1093,7 @@ type MorphoVaultPosition = {
1161
1093
  /** Holding of the underlying asset in the accounts wallet */
1162
1094
  walletUnderlyingAssetHolding: Maybe<TokenHolding>;
1163
1095
  };
1164
- type MorphoVaultPositionFilter = {
1096
+ export type MorphoVaultPositionFilter = {
1165
1097
  /** Filter for positions for certain accounts */
1166
1098
  accountAddress_in: Array<Scalars['Address']['input']>;
1167
1099
  /** Filter for positions on certain chains */
@@ -1171,7 +1103,7 @@ type MorphoVaultPositionFilter = {
1171
1103
  /** Filter for positions in whitelisted vaults only */
1172
1104
  whitelisted: InputMaybe<Scalars['Boolean']['input']>;
1173
1105
  };
1174
- type MorphoVaultPositionPage = {
1106
+ export type MorphoVaultPositionPage = {
1175
1107
  __typename?: 'MorphoVaultPositionPage';
1176
1108
  /** The items in the page */
1177
1109
  items: Array<Maybe<MorphoVaultPosition>>;
@@ -1180,119 +1112,74 @@ type MorphoVaultPositionPage = {
1180
1112
  /** Total number of items */
1181
1113
  totalCount: Scalars['Int']['output'];
1182
1114
  };
1183
- type MorphoVaultV2 = Erc20 & Erc4626Vault & {
1115
+ export type MorphoVaultV2 = Erc20 & Erc4626Vault & {
1184
1116
  __typename?: 'MorphoVaultV2';
1185
1117
  /**
1186
1118
  * Adapters this vault is allocating to
1187
- * @deprecated Schema is subject to change, not yet stable
1119
+ * @deprecated Use allocations instead
1188
1120
  */
1189
1121
  adapters: Array<Adapter>;
1190
1122
  /** The contract address of the vault */
1191
1123
  address: Scalars['Address']['output'];
1192
- /**
1193
- * Allocator address of the vault, null if and only if there are indexer issues
1194
- * @deprecated Schema is subject to change, not yet stable
1195
- */
1124
+ /** Allocations of the vault to adapters. Returns Erc4626VaultAdapter for vault-type adapters and MarketV1Adapter for market adapters. */
1125
+ allocations: Array<Adapter>;
1126
+ /** Allocator address of the vault, null if and only if there are indexer issues */
1196
1127
  allocatorAddresses: Maybe<Array<Scalars['Address']['output']>>;
1197
1128
  /** APY earned when supplying to the vault, computed by annualized share price change over the given timeframe */
1198
1129
  apy: Apy;
1199
1130
  /** Underlying asset of the vault */
1200
1131
  asset: Token;
1201
- /**
1202
- * Caps that are set for the vault. null if and only if there are indexer issues
1203
- * @deprecated Schema is subject to change, not yet stable
1204
- */
1132
+ /** Caps that are set for the vault. null if and only if there are indexer issues */
1205
1133
  caps: Maybe<Array<Cap>>;
1206
1134
  /** The category of the vault's underlying asset */
1207
1135
  category: Maybe<TokenCategory>;
1208
1136
  /** The chain this vault is deployed on */
1209
1137
  chain: Chain;
1210
- /**
1211
- * Curator address of the vault, this is the address that can modify the vaults allocations
1212
- * @deprecated Schema is subject to change, not yet stable
1213
- */
1138
+ /** Curator address of the vault, this is the address that can modify the vaults allocations */
1214
1139
  curatorAddress: Scalars['Address']['output'];
1215
1140
  /** The number of decimal places the vault shares use */
1216
1141
  decimals: Scalars['Int']['output'];
1142
+ /** Vault deployment timestamp in unix seconds */
1143
+ deploymentTimestamp: Maybe<Scalars['Int']['output']>;
1217
1144
  /** Historical data for the vault, will be null if historical data is not supported for this chain */
1218
1145
  historical: Maybe<MorphoVaultHistorical>;
1219
1146
  /** URL to the vault's image, null if not available */
1220
1147
  icon: Maybe<Scalars['URL']['output']>;
1221
- /**
1222
- * Total amount of idle underlying assets held by the vault (not allocated to an adapter)
1223
- * @deprecated Schema is subject to change, not yet stable
1224
- */
1148
+ /** Total amount of idle underlying assets held by the vault (not allocated to an adapter) */
1225
1149
  idleAssets: TokenAmount;
1226
- /**
1227
- * Liquidity adapter address of the vault. Zero address means there is no liquidity adapter
1228
- * @deprecated Schema is subject to change, not yet stable
1229
- */
1150
+ /** Liquidity adapter address of the vault. Zero address means there is no liquidity adapter */
1230
1151
  liquidityAdapterAddress: Scalars['Address']['output'];
1231
- /**
1232
- * Total amount of underlying assets that be withdrawn from the vault (idle + liquidity available from liquidity adapter)
1233
- * @deprecated Schema is subject to change, not yet stable
1234
- */
1152
+ /** Total amount of underlying assets that be withdrawn from the vault (idle + liquidity available from liquidity adapter) */
1235
1153
  liquidityAssets: TokenAmount;
1236
- /**
1237
- * Management fee of the vault, this is the fee that is taken from the vaults profits
1238
- * @deprecated Schema is subject to change, not yet stable
1239
- */
1154
+ /** Management fee of the vault, this is the fee that is taken from the vaults profits */
1240
1155
  managementFee: OnchainAmount;
1241
- /**
1242
- * Management fee recipient address of the vault, this is the address that receives the management fee
1243
- * @deprecated Schema is subject to change, not yet stable
1244
- */
1156
+ /** Management fee recipient address of the vault, this is the address that receives the management fee */
1245
1157
  managementFeeRecipientAddress: Scalars['Address']['output'];
1246
- /**
1247
- * Metadata for the vault
1248
- * @deprecated Schema is subject to change, not yet stable
1249
- */
1158
+ /** Metadata for the vault */
1250
1159
  metadata: Maybe<MorphoVaultMetadata>;
1251
1160
  /** The full name of the vault */
1252
1161
  name: Scalars['String']['output'];
1253
- /**
1254
- * Owner address of the vault, this is the address that can modify the vaults configuration
1255
- * @deprecated Schema is subject to change, not yet stable
1256
- */
1162
+ /** Net asset value - sum of all adapters' real assets */
1163
+ nav: TokenAmount;
1164
+ /** Owner address of the vault, this is the address that can modify the vaults configuration */
1257
1165
  ownerAddress: Scalars['Address']['output'];
1258
- /**
1259
- * Performance fee of the vault, this is the fee that is taken from the vaults profits
1260
- * @deprecated Schema is subject to change, not yet stable
1261
- */
1166
+ /** Performance fee of the vault, this is the fee that is taken from the vaults profits */
1262
1167
  performanceFee: OnchainAmount;
1263
- /**
1264
- * Performance fee recipient address of the vault, this is the address that receives the performance fee
1265
- * @deprecated Schema is subject to change, not yet stable
1266
- */
1168
+ /** Performance fee recipient address of the vault, this is the address that receives the performance fee */
1267
1169
  performanceFeeRecipientAddress: Scalars['Address']['output'];
1268
1170
  /** Current price of vault shares in USD, null if price data unavailable */
1269
1171
  priceUsd: Maybe<Scalars['Float']['output']>;
1270
- /**
1271
- * Receive assets gate
1272
- * @deprecated Schema is subject to change, not yet stable
1273
- */
1172
+ /** Receive assets gate */
1274
1173
  receiveAssetsGateAddress: Scalars['Address']['output'];
1275
- /**
1276
- * Receive shares gate
1277
- * @deprecated Schema is subject to change, not yet stable
1278
- */
1174
+ /** Receive shares gate */
1279
1175
  receiveSharesGateAddress: Scalars['Address']['output'];
1280
1176
  /** Risk assessment for the vault */
1281
1177
  riskAssessment: RiskAssessment;
1282
- /**
1283
- * Send assets gate
1284
- * @deprecated Schema is subject to change, not yet stable
1285
- */
1178
+ /** Send assets gate */
1286
1179
  sendAssetsGateAddress: Scalars['Address']['output'];
1287
- /**
1288
- * Send shares gate
1289
- * @deprecated Schema is subject to change, not yet stable
1290
- */
1180
+ /** Send shares gate */
1291
1181
  sendSharesGateAddress: Scalars['Address']['output'];
1292
- /**
1293
- * Sentinel address of the vault, null if and only if there are indexer issues
1294
- * @deprecated Schema is subject to change, not yet stable
1295
- */
1182
+ /** Sentinel address of the vault, null if and only if there are indexer issues */
1296
1183
  sentinelAddresses: Maybe<Array<Scalars['Address']['output']>>;
1297
1184
  /** The symbol of the vault shares */
1298
1185
  symbol: Scalars['String']['output'];
@@ -1303,12 +1190,14 @@ type MorphoVaultV2 = Erc20 & Erc4626Vault & {
1303
1190
  * @deprecated Use address instead
1304
1191
  */
1305
1192
  vaultAddress: Scalars['Address']['output'];
1193
+ /** Yield information, null for vaults (use apy field instead) */
1194
+ yield: Maybe<YieldInfo>;
1306
1195
  };
1307
- type MorphoVaultV2ApyArgs = {
1196
+ export type MorphoVaultV2ApyArgs = {
1308
1197
  timeframe: ApyTimeframe;
1309
1198
  };
1310
1199
  /** An arbitrary onchain amount */
1311
- type OnchainAmount = {
1200
+ export type OnchainAmount = {
1312
1201
  __typename?: 'OnchainAmount';
1313
1202
  /** The formatted representation of the amount, this is the raw value scaled by its decimals (formatted = raw / 10^decimals) */
1314
1203
  formatted: Scalars['String']['output'];
@@ -1316,7 +1205,7 @@ type OnchainAmount = {
1316
1205
  raw: Scalars['BigInt']['output'];
1317
1206
  };
1318
1207
  /** Pagination information for a page of items */
1319
- type PageInfo = {
1208
+ export type PageInfo = {
1320
1209
  __typename?: 'PageInfo';
1321
1210
  /** The cursor to the last item in the current page, this can be used for the queries `after` parameter to get the next page */
1322
1211
  endCursor: Maybe<Scalars['String']['output']>;
@@ -1328,14 +1217,14 @@ type PageInfo = {
1328
1217
  startCursor: Maybe<Scalars['String']['output']>;
1329
1218
  };
1330
1219
  /** DeFi protocol information */
1331
- type Protocol = {
1220
+ export type Protocol = {
1332
1221
  __typename?: 'Protocol';
1333
1222
  /** Icon of the protocol */
1334
1223
  icon: Scalars['String']['output'];
1335
1224
  /** Name of the protocol */
1336
1225
  name: Scalars['String']['output'];
1337
1226
  };
1338
- type Query = {
1227
+ export type Query = {
1339
1228
  __typename?: 'Query';
1340
1229
  aeraVaultPositions: AeraVaultPositionPage;
1341
1230
  aeraVaults: AeraVaultPage;
@@ -1357,94 +1246,99 @@ type Query = {
1357
1246
  morphoMarkets: MorphoMarketPage;
1358
1247
  /** Query for Morpho vault positions */
1359
1248
  morphoVaultPositions: MorphoVaultPositionPage;
1360
- /** Query for Morpho vaults */
1361
- morphoVaults: MorphoVaultPage;
1362
1249
  /**
1363
- * Get aggregated TVL data for all Steakhouse-curated vaults
1364
- * @deprecated Schema is subject to change, not yet stable
1250
+ * Query for Morpho Vault V1. For Morpho Vault V2 (and other protocols), use the `erc4626Vaults` query.
1251
+ * @deprecated Only returns Morpho Vault V1. Use the `erc4626Vaults` query instead, which supports Morpho Vault V2 and other DeFi protocols.
1365
1252
  */
1253
+ morphoVaults: MorphoVaultPage;
1254
+ /** Get summary statistics for Steakhouse-curated vaults */
1255
+ steakhouseStats: SteakhouseStats;
1256
+ /** @deprecated Use steakhouseStats.tvl instead */
1366
1257
  steakhouseTvl: SteakhouseTvl;
1367
1258
  /** Query for the token balance for a specific account and token */
1368
1259
  tokenHoldings: Array<Maybe<TokenHolding>>;
1369
1260
  /** Query for tokens */
1370
1261
  tokens: Array<Maybe<Token>>;
1371
- /** Query for vaults across multiple DeFi protocols */
1262
+ /**
1263
+ * Query for vaults across multiple DeFi protocols
1264
+ * @deprecated Use the `erc4626Vaults` query instead.
1265
+ */
1372
1266
  vaults: Array<Maybe<Vault>>;
1373
1267
  };
1374
- type QueryAeraVaultPositionsArgs = {
1268
+ export type QueryAeraVaultPositionsArgs = {
1375
1269
  after: InputMaybe<Scalars['String']['input']>;
1376
1270
  before: InputMaybe<Scalars['String']['input']>;
1377
1271
  limit: InputMaybe<Scalars['Int']['input']>;
1378
1272
  where: AeraVaultPositionFilter;
1379
1273
  };
1380
- type QueryAeraVaultsArgs = {
1274
+ export type QueryAeraVaultsArgs = {
1381
1275
  after: InputMaybe<Scalars['String']['input']>;
1382
1276
  before: InputMaybe<Scalars['String']['input']>;
1383
1277
  limit: InputMaybe<Scalars['Int']['input']>;
1384
1278
  where: InputMaybe<AeraVaultFilter>;
1385
1279
  };
1386
- type QueryChainsArgs = {
1280
+ export type QueryChainsArgs = {
1387
1281
  where: InputMaybe<ChainFilter>;
1388
1282
  };
1389
- type QueryErc4626VaultPositionsArgs = {
1283
+ export type QueryErc4626VaultPositionsArgs = {
1390
1284
  after: InputMaybe<Scalars['String']['input']>;
1391
1285
  before: InputMaybe<Scalars['String']['input']>;
1392
1286
  limit: InputMaybe<Scalars['Int']['input']>;
1393
1287
  where: InputMaybe<Erc4626VaultPositionFilter>;
1394
1288
  };
1395
- type QueryErc4626VaultsArgs = {
1289
+ export type QueryErc4626VaultsArgs = {
1396
1290
  after: InputMaybe<Scalars['String']['input']>;
1397
1291
  before: InputMaybe<Scalars['String']['input']>;
1398
1292
  limit: InputMaybe<Scalars['Int']['input']>;
1399
1293
  where: InputMaybe<Erc4626VaultFilter>;
1400
1294
  };
1401
- type QueryIdentitiesArgs = {
1295
+ export type QueryIdentitiesArgs = {
1402
1296
  addresses: Array<Scalars['Address']['input']>;
1403
1297
  resolverOrder: InputMaybe<Array<IdentityResolver>>;
1404
1298
  };
1405
- type QueryIdentityArgs = {
1299
+ export type QueryIdentityArgs = {
1406
1300
  address: Scalars['Address']['input'];
1407
1301
  resolverOrder: InputMaybe<Array<IdentityResolver>>;
1408
1302
  };
1409
- type QueryMerklAccountRewardsArgs = {
1303
+ export type QueryMerklAccountRewardsArgs = {
1410
1304
  accountAddress: Scalars['Address']['input'];
1411
1305
  chainId: Scalars['ChainId']['input'];
1412
1306
  };
1413
- type QueryMorphoMarketPositionsArgs = {
1307
+ export type QueryMorphoMarketPositionsArgs = {
1414
1308
  after: InputMaybe<Scalars['String']['input']>;
1415
1309
  before: InputMaybe<Scalars['String']['input']>;
1416
1310
  limit: InputMaybe<Scalars['Int']['input']>;
1417
1311
  where: MorphoMarketPositionFilter;
1418
1312
  };
1419
- type QueryMorphoMarketsArgs = {
1313
+ export type QueryMorphoMarketsArgs = {
1420
1314
  after: InputMaybe<Scalars['String']['input']>;
1421
1315
  before: InputMaybe<Scalars['String']['input']>;
1422
1316
  limit: InputMaybe<Scalars['Int']['input']>;
1423
1317
  where: InputMaybe<MorphoMarketFilter>;
1424
1318
  };
1425
- type QueryMorphoVaultPositionsArgs = {
1319
+ export type QueryMorphoVaultPositionsArgs = {
1426
1320
  after: InputMaybe<Scalars['String']['input']>;
1427
1321
  before: InputMaybe<Scalars['String']['input']>;
1428
1322
  limit: InputMaybe<Scalars['Int']['input']>;
1429
1323
  where: MorphoVaultPositionFilter;
1430
1324
  };
1431
- type QueryMorphoVaultsArgs = {
1325
+ export type QueryMorphoVaultsArgs = {
1432
1326
  after: InputMaybe<Scalars['String']['input']>;
1433
1327
  before: InputMaybe<Scalars['String']['input']>;
1434
1328
  limit: InputMaybe<Scalars['Int']['input']>;
1435
1329
  where: InputMaybe<MorphoVaultFilter>;
1436
1330
  };
1437
- type QueryTokenHoldingsArgs = {
1331
+ export type QueryTokenHoldingsArgs = {
1438
1332
  inputs: Array<TokenHoldingInput>;
1439
1333
  };
1440
- type QueryTokensArgs = {
1334
+ export type QueryTokensArgs = {
1441
1335
  inputs: Array<TokenInput>;
1442
1336
  };
1443
- type QueryVaultsArgs = {
1337
+ export type QueryVaultsArgs = {
1444
1338
  inputs: Array<VaultInput>;
1445
1339
  };
1446
1340
  /** Rewards incentive */
1447
- type Reward = {
1341
+ export type Reward = {
1448
1342
  __typename?: 'Reward';
1449
1343
  /** The Annual Percentage Rate (APR) for this reward token. Will always be positive. */
1450
1344
  apr: Scalars['Float']['output'];
@@ -1452,43 +1346,70 @@ type Reward = {
1452
1346
  asset: Token;
1453
1347
  };
1454
1348
  /** Risk assessment */
1455
- type RiskAssessment = {
1349
+ export type RiskAssessment = {
1456
1350
  __typename?: 'RiskAssessment';
1457
1351
  /** Steakhouse risk assessment */
1458
1352
  steakhouse: Maybe<SteakhouseRiskAssessment>;
1459
1353
  };
1460
1354
  /** Steakhouse risk assessment */
1461
- type SteakhouseRiskAssessment = {
1355
+ export type SteakhouseRiskAssessment = {
1462
1356
  __typename?: 'SteakhouseRiskAssessment';
1463
1357
  /** Rating of the risk assessment */
1464
1358
  rating: Scalars['String']['output'];
1465
1359
  /** Score of the risk assessment */
1466
1360
  score: Scalars['Float']['output'];
1467
1361
  };
1362
+ /** Summary statistics for Steakhouse */
1363
+ export type SteakhouseStats = {
1364
+ __typename?: 'SteakhouseStats';
1365
+ /** Current real-time TVL snapshot */
1366
+ tvl: SteakhouseTvl;
1367
+ /** Number of unique addresses that have deposited into any Steakhouse vault */
1368
+ uniqueDepositors: Maybe<Scalars['Int']['output']>;
1369
+ };
1468
1370
  /** Total Value Locked across Steakhouse-curated vaults with multi-dimensional breakdowns */
1469
- type SteakhouseTvl = {
1371
+ export type SteakhouseTvl = {
1470
1372
  __typename?: 'SteakhouseTvl';
1471
- /** TVL broken down by asset category */
1373
+ /**
1374
+ * TVL broken down by asset category
1375
+ * @deprecated Use current.byAssetCategory
1376
+ */
1472
1377
  byAssetCategory: Array<SteakhouseTvlByAssetCategory>;
1473
- /** TVL broken down by blockchain */
1378
+ /**
1379
+ * TVL broken down by blockchain
1380
+ * @deprecated Use current.byChain
1381
+ */
1474
1382
  byChain: Array<SteakhouseTvlByChain>;
1475
- /** TVL broken down by protocol version */
1383
+ /**
1384
+ * TVL broken down by protocol version
1385
+ * @deprecated Use current.byProtocol
1386
+ */
1476
1387
  byProtocol: Array<SteakhouseTvlByProtocol>;
1477
- /** Timestamp when this data was computed (Unix seconds) */
1388
+ /**
1389
+ * Timestamp when this data was computed (Unix seconds)
1390
+ * @deprecated Use current.timestamp
1391
+ */
1478
1392
  computedAt: Scalars['Int']['output'];
1479
- /** Total TVL in USD across all vaults */
1393
+ /** Current real-time TVL snapshot */
1394
+ current: SteakhouseTvlSnapshot;
1395
+ /** Daily historical TVL snapshots (last 365 days, oldest first) */
1396
+ historical: Array<SteakhouseTvlSnapshot>;
1397
+ /**
1398
+ * Total TVL in USD across all vaults
1399
+ * @deprecated Use current.totalUsd
1400
+ */
1480
1401
  totalUsd: Scalars['Float']['output'];
1481
1402
  };
1482
1403
  /** TVL breakdown by asset category */
1483
- type SteakhouseTvlByAssetCategory = {
1404
+ export type SteakhouseTvlByAssetCategory = {
1484
1405
  __typename?: 'SteakhouseTvlByAssetCategory';
1485
- /** Asset category (Stable, Eth, Btc) */
1486
- category: TokenCategory;
1406
+ /** Asset category (Stable, Eth, Btc) — null for uncategorized */
1407
+ category: Maybe<TokenCategory>;
1487
1408
  /** TVL in USD for this category */
1488
1409
  tvlUsd: Scalars['Float']['output'];
1489
1410
  };
1490
1411
  /** TVL breakdown by blockchain */
1491
- type SteakhouseTvlByChain = {
1412
+ export type SteakhouseTvlByChain = {
1492
1413
  __typename?: 'SteakhouseTvlByChain';
1493
1414
  /** The blockchain */
1494
1415
  chain: Chain;
@@ -1496,15 +1417,37 @@ type SteakhouseTvlByChain = {
1496
1417
  tvlUsd: Scalars['Float']['output'];
1497
1418
  };
1498
1419
  /** TVL breakdown by protocol version */
1499
- type SteakhouseTvlByProtocol = {
1420
+ export type SteakhouseTvlByProtocol = {
1500
1421
  __typename?: 'SteakhouseTvlByProtocol';
1501
1422
  /** Protocol identifier (morpho_v1 or morpho_v2) */
1502
1423
  protocol: Erc4626VaultProtocol;
1503
1424
  /** TVL in USD for this protocol */
1504
1425
  tvlUsd: Scalars['Float']['output'];
1505
1426
  };
1427
+ /** A TVL snapshot at a point in time with multi-dimensional breakdowns */
1428
+ export type SteakhouseTvlSnapshot = {
1429
+ __typename?: 'SteakhouseTvlSnapshot';
1430
+ /** TVL by asset category */
1431
+ byAssetCategory: Array<SteakhouseTvlByAssetCategory>;
1432
+ /** TVL by blockchain */
1433
+ byChain: Array<SteakhouseTvlByChain>;
1434
+ /** TVL by protocol */
1435
+ byProtocol: Array<SteakhouseTvlByProtocol>;
1436
+ /** Unix timestamp (seconds) */
1437
+ timestamp: Scalars['Int']['output'];
1438
+ /** Total TVL in USD */
1439
+ totalUsd: Scalars['Float']['output'];
1440
+ };
1441
+ /** A point in a time series */
1442
+ export type TimeSeriesPoint = {
1443
+ __typename?: 'TimeSeriesPoint';
1444
+ /** Unix timestamp (seconds) */
1445
+ timestamp: Scalars['Int']['output'];
1446
+ /** Value at this timestamp */
1447
+ value: Scalars['Float']['output'];
1448
+ };
1506
1449
  /** ERC-20 token with metadata and pricing information */
1507
- type Token = Erc20 & {
1450
+ export type Token = Erc20 & {
1508
1451
  __typename?: 'Token';
1509
1452
  /** The contract address of the token */
1510
1453
  address: Scalars['Address']['output'];
@@ -1524,9 +1467,11 @@ type Token = Erc20 & {
1524
1467
  riskAssessment: RiskAssessment;
1525
1468
  /** The symbol of the token (e.g., 'ETH') */
1526
1469
  symbol: Scalars['String']['output'];
1470
+ /** Yield information for the token, null if the token is not yield-bearing or unsupported */
1471
+ yield: Maybe<YieldInfo>;
1527
1472
  };
1528
1473
  /** An amount for an onchain token */
1529
- type TokenAmount = {
1474
+ export type TokenAmount = {
1530
1475
  __typename?: 'TokenAmount';
1531
1476
  /** The formatted representation of the amount, this is the raw value scaled by the token's decimals (formatted = raw / 10^decimals) */
1532
1477
  formatted: Scalars['String']['output'];
@@ -1536,7 +1481,7 @@ type TokenAmount = {
1536
1481
  usd: Maybe<Scalars['Float']['output']>;
1537
1482
  };
1538
1483
  /** The category for a token which can be used to easily group and filter */
1539
- declare enum TokenCategory {
1484
+ export declare enum TokenCategory {
1540
1485
  /** Bitcoin or Bitcoin derivative (e.g., WBTC, cbBTC) */
1541
1486
  Btc = "Btc",
1542
1487
  /** Ether or Ether derivative (e.g., WETH, stETH) */
@@ -1545,7 +1490,7 @@ declare enum TokenCategory {
1545
1490
  Stable = "Stable"
1546
1491
  }
1547
1492
  /** Token balance held by a specific account */
1548
- type TokenHolding = {
1493
+ export type TokenHolding = {
1549
1494
  __typename?: 'TokenHolding';
1550
1495
  /** The address of the account holding the token */
1551
1496
  accountAddress: Scalars['Address']['output'];
@@ -1555,7 +1500,7 @@ type TokenHolding = {
1555
1500
  token: Erc20;
1556
1501
  };
1557
1502
  /** Input for querying a token holding */
1558
- type TokenHoldingInput = {
1503
+ export type TokenHoldingInput = {
1559
1504
  /** The address of the account holding the token */
1560
1505
  accountAddress: Scalars['Address']['input'];
1561
1506
  /** The chain ID (e.g., 1 for Ethereum mainnet) */
@@ -1564,57 +1509,62 @@ type TokenHoldingInput = {
1564
1509
  tokenAddress: Scalars['Address']['input'];
1565
1510
  };
1566
1511
  /** Input for batch token queries, specifying chain and contract address pairs. */
1567
- type TokenInput = {
1512
+ export type TokenInput = {
1568
1513
  /** The chain ID (e.g., 1 for Ethereum mainnet) */
1569
1514
  chainId: Scalars['ChainId']['input'];
1570
1515
  /** The token contract address */
1571
1516
  tokenAddress: Scalars['Address']['input'];
1572
1517
  };
1573
- type UnknownAdapter = Adapter & {
1518
+ export type UnknownAdapter = Adapter & {
1574
1519
  __typename?: 'UnknownAdapter';
1575
- /**
1576
- * Address of the adapter
1577
- * @deprecated Schema is subject to change, not yet stable
1578
- */
1520
+ /** Address of the adapter */
1579
1521
  adapterAddress: Scalars['Address']['output'];
1580
- /**
1581
- * Cap for the adapter
1582
- * @deprecated Schema is subject to change, not yet stable
1583
- */
1522
+ /** Cap for the adapter */
1584
1523
  adapterCap: Maybe<AdapterCap>;
1585
- /**
1586
- * Name of the adapter
1587
- * @deprecated Schema is subject to change, not yet stable
1588
- */
1524
+ /** Instantaneous APY earned by this adapter's allocation (before vault-level fees) */
1525
+ instantApy: Scalars['Float']['output'];
1526
+ /** Name of the adapter */
1589
1527
  name: Maybe<Scalars['String']['output']>;
1590
1528
  /** Risk assessment for the adapter */
1591
1529
  riskAssessment: RiskAssessment;
1592
1530
  };
1593
- type UnknownCap = Cap & {
1531
+ export type UnknownCap = Cap & {
1594
1532
  __typename?: 'UnknownCap';
1595
- /**
1596
- * Absolute cap in underlying units
1597
- * @deprecated Schema is subject to change, not yet stable
1598
- */
1533
+ /** Absolute cap in underlying units */
1599
1534
  absoluteCap: TokenAmount;
1600
- /**
1601
- * Current amount allocated under this id
1602
- * @deprecated Schema is subject to change, not yet stable
1603
- */
1535
+ /** Current amount allocated under this id */
1604
1536
  allocation: TokenAmount;
1605
- /**
1606
- * bytes32 key
1607
- * @deprecated Schema is subject to change, not yet stable
1608
- */
1537
+ /** bytes32 key */
1609
1538
  capId: Scalars['Hex']['output'];
1610
- /**
1611
- * Relative cap (wad)
1612
- * @deprecated Schema is subject to change, not yet stable
1613
- */
1539
+ /** Relative cap (wad) */
1614
1540
  relativeCap: OnchainAmount;
1615
1541
  };
1542
+ /** Yield-bearing vault aggregating deposits across DeFi protocols */
1543
+ export type Vault = {
1544
+ __typename?: 'Vault';
1545
+ /** Underlying asset of the vault */
1546
+ asset: Token;
1547
+ /** Chain the vault is deployed on */
1548
+ chain: Chain;
1549
+ /** Description of the vault */
1550
+ description: Maybe<Scalars['String']['output']>;
1551
+ /** Name of the vault */
1552
+ name: Scalars['String']['output'];
1553
+ /** Protocol the vault is part of */
1554
+ protocol: Protocol;
1555
+ /** APY earned when supplying to the vault */
1556
+ supplyApy: Apy;
1557
+ /** Total amount of underlying assets supplied to the vault */
1558
+ totalSupplied: TokenAmount;
1559
+ /** Type of vault */
1560
+ type: VaultType;
1561
+ /** URL to the vault's page on the protocol's website */
1562
+ url: Scalars['String']['output'];
1563
+ /** Address of the vault */
1564
+ vaultAddress: Scalars['Address']['output'];
1565
+ };
1616
1566
  /** Unique identifier for a vault across chain and protocol */
1617
- type VaultInput = {
1567
+ export type VaultInput = {
1618
1568
  /** Chain the vault is deployed on */
1619
1569
  chainId: Scalars['ChainId']['input'];
1620
1570
  /** Protocol the vault is part of */
@@ -1623,7 +1573,7 @@ type VaultInput = {
1623
1573
  vaultAddress: Scalars['Address']['input'];
1624
1574
  };
1625
1575
  /** DeFi protocols supported by the vault kit */
1626
- declare enum VaultProtocol {
1576
+ export declare enum VaultProtocol {
1627
1577
  /** Enzyme - asset management protocol */
1628
1578
  Enzyme = "enzyme",
1629
1579
  /** Euler Earn - yield aggregation vault */
@@ -1652,7 +1602,7 @@ declare enum VaultProtocol {
1652
1602
  TurtleClub = "turtle_club"
1653
1603
  }
1654
1604
  /** Categories of vault strategies */
1655
- declare enum VaultType {
1605
+ export declare enum VaultType {
1656
1606
  /** Index vaults that hold a basket of tokens with automatic rebalancing */
1657
1607
  Index = "index",
1658
1608
  /** Lending vaults that generate yield by supplying assets to borrowers */
@@ -1660,32 +1610,32 @@ declare enum VaultType {
1660
1610
  /** Staking vaults that earn rewards through token staking mechanisms */
1661
1611
  Staking = "staking"
1662
1612
  }
1663
- type VaultV1Adapter = Adapter & {
1613
+ /** Legacy adapter for Morpho vault-v1-backed positions. Planned to be deprecated in favor of Erc4626Adapter. */
1614
+ export type VaultV1Adapter = Adapter & {
1664
1615
  __typename?: 'VaultV1Adapter';
1665
- /**
1666
- * Address of the adapter
1667
- * @deprecated Schema is subject to change, not yet stable
1668
- */
1616
+ /** Address of the adapter */
1669
1617
  adapterAddress: Scalars['Address']['output'];
1670
- /**
1671
- * Cap for the adapter
1672
- * @deprecated Schema is subject to change, not yet stable
1673
- */
1618
+ /** Cap for the adapter */
1674
1619
  adapterCap: Maybe<AdapterCap>;
1675
- /**
1676
- * Name of the adapter
1677
- * @deprecated Schema is subject to change, not yet stable
1678
- */
1620
+ /** Instantaneous APY earned by this adapter's allocation (before vault-level fees) */
1621
+ instantApy: Scalars['Float']['output'];
1622
+ /** Name of the adapter */
1679
1623
  name: Maybe<Scalars['String']['output']>;
1680
1624
  /** Risk assessment for the adapter */
1681
1625
  riskAssessment: RiskAssessment;
1682
- /**
1683
- * Vault V1 the adapter allocated to
1684
- * @deprecated Schema is subject to change, not yet stable
1685
- */
1626
+ /** Vault V1 the adapter allocated to */
1686
1627
  vault: Maybe<MorphoVault>;
1687
1628
  };
1688
- type TokenInfoFragmentFragment = {
1629
+ export type YieldInfo = {
1630
+ __typename?: 'YieldInfo';
1631
+ /** Yield inherent to the asset itself (e.g., staking rewards for stETH) */
1632
+ intrinsicApy: Scalars['Float']['output'];
1633
+ /** Maturity date for fixed-term yields, null for variable/perpetual */
1634
+ maturity: Maybe<Scalars['Int']['output']>;
1635
+ /** The trailing period in seconds over which the APY was computed (e.g., 604800 for 7 days). Null for point-in-time/instant rates like Pendle PT. */
1636
+ trailingPeriod: Maybe<Scalars['Int']['output']>;
1637
+ };
1638
+ export type TokenInfoFragmentFragment = {
1689
1639
  __typename?: 'Token';
1690
1640
  address: `0x${string}`;
1691
1641
  symbol: string;
@@ -1698,19 +1648,19 @@ type TokenInfoFragmentFragment = {
1698
1648
  id: 80094;
1699
1649
  };
1700
1650
  };
1701
- type ChainInfoFragmentFragment = {
1651
+ export type ChainInfoFragmentFragment = {
1702
1652
  __typename?: 'Chain';
1703
1653
  id: 80094;
1704
1654
  name: string;
1705
1655
  icon: string;
1706
1656
  };
1707
- type CuratorInfoFragmentFragment = {
1657
+ export type CuratorInfoFragmentFragment = {
1708
1658
  __typename?: 'Curator';
1709
1659
  name: string;
1710
1660
  image: string;
1711
1661
  url: string;
1712
1662
  };
1713
- type ApyFragmentFragment = {
1663
+ export type ApyFragmentFragment = {
1714
1664
  __typename?: 'Apy';
1715
1665
  base: number;
1716
1666
  total: number;
@@ -1733,7 +1683,7 @@ type ApyFragmentFragment = {
1733
1683
  };
1734
1684
  }>;
1735
1685
  };
1736
- type VaultSummaryFragmentFragment = {
1686
+ export type VaultSummaryFragmentFragment = {
1737
1687
  __typename?: 'MorphoVault';
1738
1688
  vaultAddress: `0x${string}`;
1739
1689
  name: string;
@@ -1901,7 +1851,7 @@ type VaultSummaryFragmentFragment = {
1901
1851
  };
1902
1852
  }>;
1903
1853
  };
1904
- type MarketSummaryFragmentFragment = {
1854
+ export type MarketSummaryFragmentFragment = {
1905
1855
  __typename?: 'MorphoMarket';
1906
1856
  name: string;
1907
1857
  marketId: `0x${string}`;
@@ -2055,11 +2005,11 @@ type MarketSummaryFragmentFragment = {
2055
2005
  };
2056
2006
  }>;
2057
2007
  };
2058
- type VaultSummariesQueryVariables = Exact<{
2008
+ export type VaultSummariesQueryVariables = Exact<{
2059
2009
  chainIds: Array<Scalars['ChainId']['input']> | Scalars['ChainId']['input'];
2060
2010
  vaultAddresses: Array<Scalars['Address']['input']> | Scalars['Address']['input'];
2061
2011
  }>;
2062
- type VaultSummariesQuery = {
2012
+ export type VaultSummariesQuery = {
2063
2013
  __typename?: 'Query';
2064
2014
  morphoVaults: {
2065
2015
  __typename?: 'MorphoVaultPage';
@@ -2237,11 +2187,11 @@ type VaultSummariesQuery = {
2237
2187
  } | null>;
2238
2188
  };
2239
2189
  };
2240
- type MarketSummariesQueryVariables = Exact<{
2190
+ export type MarketSummariesQueryVariables = Exact<{
2241
2191
  chainIds: Array<Scalars['ChainId']['input']> | Scalars['ChainId']['input'];
2242
2192
  marketIds: Array<Scalars['Hex']['input']> | Scalars['Hex']['input'];
2243
2193
  }>;
2244
- type MarketSummariesQuery = {
2194
+ export type MarketSummariesQuery = {
2245
2195
  __typename?: 'Query';
2246
2196
  morphoMarkets: {
2247
2197
  __typename?: 'MorphoMarketPage';
@@ -2405,11 +2355,11 @@ type MarketSummariesQuery = {
2405
2355
  } | null>;
2406
2356
  };
2407
2357
  };
2408
- type VaultQueryVariables = Exact<{
2358
+ export type VaultQueryVariables = Exact<{
2409
2359
  chainId: Scalars['ChainId']['input'];
2410
2360
  vaultAddress: Scalars['Address']['input'];
2411
2361
  }>;
2412
- type VaultQuery = {
2362
+ export type VaultQuery = {
2413
2363
  __typename?: 'Query';
2414
2364
  morphoVaults: {
2415
2365
  __typename?: 'MorphoVaultPage';
@@ -2643,11 +2593,11 @@ type VaultQuery = {
2643
2593
  } | null>;
2644
2594
  };
2645
2595
  };
2646
- type MarketQueryVariables = Exact<{
2596
+ export type MarketQueryVariables = Exact<{
2647
2597
  chainId: Scalars['ChainId']['input'];
2648
2598
  marketId: Scalars['Hex']['input'];
2649
2599
  }>;
2650
- type MarketQuery = {
2600
+ export type MarketQuery = {
2651
2601
  __typename?: 'Query';
2652
2602
  morphoMarkets: {
2653
2603
  __typename?: 'MorphoMarketPage';
@@ -2865,12 +2815,12 @@ type MarketQuery = {
2865
2815
  } | null>;
2866
2816
  };
2867
2817
  };
2868
- type VaultPositionsQueryVariables = Exact<{
2818
+ export type VaultPositionsQueryVariables = Exact<{
2869
2819
  chainIds: Array<Scalars['ChainId']['input']> | Scalars['ChainId']['input'];
2870
2820
  vaultAddresses: Array<Scalars['Address']['input']> | Scalars['Address']['input'];
2871
2821
  accountAddress: Scalars['Address']['input'];
2872
2822
  }>;
2873
- type VaultPositionsQuery = {
2823
+ export type VaultPositionsQuery = {
2874
2824
  __typename?: 'Query';
2875
2825
  morphoVaultPositions: {
2876
2826
  __typename?: 'MorphoVaultPositionPage';
@@ -2902,12 +2852,12 @@ type VaultPositionsQuery = {
2902
2852
  } | null>;
2903
2853
  };
2904
2854
  };
2905
- type MarketPositionsQueryVariables = Exact<{
2855
+ export type MarketPositionsQueryVariables = Exact<{
2906
2856
  chainIds: Array<Scalars['ChainId']['input']> | Scalars['ChainId']['input'];
2907
2857
  marketIds: Array<Scalars['Hex']['input']> | Scalars['Hex']['input'];
2908
2858
  accountAddress: Scalars['Address']['input'];
2909
2859
  }>;
2910
- type MarketPositionsQuery = {
2860
+ export type MarketPositionsQuery = {
2911
2861
  __typename?: 'Query';
2912
2862
  morphoMarketPositions: {
2913
2863
  __typename?: 'MorphoMarketPositionPage';
@@ -2958,11 +2908,11 @@ type MarketPositionsQuery = {
2958
2908
  } | null>;
2959
2909
  };
2960
2910
  };
2961
- type SupportedMarketIdsQueryVariables = Exact<{
2911
+ export type SupportedMarketIdsQueryVariables = Exact<{
2962
2912
  chainIds: Array<Scalars['ChainId']['input']> | Scalars['ChainId']['input'];
2963
2913
  vaultAddresses: Array<Scalars['Address']['input']> | Scalars['Address']['input'];
2964
2914
  }>;
2965
- type SupportedMarketIdsQuery = {
2915
+ export type SupportedMarketIdsQuery = {
2966
2916
  __typename?: 'Query';
2967
2917
  morphoVaults: {
2968
2918
  __typename?: 'MorphoVaultPage';
@@ -2982,11 +2932,11 @@ type SupportedMarketIdsQuery = {
2982
2932
  } | null>;
2983
2933
  };
2984
2934
  };
2985
- type VaultHistoryDataQueryVariables = Exact<{
2935
+ export type VaultHistoryDataQueryVariables = Exact<{
2986
2936
  chainId: Scalars['ChainId']['input'];
2987
2937
  vaultId: Scalars['Address']['input'];
2988
2938
  }>;
2989
- type VaultHistoryDataQuery = {
2939
+ export type VaultHistoryDataQuery = {
2990
2940
  __typename?: 'Query';
2991
2941
  morphoVaults: {
2992
2942
  __typename?: 'MorphoVaultPage';
@@ -3042,11 +2992,11 @@ type VaultHistoryDataQuery = {
3042
2992
  } | null>;
3043
2993
  };
3044
2994
  };
3045
- type VaultMarketAllocationHistoryDataQueryVariables = Exact<{
2995
+ export type VaultMarketAllocationHistoryDataQueryVariables = Exact<{
3046
2996
  chainId: Scalars['ChainId']['input'];
3047
2997
  vaultId: Scalars['Address']['input'];
3048
2998
  }>;
3049
- type VaultMarketAllocationHistoryDataQuery = {
2999
+ export type VaultMarketAllocationHistoryDataQuery = {
3050
3000
  __typename?: 'Query';
3051
3001
  morphoVaults: {
3052
3002
  __typename?: 'MorphoVaultPage';
@@ -3169,11 +3119,11 @@ type VaultMarketAllocationHistoryDataQuery = {
3169
3119
  } | null>;
3170
3120
  };
3171
3121
  };
3172
- type MarketHistoryDataQueryVariables = Exact<{
3122
+ export type MarketHistoryDataQueryVariables = Exact<{
3173
3123
  chainId: Scalars['ChainId']['input'];
3174
3124
  marketId: Scalars['Hex']['input'];
3175
3125
  }>;
3176
- type MarketHistoryDataQuery = {
3126
+ export type MarketHistoryDataQuery = {
3177
3127
  __typename?: 'Query';
3178
3128
  morphoMarkets: {
3179
3129
  __typename?: 'MorphoMarketPage';
@@ -3277,11 +3227,11 @@ type MarketHistoryDataQuery = {
3277
3227
  } | null>;
3278
3228
  };
3279
3229
  };
3280
- type MarketIbrHistoryDataQueryVariables = Exact<{
3230
+ export type MarketIbrHistoryDataQueryVariables = Exact<{
3281
3231
  chainId: Scalars['ChainId']['input'];
3282
3232
  marketId: Scalars['Hex']['input'];
3283
3233
  }>;
3284
- type MarketIbrHistoryDataQuery = {
3234
+ export type MarketIbrHistoryDataQuery = {
3285
3235
  __typename?: 'Query';
3286
3236
  morphoMarkets: {
3287
3237
  __typename?: 'MorphoMarketPage';
@@ -3309,52 +3259,28 @@ type MarketIbrHistoryDataQuery = {
3309
3259
  } | null>;
3310
3260
  };
3311
3261
  };
3312
- declare const ChainInfoFragment: _apollo_client.DocumentNode;
3313
- declare const TokenInfoFragment: _apollo_client.DocumentNode;
3314
- declare const CuratorInfoFragment: _apollo_client.DocumentNode;
3315
- declare const ApyFragment: _apollo_client.DocumentNode;
3316
- declare const VaultSummaryFragment: _apollo_client.DocumentNode;
3317
- declare const MarketSummaryFragment: _apollo_client.DocumentNode;
3318
- declare const VaultSummaries: _apollo_client.DocumentNode;
3319
- declare const MarketSummaries: _apollo_client.DocumentNode;
3320
- /** Yield-bearing vault aggregating deposits across DeFi protocols */
3321
- type Vault = {
3322
- __typename?: 'Vault';
3323
- /** Underlying asset of the vault */
3324
- asset: Token;
3325
- /** Chain the vault is deployed on */
3326
- chain: Chain;
3327
- /** Description of the vault */
3328
- description: Maybe<Scalars['String']['output']>;
3329
- /** Name of the vault */
3330
- name: Scalars['String']['output'];
3331
- /** Protocol the vault is part of */
3332
- protocol: Protocol;
3333
- /** APY earned when supplying to the vault */
3334
- supplyApy: Apy;
3335
- /** Total amount of underlying assets supplied to the vault */
3336
- totalSupplied: TokenAmount;
3337
- /** Type of vault */
3338
- type: VaultType;
3339
- /** URL to the vault's page on the protocol's website */
3340
- url: Scalars['String']['output'];
3341
- /** Address of the vault */
3342
- vaultAddress: Scalars['Address']['output'];
3343
- };
3344
- declare const Vault: _apollo_client.DocumentNode;
3345
- declare const Market: _apollo_client.DocumentNode;
3346
- declare const VaultPositions: _apollo_client.DocumentNode;
3347
- declare const MarketPositions: _apollo_client.DocumentNode;
3348
- declare const SupportedMarketIds: _apollo_client.DocumentNode;
3349
- declare const VaultHistoryData: _apollo_client.DocumentNode;
3350
- declare const VaultMarketAllocationHistoryData: _apollo_client.DocumentNode;
3351
- declare const MarketHistoryData: _apollo_client.DocumentNode;
3352
- declare const MarketIbrHistoryData: _apollo_client.DocumentNode;
3353
- interface PossibleTypesResultData {
3262
+ export declare const ChainInfoFragment: import("@apollo/client").DocumentNode;
3263
+ export declare const TokenInfoFragment: import("@apollo/client").DocumentNode;
3264
+ export declare const CuratorInfoFragment: import("@apollo/client").DocumentNode;
3265
+ export declare const ApyFragment: import("@apollo/client").DocumentNode;
3266
+ export declare const VaultSummaryFragment: import("@apollo/client").DocumentNode;
3267
+ export declare const MarketSummaryFragment: import("@apollo/client").DocumentNode;
3268
+ export declare const VaultSummaries: import("@apollo/client").DocumentNode;
3269
+ export declare const MarketSummaries: import("@apollo/client").DocumentNode;
3270
+ export declare const Vault: import("@apollo/client").DocumentNode;
3271
+ export declare const Market: import("@apollo/client").DocumentNode;
3272
+ export declare const VaultPositions: import("@apollo/client").DocumentNode;
3273
+ export declare const MarketPositions: import("@apollo/client").DocumentNode;
3274
+ export declare const SupportedMarketIds: import("@apollo/client").DocumentNode;
3275
+ export declare const VaultHistoryData: import("@apollo/client").DocumentNode;
3276
+ export declare const VaultMarketAllocationHistoryData: import("@apollo/client").DocumentNode;
3277
+ export declare const MarketHistoryData: import("@apollo/client").DocumentNode;
3278
+ export declare const MarketIbrHistoryData: import("@apollo/client").DocumentNode;
3279
+ export interface PossibleTypesResultData {
3354
3280
  possibleTypes: {
3355
3281
  [key: string]: string[];
3356
3282
  };
3357
3283
  }
3358
3284
  declare const result: PossibleTypesResultData;
3359
-
3360
- export { type Adapter, type AdapterCap, type AeraPendingAction, type AeraVault, type AeraVaultFilter, type AeraVaultPage, type AeraVaultPosition, type AeraVaultPositionFilter, type AeraVaultPositionPage, type Apy, ApyFragment, type ApyFragmentFragment, ApySide, ApyTimeframe, type BoxFundingModule, type BoxMorphoFundingModule, type BoxUnknownFundingModule, type BoxVault, type BoxVaultAdapter, type BoxVaultApyArgs, type Cap, type Chain, type ChainFilter, ChainInfoFragment, type ChainInfoFragmentFragment, type CollateralExposureCap, type Curator, CuratorInfoFragment, type CuratorInfoFragmentFragment, type Erc20, type Erc4626Vault, type Erc4626VaultApyArgs, type Erc4626VaultFilter, type Erc4626VaultKey, type Erc4626VaultPage, type Erc4626VaultPosition, type Erc4626VaultPositionFilter, type Erc4626VaultPositionKey, type Erc4626VaultPositionPage, Erc4626VaultProtocol, type Exact, type GenericErc4626Vault, type GenericErc4626VaultApyArgs, type GenericErc4626VaultPosition, 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 QueryErc4626VaultPositionsArgs, 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 RiskAssessment, type Scalars, type SteakhouseRiskAssessment, type SteakhouseTvl, type SteakhouseTvlByAssetCategory, type SteakhouseTvlByChain, type SteakhouseTvlByProtocol, SupportedMarketIds, type SupportedMarketIdsQuery, type SupportedMarketIdsQueryVariables, type Token, type TokenAmount, TokenCategory, 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 };
3285
+ export default result;
3286
+ //# sourceMappingURL=whisk.codegen.d.ts.map