@berachain/graphql 0.2.2 → 0.2.3-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.
@@ -1,4 +1,4 @@
1
- "use strict";var y=Object.defineProperty;var I=Object.getOwnPropertyDescriptor;var x=Object.getOwnPropertyNames;var T=Object.prototype.hasOwnProperty;var f=(o,n)=>{for(var a in n)y(o,a,{get:n[a],enumerable:!0})},w=(o,n,a,t)=>{if(n&&typeof n=="object"||typeof n=="function")for(let i of x(n))!T.call(o,i)&&i!==a&&y(o,i,{get:()=>n[i],enumerable:!(t=I(n,i))||t.enumerable});return o};var V=o=>w(y({},"__esModule",{value:!0}),o);var B={};f(B,{ApyFragment:()=>p,ApySide:()=>A,ApyTimeframe:()=>g,ChainInfoFragment:()=>l,CuratorInfoFragment:()=>m,Erc4626VaultProtocol:()=>_,IdentityResolver:()=>h,Market:()=>v,MarketPositions:()=>H,MarketSummaries:()=>P,MarketSummaryFragment:()=>c,MerklAction:()=>b,SupportedMarketIds:()=>E,TokenCategory:()=>k,TokenInfoFragment:()=>u,Vault:()=>$,VaultPositions:()=>F,VaultProtocol:()=>M,VaultSummaries:()=>C,VaultSummaryFragment:()=>d,VaultType:()=>S,default:()=>Q});module.exports=V(B);var e=require("@apollo/client"),A=(a=>(a.Borrow="Borrow",a.Supply="Supply",a))(A||{}),g=(t=>(t.OneDay="one_day",t.SevenDays="seven_days",t.ThirtyDays="thirty_days",t))(g||{}),_=(a=>(a.Generic="generic",a.MorphoV1="morpho_v1",a))(_||{}),h=(s=>(s.Base="base",s.Ens="ens",s.Farcaster="farcaster",s.Lens="lens",s.Nns="nns",s.Uni="uni",s.World="world",s))(h||{}),b=(a=>(a.Borrow="Borrow",a.Lend="Lend",a))(b||{}),k=(t=>(t.Btc="Btc",t.Eth="Eth",t.Stable="Stable",t))(k||{}),M=(r=>(r.Enzyme="enzyme",r.EulerEarn="euler_earn",r.EulerV2="euler_v2",r.Gearbox="gearbox",r.Lista="lista",r.Mellow="mellow",r.Midas="midas",r.Morpho="morpho",r.Napier="napier",r.Pendle="pendle",r.Reserve="reserve",r.Silo="silo",r.TurtleClub="turtle_club",r))(M||{}),S=(t=>(t.Index="index",t.Lending="lending",t.Staking="staking",t))(S||{}),l=e.gql`
1
+ "use strict";var d=Object.defineProperty;var I=Object.getOwnPropertyDescriptor;var x=Object.getOwnPropertyNames;var T=Object.prototype.hasOwnProperty;var f=(o,n)=>{for(var r in n)d(o,r,{get:n[r],enumerable:!0})},C=(o,n,r,t)=>{if(n&&typeof n=="object"||typeof n=="function")for(let p of x(n))!T.call(o,p)&&p!==r&&d(o,p,{get:()=>n[p],enumerable:!(t=I(n,p))||t.enumerable});return o};var w=o=>C(d({},"__esModule",{value:!0}),o);var Q={};f(Q,{ApyFragment:()=>i,ApySide:()=>A,ApyTimeframe:()=>g,ChainInfoFragment:()=>l,CuratorInfoFragment:()=>y,Erc4626VaultProtocol:()=>_,IdentityResolver:()=>h,Market:()=>$,MarketPositions:()=>H,MarketSummaries:()=>v,MarketSummaryFragment:()=>c,MerklAction:()=>b,SupportedMarketIds:()=>E,TokenCategory:()=>k,TokenInfoFragment:()=>u,Vault:()=>P,VaultPositions:()=>F,VaultProtocol:()=>M,VaultSummaries:()=>V,VaultSummaryFragment:()=>m,VaultType:()=>S,default:()=>O});module.exports=w(Q);var e=require("@apollo/client"),A=(r=>(r.Borrow="Borrow",r.Supply="Supply",r))(A||{}),g=(t=>(t.OneDay="one_day",t.SevenDays="seven_days",t.ThirtyDays="thirty_days",t))(g||{}),_=(t=>(t.Generic="generic",t.MorphoV1="morpho_v1",t.MorphoV2="morpho_v2",t))(_||{}),h=(s=>(s.Base="base",s.Ens="ens",s.Farcaster="farcaster",s.Lens="lens",s.Nns="nns",s.Uni="uni",s.World="world",s))(h||{}),b=(r=>(r.Borrow="Borrow",r.Lend="Lend",r))(b||{}),k=(t=>(t.Btc="Btc",t.Eth="Eth",t.Stable="Stable",t))(k||{}),M=(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))(M||{}),S=(t=>(t.Index="index",t.Lending="lending",t.Staking="staking",t))(S||{}),l=e.gql`
2
2
  fragment ChainInfoFragment on Chain {
3
3
  id
4
4
  name
@@ -12,13 +12,13 @@
12
12
  icon
13
13
  category
14
14
  }
