@berachain/graphql 0.2.4 → 0.2.6-beta.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,4 +1,4 @@
1
- import * as graphql from 'graphql';
1
+ import * as _apollo_client from '@apollo/client';
2
2
 
3
3
  type Maybe<T> = T | null;
4
4
  type InputMaybe<T> = Maybe<T>;
@@ -102,7 +102,7 @@ type AdapterCap = Cap & {
102
102
  * Relative cap (wad)
103
103
  * @deprecated Schema is subject to change, not yet stable
104
104
  */
105
- relativeCap: Scalars['BigInt']['output'];
105
+ relativeCap: OnchainAmount;
106
106
  };
107
107
  /** Aera vault */
108
108
  type AeraVault = {
@@ -209,6 +209,50 @@ declare enum ApyTimeframe {
209
209
  SevenDays = "seven_days",
210
210
  ThirtyDays = "thirty_days"
211
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
+ };
212
256
  /** V2: Caps for a Morpho vault adapter id */
213
257
  type Cap = {
214
258
  /**
@@ -230,7 +274,7 @@ type Cap = {
230
274
  * Relative cap (wad)
231
275
  * @deprecated Schema is subject to change, not yet stable
232
276
  */
233
- relativeCap: Scalars['BigInt']['output'];
277
+ relativeCap: OnchainAmount;
234
278
  };
235
279
  /** A blockchain */
236
280
  type Chain = {
@@ -277,7 +321,7 @@ type CollateralExposureCap = Cap & {
277
321
  * Relative cap (wad)
278
322
  * @deprecated Schema is subject to change, not yet stable
279
323
  */
280
- relativeCap: Scalars['BigInt']['output'];
324
+ relativeCap: OnchainAmount;
281
325
  };
282
326
  /** Curator of a Morpho vault */
283
327
  type Curator = {
@@ -331,6 +375,7 @@ type Erc4626VaultPage = {
331
375
  totalCount: Scalars['Int']['output'];
332
376
  };
333
377
  declare enum Erc4626VaultProtocol {
378
+ Box = "box",
334
379
  Generic = "generic",
335
380
  MorphoV1 = "morpho_v1",
336
381
  MorphoV2 = "morpho_v2"
@@ -443,7 +488,7 @@ type MarketV1ExposureCap = Cap & {
443
488
  * Relative cap (wad)
444
489
  * @deprecated Schema is subject to change, not yet stable
445
490
  */
446
- relativeCap: Scalars['BigInt']['output'];
491
+ relativeCap: OnchainAmount;
447
492
  };
448
493
  /** A reward earned by an account */
449
494
  type MerklAccountReward = {
@@ -548,6 +593,8 @@ type MorphoMarket = {
548
593
  supplyApy30d: Apy;
549
594
  /** Total amount of loan assets borrowed from the market */
550
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>;
551
598
  /** Total amount of loan assets supplied to the market */
552
599
  totalSupplied: TokenAmount;
553
600
  /** Utilization of the market */
@@ -884,6 +931,8 @@ type MorphoVaultV2 = Erc4626Vault & {
884
931
  * @deprecated Schema is subject to change, not yet stable
885
932
  */
886
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>;
887
936
  /**
888
937
  * Liquidity adapter address
889
938
  * @deprecated Schema is subject to change, not yet stable
@@ -1219,7 +1268,7 @@ type UnknownCap = Cap & {
1219
1268
  * Relative cap (wad)
1220
1269
  * @deprecated Schema is subject to change, not yet stable
1221
1270
  */
1222
- relativeCap: Scalars['BigInt']['output'];
1271
+ relativeCap: OnchainAmount;
1223
1272
  };
1224
1273
  /** Input for vaults */
1225
1274
  type VaultInput = {
@@ -1282,6 +1331,7 @@ type TokenInfoFragmentFragment = {
1282
1331
  decimals: number;
1283
1332
  icon: string | null;
1284
1333
  category: TokenCategory | null;
1334
+ name: string;
1285
1335
  };
1286
1336
  type ChainInfoFragmentFragment = {
1287
1337
  __typename?: 'Chain';
@@ -1310,6 +1360,7 @@ type ApyFragmentFragment = {
1310
1360
  decimals: number;
1311
1361
  icon: string | null;
1312
1362
  category: TokenCategory | null;
1363
+ name: string;
1313
1364
  };
1314
1365
  }>;
1315
1366
  };
@@ -1331,6 +1382,7 @@ type VaultSummaryFragmentFragment = {
1331
1382
  decimals: number;
1332
1383
  icon: string | null;
1333
1384
  category: TokenCategory | null;
1385
+ name: string;
1334
1386
  };
1335
1387
  metadata: {
1336
1388
  __typename?: 'MorphoVaultMetadata';
@@ -1368,6 +1420,45 @@ type VaultSummaryFragmentFragment = {
1368
1420
  decimals: number;
1369
1421
  icon: string | null;
1370
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;
1371
1462
  };
1372
1463
  }>;
1373
1464
  };
@@ -1384,6 +1475,7 @@ type VaultSummaryFragmentFragment = {
1384
1475
  decimals: number;
1385
1476
  icon: string | null;
1386
1477
  category: TokenCategory | null;
1478
+ name: string;
1387
1479
  } | null;
1388
1480
  supplyApy: {
1389
1481
  __typename?: 'Apy';
@@ -1400,6 +1492,7 @@ type VaultSummaryFragmentFragment = {
1400
1492
  decimals: number;
1401
1493
  icon: string | null;
1402
1494
  category: TokenCategory | null;
1495
+ name: string;
1403
1496
  };
1404
1497
  }>;
1405
1498
  };
@@ -1457,6 +1550,7 @@ type MarketSummaryFragmentFragment = {
1457
1550
  decimals: number;
1458
1551
  icon: string | null;
1459
1552
  category: TokenCategory | null;
1553
+ name: string;
1460
1554
  } | null;
1461
1555
  loanAsset: {
1462
1556
  __typename?: 'Token';
@@ -1465,6 +1559,7 @@ type MarketSummaryFragmentFragment = {
1465
1559
  decimals: number;
1466
1560
  icon: string | null;
1467
1561
  category: TokenCategory | null;
1562
+ name: string;
1468
1563
  };
1469
1564
  lltv: {
1470
1565
  __typename?: 'OnchainAmount';
@@ -1486,6 +1581,45 @@ type MarketSummaryFragmentFragment = {
1486
1581
  decimals: number;
1487
1582
  icon: string | null;
1488
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;
1489
1623
  };
1490
1624
  }>;
1491
1625
  };
@@ -1538,6 +1672,7 @@ type VaultSummariesQuery = {
1538
1672
  decimals: number;
1539
1673
  icon: string | null;
1540
1674
  category: TokenCategory | null;
1675
+ name: string;
1541
1676
  };
1542
1677
  metadata: {
1543
1678
  __typename?: 'MorphoVaultMetadata';
@@ -1575,6 +1710,45 @@ type VaultSummariesQuery = {
1575
1710
  decimals: number;
1576
1711
  icon: string | null;
1577
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;
1578
1752
  };
1579
1753
  }>;
1580
1754
  };
@@ -1591,6 +1765,7 @@ type VaultSummariesQuery = {
1591
1765
  decimals: number;
1592
1766
  icon: string | null;
1593
1767
  category: TokenCategory | null;
1768
+ name: string;
1594
1769
  } | null;
1595
1770
  supplyApy: {
1596
1771
  __typename?: 'Apy';
@@ -1607,6 +1782,7 @@ type VaultSummariesQuery = {
1607
1782
  decimals: number;
1608
1783
  icon: string | null;
1609
1784
  category: TokenCategory | null;
1785
+ name: string;
1610
1786
  };
1611
1787
  }>;
1612
1788
  };
@@ -1678,6 +1854,7 @@ type MarketSummariesQuery = {
1678
1854
  decimals: number;
1679
1855
  icon: string | null;
1680
1856
  category: TokenCategory | null;
1857
+ name: string;
1681
1858
  } | null;
1682
1859
  loanAsset: {
1683
1860
  __typename?: 'Token';
@@ -1686,6 +1863,7 @@ type MarketSummariesQuery = {
1686
1863
  decimals: number;
1687
1864
  icon: string | null;
1688
1865
  category: TokenCategory | null;
1866
+ name: string;
1689
1867
  };
1690
1868
  lltv: {
1691
1869
  __typename?: 'OnchainAmount';
@@ -1707,6 +1885,45 @@ type MarketSummariesQuery = {
1707
1885
  decimals: number;
1708
1886
  icon: string | null;
1709
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;
1710
1927
  };
1711
1928
  }>;
1712
1929
  };
@@ -1751,10 +1968,40 @@ type VaultQuery = {
1751
1968
  supplyApy1d: {
1752
1969
  __typename?: 'Apy';
1753
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
+ }>;
1754
1986
  };
1755
1987
  supplyApy7d: {
1756
1988
  __typename?: 'Apy';
1757
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
+ }>;
1758
2005
  };
1759
2006
  supplyApy30d: {
1760
2007
  __typename?: 'Apy';
@@ -1768,6 +2015,7 @@ type VaultQuery = {
1768
2015
  decimals: number;
1769
2016
  icon: string | null;
1770
2017
  category: TokenCategory | null;
2018
+ name: string;
1771
2019
  };
1772
2020
  totalSupplied: {
1773
2021
  __typename?: 'TokenAmount';
@@ -1814,6 +2062,7 @@ type VaultQuery = {
1814
2062
  decimals: number;
1815
2063
  icon: string | null;
1816
2064
  category: TokenCategory | null;
2065
+ name: string;
1817
2066
  } | null;
1818
2067
  loanAsset: {
1819
2068
  __typename?: 'Token';
@@ -1822,11 +2071,12 @@ type VaultQuery = {
1822
2071
  decimals: number;
1823
2072
  icon: string | null;
1824
2073
  category: TokenCategory | null;
2074
+ name: string;
1825
2075
  };
1826
2076
  supplyApy: {
1827
2077
  __typename?: 'Apy';
1828
- base: number;
1829
2078
  total: number;
2079
+ base: number;
1830
2080
  fee: number;
1831
2081
  rewards: Array<{
1832
2082
  __typename?: 'Reward';
@@ -1838,6 +2088,7 @@ type VaultQuery = {
1838
2088
  decimals: number;
1839
2089
  icon: string | null;
1840
2090
  category: TokenCategory | null;
2091
+ name: string;
1841
2092
  };
1842
2093
  }>;
1843
2094
  };
@@ -1900,6 +2151,7 @@ type VaultQuery = {
1900
2151
  decimals: number;
1901
2152
  icon: string | null;
1902
2153
  category: TokenCategory | null;
2154
+ name: string;
1903
2155
  };
1904
2156
  }>;
1905
2157
  };
@@ -1954,6 +2206,7 @@ type MarketQuery = {
1954
2206
  decimals: number;
1955
2207
  icon: string | null;
1956
2208
  category: TokenCategory | null;
2209
+ name: string;
1957
2210
  } | null;
1958
2211
  loanAsset: {
1959
2212
  __typename?: 'Token';
@@ -1963,6 +2216,7 @@ type MarketQuery = {
1963
2216
  decimals: number;
1964
2217
  icon: string | null;
1965
2218
  category: TokenCategory | null;
2219
+ name: string;
1966
2220
  };
1967
2221
  vaultAllocations: Array<{
1968
2222
  __typename?: 'MorphoVaultMarketAllocation';
@@ -1980,6 +2234,7 @@ type MarketQuery = {
1980
2234
  decimals: number;
1981
2235
  icon: string | null;
1982
2236
  category: TokenCategory | null;
2237
+ name: string;
1983
2238
  };
1984
2239
  chain: {
1985
2240
  __typename?: 'Chain';
@@ -2056,6 +2311,45 @@ type MarketQuery = {
2056
2311
  decimals: number;
2057
2312
  icon: string | null;
2058
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;
2059
2353
  };
2060
2354
  }>;
2061
2355
  };
@@ -2179,14 +2473,341 @@ type SupportedMarketIdsQuery = {
2179
2473
  } | null>;
2180
2474
  };
2181
2475
  };
2182
- declare const ChainInfoFragment: graphql.DocumentNode;
2183
- declare const TokenInfoFragment: graphql.DocumentNode;
2184
- declare const CuratorInfoFragment: graphql.DocumentNode;
2185
- declare const ApyFragment: graphql.DocumentNode;
2186
- declare const VaultSummaryFragment: graphql.DocumentNode;
2187
- declare const MarketSummaryFragment: graphql.DocumentNode;
2188
- declare const VaultSummaries: graphql.DocumentNode;
2189
- declare const MarketSummaries: graphql.DocumentNode;
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;
2190
2811
  /** Vault */
2191
2812
  type Vault = {
2192
2813
  __typename?: 'Vault';
@@ -2211,11 +2832,15 @@ type Vault = {
2211
2832
  /** Address of the vault */
2212
2833
  vaultAddress: Scalars['Address']['output'];
2213
2834
  };
2214
- declare const Vault: graphql.DocumentNode;
2215
- declare const Market: graphql.DocumentNode;
2216
- declare const VaultPositions: graphql.DocumentNode;
2217
- declare const MarketPositions: graphql.DocumentNode;
2218
- declare const SupportedMarketIds: graphql.DocumentNode;
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;
2219
2844
  interface PossibleTypesResultData {
2220
2845
  possibleTypes: {
2221
2846
  [key: string]: string[];
@@ -2223,4 +2848,4 @@ interface PossibleTypesResultData {
2223
2848
  }
2224
2849
  declare const result: PossibleTypesResultData;
2225
2850
 
2226
- 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 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, 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, type VaultInput, VaultPositions, type VaultPositionsQuery, type VaultPositionsQueryVariables, VaultProtocol, type VaultQuery, type VaultQueryVariables, VaultSummaries, type VaultSummariesQuery, type VaultSummariesQueryVariables, VaultSummaryFragment, type VaultSummaryFragmentFragment, VaultType, type VaultV1Adapter, result as default };
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 };