@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.
- package/dist/bend/whisk.codegen.cjs +173 -64
- package/dist/bend/whisk.codegen.d.cts +203 -68
- package/dist/bend/whisk.codegen.d.ts +203 -68
- package/dist/bend/whisk.codegen.mjs +159 -50
- package/dist/honey/honey.codegen.cjs +13 -15
- package/dist/honey/honey.codegen.d.cts +188 -11
- package/dist/honey/honey.codegen.d.ts +188 -11
- package/dist/honey/honey.codegen.mjs +13 -15
- package/package.json +1 -1
|
@@ -2181,7 +2181,7 @@ type SupportedMarketIdsQuery = {
|
|
|
2181
2181
|
};
|
|
2182
2182
|
type VaultHistoryDataQueryVariables = Exact<{
|
|
2183
2183
|
chainId: Scalars['ChainId']['input'];
|
|
2184
|
-
|
|
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
|
-
|
|
2244
|
+
vaultId: Scalars['Address']['input'];
|
|
2229
2245
|
}>;
|
|
2230
2246
|
type VaultMarketAllocationHistoryDataQuery = {
|
|
2231
2247
|
__typename?: 'Query';
|
|
2232
|
-
|
|
2233
|
-
__typename?: '
|
|
2248
|
+
morphoVaults: {
|
|
2249
|
+
__typename?: 'MorphoVaultPage';
|
|
2234
2250
|
items: Array<{
|
|
2235
|
-
__typename?: '
|
|
2236
|
-
|
|
2237
|
-
|
|
2238
|
-
|
|
2239
|
-
|
|
2240
|
-
|
|
2241
|
-
|
|
2242
|
-
|
|
2243
|
-
|
|
2244
|
-
|
|
2245
|
-
|
|
2246
|
-
|
|
2247
|
-
|
|
2248
|
-
|
|
2249
|
-
|
|
2250
|
-
|
|
2251
|
-
|
|
2252
|
-
|
|
2253
|
-
|
|
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
|
-
}
|
|
2363
|
+
};
|
|
2364
|
+
}>;
|
|
2257
2365
|
} | null>;
|
|
2258
2366
|
};
|
|
2259
2367
|
};
|
|
2260
|
-
type
|
|
2368
|
+
type MarketHistoryDataQueryVariables = Exact<{
|
|
2261
2369
|
chainId: Scalars['ChainId']['input'];
|
|
2262
2370
|
marketId: Scalars['Hex']['input'];
|
|
2263
2371
|
}>;
|
|
2264
|
-
type
|
|
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
|
|
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,
|
|
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 };
|
|
@@ -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||{}),
|
|
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}`,
|
|
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
|
-
`,
|
|
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!, $
|
|
435
|
-
morphoVaults(where: {chainId_in: [$chainId], vaultAddress_in: [$
|
|
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,182 @@ ${u}`,T=t`
|
|
|
462
474
|
}
|
|
463
475
|
}
|
|
464
476
|
`,V=t`
|
|
465
|
-
query VaultMarketAllocationHistoryData($chainId: ChainId!, $
|
|
466
|
-
|
|
477
|
+
query VaultMarketAllocationHistoryData($chainId: ChainId!, $vaultId: Address!) {
|
|
478
|
+
morphoVaults(where: {chainId_in: [$chainId], vaultAddress_in: [$vaultId]}) {
|
|
467
479
|
items {
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
480
|
+
marketAllocations {
|
|
481
|
+
market {
|
|
482
|
+
historical {
|
|
483
|
+
daily {
|
|
484
|
+
bucketTimestamp
|
|
485
|
+
borrowApy1d {
|
|
486
|
+
total
|
|
487
|
+
}
|
|
488
|
+
borrowApy30d {
|
|
489
|
+
total
|
|
490
|
+
}
|
|
491
|
+
borrowApy7d {
|
|
492
|
+
total
|
|
493
|
+
}
|
|
494
|
+
supplyApy1d {
|
|
495
|
+
total
|
|
496
|
+
}
|
|
497
|
+
supplyApy7d {
|
|
498
|
+
total
|
|
499
|
+
}
|
|
500
|
+
supplyApy30d {
|
|
501
|
+
total
|
|
502
|
+
}
|
|
503
|
+
totalBorrowed {
|
|
504
|
+
formatted
|
|
505
|
+
raw
|
|
506
|
+
usd
|
|
507
|
+
}
|
|
508
|
+
totalCollateral {
|
|
509
|
+
formatted
|
|
510
|
+
raw
|
|
511
|
+
usd
|
|
512
|
+
}
|
|
513
|
+
totalSupplied {
|
|
514
|
+
formatted
|
|
515
|
+
raw
|
|
516
|
+
usd
|
|
517
|
+
}
|
|
518
|
+
}
|
|
519
|
+
hourly {
|
|
520
|
+
bucketTimestamp
|
|
521
|
+
borrowApy1d {
|
|
522
|
+
total
|
|
523
|
+
}
|
|
524
|
+
borrowApy30d {
|
|
525
|
+
total
|
|
526
|
+
}
|
|
527
|
+
borrowApy7d {
|
|
528
|
+
total
|
|
529
|
+
}
|
|
530
|
+
supplyApy1d {
|
|
531
|
+
total
|
|
532
|
+
}
|
|
533
|
+
supplyApy7d {
|
|
534
|
+
total
|
|
535
|
+
}
|
|
536
|
+
supplyApy30d {
|
|
537
|
+
total
|
|
538
|
+
}
|
|
539
|
+
totalBorrowed {
|
|
540
|
+
formatted
|
|
541
|
+
raw
|
|
542
|
+
usd
|
|
543
|
+
}
|
|
544
|
+
totalCollateral {
|
|
545
|
+
formatted
|
|
546
|
+
raw
|
|
547
|
+
usd
|
|
548
|
+
}
|
|
549
|
+
totalSupplied {
|
|
550
|
+
formatted
|
|
551
|
+
raw
|
|
552
|
+
usd
|
|
553
|
+
}
|
|
554
|
+
}
|
|
473
555
|
}
|
|
556
|
+
name
|
|
557
|
+
marketId
|
|
558
|
+
utilization
|
|
474
559
|
}
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
560
|
+
enabled
|
|
561
|
+
vault {
|
|
562
|
+
decimals
|
|
563
|
+
asset {
|
|
564
|
+
decimals
|
|
479
565
|
}
|
|
480
566
|
}
|
|
481
567
|
}
|
|
482
|
-
name
|
|
483
|
-
isIdle
|
|
484
568
|
}
|
|
485
569
|
}
|
|
486
570
|
}
|
|
487
571
|
`,$=t`
|
|
488
|
-
query
|
|
572
|
+
query MarketHistoryData($chainId: ChainId!, $marketId: Hex!) {
|
|
489
573
|
morphoMarkets(where: {chainId_in: [$chainId], marketId_in: [$marketId]}) {
|
|
490
574
|
items {
|
|
491
575
|
historical {
|
|
492
576
|
daily {
|
|
577
|
+
bucketTimestamp
|
|
493
578
|
borrowApy1d {
|
|
494
579
|
total
|
|
495
580
|
}
|
|
581
|
+
borrowApy30d {
|
|
582
|
+
total
|
|
583
|
+
}
|
|
584
|
+
borrowApy7d {
|
|
585
|
+
total
|
|
586
|
+
}
|
|
587
|
+
supplyApy1d {
|
|
588
|
+
total
|
|
589
|
+
}
|
|
590
|
+
supplyApy7d {
|
|
591
|
+
total
|
|
592
|
+
}
|
|
593
|
+
supplyApy30d {
|
|
594
|
+
total
|
|
595
|
+
}
|
|
496
596
|
totalBorrowed {
|
|
597
|
+
formatted
|
|
598
|
+
raw
|
|
497
599
|
usd
|
|
600
|
+
}
|
|
601
|
+
totalCollateral {
|
|
602
|
+
formatted
|
|
498
603
|
raw
|
|
604
|
+
usd
|
|
605
|
+
}
|
|
606
|
+
totalSupplied {
|
|
499
607
|
formatted
|
|
608
|
+
raw
|
|
609
|
+
usd
|
|
500
610
|
}
|
|
501
|
-
bucketTimestamp
|
|
502
611
|
}
|
|
503
612
|
hourly {
|
|
613
|
+
bucketTimestamp
|
|
504
614
|
borrowApy1d {
|
|
505
615
|
total
|
|
506
616
|
}
|
|
617
|
+
borrowApy30d {
|
|
618
|
+
total
|
|
619
|
+
}
|
|
620
|
+
borrowApy7d {
|
|
621
|
+
total
|
|
622
|
+
}
|
|
623
|
+
supplyApy1d {
|
|
624
|
+
total
|
|
625
|
+
}
|
|
626
|
+
supplyApy7d {
|
|
627
|
+
total
|
|
628
|
+
}
|
|
629
|
+
supplyApy30d {
|
|
630
|
+
total
|
|
631
|
+
}
|
|
507
632
|
totalBorrowed {
|
|
508
633
|
formatted
|
|
509
634
|
raw
|
|
510
635
|
usd
|
|
511
636
|
}
|
|
512
|
-
|
|
637
|
+
totalCollateral {
|
|
638
|
+
formatted
|
|
639
|
+
raw
|
|
640
|
+
usd
|
|
641
|
+
}
|
|
642
|
+
totalSupplied {
|
|
643
|
+
formatted
|
|
644
|
+
raw
|
|
645
|
+
usd
|
|
646
|
+
}
|
|
513
647
|
}
|
|
514
648
|
}
|
|
515
649
|
}
|
|
516
650
|
}
|
|
517
651
|
}
|
|
518
|
-
`,
|
|
652
|
+
`,v=t`
|
|
519
653
|
query MarketIBRHistoryData($chainId: ChainId!, $marketId: Hex!) {
|
|
520
654
|
morphoMarkets(where: {chainId_in: [$chainId], marketId_in: [$marketId]}) {
|
|
521
655
|
items {
|
|
@@ -536,29 +670,4 @@ ${u}`,T=t`
|
|
|
536
670
|
}
|
|
537
671
|
}
|
|
538
672
|
}
|
|
539
|
-
`,v
|
|
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};
|
|
673
|
+
`,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};
|