15
- `,m=e.gql`
15
+ `,y=e.gql`
16
16
  fragment CuratorInfoFragment on Curator {
17
17
  name
18
18
  image
19
19
  url
20
20
  }
21
- `,p=e.gql`
21
+ `,i=e.gql`
22
22
  fragment ApyFragment on Apy {
23
23
  base
24
24
  rewards {
@@ -30,7 +30,7 @@
30
30
  total
31
31
  fee
32
32
  }
33
- ${u}`,d=e.gql`
33
+ ${u}`,m=e.gql`
34
34
  fragment VaultSummaryFragment on MorphoVault {
35
35
  chain {
36
36
  ...ChainInfoFragment
@@ -81,8 +81,8 @@
81
81
  }
82
82
  ${l}
83
83
  ${u}
84
- ${m}
85
- ${p}`,c=e.gql`
84
+ ${y}
85
+ ${i}`,c=e.gql`
86
86
  fragment MarketSummaryFragment on MorphoMarket {
87
87
  chain {
88
88
  ...ChainInfoFragment
@@ -139,7 +139,7 @@ ${p}`,c=e.gql`
139
139
  }
140
140
  ${l}
141
141
  ${u}
142
- ${p}`,C=e.gql`
142
+ ${i}`,V=e.gql`
143
143
  query VaultSummaries($chainIds: [ChainId!]!, $vaultAddresses: [Address!]!) {
144
144
  morphoVaults(
145
145
  where: {chainId_in: $chainIds, vaultAddress_in: $vaultAddresses}
@@ -153,7 +153,7 @@ ${p}`,C=e.gql`
153
153
  }
154
154
  }
155
155
  }
156
- ${d}`,P=e.gql`
156
+ ${m}`,v=e.gql`
157
157
  query MarketSummaries($chainIds: [ChainId!]!, $marketIds: [Hex!]!) {
158
158
  morphoMarkets(
159
159
  where: {chainId_in: $chainIds, marketId_in: $marketIds}
@@ -167,7 +167,7 @@ ${p}`,C=e.gql`
167
167
  }
168
168
  }
169
169
  }
170
- ${c}`,$=e.gql`
170
+ ${c}`,P=e.gql`
171
171
  query Vault($chainId: ChainId!, $vaultAddress: Address!) {
172
172
  morphoVaults(where: {chainId_in: [$chainId], vaultAddress_in: [$vaultAddress]}) {
173
173
  items {
@@ -254,10 +254,10 @@ ${p}`,C=e.gql`
254
254
  }
255
255
  }
256
256
  }
257
- ${d}
257
+ ${m}
258
258
  ${l}
259
259
  ${u}
260
- ${p}`,v=e.gql`
260
+ ${i}`,$=e.gql`
261
261
  query Market($chainId: ChainId!, $marketId: Hex!) {
262
262
  morphoMarkets(where: {chainId_in: [$chainId], marketId_in: [$marketId]}) {
263
263
  items {
@@ -344,7 +344,7 @@ ${p}`,v=e.gql`
344
344
  ${c}
345
345
  ${u}
346
346
  ${l}
347
- ${m}`,F=e.gql`
347
+ ${y}`,F=e.gql`
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]}
@@ -430,4 +430,4 @@ ${m}`,F=e.gql`
430
430
  }
431
431
  }
432
432
  }
