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

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,135 @@ 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';
2236
- 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;
2251
+ __typename?: 'MorphoVault';
2252
+ marketAllocations: Array<{
2253
+ __typename?: 'MorphoVaultMarketAllocation';
2254
+ enabled: boolean;
2255
+ market: {
2256
+ __typename?: 'MorphoMarket';
2257
+ name: string;
2258
+ marketId: `0x${string}`;
2259
+ utilization: number;
2260
+ historical: {
2261
+ __typename?: 'MorphoMarketHistorical';
2262
+ daily: Array<{
2263
+ __typename?: 'MorphoMarketHistoricalEntry';
2264
+ bucketTimestamp: number;
2265
+ borrowApy1d: {
2266
+ __typename?: 'Apy';
2267
+ total: number;
2268
+ };
2269
+ borrowApy30d: {
2270
+ __typename?: 'Apy';
2271
+ total: number;
2272
+ };
2273
+ borrowApy7d: {
2274
+ __typename?: 'Apy';
2275
+ total: number;
2276
+ };
2277
+ supplyApy1d: {
2278
+ __typename?: 'Apy';
2279
+ total: number;
2280
+ };
2281
+ supplyApy7d: {
2282
+ __typename?: 'Apy';
2283
+ total: number;
2284
+ };
2285
+ supplyApy30d: {
2286
+ __typename?: 'Apy';
2287
+ total: number;
2288
+ };
2289
+ totalBorrowed: {
2290
+ __typename?: 'TokenAmount';
2291
+ formatted: string;
2292
+ raw: string;
2293
+ usd: number | null;
2294
+ };
2295
+ totalCollateral: {
2296
+ __typename?: 'TokenAmount';
2297
+ formatted: string;
2298
+ raw: string;
2299
+ usd: number | null;
2300
+ };
2301
+ totalSupplied: {
2302
+ __typename?: 'TokenAmount';
2303
+ formatted: string;
2304
+ raw: string;
2305
+ usd: number | null;
2306
+ };
2307
+ }>;
2308
+ hourly: Array<{
2309
+ __typename?: 'MorphoMarketHistoricalEntry';
2310
+ bucketTimestamp: number;
2311
+ borrowApy1d: {
2312
+ __typename?: 'Apy';
2313
+ total: number;
2314
+ };
2315
+ borrowApy30d: {
2316
+ __typename?: 'Apy';
2317
+ total: number;
2318
+ };
2319
+ borrowApy7d: {
2320
+ __typename?: 'Apy';
2321
+ total: number;
2322
+ };
2323
+ supplyApy1d: {
2324
+ __typename?: 'Apy';
2325
+ total: number;
2326
+ };
2327
+ supplyApy7d: {
2328
+ __typename?: 'Apy';
2329
+ total: number;
2330
+ };
2331
+ supplyApy30d: {
2332
+ __typename?: 'Apy';
2333
+ total: number;
2334
+ };
2335
+ totalBorrowed: {
2336
+ __typename?: 'TokenAmount';
2337
+ formatted: string;
2338
+ raw: string;
2339
+ usd: number | null;
2340
+ };
2341
+ totalCollateral: {
2342
+ __typename?: 'TokenAmount';
2343
+ formatted: string;
2344
+ raw: string;
2345
+ usd: number | null;
2346
+ };
2347
+ totalSupplied: {
2348
+ __typename?: 'TokenAmount';
2349
+ formatted: string;
2350
+ raw: string;
2351
+ usd: number | null;
2352
+ };
2353
+ }>;
2354
+ } | null;
2355
+ };
2356
+ vault: {
2357
+ __typename?: 'MorphoVault';
2358
+ decimals: number;
2359
+ asset: {
2360
+ __typename?: 'Token';
2361
+ decimals: number;
2254
2362
  };
2255
- }>;
2256
- } | null;
2363
+ };
2364
+ }>;
2257
2365
  } | null>;
2258
2366
  };
2259
2367
  };
