@berachain/graphql 0.1.6-beta.1 → 0.1.7-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:()=>l,ApySide:()=>g,ChainInfoFragment:()=>p,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||{}),p=t.gql`
2
2
  fragment ChainInfoFragment on Chain {
3
3
  id
4
4
  name
@@ -72,6 +72,9 @@
72
72
  formatted
73
73
  }
74
74
  }
75
+ supplyCap {
76
+ usd
77
+ }
75
78
  vaultSupplyShare
76
79
  }
77
80
  }
@@ -134,7 +137,7 @@ ${l}`,c=t.gql`
134
137
  }
135
138
  ${p}
136
139
  ${i}
137
- ${l}`,w=t.gql`
140
+ ${l}`,f=t.gql`
138
141
  query VaultSummaries($chainIds: [ChainId!]!, $vaultAddresses: [Address!]!) {
139
142
  morphoVaults(
140
143
  where: {chainId_in: $chainIds, vaultAddress_in: $vaultAddresses}
@@ -415,10 +418,4 @@ ${m}`,$=t.gql`
415
418
  }
416
419
  }
417
420
  }
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});
421
+ `,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});
@@ -994,6 +994,10 @@ type VaultSummaryFragmentFragment = {
994
994
  formatted: string;
995
995
  };
996
996
  };
997
+ supplyCap: {
998
+ __typename?: 'TokenAmount';
999
+ usd: number | null;
1000
+ };
997
1001
  }>;
998
1002
  };
999
1003
  type MarketSummaryFragmentFragment = {
@@ -1195,6 +1199,10 @@ type VaultSummariesQuery = {
1195
1199
  formatted: string;
1196
1200
  };
1197
1201
  };
1202
+ supplyCap: {
1203
+ __typename?: 'TokenAmount';
1204
+ usd: number | null;
1205
+ };
1198
1206
  }>;
1199
1207
  } | null>;
1200
1208
  };
@@ -1741,16 +1749,6 @@ type SupportedMarketIdsQuery = {
1741
1749
  } | null>;
1742
1750
  };
1743
1751
  };
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
1752
  declare const ChainInfoFragment: graphql.DocumentNode;
1755
1753
  declare const TokenInfoFragment: graphql.DocumentNode;
1756
1754
  declare const CuratorInfoFragment: graphql.DocumentNode;
@@ -1788,7 +1786,6 @@ declare const Market: graphql.DocumentNode;
1788
1786
  declare const VaultPositions: graphql.DocumentNode;
1789
1787
  declare const MarketPositions: graphql.DocumentNode;
1790
1788
  declare const SupportedMarketIds: graphql.DocumentNode;
1791
- declare const GetAccountIsOfacSanctioned: graphql.DocumentNode;
1792
1789
  interface PossibleTypesResultData {
1793
1790
  possibleTypes: {
1794
1791
  [key: string]: string[];
@@ -1796,4 +1793,4 @@ interface PossibleTypesResultData {
1796
1793
  }
1797
1794
  declare const result: PossibleTypesResultData;
1798
1795
 
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 };
1796
+ 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 };
@@ -994,6 +994,10 @@ type VaultSummaryFragmentFragment = {
994
994
  formatted: string;
995
995
  };
996
996
  };
997
+ supplyCap: {
998
+ __typename?: 'TokenAmount';
999
+ usd: number | null;
1000
+ };
997
1001
  }>;
998
1002
  };
999
1003
  type MarketSummaryFragmentFragment = {
@@ -1195,6 +1199,10 @@ type VaultSummariesQuery = {
1195
1199
  formatted: string;
1196
1200
  };
1197
1201
  };
1202
+ supplyCap: {
1203
+ __typename?: 'TokenAmount';
1204
+ usd: number | null;
1205
+ };
1198
1206
  }>;
1199
1207
  } | null>;
1200
1208
  };
@@ -1741,16 +1749,6 @@ type SupportedMarketIdsQuery = {
1741
1749
  } | null>;
1742
1750
  };
1743
1751
  };
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
1752
  declare const ChainInfoFragment: graphql.DocumentNode;
1755
1753
  declare const TokenInfoFragment: graphql.DocumentNode;
1756
1754
  declare const CuratorInfoFragment: graphql.DocumentNode;
@@ -1788,7 +1786,6 @@ declare const Market: graphql.DocumentNode;
1788
1786
  declare const VaultPositions: graphql.DocumentNode;