433
- `,O={possibleTypes:{Erc4626Vault:["GenericErc4626Vault","MorphoVault"]}},Q=O;0&&(module.exports={ApyFragment,ApySide,ApyTimeframe,ChainInfoFragment,CuratorInfoFragment,Erc4626VaultProtocol,IdentityResolver,Market,MarketPositions,MarketSummaries,MarketSummaryFragment,MerklAction,SupportedMarketIds,TokenCategory,TokenInfoFragment,Vault,VaultPositions,VaultProtocol,VaultSummaries,VaultSummaryFragment,VaultType});
433
+ `,B={possibleTypes:{Adapter:["MarketV1Adapter","UnknownAdapter","VaultV1Adapter"],Cap:["AdapterCap","CollateralExposureCap","MarketV1ExposureCap","UnknownCap"],Erc4626Vault:["GenericErc4626Vault","MorphoVault","MorphoVaultV2"]}},O=B;0&&(module.exports={ApyFragment,ApySide,ApyTimeframe,ChainInfoFragment,CuratorInfoFragment,Erc4626VaultProtocol,IdentityResolver,Market,MarketPositions,MarketSummaries,MarketSummaryFragment,MerklAction,SupportedMarketIds,TokenCategory,TokenInfoFragment,Vault,VaultPositions,VaultProtocol,VaultSummaries,VaultSummaryFragment,VaultType});
@@ -64,6 +64,46 @@ type Scalars = {
64
64
  output: string;
65
65
  };
66
66
  };
67
+ type Adapter = {
68
+ /**
69
+ * Address of the adapter
70
+ * @deprecated Schema is subject to change, not yet stable
71
+ */
72
+ adapterAddress: Scalars['Address']['output'];
73
+ /**
74
+ * Cap for the adapter, null if and only if the adapter doesn't adhere to abi.encode('this', address)
75
+ * @deprecated Schema is subject to change, not yet stable
76
+ */
77
+ adapterCap: Maybe<AdapterCap>;
78
+ /**
79
+ * Is the adapter enabled
80
+ * @deprecated Schema is subject to change, not yet stable
81
+ */
82
+ isEnabled: Scalars['Boolean']['output'];
83
+ };
84
+ type AdapterCap = Cap & {
85
+ __typename?: 'AdapterCap';
86
+ /**
87
+ * Absolute cap in underlying units
88
+ * @deprecated Schema is subject to change, not yet stable
89
+ */
90
+ absoluteCap: TokenAmount;
91
+ /**
92
+ * Current amount allocated under this id
93
+ * @deprecated Schema is subject to change, not yet stable
94
+ */
95
+ allocation: TokenAmount;
96
+ /**
97
+ * bytes32 key
98
+ * @deprecated Schema is subject to change, not yet stable
99
+ */
100
+ capId: Scalars['Hex']['output'];
101
+ /**
102
+ * Relative cap (wad)
103
+ * @deprecated Schema is subject to change, not yet stable
104
+ */
105
+ relativeCap: Scalars['BigInt']['output'];
106
+ };
67
107
  /** Aera vault */
