@berachain/graphql 0.1.6-beta.1 → 0.1.8-beta.1

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/README.md CHANGED
@@ -13,5 +13,5 @@ If you want to test locally (and without publishing) how changes to this package
13
13
  - go on the app you want to test and run `pnpm i @berachain/graphql@workspace:`
14
14
  - build the package and test it out
15
15
  - bump the version on this package and run `pnpm publish`
16
- - update the version in the `internal` catalog on `pnpn-workspace.yml`
16
+ - update the version in the `internal` catalog on `pnpm-workspace.yml`
17
17
  - run `pnpm i @berachain/graphql@catalog:internal` the package will be unlinked
@@ -1,4 +1,4 @@
1
- "use strict";var y=Object.defineProperty;var M=Object.getOwnPropertyDescriptor;var S=Object.getOwnPropertyNames;var I=Object.prototype.hasOwnProperty;var x=(o,n)=>{for(var a in n)y(o,a,{get:n[a],enumerable:!0})},T=(o,n,a,r)=>{if(n&&typeof n=="object"||typeof n=="function")for(let u of S(n))!I.call(o,u)&&u!==a&&y(o,u,{get:()=>n[u],enumerable:!(r=M(n,u))||r.enumerable});return o};var f=o=>T(y({},"__esModule",{value:!0}),o);var Q={};x(Q,{ApyFragment:()=>l,ApySide:()=>g,ChainInfoFragment:()=>p,CuratorInfoFragment:()=>m,GetAccountIsOfacSanctioned:()=>H,IdentityResolver:()=>A,Market:()=>V,MarketPositions:()=>v,MarketSummaries:()=>C,MarketSummaryFragment:()=>c,MerklAction:()=>_,SupportedMarketIds:()=>F,TokenCategory:()=>b,TokenInfoFragment:()=>i,Vault:()=>P,VaultPositions:()=>$,VaultProtocol:()=>h,VaultSummaries:()=>w,VaultSummaryFragment:()=>d,VaultType:()=>k,default:()=>O});module.exports=f(Q);var t=require("@apollo/client"),g=(a=>(a.Borrow="Borrow",a.Supply="Supply",a))(g||{}),A=(s=>(s.Base="base",s.Ens="ens",s.Farcaster="farcaster",s.Lens="lens",s.Nns="nns",s.Uni="uni",s.World="world",s))(A||{}),_=(a=>(a.Borrow="Borrow",a.Lend="Lend",a))(_||{}),b=(r=>(r.Btc="Btc",r.Eth="Eth",r.Stable="Stable",r))(b||{}),h=(e=>(e.Enzyme="enzyme",e.EulerEarn="euler_earn",e.EulerV2="euler_v2",e.Gearbox="gearbox",e.Lista="lista",e.Mellow="mellow",e.Midas="midas",e.Morpho="morpho",e.Napier="napier",e.Pendle="pendle",e.Reserve="reserve",e.Silo="silo",e.TurtleClub="turtle_club",e))(h||{}),k=(r=>(r.Index="index",r.Lending="lending",r.Staking="staking",r))(k||{}),p=t.gql`
1
+ "use strict";var y=Object.defineProperty;var M=Object.getOwnPropertyDescriptor;var S=Object.getOwnPropertyNames;var I=Object.prototype.hasOwnProperty;var x=(o,n)=>{for(var a in n)y(o,a,{get:n[a],enumerable:!0})},T=(o,n,a,r)=>{if(n&&typeof n=="object"||typeof n=="function")for(let u of S(n))!I.call(o,u)&&u!==a&&y(o,u,{get:()=>n[u],enumerable:!(r=M(n,u))||r.enumerable});return o};var w=o=>T(y({},"__esModule",{value:!0}),o);var O={};x(O,{ApyFragment:()=>p,ApySide:()=>g,ChainInfoFragment:()=>l,CuratorInfoFragment:()=>m,IdentityResolver:()=>A,Market:()=>V,MarketPositions:()=>v,MarketSummaries:()=>C,MarketSummaryFragment:()=>c,MerklAction:()=>_,SupportedMarketIds:()=>F,TokenCategory:()=>b,TokenInfoFragment:()=>i,Vault:()=>P,VaultPositions:()=>$,VaultProtocol:()=>h,VaultSummaries:()=>f,VaultSummaryFragment:()=>d,VaultType:()=>k,default:()=>E});module.exports=w(O);var t=require("@apollo/client"),g=(a=>(a.Borrow="Borrow",a.Supply="Supply",a))(g||{}),A=(s=>(s.Base="base",s.Ens="ens",s.Farcaster="farcaster",s.Lens="lens",s.Nns="nns",s.Uni="uni",s.World="world",s))(A||{}),_=(a=>(a.Borrow="Borrow",a.Lend="Lend",a))(_||{}),b=(r=>(r.Btc="Btc",r.Eth="Eth",r.Stable="Stable",r))(b||{}),h=(e=>(e.Enzyme="enzyme",e.EulerEarn="euler_earn",e.EulerV2="euler_v2",e.Gearbox="gearbox",e.Lista="lista",e.Mellow="mellow",e.Midas="midas",e.Morpho="morpho",e.Napier="napier",e.Pendle="pendle",e.Reserve="reserve",e.Silo="silo",e.TurtleClub="turtle_club",e))(h||{}),k=(r=>(r.Index="index",r.Lending="lending",r.Staking="staking",r))(k||{}),l=t.gql`
2
2
  fragment ChainInfoFragment on Chain {
3
3
  id
4
4
  name
@@ -18,7 +18,7 @@
18
18
  image
19
19
  url
20
20
  }
