@berachain/graphql 0.2.4-beta.1 → 0.2.4-beta.3

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.
@@ -2181,7 +2181,7 @@ type SupportedMarketIdsQuery = {
2181
2181
  };
2182
2182
  type VaultHistoryDataQueryVariables = Exact<{
2183
2183
  chainId: Scalars['ChainId']['input'];
2184
- marketId: Scalars['Address']['input'];
2184
+ vaultId: Scalars['Address']['input'];
2185
2185
  }>;
2186
2186
  type VaultHistoryDataQuery = {
2187
2187
  __typename?: 'Query';
@@ -2198,6 +2198,14 @@ type VaultHistoryDataQuery = {
2198
2198
  __typename?: 'Apy';
2199
2199
  total: number;
2200
2200
  };
2201
+ supplyApy30d: {
2202
+ __typename?: 'Apy';
2203
+ total: number;
2204
+ };
2205
+ supplyApy7d: {
2206
+ __typename?: 'Apy';
2207
+ total: number;
2208
+ };
2201
2209
  totalSupplied: {
2202
2210
  __typename?: 'TokenAmount';
2203
2211
  usd: number | null;
@@ -2212,11 +2220,19 @@ type VaultHistoryDataQuery = {
2212
2220
  __typename?: 'Apy';
2213
2221
  total: number;
2214
2222
  };
2223
+ supplyApy30d: {
2224
+ __typename?: 'Apy';
2225
+ total: number;
2226
+ };
2227
+ supplyApy7d: {
2228
+ __typename?: 'Apy';
2229
+ total: number;
2230
+ };
2215
2231
  totalSupplied: {
2216
2232
  __typename?: 'TokenAmount';
2217
- formatted: string;
2218
- raw: string;
2219
2233
  usd: number | null;
2234
+ raw: string;
2235
+ formatted: string;
2220
2236
  };
2221
2237
  }>;
2222
2238
  } | null;
@@ -2225,43 +2241,136 @@ type VaultHistoryDataQuery = {
2225
2241
  };
2226
2242
  type VaultMarketAllocationHistoryDataQueryVariables = Exact<{
2227
2243
  chainId: Scalars['ChainId']['input'];
2228
- marketIds: Array<Scalars['Hex']['input']> | Scalars['Hex']['input'];
2244
+ vaultId: Scalars['Address']['input'];
2229
2245
  }>;