68
108
  type AeraVault = {
69
109
  __typename?: 'AeraVault';
@@ -169,6 +209,29 @@ declare enum ApyTimeframe {
169
209
  SevenDays = "seven_days",
170
210
  ThirtyDays = "thirty_days"
171
211
  }
212
+ /** V2: Caps for a Morpho vault adapter id */
213
+ type Cap = {
214
+ /**
215
+ * Absolute cap in underlying units
216
+ * @deprecated Schema is subject to change, not yet stable
217
+ */
218
+ absoluteCap: TokenAmount;
219
+ /**
220
+ * Current amount allocated under this id
221
+ * @deprecated Schema is subject to change, not yet stable
222
+ */
223
+ allocation: TokenAmount;
224
+ /**
225
+ * bytes32 key
226
+ * @deprecated Schema is subject to change, not yet stable
227
+ */
228
+ capId: Scalars['Hex']['output'];
229
+ /**
230
+ * Relative cap (wad)
231
+ * @deprecated Schema is subject to change, not yet stable
232
+ */
233
+ relativeCap: Scalars['BigInt']['output'];
234
+ };
172
235
  /** A blockchain */
173
236
  type Chain = {
174
237
  __typename?: 'Chain';
@@ -188,6 +251,34 @@ type ChainFilter = {
188
251
  /** Filter for certain chainIds */
189
252
  chainId_in: InputMaybe<Array<Scalars['ChainId']['input']>>;
190
253
  };
254
+ type CollateralExposureCap = Cap & {
255
+ __typename?: 'CollateralExposureCap';
256
+ /**
257
+ * Absolute cap in underlying units
258
+ * @deprecated Schema is subject to change, not yet stable
259
+ */
260
+ absoluteCap: TokenAmount;
261
+ /**
262
+ * Current amount allocated under this id
263
+ * @deprecated Schema is subject to change, not yet stable
264
+ */
265
+ allocation: TokenAmount;
266
+ /**
267
+ * bytes32 key
268
+ * @deprecated Schema is subject to change, not yet stable
269
+ */
270
+ capId: Scalars['Hex']['output'];
271
+ /**
272
+ * Collateral token
273
+ * @deprecated Schema is subject to change, not yet stable
274
+ */
275
+ collateralToken: Token;
276
+ /**
277
+ * Relative cap (wad)
278
+ * @deprecated Schema is subject to change, not yet stable
279
+ */
280
+ relativeCap: Scalars['BigInt']['output'];
281
+ };
191
282
  /** Curator of a Morpho vault */
192
283
  type Curator = {
193
284
  __typename?: 'Curator';
@@ -241,7 +332,8 @@ type Erc4626VaultPage = {
241
332
  };
242
333
  declare enum Erc4626VaultProtocol {
243
334
  Generic = "generic",
244
- MorphoV1 = "morpho_v1"
335
+ MorphoV1 = "morpho_v1",
336
+ MorphoV2 = "morpho_v2"
245
337
  }
246
338
  type GenericErc4626Vault = Erc4626Vault & {
247
339
  __typename?: 'GenericErc4626Vault';
@@ -297,6 +389,62 @@ type IdentityResolverOutput = {
297
389
  website: Maybe<Scalars['String']['output']>;
298
390
  x: Maybe<Scalars['String']['output']>;
299
391
  };
392
+ type MarketV1Adapter = Adapter & {
393
+ __typename?: 'MarketV1Adapter';
394
+ /**
395
+ * Address of the adapter
396
+ * @deprecated Schema is subject to change, not yet stable
397
+ */
398
+ adapterAddress: Scalars['Address']['output'];
399
+ /**
400
+ * Cap for the adapter
401
+ * @deprecated Schema is subject to change, not yet stable
402
+ */
403
+ adapterCap: Maybe<AdapterCap>;
404
+ /**
405
+ * Collateral caps for the adapter
406
+ * @deprecated Schema is subject to change, not yet stable
407
+ */
408
+ collateralCaps: Array<CollateralExposureCap>;
409
+ /**
410
+ * Is the adapter enabled
411
+ * @deprecated Schema is subject to change, not yet stable
412
+ */
413
+ isEnabled: Scalars['Boolean']['output'];
414
+ /**
415
+ * Markets for the adapter
416
+ * @deprecated Schema is subject to change, not yet stable
417
+ */
418
+ marketCaps: Array<MarketV1ExposureCap>;
419
+ };
420
+ type MarketV1ExposureCap = Cap & {
421
+ __typename?: 'MarketV1ExposureCap';
422
+ /**
423
+ * Absolute cap in underlying units
424
+ * @deprecated Schema is subject to change, not yet stable
425
+ */
426
+ absoluteCap: TokenAmount;
427
+ /**
428
+ * Current amount allocated under this id
429
+ * @deprecated Schema is subject to change, not yet stable
430
+ */
431
+ allocation: TokenAmount;
432
+ /**
433
+ * bytes32 key
434
+ * @deprecated Schema is subject to change, not yet stable
435
+ */
436
+ capId: Scalars['Hex']['output'];
437
+ /**
438
+ * Market
439
+ * @deprecated Schema is subject to change, not yet stable
440
+ */
441
+ market: MorphoMarket;
442
+ /**
443
+ * Relative cap (wad)
444
+ * @deprecated Schema is subject to change, not yet stable
445
+ */
446
+ relativeCap: Scalars['BigInt']['output'];
447
+ };
300
448
  /** A reward earned by an account */
301
449
  type MerklAccountReward = {
302
450
  __typename?: 'MerklAccountReward';
@@ -421,7 +569,10 @@ type MorphoMarketHistorical = {
421
569
  __typename?: 'MorphoMarketHistorical';
422
570
  /** Historical data with daily resolution. Only provides the 200 most recent entries (i.e up to 200 hours of data). */
423
571
  daily: Array<MorphoMarketHistoricalEntry>;
424
- /** Historical data with hourly resolution. Only provides the 200 most recent entries (i.e up to 200 hours of data). */
572
+ /**
573
+ * Historical data with hourly resolution. Only provides the 200 most recent entries (i.e up to 200 hours of data).
574
+ * @deprecated Hourly data is no longer supported
575
+ */
425
576
  hourly: Array<MorphoMarketHistoricalEntry>;
426
577
  /** Historical data with weekly resolution. Only provides the 200 most recent entries (i.e up to 200 hours of data). */
427
578
  weekly: Array<MorphoMarketHistoricalEntry>;
@@ -502,23 +653,6 @@ type MorphoMarketPositionFilter = {
502
653
  /** Filter for positions in whitelisted markets only */
503
654
  whitelisted: InputMaybe<Scalars['Boolean']['input']>;
504
655
  };
505
- type MorphoMarketPositionHistorical = {
506
- __typename?: 'MorphoMarketPositionHistorical';
507
- daily: Array<MorphoMarketPositionHistoricalEntry>;
508
- hourly: Array<MorphoMarketPositionHistoricalEntry>;
509
- weekly: Array<MorphoMarketPositionHistoricalEntry>;
510
- };
511
- type MorphoMarketPositionHistoricalEntry = {
512
- __typename?: 'MorphoMarketPositionHistoricalEntry';
513
- /** Borrow assets of the account at the bucket timestamp */
514
- borrowAmount: TokenAmount;
515
- /** The timestamp of the data rounded down to the nearest resolution (ex. hour, day, week). */
516
- bucketTimestamp: Scalars['Int']['output'];
517
- /** Collateral assets of the account at the bucket timestamp, null iff the market is idle */
518
- collateralAmount: Maybe<TokenAmount>;
519
- /** Supply assets of the account at the bucket timestamp */
520
- supplyAmount: TokenAmount;
521
- };
522
656
  /** Page of Morpho market positions */
523
657
  type MorphoMarketPositionPage = {
524
658
  __typename?: 'MorphoMarketPositionPage';
@@ -610,7 +744,10 @@ type MorphoVaultHistorical = {
610
744
  __typename?: 'MorphoVaultHistorical';
611
745
  /** Historical data with daily resolution. Only provides the 200 most recent entries (i.e up to 200 hours of data). */
612
746
  daily: Array<MorphoVaultHistoricalEntry>;
613
- /** Historical data with hourly resolution. Only provides the 200 most recent entries (i.e up to 200 hours of data). */
747
+ /**
748
+ * Historical data with hourly resolution. Only provides the 200 most recent entries (i.e up to 200 hours of data).
749
+ * @deprecated Hourly data is currently not supported, and will return an empty array. Use daily or weekly instead.
750
+ */
614
751
  hourly: Array<MorphoVaultHistoricalEntry>;
615
752
  /** Historical data with weekly resolution. Only provides the 200 most recent entries (i.e up to 200 hours of data). */
616
753
  weekly: Array<MorphoVaultHistoricalEntry>;
@@ -661,7 +798,7 @@ type MorphoVaultMetadata = {
661
798
  description: Maybe<Scalars['String']['output']>;
662
799
  /**
663
800
  * Forum link of the vault
664
- * @deprecated No longer supported, will always be null.
801
+ * @deprecated Hourly data is currently not supported, and will return an empty array. Use daily or weekly instead.
665
802
  */
666
803
  forumLink: Maybe<Scalars['String']['output']>;
667
804
  /** Image of the vault */
@@ -701,21 +838,6 @@ type MorphoVaultPositionFilter = {
701
838
  /** Filter for positions in whitelisted vaults only */
702
839
  whitelisted: InputMaybe<Scalars['Boolean']['input']>;
703
840
  };
704
- type MorphoVaultPositionHistorical = {
705
- __typename?: 'MorphoVaultPositionHistorical';
706
- daily: Array<MorphoVaultPositionHistoricalEntry>;
707
- hourly: Array<MorphoVaultPositionHistoricalEntry>;
708
- weekly: Array<MorphoVaultPositionHistoricalEntry>;
709
- };
710
- type MorphoVaultPositionHistoricalEntry = {
711
- __typename?: 'MorphoVaultPositionHistoricalEntry';
712
- /** The timestamp of the data rounded down to the nearest resolution (ex. hour, day, week). */
713
- bucketTimestamp: Scalars['Int']['output'];
714
- /** Interest earned by the account at the bucket timestamp */
715
- interestEarned: TokenAmount;
716
- /** Supply shares of the account at the bucket timestamp */
717
- supplyAmount: TokenAmount;
718
- };
719
841
  type MorphoVaultPositionPage = {
720
842
  __typename?: 'MorphoVaultPositionPage';
721
843
  /** The items in the page */
@@ -725,6 +847,127 @@ type MorphoVaultPositionPage = {
725
847
  /** Total number of items */
726
848
  totalCount: Scalars['Int']['output'];
727
849
  };
850
+ type MorphoVaultV2 = Erc4626Vault & {
851
+ __typename?: 'MorphoVaultV2';
852
+ /**
853
+ * Generic V2 adapter surface
854
+ * @deprecated Schema is subject to change, not yet stable
855
+ */
856
+ adapters: Array<Adapter>;
857
+ /**
858
+ * Allocator address of the vault, null if and only if there are indexer issues
859
+ * @deprecated Schema is subject to change, not yet stable
860
+ */
861
+ allocatorAddresses: Maybe<Array<Scalars['Address']['output']>>;
862
+ /**
863
+ * APY earned when supplying to the vault
864
+ * @deprecated Schema is subject to change, not yet stable
865
+ */
866
+ apy: Apy;
867
+ /**
868
+ * Underlying asset of the vault
869
+ * @deprecated Schema is subject to change, not yet stable
870
+ */
871
+ asset: Token;
872
+ /**
873
+ * Chain the vault is deployed on
874
+ * @deprecated Schema is subject to change, not yet stable
875
+ */
876
+ chain: Chain;
877
+ /**
878
+ * Curator address of the vault, this is the address that can modify the vaults allocations
879
+ * @deprecated Schema is subject to change, not yet stable
880
+ */
881
+ curatorAddress: Scalars['Address']['output'];
882
+ /**
883
+ * Decimals of the vault's shares
884
+ * @deprecated Schema is subject to change, not yet stable
885
+ */
886
+ decimals: Scalars['Int']['output'];
887
+ /**
888
+ * Liquidity adapter address
889
+ * @deprecated Schema is subject to change, not yet stable
890
+ */
891
+ liquidityAdapter: Adapter;
892
+ /**
893
+ * Management fee of the vault, this is the fee that is taken from the vaults profits
894
+ * @deprecated Schema is subject to change, not yet stable
895
+ */
896
+ managementFee: OnchainAmount;
897
+ /**
898
+ * Management fee recipient address of the vault, this is the address that receives the management fee
899
+ * @deprecated Schema is subject to change, not yet stable
900
+ */
901
+ managementFeeRecipientAddress: Scalars['Address']['output'];
902
+ /**
903
+ * Metadata for the vault
904
+ * @deprecated Schema is subject to change, not yet stable
905
+ */
906
+ metadata: Maybe<MorphoVaultMetadata>;
907
+ /**
908
+ * Name of the vault
909
+ * @deprecated Schema is subject to change, not yet stable
910
+ */
911
+ name: Scalars['String']['output'];
912
+ /**
913
+ * Owner address of the vault, this is the address that can modify the vaults configuration
914
+ * @deprecated Schema is subject to change, not yet stable
915
+ */
916
+ ownerAddress: Scalars['Address']['output'];
917
+ /**
918
+ * Performance fee of the vault, this is the fee that is taken from the vaults profits
919
+ * @deprecated Schema is subject to change, not yet stable
920
+ */
921
+ performanceFee: OnchainAmount;
922
+ /**
923
+ * Performance fee recipient address of the vault, this is the address that receives the performance fee
924
+ * @deprecated Schema is subject to change, not yet stable
925
+ */
926
+ performanceFeeRecipientAddress: Scalars['Address']['output'];
927
+ /**
928
+ * Receive assets gate
929
+ * @deprecated Schema is subject to change, not yet stable
930
+ */
931
+ receiveAssetsGateAddress: Scalars['Address']['output'];
932
+ /**
933
+ * Receive shares gate
934
+ * @deprecated Schema is subject to change, not yet stable
935
+ */
936
+ receiveSharesGateAddress: Scalars['Address']['output'];
937
+ /**
938
+ * Send assets gate
939
+ * @deprecated Schema is subject to change, not yet stable
940
+ */
941
+ sendAssetsGateAddress: Scalars['Address']['output'];
942
+ /**
943
+ * Send shares gate
944
+ * @deprecated Schema is subject to change, not yet stable
945
+ */
946
+ sendSharesGateAddress: Scalars['Address']['output'];
947
+ /**
948
+ * Sentinel address of the vault, null if and only if there are indexer issues
949
+ * @deprecated Schema is subject to change, not yet stable
950
+ */
951
+ sentinelAddresses: Maybe<Array<Scalars['Address']['output']>>;
952
+ /**
953
+ * Symbol of the vault
954
+ * @deprecated Schema is subject to change, not yet stable
955
+ */
956
+ symbol: Scalars['String']['output'];
957
+ /**
958
+ * Total amount of the underlying assets supplied to the vault
959
+ * @deprecated Schema is subject to change, not yet stable
960
+ */
961
+ totalAssets: TokenAmount;
962
+ /**
963
+ * Address of the vault contract
964
+ * @deprecated Schema is subject to change, not yet stable
965
+ */
966
+ vaultAddress: Scalars['Address']['output'];
967
+ };
968
+ type MorphoVaultV2ApyArgs = {
969
+ timeframe: ApyTimeframe;
970
+ };
728
971
  /** An arbitrary onchain amount */
729
972
  type OnchainAmount = {
730
973
  __typename?: 'OnchainAmount';
@@ -937,6 +1180,47 @@ type TokenInput = {
937
1180
  /** The token contract address */
938
1181
  tokenAddress: Scalars['Address']['input'];
939
1182
  };
1183
+ type UnknownAdapter = Adapter & {
1184
+ __typename?: 'UnknownAdapter';
1185
+ /**
1186
+ * Address of the adapter
1187
+ * @deprecated Schema is subject to change, not yet stable
1188
+ */
1189
+ adapterAddress: Scalars['Address']['output'];
1190
+ /**
1191
+ * Cap for the adapter
1192
+ * @deprecated Schema is subject to change, not yet stable
1193
+ */
1194
+ adapterCap: Maybe<AdapterCap>;
1195
+ /**
1196
+ * Is the adapter enabled
1197
+ * @deprecated Schema is subject to change, not yet stable
1198
+ */
1199
+ isEnabled: Scalars['Boolean']['output'];
1200
+ };
1201
+ type UnknownCap = Cap & {
1202
+ __typename?: 'UnknownCap';
1203
+ /**
1204
+ * Absolute cap in underlying units
1205
+ * @deprecated Schema is subject to change, not yet stable
1206
+ */
1207
+ absoluteCap: TokenAmount;
1208
+ /**
1209
+ * Current amount allocated under this id
1210
+ * @deprecated Schema is subject to change, not yet stable
1211
+ */
1212
+ allocation: TokenAmount;
1213
+ /**
1214
+ * bytes32 key
1215
+ * @deprecated Schema is subject to change, not yet stable
1216
+ */
1217
+ capId: Scalars['Hex']['output'];
1218
+ /**
1219
+ * Relative cap (wad)
1220
+ * @deprecated Schema is subject to change, not yet stable
1221
+ */
1222
+ relativeCap: Scalars['BigInt']['output'];
1223
+ };
940
1224
  /** Input for vaults */
941
1225
  type VaultInput = {
942
1226
  /** Chain the vault is deployed on */
@@ -968,6 +1252,29 @@ declare enum VaultType {
968
1252
  Lending = "lending",
969
1253
  Staking = "staking"
970
1254
  }
1255
+ type VaultV1Adapter = Adapter & {
1256
+ __typename?: 'VaultV1Adapter';
1257
+ /**
1258
+ * Address of the adapter
1259
+ * @deprecated Schema is subject to change, not yet stable
1260
+ */
1261
+ adapterAddress: Scalars['Address']['output'];
1262
+ /**
1263
+ * Cap for the adapter
1264
+ * @deprecated Schema is subject to change, not yet stable
1265
+ */
1266
+ adapterCap: Maybe<AdapterCap>;
1267
+ /**
1268
+ * Is the adapter enabled
1269
+ * @deprecated Schema is subject to change, not yet stable
1270
+ */
1271
+ isEnabled: Scalars['Boolean']['output'];
1272
+ /**
1273
+ * Vault for the adapter
1274
+ * @deprecated Schema is subject to change, not yet stable
1275
+ */
1276
+ vault: Maybe<MorphoVault>;
1277
+ };
971
1278
  type TokenInfoFragmentFragment = {
972
1279
  __typename?: 'Token';
973
1280
  address: `0x${string}`;
@@ -1916,4 +2223,4 @@ interface PossibleTypesResultData {
1916
2223
  }
1917
2224
  declare const result: PossibleTypesResultData;
1918
2225
 
1919
- 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 };
2226
+ export { type Adapter, type AdapterCap, type AeraVault, type AeraVaultFilter, type AeraVaultPage, type AeraVaultPosition, type AeraVaultPositionFilter, type AeraVaultPositionPage, type Apy, ApyFragment, type ApyFragmentFragment, ApySide, ApyTimeframe, type Cap, type Chain, type ChainFilter, ChainInfoFragment, type ChainInfoFragmentFragment, type CollateralExposureCap, type Curator, CuratorInfoFragment, type CuratorInfoFragmentFragment, type Erc4626Vault, type Erc4626VaultApyArgs, type Erc4626VaultFilter, type Erc4626VaultKey, type Erc4626VaultPage, Erc4626VaultProtocol, type Exact, type GenericErc4626Vault, type GenericErc4626VaultApyArgs, type Identity, IdentityResolver, type IdentityResolverOutput, type Incremental, type InputMaybe, type MakeEmpty, type MakeMaybe, type MakeOptional, Market, MarketPositions, type MarketPositionsQuery, type MarketPositionsQueryVariables, type MarketQuery, type MarketQueryVariables, MarketSummaries, type MarketSummariesQuery, type MarketSummariesQueryVariables, MarketSummaryFragment, type MarketSummaryFragmentFragment, type MarketV1Adapter, type MarketV1ExposureCap, type Maybe, type MerklAccountReward, MerklAction, type MerklRewardInput, type MorphoIrm, type MorphoIrmCurvePoint, type MorphoMarket, type MorphoMarketFilter, type MorphoMarketHistorical, type MorphoMarketHistoricalEntry, type MorphoMarketPage, type MorphoMarketPosition, type MorphoMarketPositionFilter, type MorphoMarketPositionPage, type MorphoVault, type MorphoVaultApyArgs, type MorphoVaultFilter, type MorphoVaultHistorical, type MorphoVaultHistoricalEntry, type MorphoVaultMarketAllocation, type MorphoVaultMetadata, type MorphoVaultPage, type MorphoVaultPosition, type MorphoVaultPositionFilter, type MorphoVaultPositionPage, type MorphoVaultV2, type MorphoVaultV2ApyArgs, type OnchainAmount, type PageInfo, type PossibleTypesResultData, type Protocol, type Query, type QueryAeraVaultPositionsArgs, type QueryAeraVaultsArgs, type QueryChainsArgs, type QueryErc4626VaultsArgs, type QueryIdentitiesArgs, type QueryIdentityArgs, type QueryMerklAccountRewardsArgs, type QueryMorphoMarketPositionsArgs, type QueryMorphoMarketsArgs, type QueryMorphoVaultPositionsArgs, type QueryMorphoVaultsArgs, type QueryTokenHoldingsArgs, type QueryTokensArgs, type QueryVaultsArgs, type Reward, type Scalars, SupportedMarketIds, type SupportedMarketIdsQuery, type SupportedMarketIdsQueryVariables, type Token, type TokenAmount, TokenCategory, type TokenHistorical, type TokenHistoricalEntry, type TokenHolding, type TokenHoldingInput, TokenInfoFragment, type TokenInfoFragmentFragment, type TokenInput, type UnknownAdapter, type UnknownCap, Vault, type VaultInput, VaultPositions, type VaultPositionsQuery, type VaultPositionsQueryVariables, VaultProtocol, type VaultQuery, type VaultQueryVariables, VaultSummaries, type VaultSummariesQuery, type VaultSummariesQueryVariables, VaultSummaryFragment, type VaultSummaryFragmentFragment, VaultType, type VaultV1Adapter, result as default };