21
- `,l=t.gql`
21
+ `,p=t.gql`
22
22
  fragment ApyFragment on Apy {
23
23
  base
24
24
  rewards {
@@ -72,19 +72,23 @@
72
72
  formatted
73
73
  }
74
74
  }
75
+ supplyCap {
76
+ usd
77
+ }
75
78
  vaultSupplyShare
76
79
  }
77
80
  }
78
- ${p}
81
+ ${l}
79
82
  ${i}
80
83
  ${m}
81
- ${l}`,c=t.gql`
84
+ ${p}`,c=t.gql`
82
85
  fragment MarketSummaryFragment on MorphoMarket {
83
86
  chain {
84
87
  ...ChainInfoFragment
85
88
  }
86
89
  name
87
90
  marketId
91
+ isIdle
88
92
  totalBorrowed {
89
93
  raw
90
94
  formatted
@@ -132,9 +136,9 @@ ${l}`,c=t.gql`
132
136
  }
133
137
  }
134
138
  }
135
- ${p}
139
+ ${l}
136
140
  ${i}
137
- ${l}`,w=t.gql`
141
+ ${p}`,f=t.gql`
138
142
  query VaultSummaries($chainIds: [ChainId!]!, $vaultAddresses: [Address!]!) {
139
143
  morphoVaults(
140
144
  where: {chainId_in: $chainIds, vaultAddress_in: $vaultAddresses}
@@ -240,9 +244,9 @@ ${l}`,w=t.gql`
240
244
  }
241
245
  }
242
246
  ${d}
243
- ${p}
247
+ ${l}
244
248
  ${i}
245
- ${l}`,V=t.gql`
249
+ ${p}`,V=t.gql`
246
250
  query Market($chainId: ChainId!, $marketId: Hex!) {
247
251
  morphoMarkets(where: {chainId_in: [$chainId], marketId_in: [$marketId]}) {
248
252
  items {
@@ -328,7 +332,7 @@ ${l}`,V=t.gql`
328
332
  }
329
333
  ${c}
330
334
  ${i}
331
- ${p}
335
+ ${l}
332
336
  ${m}`,$=t.gql`
333
337
  query VaultPositions($chainIds: [ChainId!]!, $vaultAddresses: [Address!]!, $accountAddress: Address!) {
334
338
  morphoVaultPositions(
@@ -415,10 +419,4 @@ ${m}`,$=t.gql`
415
419
  }
416
420
  }
417
421
  }
418
- `,H=t.gql`
419
- query getAccountIsOfacSanctioned($address: Address!) {
420
- identity(address: $address) {
421
- isOfacSanctioned
422
- }
423
- }
424
- `,E={possibleTypes:{}},O=E;0&&(module.exports={ApyFragment,ApySide,ChainInfoFragment,CuratorInfoFragment,GetAccountIsOfacSanctioned,IdentityResolver,Market,MarketPositions,MarketSummaries,MarketSummaryFragment,MerklAction,SupportedMarketIds,TokenCategory,TokenInfoFragment,Vault,VaultPositions,VaultProtocol,VaultSummaries,VaultSummaryFragment,VaultType});
422
+ `,H={possibleTypes:{}},E=H;0&&(module.exports={ApyFragment,ApySide,ChainInfoFragment,CuratorInfoFragment,IdentityResolver,Market,MarketPositions,MarketSummaries,MarketSummaryFragment,MerklAction,SupportedMarketIds,TokenCategory,TokenInfoFragment,Vault,VaultPositions,VaultProtocol,VaultSummaries,VaultSummaryFragment,VaultType});
@@ -552,16 +552,18 @@ type MorphoVaultMarketAllocation = {
552
552
  /** Metadata for a Morpho vault */
553
553
  type MorphoVaultMetadata = {
554
554
  __typename?: 'MorphoVaultMetadata';
555
+ /** Curator of the vault */
556
+ curator: Maybe<Curator>;
555
557
  /**
556
558
  * Curators of the vault
557
- * @deprecated Removed from morpho metadata repo. Always empty array now.
559
+ * @deprecated Use curator field instead.
558
560
  */
559
561
  curators: Array<Curator>;
560
562
  /** Description of the vault */
561
563
  description: Maybe<Scalars['String']['output']>;
562
564
  /**
563
565
  * Forum link of the vault
564
- * @deprecated Removed from morpho metadata repo. Always null now.
566
+ * @deprecated No longer supported, will always be null.
565
567
  */
566
568
  forumLink: Maybe<Scalars['String']['output']>;
567
569
  /** Image of the vault */
@@ -994,12 +996,17 @@ type VaultSummaryFragmentFragment = {
994
996
  formatted: string;
995
997
  };
996
998
  };
999
+ supplyCap: {
1000
+ __typename?: 'TokenAmount';
1001
+ usd: number | null;
1002
+ };
997
1003
  }>;
998
1004
  };