1789
1787
  declare const MarketPositions: graphql.DocumentNode;
1790
1788
  declare const SupportedMarketIds: graphql.DocumentNode;
1791
- declare const GetAccountIsOfacSanctioned: graphql.DocumentNode;
1792
1789
  interface PossibleTypesResultData {
1793
1790
  possibleTypes: {
1794
1791
  [key: string]: string[];
@@ -1796,4 +1793,4 @@ interface PossibleTypesResultData {
1796
1793
  }
1797
1794
  declare const result: PossibleTypesResultData;
1798
1795
 
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 };
1796
+ 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}`,p=e`
34
34
  fragment VaultSummaryFragment on MorphoVault {
35
35
  chain {
36
36
  ...ChainInfoFragment
@@ -72,13 +72,16 @@ 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}`,l=e`
82
85
  fragment MarketSummaryFragment on MorphoMarket {
83
86
  chain {
84
87
  ...ChainInfoFragment
@@ -134,7 +137,7 @@ ${i}`,l=t`
134
137
  }
135
138
  ${s}
136
139
  ${o}
137
- ${i}`,h=t`
140
+ ${i}`,h=e`
138
141
  query VaultSummaries($chainIds: [ChainId!]!, $vaultAddresses: [Address!]!) {
139
142
  morphoVaults(
140
143
  where: {chainId_in: $chainIds, vaultAddress_in: $vaultAddresses}
@@ -148,7 +151,7 @@ ${i}`,h=t`
148
151
  }
149
152
  }
150
153
  }
151
- ${p}`,k=t`
154
+ ${p}`,k=e`
152
155
  query MarketSummaries($chainIds: [ChainId!]!, $marketIds: [Hex!]!) {
153
156
  morphoMarkets(
154
157
  where: {chainId_in: $chainIds, marketId_in: $marketIds}
@@ -162,7 +165,7 @@ ${i}`,h=t`
162
165
  }
163
166
  }
164
167
  }
165
- ${l}`,M=t`
168
+ ${l}`,M=e`
166
169
  query Vault($chainId: ChainId!, $vaultAddress: Address!) {
167
170
  morphoVaults(where: {chainId_in: [$chainId], vaultAddress_in: [$vaultAddress]}) {
168
171
  items {
@@ -242,7 +245,7 @@ ${i}`,h=t`
242
245
  ${p}
243
246
  ${s}
244
247
  ${o}
245
- ${i}`,S=t`
248
+ ${i}`,S=e`
246
249
  query Market($chainId: ChainId!, $marketId: Hex!) {
247
250
  morphoMarkets(where: {chainId_in: [$chainId], marketId_in: [$marketId]}) {
248
251
  items {
@@ -329,7 +332,7 @@ ${i}`,S=t`
329
332
  ${l}
330
333
  ${o}
331
334
  ${s}
332
- ${u}`,I=t`
335
+ ${u}`,I=e`
333
336
  query VaultPositions($chainIds: [ChainId!]!, $vaultAddresses: [Address!]!, $accountAddress: Address!) {
334
337
  morphoVaultPositions(
335
338
  where: {chainId_in: $chainIds, vaultAddress_in: $vaultAddresses, accountAddress_in: [$accountAddress]}
@@ -357,7 +360,7 @@ ${u}`,I=t`
357
360
  }
358
361
  }
359
362
  }
360
- `,x=t`
363
+ `,x=e`
361
364
  query MarketPositions($chainIds: [ChainId!]!, $marketIds: [Hex!]!, $accountAddress: Address!) {
362
365
  morphoMarketPositions(
363
366
  where: {chainId_in: $chainIds, marketId_in: $marketIds, accountAddress_in: [$accountAddress]}
@@ -400,7 +403,7 @@ ${u}`,I=t`
400
403
  }
401
404
  }
402
405
  }
403
- `,T=t`
406
+ `,T=e`
404
407
  query SupportedMarketIds($chainIds: [ChainId!]!, $vaultAddresses: [Address!]!) {
405
408
  morphoVaults(where: {chainId_in: $chainIds, vaultAddress_in: $vaultAddresses}) {
406
409
  items {
@@ -415,10 +418,4 @@ ${u}`,I=t`
415
418
  }
416
419
  }
417
420
  }
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};
421
+ `,_={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,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};
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.7-beta.1",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "dist"