2230
2246
  type VaultMarketAllocationHistoryDataQuery = {
2231
2247
  __typename?: 'Query';
2232
- morphoMarkets: {
2233
- __typename?: 'MorphoMarketPage';
2248
+ morphoVaults: {
2249
+ __typename?: 'MorphoVaultPage';
2234
2250
  items: Array<{
2235
- __typename?: 'MorphoMarket';
2251
+ __typename?: 'MorphoVault';
2236
2252
  name: string;
2237
- isIdle: boolean;
2238
- historical: {
2239
- __typename?: 'MorphoMarketHistorical';
2240
- hourly: Array<{
2241
- __typename?: 'MorphoMarketHistoricalEntry';
2242
- bucketTimestamp: number;
2243
- totalSupplied: {
2244
- __typename?: 'TokenAmount';
2245
- formatted: string;
2246
- };
2247
- }>;
2248
- daily: Array<{
2249
- __typename?: 'MorphoMarketHistoricalEntry';
2250
- bucketTimestamp: number;
2251
- totalSupplied: {
2252
- __typename?: 'TokenAmount';
2253
- formatted: string;
2253
+ marketAllocations: Array<{
2254
+ __typename?: 'MorphoVaultMarketAllocation';
2255
+ enabled: boolean;
2256
+ market: {
2257
+ __typename?: 'MorphoMarket';
2258
+ name: string;
2259
+ marketId: `0x${string}`;
2260
+ utilization: number;
2261
+ historical: {
2262
+ __typename?: 'MorphoMarketHistorical';
2263
+ daily: Array<{
2264
+ __typename?: 'MorphoMarketHistoricalEntry';
2265
+ bucketTimestamp: number;
2266
+ borrowApy1d: {
2267
+ __typename?: 'Apy';
2268
+ total: number;
2269
+ };
2270
+ borrowApy30d: {
2271
+ __typename?: 'Apy';
2272
+ total: number;
2273
+ };
2274
+ borrowApy7d: {
2275
+ __typename?: 'Apy';
2276
+ total: number;
2277
+ };
2278
+ supplyApy1d: {
2279
+ __typename?: 'Apy';
2280
+ total: number;
2281
+ };
2282
+ supplyApy7d: {
2283
+ __typename?: 'Apy';
2284
+ total: number;
2285
+ };
2286
+ supplyApy30d: {
2287
+ __typename?: 'Apy';
2288
+ total: number;
2289
+ };
2290
+ totalBorrowed: {
2291
+ __typename?: 'TokenAmount';
2292
+ formatted: string;
2293
+ raw: string;
2294
+ usd: number | null;
2295
+ };
2296
+ totalCollateral: {
2297
+ __typename?: 'TokenAmount';
2298
+ formatted: string;
2299
+ raw: string;
2300
+ usd: number | null;
2301
+ };
2302
+ totalSupplied: {
2303
+ __typename?: 'TokenAmount';
2304
+ formatted: string;
2305
+ raw: string;
2306
+ usd: number | null;
2307
+ };
2308
+ }>;
2309
+ hourly: Array<{
2310
+ __typename?: 'MorphoMarketHistoricalEntry';
2311
+ bucketTimestamp: number;
2312
+ borrowApy1d: {
2313
+ __typename?: 'Apy';
2314
+ total: number;
2315
+ };
2316
+ borrowApy30d: {
2317
+ __typename?: 'Apy';
2318
+ total: number;
2319
+ };
2320
+ borrowApy7d: {
2321
+ __typename?: 'Apy';
2322
+ total: number;
2323
+ };
2324
+ supplyApy1d: {
2325
+ __typename?: 'Apy';
2326
+ total: number;
2327
+ };
2328
+ supplyApy7d: {
2329
+ __typename?: 'Apy';
2330
+ total: number;
2331
+ };
2332
+ supplyApy30d: {
2333
+ __typename?: 'Apy';
2334
+ total: number;
2335
+ };
2336
+ totalBorrowed: {
2337
+ __typename?: 'TokenAmount';
2338
+ formatted: string;
2339
+ raw: string;
2340
+ usd: number | null;
2341
+ };
2342
+ totalCollateral: {
2343
+ __typename?: 'TokenAmount';
2344
+ formatted: string;
2345
+ raw: string;
2346
+ usd: number | null;
2347
+ };
2348
+ totalSupplied: {
2349
+ __typename?: 'TokenAmount';
2350
+ formatted: string;
2351
+ raw: string;
2352
+ usd: number | null;
2353
+ };
2354
+ }>;
2355
+ } | null;
2356
+ };
2357
+ vault: {
2358
+ __typename?: 'MorphoVault';
2359
+ decimals: number;
2360
+ asset: {
2361
+ __typename?: 'Token';
2362
+ decimals: number;
2254
2363
  };
2255
- }>;
2256
- } | null;
2364
+ };
2365
+ }>;
2257
2366
  } | null>;
2258
2367
  };
2259
2368
  };
2260
- type MarketBorrowHistoryDataQueryVariables = Exact<{
2369
+ type MarketHistoryDataQueryVariables = Exact<{
2261
2370
  chainId: Scalars['ChainId']['input'];
2262
2371
  marketId: Scalars['Hex']['input'];
2263
2372
  }>;
2264
- type MarketBorrowHistoryDataQuery = {
2373
+ type MarketHistoryDataQuery = {
2265
2374
  __typename?: 'Query';
2266
2375
  morphoMarkets: {
2267
2376
  __typename?: 'MorphoMarketPage';
@@ -2276,11 +2385,43 @@ type MarketBorrowHistoryDataQuery = {
2276
2385
  __typename?: 'Apy';
2277
2386
  total: number;
2278
2387
  };
2388
+ borrowApy30d: {
2389
+ __typename?: 'Apy';
2390
+ total: number;
2391
+ };
2392
+ borrowApy7d: {
2393
+ __typename?: 'Apy';
2394
+ total: number;
2395
+ };
2396
+ supplyApy1d: {
2397
+ __typename?: 'Apy';
2398
+ total: number;
2399
+ };
2400
+ supplyApy7d: {
2401
+ __typename?: 'Apy';
2402
+ total: number;
2403
+ };
2404
+ supplyApy30d: {
2405
+ __typename?: 'Apy';
2406
+ total: number;
2407
+ };
2279
2408
  totalBorrowed: {
2280
2409
  __typename?: 'TokenAmount';
2410
+ formatted: string;
2411
+ raw: string;
2281
2412
  usd: number | null;
2413
+ };
2414
+ totalCollateral: {
2415
+ __typename?: 'TokenAmount';
2416
+ formatted: string;
2282
2417
  raw: string;
2418
+ usd: number | null;
2419
+ };
2420
+ totalSupplied: {
2421
+ __typename?: 'TokenAmount';
2283
2422
  formatted: string;
2423
+ raw: string;
2424
+ usd: number | null;
2284
2425
  };
2285
2426
  }>;
2286
2427
  hourly: Array<{
@@ -2290,12 +2431,44 @@ type MarketBorrowHistoryDataQuery = {
2290
2431
  __typename?: 'Apy';
2291
2432
  total: number;
2292
2433
  };
2434
+ borrowApy30d: {
2435
+ __typename?: 'Apy';
2436
+ total: number;
2437
+ };
2438
+ borrowApy7d: {
2439
+ __typename?: 'Apy';
2440
+ total: number;
2441
+ };
2442
+ supplyApy1d: {
2443
+ __typename?: 'Apy';
2444
+ total: number;
2445
+ };
2446
+ supplyApy7d: {
2447
+ __typename?: 'Apy';
2448
+ total: number;
2449
+ };
2450
+ supplyApy30d: {
2451
+ __typename?: 'Apy';
2452
+ total: number;
2453
+ };
2293
2454
  totalBorrowed: {
2294
2455
  __typename?: 'TokenAmount';
2295
2456
  formatted: string;
2296
2457
  raw: string;
2297
2458
  usd: number | null;
2298
2459
  };
2460
+ totalCollateral: {
2461
+ __typename?: 'TokenAmount';
2462
+ formatted: string;
2463
+ raw: string;
2464
+ usd: number | null;
2465
+ };
2466
+ totalSupplied: {
2467
+ __typename?: 'TokenAmount';
2468
+ formatted: string;
2469
+ raw: string;
2470
+ usd: number | null;
2471
+ };
2299
2472
  }>;
2300
2473
  } | null;
2301
2474
  } | null>;
@@ -2333,42 +2506,6 @@ type MarketIbrHistoryDataQuery = {
2333
2506
  } | null>;
2334
2507
  };
2335
2508
  };
2336
- type MarketCollateralAtRiskHistoryDataQueryVariables = Exact<{
2337
- chainId: Scalars['ChainId']['input'];
2338
- marketId: Scalars['Hex']['input'];
2339
- }>;
2340
- type MarketCollateralAtRiskHistoryDataQuery = {
2341
- __typename?: 'Query';
2342
- morphoMarkets: {
2343
- __typename?: 'MorphoMarketPage';
2344
- items: Array<{
2345
- __typename?: 'MorphoMarket';
2346
- historical: {
2347
- __typename?: 'MorphoMarketHistorical';
2348
- daily: Array<{
2349
- __typename?: 'MorphoMarketHistoricalEntry';
2350
- bucketTimestamp: number;
2351
- totalCollateral: {
2352
- __typename?: 'TokenAmount';
2353
- formatted: string;
2354
- raw: string;
2355
- usd: number | null;
2356
- };
2357
- }>;
2358
- hourly: Array<{
2359
- __typename?: 'MorphoMarketHistoricalEntry';
2360
- bucketTimestamp: number;
2361
- totalCollateral: {
2362
- __typename?: 'TokenAmount';
2363
- formatted: string;
2364
- raw: string;
2365
- usd: number | null;
2366
- };
2367
- }>;
2368
- } | null;
2369
- } | null>;
2370
- };
2371
- };
2372
2509
  declare const ChainInfoFragment: graphql.DocumentNode;
2373
2510
  declare const TokenInfoFragment: graphql.DocumentNode;
2374
2511
  declare const CuratorInfoFragment: graphql.DocumentNode;
@@ -2408,9 +2545,8 @@ declare const MarketPositions: graphql.DocumentNode;
2408
2545
  declare const SupportedMarketIds: graphql.DocumentNode;
2409
2546
  declare const VaultHistoryData: graphql.DocumentNode;
2410
2547
  declare const VaultMarketAllocationHistoryData: graphql.DocumentNode;
2411
- declare const MarketBorrowHistoryData: graphql.DocumentNode;
2548
+ declare const MarketHistoryData: graphql.DocumentNode;
2412
2549
  declare const MarketIbrHistoryData: graphql.DocumentNode;
2413
- declare const MarketCollateralAtRiskHistoryData: graphql.DocumentNode;
2414
2550
  interface PossibleTypesResultData {
2415
2551
  possibleTypes: {
2416
2552
  [key: string]: string[];
@@ -2418,4 +2554,4 @@ interface PossibleTypesResultData {
2418
2554
  }
2419
2555
  declare const result: PossibleTypesResultData;
2420
2556
 
2421
- 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, 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 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 };
2557
+ 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, 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 };
@@ -1,4 +1,4 @@
1
- import{gql as t}from"@apollo/client";var y=(n=>(n.Borrow="Borrow",n.Supply="Supply",n))(y||{}),d=(e=>(e.OneDay="one_day",e.SevenDays="seven_days",e.ThirtyDays="thirty_days",e))(d||{}),m=(e=>(e.Generic="generic",e.MorphoV1="morpho_v1",e.MorphoV2="morpho_v2",e))(m||{}),c=(r=>(r.Base="base",r.Ens="ens",r.Farcaster="farcaster",r.Lens="lens",r.Nns="nns",r.Uni="uni",r.World="world",r))(c||{}),A=(n=>(n.Borrow="Borrow",n.Lend="Lend",n))(A||{}),_=(e=>(e.Btc="Btc",e.Eth="Eth",e.Stable="Stable",e))(_||{}),g=(a=>(a.Enzyme="enzyme",a.EulerEarn="euler_earn",a.EulerV2="euler_v2",a.Gearbox="gearbox",a.Lista="lista",a.Mellow="mellow",a.Midas="midas",a.Morpho="morpho",a.Napier="napier",a.Pendle="pendle",a.Reserve="reserve",a.Silo="silo",a.TurtleClub="turtle_club",a))(g||{}),h=(e=>(e.Index="index",e.Lending="lending",e.Staking="staking",e))(h||{}),s=t`
1
+ import{gql as t}from"@apollo/client";var y=(n=>(n.Borrow="Borrow",n.Supply="Supply",n))(y||{}),d=(e=>(e.OneDay="one_day",e.SevenDays="seven_days",e.ThirtyDays="thirty_days",e))(d||{}),m=(e=>(e.Generic="generic",e.MorphoV1="morpho_v1",e.MorphoV2="morpho_v2",e))(m||{}),A=(r=>(r.Base="base",r.Ens="ens",r.Farcaster="farcaster",r.Lens="lens",r.Nns="nns",r.Uni="uni",r.World="world",r))(A||{}),c=(n=>(n.Borrow="Borrow",n.Lend="Lend",n))(c||{}),_=(e=>(e.Btc="Btc",e.Eth="Eth",e.Stable="Stable",e))(_||{}),g=(a=>(a.Enzyme="enzyme",a.EulerEarn="euler_earn",a.EulerV2="euler_v2",a.Gearbox="gearbox",a.Lista="lista",a.Mellow="mellow",a.Midas="midas",a.Morpho="morpho",a.Napier="napier",a.Pendle="pendle",a.Reserve="reserve",a.Silo="silo",a.TurtleClub="turtle_club",a))(g||{}),b=(e=>(e.Index="index",e.Lending="lending",e.Staking="staking",e))(b||{}),s=t`
2
2
  fragment ChainInfoFragment on Chain {
3
3
  id
4
4
  name
@@ -344,7 +344,7 @@ ${p}`,x=t`
344
344
  ${i}
345
345
  ${o}
346
346
  ${s}
347
- ${u}`,T=t`
347
+ ${u}`,w=t`
348
348
  query VaultPositions($chainIds: [ChainId!]!, $vaultAddresses: [Address!]!, $accountAddress: Address!) {
349
349
  morphoVaultPositions(
350
350
  where: {chainId_in: $chainIds, vaultAddress_in: $vaultAddresses, accountAddress_in: [$accountAddress]}
@@ -372,7 +372,7 @@ ${u}`,T=t`
372
372
  }
373
373
  }
374
374
  }
375
- `,w=t`
375
+ `,T=t`
376
376
  query MarketPositions($chainIds: [ChainId!]!, $marketIds: [Hex!]!, $accountAddress: Address!) {
377
377
  morphoMarketPositions(
378
378
  where: {chainId_in: $chainIds, marketId_in: $marketIds, accountAddress_in: [$accountAddress]}
@@ -431,14 +431,20 @@ ${u}`,T=t`
431
431
  }
432
432
  }
433
433
  `,C=t`
434
- query VaultHistoryData($chainId: ChainId!, $marketId: Address!) {
435
- morphoVaults(where: {chainId_in: [$chainId], vaultAddress_in: [$marketId]}) {
434
+ query VaultHistoryData($chainId: ChainId!, $vaultId: Address!) {
435
+ morphoVaults(where: {chainId_in: [$chainId], vaultAddress_in: [$vaultId]}) {
436
436
  items {
437
437
  historical {
438
438
  daily {
439
439
  supplyApy1d {
440
440
  total
441
441
  }
442
+ supplyApy30d {
443
+ total
444
+ }
445
+ supplyApy7d {
446
+ total
447
+ }
442
448
  totalSupplied {
443
449
  usd
444
450
  raw
@@ -450,10 +456,16 @@ ${u}`,T=t`
450
456
  supplyApy1d {
451
457
  total
452
458
  }
459
+ supplyApy30d {
460
+ total
461
+ }
462
+ supplyApy7d {
463
+ total
464
+ }
453
465
  totalSupplied {
454
- formatted
455
- raw
456
466
  usd
467
+ raw
468
+ formatted
457
469
  }
458
470
  bucketTimestamp
459
471
  }
@@ -462,60 +474,183 @@ ${u}`,T=t`
462
474
  }
463
475
  }
464
476
  `,V=t`
465
- query VaultMarketAllocationHistoryData($chainId: ChainId!, $marketIds: [Hex!]!) {
466
- morphoMarkets(where: {chainId_in: [$chainId], marketId_in: $marketIds}) {
477
+ query VaultMarketAllocationHistoryData($chainId: ChainId!, $vaultId: Address!) {
478
+ morphoVaults(where: {chainId_in: [$chainId], vaultAddress_in: [$vaultId]}) {
467
479
  items {
468
- historical {
469
- hourly {
470
- bucketTimestamp
471
- totalSupplied {
472
- formatted
480
+ name
481
+ marketAllocations {
482
+ market {
483
+ historical {
484
+ daily {
485
+ bucketTimestamp
486
+ borrowApy1d {
487
+ total
488
+ }
489
+ borrowApy30d {
490
+ total
491
+ }
492
+ borrowApy7d {
493
+ total
494
+ }
495
+ supplyApy1d {
496
+ total
497
+ }
498
+ supplyApy7d {
499
+ total
500
+ }
501
+ supplyApy30d {
502
+ total
503
+ }
504
+ totalBorrowed {
505
+ formatted
506
+ raw
507
+ usd
508
+ }
509
+ totalCollateral {
510
+ formatted
511
+ raw
512
+ usd
513
+ }
514
+ totalSupplied {
515
+ formatted
516
+ raw
517
+ usd
518
+ }
519
+ }
520
+ hourly {
521
+ bucketTimestamp
522
+ borrowApy1d {
523
+ total
524
+ }
525
+ borrowApy30d {
526
+ total
527
+ }
528
+ borrowApy7d {
529
+ total
530
+ }
531
+ supplyApy1d {
532
+ total
533
+ }
534
+ supplyApy7d {
535
+ total
536
+ }
537
+ supplyApy30d {
538
+ total
539
+ }
540
+ totalBorrowed {
541
+ formatted
542
+ raw
543
+ usd
544
+ }
545
+ totalCollateral {
546
+ formatted
547
+ raw
548
+ usd
549
+ }
550
+ totalSupplied {
551
+ formatted
552
+ raw
553
+ usd
554
+ }
555
+ }
473
556
  }
557
+ name
558
+ marketId
559
+ utilization
474
560
  }
475
- daily {
476
- bucketTimestamp
477
- totalSupplied {
478
- formatted
561
+ enabled
562
+ vault {
563
+ decimals
564
+ asset {
565
+ decimals
479
566
  }
480
567
  }
481
568
  }
482
- name
483
- isIdle
484
569
  }
485
570
  }
486
571
  }
487
572
  `,$=t`
488
- query MarketBorrowHistoryData($chainId: ChainId!, $marketId: Hex!) {
573
+ query MarketHistoryData($chainId: ChainId!, $marketId: Hex!) {
489
574
  morphoMarkets(where: {chainId_in: [$chainId], marketId_in: [$marketId]}) {
490
575
  items {
491
576
  historical {
492
577
  daily {
578
+ bucketTimestamp
493
579
  borrowApy1d {
494
580
  total
495
581
  }
582
+ borrowApy30d {
583
+ total
584
+ }
585
+ borrowApy7d {
586
+ total
587
+ }
588
+ supplyApy1d {
589
+ total
590
+ }
591
+ supplyApy7d {
592
+ total
593
+ }
594
+ supplyApy30d {
595
+ total
596
+ }
496
597
  totalBorrowed {
598
+ formatted
599
+ raw
497
600
  usd
601
+ }
602
+ totalCollateral {
603
+ formatted
498
604
  raw
605
+ usd
606
+ }
607
+ totalSupplied {
499
608
  formatted
609
+ raw
610
+ usd
500
611
  }
501
- bucketTimestamp
502
612
  }
503
613
  hourly {
614
+ bucketTimestamp
504
615
  borrowApy1d {
505
616
  total
506
617
  }
618
+ borrowApy30d {
619
+ total
620
+ }
621
+ borrowApy7d {
622
+ total
623
+ }
624
+ supplyApy1d {
625
+ total
626
+ }
627
+ supplyApy7d {
628
+ total
629
+ }
630
+ supplyApy30d {
631
+ total
632
+ }
507
633
  totalBorrowed {
508
634
  formatted
509
635
  raw
510
636
  usd
511
637
  }
512
- bucketTimestamp
638
+ totalCollateral {
639
+ formatted
640
+ raw
641
+ usd
642
+ }
643
+ totalSupplied {
644
+ formatted
645
+ raw
646
+ usd
647
+ }
513
648
  }
514
649
  }
515
650
  }
516
651
  }
517
652
  }
518
- `,P=t`
653
+ `,v=t`
519
654
  query MarketIBRHistoryData($chainId: ChainId!, $marketId: Hex!) {
520
655
  morphoMarkets(where: {chainId_in: [$chainId], marketId_in: [$marketId]}) {
521
656
  items {
@@ -536,29 +671,4 @@ ${u}`,T=t`
536
671
  }
537
672
  }
538
673
  }
539
- `,v=t`
540
- query MarketCollateralAtRiskHistoryData($chainId: ChainId!, $marketId: Hex!) {
541
- morphoMarkets(where: {chainId_in: [$chainId], marketId_in: [$marketId]}) {
542
- items {
543
- historical {
544
- daily {
545
- totalCollateral {
546
- formatted
547
- raw
548
- usd
549
- }
550
- bucketTimestamp
551
- }
552
- hourly {
553
- totalCollateral {
554
- formatted
555
- raw
556
- usd
557
- }
558
- bucketTimestamp
559
- }
560
- }
561
- }
562
- }
563
- }
564
- `,k={possibleTypes:{Adapter:["MarketV1Adapter","UnknownAdapter","VaultV1Adapter"],Cap:["AdapterCap","CollateralExposureCap","MarketV1ExposureCap","UnknownCap"],Erc4626Vault:["GenericErc4626Vault","MorphoVault","MorphoVaultV2"]}},H=k;export{p as ApyFragment,y as ApySide,d as ApyTimeframe,s as ChainInfoFragment,u as CuratorInfoFragment,m as Erc4626VaultProtocol,c as IdentityResolver,x as Market,$ as MarketBorrowHistoryData,v as MarketCollateralAtRiskHistoryData,P as MarketIbrHistoryData,w as MarketPositions,S as MarketSummaries,i as MarketSummaryFragment,A as MerklAction,f as SupportedMarketIds,_ as TokenCategory,o as TokenInfoFragment,I as Vault,C as VaultHistoryData,V as VaultMarketAllocationHistoryData,T as VaultPositions,g as VaultProtocol,M as VaultSummaries,l as VaultSummaryFragment,h as VaultType,H as default};
674
+ `,h={possibleTypes:{Adapter:["MarketV1Adapter","UnknownAdapter","VaultV1Adapter"],Cap:["AdapterCap","CollateralExposureCap","MarketV1ExposureCap","UnknownCap"],Erc4626Vault:["GenericErc4626Vault","MorphoVault","MorphoVaultV2"]}},P=h;export{p as ApyFragment,y as ApySide,d as ApyTimeframe,s as ChainInfoFragment,u as CuratorInfoFragment,m as Erc4626VaultProtocol,A as IdentityResolver,x as Market,$ as MarketHistoryData,v as MarketIbrHistoryData,T as MarketPositions,S as MarketSummaries,i as MarketSummaryFragment,c as MerklAction,f as SupportedMarketIds,_ as TokenCategory,o as TokenInfoFragment,I as Vault,C as VaultHistoryData,V as VaultMarketAllocationHistoryData,w as VaultPositions,g as VaultProtocol,M as VaultSummaries,l as VaultSummaryFragment,b as VaultType,P as default};