999
1005
  type MarketSummaryFragmentFragment = {
1000
1006
  __typename?: 'MorphoMarket';
1001
1007
  name: string;
1002
1008
  marketId: `0x${string}`;
1009
+ isIdle: boolean;
1003
1010
  chain: {
1004
1011
  __typename?: 'Chain';
1005
1012
  id: 80094;
@@ -1195,6 +1202,10 @@ type VaultSummariesQuery = {
1195
1202
  formatted: string;
1196
1203
  };
1197
1204
  };
1205
+ supplyCap: {
1206
+ __typename?: 'TokenAmount';
1207
+ usd: number | null;
1208
+ };
1198
1209
  }>;
1199
1210
  } | null>;
1200
1211
  };
@@ -1215,6 +1226,7 @@ type MarketSummariesQuery = {
1215
1226
  __typename?: 'MorphoMarket';
1216
1227
  name: string;
1217
1228
  marketId: `0x${string}`;
1229
+ isIdle: boolean;
1218
1230
  chain: {
1219
1231
  __typename?: 'Chain';
1220
1232
  id: 80094;
@@ -1741,16 +1753,6 @@ type SupportedMarketIdsQuery = {
1741
1753
  } | null>;
1742
1754
  };
1743
1755
  };
1744
- type GetAccountIsOfacSanctionedQueryVariables = Exact<{
1745
- address: Scalars['Address']['input'];
1746
- }>;
1747
- type GetAccountIsOfacSanctionedQuery = {
1748
- __typename?: 'Query';
1749
- identity: {
1750
- __typename?: 'Identity';
1751
- isOfacSanctioned: boolean;
1752
- } | null;
1753
- };
1754
1756
  declare const ChainInfoFragment: graphql.DocumentNode;
1755
1757
  declare const TokenInfoFragment: graphql.DocumentNode;
1756
1758
  declare const CuratorInfoFragment: graphql.DocumentNode;
@@ -1788,7 +1790,6 @@ declare const Market: graphql.DocumentNode;
1788
1790
  declare const VaultPositions: graphql.DocumentNode;
1789
1791
  declare const MarketPositions: graphql.DocumentNode;
1790
1792
  declare const SupportedMarketIds: graphql.DocumentNode;
