@berachain/graphql 0.1.10-beta.0 → 0.1.10

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.
@@ -163,6 +163,12 @@ declare enum ApySide {
163
163
  /** APY earned when supplying */
164
164
  Supply = "Supply"
165
165
  }
166
+ /** Timeframe for APY calculations */
167
+ declare enum ApyTimeframe {
168
+ OneDay = "one_day",
169
+ SevenDays = "seven_days",
170
+ ThirtyDays = "thirty_days"
171
+ }
166
172
  /** A blockchain */
167
173
  type Chain = {
168
174
  __typename?: 'Chain';
@@ -192,6 +198,73 @@ type Curator = {
192
198
  /** URL of the curator */
193
199
  url: Scalars['String']['output'];
194
200
  };
201
+ type Erc4626Vault = {
202
+ /** APY earned when supplying to the vault, computed by annualized share price change over the given timeframe */
203
+ apy: Apy;
204
+ /** Underlying asset of the vault */
205
+ asset: Token;
206
+ /** Chain the vault is deployed on */
207
+ chain: Chain;
208
+ /** Decimals of the vault's shares */
209
+ decimals: Scalars['Int']['output'];
210
+ /** Name of the vault */
211
+ name: Scalars['String']['output'];
212
+ /** Symbol of the vault */
213
+ symbol: Scalars['String']['output'];
214
+ /** Total amount of the underlying assets supplied to the vault */
215
+ totalAssets: TokenAmount;
216
+ /** Address of the vault contract */
217
+ vaultAddress: Scalars['Address']['output'];
218
+ };
219
+ type Erc4626VaultApyArgs = {
220
+ timeframe: ApyTimeframe;
221
+ };
222
+ type Erc4626VaultFilter = {
223
+ keys: InputMaybe<Array<Erc4626VaultKey>>;
224
+ };
225
+ type Erc4626VaultKey = {
226
+ /** Chain the vault is deployed on */
227
+ chainId: Scalars['ChainId']['input'];
228
+ /** Protocol the vault is part of */
229
+ protocol: Erc4626VaultProtocol;
230
+ /** Address of the vault contract */
231
+ vaultAddress: Scalars['Address']['input'];
232
+ };
233
+ type Erc4626VaultPage = {
234
+ __typename?: 'Erc4626VaultPage';
235
+ /** The items in the page */
236
+ items: Array<Maybe<Erc4626Vault>>;
237
+ /** Pagination information for the page */
238
+ pageInfo: PageInfo;
239
+ /** Total number of items */
240
+ totalCount: Scalars['Int']['output'];
241
+ };
242
+ declare enum Erc4626VaultProtocol {
243
+ Generic = "generic",
244
+ MorphoV1 = "morpho_v1"
245
+ }
246
+ type GenericErc4626Vault = Erc4626Vault & {
247
+ __typename?: 'GenericErc4626Vault';
248
+ /** APY earned when supplying to the vault */
249
+ apy: Apy;
250
+ /** Underlying asset of the vault */
251
+ asset: Token;
252
+ /** Chain the vault is deployed on */
253
+ chain: Chain;
254
+ /** Decimals of the vault's shares */
255
+ decimals: Scalars['Int']['output'];
256
+ /** Name of the vault */
257
+ name: Scalars['String']['output'];
258
+ /** Symbol of the vault's shares */
259
+ symbol: Scalars['String']['output'];
260
+ /** Total amount of the underlying assets supplied to the vault */
261
+ totalAssets: TokenAmount;
262
+ /** Address of the vault contract */
263
+ vaultAddress: Scalars['Address']['output'];
264
+ };
265
+ type GenericErc4626VaultApyArgs = {
266
+ timeframe: ApyTimeframe;
267
+ };
195
268
  type Identity = {
196
269
  __typename?: 'Identity';
197
270
  aggregate: IdentityResolverOutput;
@@ -457,8 +530,10 @@ type MorphoMarketPositionPage = {
457
530
  totalCount: Scalars['Int']['output'];
458
531
  };
459
532
  /** Morpho vault */
460
- type MorphoVault = {
533
+ type MorphoVault = Erc4626Vault & {
461
534
  __typename?: 'MorphoVault';
535
+ /** APY earned when supplying to the vault */
536
+ apy: Apy;
462
537
  /** Underlying asset of the vault */
463
538
  asset: Token;
464
539
  /** Chain the vault is deployed on */
@@ -483,21 +558,44 @@ type MorphoVault = {
483
558
  ownerAddress: Scalars['Address']['output'];
484
559
  /** Performance fee of the vault, this is the fee that is taken from the vaults profits */
485
560
  performanceFee: Scalars['Float']['output'];
486
- /** APY earned when supplying to the vault (instantaneous) */
561
+ /**
562
+ * APY earned when supplying to the vault
563
+ * @deprecated Use apy(timeframe: one_day) instead
564
+ */
487
565
  supplyApy: Apy;
488
- /** APY earned when supplying to the vault smoothed over 1 day. Note rewards are instantaneous, and base is instantaneous when the vault has been deployed less than 1 day ago. */
566
+ /**
567
+ * APY earned when supplying to the vault smoothed over 1 day. Note rewards are instantaneous, and base is instantaneous when the vault has been deployed less than 1 day ago.
568
+ * @deprecated Use apy(timeframe: one_day) instead
569
+ */
489
570
  supplyApy1d: Apy;
490
- /** APY earned when supplying to the vault smoothed over 7 days. Note rewards are instantaneous, and base is instantaneous when the vault has been deployed less than 7 days ago. */
571
+ /**
572
+ * APY earned when supplying to the vault smoothed over 7 days. Note rewards are instantaneous, and base is instantaneous when the vault has been deployed less than 7 days ago.
573
+ * @deprecated Use apy(timeframe: seven_days) instead
574
+ */
491
575
  supplyApy7d: Apy;
492
- /** APY earned when supplying to the vault smoothed over 30 days. Note rewards are instantaneous, and base is instantaneous when the vault has been deployed less than 30 days ago. */
576
+ /**
577
+ * APY earned when supplying to the vault smoothed over 30 days. Note rewards are instantaneous, and base is instantaneous when the vault has been deployed less than 30 days ago.
578
+ * @deprecated Use apy(timeframe: thirty_days) instead
579
+ */
493
580
  supplyApy30d: Apy;
581
+ /** Symbol of the vault */
582
+ symbol: Scalars['String']['output'];
583
+ /** Total amount of the underlying assets supplied to the vault */
584
+ totalAssets: TokenAmount;
494
585
  /** Total amount of the idle underlying assets (not being borrowed from the vault) */
495
586
  totalLiquidity: TokenAmount;
496
- /** Total amount of the underlying assets supplied to the vault */
587
+ /**
588
+ * Total amount of the underlying assets supplied to the vault
589
+ * @deprecated Use totalAssets instead
590
+ */
497
591
  totalSupplied: TokenAmount;
498
592
  /** Address of the vault contract */
499
593
  vaultAddress: Scalars['Address']['output'];
500
594
  };
595
+ /** Morpho vault */
596
+ type MorphoVaultApyArgs = {
597
+ timeframe: ApyTimeframe;
598
+ };
501
599
  /** Filter for Morpho vaults */
502
600
  type MorphoVaultFilter = {
503
601
  /** Filter for certain chainIds */
@@ -661,6 +759,7 @@ type Query = {
661
759
  aeraVaults: AeraVaultPage;
662
760
  /** Get supported chains (note that not all kits support all chains) */
663
761
  chains: Array<Chain>;
762
+ erc4626Vaults: Erc4626VaultPage;
664
763
  identities: Array<Identity>;
665
764
  identity: Maybe<Identity>;
666
765
  /** Query for Merkl rewards earned on chainId for the accountAddress */
@@ -695,6 +794,12 @@ type QueryAeraVaultsArgs = {
695
794
  type QueryChainsArgs = {
696
795
  where: InputMaybe<ChainFilter>;
697
796
  };
797
+ type QueryErc4626VaultsArgs = {
798
+ after: InputMaybe<Scalars['String']['input']>;
799
+ before: InputMaybe<Scalars['String']['input']>;
800
+ limit: InputMaybe<Scalars['Int']['input']>;
801
+ where: InputMaybe<Erc4626VaultFilter>;
802
+ };
698
803
  type QueryIdentitiesArgs = {
699
804
  addresses: Array<Scalars['Address']['input']>;
700
805
  resolverOrder: InputMaybe<Array<IdentityResolver>>;
@@ -1378,6 +1483,7 @@ type VaultQuery = {
1378
1483
  marketId: `0x${string}`;
1379
1484
  isIdle: boolean;
1380
1485
  name: string;
1486
+ utilization: number;
1381
1487
  chain: {
1382
1488
  __typename?: 'Chain';
1383
1489
  id: 80094;
@@ -1428,6 +1534,12 @@ type VaultQuery = {
1428
1534
  raw: string | bigint;
1429
1535
  formatted: string;
1430
1536
  };
1537
+ liquidityInMarket: {
1538
+ __typename?: 'TokenAmount';
1539
+ raw: string | bigint;
1540
+ formatted: string;
1541
+ usd: number | null;
1542
+ };
1431
1543
  };
1432
1544
  position: {
1433
1545
  __typename?: 'MorphoMarketPosition';
@@ -1755,196 +1867,6 @@ type SupportedMarketIdsQuery = {
1755
1867
  } | null>;
1756
1868
  };
1757
1869
  };
1758
- type VaultHistoryDataQueryVariables = Exact<{
1759
- chainId: Scalars['ChainId']['input'];
1760
- marketId: Scalars['Address']['input'];
1761
- }>;
1762
- type VaultHistoryDataQuery = {
1763
- __typename?: 'Query';
1764
- morphoVaults: {
1765
- __typename?: 'MorphoVaultPage';
1766
- items: Array<{
1767
- __typename?: 'MorphoVault';
1768
- historical: {
1769
- __typename?: 'MorphoVaultHistorical';
1770
- daily: Array<{
1771
- __typename?: 'MorphoVaultHistoricalEntry';
1772
- bucketTimestamp: number;
1773
- supplyApy1d: {
1774
- __typename?: 'Apy';
1775
- total: number;
1776
- };
1777
- totalSupplied: {
1778
- __typename?: 'TokenAmount';
1779
- usd: number | null;
1780
- raw: string | bigint;
1781
- formatted: string;
1782
- };
1783
- }>;
1784
- hourly: Array<{
1785
- __typename?: 'MorphoVaultHistoricalEntry';
1786
- bucketTimestamp: number;
1787
- supplyApy1d: {
1788
- __typename?: 'Apy';
1789
- total: number;
1790
- };
1791
- totalSupplied: {
1792
- __typename?: 'TokenAmount';
1793
- formatted: string;
1794
- raw: string | bigint;
1795
- usd: number | null;
1796
- };
1797
- }>;
1798
- } | null;
1799
- } | null>;
1800
- };
1801
- };
1802
- type VaultMarketAllocationHistoryDataQueryVariables = Exact<{
1803
- chainId: Scalars['ChainId']['input'];
1804
- marketIds: Array<Scalars['Hex']['input']> | Scalars['Hex']['input'];
1805
- }>;
1806
- type VaultMarketAllocationHistoryDataQuery = {
1807
- __typename?: 'Query';
1808
- morphoMarkets: {
1809
- __typename?: 'MorphoMarketPage';
1810
- items: Array<{
1811
- __typename?: 'MorphoMarket';
1812
- name: string;
1813
- isIdle: boolean;
1814
- historical: {
1815
- __typename?: 'MorphoMarketHistorical';
1816
- hourly: Array<{
1817
- __typename?: 'MorphoMarketHistoricalEntry';
1818
- bucketTimestamp: number;
1819
- totalSupplied: {
1820
- __typename?: 'TokenAmount';
1821
- formatted: string;
1822
- };
1823
- }>;
1824
- daily: Array<{
1825
- __typename?: 'MorphoMarketHistoricalEntry';
1826
- bucketTimestamp: number;
1827
- totalSupplied: {
1828
- __typename?: 'TokenAmount';
1829
- formatted: string;
1830
- };
1831
- }>;
1832
- } | null;
1833
- } | null>;
1834
- };
1835
- };
1836
- type MarketBorrowHistoryDataQueryVariables = Exact<{
1837
- chainId: Scalars['ChainId']['input'];
1838
- marketId: Scalars['Hex']['input'];
1839
- }>;
1840
- type MarketBorrowHistoryDataQuery = {
1841
- __typename?: 'Query';
1842
- morphoMarkets: {
1843
- __typename?: 'MorphoMarketPage';
1844
- items: Array<{
1845
- __typename?: 'MorphoMarket';
1846
- historical: {
1847
- __typename?: 'MorphoMarketHistorical';
1848
- daily: Array<{
1849
- __typename?: 'MorphoMarketHistoricalEntry';
1850
- bucketTimestamp: number;
1851
- borrowApy1d: {
1852
- __typename?: 'Apy';
1853
- total: number;
1854
- };
1855
- totalBorrowed: {
1856
- __typename?: 'TokenAmount';
1857
- usd: number | null;
1858
- raw: string | bigint;
1859
- formatted: string;
1860
- };
1861
- }>;
1862
- hourly: Array<{
1863
- __typename?: 'MorphoMarketHistoricalEntry';
1864
- bucketTimestamp: number;
1865
- borrowApy1d: {
1866
- __typename?: 'Apy';
1867
- total: number;
1868
- };
1869
- totalBorrowed: {
1870
- __typename?: 'TokenAmount';
1871
- formatted: string;
1872
- raw: string | bigint;
1873
- usd: number | null;
1874
- };
1875
- }>;
1876
- } | null;
1877
- } | null>;
1878
- };
1879
- };
1880
- type MarketIbrHistoryDataQueryVariables = Exact<{
1881
- chainId: Scalars['ChainId']['input'];
1882
- marketId: Scalars['Hex']['input'];
1883
- }>;
1884
- type MarketIbrHistoryDataQuery = {
1885
- __typename?: 'Query';
1886
- morphoMarkets: {
1887
- __typename?: 'MorphoMarketPage';
1888
- items: Array<{
1889
- __typename?: 'MorphoMarket';
1890
- historical: {
1891
- __typename?: 'MorphoMarketHistorical';
1892
- daily: Array<{
1893
- __typename?: 'MorphoMarketHistoricalEntry';
1894
- bucketTimestamp: number;
1895
- borrowApyInstantaneous: {
1896
- __typename?: 'Apy';
1897
- total: number;
1898
- };
1899
- }>;
1900
- hourly: Array<{
1901
- __typename?: 'MorphoMarketHistoricalEntry';
1902
- bucketTimestamp: number;
1903
- borrowApyInstantaneous: {
1904
- __typename?: 'Apy';
1905
- total: number;
1906
- };
1907
- }>;
1908
- } | null;
1909
- } | null>;
1910
- };
1911
- };
1912
- type MarketCollateralAtRiskHistoryDataQueryVariables = Exact<{
1913
- chainId: Scalars['ChainId']['input'];
1914
- marketId: Scalars['Hex']['input'];
1915
- }>;
1916
- type MarketCollateralAtRiskHistoryDataQuery = {
1917
- __typename?: 'Query';
1918
- morphoMarkets: {
1919
- __typename?: 'MorphoMarketPage';
1920
- items: Array<{
1921
- __typename?: 'MorphoMarket';
1922
- historical: {
1923
- __typename?: 'MorphoMarketHistorical';
1924
- daily: Array<{
1925
- __typename?: 'MorphoMarketHistoricalEntry';
1926
- bucketTimestamp: number;
1927
- totalCollateral: {
1928
- __typename?: 'TokenAmount';
1929
- formatted: string;
1930
- raw: string | bigint;
1931
- usd: number | null;
1932
- };
1933
- }>;
1934
- hourly: Array<{
1935
- __typename?: 'MorphoMarketHistoricalEntry';
1936
- bucketTimestamp: number;
1937
- totalCollateral: {
1938
- __typename?: 'TokenAmount';
1939
- formatted: string;
1940
- raw: string | bigint;
1941
- usd: number | null;
1942
- };
1943
- }>;
1944
- } | null;
1945
- } | null>;
1946
- };
1947
- };
1948
1870
  declare const ChainInfoFragment: graphql.DocumentNode;
1949
1871
  declare const TokenInfoFragment: graphql.DocumentNode;
1950
1872
  declare const CuratorInfoFragment: graphql.DocumentNode;
@@ -1982,11 +1904,6 @@ declare const Market: graphql.DocumentNode;
1982
1904
  declare const VaultPositions: graphql.DocumentNode;
1983
1905
  declare const MarketPositions: graphql.DocumentNode;
1984
1906
  declare const SupportedMarketIds: graphql.DocumentNode;
1985
- declare const VaultHistoryData: graphql.DocumentNode;
1986
- declare const VaultMarketAllocationHistoryData: graphql.DocumentNode;
1987
- declare const MarketBorrowHistoryData: graphql.DocumentNode;
1988
- declare const MarketIbrHistoryData: graphql.DocumentNode;
1989
- declare const MarketCollateralAtRiskHistoryData: graphql.DocumentNode;
1990
1907
  interface PossibleTypesResultData {
1991
1908
  possibleTypes: {
1992
1909
  [key: string]: string[];
@@ -1994,4 +1911,4 @@ interface PossibleTypesResultData {
1994
1911
  }
1995
1912
  declare const result: PossibleTypesResultData;
1996
1913
 
1997
- export { type AeraVault, type AeraVaultFilter, type AeraVaultPage, type AeraVaultPosition, type AeraVaultPositionFilter, type AeraVaultPositionPage, type Apy, ApyFragment, type ApyFragmentFragment, ApySide, type Chain, type ChainFilter, ChainInfoFragment, type ChainInfoFragmentFragment, type Curator, CuratorInfoFragment, type CuratorInfoFragmentFragment, type Exact, type Identity, IdentityResolver, type IdentityResolverOutput, type Incremental, type InputMaybe, type MakeEmpty, type MakeMaybe, type MakeOptional, Market, MarketBorrowHistoryData, type MarketBorrowHistoryDataQuery, type MarketBorrowHistoryDataQueryVariables, MarketCollateralAtRiskHistoryData, type MarketCollateralAtRiskHistoryDataQuery, type MarketCollateralAtRiskHistoryDataQueryVariables, MarketIbrHistoryData, type MarketIbrHistoryDataQuery, type MarketIbrHistoryDataQueryVariables, MarketPositions, type MarketPositionsQuery, type MarketPositionsQueryVariables, type MarketQuery, type MarketQueryVariables, MarketSummaries, type MarketSummariesQuery, type MarketSummariesQueryVariables, MarketSummaryFragment, type MarketSummaryFragmentFragment, 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 MorphoMarketPositionHistorical, type MorphoMarketPositionHistoricalEntry, type MorphoMarketPositionPage, type MorphoVault, type MorphoVaultFilter, type MorphoVaultHistorical, type MorphoVaultHistoricalEntry, type MorphoVaultMarketAllocation, type MorphoVaultMetadata, type MorphoVaultPage, type MorphoVaultPosition, type MorphoVaultPositionFilter, type MorphoVaultPositionHistorical, type MorphoVaultPositionHistoricalEntry, type MorphoVaultPositionPage, type OnchainAmount, type PageInfo, type PossibleTypesResultData, type Protocol, type Query, type QueryAeraVaultPositionsArgs, type QueryAeraVaultsArgs, type QueryChainsArgs, 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, 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, result as default };
1914
+ export { type AeraVault, type AeraVaultFilter, type AeraVaultPage, type AeraVaultPosition, type AeraVaultPositionFilter, type AeraVaultPositionPage, type Apy, ApyFragment, type ApyFragmentFragment, ApySide, ApyTimeframe, type Chain, type ChainFilter, ChainInfoFragment, type ChainInfoFragmentFragment, 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 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 MorphoMarketPositionHistorical, type MorphoMarketPositionHistoricalEntry, type MorphoMarketPositionPage, type MorphoVault, type MorphoVaultApyArgs, type MorphoVaultFilter, type MorphoVaultHistorical, type MorphoVaultHistoricalEntry, type MorphoVaultMarketAllocation, type MorphoVaultMetadata, type MorphoVaultPage, type MorphoVaultPosition, type MorphoVaultPositionFilter, type MorphoVaultPositionHistorical, type MorphoVaultPositionHistoricalEntry, type MorphoVaultPositionPage, 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, Vault, type VaultInput, VaultPositions, type VaultPositionsQuery, type VaultPositionsQueryVariables, VaultProtocol, type VaultQuery, type VaultQueryVariables, VaultSummaries, type VaultSummariesQuery, type VaultSummariesQueryVariables, VaultSummaryFragment, type VaultSummaryFragmentFragment, VaultType, result as default };
@@ -1,10 +1,10 @@
1
- import{gql as t}from"@apollo/client";var y=(n=>(n.Borrow="Borrow",n.Supply="Supply",n))(y||{}),m=(r=>(r.Base="base",r.Ens="ens",r.Farcaster="farcaster",r.Lens="lens",r.Nns="nns",r.Uni="uni",r.World="world",r))(m||{}),d=(n=>(n.Borrow="Borrow",n.Lend="Lend",n))(d||{}),c=(a=>(a.Btc="Btc",a.Eth="Eth",a.Stable="Stable",a))(c||{}),A=(e=>(e.Enzyme="enzyme",e.EulerEarn="euler_earn",e.EulerV2="euler_v2",e.Gearbox="gearbox",e.Lista="lista",e.Mellow="mellow",e.Midas="midas",e.Morpho="morpho",e.Napier="napier",e.Pendle="pendle",e.Reserve="reserve",e.Silo="silo",e.TurtleClub="turtle_club",e))(A||{}),g=(a=>(a.Index="index",a.Lending="lending",a.Staking="staking",a))(g||{}),s=t`
1
+ import{gql as e}from"@apollo/client";var y=(r=>(r.Borrow="Borrow",r.Supply="Supply",r))(y||{}),m=(a=>(a.OneDay="one_day",a.SevenDays="seven_days",a.ThirtyDays="thirty_days",a))(m||{}),d=(r=>(r.Generic="generic",r.MorphoV1="morpho_v1",r))(d||{}),c=(n=>(n.Base="base",n.Ens="ens",n.Farcaster="farcaster",n.Lens="lens",n.Nns="nns",n.Uni="uni",n.World="world",n))(c||{}),g=(r=>(r.Borrow="Borrow",r.Lend="Lend",r))(g||{}),A=(a=>(a.Btc="Btc",a.Eth="Eth",a.Stable="Stable",a))(A||{}),_=(t=>(t.Enzyme="enzyme",t.EulerEarn="euler_earn",t.EulerV2="euler_v2",t.Gearbox="gearbox",t.Lista="lista",t.Mellow="mellow",t.Midas="midas",t.Morpho="morpho",t.Napier="napier",t.Pendle="pendle",t.Reserve="reserve",t.Silo="silo",t.TurtleClub="turtle_club",t))(_||{}),b=(a=>(a.Index="index",a.Lending="lending",a.Staking="staking",a))(b||{}),s=e`
2
2
  fragment ChainInfoFragment on Chain {
3
3
  id
4
4
  name
5
5
  icon
6
6
  }
7
- `,o=t`
7
+ `,o=e`
8
8
  fragment TokenInfoFragment on Token {
9
9
  address
10
10
  symbol
@@ -12,13 +12,13 @@ import{gql as t}from"@apollo/client";var y=(n=>(n.Borrow="Borrow",n.Supply="Supp
12
12
  icon
13
13
  category
14
14
  }
15
- `,u=t`
15
+ `,u=e`
16
16
  fragment CuratorInfoFragment on Curator {
17
17
  name
18
18
  image
19
19
  url
20
20
  }
21
- `,i=t`
21
+ `,i=e`
22
22
  fragment ApyFragment on Apy {
23
23
  base
24
24
  rewards {
@@ -30,7 +30,7 @@ import{gql as t}from"@apollo/client";var y=(n=>(n.Borrow="Borrow",n.Supply="Supp
30
30
  total
31
31
  fee
32
32
  }
33
- ${o}`,l=t`
33
+ ${o}`,l=e`
34
34
  fragment VaultSummaryFragment on MorphoVault {
35
35
  chain {
36
36
  ...ChainInfoFragment
@@ -82,7 +82,7 @@ import{gql as t}from"@apollo/client";var y=(n=>(n.Borrow="Borrow",n.Supply="Supp
82
82
  ${s}
83
83
  ${o}
84
84
  ${u}
85
- ${i}`,p=t`
85
+ ${i}`,p=e`
86
86
  fragment MarketSummaryFragment on MorphoMarket {
87
87
  chain {
88
88
  ...ChainInfoFragment
@@ -139,7 +139,7 @@ ${i}`,p=t`
139
139
  }
140
140
  ${s}
141
141
  ${o}
142
- ${i}`,h=t`
142
+ ${i}`,M=e`
143
143
  query VaultSummaries($chainIds: [ChainId!]!, $vaultAddresses: [Address!]!) {
144
144
  morphoVaults(
145
145
  where: {chainId_in: $chainIds, vaultAddress_in: $vaultAddresses}
@@ -153,7 +153,7 @@ ${i}`,h=t`
153
153
  }
154
154
  }
155
155
  }
156
- ${l}`,k=t`
156
+ ${l}`,S=e`
157
157
  query MarketSummaries($chainIds: [ChainId!]!, $marketIds: [Hex!]!) {
158
158
  morphoMarkets(
159
159
  where: {chainId_in: $chainIds, marketId_in: $marketIds}
@@ -167,7 +167,7 @@ ${i}`,h=t`
167
167
  }
168
168
  }
169
169
  }
170
- ${p}`,M=t`
170
+ ${p}`,I=e`
171
171
  query Vault($chainId: ChainId!, $vaultAddress: Address!) {
172
172
  morphoVaults(where: {chainId_in: [$chainId], vaultAddress_in: [$vaultAddress]}) {
173
173
  items {
@@ -224,6 +224,12 @@ ${i}`,h=t`
224
224
  raw
225
225
  formatted
226
226
  }
227
+ liquidityInMarket {
228
+ raw
229
+ formatted
230
+ usd
231
+ }
232
+ utilization
227
233
  }
228
234
  enabled
229
235
  position {
@@ -247,7 +253,7 @@ ${i}`,h=t`
247
253
  ${l}
248
254
  ${s}
249
255
  ${o}
250
- ${i}`,I=t`
256
+ ${i}`,x=e`
251
257
  query Market($chainId: ChainId!, $marketId: Hex!) {
252
258
  morphoMarkets(where: {chainId_in: [$chainId], marketId_in: [$marketId]}) {
253
259
  items {
@@ -334,7 +340,7 @@ ${i}`,I=t`
334
340
  ${p}
335
341
  ${o}
336
342
  ${s}
337
- ${u}`,S=t`
343
+ ${u}`,T=e`
338
344
  query VaultPositions($chainIds: [ChainId!]!, $vaultAddresses: [Address!]!, $accountAddress: Address!) {
339
345
  morphoVaultPositions(
340
346
  where: {chainId_in: $chainIds, vaultAddress_in: $vaultAddresses, accountAddress_in: [$accountAddress]}
@@ -362,7 +368,7 @@ ${u}`,S=t`
362
368
  }
363
369
  }
364
370
  }
365
- `,x=t`
371
+ `,f=e`
366
372
  query MarketPositions($chainIds: [ChainId!]!, $marketIds: [Hex!]!, $accountAddress: Address!) {
367
373
  morphoMarketPositions(
368
374
  where: {chainId_in: $chainIds, marketId_in: $marketIds, accountAddress_in: [$accountAddress]}
@@ -405,7 +411,7 @@ ${u}`,S=t`
405
411
  }
406
412
  }
407
413
  }
408
- `,T=t`
414
+ `,w=e`
409
415
  query SupportedMarketIds($chainIds: [ChainId!]!, $vaultAddresses: [Address!]!) {
410
416
  morphoVaults(where: {chainId_in: $chainIds, vaultAddress_in: $vaultAddresses}) {
411
417
  items {
@@ -420,135 +426,4 @@ ${u}`,S=t`
420
426
  }
421
427
  }
422
428
  }
423
- `,w=t`
424
- query VaultHistoryData($chainId: ChainId!, $marketId: Address!) {
425
- morphoVaults(where: {chainId_in: [$chainId], vaultAddress_in: [$marketId]}) {
426
- items {
427
- historical {
428
- daily {
429
- supplyApy1d {
430
- total
431
- }
432
- totalSupplied {
433
- usd
434
- raw
435
- formatted
436
- }
437
- bucketTimestamp
438
- }
439
- hourly {
440
- supplyApy1d {
441
- total
442
- }
443
- totalSupplied {
444
- formatted
445
- raw
446
- usd
447
- }
448
- bucketTimestamp
449
- }
450
- }
451
- }
452
- }
453
- }
454
- `,f=t`
455
- query VaultMarketAllocationHistoryData($chainId: ChainId!, $marketIds: [Hex!]!) {
456
- morphoMarkets(where: {chainId_in: [$chainId], marketId_in: $marketIds}) {
457
- items {
458
- historical {
459
- hourly {
460
- bucketTimestamp
461
- totalSupplied {
462
- formatted
463
- }
464
- }
465
- daily {
466
- bucketTimestamp
467
- totalSupplied {
468
- formatted
469
- }
470
- }
471
- }
472
- name
473
- isIdle
474
- }
475
- }
476
- }
477
- `,C=t`
478
- query MarketBorrowHistoryData($chainId: ChainId!, $marketId: Hex!) {
479
- morphoMarkets(where: {chainId_in: [$chainId], marketId_in: [$marketId]}) {
480
- items {
481
- historical {
482
- daily {
483
- borrowApy1d {
484
- total
485
- }
486
- totalBorrowed {
487
- usd
488
- raw
489
- formatted
490
- }
491
- bucketTimestamp
492
- }
493
- hourly {
494
- borrowApy1d {
495
- total
496
- }
497
- totalBorrowed {
498
- formatted
499
- raw
500
- usd
501
- }
502
- bucketTimestamp
503
- }
504
- }
505
- }
506
- }
507
- }
508
- `,V=t`
509
- query MarketIBRHistoryData($chainId: ChainId!, $marketId: Hex!) {
510
- morphoMarkets(where: {chainId_in: [$chainId], marketId_in: [$marketId]}) {
511
- items {
512
- historical {
513
- daily {
514
- borrowApyInstantaneous {
515
- total
516
- }
517
- bucketTimestamp
518
- }
519
- hourly {
520
- borrowApyInstantaneous {
521
- total
522
- }
523
- bucketTimestamp
524
- }
525
- }
526
- }
527
- }
528
- }
529
- `,P=t`
530
- query MarketCollateralAtRiskHistoryData($chainId: ChainId!, $marketId: Hex!) {
531
- morphoMarkets(where: {chainId_in: [$chainId], marketId_in: [$marketId]}) {
532
- items {
533
- historical {
534
- daily {
535
- totalCollateral {
536
- formatted
537
- raw
538
- usd
539
- }
540
- bucketTimestamp
541
- }
542
- hourly {
543
- totalCollateral {
544
- formatted
545
- raw
546
- usd
547
- }
548
- bucketTimestamp
549
- }
550
- }
551
- }
552
- }
553
- }
554
- `,_={possibleTypes:{}},$=_;export{i as ApyFragment,y as ApySide,s as ChainInfoFragment,u as CuratorInfoFragment,m as IdentityResolver,I as Market,C as MarketBorrowHistoryData,P as MarketCollateralAtRiskHistoryData,V as MarketIbrHistoryData,x as MarketPositions,k as MarketSummaries,p as MarketSummaryFragment,d as MerklAction,T as SupportedMarketIds,c as TokenCategory,o as TokenInfoFragment,M as Vault,w as VaultHistoryData,f as VaultMarketAllocationHistoryData,S as VaultPositions,A as VaultProtocol,h as VaultSummaries,l as VaultSummaryFragment,g as VaultType,$ as default};
429
+ `,h={possibleTypes:{Erc4626Vault:["GenericErc4626Vault","MorphoVault"]}},V=h;export{i as ApyFragment,y as ApySide,m as ApyTimeframe,s as ChainInfoFragment,u as CuratorInfoFragment,d as Erc4626VaultProtocol,c as IdentityResolver,x as Market,f as MarketPositions,S as MarketSummaries,p as MarketSummaryFragment,g as MerklAction,w as SupportedMarketIds,A as TokenCategory,o as TokenInfoFragment,I as Vault,T as VaultPositions,_ as VaultProtocol,M as VaultSummaries,l as VaultSummaryFragment,b as VaultType,V as default};