@berachain/graphql 0.1.0-alpha.1 → 0.1.0-alpha.11
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 +17 -5
- package/dist/bend/whisk.codegen.d.mts +1798 -0
- package/dist/bend/whisk.codegen.d.ts +93 -1
- package/dist/bend/whisk.codegen.js +17 -17
- package/dist/bend/whisk.codegen.mjs +424 -0
- package/dist/chain/chain.codegen.d.mts +376 -0
- package/dist/chain/chain.codegen.js +2 -2
- package/dist/chain/chain.codegen.mjs +12 -0
- package/dist/dex/api.codegen.d.mts +3836 -0
- package/dist/dex/api.codegen.d.ts +25 -25
- package/dist/dex/api.codegen.js +17 -17
- package/dist/dex/api.codegen.mjs +199 -0
- package/dist/dex/subgraph.codegen.d.mts +5887 -0
- package/dist/dex/subgraph.codegen.js +9 -9
- package/dist/dex/subgraph.codegen.mjs +88 -0
- package/dist/governance/governance.codegen.d.mts +1622 -0
- package/dist/governance/governance.codegen.js +9 -9
- package/dist/governance/governance.codegen.mjs +116 -0
- package/dist/honey/honey.codegen.d.mts +936 -0
- package/dist/honey/honey.codegen.js +10 -10
- package/dist/honey/honey.codegen.mjs +104 -0
- package/dist/pol/api.codegen.d.mts +3622 -0
- package/dist/pol/api.codegen.d.ts +30 -30
- package/dist/pol/api.codegen.js +21 -21
- package/dist/pol/api.codegen.mjs +301 -0
- package/dist/pol/subgraph.codegen.d.mts +4671 -0
- package/dist/pol/subgraph.codegen.js +20 -20
- package/dist/pol/subgraph.codegen.mjs +197 -0
- package/package.json +30 -18
|
@@ -64,6 +64,84 @@ type Scalars = {
|
|
|
64
64
|
output: string;
|
|
65
65
|
};
|
|
66
66
|
};
|
|
67
|
+
/** Aera vault */
|
|
68
|
+
type AeraVault = {
|
|
69
|
+
__typename?: 'AeraVault';
|
|
70
|
+
/** Chain the vault is deployed on */
|
|
71
|
+
chain: Chain;
|
|
72
|
+
/** Vault-level paused flag (guardian operations) */
|
|
73
|
+
isPaused: Scalars['Boolean']['output'];
|
|
74
|
+
/** Management fee of the vault */
|
|
75
|
+
managementFee: OnchainAmount;
|
|
76
|
+
/** Name of the vault */
|
|
77
|
+
name: Scalars['String']['output'];
|
|
78
|
+
/** Numeraire asset of the vault */
|
|
79
|
+
numeraireAsset: Token;
|
|
80
|
+
/** Performance fee of the vault */
|
|
81
|
+
performanceFee: OnchainAmount;
|
|
82
|
+
/** APY earned when supplying to the vault smoothed over 1 day. */
|
|
83
|
+
supplyApy1d: Apy;
|
|
84
|
+
/** APY earned when supplying to the vault smoothed over 7 days. */
|
|
85
|
+
supplyApy7d: Apy;
|
|
86
|
+
/** APY earned when supplying to the vault smoothed over 30 days. */
|
|
87
|
+
supplyApy30d: Apy;
|
|
88
|
+
/** Total amount of the numeraire assets supplied to the vault */
|
|
89
|
+
totalSupplied: TokenAmount;
|
|
90
|
+
/** Address of the vault contract */
|
|
91
|
+
vaultAddress: Scalars['Address']['output'];
|
|
92
|
+
};
|
|
93
|
+
/** Filter for Aera vaults */
|
|
94
|
+
type AeraVaultFilter = {
|
|
95
|
+
/** Filter for certain chainIds */
|
|
96
|
+
chainId_in: InputMaybe<Array<Scalars['ChainId']['input']>>;
|
|
97
|
+
/** Filter for certain vault addresses */
|
|
98
|
+
vaultAddress_in: InputMaybe<Array<Scalars['Address']['input']>>;
|
|
99
|
+
};
|
|
100
|
+
/** Page of Aera vaults */
|
|
101
|
+
type AeraVaultPage = {
|
|
102
|
+
__typename?: 'AeraVaultPage';
|
|
103
|
+
/** The items in the page */
|
|
104
|
+
items: Array<Maybe<AeraVault>>;
|
|
105
|
+
/** Pagination information for the page */
|
|
106
|
+
pageInfo: PageInfo;
|
|
107
|
+
/** Total number of items */
|
|
108
|
+
totalCount: Scalars['Int']['output'];
|
|
109
|
+
};
|
|
110
|
+
/** Position of an account in an Aera vault */
|
|
111
|
+
type AeraVaultPosition = {
|
|
112
|
+
__typename?: 'AeraVaultPosition';
|
|
113
|
+
/** Address of the account */
|
|
114
|
+
accountAddress: Scalars['Address']['output'];
|
|
115
|
+
/** Whether the account has a pending deposit */
|
|
116
|
+
hasPendingDeposit: Scalars['Boolean']['output'];
|
|
117
|
+
/** Whether the account has a pending withdrawal */
|
|
118
|
+
hasPendingWithdrawal: Scalars['Boolean']['output'];
|
|
119
|
+
/** Position balance in numeraire assets */
|
|
120
|
+
supplyAmount: TokenAmount;
|
|
121
|
+
/** Position balance in shares */
|
|
122
|
+
supplyShares: OnchainAmount;
|
|
123
|
+
/** Vault the position is in */
|
|
124
|
+
vault: AeraVault;
|
|
125
|
+
};
|
|
126
|
+
/** Filter for Aera vault positions */
|
|
127
|
+
type AeraVaultPositionFilter = {
|
|
128
|
+
/** Filter for certain account addresses */
|
|
129
|
+
accountAddress_in: InputMaybe<Array<Scalars['Address']['input']>>;
|
|
130
|
+
/** Filter for certain chainIds */
|
|
131
|
+
chainId_in: InputMaybe<Array<Scalars['ChainId']['input']>>;
|
|
132
|
+
/** Filter for certain vault addresses */
|
|
133
|
+
vaultAddress_in: InputMaybe<Array<Scalars['Address']['input']>>;
|
|
134
|
+
};
|
|
135
|
+
/** Page of Aera vault positions */
|
|
136
|
+
type AeraVaultPositionPage = {
|
|
137
|
+
__typename?: 'AeraVaultPositionPage';
|
|
138
|
+
/** The items in the page */
|
|
139
|
+
items: Array<Maybe<AeraVaultPosition>>;
|
|
140
|
+
/** Pagination information for the page */
|
|
141
|
+
pageInfo: PageInfo;
|
|
142
|
+
/** Total number of items */
|
|
143
|
+
totalCount: Scalars['Int']['output'];
|
|
144
|
+
};
|
|
67
145
|
/** Annual Percentage Yield (APY) of an opportunity */
|
|
68
146
|
type Apy = {
|
|
69
147
|
__typename?: 'Apy';
|
|
@@ -577,6 +655,8 @@ type Protocol = {
|
|
|
577
655
|
};
|
|
578
656
|
type Query = {
|
|
579
657
|
__typename?: 'Query';
|
|
658
|
+
aeraVaultPositions: AeraVaultPositionPage;
|
|
659
|
+
aeraVaults: AeraVaultPage;
|
|
580
660
|
/** Get supported chains (note that not all kits support all chains) */
|
|
581
661
|
chains: Array<Chain>;
|
|
582
662
|
identities: Array<Identity>;
|
|
@@ -598,6 +678,18 @@ type Query = {
|
|
|
598
678
|
/** Query for vaults */
|
|
599
679
|
vaults: Array<Maybe<Vault>>;
|
|
600
680
|
};
|
|
681
|
+
type QueryAeraVaultPositionsArgs = {
|
|
682
|
+
after: InputMaybe<Scalars['String']['input']>;
|
|
683
|
+
before: InputMaybe<Scalars['String']['input']>;
|
|
684
|
+
limit: InputMaybe<Scalars['Int']['input']>;
|
|
685
|
+
where: AeraVaultPositionFilter;
|
|
686
|
+
};
|
|
687
|
+
type QueryAeraVaultsArgs = {
|
|
688
|
+
after: InputMaybe<Scalars['String']['input']>;
|
|
689
|
+
before: InputMaybe<Scalars['String']['input']>;
|
|
690
|
+
limit: InputMaybe<Scalars['Int']['input']>;
|
|
691
|
+
where: InputMaybe<AeraVaultFilter>;
|
|
692
|
+
};
|
|
601
693
|
type QueryChainsArgs = {
|
|
602
694
|
where: InputMaybe<ChainFilter>;
|
|
603
695
|
};
|
|
@@ -1703,4 +1795,4 @@ interface PossibleTypesResultData {
|
|
|
1703
1795
|
}
|
|
1704
1796
|
declare const result: PossibleTypesResultData;
|
|
1705
1797
|
|
|
1706
|
-
export { 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 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 };
|
|
1798
|
+
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 };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _client = require('@apollo/client');var y=(n=>(n.Borrow="Borrow",n.Supply="Supply",n))(y||{}),m= exports.IdentityResolver =(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= exports.MerklAction =(n=>(n.Borrow="Borrow",n.Lend="Lend",n))(d||{}),c= exports.TokenCategory =(a=>(a.Btc="Btc",a.Eth="Eth",a.Stable="Stable",a))(c||{}),g= exports.VaultProtocol =(e=>(e.Enzyme="enzyme",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= exports.VaultType =(a=>(a.Index="index",a.Lending="lending",a.Staking="staking",a))(A||{}),s= exports.ChainInfoFragment =_client.gql`
|
|
2
2
|
fragment ChainInfoFragment on Chain {
|
|
3
3
|
id
|
|
4
4
|
name
|
|
5
5
|
icon
|
|
6
6
|
}
|
|
7
|
-
`,o=
|
|
7
|
+
`,o= exports.TokenInfoFragment =_client.gql`
|
|
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=
|
|
15
|
+
`,u= exports.CuratorInfoFragment =_client.gql`
|
|
16
16
|
fragment CuratorInfoFragment on Curator {
|
|
17
17
|
name
|
|
18
18
|
image
|
|
19
19
|
url
|
|
20
20
|
}
|
|
21
|
-
`,i=
|
|
21
|
+
`,i= exports.ApyFragment =_client.gql`
|
|
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}`,
|
|
33
|
+
${o}`,p= exports.VaultSummaryFragment =_client.gql`
|
|
34
34
|
fragment VaultSummaryFragment on MorphoVault {
|
|
35
35
|
chain {
|
|
36
36
|
...ChainInfoFragment
|
|
@@ -78,7 +78,7 @@ import{gql as t}from"@apollo/client";var y=(n=>(n.Borrow="Borrow",n.Supply="Supp
|
|
|
78
78
|
${s}
|
|
79
79
|
${o}
|
|
80
80
|
${u}
|
|
81
|
-
${i}`,
|
|
81
|
+
${i}`,l= exports.MarketSummaryFragment =_client.gql`
|
|
82
82
|
fragment MarketSummaryFragment on MorphoMarket {
|
|
83
83
|
chain {
|
|
84
84
|
...ChainInfoFragment
|
|
@@ -134,7 +134,7 @@ ${i}`,p=t`
|
|
|
134
134
|
}
|
|
135
135
|
${s}
|
|
136
136
|
${o}
|
|
137
|
-
${i}`,h=
|
|
137
|
+
${i}`,h= exports.VaultSummaries =_client.gql`
|
|
138
138
|
query VaultSummaries($chainIds: [ChainId!]!, $vaultAddresses: [Address!]!) {
|
|
139
139
|
morphoVaults(
|
|
140
140
|
where: {chainId_in: $chainIds, vaultAddress_in: $vaultAddresses}
|
|
@@ -148,7 +148,7 @@ ${i}`,h=t`
|
|
|
148
148
|
}
|
|
149
149
|
}
|
|
150
150
|
}
|
|
151
|
-
${
|
|
151
|
+
${p}`,k= exports.MarketSummaries =_client.gql`
|
|
152
152
|
query MarketSummaries($chainIds: [ChainId!]!, $marketIds: [Hex!]!) {
|
|
153
153
|
morphoMarkets(
|
|
154
154
|
where: {chainId_in: $chainIds, marketId_in: $marketIds}
|
|
@@ -162,7 +162,7 @@ ${i}`,h=t`
|
|
|
162
162
|
}
|
|
163
163
|
}
|
|
164
164
|
}
|
|
165
|
-
${
|
|
165
|
+
${l}`,M= exports.Vault =_client.gql`
|
|
166
166
|
query Vault($chainId: ChainId!, $vaultAddress: Address!) {
|
|
167
167
|
morphoVaults(where: {chainId_in: [$chainId], vaultAddress_in: [$vaultAddress]}) {
|
|
168
168
|
items {
|
|
@@ -239,10 +239,10 @@ ${i}`,h=t`
|
|
|
239
239
|
}
|
|
240
240
|
}
|
|
241
241
|
}
|
|
242
|
-
${
|
|
242
|
+
${p}
|
|
243
243
|
${s}
|
|
244
244
|
${o}
|
|
245
|
-
${i}`,S=
|
|
245
|
+
${i}`,S= exports.Market =_client.gql`
|
|
246
246
|
query Market($chainId: ChainId!, $marketId: Hex!) {
|
|
247
247
|
morphoMarkets(where: {chainId_in: [$chainId], marketId_in: [$marketId]}) {
|
|
248
248
|
items {
|
|
@@ -326,10 +326,10 @@ ${i}`,S=t`
|
|
|
326
326
|
}
|
|
327
327
|
}
|
|
328
328
|
}
|
|
329
|
-
${
|
|
329
|
+
${l}
|
|
330
330
|
${o}
|
|
331
331
|
${s}
|
|
332
|
-
${u}`,I=
|
|
332
|
+
${u}`,I= exports.VaultPositions =_client.gql`
|
|
333
333
|
query VaultPositions($chainIds: [ChainId!]!, $vaultAddresses: [Address!]!, $accountAddress: Address!) {
|
|
334
334
|
morphoVaultPositions(
|
|
335
335
|
where: {chainId_in: $chainIds, vaultAddress_in: $vaultAddresses, accountAddress_in: [$accountAddress]}
|
|
@@ -357,7 +357,7 @@ ${u}`,I=t`
|
|
|
357
357
|
}
|
|
358
358
|
}
|
|
359
359
|
}
|
|
360
|
-
`,x=
|
|
360
|
+
`,x= exports.MarketPositions =_client.gql`
|
|
361
361
|
query MarketPositions($chainIds: [ChainId!]!, $marketIds: [Hex!]!, $accountAddress: Address!) {
|
|
362
362
|
morphoMarketPositions(
|
|
363
363
|
where: {chainId_in: $chainIds, marketId_in: $marketIds, accountAddress_in: [$accountAddress]}
|
|
@@ -400,7 +400,7 @@ ${u}`,I=t`
|
|
|
400
400
|
}
|
|
401
401
|
}
|
|
402
402
|
}
|
|
403
|
-
`,T=
|
|
403
|
+
`,T= exports.SupportedMarketIds =_client.gql`
|
|
404
404
|
query SupportedMarketIds($chainIds: [ChainId!]!, $vaultAddresses: [Address!]!) {
|
|
405
405
|
morphoVaults(where: {chainId_in: $chainIds, vaultAddress_in: $vaultAddresses}) {
|
|
406
406
|
items {
|
|
@@ -415,10 +415,10 @@ ${u}`,I=t`
|
|
|
415
415
|
}
|
|
416
416
|
}
|
|
417
417
|
}
|
|
418
|
-
`,
|
|
418
|
+
`,f= exports.GetAccountIsOfacSanctioned =_client.gql`
|
|
419
419
|
query getAccountIsOfacSanctioned($address: Address!) {
|
|
420
420
|
identity(address: $address) {
|
|
421
421
|
isOfacSanctioned
|
|
422
422
|
}
|
|
423
423
|
}
|
|
424
|
-
`,_={possibleTypes:{}},
|
|
424
|
+
`,_={possibleTypes:{}},w= exports.default =_;exports.ApyFragment = i; exports.ApySide = y; exports.ChainInfoFragment = s; exports.CuratorInfoFragment = u; exports.GetAccountIsOfacSanctioned = f; exports.IdentityResolver = m; exports.Market = S; exports.MarketPositions = x; exports.MarketSummaries = k; exports.MarketSummaryFragment = l; exports.MerklAction = d; exports.SupportedMarketIds = T; exports.TokenCategory = c; exports.TokenInfoFragment = o; exports.Vault = M; exports.VaultPositions = I; exports.VaultProtocol = g; exports.VaultSummaries = h; exports.VaultSummaryFragment = p; exports.VaultType = A; exports.default = w;
|
|
@@ -0,0 +1,424 @@
|
|
|
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.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`
|
|
2
|
+
fragment ChainInfoFragment on Chain {
|
|
3
|
+
id
|
|
4
|
+
name
|
|
5
|
+
icon
|
|
6
|
+
}
|
|
7
|
+
`,o=t`
|
|
8
|
+
fragment TokenInfoFragment on Token {
|
|
9
|
+
address
|
|
10
|
+
symbol
|
|
11
|
+
decimals
|
|
12
|
+
icon
|
|
13
|
+
category
|
|
14
|
+
}
|
|
15
|
+
`,u=t`
|
|
16
|
+
fragment CuratorInfoFragment on Curator {
|
|
17
|
+
name
|
|
18
|
+
image
|
|
19
|
+
url
|
|
20
|
+
}
|
|
21
|
+
`,i=t`
|
|
22
|
+
fragment ApyFragment on Apy {
|
|
23
|
+
base
|
|
24
|
+
rewards {
|
|
25
|
+
asset {
|
|
26
|
+
...TokenInfoFragment
|
|
27
|
+
}
|
|
28
|
+
apr
|
|
29
|
+
}
|
|
30
|
+
total
|
|
31
|
+
fee
|
|
32
|
+
}
|
|
33
|
+
${o}`,p=t`
|
|
34
|
+
fragment VaultSummaryFragment on MorphoVault {
|
|
35
|
+
chain {
|
|
36
|
+
...ChainInfoFragment
|
|
37
|
+
}
|
|
38
|
+
vaultAddress
|
|
39
|
+
name
|
|
40
|
+
asset {
|
|
41
|
+
...TokenInfoFragment
|
|
42
|
+
priceUsd
|
|
43
|
+
}
|
|
44
|
+
metadata {
|
|
45
|
+
curators {
|
|
46
|
+
...CuratorInfoFragment
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
totalSupplied {
|
|
50
|
+
raw
|
|
51
|
+
formatted
|
|
52
|
+
usd
|
|
53
|
+
}
|
|
54
|
+
totalLiquidity {
|
|
55
|
+
raw
|
|
56
|
+
formatted
|
|
57
|
+
usd
|
|
58
|
+
}
|
|
59
|
+
supplyApy {
|
|
60
|
+
...ApyFragment
|
|
61
|
+
}
|
|
62
|
+
marketAllocations {
|
|
63
|
+
market {
|
|
64
|
+
collateralAsset {
|
|
65
|
+
...TokenInfoFragment
|
|
66
|
+
}
|
|
67
|
+
supplyApy {
|
|
68
|
+
...ApyFragment
|
|
69
|
+
}
|
|
70
|
+
fee {
|
|
71
|
+
raw
|
|
72
|
+
formatted
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
vaultSupplyShare
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
${s}
|
|
79
|
+
${o}
|
|
80
|
+
${u}
|
|
81
|
+
${i}`,l=t`
|
|
82
|
+
fragment MarketSummaryFragment on MorphoMarket {
|
|
83
|
+
chain {
|
|
84
|
+
...ChainInfoFragment
|
|
85
|
+
}
|
|
86
|
+
name
|
|
87
|
+
marketId
|
|
88
|
+
totalBorrowed {
|
|
89
|
+
raw
|
|
90
|
+
formatted
|
|
91
|
+
usd
|
|
92
|
+
}
|
|
93
|
+
totalSupplied {
|
|
94
|
+
raw
|
|
95
|
+
formatted
|
|
96
|
+
usd
|
|
97
|
+
}
|
|
98
|
+
liquidityInMarket {
|
|
99
|
+
raw
|
|
100
|
+
formatted
|
|
101
|
+
usd
|
|
102
|
+
}
|
|
103
|
+
publicAllocatorSharedLiquidity {
|
|
104
|
+
raw
|
|
105
|
+
formatted
|
|
106
|
+
usd
|
|
107
|
+
}
|
|
108
|
+
collateralAsset {
|
|
109
|
+
...TokenInfoFragment
|
|
110
|
+
}
|
|
111
|
+
loanAsset {
|
|
112
|
+
...TokenInfoFragment
|
|
113
|
+
}
|
|
114
|
+
lltv {
|
|
115
|
+
raw
|
|
116
|
+
formatted
|
|
117
|
+
}
|
|
118
|
+
borrowApy {
|
|
119
|
+
...ApyFragment
|
|
120
|
+
}
|
|
121
|
+
vaultAllocations {
|
|
122
|
+
vault {
|
|
123
|
+
vaultAddress
|
|
124
|
+
}
|
|
125
|
+
position {
|
|
126
|
+
supplyAmount {
|
|
127
|
+
usd
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
supplyCap {
|
|
131
|
+
usd
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
${s}
|
|
136
|
+
${o}
|
|
137
|
+
${i}`,h=t`
|
|
138
|
+
query VaultSummaries($chainIds: [ChainId!]!, $vaultAddresses: [Address!]!) {
|
|
139
|
+
morphoVaults(
|
|
140
|
+
where: {chainId_in: $chainIds, vaultAddress_in: $vaultAddresses}
|
|
141
|
+
limit: 250
|
|
142
|
+
) {
|
|
143
|
+
pageInfo {
|
|
144
|
+
hasNextPage
|
|
145
|
+
}
|
|
146
|
+
items {
|
|
147
|
+
...VaultSummaryFragment
|
|
148
|
+
}
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
${p}`,k=t`
|
|
152
|
+
query MarketSummaries($chainIds: [ChainId!]!, $marketIds: [Hex!]!) {
|
|
153
|
+
morphoMarkets(
|
|
154
|
+
where: {chainId_in: $chainIds, marketId_in: $marketIds}
|
|
155
|
+
limit: 250
|
|
156
|
+
) {
|
|
157
|
+
pageInfo {
|
|
158
|
+
hasNextPage
|
|
159
|
+
}
|
|
160
|
+
items {
|
|
161
|
+
...MarketSummaryFragment
|
|
162
|
+
}
|
|
163
|
+
}
|
|
164
|
+
}
|
|
165
|
+
${l}`,M=t`
|
|
166
|
+
query Vault($chainId: ChainId!, $vaultAddress: Address!) {
|
|
167
|
+
morphoVaults(where: {chainId_in: [$chainId], vaultAddress_in: [$vaultAddress]}) {
|
|
168
|
+
items {
|
|
169
|
+
...VaultSummaryFragment
|
|
170
|
+
supplyApy1d {
|
|
171
|
+
total
|
|
172
|
+
}
|
|
173
|
+
supplyApy7d {
|
|
174
|
+
total
|
|
175
|
+
}
|
|
176
|
+
supplyApy30d {
|
|
177
|
+
total
|
|
178
|
+
}
|
|
179
|
+
asset {
|
|
180
|
+
priceUsd
|
|
181
|
+
}
|
|
182
|
+
totalSupplied {
|
|
183
|
+
raw
|
|
184
|
+
formatted
|
|
185
|
+
usd
|
|
186
|
+
}
|
|
187
|
+
totalLiquidity {
|
|
188
|
+
raw
|
|
189
|
+
formatted
|
|
190
|
+
usd
|
|
191
|
+
}
|
|
192
|
+
performanceFee
|
|
193
|
+
feeRecipientAddress
|
|
194
|
+
ownerAddress
|
|
195
|
+
curatorAddress
|
|
196
|
+
guardianAddress
|
|
197
|
+
marketAllocations {
|
|
198
|
+
market {
|
|
199
|
+
marketId
|
|
200
|
+
chain {
|
|
201
|
+
...ChainInfoFragment
|
|
202
|
+
}
|
|
203
|
+
isIdle
|
|
204
|
+
name
|
|
205
|
+
lltv {
|
|
206
|
+
raw
|
|
207
|
+
formatted
|
|
208
|
+
}
|
|
209
|
+
collateralAsset {
|
|
210
|
+
...TokenInfoFragment
|
|
211
|
+
}
|
|
212
|
+
loanAsset {
|
|
213
|
+
...TokenInfoFragment
|
|
214
|
+
}
|
|
215
|
+
supplyApy {
|
|
216
|
+
...ApyFragment
|
|
217
|
+
}
|
|
218
|
+
fee {
|
|
219
|
+
raw
|
|
220
|
+
formatted
|
|
221
|
+
}
|
|
222
|
+
}
|
|
223
|
+
enabled
|
|
224
|
+
position {
|
|
225
|
+
supplyAmount {
|
|
226
|
+
raw
|
|
227
|
+
formatted
|
|
228
|
+
usd
|
|
229
|
+
}
|
|
230
|
+
supplyShares
|
|
231
|
+
}
|
|
232
|
+
supplyCap {
|
|
233
|
+
raw
|
|
234
|
+
formatted
|
|
235
|
+
usd
|
|
236
|
+
}
|
|
237
|
+
vaultSupplyShare
|
|
238
|
+
}
|
|
239
|
+
}
|
|
240
|
+
}
|
|
241
|
+
}
|
|
242
|
+
${p}
|
|
243
|
+
${s}
|
|
244
|
+
${o}
|
|
245
|
+
${i}`,S=t`
|
|
246
|
+
query Market($chainId: ChainId!, $marketId: Hex!) {
|
|
247
|
+
morphoMarkets(where: {chainId_in: [$chainId], marketId_in: [$marketId]}) {
|
|
248
|
+
items {
|
|
249
|
+
...MarketSummaryFragment
|
|
250
|
+
isIdle
|
|
251
|
+
totalSupplied {
|
|
252
|
+
raw
|
|
253
|
+
formatted
|
|
254
|
+
usd
|
|
255
|
+
}
|
|
256
|
+
totalBorrowed {
|
|
257
|
+
raw
|
|
258
|
+
formatted
|
|
259
|
+
usd
|
|
260
|
+
}
|
|
261
|
+
liquidityInMarket {
|
|
262
|
+
raw
|
|
263
|
+
formatted
|
|
264
|
+
usd
|
|
265
|
+
}
|
|
266
|
+
publicAllocatorSharedLiquidity {
|
|
267
|
+
raw
|
|
268
|
+
formatted
|
|
269
|
+
usd
|
|
270
|
+
}
|
|
271
|
+
collateralAsset {
|
|
272
|
+
priceUsd
|
|
273
|
+
}
|
|
274
|
+
loanAsset {
|
|
275
|
+
priceUsd
|
|
276
|
+
}
|
|
277
|
+
vaultAllocations {
|
|
278
|
+
vault {
|
|
279
|
+
vaultAddress
|
|
280
|
+
name
|
|
281
|
+
curatorAddress
|
|
282
|
+
asset {
|
|
283
|
+
...TokenInfoFragment
|
|
284
|
+
}
|
|
285
|
+
chain {
|
|
286
|
+
...ChainInfoFragment
|
|
287
|
+
}
|
|
288
|
+
metadata {
|
|
289
|
+
curators {
|
|
290
|
+
...CuratorInfoFragment
|
|
291
|
+
}
|
|
292
|
+
}
|
|
293
|
+
}
|
|
294
|
+
enabled
|
|
295
|
+
position {
|
|
296
|
+
supplyAmount {
|
|
297
|
+
raw
|
|
298
|
+
formatted
|
|
299
|
+
usd
|
|
300
|
+
}
|
|
301
|
+
supplyShares
|
|
302
|
+
}
|
|
303
|
+
supplyCap {
|
|
304
|
+
raw
|
|
305
|
+
formatted
|
|
306
|
+
usd
|
|
307
|
+
}
|
|
308
|
+
marketSupplyShare
|
|
309
|
+
}
|
|
310
|
+
utilization
|
|
311
|
+
irm {
|
|
312
|
+
address
|
|
313
|
+
targetUtilization
|
|
314
|
+
curve {
|
|
315
|
+
utilization
|
|
316
|
+
supplyApy
|
|
317
|
+
borrowApy
|
|
318
|
+
}
|
|
319
|
+
}
|
|
320
|
+
liquidationPenalty
|
|
321
|
+
oracleAddress
|
|
322
|
+
collateralPriceInLoanAsset {
|
|
323
|
+
raw
|
|
324
|
+
formatted
|
|
325
|
+
}
|
|
326
|
+
}
|
|
327
|
+
}
|
|
328
|
+
}
|
|
329
|
+
${l}
|
|
330
|
+
${o}
|
|
331
|
+
${s}
|
|
332
|
+
${u}`,I=t`
|
|
333
|
+
query VaultPositions($chainIds: [ChainId!]!, $vaultAddresses: [Address!]!, $accountAddress: Address!) {
|
|
334
|
+
morphoVaultPositions(
|
|
335
|
+
where: {chainId_in: $chainIds, vaultAddress_in: $vaultAddresses, accountAddress_in: [$accountAddress]}
|
|
336
|
+
limit: 250
|
|
337
|
+
) {
|
|
338
|
+
items {
|
|
339
|
+
vault {
|
|
340
|
+
chain {
|
|
341
|
+
id
|
|
342
|
+
}
|
|
343
|
+
vaultAddress
|
|
344
|
+
}
|
|
345
|
+
supplyAmount {
|
|
346
|
+
raw
|
|
347
|
+
formatted
|
|
348
|
+
usd
|
|
349
|
+
}
|
|
350
|
+
walletUnderlyingAssetHolding {
|
|
351
|
+
balance {
|
|
352
|
+
raw
|
|
353
|
+
formatted
|
|
354
|
+
usd
|
|
355
|
+
}
|
|
356
|
+
}
|
|
357
|
+
}
|
|
358
|
+
}
|
|
359
|
+
}
|
|
360
|
+
`,x=t`
|
|
361
|
+
query MarketPositions($chainIds: [ChainId!]!, $marketIds: [Hex!]!, $accountAddress: Address!) {
|
|
362
|
+
morphoMarketPositions(
|
|
363
|
+
where: {chainId_in: $chainIds, marketId_in: $marketIds, accountAddress_in: [$accountAddress]}
|
|
364
|
+
limit: 250
|
|
365
|
+
) {
|
|
366
|
+
items {
|
|
367
|
+
market {
|
|
368
|
+
chain {
|
|
369
|
+
id
|
|
370
|
+
}
|
|
371
|
+
marketId
|
|
372
|
+
}
|
|
373
|
+
collateralAmount {
|
|
374
|
+
raw
|
|
375
|
+
formatted
|
|
376
|
+
usd
|
|
377
|
+
}
|
|
378
|
+
borrowAmount {
|
|
379
|
+
raw
|
|
380
|
+
formatted
|
|
381
|
+
usd
|
|
382
|
+
}
|
|
383
|
+
ltv {
|
|
384
|
+
formatted
|
|
385
|
+
}
|
|
386
|
+
walletLoanAssetHolding {
|
|
387
|
+
balance {
|
|
388
|
+
raw
|
|
389
|
+
formatted
|
|
390
|
+
usd
|
|
391
|
+
}
|
|
392
|
+
}
|
|
393
|
+
walletCollateralAssetHolding {
|
|
394
|
+
balance {
|
|
395
|
+
raw
|
|
396
|
+
formatted
|
|
397
|
+
usd
|
|
398
|
+
}
|
|
399
|
+
}
|
|
400
|
+
}
|
|
401
|
+
}
|
|
402
|
+
}
|
|
403
|
+
`,T=t`
|
|
404
|
+
query SupportedMarketIds($chainIds: [ChainId!]!, $vaultAddresses: [Address!]!) {
|
|
405
|
+
morphoVaults(where: {chainId_in: $chainIds, vaultAddress_in: $vaultAddresses}) {
|
|
406
|
+
items {
|
|
407
|
+
chain {
|
|
408
|
+
id
|
|
409
|
+
}
|
|
410
|
+
marketAllocations {
|
|
411
|
+
market {
|
|
412
|
+
marketId
|
|
413
|
+
}
|
|
414
|
+
}
|
|
415
|
+
}
|
|
416
|
+
}
|
|
417
|
+
}
|
|
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};
|