1791
- declare const GetAccountIsOfacSanctioned: graphql.DocumentNode;
1792
1793
  interface PossibleTypesResultData {
1793
1794
  possibleTypes: {
1794
1795
  [key: string]: string[];
@@ -1796,4 +1797,4 @@ interface PossibleTypesResultData {
1796
1797
  }
1797
1798
  declare const result: PossibleTypesResultData;
1798
1799
 
1799
- export { type AeraVault, type AeraVaultFilter, type AeraVaultPage, type AeraVaultPosition, type AeraVaultPositionFilter, type AeraVaultPositionPage, type Apy, ApyFragment, type ApyFragmentFragment, ApySide, type Chain, type ChainFilter, ChainInfoFragment, type ChainInfoFragmentFragment, type Curator, CuratorInfoFragment, type CuratorInfoFragmentFragment, type Exact, GetAccountIsOfacSanctioned, type GetAccountIsOfacSanctionedQuery, type GetAccountIsOfacSanctionedQueryVariables, 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 MorphoVaultFilter, type MorphoVaultHistorical, type MorphoVaultHistoricalEntry, type MorphoVaultMarketAllocation, type MorphoVaultMetadata, type MorphoVaultPage, type MorphoVaultPosition, type MorphoVaultPositionFilter, type MorphoVaultPositionHistorical, type MorphoVaultPositionHistoricalEntry, type MorphoVaultPositionPage, type OnchainAmount, type PageInfo, type PossibleTypesResultData, type Protocol, type Query, type QueryAeraVaultPositionsArgs, type QueryAeraVaultsArgs, type QueryChainsArgs, type QueryIdentitiesArgs, type QueryIdentityArgs, type QueryMerklAccountRewardsArgs, type QueryMorphoMarketPositionsArgs, type QueryMorphoMarketsArgs, type QueryMorphoVaultPositionsArgs, type QueryMorphoVaultsArgs, type QueryTokenHoldingsArgs, type QueryTokensArgs, type QueryVaultsArgs, type Reward, type Scalars, SupportedMarketIds, type SupportedMarketIdsQuery, type SupportedMarketIdsQueryVariables, type Token, type TokenAmount, TokenCategory, type TokenHistorical, type TokenHistoricalEntry, type TokenHolding, type TokenHoldingInput, TokenInfoFragment, type TokenInfoFragmentFragment, type TokenInput, Vault, type VaultInput, VaultPositions, type VaultPositionsQuery, type VaultPositionsQueryVariables, VaultProtocol, type VaultQuery, type VaultQueryVariables, VaultSummaries, type VaultSummariesQuery, type VaultSummariesQueryVariables, VaultSummaryFragment, type VaultSummaryFragmentFragment, VaultType, result as default };
1800
+ export { type AeraVault, type AeraVaultFilter, type AeraVaultPage, type AeraVaultPosition, type AeraVaultPositionFilter, type AeraVaultPositionPage, type Apy, ApyFragment, type ApyFragmentFragment, ApySide, type Chain, type ChainFilter, ChainInfoFragment, type ChainInfoFragmentFragment, type Curator, CuratorInfoFragment, type CuratorInfoFragmentFragment, type Exact, type Identity, IdentityResolver, type IdentityResolverOutput, type Incremental, type InputMaybe, type MakeEmpty, type MakeMaybe, type MakeOptional, Market, MarketPositions, type MarketPositionsQuery, type MarketPositionsQueryVariables, type MarketQuery, type MarketQueryVariables, MarketSummaries, type MarketSummariesQuery, type MarketSummariesQueryVariables, MarketSummaryFragment, type MarketSummaryFragmentFragment, type Maybe, type MerklAccountReward, MerklAction, type MerklRewardInput, type MorphoIrm, type MorphoIrmCurvePoint, type MorphoMarket, type MorphoMarketFilter, type MorphoMarketHistorical, type MorphoMarketHistoricalEntry, type MorphoMarketPage, type MorphoMarketPosition, type MorphoMarketPositionFilter, type MorphoMarketPositionHistorical, type MorphoMarketPositionHistoricalEntry, type MorphoMarketPositionPage, type MorphoVault, type MorphoVaultFilter, type MorphoVaultHistorical, type MorphoVaultHistoricalEntry, type MorphoVaultMarketAllocation, type MorphoVaultMetadata, type MorphoVaultPage, type MorphoVaultPosition, type MorphoVaultPositionFilter, type MorphoVaultPositionHistorical, type MorphoVaultPositionHistoricalEntry, type MorphoVaultPositionPage, type OnchainAmount, type PageInfo, type PossibleTypesResultData, type Protocol, type Query, type QueryAeraVaultPositionsArgs, type QueryAeraVaultsArgs, type QueryChainsArgs, type QueryIdentitiesArgs, type QueryIdentityArgs, type QueryMerklAccountRewardsArgs, type QueryMorphoMarketPositionsArgs, type QueryMorphoMarketsArgs, type QueryMorphoVaultPositionsArgs, type QueryMorphoVaultsArgs, type QueryTokenHoldingsArgs, type QueryTokensArgs, type QueryVaultsArgs, type Reward, type Scalars, SupportedMarketIds, type SupportedMarketIdsQuery, type SupportedMarketIdsQueryVariables, type Token, type TokenAmount, TokenCategory, type TokenHistorical, type TokenHistoricalEntry, type TokenHolding, type TokenHoldingInput, TokenInfoFragment, type TokenInfoFragmentFragment, type TokenInput, Vault, type VaultInput, VaultPositions, type VaultPositionsQuery, type VaultPositionsQueryVariables, VaultProtocol, type VaultQuery, type VaultQueryVariables, VaultSummaries, type VaultSummariesQuery, type VaultSummariesQueryVariables, VaultSummaryFragment, type VaultSummaryFragmentFragment, VaultType, result as default };
@@ -552,16 +552,18 @@ type MorphoVaultMarketAllocation = {
552
552
  /** Metadata for a Morpho vault */
553
553
  type MorphoVaultMetadata = {
554
554
  __typename?: 'MorphoVaultMetadata';
555
+ /** Curator of the vault */
556
+ curator: Maybe<Curator>;
555
557
  /**
556
558
  * Curators of the vault
557
- * @deprecated Removed from morpho metadata repo. Always empty array now.
559
+ * @deprecated Use curator field instead.
558
560
  */
559
561
  curators: Array<Curator>;
560
562
  /** Description of the vault */
561
563
  description: Maybe<Scalars['String']['output']>;
562
564
  /**
563
565
  * Forum link of the vault
564
- * @deprecated Removed from morpho metadata repo. Always null now.
566
+ * @deprecated No longer supported, will always be null.
565
567
  */
566
568
  forumLink: Maybe<Scalars['String']['output']>;
567
569
  /** Image of the vault */
@@ -994,12 +996,17 @@ type VaultSummaryFragmentFragment = {
994
996
  formatted: string;
995
997
  };
996
998
  };
999
+ supplyCap: {
1000
+ __typename?: 'TokenAmount';
1001
+ usd: number | null;
1002
+ };
997
1003
  }>;
998
1004
  };
999
1005
  type MarketSummaryFragmentFragment = {
1000
1006
  __typename?: 'MorphoMarket';
1001
1007
  name: string;
1002
1008
  marketId: `0x${string}`;
1009
+ isIdle: boolean;
1003
1010
  chain: {
1004
1011
  __typename?: 'Chain';
1005
1012
  id: 80094;
@@ -1195,6 +1202,10 @@ type VaultSummariesQuery = {
1195
1202
  formatted: string;
1196
1203
  };
1197
1204
  };
1205
+ supplyCap: {
1206
+ __typename?: 'TokenAmount';
1207
+ usd: number | null;
1208
+ };
1198
1209
  }>;
1199
1210
  } | null>;