2260
- type MarketBorrowHistoryDataQueryVariables = Exact<{
2368
+ type MarketHistoryDataQueryVariables = Exact<{
2261
2369
  chainId: Scalars['ChainId']['input'];
2262
2370
  marketId: Scalars['Hex']['input'];
2263
2371
  }>;
2264
- type MarketBorrowHistoryDataQuery = {
2372
+ type MarketHistoryDataQuery = {
2265
2373
  __typename?: 'Query';
2266
2374
  morphoMarkets: {
2267
2375
  __typename?: 'MorphoMarketPage';
@@ -2276,11 +2384,43 @@ type MarketBorrowHistoryDataQuery = {
2276
2384
  __typename?: 'Apy';
2277
2385
  total: number;
2278
2386
  };
2387
+ borrowApy30d: {
2388
+ __typename?: 'Apy';
2389
+ total: number;
2390
+ };
2391
+ borrowApy7d: {
2392
+ __typename?: 'Apy';
2393
+ total: number;
2394
+ };
2395
+ supplyApy1d: {
2396
+ __typename?: 'Apy';
2397
+ total: number;
2398
+ };
2399
+ supplyApy7d: {
2400
+ __typename?: 'Apy';
2401
+ total: number;
2402
+ };
2403
+ supplyApy30d: {
2404
+ __typename?: 'Apy';
2405
+ total: number;
2406
+ };
2279
2407
  totalBorrowed: {
2280
2408
  __typename?: 'TokenAmount';
2409
+ formatted: string;
2410
+ raw: string;
2281
2411
  usd: number | null;
2412
+ };
2413
+ totalCollateral: {
2414
+ __typename?: 'TokenAmount';
2415
+ formatted: string;
2282
2416
  raw: string;
2417
+ usd: number | null;
2418
+ };
2419
+ totalSupplied: {
2420
+ __typename?: 'TokenAmount';
2283
2421
  formatted: string;
2422
+ raw: string;
2423
+ usd: number | null;
2284
2424
  };
2285
2425
  }>;
2286
2426
  hourly: Array<{
@@ -2290,12 +2430,44 @@ type MarketBorrowHistoryDataQuery = {
2290
2430
  __typename?: 'Apy';
2291
2431
  total: number;
2292
2432
  };
2433
+ borrowApy30d: {
2434
+ __typename?: 'Apy';
2435
+ total: number;
2436
+ };
2437
+ borrowApy7d: {
2438
+ __typename?: 'Apy';
2439
+ total: number;
2440
+ };
2441
+ supplyApy1d: {
2442
+ __typename?: 'Apy';
2443
+ total: number;
2444
+ };
2445
+ supplyApy7d: {
2446
+ __typename?: 'Apy';
2447
+ total: number;
2448
+ };
2449
+ supplyApy30d: {
2450
+ __typename?: 'Apy';
2451
+ total: number;
2452
+ };
2293
2453
  totalBorrowed: {
2294
2454
  __typename?: 'TokenAmount';
2295
2455
  formatted: string;
2296
2456
  raw: string;
2297
2457
  usd: number | null;
2298
2458
  };
2459
+ totalCollateral: {
2460
+ __typename?: 'TokenAmount';
2461
+ formatted: string;
2462
+ raw: string;
2463
+ usd: number | null;
2464
+ };
2465
+ totalSupplied: {
2466
+ __typename?: 'TokenAmount';
2467
+ formatted: string;
2468
+ raw: string;
2469
+ usd: number | null;
2470
+ };
2299
2471
  }>;
2300
2472
  } | null;
2301
2473
  } | null>;
@@ -2333,42 +2505,6 @@ type MarketIbrHistoryDataQuery = {
2333
2505
  } | null>;
2334
2506
  };
2335
2507
  };
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
2508
  declare const ChainInfoFragment: graphql.DocumentNode;
2373
2509
  declare const TokenInfoFragment: graphql.DocumentNode;
2374
2510
  declare const CuratorInfoFragment: graphql.DocumentNode;
@@ -2408,9 +2544,8 @@ declare const MarketPositions: graphql.DocumentNode;
2408
2544
  declare const SupportedMarketIds: graphql.DocumentNode;
2409
2545
  declare const VaultHistoryData: graphql.DocumentNode;
2410
2546
  declare const VaultMarketAllocationHistoryData: graphql.DocumentNode;
2411
- declare const MarketBorrowHistoryData: graphql.DocumentNode;
2547
+ declare const MarketHistoryData: graphql.DocumentNode;
2412
2548
  declare const MarketIbrHistoryData: graphql.DocumentNode;
2413
- declare const MarketCollateralAtRiskHistoryData: graphql.DocumentNode;
2414
2549
  interface PossibleTypesResultData {
2415
2550
  possibleTypes: {
2416
2551
  [key: string]: string[];
@@ -2418,4 +2553,4 @@ interface PossibleTypesResultData {
2418
2553
  }
2419
2554
  declare const result: PossibleTypesResultData;
2420
2555
 
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 };
2556
+ 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 };