1200
1211
  };
@@ -1215,6 +1226,7 @@ type MarketSummariesQuery = {
1215
1226
  __typename?: 'MorphoMarket';
1216
1227
  name: string;
1217
1228
  marketId: `0x${string}`;
1229
+ isIdle: boolean;
1218
1230
  chain: {
1219
1231
  __typename?: 'Chain';
1220
1232
  id: 80094;
@@ -1741,16 +1753,6 @@ type SupportedMarketIdsQuery = {
1741
1753
  } | null>;
1742
1754
  };
1743
1755
  };
1744
- type GetAccountIsOfacSanctionedQueryVariables = Exact<{
1745
- address: Scalars['Address']['input'];
1746
- }>;
1747
- type GetAccountIsOfacSanctionedQuery = {
1748
- __typename?: 'Query';
1749
- identity: {
1750
- __typename?: 'Identity';
1751
- isOfacSanctioned: boolean;
1752
- } | null;
1753
- };
1754
1756
  declare const ChainInfoFragment: graphql.DocumentNode;
1755
1757
  declare const TokenInfoFragment: graphql.DocumentNode;
1756
1758
  declare const CuratorInfoFragment: graphql.DocumentNode;
@@ -1788,7 +1790,6 @@ declare const Market: graphql.DocumentNode;
1788
1790
  declare const VaultPositions: graphql.DocumentNode;
1789
1791
  declare const MarketPositions: graphql.DocumentNode;
1790
1792
  declare const SupportedMarketIds: graphql.DocumentNode;
1791
- declare const GetAccountIsOfacSanctioned: graphql.DocumentNode;
1792
1793
  interface PossibleTypesResultData {
1793
1794
  possibleTypes: {
1794
1795
  [key: string]: string[];
@@ -1796,4 +1797,4 @@ interface PossibleTypesResultData {
1796
1797
  }
1797
1798
  declare const result: PossibleTypesResultData;
1798
1799
 
1799
- export { type AeraVault, type AeraVaultFilter, type AeraVaultPage, type AeraVaultPosition, type AeraVaultPositionFilter, type AeraVaultPositionPage, type Apy, ApyFragment, type ApyFragmentFragment, ApySide, type Chain, type ChainFilter, ChainInfoFragment, type ChainInfoFragmentFragment, type Curator, CuratorInfoFragment, type CuratorInfoFragmentFragment, type Exact, GetAccountIsOfacSanctioned, type GetAccountIsOfacSanctionedQuery, type GetAccountIsOfacSanctionedQueryVariables, 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 MorphoVaultFilter, type MorphoVaultHistorical, type MorphoVaultHistoricalEntry, type MorphoVaultMarketAllocation, type MorphoVaultMetadata, type MorphoVaultPage, type MorphoVaultPosition, type MorphoVaultPositionFilter, type MorphoVaultPositionHistorical, type MorphoVaultPositionHistoricalEntry, type MorphoVaultPositionPage, type OnchainAmount, type PageInfo, type PossibleTypesResultData, type Protocol, type Query, type QueryAeraVaultPositionsArgs, type QueryAeraVaultsArgs, type QueryChainsArgs, type QueryIdentitiesArgs, type QueryIdentityArgs, type QueryMerklAccountRewardsArgs, type QueryMorphoMarketPositionsArgs, type QueryMorphoMarketsArgs, type QueryMorphoVaultPositionsArgs, type QueryMorphoVaultsArgs, type QueryTokenHoldingsArgs, type QueryTokensArgs, type QueryVaultsArgs, type Reward, type Scalars, SupportedMarketIds, type SupportedMarketIdsQuery, type SupportedMarketIdsQueryVariables, type Token, type TokenAmount, TokenCategory, type TokenHistorical, type TokenHistoricalEntry, type TokenHolding, type TokenHoldingInput, TokenInfoFragment, type TokenInfoFragmentFragment, type TokenInput, Vault, type VaultInput, VaultPositions, type VaultPositionsQuery, type VaultPositionsQueryVariables, VaultProtocol, type VaultQuery, type VaultQueryVariables, VaultSummaries, type VaultSummariesQuery, type VaultSummariesQueryVariables, VaultSummaryFragment, type VaultSummaryFragmentFragment, VaultType, result as default };
1800
+ export { type AeraVault, type AeraVaultFilter, type AeraVaultPage, type AeraVaultPosition, type AeraVaultPositionFilter, type AeraVaultPositionPage, type Apy, ApyFragment, type ApyFragmentFragment, ApySide, type Chain, type ChainFilter, ChainInfoFragment, type ChainInfoFragmentFragment, type Curator, CuratorInfoFragment, type CuratorInfoFragmentFragment, type Exact, type Identity, IdentityResolver, type IdentityResolverOutput, type Incremental, type InputMaybe, type MakeEmpty, type MakeMaybe, type MakeOptional, Market, MarketPositions, type MarketPositionsQuery, type MarketPositionsQueryVariables, type MarketQuery, type MarketQueryVariables, MarketSummaries, type MarketSummariesQuery, type MarketSummariesQueryVariables, MarketSummaryFragment, type MarketSummaryFragmentFragment, type Maybe, type MerklAccountReward, MerklAction, type MerklRewardInput, type MorphoIrm, type MorphoIrmCurvePoint, type MorphoMarket, type MorphoMarketFilter, type MorphoMarketHistorical, type MorphoMarketHistoricalEntry, type MorphoMarketPage, type MorphoMarketPosition, type MorphoMarketPositionFilter, type MorphoMarketPositionHistorical, type MorphoMarketPositionHistoricalEntry, type MorphoMarketPositionPage, type MorphoVault, type MorphoVaultFilter, type MorphoVaultHistorical, type MorphoVaultHistoricalEntry, type MorphoVaultMarketAllocation, type MorphoVaultMetadata, type MorphoVaultPage, type MorphoVaultPosition, type MorphoVaultPositionFilter, type MorphoVaultPositionHistorical, type MorphoVaultPositionHistoricalEntry, type MorphoVaultPositionPage, type OnchainAmount, type PageInfo, type PossibleTypesResultData, type Protocol, type Query, type QueryAeraVaultPositionsArgs, type QueryAeraVaultsArgs, type QueryChainsArgs, type QueryIdentitiesArgs, type QueryIdentityArgs, type QueryMerklAccountRewardsArgs, type QueryMorphoMarketPositionsArgs, type QueryMorphoMarketsArgs, type QueryMorphoVaultPositionsArgs, type QueryMorphoVaultsArgs, type QueryTokenHoldingsArgs, type QueryTokensArgs, type QueryVaultsArgs, type Reward, type Scalars, SupportedMarketIds, type SupportedMarketIdsQuery, type SupportedMarketIdsQueryVariables, type Token, type TokenAmount, TokenCategory, type TokenHistorical, type TokenHistoricalEntry, type TokenHolding, type TokenHoldingInput, TokenInfoFragment, type TokenInfoFragmentFragment, type TokenInput, Vault, type VaultInput, VaultPositions, type VaultPositionsQuery, type VaultPositionsQueryVariables, VaultProtocol, type VaultQuery, type VaultQueryVariables, VaultSummaries, type VaultSummariesQuery, type VaultSummariesQueryVariables, VaultSummaryFragment, type VaultSummaryFragmentFragment, VaultType, result as default };
@@ -1,10 +1,10 @@
1
- import{gql as t}from"@apollo/client";var y=(n=>(n.Borrow="Borrow",n.Supply="Supply",n))(y||{}),m=(r=>(r.Base="base",r.Ens="ens",r.Farcaster="farcaster",r.Lens="lens",r.Nns="nns",r.Uni="uni",r.World="world",r))(m||{}),d=(n=>(n.Borrow="Borrow",n.Lend="Lend",n))(d||{}),c=(a=>(a.Btc="Btc",a.Eth="Eth",a.Stable="Stable",a))(c||{}),g=(e=>(e.Enzyme="enzyme",e.EulerEarn="euler_earn",e.EulerV2="euler_v2",e.Gearbox="gearbox",e.Lista="lista",e.Mellow="mellow",e.Midas="midas",e.Morpho="morpho",e.Napier="napier",e.Pendle="pendle",e.Reserve="reserve",e.Silo="silo",e.TurtleClub="turtle_club",e))(g||{}),A=(a=>(a.Index="index",a.Lending="lending",a.Staking="staking",a))(A||{}),s=t`
1
+ import{gql as e}from"@apollo/client";var y=(n=>(n.Borrow="Borrow",n.Supply="Supply",n))(y||{}),m=(r=>(r.Base="base",r.Ens="ens",r.Farcaster="farcaster",r.Lens="lens",r.Nns="nns",r.Uni="uni",r.World="world",r))(m||{}),d=(n=>(n.Borrow="Borrow",n.Lend="Lend",n))(d||{}),c=(a=>(a.Btc="Btc",a.Eth="Eth",a.Stable="Stable",a))(c||{}),g=(t=>(t.Enzyme="enzyme",t.EulerEarn="euler_earn",t.EulerV2="euler_v2",t.Gearbox="gearbox",t.Lista="lista",t.Mellow="mellow",t.Midas="midas",t.Morpho="morpho",t.Napier="napier",t.Pendle="pendle",t.Reserve="reserve",t.Silo="silo",t.TurtleClub="turtle_club",t))(g||{}),A=(a=>(a.Index="index",a.Lending="lending",a.Staking="staking",a))(A||{}),s=e`
2
2
  fragment ChainInfoFragment on Chain {
3
3
  id
4
4
  name
5
5
  icon
6
6
  }
7
- `,o=t`
7
+ `,o=e`
8
8
  fragment TokenInfoFragment on Token {
9
9
  address
10
10
  symbol
@@ -12,13 +12,13 @@ import{gql as t}from"@apollo/client";var y=(n=>(n.Borrow="Borrow",n.Supply="Supp
12
12
  icon
13
13
  category
14
14
  }
15
- `,u=t`
15
+ `,u=e`
16
16
  fragment CuratorInfoFragment on Curator {
17
17
  name
18
18
  image
19
19
  url
20
20
  }
21
- `,i=t`
21
+ `,i=e`
22
22
  fragment ApyFragment on Apy {
23
23
  base
24
24
  rewards {
@@ -30,7 +30,7 @@ import{gql as t}from"@apollo/client";var y=(n=>(n.Borrow="Borrow",n.Supply="Supp
30
30
  total
31
31
  fee
32
32
  }
33
- ${o}`,p=t`
33
+ ${o}`,l=e`
34
34
  fragment VaultSummaryFragment on MorphoVault {
35
35
  chain {
36
36
  ...ChainInfoFragment
@@ -72,19 +72,23 @@ import{gql as t}from"@apollo/client";var y=(n=>(n.Borrow="Borrow",n.Supply="Supp
72
72
  formatted
73
73
  }
74
74
  }
75
+ supplyCap {
76
+ usd
77
+ }
75
78
  vaultSupplyShare
76
79
  }
77
80
  }
78
81
  ${s}
79
82
  ${o}
80
83
  ${u}
81
- ${i}`,l=t`
84
+ ${i}`,p=e`
82
85
  fragment MarketSummaryFragment on MorphoMarket {
83
86
  chain {
84
87
  ...ChainInfoFragment
85
88
  }
86
89
  name
87
90
  marketId
91
+ isIdle
88
92
  totalBorrowed {
89
93
  raw
90
94
  formatted
@@ -134,7 +138,7 @@ ${i}`,l=t`
134
138
  }
135
139
  ${s}
136
140
  ${o}
137
- ${i}`,h=t`
141
+ ${i}`,h=e`
138
142
  query VaultSummaries($chainIds: [ChainId!]!, $vaultAddresses: [Address!]!) {
139
143
  morphoVaults(
140
144
  where: {chainId_in: $chainIds, vaultAddress_in: $vaultAddresses}
@@ -148,7 +152,7 @@ ${i}`,h=t`
148
152
  }
149
153
  }
150
154
  }
151
- ${p}`,k=t`
155
+ ${l}`,k=e`
152
156
  query MarketSummaries($chainIds: [ChainId!]!, $marketIds: [Hex!]!) {
153
157
  morphoMarkets(
154
158
  where: {chainId_in: $chainIds, marketId_in: $marketIds}
@@ -162,7 +166,7 @@ ${i}`,h=t`
162
166
  }
163
167
  }
164
168
  }
165
- ${l}`,M=t`
169
+ ${p}`,M=e`
166
170
  query Vault($chainId: ChainId!, $vaultAddress: Address!) {
167
171
  morphoVaults(where: {chainId_in: [$chainId], vaultAddress_in: [$vaultAddress]}) {
168
172
  items {
@@ -239,10 +243,10 @@ ${i}`,h=t`
239
243
  }
240
244
  }
241
245
  }
242
- ${p}
246
+ ${l}
243
247
  ${s}
244
248
  ${o}
245
- ${i}`,S=t`
249
+ ${i}`,S=e`
246
250
  query Market($chainId: ChainId!, $marketId: Hex!) {
247
251
  morphoMarkets(where: {chainId_in: [$chainId], marketId_in: [$marketId]}) {
248
252
  items {
@@ -326,10 +330,10 @@ ${i}`,S=t`
326
330
  }
327
331
  }
328
332
  }
329
- ${l}
333
+ ${p}
330
334
  ${o}
331
335
  ${s}
332
- ${u}`,I=t`
336
+ ${u}`,I=e`
333
337
  query VaultPositions($chainIds: [ChainId!]!, $vaultAddresses: [Address!]!, $accountAddress: Address!) {
334
338
  morphoVaultPositions(
335
339
  where: {chainId_in: $chainIds, vaultAddress_in: $vaultAddresses, accountAddress_in: [$accountAddress]}
@@ -357,7 +361,7 @@ ${u}`,I=t`
357
361
  }
358
362
  }
359
363
  }
360
- `,x=t`
364
+ `,x=e`
361
365
  query MarketPositions($chainIds: [ChainId!]!, $marketIds: [Hex!]!, $accountAddress: Address!) {
362
366
  morphoMarketPositions(
363
367
  where: {chainId_in: $chainIds, marketId_in: $marketIds, accountAddress_in: [$accountAddress]}
@@ -400,7 +404,7 @@ ${u}`,I=t`
400
404
  }
401
405
  }
402
406
  }
403
- `,T=t`
407
+ `,T=e`
404
408
  query SupportedMarketIds($chainIds: [ChainId!]!, $vaultAddresses: [Address!]!) {
405
409
  morphoVaults(where: {chainId_in: $chainIds, vaultAddress_in: $vaultAddresses}) {
406
410
  items {
@@ -415,10 +419,4 @@ ${u}`,I=t`
415
419
  }
416
420
  }
417
421
  }
418
- `,f=t`
419
- query getAccountIsOfacSanctioned($address: Address!) {
420
- identity(address: $address) {
421
- isOfacSanctioned
422
- }
423
- }
424
- `,_={possibleTypes:{}},w=_;export{i as ApyFragment,y as ApySide,s as ChainInfoFragment,u as CuratorInfoFragment,f as GetAccountIsOfacSanctioned,m as IdentityResolver,S as Market,x as MarketPositions,k as MarketSummaries,l as MarketSummaryFragment,d as MerklAction,T as SupportedMarketIds,c as TokenCategory,o as TokenInfoFragment,M as Vault,I as VaultPositions,g as VaultProtocol,h as VaultSummaries,p as VaultSummaryFragment,A as VaultType,w as default};
422
+ `,_={possibleTypes:{}},w=_;export{i as ApyFragment,y as ApySide,s as ChainInfoFragment,u as CuratorInfoFragment,m as IdentityResolver,S as Market,x as MarketPositions,k as MarketSummaries,p as MarketSummaryFragment,d as MerklAction,T as SupportedMarketIds,c as TokenCategory,o as TokenInfoFragment,M as Vault,I as VaultPositions,g as VaultProtocol,h as VaultSummaries,l as VaultSummaryFragment,A as VaultType,w as default};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@berachain/graphql",
3
- "version": "0.1.6-beta.1",
3
+ "version": "0.1.8-beta.1",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "dist"
@@ -12,7 +12,8 @@
12
12
  "node": ">=22"
13
13
  },
14
14
  "dependencies": {
15
- "@apollo/client": "4.0.7"
15
+ "@apollo/client": "4.0.7",
16
+ "@berachain/graphql": "^0.1.8-beta.1"
16
17
  },
17
18
  "peerDependencies": {
18
19
  "@apollo/client": "^4.0",
@@ -26,10 +27,10 @@
26
27
  "@graphql-codegen/client-preset": "4.7.0",
27
28
  "@graphql-codegen/fragment-matcher": "5.1.0",
28
29
  "@graphql-codegen/near-operation-file-preset": "3.0.0",
30
+ "@graphql-codegen/typescript": "5.0.0",
29
31
  "@graphql-codegen/typescript-document-nodes": "5.0.0",
30
32
  "@graphql-codegen/typescript-operations": "5.0.0",
31
33
  "@graphql-codegen/typescript-react-apollo": "4.3.3",
32
- "@graphql-codegen/typescript": "5.0.0",
33
34
  "@parcel/watcher": "2.5.1",
34
35
  "@types/node": "22.12.0",
35
36
  "dotenv": "16.6.1",