From 2a89aacd60f740ace92305b7531bc4a7e2b33536 Mon Sep 17 00:00:00 2001 From: luizakp Date: Tue, 27 Aug 2024 11:21:24 -0300 Subject: [PATCH 1/5] chore: fix balancer subgraph --- packages/gql/codegen.ts | 30 ++++++++++++++++++------------ 1 file changed, 18 insertions(+), 12 deletions(-) diff --git a/packages/gql/codegen.ts b/packages/gql/codegen.ts index 81e755dff..3bb60ce89 100644 --- a/packages/gql/codegen.ts +++ b/packages/gql/codegen.ts @@ -71,21 +71,27 @@ export const SUBGRAPHS = { [Subgraph.Balancer]: { name: Subgraph.Balancer, endpoints() { - const baseEndpoint = - "https://api.thegraph.com/subgraphs/name/balancer-labs"; - return { - [Network.Ethereum]: `${baseEndpoint}/balancer-v2`, - [Network.Sepolia]: `https://api.studio.thegraph.com/query/24660/balancer-sepolia-v2/version/latest`, - [Network.Goerli]: `${baseEndpoint}/balancer-goerli-v2`, - [Network.Polygon]: `${baseEndpoint}/balancer-polygon-v2`, - [Network.PolygonZKEVM]: `https://api.studio.thegraph.com/query/24660/balancer-polygon-zk-v2/version/latest`, - [Network.Arbitrum]: `${baseEndpoint}/balancer-arbitrum-v2`, - [Network.Gnosis]: `${baseEndpoint}/balancer-gnosis-chain-v2`, - [Network.Optimism]: `${baseEndpoint}/balancer-optimism-v2`, + [Network.Ethereum]: + "https://api.studio.thegraph.com/query/75376/balancer-v2/version/latest", + [Network.Sepolia]: + "https://api.studio.thegraph.com/query/24660/balancer-sepolia-v2/version/latest", + [Network.Goerli]: + "https://api.studio.thegraph.com/query/75376/balancer-v2/version/latest", + [Network.Polygon]: + "https://api.studio.thegraph.com/query/75376/balancer-polygon-v2/version/latest", + [Network.PolygonZKEVM]: + "https://api.studio.thegraph.com/query/24660/balancer-polygon-zk-v2/version/latest", + [Network.Arbitrum]: + "https://api.studio.thegraph.com/query/75376/balancer-arbitrum-v2/version/latest", + [Network.Gnosis]: + "https://api.studio.thegraph.com/query/75376/balancer-gnosis-chain-v2/version/latest", + [Network.Optimism]: + "https://api.studio.thegraph.com/query/75376/balancer-optimism-v2/version/latest", [Network.Base]: "https://api.studio.thegraph.com/query/24660/balancer-base-v2/version/latest", - [Network.Avalanche]: `${baseEndpoint}/balancer-avalanche-v2`, + [Network.Avalanche]: + "https://api.studio.thegraph.com/query/75376/balancer-avalanche-v2/version/latest", }; }, endpointFor(network: Network) { From 3f65f80802f7ebaacc592ada1497527797d3d9a8 Mon Sep 17 00:00:00 2001 From: luizakp Date: Tue, 27 Aug 2024 11:21:53 -0300 Subject: [PATCH 2/5] remove: apr get pools --- apps/balancer-tools/package.json | 1 - 1 file changed, 1 deletion(-) diff --git a/apps/balancer-tools/package.json b/apps/balancer-tools/package.json index c82071434..9c2bf408e 100644 --- a/apps/balancer-tools/package.json +++ b/apps/balancer-tools/package.json @@ -9,7 +9,6 @@ "build:prepare": "pnpm npm-run-all -l --parallel 'build:prepare:gql'", "dev": "pnpm npm-run-all -l --parallel dev:**", "dev:next": "next dev", - "dev:get-pools": "pnpm --filter=\"@bleu/balancer-apr\" build", "start": "next start", "wagmi": "wagmi generate", "wagmi:watch": "wagmi generate --watch", From b8ed78dfec1584da849a52a5cebc2d8746100021 Mon Sep 17 00:00:00 2001 From: luizakp Date: Tue, 27 Aug 2024 11:23:29 -0300 Subject: [PATCH 3/5] fix: pool simulator menu --- apps/balancer-tools/src/app/poolsimulator/(components)/Menu.tsx | 2 +- .../src/app/poolsimulator/(components)/PoolParamsForm.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/balancer-tools/src/app/poolsimulator/(components)/Menu.tsx b/apps/balancer-tools/src/app/poolsimulator/(components)/Menu.tsx index 584872817..5156857fb 100644 --- a/apps/balancer-tools/src/app/poolsimulator/(components)/Menu.tsx +++ b/apps/balancer-tools/src/app/poolsimulator/(components)/Menu.tsx @@ -26,7 +26,7 @@ const POOL_TYPES_MAPPER = { name: "Meta Stable", defaultParams: { swapFee: 0.01, - amp: 5, + ampFactor: 5, }, }, GyroE: { diff --git a/apps/balancer-tools/src/app/poolsimulator/(components)/PoolParamsForm.tsx b/apps/balancer-tools/src/app/poolsimulator/(components)/PoolParamsForm.tsx index fc2162ae5..69bd8adf0 100644 --- a/apps/balancer-tools/src/app/poolsimulator/(components)/PoolParamsForm.tsx +++ b/apps/balancer-tools/src/app/poolsimulator/(components)/PoolParamsForm.tsx @@ -299,7 +299,7 @@ export const PoolParamsForm = forwardRef( onSubmit={(data) => onSubmit(createPayload(poolType, data))} id="initial-data-form" > -
+
{inputMapper[poolType].map((input) => { const defaultValue = input.transformFromDataToForm( data.poolParams?.[input.name], From e51402bd519fe0845c06690cc5050d1ead327a23 Mon Sep 17 00:00:00 2001 From: luizakp Date: Tue, 27 Aug 2024 12:02:18 -0300 Subject: [PATCH 4/5] chore: fix other subgraphs --- packages/balancer-apr/package.json | 3 +- packages/gql/codegen.ts | 81 +- .../__generated__/Arbitrum.server.ts | 648 +++++- .../balancer-api-v3/__generated__/Arbitrum.ts | 648 +++++- .../__generated__/Avalanche.server.ts | 648 +++++- .../__generated__/Avalanche.ts | 648 +++++- .../__generated__/Base.server.ts | 648 +++++- .../src/balancer-api-v3/__generated__/Base.ts | 648 +++++- .../__generated__/Ethereum.server.ts | 648 +++++- .../balancer-api-v3/__generated__/Ethereum.ts | 648 +++++- .../__generated__/Gnosis.server.ts | 648 +++++- .../balancer-api-v3/__generated__/Gnosis.ts | 648 +++++- .../__generated__/Goerli.server.ts | 648 +++++- .../balancer-api-v3/__generated__/Goerli.ts | 648 +++++- .../__generated__/Optimism.server.ts | 648 +++++- .../balancer-api-v3/__generated__/Optimism.ts | 648 +++++- .../__generated__/Polygon-zkevm.server.ts | 648 +++++- .../__generated__/Polygon-zkevm.ts | 648 +++++- .../__generated__/Polygon.server.ts | 648 +++++- .../balancer-api-v3/__generated__/Polygon.ts | 648 +++++- .../__generated__/Sepolia.server.ts | 648 +++++- .../balancer-api-v3/__generated__/Sepolia.ts | 648 +++++- .../__generated__/Avalanche.server.ts | 1 + .../__generated__/Avalanche.ts | 1 + .../__generated__/Base.server.ts | 1 + .../src/balancer-gauges/__generated__/Base.ts | 1 + .../__generated__/Ethereum.server.ts | 1 + .../balancer-gauges/__generated__/Ethereum.ts | 1 + .../__generated__/Goerli.server.ts | 1 + .../balancer-gauges/__generated__/Goerli.ts | 1 + .../__generated__/Polygon-zkevm.server.ts | 1 + .../__generated__/Polygon-zkevm.ts | 1 + .../__generated__/Sepolia.server.ts | 1 + .../balancer-gauges/__generated__/Sepolia.ts | 1 + .../balancer/__generated__/Goerli.server.ts | 32 + .../gql/src/balancer/__generated__/Goerli.ts | 32 + .../sushi/__generated__/Ethereum.server.ts | 1976 ++++++----------- .../gql/src/sushi/__generated__/Ethereum.ts | 1976 ++++++----------- .../src/sushi/__generated__/Gnosis.server.ts | 1975 ++++++---------- .../gql/src/sushi/__generated__/Gnosis.ts | 1975 ++++++---------- 40 files changed, 15075 insertions(+), 5947 deletions(-) diff --git a/packages/balancer-apr/package.json b/packages/balancer-apr/package.json index 0be272180..57f584a48 100644 --- a/packages/balancer-apr/package.json +++ b/packages/balancer-apr/package.json @@ -10,8 +10,7 @@ "lint:fix": "eslint '**/*.{ts,tsx}' --fix", "migrations:generate": "drizzle-kit generate:pg", "migrations:push": "node -r esbuild-register src/db/migrate.ts", - "migrations:drop": "drizzle-kit drop --config=drizzle.config.ts", - "build": "node get-pool-data.js" + "migrations:drop": "drizzle-kit drop --config=drizzle.config.ts" }, "devDependencies": { "@bleu/tsconfig": "workspace:*", diff --git a/packages/gql/codegen.ts b/packages/gql/codegen.ts index 3bb60ce89..63d48c23d 100644 --- a/packages/gql/codegen.ts +++ b/packages/gql/codegen.ts @@ -1,5 +1,8 @@ import { capitalize, Network } from "@bleu/utils"; import { CodegenConfig } from "@graphql-codegen/cli"; +import dotenv from 'dotenv'; + +dotenv.config(); export enum Subgraph { BalancerPoolsMetadata = "balancer-pools-metadata", @@ -20,48 +23,45 @@ export enum Subgraph { // https://linear.app/bleu-llc/issue/BAL-290/deploy-subgraph-with-token-relation-on-other-networks export const SUBGRAPHS = { - [Subgraph.BalancerPoolsMetadata]: { - name: Subgraph.BalancerPoolsMetadata, - endpoints() { - const baseEndpoint = - "https://api.thegraph.com/subgraphs/name/bleu-studio"; + // [Subgraph.BalancerPoolsMetadata]: { + // name: Subgraph.BalancerPoolsMetadata, + // endpoints() { + // const baseEndpoint = + // "https://api.thegraph.com/subgraphs/name/bleu-studio"; - return { - [Network.Ethereum]: `${baseEndpoint}/balancer-pool-metadata`, - [Network.Goerli]: `${baseEndpoint}/bal-pools-metadata-goerli`, - [Network.Polygon]: `${baseEndpoint}/balancer-pools-metadata-matic`, - [Network.Arbitrum]: `${baseEndpoint}/bal-pools-metadata-arb`, - [Network.Gnosis]: `${baseEndpoint}/balancer-pools-metadata-gnosis`, - [Network.Optimism]: `${baseEndpoint}/balancer-pools-metadata-op`, - // TODO: deploy Base, Avalanche and sepolia subgraphs - [Network.PolygonZKEVM]: `${baseEndpoint}/balancer-pool-metadata`, - [Network.Base]: `${baseEndpoint}/balancer-pool-metadata`, - [Network.Sepolia]: `${baseEndpoint}/balancer-pool-metadata`, - [Network.Avalanche]: `${baseEndpoint}/balancer-pool-metadata`, - }; - }, - endpointFor(network: Network) { - return this.endpoints()[network]; - }, - }, + // return { + // [Network.Ethereum]: `${baseEndpoint}/balancer-pool-metadata`, + // [Network.Goerli]: `${baseEndpoint}/bal-pools-metadata-goerli`, + // [Network.Polygon]: `${baseEndpoint}/balancer-pools-metadata-matic`, + // [Network.Arbitrum]: `${baseEndpoint}/bal-pools-metadata-arb`, + // [Network.Gnosis]: `${baseEndpoint}/balancer-pools-metadata-gnosis`, + // [Network.Optimism]: `${baseEndpoint}/balancer-pools-metadata-op`, + // // TODO: deploy Base, Avalanche and sepolia subgraphs + // [Network.PolygonZKEVM]: `${baseEndpoint}/balancer-pool-metadata`, + // [Network.Base]: `${baseEndpoint}/balancer-pool-metadata`, + // [Network.Sepolia]: `${baseEndpoint}/balancer-pool-metadata`, + // [Network.Avalanche]: `${baseEndpoint}/balancer-pool-metadata`, + // }; + // }, + // endpointFor(network: Network) { + // return this.endpoints()[network]; + // }, + // }, [Subgraph.BalancerGauges]: { name: Subgraph.BalancerGauges, endpoints() { - const baseEndpoint = - "https://api.thegraph.com/subgraphs/name/balancer-labs/balancer-gauges"; return { - [Network.Ethereum]: `${baseEndpoint}`, - // TODO: substitute Sepolia - [Network.Sepolia]: `${baseEndpoint}-goerli`, - [Network.Goerli]: `${baseEndpoint}-goerli`, - [Network.Polygon]: `${baseEndpoint}-polygon`, - [Network.PolygonZKEVM]: `https://api.studio.thegraph.com/query/24660/balancer-gauges-polygon-zk/version/latest`, - [Network.Arbitrum]: `${baseEndpoint}-arbitrum`, - [Network.Gnosis]: `${baseEndpoint}-gnosis-chain`, - [Network.Optimism]: `${baseEndpoint}-optimism`, - [Network.Base]: `https://api.studio.thegraph.com/query/24660/balancer-gauges-base/version/latest`, - [Network.Avalanche]: `${baseEndpoint}-avalanche`, + [Network.Ethereum]: "https://api.studio.thegraph.com/query/75376/balancer-gauges/version/latest", + [Network.Sepolia]: "https://api.studio.thegraph.com/query/24660/balancer-gauges-sepolia/version/latest", + [Network.Goerli]: "https://api.studio.thegraph.com/query/24660/balancer-gauges-sepolia/version/latest", + [Network.Polygon]: "https://api.studio.thegraph.com/query/75376/balancer-gauges-polygon/version/latest", + [Network.PolygonZKEVM]:"https://api.studio.thegraph.com/query/24660/balancer-gauges-polygon-zk/version/latest" , + [Network.Arbitrum]: "https://api.studio.thegraph.com/query/75376/balancer-gauges-arbitrum/version/latest", + [Network.Gnosis]: "https://api.studio.thegraph.com/query/75376/balancer-gauges-gnosis-chain/version/latest", + [Network.Optimism]: "https://api.studio.thegraph.com/query/75376/balancer-gauges-optimism/version/latest", + [Network.Base]: "https://api.studio.thegraph.com/query/24660/balancer-gauges-base/version/latest", + [Network.Avalanche]: "https://api.studio.thegraph.com/query/75376/balancer-gauges-avalanche/version/latest", }; }, endpointFor(network: Network) { @@ -77,7 +77,7 @@ export const SUBGRAPHS = { [Network.Sepolia]: "https://api.studio.thegraph.com/query/24660/balancer-sepolia-v2/version/latest", [Network.Goerli]: - "https://api.studio.thegraph.com/query/75376/balancer-v2/version/latest", + "https://api.studio.thegraph.com/query/24660/balancer-sepolia-v2/version/latest", [Network.Polygon]: "https://api.studio.thegraph.com/query/75376/balancer-polygon-v2/version/latest", [Network.PolygonZKEVM]: @@ -124,7 +124,7 @@ export const SUBGRAPHS = { name: Subgraph.UniswapV2, endpoints() { const baseEndpoint = - "https://api.thegraph.com/subgraphs/name/ianlapham/uniswap-v2-dev"; + `https://gateway.thegraph.com/api/${process.env.THE_GRAPH_API_KEY}/subgraphs/id/EYCKATKGBKLWvSfwvBjzfCBmGwYNdVkduYXVivCsLRFu`; return { [Network.Ethereum]: `${baseEndpoint}`, }; @@ -141,10 +141,9 @@ export const SUBGRAPHS = { [Subgraph.Sushi]: { name: Subgraph.Sushi, endpoints() { - const baseEndpoint = "https://api.thegraph.com/subgraphs/name/sushiswap"; return { - [Network.Ethereum]: `${baseEndpoint}/exchange`, - [Network.Gnosis]: `${baseEndpoint}/xdai-exchange`, + [Network.Ethereum]: `https://gateway.thegraph.com/api/${process.env.THE_GRAPH_API_KEY}/subgraphs/id/A4JrrMwrEXsYNAiYw7rWwbHhQZdj6YZg1uVy5wa6g821`, + [Network.Gnosis]: `https://gateway.thegraph.com/api/${process.env.THE_GRAPH_API_KEY}/subgraphs/id/A4JrrMwrEXsYNAiYw7rWwbHhQZdj6YZg1uVy5wa6g821`, }; }, endpointFor(network: Network) { diff --git a/packages/gql/src/balancer-api-v3/__generated__/Arbitrum.server.ts b/packages/gql/src/balancer-api-v3/__generated__/Arbitrum.server.ts index 5df748271..3527d6e6a 100644 --- a/packages/gql/src/balancer-api-v3/__generated__/Arbitrum.server.ts +++ b/packages/gql/src/balancer-api-v3/__generated__/Arbitrum.server.ts @@ -44,8 +44,10 @@ export type GqlChain = | 'AVALANCHE' | 'BASE' | 'FANTOM' + | 'FRAXTAL' | 'GNOSIS' | 'MAINNET' + | 'MODE' | 'OPTIMISM' | 'POLYGON' | 'SEPOLIA' @@ -128,41 +130,73 @@ export type GqlLatestSyncedBlocks = { userWalletSyncBlock: Scalars['BigInt']['output']; }; +/** All info on the nested pool if the token is a BPT. It will only support 1 level of nesting. */ export type GqlNestedPool = { __typename?: 'GqlNestedPool'; + /** Address of the pool. */ address: Scalars['Bytes']['output']; + /** Price rate of the Balancer Pool Token (BPT). */ bptPriceRate: Scalars['BigDecimal']['output']; + /** Timestamp of when the pool was created. */ createTime: Scalars['Int']['output']; + /** Address of the factory contract that created the pool, if applicable. */ factory?: Maybe; + /** Unique identifier of the pool. */ id: Scalars['ID']['output']; + /** Name of the pool. */ name: Scalars['String']['output']; + /** Total liquidity of the parent pool in the nested pool in USD. */ nestedLiquidity: Scalars['BigDecimal']['output']; + /** Percentage of the parents pool shares inside the nested pool. */ nestedPercentage: Scalars['BigDecimal']['output']; + /** Number of shares of the parent pool in the nested pool. */ nestedShares: Scalars['BigDecimal']['output']; + /** Address of the pool's owner. */ owner: Scalars['Bytes']['output']; + /** Fee charged for swapping tokens in the pool as %. 0.01 -> 0.01% */ swapFee: Scalars['BigDecimal']['output']; + /** Symbol of the pool. */ symbol: Scalars['String']['output']; + /** List of all tokens in the pool. */ tokens: Array; + /** Total liquidity in the pool in USD. */ totalLiquidity: Scalars['BigDecimal']['output']; + /** Total number of shares in the pool. */ totalShares: Scalars['BigDecimal']['output']; + /** Type of the pool. */ type: GqlPoolType; + /** Version of the pool. */ version: Scalars['Int']['output']; }; +/** Represents an event that occurs when liquidity is added or removed from a pool. */ export type GqlPoolAddRemoveEventV3 = GqlPoolEvent & { __typename?: 'GqlPoolAddRemoveEventV3'; + /** The block number of the event. */ blockNumber: Scalars['Int']['output']; + /** The block timestamp of the event. */ blockTimestamp: Scalars['Int']['output']; + /** The chain on which the event occurred. */ chain: GqlChain; + /** The unique identifier of the event. */ id: Scalars['ID']['output']; + /** The log index of the event. */ logIndex: Scalars['Int']['output']; + /** The pool ID associated with the event. */ poolId: Scalars['String']['output']; + /** The sender of the event. */ sender: Scalars['String']['output']; + /** The timestamp of the event. */ timestamp: Scalars['Int']['output']; + /** The tokens involved in the event. Ordered by poolToken index. */ tokens: Array; + /** The transaction hash of the event. */ tx: Scalars['String']['output']; + /** The type of the event. */ type: GqlPoolEventType; + /** The user address associated with the event. */ userAddress: Scalars['String']['output']; + /** The value of the event in USD. */ valueUSD: Scalars['Float']['output']; }; @@ -176,6 +210,43 @@ export type GqlPoolApr = { thirdPartyApr: GqlPoolAprValue; }; +/** All APRs for a pool */ +export type GqlPoolAprItem = { + __typename?: 'GqlPoolAprItem'; + /** The APR value in % -> 0.2 = 0.2% */ + apr: Scalars['Float']['output']; + /** The id of the APR item */ + id: Scalars['ID']['output']; + /** The title of the APR item, a human readable form */ + title: Scalars['String']['output']; + /** Specific type of this APR */ + type: GqlPoolAprItemType; +}; + +/** Enum representing the different types of the APR in a pool. */ +export type GqlPoolAprItemType = + /** APR that pools earns when BPT is staked on AURA. */ + | 'AURA' + /** Represents the yield from an IB (Interest-Bearing) asset APR in a pool. */ + | 'IB_YIELD' + /** APR in a pool that can be earned through locking, i.e. veBAL */ + | 'LOCKING' + /** Rewards distributed by merkl.xyz */ + | 'MERKL' + /** Represents if the APR items comes from a nested pool. */ + | 'NESTED' + /** Staking reward APR in a pool, i.e. BAL or BEETS. */ + | 'STAKING' + /** APR boost that can be earned, i.e. via veBAL or maBEETS. */ + | 'STAKING_BOOST' + /** Cow AMM specific APR */ + | 'SURPLUS' + /** Represents the swap fee APR in a pool. */ + | 'SWAP_FEE' + /** APR that can be earned thourgh voting, i.e. gauge votes */ + | 'VOTING' + | '%future added value'; + export type GqlPoolAprRange = { __typename?: 'GqlPoolAprRange'; max: Scalars['BigDecimal']['output']; @@ -193,23 +264,34 @@ export type GqlPoolAprValue = GqlPoolAprRange | GqlPoolAprTotal; export type GqlPoolBase = { /** The contract address of the pool. */ address: Scalars['Bytes']['output']; - /** Returns all pool tokens, including any nested tokens and phantom BPTs on one level. */ + /** + * Returns all pool tokens, including any nested tokens and phantom BPTs on one level. + * @deprecated Use poolTokens instead + */ allTokens: Array; + /** List of categories assigned by the team based on external factors */ + categories?: Maybe>>; /** The chain on which the pool is deployed */ chain: GqlChain; /** The timestamp the pool was created. */ createTime: Scalars['Int']['output']; /** The decimals of the BPT, usually 18 */ decimals: Scalars['Int']['output']; - /** Only returns main tokens, also known as leave tokens. Wont return any nested BPTs. Used for displaying the tokens that the pool consists of. */ + /** + * Only returns main tokens, also known as leave tokens. Wont return any nested BPTs. Used for displaying the tokens that the pool consists of. + * @deprecated Use poolTokens instead + */ displayTokens: Array; /** Dynamic data such as token balances, swap fees or volume */ dynamicData: GqlPoolDynamicData; /** The factory contract address from which the pool was created. */ factory?: Maybe; - /** The pool id. This is equal to the address for vaultVersion 3 pools */ + /** The pool id. This is equal to the address for protocolVersion 3 pools */ id: Scalars['ID']['output']; - /** Deprecated */ + /** + * Deprecated + * @deprecated Removed without replacement + */ investConfig: GqlPoolInvestConfig; /** The name of the pool as per contract */ name: Scalars['String']['output']; @@ -217,19 +299,29 @@ export type GqlPoolBase = { owner?: Maybe; /** Returns all pool tokens, including BPTs and nested pools if there are any. Only one nested level deep. */ poolTokens: Array; + /** The protocol version on which the pool is deployed, 1, 2 or 3 */ + protocolVersion: Scalars['Int']['output']; /** Staking options of this pool which emit additional rewards */ staking?: Maybe; /** The token symbol of the pool as per contract */ symbol: Scalars['String']['output']; + /** List of tags assigned by the team based on external factors */ + tags?: Maybe>>; /** The pool type, such as weighted, stable, etc. */ type: GqlPoolType; /** If a user address was provided in the query, the user balance is populated here */ userBalance?: Maybe; - /** The vault version on which the pool is deployed, 2 or 3 */ + /** + * The vault version on which the pool is deployed, 2 or 3 + * @deprecated use protocolVersion instead + */ vaultVersion: Scalars['Int']['output']; /** The version of the pool type. */ version: Scalars['Int']['output']; - /** Deprecated */ + /** + * Deprecated + * @deprecated Removed without replacement + */ withdrawConfig: GqlPoolWithdrawConfig; }; @@ -276,6 +368,7 @@ export type GqlPoolComposableStable = GqlPoolBase & { allTokens: Array; amp: Scalars['BigInt']['output']; bptPriceRate: Scalars['BigDecimal']['output']; + categories?: Maybe>>; chain: GqlChain; createTime: Scalars['Int']['output']; decimals: Scalars['Int']['output']; @@ -283,18 +376,27 @@ export type GqlPoolComposableStable = GqlPoolBase & { dynamicData: GqlPoolDynamicData; factory?: Maybe; id: Scalars['ID']['output']; + /** @deprecated Removed without replacement */ investConfig: GqlPoolInvestConfig; name: Scalars['String']['output']; nestingType: GqlPoolNestingType; owner: Scalars['Bytes']['output']; poolTokens: Array; + protocolVersion: Scalars['Int']['output']; staking?: Maybe; symbol: Scalars['String']['output']; + tags?: Maybe>>; + /** + * All tokens of the pool. If it is a nested pool, the nested pool is expanded with its own tokens again. + * @deprecated Use poolTokens instead + */ tokens: Array; type: GqlPoolType; userBalance?: Maybe; + /** @deprecated use protocolVersion instead */ vaultVersion: Scalars['Int']['output']; version: Scalars['Int']['output']; + /** @deprecated Removed without replacement */ withdrawConfig: GqlPoolWithdrawConfig; }; @@ -303,6 +405,7 @@ export type GqlPoolComposableStableNested = { address: Scalars['Bytes']['output']; amp: Scalars['BigInt']['output']; bptPriceRate: Scalars['BigDecimal']['output']; + categories?: Maybe>>; createTime: Scalars['Int']['output']; factory?: Maybe; id: Scalars['ID']['output']; @@ -311,6 +414,8 @@ export type GqlPoolComposableStableNested = { owner: Scalars['Bytes']['output']; swapFee: Scalars['BigDecimal']['output']; symbol: Scalars['String']['output']; + tags?: Maybe>>; + /** @deprecated Use poolTokens instead */ tokens: Array; totalLiquidity: Scalars['BigDecimal']['output']; totalShares: Scalars['BigDecimal']['output']; @@ -320,7 +425,13 @@ export type GqlPoolComposableStableNested = { export type GqlPoolDynamicData = { __typename?: 'GqlPoolDynamicData'; + /** Protocol and pool creator fees combined */ + aggregateSwapFee: Scalars['BigDecimal']['output']; + /** Protocol and pool creator fees combined */ + aggregateYieldFee: Scalars['BigDecimal']['output']; + /** @deprecated Use aprItems instead */ apr: GqlPoolApr; + aprItems: Array; fees24h: Scalars['BigDecimal']['output']; fees24hAth: Scalars['BigDecimal']['output']; fees24hAthTimestamp: Scalars['Int']['output']; @@ -328,6 +439,7 @@ export type GqlPoolDynamicData = { fees24hAtlTimestamp: Scalars['Int']['output']; fees48h: Scalars['BigDecimal']['output']; holdersCount: Scalars['BigInt']['output']; + /** True for bricked pools */ isInRecoveryMode: Scalars['Boolean']['output']; isPaused: Scalars['Boolean']['output']; lifetimeSwapFees: Scalars['BigDecimal']['output']; @@ -337,6 +449,11 @@ export type GqlPoolDynamicData = { sharePriceAthTimestamp: Scalars['Int']['output']; sharePriceAtl: Scalars['BigDecimal']['output']; sharePriceAtlTimestamp: Scalars['Int']['output']; + /** CowAmm specific, equivalent of swap fees */ + surplus24h: Scalars['BigDecimal']['output']; + /** CowAmm specific, equivalent of swap fees */ + surplus48h: Scalars['BigDecimal']['output']; + /** Disabled for bricked pools */ swapEnabled: Scalars['Boolean']['output']; swapFee: Scalars['BigDecimal']['output']; swapsCount: Scalars['BigInt']['output']; @@ -363,6 +480,7 @@ export type GqlPoolElement = GqlPoolBase & { address: Scalars['Bytes']['output']; allTokens: Array; baseToken: Scalars['Bytes']['output']; + categories?: Maybe>>; chain: GqlChain; createTime: Scalars['Int']['output']; decimals: Scalars['Int']['output']; @@ -370,34 +488,53 @@ export type GqlPoolElement = GqlPoolBase & { dynamicData: GqlPoolDynamicData; factory?: Maybe; id: Scalars['ID']['output']; + /** @deprecated Removed without replacement */ investConfig: GqlPoolInvestConfig; name: Scalars['String']['output']; owner: Scalars['Bytes']['output']; poolTokens: Array; principalToken: Scalars['Bytes']['output']; + protocolVersion: Scalars['Int']['output']; staking?: Maybe; symbol: Scalars['String']['output']; + tags?: Maybe>>; + /** @deprecated Use poolTokens instead */ tokens: Array; type: GqlPoolType; unitSeconds: Scalars['BigInt']['output']; userBalance?: Maybe; + /** @deprecated use protocolVersion instead */ vaultVersion: Scalars['Int']['output']; version: Scalars['Int']['output']; + /** @deprecated Removed without replacement */ withdrawConfig: GqlPoolWithdrawConfig; }; +/** Represents an event that occurs in a pool. */ export type GqlPoolEvent = { + /** The block number of the event. */ blockNumber: Scalars['Int']['output']; + /** The block timestamp of the event. */ blockTimestamp: Scalars['Int']['output']; + /** The chain on which the event occurred. */ chain: GqlChain; + /** The unique identifier of the event. */ id: Scalars['ID']['output']; + /** The log index of the event. */ logIndex: Scalars['Int']['output']; + /** The pool ID associated with the event. */ poolId: Scalars['String']['output']; + /** The sender of the event. */ sender: Scalars['String']['output']; + /** The timestamp of the event. */ timestamp: Scalars['Int']['output']; + /** The transaction hash of the event. */ tx: Scalars['String']['output']; + /** The type of the event. */ type: GqlPoolEventType; + /** The user address associated with the event. */ userAddress: Scalars['String']['output']; + /** The USD value of this event. */ valueUSD: Scalars['Float']['output']; }; @@ -421,11 +558,15 @@ export type GqlPoolEventsDataRange = | '%future added value'; export type GqlPoolEventsFilter = { - chain: GqlChain; - poolId: Scalars['String']['input']; + chainIn?: InputMaybe>>; + poolIdIn?: InputMaybe>>; range?: InputMaybe; typeIn?: InputMaybe>>; userAddress?: InputMaybe; + /** USD value of the event */ + valueUSD_gt?: InputMaybe; + /** USD value of the event */ + valueUSD_gte?: InputMaybe; }; export type GqlPoolFeaturedPool = { @@ -447,8 +588,6 @@ export type GqlPoolFeaturedPoolGroup = { export type GqlPoolFeaturedPoolGroupItem = GqlFeaturePoolGroupItemExternalLink | GqlPoolMinimal; export type GqlPoolFilter = { - categoryIn?: InputMaybe>; - categoryNotIn?: InputMaybe>; chainIn?: InputMaybe>; chainNotIn?: InputMaybe>; createTime?: InputMaybe; @@ -459,15 +598,33 @@ export type GqlPoolFilter = { minTvl?: InputMaybe; poolTypeIn?: InputMaybe>; poolTypeNotIn?: InputMaybe>; + protocolVersionIn?: InputMaybe>; + /** + * For list of tags see: https://github.com/balancer/metadata/blob/main/pools/index.json + * Use uppercase + */ + tagIn?: InputMaybe>; + /** + * For list of tags see: https://github.com/balancer/metadata/blob/main/pools/index.json + * Use uppercase + */ + tagNotIn?: InputMaybe>; tokensIn?: InputMaybe>; tokensNotIn?: InputMaybe>; userAddress?: InputMaybe; - vaultVersionIn?: InputMaybe>; }; export type GqlPoolFilterCategory = | 'BLACK_LISTED' | 'INCENTIVIZED' + | 'LRT' + | 'POINTS' + | 'POINTS_EIGENLAYER' + | 'POINTS_GYRO' + | 'POINTS_KELP' + | 'POINTS_RENZO' + | 'POINTS_SWELL' + | 'SUPERFEST' | '%future added value'; export type GqlPoolFx = GqlPoolBase & { @@ -476,6 +633,7 @@ export type GqlPoolFx = GqlPoolBase & { allTokens: Array; alpha: Scalars['String']['output']; beta: Scalars['String']['output']; + categories?: Maybe>>; chain: GqlChain; createTime: Scalars['Int']['output']; decimals: Scalars['Int']['output']; @@ -485,18 +643,27 @@ export type GqlPoolFx = GqlPoolBase & { epsilon: Scalars['String']['output']; factory?: Maybe; id: Scalars['ID']['output']; + /** @deprecated Removed without replacement */ investConfig: GqlPoolInvestConfig; lambda: Scalars['String']['output']; name: Scalars['String']['output']; owner?: Maybe; poolTokens: Array; + protocolVersion: Scalars['Int']['output']; staking?: Maybe; symbol: Scalars['String']['output']; + tags?: Maybe>>; + /** + * All tokens of the pool. If it is a nested pool, the nested pool is expanded with its own tokens again. + * @deprecated Use poolTokens instead + */ tokens: Array; type: GqlPoolType; userBalance?: Maybe; + /** @deprecated use protocolVersion instead */ vaultVersion: Scalars['Int']['output']; version: Scalars['Int']['output']; + /** @deprecated Removed without replacement */ withdrawConfig: GqlPoolWithdrawConfig; }; @@ -507,6 +674,7 @@ export type GqlPoolGyro = GqlPoolBase & { alpha: Scalars['String']['output']; beta: Scalars['String']['output']; c: Scalars['String']['output']; + categories?: Maybe>>; chain: GqlChain; createTime: Scalars['Int']['output']; dSq: Scalars['String']['output']; @@ -515,30 +683,39 @@ export type GqlPoolGyro = GqlPoolBase & { dynamicData: GqlPoolDynamicData; factory?: Maybe; id: Scalars['ID']['output']; + /** @deprecated Removed without replacement */ investConfig: GqlPoolInvestConfig; lambda: Scalars['String']['output']; name: Scalars['String']['output']; nestingType: GqlPoolNestingType; owner: Scalars['Bytes']['output']; poolTokens: Array; + protocolVersion: Scalars['Int']['output']; root3Alpha: Scalars['String']['output']; s: Scalars['String']['output']; sqrtAlpha: Scalars['String']['output']; sqrtBeta: Scalars['String']['output']; staking?: Maybe; symbol: Scalars['String']['output']; + tags?: Maybe>>; tauAlphaX: Scalars['String']['output']; tauAlphaY: Scalars['String']['output']; tauBetaX: Scalars['String']['output']; tauBetaY: Scalars['String']['output']; + /** + * All tokens of the pool. If it is a nested pool, the nested pool is expanded with its own tokens again. + * @deprecated Use poolTokens instead + */ tokens: Array; type: GqlPoolType; u: Scalars['String']['output']; userBalance?: Maybe; v: Scalars['String']['output']; + /** @deprecated use protocolVersion instead */ vaultVersion: Scalars['Int']['output']; version: Scalars['Int']['output']; w: Scalars['String']['output']; + /** @deprecated Removed without replacement */ withdrawConfig: GqlPoolWithdrawConfig; z: Scalars['String']['output']; }; @@ -590,6 +767,7 @@ export type GqlPoolLiquidityBootstrapping = GqlPoolBase & { __typename?: 'GqlPoolLiquidityBootstrapping'; address: Scalars['Bytes']['output']; allTokens: Array; + categories?: Maybe>>; chain: GqlChain; createTime: Scalars['Int']['output']; decimals: Scalars['Int']['output']; @@ -597,18 +775,27 @@ export type GqlPoolLiquidityBootstrapping = GqlPoolBase & { dynamicData: GqlPoolDynamicData; factory?: Maybe; id: Scalars['ID']['output']; + /** @deprecated Removed without replacement */ investConfig: GqlPoolInvestConfig; name: Scalars['String']['output']; nestingType: GqlPoolNestingType; owner: Scalars['Bytes']['output']; poolTokens: Array; + protocolVersion: Scalars['Int']['output']; staking?: Maybe; symbol: Scalars['String']['output']; + tags?: Maybe>>; + /** + * All tokens of the pool. If it is a nested pool, the nested pool is expanded with its own tokens again. + * @deprecated Use poolTokens instead + */ tokens: Array; type: GqlPoolType; userBalance?: Maybe; + /** @deprecated use protocolVersion instead */ vaultVersion: Scalars['Int']['output']; version: Scalars['Int']['output']; + /** @deprecated Removed without replacement */ withdrawConfig: GqlPoolWithdrawConfig; }; @@ -617,6 +804,7 @@ export type GqlPoolMetaStable = GqlPoolBase & { address: Scalars['Bytes']['output']; allTokens: Array; amp: Scalars['BigInt']['output']; + categories?: Maybe>>; chain: GqlChain; createTime: Scalars['Int']['output']; decimals: Scalars['Int']['output']; @@ -624,17 +812,23 @@ export type GqlPoolMetaStable = GqlPoolBase & { dynamicData: GqlPoolDynamicData; factory?: Maybe; id: Scalars['ID']['output']; + /** @deprecated Removed without replacement */ investConfig: GqlPoolInvestConfig; name: Scalars['String']['output']; owner: Scalars['Bytes']['output']; poolTokens: Array; + protocolVersion: Scalars['Int']['output']; staking?: Maybe; symbol: Scalars['String']['output']; + tags?: Maybe>>; + /** @deprecated Use poolTokens instead */ tokens: Array; type: GqlPoolType; userBalance?: Maybe; + /** @deprecated use protocolVersion instead */ vaultVersion: Scalars['Int']['output']; version: Scalars['Int']['output']; + /** @deprecated Removed without replacement */ withdrawConfig: GqlPoolWithdrawConfig; }; @@ -645,38 +839,66 @@ export type GqlPoolMinimal = { address: Scalars['Bytes']['output']; /** Returns all pool tokens, including any nested tokens and phantom BPTs */ allTokens: Array; + /** List of categories assigned by the team based on external factors */ + categories?: Maybe>>; /** The chain on which the pool is deployed */ chain: GqlChain; /** The timestamp the pool was created. */ createTime: Scalars['Int']['output']; /** The decimals of the BPT, usually 18 */ decimals: Scalars['Int']['output']; - /** Only returns main tokens, also known as leave tokens. Wont return any nested BPTs. Used for displaying the tokens that the pool consists of. */ + /** Only returns main or underlying tokens, also known as leave tokens. Wont return any nested BPTs. Used for displaying the tokens that the pool consists of. */ displayTokens: Array; /** Dynamic data such as token balances, swap fees or volume */ dynamicData: GqlPoolDynamicData; /** The factory contract address from which the pool was created. */ factory?: Maybe; - /** The pool id. This is equal to the address for vaultVersion 3 pools */ + /** Whether at least one token in this pool is considered an ERC4626 token. */ + hasErc4626: Scalars['Boolean']['output']; + /** Hook assigned to a pool */ + hook?: Maybe; + /** The pool id. This is equal to the address for protocolVersion 3 pools */ id: Scalars['ID']['output']; + /** Pool is receiving rewards when liquidity tokens are staked */ + incentivized: Scalars['Boolean']['output']; /** The name of the pool as per contract */ name: Scalars['String']['output']; /** The wallet address of the owner of the pool. Pool owners can set certain properties like swapFees or AMP. */ owner?: Maybe; + /** The protocol version on which the pool is deployed, 1, 2 or 3 */ + protocolVersion: Scalars['Int']['output']; /** Staking options of this pool which emit additional rewards */ staking?: Maybe; /** The token symbol of the pool as per contract */ symbol: Scalars['String']['output']; + /** List of tags assigned by the team based on external factors */ + tags?: Maybe>>; /** The pool type, such as weighted, stable, etc. */ type: GqlPoolType; /** If a user address was provided in the query, the user balance is populated here */ userBalance?: Maybe; - /** The vault version on which the pool is deployed, 2 or 3 */ + /** + * The vault version on which the pool is deployed, 2 or 3 + * @deprecated use protocolVersion instead + */ vaultVersion: Scalars['Int']['output']; /** The version of the pool type. */ version: Scalars['Int']['output']; }; +/** Result of the poolReloadPools mutation */ +export type GqlPoolMutationResult = { + __typename?: 'GqlPoolMutationResult'; + /** The chain that was reloaded. */ + chain: GqlChain; + /** The error message */ + error?: Maybe; + /** Whether it was successful or not. */ + success: Scalars['Boolean']['output']; + /** The type of pools that were reloaded. */ + type: Scalars['String']['output']; +}; + export type GqlPoolNestedUnion = GqlPoolComposableStableNested; export type GqlPoolNestingType = @@ -708,10 +930,12 @@ export type GqlPoolSnapshot = { id: Scalars['ID']['output']; poolId: Scalars['String']['output']; sharePrice: Scalars['String']['output']; + surplus24h: Scalars['String']['output']; swapsCount: Scalars['String']['output']; timestamp: Scalars['Int']['output']; totalLiquidity: Scalars['String']['output']; totalShares: Scalars['String']['output']; + totalSurplus: Scalars['String']['output']; totalSwapFee: Scalars['String']['output']; totalSwapVolume: Scalars['String']['output']; volume24h: Scalars['String']['output']; @@ -730,6 +954,7 @@ export type GqlPoolStable = GqlPoolBase & { address: Scalars['Bytes']['output']; allTokens: Array; amp: Scalars['BigInt']['output']; + categories?: Maybe>>; chain: GqlChain; createTime: Scalars['Int']['output']; decimals: Scalars['Int']['output']; @@ -737,17 +962,23 @@ export type GqlPoolStable = GqlPoolBase & { dynamicData: GqlPoolDynamicData; factory?: Maybe; id: Scalars['ID']['output']; + /** @deprecated Removed without replacement */ investConfig: GqlPoolInvestConfig; name: Scalars['String']['output']; owner: Scalars['Bytes']['output']; poolTokens: Array; + protocolVersion: Scalars['Int']['output']; staking?: Maybe; symbol: Scalars['String']['output']; + tags?: Maybe>>; + /** @deprecated Use poolTokens instead */ tokens: Array; type: GqlPoolType; userBalance?: Maybe; + /** @deprecated use protocolVersion instead */ vaultVersion: Scalars['Int']['output']; version: Scalars['Int']['output']; + /** @deprecated Removed without replacement */ withdrawConfig: GqlPoolWithdrawConfig; }; @@ -764,12 +995,23 @@ export type GqlPoolStableComposablePoolData = { export type GqlPoolStaking = { __typename?: 'GqlPoolStaking'; address: Scalars['String']['output']; + aura?: Maybe; chain: GqlChain; farm?: Maybe; gauge?: Maybe; id: Scalars['ID']['output']; reliquary?: Maybe; type: GqlPoolStakingType; + vebal?: Maybe; +}; + +export type GqlPoolStakingAura = { + __typename?: 'GqlPoolStakingAura'; + apr: Scalars['Float']['output']; + auraPoolAddress: Scalars['String']['output']; + auraPoolId: Scalars['String']['output']; + id: Scalars['ID']['output']; + isShutdown: Scalars['Boolean']['output']; }; export type GqlPoolStakingFarmRewarder = { @@ -840,12 +1082,20 @@ export type GqlPoolStakingReliquaryFarmLevel = { }; export type GqlPoolStakingType = + | 'AURA' | 'FRESH_BEETS' | 'GAUGE' | 'MASTER_CHEF' | 'RELIQUARY' + | 'VEBAL' | '%future added value'; +export type GqlPoolStakingVebal = { + __typename?: 'GqlPoolStakingVebal'; + id: Scalars['ID']['output']; + vebalAddress: Scalars['String']['output']; +}; + export type GqlPoolSwap = { __typename?: 'GqlPoolSwap'; chain: GqlChain; @@ -861,21 +1111,75 @@ export type GqlPoolSwap = { valueUSD: Scalars['Float']['output']; }; +/** Represents an event that occurs when a swap is made in a pool using the CowAmm protocol. */ +export type GqlPoolSwapEventCowAmm = GqlPoolEvent & { + __typename?: 'GqlPoolSwapEventCowAmm'; + /** The block number of the event. */ + blockNumber: Scalars['Int']['output']; + /** The block timestamp of the event. */ + blockTimestamp: Scalars['Int']['output']; + /** The chain on which the event occurred. */ + chain: GqlChain; + /** The fee that this swap generated. */ + fee: GqlPoolEventAmount; + /** The unique identifier of the event. */ + id: Scalars['ID']['output']; + /** The log index of the event. */ + logIndex: Scalars['Int']['output']; + /** The pool ID associated with the event. */ + poolId: Scalars['String']['output']; + /** The sender of the event. */ + sender: Scalars['String']['output']; + /** The surplus generated by the swap. */ + surplus: GqlPoolEventAmount; + /** The timestamp of the event. */ + timestamp: Scalars['Int']['output']; + /** The token that was swapped in the event. */ + tokenIn: GqlPoolEventAmount; + /** The token that was swapped out in the event. */ + tokenOut: GqlPoolEventAmount; + /** The transaction hash of the event. */ + tx: Scalars['String']['output']; + /** The type of the event. */ + type: GqlPoolEventType; + /** The user address associated with the event. */ + userAddress: Scalars['String']['output']; + /** The value of the event in USD. */ + valueUSD: Scalars['Float']['output']; +}; + +/** Represents an event that occurs when a swap is made in a pool. */ export type GqlPoolSwapEventV3 = GqlPoolEvent & { __typename?: 'GqlPoolSwapEventV3'; + /** The block number of the event. */ blockNumber: Scalars['Int']['output']; + /** The block timestamp of the event. */ blockTimestamp: Scalars['Int']['output']; + /** The chain on which the event occurred. */ chain: GqlChain; + /** The fee that this swap generated. */ + fee: GqlPoolEventAmount; + /** The unique identifier of the event. */ id: Scalars['ID']['output']; + /** The log index of the event. */ logIndex: Scalars['Int']['output']; + /** The pool ID associated with the event. */ poolId: Scalars['String']['output']; + /** The sender of the event. */ sender: Scalars['String']['output']; + /** The timestamp of the event. */ timestamp: Scalars['Int']['output']; + /** The token that was swapped in the event. */ tokenIn: GqlPoolEventAmount; + /** The token that was swapped out in the event. */ tokenOut: GqlPoolEventAmount; + /** The transaction hash of the event. */ tx: Scalars['String']['output']; + /** The type of the event. */ type: GqlPoolEventType; + /** The user address associated with the event. */ userAddress: Scalars['String']['output']; + /** The value of the event in USD. */ valueUSD: Scalars['Float']['output']; }; @@ -938,19 +1242,45 @@ export type GqlPoolTokenComposableStable = GqlPoolTokenBase & { export type GqlPoolTokenComposableStableNestedUnion = GqlPoolToken; +/** + * All info on the pool token. It will also include the nested pool if the token is a BPT. It will only support 1 level of nesting. + * A second (unsupported) level of nesting is shown by having hasNestedPool = true but nestedPool = null. + */ export type GqlPoolTokenDetail = { __typename?: 'GqlPoolTokenDetail'; + /** Address of the pool token. */ address: Scalars['String']['output']; + /** Balance of the pool token inside the pool. */ balance: Scalars['BigDecimal']['output']; + /** USD Balance of the pool token. */ + balanceUSD: Scalars['BigDecimal']['output']; + /** Decimals of the pool token. */ decimals: Scalars['Int']['output']; + /** Indicates whether this token is a BPT and therefor has a nested pool. */ hasNestedPool: Scalars['Boolean']['output']; + /** Id of the token. A combination of pool id and token address. */ id: Scalars['ID']['output']; + /** Index of the pool token in the pool as returned by the vault. */ index: Scalars['Int']['output']; + /** Whether the token is in the allow list. */ + isAllowed: Scalars['Boolean']['output']; + /** Whether the token is considered an ERC4626 token. */ + isErc4626: Scalars['Boolean']['output']; + /** Name of the pool token. */ name: Scalars['String']['output']; + /** Additional data for the nested pool if the token is a BPT. Null otherwise. */ nestedPool?: Maybe; + /** If it is an appreciating token, it shows the current price rate. 1 otherwise. */ priceRate: Scalars['BigDecimal']['output']; + /** The address of the price rate provider. */ priceRateProvider?: Maybe; + /** Additional data for the price rate provider, such as reviews or warnings. */ + priceRateProviderData?: Maybe; + /** Symbol of the pool token. */ symbol: Scalars['String']['output']; + /** If it is an Erc4262, this will be the underlying token if present in the API. */ + underlyingToken?: Maybe; + /** The weight of the token in the pool if it is a weighted pool, null otherwise */ weight?: Maybe; }; @@ -969,6 +1299,7 @@ export type GqlPoolTokenExpanded = { address: Scalars['String']['output']; decimals: Scalars['Int']['output']; id: Scalars['ID']['output']; + isErc4626: Scalars['Boolean']['output']; isMainToken: Scalars['Boolean']['output']; isNested: Scalars['Boolean']['output']; isPhantomBpt: Scalars['Boolean']['output']; @@ -982,6 +1313,7 @@ export type GqlPoolTokenUnion = GqlPoolToken | GqlPoolTokenComposableStable; /** Supported pool types */ export type GqlPoolType = | 'COMPOSABLE_STABLE' + | 'COW_AMM' | 'ELEMENT' | 'FX' | 'GYRO' @@ -1001,10 +1333,8 @@ export type GqlPoolUnion = GqlPoolComposableStable | GqlPoolElement | GqlPoolFx /** If a user address was provided in the query, the user balance is populated here */ export type GqlPoolUserBalance = { __typename?: 'GqlPoolUserBalance'; - /** The staked balance in either a gauge or farm as float. */ - stakedBalance: Scalars['AmountHumanReadable']['output']; - /** The staked balance in either a gauge or farm in USD as float. */ - stakedBalanceUsd: Scalars['Float']['output']; + /** The staked BPT balances of the user. */ + stakedBalances: Array; /** Total balance (wallet + staked) as float */ totalBalance: Scalars['AmountHumanReadable']['output']; /** Total balance (wallet + staked) in USD as float */ @@ -1025,6 +1355,7 @@ export type GqlPoolWeighted = GqlPoolBase & { __typename?: 'GqlPoolWeighted'; address: Scalars['Bytes']['output']; allTokens: Array; + categories?: Maybe>>; chain: GqlChain; createTime: Scalars['Int']['output']; decimals: Scalars['Int']['output']; @@ -1032,19 +1363,27 @@ export type GqlPoolWeighted = GqlPoolBase & { dynamicData: GqlPoolDynamicData; factory?: Maybe; id: Scalars['ID']['output']; + /** @deprecated Removed without replacement */ investConfig: GqlPoolInvestConfig; name: Scalars['String']['output']; nestingType: GqlPoolNestingType; owner: Scalars['Bytes']['output']; poolTokens: Array; + protocolVersion: Scalars['Int']['output']; staking?: Maybe; symbol: Scalars['String']['output']; - /** All tokens of the pool. If it is a nested pool, the nested pool is expanded with its own tokens again. */ + tags?: Maybe>>; + /** + * All tokens of the pool. If it is a nested pool, the nested pool is expanded with its own tokens again. + * @deprecated Use poolTokens instead + */ tokens: Array; type: GqlPoolType; userBalance?: Maybe; + /** @deprecated use protocolVersion instead */ vaultVersion: Scalars['Int']['output']; version: Scalars['Int']['output']; + /** @deprecated Removed without replacement */ withdrawConfig: GqlPoolWithdrawConfig; }; @@ -1071,6 +1410,36 @@ export type GqlPriceImpact = { priceImpact?: Maybe; }; +/** Represents the data of a price rate provider */ +export type GqlPriceRateProviderData = { + __typename?: 'GqlPriceRateProviderData'; + /** The address of the price rate provider */ + address: Scalars['String']['output']; + /** The factory used to create the price rate provider, if applicable */ + factory?: Maybe; + /** The name of the price rate provider */ + name?: Maybe; + /** The filename of the review of the price rate provider */ + reviewFile?: Maybe; + /** Indicates if the price rate provider has been reviewed */ + reviewed: Scalars['Boolean']['output']; + /** A summary of the price rate provider, usually just says safe or unsafe */ + summary?: Maybe; + /** Upgradeable components of the price rate provider */ + upgradeableComponents?: Maybe>>; + /** Warnings associated with the price rate provider */ + warnings?: Maybe>; +}; + +/** Represents an upgradeable component of a price rate provider */ +export type GqlPriceRateProviderUpgradeableComponent = { + __typename?: 'GqlPriceRateProviderUpgradeableComponent'; + /** The entry point / proxy of the upgradeable component */ + entryPoint: Scalars['String']['output']; + /** Indicates if the implementation of the component has been reviewed */ + implementationReviewed: Scalars['String']['output']; +}; + export type GqlProtocolMetricsAggregated = { __typename?: 'GqlProtocolMetricsAggregated'; chains: Array; @@ -1250,6 +1619,8 @@ export type GqlSorGetSwapPaths = { paths: Array; /** Price impact of the path */ priceImpact: GqlPriceImpact; + /** The version of the protocol these paths are from */ + protocolVersion: Scalars['Int']['output']; /** The return amount in human form. Return amount is either tokenOutAmount (if swapType is exactIn) or tokenInAmount (if swapType is exactOut) */ returnAmount: Scalars['AmountHumanReadable']['output']; /** The return amount in a raw form */ @@ -1274,7 +1645,10 @@ export type GqlSorGetSwapPaths = { tokenOut: Scalars['String']['output']; /** The amount of tokenOut in human form */ tokenOutAmount: Scalars['AmountHumanReadable']['output']; - /** The version of the vault these paths are from */ + /** + * The version of the vault these paths are from + * @deprecated Use protocolVersion instead + */ vaultVersion: Scalars['Int']['output']; }; @@ -1306,13 +1680,20 @@ export type GqlSorPath = { __typename?: 'GqlSorPath'; /** Input amount of this path in scaled form */ inputAmountRaw: Scalars['String']['output']; + /** A sorted list of booleans that indicate if the respective pool is a buffer */ + isBuffer: Array>; /** Output amount of this path in scaled form */ outputAmountRaw: Scalars['String']['output']; /** A sorted list of pool ids that are used in this path */ pools: Array>; + /** The version of the protocol these paths are from */ + protocolVersion: Scalars['Int']['output']; /** A sorted list of tokens that are ussed in this path */ tokens: Array>; - /** Vault version of this path. */ + /** + * Vault version of this path. + * @deprecated Use protocolVersion instead + */ vaultVersion: Scalars['Int']['output']; }; @@ -1389,21 +1770,44 @@ export type GqlSwapCallDataInput = { slippagePercentage: Scalars['String']['input']; }; +/** Represents a token */ export type GqlToken = { __typename?: 'GqlToken'; + /** The address of the token */ address: Scalars['String']['output']; + /** The chain of the token */ chain: GqlChain; + /** The chain ID of the token */ chainId: Scalars['Int']['output']; + /** The coingecko ID for this token, if present */ + coingeckoId?: Maybe; + /** The number of decimal places for the token */ decimals: Scalars['Int']['output']; + /** The description of the token */ description?: Maybe; + /** The Discord URL of the token */ discordUrl?: Maybe; + /** Whether the token is considered an ERC4626 token. */ + isErc4626: Scalars['Boolean']['output']; + /** The logo URI of the token */ logoURI?: Maybe; + /** The name of the token */ name: Scalars['String']['output']; + /** The rate provider data for the token */ + priceRateProviderData?: Maybe; + /** The priority of the token, can be used for sorting. */ priority: Scalars['Int']['output']; + /** The rate provider data for the token */ + rateProviderData?: Maybe; + /** The symbol of the token */ symbol: Scalars['String']['output']; + /** The Telegram URL of the token */ telegramUrl?: Maybe; + /** Indicates if the token is tradable */ tradable: Scalars['Boolean']['output']; + /** The Twitter username of the token */ twitterUsername?: Maybe; + /** The website URL of the token */ websiteUrl?: Maybe; }; @@ -1441,25 +1845,52 @@ export type GqlTokenData = { websiteUrl?: Maybe; }; +/** Represents additional data for a token */ export type GqlTokenDynamicData = { __typename?: 'GqlTokenDynamicData'; + /** The all-time high price of the token */ ath: Scalars['Float']['output']; + /** The all-time low price of the token */ atl: Scalars['Float']['output']; + /** The fully diluted valuation of the token */ fdv?: Maybe; + /** The highest price in the last 24 hours */ high24h: Scalars['Float']['output']; + /** The unique identifier of the dynamic data */ id: Scalars['String']['output']; + /** The lowest price in the last 24 hours */ low24h: Scalars['Float']['output']; + /** The market capitalization of the token */ marketCap?: Maybe; + /** The current price of the token */ price: Scalars['Float']['output']; + /** The price change in the last 24 hours */ priceChange24h: Scalars['Float']['output']; + /** The percentage price change in the last 7 days */ priceChangePercent7d?: Maybe; + /** The percentage price change in the last 14 days */ priceChangePercent14d?: Maybe; + /** The percentage price change in the last 24 hours */ priceChangePercent24h: Scalars['Float']['output']; + /** The percentage price change in the last 30 days */ priceChangePercent30d?: Maybe; + /** The address of the token */ tokenAddress: Scalars['String']['output']; + /** The timestamp when the data was last updated */ updatedAt: Scalars['String']['output']; }; +/** Result of the poolReloadPools mutation */ +export type GqlTokenMutationResult = { + __typename?: 'GqlTokenMutationResult'; + /** The chain that was reloaded. */ + chain: GqlChain; + /** The error message */ + error?: Maybe; + /** Whether it was successful or not. */ + success: Scalars['Boolean']['output']; +}; + export type GqlTokenPrice = { __typename?: 'GqlTokenPrice'; address: Scalars['String']['output']; @@ -1501,46 +1932,119 @@ export type GqlUserPoolBalance = { walletBalance: Scalars['AmountHumanReadable']['output']; }; +export type GqlUserStakedBalance = { + __typename?: 'GqlUserStakedBalance'; + /** The staked BPT balance as float. */ + balance: Scalars['AmountHumanReadable']['output']; + /** The steaked BPT balance in USD as float. */ + balanceUsd: Scalars['Float']['output']; + /** The id of the staking to match with GqlPoolStaking.id. */ + stakingId: Scalars['String']['output']; + /** The staking type (Gauge, farm, aura, etc.) in which this balance is staked. */ + stakingType: GqlPoolStakingType; +}; + export type GqlUserSwapVolumeFilter = { poolIdIn?: InputMaybe>; tokenInIn?: InputMaybe>; tokenOutIn?: InputMaybe>; }; +export type GqlVeBalBalance = { + __typename?: 'GqlVeBalBalance'; + balance: Scalars['AmountHumanReadable']['output']; + chain: GqlChain; + locked: Scalars['AmountHumanReadable']['output']; + lockedUsd: Scalars['AmountHumanReadable']['output']; +}; + export type GqlVeBalUserData = { __typename?: 'GqlVeBalUserData'; balance: Scalars['AmountHumanReadable']['output']; + locked: Scalars['AmountHumanReadable']['output']; + lockedUsd: Scalars['AmountHumanReadable']['output']; rank?: Maybe; }; +/** The Gauge that can be voted on through veBAL and that will ultimately receive the rewards. */ export type GqlVotingGauge = { __typename?: 'GqlVotingGauge'; + /** The timestamp the gauge was added. */ addedTimestamp?: Maybe; + /** The address of the root gauge on Ethereum mainnet. */ address: Scalars['Bytes']['output']; + /** The address of the child gauge on the specific chain. */ childGaugeAddress?: Maybe; + /** Whether the gauge is killed or not. */ isKilled: Scalars['Boolean']['output']; + /** The relative weight the gauge received this epoch (not more than 1.0). */ + relativeWeight: Scalars['String']['output']; + /** The relative weight cap. 1.0 for uncapped. */ relativeWeightCap?: Maybe; }; +/** A token inside of a pool with a voting gauge. */ export type GqlVotingGaugeToken = { __typename?: 'GqlVotingGaugeToken'; + /** The address of the token. */ address: Scalars['String']['output']; + /** The URL to the token logo. */ logoURI: Scalars['String']['output']; + /** The symbol of the token. */ symbol: Scalars['String']['output']; + /** If it is a weighted pool, the weigh of the token is shown here in %. 0.5 = 50%. */ weight?: Maybe; }; +/** The pool that can be voted on through veBAL */ export type GqlVotingPool = { __typename?: 'GqlVotingPool'; + /** The address of the pool. */ address: Scalars['Bytes']['output']; + /** The chain this pool is on. */ chain: GqlChain; + /** The gauge that is connected to the pool and that will receive the rewards. */ gauge: GqlVotingGauge; + /** Pool ID */ id: Scalars['ID']['output']; + /** The symbol of the pool. */ symbol: Scalars['String']['output']; + /** The tokens inside the pool. */ tokens: Array; + /** The type of the pool. */ type: GqlPoolType; }; +/** Hook data */ +export type Hook = { + __typename?: 'Hook'; + address: Scalars['String']['output']; + chain: GqlChain; + /** Data points changing over time */ + dynamicData?: Maybe; + /** True when hook can change the amounts send to the vault. Necessary to deduct the fees. */ + enableHookAdjustedAmounts: Scalars['Boolean']['output']; + /** List of pools using the hook */ + poolsIds?: Maybe>>; + shouldCallAfterAddLiquidity: Scalars['Boolean']['output']; + shouldCallAfterInitialize: Scalars['Boolean']['output']; + shouldCallAfterRemoveLiquidity: Scalars['Boolean']['output']; + shouldCallAfterSwap: Scalars['Boolean']['output']; + shouldCallBeforeAddLiquidity: Scalars['Boolean']['output']; + shouldCallBeforeInitialize: Scalars['Boolean']['output']; + shouldCallBeforeRemoveLiquidity: Scalars['Boolean']['output']; + shouldCallBeforeSwap: Scalars['Boolean']['output']; + shouldCallComputeDynamicSwapFee: Scalars['Boolean']['output']; +}; + +/** Collection of hook specific data. Percentage format is 0.01 -> 0.01%. */ +export type HookData = { + __typename?: 'HookData'; + addLiquidityFeePercentage?: Maybe; + removeLiquidityFeePercentage?: Maybe; + swapFeePercentage?: Maybe; +}; + export type Mutation = { __typename?: 'Mutation'; beetsPoolLoadReliquarySnapshotsForAllFarms: Scalars['String']['output']; @@ -1557,7 +2061,9 @@ export type Mutation = { poolLoadSnapshotsForPools: Scalars['String']['output']; poolReloadAllPoolAprs: Scalars['String']['output']; poolReloadAllTokenNestedPoolIds: Scalars['String']['output']; + poolReloadPools: Array; poolReloadStakingForAllPools: Scalars['String']['output']; + poolSyncAllCowSnapshots: Array; poolSyncAllPoolsFromSubgraph: Array; poolSyncLatestSnapshotsForAllPools: Scalars['String']['output']; poolSyncNewPoolsFromSubgraph: Array; @@ -1577,6 +2083,7 @@ export type Mutation = { sftmxSyncWithdrawalRequests: Scalars['String']['output']; tokenDeleteTokenType: Scalars['String']['output']; tokenReloadAllTokenTypes: Scalars['String']['output']; + tokenReloadErc4626Tokens: Array; tokenReloadTokenPrices?: Maybe; tokenSyncLatestFxPrices: Scalars['String']['output']; tokenSyncTokenDefinitions: Scalars['String']['output']; @@ -1623,13 +2130,23 @@ export type MutationPoolReloadAllPoolAprsArgs = { }; +export type MutationPoolReloadPoolsArgs = { + chains: Array; +}; + + export type MutationPoolReloadStakingForAllPoolsArgs = { stakingTypes: Array; }; +export type MutationPoolSyncAllCowSnapshotsArgs = { + chains: Array; +}; + + export type MutationPoolSyncLatestSnapshotsForAllPoolsArgs = { - daysToSync?: InputMaybe; + chain: GqlChain; }; @@ -1649,6 +2166,11 @@ export type MutationTokenDeleteTokenTypeArgs = { }; +export type MutationTokenReloadErc4626TokensArgs = { + chains: Array; +}; + + export type MutationTokenReloadTokenPricesArgs = { chains: Array; }; @@ -1682,18 +2204,29 @@ export type Query = { blocksGetBlocksPerSecond: Scalars['Float']['output']; blocksGetBlocksPerYear: Scalars['Float']['output']; contentGetNewsItems: Array; + /** Returns list of hooks. */ + hooks?: Maybe>; latestSyncedBlocks: GqlLatestSyncedBlocks; /** Getting swap, add and remove events with paging */ poolEvents: Array; - /** Will de deprecated in favor of poolEvents */ + /** + * Will de deprecated in favor of poolEvents + * @deprecated Use poolEvents instead + */ poolGetBatchSwaps: Array; /** Getting swap, add and remove events with range */ poolGetEvents: Array; - /** Will de deprecated in favor of poolGetFeaturedPools */ + /** + * Will de deprecated in favor of poolGetFeaturedPools + * @deprecated Use poolGetFeaturedPools instead + */ poolGetFeaturedPoolGroups: Array; /** Returns the list of featured pools for chains */ poolGetFeaturedPools: Array; - /** Will de deprecated in favor of poolEvents */ + /** + * Will de deprecated in favor of poolEvents + * @deprecated Use poolEvents instead + */ poolGetJoinExits: Array; /** Returns one pool. If a user address is provided, the user balances for the given pool will also be returned. */ poolGetPool: GqlPoolBase; @@ -1703,7 +2236,10 @@ export type Query = { poolGetPoolsCount: Scalars['Int']['output']; /** Gets all the snapshots for a given pool on a chain for a certain range */ poolGetSnapshots: Array; - /** Will de deprecated in favor of poolEvents */ + /** + * Will de deprecated in favor of poolEvents + * @deprecated Use poolEvents instead + */ poolGetSwaps: Array; protocolMetricsAggregated: GqlProtocolMetricsAggregated; protocolMetricsChain: GqlProtocolMetricsChain; @@ -1717,16 +2253,42 @@ export type Query = { sorGetSwapPaths: GqlSorGetSwapPaths; /** Get swap quote from the SOR, queries both the old and new SOR */ sorGetSwaps: GqlSorGetSwapsResponse; + /** + * Returns the candlestick chart data for a token for a given range. + * @deprecated Use tokenGetHistoricalPrices instead + */ tokenGetCandlestickChartData: Array; + /** Returns all current prices for allowed tokens for a given chain or chains */ tokenGetCurrentPrices: Array; + /** Returns the historical prices for a given set of tokens for a given chain and range */ tokenGetHistoricalPrices: Array; + /** + * DEPRECATED: Returns pricing data for a given token for a given range + * @deprecated Use tokenGetHistoricalPrices instead + */ tokenGetPriceChartData: Array; + /** + * Returns the price of either BAL or BEETS depending on chain + * @deprecated Use tokenGetTokensDynamicData instead + */ tokenGetProtocolTokenPrice: Scalars['AmountHumanReadable']['output']; + /** Returns the price of a token priced in another token for a given range. */ tokenGetRelativePriceChartData: Array; + /** + * Returns meta data for a given token such as description, website, etc. + * @deprecated Use tokenGetTokens instead + */ tokenGetTokenData?: Maybe; + /** Returns dynamic data of a token such as price, market cap, etc. */ tokenGetTokenDynamicData?: Maybe; + /** Returns all allowed tokens for a given chain or chains */ tokenGetTokens: Array; + /** + * Returns meta data for a given set of tokens such as description, website, etc. + * @deprecated Use tokenGetTokens instead + */ tokenGetTokensData: Array; + /** Returns dynamic data of a set of tokens such as price, market cap, etc. */ tokenGetTokensDynamicData: Array; userGetFbeetsBalance: GqlUserFbeetsBalance; userGetPoolBalances: Array; @@ -1738,6 +2300,8 @@ export type Query = { veBalGetTotalSupply: Scalars['AmountHumanReadable']['output']; veBalGetUser: GqlVeBalUserData; veBalGetUserBalance: Scalars['AmountHumanReadable']['output']; + veBalGetUserBalances: Array; + /** Returns all pools with veBAL gauges that can be voted on. */ veBalGetVotingList: Array; }; @@ -1753,10 +2317,15 @@ export type QueryContentGetNewsItemsArgs = { }; +export type QueryHooksArgs = { + chain?: InputMaybe; +}; + + export type QueryPoolEventsArgs = { first?: InputMaybe; skip?: InputMaybe; - where: GqlPoolEventsFilter; + where?: InputMaybe; }; @@ -1862,7 +2431,7 @@ export type QuerySorGetSwapPathsArgs = { swapType: GqlSorSwapType; tokenIn: Scalars['String']['input']; tokenOut: Scalars['String']['input']; - useVaultVersion?: InputMaybe; + useProtocolVersion?: InputMaybe; }; @@ -1972,6 +2541,29 @@ export type QueryUserGetSwapsArgs = { skip?: InputMaybe; }; + +export type QueryVeBalGetTotalSupplyArgs = { + chain?: InputMaybe; +}; + + +export type QueryVeBalGetUserArgs = { + address: Scalars['String']['input']; + chain?: InputMaybe; +}; + + +export type QueryVeBalGetUserBalanceArgs = { + address?: InputMaybe; + chain?: InputMaybe; +}; + + +export type QueryVeBalGetUserBalancesArgs = { + address: Scalars['String']['input']; + chains?: InputMaybe>; +}; + export type Token = { __typename?: 'Token'; address: Scalars['String']['output']; diff --git a/packages/gql/src/balancer-api-v3/__generated__/Arbitrum.ts b/packages/gql/src/balancer-api-v3/__generated__/Arbitrum.ts index dbb6d7c10..5e68d0c72 100644 --- a/packages/gql/src/balancer-api-v3/__generated__/Arbitrum.ts +++ b/packages/gql/src/balancer-api-v3/__generated__/Arbitrum.ts @@ -46,8 +46,10 @@ export type GqlChain = | 'AVALANCHE' | 'BASE' | 'FANTOM' + | 'FRAXTAL' | 'GNOSIS' | 'MAINNET' + | 'MODE' | 'OPTIMISM' | 'POLYGON' | 'SEPOLIA' @@ -130,41 +132,73 @@ export type GqlLatestSyncedBlocks = { userWalletSyncBlock: Scalars['BigInt']['output']; }; +/** All info on the nested pool if the token is a BPT. It will only support 1 level of nesting. */ export type GqlNestedPool = { __typename?: 'GqlNestedPool'; + /** Address of the pool. */ address: Scalars['Bytes']['output']; + /** Price rate of the Balancer Pool Token (BPT). */ bptPriceRate: Scalars['BigDecimal']['output']; + /** Timestamp of when the pool was created. */ createTime: Scalars['Int']['output']; + /** Address of the factory contract that created the pool, if applicable. */ factory?: Maybe; + /** Unique identifier of the pool. */ id: Scalars['ID']['output']; + /** Name of the pool. */ name: Scalars['String']['output']; + /** Total liquidity of the parent pool in the nested pool in USD. */ nestedLiquidity: Scalars['BigDecimal']['output']; + /** Percentage of the parents pool shares inside the nested pool. */ nestedPercentage: Scalars['BigDecimal']['output']; + /** Number of shares of the parent pool in the nested pool. */ nestedShares: Scalars['BigDecimal']['output']; + /** Address of the pool's owner. */ owner: Scalars['Bytes']['output']; + /** Fee charged for swapping tokens in the pool as %. 0.01 -> 0.01% */ swapFee: Scalars['BigDecimal']['output']; + /** Symbol of the pool. */ symbol: Scalars['String']['output']; + /** List of all tokens in the pool. */ tokens: Array; + /** Total liquidity in the pool in USD. */ totalLiquidity: Scalars['BigDecimal']['output']; + /** Total number of shares in the pool. */ totalShares: Scalars['BigDecimal']['output']; + /** Type of the pool. */ type: GqlPoolType; + /** Version of the pool. */ version: Scalars['Int']['output']; }; +/** Represents an event that occurs when liquidity is added or removed from a pool. */ export type GqlPoolAddRemoveEventV3 = GqlPoolEvent & { __typename?: 'GqlPoolAddRemoveEventV3'; + /** The block number of the event. */ blockNumber: Scalars['Int']['output']; + /** The block timestamp of the event. */ blockTimestamp: Scalars['Int']['output']; + /** The chain on which the event occurred. */ chain: GqlChain; + /** The unique identifier of the event. */ id: Scalars['ID']['output']; + /** The log index of the event. */ logIndex: Scalars['Int']['output']; + /** The pool ID associated with the event. */ poolId: Scalars['String']['output']; + /** The sender of the event. */ sender: Scalars['String']['output']; + /** The timestamp of the event. */ timestamp: Scalars['Int']['output']; + /** The tokens involved in the event. Ordered by poolToken index. */ tokens: Array; + /** The transaction hash of the event. */ tx: Scalars['String']['output']; + /** The type of the event. */ type: GqlPoolEventType; + /** The user address associated with the event. */ userAddress: Scalars['String']['output']; + /** The value of the event in USD. */ valueUSD: Scalars['Float']['output']; }; @@ -178,6 +212,43 @@ export type GqlPoolApr = { thirdPartyApr: GqlPoolAprValue; }; +/** All APRs for a pool */ +export type GqlPoolAprItem = { + __typename?: 'GqlPoolAprItem'; + /** The APR value in % -> 0.2 = 0.2% */ + apr: Scalars['Float']['output']; + /** The id of the APR item */ + id: Scalars['ID']['output']; + /** The title of the APR item, a human readable form */ + title: Scalars['String']['output']; + /** Specific type of this APR */ + type: GqlPoolAprItemType; +}; + +/** Enum representing the different types of the APR in a pool. */ +export type GqlPoolAprItemType = + /** APR that pools earns when BPT is staked on AURA. */ + | 'AURA' + /** Represents the yield from an IB (Interest-Bearing) asset APR in a pool. */ + | 'IB_YIELD' + /** APR in a pool that can be earned through locking, i.e. veBAL */ + | 'LOCKING' + /** Rewards distributed by merkl.xyz */ + | 'MERKL' + /** Represents if the APR items comes from a nested pool. */ + | 'NESTED' + /** Staking reward APR in a pool, i.e. BAL or BEETS. */ + | 'STAKING' + /** APR boost that can be earned, i.e. via veBAL or maBEETS. */ + | 'STAKING_BOOST' + /** Cow AMM specific APR */ + | 'SURPLUS' + /** Represents the swap fee APR in a pool. */ + | 'SWAP_FEE' + /** APR that can be earned thourgh voting, i.e. gauge votes */ + | 'VOTING' + | '%future added value'; + export type GqlPoolAprRange = { __typename?: 'GqlPoolAprRange'; max: Scalars['BigDecimal']['output']; @@ -195,23 +266,34 @@ export type GqlPoolAprValue = GqlPoolAprRange | GqlPoolAprTotal; export type GqlPoolBase = { /** The contract address of the pool. */ address: Scalars['Bytes']['output']; - /** Returns all pool tokens, including any nested tokens and phantom BPTs on one level. */ + /** + * Returns all pool tokens, including any nested tokens and phantom BPTs on one level. + * @deprecated Use poolTokens instead + */ allTokens: Array; + /** List of categories assigned by the team based on external factors */ + categories?: Maybe>>; /** The chain on which the pool is deployed */ chain: GqlChain; /** The timestamp the pool was created. */ createTime: Scalars['Int']['output']; /** The decimals of the BPT, usually 18 */ decimals: Scalars['Int']['output']; - /** Only returns main tokens, also known as leave tokens. Wont return any nested BPTs. Used for displaying the tokens that the pool consists of. */ + /** + * Only returns main tokens, also known as leave tokens. Wont return any nested BPTs. Used for displaying the tokens that the pool consists of. + * @deprecated Use poolTokens instead + */ displayTokens: Array; /** Dynamic data such as token balances, swap fees or volume */ dynamicData: GqlPoolDynamicData; /** The factory contract address from which the pool was created. */ factory?: Maybe; - /** The pool id. This is equal to the address for vaultVersion 3 pools */ + /** The pool id. This is equal to the address for protocolVersion 3 pools */ id: Scalars['ID']['output']; - /** Deprecated */ + /** + * Deprecated + * @deprecated Removed without replacement + */ investConfig: GqlPoolInvestConfig; /** The name of the pool as per contract */ name: Scalars['String']['output']; @@ -219,19 +301,29 @@ export type GqlPoolBase = { owner?: Maybe; /** Returns all pool tokens, including BPTs and nested pools if there are any. Only one nested level deep. */ poolTokens: Array; + /** The protocol version on which the pool is deployed, 1, 2 or 3 */ + protocolVersion: Scalars['Int']['output']; /** Staking options of this pool which emit additional rewards */ staking?: Maybe; /** The token symbol of the pool as per contract */ symbol: Scalars['String']['output']; + /** List of tags assigned by the team based on external factors */ + tags?: Maybe>>; /** The pool type, such as weighted, stable, etc. */ type: GqlPoolType; /** If a user address was provided in the query, the user balance is populated here */ userBalance?: Maybe; - /** The vault version on which the pool is deployed, 2 or 3 */ + /** + * The vault version on which the pool is deployed, 2 or 3 + * @deprecated use protocolVersion instead + */ vaultVersion: Scalars['Int']['output']; /** The version of the pool type. */ version: Scalars['Int']['output']; - /** Deprecated */ + /** + * Deprecated + * @deprecated Removed without replacement + */ withdrawConfig: GqlPoolWithdrawConfig; }; @@ -278,6 +370,7 @@ export type GqlPoolComposableStable = GqlPoolBase & { allTokens: Array; amp: Scalars['BigInt']['output']; bptPriceRate: Scalars['BigDecimal']['output']; + categories?: Maybe>>; chain: GqlChain; createTime: Scalars['Int']['output']; decimals: Scalars['Int']['output']; @@ -285,18 +378,27 @@ export type GqlPoolComposableStable = GqlPoolBase & { dynamicData: GqlPoolDynamicData; factory?: Maybe; id: Scalars['ID']['output']; + /** @deprecated Removed without replacement */ investConfig: GqlPoolInvestConfig; name: Scalars['String']['output']; nestingType: GqlPoolNestingType; owner: Scalars['Bytes']['output']; poolTokens: Array; + protocolVersion: Scalars['Int']['output']; staking?: Maybe; symbol: Scalars['String']['output']; + tags?: Maybe>>; + /** + * All tokens of the pool. If it is a nested pool, the nested pool is expanded with its own tokens again. + * @deprecated Use poolTokens instead + */ tokens: Array; type: GqlPoolType; userBalance?: Maybe; + /** @deprecated use protocolVersion instead */ vaultVersion: Scalars['Int']['output']; version: Scalars['Int']['output']; + /** @deprecated Removed without replacement */ withdrawConfig: GqlPoolWithdrawConfig; }; @@ -305,6 +407,7 @@ export type GqlPoolComposableStableNested = { address: Scalars['Bytes']['output']; amp: Scalars['BigInt']['output']; bptPriceRate: Scalars['BigDecimal']['output']; + categories?: Maybe>>; createTime: Scalars['Int']['output']; factory?: Maybe; id: Scalars['ID']['output']; @@ -313,6 +416,8 @@ export type GqlPoolComposableStableNested = { owner: Scalars['Bytes']['output']; swapFee: Scalars['BigDecimal']['output']; symbol: Scalars['String']['output']; + tags?: Maybe>>; + /** @deprecated Use poolTokens instead */ tokens: Array; totalLiquidity: Scalars['BigDecimal']['output']; totalShares: Scalars['BigDecimal']['output']; @@ -322,7 +427,13 @@ export type GqlPoolComposableStableNested = { export type GqlPoolDynamicData = { __typename?: 'GqlPoolDynamicData'; + /** Protocol and pool creator fees combined */ + aggregateSwapFee: Scalars['BigDecimal']['output']; + /** Protocol and pool creator fees combined */ + aggregateYieldFee: Scalars['BigDecimal']['output']; + /** @deprecated Use aprItems instead */ apr: GqlPoolApr; + aprItems: Array; fees24h: Scalars['BigDecimal']['output']; fees24hAth: Scalars['BigDecimal']['output']; fees24hAthTimestamp: Scalars['Int']['output']; @@ -330,6 +441,7 @@ export type GqlPoolDynamicData = { fees24hAtlTimestamp: Scalars['Int']['output']; fees48h: Scalars['BigDecimal']['output']; holdersCount: Scalars['BigInt']['output']; + /** True for bricked pools */ isInRecoveryMode: Scalars['Boolean']['output']; isPaused: Scalars['Boolean']['output']; lifetimeSwapFees: Scalars['BigDecimal']['output']; @@ -339,6 +451,11 @@ export type GqlPoolDynamicData = { sharePriceAthTimestamp: Scalars['Int']['output']; sharePriceAtl: Scalars['BigDecimal']['output']; sharePriceAtlTimestamp: Scalars['Int']['output']; + /** CowAmm specific, equivalent of swap fees */ + surplus24h: Scalars['BigDecimal']['output']; + /** CowAmm specific, equivalent of swap fees */ + surplus48h: Scalars['BigDecimal']['output']; + /** Disabled for bricked pools */ swapEnabled: Scalars['Boolean']['output']; swapFee: Scalars['BigDecimal']['output']; swapsCount: Scalars['BigInt']['output']; @@ -365,6 +482,7 @@ export type GqlPoolElement = GqlPoolBase & { address: Scalars['Bytes']['output']; allTokens: Array; baseToken: Scalars['Bytes']['output']; + categories?: Maybe>>; chain: GqlChain; createTime: Scalars['Int']['output']; decimals: Scalars['Int']['output']; @@ -372,34 +490,53 @@ export type GqlPoolElement = GqlPoolBase & { dynamicData: GqlPoolDynamicData; factory?: Maybe; id: Scalars['ID']['output']; + /** @deprecated Removed without replacement */ investConfig: GqlPoolInvestConfig; name: Scalars['String']['output']; owner: Scalars['Bytes']['output']; poolTokens: Array; principalToken: Scalars['Bytes']['output']; + protocolVersion: Scalars['Int']['output']; staking?: Maybe; symbol: Scalars['String']['output']; + tags?: Maybe>>; + /** @deprecated Use poolTokens instead */ tokens: Array; type: GqlPoolType; unitSeconds: Scalars['BigInt']['output']; userBalance?: Maybe; + /** @deprecated use protocolVersion instead */ vaultVersion: Scalars['Int']['output']; version: Scalars['Int']['output']; + /** @deprecated Removed without replacement */ withdrawConfig: GqlPoolWithdrawConfig; }; +/** Represents an event that occurs in a pool. */ export type GqlPoolEvent = { + /** The block number of the event. */ blockNumber: Scalars['Int']['output']; + /** The block timestamp of the event. */ blockTimestamp: Scalars['Int']['output']; + /** The chain on which the event occurred. */ chain: GqlChain; + /** The unique identifier of the event. */ id: Scalars['ID']['output']; + /** The log index of the event. */ logIndex: Scalars['Int']['output']; + /** The pool ID associated with the event. */ poolId: Scalars['String']['output']; + /** The sender of the event. */ sender: Scalars['String']['output']; + /** The timestamp of the event. */ timestamp: Scalars['Int']['output']; + /** The transaction hash of the event. */ tx: Scalars['String']['output']; + /** The type of the event. */ type: GqlPoolEventType; + /** The user address associated with the event. */ userAddress: Scalars['String']['output']; + /** The USD value of this event. */ valueUSD: Scalars['Float']['output']; }; @@ -423,11 +560,15 @@ export type GqlPoolEventsDataRange = | '%future added value'; export type GqlPoolEventsFilter = { - chain: GqlChain; - poolId: Scalars['String']['input']; + chainIn?: InputMaybe>>; + poolIdIn?: InputMaybe>>; range?: InputMaybe; typeIn?: InputMaybe>>; userAddress?: InputMaybe; + /** USD value of the event */ + valueUSD_gt?: InputMaybe; + /** USD value of the event */ + valueUSD_gte?: InputMaybe; }; export type GqlPoolFeaturedPool = { @@ -449,8 +590,6 @@ export type GqlPoolFeaturedPoolGroup = { export type GqlPoolFeaturedPoolGroupItem = GqlFeaturePoolGroupItemExternalLink | GqlPoolMinimal; export type GqlPoolFilter = { - categoryIn?: InputMaybe>; - categoryNotIn?: InputMaybe>; chainIn?: InputMaybe>; chainNotIn?: InputMaybe>; createTime?: InputMaybe; @@ -461,15 +600,33 @@ export type GqlPoolFilter = { minTvl?: InputMaybe; poolTypeIn?: InputMaybe>; poolTypeNotIn?: InputMaybe>; + protocolVersionIn?: InputMaybe>; + /** + * For list of tags see: https://github.com/balancer/metadata/blob/main/pools/index.json + * Use uppercase + */ + tagIn?: InputMaybe>; + /** + * For list of tags see: https://github.com/balancer/metadata/blob/main/pools/index.json + * Use uppercase + */ + tagNotIn?: InputMaybe>; tokensIn?: InputMaybe>; tokensNotIn?: InputMaybe>; userAddress?: InputMaybe; - vaultVersionIn?: InputMaybe>; }; export type GqlPoolFilterCategory = | 'BLACK_LISTED' | 'INCENTIVIZED' + | 'LRT' + | 'POINTS' + | 'POINTS_EIGENLAYER' + | 'POINTS_GYRO' + | 'POINTS_KELP' + | 'POINTS_RENZO' + | 'POINTS_SWELL' + | 'SUPERFEST' | '%future added value'; export type GqlPoolFx = GqlPoolBase & { @@ -478,6 +635,7 @@ export type GqlPoolFx = GqlPoolBase & { allTokens: Array; alpha: Scalars['String']['output']; beta: Scalars['String']['output']; + categories?: Maybe>>; chain: GqlChain; createTime: Scalars['Int']['output']; decimals: Scalars['Int']['output']; @@ -487,18 +645,27 @@ export type GqlPoolFx = GqlPoolBase & { epsilon: Scalars['String']['output']; factory?: Maybe; id: Scalars['ID']['output']; + /** @deprecated Removed without replacement */ investConfig: GqlPoolInvestConfig; lambda: Scalars['String']['output']; name: Scalars['String']['output']; owner?: Maybe; poolTokens: Array; + protocolVersion: Scalars['Int']['output']; staking?: Maybe; symbol: Scalars['String']['output']; + tags?: Maybe>>; + /** + * All tokens of the pool. If it is a nested pool, the nested pool is expanded with its own tokens again. + * @deprecated Use poolTokens instead + */ tokens: Array; type: GqlPoolType; userBalance?: Maybe; + /** @deprecated use protocolVersion instead */ vaultVersion: Scalars['Int']['output']; version: Scalars['Int']['output']; + /** @deprecated Removed without replacement */ withdrawConfig: GqlPoolWithdrawConfig; }; @@ -509,6 +676,7 @@ export type GqlPoolGyro = GqlPoolBase & { alpha: Scalars['String']['output']; beta: Scalars['String']['output']; c: Scalars['String']['output']; + categories?: Maybe>>; chain: GqlChain; createTime: Scalars['Int']['output']; dSq: Scalars['String']['output']; @@ -517,30 +685,39 @@ export type GqlPoolGyro = GqlPoolBase & { dynamicData: GqlPoolDynamicData; factory?: Maybe; id: Scalars['ID']['output']; + /** @deprecated Removed without replacement */ investConfig: GqlPoolInvestConfig; lambda: Scalars['String']['output']; name: Scalars['String']['output']; nestingType: GqlPoolNestingType; owner: Scalars['Bytes']['output']; poolTokens: Array; + protocolVersion: Scalars['Int']['output']; root3Alpha: Scalars['String']['output']; s: Scalars['String']['output']; sqrtAlpha: Scalars['String']['output']; sqrtBeta: Scalars['String']['output']; staking?: Maybe; symbol: Scalars['String']['output']; + tags?: Maybe>>; tauAlphaX: Scalars['String']['output']; tauAlphaY: Scalars['String']['output']; tauBetaX: Scalars['String']['output']; tauBetaY: Scalars['String']['output']; + /** + * All tokens of the pool. If it is a nested pool, the nested pool is expanded with its own tokens again. + * @deprecated Use poolTokens instead + */ tokens: Array; type: GqlPoolType; u: Scalars['String']['output']; userBalance?: Maybe; v: Scalars['String']['output']; + /** @deprecated use protocolVersion instead */ vaultVersion: Scalars['Int']['output']; version: Scalars['Int']['output']; w: Scalars['String']['output']; + /** @deprecated Removed without replacement */ withdrawConfig: GqlPoolWithdrawConfig; z: Scalars['String']['output']; }; @@ -592,6 +769,7 @@ export type GqlPoolLiquidityBootstrapping = GqlPoolBase & { __typename?: 'GqlPoolLiquidityBootstrapping'; address: Scalars['Bytes']['output']; allTokens: Array; + categories?: Maybe>>; chain: GqlChain; createTime: Scalars['Int']['output']; decimals: Scalars['Int']['output']; @@ -599,18 +777,27 @@ export type GqlPoolLiquidityBootstrapping = GqlPoolBase & { dynamicData: GqlPoolDynamicData; factory?: Maybe; id: Scalars['ID']['output']; + /** @deprecated Removed without replacement */ investConfig: GqlPoolInvestConfig; name: Scalars['String']['output']; nestingType: GqlPoolNestingType; owner: Scalars['Bytes']['output']; poolTokens: Array; + protocolVersion: Scalars['Int']['output']; staking?: Maybe; symbol: Scalars['String']['output']; + tags?: Maybe>>; + /** + * All tokens of the pool. If it is a nested pool, the nested pool is expanded with its own tokens again. + * @deprecated Use poolTokens instead + */ tokens: Array; type: GqlPoolType; userBalance?: Maybe; + /** @deprecated use protocolVersion instead */ vaultVersion: Scalars['Int']['output']; version: Scalars['Int']['output']; + /** @deprecated Removed without replacement */ withdrawConfig: GqlPoolWithdrawConfig; }; @@ -619,6 +806,7 @@ export type GqlPoolMetaStable = GqlPoolBase & { address: Scalars['Bytes']['output']; allTokens: Array; amp: Scalars['BigInt']['output']; + categories?: Maybe>>; chain: GqlChain; createTime: Scalars['Int']['output']; decimals: Scalars['Int']['output']; @@ -626,17 +814,23 @@ export type GqlPoolMetaStable = GqlPoolBase & { dynamicData: GqlPoolDynamicData; factory?: Maybe; id: Scalars['ID']['output']; + /** @deprecated Removed without replacement */ investConfig: GqlPoolInvestConfig; name: Scalars['String']['output']; owner: Scalars['Bytes']['output']; poolTokens: Array; + protocolVersion: Scalars['Int']['output']; staking?: Maybe; symbol: Scalars['String']['output']; + tags?: Maybe>>; + /** @deprecated Use poolTokens instead */ tokens: Array; type: GqlPoolType; userBalance?: Maybe; + /** @deprecated use protocolVersion instead */ vaultVersion: Scalars['Int']['output']; version: Scalars['Int']['output']; + /** @deprecated Removed without replacement */ withdrawConfig: GqlPoolWithdrawConfig; }; @@ -647,38 +841,66 @@ export type GqlPoolMinimal = { address: Scalars['Bytes']['output']; /** Returns all pool tokens, including any nested tokens and phantom BPTs */ allTokens: Array; + /** List of categories assigned by the team based on external factors */ + categories?: Maybe>>; /** The chain on which the pool is deployed */ chain: GqlChain; /** The timestamp the pool was created. */ createTime: Scalars['Int']['output']; /** The decimals of the BPT, usually 18 */ decimals: Scalars['Int']['output']; - /** Only returns main tokens, also known as leave tokens. Wont return any nested BPTs. Used for displaying the tokens that the pool consists of. */ + /** Only returns main or underlying tokens, also known as leave tokens. Wont return any nested BPTs. Used for displaying the tokens that the pool consists of. */ displayTokens: Array; /** Dynamic data such as token balances, swap fees or volume */ dynamicData: GqlPoolDynamicData; /** The factory contract address from which the pool was created. */ factory?: Maybe; - /** The pool id. This is equal to the address for vaultVersion 3 pools */ + /** Whether at least one token in this pool is considered an ERC4626 token. */ + hasErc4626: Scalars['Boolean']['output']; + /** Hook assigned to a pool */ + hook?: Maybe; + /** The pool id. This is equal to the address for protocolVersion 3 pools */ id: Scalars['ID']['output']; + /** Pool is receiving rewards when liquidity tokens are staked */ + incentivized: Scalars['Boolean']['output']; /** The name of the pool as per contract */ name: Scalars['String']['output']; /** The wallet address of the owner of the pool. Pool owners can set certain properties like swapFees or AMP. */ owner?: Maybe; + /** The protocol version on which the pool is deployed, 1, 2 or 3 */ + protocolVersion: Scalars['Int']['output']; /** Staking options of this pool which emit additional rewards */ staking?: Maybe; /** The token symbol of the pool as per contract */ symbol: Scalars['String']['output']; + /** List of tags assigned by the team based on external factors */ + tags?: Maybe>>; /** The pool type, such as weighted, stable, etc. */ type: GqlPoolType; /** If a user address was provided in the query, the user balance is populated here */ userBalance?: Maybe; - /** The vault version on which the pool is deployed, 2 or 3 */ + /** + * The vault version on which the pool is deployed, 2 or 3 + * @deprecated use protocolVersion instead + */ vaultVersion: Scalars['Int']['output']; /** The version of the pool type. */ version: Scalars['Int']['output']; }; +/** Result of the poolReloadPools mutation */ +export type GqlPoolMutationResult = { + __typename?: 'GqlPoolMutationResult'; + /** The chain that was reloaded. */ + chain: GqlChain; + /** The error message */ + error?: Maybe; + /** Whether it was successful or not. */ + success: Scalars['Boolean']['output']; + /** The type of pools that were reloaded. */ + type: Scalars['String']['output']; +}; + export type GqlPoolNestedUnion = GqlPoolComposableStableNested; export type GqlPoolNestingType = @@ -710,10 +932,12 @@ export type GqlPoolSnapshot = { id: Scalars['ID']['output']; poolId: Scalars['String']['output']; sharePrice: Scalars['String']['output']; + surplus24h: Scalars['String']['output']; swapsCount: Scalars['String']['output']; timestamp: Scalars['Int']['output']; totalLiquidity: Scalars['String']['output']; totalShares: Scalars['String']['output']; + totalSurplus: Scalars['String']['output']; totalSwapFee: Scalars['String']['output']; totalSwapVolume: Scalars['String']['output']; volume24h: Scalars['String']['output']; @@ -732,6 +956,7 @@ export type GqlPoolStable = GqlPoolBase & { address: Scalars['Bytes']['output']; allTokens: Array; amp: Scalars['BigInt']['output']; + categories?: Maybe>>; chain: GqlChain; createTime: Scalars['Int']['output']; decimals: Scalars['Int']['output']; @@ -739,17 +964,23 @@ export type GqlPoolStable = GqlPoolBase & { dynamicData: GqlPoolDynamicData; factory?: Maybe; id: Scalars['ID']['output']; + /** @deprecated Removed without replacement */ investConfig: GqlPoolInvestConfig; name: Scalars['String']['output']; owner: Scalars['Bytes']['output']; poolTokens: Array; + protocolVersion: Scalars['Int']['output']; staking?: Maybe; symbol: Scalars['String']['output']; + tags?: Maybe>>; + /** @deprecated Use poolTokens instead */ tokens: Array; type: GqlPoolType; userBalance?: Maybe; + /** @deprecated use protocolVersion instead */ vaultVersion: Scalars['Int']['output']; version: Scalars['Int']['output']; + /** @deprecated Removed without replacement */ withdrawConfig: GqlPoolWithdrawConfig; }; @@ -766,12 +997,23 @@ export type GqlPoolStableComposablePoolData = { export type GqlPoolStaking = { __typename?: 'GqlPoolStaking'; address: Scalars['String']['output']; + aura?: Maybe; chain: GqlChain; farm?: Maybe; gauge?: Maybe; id: Scalars['ID']['output']; reliquary?: Maybe; type: GqlPoolStakingType; + vebal?: Maybe; +}; + +export type GqlPoolStakingAura = { + __typename?: 'GqlPoolStakingAura'; + apr: Scalars['Float']['output']; + auraPoolAddress: Scalars['String']['output']; + auraPoolId: Scalars['String']['output']; + id: Scalars['ID']['output']; + isShutdown: Scalars['Boolean']['output']; }; export type GqlPoolStakingFarmRewarder = { @@ -842,12 +1084,20 @@ export type GqlPoolStakingReliquaryFarmLevel = { }; export type GqlPoolStakingType = + | 'AURA' | 'FRESH_BEETS' | 'GAUGE' | 'MASTER_CHEF' | 'RELIQUARY' + | 'VEBAL' | '%future added value'; +export type GqlPoolStakingVebal = { + __typename?: 'GqlPoolStakingVebal'; + id: Scalars['ID']['output']; + vebalAddress: Scalars['String']['output']; +}; + export type GqlPoolSwap = { __typename?: 'GqlPoolSwap'; chain: GqlChain; @@ -863,21 +1113,75 @@ export type GqlPoolSwap = { valueUSD: Scalars['Float']['output']; }; +/** Represents an event that occurs when a swap is made in a pool using the CowAmm protocol. */ +export type GqlPoolSwapEventCowAmm = GqlPoolEvent & { + __typename?: 'GqlPoolSwapEventCowAmm'; + /** The block number of the event. */ + blockNumber: Scalars['Int']['output']; + /** The block timestamp of the event. */ + blockTimestamp: Scalars['Int']['output']; + /** The chain on which the event occurred. */ + chain: GqlChain; + /** The fee that this swap generated. */ + fee: GqlPoolEventAmount; + /** The unique identifier of the event. */ + id: Scalars['ID']['output']; + /** The log index of the event. */ + logIndex: Scalars['Int']['output']; + /** The pool ID associated with the event. */ + poolId: Scalars['String']['output']; + /** The sender of the event. */ + sender: Scalars['String']['output']; + /** The surplus generated by the swap. */ + surplus: GqlPoolEventAmount; + /** The timestamp of the event. */ + timestamp: Scalars['Int']['output']; + /** The token that was swapped in the event. */ + tokenIn: GqlPoolEventAmount; + /** The token that was swapped out in the event. */ + tokenOut: GqlPoolEventAmount; + /** The transaction hash of the event. */ + tx: Scalars['String']['output']; + /** The type of the event. */ + type: GqlPoolEventType; + /** The user address associated with the event. */ + userAddress: Scalars['String']['output']; + /** The value of the event in USD. */ + valueUSD: Scalars['Float']['output']; +}; + +/** Represents an event that occurs when a swap is made in a pool. */ export type GqlPoolSwapEventV3 = GqlPoolEvent & { __typename?: 'GqlPoolSwapEventV3'; + /** The block number of the event. */ blockNumber: Scalars['Int']['output']; + /** The block timestamp of the event. */ blockTimestamp: Scalars['Int']['output']; + /** The chain on which the event occurred. */ chain: GqlChain; + /** The fee that this swap generated. */ + fee: GqlPoolEventAmount; + /** The unique identifier of the event. */ id: Scalars['ID']['output']; + /** The log index of the event. */ logIndex: Scalars['Int']['output']; + /** The pool ID associated with the event. */ poolId: Scalars['String']['output']; + /** The sender of the event. */ sender: Scalars['String']['output']; + /** The timestamp of the event. */ timestamp: Scalars['Int']['output']; + /** The token that was swapped in the event. */ tokenIn: GqlPoolEventAmount; + /** The token that was swapped out in the event. */ tokenOut: GqlPoolEventAmount; + /** The transaction hash of the event. */ tx: Scalars['String']['output']; + /** The type of the event. */ type: GqlPoolEventType; + /** The user address associated with the event. */ userAddress: Scalars['String']['output']; + /** The value of the event in USD. */ valueUSD: Scalars['Float']['output']; }; @@ -940,19 +1244,45 @@ export type GqlPoolTokenComposableStable = GqlPoolTokenBase & { export type GqlPoolTokenComposableStableNestedUnion = GqlPoolToken; +/** + * All info on the pool token. It will also include the nested pool if the token is a BPT. It will only support 1 level of nesting. + * A second (unsupported) level of nesting is shown by having hasNestedPool = true but nestedPool = null. + */ export type GqlPoolTokenDetail = { __typename?: 'GqlPoolTokenDetail'; + /** Address of the pool token. */ address: Scalars['String']['output']; + /** Balance of the pool token inside the pool. */ balance: Scalars['BigDecimal']['output']; + /** USD Balance of the pool token. */ + balanceUSD: Scalars['BigDecimal']['output']; + /** Decimals of the pool token. */ decimals: Scalars['Int']['output']; + /** Indicates whether this token is a BPT and therefor has a nested pool. */ hasNestedPool: Scalars['Boolean']['output']; + /** Id of the token. A combination of pool id and token address. */ id: Scalars['ID']['output']; + /** Index of the pool token in the pool as returned by the vault. */ index: Scalars['Int']['output']; + /** Whether the token is in the allow list. */ + isAllowed: Scalars['Boolean']['output']; + /** Whether the token is considered an ERC4626 token. */ + isErc4626: Scalars['Boolean']['output']; + /** Name of the pool token. */ name: Scalars['String']['output']; + /** Additional data for the nested pool if the token is a BPT. Null otherwise. */ nestedPool?: Maybe; + /** If it is an appreciating token, it shows the current price rate. 1 otherwise. */ priceRate: Scalars['BigDecimal']['output']; + /** The address of the price rate provider. */ priceRateProvider?: Maybe; + /** Additional data for the price rate provider, such as reviews or warnings. */ + priceRateProviderData?: Maybe; + /** Symbol of the pool token. */ symbol: Scalars['String']['output']; + /** If it is an Erc4262, this will be the underlying token if present in the API. */ + underlyingToken?: Maybe; + /** The weight of the token in the pool if it is a weighted pool, null otherwise */ weight?: Maybe; }; @@ -971,6 +1301,7 @@ export type GqlPoolTokenExpanded = { address: Scalars['String']['output']; decimals: Scalars['Int']['output']; id: Scalars['ID']['output']; + isErc4626: Scalars['Boolean']['output']; isMainToken: Scalars['Boolean']['output']; isNested: Scalars['Boolean']['output']; isPhantomBpt: Scalars['Boolean']['output']; @@ -984,6 +1315,7 @@ export type GqlPoolTokenUnion = GqlPoolToken | GqlPoolTokenComposableStable; /** Supported pool types */ export type GqlPoolType = | 'COMPOSABLE_STABLE' + | 'COW_AMM' | 'ELEMENT' | 'FX' | 'GYRO' @@ -1003,10 +1335,8 @@ export type GqlPoolUnion = GqlPoolComposableStable | GqlPoolElement | GqlPoolFx /** If a user address was provided in the query, the user balance is populated here */ export type GqlPoolUserBalance = { __typename?: 'GqlPoolUserBalance'; - /** The staked balance in either a gauge or farm as float. */ - stakedBalance: Scalars['AmountHumanReadable']['output']; - /** The staked balance in either a gauge or farm in USD as float. */ - stakedBalanceUsd: Scalars['Float']['output']; + /** The staked BPT balances of the user. */ + stakedBalances: Array; /** Total balance (wallet + staked) as float */ totalBalance: Scalars['AmountHumanReadable']['output']; /** Total balance (wallet + staked) in USD as float */ @@ -1027,6 +1357,7 @@ export type GqlPoolWeighted = GqlPoolBase & { __typename?: 'GqlPoolWeighted'; address: Scalars['Bytes']['output']; allTokens: Array; + categories?: Maybe>>; chain: GqlChain; createTime: Scalars['Int']['output']; decimals: Scalars['Int']['output']; @@ -1034,19 +1365,27 @@ export type GqlPoolWeighted = GqlPoolBase & { dynamicData: GqlPoolDynamicData; factory?: Maybe; id: Scalars['ID']['output']; + /** @deprecated Removed without replacement */ investConfig: GqlPoolInvestConfig; name: Scalars['String']['output']; nestingType: GqlPoolNestingType; owner: Scalars['Bytes']['output']; poolTokens: Array; + protocolVersion: Scalars['Int']['output']; staking?: Maybe; symbol: Scalars['String']['output']; - /** All tokens of the pool. If it is a nested pool, the nested pool is expanded with its own tokens again. */ + tags?: Maybe>>; + /** + * All tokens of the pool. If it is a nested pool, the nested pool is expanded with its own tokens again. + * @deprecated Use poolTokens instead + */ tokens: Array; type: GqlPoolType; userBalance?: Maybe; + /** @deprecated use protocolVersion instead */ vaultVersion: Scalars['Int']['output']; version: Scalars['Int']['output']; + /** @deprecated Removed without replacement */ withdrawConfig: GqlPoolWithdrawConfig; }; @@ -1073,6 +1412,36 @@ export type GqlPriceImpact = { priceImpact?: Maybe; }; +/** Represents the data of a price rate provider */ +export type GqlPriceRateProviderData = { + __typename?: 'GqlPriceRateProviderData'; + /** The address of the price rate provider */ + address: Scalars['String']['output']; + /** The factory used to create the price rate provider, if applicable */ + factory?: Maybe; + /** The name of the price rate provider */ + name?: Maybe; + /** The filename of the review of the price rate provider */ + reviewFile?: Maybe; + /** Indicates if the price rate provider has been reviewed */ + reviewed: Scalars['Boolean']['output']; + /** A summary of the price rate provider, usually just says safe or unsafe */ + summary?: Maybe; + /** Upgradeable components of the price rate provider */ + upgradeableComponents?: Maybe>>; + /** Warnings associated with the price rate provider */ + warnings?: Maybe>; +}; + +/** Represents an upgradeable component of a price rate provider */ +export type GqlPriceRateProviderUpgradeableComponent = { + __typename?: 'GqlPriceRateProviderUpgradeableComponent'; + /** The entry point / proxy of the upgradeable component */ + entryPoint: Scalars['String']['output']; + /** Indicates if the implementation of the component has been reviewed */ + implementationReviewed: Scalars['String']['output']; +}; + export type GqlProtocolMetricsAggregated = { __typename?: 'GqlProtocolMetricsAggregated'; chains: Array; @@ -1252,6 +1621,8 @@ export type GqlSorGetSwapPaths = { paths: Array; /** Price impact of the path */ priceImpact: GqlPriceImpact; + /** The version of the protocol these paths are from */ + protocolVersion: Scalars['Int']['output']; /** The return amount in human form. Return amount is either tokenOutAmount (if swapType is exactIn) or tokenInAmount (if swapType is exactOut) */ returnAmount: Scalars['AmountHumanReadable']['output']; /** The return amount in a raw form */ @@ -1276,7 +1647,10 @@ export type GqlSorGetSwapPaths = { tokenOut: Scalars['String']['output']; /** The amount of tokenOut in human form */ tokenOutAmount: Scalars['AmountHumanReadable']['output']; - /** The version of the vault these paths are from */ + /** + * The version of the vault these paths are from + * @deprecated Use protocolVersion instead + */ vaultVersion: Scalars['Int']['output']; }; @@ -1308,13 +1682,20 @@ export type GqlSorPath = { __typename?: 'GqlSorPath'; /** Input amount of this path in scaled form */ inputAmountRaw: Scalars['String']['output']; + /** A sorted list of booleans that indicate if the respective pool is a buffer */ + isBuffer: Array>; /** Output amount of this path in scaled form */ outputAmountRaw: Scalars['String']['output']; /** A sorted list of pool ids that are used in this path */ pools: Array>; + /** The version of the protocol these paths are from */ + protocolVersion: Scalars['Int']['output']; /** A sorted list of tokens that are ussed in this path */ tokens: Array>; - /** Vault version of this path. */ + /** + * Vault version of this path. + * @deprecated Use protocolVersion instead + */ vaultVersion: Scalars['Int']['output']; }; @@ -1391,21 +1772,44 @@ export type GqlSwapCallDataInput = { slippagePercentage: Scalars['String']['input']; }; +/** Represents a token */ export type GqlToken = { __typename?: 'GqlToken'; + /** The address of the token */ address: Scalars['String']['output']; + /** The chain of the token */ chain: GqlChain; + /** The chain ID of the token */ chainId: Scalars['Int']['output']; + /** The coingecko ID for this token, if present */ + coingeckoId?: Maybe; + /** The number of decimal places for the token */ decimals: Scalars['Int']['output']; + /** The description of the token */ description?: Maybe; + /** The Discord URL of the token */ discordUrl?: Maybe; + /** Whether the token is considered an ERC4626 token. */ + isErc4626: Scalars['Boolean']['output']; + /** The logo URI of the token */ logoURI?: Maybe; + /** The name of the token */ name: Scalars['String']['output']; + /** The rate provider data for the token */ + priceRateProviderData?: Maybe; + /** The priority of the token, can be used for sorting. */ priority: Scalars['Int']['output']; + /** The rate provider data for the token */ + rateProviderData?: Maybe; + /** The symbol of the token */ symbol: Scalars['String']['output']; + /** The Telegram URL of the token */ telegramUrl?: Maybe; + /** Indicates if the token is tradable */ tradable: Scalars['Boolean']['output']; + /** The Twitter username of the token */ twitterUsername?: Maybe; + /** The website URL of the token */ websiteUrl?: Maybe; }; @@ -1443,25 +1847,52 @@ export type GqlTokenData = { websiteUrl?: Maybe; }; +/** Represents additional data for a token */ export type GqlTokenDynamicData = { __typename?: 'GqlTokenDynamicData'; + /** The all-time high price of the token */ ath: Scalars['Float']['output']; + /** The all-time low price of the token */ atl: Scalars['Float']['output']; + /** The fully diluted valuation of the token */ fdv?: Maybe; + /** The highest price in the last 24 hours */ high24h: Scalars['Float']['output']; + /** The unique identifier of the dynamic data */ id: Scalars['String']['output']; + /** The lowest price in the last 24 hours */ low24h: Scalars['Float']['output']; + /** The market capitalization of the token */ marketCap?: Maybe; + /** The current price of the token */ price: Scalars['Float']['output']; + /** The price change in the last 24 hours */ priceChange24h: Scalars['Float']['output']; + /** The percentage price change in the last 7 days */ priceChangePercent7d?: Maybe; + /** The percentage price change in the last 14 days */ priceChangePercent14d?: Maybe; + /** The percentage price change in the last 24 hours */ priceChangePercent24h: Scalars['Float']['output']; + /** The percentage price change in the last 30 days */ priceChangePercent30d?: Maybe; + /** The address of the token */ tokenAddress: Scalars['String']['output']; + /** The timestamp when the data was last updated */ updatedAt: Scalars['String']['output']; }; +/** Result of the poolReloadPools mutation */ +export type GqlTokenMutationResult = { + __typename?: 'GqlTokenMutationResult'; + /** The chain that was reloaded. */ + chain: GqlChain; + /** The error message */ + error?: Maybe; + /** Whether it was successful or not. */ + success: Scalars['Boolean']['output']; +}; + export type GqlTokenPrice = { __typename?: 'GqlTokenPrice'; address: Scalars['String']['output']; @@ -1503,46 +1934,119 @@ export type GqlUserPoolBalance = { walletBalance: Scalars['AmountHumanReadable']['output']; }; +export type GqlUserStakedBalance = { + __typename?: 'GqlUserStakedBalance'; + /** The staked BPT balance as float. */ + balance: Scalars['AmountHumanReadable']['output']; + /** The steaked BPT balance in USD as float. */ + balanceUsd: Scalars['Float']['output']; + /** The id of the staking to match with GqlPoolStaking.id. */ + stakingId: Scalars['String']['output']; + /** The staking type (Gauge, farm, aura, etc.) in which this balance is staked. */ + stakingType: GqlPoolStakingType; +}; + export type GqlUserSwapVolumeFilter = { poolIdIn?: InputMaybe>; tokenInIn?: InputMaybe>; tokenOutIn?: InputMaybe>; }; +export type GqlVeBalBalance = { + __typename?: 'GqlVeBalBalance'; + balance: Scalars['AmountHumanReadable']['output']; + chain: GqlChain; + locked: Scalars['AmountHumanReadable']['output']; + lockedUsd: Scalars['AmountHumanReadable']['output']; +}; + export type GqlVeBalUserData = { __typename?: 'GqlVeBalUserData'; balance: Scalars['AmountHumanReadable']['output']; + locked: Scalars['AmountHumanReadable']['output']; + lockedUsd: Scalars['AmountHumanReadable']['output']; rank?: Maybe; }; +/** The Gauge that can be voted on through veBAL and that will ultimately receive the rewards. */ export type GqlVotingGauge = { __typename?: 'GqlVotingGauge'; + /** The timestamp the gauge was added. */ addedTimestamp?: Maybe; + /** The address of the root gauge on Ethereum mainnet. */ address: Scalars['Bytes']['output']; + /** The address of the child gauge on the specific chain. */ childGaugeAddress?: Maybe; + /** Whether the gauge is killed or not. */ isKilled: Scalars['Boolean']['output']; + /** The relative weight the gauge received this epoch (not more than 1.0). */ + relativeWeight: Scalars['String']['output']; + /** The relative weight cap. 1.0 for uncapped. */ relativeWeightCap?: Maybe; }; +/** A token inside of a pool with a voting gauge. */ export type GqlVotingGaugeToken = { __typename?: 'GqlVotingGaugeToken'; + /** The address of the token. */ address: Scalars['String']['output']; + /** The URL to the token logo. */ logoURI: Scalars['String']['output']; + /** The symbol of the token. */ symbol: Scalars['String']['output']; + /** If it is a weighted pool, the weigh of the token is shown here in %. 0.5 = 50%. */ weight?: Maybe; }; +/** The pool that can be voted on through veBAL */ export type GqlVotingPool = { __typename?: 'GqlVotingPool'; + /** The address of the pool. */ address: Scalars['Bytes']['output']; + /** The chain this pool is on. */ chain: GqlChain; + /** The gauge that is connected to the pool and that will receive the rewards. */ gauge: GqlVotingGauge; + /** Pool ID */ id: Scalars['ID']['output']; + /** The symbol of the pool. */ symbol: Scalars['String']['output']; + /** The tokens inside the pool. */ tokens: Array; + /** The type of the pool. */ type: GqlPoolType; }; +/** Hook data */ +export type Hook = { + __typename?: 'Hook'; + address: Scalars['String']['output']; + chain: GqlChain; + /** Data points changing over time */ + dynamicData?: Maybe; + /** True when hook can change the amounts send to the vault. Necessary to deduct the fees. */ + enableHookAdjustedAmounts: Scalars['Boolean']['output']; + /** List of pools using the hook */ + poolsIds?: Maybe>>; + shouldCallAfterAddLiquidity: Scalars['Boolean']['output']; + shouldCallAfterInitialize: Scalars['Boolean']['output']; + shouldCallAfterRemoveLiquidity: Scalars['Boolean']['output']; + shouldCallAfterSwap: Scalars['Boolean']['output']; + shouldCallBeforeAddLiquidity: Scalars['Boolean']['output']; + shouldCallBeforeInitialize: Scalars['Boolean']['output']; + shouldCallBeforeRemoveLiquidity: Scalars['Boolean']['output']; + shouldCallBeforeSwap: Scalars['Boolean']['output']; + shouldCallComputeDynamicSwapFee: Scalars['Boolean']['output']; +}; + +/** Collection of hook specific data. Percentage format is 0.01 -> 0.01%. */ +export type HookData = { + __typename?: 'HookData'; + addLiquidityFeePercentage?: Maybe; + removeLiquidityFeePercentage?: Maybe; + swapFeePercentage?: Maybe; +}; + export type Mutation = { __typename?: 'Mutation'; beetsPoolLoadReliquarySnapshotsForAllFarms: Scalars['String']['output']; @@ -1559,7 +2063,9 @@ export type Mutation = { poolLoadSnapshotsForPools: Scalars['String']['output']; poolReloadAllPoolAprs: Scalars['String']['output']; poolReloadAllTokenNestedPoolIds: Scalars['String']['output']; + poolReloadPools: Array; poolReloadStakingForAllPools: Scalars['String']['output']; + poolSyncAllCowSnapshots: Array; poolSyncAllPoolsFromSubgraph: Array; poolSyncLatestSnapshotsForAllPools: Scalars['String']['output']; poolSyncNewPoolsFromSubgraph: Array; @@ -1579,6 +2085,7 @@ export type Mutation = { sftmxSyncWithdrawalRequests: Scalars['String']['output']; tokenDeleteTokenType: Scalars['String']['output']; tokenReloadAllTokenTypes: Scalars['String']['output']; + tokenReloadErc4626Tokens: Array; tokenReloadTokenPrices?: Maybe; tokenSyncLatestFxPrices: Scalars['String']['output']; tokenSyncTokenDefinitions: Scalars['String']['output']; @@ -1625,13 +2132,23 @@ export type MutationPoolReloadAllPoolAprsArgs = { }; +export type MutationPoolReloadPoolsArgs = { + chains: Array; +}; + + export type MutationPoolReloadStakingForAllPoolsArgs = { stakingTypes: Array; }; +export type MutationPoolSyncAllCowSnapshotsArgs = { + chains: Array; +}; + + export type MutationPoolSyncLatestSnapshotsForAllPoolsArgs = { - daysToSync?: InputMaybe; + chain: GqlChain; }; @@ -1651,6 +2168,11 @@ export type MutationTokenDeleteTokenTypeArgs = { }; +export type MutationTokenReloadErc4626TokensArgs = { + chains: Array; +}; + + export type MutationTokenReloadTokenPricesArgs = { chains: Array; }; @@ -1684,18 +2206,29 @@ export type Query = { blocksGetBlocksPerSecond: Scalars['Float']['output']; blocksGetBlocksPerYear: Scalars['Float']['output']; contentGetNewsItems: Array; + /** Returns list of hooks. */ + hooks?: Maybe>; latestSyncedBlocks: GqlLatestSyncedBlocks; /** Getting swap, add and remove events with paging */ poolEvents: Array; - /** Will de deprecated in favor of poolEvents */ + /** + * Will de deprecated in favor of poolEvents + * @deprecated Use poolEvents instead + */ poolGetBatchSwaps: Array; /** Getting swap, add and remove events with range */ poolGetEvents: Array; - /** Will de deprecated in favor of poolGetFeaturedPools */ + /** + * Will de deprecated in favor of poolGetFeaturedPools + * @deprecated Use poolGetFeaturedPools instead + */ poolGetFeaturedPoolGroups: Array; /** Returns the list of featured pools for chains */ poolGetFeaturedPools: Array; - /** Will de deprecated in favor of poolEvents */ + /** + * Will de deprecated in favor of poolEvents + * @deprecated Use poolEvents instead + */ poolGetJoinExits: Array; /** Returns one pool. If a user address is provided, the user balances for the given pool will also be returned. */ poolGetPool: GqlPoolBase; @@ -1705,7 +2238,10 @@ export type Query = { poolGetPoolsCount: Scalars['Int']['output']; /** Gets all the snapshots for a given pool on a chain for a certain range */ poolGetSnapshots: Array; - /** Will de deprecated in favor of poolEvents */ + /** + * Will de deprecated in favor of poolEvents + * @deprecated Use poolEvents instead + */ poolGetSwaps: Array; protocolMetricsAggregated: GqlProtocolMetricsAggregated; protocolMetricsChain: GqlProtocolMetricsChain; @@ -1719,16 +2255,42 @@ export type Query = { sorGetSwapPaths: GqlSorGetSwapPaths; /** Get swap quote from the SOR, queries both the old and new SOR */ sorGetSwaps: GqlSorGetSwapsResponse; + /** + * Returns the candlestick chart data for a token for a given range. + * @deprecated Use tokenGetHistoricalPrices instead + */ tokenGetCandlestickChartData: Array; + /** Returns all current prices for allowed tokens for a given chain or chains */ tokenGetCurrentPrices: Array; + /** Returns the historical prices for a given set of tokens for a given chain and range */ tokenGetHistoricalPrices: Array; + /** + * DEPRECATED: Returns pricing data for a given token for a given range + * @deprecated Use tokenGetHistoricalPrices instead + */ tokenGetPriceChartData: Array; + /** + * Returns the price of either BAL or BEETS depending on chain + * @deprecated Use tokenGetTokensDynamicData instead + */ tokenGetProtocolTokenPrice: Scalars['AmountHumanReadable']['output']; + /** Returns the price of a token priced in another token for a given range. */ tokenGetRelativePriceChartData: Array; + /** + * Returns meta data for a given token such as description, website, etc. + * @deprecated Use tokenGetTokens instead + */ tokenGetTokenData?: Maybe; + /** Returns dynamic data of a token such as price, market cap, etc. */ tokenGetTokenDynamicData?: Maybe; + /** Returns all allowed tokens for a given chain or chains */ tokenGetTokens: Array; + /** + * Returns meta data for a given set of tokens such as description, website, etc. + * @deprecated Use tokenGetTokens instead + */ tokenGetTokensData: Array; + /** Returns dynamic data of a set of tokens such as price, market cap, etc. */ tokenGetTokensDynamicData: Array; userGetFbeetsBalance: GqlUserFbeetsBalance; userGetPoolBalances: Array; @@ -1740,6 +2302,8 @@ export type Query = { veBalGetTotalSupply: Scalars['AmountHumanReadable']['output']; veBalGetUser: GqlVeBalUserData; veBalGetUserBalance: Scalars['AmountHumanReadable']['output']; + veBalGetUserBalances: Array; + /** Returns all pools with veBAL gauges that can be voted on. */ veBalGetVotingList: Array; }; @@ -1755,10 +2319,15 @@ export type QueryContentGetNewsItemsArgs = { }; +export type QueryHooksArgs = { + chain?: InputMaybe; +}; + + export type QueryPoolEventsArgs = { first?: InputMaybe; skip?: InputMaybe; - where: GqlPoolEventsFilter; + where?: InputMaybe; }; @@ -1864,7 +2433,7 @@ export type QuerySorGetSwapPathsArgs = { swapType: GqlSorSwapType; tokenIn: Scalars['String']['input']; tokenOut: Scalars['String']['input']; - useVaultVersion?: InputMaybe; + useProtocolVersion?: InputMaybe; }; @@ -1974,6 +2543,29 @@ export type QueryUserGetSwapsArgs = { skip?: InputMaybe; }; + +export type QueryVeBalGetTotalSupplyArgs = { + chain?: InputMaybe; +}; + + +export type QueryVeBalGetUserArgs = { + address: Scalars['String']['input']; + chain?: InputMaybe; +}; + + +export type QueryVeBalGetUserBalanceArgs = { + address?: InputMaybe; + chain?: InputMaybe; +}; + + +export type QueryVeBalGetUserBalancesArgs = { + address: Scalars['String']['input']; + chains?: InputMaybe>; +}; + export type Token = { __typename?: 'Token'; address: Scalars['String']['output']; diff --git a/packages/gql/src/balancer-api-v3/__generated__/Avalanche.server.ts b/packages/gql/src/balancer-api-v3/__generated__/Avalanche.server.ts index 5df748271..3527d6e6a 100644 --- a/packages/gql/src/balancer-api-v3/__generated__/Avalanche.server.ts +++ b/packages/gql/src/balancer-api-v3/__generated__/Avalanche.server.ts @@ -44,8 +44,10 @@ export type GqlChain = | 'AVALANCHE' | 'BASE' | 'FANTOM' + | 'FRAXTAL' | 'GNOSIS' | 'MAINNET' + | 'MODE' | 'OPTIMISM' | 'POLYGON' | 'SEPOLIA' @@ -128,41 +130,73 @@ export type GqlLatestSyncedBlocks = { userWalletSyncBlock: Scalars['BigInt']['output']; }; +/** All info on the nested pool if the token is a BPT. It will only support 1 level of nesting. */ export type GqlNestedPool = { __typename?: 'GqlNestedPool'; + /** Address of the pool. */ address: Scalars['Bytes']['output']; + /** Price rate of the Balancer Pool Token (BPT). */ bptPriceRate: Scalars['BigDecimal']['output']; + /** Timestamp of when the pool was created. */ createTime: Scalars['Int']['output']; + /** Address of the factory contract that created the pool, if applicable. */ factory?: Maybe; + /** Unique identifier of the pool. */ id: Scalars['ID']['output']; + /** Name of the pool. */ name: Scalars['String']['output']; + /** Total liquidity of the parent pool in the nested pool in USD. */ nestedLiquidity: Scalars['BigDecimal']['output']; + /** Percentage of the parents pool shares inside the nested pool. */ nestedPercentage: Scalars['BigDecimal']['output']; + /** Number of shares of the parent pool in the nested pool. */ nestedShares: Scalars['BigDecimal']['output']; + /** Address of the pool's owner. */ owner: Scalars['Bytes']['output']; + /** Fee charged for swapping tokens in the pool as %. 0.01 -> 0.01% */ swapFee: Scalars['BigDecimal']['output']; + /** Symbol of the pool. */ symbol: Scalars['String']['output']; + /** List of all tokens in the pool. */ tokens: Array; + /** Total liquidity in the pool in USD. */ totalLiquidity: Scalars['BigDecimal']['output']; + /** Total number of shares in the pool. */ totalShares: Scalars['BigDecimal']['output']; + /** Type of the pool. */ type: GqlPoolType; + /** Version of the pool. */ version: Scalars['Int']['output']; }; +/** Represents an event that occurs when liquidity is added or removed from a pool. */ export type GqlPoolAddRemoveEventV3 = GqlPoolEvent & { __typename?: 'GqlPoolAddRemoveEventV3'; + /** The block number of the event. */ blockNumber: Scalars['Int']['output']; + /** The block timestamp of the event. */ blockTimestamp: Scalars['Int']['output']; + /** The chain on which the event occurred. */ chain: GqlChain; + /** The unique identifier of the event. */ id: Scalars['ID']['output']; + /** The log index of the event. */ logIndex: Scalars['Int']['output']; + /** The pool ID associated with the event. */ poolId: Scalars['String']['output']; + /** The sender of the event. */ sender: Scalars['String']['output']; + /** The timestamp of the event. */ timestamp: Scalars['Int']['output']; + /** The tokens involved in the event. Ordered by poolToken index. */ tokens: Array; + /** The transaction hash of the event. */ tx: Scalars['String']['output']; + /** The type of the event. */ type: GqlPoolEventType; + /** The user address associated with the event. */ userAddress: Scalars['String']['output']; + /** The value of the event in USD. */ valueUSD: Scalars['Float']['output']; }; @@ -176,6 +210,43 @@ export type GqlPoolApr = { thirdPartyApr: GqlPoolAprValue; }; +/** All APRs for a pool */ +export type GqlPoolAprItem = { + __typename?: 'GqlPoolAprItem'; + /** The APR value in % -> 0.2 = 0.2% */ + apr: Scalars['Float']['output']; + /** The id of the APR item */ + id: Scalars['ID']['output']; + /** The title of the APR item, a human readable form */ + title: Scalars['String']['output']; + /** Specific type of this APR */ + type: GqlPoolAprItemType; +}; + +/** Enum representing the different types of the APR in a pool. */ +export type GqlPoolAprItemType = + /** APR that pools earns when BPT is staked on AURA. */ + | 'AURA' + /** Represents the yield from an IB (Interest-Bearing) asset APR in a pool. */ + | 'IB_YIELD' + /** APR in a pool that can be earned through locking, i.e. veBAL */ + | 'LOCKING' + /** Rewards distributed by merkl.xyz */ + | 'MERKL' + /** Represents if the APR items comes from a nested pool. */ + | 'NESTED' + /** Staking reward APR in a pool, i.e. BAL or BEETS. */ + | 'STAKING' + /** APR boost that can be earned, i.e. via veBAL or maBEETS. */ + | 'STAKING_BOOST' + /** Cow AMM specific APR */ + | 'SURPLUS' + /** Represents the swap fee APR in a pool. */ + | 'SWAP_FEE' + /** APR that can be earned thourgh voting, i.e. gauge votes */ + | 'VOTING' + | '%future added value'; + export type GqlPoolAprRange = { __typename?: 'GqlPoolAprRange'; max: Scalars['BigDecimal']['output']; @@ -193,23 +264,34 @@ export type GqlPoolAprValue = GqlPoolAprRange | GqlPoolAprTotal; export type GqlPoolBase = { /** The contract address of the pool. */ address: Scalars['Bytes']['output']; - /** Returns all pool tokens, including any nested tokens and phantom BPTs on one level. */ + /** + * Returns all pool tokens, including any nested tokens and phantom BPTs on one level. + * @deprecated Use poolTokens instead + */ allTokens: Array; + /** List of categories assigned by the team based on external factors */ + categories?: Maybe>>; /** The chain on which the pool is deployed */ chain: GqlChain; /** The timestamp the pool was created. */ createTime: Scalars['Int']['output']; /** The decimals of the BPT, usually 18 */ decimals: Scalars['Int']['output']; - /** Only returns main tokens, also known as leave tokens. Wont return any nested BPTs. Used for displaying the tokens that the pool consists of. */ + /** + * Only returns main tokens, also known as leave tokens. Wont return any nested BPTs. Used for displaying the tokens that the pool consists of. + * @deprecated Use poolTokens instead + */ displayTokens: Array; /** Dynamic data such as token balances, swap fees or volume */ dynamicData: GqlPoolDynamicData; /** The factory contract address from which the pool was created. */ factory?: Maybe; - /** The pool id. This is equal to the address for vaultVersion 3 pools */ + /** The pool id. This is equal to the address for protocolVersion 3 pools */ id: Scalars['ID']['output']; - /** Deprecated */ + /** + * Deprecated + * @deprecated Removed without replacement + */ investConfig: GqlPoolInvestConfig; /** The name of the pool as per contract */ name: Scalars['String']['output']; @@ -217,19 +299,29 @@ export type GqlPoolBase = { owner?: Maybe; /** Returns all pool tokens, including BPTs and nested pools if there are any. Only one nested level deep. */ poolTokens: Array; + /** The protocol version on which the pool is deployed, 1, 2 or 3 */ + protocolVersion: Scalars['Int']['output']; /** Staking options of this pool which emit additional rewards */ staking?: Maybe; /** The token symbol of the pool as per contract */ symbol: Scalars['String']['output']; + /** List of tags assigned by the team based on external factors */ + tags?: Maybe>>; /** The pool type, such as weighted, stable, etc. */ type: GqlPoolType; /** If a user address was provided in the query, the user balance is populated here */ userBalance?: Maybe; - /** The vault version on which the pool is deployed, 2 or 3 */ + /** + * The vault version on which the pool is deployed, 2 or 3 + * @deprecated use protocolVersion instead + */ vaultVersion: Scalars['Int']['output']; /** The version of the pool type. */ version: Scalars['Int']['output']; - /** Deprecated */ + /** + * Deprecated + * @deprecated Removed without replacement + */ withdrawConfig: GqlPoolWithdrawConfig; }; @@ -276,6 +368,7 @@ export type GqlPoolComposableStable = GqlPoolBase & { allTokens: Array; amp: Scalars['BigInt']['output']; bptPriceRate: Scalars['BigDecimal']['output']; + categories?: Maybe>>; chain: GqlChain; createTime: Scalars['Int']['output']; decimals: Scalars['Int']['output']; @@ -283,18 +376,27 @@ export type GqlPoolComposableStable = GqlPoolBase & { dynamicData: GqlPoolDynamicData; factory?: Maybe; id: Scalars['ID']['output']; + /** @deprecated Removed without replacement */ investConfig: GqlPoolInvestConfig; name: Scalars['String']['output']; nestingType: GqlPoolNestingType; owner: Scalars['Bytes']['output']; poolTokens: Array; + protocolVersion: Scalars['Int']['output']; staking?: Maybe; symbol: Scalars['String']['output']; + tags?: Maybe>>; + /** + * All tokens of the pool. If it is a nested pool, the nested pool is expanded with its own tokens again. + * @deprecated Use poolTokens instead + */ tokens: Array; type: GqlPoolType; userBalance?: Maybe; + /** @deprecated use protocolVersion instead */ vaultVersion: Scalars['Int']['output']; version: Scalars['Int']['output']; + /** @deprecated Removed without replacement */ withdrawConfig: GqlPoolWithdrawConfig; }; @@ -303,6 +405,7 @@ export type GqlPoolComposableStableNested = { address: Scalars['Bytes']['output']; amp: Scalars['BigInt']['output']; bptPriceRate: Scalars['BigDecimal']['output']; + categories?: Maybe>>; createTime: Scalars['Int']['output']; factory?: Maybe; id: Scalars['ID']['output']; @@ -311,6 +414,8 @@ export type GqlPoolComposableStableNested = { owner: Scalars['Bytes']['output']; swapFee: Scalars['BigDecimal']['output']; symbol: Scalars['String']['output']; + tags?: Maybe>>; + /** @deprecated Use poolTokens instead */ tokens: Array; totalLiquidity: Scalars['BigDecimal']['output']; totalShares: Scalars['BigDecimal']['output']; @@ -320,7 +425,13 @@ export type GqlPoolComposableStableNested = { export type GqlPoolDynamicData = { __typename?: 'GqlPoolDynamicData'; + /** Protocol and pool creator fees combined */ + aggregateSwapFee: Scalars['BigDecimal']['output']; + /** Protocol and pool creator fees combined */ + aggregateYieldFee: Scalars['BigDecimal']['output']; + /** @deprecated Use aprItems instead */ apr: GqlPoolApr; + aprItems: Array; fees24h: Scalars['BigDecimal']['output']; fees24hAth: Scalars['BigDecimal']['output']; fees24hAthTimestamp: Scalars['Int']['output']; @@ -328,6 +439,7 @@ export type GqlPoolDynamicData = { fees24hAtlTimestamp: Scalars['Int']['output']; fees48h: Scalars['BigDecimal']['output']; holdersCount: Scalars['BigInt']['output']; + /** True for bricked pools */ isInRecoveryMode: Scalars['Boolean']['output']; isPaused: Scalars['Boolean']['output']; lifetimeSwapFees: Scalars['BigDecimal']['output']; @@ -337,6 +449,11 @@ export type GqlPoolDynamicData = { sharePriceAthTimestamp: Scalars['Int']['output']; sharePriceAtl: Scalars['BigDecimal']['output']; sharePriceAtlTimestamp: Scalars['Int']['output']; + /** CowAmm specific, equivalent of swap fees */ + surplus24h: Scalars['BigDecimal']['output']; + /** CowAmm specific, equivalent of swap fees */ + surplus48h: Scalars['BigDecimal']['output']; + /** Disabled for bricked pools */ swapEnabled: Scalars['Boolean']['output']; swapFee: Scalars['BigDecimal']['output']; swapsCount: Scalars['BigInt']['output']; @@ -363,6 +480,7 @@ export type GqlPoolElement = GqlPoolBase & { address: Scalars['Bytes']['output']; allTokens: Array; baseToken: Scalars['Bytes']['output']; + categories?: Maybe>>; chain: GqlChain; createTime: Scalars['Int']['output']; decimals: Scalars['Int']['output']; @@ -370,34 +488,53 @@ export type GqlPoolElement = GqlPoolBase & { dynamicData: GqlPoolDynamicData; factory?: Maybe; id: Scalars['ID']['output']; + /** @deprecated Removed without replacement */ investConfig: GqlPoolInvestConfig; name: Scalars['String']['output']; owner: Scalars['Bytes']['output']; poolTokens: Array; principalToken: Scalars['Bytes']['output']; + protocolVersion: Scalars['Int']['output']; staking?: Maybe; symbol: Scalars['String']['output']; + tags?: Maybe>>; + /** @deprecated Use poolTokens instead */ tokens: Array; type: GqlPoolType; unitSeconds: Scalars['BigInt']['output']; userBalance?: Maybe; + /** @deprecated use protocolVersion instead */ vaultVersion: Scalars['Int']['output']; version: Scalars['Int']['output']; + /** @deprecated Removed without replacement */ withdrawConfig: GqlPoolWithdrawConfig; }; +/** Represents an event that occurs in a pool. */ export type GqlPoolEvent = { + /** The block number of the event. */ blockNumber: Scalars['Int']['output']; + /** The block timestamp of the event. */ blockTimestamp: Scalars['Int']['output']; + /** The chain on which the event occurred. */ chain: GqlChain; + /** The unique identifier of the event. */ id: Scalars['ID']['output']; + /** The log index of the event. */ logIndex: Scalars['Int']['output']; + /** The pool ID associated with the event. */ poolId: Scalars['String']['output']; + /** The sender of the event. */ sender: Scalars['String']['output']; + /** The timestamp of the event. */ timestamp: Scalars['Int']['output']; + /** The transaction hash of the event. */ tx: Scalars['String']['output']; + /** The type of the event. */ type: GqlPoolEventType; + /** The user address associated with the event. */ userAddress: Scalars['String']['output']; + /** The USD value of this event. */ valueUSD: Scalars['Float']['output']; }; @@ -421,11 +558,15 @@ export type GqlPoolEventsDataRange = | '%future added value'; export type GqlPoolEventsFilter = { - chain: GqlChain; - poolId: Scalars['String']['input']; + chainIn?: InputMaybe>>; + poolIdIn?: InputMaybe>>; range?: InputMaybe; typeIn?: InputMaybe>>; userAddress?: InputMaybe; + /** USD value of the event */ + valueUSD_gt?: InputMaybe; + /** USD value of the event */ + valueUSD_gte?: InputMaybe; }; export type GqlPoolFeaturedPool = { @@ -447,8 +588,6 @@ export type GqlPoolFeaturedPoolGroup = { export type GqlPoolFeaturedPoolGroupItem = GqlFeaturePoolGroupItemExternalLink | GqlPoolMinimal; export type GqlPoolFilter = { - categoryIn?: InputMaybe>; - categoryNotIn?: InputMaybe>; chainIn?: InputMaybe>; chainNotIn?: InputMaybe>; createTime?: InputMaybe; @@ -459,15 +598,33 @@ export type GqlPoolFilter = { minTvl?: InputMaybe; poolTypeIn?: InputMaybe>; poolTypeNotIn?: InputMaybe>; + protocolVersionIn?: InputMaybe>; + /** + * For list of tags see: https://github.com/balancer/metadata/blob/main/pools/index.json + * Use uppercase + */ + tagIn?: InputMaybe>; + /** + * For list of tags see: https://github.com/balancer/metadata/blob/main/pools/index.json + * Use uppercase + */ + tagNotIn?: InputMaybe>; tokensIn?: InputMaybe>; tokensNotIn?: InputMaybe>; userAddress?: InputMaybe; - vaultVersionIn?: InputMaybe>; }; export type GqlPoolFilterCategory = | 'BLACK_LISTED' | 'INCENTIVIZED' + | 'LRT' + | 'POINTS' + | 'POINTS_EIGENLAYER' + | 'POINTS_GYRO' + | 'POINTS_KELP' + | 'POINTS_RENZO' + | 'POINTS_SWELL' + | 'SUPERFEST' | '%future added value'; export type GqlPoolFx = GqlPoolBase & { @@ -476,6 +633,7 @@ export type GqlPoolFx = GqlPoolBase & { allTokens: Array; alpha: Scalars['String']['output']; beta: Scalars['String']['output']; + categories?: Maybe>>; chain: GqlChain; createTime: Scalars['Int']['output']; decimals: Scalars['Int']['output']; @@ -485,18 +643,27 @@ export type GqlPoolFx = GqlPoolBase & { epsilon: Scalars['String']['output']; factory?: Maybe; id: Scalars['ID']['output']; + /** @deprecated Removed without replacement */ investConfig: GqlPoolInvestConfig; lambda: Scalars['String']['output']; name: Scalars['String']['output']; owner?: Maybe; poolTokens: Array; + protocolVersion: Scalars['Int']['output']; staking?: Maybe; symbol: Scalars['String']['output']; + tags?: Maybe>>; + /** + * All tokens of the pool. If it is a nested pool, the nested pool is expanded with its own tokens again. + * @deprecated Use poolTokens instead + */ tokens: Array; type: GqlPoolType; userBalance?: Maybe; + /** @deprecated use protocolVersion instead */ vaultVersion: Scalars['Int']['output']; version: Scalars['Int']['output']; + /** @deprecated Removed without replacement */ withdrawConfig: GqlPoolWithdrawConfig; }; @@ -507,6 +674,7 @@ export type GqlPoolGyro = GqlPoolBase & { alpha: Scalars['String']['output']; beta: Scalars['String']['output']; c: Scalars['String']['output']; + categories?: Maybe>>; chain: GqlChain; createTime: Scalars['Int']['output']; dSq: Scalars['String']['output']; @@ -515,30 +683,39 @@ export type GqlPoolGyro = GqlPoolBase & { dynamicData: GqlPoolDynamicData; factory?: Maybe; id: Scalars['ID']['output']; + /** @deprecated Removed without replacement */ investConfig: GqlPoolInvestConfig; lambda: Scalars['String']['output']; name: Scalars['String']['output']; nestingType: GqlPoolNestingType; owner: Scalars['Bytes']['output']; poolTokens: Array; + protocolVersion: Scalars['Int']['output']; root3Alpha: Scalars['String']['output']; s: Scalars['String']['output']; sqrtAlpha: Scalars['String']['output']; sqrtBeta: Scalars['String']['output']; staking?: Maybe; symbol: Scalars['String']['output']; + tags?: Maybe>>; tauAlphaX: Scalars['String']['output']; tauAlphaY: Scalars['String']['output']; tauBetaX: Scalars['String']['output']; tauBetaY: Scalars['String']['output']; + /** + * All tokens of the pool. If it is a nested pool, the nested pool is expanded with its own tokens again. + * @deprecated Use poolTokens instead + */ tokens: Array; type: GqlPoolType; u: Scalars['String']['output']; userBalance?: Maybe; v: Scalars['String']['output']; + /** @deprecated use protocolVersion instead */ vaultVersion: Scalars['Int']['output']; version: Scalars['Int']['output']; w: Scalars['String']['output']; + /** @deprecated Removed without replacement */ withdrawConfig: GqlPoolWithdrawConfig; z: Scalars['String']['output']; }; @@ -590,6 +767,7 @@ export type GqlPoolLiquidityBootstrapping = GqlPoolBase & { __typename?: 'GqlPoolLiquidityBootstrapping'; address: Scalars['Bytes']['output']; allTokens: Array; + categories?: Maybe>>; chain: GqlChain; createTime: Scalars['Int']['output']; decimals: Scalars['Int']['output']; @@ -597,18 +775,27 @@ export type GqlPoolLiquidityBootstrapping = GqlPoolBase & { dynamicData: GqlPoolDynamicData; factory?: Maybe; id: Scalars['ID']['output']; + /** @deprecated Removed without replacement */ investConfig: GqlPoolInvestConfig; name: Scalars['String']['output']; nestingType: GqlPoolNestingType; owner: Scalars['Bytes']['output']; poolTokens: Array; + protocolVersion: Scalars['Int']['output']; staking?: Maybe; symbol: Scalars['String']['output']; + tags?: Maybe>>; + /** + * All tokens of the pool. If it is a nested pool, the nested pool is expanded with its own tokens again. + * @deprecated Use poolTokens instead + */ tokens: Array; type: GqlPoolType; userBalance?: Maybe; + /** @deprecated use protocolVersion instead */ vaultVersion: Scalars['Int']['output']; version: Scalars['Int']['output']; + /** @deprecated Removed without replacement */ withdrawConfig: GqlPoolWithdrawConfig; }; @@ -617,6 +804,7 @@ export type GqlPoolMetaStable = GqlPoolBase & { address: Scalars['Bytes']['output']; allTokens: Array; amp: Scalars['BigInt']['output']; + categories?: Maybe>>; chain: GqlChain; createTime: Scalars['Int']['output']; decimals: Scalars['Int']['output']; @@ -624,17 +812,23 @@ export type GqlPoolMetaStable = GqlPoolBase & { dynamicData: GqlPoolDynamicData; factory?: Maybe; id: Scalars['ID']['output']; + /** @deprecated Removed without replacement */ investConfig: GqlPoolInvestConfig; name: Scalars['String']['output']; owner: Scalars['Bytes']['output']; poolTokens: Array; + protocolVersion: Scalars['Int']['output']; staking?: Maybe; symbol: Scalars['String']['output']; + tags?: Maybe>>; + /** @deprecated Use poolTokens instead */ tokens: Array; type: GqlPoolType; userBalance?: Maybe; + /** @deprecated use protocolVersion instead */ vaultVersion: Scalars['Int']['output']; version: Scalars['Int']['output']; + /** @deprecated Removed without replacement */ withdrawConfig: GqlPoolWithdrawConfig; }; @@ -645,38 +839,66 @@ export type GqlPoolMinimal = { address: Scalars['Bytes']['output']; /** Returns all pool tokens, including any nested tokens and phantom BPTs */ allTokens: Array; + /** List of categories assigned by the team based on external factors */ + categories?: Maybe>>; /** The chain on which the pool is deployed */ chain: GqlChain; /** The timestamp the pool was created. */ createTime: Scalars['Int']['output']; /** The decimals of the BPT, usually 18 */ decimals: Scalars['Int']['output']; - /** Only returns main tokens, also known as leave tokens. Wont return any nested BPTs. Used for displaying the tokens that the pool consists of. */ + /** Only returns main or underlying tokens, also known as leave tokens. Wont return any nested BPTs. Used for displaying the tokens that the pool consists of. */ displayTokens: Array; /** Dynamic data such as token balances, swap fees or volume */ dynamicData: GqlPoolDynamicData; /** The factory contract address from which the pool was created. */ factory?: Maybe; - /** The pool id. This is equal to the address for vaultVersion 3 pools */ + /** Whether at least one token in this pool is considered an ERC4626 token. */ + hasErc4626: Scalars['Boolean']['output']; + /** Hook assigned to a pool */ + hook?: Maybe; + /** The pool id. This is equal to the address for protocolVersion 3 pools */ id: Scalars['ID']['output']; + /** Pool is receiving rewards when liquidity tokens are staked */ + incentivized: Scalars['Boolean']['output']; /** The name of the pool as per contract */ name: Scalars['String']['output']; /** The wallet address of the owner of the pool. Pool owners can set certain properties like swapFees or AMP. */ owner?: Maybe; + /** The protocol version on which the pool is deployed, 1, 2 or 3 */ + protocolVersion: Scalars['Int']['output']; /** Staking options of this pool which emit additional rewards */ staking?: Maybe; /** The token symbol of the pool as per contract */ symbol: Scalars['String']['output']; + /** List of tags assigned by the team based on external factors */ + tags?: Maybe>>; /** The pool type, such as weighted, stable, etc. */ type: GqlPoolType; /** If a user address was provided in the query, the user balance is populated here */ userBalance?: Maybe; - /** The vault version on which the pool is deployed, 2 or 3 */ + /** + * The vault version on which the pool is deployed, 2 or 3 + * @deprecated use protocolVersion instead + */ vaultVersion: Scalars['Int']['output']; /** The version of the pool type. */ version: Scalars['Int']['output']; }; +/** Result of the poolReloadPools mutation */ +export type GqlPoolMutationResult = { + __typename?: 'GqlPoolMutationResult'; + /** The chain that was reloaded. */ + chain: GqlChain; + /** The error message */ + error?: Maybe; + /** Whether it was successful or not. */ + success: Scalars['Boolean']['output']; + /** The type of pools that were reloaded. */ + type: Scalars['String']['output']; +}; + export type GqlPoolNestedUnion = GqlPoolComposableStableNested; export type GqlPoolNestingType = @@ -708,10 +930,12 @@ export type GqlPoolSnapshot = { id: Scalars['ID']['output']; poolId: Scalars['String']['output']; sharePrice: Scalars['String']['output']; + surplus24h: Scalars['String']['output']; swapsCount: Scalars['String']['output']; timestamp: Scalars['Int']['output']; totalLiquidity: Scalars['String']['output']; totalShares: Scalars['String']['output']; + totalSurplus: Scalars['String']['output']; totalSwapFee: Scalars['String']['output']; totalSwapVolume: Scalars['String']['output']; volume24h: Scalars['String']['output']; @@ -730,6 +954,7 @@ export type GqlPoolStable = GqlPoolBase & { address: Scalars['Bytes']['output']; allTokens: Array; amp: Scalars['BigInt']['output']; + categories?: Maybe>>; chain: GqlChain; createTime: Scalars['Int']['output']; decimals: Scalars['Int']['output']; @@ -737,17 +962,23 @@ export type GqlPoolStable = GqlPoolBase & { dynamicData: GqlPoolDynamicData; factory?: Maybe; id: Scalars['ID']['output']; + /** @deprecated Removed without replacement */ investConfig: GqlPoolInvestConfig; name: Scalars['String']['output']; owner: Scalars['Bytes']['output']; poolTokens: Array; + protocolVersion: Scalars['Int']['output']; staking?: Maybe; symbol: Scalars['String']['output']; + tags?: Maybe>>; + /** @deprecated Use poolTokens instead */ tokens: Array; type: GqlPoolType; userBalance?: Maybe; + /** @deprecated use protocolVersion instead */ vaultVersion: Scalars['Int']['output']; version: Scalars['Int']['output']; + /** @deprecated Removed without replacement */ withdrawConfig: GqlPoolWithdrawConfig; }; @@ -764,12 +995,23 @@ export type GqlPoolStableComposablePoolData = { export type GqlPoolStaking = { __typename?: 'GqlPoolStaking'; address: Scalars['String']['output']; + aura?: Maybe; chain: GqlChain; farm?: Maybe; gauge?: Maybe; id: Scalars['ID']['output']; reliquary?: Maybe; type: GqlPoolStakingType; + vebal?: Maybe; +}; + +export type GqlPoolStakingAura = { + __typename?: 'GqlPoolStakingAura'; + apr: Scalars['Float']['output']; + auraPoolAddress: Scalars['String']['output']; + auraPoolId: Scalars['String']['output']; + id: Scalars['ID']['output']; + isShutdown: Scalars['Boolean']['output']; }; export type GqlPoolStakingFarmRewarder = { @@ -840,12 +1082,20 @@ export type GqlPoolStakingReliquaryFarmLevel = { }; export type GqlPoolStakingType = + | 'AURA' | 'FRESH_BEETS' | 'GAUGE' | 'MASTER_CHEF' | 'RELIQUARY' + | 'VEBAL' | '%future added value'; +export type GqlPoolStakingVebal = { + __typename?: 'GqlPoolStakingVebal'; + id: Scalars['ID']['output']; + vebalAddress: Scalars['String']['output']; +}; + export type GqlPoolSwap = { __typename?: 'GqlPoolSwap'; chain: GqlChain; @@ -861,21 +1111,75 @@ export type GqlPoolSwap = { valueUSD: Scalars['Float']['output']; }; +/** Represents an event that occurs when a swap is made in a pool using the CowAmm protocol. */ +export type GqlPoolSwapEventCowAmm = GqlPoolEvent & { + __typename?: 'GqlPoolSwapEventCowAmm'; + /** The block number of the event. */ + blockNumber: Scalars['Int']['output']; + /** The block timestamp of the event. */ + blockTimestamp: Scalars['Int']['output']; + /** The chain on which the event occurred. */ + chain: GqlChain; + /** The fee that this swap generated. */ + fee: GqlPoolEventAmount; + /** The unique identifier of the event. */ + id: Scalars['ID']['output']; + /** The log index of the event. */ + logIndex: Scalars['Int']['output']; + /** The pool ID associated with the event. */ + poolId: Scalars['String']['output']; + /** The sender of the event. */ + sender: Scalars['String']['output']; + /** The surplus generated by the swap. */ + surplus: GqlPoolEventAmount; + /** The timestamp of the event. */ + timestamp: Scalars['Int']['output']; + /** The token that was swapped in the event. */ + tokenIn: GqlPoolEventAmount; + /** The token that was swapped out in the event. */ + tokenOut: GqlPoolEventAmount; + /** The transaction hash of the event. */ + tx: Scalars['String']['output']; + /** The type of the event. */ + type: GqlPoolEventType; + /** The user address associated with the event. */ + userAddress: Scalars['String']['output']; + /** The value of the event in USD. */ + valueUSD: Scalars['Float']['output']; +}; + +/** Represents an event that occurs when a swap is made in a pool. */ export type GqlPoolSwapEventV3 = GqlPoolEvent & { __typename?: 'GqlPoolSwapEventV3'; + /** The block number of the event. */ blockNumber: Scalars['Int']['output']; + /** The block timestamp of the event. */ blockTimestamp: Scalars['Int']['output']; + /** The chain on which the event occurred. */ chain: GqlChain; + /** The fee that this swap generated. */ + fee: GqlPoolEventAmount; + /** The unique identifier of the event. */ id: Scalars['ID']['output']; + /** The log index of the event. */ logIndex: Scalars['Int']['output']; + /** The pool ID associated with the event. */ poolId: Scalars['String']['output']; + /** The sender of the event. */ sender: Scalars['String']['output']; + /** The timestamp of the event. */ timestamp: Scalars['Int']['output']; + /** The token that was swapped in the event. */ tokenIn: GqlPoolEventAmount; + /** The token that was swapped out in the event. */ tokenOut: GqlPoolEventAmount; + /** The transaction hash of the event. */ tx: Scalars['String']['output']; + /** The type of the event. */ type: GqlPoolEventType; + /** The user address associated with the event. */ userAddress: Scalars['String']['output']; + /** The value of the event in USD. */ valueUSD: Scalars['Float']['output']; }; @@ -938,19 +1242,45 @@ export type GqlPoolTokenComposableStable = GqlPoolTokenBase & { export type GqlPoolTokenComposableStableNestedUnion = GqlPoolToken; +/** + * All info on the pool token. It will also include the nested pool if the token is a BPT. It will only support 1 level of nesting. + * A second (unsupported) level of nesting is shown by having hasNestedPool = true but nestedPool = null. + */ export type GqlPoolTokenDetail = { __typename?: 'GqlPoolTokenDetail'; + /** Address of the pool token. */ address: Scalars['String']['output']; + /** Balance of the pool token inside the pool. */ balance: Scalars['BigDecimal']['output']; + /** USD Balance of the pool token. */ + balanceUSD: Scalars['BigDecimal']['output']; + /** Decimals of the pool token. */ decimals: Scalars['Int']['output']; + /** Indicates whether this token is a BPT and therefor has a nested pool. */ hasNestedPool: Scalars['Boolean']['output']; + /** Id of the token. A combination of pool id and token address. */ id: Scalars['ID']['output']; + /** Index of the pool token in the pool as returned by the vault. */ index: Scalars['Int']['output']; + /** Whether the token is in the allow list. */ + isAllowed: Scalars['Boolean']['output']; + /** Whether the token is considered an ERC4626 token. */ + isErc4626: Scalars['Boolean']['output']; + /** Name of the pool token. */ name: Scalars['String']['output']; + /** Additional data for the nested pool if the token is a BPT. Null otherwise. */ nestedPool?: Maybe; + /** If it is an appreciating token, it shows the current price rate. 1 otherwise. */ priceRate: Scalars['BigDecimal']['output']; + /** The address of the price rate provider. */ priceRateProvider?: Maybe; + /** Additional data for the price rate provider, such as reviews or warnings. */ + priceRateProviderData?: Maybe; + /** Symbol of the pool token. */ symbol: Scalars['String']['output']; + /** If it is an Erc4262, this will be the underlying token if present in the API. */ + underlyingToken?: Maybe; + /** The weight of the token in the pool if it is a weighted pool, null otherwise */ weight?: Maybe; }; @@ -969,6 +1299,7 @@ export type GqlPoolTokenExpanded = { address: Scalars['String']['output']; decimals: Scalars['Int']['output']; id: Scalars['ID']['output']; + isErc4626: Scalars['Boolean']['output']; isMainToken: Scalars['Boolean']['output']; isNested: Scalars['Boolean']['output']; isPhantomBpt: Scalars['Boolean']['output']; @@ -982,6 +1313,7 @@ export type GqlPoolTokenUnion = GqlPoolToken | GqlPoolTokenComposableStable; /** Supported pool types */ export type GqlPoolType = | 'COMPOSABLE_STABLE' + | 'COW_AMM' | 'ELEMENT' | 'FX' | 'GYRO' @@ -1001,10 +1333,8 @@ export type GqlPoolUnion = GqlPoolComposableStable | GqlPoolElement | GqlPoolFx /** If a user address was provided in the query, the user balance is populated here */ export type GqlPoolUserBalance = { __typename?: 'GqlPoolUserBalance'; - /** The staked balance in either a gauge or farm as float. */ - stakedBalance: Scalars['AmountHumanReadable']['output']; - /** The staked balance in either a gauge or farm in USD as float. */ - stakedBalanceUsd: Scalars['Float']['output']; + /** The staked BPT balances of the user. */ + stakedBalances: Array; /** Total balance (wallet + staked) as float */ totalBalance: Scalars['AmountHumanReadable']['output']; /** Total balance (wallet + staked) in USD as float */ @@ -1025,6 +1355,7 @@ export type GqlPoolWeighted = GqlPoolBase & { __typename?: 'GqlPoolWeighted'; address: Scalars['Bytes']['output']; allTokens: Array; + categories?: Maybe>>; chain: GqlChain; createTime: Scalars['Int']['output']; decimals: Scalars['Int']['output']; @@ -1032,19 +1363,27 @@ export type GqlPoolWeighted = GqlPoolBase & { dynamicData: GqlPoolDynamicData; factory?: Maybe; id: Scalars['ID']['output']; + /** @deprecated Removed without replacement */ investConfig: GqlPoolInvestConfig; name: Scalars['String']['output']; nestingType: GqlPoolNestingType; owner: Scalars['Bytes']['output']; poolTokens: Array; + protocolVersion: Scalars['Int']['output']; staking?: Maybe; symbol: Scalars['String']['output']; - /** All tokens of the pool. If it is a nested pool, the nested pool is expanded with its own tokens again. */ + tags?: Maybe>>; + /** + * All tokens of the pool. If it is a nested pool, the nested pool is expanded with its own tokens again. + * @deprecated Use poolTokens instead + */ tokens: Array; type: GqlPoolType; userBalance?: Maybe; + /** @deprecated use protocolVersion instead */ vaultVersion: Scalars['Int']['output']; version: Scalars['Int']['output']; + /** @deprecated Removed without replacement */ withdrawConfig: GqlPoolWithdrawConfig; }; @@ -1071,6 +1410,36 @@ export type GqlPriceImpact = { priceImpact?: Maybe; }; +/** Represents the data of a price rate provider */ +export type GqlPriceRateProviderData = { + __typename?: 'GqlPriceRateProviderData'; + /** The address of the price rate provider */ + address: Scalars['String']['output']; + /** The factory used to create the price rate provider, if applicable */ + factory?: Maybe; + /** The name of the price rate provider */ + name?: Maybe; + /** The filename of the review of the price rate provider */ + reviewFile?: Maybe; + /** Indicates if the price rate provider has been reviewed */ + reviewed: Scalars['Boolean']['output']; + /** A summary of the price rate provider, usually just says safe or unsafe */ + summary?: Maybe; + /** Upgradeable components of the price rate provider */ + upgradeableComponents?: Maybe>>; + /** Warnings associated with the price rate provider */ + warnings?: Maybe>; +}; + +/** Represents an upgradeable component of a price rate provider */ +export type GqlPriceRateProviderUpgradeableComponent = { + __typename?: 'GqlPriceRateProviderUpgradeableComponent'; + /** The entry point / proxy of the upgradeable component */ + entryPoint: Scalars['String']['output']; + /** Indicates if the implementation of the component has been reviewed */ + implementationReviewed: Scalars['String']['output']; +}; + export type GqlProtocolMetricsAggregated = { __typename?: 'GqlProtocolMetricsAggregated'; chains: Array; @@ -1250,6 +1619,8 @@ export type GqlSorGetSwapPaths = { paths: Array; /** Price impact of the path */ priceImpact: GqlPriceImpact; + /** The version of the protocol these paths are from */ + protocolVersion: Scalars['Int']['output']; /** The return amount in human form. Return amount is either tokenOutAmount (if swapType is exactIn) or tokenInAmount (if swapType is exactOut) */ returnAmount: Scalars['AmountHumanReadable']['output']; /** The return amount in a raw form */ @@ -1274,7 +1645,10 @@ export type GqlSorGetSwapPaths = { tokenOut: Scalars['String']['output']; /** The amount of tokenOut in human form */ tokenOutAmount: Scalars['AmountHumanReadable']['output']; - /** The version of the vault these paths are from */ + /** + * The version of the vault these paths are from + * @deprecated Use protocolVersion instead + */ vaultVersion: Scalars['Int']['output']; }; @@ -1306,13 +1680,20 @@ export type GqlSorPath = { __typename?: 'GqlSorPath'; /** Input amount of this path in scaled form */ inputAmountRaw: Scalars['String']['output']; + /** A sorted list of booleans that indicate if the respective pool is a buffer */ + isBuffer: Array>; /** Output amount of this path in scaled form */ outputAmountRaw: Scalars['String']['output']; /** A sorted list of pool ids that are used in this path */ pools: Array>; + /** The version of the protocol these paths are from */ + protocolVersion: Scalars['Int']['output']; /** A sorted list of tokens that are ussed in this path */ tokens: Array>; - /** Vault version of this path. */ + /** + * Vault version of this path. + * @deprecated Use protocolVersion instead + */ vaultVersion: Scalars['Int']['output']; }; @@ -1389,21 +1770,44 @@ export type GqlSwapCallDataInput = { slippagePercentage: Scalars['String']['input']; }; +/** Represents a token */ export type GqlToken = { __typename?: 'GqlToken'; + /** The address of the token */ address: Scalars['String']['output']; + /** The chain of the token */ chain: GqlChain; + /** The chain ID of the token */ chainId: Scalars['Int']['output']; + /** The coingecko ID for this token, if present */ + coingeckoId?: Maybe; + /** The number of decimal places for the token */ decimals: Scalars['Int']['output']; + /** The description of the token */ description?: Maybe; + /** The Discord URL of the token */ discordUrl?: Maybe; + /** Whether the token is considered an ERC4626 token. */ + isErc4626: Scalars['Boolean']['output']; + /** The logo URI of the token */ logoURI?: Maybe; + /** The name of the token */ name: Scalars['String']['output']; + /** The rate provider data for the token */ + priceRateProviderData?: Maybe; + /** The priority of the token, can be used for sorting. */ priority: Scalars['Int']['output']; + /** The rate provider data for the token */ + rateProviderData?: Maybe; + /** The symbol of the token */ symbol: Scalars['String']['output']; + /** The Telegram URL of the token */ telegramUrl?: Maybe; + /** Indicates if the token is tradable */ tradable: Scalars['Boolean']['output']; + /** The Twitter username of the token */ twitterUsername?: Maybe; + /** The website URL of the token */ websiteUrl?: Maybe; }; @@ -1441,25 +1845,52 @@ export type GqlTokenData = { websiteUrl?: Maybe; }; +/** Represents additional data for a token */ export type GqlTokenDynamicData = { __typename?: 'GqlTokenDynamicData'; + /** The all-time high price of the token */ ath: Scalars['Float']['output']; + /** The all-time low price of the token */ atl: Scalars['Float']['output']; + /** The fully diluted valuation of the token */ fdv?: Maybe; + /** The highest price in the last 24 hours */ high24h: Scalars['Float']['output']; + /** The unique identifier of the dynamic data */ id: Scalars['String']['output']; + /** The lowest price in the last 24 hours */ low24h: Scalars['Float']['output']; + /** The market capitalization of the token */ marketCap?: Maybe; + /** The current price of the token */ price: Scalars['Float']['output']; + /** The price change in the last 24 hours */ priceChange24h: Scalars['Float']['output']; + /** The percentage price change in the last 7 days */ priceChangePercent7d?: Maybe; + /** The percentage price change in the last 14 days */ priceChangePercent14d?: Maybe; + /** The percentage price change in the last 24 hours */ priceChangePercent24h: Scalars['Float']['output']; + /** The percentage price change in the last 30 days */ priceChangePercent30d?: Maybe; + /** The address of the token */ tokenAddress: Scalars['String']['output']; + /** The timestamp when the data was last updated */ updatedAt: Scalars['String']['output']; }; +/** Result of the poolReloadPools mutation */ +export type GqlTokenMutationResult = { + __typename?: 'GqlTokenMutationResult'; + /** The chain that was reloaded. */ + chain: GqlChain; + /** The error message */ + error?: Maybe; + /** Whether it was successful or not. */ + success: Scalars['Boolean']['output']; +}; + export type GqlTokenPrice = { __typename?: 'GqlTokenPrice'; address: Scalars['String']['output']; @@ -1501,46 +1932,119 @@ export type GqlUserPoolBalance = { walletBalance: Scalars['AmountHumanReadable']['output']; }; +export type GqlUserStakedBalance = { + __typename?: 'GqlUserStakedBalance'; + /** The staked BPT balance as float. */ + balance: Scalars['AmountHumanReadable']['output']; + /** The steaked BPT balance in USD as float. */ + balanceUsd: Scalars['Float']['output']; + /** The id of the staking to match with GqlPoolStaking.id. */ + stakingId: Scalars['String']['output']; + /** The staking type (Gauge, farm, aura, etc.) in which this balance is staked. */ + stakingType: GqlPoolStakingType; +}; + export type GqlUserSwapVolumeFilter = { poolIdIn?: InputMaybe>; tokenInIn?: InputMaybe>; tokenOutIn?: InputMaybe>; }; +export type GqlVeBalBalance = { + __typename?: 'GqlVeBalBalance'; + balance: Scalars['AmountHumanReadable']['output']; + chain: GqlChain; + locked: Scalars['AmountHumanReadable']['output']; + lockedUsd: Scalars['AmountHumanReadable']['output']; +}; + export type GqlVeBalUserData = { __typename?: 'GqlVeBalUserData'; balance: Scalars['AmountHumanReadable']['output']; + locked: Scalars['AmountHumanReadable']['output']; + lockedUsd: Scalars['AmountHumanReadable']['output']; rank?: Maybe; }; +/** The Gauge that can be voted on through veBAL and that will ultimately receive the rewards. */ export type GqlVotingGauge = { __typename?: 'GqlVotingGauge'; + /** The timestamp the gauge was added. */ addedTimestamp?: Maybe; + /** The address of the root gauge on Ethereum mainnet. */ address: Scalars['Bytes']['output']; + /** The address of the child gauge on the specific chain. */ childGaugeAddress?: Maybe; + /** Whether the gauge is killed or not. */ isKilled: Scalars['Boolean']['output']; + /** The relative weight the gauge received this epoch (not more than 1.0). */ + relativeWeight: Scalars['String']['output']; + /** The relative weight cap. 1.0 for uncapped. */ relativeWeightCap?: Maybe; }; +/** A token inside of a pool with a voting gauge. */ export type GqlVotingGaugeToken = { __typename?: 'GqlVotingGaugeToken'; + /** The address of the token. */ address: Scalars['String']['output']; + /** The URL to the token logo. */ logoURI: Scalars['String']['output']; + /** The symbol of the token. */ symbol: Scalars['String']['output']; + /** If it is a weighted pool, the weigh of the token is shown here in %. 0.5 = 50%. */ weight?: Maybe; }; +/** The pool that can be voted on through veBAL */ export type GqlVotingPool = { __typename?: 'GqlVotingPool'; + /** The address of the pool. */ address: Scalars['Bytes']['output']; + /** The chain this pool is on. */ chain: GqlChain; + /** The gauge that is connected to the pool and that will receive the rewards. */ gauge: GqlVotingGauge; + /** Pool ID */ id: Scalars['ID']['output']; + /** The symbol of the pool. */ symbol: Scalars['String']['output']; + /** The tokens inside the pool. */ tokens: Array; + /** The type of the pool. */ type: GqlPoolType; }; +/** Hook data */ +export type Hook = { + __typename?: 'Hook'; + address: Scalars['String']['output']; + chain: GqlChain; + /** Data points changing over time */ + dynamicData?: Maybe; + /** True when hook can change the amounts send to the vault. Necessary to deduct the fees. */ + enableHookAdjustedAmounts: Scalars['Boolean']['output']; + /** List of pools using the hook */ + poolsIds?: Maybe>>; + shouldCallAfterAddLiquidity: Scalars['Boolean']['output']; + shouldCallAfterInitialize: Scalars['Boolean']['output']; + shouldCallAfterRemoveLiquidity: Scalars['Boolean']['output']; + shouldCallAfterSwap: Scalars['Boolean']['output']; + shouldCallBeforeAddLiquidity: Scalars['Boolean']['output']; + shouldCallBeforeInitialize: Scalars['Boolean']['output']; + shouldCallBeforeRemoveLiquidity: Scalars['Boolean']['output']; + shouldCallBeforeSwap: Scalars['Boolean']['output']; + shouldCallComputeDynamicSwapFee: Scalars['Boolean']['output']; +}; + +/** Collection of hook specific data. Percentage format is 0.01 -> 0.01%. */ +export type HookData = { + __typename?: 'HookData'; + addLiquidityFeePercentage?: Maybe; + removeLiquidityFeePercentage?: Maybe; + swapFeePercentage?: Maybe; +}; + export type Mutation = { __typename?: 'Mutation'; beetsPoolLoadReliquarySnapshotsForAllFarms: Scalars['String']['output']; @@ -1557,7 +2061,9 @@ export type Mutation = { poolLoadSnapshotsForPools: Scalars['String']['output']; poolReloadAllPoolAprs: Scalars['String']['output']; poolReloadAllTokenNestedPoolIds: Scalars['String']['output']; + poolReloadPools: Array; poolReloadStakingForAllPools: Scalars['String']['output']; + poolSyncAllCowSnapshots: Array; poolSyncAllPoolsFromSubgraph: Array; poolSyncLatestSnapshotsForAllPools: Scalars['String']['output']; poolSyncNewPoolsFromSubgraph: Array; @@ -1577,6 +2083,7 @@ export type Mutation = { sftmxSyncWithdrawalRequests: Scalars['String']['output']; tokenDeleteTokenType: Scalars['String']['output']; tokenReloadAllTokenTypes: Scalars['String']['output']; + tokenReloadErc4626Tokens: Array; tokenReloadTokenPrices?: Maybe; tokenSyncLatestFxPrices: Scalars['String']['output']; tokenSyncTokenDefinitions: Scalars['String']['output']; @@ -1623,13 +2130,23 @@ export type MutationPoolReloadAllPoolAprsArgs = { }; +export type MutationPoolReloadPoolsArgs = { + chains: Array; +}; + + export type MutationPoolReloadStakingForAllPoolsArgs = { stakingTypes: Array; }; +export type MutationPoolSyncAllCowSnapshotsArgs = { + chains: Array; +}; + + export type MutationPoolSyncLatestSnapshotsForAllPoolsArgs = { - daysToSync?: InputMaybe; + chain: GqlChain; }; @@ -1649,6 +2166,11 @@ export type MutationTokenDeleteTokenTypeArgs = { }; +export type MutationTokenReloadErc4626TokensArgs = { + chains: Array; +}; + + export type MutationTokenReloadTokenPricesArgs = { chains: Array; }; @@ -1682,18 +2204,29 @@ export type Query = { blocksGetBlocksPerSecond: Scalars['Float']['output']; blocksGetBlocksPerYear: Scalars['Float']['output']; contentGetNewsItems: Array; + /** Returns list of hooks. */ + hooks?: Maybe>; latestSyncedBlocks: GqlLatestSyncedBlocks; /** Getting swap, add and remove events with paging */ poolEvents: Array; - /** Will de deprecated in favor of poolEvents */ + /** + * Will de deprecated in favor of poolEvents + * @deprecated Use poolEvents instead + */ poolGetBatchSwaps: Array; /** Getting swap, add and remove events with range */ poolGetEvents: Array; - /** Will de deprecated in favor of poolGetFeaturedPools */ + /** + * Will de deprecated in favor of poolGetFeaturedPools + * @deprecated Use poolGetFeaturedPools instead + */ poolGetFeaturedPoolGroups: Array; /** Returns the list of featured pools for chains */ poolGetFeaturedPools: Array; - /** Will de deprecated in favor of poolEvents */ + /** + * Will de deprecated in favor of poolEvents + * @deprecated Use poolEvents instead + */ poolGetJoinExits: Array; /** Returns one pool. If a user address is provided, the user balances for the given pool will also be returned. */ poolGetPool: GqlPoolBase; @@ -1703,7 +2236,10 @@ export type Query = { poolGetPoolsCount: Scalars['Int']['output']; /** Gets all the snapshots for a given pool on a chain for a certain range */ poolGetSnapshots: Array; - /** Will de deprecated in favor of poolEvents */ + /** + * Will de deprecated in favor of poolEvents + * @deprecated Use poolEvents instead + */ poolGetSwaps: Array; protocolMetricsAggregated: GqlProtocolMetricsAggregated; protocolMetricsChain: GqlProtocolMetricsChain; @@ -1717,16 +2253,42 @@ export type Query = { sorGetSwapPaths: GqlSorGetSwapPaths; /** Get swap quote from the SOR, queries both the old and new SOR */ sorGetSwaps: GqlSorGetSwapsResponse; + /** + * Returns the candlestick chart data for a token for a given range. + * @deprecated Use tokenGetHistoricalPrices instead + */ tokenGetCandlestickChartData: Array; + /** Returns all current prices for allowed tokens for a given chain or chains */ tokenGetCurrentPrices: Array; + /** Returns the historical prices for a given set of tokens for a given chain and range */ tokenGetHistoricalPrices: Array; + /** + * DEPRECATED: Returns pricing data for a given token for a given range + * @deprecated Use tokenGetHistoricalPrices instead + */ tokenGetPriceChartData: Array; + /** + * Returns the price of either BAL or BEETS depending on chain + * @deprecated Use tokenGetTokensDynamicData instead + */ tokenGetProtocolTokenPrice: Scalars['AmountHumanReadable']['output']; + /** Returns the price of a token priced in another token for a given range. */ tokenGetRelativePriceChartData: Array; + /** + * Returns meta data for a given token such as description, website, etc. + * @deprecated Use tokenGetTokens instead + */ tokenGetTokenData?: Maybe; + /** Returns dynamic data of a token such as price, market cap, etc. */ tokenGetTokenDynamicData?: Maybe; + /** Returns all allowed tokens for a given chain or chains */ tokenGetTokens: Array; + /** + * Returns meta data for a given set of tokens such as description, website, etc. + * @deprecated Use tokenGetTokens instead + */ tokenGetTokensData: Array; + /** Returns dynamic data of a set of tokens such as price, market cap, etc. */ tokenGetTokensDynamicData: Array; userGetFbeetsBalance: GqlUserFbeetsBalance; userGetPoolBalances: Array; @@ -1738,6 +2300,8 @@ export type Query = { veBalGetTotalSupply: Scalars['AmountHumanReadable']['output']; veBalGetUser: GqlVeBalUserData; veBalGetUserBalance: Scalars['AmountHumanReadable']['output']; + veBalGetUserBalances: Array; + /** Returns all pools with veBAL gauges that can be voted on. */ veBalGetVotingList: Array; }; @@ -1753,10 +2317,15 @@ export type QueryContentGetNewsItemsArgs = { }; +export type QueryHooksArgs = { + chain?: InputMaybe; +}; + + export type QueryPoolEventsArgs = { first?: InputMaybe; skip?: InputMaybe; - where: GqlPoolEventsFilter; + where?: InputMaybe; }; @@ -1862,7 +2431,7 @@ export type QuerySorGetSwapPathsArgs = { swapType: GqlSorSwapType; tokenIn: Scalars['String']['input']; tokenOut: Scalars['String']['input']; - useVaultVersion?: InputMaybe; + useProtocolVersion?: InputMaybe; }; @@ -1972,6 +2541,29 @@ export type QueryUserGetSwapsArgs = { skip?: InputMaybe; }; + +export type QueryVeBalGetTotalSupplyArgs = { + chain?: InputMaybe; +}; + + +export type QueryVeBalGetUserArgs = { + address: Scalars['String']['input']; + chain?: InputMaybe; +}; + + +export type QueryVeBalGetUserBalanceArgs = { + address?: InputMaybe; + chain?: InputMaybe; +}; + + +export type QueryVeBalGetUserBalancesArgs = { + address: Scalars['String']['input']; + chains?: InputMaybe>; +}; + export type Token = { __typename?: 'Token'; address: Scalars['String']['output']; diff --git a/packages/gql/src/balancer-api-v3/__generated__/Avalanche.ts b/packages/gql/src/balancer-api-v3/__generated__/Avalanche.ts index dbb6d7c10..5e68d0c72 100644 --- a/packages/gql/src/balancer-api-v3/__generated__/Avalanche.ts +++ b/packages/gql/src/balancer-api-v3/__generated__/Avalanche.ts @@ -46,8 +46,10 @@ export type GqlChain = | 'AVALANCHE' | 'BASE' | 'FANTOM' + | 'FRAXTAL' | 'GNOSIS' | 'MAINNET' + | 'MODE' | 'OPTIMISM' | 'POLYGON' | 'SEPOLIA' @@ -130,41 +132,73 @@ export type GqlLatestSyncedBlocks = { userWalletSyncBlock: Scalars['BigInt']['output']; }; +/** All info on the nested pool if the token is a BPT. It will only support 1 level of nesting. */ export type GqlNestedPool = { __typename?: 'GqlNestedPool'; + /** Address of the pool. */ address: Scalars['Bytes']['output']; + /** Price rate of the Balancer Pool Token (BPT). */ bptPriceRate: Scalars['BigDecimal']['output']; + /** Timestamp of when the pool was created. */ createTime: Scalars['Int']['output']; + /** Address of the factory contract that created the pool, if applicable. */ factory?: Maybe; + /** Unique identifier of the pool. */ id: Scalars['ID']['output']; + /** Name of the pool. */ name: Scalars['String']['output']; + /** Total liquidity of the parent pool in the nested pool in USD. */ nestedLiquidity: Scalars['BigDecimal']['output']; + /** Percentage of the parents pool shares inside the nested pool. */ nestedPercentage: Scalars['BigDecimal']['output']; + /** Number of shares of the parent pool in the nested pool. */ nestedShares: Scalars['BigDecimal']['output']; + /** Address of the pool's owner. */ owner: Scalars['Bytes']['output']; + /** Fee charged for swapping tokens in the pool as %. 0.01 -> 0.01% */ swapFee: Scalars['BigDecimal']['output']; + /** Symbol of the pool. */ symbol: Scalars['String']['output']; + /** List of all tokens in the pool. */ tokens: Array; + /** Total liquidity in the pool in USD. */ totalLiquidity: Scalars['BigDecimal']['output']; + /** Total number of shares in the pool. */ totalShares: Scalars['BigDecimal']['output']; + /** Type of the pool. */ type: GqlPoolType; + /** Version of the pool. */ version: Scalars['Int']['output']; }; +/** Represents an event that occurs when liquidity is added or removed from a pool. */ export type GqlPoolAddRemoveEventV3 = GqlPoolEvent & { __typename?: 'GqlPoolAddRemoveEventV3'; + /** The block number of the event. */ blockNumber: Scalars['Int']['output']; + /** The block timestamp of the event. */ blockTimestamp: Scalars['Int']['output']; + /** The chain on which the event occurred. */ chain: GqlChain; + /** The unique identifier of the event. */ id: Scalars['ID']['output']; + /** The log index of the event. */ logIndex: Scalars['Int']['output']; + /** The pool ID associated with the event. */ poolId: Scalars['String']['output']; + /** The sender of the event. */ sender: Scalars['String']['output']; + /** The timestamp of the event. */ timestamp: Scalars['Int']['output']; + /** The tokens involved in the event. Ordered by poolToken index. */ tokens: Array; + /** The transaction hash of the event. */ tx: Scalars['String']['output']; + /** The type of the event. */ type: GqlPoolEventType; + /** The user address associated with the event. */ userAddress: Scalars['String']['output']; + /** The value of the event in USD. */ valueUSD: Scalars['Float']['output']; }; @@ -178,6 +212,43 @@ export type GqlPoolApr = { thirdPartyApr: GqlPoolAprValue; }; +/** All APRs for a pool */ +export type GqlPoolAprItem = { + __typename?: 'GqlPoolAprItem'; + /** The APR value in % -> 0.2 = 0.2% */ + apr: Scalars['Float']['output']; + /** The id of the APR item */ + id: Scalars['ID']['output']; + /** The title of the APR item, a human readable form */ + title: Scalars['String']['output']; + /** Specific type of this APR */ + type: GqlPoolAprItemType; +}; + +/** Enum representing the different types of the APR in a pool. */ +export type GqlPoolAprItemType = + /** APR that pools earns when BPT is staked on AURA. */ + | 'AURA' + /** Represents the yield from an IB (Interest-Bearing) asset APR in a pool. */ + | 'IB_YIELD' + /** APR in a pool that can be earned through locking, i.e. veBAL */ + | 'LOCKING' + /** Rewards distributed by merkl.xyz */ + | 'MERKL' + /** Represents if the APR items comes from a nested pool. */ + | 'NESTED' + /** Staking reward APR in a pool, i.e. BAL or BEETS. */ + | 'STAKING' + /** APR boost that can be earned, i.e. via veBAL or maBEETS. */ + | 'STAKING_BOOST' + /** Cow AMM specific APR */ + | 'SURPLUS' + /** Represents the swap fee APR in a pool. */ + | 'SWAP_FEE' + /** APR that can be earned thourgh voting, i.e. gauge votes */ + | 'VOTING' + | '%future added value'; + export type GqlPoolAprRange = { __typename?: 'GqlPoolAprRange'; max: Scalars['BigDecimal']['output']; @@ -195,23 +266,34 @@ export type GqlPoolAprValue = GqlPoolAprRange | GqlPoolAprTotal; export type GqlPoolBase = { /** The contract address of the pool. */ address: Scalars['Bytes']['output']; - /** Returns all pool tokens, including any nested tokens and phantom BPTs on one level. */ + /** + * Returns all pool tokens, including any nested tokens and phantom BPTs on one level. + * @deprecated Use poolTokens instead + */ allTokens: Array; + /** List of categories assigned by the team based on external factors */ + categories?: Maybe>>; /** The chain on which the pool is deployed */ chain: GqlChain; /** The timestamp the pool was created. */ createTime: Scalars['Int']['output']; /** The decimals of the BPT, usually 18 */ decimals: Scalars['Int']['output']; - /** Only returns main tokens, also known as leave tokens. Wont return any nested BPTs. Used for displaying the tokens that the pool consists of. */ + /** + * Only returns main tokens, also known as leave tokens. Wont return any nested BPTs. Used for displaying the tokens that the pool consists of. + * @deprecated Use poolTokens instead + */ displayTokens: Array; /** Dynamic data such as token balances, swap fees or volume */ dynamicData: GqlPoolDynamicData; /** The factory contract address from which the pool was created. */ factory?: Maybe; - /** The pool id. This is equal to the address for vaultVersion 3 pools */ + /** The pool id. This is equal to the address for protocolVersion 3 pools */ id: Scalars['ID']['output']; - /** Deprecated */ + /** + * Deprecated + * @deprecated Removed without replacement + */ investConfig: GqlPoolInvestConfig; /** The name of the pool as per contract */ name: Scalars['String']['output']; @@ -219,19 +301,29 @@ export type GqlPoolBase = { owner?: Maybe; /** Returns all pool tokens, including BPTs and nested pools if there are any. Only one nested level deep. */ poolTokens: Array; + /** The protocol version on which the pool is deployed, 1, 2 or 3 */ + protocolVersion: Scalars['Int']['output']; /** Staking options of this pool which emit additional rewards */ staking?: Maybe; /** The token symbol of the pool as per contract */ symbol: Scalars['String']['output']; + /** List of tags assigned by the team based on external factors */ + tags?: Maybe>>; /** The pool type, such as weighted, stable, etc. */ type: GqlPoolType; /** If a user address was provided in the query, the user balance is populated here */ userBalance?: Maybe; - /** The vault version on which the pool is deployed, 2 or 3 */ + /** + * The vault version on which the pool is deployed, 2 or 3 + * @deprecated use protocolVersion instead + */ vaultVersion: Scalars['Int']['output']; /** The version of the pool type. */ version: Scalars['Int']['output']; - /** Deprecated */ + /** + * Deprecated + * @deprecated Removed without replacement + */ withdrawConfig: GqlPoolWithdrawConfig; }; @@ -278,6 +370,7 @@ export type GqlPoolComposableStable = GqlPoolBase & { allTokens: Array; amp: Scalars['BigInt']['output']; bptPriceRate: Scalars['BigDecimal']['output']; + categories?: Maybe>>; chain: GqlChain; createTime: Scalars['Int']['output']; decimals: Scalars['Int']['output']; @@ -285,18 +378,27 @@ export type GqlPoolComposableStable = GqlPoolBase & { dynamicData: GqlPoolDynamicData; factory?: Maybe; id: Scalars['ID']['output']; + /** @deprecated Removed without replacement */ investConfig: GqlPoolInvestConfig; name: Scalars['String']['output']; nestingType: GqlPoolNestingType; owner: Scalars['Bytes']['output']; poolTokens: Array; + protocolVersion: Scalars['Int']['output']; staking?: Maybe; symbol: Scalars['String']['output']; + tags?: Maybe>>; + /** + * All tokens of the pool. If it is a nested pool, the nested pool is expanded with its own tokens again. + * @deprecated Use poolTokens instead + */ tokens: Array; type: GqlPoolType; userBalance?: Maybe; + /** @deprecated use protocolVersion instead */ vaultVersion: Scalars['Int']['output']; version: Scalars['Int']['output']; + /** @deprecated Removed without replacement */ withdrawConfig: GqlPoolWithdrawConfig; }; @@ -305,6 +407,7 @@ export type GqlPoolComposableStableNested = { address: Scalars['Bytes']['output']; amp: Scalars['BigInt']['output']; bptPriceRate: Scalars['BigDecimal']['output']; + categories?: Maybe>>; createTime: Scalars['Int']['output']; factory?: Maybe; id: Scalars['ID']['output']; @@ -313,6 +416,8 @@ export type GqlPoolComposableStableNested = { owner: Scalars['Bytes']['output']; swapFee: Scalars['BigDecimal']['output']; symbol: Scalars['String']['output']; + tags?: Maybe>>; + /** @deprecated Use poolTokens instead */ tokens: Array; totalLiquidity: Scalars['BigDecimal']['output']; totalShares: Scalars['BigDecimal']['output']; @@ -322,7 +427,13 @@ export type GqlPoolComposableStableNested = { export type GqlPoolDynamicData = { __typename?: 'GqlPoolDynamicData'; + /** Protocol and pool creator fees combined */ + aggregateSwapFee: Scalars['BigDecimal']['output']; + /** Protocol and pool creator fees combined */ + aggregateYieldFee: Scalars['BigDecimal']['output']; + /** @deprecated Use aprItems instead */ apr: GqlPoolApr; + aprItems: Array; fees24h: Scalars['BigDecimal']['output']; fees24hAth: Scalars['BigDecimal']['output']; fees24hAthTimestamp: Scalars['Int']['output']; @@ -330,6 +441,7 @@ export type GqlPoolDynamicData = { fees24hAtlTimestamp: Scalars['Int']['output']; fees48h: Scalars['BigDecimal']['output']; holdersCount: Scalars['BigInt']['output']; + /** True for bricked pools */ isInRecoveryMode: Scalars['Boolean']['output']; isPaused: Scalars['Boolean']['output']; lifetimeSwapFees: Scalars['BigDecimal']['output']; @@ -339,6 +451,11 @@ export type GqlPoolDynamicData = { sharePriceAthTimestamp: Scalars['Int']['output']; sharePriceAtl: Scalars['BigDecimal']['output']; sharePriceAtlTimestamp: Scalars['Int']['output']; + /** CowAmm specific, equivalent of swap fees */ + surplus24h: Scalars['BigDecimal']['output']; + /** CowAmm specific, equivalent of swap fees */ + surplus48h: Scalars['BigDecimal']['output']; + /** Disabled for bricked pools */ swapEnabled: Scalars['Boolean']['output']; swapFee: Scalars['BigDecimal']['output']; swapsCount: Scalars['BigInt']['output']; @@ -365,6 +482,7 @@ export type GqlPoolElement = GqlPoolBase & { address: Scalars['Bytes']['output']; allTokens: Array; baseToken: Scalars['Bytes']['output']; + categories?: Maybe>>; chain: GqlChain; createTime: Scalars['Int']['output']; decimals: Scalars['Int']['output']; @@ -372,34 +490,53 @@ export type GqlPoolElement = GqlPoolBase & { dynamicData: GqlPoolDynamicData; factory?: Maybe; id: Scalars['ID']['output']; + /** @deprecated Removed without replacement */ investConfig: GqlPoolInvestConfig; name: Scalars['String']['output']; owner: Scalars['Bytes']['output']; poolTokens: Array; principalToken: Scalars['Bytes']['output']; + protocolVersion: Scalars['Int']['output']; staking?: Maybe; symbol: Scalars['String']['output']; + tags?: Maybe>>; + /** @deprecated Use poolTokens instead */ tokens: Array; type: GqlPoolType; unitSeconds: Scalars['BigInt']['output']; userBalance?: Maybe; + /** @deprecated use protocolVersion instead */ vaultVersion: Scalars['Int']['output']; version: Scalars['Int']['output']; + /** @deprecated Removed without replacement */ withdrawConfig: GqlPoolWithdrawConfig; }; +/** Represents an event that occurs in a pool. */ export type GqlPoolEvent = { + /** The block number of the event. */ blockNumber: Scalars['Int']['output']; + /** The block timestamp of the event. */ blockTimestamp: Scalars['Int']['output']; + /** The chain on which the event occurred. */ chain: GqlChain; + /** The unique identifier of the event. */ id: Scalars['ID']['output']; + /** The log index of the event. */ logIndex: Scalars['Int']['output']; + /** The pool ID associated with the event. */ poolId: Scalars['String']['output']; + /** The sender of the event. */ sender: Scalars['String']['output']; + /** The timestamp of the event. */ timestamp: Scalars['Int']['output']; + /** The transaction hash of the event. */ tx: Scalars['String']['output']; + /** The type of the event. */ type: GqlPoolEventType; + /** The user address associated with the event. */ userAddress: Scalars['String']['output']; + /** The USD value of this event. */ valueUSD: Scalars['Float']['output']; }; @@ -423,11 +560,15 @@ export type GqlPoolEventsDataRange = | '%future added value'; export type GqlPoolEventsFilter = { - chain: GqlChain; - poolId: Scalars['String']['input']; + chainIn?: InputMaybe>>; + poolIdIn?: InputMaybe>>; range?: InputMaybe; typeIn?: InputMaybe>>; userAddress?: InputMaybe; + /** USD value of the event */ + valueUSD_gt?: InputMaybe; + /** USD value of the event */ + valueUSD_gte?: InputMaybe; }; export type GqlPoolFeaturedPool = { @@ -449,8 +590,6 @@ export type GqlPoolFeaturedPoolGroup = { export type GqlPoolFeaturedPoolGroupItem = GqlFeaturePoolGroupItemExternalLink | GqlPoolMinimal; export type GqlPoolFilter = { - categoryIn?: InputMaybe>; - categoryNotIn?: InputMaybe>; chainIn?: InputMaybe>; chainNotIn?: InputMaybe>; createTime?: InputMaybe; @@ -461,15 +600,33 @@ export type GqlPoolFilter = { minTvl?: InputMaybe; poolTypeIn?: InputMaybe>; poolTypeNotIn?: InputMaybe>; + protocolVersionIn?: InputMaybe>; + /** + * For list of tags see: https://github.com/balancer/metadata/blob/main/pools/index.json + * Use uppercase + */ + tagIn?: InputMaybe>; + /** + * For list of tags see: https://github.com/balancer/metadata/blob/main/pools/index.json + * Use uppercase + */ + tagNotIn?: InputMaybe>; tokensIn?: InputMaybe>; tokensNotIn?: InputMaybe>; userAddress?: InputMaybe; - vaultVersionIn?: InputMaybe>; }; export type GqlPoolFilterCategory = | 'BLACK_LISTED' | 'INCENTIVIZED' + | 'LRT' + | 'POINTS' + | 'POINTS_EIGENLAYER' + | 'POINTS_GYRO' + | 'POINTS_KELP' + | 'POINTS_RENZO' + | 'POINTS_SWELL' + | 'SUPERFEST' | '%future added value'; export type GqlPoolFx = GqlPoolBase & { @@ -478,6 +635,7 @@ export type GqlPoolFx = GqlPoolBase & { allTokens: Array; alpha: Scalars['String']['output']; beta: Scalars['String']['output']; + categories?: Maybe>>; chain: GqlChain; createTime: Scalars['Int']['output']; decimals: Scalars['Int']['output']; @@ -487,18 +645,27 @@ export type GqlPoolFx = GqlPoolBase & { epsilon: Scalars['String']['output']; factory?: Maybe; id: Scalars['ID']['output']; + /** @deprecated Removed without replacement */ investConfig: GqlPoolInvestConfig; lambda: Scalars['String']['output']; name: Scalars['String']['output']; owner?: Maybe; poolTokens: Array; + protocolVersion: Scalars['Int']['output']; staking?: Maybe; symbol: Scalars['String']['output']; + tags?: Maybe>>; + /** + * All tokens of the pool. If it is a nested pool, the nested pool is expanded with its own tokens again. + * @deprecated Use poolTokens instead + */ tokens: Array; type: GqlPoolType; userBalance?: Maybe; + /** @deprecated use protocolVersion instead */ vaultVersion: Scalars['Int']['output']; version: Scalars['Int']['output']; + /** @deprecated Removed without replacement */ withdrawConfig: GqlPoolWithdrawConfig; }; @@ -509,6 +676,7 @@ export type GqlPoolGyro = GqlPoolBase & { alpha: Scalars['String']['output']; beta: Scalars['String']['output']; c: Scalars['String']['output']; + categories?: Maybe>>; chain: GqlChain; createTime: Scalars['Int']['output']; dSq: Scalars['String']['output']; @@ -517,30 +685,39 @@ export type GqlPoolGyro = GqlPoolBase & { dynamicData: GqlPoolDynamicData; factory?: Maybe; id: Scalars['ID']['output']; + /** @deprecated Removed without replacement */ investConfig: GqlPoolInvestConfig; lambda: Scalars['String']['output']; name: Scalars['String']['output']; nestingType: GqlPoolNestingType; owner: Scalars['Bytes']['output']; poolTokens: Array; + protocolVersion: Scalars['Int']['output']; root3Alpha: Scalars['String']['output']; s: Scalars['String']['output']; sqrtAlpha: Scalars['String']['output']; sqrtBeta: Scalars['String']['output']; staking?: Maybe; symbol: Scalars['String']['output']; + tags?: Maybe>>; tauAlphaX: Scalars['String']['output']; tauAlphaY: Scalars['String']['output']; tauBetaX: Scalars['String']['output']; tauBetaY: Scalars['String']['output']; + /** + * All tokens of the pool. If it is a nested pool, the nested pool is expanded with its own tokens again. + * @deprecated Use poolTokens instead + */ tokens: Array; type: GqlPoolType; u: Scalars['String']['output']; userBalance?: Maybe; v: Scalars['String']['output']; + /** @deprecated use protocolVersion instead */ vaultVersion: Scalars['Int']['output']; version: Scalars['Int']['output']; w: Scalars['String']['output']; + /** @deprecated Removed without replacement */ withdrawConfig: GqlPoolWithdrawConfig; z: Scalars['String']['output']; }; @@ -592,6 +769,7 @@ export type GqlPoolLiquidityBootstrapping = GqlPoolBase & { __typename?: 'GqlPoolLiquidityBootstrapping'; address: Scalars['Bytes']['output']; allTokens: Array; + categories?: Maybe>>; chain: GqlChain; createTime: Scalars['Int']['output']; decimals: Scalars['Int']['output']; @@ -599,18 +777,27 @@ export type GqlPoolLiquidityBootstrapping = GqlPoolBase & { dynamicData: GqlPoolDynamicData; factory?: Maybe; id: Scalars['ID']['output']; + /** @deprecated Removed without replacement */ investConfig: GqlPoolInvestConfig; name: Scalars['String']['output']; nestingType: GqlPoolNestingType; owner: Scalars['Bytes']['output']; poolTokens: Array; + protocolVersion: Scalars['Int']['output']; staking?: Maybe; symbol: Scalars['String']['output']; + tags?: Maybe>>; + /** + * All tokens of the pool. If it is a nested pool, the nested pool is expanded with its own tokens again. + * @deprecated Use poolTokens instead + */ tokens: Array; type: GqlPoolType; userBalance?: Maybe; + /** @deprecated use protocolVersion instead */ vaultVersion: Scalars['Int']['output']; version: Scalars['Int']['output']; + /** @deprecated Removed without replacement */ withdrawConfig: GqlPoolWithdrawConfig; }; @@ -619,6 +806,7 @@ export type GqlPoolMetaStable = GqlPoolBase & { address: Scalars['Bytes']['output']; allTokens: Array; amp: Scalars['BigInt']['output']; + categories?: Maybe>>; chain: GqlChain; createTime: Scalars['Int']['output']; decimals: Scalars['Int']['output']; @@ -626,17 +814,23 @@ export type GqlPoolMetaStable = GqlPoolBase & { dynamicData: GqlPoolDynamicData; factory?: Maybe; id: Scalars['ID']['output']; + /** @deprecated Removed without replacement */ investConfig: GqlPoolInvestConfig; name: Scalars['String']['output']; owner: Scalars['Bytes']['output']; poolTokens: Array; + protocolVersion: Scalars['Int']['output']; staking?: Maybe; symbol: Scalars['String']['output']; + tags?: Maybe>>; + /** @deprecated Use poolTokens instead */ tokens: Array; type: GqlPoolType; userBalance?: Maybe; + /** @deprecated use protocolVersion instead */ vaultVersion: Scalars['Int']['output']; version: Scalars['Int']['output']; + /** @deprecated Removed without replacement */ withdrawConfig: GqlPoolWithdrawConfig; }; @@ -647,38 +841,66 @@ export type GqlPoolMinimal = { address: Scalars['Bytes']['output']; /** Returns all pool tokens, including any nested tokens and phantom BPTs */ allTokens: Array; + /** List of categories assigned by the team based on external factors */ + categories?: Maybe>>; /** The chain on which the pool is deployed */ chain: GqlChain; /** The timestamp the pool was created. */ createTime: Scalars['Int']['output']; /** The decimals of the BPT, usually 18 */ decimals: Scalars['Int']['output']; - /** Only returns main tokens, also known as leave tokens. Wont return any nested BPTs. Used for displaying the tokens that the pool consists of. */ + /** Only returns main or underlying tokens, also known as leave tokens. Wont return any nested BPTs. Used for displaying the tokens that the pool consists of. */ displayTokens: Array; /** Dynamic data such as token balances, swap fees or volume */ dynamicData: GqlPoolDynamicData; /** The factory contract address from which the pool was created. */ factory?: Maybe; - /** The pool id. This is equal to the address for vaultVersion 3 pools */ + /** Whether at least one token in this pool is considered an ERC4626 token. */ + hasErc4626: Scalars['Boolean']['output']; + /** Hook assigned to a pool */ + hook?: Maybe; + /** The pool id. This is equal to the address for protocolVersion 3 pools */ id: Scalars['ID']['output']; + /** Pool is receiving rewards when liquidity tokens are staked */ + incentivized: Scalars['Boolean']['output']; /** The name of the pool as per contract */ name: Scalars['String']['output']; /** The wallet address of the owner of the pool. Pool owners can set certain properties like swapFees or AMP. */ owner?: Maybe; + /** The protocol version on which the pool is deployed, 1, 2 or 3 */ + protocolVersion: Scalars['Int']['output']; /** Staking options of this pool which emit additional rewards */ staking?: Maybe; /** The token symbol of the pool as per contract */ symbol: Scalars['String']['output']; + /** List of tags assigned by the team based on external factors */ + tags?: Maybe>>; /** The pool type, such as weighted, stable, etc. */ type: GqlPoolType; /** If a user address was provided in the query, the user balance is populated here */ userBalance?: Maybe; - /** The vault version on which the pool is deployed, 2 or 3 */ + /** + * The vault version on which the pool is deployed, 2 or 3 + * @deprecated use protocolVersion instead + */ vaultVersion: Scalars['Int']['output']; /** The version of the pool type. */ version: Scalars['Int']['output']; }; +/** Result of the poolReloadPools mutation */ +export type GqlPoolMutationResult = { + __typename?: 'GqlPoolMutationResult'; + /** The chain that was reloaded. */ + chain: GqlChain; + /** The error message */ + error?: Maybe; + /** Whether it was successful or not. */ + success: Scalars['Boolean']['output']; + /** The type of pools that were reloaded. */ + type: Scalars['String']['output']; +}; + export type GqlPoolNestedUnion = GqlPoolComposableStableNested; export type GqlPoolNestingType = @@ -710,10 +932,12 @@ export type GqlPoolSnapshot = { id: Scalars['ID']['output']; poolId: Scalars['String']['output']; sharePrice: Scalars['String']['output']; + surplus24h: Scalars['String']['output']; swapsCount: Scalars['String']['output']; timestamp: Scalars['Int']['output']; totalLiquidity: Scalars['String']['output']; totalShares: Scalars['String']['output']; + totalSurplus: Scalars['String']['output']; totalSwapFee: Scalars['String']['output']; totalSwapVolume: Scalars['String']['output']; volume24h: Scalars['String']['output']; @@ -732,6 +956,7 @@ export type GqlPoolStable = GqlPoolBase & { address: Scalars['Bytes']['output']; allTokens: Array; amp: Scalars['BigInt']['output']; + categories?: Maybe>>; chain: GqlChain; createTime: Scalars['Int']['output']; decimals: Scalars['Int']['output']; @@ -739,17 +964,23 @@ export type GqlPoolStable = GqlPoolBase & { dynamicData: GqlPoolDynamicData; factory?: Maybe; id: Scalars['ID']['output']; + /** @deprecated Removed without replacement */ investConfig: GqlPoolInvestConfig; name: Scalars['String']['output']; owner: Scalars['Bytes']['output']; poolTokens: Array; + protocolVersion: Scalars['Int']['output']; staking?: Maybe; symbol: Scalars['String']['output']; + tags?: Maybe>>; + /** @deprecated Use poolTokens instead */ tokens: Array; type: GqlPoolType; userBalance?: Maybe; + /** @deprecated use protocolVersion instead */ vaultVersion: Scalars['Int']['output']; version: Scalars['Int']['output']; + /** @deprecated Removed without replacement */ withdrawConfig: GqlPoolWithdrawConfig; }; @@ -766,12 +997,23 @@ export type GqlPoolStableComposablePoolData = { export type GqlPoolStaking = { __typename?: 'GqlPoolStaking'; address: Scalars['String']['output']; + aura?: Maybe; chain: GqlChain; farm?: Maybe; gauge?: Maybe; id: Scalars['ID']['output']; reliquary?: Maybe; type: GqlPoolStakingType; + vebal?: Maybe; +}; + +export type GqlPoolStakingAura = { + __typename?: 'GqlPoolStakingAura'; + apr: Scalars['Float']['output']; + auraPoolAddress: Scalars['String']['output']; + auraPoolId: Scalars['String']['output']; + id: Scalars['ID']['output']; + isShutdown: Scalars['Boolean']['output']; }; export type GqlPoolStakingFarmRewarder = { @@ -842,12 +1084,20 @@ export type GqlPoolStakingReliquaryFarmLevel = { }; export type GqlPoolStakingType = + | 'AURA' | 'FRESH_BEETS' | 'GAUGE' | 'MASTER_CHEF' | 'RELIQUARY' + | 'VEBAL' | '%future added value'; +export type GqlPoolStakingVebal = { + __typename?: 'GqlPoolStakingVebal'; + id: Scalars['ID']['output']; + vebalAddress: Scalars['String']['output']; +}; + export type GqlPoolSwap = { __typename?: 'GqlPoolSwap'; chain: GqlChain; @@ -863,21 +1113,75 @@ export type GqlPoolSwap = { valueUSD: Scalars['Float']['output']; }; +/** Represents an event that occurs when a swap is made in a pool using the CowAmm protocol. */ +export type GqlPoolSwapEventCowAmm = GqlPoolEvent & { + __typename?: 'GqlPoolSwapEventCowAmm'; + /** The block number of the event. */ + blockNumber: Scalars['Int']['output']; + /** The block timestamp of the event. */ + blockTimestamp: Scalars['Int']['output']; + /** The chain on which the event occurred. */ + chain: GqlChain; + /** The fee that this swap generated. */ + fee: GqlPoolEventAmount; + /** The unique identifier of the event. */ + id: Scalars['ID']['output']; + /** The log index of the event. */ + logIndex: Scalars['Int']['output']; + /** The pool ID associated with the event. */ + poolId: Scalars['String']['output']; + /** The sender of the event. */ + sender: Scalars['String']['output']; + /** The surplus generated by the swap. */ + surplus: GqlPoolEventAmount; + /** The timestamp of the event. */ + timestamp: Scalars['Int']['output']; + /** The token that was swapped in the event. */ + tokenIn: GqlPoolEventAmount; + /** The token that was swapped out in the event. */ + tokenOut: GqlPoolEventAmount; + /** The transaction hash of the event. */ + tx: Scalars['String']['output']; + /** The type of the event. */ + type: GqlPoolEventType; + /** The user address associated with the event. */ + userAddress: Scalars['String']['output']; + /** The value of the event in USD. */ + valueUSD: Scalars['Float']['output']; +}; + +/** Represents an event that occurs when a swap is made in a pool. */ export type GqlPoolSwapEventV3 = GqlPoolEvent & { __typename?: 'GqlPoolSwapEventV3'; + /** The block number of the event. */ blockNumber: Scalars['Int']['output']; + /** The block timestamp of the event. */ blockTimestamp: Scalars['Int']['output']; + /** The chain on which the event occurred. */ chain: GqlChain; + /** The fee that this swap generated. */ + fee: GqlPoolEventAmount; + /** The unique identifier of the event. */ id: Scalars['ID']['output']; + /** The log index of the event. */ logIndex: Scalars['Int']['output']; + /** The pool ID associated with the event. */ poolId: Scalars['String']['output']; + /** The sender of the event. */ sender: Scalars['String']['output']; + /** The timestamp of the event. */ timestamp: Scalars['Int']['output']; + /** The token that was swapped in the event. */ tokenIn: GqlPoolEventAmount; + /** The token that was swapped out in the event. */ tokenOut: GqlPoolEventAmount; + /** The transaction hash of the event. */ tx: Scalars['String']['output']; + /** The type of the event. */ type: GqlPoolEventType; + /** The user address associated with the event. */ userAddress: Scalars['String']['output']; + /** The value of the event in USD. */ valueUSD: Scalars['Float']['output']; }; @@ -940,19 +1244,45 @@ export type GqlPoolTokenComposableStable = GqlPoolTokenBase & { export type GqlPoolTokenComposableStableNestedUnion = GqlPoolToken; +/** + * All info on the pool token. It will also include the nested pool if the token is a BPT. It will only support 1 level of nesting. + * A second (unsupported) level of nesting is shown by having hasNestedPool = true but nestedPool = null. + */ export type GqlPoolTokenDetail = { __typename?: 'GqlPoolTokenDetail'; + /** Address of the pool token. */ address: Scalars['String']['output']; + /** Balance of the pool token inside the pool. */ balance: Scalars['BigDecimal']['output']; + /** USD Balance of the pool token. */ + balanceUSD: Scalars['BigDecimal']['output']; + /** Decimals of the pool token. */ decimals: Scalars['Int']['output']; + /** Indicates whether this token is a BPT and therefor has a nested pool. */ hasNestedPool: Scalars['Boolean']['output']; + /** Id of the token. A combination of pool id and token address. */ id: Scalars['ID']['output']; + /** Index of the pool token in the pool as returned by the vault. */ index: Scalars['Int']['output']; + /** Whether the token is in the allow list. */ + isAllowed: Scalars['Boolean']['output']; + /** Whether the token is considered an ERC4626 token. */ + isErc4626: Scalars['Boolean']['output']; + /** Name of the pool token. */ name: Scalars['String']['output']; + /** Additional data for the nested pool if the token is a BPT. Null otherwise. */ nestedPool?: Maybe; + /** If it is an appreciating token, it shows the current price rate. 1 otherwise. */ priceRate: Scalars['BigDecimal']['output']; + /** The address of the price rate provider. */ priceRateProvider?: Maybe; + /** Additional data for the price rate provider, such as reviews or warnings. */ + priceRateProviderData?: Maybe; + /** Symbol of the pool token. */ symbol: Scalars['String']['output']; + /** If it is an Erc4262, this will be the underlying token if present in the API. */ + underlyingToken?: Maybe; + /** The weight of the token in the pool if it is a weighted pool, null otherwise */ weight?: Maybe; }; @@ -971,6 +1301,7 @@ export type GqlPoolTokenExpanded = { address: Scalars['String']['output']; decimals: Scalars['Int']['output']; id: Scalars['ID']['output']; + isErc4626: Scalars['Boolean']['output']; isMainToken: Scalars['Boolean']['output']; isNested: Scalars['Boolean']['output']; isPhantomBpt: Scalars['Boolean']['output']; @@ -984,6 +1315,7 @@ export type GqlPoolTokenUnion = GqlPoolToken | GqlPoolTokenComposableStable; /** Supported pool types */ export type GqlPoolType = | 'COMPOSABLE_STABLE' + | 'COW_AMM' | 'ELEMENT' | 'FX' | 'GYRO' @@ -1003,10 +1335,8 @@ export type GqlPoolUnion = GqlPoolComposableStable | GqlPoolElement | GqlPoolFx /** If a user address was provided in the query, the user balance is populated here */ export type GqlPoolUserBalance = { __typename?: 'GqlPoolUserBalance'; - /** The staked balance in either a gauge or farm as float. */ - stakedBalance: Scalars['AmountHumanReadable']['output']; - /** The staked balance in either a gauge or farm in USD as float. */ - stakedBalanceUsd: Scalars['Float']['output']; + /** The staked BPT balances of the user. */ + stakedBalances: Array; /** Total balance (wallet + staked) as float */ totalBalance: Scalars['AmountHumanReadable']['output']; /** Total balance (wallet + staked) in USD as float */ @@ -1027,6 +1357,7 @@ export type GqlPoolWeighted = GqlPoolBase & { __typename?: 'GqlPoolWeighted'; address: Scalars['Bytes']['output']; allTokens: Array; + categories?: Maybe>>; chain: GqlChain; createTime: Scalars['Int']['output']; decimals: Scalars['Int']['output']; @@ -1034,19 +1365,27 @@ export type GqlPoolWeighted = GqlPoolBase & { dynamicData: GqlPoolDynamicData; factory?: Maybe; id: Scalars['ID']['output']; + /** @deprecated Removed without replacement */ investConfig: GqlPoolInvestConfig; name: Scalars['String']['output']; nestingType: GqlPoolNestingType; owner: Scalars['Bytes']['output']; poolTokens: Array; + protocolVersion: Scalars['Int']['output']; staking?: Maybe; symbol: Scalars['String']['output']; - /** All tokens of the pool. If it is a nested pool, the nested pool is expanded with its own tokens again. */ + tags?: Maybe>>; + /** + * All tokens of the pool. If it is a nested pool, the nested pool is expanded with its own tokens again. + * @deprecated Use poolTokens instead + */ tokens: Array; type: GqlPoolType; userBalance?: Maybe; + /** @deprecated use protocolVersion instead */ vaultVersion: Scalars['Int']['output']; version: Scalars['Int']['output']; + /** @deprecated Removed without replacement */ withdrawConfig: GqlPoolWithdrawConfig; }; @@ -1073,6 +1412,36 @@ export type GqlPriceImpact = { priceImpact?: Maybe; }; +/** Represents the data of a price rate provider */ +export type GqlPriceRateProviderData = { + __typename?: 'GqlPriceRateProviderData'; + /** The address of the price rate provider */ + address: Scalars['String']['output']; + /** The factory used to create the price rate provider, if applicable */ + factory?: Maybe; + /** The name of the price rate provider */ + name?: Maybe; + /** The filename of the review of the price rate provider */ + reviewFile?: Maybe; + /** Indicates if the price rate provider has been reviewed */ + reviewed: Scalars['Boolean']['output']; + /** A summary of the price rate provider, usually just says safe or unsafe */ + summary?: Maybe; + /** Upgradeable components of the price rate provider */ + upgradeableComponents?: Maybe>>; + /** Warnings associated with the price rate provider */ + warnings?: Maybe>; +}; + +/** Represents an upgradeable component of a price rate provider */ +export type GqlPriceRateProviderUpgradeableComponent = { + __typename?: 'GqlPriceRateProviderUpgradeableComponent'; + /** The entry point / proxy of the upgradeable component */ + entryPoint: Scalars['String']['output']; + /** Indicates if the implementation of the component has been reviewed */ + implementationReviewed: Scalars['String']['output']; +}; + export type GqlProtocolMetricsAggregated = { __typename?: 'GqlProtocolMetricsAggregated'; chains: Array; @@ -1252,6 +1621,8 @@ export type GqlSorGetSwapPaths = { paths: Array; /** Price impact of the path */ priceImpact: GqlPriceImpact; + /** The version of the protocol these paths are from */ + protocolVersion: Scalars['Int']['output']; /** The return amount in human form. Return amount is either tokenOutAmount (if swapType is exactIn) or tokenInAmount (if swapType is exactOut) */ returnAmount: Scalars['AmountHumanReadable']['output']; /** The return amount in a raw form */ @@ -1276,7 +1647,10 @@ export type GqlSorGetSwapPaths = { tokenOut: Scalars['String']['output']; /** The amount of tokenOut in human form */ tokenOutAmount: Scalars['AmountHumanReadable']['output']; - /** The version of the vault these paths are from */ + /** + * The version of the vault these paths are from + * @deprecated Use protocolVersion instead + */ vaultVersion: Scalars['Int']['output']; }; @@ -1308,13 +1682,20 @@ export type GqlSorPath = { __typename?: 'GqlSorPath'; /** Input amount of this path in scaled form */ inputAmountRaw: Scalars['String']['output']; + /** A sorted list of booleans that indicate if the respective pool is a buffer */ + isBuffer: Array>; /** Output amount of this path in scaled form */ outputAmountRaw: Scalars['String']['output']; /** A sorted list of pool ids that are used in this path */ pools: Array>; + /** The version of the protocol these paths are from */ + protocolVersion: Scalars['Int']['output']; /** A sorted list of tokens that are ussed in this path */ tokens: Array>; - /** Vault version of this path. */ + /** + * Vault version of this path. + * @deprecated Use protocolVersion instead + */ vaultVersion: Scalars['Int']['output']; }; @@ -1391,21 +1772,44 @@ export type GqlSwapCallDataInput = { slippagePercentage: Scalars['String']['input']; }; +/** Represents a token */ export type GqlToken = { __typename?: 'GqlToken'; + /** The address of the token */ address: Scalars['String']['output']; + /** The chain of the token */ chain: GqlChain; + /** The chain ID of the token */ chainId: Scalars['Int']['output']; + /** The coingecko ID for this token, if present */ + coingeckoId?: Maybe; + /** The number of decimal places for the token */ decimals: Scalars['Int']['output']; + /** The description of the token */ description?: Maybe; + /** The Discord URL of the token */ discordUrl?: Maybe; + /** Whether the token is considered an ERC4626 token. */ + isErc4626: Scalars['Boolean']['output']; + /** The logo URI of the token */ logoURI?: Maybe; + /** The name of the token */ name: Scalars['String']['output']; + /** The rate provider data for the token */ + priceRateProviderData?: Maybe; + /** The priority of the token, can be used for sorting. */ priority: Scalars['Int']['output']; + /** The rate provider data for the token */ + rateProviderData?: Maybe; + /** The symbol of the token */ symbol: Scalars['String']['output']; + /** The Telegram URL of the token */ telegramUrl?: Maybe; + /** Indicates if the token is tradable */ tradable: Scalars['Boolean']['output']; + /** The Twitter username of the token */ twitterUsername?: Maybe; + /** The website URL of the token */ websiteUrl?: Maybe; }; @@ -1443,25 +1847,52 @@ export type GqlTokenData = { websiteUrl?: Maybe; }; +/** Represents additional data for a token */ export type GqlTokenDynamicData = { __typename?: 'GqlTokenDynamicData'; + /** The all-time high price of the token */ ath: Scalars['Float']['output']; + /** The all-time low price of the token */ atl: Scalars['Float']['output']; + /** The fully diluted valuation of the token */ fdv?: Maybe; + /** The highest price in the last 24 hours */ high24h: Scalars['Float']['output']; + /** The unique identifier of the dynamic data */ id: Scalars['String']['output']; + /** The lowest price in the last 24 hours */ low24h: Scalars['Float']['output']; + /** The market capitalization of the token */ marketCap?: Maybe; + /** The current price of the token */ price: Scalars['Float']['output']; + /** The price change in the last 24 hours */ priceChange24h: Scalars['Float']['output']; + /** The percentage price change in the last 7 days */ priceChangePercent7d?: Maybe; + /** The percentage price change in the last 14 days */ priceChangePercent14d?: Maybe; + /** The percentage price change in the last 24 hours */ priceChangePercent24h: Scalars['Float']['output']; + /** The percentage price change in the last 30 days */ priceChangePercent30d?: Maybe; + /** The address of the token */ tokenAddress: Scalars['String']['output']; + /** The timestamp when the data was last updated */ updatedAt: Scalars['String']['output']; }; +/** Result of the poolReloadPools mutation */ +export type GqlTokenMutationResult = { + __typename?: 'GqlTokenMutationResult'; + /** The chain that was reloaded. */ + chain: GqlChain; + /** The error message */ + error?: Maybe; + /** Whether it was successful or not. */ + success: Scalars['Boolean']['output']; +}; + export type GqlTokenPrice = { __typename?: 'GqlTokenPrice'; address: Scalars['String']['output']; @@ -1503,46 +1934,119 @@ export type GqlUserPoolBalance = { walletBalance: Scalars['AmountHumanReadable']['output']; }; +export type GqlUserStakedBalance = { + __typename?: 'GqlUserStakedBalance'; + /** The staked BPT balance as float. */ + balance: Scalars['AmountHumanReadable']['output']; + /** The steaked BPT balance in USD as float. */ + balanceUsd: Scalars['Float']['output']; + /** The id of the staking to match with GqlPoolStaking.id. */ + stakingId: Scalars['String']['output']; + /** The staking type (Gauge, farm, aura, etc.) in which this balance is staked. */ + stakingType: GqlPoolStakingType; +}; + export type GqlUserSwapVolumeFilter = { poolIdIn?: InputMaybe>; tokenInIn?: InputMaybe>; tokenOutIn?: InputMaybe>; }; +export type GqlVeBalBalance = { + __typename?: 'GqlVeBalBalance'; + balance: Scalars['AmountHumanReadable']['output']; + chain: GqlChain; + locked: Scalars['AmountHumanReadable']['output']; + lockedUsd: Scalars['AmountHumanReadable']['output']; +}; + export type GqlVeBalUserData = { __typename?: 'GqlVeBalUserData'; balance: Scalars['AmountHumanReadable']['output']; + locked: Scalars['AmountHumanReadable']['output']; + lockedUsd: Scalars['AmountHumanReadable']['output']; rank?: Maybe; }; +/** The Gauge that can be voted on through veBAL and that will ultimately receive the rewards. */ export type GqlVotingGauge = { __typename?: 'GqlVotingGauge'; + /** The timestamp the gauge was added. */ addedTimestamp?: Maybe; + /** The address of the root gauge on Ethereum mainnet. */ address: Scalars['Bytes']['output']; + /** The address of the child gauge on the specific chain. */ childGaugeAddress?: Maybe; + /** Whether the gauge is killed or not. */ isKilled: Scalars['Boolean']['output']; + /** The relative weight the gauge received this epoch (not more than 1.0). */ + relativeWeight: Scalars['String']['output']; + /** The relative weight cap. 1.0 for uncapped. */ relativeWeightCap?: Maybe; }; +/** A token inside of a pool with a voting gauge. */ export type GqlVotingGaugeToken = { __typename?: 'GqlVotingGaugeToken'; + /** The address of the token. */ address: Scalars['String']['output']; + /** The URL to the token logo. */ logoURI: Scalars['String']['output']; + /** The symbol of the token. */ symbol: Scalars['String']['output']; + /** If it is a weighted pool, the weigh of the token is shown here in %. 0.5 = 50%. */ weight?: Maybe; }; +/** The pool that can be voted on through veBAL */ export type GqlVotingPool = { __typename?: 'GqlVotingPool'; + /** The address of the pool. */ address: Scalars['Bytes']['output']; + /** The chain this pool is on. */ chain: GqlChain; + /** The gauge that is connected to the pool and that will receive the rewards. */ gauge: GqlVotingGauge; + /** Pool ID */ id: Scalars['ID']['output']; + /** The symbol of the pool. */ symbol: Scalars['String']['output']; + /** The tokens inside the pool. */ tokens: Array; + /** The type of the pool. */ type: GqlPoolType; }; +/** Hook data */ +export type Hook = { + __typename?: 'Hook'; + address: Scalars['String']['output']; + chain: GqlChain; + /** Data points changing over time */ + dynamicData?: Maybe; + /** True when hook can change the amounts send to the vault. Necessary to deduct the fees. */ + enableHookAdjustedAmounts: Scalars['Boolean']['output']; + /** List of pools using the hook */ + poolsIds?: Maybe>>; + shouldCallAfterAddLiquidity: Scalars['Boolean']['output']; + shouldCallAfterInitialize: Scalars['Boolean']['output']; + shouldCallAfterRemoveLiquidity: Scalars['Boolean']['output']; + shouldCallAfterSwap: Scalars['Boolean']['output']; + shouldCallBeforeAddLiquidity: Scalars['Boolean']['output']; + shouldCallBeforeInitialize: Scalars['Boolean']['output']; + shouldCallBeforeRemoveLiquidity: Scalars['Boolean']['output']; + shouldCallBeforeSwap: Scalars['Boolean']['output']; + shouldCallComputeDynamicSwapFee: Scalars['Boolean']['output']; +}; + +/** Collection of hook specific data. Percentage format is 0.01 -> 0.01%. */ +export type HookData = { + __typename?: 'HookData'; + addLiquidityFeePercentage?: Maybe; + removeLiquidityFeePercentage?: Maybe; + swapFeePercentage?: Maybe; +}; + export type Mutation = { __typename?: 'Mutation'; beetsPoolLoadReliquarySnapshotsForAllFarms: Scalars['String']['output']; @@ -1559,7 +2063,9 @@ export type Mutation = { poolLoadSnapshotsForPools: Scalars['String']['output']; poolReloadAllPoolAprs: Scalars['String']['output']; poolReloadAllTokenNestedPoolIds: Scalars['String']['output']; + poolReloadPools: Array; poolReloadStakingForAllPools: Scalars['String']['output']; + poolSyncAllCowSnapshots: Array; poolSyncAllPoolsFromSubgraph: Array; poolSyncLatestSnapshotsForAllPools: Scalars['String']['output']; poolSyncNewPoolsFromSubgraph: Array; @@ -1579,6 +2085,7 @@ export type Mutation = { sftmxSyncWithdrawalRequests: Scalars['String']['output']; tokenDeleteTokenType: Scalars['String']['output']; tokenReloadAllTokenTypes: Scalars['String']['output']; + tokenReloadErc4626Tokens: Array; tokenReloadTokenPrices?: Maybe; tokenSyncLatestFxPrices: Scalars['String']['output']; tokenSyncTokenDefinitions: Scalars['String']['output']; @@ -1625,13 +2132,23 @@ export type MutationPoolReloadAllPoolAprsArgs = { }; +export type MutationPoolReloadPoolsArgs = { + chains: Array; +}; + + export type MutationPoolReloadStakingForAllPoolsArgs = { stakingTypes: Array; }; +export type MutationPoolSyncAllCowSnapshotsArgs = { + chains: Array; +}; + + export type MutationPoolSyncLatestSnapshotsForAllPoolsArgs = { - daysToSync?: InputMaybe; + chain: GqlChain; }; @@ -1651,6 +2168,11 @@ export type MutationTokenDeleteTokenTypeArgs = { }; +export type MutationTokenReloadErc4626TokensArgs = { + chains: Array; +}; + + export type MutationTokenReloadTokenPricesArgs = { chains: Array; }; @@ -1684,18 +2206,29 @@ export type Query = { blocksGetBlocksPerSecond: Scalars['Float']['output']; blocksGetBlocksPerYear: Scalars['Float']['output']; contentGetNewsItems: Array; + /** Returns list of hooks. */ + hooks?: Maybe>; latestSyncedBlocks: GqlLatestSyncedBlocks; /** Getting swap, add and remove events with paging */ poolEvents: Array; - /** Will de deprecated in favor of poolEvents */ + /** + * Will de deprecated in favor of poolEvents + * @deprecated Use poolEvents instead + */ poolGetBatchSwaps: Array; /** Getting swap, add and remove events with range */ poolGetEvents: Array; - /** Will de deprecated in favor of poolGetFeaturedPools */ + /** + * Will de deprecated in favor of poolGetFeaturedPools + * @deprecated Use poolGetFeaturedPools instead + */ poolGetFeaturedPoolGroups: Array; /** Returns the list of featured pools for chains */ poolGetFeaturedPools: Array; - /** Will de deprecated in favor of poolEvents */ + /** + * Will de deprecated in favor of poolEvents + * @deprecated Use poolEvents instead + */ poolGetJoinExits: Array; /** Returns one pool. If a user address is provided, the user balances for the given pool will also be returned. */ poolGetPool: GqlPoolBase; @@ -1705,7 +2238,10 @@ export type Query = { poolGetPoolsCount: Scalars['Int']['output']; /** Gets all the snapshots for a given pool on a chain for a certain range */ poolGetSnapshots: Array; - /** Will de deprecated in favor of poolEvents */ + /** + * Will de deprecated in favor of poolEvents + * @deprecated Use poolEvents instead + */ poolGetSwaps: Array; protocolMetricsAggregated: GqlProtocolMetricsAggregated; protocolMetricsChain: GqlProtocolMetricsChain; @@ -1719,16 +2255,42 @@ export type Query = { sorGetSwapPaths: GqlSorGetSwapPaths; /** Get swap quote from the SOR, queries both the old and new SOR */ sorGetSwaps: GqlSorGetSwapsResponse; + /** + * Returns the candlestick chart data for a token for a given range. + * @deprecated Use tokenGetHistoricalPrices instead + */ tokenGetCandlestickChartData: Array; + /** Returns all current prices for allowed tokens for a given chain or chains */ tokenGetCurrentPrices: Array; + /** Returns the historical prices for a given set of tokens for a given chain and range */ tokenGetHistoricalPrices: Array; + /** + * DEPRECATED: Returns pricing data for a given token for a given range + * @deprecated Use tokenGetHistoricalPrices instead + */ tokenGetPriceChartData: Array; + /** + * Returns the price of either BAL or BEETS depending on chain + * @deprecated Use tokenGetTokensDynamicData instead + */ tokenGetProtocolTokenPrice: Scalars['AmountHumanReadable']['output']; + /** Returns the price of a token priced in another token for a given range. */ tokenGetRelativePriceChartData: Array; + /** + * Returns meta data for a given token such as description, website, etc. + * @deprecated Use tokenGetTokens instead + */ tokenGetTokenData?: Maybe; + /** Returns dynamic data of a token such as price, market cap, etc. */ tokenGetTokenDynamicData?: Maybe; + /** Returns all allowed tokens for a given chain or chains */ tokenGetTokens: Array; + /** + * Returns meta data for a given set of tokens such as description, website, etc. + * @deprecated Use tokenGetTokens instead + */ tokenGetTokensData: Array; + /** Returns dynamic data of a set of tokens such as price, market cap, etc. */ tokenGetTokensDynamicData: Array; userGetFbeetsBalance: GqlUserFbeetsBalance; userGetPoolBalances: Array; @@ -1740,6 +2302,8 @@ export type Query = { veBalGetTotalSupply: Scalars['AmountHumanReadable']['output']; veBalGetUser: GqlVeBalUserData; veBalGetUserBalance: Scalars['AmountHumanReadable']['output']; + veBalGetUserBalances: Array; + /** Returns all pools with veBAL gauges that can be voted on. */ veBalGetVotingList: Array; }; @@ -1755,10 +2319,15 @@ export type QueryContentGetNewsItemsArgs = { }; +export type QueryHooksArgs = { + chain?: InputMaybe; +}; + + export type QueryPoolEventsArgs = { first?: InputMaybe; skip?: InputMaybe; - where: GqlPoolEventsFilter; + where?: InputMaybe; }; @@ -1864,7 +2433,7 @@ export type QuerySorGetSwapPathsArgs = { swapType: GqlSorSwapType; tokenIn: Scalars['String']['input']; tokenOut: Scalars['String']['input']; - useVaultVersion?: InputMaybe; + useProtocolVersion?: InputMaybe; }; @@ -1974,6 +2543,29 @@ export type QueryUserGetSwapsArgs = { skip?: InputMaybe; }; + +export type QueryVeBalGetTotalSupplyArgs = { + chain?: InputMaybe; +}; + + +export type QueryVeBalGetUserArgs = { + address: Scalars['String']['input']; + chain?: InputMaybe; +}; + + +export type QueryVeBalGetUserBalanceArgs = { + address?: InputMaybe; + chain?: InputMaybe; +}; + + +export type QueryVeBalGetUserBalancesArgs = { + address: Scalars['String']['input']; + chains?: InputMaybe>; +}; + export type Token = { __typename?: 'Token'; address: Scalars['String']['output']; diff --git a/packages/gql/src/balancer-api-v3/__generated__/Base.server.ts b/packages/gql/src/balancer-api-v3/__generated__/Base.server.ts index 5df748271..3527d6e6a 100644 --- a/packages/gql/src/balancer-api-v3/__generated__/Base.server.ts +++ b/packages/gql/src/balancer-api-v3/__generated__/Base.server.ts @@ -44,8 +44,10 @@ export type GqlChain = | 'AVALANCHE' | 'BASE' | 'FANTOM' + | 'FRAXTAL' | 'GNOSIS' | 'MAINNET' + | 'MODE' | 'OPTIMISM' | 'POLYGON' | 'SEPOLIA' @@ -128,41 +130,73 @@ export type GqlLatestSyncedBlocks = { userWalletSyncBlock: Scalars['BigInt']['output']; }; +/** All info on the nested pool if the token is a BPT. It will only support 1 level of nesting. */ export type GqlNestedPool = { __typename?: 'GqlNestedPool'; + /** Address of the pool. */ address: Scalars['Bytes']['output']; + /** Price rate of the Balancer Pool Token (BPT). */ bptPriceRate: Scalars['BigDecimal']['output']; + /** Timestamp of when the pool was created. */ createTime: Scalars['Int']['output']; + /** Address of the factory contract that created the pool, if applicable. */ factory?: Maybe; + /** Unique identifier of the pool. */ id: Scalars['ID']['output']; + /** Name of the pool. */ name: Scalars['String']['output']; + /** Total liquidity of the parent pool in the nested pool in USD. */ nestedLiquidity: Scalars['BigDecimal']['output']; + /** Percentage of the parents pool shares inside the nested pool. */ nestedPercentage: Scalars['BigDecimal']['output']; + /** Number of shares of the parent pool in the nested pool. */ nestedShares: Scalars['BigDecimal']['output']; + /** Address of the pool's owner. */ owner: Scalars['Bytes']['output']; + /** Fee charged for swapping tokens in the pool as %. 0.01 -> 0.01% */ swapFee: Scalars['BigDecimal']['output']; + /** Symbol of the pool. */ symbol: Scalars['String']['output']; + /** List of all tokens in the pool. */ tokens: Array; + /** Total liquidity in the pool in USD. */ totalLiquidity: Scalars['BigDecimal']['output']; + /** Total number of shares in the pool. */ totalShares: Scalars['BigDecimal']['output']; + /** Type of the pool. */ type: GqlPoolType; + /** Version of the pool. */ version: Scalars['Int']['output']; }; +/** Represents an event that occurs when liquidity is added or removed from a pool. */ export type GqlPoolAddRemoveEventV3 = GqlPoolEvent & { __typename?: 'GqlPoolAddRemoveEventV3'; + /** The block number of the event. */ blockNumber: Scalars['Int']['output']; + /** The block timestamp of the event. */ blockTimestamp: Scalars['Int']['output']; + /** The chain on which the event occurred. */ chain: GqlChain; + /** The unique identifier of the event. */ id: Scalars['ID']['output']; + /** The log index of the event. */ logIndex: Scalars['Int']['output']; + /** The pool ID associated with the event. */ poolId: Scalars['String']['output']; + /** The sender of the event. */ sender: Scalars['String']['output']; + /** The timestamp of the event. */ timestamp: Scalars['Int']['output']; + /** The tokens involved in the event. Ordered by poolToken index. */ tokens: Array; + /** The transaction hash of the event. */ tx: Scalars['String']['output']; + /** The type of the event. */ type: GqlPoolEventType; + /** The user address associated with the event. */ userAddress: Scalars['String']['output']; + /** The value of the event in USD. */ valueUSD: Scalars['Float']['output']; }; @@ -176,6 +210,43 @@ export type GqlPoolApr = { thirdPartyApr: GqlPoolAprValue; }; +/** All APRs for a pool */ +export type GqlPoolAprItem = { + __typename?: 'GqlPoolAprItem'; + /** The APR value in % -> 0.2 = 0.2% */ + apr: Scalars['Float']['output']; + /** The id of the APR item */ + id: Scalars['ID']['output']; + /** The title of the APR item, a human readable form */ + title: Scalars['String']['output']; + /** Specific type of this APR */ + type: GqlPoolAprItemType; +}; + +/** Enum representing the different types of the APR in a pool. */ +export type GqlPoolAprItemType = + /** APR that pools earns when BPT is staked on AURA. */ + | 'AURA' + /** Represents the yield from an IB (Interest-Bearing) asset APR in a pool. */ + | 'IB_YIELD' + /** APR in a pool that can be earned through locking, i.e. veBAL */ + | 'LOCKING' + /** Rewards distributed by merkl.xyz */ + | 'MERKL' + /** Represents if the APR items comes from a nested pool. */ + | 'NESTED' + /** Staking reward APR in a pool, i.e. BAL or BEETS. */ + | 'STAKING' + /** APR boost that can be earned, i.e. via veBAL or maBEETS. */ + | 'STAKING_BOOST' + /** Cow AMM specific APR */ + | 'SURPLUS' + /** Represents the swap fee APR in a pool. */ + | 'SWAP_FEE' + /** APR that can be earned thourgh voting, i.e. gauge votes */ + | 'VOTING' + | '%future added value'; + export type GqlPoolAprRange = { __typename?: 'GqlPoolAprRange'; max: Scalars['BigDecimal']['output']; @@ -193,23 +264,34 @@ export type GqlPoolAprValue = GqlPoolAprRange | GqlPoolAprTotal; export type GqlPoolBase = { /** The contract address of the pool. */ address: Scalars['Bytes']['output']; - /** Returns all pool tokens, including any nested tokens and phantom BPTs on one level. */ + /** + * Returns all pool tokens, including any nested tokens and phantom BPTs on one level. + * @deprecated Use poolTokens instead + */ allTokens: Array; + /** List of categories assigned by the team based on external factors */ + categories?: Maybe>>; /** The chain on which the pool is deployed */ chain: GqlChain; /** The timestamp the pool was created. */ createTime: Scalars['Int']['output']; /** The decimals of the BPT, usually 18 */ decimals: Scalars['Int']['output']; - /** Only returns main tokens, also known as leave tokens. Wont return any nested BPTs. Used for displaying the tokens that the pool consists of. */ + /** + * Only returns main tokens, also known as leave tokens. Wont return any nested BPTs. Used for displaying the tokens that the pool consists of. + * @deprecated Use poolTokens instead + */ displayTokens: Array; /** Dynamic data such as token balances, swap fees or volume */ dynamicData: GqlPoolDynamicData; /** The factory contract address from which the pool was created. */ factory?: Maybe; - /** The pool id. This is equal to the address for vaultVersion 3 pools */ + /** The pool id. This is equal to the address for protocolVersion 3 pools */ id: Scalars['ID']['output']; - /** Deprecated */ + /** + * Deprecated + * @deprecated Removed without replacement + */ investConfig: GqlPoolInvestConfig; /** The name of the pool as per contract */ name: Scalars['String']['output']; @@ -217,19 +299,29 @@ export type GqlPoolBase = { owner?: Maybe; /** Returns all pool tokens, including BPTs and nested pools if there are any. Only one nested level deep. */ poolTokens: Array; + /** The protocol version on which the pool is deployed, 1, 2 or 3 */ + protocolVersion: Scalars['Int']['output']; /** Staking options of this pool which emit additional rewards */ staking?: Maybe; /** The token symbol of the pool as per contract */ symbol: Scalars['String']['output']; + /** List of tags assigned by the team based on external factors */ + tags?: Maybe>>; /** The pool type, such as weighted, stable, etc. */ type: GqlPoolType; /** If a user address was provided in the query, the user balance is populated here */ userBalance?: Maybe; - /** The vault version on which the pool is deployed, 2 or 3 */ + /** + * The vault version on which the pool is deployed, 2 or 3 + * @deprecated use protocolVersion instead + */ vaultVersion: Scalars['Int']['output']; /** The version of the pool type. */ version: Scalars['Int']['output']; - /** Deprecated */ + /** + * Deprecated + * @deprecated Removed without replacement + */ withdrawConfig: GqlPoolWithdrawConfig; }; @@ -276,6 +368,7 @@ export type GqlPoolComposableStable = GqlPoolBase & { allTokens: Array; amp: Scalars['BigInt']['output']; bptPriceRate: Scalars['BigDecimal']['output']; + categories?: Maybe>>; chain: GqlChain; createTime: Scalars['Int']['output']; decimals: Scalars['Int']['output']; @@ -283,18 +376,27 @@ export type GqlPoolComposableStable = GqlPoolBase & { dynamicData: GqlPoolDynamicData; factory?: Maybe; id: Scalars['ID']['output']; + /** @deprecated Removed without replacement */ investConfig: GqlPoolInvestConfig; name: Scalars['String']['output']; nestingType: GqlPoolNestingType; owner: Scalars['Bytes']['output']; poolTokens: Array; + protocolVersion: Scalars['Int']['output']; staking?: Maybe; symbol: Scalars['String']['output']; + tags?: Maybe>>; + /** + * All tokens of the pool. If it is a nested pool, the nested pool is expanded with its own tokens again. + * @deprecated Use poolTokens instead + */ tokens: Array; type: GqlPoolType; userBalance?: Maybe; + /** @deprecated use protocolVersion instead */ vaultVersion: Scalars['Int']['output']; version: Scalars['Int']['output']; + /** @deprecated Removed without replacement */ withdrawConfig: GqlPoolWithdrawConfig; }; @@ -303,6 +405,7 @@ export type GqlPoolComposableStableNested = { address: Scalars['Bytes']['output']; amp: Scalars['BigInt']['output']; bptPriceRate: Scalars['BigDecimal']['output']; + categories?: Maybe>>; createTime: Scalars['Int']['output']; factory?: Maybe; id: Scalars['ID']['output']; @@ -311,6 +414,8 @@ export type GqlPoolComposableStableNested = { owner: Scalars['Bytes']['output']; swapFee: Scalars['BigDecimal']['output']; symbol: Scalars['String']['output']; + tags?: Maybe>>; + /** @deprecated Use poolTokens instead */ tokens: Array; totalLiquidity: Scalars['BigDecimal']['output']; totalShares: Scalars['BigDecimal']['output']; @@ -320,7 +425,13 @@ export type GqlPoolComposableStableNested = { export type GqlPoolDynamicData = { __typename?: 'GqlPoolDynamicData'; + /** Protocol and pool creator fees combined */ + aggregateSwapFee: Scalars['BigDecimal']['output']; + /** Protocol and pool creator fees combined */ + aggregateYieldFee: Scalars['BigDecimal']['output']; + /** @deprecated Use aprItems instead */ apr: GqlPoolApr; + aprItems: Array; fees24h: Scalars['BigDecimal']['output']; fees24hAth: Scalars['BigDecimal']['output']; fees24hAthTimestamp: Scalars['Int']['output']; @@ -328,6 +439,7 @@ export type GqlPoolDynamicData = { fees24hAtlTimestamp: Scalars['Int']['output']; fees48h: Scalars['BigDecimal']['output']; holdersCount: Scalars['BigInt']['output']; + /** True for bricked pools */ isInRecoveryMode: Scalars['Boolean']['output']; isPaused: Scalars['Boolean']['output']; lifetimeSwapFees: Scalars['BigDecimal']['output']; @@ -337,6 +449,11 @@ export type GqlPoolDynamicData = { sharePriceAthTimestamp: Scalars['Int']['output']; sharePriceAtl: Scalars['BigDecimal']['output']; sharePriceAtlTimestamp: Scalars['Int']['output']; + /** CowAmm specific, equivalent of swap fees */ + surplus24h: Scalars['BigDecimal']['output']; + /** CowAmm specific, equivalent of swap fees */ + surplus48h: Scalars['BigDecimal']['output']; + /** Disabled for bricked pools */ swapEnabled: Scalars['Boolean']['output']; swapFee: Scalars['BigDecimal']['output']; swapsCount: Scalars['BigInt']['output']; @@ -363,6 +480,7 @@ export type GqlPoolElement = GqlPoolBase & { address: Scalars['Bytes']['output']; allTokens: Array; baseToken: Scalars['Bytes']['output']; + categories?: Maybe>>; chain: GqlChain; createTime: Scalars['Int']['output']; decimals: Scalars['Int']['output']; @@ -370,34 +488,53 @@ export type GqlPoolElement = GqlPoolBase & { dynamicData: GqlPoolDynamicData; factory?: Maybe; id: Scalars['ID']['output']; + /** @deprecated Removed without replacement */ investConfig: GqlPoolInvestConfig; name: Scalars['String']['output']; owner: Scalars['Bytes']['output']; poolTokens: Array; principalToken: Scalars['Bytes']['output']; + protocolVersion: Scalars['Int']['output']; staking?: Maybe; symbol: Scalars['String']['output']; + tags?: Maybe>>; + /** @deprecated Use poolTokens instead */ tokens: Array; type: GqlPoolType; unitSeconds: Scalars['BigInt']['output']; userBalance?: Maybe; + /** @deprecated use protocolVersion instead */ vaultVersion: Scalars['Int']['output']; version: Scalars['Int']['output']; + /** @deprecated Removed without replacement */ withdrawConfig: GqlPoolWithdrawConfig; }; +/** Represents an event that occurs in a pool. */ export type GqlPoolEvent = { + /** The block number of the event. */ blockNumber: Scalars['Int']['output']; + /** The block timestamp of the event. */ blockTimestamp: Scalars['Int']['output']; + /** The chain on which the event occurred. */ chain: GqlChain; + /** The unique identifier of the event. */ id: Scalars['ID']['output']; + /** The log index of the event. */ logIndex: Scalars['Int']['output']; + /** The pool ID associated with the event. */ poolId: Scalars['String']['output']; + /** The sender of the event. */ sender: Scalars['String']['output']; + /** The timestamp of the event. */ timestamp: Scalars['Int']['output']; + /** The transaction hash of the event. */ tx: Scalars['String']['output']; + /** The type of the event. */ type: GqlPoolEventType; + /** The user address associated with the event. */ userAddress: Scalars['String']['output']; + /** The USD value of this event. */ valueUSD: Scalars['Float']['output']; }; @@ -421,11 +558,15 @@ export type GqlPoolEventsDataRange = | '%future added value'; export type GqlPoolEventsFilter = { - chain: GqlChain; - poolId: Scalars['String']['input']; + chainIn?: InputMaybe>>; + poolIdIn?: InputMaybe>>; range?: InputMaybe; typeIn?: InputMaybe>>; userAddress?: InputMaybe; + /** USD value of the event */ + valueUSD_gt?: InputMaybe; + /** USD value of the event */ + valueUSD_gte?: InputMaybe; }; export type GqlPoolFeaturedPool = { @@ -447,8 +588,6 @@ export type GqlPoolFeaturedPoolGroup = { export type GqlPoolFeaturedPoolGroupItem = GqlFeaturePoolGroupItemExternalLink | GqlPoolMinimal; export type GqlPoolFilter = { - categoryIn?: InputMaybe>; - categoryNotIn?: InputMaybe>; chainIn?: InputMaybe>; chainNotIn?: InputMaybe>; createTime?: InputMaybe; @@ -459,15 +598,33 @@ export type GqlPoolFilter = { minTvl?: InputMaybe; poolTypeIn?: InputMaybe>; poolTypeNotIn?: InputMaybe>; + protocolVersionIn?: InputMaybe>; + /** + * For list of tags see: https://github.com/balancer/metadata/blob/main/pools/index.json + * Use uppercase + */ + tagIn?: InputMaybe>; + /** + * For list of tags see: https://github.com/balancer/metadata/blob/main/pools/index.json + * Use uppercase + */ + tagNotIn?: InputMaybe>; tokensIn?: InputMaybe>; tokensNotIn?: InputMaybe>; userAddress?: InputMaybe; - vaultVersionIn?: InputMaybe>; }; export type GqlPoolFilterCategory = | 'BLACK_LISTED' | 'INCENTIVIZED' + | 'LRT' + | 'POINTS' + | 'POINTS_EIGENLAYER' + | 'POINTS_GYRO' + | 'POINTS_KELP' + | 'POINTS_RENZO' + | 'POINTS_SWELL' + | 'SUPERFEST' | '%future added value'; export type GqlPoolFx = GqlPoolBase & { @@ -476,6 +633,7 @@ export type GqlPoolFx = GqlPoolBase & { allTokens: Array; alpha: Scalars['String']['output']; beta: Scalars['String']['output']; + categories?: Maybe>>; chain: GqlChain; createTime: Scalars['Int']['output']; decimals: Scalars['Int']['output']; @@ -485,18 +643,27 @@ export type GqlPoolFx = GqlPoolBase & { epsilon: Scalars['String']['output']; factory?: Maybe; id: Scalars['ID']['output']; + /** @deprecated Removed without replacement */ investConfig: GqlPoolInvestConfig; lambda: Scalars['String']['output']; name: Scalars['String']['output']; owner?: Maybe; poolTokens: Array; + protocolVersion: Scalars['Int']['output']; staking?: Maybe; symbol: Scalars['String']['output']; + tags?: Maybe>>; + /** + * All tokens of the pool. If it is a nested pool, the nested pool is expanded with its own tokens again. + * @deprecated Use poolTokens instead + */ tokens: Array; type: GqlPoolType; userBalance?: Maybe; + /** @deprecated use protocolVersion instead */ vaultVersion: Scalars['Int']['output']; version: Scalars['Int']['output']; + /** @deprecated Removed without replacement */ withdrawConfig: GqlPoolWithdrawConfig; }; @@ -507,6 +674,7 @@ export type GqlPoolGyro = GqlPoolBase & { alpha: Scalars['String']['output']; beta: Scalars['String']['output']; c: Scalars['String']['output']; + categories?: Maybe>>; chain: GqlChain; createTime: Scalars['Int']['output']; dSq: Scalars['String']['output']; @@ -515,30 +683,39 @@ export type GqlPoolGyro = GqlPoolBase & { dynamicData: GqlPoolDynamicData; factory?: Maybe; id: Scalars['ID']['output']; + /** @deprecated Removed without replacement */ investConfig: GqlPoolInvestConfig; lambda: Scalars['String']['output']; name: Scalars['String']['output']; nestingType: GqlPoolNestingType; owner: Scalars['Bytes']['output']; poolTokens: Array; + protocolVersion: Scalars['Int']['output']; root3Alpha: Scalars['String']['output']; s: Scalars['String']['output']; sqrtAlpha: Scalars['String']['output']; sqrtBeta: Scalars['String']['output']; staking?: Maybe; symbol: Scalars['String']['output']; + tags?: Maybe>>; tauAlphaX: Scalars['String']['output']; tauAlphaY: Scalars['String']['output']; tauBetaX: Scalars['String']['output']; tauBetaY: Scalars['String']['output']; + /** + * All tokens of the pool. If it is a nested pool, the nested pool is expanded with its own tokens again. + * @deprecated Use poolTokens instead + */ tokens: Array; type: GqlPoolType; u: Scalars['String']['output']; userBalance?: Maybe; v: Scalars['String']['output']; + /** @deprecated use protocolVersion instead */ vaultVersion: Scalars['Int']['output']; version: Scalars['Int']['output']; w: Scalars['String']['output']; + /** @deprecated Removed without replacement */ withdrawConfig: GqlPoolWithdrawConfig; z: Scalars['String']['output']; }; @@ -590,6 +767,7 @@ export type GqlPoolLiquidityBootstrapping = GqlPoolBase & { __typename?: 'GqlPoolLiquidityBootstrapping'; address: Scalars['Bytes']['output']; allTokens: Array; + categories?: Maybe>>; chain: GqlChain; createTime: Scalars['Int']['output']; decimals: Scalars['Int']['output']; @@ -597,18 +775,27 @@ export type GqlPoolLiquidityBootstrapping = GqlPoolBase & { dynamicData: GqlPoolDynamicData; factory?: Maybe; id: Scalars['ID']['output']; + /** @deprecated Removed without replacement */ investConfig: GqlPoolInvestConfig; name: Scalars['String']['output']; nestingType: GqlPoolNestingType; owner: Scalars['Bytes']['output']; poolTokens: Array; + protocolVersion: Scalars['Int']['output']; staking?: Maybe; symbol: Scalars['String']['output']; + tags?: Maybe>>; + /** + * All tokens of the pool. If it is a nested pool, the nested pool is expanded with its own tokens again. + * @deprecated Use poolTokens instead + */ tokens: Array; type: GqlPoolType; userBalance?: Maybe; + /** @deprecated use protocolVersion instead */ vaultVersion: Scalars['Int']['output']; version: Scalars['Int']['output']; + /** @deprecated Removed without replacement */ withdrawConfig: GqlPoolWithdrawConfig; }; @@ -617,6 +804,7 @@ export type GqlPoolMetaStable = GqlPoolBase & { address: Scalars['Bytes']['output']; allTokens: Array; amp: Scalars['BigInt']['output']; + categories?: Maybe>>; chain: GqlChain; createTime: Scalars['Int']['output']; decimals: Scalars['Int']['output']; @@ -624,17 +812,23 @@ export type GqlPoolMetaStable = GqlPoolBase & { dynamicData: GqlPoolDynamicData; factory?: Maybe; id: Scalars['ID']['output']; + /** @deprecated Removed without replacement */ investConfig: GqlPoolInvestConfig; name: Scalars['String']['output']; owner: Scalars['Bytes']['output']; poolTokens: Array; + protocolVersion: Scalars['Int']['output']; staking?: Maybe; symbol: Scalars['String']['output']; + tags?: Maybe>>; + /** @deprecated Use poolTokens instead */ tokens: Array; type: GqlPoolType; userBalance?: Maybe; + /** @deprecated use protocolVersion instead */ vaultVersion: Scalars['Int']['output']; version: Scalars['Int']['output']; + /** @deprecated Removed without replacement */ withdrawConfig: GqlPoolWithdrawConfig; }; @@ -645,38 +839,66 @@ export type GqlPoolMinimal = { address: Scalars['Bytes']['output']; /** Returns all pool tokens, including any nested tokens and phantom BPTs */ allTokens: Array; + /** List of categories assigned by the team based on external factors */ + categories?: Maybe>>; /** The chain on which the pool is deployed */ chain: GqlChain; /** The timestamp the pool was created. */ createTime: Scalars['Int']['output']; /** The decimals of the BPT, usually 18 */ decimals: Scalars['Int']['output']; - /** Only returns main tokens, also known as leave tokens. Wont return any nested BPTs. Used for displaying the tokens that the pool consists of. */ + /** Only returns main or underlying tokens, also known as leave tokens. Wont return any nested BPTs. Used for displaying the tokens that the pool consists of. */ displayTokens: Array; /** Dynamic data such as token balances, swap fees or volume */ dynamicData: GqlPoolDynamicData; /** The factory contract address from which the pool was created. */ factory?: Maybe; - /** The pool id. This is equal to the address for vaultVersion 3 pools */ + /** Whether at least one token in this pool is considered an ERC4626 token. */ + hasErc4626: Scalars['Boolean']['output']; + /** Hook assigned to a pool */ + hook?: Maybe; + /** The pool id. This is equal to the address for protocolVersion 3 pools */ id: Scalars['ID']['output']; + /** Pool is receiving rewards when liquidity tokens are staked */ + incentivized: Scalars['Boolean']['output']; /** The name of the pool as per contract */ name: Scalars['String']['output']; /** The wallet address of the owner of the pool. Pool owners can set certain properties like swapFees or AMP. */ owner?: Maybe; + /** The protocol version on which the pool is deployed, 1, 2 or 3 */ + protocolVersion: Scalars['Int']['output']; /** Staking options of this pool which emit additional rewards */ staking?: Maybe; /** The token symbol of the pool as per contract */ symbol: Scalars['String']['output']; + /** List of tags assigned by the team based on external factors */ + tags?: Maybe>>; /** The pool type, such as weighted, stable, etc. */ type: GqlPoolType; /** If a user address was provided in the query, the user balance is populated here */ userBalance?: Maybe; - /** The vault version on which the pool is deployed, 2 or 3 */ + /** + * The vault version on which the pool is deployed, 2 or 3 + * @deprecated use protocolVersion instead + */ vaultVersion: Scalars['Int']['output']; /** The version of the pool type. */ version: Scalars['Int']['output']; }; +/** Result of the poolReloadPools mutation */ +export type GqlPoolMutationResult = { + __typename?: 'GqlPoolMutationResult'; + /** The chain that was reloaded. */ + chain: GqlChain; + /** The error message */ + error?: Maybe; + /** Whether it was successful or not. */ + success: Scalars['Boolean']['output']; + /** The type of pools that were reloaded. */ + type: Scalars['String']['output']; +}; + export type GqlPoolNestedUnion = GqlPoolComposableStableNested; export type GqlPoolNestingType = @@ -708,10 +930,12 @@ export type GqlPoolSnapshot = { id: Scalars['ID']['output']; poolId: Scalars['String']['output']; sharePrice: Scalars['String']['output']; + surplus24h: Scalars['String']['output']; swapsCount: Scalars['String']['output']; timestamp: Scalars['Int']['output']; totalLiquidity: Scalars['String']['output']; totalShares: Scalars['String']['output']; + totalSurplus: Scalars['String']['output']; totalSwapFee: Scalars['String']['output']; totalSwapVolume: Scalars['String']['output']; volume24h: Scalars['String']['output']; @@ -730,6 +954,7 @@ export type GqlPoolStable = GqlPoolBase & { address: Scalars['Bytes']['output']; allTokens: Array; amp: Scalars['BigInt']['output']; + categories?: Maybe>>; chain: GqlChain; createTime: Scalars['Int']['output']; decimals: Scalars['Int']['output']; @@ -737,17 +962,23 @@ export type GqlPoolStable = GqlPoolBase & { dynamicData: GqlPoolDynamicData; factory?: Maybe; id: Scalars['ID']['output']; + /** @deprecated Removed without replacement */ investConfig: GqlPoolInvestConfig; name: Scalars['String']['output']; owner: Scalars['Bytes']['output']; poolTokens: Array; + protocolVersion: Scalars['Int']['output']; staking?: Maybe; symbol: Scalars['String']['output']; + tags?: Maybe>>; + /** @deprecated Use poolTokens instead */ tokens: Array; type: GqlPoolType; userBalance?: Maybe; + /** @deprecated use protocolVersion instead */ vaultVersion: Scalars['Int']['output']; version: Scalars['Int']['output']; + /** @deprecated Removed without replacement */ withdrawConfig: GqlPoolWithdrawConfig; }; @@ -764,12 +995,23 @@ export type GqlPoolStableComposablePoolData = { export type GqlPoolStaking = { __typename?: 'GqlPoolStaking'; address: Scalars['String']['output']; + aura?: Maybe; chain: GqlChain; farm?: Maybe; gauge?: Maybe; id: Scalars['ID']['output']; reliquary?: Maybe; type: GqlPoolStakingType; + vebal?: Maybe; +}; + +export type GqlPoolStakingAura = { + __typename?: 'GqlPoolStakingAura'; + apr: Scalars['Float']['output']; + auraPoolAddress: Scalars['String']['output']; + auraPoolId: Scalars['String']['output']; + id: Scalars['ID']['output']; + isShutdown: Scalars['Boolean']['output']; }; export type GqlPoolStakingFarmRewarder = { @@ -840,12 +1082,20 @@ export type GqlPoolStakingReliquaryFarmLevel = { }; export type GqlPoolStakingType = + | 'AURA' | 'FRESH_BEETS' | 'GAUGE' | 'MASTER_CHEF' | 'RELIQUARY' + | 'VEBAL' | '%future added value'; +export type GqlPoolStakingVebal = { + __typename?: 'GqlPoolStakingVebal'; + id: Scalars['ID']['output']; + vebalAddress: Scalars['String']['output']; +}; + export type GqlPoolSwap = { __typename?: 'GqlPoolSwap'; chain: GqlChain; @@ -861,21 +1111,75 @@ export type GqlPoolSwap = { valueUSD: Scalars['Float']['output']; }; +/** Represents an event that occurs when a swap is made in a pool using the CowAmm protocol. */ +export type GqlPoolSwapEventCowAmm = GqlPoolEvent & { + __typename?: 'GqlPoolSwapEventCowAmm'; + /** The block number of the event. */ + blockNumber: Scalars['Int']['output']; + /** The block timestamp of the event. */ + blockTimestamp: Scalars['Int']['output']; + /** The chain on which the event occurred. */ + chain: GqlChain; + /** The fee that this swap generated. */ + fee: GqlPoolEventAmount; + /** The unique identifier of the event. */ + id: Scalars['ID']['output']; + /** The log index of the event. */ + logIndex: Scalars['Int']['output']; + /** The pool ID associated with the event. */ + poolId: Scalars['String']['output']; + /** The sender of the event. */ + sender: Scalars['String']['output']; + /** The surplus generated by the swap. */ + surplus: GqlPoolEventAmount; + /** The timestamp of the event. */ + timestamp: Scalars['Int']['output']; + /** The token that was swapped in the event. */ + tokenIn: GqlPoolEventAmount; + /** The token that was swapped out in the event. */ + tokenOut: GqlPoolEventAmount; + /** The transaction hash of the event. */ + tx: Scalars['String']['output']; + /** The type of the event. */ + type: GqlPoolEventType; + /** The user address associated with the event. */ + userAddress: Scalars['String']['output']; + /** The value of the event in USD. */ + valueUSD: Scalars['Float']['output']; +}; + +/** Represents an event that occurs when a swap is made in a pool. */ export type GqlPoolSwapEventV3 = GqlPoolEvent & { __typename?: 'GqlPoolSwapEventV3'; + /** The block number of the event. */ blockNumber: Scalars['Int']['output']; + /** The block timestamp of the event. */ blockTimestamp: Scalars['Int']['output']; + /** The chain on which the event occurred. */ chain: GqlChain; + /** The fee that this swap generated. */ + fee: GqlPoolEventAmount; + /** The unique identifier of the event. */ id: Scalars['ID']['output']; + /** The log index of the event. */ logIndex: Scalars['Int']['output']; + /** The pool ID associated with the event. */ poolId: Scalars['String']['output']; + /** The sender of the event. */ sender: Scalars['String']['output']; + /** The timestamp of the event. */ timestamp: Scalars['Int']['output']; + /** The token that was swapped in the event. */ tokenIn: GqlPoolEventAmount; + /** The token that was swapped out in the event. */ tokenOut: GqlPoolEventAmount; + /** The transaction hash of the event. */ tx: Scalars['String']['output']; + /** The type of the event. */ type: GqlPoolEventType; + /** The user address associated with the event. */ userAddress: Scalars['String']['output']; + /** The value of the event in USD. */ valueUSD: Scalars['Float']['output']; }; @@ -938,19 +1242,45 @@ export type GqlPoolTokenComposableStable = GqlPoolTokenBase & { export type GqlPoolTokenComposableStableNestedUnion = GqlPoolToken; +/** + * All info on the pool token. It will also include the nested pool if the token is a BPT. It will only support 1 level of nesting. + * A second (unsupported) level of nesting is shown by having hasNestedPool = true but nestedPool = null. + */ export type GqlPoolTokenDetail = { __typename?: 'GqlPoolTokenDetail'; + /** Address of the pool token. */ address: Scalars['String']['output']; + /** Balance of the pool token inside the pool. */ balance: Scalars['BigDecimal']['output']; + /** USD Balance of the pool token. */ + balanceUSD: Scalars['BigDecimal']['output']; + /** Decimals of the pool token. */ decimals: Scalars['Int']['output']; + /** Indicates whether this token is a BPT and therefor has a nested pool. */ hasNestedPool: Scalars['Boolean']['output']; + /** Id of the token. A combination of pool id and token address. */ id: Scalars['ID']['output']; + /** Index of the pool token in the pool as returned by the vault. */ index: Scalars['Int']['output']; + /** Whether the token is in the allow list. */ + isAllowed: Scalars['Boolean']['output']; + /** Whether the token is considered an ERC4626 token. */ + isErc4626: Scalars['Boolean']['output']; + /** Name of the pool token. */ name: Scalars['String']['output']; + /** Additional data for the nested pool if the token is a BPT. Null otherwise. */ nestedPool?: Maybe; + /** If it is an appreciating token, it shows the current price rate. 1 otherwise. */ priceRate: Scalars['BigDecimal']['output']; + /** The address of the price rate provider. */ priceRateProvider?: Maybe; + /** Additional data for the price rate provider, such as reviews or warnings. */ + priceRateProviderData?: Maybe; + /** Symbol of the pool token. */ symbol: Scalars['String']['output']; + /** If it is an Erc4262, this will be the underlying token if present in the API. */ + underlyingToken?: Maybe; + /** The weight of the token in the pool if it is a weighted pool, null otherwise */ weight?: Maybe; }; @@ -969,6 +1299,7 @@ export type GqlPoolTokenExpanded = { address: Scalars['String']['output']; decimals: Scalars['Int']['output']; id: Scalars['ID']['output']; + isErc4626: Scalars['Boolean']['output']; isMainToken: Scalars['Boolean']['output']; isNested: Scalars['Boolean']['output']; isPhantomBpt: Scalars['Boolean']['output']; @@ -982,6 +1313,7 @@ export type GqlPoolTokenUnion = GqlPoolToken | GqlPoolTokenComposableStable; /** Supported pool types */ export type GqlPoolType = | 'COMPOSABLE_STABLE' + | 'COW_AMM' | 'ELEMENT' | 'FX' | 'GYRO' @@ -1001,10 +1333,8 @@ export type GqlPoolUnion = GqlPoolComposableStable | GqlPoolElement | GqlPoolFx /** If a user address was provided in the query, the user balance is populated here */ export type GqlPoolUserBalance = { __typename?: 'GqlPoolUserBalance'; - /** The staked balance in either a gauge or farm as float. */ - stakedBalance: Scalars['AmountHumanReadable']['output']; - /** The staked balance in either a gauge or farm in USD as float. */ - stakedBalanceUsd: Scalars['Float']['output']; + /** The staked BPT balances of the user. */ + stakedBalances: Array; /** Total balance (wallet + staked) as float */ totalBalance: Scalars['AmountHumanReadable']['output']; /** Total balance (wallet + staked) in USD as float */ @@ -1025,6 +1355,7 @@ export type GqlPoolWeighted = GqlPoolBase & { __typename?: 'GqlPoolWeighted'; address: Scalars['Bytes']['output']; allTokens: Array; + categories?: Maybe>>; chain: GqlChain; createTime: Scalars['Int']['output']; decimals: Scalars['Int']['output']; @@ -1032,19 +1363,27 @@ export type GqlPoolWeighted = GqlPoolBase & { dynamicData: GqlPoolDynamicData; factory?: Maybe; id: Scalars['ID']['output']; + /** @deprecated Removed without replacement */ investConfig: GqlPoolInvestConfig; name: Scalars['String']['output']; nestingType: GqlPoolNestingType; owner: Scalars['Bytes']['output']; poolTokens: Array; + protocolVersion: Scalars['Int']['output']; staking?: Maybe; symbol: Scalars['String']['output']; - /** All tokens of the pool. If it is a nested pool, the nested pool is expanded with its own tokens again. */ + tags?: Maybe>>; + /** + * All tokens of the pool. If it is a nested pool, the nested pool is expanded with its own tokens again. + * @deprecated Use poolTokens instead + */ tokens: Array; type: GqlPoolType; userBalance?: Maybe; + /** @deprecated use protocolVersion instead */ vaultVersion: Scalars['Int']['output']; version: Scalars['Int']['output']; + /** @deprecated Removed without replacement */ withdrawConfig: GqlPoolWithdrawConfig; }; @@ -1071,6 +1410,36 @@ export type GqlPriceImpact = { priceImpact?: Maybe; }; +/** Represents the data of a price rate provider */ +export type GqlPriceRateProviderData = { + __typename?: 'GqlPriceRateProviderData'; + /** The address of the price rate provider */ + address: Scalars['String']['output']; + /** The factory used to create the price rate provider, if applicable */ + factory?: Maybe; + /** The name of the price rate provider */ + name?: Maybe; + /** The filename of the review of the price rate provider */ + reviewFile?: Maybe; + /** Indicates if the price rate provider has been reviewed */ + reviewed: Scalars['Boolean']['output']; + /** A summary of the price rate provider, usually just says safe or unsafe */ + summary?: Maybe; + /** Upgradeable components of the price rate provider */ + upgradeableComponents?: Maybe>>; + /** Warnings associated with the price rate provider */ + warnings?: Maybe>; +}; + +/** Represents an upgradeable component of a price rate provider */ +export type GqlPriceRateProviderUpgradeableComponent = { + __typename?: 'GqlPriceRateProviderUpgradeableComponent'; + /** The entry point / proxy of the upgradeable component */ + entryPoint: Scalars['String']['output']; + /** Indicates if the implementation of the component has been reviewed */ + implementationReviewed: Scalars['String']['output']; +}; + export type GqlProtocolMetricsAggregated = { __typename?: 'GqlProtocolMetricsAggregated'; chains: Array; @@ -1250,6 +1619,8 @@ export type GqlSorGetSwapPaths = { paths: Array; /** Price impact of the path */ priceImpact: GqlPriceImpact; + /** The version of the protocol these paths are from */ + protocolVersion: Scalars['Int']['output']; /** The return amount in human form. Return amount is either tokenOutAmount (if swapType is exactIn) or tokenInAmount (if swapType is exactOut) */ returnAmount: Scalars['AmountHumanReadable']['output']; /** The return amount in a raw form */ @@ -1274,7 +1645,10 @@ export type GqlSorGetSwapPaths = { tokenOut: Scalars['String']['output']; /** The amount of tokenOut in human form */ tokenOutAmount: Scalars['AmountHumanReadable']['output']; - /** The version of the vault these paths are from */ + /** + * The version of the vault these paths are from + * @deprecated Use protocolVersion instead + */ vaultVersion: Scalars['Int']['output']; }; @@ -1306,13 +1680,20 @@ export type GqlSorPath = { __typename?: 'GqlSorPath'; /** Input amount of this path in scaled form */ inputAmountRaw: Scalars['String']['output']; + /** A sorted list of booleans that indicate if the respective pool is a buffer */ + isBuffer: Array>; /** Output amount of this path in scaled form */ outputAmountRaw: Scalars['String']['output']; /** A sorted list of pool ids that are used in this path */ pools: Array>; + /** The version of the protocol these paths are from */ + protocolVersion: Scalars['Int']['output']; /** A sorted list of tokens that are ussed in this path */ tokens: Array>; - /** Vault version of this path. */ + /** + * Vault version of this path. + * @deprecated Use protocolVersion instead + */ vaultVersion: Scalars['Int']['output']; }; @@ -1389,21 +1770,44 @@ export type GqlSwapCallDataInput = { slippagePercentage: Scalars['String']['input']; }; +/** Represents a token */ export type GqlToken = { __typename?: 'GqlToken'; + /** The address of the token */ address: Scalars['String']['output']; + /** The chain of the token */ chain: GqlChain; + /** The chain ID of the token */ chainId: Scalars['Int']['output']; + /** The coingecko ID for this token, if present */ + coingeckoId?: Maybe; + /** The number of decimal places for the token */ decimals: Scalars['Int']['output']; + /** The description of the token */ description?: Maybe; + /** The Discord URL of the token */ discordUrl?: Maybe; + /** Whether the token is considered an ERC4626 token. */ + isErc4626: Scalars['Boolean']['output']; + /** The logo URI of the token */ logoURI?: Maybe; + /** The name of the token */ name: Scalars['String']['output']; + /** The rate provider data for the token */ + priceRateProviderData?: Maybe; + /** The priority of the token, can be used for sorting. */ priority: Scalars['Int']['output']; + /** The rate provider data for the token */ + rateProviderData?: Maybe; + /** The symbol of the token */ symbol: Scalars['String']['output']; + /** The Telegram URL of the token */ telegramUrl?: Maybe; + /** Indicates if the token is tradable */ tradable: Scalars['Boolean']['output']; + /** The Twitter username of the token */ twitterUsername?: Maybe; + /** The website URL of the token */ websiteUrl?: Maybe; }; @@ -1441,25 +1845,52 @@ export type GqlTokenData = { websiteUrl?: Maybe; }; +/** Represents additional data for a token */ export type GqlTokenDynamicData = { __typename?: 'GqlTokenDynamicData'; + /** The all-time high price of the token */ ath: Scalars['Float']['output']; + /** The all-time low price of the token */ atl: Scalars['Float']['output']; + /** The fully diluted valuation of the token */ fdv?: Maybe; + /** The highest price in the last 24 hours */ high24h: Scalars['Float']['output']; + /** The unique identifier of the dynamic data */ id: Scalars['String']['output']; + /** The lowest price in the last 24 hours */ low24h: Scalars['Float']['output']; + /** The market capitalization of the token */ marketCap?: Maybe; + /** The current price of the token */ price: Scalars['Float']['output']; + /** The price change in the last 24 hours */ priceChange24h: Scalars['Float']['output']; + /** The percentage price change in the last 7 days */ priceChangePercent7d?: Maybe; + /** The percentage price change in the last 14 days */ priceChangePercent14d?: Maybe; + /** The percentage price change in the last 24 hours */ priceChangePercent24h: Scalars['Float']['output']; + /** The percentage price change in the last 30 days */ priceChangePercent30d?: Maybe; + /** The address of the token */ tokenAddress: Scalars['String']['output']; + /** The timestamp when the data was last updated */ updatedAt: Scalars['String']['output']; }; +/** Result of the poolReloadPools mutation */ +export type GqlTokenMutationResult = { + __typename?: 'GqlTokenMutationResult'; + /** The chain that was reloaded. */ + chain: GqlChain; + /** The error message */ + error?: Maybe; + /** Whether it was successful or not. */ + success: Scalars['Boolean']['output']; +}; + export type GqlTokenPrice = { __typename?: 'GqlTokenPrice'; address: Scalars['String']['output']; @@ -1501,46 +1932,119 @@ export type GqlUserPoolBalance = { walletBalance: Scalars['AmountHumanReadable']['output']; }; +export type GqlUserStakedBalance = { + __typename?: 'GqlUserStakedBalance'; + /** The staked BPT balance as float. */ + balance: Scalars['AmountHumanReadable']['output']; + /** The steaked BPT balance in USD as float. */ + balanceUsd: Scalars['Float']['output']; + /** The id of the staking to match with GqlPoolStaking.id. */ + stakingId: Scalars['String']['output']; + /** The staking type (Gauge, farm, aura, etc.) in which this balance is staked. */ + stakingType: GqlPoolStakingType; +}; + export type GqlUserSwapVolumeFilter = { poolIdIn?: InputMaybe>; tokenInIn?: InputMaybe>; tokenOutIn?: InputMaybe>; }; +export type GqlVeBalBalance = { + __typename?: 'GqlVeBalBalance'; + balance: Scalars['AmountHumanReadable']['output']; + chain: GqlChain; + locked: Scalars['AmountHumanReadable']['output']; + lockedUsd: Scalars['AmountHumanReadable']['output']; +}; + export type GqlVeBalUserData = { __typename?: 'GqlVeBalUserData'; balance: Scalars['AmountHumanReadable']['output']; + locked: Scalars['AmountHumanReadable']['output']; + lockedUsd: Scalars['AmountHumanReadable']['output']; rank?: Maybe; }; +/** The Gauge that can be voted on through veBAL and that will ultimately receive the rewards. */ export type GqlVotingGauge = { __typename?: 'GqlVotingGauge'; + /** The timestamp the gauge was added. */ addedTimestamp?: Maybe; + /** The address of the root gauge on Ethereum mainnet. */ address: Scalars['Bytes']['output']; + /** The address of the child gauge on the specific chain. */ childGaugeAddress?: Maybe; + /** Whether the gauge is killed or not. */ isKilled: Scalars['Boolean']['output']; + /** The relative weight the gauge received this epoch (not more than 1.0). */ + relativeWeight: Scalars['String']['output']; + /** The relative weight cap. 1.0 for uncapped. */ relativeWeightCap?: Maybe; }; +/** A token inside of a pool with a voting gauge. */ export type GqlVotingGaugeToken = { __typename?: 'GqlVotingGaugeToken'; + /** The address of the token. */ address: Scalars['String']['output']; + /** The URL to the token logo. */ logoURI: Scalars['String']['output']; + /** The symbol of the token. */ symbol: Scalars['String']['output']; + /** If it is a weighted pool, the weigh of the token is shown here in %. 0.5 = 50%. */ weight?: Maybe; }; +/** The pool that can be voted on through veBAL */ export type GqlVotingPool = { __typename?: 'GqlVotingPool'; + /** The address of the pool. */ address: Scalars['Bytes']['output']; + /** The chain this pool is on. */ chain: GqlChain; + /** The gauge that is connected to the pool and that will receive the rewards. */ gauge: GqlVotingGauge; + /** Pool ID */ id: Scalars['ID']['output']; + /** The symbol of the pool. */ symbol: Scalars['String']['output']; + /** The tokens inside the pool. */ tokens: Array; + /** The type of the pool. */ type: GqlPoolType; }; +/** Hook data */ +export type Hook = { + __typename?: 'Hook'; + address: Scalars['String']['output']; + chain: GqlChain; + /** Data points changing over time */ + dynamicData?: Maybe; + /** True when hook can change the amounts send to the vault. Necessary to deduct the fees. */ + enableHookAdjustedAmounts: Scalars['Boolean']['output']; + /** List of pools using the hook */ + poolsIds?: Maybe>>; + shouldCallAfterAddLiquidity: Scalars['Boolean']['output']; + shouldCallAfterInitialize: Scalars['Boolean']['output']; + shouldCallAfterRemoveLiquidity: Scalars['Boolean']['output']; + shouldCallAfterSwap: Scalars['Boolean']['output']; + shouldCallBeforeAddLiquidity: Scalars['Boolean']['output']; + shouldCallBeforeInitialize: Scalars['Boolean']['output']; + shouldCallBeforeRemoveLiquidity: Scalars['Boolean']['output']; + shouldCallBeforeSwap: Scalars['Boolean']['output']; + shouldCallComputeDynamicSwapFee: Scalars['Boolean']['output']; +}; + +/** Collection of hook specific data. Percentage format is 0.01 -> 0.01%. */ +export type HookData = { + __typename?: 'HookData'; + addLiquidityFeePercentage?: Maybe; + removeLiquidityFeePercentage?: Maybe; + swapFeePercentage?: Maybe; +}; + export type Mutation = { __typename?: 'Mutation'; beetsPoolLoadReliquarySnapshotsForAllFarms: Scalars['String']['output']; @@ -1557,7 +2061,9 @@ export type Mutation = { poolLoadSnapshotsForPools: Scalars['String']['output']; poolReloadAllPoolAprs: Scalars['String']['output']; poolReloadAllTokenNestedPoolIds: Scalars['String']['output']; + poolReloadPools: Array; poolReloadStakingForAllPools: Scalars['String']['output']; + poolSyncAllCowSnapshots: Array; poolSyncAllPoolsFromSubgraph: Array; poolSyncLatestSnapshotsForAllPools: Scalars['String']['output']; poolSyncNewPoolsFromSubgraph: Array; @@ -1577,6 +2083,7 @@ export type Mutation = { sftmxSyncWithdrawalRequests: Scalars['String']['output']; tokenDeleteTokenType: Scalars['String']['output']; tokenReloadAllTokenTypes: Scalars['String']['output']; + tokenReloadErc4626Tokens: Array; tokenReloadTokenPrices?: Maybe; tokenSyncLatestFxPrices: Scalars['String']['output']; tokenSyncTokenDefinitions: Scalars['String']['output']; @@ -1623,13 +2130,23 @@ export type MutationPoolReloadAllPoolAprsArgs = { }; +export type MutationPoolReloadPoolsArgs = { + chains: Array; +}; + + export type MutationPoolReloadStakingForAllPoolsArgs = { stakingTypes: Array; }; +export type MutationPoolSyncAllCowSnapshotsArgs = { + chains: Array; +}; + + export type MutationPoolSyncLatestSnapshotsForAllPoolsArgs = { - daysToSync?: InputMaybe; + chain: GqlChain; }; @@ -1649,6 +2166,11 @@ export type MutationTokenDeleteTokenTypeArgs = { }; +export type MutationTokenReloadErc4626TokensArgs = { + chains: Array; +}; + + export type MutationTokenReloadTokenPricesArgs = { chains: Array; }; @@ -1682,18 +2204,29 @@ export type Query = { blocksGetBlocksPerSecond: Scalars['Float']['output']; blocksGetBlocksPerYear: Scalars['Float']['output']; contentGetNewsItems: Array; + /** Returns list of hooks. */ + hooks?: Maybe>; latestSyncedBlocks: GqlLatestSyncedBlocks; /** Getting swap, add and remove events with paging */ poolEvents: Array; - /** Will de deprecated in favor of poolEvents */ + /** + * Will de deprecated in favor of poolEvents + * @deprecated Use poolEvents instead + */ poolGetBatchSwaps: Array; /** Getting swap, add and remove events with range */ poolGetEvents: Array; - /** Will de deprecated in favor of poolGetFeaturedPools */ + /** + * Will de deprecated in favor of poolGetFeaturedPools + * @deprecated Use poolGetFeaturedPools instead + */ poolGetFeaturedPoolGroups: Array; /** Returns the list of featured pools for chains */ poolGetFeaturedPools: Array; - /** Will de deprecated in favor of poolEvents */ + /** + * Will de deprecated in favor of poolEvents + * @deprecated Use poolEvents instead + */ poolGetJoinExits: Array; /** Returns one pool. If a user address is provided, the user balances for the given pool will also be returned. */ poolGetPool: GqlPoolBase; @@ -1703,7 +2236,10 @@ export type Query = { poolGetPoolsCount: Scalars['Int']['output']; /** Gets all the snapshots for a given pool on a chain for a certain range */ poolGetSnapshots: Array; - /** Will de deprecated in favor of poolEvents */ + /** + * Will de deprecated in favor of poolEvents + * @deprecated Use poolEvents instead + */ poolGetSwaps: Array; protocolMetricsAggregated: GqlProtocolMetricsAggregated; protocolMetricsChain: GqlProtocolMetricsChain; @@ -1717,16 +2253,42 @@ export type Query = { sorGetSwapPaths: GqlSorGetSwapPaths; /** Get swap quote from the SOR, queries both the old and new SOR */ sorGetSwaps: GqlSorGetSwapsResponse; + /** + * Returns the candlestick chart data for a token for a given range. + * @deprecated Use tokenGetHistoricalPrices instead + */ tokenGetCandlestickChartData: Array; + /** Returns all current prices for allowed tokens for a given chain or chains */ tokenGetCurrentPrices: Array; + /** Returns the historical prices for a given set of tokens for a given chain and range */ tokenGetHistoricalPrices: Array; + /** + * DEPRECATED: Returns pricing data for a given token for a given range + * @deprecated Use tokenGetHistoricalPrices instead + */ tokenGetPriceChartData: Array; + /** + * Returns the price of either BAL or BEETS depending on chain + * @deprecated Use tokenGetTokensDynamicData instead + */ tokenGetProtocolTokenPrice: Scalars['AmountHumanReadable']['output']; + /** Returns the price of a token priced in another token for a given range. */ tokenGetRelativePriceChartData: Array; + /** + * Returns meta data for a given token such as description, website, etc. + * @deprecated Use tokenGetTokens instead + */ tokenGetTokenData?: Maybe; + /** Returns dynamic data of a token such as price, market cap, etc. */ tokenGetTokenDynamicData?: Maybe; + /** Returns all allowed tokens for a given chain or chains */ tokenGetTokens: Array; + /** + * Returns meta data for a given set of tokens such as description, website, etc. + * @deprecated Use tokenGetTokens instead + */ tokenGetTokensData: Array; + /** Returns dynamic data of a set of tokens such as price, market cap, etc. */ tokenGetTokensDynamicData: Array; userGetFbeetsBalance: GqlUserFbeetsBalance; userGetPoolBalances: Array; @@ -1738,6 +2300,8 @@ export type Query = { veBalGetTotalSupply: Scalars['AmountHumanReadable']['output']; veBalGetUser: GqlVeBalUserData; veBalGetUserBalance: Scalars['AmountHumanReadable']['output']; + veBalGetUserBalances: Array; + /** Returns all pools with veBAL gauges that can be voted on. */ veBalGetVotingList: Array; }; @@ -1753,10 +2317,15 @@ export type QueryContentGetNewsItemsArgs = { }; +export type QueryHooksArgs = { + chain?: InputMaybe; +}; + + export type QueryPoolEventsArgs = { first?: InputMaybe; skip?: InputMaybe; - where: GqlPoolEventsFilter; + where?: InputMaybe; }; @@ -1862,7 +2431,7 @@ export type QuerySorGetSwapPathsArgs = { swapType: GqlSorSwapType; tokenIn: Scalars['String']['input']; tokenOut: Scalars['String']['input']; - useVaultVersion?: InputMaybe; + useProtocolVersion?: InputMaybe; }; @@ -1972,6 +2541,29 @@ export type QueryUserGetSwapsArgs = { skip?: InputMaybe; }; + +export type QueryVeBalGetTotalSupplyArgs = { + chain?: InputMaybe; +}; + + +export type QueryVeBalGetUserArgs = { + address: Scalars['String']['input']; + chain?: InputMaybe; +}; + + +export type QueryVeBalGetUserBalanceArgs = { + address?: InputMaybe; + chain?: InputMaybe; +}; + + +export type QueryVeBalGetUserBalancesArgs = { + address: Scalars['String']['input']; + chains?: InputMaybe>; +}; + export type Token = { __typename?: 'Token'; address: Scalars['String']['output']; diff --git a/packages/gql/src/balancer-api-v3/__generated__/Base.ts b/packages/gql/src/balancer-api-v3/__generated__/Base.ts index dbb6d7c10..5e68d0c72 100644 --- a/packages/gql/src/balancer-api-v3/__generated__/Base.ts +++ b/packages/gql/src/balancer-api-v3/__generated__/Base.ts @@ -46,8 +46,10 @@ export type GqlChain = | 'AVALANCHE' | 'BASE' | 'FANTOM' + | 'FRAXTAL' | 'GNOSIS' | 'MAINNET' + | 'MODE' | 'OPTIMISM' | 'POLYGON' | 'SEPOLIA' @@ -130,41 +132,73 @@ export type GqlLatestSyncedBlocks = { userWalletSyncBlock: Scalars['BigInt']['output']; }; +/** All info on the nested pool if the token is a BPT. It will only support 1 level of nesting. */ export type GqlNestedPool = { __typename?: 'GqlNestedPool'; + /** Address of the pool. */ address: Scalars['Bytes']['output']; + /** Price rate of the Balancer Pool Token (BPT). */ bptPriceRate: Scalars['BigDecimal']['output']; + /** Timestamp of when the pool was created. */ createTime: Scalars['Int']['output']; + /** Address of the factory contract that created the pool, if applicable. */ factory?: Maybe; + /** Unique identifier of the pool. */ id: Scalars['ID']['output']; + /** Name of the pool. */ name: Scalars['String']['output']; + /** Total liquidity of the parent pool in the nested pool in USD. */ nestedLiquidity: Scalars['BigDecimal']['output']; + /** Percentage of the parents pool shares inside the nested pool. */ nestedPercentage: Scalars['BigDecimal']['output']; + /** Number of shares of the parent pool in the nested pool. */ nestedShares: Scalars['BigDecimal']['output']; + /** Address of the pool's owner. */ owner: Scalars['Bytes']['output']; + /** Fee charged for swapping tokens in the pool as %. 0.01 -> 0.01% */ swapFee: Scalars['BigDecimal']['output']; + /** Symbol of the pool. */ symbol: Scalars['String']['output']; + /** List of all tokens in the pool. */ tokens: Array; + /** Total liquidity in the pool in USD. */ totalLiquidity: Scalars['BigDecimal']['output']; + /** Total number of shares in the pool. */ totalShares: Scalars['BigDecimal']['output']; + /** Type of the pool. */ type: GqlPoolType; + /** Version of the pool. */ version: Scalars['Int']['output']; }; +/** Represents an event that occurs when liquidity is added or removed from a pool. */ export type GqlPoolAddRemoveEventV3 = GqlPoolEvent & { __typename?: 'GqlPoolAddRemoveEventV3'; + /** The block number of the event. */ blockNumber: Scalars['Int']['output']; + /** The block timestamp of the event. */ blockTimestamp: Scalars['Int']['output']; + /** The chain on which the event occurred. */ chain: GqlChain; + /** The unique identifier of the event. */ id: Scalars['ID']['output']; + /** The log index of the event. */ logIndex: Scalars['Int']['output']; + /** The pool ID associated with the event. */ poolId: Scalars['String']['output']; + /** The sender of the event. */ sender: Scalars['String']['output']; + /** The timestamp of the event. */ timestamp: Scalars['Int']['output']; + /** The tokens involved in the event. Ordered by poolToken index. */ tokens: Array; + /** The transaction hash of the event. */ tx: Scalars['String']['output']; + /** The type of the event. */ type: GqlPoolEventType; + /** The user address associated with the event. */ userAddress: Scalars['String']['output']; + /** The value of the event in USD. */ valueUSD: Scalars['Float']['output']; }; @@ -178,6 +212,43 @@ export type GqlPoolApr = { thirdPartyApr: GqlPoolAprValue; }; +/** All APRs for a pool */ +export type GqlPoolAprItem = { + __typename?: 'GqlPoolAprItem'; + /** The APR value in % -> 0.2 = 0.2% */ + apr: Scalars['Float']['output']; + /** The id of the APR item */ + id: Scalars['ID']['output']; + /** The title of the APR item, a human readable form */ + title: Scalars['String']['output']; + /** Specific type of this APR */ + type: GqlPoolAprItemType; +}; + +/** Enum representing the different types of the APR in a pool. */ +export type GqlPoolAprItemType = + /** APR that pools earns when BPT is staked on AURA. */ + | 'AURA' + /** Represents the yield from an IB (Interest-Bearing) asset APR in a pool. */ + | 'IB_YIELD' + /** APR in a pool that can be earned through locking, i.e. veBAL */ + | 'LOCKING' + /** Rewards distributed by merkl.xyz */ + | 'MERKL' + /** Represents if the APR items comes from a nested pool. */ + | 'NESTED' + /** Staking reward APR in a pool, i.e. BAL or BEETS. */ + | 'STAKING' + /** APR boost that can be earned, i.e. via veBAL or maBEETS. */ + | 'STAKING_BOOST' + /** Cow AMM specific APR */ + | 'SURPLUS' + /** Represents the swap fee APR in a pool. */ + | 'SWAP_FEE' + /** APR that can be earned thourgh voting, i.e. gauge votes */ + | 'VOTING' + | '%future added value'; + export type GqlPoolAprRange = { __typename?: 'GqlPoolAprRange'; max: Scalars['BigDecimal']['output']; @@ -195,23 +266,34 @@ export type GqlPoolAprValue = GqlPoolAprRange | GqlPoolAprTotal; export type GqlPoolBase = { /** The contract address of the pool. */ address: Scalars['Bytes']['output']; - /** Returns all pool tokens, including any nested tokens and phantom BPTs on one level. */ + /** + * Returns all pool tokens, including any nested tokens and phantom BPTs on one level. + * @deprecated Use poolTokens instead + */ allTokens: Array; + /** List of categories assigned by the team based on external factors */ + categories?: Maybe>>; /** The chain on which the pool is deployed */ chain: GqlChain; /** The timestamp the pool was created. */ createTime: Scalars['Int']['output']; /** The decimals of the BPT, usually 18 */ decimals: Scalars['Int']['output']; - /** Only returns main tokens, also known as leave tokens. Wont return any nested BPTs. Used for displaying the tokens that the pool consists of. */ + /** + * Only returns main tokens, also known as leave tokens. Wont return any nested BPTs. Used for displaying the tokens that the pool consists of. + * @deprecated Use poolTokens instead + */ displayTokens: Array; /** Dynamic data such as token balances, swap fees or volume */ dynamicData: GqlPoolDynamicData; /** The factory contract address from which the pool was created. */ factory?: Maybe; - /** The pool id. This is equal to the address for vaultVersion 3 pools */ + /** The pool id. This is equal to the address for protocolVersion 3 pools */ id: Scalars['ID']['output']; - /** Deprecated */ + /** + * Deprecated + * @deprecated Removed without replacement + */ investConfig: GqlPoolInvestConfig; /** The name of the pool as per contract */ name: Scalars['String']['output']; @@ -219,19 +301,29 @@ export type GqlPoolBase = { owner?: Maybe; /** Returns all pool tokens, including BPTs and nested pools if there are any. Only one nested level deep. */ poolTokens: Array; + /** The protocol version on which the pool is deployed, 1, 2 or 3 */ + protocolVersion: Scalars['Int']['output']; /** Staking options of this pool which emit additional rewards */ staking?: Maybe; /** The token symbol of the pool as per contract */ symbol: Scalars['String']['output']; + /** List of tags assigned by the team based on external factors */ + tags?: Maybe>>; /** The pool type, such as weighted, stable, etc. */ type: GqlPoolType; /** If a user address was provided in the query, the user balance is populated here */ userBalance?: Maybe; - /** The vault version on which the pool is deployed, 2 or 3 */ + /** + * The vault version on which the pool is deployed, 2 or 3 + * @deprecated use protocolVersion instead + */ vaultVersion: Scalars['Int']['output']; /** The version of the pool type. */ version: Scalars['Int']['output']; - /** Deprecated */ + /** + * Deprecated + * @deprecated Removed without replacement + */ withdrawConfig: GqlPoolWithdrawConfig; }; @@ -278,6 +370,7 @@ export type GqlPoolComposableStable = GqlPoolBase & { allTokens: Array; amp: Scalars['BigInt']['output']; bptPriceRate: Scalars['BigDecimal']['output']; + categories?: Maybe>>; chain: GqlChain; createTime: Scalars['Int']['output']; decimals: Scalars['Int']['output']; @@ -285,18 +378,27 @@ export type GqlPoolComposableStable = GqlPoolBase & { dynamicData: GqlPoolDynamicData; factory?: Maybe; id: Scalars['ID']['output']; + /** @deprecated Removed without replacement */ investConfig: GqlPoolInvestConfig; name: Scalars['String']['output']; nestingType: GqlPoolNestingType; owner: Scalars['Bytes']['output']; poolTokens: Array; + protocolVersion: Scalars['Int']['output']; staking?: Maybe; symbol: Scalars['String']['output']; + tags?: Maybe>>; + /** + * All tokens of the pool. If it is a nested pool, the nested pool is expanded with its own tokens again. + * @deprecated Use poolTokens instead + */ tokens: Array; type: GqlPoolType; userBalance?: Maybe; + /** @deprecated use protocolVersion instead */ vaultVersion: Scalars['Int']['output']; version: Scalars['Int']['output']; + /** @deprecated Removed without replacement */ withdrawConfig: GqlPoolWithdrawConfig; }; @@ -305,6 +407,7 @@ export type GqlPoolComposableStableNested = { address: Scalars['Bytes']['output']; amp: Scalars['BigInt']['output']; bptPriceRate: Scalars['BigDecimal']['output']; + categories?: Maybe>>; createTime: Scalars['Int']['output']; factory?: Maybe; id: Scalars['ID']['output']; @@ -313,6 +416,8 @@ export type GqlPoolComposableStableNested = { owner: Scalars['Bytes']['output']; swapFee: Scalars['BigDecimal']['output']; symbol: Scalars['String']['output']; + tags?: Maybe>>; + /** @deprecated Use poolTokens instead */ tokens: Array; totalLiquidity: Scalars['BigDecimal']['output']; totalShares: Scalars['BigDecimal']['output']; @@ -322,7 +427,13 @@ export type GqlPoolComposableStableNested = { export type GqlPoolDynamicData = { __typename?: 'GqlPoolDynamicData'; + /** Protocol and pool creator fees combined */ + aggregateSwapFee: Scalars['BigDecimal']['output']; + /** Protocol and pool creator fees combined */ + aggregateYieldFee: Scalars['BigDecimal']['output']; + /** @deprecated Use aprItems instead */ apr: GqlPoolApr; + aprItems: Array; fees24h: Scalars['BigDecimal']['output']; fees24hAth: Scalars['BigDecimal']['output']; fees24hAthTimestamp: Scalars['Int']['output']; @@ -330,6 +441,7 @@ export type GqlPoolDynamicData = { fees24hAtlTimestamp: Scalars['Int']['output']; fees48h: Scalars['BigDecimal']['output']; holdersCount: Scalars['BigInt']['output']; + /** True for bricked pools */ isInRecoveryMode: Scalars['Boolean']['output']; isPaused: Scalars['Boolean']['output']; lifetimeSwapFees: Scalars['BigDecimal']['output']; @@ -339,6 +451,11 @@ export type GqlPoolDynamicData = { sharePriceAthTimestamp: Scalars['Int']['output']; sharePriceAtl: Scalars['BigDecimal']['output']; sharePriceAtlTimestamp: Scalars['Int']['output']; + /** CowAmm specific, equivalent of swap fees */ + surplus24h: Scalars['BigDecimal']['output']; + /** CowAmm specific, equivalent of swap fees */ + surplus48h: Scalars['BigDecimal']['output']; + /** Disabled for bricked pools */ swapEnabled: Scalars['Boolean']['output']; swapFee: Scalars['BigDecimal']['output']; swapsCount: Scalars['BigInt']['output']; @@ -365,6 +482,7 @@ export type GqlPoolElement = GqlPoolBase & { address: Scalars['Bytes']['output']; allTokens: Array; baseToken: Scalars['Bytes']['output']; + categories?: Maybe>>; chain: GqlChain; createTime: Scalars['Int']['output']; decimals: Scalars['Int']['output']; @@ -372,34 +490,53 @@ export type GqlPoolElement = GqlPoolBase & { dynamicData: GqlPoolDynamicData; factory?: Maybe; id: Scalars['ID']['output']; + /** @deprecated Removed without replacement */ investConfig: GqlPoolInvestConfig; name: Scalars['String']['output']; owner: Scalars['Bytes']['output']; poolTokens: Array; principalToken: Scalars['Bytes']['output']; + protocolVersion: Scalars['Int']['output']; staking?: Maybe; symbol: Scalars['String']['output']; + tags?: Maybe>>; + /** @deprecated Use poolTokens instead */ tokens: Array; type: GqlPoolType; unitSeconds: Scalars['BigInt']['output']; userBalance?: Maybe; + /** @deprecated use protocolVersion instead */ vaultVersion: Scalars['Int']['output']; version: Scalars['Int']['output']; + /** @deprecated Removed without replacement */ withdrawConfig: GqlPoolWithdrawConfig; }; +/** Represents an event that occurs in a pool. */ export type GqlPoolEvent = { + /** The block number of the event. */ blockNumber: Scalars['Int']['output']; + /** The block timestamp of the event. */ blockTimestamp: Scalars['Int']['output']; + /** The chain on which the event occurred. */ chain: GqlChain; + /** The unique identifier of the event. */ id: Scalars['ID']['output']; + /** The log index of the event. */ logIndex: Scalars['Int']['output']; + /** The pool ID associated with the event. */ poolId: Scalars['String']['output']; + /** The sender of the event. */ sender: Scalars['String']['output']; + /** The timestamp of the event. */ timestamp: Scalars['Int']['output']; + /** The transaction hash of the event. */ tx: Scalars['String']['output']; + /** The type of the event. */ type: GqlPoolEventType; + /** The user address associated with the event. */ userAddress: Scalars['String']['output']; + /** The USD value of this event. */ valueUSD: Scalars['Float']['output']; }; @@ -423,11 +560,15 @@ export type GqlPoolEventsDataRange = | '%future added value'; export type GqlPoolEventsFilter = { - chain: GqlChain; - poolId: Scalars['String']['input']; + chainIn?: InputMaybe>>; + poolIdIn?: InputMaybe>>; range?: InputMaybe; typeIn?: InputMaybe>>; userAddress?: InputMaybe; + /** USD value of the event */ + valueUSD_gt?: InputMaybe; + /** USD value of the event */ + valueUSD_gte?: InputMaybe; }; export type GqlPoolFeaturedPool = { @@ -449,8 +590,6 @@ export type GqlPoolFeaturedPoolGroup = { export type GqlPoolFeaturedPoolGroupItem = GqlFeaturePoolGroupItemExternalLink | GqlPoolMinimal; export type GqlPoolFilter = { - categoryIn?: InputMaybe>; - categoryNotIn?: InputMaybe>; chainIn?: InputMaybe>; chainNotIn?: InputMaybe>; createTime?: InputMaybe; @@ -461,15 +600,33 @@ export type GqlPoolFilter = { minTvl?: InputMaybe; poolTypeIn?: InputMaybe>; poolTypeNotIn?: InputMaybe>; + protocolVersionIn?: InputMaybe>; + /** + * For list of tags see: https://github.com/balancer/metadata/blob/main/pools/index.json + * Use uppercase + */ + tagIn?: InputMaybe>; + /** + * For list of tags see: https://github.com/balancer/metadata/blob/main/pools/index.json + * Use uppercase + */ + tagNotIn?: InputMaybe>; tokensIn?: InputMaybe>; tokensNotIn?: InputMaybe>; userAddress?: InputMaybe; - vaultVersionIn?: InputMaybe>; }; export type GqlPoolFilterCategory = | 'BLACK_LISTED' | 'INCENTIVIZED' + | 'LRT' + | 'POINTS' + | 'POINTS_EIGENLAYER' + | 'POINTS_GYRO' + | 'POINTS_KELP' + | 'POINTS_RENZO' + | 'POINTS_SWELL' + | 'SUPERFEST' | '%future added value'; export type GqlPoolFx = GqlPoolBase & { @@ -478,6 +635,7 @@ export type GqlPoolFx = GqlPoolBase & { allTokens: Array; alpha: Scalars['String']['output']; beta: Scalars['String']['output']; + categories?: Maybe>>; chain: GqlChain; createTime: Scalars['Int']['output']; decimals: Scalars['Int']['output']; @@ -487,18 +645,27 @@ export type GqlPoolFx = GqlPoolBase & { epsilon: Scalars['String']['output']; factory?: Maybe; id: Scalars['ID']['output']; + /** @deprecated Removed without replacement */ investConfig: GqlPoolInvestConfig; lambda: Scalars['String']['output']; name: Scalars['String']['output']; owner?: Maybe; poolTokens: Array; + protocolVersion: Scalars['Int']['output']; staking?: Maybe; symbol: Scalars['String']['output']; + tags?: Maybe>>; + /** + * All tokens of the pool. If it is a nested pool, the nested pool is expanded with its own tokens again. + * @deprecated Use poolTokens instead + */ tokens: Array; type: GqlPoolType; userBalance?: Maybe; + /** @deprecated use protocolVersion instead */ vaultVersion: Scalars['Int']['output']; version: Scalars['Int']['output']; + /** @deprecated Removed without replacement */ withdrawConfig: GqlPoolWithdrawConfig; }; @@ -509,6 +676,7 @@ export type GqlPoolGyro = GqlPoolBase & { alpha: Scalars['String']['output']; beta: Scalars['String']['output']; c: Scalars['String']['output']; + categories?: Maybe>>; chain: GqlChain; createTime: Scalars['Int']['output']; dSq: Scalars['String']['output']; @@ -517,30 +685,39 @@ export type GqlPoolGyro = GqlPoolBase & { dynamicData: GqlPoolDynamicData; factory?: Maybe; id: Scalars['ID']['output']; + /** @deprecated Removed without replacement */ investConfig: GqlPoolInvestConfig; lambda: Scalars['String']['output']; name: Scalars['String']['output']; nestingType: GqlPoolNestingType; owner: Scalars['Bytes']['output']; poolTokens: Array; + protocolVersion: Scalars['Int']['output']; root3Alpha: Scalars['String']['output']; s: Scalars['String']['output']; sqrtAlpha: Scalars['String']['output']; sqrtBeta: Scalars['String']['output']; staking?: Maybe; symbol: Scalars['String']['output']; + tags?: Maybe>>; tauAlphaX: Scalars['String']['output']; tauAlphaY: Scalars['String']['output']; tauBetaX: Scalars['String']['output']; tauBetaY: Scalars['String']['output']; + /** + * All tokens of the pool. If it is a nested pool, the nested pool is expanded with its own tokens again. + * @deprecated Use poolTokens instead + */ tokens: Array; type: GqlPoolType; u: Scalars['String']['output']; userBalance?: Maybe; v: Scalars['String']['output']; + /** @deprecated use protocolVersion instead */ vaultVersion: Scalars['Int']['output']; version: Scalars['Int']['output']; w: Scalars['String']['output']; + /** @deprecated Removed without replacement */ withdrawConfig: GqlPoolWithdrawConfig; z: Scalars['String']['output']; }; @@ -592,6 +769,7 @@ export type GqlPoolLiquidityBootstrapping = GqlPoolBase & { __typename?: 'GqlPoolLiquidityBootstrapping'; address: Scalars['Bytes']['output']; allTokens: Array; + categories?: Maybe>>; chain: GqlChain; createTime: Scalars['Int']['output']; decimals: Scalars['Int']['output']; @@ -599,18 +777,27 @@ export type GqlPoolLiquidityBootstrapping = GqlPoolBase & { dynamicData: GqlPoolDynamicData; factory?: Maybe; id: Scalars['ID']['output']; + /** @deprecated Removed without replacement */ investConfig: GqlPoolInvestConfig; name: Scalars['String']['output']; nestingType: GqlPoolNestingType; owner: Scalars['Bytes']['output']; poolTokens: Array; + protocolVersion: Scalars['Int']['output']; staking?: Maybe; symbol: Scalars['String']['output']; + tags?: Maybe>>; + /** + * All tokens of the pool. If it is a nested pool, the nested pool is expanded with its own tokens again. + * @deprecated Use poolTokens instead + */ tokens: Array; type: GqlPoolType; userBalance?: Maybe; + /** @deprecated use protocolVersion instead */ vaultVersion: Scalars['Int']['output']; version: Scalars['Int']['output']; + /** @deprecated Removed without replacement */ withdrawConfig: GqlPoolWithdrawConfig; }; @@ -619,6 +806,7 @@ export type GqlPoolMetaStable = GqlPoolBase & { address: Scalars['Bytes']['output']; allTokens: Array; amp: Scalars['BigInt']['output']; + categories?: Maybe>>; chain: GqlChain; createTime: Scalars['Int']['output']; decimals: Scalars['Int']['output']; @@ -626,17 +814,23 @@ export type GqlPoolMetaStable = GqlPoolBase & { dynamicData: GqlPoolDynamicData; factory?: Maybe; id: Scalars['ID']['output']; + /** @deprecated Removed without replacement */ investConfig: GqlPoolInvestConfig; name: Scalars['String']['output']; owner: Scalars['Bytes']['output']; poolTokens: Array; + protocolVersion: Scalars['Int']['output']; staking?: Maybe; symbol: Scalars['String']['output']; + tags?: Maybe>>; + /** @deprecated Use poolTokens instead */ tokens: Array; type: GqlPoolType; userBalance?: Maybe; + /** @deprecated use protocolVersion instead */ vaultVersion: Scalars['Int']['output']; version: Scalars['Int']['output']; + /** @deprecated Removed without replacement */ withdrawConfig: GqlPoolWithdrawConfig; }; @@ -647,38 +841,66 @@ export type GqlPoolMinimal = { address: Scalars['Bytes']['output']; /** Returns all pool tokens, including any nested tokens and phantom BPTs */ allTokens: Array; + /** List of categories assigned by the team based on external factors */ + categories?: Maybe>>; /** The chain on which the pool is deployed */ chain: GqlChain; /** The timestamp the pool was created. */ createTime: Scalars['Int']['output']; /** The decimals of the BPT, usually 18 */ decimals: Scalars['Int']['output']; - /** Only returns main tokens, also known as leave tokens. Wont return any nested BPTs. Used for displaying the tokens that the pool consists of. */ + /** Only returns main or underlying tokens, also known as leave tokens. Wont return any nested BPTs. Used for displaying the tokens that the pool consists of. */ displayTokens: Array; /** Dynamic data such as token balances, swap fees or volume */ dynamicData: GqlPoolDynamicData; /** The factory contract address from which the pool was created. */ factory?: Maybe; - /** The pool id. This is equal to the address for vaultVersion 3 pools */ + /** Whether at least one token in this pool is considered an ERC4626 token. */ + hasErc4626: Scalars['Boolean']['output']; + /** Hook assigned to a pool */ + hook?: Maybe; + /** The pool id. This is equal to the address for protocolVersion 3 pools */ id: Scalars['ID']['output']; + /** Pool is receiving rewards when liquidity tokens are staked */ + incentivized: Scalars['Boolean']['output']; /** The name of the pool as per contract */ name: Scalars['String']['output']; /** The wallet address of the owner of the pool. Pool owners can set certain properties like swapFees or AMP. */ owner?: Maybe; + /** The protocol version on which the pool is deployed, 1, 2 or 3 */ + protocolVersion: Scalars['Int']['output']; /** Staking options of this pool which emit additional rewards */ staking?: Maybe; /** The token symbol of the pool as per contract */ symbol: Scalars['String']['output']; + /** List of tags assigned by the team based on external factors */ + tags?: Maybe>>; /** The pool type, such as weighted, stable, etc. */ type: GqlPoolType; /** If a user address was provided in the query, the user balance is populated here */ userBalance?: Maybe; - /** The vault version on which the pool is deployed, 2 or 3 */ + /** + * The vault version on which the pool is deployed, 2 or 3 + * @deprecated use protocolVersion instead + */ vaultVersion: Scalars['Int']['output']; /** The version of the pool type. */ version: Scalars['Int']['output']; }; +/** Result of the poolReloadPools mutation */ +export type GqlPoolMutationResult = { + __typename?: 'GqlPoolMutationResult'; + /** The chain that was reloaded. */ + chain: GqlChain; + /** The error message */ + error?: Maybe; + /** Whether it was successful or not. */ + success: Scalars['Boolean']['output']; + /** The type of pools that were reloaded. */ + type: Scalars['String']['output']; +}; + export type GqlPoolNestedUnion = GqlPoolComposableStableNested; export type GqlPoolNestingType = @@ -710,10 +932,12 @@ export type GqlPoolSnapshot = { id: Scalars['ID']['output']; poolId: Scalars['String']['output']; sharePrice: Scalars['String']['output']; + surplus24h: Scalars['String']['output']; swapsCount: Scalars['String']['output']; timestamp: Scalars['Int']['output']; totalLiquidity: Scalars['String']['output']; totalShares: Scalars['String']['output']; + totalSurplus: Scalars['String']['output']; totalSwapFee: Scalars['String']['output']; totalSwapVolume: Scalars['String']['output']; volume24h: Scalars['String']['output']; @@ -732,6 +956,7 @@ export type GqlPoolStable = GqlPoolBase & { address: Scalars['Bytes']['output']; allTokens: Array; amp: Scalars['BigInt']['output']; + categories?: Maybe>>; chain: GqlChain; createTime: Scalars['Int']['output']; decimals: Scalars['Int']['output']; @@ -739,17 +964,23 @@ export type GqlPoolStable = GqlPoolBase & { dynamicData: GqlPoolDynamicData; factory?: Maybe; id: Scalars['ID']['output']; + /** @deprecated Removed without replacement */ investConfig: GqlPoolInvestConfig; name: Scalars['String']['output']; owner: Scalars['Bytes']['output']; poolTokens: Array; + protocolVersion: Scalars['Int']['output']; staking?: Maybe; symbol: Scalars['String']['output']; + tags?: Maybe>>; + /** @deprecated Use poolTokens instead */ tokens: Array; type: GqlPoolType; userBalance?: Maybe; + /** @deprecated use protocolVersion instead */ vaultVersion: Scalars['Int']['output']; version: Scalars['Int']['output']; + /** @deprecated Removed without replacement */ withdrawConfig: GqlPoolWithdrawConfig; }; @@ -766,12 +997,23 @@ export type GqlPoolStableComposablePoolData = { export type GqlPoolStaking = { __typename?: 'GqlPoolStaking'; address: Scalars['String']['output']; + aura?: Maybe; chain: GqlChain; farm?: Maybe; gauge?: Maybe; id: Scalars['ID']['output']; reliquary?: Maybe; type: GqlPoolStakingType; + vebal?: Maybe; +}; + +export type GqlPoolStakingAura = { + __typename?: 'GqlPoolStakingAura'; + apr: Scalars['Float']['output']; + auraPoolAddress: Scalars['String']['output']; + auraPoolId: Scalars['String']['output']; + id: Scalars['ID']['output']; + isShutdown: Scalars['Boolean']['output']; }; export type GqlPoolStakingFarmRewarder = { @@ -842,12 +1084,20 @@ export type GqlPoolStakingReliquaryFarmLevel = { }; export type GqlPoolStakingType = + | 'AURA' | 'FRESH_BEETS' | 'GAUGE' | 'MASTER_CHEF' | 'RELIQUARY' + | 'VEBAL' | '%future added value'; +export type GqlPoolStakingVebal = { + __typename?: 'GqlPoolStakingVebal'; + id: Scalars['ID']['output']; + vebalAddress: Scalars['String']['output']; +}; + export type GqlPoolSwap = { __typename?: 'GqlPoolSwap'; chain: GqlChain; @@ -863,21 +1113,75 @@ export type GqlPoolSwap = { valueUSD: Scalars['Float']['output']; }; +/** Represents an event that occurs when a swap is made in a pool using the CowAmm protocol. */ +export type GqlPoolSwapEventCowAmm = GqlPoolEvent & { + __typename?: 'GqlPoolSwapEventCowAmm'; + /** The block number of the event. */ + blockNumber: Scalars['Int']['output']; + /** The block timestamp of the event. */ + blockTimestamp: Scalars['Int']['output']; + /** The chain on which the event occurred. */ + chain: GqlChain; + /** The fee that this swap generated. */ + fee: GqlPoolEventAmount; + /** The unique identifier of the event. */ + id: Scalars['ID']['output']; + /** The log index of the event. */ + logIndex: Scalars['Int']['output']; + /** The pool ID associated with the event. */ + poolId: Scalars['String']['output']; + /** The sender of the event. */ + sender: Scalars['String']['output']; + /** The surplus generated by the swap. */ + surplus: GqlPoolEventAmount; + /** The timestamp of the event. */ + timestamp: Scalars['Int']['output']; + /** The token that was swapped in the event. */ + tokenIn: GqlPoolEventAmount; + /** The token that was swapped out in the event. */ + tokenOut: GqlPoolEventAmount; + /** The transaction hash of the event. */ + tx: Scalars['String']['output']; + /** The type of the event. */ + type: GqlPoolEventType; + /** The user address associated with the event. */ + userAddress: Scalars['String']['output']; + /** The value of the event in USD. */ + valueUSD: Scalars['Float']['output']; +}; + +/** Represents an event that occurs when a swap is made in a pool. */ export type GqlPoolSwapEventV3 = GqlPoolEvent & { __typename?: 'GqlPoolSwapEventV3'; + /** The block number of the event. */ blockNumber: Scalars['Int']['output']; + /** The block timestamp of the event. */ blockTimestamp: Scalars['Int']['output']; + /** The chain on which the event occurred. */ chain: GqlChain; + /** The fee that this swap generated. */ + fee: GqlPoolEventAmount; + /** The unique identifier of the event. */ id: Scalars['ID']['output']; + /** The log index of the event. */ logIndex: Scalars['Int']['output']; + /** The pool ID associated with the event. */ poolId: Scalars['String']['output']; + /** The sender of the event. */ sender: Scalars['String']['output']; + /** The timestamp of the event. */ timestamp: Scalars['Int']['output']; + /** The token that was swapped in the event. */ tokenIn: GqlPoolEventAmount; + /** The token that was swapped out in the event. */ tokenOut: GqlPoolEventAmount; + /** The transaction hash of the event. */ tx: Scalars['String']['output']; + /** The type of the event. */ type: GqlPoolEventType; + /** The user address associated with the event. */ userAddress: Scalars['String']['output']; + /** The value of the event in USD. */ valueUSD: Scalars['Float']['output']; }; @@ -940,19 +1244,45 @@ export type GqlPoolTokenComposableStable = GqlPoolTokenBase & { export type GqlPoolTokenComposableStableNestedUnion = GqlPoolToken; +/** + * All info on the pool token. It will also include the nested pool if the token is a BPT. It will only support 1 level of nesting. + * A second (unsupported) level of nesting is shown by having hasNestedPool = true but nestedPool = null. + */ export type GqlPoolTokenDetail = { __typename?: 'GqlPoolTokenDetail'; + /** Address of the pool token. */ address: Scalars['String']['output']; + /** Balance of the pool token inside the pool. */ balance: Scalars['BigDecimal']['output']; + /** USD Balance of the pool token. */ + balanceUSD: Scalars['BigDecimal']['output']; + /** Decimals of the pool token. */ decimals: Scalars['Int']['output']; + /** Indicates whether this token is a BPT and therefor has a nested pool. */ hasNestedPool: Scalars['Boolean']['output']; + /** Id of the token. A combination of pool id and token address. */ id: Scalars['ID']['output']; + /** Index of the pool token in the pool as returned by the vault. */ index: Scalars['Int']['output']; + /** Whether the token is in the allow list. */ + isAllowed: Scalars['Boolean']['output']; + /** Whether the token is considered an ERC4626 token. */ + isErc4626: Scalars['Boolean']['output']; + /** Name of the pool token. */ name: Scalars['String']['output']; + /** Additional data for the nested pool if the token is a BPT. Null otherwise. */ nestedPool?: Maybe; + /** If it is an appreciating token, it shows the current price rate. 1 otherwise. */ priceRate: Scalars['BigDecimal']['output']; + /** The address of the price rate provider. */ priceRateProvider?: Maybe; + /** Additional data for the price rate provider, such as reviews or warnings. */ + priceRateProviderData?: Maybe; + /** Symbol of the pool token. */ symbol: Scalars['String']['output']; + /** If it is an Erc4262, this will be the underlying token if present in the API. */ + underlyingToken?: Maybe; + /** The weight of the token in the pool if it is a weighted pool, null otherwise */ weight?: Maybe; }; @@ -971,6 +1301,7 @@ export type GqlPoolTokenExpanded = { address: Scalars['String']['output']; decimals: Scalars['Int']['output']; id: Scalars['ID']['output']; + isErc4626: Scalars['Boolean']['output']; isMainToken: Scalars['Boolean']['output']; isNested: Scalars['Boolean']['output']; isPhantomBpt: Scalars['Boolean']['output']; @@ -984,6 +1315,7 @@ export type GqlPoolTokenUnion = GqlPoolToken | GqlPoolTokenComposableStable; /** Supported pool types */ export type GqlPoolType = | 'COMPOSABLE_STABLE' + | 'COW_AMM' | 'ELEMENT' | 'FX' | 'GYRO' @@ -1003,10 +1335,8 @@ export type GqlPoolUnion = GqlPoolComposableStable | GqlPoolElement | GqlPoolFx /** If a user address was provided in the query, the user balance is populated here */ export type GqlPoolUserBalance = { __typename?: 'GqlPoolUserBalance'; - /** The staked balance in either a gauge or farm as float. */ - stakedBalance: Scalars['AmountHumanReadable']['output']; - /** The staked balance in either a gauge or farm in USD as float. */ - stakedBalanceUsd: Scalars['Float']['output']; + /** The staked BPT balances of the user. */ + stakedBalances: Array; /** Total balance (wallet + staked) as float */ totalBalance: Scalars['AmountHumanReadable']['output']; /** Total balance (wallet + staked) in USD as float */ @@ -1027,6 +1357,7 @@ export type GqlPoolWeighted = GqlPoolBase & { __typename?: 'GqlPoolWeighted'; address: Scalars['Bytes']['output']; allTokens: Array; + categories?: Maybe>>; chain: GqlChain; createTime: Scalars['Int']['output']; decimals: Scalars['Int']['output']; @@ -1034,19 +1365,27 @@ export type GqlPoolWeighted = GqlPoolBase & { dynamicData: GqlPoolDynamicData; factory?: Maybe; id: Scalars['ID']['output']; + /** @deprecated Removed without replacement */ investConfig: GqlPoolInvestConfig; name: Scalars['String']['output']; nestingType: GqlPoolNestingType; owner: Scalars['Bytes']['output']; poolTokens: Array; + protocolVersion: Scalars['Int']['output']; staking?: Maybe; symbol: Scalars['String']['output']; - /** All tokens of the pool. If it is a nested pool, the nested pool is expanded with its own tokens again. */ + tags?: Maybe>>; + /** + * All tokens of the pool. If it is a nested pool, the nested pool is expanded with its own tokens again. + * @deprecated Use poolTokens instead + */ tokens: Array; type: GqlPoolType; userBalance?: Maybe; + /** @deprecated use protocolVersion instead */ vaultVersion: Scalars['Int']['output']; version: Scalars['Int']['output']; + /** @deprecated Removed without replacement */ withdrawConfig: GqlPoolWithdrawConfig; }; @@ -1073,6 +1412,36 @@ export type GqlPriceImpact = { priceImpact?: Maybe; }; +/** Represents the data of a price rate provider */ +export type GqlPriceRateProviderData = { + __typename?: 'GqlPriceRateProviderData'; + /** The address of the price rate provider */ + address: Scalars['String']['output']; + /** The factory used to create the price rate provider, if applicable */ + factory?: Maybe; + /** The name of the price rate provider */ + name?: Maybe; + /** The filename of the review of the price rate provider */ + reviewFile?: Maybe; + /** Indicates if the price rate provider has been reviewed */ + reviewed: Scalars['Boolean']['output']; + /** A summary of the price rate provider, usually just says safe or unsafe */ + summary?: Maybe; + /** Upgradeable components of the price rate provider */ + upgradeableComponents?: Maybe>>; + /** Warnings associated with the price rate provider */ + warnings?: Maybe>; +}; + +/** Represents an upgradeable component of a price rate provider */ +export type GqlPriceRateProviderUpgradeableComponent = { + __typename?: 'GqlPriceRateProviderUpgradeableComponent'; + /** The entry point / proxy of the upgradeable component */ + entryPoint: Scalars['String']['output']; + /** Indicates if the implementation of the component has been reviewed */ + implementationReviewed: Scalars['String']['output']; +}; + export type GqlProtocolMetricsAggregated = { __typename?: 'GqlProtocolMetricsAggregated'; chains: Array; @@ -1252,6 +1621,8 @@ export type GqlSorGetSwapPaths = { paths: Array; /** Price impact of the path */ priceImpact: GqlPriceImpact; + /** The version of the protocol these paths are from */ + protocolVersion: Scalars['Int']['output']; /** The return amount in human form. Return amount is either tokenOutAmount (if swapType is exactIn) or tokenInAmount (if swapType is exactOut) */ returnAmount: Scalars['AmountHumanReadable']['output']; /** The return amount in a raw form */ @@ -1276,7 +1647,10 @@ export type GqlSorGetSwapPaths = { tokenOut: Scalars['String']['output']; /** The amount of tokenOut in human form */ tokenOutAmount: Scalars['AmountHumanReadable']['output']; - /** The version of the vault these paths are from */ + /** + * The version of the vault these paths are from + * @deprecated Use protocolVersion instead + */ vaultVersion: Scalars['Int']['output']; }; @@ -1308,13 +1682,20 @@ export type GqlSorPath = { __typename?: 'GqlSorPath'; /** Input amount of this path in scaled form */ inputAmountRaw: Scalars['String']['output']; + /** A sorted list of booleans that indicate if the respective pool is a buffer */ + isBuffer: Array>; /** Output amount of this path in scaled form */ outputAmountRaw: Scalars['String']['output']; /** A sorted list of pool ids that are used in this path */ pools: Array>; + /** The version of the protocol these paths are from */ + protocolVersion: Scalars['Int']['output']; /** A sorted list of tokens that are ussed in this path */ tokens: Array>; - /** Vault version of this path. */ + /** + * Vault version of this path. + * @deprecated Use protocolVersion instead + */ vaultVersion: Scalars['Int']['output']; }; @@ -1391,21 +1772,44 @@ export type GqlSwapCallDataInput = { slippagePercentage: Scalars['String']['input']; }; +/** Represents a token */ export type GqlToken = { __typename?: 'GqlToken'; + /** The address of the token */ address: Scalars['String']['output']; + /** The chain of the token */ chain: GqlChain; + /** The chain ID of the token */ chainId: Scalars['Int']['output']; + /** The coingecko ID for this token, if present */ + coingeckoId?: Maybe; + /** The number of decimal places for the token */ decimals: Scalars['Int']['output']; + /** The description of the token */ description?: Maybe; + /** The Discord URL of the token */ discordUrl?: Maybe; + /** Whether the token is considered an ERC4626 token. */ + isErc4626: Scalars['Boolean']['output']; + /** The logo URI of the token */ logoURI?: Maybe; + /** The name of the token */ name: Scalars['String']['output']; + /** The rate provider data for the token */ + priceRateProviderData?: Maybe; + /** The priority of the token, can be used for sorting. */ priority: Scalars['Int']['output']; + /** The rate provider data for the token */ + rateProviderData?: Maybe; + /** The symbol of the token */ symbol: Scalars['String']['output']; + /** The Telegram URL of the token */ telegramUrl?: Maybe; + /** Indicates if the token is tradable */ tradable: Scalars['Boolean']['output']; + /** The Twitter username of the token */ twitterUsername?: Maybe; + /** The website URL of the token */ websiteUrl?: Maybe; }; @@ -1443,25 +1847,52 @@ export type GqlTokenData = { websiteUrl?: Maybe; }; +/** Represents additional data for a token */ export type GqlTokenDynamicData = { __typename?: 'GqlTokenDynamicData'; + /** The all-time high price of the token */ ath: Scalars['Float']['output']; + /** The all-time low price of the token */ atl: Scalars['Float']['output']; + /** The fully diluted valuation of the token */ fdv?: Maybe; + /** The highest price in the last 24 hours */ high24h: Scalars['Float']['output']; + /** The unique identifier of the dynamic data */ id: Scalars['String']['output']; + /** The lowest price in the last 24 hours */ low24h: Scalars['Float']['output']; + /** The market capitalization of the token */ marketCap?: Maybe; + /** The current price of the token */ price: Scalars['Float']['output']; + /** The price change in the last 24 hours */ priceChange24h: Scalars['Float']['output']; + /** The percentage price change in the last 7 days */ priceChangePercent7d?: Maybe; + /** The percentage price change in the last 14 days */ priceChangePercent14d?: Maybe; + /** The percentage price change in the last 24 hours */ priceChangePercent24h: Scalars['Float']['output']; + /** The percentage price change in the last 30 days */ priceChangePercent30d?: Maybe; + /** The address of the token */ tokenAddress: Scalars['String']['output']; + /** The timestamp when the data was last updated */ updatedAt: Scalars['String']['output']; }; +/** Result of the poolReloadPools mutation */ +export type GqlTokenMutationResult = { + __typename?: 'GqlTokenMutationResult'; + /** The chain that was reloaded. */ + chain: GqlChain; + /** The error message */ + error?: Maybe; + /** Whether it was successful or not. */ + success: Scalars['Boolean']['output']; +}; + export type GqlTokenPrice = { __typename?: 'GqlTokenPrice'; address: Scalars['String']['output']; @@ -1503,46 +1934,119 @@ export type GqlUserPoolBalance = { walletBalance: Scalars['AmountHumanReadable']['output']; }; +export type GqlUserStakedBalance = { + __typename?: 'GqlUserStakedBalance'; + /** The staked BPT balance as float. */ + balance: Scalars['AmountHumanReadable']['output']; + /** The steaked BPT balance in USD as float. */ + balanceUsd: Scalars['Float']['output']; + /** The id of the staking to match with GqlPoolStaking.id. */ + stakingId: Scalars['String']['output']; + /** The staking type (Gauge, farm, aura, etc.) in which this balance is staked. */ + stakingType: GqlPoolStakingType; +}; + export type GqlUserSwapVolumeFilter = { poolIdIn?: InputMaybe>; tokenInIn?: InputMaybe>; tokenOutIn?: InputMaybe>; }; +export type GqlVeBalBalance = { + __typename?: 'GqlVeBalBalance'; + balance: Scalars['AmountHumanReadable']['output']; + chain: GqlChain; + locked: Scalars['AmountHumanReadable']['output']; + lockedUsd: Scalars['AmountHumanReadable']['output']; +}; + export type GqlVeBalUserData = { __typename?: 'GqlVeBalUserData'; balance: Scalars['AmountHumanReadable']['output']; + locked: Scalars['AmountHumanReadable']['output']; + lockedUsd: Scalars['AmountHumanReadable']['output']; rank?: Maybe; }; +/** The Gauge that can be voted on through veBAL and that will ultimately receive the rewards. */ export type GqlVotingGauge = { __typename?: 'GqlVotingGauge'; + /** The timestamp the gauge was added. */ addedTimestamp?: Maybe; + /** The address of the root gauge on Ethereum mainnet. */ address: Scalars['Bytes']['output']; + /** The address of the child gauge on the specific chain. */ childGaugeAddress?: Maybe; + /** Whether the gauge is killed or not. */ isKilled: Scalars['Boolean']['output']; + /** The relative weight the gauge received this epoch (not more than 1.0). */ + relativeWeight: Scalars['String']['output']; + /** The relative weight cap. 1.0 for uncapped. */ relativeWeightCap?: Maybe; }; +/** A token inside of a pool with a voting gauge. */ export type GqlVotingGaugeToken = { __typename?: 'GqlVotingGaugeToken'; + /** The address of the token. */ address: Scalars['String']['output']; + /** The URL to the token logo. */ logoURI: Scalars['String']['output']; + /** The symbol of the token. */ symbol: Scalars['String']['output']; + /** If it is a weighted pool, the weigh of the token is shown here in %. 0.5 = 50%. */ weight?: Maybe; }; +/** The pool that can be voted on through veBAL */ export type GqlVotingPool = { __typename?: 'GqlVotingPool'; + /** The address of the pool. */ address: Scalars['Bytes']['output']; + /** The chain this pool is on. */ chain: GqlChain; + /** The gauge that is connected to the pool and that will receive the rewards. */ gauge: GqlVotingGauge; + /** Pool ID */ id: Scalars['ID']['output']; + /** The symbol of the pool. */ symbol: Scalars['String']['output']; + /** The tokens inside the pool. */ tokens: Array; + /** The type of the pool. */ type: GqlPoolType; }; +/** Hook data */ +export type Hook = { + __typename?: 'Hook'; + address: Scalars['String']['output']; + chain: GqlChain; + /** Data points changing over time */ + dynamicData?: Maybe; + /** True when hook can change the amounts send to the vault. Necessary to deduct the fees. */ + enableHookAdjustedAmounts: Scalars['Boolean']['output']; + /** List of pools using the hook */ + poolsIds?: Maybe>>; + shouldCallAfterAddLiquidity: Scalars['Boolean']['output']; + shouldCallAfterInitialize: Scalars['Boolean']['output']; + shouldCallAfterRemoveLiquidity: Scalars['Boolean']['output']; + shouldCallAfterSwap: Scalars['Boolean']['output']; + shouldCallBeforeAddLiquidity: Scalars['Boolean']['output']; + shouldCallBeforeInitialize: Scalars['Boolean']['output']; + shouldCallBeforeRemoveLiquidity: Scalars['Boolean']['output']; + shouldCallBeforeSwap: Scalars['Boolean']['output']; + shouldCallComputeDynamicSwapFee: Scalars['Boolean']['output']; +}; + +/** Collection of hook specific data. Percentage format is 0.01 -> 0.01%. */ +export type HookData = { + __typename?: 'HookData'; + addLiquidityFeePercentage?: Maybe; + removeLiquidityFeePercentage?: Maybe; + swapFeePercentage?: Maybe; +}; + export type Mutation = { __typename?: 'Mutation'; beetsPoolLoadReliquarySnapshotsForAllFarms: Scalars['String']['output']; @@ -1559,7 +2063,9 @@ export type Mutation = { poolLoadSnapshotsForPools: Scalars['String']['output']; poolReloadAllPoolAprs: Scalars['String']['output']; poolReloadAllTokenNestedPoolIds: Scalars['String']['output']; + poolReloadPools: Array; poolReloadStakingForAllPools: Scalars['String']['output']; + poolSyncAllCowSnapshots: Array; poolSyncAllPoolsFromSubgraph: Array; poolSyncLatestSnapshotsForAllPools: Scalars['String']['output']; poolSyncNewPoolsFromSubgraph: Array; @@ -1579,6 +2085,7 @@ export type Mutation = { sftmxSyncWithdrawalRequests: Scalars['String']['output']; tokenDeleteTokenType: Scalars['String']['output']; tokenReloadAllTokenTypes: Scalars['String']['output']; + tokenReloadErc4626Tokens: Array; tokenReloadTokenPrices?: Maybe; tokenSyncLatestFxPrices: Scalars['String']['output']; tokenSyncTokenDefinitions: Scalars['String']['output']; @@ -1625,13 +2132,23 @@ export type MutationPoolReloadAllPoolAprsArgs = { }; +export type MutationPoolReloadPoolsArgs = { + chains: Array; +}; + + export type MutationPoolReloadStakingForAllPoolsArgs = { stakingTypes: Array; }; +export type MutationPoolSyncAllCowSnapshotsArgs = { + chains: Array; +}; + + export type MutationPoolSyncLatestSnapshotsForAllPoolsArgs = { - daysToSync?: InputMaybe; + chain: GqlChain; }; @@ -1651,6 +2168,11 @@ export type MutationTokenDeleteTokenTypeArgs = { }; +export type MutationTokenReloadErc4626TokensArgs = { + chains: Array; +}; + + export type MutationTokenReloadTokenPricesArgs = { chains: Array; }; @@ -1684,18 +2206,29 @@ export type Query = { blocksGetBlocksPerSecond: Scalars['Float']['output']; blocksGetBlocksPerYear: Scalars['Float']['output']; contentGetNewsItems: Array; + /** Returns list of hooks. */ + hooks?: Maybe>; latestSyncedBlocks: GqlLatestSyncedBlocks; /** Getting swap, add and remove events with paging */ poolEvents: Array; - /** Will de deprecated in favor of poolEvents */ + /** + * Will de deprecated in favor of poolEvents + * @deprecated Use poolEvents instead + */ poolGetBatchSwaps: Array; /** Getting swap, add and remove events with range */ poolGetEvents: Array; - /** Will de deprecated in favor of poolGetFeaturedPools */ + /** + * Will de deprecated in favor of poolGetFeaturedPools + * @deprecated Use poolGetFeaturedPools instead + */ poolGetFeaturedPoolGroups: Array; /** Returns the list of featured pools for chains */ poolGetFeaturedPools: Array; - /** Will de deprecated in favor of poolEvents */ + /** + * Will de deprecated in favor of poolEvents + * @deprecated Use poolEvents instead + */ poolGetJoinExits: Array; /** Returns one pool. If a user address is provided, the user balances for the given pool will also be returned. */ poolGetPool: GqlPoolBase; @@ -1705,7 +2238,10 @@ export type Query = { poolGetPoolsCount: Scalars['Int']['output']; /** Gets all the snapshots for a given pool on a chain for a certain range */ poolGetSnapshots: Array; - /** Will de deprecated in favor of poolEvents */ + /** + * Will de deprecated in favor of poolEvents + * @deprecated Use poolEvents instead + */ poolGetSwaps: Array; protocolMetricsAggregated: GqlProtocolMetricsAggregated; protocolMetricsChain: GqlProtocolMetricsChain; @@ -1719,16 +2255,42 @@ export type Query = { sorGetSwapPaths: GqlSorGetSwapPaths; /** Get swap quote from the SOR, queries both the old and new SOR */ sorGetSwaps: GqlSorGetSwapsResponse; + /** + * Returns the candlestick chart data for a token for a given range. + * @deprecated Use tokenGetHistoricalPrices instead + */ tokenGetCandlestickChartData: Array; + /** Returns all current prices for allowed tokens for a given chain or chains */ tokenGetCurrentPrices: Array; + /** Returns the historical prices for a given set of tokens for a given chain and range */ tokenGetHistoricalPrices: Array; + /** + * DEPRECATED: Returns pricing data for a given token for a given range + * @deprecated Use tokenGetHistoricalPrices instead + */ tokenGetPriceChartData: Array; + /** + * Returns the price of either BAL or BEETS depending on chain + * @deprecated Use tokenGetTokensDynamicData instead + */ tokenGetProtocolTokenPrice: Scalars['AmountHumanReadable']['output']; + /** Returns the price of a token priced in another token for a given range. */ tokenGetRelativePriceChartData: Array; + /** + * Returns meta data for a given token such as description, website, etc. + * @deprecated Use tokenGetTokens instead + */ tokenGetTokenData?: Maybe; + /** Returns dynamic data of a token such as price, market cap, etc. */ tokenGetTokenDynamicData?: Maybe; + /** Returns all allowed tokens for a given chain or chains */ tokenGetTokens: Array; + /** + * Returns meta data for a given set of tokens such as description, website, etc. + * @deprecated Use tokenGetTokens instead + */ tokenGetTokensData: Array; + /** Returns dynamic data of a set of tokens such as price, market cap, etc. */ tokenGetTokensDynamicData: Array; userGetFbeetsBalance: GqlUserFbeetsBalance; userGetPoolBalances: Array; @@ -1740,6 +2302,8 @@ export type Query = { veBalGetTotalSupply: Scalars['AmountHumanReadable']['output']; veBalGetUser: GqlVeBalUserData; veBalGetUserBalance: Scalars['AmountHumanReadable']['output']; + veBalGetUserBalances: Array; + /** Returns all pools with veBAL gauges that can be voted on. */ veBalGetVotingList: Array; }; @@ -1755,10 +2319,15 @@ export type QueryContentGetNewsItemsArgs = { }; +export type QueryHooksArgs = { + chain?: InputMaybe; +}; + + export type QueryPoolEventsArgs = { first?: InputMaybe; skip?: InputMaybe; - where: GqlPoolEventsFilter; + where?: InputMaybe; }; @@ -1864,7 +2433,7 @@ export type QuerySorGetSwapPathsArgs = { swapType: GqlSorSwapType; tokenIn: Scalars['String']['input']; tokenOut: Scalars['String']['input']; - useVaultVersion?: InputMaybe; + useProtocolVersion?: InputMaybe; }; @@ -1974,6 +2543,29 @@ export type QueryUserGetSwapsArgs = { skip?: InputMaybe; }; + +export type QueryVeBalGetTotalSupplyArgs = { + chain?: InputMaybe; +}; + + +export type QueryVeBalGetUserArgs = { + address: Scalars['String']['input']; + chain?: InputMaybe; +}; + + +export type QueryVeBalGetUserBalanceArgs = { + address?: InputMaybe; + chain?: InputMaybe; +}; + + +export type QueryVeBalGetUserBalancesArgs = { + address: Scalars['String']['input']; + chains?: InputMaybe>; +}; + export type Token = { __typename?: 'Token'; address: Scalars['String']['output']; diff --git a/packages/gql/src/balancer-api-v3/__generated__/Ethereum.server.ts b/packages/gql/src/balancer-api-v3/__generated__/Ethereum.server.ts index 5df748271..3527d6e6a 100644 --- a/packages/gql/src/balancer-api-v3/__generated__/Ethereum.server.ts +++ b/packages/gql/src/balancer-api-v3/__generated__/Ethereum.server.ts @@ -44,8 +44,10 @@ export type GqlChain = | 'AVALANCHE' | 'BASE' | 'FANTOM' + | 'FRAXTAL' | 'GNOSIS' | 'MAINNET' + | 'MODE' | 'OPTIMISM' | 'POLYGON' | 'SEPOLIA' @@ -128,41 +130,73 @@ export type GqlLatestSyncedBlocks = { userWalletSyncBlock: Scalars['BigInt']['output']; }; +/** All info on the nested pool if the token is a BPT. It will only support 1 level of nesting. */ export type GqlNestedPool = { __typename?: 'GqlNestedPool'; + /** Address of the pool. */ address: Scalars['Bytes']['output']; + /** Price rate of the Balancer Pool Token (BPT). */ bptPriceRate: Scalars['BigDecimal']['output']; + /** Timestamp of when the pool was created. */ createTime: Scalars['Int']['output']; + /** Address of the factory contract that created the pool, if applicable. */ factory?: Maybe; + /** Unique identifier of the pool. */ id: Scalars['ID']['output']; + /** Name of the pool. */ name: Scalars['String']['output']; + /** Total liquidity of the parent pool in the nested pool in USD. */ nestedLiquidity: Scalars['BigDecimal']['output']; + /** Percentage of the parents pool shares inside the nested pool. */ nestedPercentage: Scalars['BigDecimal']['output']; + /** Number of shares of the parent pool in the nested pool. */ nestedShares: Scalars['BigDecimal']['output']; + /** Address of the pool's owner. */ owner: Scalars['Bytes']['output']; + /** Fee charged for swapping tokens in the pool as %. 0.01 -> 0.01% */ swapFee: Scalars['BigDecimal']['output']; + /** Symbol of the pool. */ symbol: Scalars['String']['output']; + /** List of all tokens in the pool. */ tokens: Array; + /** Total liquidity in the pool in USD. */ totalLiquidity: Scalars['BigDecimal']['output']; + /** Total number of shares in the pool. */ totalShares: Scalars['BigDecimal']['output']; + /** Type of the pool. */ type: GqlPoolType; + /** Version of the pool. */ version: Scalars['Int']['output']; }; +/** Represents an event that occurs when liquidity is added or removed from a pool. */ export type GqlPoolAddRemoveEventV3 = GqlPoolEvent & { __typename?: 'GqlPoolAddRemoveEventV3'; + /** The block number of the event. */ blockNumber: Scalars['Int']['output']; + /** The block timestamp of the event. */ blockTimestamp: Scalars['Int']['output']; + /** The chain on which the event occurred. */ chain: GqlChain; + /** The unique identifier of the event. */ id: Scalars['ID']['output']; + /** The log index of the event. */ logIndex: Scalars['Int']['output']; + /** The pool ID associated with the event. */ poolId: Scalars['String']['output']; + /** The sender of the event. */ sender: Scalars['String']['output']; + /** The timestamp of the event. */ timestamp: Scalars['Int']['output']; + /** The tokens involved in the event. Ordered by poolToken index. */ tokens: Array; + /** The transaction hash of the event. */ tx: Scalars['String']['output']; + /** The type of the event. */ type: GqlPoolEventType; + /** The user address associated with the event. */ userAddress: Scalars['String']['output']; + /** The value of the event in USD. */ valueUSD: Scalars['Float']['output']; }; @@ -176,6 +210,43 @@ export type GqlPoolApr = { thirdPartyApr: GqlPoolAprValue; }; +/** All APRs for a pool */ +export type GqlPoolAprItem = { + __typename?: 'GqlPoolAprItem'; + /** The APR value in % -> 0.2 = 0.2% */ + apr: Scalars['Float']['output']; + /** The id of the APR item */ + id: Scalars['ID']['output']; + /** The title of the APR item, a human readable form */ + title: Scalars['String']['output']; + /** Specific type of this APR */ + type: GqlPoolAprItemType; +}; + +/** Enum representing the different types of the APR in a pool. */ +export type GqlPoolAprItemType = + /** APR that pools earns when BPT is staked on AURA. */ + | 'AURA' + /** Represents the yield from an IB (Interest-Bearing) asset APR in a pool. */ + | 'IB_YIELD' + /** APR in a pool that can be earned through locking, i.e. veBAL */ + | 'LOCKING' + /** Rewards distributed by merkl.xyz */ + | 'MERKL' + /** Represents if the APR items comes from a nested pool. */ + | 'NESTED' + /** Staking reward APR in a pool, i.e. BAL or BEETS. */ + | 'STAKING' + /** APR boost that can be earned, i.e. via veBAL or maBEETS. */ + | 'STAKING_BOOST' + /** Cow AMM specific APR */ + | 'SURPLUS' + /** Represents the swap fee APR in a pool. */ + | 'SWAP_FEE' + /** APR that can be earned thourgh voting, i.e. gauge votes */ + | 'VOTING' + | '%future added value'; + export type GqlPoolAprRange = { __typename?: 'GqlPoolAprRange'; max: Scalars['BigDecimal']['output']; @@ -193,23 +264,34 @@ export type GqlPoolAprValue = GqlPoolAprRange | GqlPoolAprTotal; export type GqlPoolBase = { /** The contract address of the pool. */ address: Scalars['Bytes']['output']; - /** Returns all pool tokens, including any nested tokens and phantom BPTs on one level. */ + /** + * Returns all pool tokens, including any nested tokens and phantom BPTs on one level. + * @deprecated Use poolTokens instead + */ allTokens: Array; + /** List of categories assigned by the team based on external factors */ + categories?: Maybe>>; /** The chain on which the pool is deployed */ chain: GqlChain; /** The timestamp the pool was created. */ createTime: Scalars['Int']['output']; /** The decimals of the BPT, usually 18 */ decimals: Scalars['Int']['output']; - /** Only returns main tokens, also known as leave tokens. Wont return any nested BPTs. Used for displaying the tokens that the pool consists of. */ + /** + * Only returns main tokens, also known as leave tokens. Wont return any nested BPTs. Used for displaying the tokens that the pool consists of. + * @deprecated Use poolTokens instead + */ displayTokens: Array; /** Dynamic data such as token balances, swap fees or volume */ dynamicData: GqlPoolDynamicData; /** The factory contract address from which the pool was created. */ factory?: Maybe; - /** The pool id. This is equal to the address for vaultVersion 3 pools */ + /** The pool id. This is equal to the address for protocolVersion 3 pools */ id: Scalars['ID']['output']; - /** Deprecated */ + /** + * Deprecated + * @deprecated Removed without replacement + */ investConfig: GqlPoolInvestConfig; /** The name of the pool as per contract */ name: Scalars['String']['output']; @@ -217,19 +299,29 @@ export type GqlPoolBase = { owner?: Maybe; /** Returns all pool tokens, including BPTs and nested pools if there are any. Only one nested level deep. */ poolTokens: Array; + /** The protocol version on which the pool is deployed, 1, 2 or 3 */ + protocolVersion: Scalars['Int']['output']; /** Staking options of this pool which emit additional rewards */ staking?: Maybe; /** The token symbol of the pool as per contract */ symbol: Scalars['String']['output']; + /** List of tags assigned by the team based on external factors */ + tags?: Maybe>>; /** The pool type, such as weighted, stable, etc. */ type: GqlPoolType; /** If a user address was provided in the query, the user balance is populated here */ userBalance?: Maybe; - /** The vault version on which the pool is deployed, 2 or 3 */ + /** + * The vault version on which the pool is deployed, 2 or 3 + * @deprecated use protocolVersion instead + */ vaultVersion: Scalars['Int']['output']; /** The version of the pool type. */ version: Scalars['Int']['output']; - /** Deprecated */ + /** + * Deprecated + * @deprecated Removed without replacement + */ withdrawConfig: GqlPoolWithdrawConfig; }; @@ -276,6 +368,7 @@ export type GqlPoolComposableStable = GqlPoolBase & { allTokens: Array; amp: Scalars['BigInt']['output']; bptPriceRate: Scalars['BigDecimal']['output']; + categories?: Maybe>>; chain: GqlChain; createTime: Scalars['Int']['output']; decimals: Scalars['Int']['output']; @@ -283,18 +376,27 @@ export type GqlPoolComposableStable = GqlPoolBase & { dynamicData: GqlPoolDynamicData; factory?: Maybe; id: Scalars['ID']['output']; + /** @deprecated Removed without replacement */ investConfig: GqlPoolInvestConfig; name: Scalars['String']['output']; nestingType: GqlPoolNestingType; owner: Scalars['Bytes']['output']; poolTokens: Array; + protocolVersion: Scalars['Int']['output']; staking?: Maybe; symbol: Scalars['String']['output']; + tags?: Maybe>>; + /** + * All tokens of the pool. If it is a nested pool, the nested pool is expanded with its own tokens again. + * @deprecated Use poolTokens instead + */ tokens: Array; type: GqlPoolType; userBalance?: Maybe; + /** @deprecated use protocolVersion instead */ vaultVersion: Scalars['Int']['output']; version: Scalars['Int']['output']; + /** @deprecated Removed without replacement */ withdrawConfig: GqlPoolWithdrawConfig; }; @@ -303,6 +405,7 @@ export type GqlPoolComposableStableNested = { address: Scalars['Bytes']['output']; amp: Scalars['BigInt']['output']; bptPriceRate: Scalars['BigDecimal']['output']; + categories?: Maybe>>; createTime: Scalars['Int']['output']; factory?: Maybe; id: Scalars['ID']['output']; @@ -311,6 +414,8 @@ export type GqlPoolComposableStableNested = { owner: Scalars['Bytes']['output']; swapFee: Scalars['BigDecimal']['output']; symbol: Scalars['String']['output']; + tags?: Maybe>>; + /** @deprecated Use poolTokens instead */ tokens: Array; totalLiquidity: Scalars['BigDecimal']['output']; totalShares: Scalars['BigDecimal']['output']; @@ -320,7 +425,13 @@ export type GqlPoolComposableStableNested = { export type GqlPoolDynamicData = { __typename?: 'GqlPoolDynamicData'; + /** Protocol and pool creator fees combined */ + aggregateSwapFee: Scalars['BigDecimal']['output']; + /** Protocol and pool creator fees combined */ + aggregateYieldFee: Scalars['BigDecimal']['output']; + /** @deprecated Use aprItems instead */ apr: GqlPoolApr; + aprItems: Array; fees24h: Scalars['BigDecimal']['output']; fees24hAth: Scalars['BigDecimal']['output']; fees24hAthTimestamp: Scalars['Int']['output']; @@ -328,6 +439,7 @@ export type GqlPoolDynamicData = { fees24hAtlTimestamp: Scalars['Int']['output']; fees48h: Scalars['BigDecimal']['output']; holdersCount: Scalars['BigInt']['output']; + /** True for bricked pools */ isInRecoveryMode: Scalars['Boolean']['output']; isPaused: Scalars['Boolean']['output']; lifetimeSwapFees: Scalars['BigDecimal']['output']; @@ -337,6 +449,11 @@ export type GqlPoolDynamicData = { sharePriceAthTimestamp: Scalars['Int']['output']; sharePriceAtl: Scalars['BigDecimal']['output']; sharePriceAtlTimestamp: Scalars['Int']['output']; + /** CowAmm specific, equivalent of swap fees */ + surplus24h: Scalars['BigDecimal']['output']; + /** CowAmm specific, equivalent of swap fees */ + surplus48h: Scalars['BigDecimal']['output']; + /** Disabled for bricked pools */ swapEnabled: Scalars['Boolean']['output']; swapFee: Scalars['BigDecimal']['output']; swapsCount: Scalars['BigInt']['output']; @@ -363,6 +480,7 @@ export type GqlPoolElement = GqlPoolBase & { address: Scalars['Bytes']['output']; allTokens: Array; baseToken: Scalars['Bytes']['output']; + categories?: Maybe>>; chain: GqlChain; createTime: Scalars['Int']['output']; decimals: Scalars['Int']['output']; @@ -370,34 +488,53 @@ export type GqlPoolElement = GqlPoolBase & { dynamicData: GqlPoolDynamicData; factory?: Maybe; id: Scalars['ID']['output']; + /** @deprecated Removed without replacement */ investConfig: GqlPoolInvestConfig; name: Scalars['String']['output']; owner: Scalars['Bytes']['output']; poolTokens: Array; principalToken: Scalars['Bytes']['output']; + protocolVersion: Scalars['Int']['output']; staking?: Maybe; symbol: Scalars['String']['output']; + tags?: Maybe>>; + /** @deprecated Use poolTokens instead */ tokens: Array; type: GqlPoolType; unitSeconds: Scalars['BigInt']['output']; userBalance?: Maybe; + /** @deprecated use protocolVersion instead */ vaultVersion: Scalars['Int']['output']; version: Scalars['Int']['output']; + /** @deprecated Removed without replacement */ withdrawConfig: GqlPoolWithdrawConfig; }; +/** Represents an event that occurs in a pool. */ export type GqlPoolEvent = { + /** The block number of the event. */ blockNumber: Scalars['Int']['output']; + /** The block timestamp of the event. */ blockTimestamp: Scalars['Int']['output']; + /** The chain on which the event occurred. */ chain: GqlChain; + /** The unique identifier of the event. */ id: Scalars['ID']['output']; + /** The log index of the event. */ logIndex: Scalars['Int']['output']; + /** The pool ID associated with the event. */ poolId: Scalars['String']['output']; + /** The sender of the event. */ sender: Scalars['String']['output']; + /** The timestamp of the event. */ timestamp: Scalars['Int']['output']; + /** The transaction hash of the event. */ tx: Scalars['String']['output']; + /** The type of the event. */ type: GqlPoolEventType; + /** The user address associated with the event. */ userAddress: Scalars['String']['output']; + /** The USD value of this event. */ valueUSD: Scalars['Float']['output']; }; @@ -421,11 +558,15 @@ export type GqlPoolEventsDataRange = | '%future added value'; export type GqlPoolEventsFilter = { - chain: GqlChain; - poolId: Scalars['String']['input']; + chainIn?: InputMaybe>>; + poolIdIn?: InputMaybe>>; range?: InputMaybe; typeIn?: InputMaybe>>; userAddress?: InputMaybe; + /** USD value of the event */ + valueUSD_gt?: InputMaybe; + /** USD value of the event */ + valueUSD_gte?: InputMaybe; }; export type GqlPoolFeaturedPool = { @@ -447,8 +588,6 @@ export type GqlPoolFeaturedPoolGroup = { export type GqlPoolFeaturedPoolGroupItem = GqlFeaturePoolGroupItemExternalLink | GqlPoolMinimal; export type GqlPoolFilter = { - categoryIn?: InputMaybe>; - categoryNotIn?: InputMaybe>; chainIn?: InputMaybe>; chainNotIn?: InputMaybe>; createTime?: InputMaybe; @@ -459,15 +598,33 @@ export type GqlPoolFilter = { minTvl?: InputMaybe; poolTypeIn?: InputMaybe>; poolTypeNotIn?: InputMaybe>; + protocolVersionIn?: InputMaybe>; + /** + * For list of tags see: https://github.com/balancer/metadata/blob/main/pools/index.json + * Use uppercase + */ + tagIn?: InputMaybe>; + /** + * For list of tags see: https://github.com/balancer/metadata/blob/main/pools/index.json + * Use uppercase + */ + tagNotIn?: InputMaybe>; tokensIn?: InputMaybe>; tokensNotIn?: InputMaybe>; userAddress?: InputMaybe; - vaultVersionIn?: InputMaybe>; }; export type GqlPoolFilterCategory = | 'BLACK_LISTED' | 'INCENTIVIZED' + | 'LRT' + | 'POINTS' + | 'POINTS_EIGENLAYER' + | 'POINTS_GYRO' + | 'POINTS_KELP' + | 'POINTS_RENZO' + | 'POINTS_SWELL' + | 'SUPERFEST' | '%future added value'; export type GqlPoolFx = GqlPoolBase & { @@ -476,6 +633,7 @@ export type GqlPoolFx = GqlPoolBase & { allTokens: Array; alpha: Scalars['String']['output']; beta: Scalars['String']['output']; + categories?: Maybe>>; chain: GqlChain; createTime: Scalars['Int']['output']; decimals: Scalars['Int']['output']; @@ -485,18 +643,27 @@ export type GqlPoolFx = GqlPoolBase & { epsilon: Scalars['String']['output']; factory?: Maybe; id: Scalars['ID']['output']; + /** @deprecated Removed without replacement */ investConfig: GqlPoolInvestConfig; lambda: Scalars['String']['output']; name: Scalars['String']['output']; owner?: Maybe; poolTokens: Array; + protocolVersion: Scalars['Int']['output']; staking?: Maybe; symbol: Scalars['String']['output']; + tags?: Maybe>>; + /** + * All tokens of the pool. If it is a nested pool, the nested pool is expanded with its own tokens again. + * @deprecated Use poolTokens instead + */ tokens: Array; type: GqlPoolType; userBalance?: Maybe; + /** @deprecated use protocolVersion instead */ vaultVersion: Scalars['Int']['output']; version: Scalars['Int']['output']; + /** @deprecated Removed without replacement */ withdrawConfig: GqlPoolWithdrawConfig; }; @@ -507,6 +674,7 @@ export type GqlPoolGyro = GqlPoolBase & { alpha: Scalars['String']['output']; beta: Scalars['String']['output']; c: Scalars['String']['output']; + categories?: Maybe>>; chain: GqlChain; createTime: Scalars['Int']['output']; dSq: Scalars['String']['output']; @@ -515,30 +683,39 @@ export type GqlPoolGyro = GqlPoolBase & { dynamicData: GqlPoolDynamicData; factory?: Maybe; id: Scalars['ID']['output']; + /** @deprecated Removed without replacement */ investConfig: GqlPoolInvestConfig; lambda: Scalars['String']['output']; name: Scalars['String']['output']; nestingType: GqlPoolNestingType; owner: Scalars['Bytes']['output']; poolTokens: Array; + protocolVersion: Scalars['Int']['output']; root3Alpha: Scalars['String']['output']; s: Scalars['String']['output']; sqrtAlpha: Scalars['String']['output']; sqrtBeta: Scalars['String']['output']; staking?: Maybe; symbol: Scalars['String']['output']; + tags?: Maybe>>; tauAlphaX: Scalars['String']['output']; tauAlphaY: Scalars['String']['output']; tauBetaX: Scalars['String']['output']; tauBetaY: Scalars['String']['output']; + /** + * All tokens of the pool. If it is a nested pool, the nested pool is expanded with its own tokens again. + * @deprecated Use poolTokens instead + */ tokens: Array; type: GqlPoolType; u: Scalars['String']['output']; userBalance?: Maybe; v: Scalars['String']['output']; + /** @deprecated use protocolVersion instead */ vaultVersion: Scalars['Int']['output']; version: Scalars['Int']['output']; w: Scalars['String']['output']; + /** @deprecated Removed without replacement */ withdrawConfig: GqlPoolWithdrawConfig; z: Scalars['String']['output']; }; @@ -590,6 +767,7 @@ export type GqlPoolLiquidityBootstrapping = GqlPoolBase & { __typename?: 'GqlPoolLiquidityBootstrapping'; address: Scalars['Bytes']['output']; allTokens: Array; + categories?: Maybe>>; chain: GqlChain; createTime: Scalars['Int']['output']; decimals: Scalars['Int']['output']; @@ -597,18 +775,27 @@ export type GqlPoolLiquidityBootstrapping = GqlPoolBase & { dynamicData: GqlPoolDynamicData; factory?: Maybe; id: Scalars['ID']['output']; + /** @deprecated Removed without replacement */ investConfig: GqlPoolInvestConfig; name: Scalars['String']['output']; nestingType: GqlPoolNestingType; owner: Scalars['Bytes']['output']; poolTokens: Array; + protocolVersion: Scalars['Int']['output']; staking?: Maybe; symbol: Scalars['String']['output']; + tags?: Maybe>>; + /** + * All tokens of the pool. If it is a nested pool, the nested pool is expanded with its own tokens again. + * @deprecated Use poolTokens instead + */ tokens: Array; type: GqlPoolType; userBalance?: Maybe; + /** @deprecated use protocolVersion instead */ vaultVersion: Scalars['Int']['output']; version: Scalars['Int']['output']; + /** @deprecated Removed without replacement */ withdrawConfig: GqlPoolWithdrawConfig; }; @@ -617,6 +804,7 @@ export type GqlPoolMetaStable = GqlPoolBase & { address: Scalars['Bytes']['output']; allTokens: Array; amp: Scalars['BigInt']['output']; + categories?: Maybe>>; chain: GqlChain; createTime: Scalars['Int']['output']; decimals: Scalars['Int']['output']; @@ -624,17 +812,23 @@ export type GqlPoolMetaStable = GqlPoolBase & { dynamicData: GqlPoolDynamicData; factory?: Maybe; id: Scalars['ID']['output']; + /** @deprecated Removed without replacement */ investConfig: GqlPoolInvestConfig; name: Scalars['String']['output']; owner: Scalars['Bytes']['output']; poolTokens: Array; + protocolVersion: Scalars['Int']['output']; staking?: Maybe; symbol: Scalars['String']['output']; + tags?: Maybe>>; + /** @deprecated Use poolTokens instead */ tokens: Array; type: GqlPoolType; userBalance?: Maybe; + /** @deprecated use protocolVersion instead */ vaultVersion: Scalars['Int']['output']; version: Scalars['Int']['output']; + /** @deprecated Removed without replacement */ withdrawConfig: GqlPoolWithdrawConfig; }; @@ -645,38 +839,66 @@ export type GqlPoolMinimal = { address: Scalars['Bytes']['output']; /** Returns all pool tokens, including any nested tokens and phantom BPTs */ allTokens: Array; + /** List of categories assigned by the team based on external factors */ + categories?: Maybe>>; /** The chain on which the pool is deployed */ chain: GqlChain; /** The timestamp the pool was created. */ createTime: Scalars['Int']['output']; /** The decimals of the BPT, usually 18 */ decimals: Scalars['Int']['output']; - /** Only returns main tokens, also known as leave tokens. Wont return any nested BPTs. Used for displaying the tokens that the pool consists of. */ + /** Only returns main or underlying tokens, also known as leave tokens. Wont return any nested BPTs. Used for displaying the tokens that the pool consists of. */ displayTokens: Array; /** Dynamic data such as token balances, swap fees or volume */ dynamicData: GqlPoolDynamicData; /** The factory contract address from which the pool was created. */ factory?: Maybe; - /** The pool id. This is equal to the address for vaultVersion 3 pools */ + /** Whether at least one token in this pool is considered an ERC4626 token. */ + hasErc4626: Scalars['Boolean']['output']; + /** Hook assigned to a pool */ + hook?: Maybe; + /** The pool id. This is equal to the address for protocolVersion 3 pools */ id: Scalars['ID']['output']; + /** Pool is receiving rewards when liquidity tokens are staked */ + incentivized: Scalars['Boolean']['output']; /** The name of the pool as per contract */ name: Scalars['String']['output']; /** The wallet address of the owner of the pool. Pool owners can set certain properties like swapFees or AMP. */ owner?: Maybe; + /** The protocol version on which the pool is deployed, 1, 2 or 3 */ + protocolVersion: Scalars['Int']['output']; /** Staking options of this pool which emit additional rewards */ staking?: Maybe; /** The token symbol of the pool as per contract */ symbol: Scalars['String']['output']; + /** List of tags assigned by the team based on external factors */ + tags?: Maybe>>; /** The pool type, such as weighted, stable, etc. */ type: GqlPoolType; /** If a user address was provided in the query, the user balance is populated here */ userBalance?: Maybe; - /** The vault version on which the pool is deployed, 2 or 3 */ + /** + * The vault version on which the pool is deployed, 2 or 3 + * @deprecated use protocolVersion instead + */ vaultVersion: Scalars['Int']['output']; /** The version of the pool type. */ version: Scalars['Int']['output']; }; +/** Result of the poolReloadPools mutation */ +export type GqlPoolMutationResult = { + __typename?: 'GqlPoolMutationResult'; + /** The chain that was reloaded. */ + chain: GqlChain; + /** The error message */ + error?: Maybe; + /** Whether it was successful or not. */ + success: Scalars['Boolean']['output']; + /** The type of pools that were reloaded. */ + type: Scalars['String']['output']; +}; + export type GqlPoolNestedUnion = GqlPoolComposableStableNested; export type GqlPoolNestingType = @@ -708,10 +930,12 @@ export type GqlPoolSnapshot = { id: Scalars['ID']['output']; poolId: Scalars['String']['output']; sharePrice: Scalars['String']['output']; + surplus24h: Scalars['String']['output']; swapsCount: Scalars['String']['output']; timestamp: Scalars['Int']['output']; totalLiquidity: Scalars['String']['output']; totalShares: Scalars['String']['output']; + totalSurplus: Scalars['String']['output']; totalSwapFee: Scalars['String']['output']; totalSwapVolume: Scalars['String']['output']; volume24h: Scalars['String']['output']; @@ -730,6 +954,7 @@ export type GqlPoolStable = GqlPoolBase & { address: Scalars['Bytes']['output']; allTokens: Array; amp: Scalars['BigInt']['output']; + categories?: Maybe>>; chain: GqlChain; createTime: Scalars['Int']['output']; decimals: Scalars['Int']['output']; @@ -737,17 +962,23 @@ export type GqlPoolStable = GqlPoolBase & { dynamicData: GqlPoolDynamicData; factory?: Maybe; id: Scalars['ID']['output']; + /** @deprecated Removed without replacement */ investConfig: GqlPoolInvestConfig; name: Scalars['String']['output']; owner: Scalars['Bytes']['output']; poolTokens: Array; + protocolVersion: Scalars['Int']['output']; staking?: Maybe; symbol: Scalars['String']['output']; + tags?: Maybe>>; + /** @deprecated Use poolTokens instead */ tokens: Array; type: GqlPoolType; userBalance?: Maybe; + /** @deprecated use protocolVersion instead */ vaultVersion: Scalars['Int']['output']; version: Scalars['Int']['output']; + /** @deprecated Removed without replacement */ withdrawConfig: GqlPoolWithdrawConfig; }; @@ -764,12 +995,23 @@ export type GqlPoolStableComposablePoolData = { export type GqlPoolStaking = { __typename?: 'GqlPoolStaking'; address: Scalars['String']['output']; + aura?: Maybe; chain: GqlChain; farm?: Maybe; gauge?: Maybe; id: Scalars['ID']['output']; reliquary?: Maybe; type: GqlPoolStakingType; + vebal?: Maybe; +}; + +export type GqlPoolStakingAura = { + __typename?: 'GqlPoolStakingAura'; + apr: Scalars['Float']['output']; + auraPoolAddress: Scalars['String']['output']; + auraPoolId: Scalars['String']['output']; + id: Scalars['ID']['output']; + isShutdown: Scalars['Boolean']['output']; }; export type GqlPoolStakingFarmRewarder = { @@ -840,12 +1082,20 @@ export type GqlPoolStakingReliquaryFarmLevel = { }; export type GqlPoolStakingType = + | 'AURA' | 'FRESH_BEETS' | 'GAUGE' | 'MASTER_CHEF' | 'RELIQUARY' + | 'VEBAL' | '%future added value'; +export type GqlPoolStakingVebal = { + __typename?: 'GqlPoolStakingVebal'; + id: Scalars['ID']['output']; + vebalAddress: Scalars['String']['output']; +}; + export type GqlPoolSwap = { __typename?: 'GqlPoolSwap'; chain: GqlChain; @@ -861,21 +1111,75 @@ export type GqlPoolSwap = { valueUSD: Scalars['Float']['output']; }; +/** Represents an event that occurs when a swap is made in a pool using the CowAmm protocol. */ +export type GqlPoolSwapEventCowAmm = GqlPoolEvent & { + __typename?: 'GqlPoolSwapEventCowAmm'; + /** The block number of the event. */ + blockNumber: Scalars['Int']['output']; + /** The block timestamp of the event. */ + blockTimestamp: Scalars['Int']['output']; + /** The chain on which the event occurred. */ + chain: GqlChain; + /** The fee that this swap generated. */ + fee: GqlPoolEventAmount; + /** The unique identifier of the event. */ + id: Scalars['ID']['output']; + /** The log index of the event. */ + logIndex: Scalars['Int']['output']; + /** The pool ID associated with the event. */ + poolId: Scalars['String']['output']; + /** The sender of the event. */ + sender: Scalars['String']['output']; + /** The surplus generated by the swap. */ + surplus: GqlPoolEventAmount; + /** The timestamp of the event. */ + timestamp: Scalars['Int']['output']; + /** The token that was swapped in the event. */ + tokenIn: GqlPoolEventAmount; + /** The token that was swapped out in the event. */ + tokenOut: GqlPoolEventAmount; + /** The transaction hash of the event. */ + tx: Scalars['String']['output']; + /** The type of the event. */ + type: GqlPoolEventType; + /** The user address associated with the event. */ + userAddress: Scalars['String']['output']; + /** The value of the event in USD. */ + valueUSD: Scalars['Float']['output']; +}; + +/** Represents an event that occurs when a swap is made in a pool. */ export type GqlPoolSwapEventV3 = GqlPoolEvent & { __typename?: 'GqlPoolSwapEventV3'; + /** The block number of the event. */ blockNumber: Scalars['Int']['output']; + /** The block timestamp of the event. */ blockTimestamp: Scalars['Int']['output']; + /** The chain on which the event occurred. */ chain: GqlChain; + /** The fee that this swap generated. */ + fee: GqlPoolEventAmount; + /** The unique identifier of the event. */ id: Scalars['ID']['output']; + /** The log index of the event. */ logIndex: Scalars['Int']['output']; + /** The pool ID associated with the event. */ poolId: Scalars['String']['output']; + /** The sender of the event. */ sender: Scalars['String']['output']; + /** The timestamp of the event. */ timestamp: Scalars['Int']['output']; + /** The token that was swapped in the event. */ tokenIn: GqlPoolEventAmount; + /** The token that was swapped out in the event. */ tokenOut: GqlPoolEventAmount; + /** The transaction hash of the event. */ tx: Scalars['String']['output']; + /** The type of the event. */ type: GqlPoolEventType; + /** The user address associated with the event. */ userAddress: Scalars['String']['output']; + /** The value of the event in USD. */ valueUSD: Scalars['Float']['output']; }; @@ -938,19 +1242,45 @@ export type GqlPoolTokenComposableStable = GqlPoolTokenBase & { export type GqlPoolTokenComposableStableNestedUnion = GqlPoolToken; +/** + * All info on the pool token. It will also include the nested pool if the token is a BPT. It will only support 1 level of nesting. + * A second (unsupported) level of nesting is shown by having hasNestedPool = true but nestedPool = null. + */ export type GqlPoolTokenDetail = { __typename?: 'GqlPoolTokenDetail'; + /** Address of the pool token. */ address: Scalars['String']['output']; + /** Balance of the pool token inside the pool. */ balance: Scalars['BigDecimal']['output']; + /** USD Balance of the pool token. */ + balanceUSD: Scalars['BigDecimal']['output']; + /** Decimals of the pool token. */ decimals: Scalars['Int']['output']; + /** Indicates whether this token is a BPT and therefor has a nested pool. */ hasNestedPool: Scalars['Boolean']['output']; + /** Id of the token. A combination of pool id and token address. */ id: Scalars['ID']['output']; + /** Index of the pool token in the pool as returned by the vault. */ index: Scalars['Int']['output']; + /** Whether the token is in the allow list. */ + isAllowed: Scalars['Boolean']['output']; + /** Whether the token is considered an ERC4626 token. */ + isErc4626: Scalars['Boolean']['output']; + /** Name of the pool token. */ name: Scalars['String']['output']; + /** Additional data for the nested pool if the token is a BPT. Null otherwise. */ nestedPool?: Maybe; + /** If it is an appreciating token, it shows the current price rate. 1 otherwise. */ priceRate: Scalars['BigDecimal']['output']; + /** The address of the price rate provider. */ priceRateProvider?: Maybe; + /** Additional data for the price rate provider, such as reviews or warnings. */ + priceRateProviderData?: Maybe; + /** Symbol of the pool token. */ symbol: Scalars['String']['output']; + /** If it is an Erc4262, this will be the underlying token if present in the API. */ + underlyingToken?: Maybe; + /** The weight of the token in the pool if it is a weighted pool, null otherwise */ weight?: Maybe; }; @@ -969,6 +1299,7 @@ export type GqlPoolTokenExpanded = { address: Scalars['String']['output']; decimals: Scalars['Int']['output']; id: Scalars['ID']['output']; + isErc4626: Scalars['Boolean']['output']; isMainToken: Scalars['Boolean']['output']; isNested: Scalars['Boolean']['output']; isPhantomBpt: Scalars['Boolean']['output']; @@ -982,6 +1313,7 @@ export type GqlPoolTokenUnion = GqlPoolToken | GqlPoolTokenComposableStable; /** Supported pool types */ export type GqlPoolType = | 'COMPOSABLE_STABLE' + | 'COW_AMM' | 'ELEMENT' | 'FX' | 'GYRO' @@ -1001,10 +1333,8 @@ export type GqlPoolUnion = GqlPoolComposableStable | GqlPoolElement | GqlPoolFx /** If a user address was provided in the query, the user balance is populated here */ export type GqlPoolUserBalance = { __typename?: 'GqlPoolUserBalance'; - /** The staked balance in either a gauge or farm as float. */ - stakedBalance: Scalars['AmountHumanReadable']['output']; - /** The staked balance in either a gauge or farm in USD as float. */ - stakedBalanceUsd: Scalars['Float']['output']; + /** The staked BPT balances of the user. */ + stakedBalances: Array; /** Total balance (wallet + staked) as float */ totalBalance: Scalars['AmountHumanReadable']['output']; /** Total balance (wallet + staked) in USD as float */ @@ -1025,6 +1355,7 @@ export type GqlPoolWeighted = GqlPoolBase & { __typename?: 'GqlPoolWeighted'; address: Scalars['Bytes']['output']; allTokens: Array; + categories?: Maybe>>; chain: GqlChain; createTime: Scalars['Int']['output']; decimals: Scalars['Int']['output']; @@ -1032,19 +1363,27 @@ export type GqlPoolWeighted = GqlPoolBase & { dynamicData: GqlPoolDynamicData; factory?: Maybe; id: Scalars['ID']['output']; + /** @deprecated Removed without replacement */ investConfig: GqlPoolInvestConfig; name: Scalars['String']['output']; nestingType: GqlPoolNestingType; owner: Scalars['Bytes']['output']; poolTokens: Array; + protocolVersion: Scalars['Int']['output']; staking?: Maybe; symbol: Scalars['String']['output']; - /** All tokens of the pool. If it is a nested pool, the nested pool is expanded with its own tokens again. */ + tags?: Maybe>>; + /** + * All tokens of the pool. If it is a nested pool, the nested pool is expanded with its own tokens again. + * @deprecated Use poolTokens instead + */ tokens: Array; type: GqlPoolType; userBalance?: Maybe; + /** @deprecated use protocolVersion instead */ vaultVersion: Scalars['Int']['output']; version: Scalars['Int']['output']; + /** @deprecated Removed without replacement */ withdrawConfig: GqlPoolWithdrawConfig; }; @@ -1071,6 +1410,36 @@ export type GqlPriceImpact = { priceImpact?: Maybe; }; +/** Represents the data of a price rate provider */ +export type GqlPriceRateProviderData = { + __typename?: 'GqlPriceRateProviderData'; + /** The address of the price rate provider */ + address: Scalars['String']['output']; + /** The factory used to create the price rate provider, if applicable */ + factory?: Maybe; + /** The name of the price rate provider */ + name?: Maybe; + /** The filename of the review of the price rate provider */ + reviewFile?: Maybe; + /** Indicates if the price rate provider has been reviewed */ + reviewed: Scalars['Boolean']['output']; + /** A summary of the price rate provider, usually just says safe or unsafe */ + summary?: Maybe; + /** Upgradeable components of the price rate provider */ + upgradeableComponents?: Maybe>>; + /** Warnings associated with the price rate provider */ + warnings?: Maybe>; +}; + +/** Represents an upgradeable component of a price rate provider */ +export type GqlPriceRateProviderUpgradeableComponent = { + __typename?: 'GqlPriceRateProviderUpgradeableComponent'; + /** The entry point / proxy of the upgradeable component */ + entryPoint: Scalars['String']['output']; + /** Indicates if the implementation of the component has been reviewed */ + implementationReviewed: Scalars['String']['output']; +}; + export type GqlProtocolMetricsAggregated = { __typename?: 'GqlProtocolMetricsAggregated'; chains: Array; @@ -1250,6 +1619,8 @@ export type GqlSorGetSwapPaths = { paths: Array; /** Price impact of the path */ priceImpact: GqlPriceImpact; + /** The version of the protocol these paths are from */ + protocolVersion: Scalars['Int']['output']; /** The return amount in human form. Return amount is either tokenOutAmount (if swapType is exactIn) or tokenInAmount (if swapType is exactOut) */ returnAmount: Scalars['AmountHumanReadable']['output']; /** The return amount in a raw form */ @@ -1274,7 +1645,10 @@ export type GqlSorGetSwapPaths = { tokenOut: Scalars['String']['output']; /** The amount of tokenOut in human form */ tokenOutAmount: Scalars['AmountHumanReadable']['output']; - /** The version of the vault these paths are from */ + /** + * The version of the vault these paths are from + * @deprecated Use protocolVersion instead + */ vaultVersion: Scalars['Int']['output']; }; @@ -1306,13 +1680,20 @@ export type GqlSorPath = { __typename?: 'GqlSorPath'; /** Input amount of this path in scaled form */ inputAmountRaw: Scalars['String']['output']; + /** A sorted list of booleans that indicate if the respective pool is a buffer */ + isBuffer: Array>; /** Output amount of this path in scaled form */ outputAmountRaw: Scalars['String']['output']; /** A sorted list of pool ids that are used in this path */ pools: Array>; + /** The version of the protocol these paths are from */ + protocolVersion: Scalars['Int']['output']; /** A sorted list of tokens that are ussed in this path */ tokens: Array>; - /** Vault version of this path. */ + /** + * Vault version of this path. + * @deprecated Use protocolVersion instead + */ vaultVersion: Scalars['Int']['output']; }; @@ -1389,21 +1770,44 @@ export type GqlSwapCallDataInput = { slippagePercentage: Scalars['String']['input']; }; +/** Represents a token */ export type GqlToken = { __typename?: 'GqlToken'; + /** The address of the token */ address: Scalars['String']['output']; + /** The chain of the token */ chain: GqlChain; + /** The chain ID of the token */ chainId: Scalars['Int']['output']; + /** The coingecko ID for this token, if present */ + coingeckoId?: Maybe; + /** The number of decimal places for the token */ decimals: Scalars['Int']['output']; + /** The description of the token */ description?: Maybe; + /** The Discord URL of the token */ discordUrl?: Maybe; + /** Whether the token is considered an ERC4626 token. */ + isErc4626: Scalars['Boolean']['output']; + /** The logo URI of the token */ logoURI?: Maybe; + /** The name of the token */ name: Scalars['String']['output']; + /** The rate provider data for the token */ + priceRateProviderData?: Maybe; + /** The priority of the token, can be used for sorting. */ priority: Scalars['Int']['output']; + /** The rate provider data for the token */ + rateProviderData?: Maybe; + /** The symbol of the token */ symbol: Scalars['String']['output']; + /** The Telegram URL of the token */ telegramUrl?: Maybe; + /** Indicates if the token is tradable */ tradable: Scalars['Boolean']['output']; + /** The Twitter username of the token */ twitterUsername?: Maybe; + /** The website URL of the token */ websiteUrl?: Maybe; }; @@ -1441,25 +1845,52 @@ export type GqlTokenData = { websiteUrl?: Maybe; }; +/** Represents additional data for a token */ export type GqlTokenDynamicData = { __typename?: 'GqlTokenDynamicData'; + /** The all-time high price of the token */ ath: Scalars['Float']['output']; + /** The all-time low price of the token */ atl: Scalars['Float']['output']; + /** The fully diluted valuation of the token */ fdv?: Maybe; + /** The highest price in the last 24 hours */ high24h: Scalars['Float']['output']; + /** The unique identifier of the dynamic data */ id: Scalars['String']['output']; + /** The lowest price in the last 24 hours */ low24h: Scalars['Float']['output']; + /** The market capitalization of the token */ marketCap?: Maybe; + /** The current price of the token */ price: Scalars['Float']['output']; + /** The price change in the last 24 hours */ priceChange24h: Scalars['Float']['output']; + /** The percentage price change in the last 7 days */ priceChangePercent7d?: Maybe; + /** The percentage price change in the last 14 days */ priceChangePercent14d?: Maybe; + /** The percentage price change in the last 24 hours */ priceChangePercent24h: Scalars['Float']['output']; + /** The percentage price change in the last 30 days */ priceChangePercent30d?: Maybe; + /** The address of the token */ tokenAddress: Scalars['String']['output']; + /** The timestamp when the data was last updated */ updatedAt: Scalars['String']['output']; }; +/** Result of the poolReloadPools mutation */ +export type GqlTokenMutationResult = { + __typename?: 'GqlTokenMutationResult'; + /** The chain that was reloaded. */ + chain: GqlChain; + /** The error message */ + error?: Maybe; + /** Whether it was successful or not. */ + success: Scalars['Boolean']['output']; +}; + export type GqlTokenPrice = { __typename?: 'GqlTokenPrice'; address: Scalars['String']['output']; @@ -1501,46 +1932,119 @@ export type GqlUserPoolBalance = { walletBalance: Scalars['AmountHumanReadable']['output']; }; +export type GqlUserStakedBalance = { + __typename?: 'GqlUserStakedBalance'; + /** The staked BPT balance as float. */ + balance: Scalars['AmountHumanReadable']['output']; + /** The steaked BPT balance in USD as float. */ + balanceUsd: Scalars['Float']['output']; + /** The id of the staking to match with GqlPoolStaking.id. */ + stakingId: Scalars['String']['output']; + /** The staking type (Gauge, farm, aura, etc.) in which this balance is staked. */ + stakingType: GqlPoolStakingType; +}; + export type GqlUserSwapVolumeFilter = { poolIdIn?: InputMaybe>; tokenInIn?: InputMaybe>; tokenOutIn?: InputMaybe>; }; +export type GqlVeBalBalance = { + __typename?: 'GqlVeBalBalance'; + balance: Scalars['AmountHumanReadable']['output']; + chain: GqlChain; + locked: Scalars['AmountHumanReadable']['output']; + lockedUsd: Scalars['AmountHumanReadable']['output']; +}; + export type GqlVeBalUserData = { __typename?: 'GqlVeBalUserData'; balance: Scalars['AmountHumanReadable']['output']; + locked: Scalars['AmountHumanReadable']['output']; + lockedUsd: Scalars['AmountHumanReadable']['output']; rank?: Maybe; }; +/** The Gauge that can be voted on through veBAL and that will ultimately receive the rewards. */ export type GqlVotingGauge = { __typename?: 'GqlVotingGauge'; + /** The timestamp the gauge was added. */ addedTimestamp?: Maybe; + /** The address of the root gauge on Ethereum mainnet. */ address: Scalars['Bytes']['output']; + /** The address of the child gauge on the specific chain. */ childGaugeAddress?: Maybe; + /** Whether the gauge is killed or not. */ isKilled: Scalars['Boolean']['output']; + /** The relative weight the gauge received this epoch (not more than 1.0). */ + relativeWeight: Scalars['String']['output']; + /** The relative weight cap. 1.0 for uncapped. */ relativeWeightCap?: Maybe; }; +/** A token inside of a pool with a voting gauge. */ export type GqlVotingGaugeToken = { __typename?: 'GqlVotingGaugeToken'; + /** The address of the token. */ address: Scalars['String']['output']; + /** The URL to the token logo. */ logoURI: Scalars['String']['output']; + /** The symbol of the token. */ symbol: Scalars['String']['output']; + /** If it is a weighted pool, the weigh of the token is shown here in %. 0.5 = 50%. */ weight?: Maybe; }; +/** The pool that can be voted on through veBAL */ export type GqlVotingPool = { __typename?: 'GqlVotingPool'; + /** The address of the pool. */ address: Scalars['Bytes']['output']; + /** The chain this pool is on. */ chain: GqlChain; + /** The gauge that is connected to the pool and that will receive the rewards. */ gauge: GqlVotingGauge; + /** Pool ID */ id: Scalars['ID']['output']; + /** The symbol of the pool. */ symbol: Scalars['String']['output']; + /** The tokens inside the pool. */ tokens: Array; + /** The type of the pool. */ type: GqlPoolType; }; +/** Hook data */ +export type Hook = { + __typename?: 'Hook'; + address: Scalars['String']['output']; + chain: GqlChain; + /** Data points changing over time */ + dynamicData?: Maybe; + /** True when hook can change the amounts send to the vault. Necessary to deduct the fees. */ + enableHookAdjustedAmounts: Scalars['Boolean']['output']; + /** List of pools using the hook */ + poolsIds?: Maybe>>; + shouldCallAfterAddLiquidity: Scalars['Boolean']['output']; + shouldCallAfterInitialize: Scalars['Boolean']['output']; + shouldCallAfterRemoveLiquidity: Scalars['Boolean']['output']; + shouldCallAfterSwap: Scalars['Boolean']['output']; + shouldCallBeforeAddLiquidity: Scalars['Boolean']['output']; + shouldCallBeforeInitialize: Scalars['Boolean']['output']; + shouldCallBeforeRemoveLiquidity: Scalars['Boolean']['output']; + shouldCallBeforeSwap: Scalars['Boolean']['output']; + shouldCallComputeDynamicSwapFee: Scalars['Boolean']['output']; +}; + +/** Collection of hook specific data. Percentage format is 0.01 -> 0.01%. */ +export type HookData = { + __typename?: 'HookData'; + addLiquidityFeePercentage?: Maybe; + removeLiquidityFeePercentage?: Maybe; + swapFeePercentage?: Maybe; +}; + export type Mutation = { __typename?: 'Mutation'; beetsPoolLoadReliquarySnapshotsForAllFarms: Scalars['String']['output']; @@ -1557,7 +2061,9 @@ export type Mutation = { poolLoadSnapshotsForPools: Scalars['String']['output']; poolReloadAllPoolAprs: Scalars['String']['output']; poolReloadAllTokenNestedPoolIds: Scalars['String']['output']; + poolReloadPools: Array; poolReloadStakingForAllPools: Scalars['String']['output']; + poolSyncAllCowSnapshots: Array; poolSyncAllPoolsFromSubgraph: Array; poolSyncLatestSnapshotsForAllPools: Scalars['String']['output']; poolSyncNewPoolsFromSubgraph: Array; @@ -1577,6 +2083,7 @@ export type Mutation = { sftmxSyncWithdrawalRequests: Scalars['String']['output']; tokenDeleteTokenType: Scalars['String']['output']; tokenReloadAllTokenTypes: Scalars['String']['output']; + tokenReloadErc4626Tokens: Array; tokenReloadTokenPrices?: Maybe; tokenSyncLatestFxPrices: Scalars['String']['output']; tokenSyncTokenDefinitions: Scalars['String']['output']; @@ -1623,13 +2130,23 @@ export type MutationPoolReloadAllPoolAprsArgs = { }; +export type MutationPoolReloadPoolsArgs = { + chains: Array; +}; + + export type MutationPoolReloadStakingForAllPoolsArgs = { stakingTypes: Array; }; +export type MutationPoolSyncAllCowSnapshotsArgs = { + chains: Array; +}; + + export type MutationPoolSyncLatestSnapshotsForAllPoolsArgs = { - daysToSync?: InputMaybe; + chain: GqlChain; }; @@ -1649,6 +2166,11 @@ export type MutationTokenDeleteTokenTypeArgs = { }; +export type MutationTokenReloadErc4626TokensArgs = { + chains: Array; +}; + + export type MutationTokenReloadTokenPricesArgs = { chains: Array; }; @@ -1682,18 +2204,29 @@ export type Query = { blocksGetBlocksPerSecond: Scalars['Float']['output']; blocksGetBlocksPerYear: Scalars['Float']['output']; contentGetNewsItems: Array; + /** Returns list of hooks. */ + hooks?: Maybe>; latestSyncedBlocks: GqlLatestSyncedBlocks; /** Getting swap, add and remove events with paging */ poolEvents: Array; - /** Will de deprecated in favor of poolEvents */ + /** + * Will de deprecated in favor of poolEvents + * @deprecated Use poolEvents instead + */ poolGetBatchSwaps: Array; /** Getting swap, add and remove events with range */ poolGetEvents: Array; - /** Will de deprecated in favor of poolGetFeaturedPools */ + /** + * Will de deprecated in favor of poolGetFeaturedPools + * @deprecated Use poolGetFeaturedPools instead + */ poolGetFeaturedPoolGroups: Array; /** Returns the list of featured pools for chains */ poolGetFeaturedPools: Array; - /** Will de deprecated in favor of poolEvents */ + /** + * Will de deprecated in favor of poolEvents + * @deprecated Use poolEvents instead + */ poolGetJoinExits: Array; /** Returns one pool. If a user address is provided, the user balances for the given pool will also be returned. */ poolGetPool: GqlPoolBase; @@ -1703,7 +2236,10 @@ export type Query = { poolGetPoolsCount: Scalars['Int']['output']; /** Gets all the snapshots for a given pool on a chain for a certain range */ poolGetSnapshots: Array; - /** Will de deprecated in favor of poolEvents */ + /** + * Will de deprecated in favor of poolEvents + * @deprecated Use poolEvents instead + */ poolGetSwaps: Array; protocolMetricsAggregated: GqlProtocolMetricsAggregated; protocolMetricsChain: GqlProtocolMetricsChain; @@ -1717,16 +2253,42 @@ export type Query = { sorGetSwapPaths: GqlSorGetSwapPaths; /** Get swap quote from the SOR, queries both the old and new SOR */ sorGetSwaps: GqlSorGetSwapsResponse; + /** + * Returns the candlestick chart data for a token for a given range. + * @deprecated Use tokenGetHistoricalPrices instead + */ tokenGetCandlestickChartData: Array; + /** Returns all current prices for allowed tokens for a given chain or chains */ tokenGetCurrentPrices: Array; + /** Returns the historical prices for a given set of tokens for a given chain and range */ tokenGetHistoricalPrices: Array; + /** + * DEPRECATED: Returns pricing data for a given token for a given range + * @deprecated Use tokenGetHistoricalPrices instead + */ tokenGetPriceChartData: Array; + /** + * Returns the price of either BAL or BEETS depending on chain + * @deprecated Use tokenGetTokensDynamicData instead + */ tokenGetProtocolTokenPrice: Scalars['AmountHumanReadable']['output']; + /** Returns the price of a token priced in another token for a given range. */ tokenGetRelativePriceChartData: Array; + /** + * Returns meta data for a given token such as description, website, etc. + * @deprecated Use tokenGetTokens instead + */ tokenGetTokenData?: Maybe; + /** Returns dynamic data of a token such as price, market cap, etc. */ tokenGetTokenDynamicData?: Maybe; + /** Returns all allowed tokens for a given chain or chains */ tokenGetTokens: Array; + /** + * Returns meta data for a given set of tokens such as description, website, etc. + * @deprecated Use tokenGetTokens instead + */ tokenGetTokensData: Array; + /** Returns dynamic data of a set of tokens such as price, market cap, etc. */ tokenGetTokensDynamicData: Array; userGetFbeetsBalance: GqlUserFbeetsBalance; userGetPoolBalances: Array; @@ -1738,6 +2300,8 @@ export type Query = { veBalGetTotalSupply: Scalars['AmountHumanReadable']['output']; veBalGetUser: GqlVeBalUserData; veBalGetUserBalance: Scalars['AmountHumanReadable']['output']; + veBalGetUserBalances: Array; + /** Returns all pools with veBAL gauges that can be voted on. */ veBalGetVotingList: Array; }; @@ -1753,10 +2317,15 @@ export type QueryContentGetNewsItemsArgs = { }; +export type QueryHooksArgs = { + chain?: InputMaybe; +}; + + export type QueryPoolEventsArgs = { first?: InputMaybe; skip?: InputMaybe; - where: GqlPoolEventsFilter; + where?: InputMaybe; }; @@ -1862,7 +2431,7 @@ export type QuerySorGetSwapPathsArgs = { swapType: GqlSorSwapType; tokenIn: Scalars['String']['input']; tokenOut: Scalars['String']['input']; - useVaultVersion?: InputMaybe; + useProtocolVersion?: InputMaybe; }; @@ -1972,6 +2541,29 @@ export type QueryUserGetSwapsArgs = { skip?: InputMaybe; }; + +export type QueryVeBalGetTotalSupplyArgs = { + chain?: InputMaybe; +}; + + +export type QueryVeBalGetUserArgs = { + address: Scalars['String']['input']; + chain?: InputMaybe; +}; + + +export type QueryVeBalGetUserBalanceArgs = { + address?: InputMaybe; + chain?: InputMaybe; +}; + + +export type QueryVeBalGetUserBalancesArgs = { + address: Scalars['String']['input']; + chains?: InputMaybe>; +}; + export type Token = { __typename?: 'Token'; address: Scalars['String']['output']; diff --git a/packages/gql/src/balancer-api-v3/__generated__/Ethereum.ts b/packages/gql/src/balancer-api-v3/__generated__/Ethereum.ts index dbb6d7c10..5e68d0c72 100644 --- a/packages/gql/src/balancer-api-v3/__generated__/Ethereum.ts +++ b/packages/gql/src/balancer-api-v3/__generated__/Ethereum.ts @@ -46,8 +46,10 @@ export type GqlChain = | 'AVALANCHE' | 'BASE' | 'FANTOM' + | 'FRAXTAL' | 'GNOSIS' | 'MAINNET' + | 'MODE' | 'OPTIMISM' | 'POLYGON' | 'SEPOLIA' @@ -130,41 +132,73 @@ export type GqlLatestSyncedBlocks = { userWalletSyncBlock: Scalars['BigInt']['output']; }; +/** All info on the nested pool if the token is a BPT. It will only support 1 level of nesting. */ export type GqlNestedPool = { __typename?: 'GqlNestedPool'; + /** Address of the pool. */ address: Scalars['Bytes']['output']; + /** Price rate of the Balancer Pool Token (BPT). */ bptPriceRate: Scalars['BigDecimal']['output']; + /** Timestamp of when the pool was created. */ createTime: Scalars['Int']['output']; + /** Address of the factory contract that created the pool, if applicable. */ factory?: Maybe; + /** Unique identifier of the pool. */ id: Scalars['ID']['output']; + /** Name of the pool. */ name: Scalars['String']['output']; + /** Total liquidity of the parent pool in the nested pool in USD. */ nestedLiquidity: Scalars['BigDecimal']['output']; + /** Percentage of the parents pool shares inside the nested pool. */ nestedPercentage: Scalars['BigDecimal']['output']; + /** Number of shares of the parent pool in the nested pool. */ nestedShares: Scalars['BigDecimal']['output']; + /** Address of the pool's owner. */ owner: Scalars['Bytes']['output']; + /** Fee charged for swapping tokens in the pool as %. 0.01 -> 0.01% */ swapFee: Scalars['BigDecimal']['output']; + /** Symbol of the pool. */ symbol: Scalars['String']['output']; + /** List of all tokens in the pool. */ tokens: Array; + /** Total liquidity in the pool in USD. */ totalLiquidity: Scalars['BigDecimal']['output']; + /** Total number of shares in the pool. */ totalShares: Scalars['BigDecimal']['output']; + /** Type of the pool. */ type: GqlPoolType; + /** Version of the pool. */ version: Scalars['Int']['output']; }; +/** Represents an event that occurs when liquidity is added or removed from a pool. */ export type GqlPoolAddRemoveEventV3 = GqlPoolEvent & { __typename?: 'GqlPoolAddRemoveEventV3'; + /** The block number of the event. */ blockNumber: Scalars['Int']['output']; + /** The block timestamp of the event. */ blockTimestamp: Scalars['Int']['output']; + /** The chain on which the event occurred. */ chain: GqlChain; + /** The unique identifier of the event. */ id: Scalars['ID']['output']; + /** The log index of the event. */ logIndex: Scalars['Int']['output']; + /** The pool ID associated with the event. */ poolId: Scalars['String']['output']; + /** The sender of the event. */ sender: Scalars['String']['output']; + /** The timestamp of the event. */ timestamp: Scalars['Int']['output']; + /** The tokens involved in the event. Ordered by poolToken index. */ tokens: Array; + /** The transaction hash of the event. */ tx: Scalars['String']['output']; + /** The type of the event. */ type: GqlPoolEventType; + /** The user address associated with the event. */ userAddress: Scalars['String']['output']; + /** The value of the event in USD. */ valueUSD: Scalars['Float']['output']; }; @@ -178,6 +212,43 @@ export type GqlPoolApr = { thirdPartyApr: GqlPoolAprValue; }; +/** All APRs for a pool */ +export type GqlPoolAprItem = { + __typename?: 'GqlPoolAprItem'; + /** The APR value in % -> 0.2 = 0.2% */ + apr: Scalars['Float']['output']; + /** The id of the APR item */ + id: Scalars['ID']['output']; + /** The title of the APR item, a human readable form */ + title: Scalars['String']['output']; + /** Specific type of this APR */ + type: GqlPoolAprItemType; +}; + +/** Enum representing the different types of the APR in a pool. */ +export type GqlPoolAprItemType = + /** APR that pools earns when BPT is staked on AURA. */ + | 'AURA' + /** Represents the yield from an IB (Interest-Bearing) asset APR in a pool. */ + | 'IB_YIELD' + /** APR in a pool that can be earned through locking, i.e. veBAL */ + | 'LOCKING' + /** Rewards distributed by merkl.xyz */ + | 'MERKL' + /** Represents if the APR items comes from a nested pool. */ + | 'NESTED' + /** Staking reward APR in a pool, i.e. BAL or BEETS. */ + | 'STAKING' + /** APR boost that can be earned, i.e. via veBAL or maBEETS. */ + | 'STAKING_BOOST' + /** Cow AMM specific APR */ + | 'SURPLUS' + /** Represents the swap fee APR in a pool. */ + | 'SWAP_FEE' + /** APR that can be earned thourgh voting, i.e. gauge votes */ + | 'VOTING' + | '%future added value'; + export type GqlPoolAprRange = { __typename?: 'GqlPoolAprRange'; max: Scalars['BigDecimal']['output']; @@ -195,23 +266,34 @@ export type GqlPoolAprValue = GqlPoolAprRange | GqlPoolAprTotal; export type GqlPoolBase = { /** The contract address of the pool. */ address: Scalars['Bytes']['output']; - /** Returns all pool tokens, including any nested tokens and phantom BPTs on one level. */ + /** + * Returns all pool tokens, including any nested tokens and phantom BPTs on one level. + * @deprecated Use poolTokens instead + */ allTokens: Array; + /** List of categories assigned by the team based on external factors */ + categories?: Maybe>>; /** The chain on which the pool is deployed */ chain: GqlChain; /** The timestamp the pool was created. */ createTime: Scalars['Int']['output']; /** The decimals of the BPT, usually 18 */ decimals: Scalars['Int']['output']; - /** Only returns main tokens, also known as leave tokens. Wont return any nested BPTs. Used for displaying the tokens that the pool consists of. */ + /** + * Only returns main tokens, also known as leave tokens. Wont return any nested BPTs. Used for displaying the tokens that the pool consists of. + * @deprecated Use poolTokens instead + */ displayTokens: Array; /** Dynamic data such as token balances, swap fees or volume */ dynamicData: GqlPoolDynamicData; /** The factory contract address from which the pool was created. */ factory?: Maybe; - /** The pool id. This is equal to the address for vaultVersion 3 pools */ + /** The pool id. This is equal to the address for protocolVersion 3 pools */ id: Scalars['ID']['output']; - /** Deprecated */ + /** + * Deprecated + * @deprecated Removed without replacement + */ investConfig: GqlPoolInvestConfig; /** The name of the pool as per contract */ name: Scalars['String']['output']; @@ -219,19 +301,29 @@ export type GqlPoolBase = { owner?: Maybe; /** Returns all pool tokens, including BPTs and nested pools if there are any. Only one nested level deep. */ poolTokens: Array; + /** The protocol version on which the pool is deployed, 1, 2 or 3 */ + protocolVersion: Scalars['Int']['output']; /** Staking options of this pool which emit additional rewards */ staking?: Maybe; /** The token symbol of the pool as per contract */ symbol: Scalars['String']['output']; + /** List of tags assigned by the team based on external factors */ + tags?: Maybe>>; /** The pool type, such as weighted, stable, etc. */ type: GqlPoolType; /** If a user address was provided in the query, the user balance is populated here */ userBalance?: Maybe; - /** The vault version on which the pool is deployed, 2 or 3 */ + /** + * The vault version on which the pool is deployed, 2 or 3 + * @deprecated use protocolVersion instead + */ vaultVersion: Scalars['Int']['output']; /** The version of the pool type. */ version: Scalars['Int']['output']; - /** Deprecated */ + /** + * Deprecated + * @deprecated Removed without replacement + */ withdrawConfig: GqlPoolWithdrawConfig; }; @@ -278,6 +370,7 @@ export type GqlPoolComposableStable = GqlPoolBase & { allTokens: Array; amp: Scalars['BigInt']['output']; bptPriceRate: Scalars['BigDecimal']['output']; + categories?: Maybe>>; chain: GqlChain; createTime: Scalars['Int']['output']; decimals: Scalars['Int']['output']; @@ -285,18 +378,27 @@ export type GqlPoolComposableStable = GqlPoolBase & { dynamicData: GqlPoolDynamicData; factory?: Maybe; id: Scalars['ID']['output']; + /** @deprecated Removed without replacement */ investConfig: GqlPoolInvestConfig; name: Scalars['String']['output']; nestingType: GqlPoolNestingType; owner: Scalars['Bytes']['output']; poolTokens: Array; + protocolVersion: Scalars['Int']['output']; staking?: Maybe; symbol: Scalars['String']['output']; + tags?: Maybe>>; + /** + * All tokens of the pool. If it is a nested pool, the nested pool is expanded with its own tokens again. + * @deprecated Use poolTokens instead + */ tokens: Array; type: GqlPoolType; userBalance?: Maybe; + /** @deprecated use protocolVersion instead */ vaultVersion: Scalars['Int']['output']; version: Scalars['Int']['output']; + /** @deprecated Removed without replacement */ withdrawConfig: GqlPoolWithdrawConfig; }; @@ -305,6 +407,7 @@ export type GqlPoolComposableStableNested = { address: Scalars['Bytes']['output']; amp: Scalars['BigInt']['output']; bptPriceRate: Scalars['BigDecimal']['output']; + categories?: Maybe>>; createTime: Scalars['Int']['output']; factory?: Maybe; id: Scalars['ID']['output']; @@ -313,6 +416,8 @@ export type GqlPoolComposableStableNested = { owner: Scalars['Bytes']['output']; swapFee: Scalars['BigDecimal']['output']; symbol: Scalars['String']['output']; + tags?: Maybe>>; + /** @deprecated Use poolTokens instead */ tokens: Array; totalLiquidity: Scalars['BigDecimal']['output']; totalShares: Scalars['BigDecimal']['output']; @@ -322,7 +427,13 @@ export type GqlPoolComposableStableNested = { export type GqlPoolDynamicData = { __typename?: 'GqlPoolDynamicData'; + /** Protocol and pool creator fees combined */ + aggregateSwapFee: Scalars['BigDecimal']['output']; + /** Protocol and pool creator fees combined */ + aggregateYieldFee: Scalars['BigDecimal']['output']; + /** @deprecated Use aprItems instead */ apr: GqlPoolApr; + aprItems: Array; fees24h: Scalars['BigDecimal']['output']; fees24hAth: Scalars['BigDecimal']['output']; fees24hAthTimestamp: Scalars['Int']['output']; @@ -330,6 +441,7 @@ export type GqlPoolDynamicData = { fees24hAtlTimestamp: Scalars['Int']['output']; fees48h: Scalars['BigDecimal']['output']; holdersCount: Scalars['BigInt']['output']; + /** True for bricked pools */ isInRecoveryMode: Scalars['Boolean']['output']; isPaused: Scalars['Boolean']['output']; lifetimeSwapFees: Scalars['BigDecimal']['output']; @@ -339,6 +451,11 @@ export type GqlPoolDynamicData = { sharePriceAthTimestamp: Scalars['Int']['output']; sharePriceAtl: Scalars['BigDecimal']['output']; sharePriceAtlTimestamp: Scalars['Int']['output']; + /** CowAmm specific, equivalent of swap fees */ + surplus24h: Scalars['BigDecimal']['output']; + /** CowAmm specific, equivalent of swap fees */ + surplus48h: Scalars['BigDecimal']['output']; + /** Disabled for bricked pools */ swapEnabled: Scalars['Boolean']['output']; swapFee: Scalars['BigDecimal']['output']; swapsCount: Scalars['BigInt']['output']; @@ -365,6 +482,7 @@ export type GqlPoolElement = GqlPoolBase & { address: Scalars['Bytes']['output']; allTokens: Array; baseToken: Scalars['Bytes']['output']; + categories?: Maybe>>; chain: GqlChain; createTime: Scalars['Int']['output']; decimals: Scalars['Int']['output']; @@ -372,34 +490,53 @@ export type GqlPoolElement = GqlPoolBase & { dynamicData: GqlPoolDynamicData; factory?: Maybe; id: Scalars['ID']['output']; + /** @deprecated Removed without replacement */ investConfig: GqlPoolInvestConfig; name: Scalars['String']['output']; owner: Scalars['Bytes']['output']; poolTokens: Array; principalToken: Scalars['Bytes']['output']; + protocolVersion: Scalars['Int']['output']; staking?: Maybe; symbol: Scalars['String']['output']; + tags?: Maybe>>; + /** @deprecated Use poolTokens instead */ tokens: Array; type: GqlPoolType; unitSeconds: Scalars['BigInt']['output']; userBalance?: Maybe; + /** @deprecated use protocolVersion instead */ vaultVersion: Scalars['Int']['output']; version: Scalars['Int']['output']; + /** @deprecated Removed without replacement */ withdrawConfig: GqlPoolWithdrawConfig; }; +/** Represents an event that occurs in a pool. */ export type GqlPoolEvent = { + /** The block number of the event. */ blockNumber: Scalars['Int']['output']; + /** The block timestamp of the event. */ blockTimestamp: Scalars['Int']['output']; + /** The chain on which the event occurred. */ chain: GqlChain; + /** The unique identifier of the event. */ id: Scalars['ID']['output']; + /** The log index of the event. */ logIndex: Scalars['Int']['output']; + /** The pool ID associated with the event. */ poolId: Scalars['String']['output']; + /** The sender of the event. */ sender: Scalars['String']['output']; + /** The timestamp of the event. */ timestamp: Scalars['Int']['output']; + /** The transaction hash of the event. */ tx: Scalars['String']['output']; + /** The type of the event. */ type: GqlPoolEventType; + /** The user address associated with the event. */ userAddress: Scalars['String']['output']; + /** The USD value of this event. */ valueUSD: Scalars['Float']['output']; }; @@ -423,11 +560,15 @@ export type GqlPoolEventsDataRange = | '%future added value'; export type GqlPoolEventsFilter = { - chain: GqlChain; - poolId: Scalars['String']['input']; + chainIn?: InputMaybe>>; + poolIdIn?: InputMaybe>>; range?: InputMaybe; typeIn?: InputMaybe>>; userAddress?: InputMaybe; + /** USD value of the event */ + valueUSD_gt?: InputMaybe; + /** USD value of the event */ + valueUSD_gte?: InputMaybe; }; export type GqlPoolFeaturedPool = { @@ -449,8 +590,6 @@ export type GqlPoolFeaturedPoolGroup = { export type GqlPoolFeaturedPoolGroupItem = GqlFeaturePoolGroupItemExternalLink | GqlPoolMinimal; export type GqlPoolFilter = { - categoryIn?: InputMaybe>; - categoryNotIn?: InputMaybe>; chainIn?: InputMaybe>; chainNotIn?: InputMaybe>; createTime?: InputMaybe; @@ -461,15 +600,33 @@ export type GqlPoolFilter = { minTvl?: InputMaybe; poolTypeIn?: InputMaybe>; poolTypeNotIn?: InputMaybe>; + protocolVersionIn?: InputMaybe>; + /** + * For list of tags see: https://github.com/balancer/metadata/blob/main/pools/index.json + * Use uppercase + */ + tagIn?: InputMaybe>; + /** + * For list of tags see: https://github.com/balancer/metadata/blob/main/pools/index.json + * Use uppercase + */ + tagNotIn?: InputMaybe>; tokensIn?: InputMaybe>; tokensNotIn?: InputMaybe>; userAddress?: InputMaybe; - vaultVersionIn?: InputMaybe>; }; export type GqlPoolFilterCategory = | 'BLACK_LISTED' | 'INCENTIVIZED' + | 'LRT' + | 'POINTS' + | 'POINTS_EIGENLAYER' + | 'POINTS_GYRO' + | 'POINTS_KELP' + | 'POINTS_RENZO' + | 'POINTS_SWELL' + | 'SUPERFEST' | '%future added value'; export type GqlPoolFx = GqlPoolBase & { @@ -478,6 +635,7 @@ export type GqlPoolFx = GqlPoolBase & { allTokens: Array; alpha: Scalars['String']['output']; beta: Scalars['String']['output']; + categories?: Maybe>>; chain: GqlChain; createTime: Scalars['Int']['output']; decimals: Scalars['Int']['output']; @@ -487,18 +645,27 @@ export type GqlPoolFx = GqlPoolBase & { epsilon: Scalars['String']['output']; factory?: Maybe; id: Scalars['ID']['output']; + /** @deprecated Removed without replacement */ investConfig: GqlPoolInvestConfig; lambda: Scalars['String']['output']; name: Scalars['String']['output']; owner?: Maybe; poolTokens: Array; + protocolVersion: Scalars['Int']['output']; staking?: Maybe; symbol: Scalars['String']['output']; + tags?: Maybe>>; + /** + * All tokens of the pool. If it is a nested pool, the nested pool is expanded with its own tokens again. + * @deprecated Use poolTokens instead + */ tokens: Array; type: GqlPoolType; userBalance?: Maybe; + /** @deprecated use protocolVersion instead */ vaultVersion: Scalars['Int']['output']; version: Scalars['Int']['output']; + /** @deprecated Removed without replacement */ withdrawConfig: GqlPoolWithdrawConfig; }; @@ -509,6 +676,7 @@ export type GqlPoolGyro = GqlPoolBase & { alpha: Scalars['String']['output']; beta: Scalars['String']['output']; c: Scalars['String']['output']; + categories?: Maybe>>; chain: GqlChain; createTime: Scalars['Int']['output']; dSq: Scalars['String']['output']; @@ -517,30 +685,39 @@ export type GqlPoolGyro = GqlPoolBase & { dynamicData: GqlPoolDynamicData; factory?: Maybe; id: Scalars['ID']['output']; + /** @deprecated Removed without replacement */ investConfig: GqlPoolInvestConfig; lambda: Scalars['String']['output']; name: Scalars['String']['output']; nestingType: GqlPoolNestingType; owner: Scalars['Bytes']['output']; poolTokens: Array; + protocolVersion: Scalars['Int']['output']; root3Alpha: Scalars['String']['output']; s: Scalars['String']['output']; sqrtAlpha: Scalars['String']['output']; sqrtBeta: Scalars['String']['output']; staking?: Maybe; symbol: Scalars['String']['output']; + tags?: Maybe>>; tauAlphaX: Scalars['String']['output']; tauAlphaY: Scalars['String']['output']; tauBetaX: Scalars['String']['output']; tauBetaY: Scalars['String']['output']; + /** + * All tokens of the pool. If it is a nested pool, the nested pool is expanded with its own tokens again. + * @deprecated Use poolTokens instead + */ tokens: Array; type: GqlPoolType; u: Scalars['String']['output']; userBalance?: Maybe; v: Scalars['String']['output']; + /** @deprecated use protocolVersion instead */ vaultVersion: Scalars['Int']['output']; version: Scalars['Int']['output']; w: Scalars['String']['output']; + /** @deprecated Removed without replacement */ withdrawConfig: GqlPoolWithdrawConfig; z: Scalars['String']['output']; }; @@ -592,6 +769,7 @@ export type GqlPoolLiquidityBootstrapping = GqlPoolBase & { __typename?: 'GqlPoolLiquidityBootstrapping'; address: Scalars['Bytes']['output']; allTokens: Array; + categories?: Maybe>>; chain: GqlChain; createTime: Scalars['Int']['output']; decimals: Scalars['Int']['output']; @@ -599,18 +777,27 @@ export type GqlPoolLiquidityBootstrapping = GqlPoolBase & { dynamicData: GqlPoolDynamicData; factory?: Maybe; id: Scalars['ID']['output']; + /** @deprecated Removed without replacement */ investConfig: GqlPoolInvestConfig; name: Scalars['String']['output']; nestingType: GqlPoolNestingType; owner: Scalars['Bytes']['output']; poolTokens: Array; + protocolVersion: Scalars['Int']['output']; staking?: Maybe; symbol: Scalars['String']['output']; + tags?: Maybe>>; + /** + * All tokens of the pool. If it is a nested pool, the nested pool is expanded with its own tokens again. + * @deprecated Use poolTokens instead + */ tokens: Array; type: GqlPoolType; userBalance?: Maybe; + /** @deprecated use protocolVersion instead */ vaultVersion: Scalars['Int']['output']; version: Scalars['Int']['output']; + /** @deprecated Removed without replacement */ withdrawConfig: GqlPoolWithdrawConfig; }; @@ -619,6 +806,7 @@ export type GqlPoolMetaStable = GqlPoolBase & { address: Scalars['Bytes']['output']; allTokens: Array; amp: Scalars['BigInt']['output']; + categories?: Maybe>>; chain: GqlChain; createTime: Scalars['Int']['output']; decimals: Scalars['Int']['output']; @@ -626,17 +814,23 @@ export type GqlPoolMetaStable = GqlPoolBase & { dynamicData: GqlPoolDynamicData; factory?: Maybe; id: Scalars['ID']['output']; + /** @deprecated Removed without replacement */ investConfig: GqlPoolInvestConfig; name: Scalars['String']['output']; owner: Scalars['Bytes']['output']; poolTokens: Array; + protocolVersion: Scalars['Int']['output']; staking?: Maybe; symbol: Scalars['String']['output']; + tags?: Maybe>>; + /** @deprecated Use poolTokens instead */ tokens: Array; type: GqlPoolType; userBalance?: Maybe; + /** @deprecated use protocolVersion instead */ vaultVersion: Scalars['Int']['output']; version: Scalars['Int']['output']; + /** @deprecated Removed without replacement */ withdrawConfig: GqlPoolWithdrawConfig; }; @@ -647,38 +841,66 @@ export type GqlPoolMinimal = { address: Scalars['Bytes']['output']; /** Returns all pool tokens, including any nested tokens and phantom BPTs */ allTokens: Array; + /** List of categories assigned by the team based on external factors */ + categories?: Maybe>>; /** The chain on which the pool is deployed */ chain: GqlChain; /** The timestamp the pool was created. */ createTime: Scalars['Int']['output']; /** The decimals of the BPT, usually 18 */ decimals: Scalars['Int']['output']; - /** Only returns main tokens, also known as leave tokens. Wont return any nested BPTs. Used for displaying the tokens that the pool consists of. */ + /** Only returns main or underlying tokens, also known as leave tokens. Wont return any nested BPTs. Used for displaying the tokens that the pool consists of. */ displayTokens: Array; /** Dynamic data such as token balances, swap fees or volume */ dynamicData: GqlPoolDynamicData; /** The factory contract address from which the pool was created. */ factory?: Maybe; - /** The pool id. This is equal to the address for vaultVersion 3 pools */ + /** Whether at least one token in this pool is considered an ERC4626 token. */ + hasErc4626: Scalars['Boolean']['output']; + /** Hook assigned to a pool */ + hook?: Maybe; + /** The pool id. This is equal to the address for protocolVersion 3 pools */ id: Scalars['ID']['output']; + /** Pool is receiving rewards when liquidity tokens are staked */ + incentivized: Scalars['Boolean']['output']; /** The name of the pool as per contract */ name: Scalars['String']['output']; /** The wallet address of the owner of the pool. Pool owners can set certain properties like swapFees or AMP. */ owner?: Maybe; + /** The protocol version on which the pool is deployed, 1, 2 or 3 */ + protocolVersion: Scalars['Int']['output']; /** Staking options of this pool which emit additional rewards */ staking?: Maybe; /** The token symbol of the pool as per contract */ symbol: Scalars['String']['output']; + /** List of tags assigned by the team based on external factors */ + tags?: Maybe>>; /** The pool type, such as weighted, stable, etc. */ type: GqlPoolType; /** If a user address was provided in the query, the user balance is populated here */ userBalance?: Maybe; - /** The vault version on which the pool is deployed, 2 or 3 */ + /** + * The vault version on which the pool is deployed, 2 or 3 + * @deprecated use protocolVersion instead + */ vaultVersion: Scalars['Int']['output']; /** The version of the pool type. */ version: Scalars['Int']['output']; }; +/** Result of the poolReloadPools mutation */ +export type GqlPoolMutationResult = { + __typename?: 'GqlPoolMutationResult'; + /** The chain that was reloaded. */ + chain: GqlChain; + /** The error message */ + error?: Maybe; + /** Whether it was successful or not. */ + success: Scalars['Boolean']['output']; + /** The type of pools that were reloaded. */ + type: Scalars['String']['output']; +}; + export type GqlPoolNestedUnion = GqlPoolComposableStableNested; export type GqlPoolNestingType = @@ -710,10 +932,12 @@ export type GqlPoolSnapshot = { id: Scalars['ID']['output']; poolId: Scalars['String']['output']; sharePrice: Scalars['String']['output']; + surplus24h: Scalars['String']['output']; swapsCount: Scalars['String']['output']; timestamp: Scalars['Int']['output']; totalLiquidity: Scalars['String']['output']; totalShares: Scalars['String']['output']; + totalSurplus: Scalars['String']['output']; totalSwapFee: Scalars['String']['output']; totalSwapVolume: Scalars['String']['output']; volume24h: Scalars['String']['output']; @@ -732,6 +956,7 @@ export type GqlPoolStable = GqlPoolBase & { address: Scalars['Bytes']['output']; allTokens: Array; amp: Scalars['BigInt']['output']; + categories?: Maybe>>; chain: GqlChain; createTime: Scalars['Int']['output']; decimals: Scalars['Int']['output']; @@ -739,17 +964,23 @@ export type GqlPoolStable = GqlPoolBase & { dynamicData: GqlPoolDynamicData; factory?: Maybe; id: Scalars['ID']['output']; + /** @deprecated Removed without replacement */ investConfig: GqlPoolInvestConfig; name: Scalars['String']['output']; owner: Scalars['Bytes']['output']; poolTokens: Array; + protocolVersion: Scalars['Int']['output']; staking?: Maybe; symbol: Scalars['String']['output']; + tags?: Maybe>>; + /** @deprecated Use poolTokens instead */ tokens: Array; type: GqlPoolType; userBalance?: Maybe; + /** @deprecated use protocolVersion instead */ vaultVersion: Scalars['Int']['output']; version: Scalars['Int']['output']; + /** @deprecated Removed without replacement */ withdrawConfig: GqlPoolWithdrawConfig; }; @@ -766,12 +997,23 @@ export type GqlPoolStableComposablePoolData = { export type GqlPoolStaking = { __typename?: 'GqlPoolStaking'; address: Scalars['String']['output']; + aura?: Maybe; chain: GqlChain; farm?: Maybe; gauge?: Maybe; id: Scalars['ID']['output']; reliquary?: Maybe; type: GqlPoolStakingType; + vebal?: Maybe; +}; + +export type GqlPoolStakingAura = { + __typename?: 'GqlPoolStakingAura'; + apr: Scalars['Float']['output']; + auraPoolAddress: Scalars['String']['output']; + auraPoolId: Scalars['String']['output']; + id: Scalars['ID']['output']; + isShutdown: Scalars['Boolean']['output']; }; export type GqlPoolStakingFarmRewarder = { @@ -842,12 +1084,20 @@ export type GqlPoolStakingReliquaryFarmLevel = { }; export type GqlPoolStakingType = + | 'AURA' | 'FRESH_BEETS' | 'GAUGE' | 'MASTER_CHEF' | 'RELIQUARY' + | 'VEBAL' | '%future added value'; +export type GqlPoolStakingVebal = { + __typename?: 'GqlPoolStakingVebal'; + id: Scalars['ID']['output']; + vebalAddress: Scalars['String']['output']; +}; + export type GqlPoolSwap = { __typename?: 'GqlPoolSwap'; chain: GqlChain; @@ -863,21 +1113,75 @@ export type GqlPoolSwap = { valueUSD: Scalars['Float']['output']; }; +/** Represents an event that occurs when a swap is made in a pool using the CowAmm protocol. */ +export type GqlPoolSwapEventCowAmm = GqlPoolEvent & { + __typename?: 'GqlPoolSwapEventCowAmm'; + /** The block number of the event. */ + blockNumber: Scalars['Int']['output']; + /** The block timestamp of the event. */ + blockTimestamp: Scalars['Int']['output']; + /** The chain on which the event occurred. */ + chain: GqlChain; + /** The fee that this swap generated. */ + fee: GqlPoolEventAmount; + /** The unique identifier of the event. */ + id: Scalars['ID']['output']; + /** The log index of the event. */ + logIndex: Scalars['Int']['output']; + /** The pool ID associated with the event. */ + poolId: Scalars['String']['output']; + /** The sender of the event. */ + sender: Scalars['String']['output']; + /** The surplus generated by the swap. */ + surplus: GqlPoolEventAmount; + /** The timestamp of the event. */ + timestamp: Scalars['Int']['output']; + /** The token that was swapped in the event. */ + tokenIn: GqlPoolEventAmount; + /** The token that was swapped out in the event. */ + tokenOut: GqlPoolEventAmount; + /** The transaction hash of the event. */ + tx: Scalars['String']['output']; + /** The type of the event. */ + type: GqlPoolEventType; + /** The user address associated with the event. */ + userAddress: Scalars['String']['output']; + /** The value of the event in USD. */ + valueUSD: Scalars['Float']['output']; +}; + +/** Represents an event that occurs when a swap is made in a pool. */ export type GqlPoolSwapEventV3 = GqlPoolEvent & { __typename?: 'GqlPoolSwapEventV3'; + /** The block number of the event. */ blockNumber: Scalars['Int']['output']; + /** The block timestamp of the event. */ blockTimestamp: Scalars['Int']['output']; + /** The chain on which the event occurred. */ chain: GqlChain; + /** The fee that this swap generated. */ + fee: GqlPoolEventAmount; + /** The unique identifier of the event. */ id: Scalars['ID']['output']; + /** The log index of the event. */ logIndex: Scalars['Int']['output']; + /** The pool ID associated with the event. */ poolId: Scalars['String']['output']; + /** The sender of the event. */ sender: Scalars['String']['output']; + /** The timestamp of the event. */ timestamp: Scalars['Int']['output']; + /** The token that was swapped in the event. */ tokenIn: GqlPoolEventAmount; + /** The token that was swapped out in the event. */ tokenOut: GqlPoolEventAmount; + /** The transaction hash of the event. */ tx: Scalars['String']['output']; + /** The type of the event. */ type: GqlPoolEventType; + /** The user address associated with the event. */ userAddress: Scalars['String']['output']; + /** The value of the event in USD. */ valueUSD: Scalars['Float']['output']; }; @@ -940,19 +1244,45 @@ export type GqlPoolTokenComposableStable = GqlPoolTokenBase & { export type GqlPoolTokenComposableStableNestedUnion = GqlPoolToken; +/** + * All info on the pool token. It will also include the nested pool if the token is a BPT. It will only support 1 level of nesting. + * A second (unsupported) level of nesting is shown by having hasNestedPool = true but nestedPool = null. + */ export type GqlPoolTokenDetail = { __typename?: 'GqlPoolTokenDetail'; + /** Address of the pool token. */ address: Scalars['String']['output']; + /** Balance of the pool token inside the pool. */ balance: Scalars['BigDecimal']['output']; + /** USD Balance of the pool token. */ + balanceUSD: Scalars['BigDecimal']['output']; + /** Decimals of the pool token. */ decimals: Scalars['Int']['output']; + /** Indicates whether this token is a BPT and therefor has a nested pool. */ hasNestedPool: Scalars['Boolean']['output']; + /** Id of the token. A combination of pool id and token address. */ id: Scalars['ID']['output']; + /** Index of the pool token in the pool as returned by the vault. */ index: Scalars['Int']['output']; + /** Whether the token is in the allow list. */ + isAllowed: Scalars['Boolean']['output']; + /** Whether the token is considered an ERC4626 token. */ + isErc4626: Scalars['Boolean']['output']; + /** Name of the pool token. */ name: Scalars['String']['output']; + /** Additional data for the nested pool if the token is a BPT. Null otherwise. */ nestedPool?: Maybe; + /** If it is an appreciating token, it shows the current price rate. 1 otherwise. */ priceRate: Scalars['BigDecimal']['output']; + /** The address of the price rate provider. */ priceRateProvider?: Maybe; + /** Additional data for the price rate provider, such as reviews or warnings. */ + priceRateProviderData?: Maybe; + /** Symbol of the pool token. */ symbol: Scalars['String']['output']; + /** If it is an Erc4262, this will be the underlying token if present in the API. */ + underlyingToken?: Maybe; + /** The weight of the token in the pool if it is a weighted pool, null otherwise */ weight?: Maybe; }; @@ -971,6 +1301,7 @@ export type GqlPoolTokenExpanded = { address: Scalars['String']['output']; decimals: Scalars['Int']['output']; id: Scalars['ID']['output']; + isErc4626: Scalars['Boolean']['output']; isMainToken: Scalars['Boolean']['output']; isNested: Scalars['Boolean']['output']; isPhantomBpt: Scalars['Boolean']['output']; @@ -984,6 +1315,7 @@ export type GqlPoolTokenUnion = GqlPoolToken | GqlPoolTokenComposableStable; /** Supported pool types */ export type GqlPoolType = | 'COMPOSABLE_STABLE' + | 'COW_AMM' | 'ELEMENT' | 'FX' | 'GYRO' @@ -1003,10 +1335,8 @@ export type GqlPoolUnion = GqlPoolComposableStable | GqlPoolElement | GqlPoolFx /** If a user address was provided in the query, the user balance is populated here */ export type GqlPoolUserBalance = { __typename?: 'GqlPoolUserBalance'; - /** The staked balance in either a gauge or farm as float. */ - stakedBalance: Scalars['AmountHumanReadable']['output']; - /** The staked balance in either a gauge or farm in USD as float. */ - stakedBalanceUsd: Scalars['Float']['output']; + /** The staked BPT balances of the user. */ + stakedBalances: Array; /** Total balance (wallet + staked) as float */ totalBalance: Scalars['AmountHumanReadable']['output']; /** Total balance (wallet + staked) in USD as float */ @@ -1027,6 +1357,7 @@ export type GqlPoolWeighted = GqlPoolBase & { __typename?: 'GqlPoolWeighted'; address: Scalars['Bytes']['output']; allTokens: Array; + categories?: Maybe>>; chain: GqlChain; createTime: Scalars['Int']['output']; decimals: Scalars['Int']['output']; @@ -1034,19 +1365,27 @@ export type GqlPoolWeighted = GqlPoolBase & { dynamicData: GqlPoolDynamicData; factory?: Maybe; id: Scalars['ID']['output']; + /** @deprecated Removed without replacement */ investConfig: GqlPoolInvestConfig; name: Scalars['String']['output']; nestingType: GqlPoolNestingType; owner: Scalars['Bytes']['output']; poolTokens: Array; + protocolVersion: Scalars['Int']['output']; staking?: Maybe; symbol: Scalars['String']['output']; - /** All tokens of the pool. If it is a nested pool, the nested pool is expanded with its own tokens again. */ + tags?: Maybe>>; + /** + * All tokens of the pool. If it is a nested pool, the nested pool is expanded with its own tokens again. + * @deprecated Use poolTokens instead + */ tokens: Array; type: GqlPoolType; userBalance?: Maybe; + /** @deprecated use protocolVersion instead */ vaultVersion: Scalars['Int']['output']; version: Scalars['Int']['output']; + /** @deprecated Removed without replacement */ withdrawConfig: GqlPoolWithdrawConfig; }; @@ -1073,6 +1412,36 @@ export type GqlPriceImpact = { priceImpact?: Maybe; }; +/** Represents the data of a price rate provider */ +export type GqlPriceRateProviderData = { + __typename?: 'GqlPriceRateProviderData'; + /** The address of the price rate provider */ + address: Scalars['String']['output']; + /** The factory used to create the price rate provider, if applicable */ + factory?: Maybe; + /** The name of the price rate provider */ + name?: Maybe; + /** The filename of the review of the price rate provider */ + reviewFile?: Maybe; + /** Indicates if the price rate provider has been reviewed */ + reviewed: Scalars['Boolean']['output']; + /** A summary of the price rate provider, usually just says safe or unsafe */ + summary?: Maybe; + /** Upgradeable components of the price rate provider */ + upgradeableComponents?: Maybe>>; + /** Warnings associated with the price rate provider */ + warnings?: Maybe>; +}; + +/** Represents an upgradeable component of a price rate provider */ +export type GqlPriceRateProviderUpgradeableComponent = { + __typename?: 'GqlPriceRateProviderUpgradeableComponent'; + /** The entry point / proxy of the upgradeable component */ + entryPoint: Scalars['String']['output']; + /** Indicates if the implementation of the component has been reviewed */ + implementationReviewed: Scalars['String']['output']; +}; + export type GqlProtocolMetricsAggregated = { __typename?: 'GqlProtocolMetricsAggregated'; chains: Array; @@ -1252,6 +1621,8 @@ export type GqlSorGetSwapPaths = { paths: Array; /** Price impact of the path */ priceImpact: GqlPriceImpact; + /** The version of the protocol these paths are from */ + protocolVersion: Scalars['Int']['output']; /** The return amount in human form. Return amount is either tokenOutAmount (if swapType is exactIn) or tokenInAmount (if swapType is exactOut) */ returnAmount: Scalars['AmountHumanReadable']['output']; /** The return amount in a raw form */ @@ -1276,7 +1647,10 @@ export type GqlSorGetSwapPaths = { tokenOut: Scalars['String']['output']; /** The amount of tokenOut in human form */ tokenOutAmount: Scalars['AmountHumanReadable']['output']; - /** The version of the vault these paths are from */ + /** + * The version of the vault these paths are from + * @deprecated Use protocolVersion instead + */ vaultVersion: Scalars['Int']['output']; }; @@ -1308,13 +1682,20 @@ export type GqlSorPath = { __typename?: 'GqlSorPath'; /** Input amount of this path in scaled form */ inputAmountRaw: Scalars['String']['output']; + /** A sorted list of booleans that indicate if the respective pool is a buffer */ + isBuffer: Array>; /** Output amount of this path in scaled form */ outputAmountRaw: Scalars['String']['output']; /** A sorted list of pool ids that are used in this path */ pools: Array>; + /** The version of the protocol these paths are from */ + protocolVersion: Scalars['Int']['output']; /** A sorted list of tokens that are ussed in this path */ tokens: Array>; - /** Vault version of this path. */ + /** + * Vault version of this path. + * @deprecated Use protocolVersion instead + */ vaultVersion: Scalars['Int']['output']; }; @@ -1391,21 +1772,44 @@ export type GqlSwapCallDataInput = { slippagePercentage: Scalars['String']['input']; }; +/** Represents a token */ export type GqlToken = { __typename?: 'GqlToken'; + /** The address of the token */ address: Scalars['String']['output']; + /** The chain of the token */ chain: GqlChain; + /** The chain ID of the token */ chainId: Scalars['Int']['output']; + /** The coingecko ID for this token, if present */ + coingeckoId?: Maybe; + /** The number of decimal places for the token */ decimals: Scalars['Int']['output']; + /** The description of the token */ description?: Maybe; + /** The Discord URL of the token */ discordUrl?: Maybe; + /** Whether the token is considered an ERC4626 token. */ + isErc4626: Scalars['Boolean']['output']; + /** The logo URI of the token */ logoURI?: Maybe; + /** The name of the token */ name: Scalars['String']['output']; + /** The rate provider data for the token */ + priceRateProviderData?: Maybe; + /** The priority of the token, can be used for sorting. */ priority: Scalars['Int']['output']; + /** The rate provider data for the token */ + rateProviderData?: Maybe; + /** The symbol of the token */ symbol: Scalars['String']['output']; + /** The Telegram URL of the token */ telegramUrl?: Maybe; + /** Indicates if the token is tradable */ tradable: Scalars['Boolean']['output']; + /** The Twitter username of the token */ twitterUsername?: Maybe; + /** The website URL of the token */ websiteUrl?: Maybe; }; @@ -1443,25 +1847,52 @@ export type GqlTokenData = { websiteUrl?: Maybe; }; +/** Represents additional data for a token */ export type GqlTokenDynamicData = { __typename?: 'GqlTokenDynamicData'; + /** The all-time high price of the token */ ath: Scalars['Float']['output']; + /** The all-time low price of the token */ atl: Scalars['Float']['output']; + /** The fully diluted valuation of the token */ fdv?: Maybe; + /** The highest price in the last 24 hours */ high24h: Scalars['Float']['output']; + /** The unique identifier of the dynamic data */ id: Scalars['String']['output']; + /** The lowest price in the last 24 hours */ low24h: Scalars['Float']['output']; + /** The market capitalization of the token */ marketCap?: Maybe; + /** The current price of the token */ price: Scalars['Float']['output']; + /** The price change in the last 24 hours */ priceChange24h: Scalars['Float']['output']; + /** The percentage price change in the last 7 days */ priceChangePercent7d?: Maybe; + /** The percentage price change in the last 14 days */ priceChangePercent14d?: Maybe; + /** The percentage price change in the last 24 hours */ priceChangePercent24h: Scalars['Float']['output']; + /** The percentage price change in the last 30 days */ priceChangePercent30d?: Maybe; + /** The address of the token */ tokenAddress: Scalars['String']['output']; + /** The timestamp when the data was last updated */ updatedAt: Scalars['String']['output']; }; +/** Result of the poolReloadPools mutation */ +export type GqlTokenMutationResult = { + __typename?: 'GqlTokenMutationResult'; + /** The chain that was reloaded. */ + chain: GqlChain; + /** The error message */ + error?: Maybe; + /** Whether it was successful or not. */ + success: Scalars['Boolean']['output']; +}; + export type GqlTokenPrice = { __typename?: 'GqlTokenPrice'; address: Scalars['String']['output']; @@ -1503,46 +1934,119 @@ export type GqlUserPoolBalance = { walletBalance: Scalars['AmountHumanReadable']['output']; }; +export type GqlUserStakedBalance = { + __typename?: 'GqlUserStakedBalance'; + /** The staked BPT balance as float. */ + balance: Scalars['AmountHumanReadable']['output']; + /** The steaked BPT balance in USD as float. */ + balanceUsd: Scalars['Float']['output']; + /** The id of the staking to match with GqlPoolStaking.id. */ + stakingId: Scalars['String']['output']; + /** The staking type (Gauge, farm, aura, etc.) in which this balance is staked. */ + stakingType: GqlPoolStakingType; +}; + export type GqlUserSwapVolumeFilter = { poolIdIn?: InputMaybe>; tokenInIn?: InputMaybe>; tokenOutIn?: InputMaybe>; }; +export type GqlVeBalBalance = { + __typename?: 'GqlVeBalBalance'; + balance: Scalars['AmountHumanReadable']['output']; + chain: GqlChain; + locked: Scalars['AmountHumanReadable']['output']; + lockedUsd: Scalars['AmountHumanReadable']['output']; +}; + export type GqlVeBalUserData = { __typename?: 'GqlVeBalUserData'; balance: Scalars['AmountHumanReadable']['output']; + locked: Scalars['AmountHumanReadable']['output']; + lockedUsd: Scalars['AmountHumanReadable']['output']; rank?: Maybe; }; +/** The Gauge that can be voted on through veBAL and that will ultimately receive the rewards. */ export type GqlVotingGauge = { __typename?: 'GqlVotingGauge'; + /** The timestamp the gauge was added. */ addedTimestamp?: Maybe; + /** The address of the root gauge on Ethereum mainnet. */ address: Scalars['Bytes']['output']; + /** The address of the child gauge on the specific chain. */ childGaugeAddress?: Maybe; + /** Whether the gauge is killed or not. */ isKilled: Scalars['Boolean']['output']; + /** The relative weight the gauge received this epoch (not more than 1.0). */ + relativeWeight: Scalars['String']['output']; + /** The relative weight cap. 1.0 for uncapped. */ relativeWeightCap?: Maybe; }; +/** A token inside of a pool with a voting gauge. */ export type GqlVotingGaugeToken = { __typename?: 'GqlVotingGaugeToken'; + /** The address of the token. */ address: Scalars['String']['output']; + /** The URL to the token logo. */ logoURI: Scalars['String']['output']; + /** The symbol of the token. */ symbol: Scalars['String']['output']; + /** If it is a weighted pool, the weigh of the token is shown here in %. 0.5 = 50%. */ weight?: Maybe; }; +/** The pool that can be voted on through veBAL */ export type GqlVotingPool = { __typename?: 'GqlVotingPool'; + /** The address of the pool. */ address: Scalars['Bytes']['output']; + /** The chain this pool is on. */ chain: GqlChain; + /** The gauge that is connected to the pool and that will receive the rewards. */ gauge: GqlVotingGauge; + /** Pool ID */ id: Scalars['ID']['output']; + /** The symbol of the pool. */ symbol: Scalars['String']['output']; + /** The tokens inside the pool. */ tokens: Array; + /** The type of the pool. */ type: GqlPoolType; }; +/** Hook data */ +export type Hook = { + __typename?: 'Hook'; + address: Scalars['String']['output']; + chain: GqlChain; + /** Data points changing over time */ + dynamicData?: Maybe; + /** True when hook can change the amounts send to the vault. Necessary to deduct the fees. */ + enableHookAdjustedAmounts: Scalars['Boolean']['output']; + /** List of pools using the hook */ + poolsIds?: Maybe>>; + shouldCallAfterAddLiquidity: Scalars['Boolean']['output']; + shouldCallAfterInitialize: Scalars['Boolean']['output']; + shouldCallAfterRemoveLiquidity: Scalars['Boolean']['output']; + shouldCallAfterSwap: Scalars['Boolean']['output']; + shouldCallBeforeAddLiquidity: Scalars['Boolean']['output']; + shouldCallBeforeInitialize: Scalars['Boolean']['output']; + shouldCallBeforeRemoveLiquidity: Scalars['Boolean']['output']; + shouldCallBeforeSwap: Scalars['Boolean']['output']; + shouldCallComputeDynamicSwapFee: Scalars['Boolean']['output']; +}; + +/** Collection of hook specific data. Percentage format is 0.01 -> 0.01%. */ +export type HookData = { + __typename?: 'HookData'; + addLiquidityFeePercentage?: Maybe; + removeLiquidityFeePercentage?: Maybe; + swapFeePercentage?: Maybe; +}; + export type Mutation = { __typename?: 'Mutation'; beetsPoolLoadReliquarySnapshotsForAllFarms: Scalars['String']['output']; @@ -1559,7 +2063,9 @@ export type Mutation = { poolLoadSnapshotsForPools: Scalars['String']['output']; poolReloadAllPoolAprs: Scalars['String']['output']; poolReloadAllTokenNestedPoolIds: Scalars['String']['output']; + poolReloadPools: Array; poolReloadStakingForAllPools: Scalars['String']['output']; + poolSyncAllCowSnapshots: Array; poolSyncAllPoolsFromSubgraph: Array; poolSyncLatestSnapshotsForAllPools: Scalars['String']['output']; poolSyncNewPoolsFromSubgraph: Array; @@ -1579,6 +2085,7 @@ export type Mutation = { sftmxSyncWithdrawalRequests: Scalars['String']['output']; tokenDeleteTokenType: Scalars['String']['output']; tokenReloadAllTokenTypes: Scalars['String']['output']; + tokenReloadErc4626Tokens: Array; tokenReloadTokenPrices?: Maybe; tokenSyncLatestFxPrices: Scalars['String']['output']; tokenSyncTokenDefinitions: Scalars['String']['output']; @@ -1625,13 +2132,23 @@ export type MutationPoolReloadAllPoolAprsArgs = { }; +export type MutationPoolReloadPoolsArgs = { + chains: Array; +}; + + export type MutationPoolReloadStakingForAllPoolsArgs = { stakingTypes: Array; }; +export type MutationPoolSyncAllCowSnapshotsArgs = { + chains: Array; +}; + + export type MutationPoolSyncLatestSnapshotsForAllPoolsArgs = { - daysToSync?: InputMaybe; + chain: GqlChain; }; @@ -1651,6 +2168,11 @@ export type MutationTokenDeleteTokenTypeArgs = { }; +export type MutationTokenReloadErc4626TokensArgs = { + chains: Array; +}; + + export type MutationTokenReloadTokenPricesArgs = { chains: Array; }; @@ -1684,18 +2206,29 @@ export type Query = { blocksGetBlocksPerSecond: Scalars['Float']['output']; blocksGetBlocksPerYear: Scalars['Float']['output']; contentGetNewsItems: Array; + /** Returns list of hooks. */ + hooks?: Maybe>; latestSyncedBlocks: GqlLatestSyncedBlocks; /** Getting swap, add and remove events with paging */ poolEvents: Array; - /** Will de deprecated in favor of poolEvents */ + /** + * Will de deprecated in favor of poolEvents + * @deprecated Use poolEvents instead + */ poolGetBatchSwaps: Array; /** Getting swap, add and remove events with range */ poolGetEvents: Array; - /** Will de deprecated in favor of poolGetFeaturedPools */ + /** + * Will de deprecated in favor of poolGetFeaturedPools + * @deprecated Use poolGetFeaturedPools instead + */ poolGetFeaturedPoolGroups: Array; /** Returns the list of featured pools for chains */ poolGetFeaturedPools: Array; - /** Will de deprecated in favor of poolEvents */ + /** + * Will de deprecated in favor of poolEvents + * @deprecated Use poolEvents instead + */ poolGetJoinExits: Array; /** Returns one pool. If a user address is provided, the user balances for the given pool will also be returned. */ poolGetPool: GqlPoolBase; @@ -1705,7 +2238,10 @@ export type Query = { poolGetPoolsCount: Scalars['Int']['output']; /** Gets all the snapshots for a given pool on a chain for a certain range */ poolGetSnapshots: Array; - /** Will de deprecated in favor of poolEvents */ + /** + * Will de deprecated in favor of poolEvents + * @deprecated Use poolEvents instead + */ poolGetSwaps: Array; protocolMetricsAggregated: GqlProtocolMetricsAggregated; protocolMetricsChain: GqlProtocolMetricsChain; @@ -1719,16 +2255,42 @@ export type Query = { sorGetSwapPaths: GqlSorGetSwapPaths; /** Get swap quote from the SOR, queries both the old and new SOR */ sorGetSwaps: GqlSorGetSwapsResponse; + /** + * Returns the candlestick chart data for a token for a given range. + * @deprecated Use tokenGetHistoricalPrices instead + */ tokenGetCandlestickChartData: Array; + /** Returns all current prices for allowed tokens for a given chain or chains */ tokenGetCurrentPrices: Array; + /** Returns the historical prices for a given set of tokens for a given chain and range */ tokenGetHistoricalPrices: Array; + /** + * DEPRECATED: Returns pricing data for a given token for a given range + * @deprecated Use tokenGetHistoricalPrices instead + */ tokenGetPriceChartData: Array; + /** + * Returns the price of either BAL or BEETS depending on chain + * @deprecated Use tokenGetTokensDynamicData instead + */ tokenGetProtocolTokenPrice: Scalars['AmountHumanReadable']['output']; + /** Returns the price of a token priced in another token for a given range. */ tokenGetRelativePriceChartData: Array; + /** + * Returns meta data for a given token such as description, website, etc. + * @deprecated Use tokenGetTokens instead + */ tokenGetTokenData?: Maybe; + /** Returns dynamic data of a token such as price, market cap, etc. */ tokenGetTokenDynamicData?: Maybe; + /** Returns all allowed tokens for a given chain or chains */ tokenGetTokens: Array; + /** + * Returns meta data for a given set of tokens such as description, website, etc. + * @deprecated Use tokenGetTokens instead + */ tokenGetTokensData: Array; + /** Returns dynamic data of a set of tokens such as price, market cap, etc. */ tokenGetTokensDynamicData: Array; userGetFbeetsBalance: GqlUserFbeetsBalance; userGetPoolBalances: Array; @@ -1740,6 +2302,8 @@ export type Query = { veBalGetTotalSupply: Scalars['AmountHumanReadable']['output']; veBalGetUser: GqlVeBalUserData; veBalGetUserBalance: Scalars['AmountHumanReadable']['output']; + veBalGetUserBalances: Array; + /** Returns all pools with veBAL gauges that can be voted on. */ veBalGetVotingList: Array; }; @@ -1755,10 +2319,15 @@ export type QueryContentGetNewsItemsArgs = { }; +export type QueryHooksArgs = { + chain?: InputMaybe; +}; + + export type QueryPoolEventsArgs = { first?: InputMaybe; skip?: InputMaybe; - where: GqlPoolEventsFilter; + where?: InputMaybe; }; @@ -1864,7 +2433,7 @@ export type QuerySorGetSwapPathsArgs = { swapType: GqlSorSwapType; tokenIn: Scalars['String']['input']; tokenOut: Scalars['String']['input']; - useVaultVersion?: InputMaybe; + useProtocolVersion?: InputMaybe; }; @@ -1974,6 +2543,29 @@ export type QueryUserGetSwapsArgs = { skip?: InputMaybe; }; + +export type QueryVeBalGetTotalSupplyArgs = { + chain?: InputMaybe; +}; + + +export type QueryVeBalGetUserArgs = { + address: Scalars['String']['input']; + chain?: InputMaybe; +}; + + +export type QueryVeBalGetUserBalanceArgs = { + address?: InputMaybe; + chain?: InputMaybe; +}; + + +export type QueryVeBalGetUserBalancesArgs = { + address: Scalars['String']['input']; + chains?: InputMaybe>; +}; + export type Token = { __typename?: 'Token'; address: Scalars['String']['output']; diff --git a/packages/gql/src/balancer-api-v3/__generated__/Gnosis.server.ts b/packages/gql/src/balancer-api-v3/__generated__/Gnosis.server.ts index 5df748271..3527d6e6a 100644 --- a/packages/gql/src/balancer-api-v3/__generated__/Gnosis.server.ts +++ b/packages/gql/src/balancer-api-v3/__generated__/Gnosis.server.ts @@ -44,8 +44,10 @@ export type GqlChain = | 'AVALANCHE' | 'BASE' | 'FANTOM' + | 'FRAXTAL' | 'GNOSIS' | 'MAINNET' + | 'MODE' | 'OPTIMISM' | 'POLYGON' | 'SEPOLIA' @@ -128,41 +130,73 @@ export type GqlLatestSyncedBlocks = { userWalletSyncBlock: Scalars['BigInt']['output']; }; +/** All info on the nested pool if the token is a BPT. It will only support 1 level of nesting. */ export type GqlNestedPool = { __typename?: 'GqlNestedPool'; + /** Address of the pool. */ address: Scalars['Bytes']['output']; + /** Price rate of the Balancer Pool Token (BPT). */ bptPriceRate: Scalars['BigDecimal']['output']; + /** Timestamp of when the pool was created. */ createTime: Scalars['Int']['output']; + /** Address of the factory contract that created the pool, if applicable. */ factory?: Maybe; + /** Unique identifier of the pool. */ id: Scalars['ID']['output']; + /** Name of the pool. */ name: Scalars['String']['output']; + /** Total liquidity of the parent pool in the nested pool in USD. */ nestedLiquidity: Scalars['BigDecimal']['output']; + /** Percentage of the parents pool shares inside the nested pool. */ nestedPercentage: Scalars['BigDecimal']['output']; + /** Number of shares of the parent pool in the nested pool. */ nestedShares: Scalars['BigDecimal']['output']; + /** Address of the pool's owner. */ owner: Scalars['Bytes']['output']; + /** Fee charged for swapping tokens in the pool as %. 0.01 -> 0.01% */ swapFee: Scalars['BigDecimal']['output']; + /** Symbol of the pool. */ symbol: Scalars['String']['output']; + /** List of all tokens in the pool. */ tokens: Array; + /** Total liquidity in the pool in USD. */ totalLiquidity: Scalars['BigDecimal']['output']; + /** Total number of shares in the pool. */ totalShares: Scalars['BigDecimal']['output']; + /** Type of the pool. */ type: GqlPoolType; + /** Version of the pool. */ version: Scalars['Int']['output']; }; +/** Represents an event that occurs when liquidity is added or removed from a pool. */ export type GqlPoolAddRemoveEventV3 = GqlPoolEvent & { __typename?: 'GqlPoolAddRemoveEventV3'; + /** The block number of the event. */ blockNumber: Scalars['Int']['output']; + /** The block timestamp of the event. */ blockTimestamp: Scalars['Int']['output']; + /** The chain on which the event occurred. */ chain: GqlChain; + /** The unique identifier of the event. */ id: Scalars['ID']['output']; + /** The log index of the event. */ logIndex: Scalars['Int']['output']; + /** The pool ID associated with the event. */ poolId: Scalars['String']['output']; + /** The sender of the event. */ sender: Scalars['String']['output']; + /** The timestamp of the event. */ timestamp: Scalars['Int']['output']; + /** The tokens involved in the event. Ordered by poolToken index. */ tokens: Array; + /** The transaction hash of the event. */ tx: Scalars['String']['output']; + /** The type of the event. */ type: GqlPoolEventType; + /** The user address associated with the event. */ userAddress: Scalars['String']['output']; + /** The value of the event in USD. */ valueUSD: Scalars['Float']['output']; }; @@ -176,6 +210,43 @@ export type GqlPoolApr = { thirdPartyApr: GqlPoolAprValue; }; +/** All APRs for a pool */ +export type GqlPoolAprItem = { + __typename?: 'GqlPoolAprItem'; + /** The APR value in % -> 0.2 = 0.2% */ + apr: Scalars['Float']['output']; + /** The id of the APR item */ + id: Scalars['ID']['output']; + /** The title of the APR item, a human readable form */ + title: Scalars['String']['output']; + /** Specific type of this APR */ + type: GqlPoolAprItemType; +}; + +/** Enum representing the different types of the APR in a pool. */ +export type GqlPoolAprItemType = + /** APR that pools earns when BPT is staked on AURA. */ + | 'AURA' + /** Represents the yield from an IB (Interest-Bearing) asset APR in a pool. */ + | 'IB_YIELD' + /** APR in a pool that can be earned through locking, i.e. veBAL */ + | 'LOCKING' + /** Rewards distributed by merkl.xyz */ + | 'MERKL' + /** Represents if the APR items comes from a nested pool. */ + | 'NESTED' + /** Staking reward APR in a pool, i.e. BAL or BEETS. */ + | 'STAKING' + /** APR boost that can be earned, i.e. via veBAL or maBEETS. */ + | 'STAKING_BOOST' + /** Cow AMM specific APR */ + | 'SURPLUS' + /** Represents the swap fee APR in a pool. */ + | 'SWAP_FEE' + /** APR that can be earned thourgh voting, i.e. gauge votes */ + | 'VOTING' + | '%future added value'; + export type GqlPoolAprRange = { __typename?: 'GqlPoolAprRange'; max: Scalars['BigDecimal']['output']; @@ -193,23 +264,34 @@ export type GqlPoolAprValue = GqlPoolAprRange | GqlPoolAprTotal; export type GqlPoolBase = { /** The contract address of the pool. */ address: Scalars['Bytes']['output']; - /** Returns all pool tokens, including any nested tokens and phantom BPTs on one level. */ + /** + * Returns all pool tokens, including any nested tokens and phantom BPTs on one level. + * @deprecated Use poolTokens instead + */ allTokens: Array; + /** List of categories assigned by the team based on external factors */ + categories?: Maybe>>; /** The chain on which the pool is deployed */ chain: GqlChain; /** The timestamp the pool was created. */ createTime: Scalars['Int']['output']; /** The decimals of the BPT, usually 18 */ decimals: Scalars['Int']['output']; - /** Only returns main tokens, also known as leave tokens. Wont return any nested BPTs. Used for displaying the tokens that the pool consists of. */ + /** + * Only returns main tokens, also known as leave tokens. Wont return any nested BPTs. Used for displaying the tokens that the pool consists of. + * @deprecated Use poolTokens instead + */ displayTokens: Array; /** Dynamic data such as token balances, swap fees or volume */ dynamicData: GqlPoolDynamicData; /** The factory contract address from which the pool was created. */ factory?: Maybe; - /** The pool id. This is equal to the address for vaultVersion 3 pools */ + /** The pool id. This is equal to the address for protocolVersion 3 pools */ id: Scalars['ID']['output']; - /** Deprecated */ + /** + * Deprecated + * @deprecated Removed without replacement + */ investConfig: GqlPoolInvestConfig; /** The name of the pool as per contract */ name: Scalars['String']['output']; @@ -217,19 +299,29 @@ export type GqlPoolBase = { owner?: Maybe; /** Returns all pool tokens, including BPTs and nested pools if there are any. Only one nested level deep. */ poolTokens: Array; + /** The protocol version on which the pool is deployed, 1, 2 or 3 */ + protocolVersion: Scalars['Int']['output']; /** Staking options of this pool which emit additional rewards */ staking?: Maybe; /** The token symbol of the pool as per contract */ symbol: Scalars['String']['output']; + /** List of tags assigned by the team based on external factors */ + tags?: Maybe>>; /** The pool type, such as weighted, stable, etc. */ type: GqlPoolType; /** If a user address was provided in the query, the user balance is populated here */ userBalance?: Maybe; - /** The vault version on which the pool is deployed, 2 or 3 */ + /** + * The vault version on which the pool is deployed, 2 or 3 + * @deprecated use protocolVersion instead + */ vaultVersion: Scalars['Int']['output']; /** The version of the pool type. */ version: Scalars['Int']['output']; - /** Deprecated */ + /** + * Deprecated + * @deprecated Removed without replacement + */ withdrawConfig: GqlPoolWithdrawConfig; }; @@ -276,6 +368,7 @@ export type GqlPoolComposableStable = GqlPoolBase & { allTokens: Array; amp: Scalars['BigInt']['output']; bptPriceRate: Scalars['BigDecimal']['output']; + categories?: Maybe>>; chain: GqlChain; createTime: Scalars['Int']['output']; decimals: Scalars['Int']['output']; @@ -283,18 +376,27 @@ export type GqlPoolComposableStable = GqlPoolBase & { dynamicData: GqlPoolDynamicData; factory?: Maybe; id: Scalars['ID']['output']; + /** @deprecated Removed without replacement */ investConfig: GqlPoolInvestConfig; name: Scalars['String']['output']; nestingType: GqlPoolNestingType; owner: Scalars['Bytes']['output']; poolTokens: Array; + protocolVersion: Scalars['Int']['output']; staking?: Maybe; symbol: Scalars['String']['output']; + tags?: Maybe>>; + /** + * All tokens of the pool. If it is a nested pool, the nested pool is expanded with its own tokens again. + * @deprecated Use poolTokens instead + */ tokens: Array; type: GqlPoolType; userBalance?: Maybe; + /** @deprecated use protocolVersion instead */ vaultVersion: Scalars['Int']['output']; version: Scalars['Int']['output']; + /** @deprecated Removed without replacement */ withdrawConfig: GqlPoolWithdrawConfig; }; @@ -303,6 +405,7 @@ export type GqlPoolComposableStableNested = { address: Scalars['Bytes']['output']; amp: Scalars['BigInt']['output']; bptPriceRate: Scalars['BigDecimal']['output']; + categories?: Maybe>>; createTime: Scalars['Int']['output']; factory?: Maybe; id: Scalars['ID']['output']; @@ -311,6 +414,8 @@ export type GqlPoolComposableStableNested = { owner: Scalars['Bytes']['output']; swapFee: Scalars['BigDecimal']['output']; symbol: Scalars['String']['output']; + tags?: Maybe>>; + /** @deprecated Use poolTokens instead */ tokens: Array; totalLiquidity: Scalars['BigDecimal']['output']; totalShares: Scalars['BigDecimal']['output']; @@ -320,7 +425,13 @@ export type GqlPoolComposableStableNested = { export type GqlPoolDynamicData = { __typename?: 'GqlPoolDynamicData'; + /** Protocol and pool creator fees combined */ + aggregateSwapFee: Scalars['BigDecimal']['output']; + /** Protocol and pool creator fees combined */ + aggregateYieldFee: Scalars['BigDecimal']['output']; + /** @deprecated Use aprItems instead */ apr: GqlPoolApr; + aprItems: Array; fees24h: Scalars['BigDecimal']['output']; fees24hAth: Scalars['BigDecimal']['output']; fees24hAthTimestamp: Scalars['Int']['output']; @@ -328,6 +439,7 @@ export type GqlPoolDynamicData = { fees24hAtlTimestamp: Scalars['Int']['output']; fees48h: Scalars['BigDecimal']['output']; holdersCount: Scalars['BigInt']['output']; + /** True for bricked pools */ isInRecoveryMode: Scalars['Boolean']['output']; isPaused: Scalars['Boolean']['output']; lifetimeSwapFees: Scalars['BigDecimal']['output']; @@ -337,6 +449,11 @@ export type GqlPoolDynamicData = { sharePriceAthTimestamp: Scalars['Int']['output']; sharePriceAtl: Scalars['BigDecimal']['output']; sharePriceAtlTimestamp: Scalars['Int']['output']; + /** CowAmm specific, equivalent of swap fees */ + surplus24h: Scalars['BigDecimal']['output']; + /** CowAmm specific, equivalent of swap fees */ + surplus48h: Scalars['BigDecimal']['output']; + /** Disabled for bricked pools */ swapEnabled: Scalars['Boolean']['output']; swapFee: Scalars['BigDecimal']['output']; swapsCount: Scalars['BigInt']['output']; @@ -363,6 +480,7 @@ export type GqlPoolElement = GqlPoolBase & { address: Scalars['Bytes']['output']; allTokens: Array; baseToken: Scalars['Bytes']['output']; + categories?: Maybe>>; chain: GqlChain; createTime: Scalars['Int']['output']; decimals: Scalars['Int']['output']; @@ -370,34 +488,53 @@ export type GqlPoolElement = GqlPoolBase & { dynamicData: GqlPoolDynamicData; factory?: Maybe; id: Scalars['ID']['output']; + /** @deprecated Removed without replacement */ investConfig: GqlPoolInvestConfig; name: Scalars['String']['output']; owner: Scalars['Bytes']['output']; poolTokens: Array; principalToken: Scalars['Bytes']['output']; + protocolVersion: Scalars['Int']['output']; staking?: Maybe; symbol: Scalars['String']['output']; + tags?: Maybe>>; + /** @deprecated Use poolTokens instead */ tokens: Array; type: GqlPoolType; unitSeconds: Scalars['BigInt']['output']; userBalance?: Maybe; + /** @deprecated use protocolVersion instead */ vaultVersion: Scalars['Int']['output']; version: Scalars['Int']['output']; + /** @deprecated Removed without replacement */ withdrawConfig: GqlPoolWithdrawConfig; }; +/** Represents an event that occurs in a pool. */ export type GqlPoolEvent = { + /** The block number of the event. */ blockNumber: Scalars['Int']['output']; + /** The block timestamp of the event. */ blockTimestamp: Scalars['Int']['output']; + /** The chain on which the event occurred. */ chain: GqlChain; + /** The unique identifier of the event. */ id: Scalars['ID']['output']; + /** The log index of the event. */ logIndex: Scalars['Int']['output']; + /** The pool ID associated with the event. */ poolId: Scalars['String']['output']; + /** The sender of the event. */ sender: Scalars['String']['output']; + /** The timestamp of the event. */ timestamp: Scalars['Int']['output']; + /** The transaction hash of the event. */ tx: Scalars['String']['output']; + /** The type of the event. */ type: GqlPoolEventType; + /** The user address associated with the event. */ userAddress: Scalars['String']['output']; + /** The USD value of this event. */ valueUSD: Scalars['Float']['output']; }; @@ -421,11 +558,15 @@ export type GqlPoolEventsDataRange = | '%future added value'; export type GqlPoolEventsFilter = { - chain: GqlChain; - poolId: Scalars['String']['input']; + chainIn?: InputMaybe>>; + poolIdIn?: InputMaybe>>; range?: InputMaybe; typeIn?: InputMaybe>>; userAddress?: InputMaybe; + /** USD value of the event */ + valueUSD_gt?: InputMaybe; + /** USD value of the event */ + valueUSD_gte?: InputMaybe; }; export type GqlPoolFeaturedPool = { @@ -447,8 +588,6 @@ export type GqlPoolFeaturedPoolGroup = { export type GqlPoolFeaturedPoolGroupItem = GqlFeaturePoolGroupItemExternalLink | GqlPoolMinimal; export type GqlPoolFilter = { - categoryIn?: InputMaybe>; - categoryNotIn?: InputMaybe>; chainIn?: InputMaybe>; chainNotIn?: InputMaybe>; createTime?: InputMaybe; @@ -459,15 +598,33 @@ export type GqlPoolFilter = { minTvl?: InputMaybe; poolTypeIn?: InputMaybe>; poolTypeNotIn?: InputMaybe>; + protocolVersionIn?: InputMaybe>; + /** + * For list of tags see: https://github.com/balancer/metadata/blob/main/pools/index.json + * Use uppercase + */ + tagIn?: InputMaybe>; + /** + * For list of tags see: https://github.com/balancer/metadata/blob/main/pools/index.json + * Use uppercase + */ + tagNotIn?: InputMaybe>; tokensIn?: InputMaybe>; tokensNotIn?: InputMaybe>; userAddress?: InputMaybe; - vaultVersionIn?: InputMaybe>; }; export type GqlPoolFilterCategory = | 'BLACK_LISTED' | 'INCENTIVIZED' + | 'LRT' + | 'POINTS' + | 'POINTS_EIGENLAYER' + | 'POINTS_GYRO' + | 'POINTS_KELP' + | 'POINTS_RENZO' + | 'POINTS_SWELL' + | 'SUPERFEST' | '%future added value'; export type GqlPoolFx = GqlPoolBase & { @@ -476,6 +633,7 @@ export type GqlPoolFx = GqlPoolBase & { allTokens: Array; alpha: Scalars['String']['output']; beta: Scalars['String']['output']; + categories?: Maybe>>; chain: GqlChain; createTime: Scalars['Int']['output']; decimals: Scalars['Int']['output']; @@ -485,18 +643,27 @@ export type GqlPoolFx = GqlPoolBase & { epsilon: Scalars['String']['output']; factory?: Maybe; id: Scalars['ID']['output']; + /** @deprecated Removed without replacement */ investConfig: GqlPoolInvestConfig; lambda: Scalars['String']['output']; name: Scalars['String']['output']; owner?: Maybe; poolTokens: Array; + protocolVersion: Scalars['Int']['output']; staking?: Maybe; symbol: Scalars['String']['output']; + tags?: Maybe>>; + /** + * All tokens of the pool. If it is a nested pool, the nested pool is expanded with its own tokens again. + * @deprecated Use poolTokens instead + */ tokens: Array; type: GqlPoolType; userBalance?: Maybe; + /** @deprecated use protocolVersion instead */ vaultVersion: Scalars['Int']['output']; version: Scalars['Int']['output']; + /** @deprecated Removed without replacement */ withdrawConfig: GqlPoolWithdrawConfig; }; @@ -507,6 +674,7 @@ export type GqlPoolGyro = GqlPoolBase & { alpha: Scalars['String']['output']; beta: Scalars['String']['output']; c: Scalars['String']['output']; + categories?: Maybe>>; chain: GqlChain; createTime: Scalars['Int']['output']; dSq: Scalars['String']['output']; @@ -515,30 +683,39 @@ export type GqlPoolGyro = GqlPoolBase & { dynamicData: GqlPoolDynamicData; factory?: Maybe; id: Scalars['ID']['output']; + /** @deprecated Removed without replacement */ investConfig: GqlPoolInvestConfig; lambda: Scalars['String']['output']; name: Scalars['String']['output']; nestingType: GqlPoolNestingType; owner: Scalars['Bytes']['output']; poolTokens: Array; + protocolVersion: Scalars['Int']['output']; root3Alpha: Scalars['String']['output']; s: Scalars['String']['output']; sqrtAlpha: Scalars['String']['output']; sqrtBeta: Scalars['String']['output']; staking?: Maybe; symbol: Scalars['String']['output']; + tags?: Maybe>>; tauAlphaX: Scalars['String']['output']; tauAlphaY: Scalars['String']['output']; tauBetaX: Scalars['String']['output']; tauBetaY: Scalars['String']['output']; + /** + * All tokens of the pool. If it is a nested pool, the nested pool is expanded with its own tokens again. + * @deprecated Use poolTokens instead + */ tokens: Array; type: GqlPoolType; u: Scalars['String']['output']; userBalance?: Maybe; v: Scalars['String']['output']; + /** @deprecated use protocolVersion instead */ vaultVersion: Scalars['Int']['output']; version: Scalars['Int']['output']; w: Scalars['String']['output']; + /** @deprecated Removed without replacement */ withdrawConfig: GqlPoolWithdrawConfig; z: Scalars['String']['output']; }; @@ -590,6 +767,7 @@ export type GqlPoolLiquidityBootstrapping = GqlPoolBase & { __typename?: 'GqlPoolLiquidityBootstrapping'; address: Scalars['Bytes']['output']; allTokens: Array; + categories?: Maybe>>; chain: GqlChain; createTime: Scalars['Int']['output']; decimals: Scalars['Int']['output']; @@ -597,18 +775,27 @@ export type GqlPoolLiquidityBootstrapping = GqlPoolBase & { dynamicData: GqlPoolDynamicData; factory?: Maybe; id: Scalars['ID']['output']; + /** @deprecated Removed without replacement */ investConfig: GqlPoolInvestConfig; name: Scalars['String']['output']; nestingType: GqlPoolNestingType; owner: Scalars['Bytes']['output']; poolTokens: Array; + protocolVersion: Scalars['Int']['output']; staking?: Maybe; symbol: Scalars['String']['output']; + tags?: Maybe>>; + /** + * All tokens of the pool. If it is a nested pool, the nested pool is expanded with its own tokens again. + * @deprecated Use poolTokens instead + */ tokens: Array; type: GqlPoolType; userBalance?: Maybe; + /** @deprecated use protocolVersion instead */ vaultVersion: Scalars['Int']['output']; version: Scalars['Int']['output']; + /** @deprecated Removed without replacement */ withdrawConfig: GqlPoolWithdrawConfig; }; @@ -617,6 +804,7 @@ export type GqlPoolMetaStable = GqlPoolBase & { address: Scalars['Bytes']['output']; allTokens: Array; amp: Scalars['BigInt']['output']; + categories?: Maybe>>; chain: GqlChain; createTime: Scalars['Int']['output']; decimals: Scalars['Int']['output']; @@ -624,17 +812,23 @@ export type GqlPoolMetaStable = GqlPoolBase & { dynamicData: GqlPoolDynamicData; factory?: Maybe; id: Scalars['ID']['output']; + /** @deprecated Removed without replacement */ investConfig: GqlPoolInvestConfig; name: Scalars['String']['output']; owner: Scalars['Bytes']['output']; poolTokens: Array; + protocolVersion: Scalars['Int']['output']; staking?: Maybe; symbol: Scalars['String']['output']; + tags?: Maybe>>; + /** @deprecated Use poolTokens instead */ tokens: Array; type: GqlPoolType; userBalance?: Maybe; + /** @deprecated use protocolVersion instead */ vaultVersion: Scalars['Int']['output']; version: Scalars['Int']['output']; + /** @deprecated Removed without replacement */ withdrawConfig: GqlPoolWithdrawConfig; }; @@ -645,38 +839,66 @@ export type GqlPoolMinimal = { address: Scalars['Bytes']['output']; /** Returns all pool tokens, including any nested tokens and phantom BPTs */ allTokens: Array; + /** List of categories assigned by the team based on external factors */ + categories?: Maybe>>; /** The chain on which the pool is deployed */ chain: GqlChain; /** The timestamp the pool was created. */ createTime: Scalars['Int']['output']; /** The decimals of the BPT, usually 18 */ decimals: Scalars['Int']['output']; - /** Only returns main tokens, also known as leave tokens. Wont return any nested BPTs. Used for displaying the tokens that the pool consists of. */ + /** Only returns main or underlying tokens, also known as leave tokens. Wont return any nested BPTs. Used for displaying the tokens that the pool consists of. */ displayTokens: Array; /** Dynamic data such as token balances, swap fees or volume */ dynamicData: GqlPoolDynamicData; /** The factory contract address from which the pool was created. */ factory?: Maybe; - /** The pool id. This is equal to the address for vaultVersion 3 pools */ + /** Whether at least one token in this pool is considered an ERC4626 token. */ + hasErc4626: Scalars['Boolean']['output']; + /** Hook assigned to a pool */ + hook?: Maybe; + /** The pool id. This is equal to the address for protocolVersion 3 pools */ id: Scalars['ID']['output']; + /** Pool is receiving rewards when liquidity tokens are staked */ + incentivized: Scalars['Boolean']['output']; /** The name of the pool as per contract */ name: Scalars['String']['output']; /** The wallet address of the owner of the pool. Pool owners can set certain properties like swapFees or AMP. */ owner?: Maybe; + /** The protocol version on which the pool is deployed, 1, 2 or 3 */ + protocolVersion: Scalars['Int']['output']; /** Staking options of this pool which emit additional rewards */ staking?: Maybe; /** The token symbol of the pool as per contract */ symbol: Scalars['String']['output']; + /** List of tags assigned by the team based on external factors */ + tags?: Maybe>>; /** The pool type, such as weighted, stable, etc. */ type: GqlPoolType; /** If a user address was provided in the query, the user balance is populated here */ userBalance?: Maybe; - /** The vault version on which the pool is deployed, 2 or 3 */ + /** + * The vault version on which the pool is deployed, 2 or 3 + * @deprecated use protocolVersion instead + */ vaultVersion: Scalars['Int']['output']; /** The version of the pool type. */ version: Scalars['Int']['output']; }; +/** Result of the poolReloadPools mutation */ +export type GqlPoolMutationResult = { + __typename?: 'GqlPoolMutationResult'; + /** The chain that was reloaded. */ + chain: GqlChain; + /** The error message */ + error?: Maybe; + /** Whether it was successful or not. */ + success: Scalars['Boolean']['output']; + /** The type of pools that were reloaded. */ + type: Scalars['String']['output']; +}; + export type GqlPoolNestedUnion = GqlPoolComposableStableNested; export type GqlPoolNestingType = @@ -708,10 +930,12 @@ export type GqlPoolSnapshot = { id: Scalars['ID']['output']; poolId: Scalars['String']['output']; sharePrice: Scalars['String']['output']; + surplus24h: Scalars['String']['output']; swapsCount: Scalars['String']['output']; timestamp: Scalars['Int']['output']; totalLiquidity: Scalars['String']['output']; totalShares: Scalars['String']['output']; + totalSurplus: Scalars['String']['output']; totalSwapFee: Scalars['String']['output']; totalSwapVolume: Scalars['String']['output']; volume24h: Scalars['String']['output']; @@ -730,6 +954,7 @@ export type GqlPoolStable = GqlPoolBase & { address: Scalars['Bytes']['output']; allTokens: Array; amp: Scalars['BigInt']['output']; + categories?: Maybe>>; chain: GqlChain; createTime: Scalars['Int']['output']; decimals: Scalars['Int']['output']; @@ -737,17 +962,23 @@ export type GqlPoolStable = GqlPoolBase & { dynamicData: GqlPoolDynamicData; factory?: Maybe; id: Scalars['ID']['output']; + /** @deprecated Removed without replacement */ investConfig: GqlPoolInvestConfig; name: Scalars['String']['output']; owner: Scalars['Bytes']['output']; poolTokens: Array; + protocolVersion: Scalars['Int']['output']; staking?: Maybe; symbol: Scalars['String']['output']; + tags?: Maybe>>; + /** @deprecated Use poolTokens instead */ tokens: Array; type: GqlPoolType; userBalance?: Maybe; + /** @deprecated use protocolVersion instead */ vaultVersion: Scalars['Int']['output']; version: Scalars['Int']['output']; + /** @deprecated Removed without replacement */ withdrawConfig: GqlPoolWithdrawConfig; }; @@ -764,12 +995,23 @@ export type GqlPoolStableComposablePoolData = { export type GqlPoolStaking = { __typename?: 'GqlPoolStaking'; address: Scalars['String']['output']; + aura?: Maybe; chain: GqlChain; farm?: Maybe; gauge?: Maybe; id: Scalars['ID']['output']; reliquary?: Maybe; type: GqlPoolStakingType; + vebal?: Maybe; +}; + +export type GqlPoolStakingAura = { + __typename?: 'GqlPoolStakingAura'; + apr: Scalars['Float']['output']; + auraPoolAddress: Scalars['String']['output']; + auraPoolId: Scalars['String']['output']; + id: Scalars['ID']['output']; + isShutdown: Scalars['Boolean']['output']; }; export type GqlPoolStakingFarmRewarder = { @@ -840,12 +1082,20 @@ export type GqlPoolStakingReliquaryFarmLevel = { }; export type GqlPoolStakingType = + | 'AURA' | 'FRESH_BEETS' | 'GAUGE' | 'MASTER_CHEF' | 'RELIQUARY' + | 'VEBAL' | '%future added value'; +export type GqlPoolStakingVebal = { + __typename?: 'GqlPoolStakingVebal'; + id: Scalars['ID']['output']; + vebalAddress: Scalars['String']['output']; +}; + export type GqlPoolSwap = { __typename?: 'GqlPoolSwap'; chain: GqlChain; @@ -861,21 +1111,75 @@ export type GqlPoolSwap = { valueUSD: Scalars['Float']['output']; }; +/** Represents an event that occurs when a swap is made in a pool using the CowAmm protocol. */ +export type GqlPoolSwapEventCowAmm = GqlPoolEvent & { + __typename?: 'GqlPoolSwapEventCowAmm'; + /** The block number of the event. */ + blockNumber: Scalars['Int']['output']; + /** The block timestamp of the event. */ + blockTimestamp: Scalars['Int']['output']; + /** The chain on which the event occurred. */ + chain: GqlChain; + /** The fee that this swap generated. */ + fee: GqlPoolEventAmount; + /** The unique identifier of the event. */ + id: Scalars['ID']['output']; + /** The log index of the event. */ + logIndex: Scalars['Int']['output']; + /** The pool ID associated with the event. */ + poolId: Scalars['String']['output']; + /** The sender of the event. */ + sender: Scalars['String']['output']; + /** The surplus generated by the swap. */ + surplus: GqlPoolEventAmount; + /** The timestamp of the event. */ + timestamp: Scalars['Int']['output']; + /** The token that was swapped in the event. */ + tokenIn: GqlPoolEventAmount; + /** The token that was swapped out in the event. */ + tokenOut: GqlPoolEventAmount; + /** The transaction hash of the event. */ + tx: Scalars['String']['output']; + /** The type of the event. */ + type: GqlPoolEventType; + /** The user address associated with the event. */ + userAddress: Scalars['String']['output']; + /** The value of the event in USD. */ + valueUSD: Scalars['Float']['output']; +}; + +/** Represents an event that occurs when a swap is made in a pool. */ export type GqlPoolSwapEventV3 = GqlPoolEvent & { __typename?: 'GqlPoolSwapEventV3'; + /** The block number of the event. */ blockNumber: Scalars['Int']['output']; + /** The block timestamp of the event. */ blockTimestamp: Scalars['Int']['output']; + /** The chain on which the event occurred. */ chain: GqlChain; + /** The fee that this swap generated. */ + fee: GqlPoolEventAmount; + /** The unique identifier of the event. */ id: Scalars['ID']['output']; + /** The log index of the event. */ logIndex: Scalars['Int']['output']; + /** The pool ID associated with the event. */ poolId: Scalars['String']['output']; + /** The sender of the event. */ sender: Scalars['String']['output']; + /** The timestamp of the event. */ timestamp: Scalars['Int']['output']; + /** The token that was swapped in the event. */ tokenIn: GqlPoolEventAmount; + /** The token that was swapped out in the event. */ tokenOut: GqlPoolEventAmount; + /** The transaction hash of the event. */ tx: Scalars['String']['output']; + /** The type of the event. */ type: GqlPoolEventType; + /** The user address associated with the event. */ userAddress: Scalars['String']['output']; + /** The value of the event in USD. */ valueUSD: Scalars['Float']['output']; }; @@ -938,19 +1242,45 @@ export type GqlPoolTokenComposableStable = GqlPoolTokenBase & { export type GqlPoolTokenComposableStableNestedUnion = GqlPoolToken; +/** + * All info on the pool token. It will also include the nested pool if the token is a BPT. It will only support 1 level of nesting. + * A second (unsupported) level of nesting is shown by having hasNestedPool = true but nestedPool = null. + */ export type GqlPoolTokenDetail = { __typename?: 'GqlPoolTokenDetail'; + /** Address of the pool token. */ address: Scalars['String']['output']; + /** Balance of the pool token inside the pool. */ balance: Scalars['BigDecimal']['output']; + /** USD Balance of the pool token. */ + balanceUSD: Scalars['BigDecimal']['output']; + /** Decimals of the pool token. */ decimals: Scalars['Int']['output']; + /** Indicates whether this token is a BPT and therefor has a nested pool. */ hasNestedPool: Scalars['Boolean']['output']; + /** Id of the token. A combination of pool id and token address. */ id: Scalars['ID']['output']; + /** Index of the pool token in the pool as returned by the vault. */ index: Scalars['Int']['output']; + /** Whether the token is in the allow list. */ + isAllowed: Scalars['Boolean']['output']; + /** Whether the token is considered an ERC4626 token. */ + isErc4626: Scalars['Boolean']['output']; + /** Name of the pool token. */ name: Scalars['String']['output']; + /** Additional data for the nested pool if the token is a BPT. Null otherwise. */ nestedPool?: Maybe; + /** If it is an appreciating token, it shows the current price rate. 1 otherwise. */ priceRate: Scalars['BigDecimal']['output']; + /** The address of the price rate provider. */ priceRateProvider?: Maybe; + /** Additional data for the price rate provider, such as reviews or warnings. */ + priceRateProviderData?: Maybe; + /** Symbol of the pool token. */ symbol: Scalars['String']['output']; + /** If it is an Erc4262, this will be the underlying token if present in the API. */ + underlyingToken?: Maybe; + /** The weight of the token in the pool if it is a weighted pool, null otherwise */ weight?: Maybe; }; @@ -969,6 +1299,7 @@ export type GqlPoolTokenExpanded = { address: Scalars['String']['output']; decimals: Scalars['Int']['output']; id: Scalars['ID']['output']; + isErc4626: Scalars['Boolean']['output']; isMainToken: Scalars['Boolean']['output']; isNested: Scalars['Boolean']['output']; isPhantomBpt: Scalars['Boolean']['output']; @@ -982,6 +1313,7 @@ export type GqlPoolTokenUnion = GqlPoolToken | GqlPoolTokenComposableStable; /** Supported pool types */ export type GqlPoolType = | 'COMPOSABLE_STABLE' + | 'COW_AMM' | 'ELEMENT' | 'FX' | 'GYRO' @@ -1001,10 +1333,8 @@ export type GqlPoolUnion = GqlPoolComposableStable | GqlPoolElement | GqlPoolFx /** If a user address was provided in the query, the user balance is populated here */ export type GqlPoolUserBalance = { __typename?: 'GqlPoolUserBalance'; - /** The staked balance in either a gauge or farm as float. */ - stakedBalance: Scalars['AmountHumanReadable']['output']; - /** The staked balance in either a gauge or farm in USD as float. */ - stakedBalanceUsd: Scalars['Float']['output']; + /** The staked BPT balances of the user. */ + stakedBalances: Array; /** Total balance (wallet + staked) as float */ totalBalance: Scalars['AmountHumanReadable']['output']; /** Total balance (wallet + staked) in USD as float */ @@ -1025,6 +1355,7 @@ export type GqlPoolWeighted = GqlPoolBase & { __typename?: 'GqlPoolWeighted'; address: Scalars['Bytes']['output']; allTokens: Array; + categories?: Maybe>>; chain: GqlChain; createTime: Scalars['Int']['output']; decimals: Scalars['Int']['output']; @@ -1032,19 +1363,27 @@ export type GqlPoolWeighted = GqlPoolBase & { dynamicData: GqlPoolDynamicData; factory?: Maybe; id: Scalars['ID']['output']; + /** @deprecated Removed without replacement */ investConfig: GqlPoolInvestConfig; name: Scalars['String']['output']; nestingType: GqlPoolNestingType; owner: Scalars['Bytes']['output']; poolTokens: Array; + protocolVersion: Scalars['Int']['output']; staking?: Maybe; symbol: Scalars['String']['output']; - /** All tokens of the pool. If it is a nested pool, the nested pool is expanded with its own tokens again. */ + tags?: Maybe>>; + /** + * All tokens of the pool. If it is a nested pool, the nested pool is expanded with its own tokens again. + * @deprecated Use poolTokens instead + */ tokens: Array; type: GqlPoolType; userBalance?: Maybe; + /** @deprecated use protocolVersion instead */ vaultVersion: Scalars['Int']['output']; version: Scalars['Int']['output']; + /** @deprecated Removed without replacement */ withdrawConfig: GqlPoolWithdrawConfig; }; @@ -1071,6 +1410,36 @@ export type GqlPriceImpact = { priceImpact?: Maybe; }; +/** Represents the data of a price rate provider */ +export type GqlPriceRateProviderData = { + __typename?: 'GqlPriceRateProviderData'; + /** The address of the price rate provider */ + address: Scalars['String']['output']; + /** The factory used to create the price rate provider, if applicable */ + factory?: Maybe; + /** The name of the price rate provider */ + name?: Maybe; + /** The filename of the review of the price rate provider */ + reviewFile?: Maybe; + /** Indicates if the price rate provider has been reviewed */ + reviewed: Scalars['Boolean']['output']; + /** A summary of the price rate provider, usually just says safe or unsafe */ + summary?: Maybe; + /** Upgradeable components of the price rate provider */ + upgradeableComponents?: Maybe>>; + /** Warnings associated with the price rate provider */ + warnings?: Maybe>; +}; + +/** Represents an upgradeable component of a price rate provider */ +export type GqlPriceRateProviderUpgradeableComponent = { + __typename?: 'GqlPriceRateProviderUpgradeableComponent'; + /** The entry point / proxy of the upgradeable component */ + entryPoint: Scalars['String']['output']; + /** Indicates if the implementation of the component has been reviewed */ + implementationReviewed: Scalars['String']['output']; +}; + export type GqlProtocolMetricsAggregated = { __typename?: 'GqlProtocolMetricsAggregated'; chains: Array; @@ -1250,6 +1619,8 @@ export type GqlSorGetSwapPaths = { paths: Array; /** Price impact of the path */ priceImpact: GqlPriceImpact; + /** The version of the protocol these paths are from */ + protocolVersion: Scalars['Int']['output']; /** The return amount in human form. Return amount is either tokenOutAmount (if swapType is exactIn) or tokenInAmount (if swapType is exactOut) */ returnAmount: Scalars['AmountHumanReadable']['output']; /** The return amount in a raw form */ @@ -1274,7 +1645,10 @@ export type GqlSorGetSwapPaths = { tokenOut: Scalars['String']['output']; /** The amount of tokenOut in human form */ tokenOutAmount: Scalars['AmountHumanReadable']['output']; - /** The version of the vault these paths are from */ + /** + * The version of the vault these paths are from + * @deprecated Use protocolVersion instead + */ vaultVersion: Scalars['Int']['output']; }; @@ -1306,13 +1680,20 @@ export type GqlSorPath = { __typename?: 'GqlSorPath'; /** Input amount of this path in scaled form */ inputAmountRaw: Scalars['String']['output']; + /** A sorted list of booleans that indicate if the respective pool is a buffer */ + isBuffer: Array>; /** Output amount of this path in scaled form */ outputAmountRaw: Scalars['String']['output']; /** A sorted list of pool ids that are used in this path */ pools: Array>; + /** The version of the protocol these paths are from */ + protocolVersion: Scalars['Int']['output']; /** A sorted list of tokens that are ussed in this path */ tokens: Array>; - /** Vault version of this path. */ + /** + * Vault version of this path. + * @deprecated Use protocolVersion instead + */ vaultVersion: Scalars['Int']['output']; }; @@ -1389,21 +1770,44 @@ export type GqlSwapCallDataInput = { slippagePercentage: Scalars['String']['input']; }; +/** Represents a token */ export type GqlToken = { __typename?: 'GqlToken'; + /** The address of the token */ address: Scalars['String']['output']; + /** The chain of the token */ chain: GqlChain; + /** The chain ID of the token */ chainId: Scalars['Int']['output']; + /** The coingecko ID for this token, if present */ + coingeckoId?: Maybe; + /** The number of decimal places for the token */ decimals: Scalars['Int']['output']; + /** The description of the token */ description?: Maybe; + /** The Discord URL of the token */ discordUrl?: Maybe; + /** Whether the token is considered an ERC4626 token. */ + isErc4626: Scalars['Boolean']['output']; + /** The logo URI of the token */ logoURI?: Maybe; + /** The name of the token */ name: Scalars['String']['output']; + /** The rate provider data for the token */ + priceRateProviderData?: Maybe; + /** The priority of the token, can be used for sorting. */ priority: Scalars['Int']['output']; + /** The rate provider data for the token */ + rateProviderData?: Maybe; + /** The symbol of the token */ symbol: Scalars['String']['output']; + /** The Telegram URL of the token */ telegramUrl?: Maybe; + /** Indicates if the token is tradable */ tradable: Scalars['Boolean']['output']; + /** The Twitter username of the token */ twitterUsername?: Maybe; + /** The website URL of the token */ websiteUrl?: Maybe; }; @@ -1441,25 +1845,52 @@ export type GqlTokenData = { websiteUrl?: Maybe; }; +/** Represents additional data for a token */ export type GqlTokenDynamicData = { __typename?: 'GqlTokenDynamicData'; + /** The all-time high price of the token */ ath: Scalars['Float']['output']; + /** The all-time low price of the token */ atl: Scalars['Float']['output']; + /** The fully diluted valuation of the token */ fdv?: Maybe; + /** The highest price in the last 24 hours */ high24h: Scalars['Float']['output']; + /** The unique identifier of the dynamic data */ id: Scalars['String']['output']; + /** The lowest price in the last 24 hours */ low24h: Scalars['Float']['output']; + /** The market capitalization of the token */ marketCap?: Maybe; + /** The current price of the token */ price: Scalars['Float']['output']; + /** The price change in the last 24 hours */ priceChange24h: Scalars['Float']['output']; + /** The percentage price change in the last 7 days */ priceChangePercent7d?: Maybe; + /** The percentage price change in the last 14 days */ priceChangePercent14d?: Maybe; + /** The percentage price change in the last 24 hours */ priceChangePercent24h: Scalars['Float']['output']; + /** The percentage price change in the last 30 days */ priceChangePercent30d?: Maybe; + /** The address of the token */ tokenAddress: Scalars['String']['output']; + /** The timestamp when the data was last updated */ updatedAt: Scalars['String']['output']; }; +/** Result of the poolReloadPools mutation */ +export type GqlTokenMutationResult = { + __typename?: 'GqlTokenMutationResult'; + /** The chain that was reloaded. */ + chain: GqlChain; + /** The error message */ + error?: Maybe; + /** Whether it was successful or not. */ + success: Scalars['Boolean']['output']; +}; + export type GqlTokenPrice = { __typename?: 'GqlTokenPrice'; address: Scalars['String']['output']; @@ -1501,46 +1932,119 @@ export type GqlUserPoolBalance = { walletBalance: Scalars['AmountHumanReadable']['output']; }; +export type GqlUserStakedBalance = { + __typename?: 'GqlUserStakedBalance'; + /** The staked BPT balance as float. */ + balance: Scalars['AmountHumanReadable']['output']; + /** The steaked BPT balance in USD as float. */ + balanceUsd: Scalars['Float']['output']; + /** The id of the staking to match with GqlPoolStaking.id. */ + stakingId: Scalars['String']['output']; + /** The staking type (Gauge, farm, aura, etc.) in which this balance is staked. */ + stakingType: GqlPoolStakingType; +}; + export type GqlUserSwapVolumeFilter = { poolIdIn?: InputMaybe>; tokenInIn?: InputMaybe>; tokenOutIn?: InputMaybe>; }; +export type GqlVeBalBalance = { + __typename?: 'GqlVeBalBalance'; + balance: Scalars['AmountHumanReadable']['output']; + chain: GqlChain; + locked: Scalars['AmountHumanReadable']['output']; + lockedUsd: Scalars['AmountHumanReadable']['output']; +}; + export type GqlVeBalUserData = { __typename?: 'GqlVeBalUserData'; balance: Scalars['AmountHumanReadable']['output']; + locked: Scalars['AmountHumanReadable']['output']; + lockedUsd: Scalars['AmountHumanReadable']['output']; rank?: Maybe; }; +/** The Gauge that can be voted on through veBAL and that will ultimately receive the rewards. */ export type GqlVotingGauge = { __typename?: 'GqlVotingGauge'; + /** The timestamp the gauge was added. */ addedTimestamp?: Maybe; + /** The address of the root gauge on Ethereum mainnet. */ address: Scalars['Bytes']['output']; + /** The address of the child gauge on the specific chain. */ childGaugeAddress?: Maybe; + /** Whether the gauge is killed or not. */ isKilled: Scalars['Boolean']['output']; + /** The relative weight the gauge received this epoch (not more than 1.0). */ + relativeWeight: Scalars['String']['output']; + /** The relative weight cap. 1.0 for uncapped. */ relativeWeightCap?: Maybe; }; +/** A token inside of a pool with a voting gauge. */ export type GqlVotingGaugeToken = { __typename?: 'GqlVotingGaugeToken'; + /** The address of the token. */ address: Scalars['String']['output']; + /** The URL to the token logo. */ logoURI: Scalars['String']['output']; + /** The symbol of the token. */ symbol: Scalars['String']['output']; + /** If it is a weighted pool, the weigh of the token is shown here in %. 0.5 = 50%. */ weight?: Maybe; }; +/** The pool that can be voted on through veBAL */ export type GqlVotingPool = { __typename?: 'GqlVotingPool'; + /** The address of the pool. */ address: Scalars['Bytes']['output']; + /** The chain this pool is on. */ chain: GqlChain; + /** The gauge that is connected to the pool and that will receive the rewards. */ gauge: GqlVotingGauge; + /** Pool ID */ id: Scalars['ID']['output']; + /** The symbol of the pool. */ symbol: Scalars['String']['output']; + /** The tokens inside the pool. */ tokens: Array; + /** The type of the pool. */ type: GqlPoolType; }; +/** Hook data */ +export type Hook = { + __typename?: 'Hook'; + address: Scalars['String']['output']; + chain: GqlChain; + /** Data points changing over time */ + dynamicData?: Maybe; + /** True when hook can change the amounts send to the vault. Necessary to deduct the fees. */ + enableHookAdjustedAmounts: Scalars['Boolean']['output']; + /** List of pools using the hook */ + poolsIds?: Maybe>>; + shouldCallAfterAddLiquidity: Scalars['Boolean']['output']; + shouldCallAfterInitialize: Scalars['Boolean']['output']; + shouldCallAfterRemoveLiquidity: Scalars['Boolean']['output']; + shouldCallAfterSwap: Scalars['Boolean']['output']; + shouldCallBeforeAddLiquidity: Scalars['Boolean']['output']; + shouldCallBeforeInitialize: Scalars['Boolean']['output']; + shouldCallBeforeRemoveLiquidity: Scalars['Boolean']['output']; + shouldCallBeforeSwap: Scalars['Boolean']['output']; + shouldCallComputeDynamicSwapFee: Scalars['Boolean']['output']; +}; + +/** Collection of hook specific data. Percentage format is 0.01 -> 0.01%. */ +export type HookData = { + __typename?: 'HookData'; + addLiquidityFeePercentage?: Maybe; + removeLiquidityFeePercentage?: Maybe; + swapFeePercentage?: Maybe; +}; + export type Mutation = { __typename?: 'Mutation'; beetsPoolLoadReliquarySnapshotsForAllFarms: Scalars['String']['output']; @@ -1557,7 +2061,9 @@ export type Mutation = { poolLoadSnapshotsForPools: Scalars['String']['output']; poolReloadAllPoolAprs: Scalars['String']['output']; poolReloadAllTokenNestedPoolIds: Scalars['String']['output']; + poolReloadPools: Array; poolReloadStakingForAllPools: Scalars['String']['output']; + poolSyncAllCowSnapshots: Array; poolSyncAllPoolsFromSubgraph: Array; poolSyncLatestSnapshotsForAllPools: Scalars['String']['output']; poolSyncNewPoolsFromSubgraph: Array; @@ -1577,6 +2083,7 @@ export type Mutation = { sftmxSyncWithdrawalRequests: Scalars['String']['output']; tokenDeleteTokenType: Scalars['String']['output']; tokenReloadAllTokenTypes: Scalars['String']['output']; + tokenReloadErc4626Tokens: Array; tokenReloadTokenPrices?: Maybe; tokenSyncLatestFxPrices: Scalars['String']['output']; tokenSyncTokenDefinitions: Scalars['String']['output']; @@ -1623,13 +2130,23 @@ export type MutationPoolReloadAllPoolAprsArgs = { }; +export type MutationPoolReloadPoolsArgs = { + chains: Array; +}; + + export type MutationPoolReloadStakingForAllPoolsArgs = { stakingTypes: Array; }; +export type MutationPoolSyncAllCowSnapshotsArgs = { + chains: Array; +}; + + export type MutationPoolSyncLatestSnapshotsForAllPoolsArgs = { - daysToSync?: InputMaybe; + chain: GqlChain; }; @@ -1649,6 +2166,11 @@ export type MutationTokenDeleteTokenTypeArgs = { }; +export type MutationTokenReloadErc4626TokensArgs = { + chains: Array; +}; + + export type MutationTokenReloadTokenPricesArgs = { chains: Array; }; @@ -1682,18 +2204,29 @@ export type Query = { blocksGetBlocksPerSecond: Scalars['Float']['output']; blocksGetBlocksPerYear: Scalars['Float']['output']; contentGetNewsItems: Array; + /** Returns list of hooks. */ + hooks?: Maybe>; latestSyncedBlocks: GqlLatestSyncedBlocks; /** Getting swap, add and remove events with paging */ poolEvents: Array; - /** Will de deprecated in favor of poolEvents */ + /** + * Will de deprecated in favor of poolEvents + * @deprecated Use poolEvents instead + */ poolGetBatchSwaps: Array; /** Getting swap, add and remove events with range */ poolGetEvents: Array; - /** Will de deprecated in favor of poolGetFeaturedPools */ + /** + * Will de deprecated in favor of poolGetFeaturedPools + * @deprecated Use poolGetFeaturedPools instead + */ poolGetFeaturedPoolGroups: Array; /** Returns the list of featured pools for chains */ poolGetFeaturedPools: Array; - /** Will de deprecated in favor of poolEvents */ + /** + * Will de deprecated in favor of poolEvents + * @deprecated Use poolEvents instead + */ poolGetJoinExits: Array; /** Returns one pool. If a user address is provided, the user balances for the given pool will also be returned. */ poolGetPool: GqlPoolBase; @@ -1703,7 +2236,10 @@ export type Query = { poolGetPoolsCount: Scalars['Int']['output']; /** Gets all the snapshots for a given pool on a chain for a certain range */ poolGetSnapshots: Array; - /** Will de deprecated in favor of poolEvents */ + /** + * Will de deprecated in favor of poolEvents + * @deprecated Use poolEvents instead + */ poolGetSwaps: Array; protocolMetricsAggregated: GqlProtocolMetricsAggregated; protocolMetricsChain: GqlProtocolMetricsChain; @@ -1717,16 +2253,42 @@ export type Query = { sorGetSwapPaths: GqlSorGetSwapPaths; /** Get swap quote from the SOR, queries both the old and new SOR */ sorGetSwaps: GqlSorGetSwapsResponse; + /** + * Returns the candlestick chart data for a token for a given range. + * @deprecated Use tokenGetHistoricalPrices instead + */ tokenGetCandlestickChartData: Array; + /** Returns all current prices for allowed tokens for a given chain or chains */ tokenGetCurrentPrices: Array; + /** Returns the historical prices for a given set of tokens for a given chain and range */ tokenGetHistoricalPrices: Array; + /** + * DEPRECATED: Returns pricing data for a given token for a given range + * @deprecated Use tokenGetHistoricalPrices instead + */ tokenGetPriceChartData: Array; + /** + * Returns the price of either BAL or BEETS depending on chain + * @deprecated Use tokenGetTokensDynamicData instead + */ tokenGetProtocolTokenPrice: Scalars['AmountHumanReadable']['output']; + /** Returns the price of a token priced in another token for a given range. */ tokenGetRelativePriceChartData: Array; + /** + * Returns meta data for a given token such as description, website, etc. + * @deprecated Use tokenGetTokens instead + */ tokenGetTokenData?: Maybe; + /** Returns dynamic data of a token such as price, market cap, etc. */ tokenGetTokenDynamicData?: Maybe; + /** Returns all allowed tokens for a given chain or chains */ tokenGetTokens: Array; + /** + * Returns meta data for a given set of tokens such as description, website, etc. + * @deprecated Use tokenGetTokens instead + */ tokenGetTokensData: Array; + /** Returns dynamic data of a set of tokens such as price, market cap, etc. */ tokenGetTokensDynamicData: Array; userGetFbeetsBalance: GqlUserFbeetsBalance; userGetPoolBalances: Array; @@ -1738,6 +2300,8 @@ export type Query = { veBalGetTotalSupply: Scalars['AmountHumanReadable']['output']; veBalGetUser: GqlVeBalUserData; veBalGetUserBalance: Scalars['AmountHumanReadable']['output']; + veBalGetUserBalances: Array; + /** Returns all pools with veBAL gauges that can be voted on. */ veBalGetVotingList: Array; }; @@ -1753,10 +2317,15 @@ export type QueryContentGetNewsItemsArgs = { }; +export type QueryHooksArgs = { + chain?: InputMaybe; +}; + + export type QueryPoolEventsArgs = { first?: InputMaybe; skip?: InputMaybe; - where: GqlPoolEventsFilter; + where?: InputMaybe; }; @@ -1862,7 +2431,7 @@ export type QuerySorGetSwapPathsArgs = { swapType: GqlSorSwapType; tokenIn: Scalars['String']['input']; tokenOut: Scalars['String']['input']; - useVaultVersion?: InputMaybe; + useProtocolVersion?: InputMaybe; }; @@ -1972,6 +2541,29 @@ export type QueryUserGetSwapsArgs = { skip?: InputMaybe; }; + +export type QueryVeBalGetTotalSupplyArgs = { + chain?: InputMaybe; +}; + + +export type QueryVeBalGetUserArgs = { + address: Scalars['String']['input']; + chain?: InputMaybe; +}; + + +export type QueryVeBalGetUserBalanceArgs = { + address?: InputMaybe; + chain?: InputMaybe; +}; + + +export type QueryVeBalGetUserBalancesArgs = { + address: Scalars['String']['input']; + chains?: InputMaybe>; +}; + export type Token = { __typename?: 'Token'; address: Scalars['String']['output']; diff --git a/packages/gql/src/balancer-api-v3/__generated__/Gnosis.ts b/packages/gql/src/balancer-api-v3/__generated__/Gnosis.ts index dbb6d7c10..5e68d0c72 100644 --- a/packages/gql/src/balancer-api-v3/__generated__/Gnosis.ts +++ b/packages/gql/src/balancer-api-v3/__generated__/Gnosis.ts @@ -46,8 +46,10 @@ export type GqlChain = | 'AVALANCHE' | 'BASE' | 'FANTOM' + | 'FRAXTAL' | 'GNOSIS' | 'MAINNET' + | 'MODE' | 'OPTIMISM' | 'POLYGON' | 'SEPOLIA' @@ -130,41 +132,73 @@ export type GqlLatestSyncedBlocks = { userWalletSyncBlock: Scalars['BigInt']['output']; }; +/** All info on the nested pool if the token is a BPT. It will only support 1 level of nesting. */ export type GqlNestedPool = { __typename?: 'GqlNestedPool'; + /** Address of the pool. */ address: Scalars['Bytes']['output']; + /** Price rate of the Balancer Pool Token (BPT). */ bptPriceRate: Scalars['BigDecimal']['output']; + /** Timestamp of when the pool was created. */ createTime: Scalars['Int']['output']; + /** Address of the factory contract that created the pool, if applicable. */ factory?: Maybe; + /** Unique identifier of the pool. */ id: Scalars['ID']['output']; + /** Name of the pool. */ name: Scalars['String']['output']; + /** Total liquidity of the parent pool in the nested pool in USD. */ nestedLiquidity: Scalars['BigDecimal']['output']; + /** Percentage of the parents pool shares inside the nested pool. */ nestedPercentage: Scalars['BigDecimal']['output']; + /** Number of shares of the parent pool in the nested pool. */ nestedShares: Scalars['BigDecimal']['output']; + /** Address of the pool's owner. */ owner: Scalars['Bytes']['output']; + /** Fee charged for swapping tokens in the pool as %. 0.01 -> 0.01% */ swapFee: Scalars['BigDecimal']['output']; + /** Symbol of the pool. */ symbol: Scalars['String']['output']; + /** List of all tokens in the pool. */ tokens: Array; + /** Total liquidity in the pool in USD. */ totalLiquidity: Scalars['BigDecimal']['output']; + /** Total number of shares in the pool. */ totalShares: Scalars['BigDecimal']['output']; + /** Type of the pool. */ type: GqlPoolType; + /** Version of the pool. */ version: Scalars['Int']['output']; }; +/** Represents an event that occurs when liquidity is added or removed from a pool. */ export type GqlPoolAddRemoveEventV3 = GqlPoolEvent & { __typename?: 'GqlPoolAddRemoveEventV3'; + /** The block number of the event. */ blockNumber: Scalars['Int']['output']; + /** The block timestamp of the event. */ blockTimestamp: Scalars['Int']['output']; + /** The chain on which the event occurred. */ chain: GqlChain; + /** The unique identifier of the event. */ id: Scalars['ID']['output']; + /** The log index of the event. */ logIndex: Scalars['Int']['output']; + /** The pool ID associated with the event. */ poolId: Scalars['String']['output']; + /** The sender of the event. */ sender: Scalars['String']['output']; + /** The timestamp of the event. */ timestamp: Scalars['Int']['output']; + /** The tokens involved in the event. Ordered by poolToken index. */ tokens: Array; + /** The transaction hash of the event. */ tx: Scalars['String']['output']; + /** The type of the event. */ type: GqlPoolEventType; + /** The user address associated with the event. */ userAddress: Scalars['String']['output']; + /** The value of the event in USD. */ valueUSD: Scalars['Float']['output']; }; @@ -178,6 +212,43 @@ export type GqlPoolApr = { thirdPartyApr: GqlPoolAprValue; }; +/** All APRs for a pool */ +export type GqlPoolAprItem = { + __typename?: 'GqlPoolAprItem'; + /** The APR value in % -> 0.2 = 0.2% */ + apr: Scalars['Float']['output']; + /** The id of the APR item */ + id: Scalars['ID']['output']; + /** The title of the APR item, a human readable form */ + title: Scalars['String']['output']; + /** Specific type of this APR */ + type: GqlPoolAprItemType; +}; + +/** Enum representing the different types of the APR in a pool. */ +export type GqlPoolAprItemType = + /** APR that pools earns when BPT is staked on AURA. */ + | 'AURA' + /** Represents the yield from an IB (Interest-Bearing) asset APR in a pool. */ + | 'IB_YIELD' + /** APR in a pool that can be earned through locking, i.e. veBAL */ + | 'LOCKING' + /** Rewards distributed by merkl.xyz */ + | 'MERKL' + /** Represents if the APR items comes from a nested pool. */ + | 'NESTED' + /** Staking reward APR in a pool, i.e. BAL or BEETS. */ + | 'STAKING' + /** APR boost that can be earned, i.e. via veBAL or maBEETS. */ + | 'STAKING_BOOST' + /** Cow AMM specific APR */ + | 'SURPLUS' + /** Represents the swap fee APR in a pool. */ + | 'SWAP_FEE' + /** APR that can be earned thourgh voting, i.e. gauge votes */ + | 'VOTING' + | '%future added value'; + export type GqlPoolAprRange = { __typename?: 'GqlPoolAprRange'; max: Scalars['BigDecimal']['output']; @@ -195,23 +266,34 @@ export type GqlPoolAprValue = GqlPoolAprRange | GqlPoolAprTotal; export type GqlPoolBase = { /** The contract address of the pool. */ address: Scalars['Bytes']['output']; - /** Returns all pool tokens, including any nested tokens and phantom BPTs on one level. */ + /** + * Returns all pool tokens, including any nested tokens and phantom BPTs on one level. + * @deprecated Use poolTokens instead + */ allTokens: Array; + /** List of categories assigned by the team based on external factors */ + categories?: Maybe>>; /** The chain on which the pool is deployed */ chain: GqlChain; /** The timestamp the pool was created. */ createTime: Scalars['Int']['output']; /** The decimals of the BPT, usually 18 */ decimals: Scalars['Int']['output']; - /** Only returns main tokens, also known as leave tokens. Wont return any nested BPTs. Used for displaying the tokens that the pool consists of. */ + /** + * Only returns main tokens, also known as leave tokens. Wont return any nested BPTs. Used for displaying the tokens that the pool consists of. + * @deprecated Use poolTokens instead + */ displayTokens: Array; /** Dynamic data such as token balances, swap fees or volume */ dynamicData: GqlPoolDynamicData; /** The factory contract address from which the pool was created. */ factory?: Maybe; - /** The pool id. This is equal to the address for vaultVersion 3 pools */ + /** The pool id. This is equal to the address for protocolVersion 3 pools */ id: Scalars['ID']['output']; - /** Deprecated */ + /** + * Deprecated + * @deprecated Removed without replacement + */ investConfig: GqlPoolInvestConfig; /** The name of the pool as per contract */ name: Scalars['String']['output']; @@ -219,19 +301,29 @@ export type GqlPoolBase = { owner?: Maybe; /** Returns all pool tokens, including BPTs and nested pools if there are any. Only one nested level deep. */ poolTokens: Array; + /** The protocol version on which the pool is deployed, 1, 2 or 3 */ + protocolVersion: Scalars['Int']['output']; /** Staking options of this pool which emit additional rewards */ staking?: Maybe; /** The token symbol of the pool as per contract */ symbol: Scalars['String']['output']; + /** List of tags assigned by the team based on external factors */ + tags?: Maybe>>; /** The pool type, such as weighted, stable, etc. */ type: GqlPoolType; /** If a user address was provided in the query, the user balance is populated here */ userBalance?: Maybe; - /** The vault version on which the pool is deployed, 2 or 3 */ + /** + * The vault version on which the pool is deployed, 2 or 3 + * @deprecated use protocolVersion instead + */ vaultVersion: Scalars['Int']['output']; /** The version of the pool type. */ version: Scalars['Int']['output']; - /** Deprecated */ + /** + * Deprecated + * @deprecated Removed without replacement + */ withdrawConfig: GqlPoolWithdrawConfig; }; @@ -278,6 +370,7 @@ export type GqlPoolComposableStable = GqlPoolBase & { allTokens: Array; amp: Scalars['BigInt']['output']; bptPriceRate: Scalars['BigDecimal']['output']; + categories?: Maybe>>; chain: GqlChain; createTime: Scalars['Int']['output']; decimals: Scalars['Int']['output']; @@ -285,18 +378,27 @@ export type GqlPoolComposableStable = GqlPoolBase & { dynamicData: GqlPoolDynamicData; factory?: Maybe; id: Scalars['ID']['output']; + /** @deprecated Removed without replacement */ investConfig: GqlPoolInvestConfig; name: Scalars['String']['output']; nestingType: GqlPoolNestingType; owner: Scalars['Bytes']['output']; poolTokens: Array; + protocolVersion: Scalars['Int']['output']; staking?: Maybe; symbol: Scalars['String']['output']; + tags?: Maybe>>; + /** + * All tokens of the pool. If it is a nested pool, the nested pool is expanded with its own tokens again. + * @deprecated Use poolTokens instead + */ tokens: Array; type: GqlPoolType; userBalance?: Maybe; + /** @deprecated use protocolVersion instead */ vaultVersion: Scalars['Int']['output']; version: Scalars['Int']['output']; + /** @deprecated Removed without replacement */ withdrawConfig: GqlPoolWithdrawConfig; }; @@ -305,6 +407,7 @@ export type GqlPoolComposableStableNested = { address: Scalars['Bytes']['output']; amp: Scalars['BigInt']['output']; bptPriceRate: Scalars['BigDecimal']['output']; + categories?: Maybe>>; createTime: Scalars['Int']['output']; factory?: Maybe; id: Scalars['ID']['output']; @@ -313,6 +416,8 @@ export type GqlPoolComposableStableNested = { owner: Scalars['Bytes']['output']; swapFee: Scalars['BigDecimal']['output']; symbol: Scalars['String']['output']; + tags?: Maybe>>; + /** @deprecated Use poolTokens instead */ tokens: Array; totalLiquidity: Scalars['BigDecimal']['output']; totalShares: Scalars['BigDecimal']['output']; @@ -322,7 +427,13 @@ export type GqlPoolComposableStableNested = { export type GqlPoolDynamicData = { __typename?: 'GqlPoolDynamicData'; + /** Protocol and pool creator fees combined */ + aggregateSwapFee: Scalars['BigDecimal']['output']; + /** Protocol and pool creator fees combined */ + aggregateYieldFee: Scalars['BigDecimal']['output']; + /** @deprecated Use aprItems instead */ apr: GqlPoolApr; + aprItems: Array; fees24h: Scalars['BigDecimal']['output']; fees24hAth: Scalars['BigDecimal']['output']; fees24hAthTimestamp: Scalars['Int']['output']; @@ -330,6 +441,7 @@ export type GqlPoolDynamicData = { fees24hAtlTimestamp: Scalars['Int']['output']; fees48h: Scalars['BigDecimal']['output']; holdersCount: Scalars['BigInt']['output']; + /** True for bricked pools */ isInRecoveryMode: Scalars['Boolean']['output']; isPaused: Scalars['Boolean']['output']; lifetimeSwapFees: Scalars['BigDecimal']['output']; @@ -339,6 +451,11 @@ export type GqlPoolDynamicData = { sharePriceAthTimestamp: Scalars['Int']['output']; sharePriceAtl: Scalars['BigDecimal']['output']; sharePriceAtlTimestamp: Scalars['Int']['output']; + /** CowAmm specific, equivalent of swap fees */ + surplus24h: Scalars['BigDecimal']['output']; + /** CowAmm specific, equivalent of swap fees */ + surplus48h: Scalars['BigDecimal']['output']; + /** Disabled for bricked pools */ swapEnabled: Scalars['Boolean']['output']; swapFee: Scalars['BigDecimal']['output']; swapsCount: Scalars['BigInt']['output']; @@ -365,6 +482,7 @@ export type GqlPoolElement = GqlPoolBase & { address: Scalars['Bytes']['output']; allTokens: Array; baseToken: Scalars['Bytes']['output']; + categories?: Maybe>>; chain: GqlChain; createTime: Scalars['Int']['output']; decimals: Scalars['Int']['output']; @@ -372,34 +490,53 @@ export type GqlPoolElement = GqlPoolBase & { dynamicData: GqlPoolDynamicData; factory?: Maybe; id: Scalars['ID']['output']; + /** @deprecated Removed without replacement */ investConfig: GqlPoolInvestConfig; name: Scalars['String']['output']; owner: Scalars['Bytes']['output']; poolTokens: Array; principalToken: Scalars['Bytes']['output']; + protocolVersion: Scalars['Int']['output']; staking?: Maybe; symbol: Scalars['String']['output']; + tags?: Maybe>>; + /** @deprecated Use poolTokens instead */ tokens: Array; type: GqlPoolType; unitSeconds: Scalars['BigInt']['output']; userBalance?: Maybe; + /** @deprecated use protocolVersion instead */ vaultVersion: Scalars['Int']['output']; version: Scalars['Int']['output']; + /** @deprecated Removed without replacement */ withdrawConfig: GqlPoolWithdrawConfig; }; +/** Represents an event that occurs in a pool. */ export type GqlPoolEvent = { + /** The block number of the event. */ blockNumber: Scalars['Int']['output']; + /** The block timestamp of the event. */ blockTimestamp: Scalars['Int']['output']; + /** The chain on which the event occurred. */ chain: GqlChain; + /** The unique identifier of the event. */ id: Scalars['ID']['output']; + /** The log index of the event. */ logIndex: Scalars['Int']['output']; + /** The pool ID associated with the event. */ poolId: Scalars['String']['output']; + /** The sender of the event. */ sender: Scalars['String']['output']; + /** The timestamp of the event. */ timestamp: Scalars['Int']['output']; + /** The transaction hash of the event. */ tx: Scalars['String']['output']; + /** The type of the event. */ type: GqlPoolEventType; + /** The user address associated with the event. */ userAddress: Scalars['String']['output']; + /** The USD value of this event. */ valueUSD: Scalars['Float']['output']; }; @@ -423,11 +560,15 @@ export type GqlPoolEventsDataRange = | '%future added value'; export type GqlPoolEventsFilter = { - chain: GqlChain; - poolId: Scalars['String']['input']; + chainIn?: InputMaybe>>; + poolIdIn?: InputMaybe>>; range?: InputMaybe; typeIn?: InputMaybe>>; userAddress?: InputMaybe; + /** USD value of the event */ + valueUSD_gt?: InputMaybe; + /** USD value of the event */ + valueUSD_gte?: InputMaybe; }; export type GqlPoolFeaturedPool = { @@ -449,8 +590,6 @@ export type GqlPoolFeaturedPoolGroup = { export type GqlPoolFeaturedPoolGroupItem = GqlFeaturePoolGroupItemExternalLink | GqlPoolMinimal; export type GqlPoolFilter = { - categoryIn?: InputMaybe>; - categoryNotIn?: InputMaybe>; chainIn?: InputMaybe>; chainNotIn?: InputMaybe>; createTime?: InputMaybe; @@ -461,15 +600,33 @@ export type GqlPoolFilter = { minTvl?: InputMaybe; poolTypeIn?: InputMaybe>; poolTypeNotIn?: InputMaybe>; + protocolVersionIn?: InputMaybe>; + /** + * For list of tags see: https://github.com/balancer/metadata/blob/main/pools/index.json + * Use uppercase + */ + tagIn?: InputMaybe>; + /** + * For list of tags see: https://github.com/balancer/metadata/blob/main/pools/index.json + * Use uppercase + */ + tagNotIn?: InputMaybe>; tokensIn?: InputMaybe>; tokensNotIn?: InputMaybe>; userAddress?: InputMaybe; - vaultVersionIn?: InputMaybe>; }; export type GqlPoolFilterCategory = | 'BLACK_LISTED' | 'INCENTIVIZED' + | 'LRT' + | 'POINTS' + | 'POINTS_EIGENLAYER' + | 'POINTS_GYRO' + | 'POINTS_KELP' + | 'POINTS_RENZO' + | 'POINTS_SWELL' + | 'SUPERFEST' | '%future added value'; export type GqlPoolFx = GqlPoolBase & { @@ -478,6 +635,7 @@ export type GqlPoolFx = GqlPoolBase & { allTokens: Array; alpha: Scalars['String']['output']; beta: Scalars['String']['output']; + categories?: Maybe>>; chain: GqlChain; createTime: Scalars['Int']['output']; decimals: Scalars['Int']['output']; @@ -487,18 +645,27 @@ export type GqlPoolFx = GqlPoolBase & { epsilon: Scalars['String']['output']; factory?: Maybe; id: Scalars['ID']['output']; + /** @deprecated Removed without replacement */ investConfig: GqlPoolInvestConfig; lambda: Scalars['String']['output']; name: Scalars['String']['output']; owner?: Maybe; poolTokens: Array; + protocolVersion: Scalars['Int']['output']; staking?: Maybe; symbol: Scalars['String']['output']; + tags?: Maybe>>; + /** + * All tokens of the pool. If it is a nested pool, the nested pool is expanded with its own tokens again. + * @deprecated Use poolTokens instead + */ tokens: Array; type: GqlPoolType; userBalance?: Maybe; + /** @deprecated use protocolVersion instead */ vaultVersion: Scalars['Int']['output']; version: Scalars['Int']['output']; + /** @deprecated Removed without replacement */ withdrawConfig: GqlPoolWithdrawConfig; }; @@ -509,6 +676,7 @@ export type GqlPoolGyro = GqlPoolBase & { alpha: Scalars['String']['output']; beta: Scalars['String']['output']; c: Scalars['String']['output']; + categories?: Maybe>>; chain: GqlChain; createTime: Scalars['Int']['output']; dSq: Scalars['String']['output']; @@ -517,30 +685,39 @@ export type GqlPoolGyro = GqlPoolBase & { dynamicData: GqlPoolDynamicData; factory?: Maybe; id: Scalars['ID']['output']; + /** @deprecated Removed without replacement */ investConfig: GqlPoolInvestConfig; lambda: Scalars['String']['output']; name: Scalars['String']['output']; nestingType: GqlPoolNestingType; owner: Scalars['Bytes']['output']; poolTokens: Array; + protocolVersion: Scalars['Int']['output']; root3Alpha: Scalars['String']['output']; s: Scalars['String']['output']; sqrtAlpha: Scalars['String']['output']; sqrtBeta: Scalars['String']['output']; staking?: Maybe; symbol: Scalars['String']['output']; + tags?: Maybe>>; tauAlphaX: Scalars['String']['output']; tauAlphaY: Scalars['String']['output']; tauBetaX: Scalars['String']['output']; tauBetaY: Scalars['String']['output']; + /** + * All tokens of the pool. If it is a nested pool, the nested pool is expanded with its own tokens again. + * @deprecated Use poolTokens instead + */ tokens: Array; type: GqlPoolType; u: Scalars['String']['output']; userBalance?: Maybe; v: Scalars['String']['output']; + /** @deprecated use protocolVersion instead */ vaultVersion: Scalars['Int']['output']; version: Scalars['Int']['output']; w: Scalars['String']['output']; + /** @deprecated Removed without replacement */ withdrawConfig: GqlPoolWithdrawConfig; z: Scalars['String']['output']; }; @@ -592,6 +769,7 @@ export type GqlPoolLiquidityBootstrapping = GqlPoolBase & { __typename?: 'GqlPoolLiquidityBootstrapping'; address: Scalars['Bytes']['output']; allTokens: Array; + categories?: Maybe>>; chain: GqlChain; createTime: Scalars['Int']['output']; decimals: Scalars['Int']['output']; @@ -599,18 +777,27 @@ export type GqlPoolLiquidityBootstrapping = GqlPoolBase & { dynamicData: GqlPoolDynamicData; factory?: Maybe; id: Scalars['ID']['output']; + /** @deprecated Removed without replacement */ investConfig: GqlPoolInvestConfig; name: Scalars['String']['output']; nestingType: GqlPoolNestingType; owner: Scalars['Bytes']['output']; poolTokens: Array; + protocolVersion: Scalars['Int']['output']; staking?: Maybe; symbol: Scalars['String']['output']; + tags?: Maybe>>; + /** + * All tokens of the pool. If it is a nested pool, the nested pool is expanded with its own tokens again. + * @deprecated Use poolTokens instead + */ tokens: Array; type: GqlPoolType; userBalance?: Maybe; + /** @deprecated use protocolVersion instead */ vaultVersion: Scalars['Int']['output']; version: Scalars['Int']['output']; + /** @deprecated Removed without replacement */ withdrawConfig: GqlPoolWithdrawConfig; }; @@ -619,6 +806,7 @@ export type GqlPoolMetaStable = GqlPoolBase & { address: Scalars['Bytes']['output']; allTokens: Array; amp: Scalars['BigInt']['output']; + categories?: Maybe>>; chain: GqlChain; createTime: Scalars['Int']['output']; decimals: Scalars['Int']['output']; @@ -626,17 +814,23 @@ export type GqlPoolMetaStable = GqlPoolBase & { dynamicData: GqlPoolDynamicData; factory?: Maybe; id: Scalars['ID']['output']; + /** @deprecated Removed without replacement */ investConfig: GqlPoolInvestConfig; name: Scalars['String']['output']; owner: Scalars['Bytes']['output']; poolTokens: Array; + protocolVersion: Scalars['Int']['output']; staking?: Maybe; symbol: Scalars['String']['output']; + tags?: Maybe>>; + /** @deprecated Use poolTokens instead */ tokens: Array; type: GqlPoolType; userBalance?: Maybe; + /** @deprecated use protocolVersion instead */ vaultVersion: Scalars['Int']['output']; version: Scalars['Int']['output']; + /** @deprecated Removed without replacement */ withdrawConfig: GqlPoolWithdrawConfig; }; @@ -647,38 +841,66 @@ export type GqlPoolMinimal = { address: Scalars['Bytes']['output']; /** Returns all pool tokens, including any nested tokens and phantom BPTs */ allTokens: Array; + /** List of categories assigned by the team based on external factors */ + categories?: Maybe>>; /** The chain on which the pool is deployed */ chain: GqlChain; /** The timestamp the pool was created. */ createTime: Scalars['Int']['output']; /** The decimals of the BPT, usually 18 */ decimals: Scalars['Int']['output']; - /** Only returns main tokens, also known as leave tokens. Wont return any nested BPTs. Used for displaying the tokens that the pool consists of. */ + /** Only returns main or underlying tokens, also known as leave tokens. Wont return any nested BPTs. Used for displaying the tokens that the pool consists of. */ displayTokens: Array; /** Dynamic data such as token balances, swap fees or volume */ dynamicData: GqlPoolDynamicData; /** The factory contract address from which the pool was created. */ factory?: Maybe; - /** The pool id. This is equal to the address for vaultVersion 3 pools */ + /** Whether at least one token in this pool is considered an ERC4626 token. */ + hasErc4626: Scalars['Boolean']['output']; + /** Hook assigned to a pool */ + hook?: Maybe; + /** The pool id. This is equal to the address for protocolVersion 3 pools */ id: Scalars['ID']['output']; + /** Pool is receiving rewards when liquidity tokens are staked */ + incentivized: Scalars['Boolean']['output']; /** The name of the pool as per contract */ name: Scalars['String']['output']; /** The wallet address of the owner of the pool. Pool owners can set certain properties like swapFees or AMP. */ owner?: Maybe; + /** The protocol version on which the pool is deployed, 1, 2 or 3 */ + protocolVersion: Scalars['Int']['output']; /** Staking options of this pool which emit additional rewards */ staking?: Maybe; /** The token symbol of the pool as per contract */ symbol: Scalars['String']['output']; + /** List of tags assigned by the team based on external factors */ + tags?: Maybe>>; /** The pool type, such as weighted, stable, etc. */ type: GqlPoolType; /** If a user address was provided in the query, the user balance is populated here */ userBalance?: Maybe; - /** The vault version on which the pool is deployed, 2 or 3 */ + /** + * The vault version on which the pool is deployed, 2 or 3 + * @deprecated use protocolVersion instead + */ vaultVersion: Scalars['Int']['output']; /** The version of the pool type. */ version: Scalars['Int']['output']; }; +/** Result of the poolReloadPools mutation */ +export type GqlPoolMutationResult = { + __typename?: 'GqlPoolMutationResult'; + /** The chain that was reloaded. */ + chain: GqlChain; + /** The error message */ + error?: Maybe; + /** Whether it was successful or not. */ + success: Scalars['Boolean']['output']; + /** The type of pools that were reloaded. */ + type: Scalars['String']['output']; +}; + export type GqlPoolNestedUnion = GqlPoolComposableStableNested; export type GqlPoolNestingType = @@ -710,10 +932,12 @@ export type GqlPoolSnapshot = { id: Scalars['ID']['output']; poolId: Scalars['String']['output']; sharePrice: Scalars['String']['output']; + surplus24h: Scalars['String']['output']; swapsCount: Scalars['String']['output']; timestamp: Scalars['Int']['output']; totalLiquidity: Scalars['String']['output']; totalShares: Scalars['String']['output']; + totalSurplus: Scalars['String']['output']; totalSwapFee: Scalars['String']['output']; totalSwapVolume: Scalars['String']['output']; volume24h: Scalars['String']['output']; @@ -732,6 +956,7 @@ export type GqlPoolStable = GqlPoolBase & { address: Scalars['Bytes']['output']; allTokens: Array; amp: Scalars['BigInt']['output']; + categories?: Maybe>>; chain: GqlChain; createTime: Scalars['Int']['output']; decimals: Scalars['Int']['output']; @@ -739,17 +964,23 @@ export type GqlPoolStable = GqlPoolBase & { dynamicData: GqlPoolDynamicData; factory?: Maybe; id: Scalars['ID']['output']; + /** @deprecated Removed without replacement */ investConfig: GqlPoolInvestConfig; name: Scalars['String']['output']; owner: Scalars['Bytes']['output']; poolTokens: Array; + protocolVersion: Scalars['Int']['output']; staking?: Maybe; symbol: Scalars['String']['output']; + tags?: Maybe>>; + /** @deprecated Use poolTokens instead */ tokens: Array; type: GqlPoolType; userBalance?: Maybe; + /** @deprecated use protocolVersion instead */ vaultVersion: Scalars['Int']['output']; version: Scalars['Int']['output']; + /** @deprecated Removed without replacement */ withdrawConfig: GqlPoolWithdrawConfig; }; @@ -766,12 +997,23 @@ export type GqlPoolStableComposablePoolData = { export type GqlPoolStaking = { __typename?: 'GqlPoolStaking'; address: Scalars['String']['output']; + aura?: Maybe; chain: GqlChain; farm?: Maybe; gauge?: Maybe; id: Scalars['ID']['output']; reliquary?: Maybe; type: GqlPoolStakingType; + vebal?: Maybe; +}; + +export type GqlPoolStakingAura = { + __typename?: 'GqlPoolStakingAura'; + apr: Scalars['Float']['output']; + auraPoolAddress: Scalars['String']['output']; + auraPoolId: Scalars['String']['output']; + id: Scalars['ID']['output']; + isShutdown: Scalars['Boolean']['output']; }; export type GqlPoolStakingFarmRewarder = { @@ -842,12 +1084,20 @@ export type GqlPoolStakingReliquaryFarmLevel = { }; export type GqlPoolStakingType = + | 'AURA' | 'FRESH_BEETS' | 'GAUGE' | 'MASTER_CHEF' | 'RELIQUARY' + | 'VEBAL' | '%future added value'; +export type GqlPoolStakingVebal = { + __typename?: 'GqlPoolStakingVebal'; + id: Scalars['ID']['output']; + vebalAddress: Scalars['String']['output']; +}; + export type GqlPoolSwap = { __typename?: 'GqlPoolSwap'; chain: GqlChain; @@ -863,21 +1113,75 @@ export type GqlPoolSwap = { valueUSD: Scalars['Float']['output']; }; +/** Represents an event that occurs when a swap is made in a pool using the CowAmm protocol. */ +export type GqlPoolSwapEventCowAmm = GqlPoolEvent & { + __typename?: 'GqlPoolSwapEventCowAmm'; + /** The block number of the event. */ + blockNumber: Scalars['Int']['output']; + /** The block timestamp of the event. */ + blockTimestamp: Scalars['Int']['output']; + /** The chain on which the event occurred. */ + chain: GqlChain; + /** The fee that this swap generated. */ + fee: GqlPoolEventAmount; + /** The unique identifier of the event. */ + id: Scalars['ID']['output']; + /** The log index of the event. */ + logIndex: Scalars['Int']['output']; + /** The pool ID associated with the event. */ + poolId: Scalars['String']['output']; + /** The sender of the event. */ + sender: Scalars['String']['output']; + /** The surplus generated by the swap. */ + surplus: GqlPoolEventAmount; + /** The timestamp of the event. */ + timestamp: Scalars['Int']['output']; + /** The token that was swapped in the event. */ + tokenIn: GqlPoolEventAmount; + /** The token that was swapped out in the event. */ + tokenOut: GqlPoolEventAmount; + /** The transaction hash of the event. */ + tx: Scalars['String']['output']; + /** The type of the event. */ + type: GqlPoolEventType; + /** The user address associated with the event. */ + userAddress: Scalars['String']['output']; + /** The value of the event in USD. */ + valueUSD: Scalars['Float']['output']; +}; + +/** Represents an event that occurs when a swap is made in a pool. */ export type GqlPoolSwapEventV3 = GqlPoolEvent & { __typename?: 'GqlPoolSwapEventV3'; + /** The block number of the event. */ blockNumber: Scalars['Int']['output']; + /** The block timestamp of the event. */ blockTimestamp: Scalars['Int']['output']; + /** The chain on which the event occurred. */ chain: GqlChain; + /** The fee that this swap generated. */ + fee: GqlPoolEventAmount; + /** The unique identifier of the event. */ id: Scalars['ID']['output']; + /** The log index of the event. */ logIndex: Scalars['Int']['output']; + /** The pool ID associated with the event. */ poolId: Scalars['String']['output']; + /** The sender of the event. */ sender: Scalars['String']['output']; + /** The timestamp of the event. */ timestamp: Scalars['Int']['output']; + /** The token that was swapped in the event. */ tokenIn: GqlPoolEventAmount; + /** The token that was swapped out in the event. */ tokenOut: GqlPoolEventAmount; + /** The transaction hash of the event. */ tx: Scalars['String']['output']; + /** The type of the event. */ type: GqlPoolEventType; + /** The user address associated with the event. */ userAddress: Scalars['String']['output']; + /** The value of the event in USD. */ valueUSD: Scalars['Float']['output']; }; @@ -940,19 +1244,45 @@ export type GqlPoolTokenComposableStable = GqlPoolTokenBase & { export type GqlPoolTokenComposableStableNestedUnion = GqlPoolToken; +/** + * All info on the pool token. It will also include the nested pool if the token is a BPT. It will only support 1 level of nesting. + * A second (unsupported) level of nesting is shown by having hasNestedPool = true but nestedPool = null. + */ export type GqlPoolTokenDetail = { __typename?: 'GqlPoolTokenDetail'; + /** Address of the pool token. */ address: Scalars['String']['output']; + /** Balance of the pool token inside the pool. */ balance: Scalars['BigDecimal']['output']; + /** USD Balance of the pool token. */ + balanceUSD: Scalars['BigDecimal']['output']; + /** Decimals of the pool token. */ decimals: Scalars['Int']['output']; + /** Indicates whether this token is a BPT and therefor has a nested pool. */ hasNestedPool: Scalars['Boolean']['output']; + /** Id of the token. A combination of pool id and token address. */ id: Scalars['ID']['output']; + /** Index of the pool token in the pool as returned by the vault. */ index: Scalars['Int']['output']; + /** Whether the token is in the allow list. */ + isAllowed: Scalars['Boolean']['output']; + /** Whether the token is considered an ERC4626 token. */ + isErc4626: Scalars['Boolean']['output']; + /** Name of the pool token. */ name: Scalars['String']['output']; + /** Additional data for the nested pool if the token is a BPT. Null otherwise. */ nestedPool?: Maybe; + /** If it is an appreciating token, it shows the current price rate. 1 otherwise. */ priceRate: Scalars['BigDecimal']['output']; + /** The address of the price rate provider. */ priceRateProvider?: Maybe; + /** Additional data for the price rate provider, such as reviews or warnings. */ + priceRateProviderData?: Maybe; + /** Symbol of the pool token. */ symbol: Scalars['String']['output']; + /** If it is an Erc4262, this will be the underlying token if present in the API. */ + underlyingToken?: Maybe; + /** The weight of the token in the pool if it is a weighted pool, null otherwise */ weight?: Maybe; }; @@ -971,6 +1301,7 @@ export type GqlPoolTokenExpanded = { address: Scalars['String']['output']; decimals: Scalars['Int']['output']; id: Scalars['ID']['output']; + isErc4626: Scalars['Boolean']['output']; isMainToken: Scalars['Boolean']['output']; isNested: Scalars['Boolean']['output']; isPhantomBpt: Scalars['Boolean']['output']; @@ -984,6 +1315,7 @@ export type GqlPoolTokenUnion = GqlPoolToken | GqlPoolTokenComposableStable; /** Supported pool types */ export type GqlPoolType = | 'COMPOSABLE_STABLE' + | 'COW_AMM' | 'ELEMENT' | 'FX' | 'GYRO' @@ -1003,10 +1335,8 @@ export type GqlPoolUnion = GqlPoolComposableStable | GqlPoolElement | GqlPoolFx /** If a user address was provided in the query, the user balance is populated here */ export type GqlPoolUserBalance = { __typename?: 'GqlPoolUserBalance'; - /** The staked balance in either a gauge or farm as float. */ - stakedBalance: Scalars['AmountHumanReadable']['output']; - /** The staked balance in either a gauge or farm in USD as float. */ - stakedBalanceUsd: Scalars['Float']['output']; + /** The staked BPT balances of the user. */ + stakedBalances: Array; /** Total balance (wallet + staked) as float */ totalBalance: Scalars['AmountHumanReadable']['output']; /** Total balance (wallet + staked) in USD as float */ @@ -1027,6 +1357,7 @@ export type GqlPoolWeighted = GqlPoolBase & { __typename?: 'GqlPoolWeighted'; address: Scalars['Bytes']['output']; allTokens: Array; + categories?: Maybe>>; chain: GqlChain; createTime: Scalars['Int']['output']; decimals: Scalars['Int']['output']; @@ -1034,19 +1365,27 @@ export type GqlPoolWeighted = GqlPoolBase & { dynamicData: GqlPoolDynamicData; factory?: Maybe; id: Scalars['ID']['output']; + /** @deprecated Removed without replacement */ investConfig: GqlPoolInvestConfig; name: Scalars['String']['output']; nestingType: GqlPoolNestingType; owner: Scalars['Bytes']['output']; poolTokens: Array; + protocolVersion: Scalars['Int']['output']; staking?: Maybe; symbol: Scalars['String']['output']; - /** All tokens of the pool. If it is a nested pool, the nested pool is expanded with its own tokens again. */ + tags?: Maybe>>; + /** + * All tokens of the pool. If it is a nested pool, the nested pool is expanded with its own tokens again. + * @deprecated Use poolTokens instead + */ tokens: Array; type: GqlPoolType; userBalance?: Maybe; + /** @deprecated use protocolVersion instead */ vaultVersion: Scalars['Int']['output']; version: Scalars['Int']['output']; + /** @deprecated Removed without replacement */ withdrawConfig: GqlPoolWithdrawConfig; }; @@ -1073,6 +1412,36 @@ export type GqlPriceImpact = { priceImpact?: Maybe; }; +/** Represents the data of a price rate provider */ +export type GqlPriceRateProviderData = { + __typename?: 'GqlPriceRateProviderData'; + /** The address of the price rate provider */ + address: Scalars['String']['output']; + /** The factory used to create the price rate provider, if applicable */ + factory?: Maybe; + /** The name of the price rate provider */ + name?: Maybe; + /** The filename of the review of the price rate provider */ + reviewFile?: Maybe; + /** Indicates if the price rate provider has been reviewed */ + reviewed: Scalars['Boolean']['output']; + /** A summary of the price rate provider, usually just says safe or unsafe */ + summary?: Maybe; + /** Upgradeable components of the price rate provider */ + upgradeableComponents?: Maybe>>; + /** Warnings associated with the price rate provider */ + warnings?: Maybe>; +}; + +/** Represents an upgradeable component of a price rate provider */ +export type GqlPriceRateProviderUpgradeableComponent = { + __typename?: 'GqlPriceRateProviderUpgradeableComponent'; + /** The entry point / proxy of the upgradeable component */ + entryPoint: Scalars['String']['output']; + /** Indicates if the implementation of the component has been reviewed */ + implementationReviewed: Scalars['String']['output']; +}; + export type GqlProtocolMetricsAggregated = { __typename?: 'GqlProtocolMetricsAggregated'; chains: Array; @@ -1252,6 +1621,8 @@ export type GqlSorGetSwapPaths = { paths: Array; /** Price impact of the path */ priceImpact: GqlPriceImpact; + /** The version of the protocol these paths are from */ + protocolVersion: Scalars['Int']['output']; /** The return amount in human form. Return amount is either tokenOutAmount (if swapType is exactIn) or tokenInAmount (if swapType is exactOut) */ returnAmount: Scalars['AmountHumanReadable']['output']; /** The return amount in a raw form */ @@ -1276,7 +1647,10 @@ export type GqlSorGetSwapPaths = { tokenOut: Scalars['String']['output']; /** The amount of tokenOut in human form */ tokenOutAmount: Scalars['AmountHumanReadable']['output']; - /** The version of the vault these paths are from */ + /** + * The version of the vault these paths are from + * @deprecated Use protocolVersion instead + */ vaultVersion: Scalars['Int']['output']; }; @@ -1308,13 +1682,20 @@ export type GqlSorPath = { __typename?: 'GqlSorPath'; /** Input amount of this path in scaled form */ inputAmountRaw: Scalars['String']['output']; + /** A sorted list of booleans that indicate if the respective pool is a buffer */ + isBuffer: Array>; /** Output amount of this path in scaled form */ outputAmountRaw: Scalars['String']['output']; /** A sorted list of pool ids that are used in this path */ pools: Array>; + /** The version of the protocol these paths are from */ + protocolVersion: Scalars['Int']['output']; /** A sorted list of tokens that are ussed in this path */ tokens: Array>; - /** Vault version of this path. */ + /** + * Vault version of this path. + * @deprecated Use protocolVersion instead + */ vaultVersion: Scalars['Int']['output']; }; @@ -1391,21 +1772,44 @@ export type GqlSwapCallDataInput = { slippagePercentage: Scalars['String']['input']; }; +/** Represents a token */ export type GqlToken = { __typename?: 'GqlToken'; + /** The address of the token */ address: Scalars['String']['output']; + /** The chain of the token */ chain: GqlChain; + /** The chain ID of the token */ chainId: Scalars['Int']['output']; + /** The coingecko ID for this token, if present */ + coingeckoId?: Maybe; + /** The number of decimal places for the token */ decimals: Scalars['Int']['output']; + /** The description of the token */ description?: Maybe; + /** The Discord URL of the token */ discordUrl?: Maybe; + /** Whether the token is considered an ERC4626 token. */ + isErc4626: Scalars['Boolean']['output']; + /** The logo URI of the token */ logoURI?: Maybe; + /** The name of the token */ name: Scalars['String']['output']; + /** The rate provider data for the token */ + priceRateProviderData?: Maybe; + /** The priority of the token, can be used for sorting. */ priority: Scalars['Int']['output']; + /** The rate provider data for the token */ + rateProviderData?: Maybe; + /** The symbol of the token */ symbol: Scalars['String']['output']; + /** The Telegram URL of the token */ telegramUrl?: Maybe; + /** Indicates if the token is tradable */ tradable: Scalars['Boolean']['output']; + /** The Twitter username of the token */ twitterUsername?: Maybe; + /** The website URL of the token */ websiteUrl?: Maybe; }; @@ -1443,25 +1847,52 @@ export type GqlTokenData = { websiteUrl?: Maybe; }; +/** Represents additional data for a token */ export type GqlTokenDynamicData = { __typename?: 'GqlTokenDynamicData'; + /** The all-time high price of the token */ ath: Scalars['Float']['output']; + /** The all-time low price of the token */ atl: Scalars['Float']['output']; + /** The fully diluted valuation of the token */ fdv?: Maybe; + /** The highest price in the last 24 hours */ high24h: Scalars['Float']['output']; + /** The unique identifier of the dynamic data */ id: Scalars['String']['output']; + /** The lowest price in the last 24 hours */ low24h: Scalars['Float']['output']; + /** The market capitalization of the token */ marketCap?: Maybe; + /** The current price of the token */ price: Scalars['Float']['output']; + /** The price change in the last 24 hours */ priceChange24h: Scalars['Float']['output']; + /** The percentage price change in the last 7 days */ priceChangePercent7d?: Maybe; + /** The percentage price change in the last 14 days */ priceChangePercent14d?: Maybe; + /** The percentage price change in the last 24 hours */ priceChangePercent24h: Scalars['Float']['output']; + /** The percentage price change in the last 30 days */ priceChangePercent30d?: Maybe; + /** The address of the token */ tokenAddress: Scalars['String']['output']; + /** The timestamp when the data was last updated */ updatedAt: Scalars['String']['output']; }; +/** Result of the poolReloadPools mutation */ +export type GqlTokenMutationResult = { + __typename?: 'GqlTokenMutationResult'; + /** The chain that was reloaded. */ + chain: GqlChain; + /** The error message */ + error?: Maybe; + /** Whether it was successful or not. */ + success: Scalars['Boolean']['output']; +}; + export type GqlTokenPrice = { __typename?: 'GqlTokenPrice'; address: Scalars['String']['output']; @@ -1503,46 +1934,119 @@ export type GqlUserPoolBalance = { walletBalance: Scalars['AmountHumanReadable']['output']; }; +export type GqlUserStakedBalance = { + __typename?: 'GqlUserStakedBalance'; + /** The staked BPT balance as float. */ + balance: Scalars['AmountHumanReadable']['output']; + /** The steaked BPT balance in USD as float. */ + balanceUsd: Scalars['Float']['output']; + /** The id of the staking to match with GqlPoolStaking.id. */ + stakingId: Scalars['String']['output']; + /** The staking type (Gauge, farm, aura, etc.) in which this balance is staked. */ + stakingType: GqlPoolStakingType; +}; + export type GqlUserSwapVolumeFilter = { poolIdIn?: InputMaybe>; tokenInIn?: InputMaybe>; tokenOutIn?: InputMaybe>; }; +export type GqlVeBalBalance = { + __typename?: 'GqlVeBalBalance'; + balance: Scalars['AmountHumanReadable']['output']; + chain: GqlChain; + locked: Scalars['AmountHumanReadable']['output']; + lockedUsd: Scalars['AmountHumanReadable']['output']; +}; + export type GqlVeBalUserData = { __typename?: 'GqlVeBalUserData'; balance: Scalars['AmountHumanReadable']['output']; + locked: Scalars['AmountHumanReadable']['output']; + lockedUsd: Scalars['AmountHumanReadable']['output']; rank?: Maybe; }; +/** The Gauge that can be voted on through veBAL and that will ultimately receive the rewards. */ export type GqlVotingGauge = { __typename?: 'GqlVotingGauge'; + /** The timestamp the gauge was added. */ addedTimestamp?: Maybe; + /** The address of the root gauge on Ethereum mainnet. */ address: Scalars['Bytes']['output']; + /** The address of the child gauge on the specific chain. */ childGaugeAddress?: Maybe; + /** Whether the gauge is killed or not. */ isKilled: Scalars['Boolean']['output']; + /** The relative weight the gauge received this epoch (not more than 1.0). */ + relativeWeight: Scalars['String']['output']; + /** The relative weight cap. 1.0 for uncapped. */ relativeWeightCap?: Maybe; }; +/** A token inside of a pool with a voting gauge. */ export type GqlVotingGaugeToken = { __typename?: 'GqlVotingGaugeToken'; + /** The address of the token. */ address: Scalars['String']['output']; + /** The URL to the token logo. */ logoURI: Scalars['String']['output']; + /** The symbol of the token. */ symbol: Scalars['String']['output']; + /** If it is a weighted pool, the weigh of the token is shown here in %. 0.5 = 50%. */ weight?: Maybe; }; +/** The pool that can be voted on through veBAL */ export type GqlVotingPool = { __typename?: 'GqlVotingPool'; + /** The address of the pool. */ address: Scalars['Bytes']['output']; + /** The chain this pool is on. */ chain: GqlChain; + /** The gauge that is connected to the pool and that will receive the rewards. */ gauge: GqlVotingGauge; + /** Pool ID */ id: Scalars['ID']['output']; + /** The symbol of the pool. */ symbol: Scalars['String']['output']; + /** The tokens inside the pool. */ tokens: Array; + /** The type of the pool. */ type: GqlPoolType; }; +/** Hook data */ +export type Hook = { + __typename?: 'Hook'; + address: Scalars['String']['output']; + chain: GqlChain; + /** Data points changing over time */ + dynamicData?: Maybe; + /** True when hook can change the amounts send to the vault. Necessary to deduct the fees. */ + enableHookAdjustedAmounts: Scalars['Boolean']['output']; + /** List of pools using the hook */ + poolsIds?: Maybe>>; + shouldCallAfterAddLiquidity: Scalars['Boolean']['output']; + shouldCallAfterInitialize: Scalars['Boolean']['output']; + shouldCallAfterRemoveLiquidity: Scalars['Boolean']['output']; + shouldCallAfterSwap: Scalars['Boolean']['output']; + shouldCallBeforeAddLiquidity: Scalars['Boolean']['output']; + shouldCallBeforeInitialize: Scalars['Boolean']['output']; + shouldCallBeforeRemoveLiquidity: Scalars['Boolean']['output']; + shouldCallBeforeSwap: Scalars['Boolean']['output']; + shouldCallComputeDynamicSwapFee: Scalars['Boolean']['output']; +}; + +/** Collection of hook specific data. Percentage format is 0.01 -> 0.01%. */ +export type HookData = { + __typename?: 'HookData'; + addLiquidityFeePercentage?: Maybe; + removeLiquidityFeePercentage?: Maybe; + swapFeePercentage?: Maybe; +}; + export type Mutation = { __typename?: 'Mutation'; beetsPoolLoadReliquarySnapshotsForAllFarms: Scalars['String']['output']; @@ -1559,7 +2063,9 @@ export type Mutation = { poolLoadSnapshotsForPools: Scalars['String']['output']; poolReloadAllPoolAprs: Scalars['String']['output']; poolReloadAllTokenNestedPoolIds: Scalars['String']['output']; + poolReloadPools: Array; poolReloadStakingForAllPools: Scalars['String']['output']; + poolSyncAllCowSnapshots: Array; poolSyncAllPoolsFromSubgraph: Array; poolSyncLatestSnapshotsForAllPools: Scalars['String']['output']; poolSyncNewPoolsFromSubgraph: Array; @@ -1579,6 +2085,7 @@ export type Mutation = { sftmxSyncWithdrawalRequests: Scalars['String']['output']; tokenDeleteTokenType: Scalars['String']['output']; tokenReloadAllTokenTypes: Scalars['String']['output']; + tokenReloadErc4626Tokens: Array; tokenReloadTokenPrices?: Maybe; tokenSyncLatestFxPrices: Scalars['String']['output']; tokenSyncTokenDefinitions: Scalars['String']['output']; @@ -1625,13 +2132,23 @@ export type MutationPoolReloadAllPoolAprsArgs = { }; +export type MutationPoolReloadPoolsArgs = { + chains: Array; +}; + + export type MutationPoolReloadStakingForAllPoolsArgs = { stakingTypes: Array; }; +export type MutationPoolSyncAllCowSnapshotsArgs = { + chains: Array; +}; + + export type MutationPoolSyncLatestSnapshotsForAllPoolsArgs = { - daysToSync?: InputMaybe; + chain: GqlChain; }; @@ -1651,6 +2168,11 @@ export type MutationTokenDeleteTokenTypeArgs = { }; +export type MutationTokenReloadErc4626TokensArgs = { + chains: Array; +}; + + export type MutationTokenReloadTokenPricesArgs = { chains: Array; }; @@ -1684,18 +2206,29 @@ export type Query = { blocksGetBlocksPerSecond: Scalars['Float']['output']; blocksGetBlocksPerYear: Scalars['Float']['output']; contentGetNewsItems: Array; + /** Returns list of hooks. */ + hooks?: Maybe>; latestSyncedBlocks: GqlLatestSyncedBlocks; /** Getting swap, add and remove events with paging */ poolEvents: Array; - /** Will de deprecated in favor of poolEvents */ + /** + * Will de deprecated in favor of poolEvents + * @deprecated Use poolEvents instead + */ poolGetBatchSwaps: Array; /** Getting swap, add and remove events with range */ poolGetEvents: Array; - /** Will de deprecated in favor of poolGetFeaturedPools */ + /** + * Will de deprecated in favor of poolGetFeaturedPools + * @deprecated Use poolGetFeaturedPools instead + */ poolGetFeaturedPoolGroups: Array; /** Returns the list of featured pools for chains */ poolGetFeaturedPools: Array; - /** Will de deprecated in favor of poolEvents */ + /** + * Will de deprecated in favor of poolEvents + * @deprecated Use poolEvents instead + */ poolGetJoinExits: Array; /** Returns one pool. If a user address is provided, the user balances for the given pool will also be returned. */ poolGetPool: GqlPoolBase; @@ -1705,7 +2238,10 @@ export type Query = { poolGetPoolsCount: Scalars['Int']['output']; /** Gets all the snapshots for a given pool on a chain for a certain range */ poolGetSnapshots: Array; - /** Will de deprecated in favor of poolEvents */ + /** + * Will de deprecated in favor of poolEvents + * @deprecated Use poolEvents instead + */ poolGetSwaps: Array; protocolMetricsAggregated: GqlProtocolMetricsAggregated; protocolMetricsChain: GqlProtocolMetricsChain; @@ -1719,16 +2255,42 @@ export type Query = { sorGetSwapPaths: GqlSorGetSwapPaths; /** Get swap quote from the SOR, queries both the old and new SOR */ sorGetSwaps: GqlSorGetSwapsResponse; + /** + * Returns the candlestick chart data for a token for a given range. + * @deprecated Use tokenGetHistoricalPrices instead + */ tokenGetCandlestickChartData: Array; + /** Returns all current prices for allowed tokens for a given chain or chains */ tokenGetCurrentPrices: Array; + /** Returns the historical prices for a given set of tokens for a given chain and range */ tokenGetHistoricalPrices: Array; + /** + * DEPRECATED: Returns pricing data for a given token for a given range + * @deprecated Use tokenGetHistoricalPrices instead + */ tokenGetPriceChartData: Array; + /** + * Returns the price of either BAL or BEETS depending on chain + * @deprecated Use tokenGetTokensDynamicData instead + */ tokenGetProtocolTokenPrice: Scalars['AmountHumanReadable']['output']; + /** Returns the price of a token priced in another token for a given range. */ tokenGetRelativePriceChartData: Array; + /** + * Returns meta data for a given token such as description, website, etc. + * @deprecated Use tokenGetTokens instead + */ tokenGetTokenData?: Maybe; + /** Returns dynamic data of a token such as price, market cap, etc. */ tokenGetTokenDynamicData?: Maybe; + /** Returns all allowed tokens for a given chain or chains */ tokenGetTokens: Array; + /** + * Returns meta data for a given set of tokens such as description, website, etc. + * @deprecated Use tokenGetTokens instead + */ tokenGetTokensData: Array; + /** Returns dynamic data of a set of tokens such as price, market cap, etc. */ tokenGetTokensDynamicData: Array; userGetFbeetsBalance: GqlUserFbeetsBalance; userGetPoolBalances: Array; @@ -1740,6 +2302,8 @@ export type Query = { veBalGetTotalSupply: Scalars['AmountHumanReadable']['output']; veBalGetUser: GqlVeBalUserData; veBalGetUserBalance: Scalars['AmountHumanReadable']['output']; + veBalGetUserBalances: Array; + /** Returns all pools with veBAL gauges that can be voted on. */ veBalGetVotingList: Array; }; @@ -1755,10 +2319,15 @@ export type QueryContentGetNewsItemsArgs = { }; +export type QueryHooksArgs = { + chain?: InputMaybe; +}; + + export type QueryPoolEventsArgs = { first?: InputMaybe; skip?: InputMaybe; - where: GqlPoolEventsFilter; + where?: InputMaybe; }; @@ -1864,7 +2433,7 @@ export type QuerySorGetSwapPathsArgs = { swapType: GqlSorSwapType; tokenIn: Scalars['String']['input']; tokenOut: Scalars['String']['input']; - useVaultVersion?: InputMaybe; + useProtocolVersion?: InputMaybe; }; @@ -1974,6 +2543,29 @@ export type QueryUserGetSwapsArgs = { skip?: InputMaybe; }; + +export type QueryVeBalGetTotalSupplyArgs = { + chain?: InputMaybe; +}; + + +export type QueryVeBalGetUserArgs = { + address: Scalars['String']['input']; + chain?: InputMaybe; +}; + + +export type QueryVeBalGetUserBalanceArgs = { + address?: InputMaybe; + chain?: InputMaybe; +}; + + +export type QueryVeBalGetUserBalancesArgs = { + address: Scalars['String']['input']; + chains?: InputMaybe>; +}; + export type Token = { __typename?: 'Token'; address: Scalars['String']['output']; diff --git a/packages/gql/src/balancer-api-v3/__generated__/Goerli.server.ts b/packages/gql/src/balancer-api-v3/__generated__/Goerli.server.ts index 5df748271..3527d6e6a 100644 --- a/packages/gql/src/balancer-api-v3/__generated__/Goerli.server.ts +++ b/packages/gql/src/balancer-api-v3/__generated__/Goerli.server.ts @@ -44,8 +44,10 @@ export type GqlChain = | 'AVALANCHE' | 'BASE' | 'FANTOM' + | 'FRAXTAL' | 'GNOSIS' | 'MAINNET' + | 'MODE' | 'OPTIMISM' | 'POLYGON' | 'SEPOLIA' @@ -128,41 +130,73 @@ export type GqlLatestSyncedBlocks = { userWalletSyncBlock: Scalars['BigInt']['output']; }; +/** All info on the nested pool if the token is a BPT. It will only support 1 level of nesting. */ export type GqlNestedPool = { __typename?: 'GqlNestedPool'; + /** Address of the pool. */ address: Scalars['Bytes']['output']; + /** Price rate of the Balancer Pool Token (BPT). */ bptPriceRate: Scalars['BigDecimal']['output']; + /** Timestamp of when the pool was created. */ createTime: Scalars['Int']['output']; + /** Address of the factory contract that created the pool, if applicable. */ factory?: Maybe; + /** Unique identifier of the pool. */ id: Scalars['ID']['output']; + /** Name of the pool. */ name: Scalars['String']['output']; + /** Total liquidity of the parent pool in the nested pool in USD. */ nestedLiquidity: Scalars['BigDecimal']['output']; + /** Percentage of the parents pool shares inside the nested pool. */ nestedPercentage: Scalars['BigDecimal']['output']; + /** Number of shares of the parent pool in the nested pool. */ nestedShares: Scalars['BigDecimal']['output']; + /** Address of the pool's owner. */ owner: Scalars['Bytes']['output']; + /** Fee charged for swapping tokens in the pool as %. 0.01 -> 0.01% */ swapFee: Scalars['BigDecimal']['output']; + /** Symbol of the pool. */ symbol: Scalars['String']['output']; + /** List of all tokens in the pool. */ tokens: Array; + /** Total liquidity in the pool in USD. */ totalLiquidity: Scalars['BigDecimal']['output']; + /** Total number of shares in the pool. */ totalShares: Scalars['BigDecimal']['output']; + /** Type of the pool. */ type: GqlPoolType; + /** Version of the pool. */ version: Scalars['Int']['output']; }; +/** Represents an event that occurs when liquidity is added or removed from a pool. */ export type GqlPoolAddRemoveEventV3 = GqlPoolEvent & { __typename?: 'GqlPoolAddRemoveEventV3'; + /** The block number of the event. */ blockNumber: Scalars['Int']['output']; + /** The block timestamp of the event. */ blockTimestamp: Scalars['Int']['output']; + /** The chain on which the event occurred. */ chain: GqlChain; + /** The unique identifier of the event. */ id: Scalars['ID']['output']; + /** The log index of the event. */ logIndex: Scalars['Int']['output']; + /** The pool ID associated with the event. */ poolId: Scalars['String']['output']; + /** The sender of the event. */ sender: Scalars['String']['output']; + /** The timestamp of the event. */ timestamp: Scalars['Int']['output']; + /** The tokens involved in the event. Ordered by poolToken index. */ tokens: Array; + /** The transaction hash of the event. */ tx: Scalars['String']['output']; + /** The type of the event. */ type: GqlPoolEventType; + /** The user address associated with the event. */ userAddress: Scalars['String']['output']; + /** The value of the event in USD. */ valueUSD: Scalars['Float']['output']; }; @@ -176,6 +210,43 @@ export type GqlPoolApr = { thirdPartyApr: GqlPoolAprValue; }; +/** All APRs for a pool */ +export type GqlPoolAprItem = { + __typename?: 'GqlPoolAprItem'; + /** The APR value in % -> 0.2 = 0.2% */ + apr: Scalars['Float']['output']; + /** The id of the APR item */ + id: Scalars['ID']['output']; + /** The title of the APR item, a human readable form */ + title: Scalars['String']['output']; + /** Specific type of this APR */ + type: GqlPoolAprItemType; +}; + +/** Enum representing the different types of the APR in a pool. */ +export type GqlPoolAprItemType = + /** APR that pools earns when BPT is staked on AURA. */ + | 'AURA' + /** Represents the yield from an IB (Interest-Bearing) asset APR in a pool. */ + | 'IB_YIELD' + /** APR in a pool that can be earned through locking, i.e. veBAL */ + | 'LOCKING' + /** Rewards distributed by merkl.xyz */ + | 'MERKL' + /** Represents if the APR items comes from a nested pool. */ + | 'NESTED' + /** Staking reward APR in a pool, i.e. BAL or BEETS. */ + | 'STAKING' + /** APR boost that can be earned, i.e. via veBAL or maBEETS. */ + | 'STAKING_BOOST' + /** Cow AMM specific APR */ + | 'SURPLUS' + /** Represents the swap fee APR in a pool. */ + | 'SWAP_FEE' + /** APR that can be earned thourgh voting, i.e. gauge votes */ + | 'VOTING' + | '%future added value'; + export type GqlPoolAprRange = { __typename?: 'GqlPoolAprRange'; max: Scalars['BigDecimal']['output']; @@ -193,23 +264,34 @@ export type GqlPoolAprValue = GqlPoolAprRange | GqlPoolAprTotal; export type GqlPoolBase = { /** The contract address of the pool. */ address: Scalars['Bytes']['output']; - /** Returns all pool tokens, including any nested tokens and phantom BPTs on one level. */ + /** + * Returns all pool tokens, including any nested tokens and phantom BPTs on one level. + * @deprecated Use poolTokens instead + */ allTokens: Array; + /** List of categories assigned by the team based on external factors */ + categories?: Maybe>>; /** The chain on which the pool is deployed */ chain: GqlChain; /** The timestamp the pool was created. */ createTime: Scalars['Int']['output']; /** The decimals of the BPT, usually 18 */ decimals: Scalars['Int']['output']; - /** Only returns main tokens, also known as leave tokens. Wont return any nested BPTs. Used for displaying the tokens that the pool consists of. */ + /** + * Only returns main tokens, also known as leave tokens. Wont return any nested BPTs. Used for displaying the tokens that the pool consists of. + * @deprecated Use poolTokens instead + */ displayTokens: Array; /** Dynamic data such as token balances, swap fees or volume */ dynamicData: GqlPoolDynamicData; /** The factory contract address from which the pool was created. */ factory?: Maybe; - /** The pool id. This is equal to the address for vaultVersion 3 pools */ + /** The pool id. This is equal to the address for protocolVersion 3 pools */ id: Scalars['ID']['output']; - /** Deprecated */ + /** + * Deprecated + * @deprecated Removed without replacement + */ investConfig: GqlPoolInvestConfig; /** The name of the pool as per contract */ name: Scalars['String']['output']; @@ -217,19 +299,29 @@ export type GqlPoolBase = { owner?: Maybe; /** Returns all pool tokens, including BPTs and nested pools if there are any. Only one nested level deep. */ poolTokens: Array; + /** The protocol version on which the pool is deployed, 1, 2 or 3 */ + protocolVersion: Scalars['Int']['output']; /** Staking options of this pool which emit additional rewards */ staking?: Maybe; /** The token symbol of the pool as per contract */ symbol: Scalars['String']['output']; + /** List of tags assigned by the team based on external factors */ + tags?: Maybe>>; /** The pool type, such as weighted, stable, etc. */ type: GqlPoolType; /** If a user address was provided in the query, the user balance is populated here */ userBalance?: Maybe; - /** The vault version on which the pool is deployed, 2 or 3 */ + /** + * The vault version on which the pool is deployed, 2 or 3 + * @deprecated use protocolVersion instead + */ vaultVersion: Scalars['Int']['output']; /** The version of the pool type. */ version: Scalars['Int']['output']; - /** Deprecated */ + /** + * Deprecated + * @deprecated Removed without replacement + */ withdrawConfig: GqlPoolWithdrawConfig; }; @@ -276,6 +368,7 @@ export type GqlPoolComposableStable = GqlPoolBase & { allTokens: Array; amp: Scalars['BigInt']['output']; bptPriceRate: Scalars['BigDecimal']['output']; + categories?: Maybe>>; chain: GqlChain; createTime: Scalars['Int']['output']; decimals: Scalars['Int']['output']; @@ -283,18 +376,27 @@ export type GqlPoolComposableStable = GqlPoolBase & { dynamicData: GqlPoolDynamicData; factory?: Maybe; id: Scalars['ID']['output']; + /** @deprecated Removed without replacement */ investConfig: GqlPoolInvestConfig; name: Scalars['String']['output']; nestingType: GqlPoolNestingType; owner: Scalars['Bytes']['output']; poolTokens: Array; + protocolVersion: Scalars['Int']['output']; staking?: Maybe; symbol: Scalars['String']['output']; + tags?: Maybe>>; + /** + * All tokens of the pool. If it is a nested pool, the nested pool is expanded with its own tokens again. + * @deprecated Use poolTokens instead + */ tokens: Array; type: GqlPoolType; userBalance?: Maybe; + /** @deprecated use protocolVersion instead */ vaultVersion: Scalars['Int']['output']; version: Scalars['Int']['output']; + /** @deprecated Removed without replacement */ withdrawConfig: GqlPoolWithdrawConfig; }; @@ -303,6 +405,7 @@ export type GqlPoolComposableStableNested = { address: Scalars['Bytes']['output']; amp: Scalars['BigInt']['output']; bptPriceRate: Scalars['BigDecimal']['output']; + categories?: Maybe>>; createTime: Scalars['Int']['output']; factory?: Maybe; id: Scalars['ID']['output']; @@ -311,6 +414,8 @@ export type GqlPoolComposableStableNested = { owner: Scalars['Bytes']['output']; swapFee: Scalars['BigDecimal']['output']; symbol: Scalars['String']['output']; + tags?: Maybe>>; + /** @deprecated Use poolTokens instead */ tokens: Array; totalLiquidity: Scalars['BigDecimal']['output']; totalShares: Scalars['BigDecimal']['output']; @@ -320,7 +425,13 @@ export type GqlPoolComposableStableNested = { export type GqlPoolDynamicData = { __typename?: 'GqlPoolDynamicData'; + /** Protocol and pool creator fees combined */ + aggregateSwapFee: Scalars['BigDecimal']['output']; + /** Protocol and pool creator fees combined */ + aggregateYieldFee: Scalars['BigDecimal']['output']; + /** @deprecated Use aprItems instead */ apr: GqlPoolApr; + aprItems: Array; fees24h: Scalars['BigDecimal']['output']; fees24hAth: Scalars['BigDecimal']['output']; fees24hAthTimestamp: Scalars['Int']['output']; @@ -328,6 +439,7 @@ export type GqlPoolDynamicData = { fees24hAtlTimestamp: Scalars['Int']['output']; fees48h: Scalars['BigDecimal']['output']; holdersCount: Scalars['BigInt']['output']; + /** True for bricked pools */ isInRecoveryMode: Scalars['Boolean']['output']; isPaused: Scalars['Boolean']['output']; lifetimeSwapFees: Scalars['BigDecimal']['output']; @@ -337,6 +449,11 @@ export type GqlPoolDynamicData = { sharePriceAthTimestamp: Scalars['Int']['output']; sharePriceAtl: Scalars['BigDecimal']['output']; sharePriceAtlTimestamp: Scalars['Int']['output']; + /** CowAmm specific, equivalent of swap fees */ + surplus24h: Scalars['BigDecimal']['output']; + /** CowAmm specific, equivalent of swap fees */ + surplus48h: Scalars['BigDecimal']['output']; + /** Disabled for bricked pools */ swapEnabled: Scalars['Boolean']['output']; swapFee: Scalars['BigDecimal']['output']; swapsCount: Scalars['BigInt']['output']; @@ -363,6 +480,7 @@ export type GqlPoolElement = GqlPoolBase & { address: Scalars['Bytes']['output']; allTokens: Array; baseToken: Scalars['Bytes']['output']; + categories?: Maybe>>; chain: GqlChain; createTime: Scalars['Int']['output']; decimals: Scalars['Int']['output']; @@ -370,34 +488,53 @@ export type GqlPoolElement = GqlPoolBase & { dynamicData: GqlPoolDynamicData; factory?: Maybe; id: Scalars['ID']['output']; + /** @deprecated Removed without replacement */ investConfig: GqlPoolInvestConfig; name: Scalars['String']['output']; owner: Scalars['Bytes']['output']; poolTokens: Array; principalToken: Scalars['Bytes']['output']; + protocolVersion: Scalars['Int']['output']; staking?: Maybe; symbol: Scalars['String']['output']; + tags?: Maybe>>; + /** @deprecated Use poolTokens instead */ tokens: Array; type: GqlPoolType; unitSeconds: Scalars['BigInt']['output']; userBalance?: Maybe; + /** @deprecated use protocolVersion instead */ vaultVersion: Scalars['Int']['output']; version: Scalars['Int']['output']; + /** @deprecated Removed without replacement */ withdrawConfig: GqlPoolWithdrawConfig; }; +/** Represents an event that occurs in a pool. */ export type GqlPoolEvent = { + /** The block number of the event. */ blockNumber: Scalars['Int']['output']; + /** The block timestamp of the event. */ blockTimestamp: Scalars['Int']['output']; + /** The chain on which the event occurred. */ chain: GqlChain; + /** The unique identifier of the event. */ id: Scalars['ID']['output']; + /** The log index of the event. */ logIndex: Scalars['Int']['output']; + /** The pool ID associated with the event. */ poolId: Scalars['String']['output']; + /** The sender of the event. */ sender: Scalars['String']['output']; + /** The timestamp of the event. */ timestamp: Scalars['Int']['output']; + /** The transaction hash of the event. */ tx: Scalars['String']['output']; + /** The type of the event. */ type: GqlPoolEventType; + /** The user address associated with the event. */ userAddress: Scalars['String']['output']; + /** The USD value of this event. */ valueUSD: Scalars['Float']['output']; }; @@ -421,11 +558,15 @@ export type GqlPoolEventsDataRange = | '%future added value'; export type GqlPoolEventsFilter = { - chain: GqlChain; - poolId: Scalars['String']['input']; + chainIn?: InputMaybe>>; + poolIdIn?: InputMaybe>>; range?: InputMaybe; typeIn?: InputMaybe>>; userAddress?: InputMaybe; + /** USD value of the event */ + valueUSD_gt?: InputMaybe; + /** USD value of the event */ + valueUSD_gte?: InputMaybe; }; export type GqlPoolFeaturedPool = { @@ -447,8 +588,6 @@ export type GqlPoolFeaturedPoolGroup = { export type GqlPoolFeaturedPoolGroupItem = GqlFeaturePoolGroupItemExternalLink | GqlPoolMinimal; export type GqlPoolFilter = { - categoryIn?: InputMaybe>; - categoryNotIn?: InputMaybe>; chainIn?: InputMaybe>; chainNotIn?: InputMaybe>; createTime?: InputMaybe; @@ -459,15 +598,33 @@ export type GqlPoolFilter = { minTvl?: InputMaybe; poolTypeIn?: InputMaybe>; poolTypeNotIn?: InputMaybe>; + protocolVersionIn?: InputMaybe>; + /** + * For list of tags see: https://github.com/balancer/metadata/blob/main/pools/index.json + * Use uppercase + */ + tagIn?: InputMaybe>; + /** + * For list of tags see: https://github.com/balancer/metadata/blob/main/pools/index.json + * Use uppercase + */ + tagNotIn?: InputMaybe>; tokensIn?: InputMaybe>; tokensNotIn?: InputMaybe>; userAddress?: InputMaybe; - vaultVersionIn?: InputMaybe>; }; export type GqlPoolFilterCategory = | 'BLACK_LISTED' | 'INCENTIVIZED' + | 'LRT' + | 'POINTS' + | 'POINTS_EIGENLAYER' + | 'POINTS_GYRO' + | 'POINTS_KELP' + | 'POINTS_RENZO' + | 'POINTS_SWELL' + | 'SUPERFEST' | '%future added value'; export type GqlPoolFx = GqlPoolBase & { @@ -476,6 +633,7 @@ export type GqlPoolFx = GqlPoolBase & { allTokens: Array; alpha: Scalars['String']['output']; beta: Scalars['String']['output']; + categories?: Maybe>>; chain: GqlChain; createTime: Scalars['Int']['output']; decimals: Scalars['Int']['output']; @@ -485,18 +643,27 @@ export type GqlPoolFx = GqlPoolBase & { epsilon: Scalars['String']['output']; factory?: Maybe; id: Scalars['ID']['output']; + /** @deprecated Removed without replacement */ investConfig: GqlPoolInvestConfig; lambda: Scalars['String']['output']; name: Scalars['String']['output']; owner?: Maybe; poolTokens: Array; + protocolVersion: Scalars['Int']['output']; staking?: Maybe; symbol: Scalars['String']['output']; + tags?: Maybe>>; + /** + * All tokens of the pool. If it is a nested pool, the nested pool is expanded with its own tokens again. + * @deprecated Use poolTokens instead + */ tokens: Array; type: GqlPoolType; userBalance?: Maybe; + /** @deprecated use protocolVersion instead */ vaultVersion: Scalars['Int']['output']; version: Scalars['Int']['output']; + /** @deprecated Removed without replacement */ withdrawConfig: GqlPoolWithdrawConfig; }; @@ -507,6 +674,7 @@ export type GqlPoolGyro = GqlPoolBase & { alpha: Scalars['String']['output']; beta: Scalars['String']['output']; c: Scalars['String']['output']; + categories?: Maybe>>; chain: GqlChain; createTime: Scalars['Int']['output']; dSq: Scalars['String']['output']; @@ -515,30 +683,39 @@ export type GqlPoolGyro = GqlPoolBase & { dynamicData: GqlPoolDynamicData; factory?: Maybe; id: Scalars['ID']['output']; + /** @deprecated Removed without replacement */ investConfig: GqlPoolInvestConfig; lambda: Scalars['String']['output']; name: Scalars['String']['output']; nestingType: GqlPoolNestingType; owner: Scalars['Bytes']['output']; poolTokens: Array; + protocolVersion: Scalars['Int']['output']; root3Alpha: Scalars['String']['output']; s: Scalars['String']['output']; sqrtAlpha: Scalars['String']['output']; sqrtBeta: Scalars['String']['output']; staking?: Maybe; symbol: Scalars['String']['output']; + tags?: Maybe>>; tauAlphaX: Scalars['String']['output']; tauAlphaY: Scalars['String']['output']; tauBetaX: Scalars['String']['output']; tauBetaY: Scalars['String']['output']; + /** + * All tokens of the pool. If it is a nested pool, the nested pool is expanded with its own tokens again. + * @deprecated Use poolTokens instead + */ tokens: Array; type: GqlPoolType; u: Scalars['String']['output']; userBalance?: Maybe; v: Scalars['String']['output']; + /** @deprecated use protocolVersion instead */ vaultVersion: Scalars['Int']['output']; version: Scalars['Int']['output']; w: Scalars['String']['output']; + /** @deprecated Removed without replacement */ withdrawConfig: GqlPoolWithdrawConfig; z: Scalars['String']['output']; }; @@ -590,6 +767,7 @@ export type GqlPoolLiquidityBootstrapping = GqlPoolBase & { __typename?: 'GqlPoolLiquidityBootstrapping'; address: Scalars['Bytes']['output']; allTokens: Array; + categories?: Maybe>>; chain: GqlChain; createTime: Scalars['Int']['output']; decimals: Scalars['Int']['output']; @@ -597,18 +775,27 @@ export type GqlPoolLiquidityBootstrapping = GqlPoolBase & { dynamicData: GqlPoolDynamicData; factory?: Maybe; id: Scalars['ID']['output']; + /** @deprecated Removed without replacement */ investConfig: GqlPoolInvestConfig; name: Scalars['String']['output']; nestingType: GqlPoolNestingType; owner: Scalars['Bytes']['output']; poolTokens: Array; + protocolVersion: Scalars['Int']['output']; staking?: Maybe; symbol: Scalars['String']['output']; + tags?: Maybe>>; + /** + * All tokens of the pool. If it is a nested pool, the nested pool is expanded with its own tokens again. + * @deprecated Use poolTokens instead + */ tokens: Array; type: GqlPoolType; userBalance?: Maybe; + /** @deprecated use protocolVersion instead */ vaultVersion: Scalars['Int']['output']; version: Scalars['Int']['output']; + /** @deprecated Removed without replacement */ withdrawConfig: GqlPoolWithdrawConfig; }; @@ -617,6 +804,7 @@ export type GqlPoolMetaStable = GqlPoolBase & { address: Scalars['Bytes']['output']; allTokens: Array; amp: Scalars['BigInt']['output']; + categories?: Maybe>>; chain: GqlChain; createTime: Scalars['Int']['output']; decimals: Scalars['Int']['output']; @@ -624,17 +812,23 @@ export type GqlPoolMetaStable = GqlPoolBase & { dynamicData: GqlPoolDynamicData; factory?: Maybe; id: Scalars['ID']['output']; + /** @deprecated Removed without replacement */ investConfig: GqlPoolInvestConfig; name: Scalars['String']['output']; owner: Scalars['Bytes']['output']; poolTokens: Array; + protocolVersion: Scalars['Int']['output']; staking?: Maybe; symbol: Scalars['String']['output']; + tags?: Maybe>>; + /** @deprecated Use poolTokens instead */ tokens: Array; type: GqlPoolType; userBalance?: Maybe; + /** @deprecated use protocolVersion instead */ vaultVersion: Scalars['Int']['output']; version: Scalars['Int']['output']; + /** @deprecated Removed without replacement */ withdrawConfig: GqlPoolWithdrawConfig; }; @@ -645,38 +839,66 @@ export type GqlPoolMinimal = { address: Scalars['Bytes']['output']; /** Returns all pool tokens, including any nested tokens and phantom BPTs */ allTokens: Array; + /** List of categories assigned by the team based on external factors */ + categories?: Maybe>>; /** The chain on which the pool is deployed */ chain: GqlChain; /** The timestamp the pool was created. */ createTime: Scalars['Int']['output']; /** The decimals of the BPT, usually 18 */ decimals: Scalars['Int']['output']; - /** Only returns main tokens, also known as leave tokens. Wont return any nested BPTs. Used for displaying the tokens that the pool consists of. */ + /** Only returns main or underlying tokens, also known as leave tokens. Wont return any nested BPTs. Used for displaying the tokens that the pool consists of. */ displayTokens: Array; /** Dynamic data such as token balances, swap fees or volume */ dynamicData: GqlPoolDynamicData; /** The factory contract address from which the pool was created. */ factory?: Maybe; - /** The pool id. This is equal to the address for vaultVersion 3 pools */ + /** Whether at least one token in this pool is considered an ERC4626 token. */ + hasErc4626: Scalars['Boolean']['output']; + /** Hook assigned to a pool */ + hook?: Maybe; + /** The pool id. This is equal to the address for protocolVersion 3 pools */ id: Scalars['ID']['output']; + /** Pool is receiving rewards when liquidity tokens are staked */ + incentivized: Scalars['Boolean']['output']; /** The name of the pool as per contract */ name: Scalars['String']['output']; /** The wallet address of the owner of the pool. Pool owners can set certain properties like swapFees or AMP. */ owner?: Maybe; + /** The protocol version on which the pool is deployed, 1, 2 or 3 */ + protocolVersion: Scalars['Int']['output']; /** Staking options of this pool which emit additional rewards */ staking?: Maybe; /** The token symbol of the pool as per contract */ symbol: Scalars['String']['output']; + /** List of tags assigned by the team based on external factors */ + tags?: Maybe>>; /** The pool type, such as weighted, stable, etc. */ type: GqlPoolType; /** If a user address was provided in the query, the user balance is populated here */ userBalance?: Maybe; - /** The vault version on which the pool is deployed, 2 or 3 */ + /** + * The vault version on which the pool is deployed, 2 or 3 + * @deprecated use protocolVersion instead + */ vaultVersion: Scalars['Int']['output']; /** The version of the pool type. */ version: Scalars['Int']['output']; }; +/** Result of the poolReloadPools mutation */ +export type GqlPoolMutationResult = { + __typename?: 'GqlPoolMutationResult'; + /** The chain that was reloaded. */ + chain: GqlChain; + /** The error message */ + error?: Maybe; + /** Whether it was successful or not. */ + success: Scalars['Boolean']['output']; + /** The type of pools that were reloaded. */ + type: Scalars['String']['output']; +}; + export type GqlPoolNestedUnion = GqlPoolComposableStableNested; export type GqlPoolNestingType = @@ -708,10 +930,12 @@ export type GqlPoolSnapshot = { id: Scalars['ID']['output']; poolId: Scalars['String']['output']; sharePrice: Scalars['String']['output']; + surplus24h: Scalars['String']['output']; swapsCount: Scalars['String']['output']; timestamp: Scalars['Int']['output']; totalLiquidity: Scalars['String']['output']; totalShares: Scalars['String']['output']; + totalSurplus: Scalars['String']['output']; totalSwapFee: Scalars['String']['output']; totalSwapVolume: Scalars['String']['output']; volume24h: Scalars['String']['output']; @@ -730,6 +954,7 @@ export type GqlPoolStable = GqlPoolBase & { address: Scalars['Bytes']['output']; allTokens: Array; amp: Scalars['BigInt']['output']; + categories?: Maybe>>; chain: GqlChain; createTime: Scalars['Int']['output']; decimals: Scalars['Int']['output']; @@ -737,17 +962,23 @@ export type GqlPoolStable = GqlPoolBase & { dynamicData: GqlPoolDynamicData; factory?: Maybe; id: Scalars['ID']['output']; + /** @deprecated Removed without replacement */ investConfig: GqlPoolInvestConfig; name: Scalars['String']['output']; owner: Scalars['Bytes']['output']; poolTokens: Array; + protocolVersion: Scalars['Int']['output']; staking?: Maybe; symbol: Scalars['String']['output']; + tags?: Maybe>>; + /** @deprecated Use poolTokens instead */ tokens: Array; type: GqlPoolType; userBalance?: Maybe; + /** @deprecated use protocolVersion instead */ vaultVersion: Scalars['Int']['output']; version: Scalars['Int']['output']; + /** @deprecated Removed without replacement */ withdrawConfig: GqlPoolWithdrawConfig; }; @@ -764,12 +995,23 @@ export type GqlPoolStableComposablePoolData = { export type GqlPoolStaking = { __typename?: 'GqlPoolStaking'; address: Scalars['String']['output']; + aura?: Maybe; chain: GqlChain; farm?: Maybe; gauge?: Maybe; id: Scalars['ID']['output']; reliquary?: Maybe; type: GqlPoolStakingType; + vebal?: Maybe; +}; + +export type GqlPoolStakingAura = { + __typename?: 'GqlPoolStakingAura'; + apr: Scalars['Float']['output']; + auraPoolAddress: Scalars['String']['output']; + auraPoolId: Scalars['String']['output']; + id: Scalars['ID']['output']; + isShutdown: Scalars['Boolean']['output']; }; export type GqlPoolStakingFarmRewarder = { @@ -840,12 +1082,20 @@ export type GqlPoolStakingReliquaryFarmLevel = { }; export type GqlPoolStakingType = + | 'AURA' | 'FRESH_BEETS' | 'GAUGE' | 'MASTER_CHEF' | 'RELIQUARY' + | 'VEBAL' | '%future added value'; +export type GqlPoolStakingVebal = { + __typename?: 'GqlPoolStakingVebal'; + id: Scalars['ID']['output']; + vebalAddress: Scalars['String']['output']; +}; + export type GqlPoolSwap = { __typename?: 'GqlPoolSwap'; chain: GqlChain; @@ -861,21 +1111,75 @@ export type GqlPoolSwap = { valueUSD: Scalars['Float']['output']; }; +/** Represents an event that occurs when a swap is made in a pool using the CowAmm protocol. */ +export type GqlPoolSwapEventCowAmm = GqlPoolEvent & { + __typename?: 'GqlPoolSwapEventCowAmm'; + /** The block number of the event. */ + blockNumber: Scalars['Int']['output']; + /** The block timestamp of the event. */ + blockTimestamp: Scalars['Int']['output']; + /** The chain on which the event occurred. */ + chain: GqlChain; + /** The fee that this swap generated. */ + fee: GqlPoolEventAmount; + /** The unique identifier of the event. */ + id: Scalars['ID']['output']; + /** The log index of the event. */ + logIndex: Scalars['Int']['output']; + /** The pool ID associated with the event. */ + poolId: Scalars['String']['output']; + /** The sender of the event. */ + sender: Scalars['String']['output']; + /** The surplus generated by the swap. */ + surplus: GqlPoolEventAmount; + /** The timestamp of the event. */ + timestamp: Scalars['Int']['output']; + /** The token that was swapped in the event. */ + tokenIn: GqlPoolEventAmount; + /** The token that was swapped out in the event. */ + tokenOut: GqlPoolEventAmount; + /** The transaction hash of the event. */ + tx: Scalars['String']['output']; + /** The type of the event. */ + type: GqlPoolEventType; + /** The user address associated with the event. */ + userAddress: Scalars['String']['output']; + /** The value of the event in USD. */ + valueUSD: Scalars['Float']['output']; +}; + +/** Represents an event that occurs when a swap is made in a pool. */ export type GqlPoolSwapEventV3 = GqlPoolEvent & { __typename?: 'GqlPoolSwapEventV3'; + /** The block number of the event. */ blockNumber: Scalars['Int']['output']; + /** The block timestamp of the event. */ blockTimestamp: Scalars['Int']['output']; + /** The chain on which the event occurred. */ chain: GqlChain; + /** The fee that this swap generated. */ + fee: GqlPoolEventAmount; + /** The unique identifier of the event. */ id: Scalars['ID']['output']; + /** The log index of the event. */ logIndex: Scalars['Int']['output']; + /** The pool ID associated with the event. */ poolId: Scalars['String']['output']; + /** The sender of the event. */ sender: Scalars['String']['output']; + /** The timestamp of the event. */ timestamp: Scalars['Int']['output']; + /** The token that was swapped in the event. */ tokenIn: GqlPoolEventAmount; + /** The token that was swapped out in the event. */ tokenOut: GqlPoolEventAmount; + /** The transaction hash of the event. */ tx: Scalars['String']['output']; + /** The type of the event. */ type: GqlPoolEventType; + /** The user address associated with the event. */ userAddress: Scalars['String']['output']; + /** The value of the event in USD. */ valueUSD: Scalars['Float']['output']; }; @@ -938,19 +1242,45 @@ export type GqlPoolTokenComposableStable = GqlPoolTokenBase & { export type GqlPoolTokenComposableStableNestedUnion = GqlPoolToken; +/** + * All info on the pool token. It will also include the nested pool if the token is a BPT. It will only support 1 level of nesting. + * A second (unsupported) level of nesting is shown by having hasNestedPool = true but nestedPool = null. + */ export type GqlPoolTokenDetail = { __typename?: 'GqlPoolTokenDetail'; + /** Address of the pool token. */ address: Scalars['String']['output']; + /** Balance of the pool token inside the pool. */ balance: Scalars['BigDecimal']['output']; + /** USD Balance of the pool token. */ + balanceUSD: Scalars['BigDecimal']['output']; + /** Decimals of the pool token. */ decimals: Scalars['Int']['output']; + /** Indicates whether this token is a BPT and therefor has a nested pool. */ hasNestedPool: Scalars['Boolean']['output']; + /** Id of the token. A combination of pool id and token address. */ id: Scalars['ID']['output']; + /** Index of the pool token in the pool as returned by the vault. */ index: Scalars['Int']['output']; + /** Whether the token is in the allow list. */ + isAllowed: Scalars['Boolean']['output']; + /** Whether the token is considered an ERC4626 token. */ + isErc4626: Scalars['Boolean']['output']; + /** Name of the pool token. */ name: Scalars['String']['output']; + /** Additional data for the nested pool if the token is a BPT. Null otherwise. */ nestedPool?: Maybe; + /** If it is an appreciating token, it shows the current price rate. 1 otherwise. */ priceRate: Scalars['BigDecimal']['output']; + /** The address of the price rate provider. */ priceRateProvider?: Maybe; + /** Additional data for the price rate provider, such as reviews or warnings. */ + priceRateProviderData?: Maybe; + /** Symbol of the pool token. */ symbol: Scalars['String']['output']; + /** If it is an Erc4262, this will be the underlying token if present in the API. */ + underlyingToken?: Maybe; + /** The weight of the token in the pool if it is a weighted pool, null otherwise */ weight?: Maybe; }; @@ -969,6 +1299,7 @@ export type GqlPoolTokenExpanded = { address: Scalars['String']['output']; decimals: Scalars['Int']['output']; id: Scalars['ID']['output']; + isErc4626: Scalars['Boolean']['output']; isMainToken: Scalars['Boolean']['output']; isNested: Scalars['Boolean']['output']; isPhantomBpt: Scalars['Boolean']['output']; @@ -982,6 +1313,7 @@ export type GqlPoolTokenUnion = GqlPoolToken | GqlPoolTokenComposableStable; /** Supported pool types */ export type GqlPoolType = | 'COMPOSABLE_STABLE' + | 'COW_AMM' | 'ELEMENT' | 'FX' | 'GYRO' @@ -1001,10 +1333,8 @@ export type GqlPoolUnion = GqlPoolComposableStable | GqlPoolElement | GqlPoolFx /** If a user address was provided in the query, the user balance is populated here */ export type GqlPoolUserBalance = { __typename?: 'GqlPoolUserBalance'; - /** The staked balance in either a gauge or farm as float. */ - stakedBalance: Scalars['AmountHumanReadable']['output']; - /** The staked balance in either a gauge or farm in USD as float. */ - stakedBalanceUsd: Scalars['Float']['output']; + /** The staked BPT balances of the user. */ + stakedBalances: Array; /** Total balance (wallet + staked) as float */ totalBalance: Scalars['AmountHumanReadable']['output']; /** Total balance (wallet + staked) in USD as float */ @@ -1025,6 +1355,7 @@ export type GqlPoolWeighted = GqlPoolBase & { __typename?: 'GqlPoolWeighted'; address: Scalars['Bytes']['output']; allTokens: Array; + categories?: Maybe>>; chain: GqlChain; createTime: Scalars['Int']['output']; decimals: Scalars['Int']['output']; @@ -1032,19 +1363,27 @@ export type GqlPoolWeighted = GqlPoolBase & { dynamicData: GqlPoolDynamicData; factory?: Maybe; id: Scalars['ID']['output']; + /** @deprecated Removed without replacement */ investConfig: GqlPoolInvestConfig; name: Scalars['String']['output']; nestingType: GqlPoolNestingType; owner: Scalars['Bytes']['output']; poolTokens: Array; + protocolVersion: Scalars['Int']['output']; staking?: Maybe; symbol: Scalars['String']['output']; - /** All tokens of the pool. If it is a nested pool, the nested pool is expanded with its own tokens again. */ + tags?: Maybe>>; + /** + * All tokens of the pool. If it is a nested pool, the nested pool is expanded with its own tokens again. + * @deprecated Use poolTokens instead + */ tokens: Array; type: GqlPoolType; userBalance?: Maybe; + /** @deprecated use protocolVersion instead */ vaultVersion: Scalars['Int']['output']; version: Scalars['Int']['output']; + /** @deprecated Removed without replacement */ withdrawConfig: GqlPoolWithdrawConfig; }; @@ -1071,6 +1410,36 @@ export type GqlPriceImpact = { priceImpact?: Maybe; }; +/** Represents the data of a price rate provider */ +export type GqlPriceRateProviderData = { + __typename?: 'GqlPriceRateProviderData'; + /** The address of the price rate provider */ + address: Scalars['String']['output']; + /** The factory used to create the price rate provider, if applicable */ + factory?: Maybe; + /** The name of the price rate provider */ + name?: Maybe; + /** The filename of the review of the price rate provider */ + reviewFile?: Maybe; + /** Indicates if the price rate provider has been reviewed */ + reviewed: Scalars['Boolean']['output']; + /** A summary of the price rate provider, usually just says safe or unsafe */ + summary?: Maybe; + /** Upgradeable components of the price rate provider */ + upgradeableComponents?: Maybe>>; + /** Warnings associated with the price rate provider */ + warnings?: Maybe>; +}; + +/** Represents an upgradeable component of a price rate provider */ +export type GqlPriceRateProviderUpgradeableComponent = { + __typename?: 'GqlPriceRateProviderUpgradeableComponent'; + /** The entry point / proxy of the upgradeable component */ + entryPoint: Scalars['String']['output']; + /** Indicates if the implementation of the component has been reviewed */ + implementationReviewed: Scalars['String']['output']; +}; + export type GqlProtocolMetricsAggregated = { __typename?: 'GqlProtocolMetricsAggregated'; chains: Array; @@ -1250,6 +1619,8 @@ export type GqlSorGetSwapPaths = { paths: Array; /** Price impact of the path */ priceImpact: GqlPriceImpact; + /** The version of the protocol these paths are from */ + protocolVersion: Scalars['Int']['output']; /** The return amount in human form. Return amount is either tokenOutAmount (if swapType is exactIn) or tokenInAmount (if swapType is exactOut) */ returnAmount: Scalars['AmountHumanReadable']['output']; /** The return amount in a raw form */ @@ -1274,7 +1645,10 @@ export type GqlSorGetSwapPaths = { tokenOut: Scalars['String']['output']; /** The amount of tokenOut in human form */ tokenOutAmount: Scalars['AmountHumanReadable']['output']; - /** The version of the vault these paths are from */ + /** + * The version of the vault these paths are from + * @deprecated Use protocolVersion instead + */ vaultVersion: Scalars['Int']['output']; }; @@ -1306,13 +1680,20 @@ export type GqlSorPath = { __typename?: 'GqlSorPath'; /** Input amount of this path in scaled form */ inputAmountRaw: Scalars['String']['output']; + /** A sorted list of booleans that indicate if the respective pool is a buffer */ + isBuffer: Array>; /** Output amount of this path in scaled form */ outputAmountRaw: Scalars['String']['output']; /** A sorted list of pool ids that are used in this path */ pools: Array>; + /** The version of the protocol these paths are from */ + protocolVersion: Scalars['Int']['output']; /** A sorted list of tokens that are ussed in this path */ tokens: Array>; - /** Vault version of this path. */ + /** + * Vault version of this path. + * @deprecated Use protocolVersion instead + */ vaultVersion: Scalars['Int']['output']; }; @@ -1389,21 +1770,44 @@ export type GqlSwapCallDataInput = { slippagePercentage: Scalars['String']['input']; }; +/** Represents a token */ export type GqlToken = { __typename?: 'GqlToken'; + /** The address of the token */ address: Scalars['String']['output']; + /** The chain of the token */ chain: GqlChain; + /** The chain ID of the token */ chainId: Scalars['Int']['output']; + /** The coingecko ID for this token, if present */ + coingeckoId?: Maybe; + /** The number of decimal places for the token */ decimals: Scalars['Int']['output']; + /** The description of the token */ description?: Maybe; + /** The Discord URL of the token */ discordUrl?: Maybe; + /** Whether the token is considered an ERC4626 token. */ + isErc4626: Scalars['Boolean']['output']; + /** The logo URI of the token */ logoURI?: Maybe; + /** The name of the token */ name: Scalars['String']['output']; + /** The rate provider data for the token */ + priceRateProviderData?: Maybe; + /** The priority of the token, can be used for sorting. */ priority: Scalars['Int']['output']; + /** The rate provider data for the token */ + rateProviderData?: Maybe; + /** The symbol of the token */ symbol: Scalars['String']['output']; + /** The Telegram URL of the token */ telegramUrl?: Maybe; + /** Indicates if the token is tradable */ tradable: Scalars['Boolean']['output']; + /** The Twitter username of the token */ twitterUsername?: Maybe; + /** The website URL of the token */ websiteUrl?: Maybe; }; @@ -1441,25 +1845,52 @@ export type GqlTokenData = { websiteUrl?: Maybe; }; +/** Represents additional data for a token */ export type GqlTokenDynamicData = { __typename?: 'GqlTokenDynamicData'; + /** The all-time high price of the token */ ath: Scalars['Float']['output']; + /** The all-time low price of the token */ atl: Scalars['Float']['output']; + /** The fully diluted valuation of the token */ fdv?: Maybe; + /** The highest price in the last 24 hours */ high24h: Scalars['Float']['output']; + /** The unique identifier of the dynamic data */ id: Scalars['String']['output']; + /** The lowest price in the last 24 hours */ low24h: Scalars['Float']['output']; + /** The market capitalization of the token */ marketCap?: Maybe; + /** The current price of the token */ price: Scalars['Float']['output']; + /** The price change in the last 24 hours */ priceChange24h: Scalars['Float']['output']; + /** The percentage price change in the last 7 days */ priceChangePercent7d?: Maybe; + /** The percentage price change in the last 14 days */ priceChangePercent14d?: Maybe; + /** The percentage price change in the last 24 hours */ priceChangePercent24h: Scalars['Float']['output']; + /** The percentage price change in the last 30 days */ priceChangePercent30d?: Maybe; + /** The address of the token */ tokenAddress: Scalars['String']['output']; + /** The timestamp when the data was last updated */ updatedAt: Scalars['String']['output']; }; +/** Result of the poolReloadPools mutation */ +export type GqlTokenMutationResult = { + __typename?: 'GqlTokenMutationResult'; + /** The chain that was reloaded. */ + chain: GqlChain; + /** The error message */ + error?: Maybe; + /** Whether it was successful or not. */ + success: Scalars['Boolean']['output']; +}; + export type GqlTokenPrice = { __typename?: 'GqlTokenPrice'; address: Scalars['String']['output']; @@ -1501,46 +1932,119 @@ export type GqlUserPoolBalance = { walletBalance: Scalars['AmountHumanReadable']['output']; }; +export type GqlUserStakedBalance = { + __typename?: 'GqlUserStakedBalance'; + /** The staked BPT balance as float. */ + balance: Scalars['AmountHumanReadable']['output']; + /** The steaked BPT balance in USD as float. */ + balanceUsd: Scalars['Float']['output']; + /** The id of the staking to match with GqlPoolStaking.id. */ + stakingId: Scalars['String']['output']; + /** The staking type (Gauge, farm, aura, etc.) in which this balance is staked. */ + stakingType: GqlPoolStakingType; +}; + export type GqlUserSwapVolumeFilter = { poolIdIn?: InputMaybe>; tokenInIn?: InputMaybe>; tokenOutIn?: InputMaybe>; }; +export type GqlVeBalBalance = { + __typename?: 'GqlVeBalBalance'; + balance: Scalars['AmountHumanReadable']['output']; + chain: GqlChain; + locked: Scalars['AmountHumanReadable']['output']; + lockedUsd: Scalars['AmountHumanReadable']['output']; +}; + export type GqlVeBalUserData = { __typename?: 'GqlVeBalUserData'; balance: Scalars['AmountHumanReadable']['output']; + locked: Scalars['AmountHumanReadable']['output']; + lockedUsd: Scalars['AmountHumanReadable']['output']; rank?: Maybe; }; +/** The Gauge that can be voted on through veBAL and that will ultimately receive the rewards. */ export type GqlVotingGauge = { __typename?: 'GqlVotingGauge'; + /** The timestamp the gauge was added. */ addedTimestamp?: Maybe; + /** The address of the root gauge on Ethereum mainnet. */ address: Scalars['Bytes']['output']; + /** The address of the child gauge on the specific chain. */ childGaugeAddress?: Maybe; + /** Whether the gauge is killed or not. */ isKilled: Scalars['Boolean']['output']; + /** The relative weight the gauge received this epoch (not more than 1.0). */ + relativeWeight: Scalars['String']['output']; + /** The relative weight cap. 1.0 for uncapped. */ relativeWeightCap?: Maybe; }; +/** A token inside of a pool with a voting gauge. */ export type GqlVotingGaugeToken = { __typename?: 'GqlVotingGaugeToken'; + /** The address of the token. */ address: Scalars['String']['output']; + /** The URL to the token logo. */ logoURI: Scalars['String']['output']; + /** The symbol of the token. */ symbol: Scalars['String']['output']; + /** If it is a weighted pool, the weigh of the token is shown here in %. 0.5 = 50%. */ weight?: Maybe; }; +/** The pool that can be voted on through veBAL */ export type GqlVotingPool = { __typename?: 'GqlVotingPool'; + /** The address of the pool. */ address: Scalars['Bytes']['output']; + /** The chain this pool is on. */ chain: GqlChain; + /** The gauge that is connected to the pool and that will receive the rewards. */ gauge: GqlVotingGauge; + /** Pool ID */ id: Scalars['ID']['output']; + /** The symbol of the pool. */ symbol: Scalars['String']['output']; + /** The tokens inside the pool. */ tokens: Array; + /** The type of the pool. */ type: GqlPoolType; }; +/** Hook data */ +export type Hook = { + __typename?: 'Hook'; + address: Scalars['String']['output']; + chain: GqlChain; + /** Data points changing over time */ + dynamicData?: Maybe; + /** True when hook can change the amounts send to the vault. Necessary to deduct the fees. */ + enableHookAdjustedAmounts: Scalars['Boolean']['output']; + /** List of pools using the hook */ + poolsIds?: Maybe>>; + shouldCallAfterAddLiquidity: Scalars['Boolean']['output']; + shouldCallAfterInitialize: Scalars['Boolean']['output']; + shouldCallAfterRemoveLiquidity: Scalars['Boolean']['output']; + shouldCallAfterSwap: Scalars['Boolean']['output']; + shouldCallBeforeAddLiquidity: Scalars['Boolean']['output']; + shouldCallBeforeInitialize: Scalars['Boolean']['output']; + shouldCallBeforeRemoveLiquidity: Scalars['Boolean']['output']; + shouldCallBeforeSwap: Scalars['Boolean']['output']; + shouldCallComputeDynamicSwapFee: Scalars['Boolean']['output']; +}; + +/** Collection of hook specific data. Percentage format is 0.01 -> 0.01%. */ +export type HookData = { + __typename?: 'HookData'; + addLiquidityFeePercentage?: Maybe; + removeLiquidityFeePercentage?: Maybe; + swapFeePercentage?: Maybe; +}; + export type Mutation = { __typename?: 'Mutation'; beetsPoolLoadReliquarySnapshotsForAllFarms: Scalars['String']['output']; @@ -1557,7 +2061,9 @@ export type Mutation = { poolLoadSnapshotsForPools: Scalars['String']['output']; poolReloadAllPoolAprs: Scalars['String']['output']; poolReloadAllTokenNestedPoolIds: Scalars['String']['output']; + poolReloadPools: Array; poolReloadStakingForAllPools: Scalars['String']['output']; + poolSyncAllCowSnapshots: Array; poolSyncAllPoolsFromSubgraph: Array; poolSyncLatestSnapshotsForAllPools: Scalars['String']['output']; poolSyncNewPoolsFromSubgraph: Array; @@ -1577,6 +2083,7 @@ export type Mutation = { sftmxSyncWithdrawalRequests: Scalars['String']['output']; tokenDeleteTokenType: Scalars['String']['output']; tokenReloadAllTokenTypes: Scalars['String']['output']; + tokenReloadErc4626Tokens: Array; tokenReloadTokenPrices?: Maybe; tokenSyncLatestFxPrices: Scalars['String']['output']; tokenSyncTokenDefinitions: Scalars['String']['output']; @@ -1623,13 +2130,23 @@ export type MutationPoolReloadAllPoolAprsArgs = { }; +export type MutationPoolReloadPoolsArgs = { + chains: Array; +}; + + export type MutationPoolReloadStakingForAllPoolsArgs = { stakingTypes: Array; }; +export type MutationPoolSyncAllCowSnapshotsArgs = { + chains: Array; +}; + + export type MutationPoolSyncLatestSnapshotsForAllPoolsArgs = { - daysToSync?: InputMaybe; + chain: GqlChain; }; @@ -1649,6 +2166,11 @@ export type MutationTokenDeleteTokenTypeArgs = { }; +export type MutationTokenReloadErc4626TokensArgs = { + chains: Array; +}; + + export type MutationTokenReloadTokenPricesArgs = { chains: Array; }; @@ -1682,18 +2204,29 @@ export type Query = { blocksGetBlocksPerSecond: Scalars['Float']['output']; blocksGetBlocksPerYear: Scalars['Float']['output']; contentGetNewsItems: Array; + /** Returns list of hooks. */ + hooks?: Maybe>; latestSyncedBlocks: GqlLatestSyncedBlocks; /** Getting swap, add and remove events with paging */ poolEvents: Array; - /** Will de deprecated in favor of poolEvents */ + /** + * Will de deprecated in favor of poolEvents + * @deprecated Use poolEvents instead + */ poolGetBatchSwaps: Array; /** Getting swap, add and remove events with range */ poolGetEvents: Array; - /** Will de deprecated in favor of poolGetFeaturedPools */ + /** + * Will de deprecated in favor of poolGetFeaturedPools + * @deprecated Use poolGetFeaturedPools instead + */ poolGetFeaturedPoolGroups: Array; /** Returns the list of featured pools for chains */ poolGetFeaturedPools: Array; - /** Will de deprecated in favor of poolEvents */ + /** + * Will de deprecated in favor of poolEvents + * @deprecated Use poolEvents instead + */ poolGetJoinExits: Array; /** Returns one pool. If a user address is provided, the user balances for the given pool will also be returned. */ poolGetPool: GqlPoolBase; @@ -1703,7 +2236,10 @@ export type Query = { poolGetPoolsCount: Scalars['Int']['output']; /** Gets all the snapshots for a given pool on a chain for a certain range */ poolGetSnapshots: Array; - /** Will de deprecated in favor of poolEvents */ + /** + * Will de deprecated in favor of poolEvents + * @deprecated Use poolEvents instead + */ poolGetSwaps: Array; protocolMetricsAggregated: GqlProtocolMetricsAggregated; protocolMetricsChain: GqlProtocolMetricsChain; @@ -1717,16 +2253,42 @@ export type Query = { sorGetSwapPaths: GqlSorGetSwapPaths; /** Get swap quote from the SOR, queries both the old and new SOR */ sorGetSwaps: GqlSorGetSwapsResponse; + /** + * Returns the candlestick chart data for a token for a given range. + * @deprecated Use tokenGetHistoricalPrices instead + */ tokenGetCandlestickChartData: Array; + /** Returns all current prices for allowed tokens for a given chain or chains */ tokenGetCurrentPrices: Array; + /** Returns the historical prices for a given set of tokens for a given chain and range */ tokenGetHistoricalPrices: Array; + /** + * DEPRECATED: Returns pricing data for a given token for a given range + * @deprecated Use tokenGetHistoricalPrices instead + */ tokenGetPriceChartData: Array; + /** + * Returns the price of either BAL or BEETS depending on chain + * @deprecated Use tokenGetTokensDynamicData instead + */ tokenGetProtocolTokenPrice: Scalars['AmountHumanReadable']['output']; + /** Returns the price of a token priced in another token for a given range. */ tokenGetRelativePriceChartData: Array; + /** + * Returns meta data for a given token such as description, website, etc. + * @deprecated Use tokenGetTokens instead + */ tokenGetTokenData?: Maybe; + /** Returns dynamic data of a token such as price, market cap, etc. */ tokenGetTokenDynamicData?: Maybe; + /** Returns all allowed tokens for a given chain or chains */ tokenGetTokens: Array; + /** + * Returns meta data for a given set of tokens such as description, website, etc. + * @deprecated Use tokenGetTokens instead + */ tokenGetTokensData: Array; + /** Returns dynamic data of a set of tokens such as price, market cap, etc. */ tokenGetTokensDynamicData: Array; userGetFbeetsBalance: GqlUserFbeetsBalance; userGetPoolBalances: Array; @@ -1738,6 +2300,8 @@ export type Query = { veBalGetTotalSupply: Scalars['AmountHumanReadable']['output']; veBalGetUser: GqlVeBalUserData; veBalGetUserBalance: Scalars['AmountHumanReadable']['output']; + veBalGetUserBalances: Array; + /** Returns all pools with veBAL gauges that can be voted on. */ veBalGetVotingList: Array; }; @@ -1753,10 +2317,15 @@ export type QueryContentGetNewsItemsArgs = { }; +export type QueryHooksArgs = { + chain?: InputMaybe; +}; + + export type QueryPoolEventsArgs = { first?: InputMaybe; skip?: InputMaybe; - where: GqlPoolEventsFilter; + where?: InputMaybe; }; @@ -1862,7 +2431,7 @@ export type QuerySorGetSwapPathsArgs = { swapType: GqlSorSwapType; tokenIn: Scalars['String']['input']; tokenOut: Scalars['String']['input']; - useVaultVersion?: InputMaybe; + useProtocolVersion?: InputMaybe; }; @@ -1972,6 +2541,29 @@ export type QueryUserGetSwapsArgs = { skip?: InputMaybe; }; + +export type QueryVeBalGetTotalSupplyArgs = { + chain?: InputMaybe; +}; + + +export type QueryVeBalGetUserArgs = { + address: Scalars['String']['input']; + chain?: InputMaybe; +}; + + +export type QueryVeBalGetUserBalanceArgs = { + address?: InputMaybe; + chain?: InputMaybe; +}; + + +export type QueryVeBalGetUserBalancesArgs = { + address: Scalars['String']['input']; + chains?: InputMaybe>; +}; + export type Token = { __typename?: 'Token'; address: Scalars['String']['output']; diff --git a/packages/gql/src/balancer-api-v3/__generated__/Goerli.ts b/packages/gql/src/balancer-api-v3/__generated__/Goerli.ts index dbb6d7c10..5e68d0c72 100644 --- a/packages/gql/src/balancer-api-v3/__generated__/Goerli.ts +++ b/packages/gql/src/balancer-api-v3/__generated__/Goerli.ts @@ -46,8 +46,10 @@ export type GqlChain = | 'AVALANCHE' | 'BASE' | 'FANTOM' + | 'FRAXTAL' | 'GNOSIS' | 'MAINNET' + | 'MODE' | 'OPTIMISM' | 'POLYGON' | 'SEPOLIA' @@ -130,41 +132,73 @@ export type GqlLatestSyncedBlocks = { userWalletSyncBlock: Scalars['BigInt']['output']; }; +/** All info on the nested pool if the token is a BPT. It will only support 1 level of nesting. */ export type GqlNestedPool = { __typename?: 'GqlNestedPool'; + /** Address of the pool. */ address: Scalars['Bytes']['output']; + /** Price rate of the Balancer Pool Token (BPT). */ bptPriceRate: Scalars['BigDecimal']['output']; + /** Timestamp of when the pool was created. */ createTime: Scalars['Int']['output']; + /** Address of the factory contract that created the pool, if applicable. */ factory?: Maybe; + /** Unique identifier of the pool. */ id: Scalars['ID']['output']; + /** Name of the pool. */ name: Scalars['String']['output']; + /** Total liquidity of the parent pool in the nested pool in USD. */ nestedLiquidity: Scalars['BigDecimal']['output']; + /** Percentage of the parents pool shares inside the nested pool. */ nestedPercentage: Scalars['BigDecimal']['output']; + /** Number of shares of the parent pool in the nested pool. */ nestedShares: Scalars['BigDecimal']['output']; + /** Address of the pool's owner. */ owner: Scalars['Bytes']['output']; + /** Fee charged for swapping tokens in the pool as %. 0.01 -> 0.01% */ swapFee: Scalars['BigDecimal']['output']; + /** Symbol of the pool. */ symbol: Scalars['String']['output']; + /** List of all tokens in the pool. */ tokens: Array; + /** Total liquidity in the pool in USD. */ totalLiquidity: Scalars['BigDecimal']['output']; + /** Total number of shares in the pool. */ totalShares: Scalars['BigDecimal']['output']; + /** Type of the pool. */ type: GqlPoolType; + /** Version of the pool. */ version: Scalars['Int']['output']; }; +/** Represents an event that occurs when liquidity is added or removed from a pool. */ export type GqlPoolAddRemoveEventV3 = GqlPoolEvent & { __typename?: 'GqlPoolAddRemoveEventV3'; + /** The block number of the event. */ blockNumber: Scalars['Int']['output']; + /** The block timestamp of the event. */ blockTimestamp: Scalars['Int']['output']; + /** The chain on which the event occurred. */ chain: GqlChain; + /** The unique identifier of the event. */ id: Scalars['ID']['output']; + /** The log index of the event. */ logIndex: Scalars['Int']['output']; + /** The pool ID associated with the event. */ poolId: Scalars['String']['output']; + /** The sender of the event. */ sender: Scalars['String']['output']; + /** The timestamp of the event. */ timestamp: Scalars['Int']['output']; + /** The tokens involved in the event. Ordered by poolToken index. */ tokens: Array; + /** The transaction hash of the event. */ tx: Scalars['String']['output']; + /** The type of the event. */ type: GqlPoolEventType; + /** The user address associated with the event. */ userAddress: Scalars['String']['output']; + /** The value of the event in USD. */ valueUSD: Scalars['Float']['output']; }; @@ -178,6 +212,43 @@ export type GqlPoolApr = { thirdPartyApr: GqlPoolAprValue; }; +/** All APRs for a pool */ +export type GqlPoolAprItem = { + __typename?: 'GqlPoolAprItem'; + /** The APR value in % -> 0.2 = 0.2% */ + apr: Scalars['Float']['output']; + /** The id of the APR item */ + id: Scalars['ID']['output']; + /** The title of the APR item, a human readable form */ + title: Scalars['String']['output']; + /** Specific type of this APR */ + type: GqlPoolAprItemType; +}; + +/** Enum representing the different types of the APR in a pool. */ +export type GqlPoolAprItemType = + /** APR that pools earns when BPT is staked on AURA. */ + | 'AURA' + /** Represents the yield from an IB (Interest-Bearing) asset APR in a pool. */ + | 'IB_YIELD' + /** APR in a pool that can be earned through locking, i.e. veBAL */ + | 'LOCKING' + /** Rewards distributed by merkl.xyz */ + | 'MERKL' + /** Represents if the APR items comes from a nested pool. */ + | 'NESTED' + /** Staking reward APR in a pool, i.e. BAL or BEETS. */ + | 'STAKING' + /** APR boost that can be earned, i.e. via veBAL or maBEETS. */ + | 'STAKING_BOOST' + /** Cow AMM specific APR */ + | 'SURPLUS' + /** Represents the swap fee APR in a pool. */ + | 'SWAP_FEE' + /** APR that can be earned thourgh voting, i.e. gauge votes */ + | 'VOTING' + | '%future added value'; + export type GqlPoolAprRange = { __typename?: 'GqlPoolAprRange'; max: Scalars['BigDecimal']['output']; @@ -195,23 +266,34 @@ export type GqlPoolAprValue = GqlPoolAprRange | GqlPoolAprTotal; export type GqlPoolBase = { /** The contract address of the pool. */ address: Scalars['Bytes']['output']; - /** Returns all pool tokens, including any nested tokens and phantom BPTs on one level. */ + /** + * Returns all pool tokens, including any nested tokens and phantom BPTs on one level. + * @deprecated Use poolTokens instead + */ allTokens: Array; + /** List of categories assigned by the team based on external factors */ + categories?: Maybe>>; /** The chain on which the pool is deployed */ chain: GqlChain; /** The timestamp the pool was created. */ createTime: Scalars['Int']['output']; /** The decimals of the BPT, usually 18 */ decimals: Scalars['Int']['output']; - /** Only returns main tokens, also known as leave tokens. Wont return any nested BPTs. Used for displaying the tokens that the pool consists of. */ + /** + * Only returns main tokens, also known as leave tokens. Wont return any nested BPTs. Used for displaying the tokens that the pool consists of. + * @deprecated Use poolTokens instead + */ displayTokens: Array; /** Dynamic data such as token balances, swap fees or volume */ dynamicData: GqlPoolDynamicData; /** The factory contract address from which the pool was created. */ factory?: Maybe; - /** The pool id. This is equal to the address for vaultVersion 3 pools */ + /** The pool id. This is equal to the address for protocolVersion 3 pools */ id: Scalars['ID']['output']; - /** Deprecated */ + /** + * Deprecated + * @deprecated Removed without replacement + */ investConfig: GqlPoolInvestConfig; /** The name of the pool as per contract */ name: Scalars['String']['output']; @@ -219,19 +301,29 @@ export type GqlPoolBase = { owner?: Maybe; /** Returns all pool tokens, including BPTs and nested pools if there are any. Only one nested level deep. */ poolTokens: Array; + /** The protocol version on which the pool is deployed, 1, 2 or 3 */ + protocolVersion: Scalars['Int']['output']; /** Staking options of this pool which emit additional rewards */ staking?: Maybe; /** The token symbol of the pool as per contract */ symbol: Scalars['String']['output']; + /** List of tags assigned by the team based on external factors */ + tags?: Maybe>>; /** The pool type, such as weighted, stable, etc. */ type: GqlPoolType; /** If a user address was provided in the query, the user balance is populated here */ userBalance?: Maybe; - /** The vault version on which the pool is deployed, 2 or 3 */ + /** + * The vault version on which the pool is deployed, 2 or 3 + * @deprecated use protocolVersion instead + */ vaultVersion: Scalars['Int']['output']; /** The version of the pool type. */ version: Scalars['Int']['output']; - /** Deprecated */ + /** + * Deprecated + * @deprecated Removed without replacement + */ withdrawConfig: GqlPoolWithdrawConfig; }; @@ -278,6 +370,7 @@ export type GqlPoolComposableStable = GqlPoolBase & { allTokens: Array; amp: Scalars['BigInt']['output']; bptPriceRate: Scalars['BigDecimal']['output']; + categories?: Maybe>>; chain: GqlChain; createTime: Scalars['Int']['output']; decimals: Scalars['Int']['output']; @@ -285,18 +378,27 @@ export type GqlPoolComposableStable = GqlPoolBase & { dynamicData: GqlPoolDynamicData; factory?: Maybe; id: Scalars['ID']['output']; + /** @deprecated Removed without replacement */ investConfig: GqlPoolInvestConfig; name: Scalars['String']['output']; nestingType: GqlPoolNestingType; owner: Scalars['Bytes']['output']; poolTokens: Array; + protocolVersion: Scalars['Int']['output']; staking?: Maybe; symbol: Scalars['String']['output']; + tags?: Maybe>>; + /** + * All tokens of the pool. If it is a nested pool, the nested pool is expanded with its own tokens again. + * @deprecated Use poolTokens instead + */ tokens: Array; type: GqlPoolType; userBalance?: Maybe; + /** @deprecated use protocolVersion instead */ vaultVersion: Scalars['Int']['output']; version: Scalars['Int']['output']; + /** @deprecated Removed without replacement */ withdrawConfig: GqlPoolWithdrawConfig; }; @@ -305,6 +407,7 @@ export type GqlPoolComposableStableNested = { address: Scalars['Bytes']['output']; amp: Scalars['BigInt']['output']; bptPriceRate: Scalars['BigDecimal']['output']; + categories?: Maybe>>; createTime: Scalars['Int']['output']; factory?: Maybe; id: Scalars['ID']['output']; @@ -313,6 +416,8 @@ export type GqlPoolComposableStableNested = { owner: Scalars['Bytes']['output']; swapFee: Scalars['BigDecimal']['output']; symbol: Scalars['String']['output']; + tags?: Maybe>>; + /** @deprecated Use poolTokens instead */ tokens: Array; totalLiquidity: Scalars['BigDecimal']['output']; totalShares: Scalars['BigDecimal']['output']; @@ -322,7 +427,13 @@ export type GqlPoolComposableStableNested = { export type GqlPoolDynamicData = { __typename?: 'GqlPoolDynamicData'; + /** Protocol and pool creator fees combined */ + aggregateSwapFee: Scalars['BigDecimal']['output']; + /** Protocol and pool creator fees combined */ + aggregateYieldFee: Scalars['BigDecimal']['output']; + /** @deprecated Use aprItems instead */ apr: GqlPoolApr; + aprItems: Array; fees24h: Scalars['BigDecimal']['output']; fees24hAth: Scalars['BigDecimal']['output']; fees24hAthTimestamp: Scalars['Int']['output']; @@ -330,6 +441,7 @@ export type GqlPoolDynamicData = { fees24hAtlTimestamp: Scalars['Int']['output']; fees48h: Scalars['BigDecimal']['output']; holdersCount: Scalars['BigInt']['output']; + /** True for bricked pools */ isInRecoveryMode: Scalars['Boolean']['output']; isPaused: Scalars['Boolean']['output']; lifetimeSwapFees: Scalars['BigDecimal']['output']; @@ -339,6 +451,11 @@ export type GqlPoolDynamicData = { sharePriceAthTimestamp: Scalars['Int']['output']; sharePriceAtl: Scalars['BigDecimal']['output']; sharePriceAtlTimestamp: Scalars['Int']['output']; + /** CowAmm specific, equivalent of swap fees */ + surplus24h: Scalars['BigDecimal']['output']; + /** CowAmm specific, equivalent of swap fees */ + surplus48h: Scalars['BigDecimal']['output']; + /** Disabled for bricked pools */ swapEnabled: Scalars['Boolean']['output']; swapFee: Scalars['BigDecimal']['output']; swapsCount: Scalars['BigInt']['output']; @@ -365,6 +482,7 @@ export type GqlPoolElement = GqlPoolBase & { address: Scalars['Bytes']['output']; allTokens: Array; baseToken: Scalars['Bytes']['output']; + categories?: Maybe>>; chain: GqlChain; createTime: Scalars['Int']['output']; decimals: Scalars['Int']['output']; @@ -372,34 +490,53 @@ export type GqlPoolElement = GqlPoolBase & { dynamicData: GqlPoolDynamicData; factory?: Maybe; id: Scalars['ID']['output']; + /** @deprecated Removed without replacement */ investConfig: GqlPoolInvestConfig; name: Scalars['String']['output']; owner: Scalars['Bytes']['output']; poolTokens: Array; principalToken: Scalars['Bytes']['output']; + protocolVersion: Scalars['Int']['output']; staking?: Maybe; symbol: Scalars['String']['output']; + tags?: Maybe>>; + /** @deprecated Use poolTokens instead */ tokens: Array; type: GqlPoolType; unitSeconds: Scalars['BigInt']['output']; userBalance?: Maybe; + /** @deprecated use protocolVersion instead */ vaultVersion: Scalars['Int']['output']; version: Scalars['Int']['output']; + /** @deprecated Removed without replacement */ withdrawConfig: GqlPoolWithdrawConfig; }; +/** Represents an event that occurs in a pool. */ export type GqlPoolEvent = { + /** The block number of the event. */ blockNumber: Scalars['Int']['output']; + /** The block timestamp of the event. */ blockTimestamp: Scalars['Int']['output']; + /** The chain on which the event occurred. */ chain: GqlChain; + /** The unique identifier of the event. */ id: Scalars['ID']['output']; + /** The log index of the event. */ logIndex: Scalars['Int']['output']; + /** The pool ID associated with the event. */ poolId: Scalars['String']['output']; + /** The sender of the event. */ sender: Scalars['String']['output']; + /** The timestamp of the event. */ timestamp: Scalars['Int']['output']; + /** The transaction hash of the event. */ tx: Scalars['String']['output']; + /** The type of the event. */ type: GqlPoolEventType; + /** The user address associated with the event. */ userAddress: Scalars['String']['output']; + /** The USD value of this event. */ valueUSD: Scalars['Float']['output']; }; @@ -423,11 +560,15 @@ export type GqlPoolEventsDataRange = | '%future added value'; export type GqlPoolEventsFilter = { - chain: GqlChain; - poolId: Scalars['String']['input']; + chainIn?: InputMaybe>>; + poolIdIn?: InputMaybe>>; range?: InputMaybe; typeIn?: InputMaybe>>; userAddress?: InputMaybe; + /** USD value of the event */ + valueUSD_gt?: InputMaybe; + /** USD value of the event */ + valueUSD_gte?: InputMaybe; }; export type GqlPoolFeaturedPool = { @@ -449,8 +590,6 @@ export type GqlPoolFeaturedPoolGroup = { export type GqlPoolFeaturedPoolGroupItem = GqlFeaturePoolGroupItemExternalLink | GqlPoolMinimal; export type GqlPoolFilter = { - categoryIn?: InputMaybe>; - categoryNotIn?: InputMaybe>; chainIn?: InputMaybe>; chainNotIn?: InputMaybe>; createTime?: InputMaybe; @@ -461,15 +600,33 @@ export type GqlPoolFilter = { minTvl?: InputMaybe; poolTypeIn?: InputMaybe>; poolTypeNotIn?: InputMaybe>; + protocolVersionIn?: InputMaybe>; + /** + * For list of tags see: https://github.com/balancer/metadata/blob/main/pools/index.json + * Use uppercase + */ + tagIn?: InputMaybe>; + /** + * For list of tags see: https://github.com/balancer/metadata/blob/main/pools/index.json + * Use uppercase + */ + tagNotIn?: InputMaybe>; tokensIn?: InputMaybe>; tokensNotIn?: InputMaybe>; userAddress?: InputMaybe; - vaultVersionIn?: InputMaybe>; }; export type GqlPoolFilterCategory = | 'BLACK_LISTED' | 'INCENTIVIZED' + | 'LRT' + | 'POINTS' + | 'POINTS_EIGENLAYER' + | 'POINTS_GYRO' + | 'POINTS_KELP' + | 'POINTS_RENZO' + | 'POINTS_SWELL' + | 'SUPERFEST' | '%future added value'; export type GqlPoolFx = GqlPoolBase & { @@ -478,6 +635,7 @@ export type GqlPoolFx = GqlPoolBase & { allTokens: Array; alpha: Scalars['String']['output']; beta: Scalars['String']['output']; + categories?: Maybe>>; chain: GqlChain; createTime: Scalars['Int']['output']; decimals: Scalars['Int']['output']; @@ -487,18 +645,27 @@ export type GqlPoolFx = GqlPoolBase & { epsilon: Scalars['String']['output']; factory?: Maybe; id: Scalars['ID']['output']; + /** @deprecated Removed without replacement */ investConfig: GqlPoolInvestConfig; lambda: Scalars['String']['output']; name: Scalars['String']['output']; owner?: Maybe; poolTokens: Array; + protocolVersion: Scalars['Int']['output']; staking?: Maybe; symbol: Scalars['String']['output']; + tags?: Maybe>>; + /** + * All tokens of the pool. If it is a nested pool, the nested pool is expanded with its own tokens again. + * @deprecated Use poolTokens instead + */ tokens: Array; type: GqlPoolType; userBalance?: Maybe; + /** @deprecated use protocolVersion instead */ vaultVersion: Scalars['Int']['output']; version: Scalars['Int']['output']; + /** @deprecated Removed without replacement */ withdrawConfig: GqlPoolWithdrawConfig; }; @@ -509,6 +676,7 @@ export type GqlPoolGyro = GqlPoolBase & { alpha: Scalars['String']['output']; beta: Scalars['String']['output']; c: Scalars['String']['output']; + categories?: Maybe>>; chain: GqlChain; createTime: Scalars['Int']['output']; dSq: Scalars['String']['output']; @@ -517,30 +685,39 @@ export type GqlPoolGyro = GqlPoolBase & { dynamicData: GqlPoolDynamicData; factory?: Maybe; id: Scalars['ID']['output']; + /** @deprecated Removed without replacement */ investConfig: GqlPoolInvestConfig; lambda: Scalars['String']['output']; name: Scalars['String']['output']; nestingType: GqlPoolNestingType; owner: Scalars['Bytes']['output']; poolTokens: Array; + protocolVersion: Scalars['Int']['output']; root3Alpha: Scalars['String']['output']; s: Scalars['String']['output']; sqrtAlpha: Scalars['String']['output']; sqrtBeta: Scalars['String']['output']; staking?: Maybe; symbol: Scalars['String']['output']; + tags?: Maybe>>; tauAlphaX: Scalars['String']['output']; tauAlphaY: Scalars['String']['output']; tauBetaX: Scalars['String']['output']; tauBetaY: Scalars['String']['output']; + /** + * All tokens of the pool. If it is a nested pool, the nested pool is expanded with its own tokens again. + * @deprecated Use poolTokens instead + */ tokens: Array; type: GqlPoolType; u: Scalars['String']['output']; userBalance?: Maybe; v: Scalars['String']['output']; + /** @deprecated use protocolVersion instead */ vaultVersion: Scalars['Int']['output']; version: Scalars['Int']['output']; w: Scalars['String']['output']; + /** @deprecated Removed without replacement */ withdrawConfig: GqlPoolWithdrawConfig; z: Scalars['String']['output']; }; @@ -592,6 +769,7 @@ export type GqlPoolLiquidityBootstrapping = GqlPoolBase & { __typename?: 'GqlPoolLiquidityBootstrapping'; address: Scalars['Bytes']['output']; allTokens: Array; + categories?: Maybe>>; chain: GqlChain; createTime: Scalars['Int']['output']; decimals: Scalars['Int']['output']; @@ -599,18 +777,27 @@ export type GqlPoolLiquidityBootstrapping = GqlPoolBase & { dynamicData: GqlPoolDynamicData; factory?: Maybe; id: Scalars['ID']['output']; + /** @deprecated Removed without replacement */ investConfig: GqlPoolInvestConfig; name: Scalars['String']['output']; nestingType: GqlPoolNestingType; owner: Scalars['Bytes']['output']; poolTokens: Array; + protocolVersion: Scalars['Int']['output']; staking?: Maybe; symbol: Scalars['String']['output']; + tags?: Maybe>>; + /** + * All tokens of the pool. If it is a nested pool, the nested pool is expanded with its own tokens again. + * @deprecated Use poolTokens instead + */ tokens: Array; type: GqlPoolType; userBalance?: Maybe; + /** @deprecated use protocolVersion instead */ vaultVersion: Scalars['Int']['output']; version: Scalars['Int']['output']; + /** @deprecated Removed without replacement */ withdrawConfig: GqlPoolWithdrawConfig; }; @@ -619,6 +806,7 @@ export type GqlPoolMetaStable = GqlPoolBase & { address: Scalars['Bytes']['output']; allTokens: Array; amp: Scalars['BigInt']['output']; + categories?: Maybe>>; chain: GqlChain; createTime: Scalars['Int']['output']; decimals: Scalars['Int']['output']; @@ -626,17 +814,23 @@ export type GqlPoolMetaStable = GqlPoolBase & { dynamicData: GqlPoolDynamicData; factory?: Maybe; id: Scalars['ID']['output']; + /** @deprecated Removed without replacement */ investConfig: GqlPoolInvestConfig; name: Scalars['String']['output']; owner: Scalars['Bytes']['output']; poolTokens: Array; + protocolVersion: Scalars['Int']['output']; staking?: Maybe; symbol: Scalars['String']['output']; + tags?: Maybe>>; + /** @deprecated Use poolTokens instead */ tokens: Array; type: GqlPoolType; userBalance?: Maybe; + /** @deprecated use protocolVersion instead */ vaultVersion: Scalars['Int']['output']; version: Scalars['Int']['output']; + /** @deprecated Removed without replacement */ withdrawConfig: GqlPoolWithdrawConfig; }; @@ -647,38 +841,66 @@ export type GqlPoolMinimal = { address: Scalars['Bytes']['output']; /** Returns all pool tokens, including any nested tokens and phantom BPTs */ allTokens: Array; + /** List of categories assigned by the team based on external factors */ + categories?: Maybe>>; /** The chain on which the pool is deployed */ chain: GqlChain; /** The timestamp the pool was created. */ createTime: Scalars['Int']['output']; /** The decimals of the BPT, usually 18 */ decimals: Scalars['Int']['output']; - /** Only returns main tokens, also known as leave tokens. Wont return any nested BPTs. Used for displaying the tokens that the pool consists of. */ + /** Only returns main or underlying tokens, also known as leave tokens. Wont return any nested BPTs. Used for displaying the tokens that the pool consists of. */ displayTokens: Array; /** Dynamic data such as token balances, swap fees or volume */ dynamicData: GqlPoolDynamicData; /** The factory contract address from which the pool was created. */ factory?: Maybe; - /** The pool id. This is equal to the address for vaultVersion 3 pools */ + /** Whether at least one token in this pool is considered an ERC4626 token. */ + hasErc4626: Scalars['Boolean']['output']; + /** Hook assigned to a pool */ + hook?: Maybe; + /** The pool id. This is equal to the address for protocolVersion 3 pools */ id: Scalars['ID']['output']; + /** Pool is receiving rewards when liquidity tokens are staked */ + incentivized: Scalars['Boolean']['output']; /** The name of the pool as per contract */ name: Scalars['String']['output']; /** The wallet address of the owner of the pool. Pool owners can set certain properties like swapFees or AMP. */ owner?: Maybe; + /** The protocol version on which the pool is deployed, 1, 2 or 3 */ + protocolVersion: Scalars['Int']['output']; /** Staking options of this pool which emit additional rewards */ staking?: Maybe; /** The token symbol of the pool as per contract */ symbol: Scalars['String']['output']; + /** List of tags assigned by the team based on external factors */ + tags?: Maybe>>; /** The pool type, such as weighted, stable, etc. */ type: GqlPoolType; /** If a user address was provided in the query, the user balance is populated here */ userBalance?: Maybe; - /** The vault version on which the pool is deployed, 2 or 3 */ + /** + * The vault version on which the pool is deployed, 2 or 3 + * @deprecated use protocolVersion instead + */ vaultVersion: Scalars['Int']['output']; /** The version of the pool type. */ version: Scalars['Int']['output']; }; +/** Result of the poolReloadPools mutation */ +export type GqlPoolMutationResult = { + __typename?: 'GqlPoolMutationResult'; + /** The chain that was reloaded. */ + chain: GqlChain; + /** The error message */ + error?: Maybe; + /** Whether it was successful or not. */ + success: Scalars['Boolean']['output']; + /** The type of pools that were reloaded. */ + type: Scalars['String']['output']; +}; + export type GqlPoolNestedUnion = GqlPoolComposableStableNested; export type GqlPoolNestingType = @@ -710,10 +932,12 @@ export type GqlPoolSnapshot = { id: Scalars['ID']['output']; poolId: Scalars['String']['output']; sharePrice: Scalars['String']['output']; + surplus24h: Scalars['String']['output']; swapsCount: Scalars['String']['output']; timestamp: Scalars['Int']['output']; totalLiquidity: Scalars['String']['output']; totalShares: Scalars['String']['output']; + totalSurplus: Scalars['String']['output']; totalSwapFee: Scalars['String']['output']; totalSwapVolume: Scalars['String']['output']; volume24h: Scalars['String']['output']; @@ -732,6 +956,7 @@ export type GqlPoolStable = GqlPoolBase & { address: Scalars['Bytes']['output']; allTokens: Array; amp: Scalars['BigInt']['output']; + categories?: Maybe>>; chain: GqlChain; createTime: Scalars['Int']['output']; decimals: Scalars['Int']['output']; @@ -739,17 +964,23 @@ export type GqlPoolStable = GqlPoolBase & { dynamicData: GqlPoolDynamicData; factory?: Maybe; id: Scalars['ID']['output']; + /** @deprecated Removed without replacement */ investConfig: GqlPoolInvestConfig; name: Scalars['String']['output']; owner: Scalars['Bytes']['output']; poolTokens: Array; + protocolVersion: Scalars['Int']['output']; staking?: Maybe; symbol: Scalars['String']['output']; + tags?: Maybe>>; + /** @deprecated Use poolTokens instead */ tokens: Array; type: GqlPoolType; userBalance?: Maybe; + /** @deprecated use protocolVersion instead */ vaultVersion: Scalars['Int']['output']; version: Scalars['Int']['output']; + /** @deprecated Removed without replacement */ withdrawConfig: GqlPoolWithdrawConfig; }; @@ -766,12 +997,23 @@ export type GqlPoolStableComposablePoolData = { export type GqlPoolStaking = { __typename?: 'GqlPoolStaking'; address: Scalars['String']['output']; + aura?: Maybe; chain: GqlChain; farm?: Maybe; gauge?: Maybe; id: Scalars['ID']['output']; reliquary?: Maybe; type: GqlPoolStakingType; + vebal?: Maybe; +}; + +export type GqlPoolStakingAura = { + __typename?: 'GqlPoolStakingAura'; + apr: Scalars['Float']['output']; + auraPoolAddress: Scalars['String']['output']; + auraPoolId: Scalars['String']['output']; + id: Scalars['ID']['output']; + isShutdown: Scalars['Boolean']['output']; }; export type GqlPoolStakingFarmRewarder = { @@ -842,12 +1084,20 @@ export type GqlPoolStakingReliquaryFarmLevel = { }; export type GqlPoolStakingType = + | 'AURA' | 'FRESH_BEETS' | 'GAUGE' | 'MASTER_CHEF' | 'RELIQUARY' + | 'VEBAL' | '%future added value'; +export type GqlPoolStakingVebal = { + __typename?: 'GqlPoolStakingVebal'; + id: Scalars['ID']['output']; + vebalAddress: Scalars['String']['output']; +}; + export type GqlPoolSwap = { __typename?: 'GqlPoolSwap'; chain: GqlChain; @@ -863,21 +1113,75 @@ export type GqlPoolSwap = { valueUSD: Scalars['Float']['output']; }; +/** Represents an event that occurs when a swap is made in a pool using the CowAmm protocol. */ +export type GqlPoolSwapEventCowAmm = GqlPoolEvent & { + __typename?: 'GqlPoolSwapEventCowAmm'; + /** The block number of the event. */ + blockNumber: Scalars['Int']['output']; + /** The block timestamp of the event. */ + blockTimestamp: Scalars['Int']['output']; + /** The chain on which the event occurred. */ + chain: GqlChain; + /** The fee that this swap generated. */ + fee: GqlPoolEventAmount; + /** The unique identifier of the event. */ + id: Scalars['ID']['output']; + /** The log index of the event. */ + logIndex: Scalars['Int']['output']; + /** The pool ID associated with the event. */ + poolId: Scalars['String']['output']; + /** The sender of the event. */ + sender: Scalars['String']['output']; + /** The surplus generated by the swap. */ + surplus: GqlPoolEventAmount; + /** The timestamp of the event. */ + timestamp: Scalars['Int']['output']; + /** The token that was swapped in the event. */ + tokenIn: GqlPoolEventAmount; + /** The token that was swapped out in the event. */ + tokenOut: GqlPoolEventAmount; + /** The transaction hash of the event. */ + tx: Scalars['String']['output']; + /** The type of the event. */ + type: GqlPoolEventType; + /** The user address associated with the event. */ + userAddress: Scalars['String']['output']; + /** The value of the event in USD. */ + valueUSD: Scalars['Float']['output']; +}; + +/** Represents an event that occurs when a swap is made in a pool. */ export type GqlPoolSwapEventV3 = GqlPoolEvent & { __typename?: 'GqlPoolSwapEventV3'; + /** The block number of the event. */ blockNumber: Scalars['Int']['output']; + /** The block timestamp of the event. */ blockTimestamp: Scalars['Int']['output']; + /** The chain on which the event occurred. */ chain: GqlChain; + /** The fee that this swap generated. */ + fee: GqlPoolEventAmount; + /** The unique identifier of the event. */ id: Scalars['ID']['output']; + /** The log index of the event. */ logIndex: Scalars['Int']['output']; + /** The pool ID associated with the event. */ poolId: Scalars['String']['output']; + /** The sender of the event. */ sender: Scalars['String']['output']; + /** The timestamp of the event. */ timestamp: Scalars['Int']['output']; + /** The token that was swapped in the event. */ tokenIn: GqlPoolEventAmount; + /** The token that was swapped out in the event. */ tokenOut: GqlPoolEventAmount; + /** The transaction hash of the event. */ tx: Scalars['String']['output']; + /** The type of the event. */ type: GqlPoolEventType; + /** The user address associated with the event. */ userAddress: Scalars['String']['output']; + /** The value of the event in USD. */ valueUSD: Scalars['Float']['output']; }; @@ -940,19 +1244,45 @@ export type GqlPoolTokenComposableStable = GqlPoolTokenBase & { export type GqlPoolTokenComposableStableNestedUnion = GqlPoolToken; +/** + * All info on the pool token. It will also include the nested pool if the token is a BPT. It will only support 1 level of nesting. + * A second (unsupported) level of nesting is shown by having hasNestedPool = true but nestedPool = null. + */ export type GqlPoolTokenDetail = { __typename?: 'GqlPoolTokenDetail'; + /** Address of the pool token. */ address: Scalars['String']['output']; + /** Balance of the pool token inside the pool. */ balance: Scalars['BigDecimal']['output']; + /** USD Balance of the pool token. */ + balanceUSD: Scalars['BigDecimal']['output']; + /** Decimals of the pool token. */ decimals: Scalars['Int']['output']; + /** Indicates whether this token is a BPT and therefor has a nested pool. */ hasNestedPool: Scalars['Boolean']['output']; + /** Id of the token. A combination of pool id and token address. */ id: Scalars['ID']['output']; + /** Index of the pool token in the pool as returned by the vault. */ index: Scalars['Int']['output']; + /** Whether the token is in the allow list. */ + isAllowed: Scalars['Boolean']['output']; + /** Whether the token is considered an ERC4626 token. */ + isErc4626: Scalars['Boolean']['output']; + /** Name of the pool token. */ name: Scalars['String']['output']; + /** Additional data for the nested pool if the token is a BPT. Null otherwise. */ nestedPool?: Maybe; + /** If it is an appreciating token, it shows the current price rate. 1 otherwise. */ priceRate: Scalars['BigDecimal']['output']; + /** The address of the price rate provider. */ priceRateProvider?: Maybe; + /** Additional data for the price rate provider, such as reviews or warnings. */ + priceRateProviderData?: Maybe; + /** Symbol of the pool token. */ symbol: Scalars['String']['output']; + /** If it is an Erc4262, this will be the underlying token if present in the API. */ + underlyingToken?: Maybe; + /** The weight of the token in the pool if it is a weighted pool, null otherwise */ weight?: Maybe; }; @@ -971,6 +1301,7 @@ export type GqlPoolTokenExpanded = { address: Scalars['String']['output']; decimals: Scalars['Int']['output']; id: Scalars['ID']['output']; + isErc4626: Scalars['Boolean']['output']; isMainToken: Scalars['Boolean']['output']; isNested: Scalars['Boolean']['output']; isPhantomBpt: Scalars['Boolean']['output']; @@ -984,6 +1315,7 @@ export type GqlPoolTokenUnion = GqlPoolToken | GqlPoolTokenComposableStable; /** Supported pool types */ export type GqlPoolType = | 'COMPOSABLE_STABLE' + | 'COW_AMM' | 'ELEMENT' | 'FX' | 'GYRO' @@ -1003,10 +1335,8 @@ export type GqlPoolUnion = GqlPoolComposableStable | GqlPoolElement | GqlPoolFx /** If a user address was provided in the query, the user balance is populated here */ export type GqlPoolUserBalance = { __typename?: 'GqlPoolUserBalance'; - /** The staked balance in either a gauge or farm as float. */ - stakedBalance: Scalars['AmountHumanReadable']['output']; - /** The staked balance in either a gauge or farm in USD as float. */ - stakedBalanceUsd: Scalars['Float']['output']; + /** The staked BPT balances of the user. */ + stakedBalances: Array; /** Total balance (wallet + staked) as float */ totalBalance: Scalars['AmountHumanReadable']['output']; /** Total balance (wallet + staked) in USD as float */ @@ -1027,6 +1357,7 @@ export type GqlPoolWeighted = GqlPoolBase & { __typename?: 'GqlPoolWeighted'; address: Scalars['Bytes']['output']; allTokens: Array; + categories?: Maybe>>; chain: GqlChain; createTime: Scalars['Int']['output']; decimals: Scalars['Int']['output']; @@ -1034,19 +1365,27 @@ export type GqlPoolWeighted = GqlPoolBase & { dynamicData: GqlPoolDynamicData; factory?: Maybe; id: Scalars['ID']['output']; + /** @deprecated Removed without replacement */ investConfig: GqlPoolInvestConfig; name: Scalars['String']['output']; nestingType: GqlPoolNestingType; owner: Scalars['Bytes']['output']; poolTokens: Array; + protocolVersion: Scalars['Int']['output']; staking?: Maybe; symbol: Scalars['String']['output']; - /** All tokens of the pool. If it is a nested pool, the nested pool is expanded with its own tokens again. */ + tags?: Maybe>>; + /** + * All tokens of the pool. If it is a nested pool, the nested pool is expanded with its own tokens again. + * @deprecated Use poolTokens instead + */ tokens: Array; type: GqlPoolType; userBalance?: Maybe; + /** @deprecated use protocolVersion instead */ vaultVersion: Scalars['Int']['output']; version: Scalars['Int']['output']; + /** @deprecated Removed without replacement */ withdrawConfig: GqlPoolWithdrawConfig; }; @@ -1073,6 +1412,36 @@ export type GqlPriceImpact = { priceImpact?: Maybe; }; +/** Represents the data of a price rate provider */ +export type GqlPriceRateProviderData = { + __typename?: 'GqlPriceRateProviderData'; + /** The address of the price rate provider */ + address: Scalars['String']['output']; + /** The factory used to create the price rate provider, if applicable */ + factory?: Maybe; + /** The name of the price rate provider */ + name?: Maybe; + /** The filename of the review of the price rate provider */ + reviewFile?: Maybe; + /** Indicates if the price rate provider has been reviewed */ + reviewed: Scalars['Boolean']['output']; + /** A summary of the price rate provider, usually just says safe or unsafe */ + summary?: Maybe; + /** Upgradeable components of the price rate provider */ + upgradeableComponents?: Maybe>>; + /** Warnings associated with the price rate provider */ + warnings?: Maybe>; +}; + +/** Represents an upgradeable component of a price rate provider */ +export type GqlPriceRateProviderUpgradeableComponent = { + __typename?: 'GqlPriceRateProviderUpgradeableComponent'; + /** The entry point / proxy of the upgradeable component */ + entryPoint: Scalars['String']['output']; + /** Indicates if the implementation of the component has been reviewed */ + implementationReviewed: Scalars['String']['output']; +}; + export type GqlProtocolMetricsAggregated = { __typename?: 'GqlProtocolMetricsAggregated'; chains: Array; @@ -1252,6 +1621,8 @@ export type GqlSorGetSwapPaths = { paths: Array; /** Price impact of the path */ priceImpact: GqlPriceImpact; + /** The version of the protocol these paths are from */ + protocolVersion: Scalars['Int']['output']; /** The return amount in human form. Return amount is either tokenOutAmount (if swapType is exactIn) or tokenInAmount (if swapType is exactOut) */ returnAmount: Scalars['AmountHumanReadable']['output']; /** The return amount in a raw form */ @@ -1276,7 +1647,10 @@ export type GqlSorGetSwapPaths = { tokenOut: Scalars['String']['output']; /** The amount of tokenOut in human form */ tokenOutAmount: Scalars['AmountHumanReadable']['output']; - /** The version of the vault these paths are from */ + /** + * The version of the vault these paths are from + * @deprecated Use protocolVersion instead + */ vaultVersion: Scalars['Int']['output']; }; @@ -1308,13 +1682,20 @@ export type GqlSorPath = { __typename?: 'GqlSorPath'; /** Input amount of this path in scaled form */ inputAmountRaw: Scalars['String']['output']; + /** A sorted list of booleans that indicate if the respective pool is a buffer */ + isBuffer: Array>; /** Output amount of this path in scaled form */ outputAmountRaw: Scalars['String']['output']; /** A sorted list of pool ids that are used in this path */ pools: Array>; + /** The version of the protocol these paths are from */ + protocolVersion: Scalars['Int']['output']; /** A sorted list of tokens that are ussed in this path */ tokens: Array>; - /** Vault version of this path. */ + /** + * Vault version of this path. + * @deprecated Use protocolVersion instead + */ vaultVersion: Scalars['Int']['output']; }; @@ -1391,21 +1772,44 @@ export type GqlSwapCallDataInput = { slippagePercentage: Scalars['String']['input']; }; +/** Represents a token */ export type GqlToken = { __typename?: 'GqlToken'; + /** The address of the token */ address: Scalars['String']['output']; + /** The chain of the token */ chain: GqlChain; + /** The chain ID of the token */ chainId: Scalars['Int']['output']; + /** The coingecko ID for this token, if present */ + coingeckoId?: Maybe; + /** The number of decimal places for the token */ decimals: Scalars['Int']['output']; + /** The description of the token */ description?: Maybe; + /** The Discord URL of the token */ discordUrl?: Maybe; + /** Whether the token is considered an ERC4626 token. */ + isErc4626: Scalars['Boolean']['output']; + /** The logo URI of the token */ logoURI?: Maybe; + /** The name of the token */ name: Scalars['String']['output']; + /** The rate provider data for the token */ + priceRateProviderData?: Maybe; + /** The priority of the token, can be used for sorting. */ priority: Scalars['Int']['output']; + /** The rate provider data for the token */ + rateProviderData?: Maybe; + /** The symbol of the token */ symbol: Scalars['String']['output']; + /** The Telegram URL of the token */ telegramUrl?: Maybe; + /** Indicates if the token is tradable */ tradable: Scalars['Boolean']['output']; + /** The Twitter username of the token */ twitterUsername?: Maybe; + /** The website URL of the token */ websiteUrl?: Maybe; }; @@ -1443,25 +1847,52 @@ export type GqlTokenData = { websiteUrl?: Maybe; }; +/** Represents additional data for a token */ export type GqlTokenDynamicData = { __typename?: 'GqlTokenDynamicData'; + /** The all-time high price of the token */ ath: Scalars['Float']['output']; + /** The all-time low price of the token */ atl: Scalars['Float']['output']; + /** The fully diluted valuation of the token */ fdv?: Maybe; + /** The highest price in the last 24 hours */ high24h: Scalars['Float']['output']; + /** The unique identifier of the dynamic data */ id: Scalars['String']['output']; + /** The lowest price in the last 24 hours */ low24h: Scalars['Float']['output']; + /** The market capitalization of the token */ marketCap?: Maybe; + /** The current price of the token */ price: Scalars['Float']['output']; + /** The price change in the last 24 hours */ priceChange24h: Scalars['Float']['output']; + /** The percentage price change in the last 7 days */ priceChangePercent7d?: Maybe; + /** The percentage price change in the last 14 days */ priceChangePercent14d?: Maybe; + /** The percentage price change in the last 24 hours */ priceChangePercent24h: Scalars['Float']['output']; + /** The percentage price change in the last 30 days */ priceChangePercent30d?: Maybe; + /** The address of the token */ tokenAddress: Scalars['String']['output']; + /** The timestamp when the data was last updated */ updatedAt: Scalars['String']['output']; }; +/** Result of the poolReloadPools mutation */ +export type GqlTokenMutationResult = { + __typename?: 'GqlTokenMutationResult'; + /** The chain that was reloaded. */ + chain: GqlChain; + /** The error message */ + error?: Maybe; + /** Whether it was successful or not. */ + success: Scalars['Boolean']['output']; +}; + export type GqlTokenPrice = { __typename?: 'GqlTokenPrice'; address: Scalars['String']['output']; @@ -1503,46 +1934,119 @@ export type GqlUserPoolBalance = { walletBalance: Scalars['AmountHumanReadable']['output']; }; +export type GqlUserStakedBalance = { + __typename?: 'GqlUserStakedBalance'; + /** The staked BPT balance as float. */ + balance: Scalars['AmountHumanReadable']['output']; + /** The steaked BPT balance in USD as float. */ + balanceUsd: Scalars['Float']['output']; + /** The id of the staking to match with GqlPoolStaking.id. */ + stakingId: Scalars['String']['output']; + /** The staking type (Gauge, farm, aura, etc.) in which this balance is staked. */ + stakingType: GqlPoolStakingType; +}; + export type GqlUserSwapVolumeFilter = { poolIdIn?: InputMaybe>; tokenInIn?: InputMaybe>; tokenOutIn?: InputMaybe>; }; +export type GqlVeBalBalance = { + __typename?: 'GqlVeBalBalance'; + balance: Scalars['AmountHumanReadable']['output']; + chain: GqlChain; + locked: Scalars['AmountHumanReadable']['output']; + lockedUsd: Scalars['AmountHumanReadable']['output']; +}; + export type GqlVeBalUserData = { __typename?: 'GqlVeBalUserData'; balance: Scalars['AmountHumanReadable']['output']; + locked: Scalars['AmountHumanReadable']['output']; + lockedUsd: Scalars['AmountHumanReadable']['output']; rank?: Maybe; }; +/** The Gauge that can be voted on through veBAL and that will ultimately receive the rewards. */ export type GqlVotingGauge = { __typename?: 'GqlVotingGauge'; + /** The timestamp the gauge was added. */ addedTimestamp?: Maybe; + /** The address of the root gauge on Ethereum mainnet. */ address: Scalars['Bytes']['output']; + /** The address of the child gauge on the specific chain. */ childGaugeAddress?: Maybe; + /** Whether the gauge is killed or not. */ isKilled: Scalars['Boolean']['output']; + /** The relative weight the gauge received this epoch (not more than 1.0). */ + relativeWeight: Scalars['String']['output']; + /** The relative weight cap. 1.0 for uncapped. */ relativeWeightCap?: Maybe; }; +/** A token inside of a pool with a voting gauge. */ export type GqlVotingGaugeToken = { __typename?: 'GqlVotingGaugeToken'; + /** The address of the token. */ address: Scalars['String']['output']; + /** The URL to the token logo. */ logoURI: Scalars['String']['output']; + /** The symbol of the token. */ symbol: Scalars['String']['output']; + /** If it is a weighted pool, the weigh of the token is shown here in %. 0.5 = 50%. */ weight?: Maybe; }; +/** The pool that can be voted on through veBAL */ export type GqlVotingPool = { __typename?: 'GqlVotingPool'; + /** The address of the pool. */ address: Scalars['Bytes']['output']; + /** The chain this pool is on. */ chain: GqlChain; + /** The gauge that is connected to the pool and that will receive the rewards. */ gauge: GqlVotingGauge; + /** Pool ID */ id: Scalars['ID']['output']; + /** The symbol of the pool. */ symbol: Scalars['String']['output']; + /** The tokens inside the pool. */ tokens: Array; + /** The type of the pool. */ type: GqlPoolType; }; +/** Hook data */ +export type Hook = { + __typename?: 'Hook'; + address: Scalars['String']['output']; + chain: GqlChain; + /** Data points changing over time */ + dynamicData?: Maybe; + /** True when hook can change the amounts send to the vault. Necessary to deduct the fees. */ + enableHookAdjustedAmounts: Scalars['Boolean']['output']; + /** List of pools using the hook */ + poolsIds?: Maybe>>; + shouldCallAfterAddLiquidity: Scalars['Boolean']['output']; + shouldCallAfterInitialize: Scalars['Boolean']['output']; + shouldCallAfterRemoveLiquidity: Scalars['Boolean']['output']; + shouldCallAfterSwap: Scalars['Boolean']['output']; + shouldCallBeforeAddLiquidity: Scalars['Boolean']['output']; + shouldCallBeforeInitialize: Scalars['Boolean']['output']; + shouldCallBeforeRemoveLiquidity: Scalars['Boolean']['output']; + shouldCallBeforeSwap: Scalars['Boolean']['output']; + shouldCallComputeDynamicSwapFee: Scalars['Boolean']['output']; +}; + +/** Collection of hook specific data. Percentage format is 0.01 -> 0.01%. */ +export type HookData = { + __typename?: 'HookData'; + addLiquidityFeePercentage?: Maybe; + removeLiquidityFeePercentage?: Maybe; + swapFeePercentage?: Maybe; +}; + export type Mutation = { __typename?: 'Mutation'; beetsPoolLoadReliquarySnapshotsForAllFarms: Scalars['String']['output']; @@ -1559,7 +2063,9 @@ export type Mutation = { poolLoadSnapshotsForPools: Scalars['String']['output']; poolReloadAllPoolAprs: Scalars['String']['output']; poolReloadAllTokenNestedPoolIds: Scalars['String']['output']; + poolReloadPools: Array; poolReloadStakingForAllPools: Scalars['String']['output']; + poolSyncAllCowSnapshots: Array; poolSyncAllPoolsFromSubgraph: Array; poolSyncLatestSnapshotsForAllPools: Scalars['String']['output']; poolSyncNewPoolsFromSubgraph: Array; @@ -1579,6 +2085,7 @@ export type Mutation = { sftmxSyncWithdrawalRequests: Scalars['String']['output']; tokenDeleteTokenType: Scalars['String']['output']; tokenReloadAllTokenTypes: Scalars['String']['output']; + tokenReloadErc4626Tokens: Array; tokenReloadTokenPrices?: Maybe; tokenSyncLatestFxPrices: Scalars['String']['output']; tokenSyncTokenDefinitions: Scalars['String']['output']; @@ -1625,13 +2132,23 @@ export type MutationPoolReloadAllPoolAprsArgs = { }; +export type MutationPoolReloadPoolsArgs = { + chains: Array; +}; + + export type MutationPoolReloadStakingForAllPoolsArgs = { stakingTypes: Array; }; +export type MutationPoolSyncAllCowSnapshotsArgs = { + chains: Array; +}; + + export type MutationPoolSyncLatestSnapshotsForAllPoolsArgs = { - daysToSync?: InputMaybe; + chain: GqlChain; }; @@ -1651,6 +2168,11 @@ export type MutationTokenDeleteTokenTypeArgs = { }; +export type MutationTokenReloadErc4626TokensArgs = { + chains: Array; +}; + + export type MutationTokenReloadTokenPricesArgs = { chains: Array; }; @@ -1684,18 +2206,29 @@ export type Query = { blocksGetBlocksPerSecond: Scalars['Float']['output']; blocksGetBlocksPerYear: Scalars['Float']['output']; contentGetNewsItems: Array; + /** Returns list of hooks. */ + hooks?: Maybe>; latestSyncedBlocks: GqlLatestSyncedBlocks; /** Getting swap, add and remove events with paging */ poolEvents: Array; - /** Will de deprecated in favor of poolEvents */ + /** + * Will de deprecated in favor of poolEvents + * @deprecated Use poolEvents instead + */ poolGetBatchSwaps: Array; /** Getting swap, add and remove events with range */ poolGetEvents: Array; - /** Will de deprecated in favor of poolGetFeaturedPools */ + /** + * Will de deprecated in favor of poolGetFeaturedPools + * @deprecated Use poolGetFeaturedPools instead + */ poolGetFeaturedPoolGroups: Array; /** Returns the list of featured pools for chains */ poolGetFeaturedPools: Array; - /** Will de deprecated in favor of poolEvents */ + /** + * Will de deprecated in favor of poolEvents + * @deprecated Use poolEvents instead + */ poolGetJoinExits: Array; /** Returns one pool. If a user address is provided, the user balances for the given pool will also be returned. */ poolGetPool: GqlPoolBase; @@ -1705,7 +2238,10 @@ export type Query = { poolGetPoolsCount: Scalars['Int']['output']; /** Gets all the snapshots for a given pool on a chain for a certain range */ poolGetSnapshots: Array; - /** Will de deprecated in favor of poolEvents */ + /** + * Will de deprecated in favor of poolEvents + * @deprecated Use poolEvents instead + */ poolGetSwaps: Array; protocolMetricsAggregated: GqlProtocolMetricsAggregated; protocolMetricsChain: GqlProtocolMetricsChain; @@ -1719,16 +2255,42 @@ export type Query = { sorGetSwapPaths: GqlSorGetSwapPaths; /** Get swap quote from the SOR, queries both the old and new SOR */ sorGetSwaps: GqlSorGetSwapsResponse; + /** + * Returns the candlestick chart data for a token for a given range. + * @deprecated Use tokenGetHistoricalPrices instead + */ tokenGetCandlestickChartData: Array; + /** Returns all current prices for allowed tokens for a given chain or chains */ tokenGetCurrentPrices: Array; + /** Returns the historical prices for a given set of tokens for a given chain and range */ tokenGetHistoricalPrices: Array; + /** + * DEPRECATED: Returns pricing data for a given token for a given range + * @deprecated Use tokenGetHistoricalPrices instead + */ tokenGetPriceChartData: Array; + /** + * Returns the price of either BAL or BEETS depending on chain + * @deprecated Use tokenGetTokensDynamicData instead + */ tokenGetProtocolTokenPrice: Scalars['AmountHumanReadable']['output']; + /** Returns the price of a token priced in another token for a given range. */ tokenGetRelativePriceChartData: Array; + /** + * Returns meta data for a given token such as description, website, etc. + * @deprecated Use tokenGetTokens instead + */ tokenGetTokenData?: Maybe; + /** Returns dynamic data of a token such as price, market cap, etc. */ tokenGetTokenDynamicData?: Maybe; + /** Returns all allowed tokens for a given chain or chains */ tokenGetTokens: Array; + /** + * Returns meta data for a given set of tokens such as description, website, etc. + * @deprecated Use tokenGetTokens instead + */ tokenGetTokensData: Array; + /** Returns dynamic data of a set of tokens such as price, market cap, etc. */ tokenGetTokensDynamicData: Array; userGetFbeetsBalance: GqlUserFbeetsBalance; userGetPoolBalances: Array; @@ -1740,6 +2302,8 @@ export type Query = { veBalGetTotalSupply: Scalars['AmountHumanReadable']['output']; veBalGetUser: GqlVeBalUserData; veBalGetUserBalance: Scalars['AmountHumanReadable']['output']; + veBalGetUserBalances: Array; + /** Returns all pools with veBAL gauges that can be voted on. */ veBalGetVotingList: Array; }; @@ -1755,10 +2319,15 @@ export type QueryContentGetNewsItemsArgs = { }; +export type QueryHooksArgs = { + chain?: InputMaybe; +}; + + export type QueryPoolEventsArgs = { first?: InputMaybe; skip?: InputMaybe; - where: GqlPoolEventsFilter; + where?: InputMaybe; }; @@ -1864,7 +2433,7 @@ export type QuerySorGetSwapPathsArgs = { swapType: GqlSorSwapType; tokenIn: Scalars['String']['input']; tokenOut: Scalars['String']['input']; - useVaultVersion?: InputMaybe; + useProtocolVersion?: InputMaybe; }; @@ -1974,6 +2543,29 @@ export type QueryUserGetSwapsArgs = { skip?: InputMaybe; }; + +export type QueryVeBalGetTotalSupplyArgs = { + chain?: InputMaybe; +}; + + +export type QueryVeBalGetUserArgs = { + address: Scalars['String']['input']; + chain?: InputMaybe; +}; + + +export type QueryVeBalGetUserBalanceArgs = { + address?: InputMaybe; + chain?: InputMaybe; +}; + + +export type QueryVeBalGetUserBalancesArgs = { + address: Scalars['String']['input']; + chains?: InputMaybe>; +}; + export type Token = { __typename?: 'Token'; address: Scalars['String']['output']; diff --git a/packages/gql/src/balancer-api-v3/__generated__/Optimism.server.ts b/packages/gql/src/balancer-api-v3/__generated__/Optimism.server.ts index 5df748271..3527d6e6a 100644 --- a/packages/gql/src/balancer-api-v3/__generated__/Optimism.server.ts +++ b/packages/gql/src/balancer-api-v3/__generated__/Optimism.server.ts @@ -44,8 +44,10 @@ export type GqlChain = | 'AVALANCHE' | 'BASE' | 'FANTOM' + | 'FRAXTAL' | 'GNOSIS' | 'MAINNET' + | 'MODE' | 'OPTIMISM' | 'POLYGON' | 'SEPOLIA' @@ -128,41 +130,73 @@ export type GqlLatestSyncedBlocks = { userWalletSyncBlock: Scalars['BigInt']['output']; }; +/** All info on the nested pool if the token is a BPT. It will only support 1 level of nesting. */ export type GqlNestedPool = { __typename?: 'GqlNestedPool'; + /** Address of the pool. */ address: Scalars['Bytes']['output']; + /** Price rate of the Balancer Pool Token (BPT). */ bptPriceRate: Scalars['BigDecimal']['output']; + /** Timestamp of when the pool was created. */ createTime: Scalars['Int']['output']; + /** Address of the factory contract that created the pool, if applicable. */ factory?: Maybe; + /** Unique identifier of the pool. */ id: Scalars['ID']['output']; + /** Name of the pool. */ name: Scalars['String']['output']; + /** Total liquidity of the parent pool in the nested pool in USD. */ nestedLiquidity: Scalars['BigDecimal']['output']; + /** Percentage of the parents pool shares inside the nested pool. */ nestedPercentage: Scalars['BigDecimal']['output']; + /** Number of shares of the parent pool in the nested pool. */ nestedShares: Scalars['BigDecimal']['output']; + /** Address of the pool's owner. */ owner: Scalars['Bytes']['output']; + /** Fee charged for swapping tokens in the pool as %. 0.01 -> 0.01% */ swapFee: Scalars['BigDecimal']['output']; + /** Symbol of the pool. */ symbol: Scalars['String']['output']; + /** List of all tokens in the pool. */ tokens: Array; + /** Total liquidity in the pool in USD. */ totalLiquidity: Scalars['BigDecimal']['output']; + /** Total number of shares in the pool. */ totalShares: Scalars['BigDecimal']['output']; + /** Type of the pool. */ type: GqlPoolType; + /** Version of the pool. */ version: Scalars['Int']['output']; }; +/** Represents an event that occurs when liquidity is added or removed from a pool. */ export type GqlPoolAddRemoveEventV3 = GqlPoolEvent & { __typename?: 'GqlPoolAddRemoveEventV3'; + /** The block number of the event. */ blockNumber: Scalars['Int']['output']; + /** The block timestamp of the event. */ blockTimestamp: Scalars['Int']['output']; + /** The chain on which the event occurred. */ chain: GqlChain; + /** The unique identifier of the event. */ id: Scalars['ID']['output']; + /** The log index of the event. */ logIndex: Scalars['Int']['output']; + /** The pool ID associated with the event. */ poolId: Scalars['String']['output']; + /** The sender of the event. */ sender: Scalars['String']['output']; + /** The timestamp of the event. */ timestamp: Scalars['Int']['output']; + /** The tokens involved in the event. Ordered by poolToken index. */ tokens: Array; + /** The transaction hash of the event. */ tx: Scalars['String']['output']; + /** The type of the event. */ type: GqlPoolEventType; + /** The user address associated with the event. */ userAddress: Scalars['String']['output']; + /** The value of the event in USD. */ valueUSD: Scalars['Float']['output']; }; @@ -176,6 +210,43 @@ export type GqlPoolApr = { thirdPartyApr: GqlPoolAprValue; }; +/** All APRs for a pool */ +export type GqlPoolAprItem = { + __typename?: 'GqlPoolAprItem'; + /** The APR value in % -> 0.2 = 0.2% */ + apr: Scalars['Float']['output']; + /** The id of the APR item */ + id: Scalars['ID']['output']; + /** The title of the APR item, a human readable form */ + title: Scalars['String']['output']; + /** Specific type of this APR */ + type: GqlPoolAprItemType; +}; + +/** Enum representing the different types of the APR in a pool. */ +export type GqlPoolAprItemType = + /** APR that pools earns when BPT is staked on AURA. */ + | 'AURA' + /** Represents the yield from an IB (Interest-Bearing) asset APR in a pool. */ + | 'IB_YIELD' + /** APR in a pool that can be earned through locking, i.e. veBAL */ + | 'LOCKING' + /** Rewards distributed by merkl.xyz */ + | 'MERKL' + /** Represents if the APR items comes from a nested pool. */ + | 'NESTED' + /** Staking reward APR in a pool, i.e. BAL or BEETS. */ + | 'STAKING' + /** APR boost that can be earned, i.e. via veBAL or maBEETS. */ + | 'STAKING_BOOST' + /** Cow AMM specific APR */ + | 'SURPLUS' + /** Represents the swap fee APR in a pool. */ + | 'SWAP_FEE' + /** APR that can be earned thourgh voting, i.e. gauge votes */ + | 'VOTING' + | '%future added value'; + export type GqlPoolAprRange = { __typename?: 'GqlPoolAprRange'; max: Scalars['BigDecimal']['output']; @@ -193,23 +264,34 @@ export type GqlPoolAprValue = GqlPoolAprRange | GqlPoolAprTotal; export type GqlPoolBase = { /** The contract address of the pool. */ address: Scalars['Bytes']['output']; - /** Returns all pool tokens, including any nested tokens and phantom BPTs on one level. */ + /** + * Returns all pool tokens, including any nested tokens and phantom BPTs on one level. + * @deprecated Use poolTokens instead + */ allTokens: Array; + /** List of categories assigned by the team based on external factors */ + categories?: Maybe>>; /** The chain on which the pool is deployed */ chain: GqlChain; /** The timestamp the pool was created. */ createTime: Scalars['Int']['output']; /** The decimals of the BPT, usually 18 */ decimals: Scalars['Int']['output']; - /** Only returns main tokens, also known as leave tokens. Wont return any nested BPTs. Used for displaying the tokens that the pool consists of. */ + /** + * Only returns main tokens, also known as leave tokens. Wont return any nested BPTs. Used for displaying the tokens that the pool consists of. + * @deprecated Use poolTokens instead + */ displayTokens: Array; /** Dynamic data such as token balances, swap fees or volume */ dynamicData: GqlPoolDynamicData; /** The factory contract address from which the pool was created. */ factory?: Maybe; - /** The pool id. This is equal to the address for vaultVersion 3 pools */ + /** The pool id. This is equal to the address for protocolVersion 3 pools */ id: Scalars['ID']['output']; - /** Deprecated */ + /** + * Deprecated + * @deprecated Removed without replacement + */ investConfig: GqlPoolInvestConfig; /** The name of the pool as per contract */ name: Scalars['String']['output']; @@ -217,19 +299,29 @@ export type GqlPoolBase = { owner?: Maybe; /** Returns all pool tokens, including BPTs and nested pools if there are any. Only one nested level deep. */ poolTokens: Array; + /** The protocol version on which the pool is deployed, 1, 2 or 3 */ + protocolVersion: Scalars['Int']['output']; /** Staking options of this pool which emit additional rewards */ staking?: Maybe; /** The token symbol of the pool as per contract */ symbol: Scalars['String']['output']; + /** List of tags assigned by the team based on external factors */ + tags?: Maybe>>; /** The pool type, such as weighted, stable, etc. */ type: GqlPoolType; /** If a user address was provided in the query, the user balance is populated here */ userBalance?: Maybe; - /** The vault version on which the pool is deployed, 2 or 3 */ + /** + * The vault version on which the pool is deployed, 2 or 3 + * @deprecated use protocolVersion instead + */ vaultVersion: Scalars['Int']['output']; /** The version of the pool type. */ version: Scalars['Int']['output']; - /** Deprecated */ + /** + * Deprecated + * @deprecated Removed without replacement + */ withdrawConfig: GqlPoolWithdrawConfig; }; @@ -276,6 +368,7 @@ export type GqlPoolComposableStable = GqlPoolBase & { allTokens: Array; amp: Scalars['BigInt']['output']; bptPriceRate: Scalars['BigDecimal']['output']; + categories?: Maybe>>; chain: GqlChain; createTime: Scalars['Int']['output']; decimals: Scalars['Int']['output']; @@ -283,18 +376,27 @@ export type GqlPoolComposableStable = GqlPoolBase & { dynamicData: GqlPoolDynamicData; factory?: Maybe; id: Scalars['ID']['output']; + /** @deprecated Removed without replacement */ investConfig: GqlPoolInvestConfig; name: Scalars['String']['output']; nestingType: GqlPoolNestingType; owner: Scalars['Bytes']['output']; poolTokens: Array; + protocolVersion: Scalars['Int']['output']; staking?: Maybe; symbol: Scalars['String']['output']; + tags?: Maybe>>; + /** + * All tokens of the pool. If it is a nested pool, the nested pool is expanded with its own tokens again. + * @deprecated Use poolTokens instead + */ tokens: Array; type: GqlPoolType; userBalance?: Maybe; + /** @deprecated use protocolVersion instead */ vaultVersion: Scalars['Int']['output']; version: Scalars['Int']['output']; + /** @deprecated Removed without replacement */ withdrawConfig: GqlPoolWithdrawConfig; }; @@ -303,6 +405,7 @@ export type GqlPoolComposableStableNested = { address: Scalars['Bytes']['output']; amp: Scalars['BigInt']['output']; bptPriceRate: Scalars['BigDecimal']['output']; + categories?: Maybe>>; createTime: Scalars['Int']['output']; factory?: Maybe; id: Scalars['ID']['output']; @@ -311,6 +414,8 @@ export type GqlPoolComposableStableNested = { owner: Scalars['Bytes']['output']; swapFee: Scalars['BigDecimal']['output']; symbol: Scalars['String']['output']; + tags?: Maybe>>; + /** @deprecated Use poolTokens instead */ tokens: Array; totalLiquidity: Scalars['BigDecimal']['output']; totalShares: Scalars['BigDecimal']['output']; @@ -320,7 +425,13 @@ export type GqlPoolComposableStableNested = { export type GqlPoolDynamicData = { __typename?: 'GqlPoolDynamicData'; + /** Protocol and pool creator fees combined */ + aggregateSwapFee: Scalars['BigDecimal']['output']; + /** Protocol and pool creator fees combined */ + aggregateYieldFee: Scalars['BigDecimal']['output']; + /** @deprecated Use aprItems instead */ apr: GqlPoolApr; + aprItems: Array; fees24h: Scalars['BigDecimal']['output']; fees24hAth: Scalars['BigDecimal']['output']; fees24hAthTimestamp: Scalars['Int']['output']; @@ -328,6 +439,7 @@ export type GqlPoolDynamicData = { fees24hAtlTimestamp: Scalars['Int']['output']; fees48h: Scalars['BigDecimal']['output']; holdersCount: Scalars['BigInt']['output']; + /** True for bricked pools */ isInRecoveryMode: Scalars['Boolean']['output']; isPaused: Scalars['Boolean']['output']; lifetimeSwapFees: Scalars['BigDecimal']['output']; @@ -337,6 +449,11 @@ export type GqlPoolDynamicData = { sharePriceAthTimestamp: Scalars['Int']['output']; sharePriceAtl: Scalars['BigDecimal']['output']; sharePriceAtlTimestamp: Scalars['Int']['output']; + /** CowAmm specific, equivalent of swap fees */ + surplus24h: Scalars['BigDecimal']['output']; + /** CowAmm specific, equivalent of swap fees */ + surplus48h: Scalars['BigDecimal']['output']; + /** Disabled for bricked pools */ swapEnabled: Scalars['Boolean']['output']; swapFee: Scalars['BigDecimal']['output']; swapsCount: Scalars['BigInt']['output']; @@ -363,6 +480,7 @@ export type GqlPoolElement = GqlPoolBase & { address: Scalars['Bytes']['output']; allTokens: Array; baseToken: Scalars['Bytes']['output']; + categories?: Maybe>>; chain: GqlChain; createTime: Scalars['Int']['output']; decimals: Scalars['Int']['output']; @@ -370,34 +488,53 @@ export type GqlPoolElement = GqlPoolBase & { dynamicData: GqlPoolDynamicData; factory?: Maybe; id: Scalars['ID']['output']; + /** @deprecated Removed without replacement */ investConfig: GqlPoolInvestConfig; name: Scalars['String']['output']; owner: Scalars['Bytes']['output']; poolTokens: Array; principalToken: Scalars['Bytes']['output']; + protocolVersion: Scalars['Int']['output']; staking?: Maybe; symbol: Scalars['String']['output']; + tags?: Maybe>>; + /** @deprecated Use poolTokens instead */ tokens: Array; type: GqlPoolType; unitSeconds: Scalars['BigInt']['output']; userBalance?: Maybe; + /** @deprecated use protocolVersion instead */ vaultVersion: Scalars['Int']['output']; version: Scalars['Int']['output']; + /** @deprecated Removed without replacement */ withdrawConfig: GqlPoolWithdrawConfig; }; +/** Represents an event that occurs in a pool. */ export type GqlPoolEvent = { + /** The block number of the event. */ blockNumber: Scalars['Int']['output']; + /** The block timestamp of the event. */ blockTimestamp: Scalars['Int']['output']; + /** The chain on which the event occurred. */ chain: GqlChain; + /** The unique identifier of the event. */ id: Scalars['ID']['output']; + /** The log index of the event. */ logIndex: Scalars['Int']['output']; + /** The pool ID associated with the event. */ poolId: Scalars['String']['output']; + /** The sender of the event. */ sender: Scalars['String']['output']; + /** The timestamp of the event. */ timestamp: Scalars['Int']['output']; + /** The transaction hash of the event. */ tx: Scalars['String']['output']; + /** The type of the event. */ type: GqlPoolEventType; + /** The user address associated with the event. */ userAddress: Scalars['String']['output']; + /** The USD value of this event. */ valueUSD: Scalars['Float']['output']; }; @@ -421,11 +558,15 @@ export type GqlPoolEventsDataRange = | '%future added value'; export type GqlPoolEventsFilter = { - chain: GqlChain; - poolId: Scalars['String']['input']; + chainIn?: InputMaybe>>; + poolIdIn?: InputMaybe>>; range?: InputMaybe; typeIn?: InputMaybe>>; userAddress?: InputMaybe; + /** USD value of the event */ + valueUSD_gt?: InputMaybe; + /** USD value of the event */ + valueUSD_gte?: InputMaybe; }; export type GqlPoolFeaturedPool = { @@ -447,8 +588,6 @@ export type GqlPoolFeaturedPoolGroup = { export type GqlPoolFeaturedPoolGroupItem = GqlFeaturePoolGroupItemExternalLink | GqlPoolMinimal; export type GqlPoolFilter = { - categoryIn?: InputMaybe>; - categoryNotIn?: InputMaybe>; chainIn?: InputMaybe>; chainNotIn?: InputMaybe>; createTime?: InputMaybe; @@ -459,15 +598,33 @@ export type GqlPoolFilter = { minTvl?: InputMaybe; poolTypeIn?: InputMaybe>; poolTypeNotIn?: InputMaybe>; + protocolVersionIn?: InputMaybe>; + /** + * For list of tags see: https://github.com/balancer/metadata/blob/main/pools/index.json + * Use uppercase + */ + tagIn?: InputMaybe>; + /** + * For list of tags see: https://github.com/balancer/metadata/blob/main/pools/index.json + * Use uppercase + */ + tagNotIn?: InputMaybe>; tokensIn?: InputMaybe>; tokensNotIn?: InputMaybe>; userAddress?: InputMaybe; - vaultVersionIn?: InputMaybe>; }; export type GqlPoolFilterCategory = | 'BLACK_LISTED' | 'INCENTIVIZED' + | 'LRT' + | 'POINTS' + | 'POINTS_EIGENLAYER' + | 'POINTS_GYRO' + | 'POINTS_KELP' + | 'POINTS_RENZO' + | 'POINTS_SWELL' + | 'SUPERFEST' | '%future added value'; export type GqlPoolFx = GqlPoolBase & { @@ -476,6 +633,7 @@ export type GqlPoolFx = GqlPoolBase & { allTokens: Array; alpha: Scalars['String']['output']; beta: Scalars['String']['output']; + categories?: Maybe>>; chain: GqlChain; createTime: Scalars['Int']['output']; decimals: Scalars['Int']['output']; @@ -485,18 +643,27 @@ export type GqlPoolFx = GqlPoolBase & { epsilon: Scalars['String']['output']; factory?: Maybe; id: Scalars['ID']['output']; + /** @deprecated Removed without replacement */ investConfig: GqlPoolInvestConfig; lambda: Scalars['String']['output']; name: Scalars['String']['output']; owner?: Maybe; poolTokens: Array; + protocolVersion: Scalars['Int']['output']; staking?: Maybe; symbol: Scalars['String']['output']; + tags?: Maybe>>; + /** + * All tokens of the pool. If it is a nested pool, the nested pool is expanded with its own tokens again. + * @deprecated Use poolTokens instead + */ tokens: Array; type: GqlPoolType; userBalance?: Maybe; + /** @deprecated use protocolVersion instead */ vaultVersion: Scalars['Int']['output']; version: Scalars['Int']['output']; + /** @deprecated Removed without replacement */ withdrawConfig: GqlPoolWithdrawConfig; }; @@ -507,6 +674,7 @@ export type GqlPoolGyro = GqlPoolBase & { alpha: Scalars['String']['output']; beta: Scalars['String']['output']; c: Scalars['String']['output']; + categories?: Maybe>>; chain: GqlChain; createTime: Scalars['Int']['output']; dSq: Scalars['String']['output']; @@ -515,30 +683,39 @@ export type GqlPoolGyro = GqlPoolBase & { dynamicData: GqlPoolDynamicData; factory?: Maybe; id: Scalars['ID']['output']; + /** @deprecated Removed without replacement */ investConfig: GqlPoolInvestConfig; lambda: Scalars['String']['output']; name: Scalars['String']['output']; nestingType: GqlPoolNestingType; owner: Scalars['Bytes']['output']; poolTokens: Array; + protocolVersion: Scalars['Int']['output']; root3Alpha: Scalars['String']['output']; s: Scalars['String']['output']; sqrtAlpha: Scalars['String']['output']; sqrtBeta: Scalars['String']['output']; staking?: Maybe; symbol: Scalars['String']['output']; + tags?: Maybe>>; tauAlphaX: Scalars['String']['output']; tauAlphaY: Scalars['String']['output']; tauBetaX: Scalars['String']['output']; tauBetaY: Scalars['String']['output']; + /** + * All tokens of the pool. If it is a nested pool, the nested pool is expanded with its own tokens again. + * @deprecated Use poolTokens instead + */ tokens: Array; type: GqlPoolType; u: Scalars['String']['output']; userBalance?: Maybe; v: Scalars['String']['output']; + /** @deprecated use protocolVersion instead */ vaultVersion: Scalars['Int']['output']; version: Scalars['Int']['output']; w: Scalars['String']['output']; + /** @deprecated Removed without replacement */ withdrawConfig: GqlPoolWithdrawConfig; z: Scalars['String']['output']; }; @@ -590,6 +767,7 @@ export type GqlPoolLiquidityBootstrapping = GqlPoolBase & { __typename?: 'GqlPoolLiquidityBootstrapping'; address: Scalars['Bytes']['output']; allTokens: Array; + categories?: Maybe>>; chain: GqlChain; createTime: Scalars['Int']['output']; decimals: Scalars['Int']['output']; @@ -597,18 +775,27 @@ export type GqlPoolLiquidityBootstrapping = GqlPoolBase & { dynamicData: GqlPoolDynamicData; factory?: Maybe; id: Scalars['ID']['output']; + /** @deprecated Removed without replacement */ investConfig: GqlPoolInvestConfig; name: Scalars['String']['output']; nestingType: GqlPoolNestingType; owner: Scalars['Bytes']['output']; poolTokens: Array; + protocolVersion: Scalars['Int']['output']; staking?: Maybe; symbol: Scalars['String']['output']; + tags?: Maybe>>; + /** + * All tokens of the pool. If it is a nested pool, the nested pool is expanded with its own tokens again. + * @deprecated Use poolTokens instead + */ tokens: Array; type: GqlPoolType; userBalance?: Maybe; + /** @deprecated use protocolVersion instead */ vaultVersion: Scalars['Int']['output']; version: Scalars['Int']['output']; + /** @deprecated Removed without replacement */ withdrawConfig: GqlPoolWithdrawConfig; }; @@ -617,6 +804,7 @@ export type GqlPoolMetaStable = GqlPoolBase & { address: Scalars['Bytes']['output']; allTokens: Array; amp: Scalars['BigInt']['output']; + categories?: Maybe>>; chain: GqlChain; createTime: Scalars['Int']['output']; decimals: Scalars['Int']['output']; @@ -624,17 +812,23 @@ export type GqlPoolMetaStable = GqlPoolBase & { dynamicData: GqlPoolDynamicData; factory?: Maybe; id: Scalars['ID']['output']; + /** @deprecated Removed without replacement */ investConfig: GqlPoolInvestConfig; name: Scalars['String']['output']; owner: Scalars['Bytes']['output']; poolTokens: Array; + protocolVersion: Scalars['Int']['output']; staking?: Maybe; symbol: Scalars['String']['output']; + tags?: Maybe>>; + /** @deprecated Use poolTokens instead */ tokens: Array; type: GqlPoolType; userBalance?: Maybe; + /** @deprecated use protocolVersion instead */ vaultVersion: Scalars['Int']['output']; version: Scalars['Int']['output']; + /** @deprecated Removed without replacement */ withdrawConfig: GqlPoolWithdrawConfig; }; @@ -645,38 +839,66 @@ export type GqlPoolMinimal = { address: Scalars['Bytes']['output']; /** Returns all pool tokens, including any nested tokens and phantom BPTs */ allTokens: Array; + /** List of categories assigned by the team based on external factors */ + categories?: Maybe>>; /** The chain on which the pool is deployed */ chain: GqlChain; /** The timestamp the pool was created. */ createTime: Scalars['Int']['output']; /** The decimals of the BPT, usually 18 */ decimals: Scalars['Int']['output']; - /** Only returns main tokens, also known as leave tokens. Wont return any nested BPTs. Used for displaying the tokens that the pool consists of. */ + /** Only returns main or underlying tokens, also known as leave tokens. Wont return any nested BPTs. Used for displaying the tokens that the pool consists of. */ displayTokens: Array; /** Dynamic data such as token balances, swap fees or volume */ dynamicData: GqlPoolDynamicData; /** The factory contract address from which the pool was created. */ factory?: Maybe; - /** The pool id. This is equal to the address for vaultVersion 3 pools */ + /** Whether at least one token in this pool is considered an ERC4626 token. */ + hasErc4626: Scalars['Boolean']['output']; + /** Hook assigned to a pool */ + hook?: Maybe; + /** The pool id. This is equal to the address for protocolVersion 3 pools */ id: Scalars['ID']['output']; + /** Pool is receiving rewards when liquidity tokens are staked */ + incentivized: Scalars['Boolean']['output']; /** The name of the pool as per contract */ name: Scalars['String']['output']; /** The wallet address of the owner of the pool. Pool owners can set certain properties like swapFees or AMP. */ owner?: Maybe; + /** The protocol version on which the pool is deployed, 1, 2 or 3 */ + protocolVersion: Scalars['Int']['output']; /** Staking options of this pool which emit additional rewards */ staking?: Maybe; /** The token symbol of the pool as per contract */ symbol: Scalars['String']['output']; + /** List of tags assigned by the team based on external factors */ + tags?: Maybe>>; /** The pool type, such as weighted, stable, etc. */ type: GqlPoolType; /** If a user address was provided in the query, the user balance is populated here */ userBalance?: Maybe; - /** The vault version on which the pool is deployed, 2 or 3 */ + /** + * The vault version on which the pool is deployed, 2 or 3 + * @deprecated use protocolVersion instead + */ vaultVersion: Scalars['Int']['output']; /** The version of the pool type. */ version: Scalars['Int']['output']; }; +/** Result of the poolReloadPools mutation */ +export type GqlPoolMutationResult = { + __typename?: 'GqlPoolMutationResult'; + /** The chain that was reloaded. */ + chain: GqlChain; + /** The error message */ + error?: Maybe; + /** Whether it was successful or not. */ + success: Scalars['Boolean']['output']; + /** The type of pools that were reloaded. */ + type: Scalars['String']['output']; +}; + export type GqlPoolNestedUnion = GqlPoolComposableStableNested; export type GqlPoolNestingType = @@ -708,10 +930,12 @@ export type GqlPoolSnapshot = { id: Scalars['ID']['output']; poolId: Scalars['String']['output']; sharePrice: Scalars['String']['output']; + surplus24h: Scalars['String']['output']; swapsCount: Scalars['String']['output']; timestamp: Scalars['Int']['output']; totalLiquidity: Scalars['String']['output']; totalShares: Scalars['String']['output']; + totalSurplus: Scalars['String']['output']; totalSwapFee: Scalars['String']['output']; totalSwapVolume: Scalars['String']['output']; volume24h: Scalars['String']['output']; @@ -730,6 +954,7 @@ export type GqlPoolStable = GqlPoolBase & { address: Scalars['Bytes']['output']; allTokens: Array; amp: Scalars['BigInt']['output']; + categories?: Maybe>>; chain: GqlChain; createTime: Scalars['Int']['output']; decimals: Scalars['Int']['output']; @@ -737,17 +962,23 @@ export type GqlPoolStable = GqlPoolBase & { dynamicData: GqlPoolDynamicData; factory?: Maybe; id: Scalars['ID']['output']; + /** @deprecated Removed without replacement */ investConfig: GqlPoolInvestConfig; name: Scalars['String']['output']; owner: Scalars['Bytes']['output']; poolTokens: Array; + protocolVersion: Scalars['Int']['output']; staking?: Maybe; symbol: Scalars['String']['output']; + tags?: Maybe>>; + /** @deprecated Use poolTokens instead */ tokens: Array; type: GqlPoolType; userBalance?: Maybe; + /** @deprecated use protocolVersion instead */ vaultVersion: Scalars['Int']['output']; version: Scalars['Int']['output']; + /** @deprecated Removed without replacement */ withdrawConfig: GqlPoolWithdrawConfig; }; @@ -764,12 +995,23 @@ export type GqlPoolStableComposablePoolData = { export type GqlPoolStaking = { __typename?: 'GqlPoolStaking'; address: Scalars['String']['output']; + aura?: Maybe; chain: GqlChain; farm?: Maybe; gauge?: Maybe; id: Scalars['ID']['output']; reliquary?: Maybe; type: GqlPoolStakingType; + vebal?: Maybe; +}; + +export type GqlPoolStakingAura = { + __typename?: 'GqlPoolStakingAura'; + apr: Scalars['Float']['output']; + auraPoolAddress: Scalars['String']['output']; + auraPoolId: Scalars['String']['output']; + id: Scalars['ID']['output']; + isShutdown: Scalars['Boolean']['output']; }; export type GqlPoolStakingFarmRewarder = { @@ -840,12 +1082,20 @@ export type GqlPoolStakingReliquaryFarmLevel = { }; export type GqlPoolStakingType = + | 'AURA' | 'FRESH_BEETS' | 'GAUGE' | 'MASTER_CHEF' | 'RELIQUARY' + | 'VEBAL' | '%future added value'; +export type GqlPoolStakingVebal = { + __typename?: 'GqlPoolStakingVebal'; + id: Scalars['ID']['output']; + vebalAddress: Scalars['String']['output']; +}; + export type GqlPoolSwap = { __typename?: 'GqlPoolSwap'; chain: GqlChain; @@ -861,21 +1111,75 @@ export type GqlPoolSwap = { valueUSD: Scalars['Float']['output']; }; +/** Represents an event that occurs when a swap is made in a pool using the CowAmm protocol. */ +export type GqlPoolSwapEventCowAmm = GqlPoolEvent & { + __typename?: 'GqlPoolSwapEventCowAmm'; + /** The block number of the event. */ + blockNumber: Scalars['Int']['output']; + /** The block timestamp of the event. */ + blockTimestamp: Scalars['Int']['output']; + /** The chain on which the event occurred. */ + chain: GqlChain; + /** The fee that this swap generated. */ + fee: GqlPoolEventAmount; + /** The unique identifier of the event. */ + id: Scalars['ID']['output']; + /** The log index of the event. */ + logIndex: Scalars['Int']['output']; + /** The pool ID associated with the event. */ + poolId: Scalars['String']['output']; + /** The sender of the event. */ + sender: Scalars['String']['output']; + /** The surplus generated by the swap. */ + surplus: GqlPoolEventAmount; + /** The timestamp of the event. */ + timestamp: Scalars['Int']['output']; + /** The token that was swapped in the event. */ + tokenIn: GqlPoolEventAmount; + /** The token that was swapped out in the event. */ + tokenOut: GqlPoolEventAmount; + /** The transaction hash of the event. */ + tx: Scalars['String']['output']; + /** The type of the event. */ + type: GqlPoolEventType; + /** The user address associated with the event. */ + userAddress: Scalars['String']['output']; + /** The value of the event in USD. */ + valueUSD: Scalars['Float']['output']; +}; + +/** Represents an event that occurs when a swap is made in a pool. */ export type GqlPoolSwapEventV3 = GqlPoolEvent & { __typename?: 'GqlPoolSwapEventV3'; + /** The block number of the event. */ blockNumber: Scalars['Int']['output']; + /** The block timestamp of the event. */ blockTimestamp: Scalars['Int']['output']; + /** The chain on which the event occurred. */ chain: GqlChain; + /** The fee that this swap generated. */ + fee: GqlPoolEventAmount; + /** The unique identifier of the event. */ id: Scalars['ID']['output']; + /** The log index of the event. */ logIndex: Scalars['Int']['output']; + /** The pool ID associated with the event. */ poolId: Scalars['String']['output']; + /** The sender of the event. */ sender: Scalars['String']['output']; + /** The timestamp of the event. */ timestamp: Scalars['Int']['output']; + /** The token that was swapped in the event. */ tokenIn: GqlPoolEventAmount; + /** The token that was swapped out in the event. */ tokenOut: GqlPoolEventAmount; + /** The transaction hash of the event. */ tx: Scalars['String']['output']; + /** The type of the event. */ type: GqlPoolEventType; + /** The user address associated with the event. */ userAddress: Scalars['String']['output']; + /** The value of the event in USD. */ valueUSD: Scalars['Float']['output']; }; @@ -938,19 +1242,45 @@ export type GqlPoolTokenComposableStable = GqlPoolTokenBase & { export type GqlPoolTokenComposableStableNestedUnion = GqlPoolToken; +/** + * All info on the pool token. It will also include the nested pool if the token is a BPT. It will only support 1 level of nesting. + * A second (unsupported) level of nesting is shown by having hasNestedPool = true but nestedPool = null. + */ export type GqlPoolTokenDetail = { __typename?: 'GqlPoolTokenDetail'; + /** Address of the pool token. */ address: Scalars['String']['output']; + /** Balance of the pool token inside the pool. */ balance: Scalars['BigDecimal']['output']; + /** USD Balance of the pool token. */ + balanceUSD: Scalars['BigDecimal']['output']; + /** Decimals of the pool token. */ decimals: Scalars['Int']['output']; + /** Indicates whether this token is a BPT and therefor has a nested pool. */ hasNestedPool: Scalars['Boolean']['output']; + /** Id of the token. A combination of pool id and token address. */ id: Scalars['ID']['output']; + /** Index of the pool token in the pool as returned by the vault. */ index: Scalars['Int']['output']; + /** Whether the token is in the allow list. */ + isAllowed: Scalars['Boolean']['output']; + /** Whether the token is considered an ERC4626 token. */ + isErc4626: Scalars['Boolean']['output']; + /** Name of the pool token. */ name: Scalars['String']['output']; + /** Additional data for the nested pool if the token is a BPT. Null otherwise. */ nestedPool?: Maybe; + /** If it is an appreciating token, it shows the current price rate. 1 otherwise. */ priceRate: Scalars['BigDecimal']['output']; + /** The address of the price rate provider. */ priceRateProvider?: Maybe; + /** Additional data for the price rate provider, such as reviews or warnings. */ + priceRateProviderData?: Maybe; + /** Symbol of the pool token. */ symbol: Scalars['String']['output']; + /** If it is an Erc4262, this will be the underlying token if present in the API. */ + underlyingToken?: Maybe; + /** The weight of the token in the pool if it is a weighted pool, null otherwise */ weight?: Maybe; }; @@ -969,6 +1299,7 @@ export type GqlPoolTokenExpanded = { address: Scalars['String']['output']; decimals: Scalars['Int']['output']; id: Scalars['ID']['output']; + isErc4626: Scalars['Boolean']['output']; isMainToken: Scalars['Boolean']['output']; isNested: Scalars['Boolean']['output']; isPhantomBpt: Scalars['Boolean']['output']; @@ -982,6 +1313,7 @@ export type GqlPoolTokenUnion = GqlPoolToken | GqlPoolTokenComposableStable; /** Supported pool types */ export type GqlPoolType = | 'COMPOSABLE_STABLE' + | 'COW_AMM' | 'ELEMENT' | 'FX' | 'GYRO' @@ -1001,10 +1333,8 @@ export type GqlPoolUnion = GqlPoolComposableStable | GqlPoolElement | GqlPoolFx /** If a user address was provided in the query, the user balance is populated here */ export type GqlPoolUserBalance = { __typename?: 'GqlPoolUserBalance'; - /** The staked balance in either a gauge or farm as float. */ - stakedBalance: Scalars['AmountHumanReadable']['output']; - /** The staked balance in either a gauge or farm in USD as float. */ - stakedBalanceUsd: Scalars['Float']['output']; + /** The staked BPT balances of the user. */ + stakedBalances: Array; /** Total balance (wallet + staked) as float */ totalBalance: Scalars['AmountHumanReadable']['output']; /** Total balance (wallet + staked) in USD as float */ @@ -1025,6 +1355,7 @@ export type GqlPoolWeighted = GqlPoolBase & { __typename?: 'GqlPoolWeighted'; address: Scalars['Bytes']['output']; allTokens: Array; + categories?: Maybe>>; chain: GqlChain; createTime: Scalars['Int']['output']; decimals: Scalars['Int']['output']; @@ -1032,19 +1363,27 @@ export type GqlPoolWeighted = GqlPoolBase & { dynamicData: GqlPoolDynamicData; factory?: Maybe; id: Scalars['ID']['output']; + /** @deprecated Removed without replacement */ investConfig: GqlPoolInvestConfig; name: Scalars['String']['output']; nestingType: GqlPoolNestingType; owner: Scalars['Bytes']['output']; poolTokens: Array; + protocolVersion: Scalars['Int']['output']; staking?: Maybe; symbol: Scalars['String']['output']; - /** All tokens of the pool. If it is a nested pool, the nested pool is expanded with its own tokens again. */ + tags?: Maybe>>; + /** + * All tokens of the pool. If it is a nested pool, the nested pool is expanded with its own tokens again. + * @deprecated Use poolTokens instead + */ tokens: Array; type: GqlPoolType; userBalance?: Maybe; + /** @deprecated use protocolVersion instead */ vaultVersion: Scalars['Int']['output']; version: Scalars['Int']['output']; + /** @deprecated Removed without replacement */ withdrawConfig: GqlPoolWithdrawConfig; }; @@ -1071,6 +1410,36 @@ export type GqlPriceImpact = { priceImpact?: Maybe; }; +/** Represents the data of a price rate provider */ +export type GqlPriceRateProviderData = { + __typename?: 'GqlPriceRateProviderData'; + /** The address of the price rate provider */ + address: Scalars['String']['output']; + /** The factory used to create the price rate provider, if applicable */ + factory?: Maybe; + /** The name of the price rate provider */ + name?: Maybe; + /** The filename of the review of the price rate provider */ + reviewFile?: Maybe; + /** Indicates if the price rate provider has been reviewed */ + reviewed: Scalars['Boolean']['output']; + /** A summary of the price rate provider, usually just says safe or unsafe */ + summary?: Maybe; + /** Upgradeable components of the price rate provider */ + upgradeableComponents?: Maybe>>; + /** Warnings associated with the price rate provider */ + warnings?: Maybe>; +}; + +/** Represents an upgradeable component of a price rate provider */ +export type GqlPriceRateProviderUpgradeableComponent = { + __typename?: 'GqlPriceRateProviderUpgradeableComponent'; + /** The entry point / proxy of the upgradeable component */ + entryPoint: Scalars['String']['output']; + /** Indicates if the implementation of the component has been reviewed */ + implementationReviewed: Scalars['String']['output']; +}; + export type GqlProtocolMetricsAggregated = { __typename?: 'GqlProtocolMetricsAggregated'; chains: Array; @@ -1250,6 +1619,8 @@ export type GqlSorGetSwapPaths = { paths: Array; /** Price impact of the path */ priceImpact: GqlPriceImpact; + /** The version of the protocol these paths are from */ + protocolVersion: Scalars['Int']['output']; /** The return amount in human form. Return amount is either tokenOutAmount (if swapType is exactIn) or tokenInAmount (if swapType is exactOut) */ returnAmount: Scalars['AmountHumanReadable']['output']; /** The return amount in a raw form */ @@ -1274,7 +1645,10 @@ export type GqlSorGetSwapPaths = { tokenOut: Scalars['String']['output']; /** The amount of tokenOut in human form */ tokenOutAmount: Scalars['AmountHumanReadable']['output']; - /** The version of the vault these paths are from */ + /** + * The version of the vault these paths are from + * @deprecated Use protocolVersion instead + */ vaultVersion: Scalars['Int']['output']; }; @@ -1306,13 +1680,20 @@ export type GqlSorPath = { __typename?: 'GqlSorPath'; /** Input amount of this path in scaled form */ inputAmountRaw: Scalars['String']['output']; + /** A sorted list of booleans that indicate if the respective pool is a buffer */ + isBuffer: Array>; /** Output amount of this path in scaled form */ outputAmountRaw: Scalars['String']['output']; /** A sorted list of pool ids that are used in this path */ pools: Array>; + /** The version of the protocol these paths are from */ + protocolVersion: Scalars['Int']['output']; /** A sorted list of tokens that are ussed in this path */ tokens: Array>; - /** Vault version of this path. */ + /** + * Vault version of this path. + * @deprecated Use protocolVersion instead + */ vaultVersion: Scalars['Int']['output']; }; @@ -1389,21 +1770,44 @@ export type GqlSwapCallDataInput = { slippagePercentage: Scalars['String']['input']; }; +/** Represents a token */ export type GqlToken = { __typename?: 'GqlToken'; + /** The address of the token */ address: Scalars['String']['output']; + /** The chain of the token */ chain: GqlChain; + /** The chain ID of the token */ chainId: Scalars['Int']['output']; + /** The coingecko ID for this token, if present */ + coingeckoId?: Maybe; + /** The number of decimal places for the token */ decimals: Scalars['Int']['output']; + /** The description of the token */ description?: Maybe; + /** The Discord URL of the token */ discordUrl?: Maybe; + /** Whether the token is considered an ERC4626 token. */ + isErc4626: Scalars['Boolean']['output']; + /** The logo URI of the token */ logoURI?: Maybe; + /** The name of the token */ name: Scalars['String']['output']; + /** The rate provider data for the token */ + priceRateProviderData?: Maybe; + /** The priority of the token, can be used for sorting. */ priority: Scalars['Int']['output']; + /** The rate provider data for the token */ + rateProviderData?: Maybe; + /** The symbol of the token */ symbol: Scalars['String']['output']; + /** The Telegram URL of the token */ telegramUrl?: Maybe; + /** Indicates if the token is tradable */ tradable: Scalars['Boolean']['output']; + /** The Twitter username of the token */ twitterUsername?: Maybe; + /** The website URL of the token */ websiteUrl?: Maybe; }; @@ -1441,25 +1845,52 @@ export type GqlTokenData = { websiteUrl?: Maybe; }; +/** Represents additional data for a token */ export type GqlTokenDynamicData = { __typename?: 'GqlTokenDynamicData'; + /** The all-time high price of the token */ ath: Scalars['Float']['output']; + /** The all-time low price of the token */ atl: Scalars['Float']['output']; + /** The fully diluted valuation of the token */ fdv?: Maybe; + /** The highest price in the last 24 hours */ high24h: Scalars['Float']['output']; + /** The unique identifier of the dynamic data */ id: Scalars['String']['output']; + /** The lowest price in the last 24 hours */ low24h: Scalars['Float']['output']; + /** The market capitalization of the token */ marketCap?: Maybe; + /** The current price of the token */ price: Scalars['Float']['output']; + /** The price change in the last 24 hours */ priceChange24h: Scalars['Float']['output']; + /** The percentage price change in the last 7 days */ priceChangePercent7d?: Maybe; + /** The percentage price change in the last 14 days */ priceChangePercent14d?: Maybe; + /** The percentage price change in the last 24 hours */ priceChangePercent24h: Scalars['Float']['output']; + /** The percentage price change in the last 30 days */ priceChangePercent30d?: Maybe; + /** The address of the token */ tokenAddress: Scalars['String']['output']; + /** The timestamp when the data was last updated */ updatedAt: Scalars['String']['output']; }; +/** Result of the poolReloadPools mutation */ +export type GqlTokenMutationResult = { + __typename?: 'GqlTokenMutationResult'; + /** The chain that was reloaded. */ + chain: GqlChain; + /** The error message */ + error?: Maybe; + /** Whether it was successful or not. */ + success: Scalars['Boolean']['output']; +}; + export type GqlTokenPrice = { __typename?: 'GqlTokenPrice'; address: Scalars['String']['output']; @@ -1501,46 +1932,119 @@ export type GqlUserPoolBalance = { walletBalance: Scalars['AmountHumanReadable']['output']; }; +export type GqlUserStakedBalance = { + __typename?: 'GqlUserStakedBalance'; + /** The staked BPT balance as float. */ + balance: Scalars['AmountHumanReadable']['output']; + /** The steaked BPT balance in USD as float. */ + balanceUsd: Scalars['Float']['output']; + /** The id of the staking to match with GqlPoolStaking.id. */ + stakingId: Scalars['String']['output']; + /** The staking type (Gauge, farm, aura, etc.) in which this balance is staked. */ + stakingType: GqlPoolStakingType; +}; + export type GqlUserSwapVolumeFilter = { poolIdIn?: InputMaybe>; tokenInIn?: InputMaybe>; tokenOutIn?: InputMaybe>; }; +export type GqlVeBalBalance = { + __typename?: 'GqlVeBalBalance'; + balance: Scalars['AmountHumanReadable']['output']; + chain: GqlChain; + locked: Scalars['AmountHumanReadable']['output']; + lockedUsd: Scalars['AmountHumanReadable']['output']; +}; + export type GqlVeBalUserData = { __typename?: 'GqlVeBalUserData'; balance: Scalars['AmountHumanReadable']['output']; + locked: Scalars['AmountHumanReadable']['output']; + lockedUsd: Scalars['AmountHumanReadable']['output']; rank?: Maybe; }; +/** The Gauge that can be voted on through veBAL and that will ultimately receive the rewards. */ export type GqlVotingGauge = { __typename?: 'GqlVotingGauge'; + /** The timestamp the gauge was added. */ addedTimestamp?: Maybe; + /** The address of the root gauge on Ethereum mainnet. */ address: Scalars['Bytes']['output']; + /** The address of the child gauge on the specific chain. */ childGaugeAddress?: Maybe; + /** Whether the gauge is killed or not. */ isKilled: Scalars['Boolean']['output']; + /** The relative weight the gauge received this epoch (not more than 1.0). */ + relativeWeight: Scalars['String']['output']; + /** The relative weight cap. 1.0 for uncapped. */ relativeWeightCap?: Maybe; }; +/** A token inside of a pool with a voting gauge. */ export type GqlVotingGaugeToken = { __typename?: 'GqlVotingGaugeToken'; + /** The address of the token. */ address: Scalars['String']['output']; + /** The URL to the token logo. */ logoURI: Scalars['String']['output']; + /** The symbol of the token. */ symbol: Scalars['String']['output']; + /** If it is a weighted pool, the weigh of the token is shown here in %. 0.5 = 50%. */ weight?: Maybe; }; +/** The pool that can be voted on through veBAL */ export type GqlVotingPool = { __typename?: 'GqlVotingPool'; + /** The address of the pool. */ address: Scalars['Bytes']['output']; + /** The chain this pool is on. */ chain: GqlChain; + /** The gauge that is connected to the pool and that will receive the rewards. */ gauge: GqlVotingGauge; + /** Pool ID */ id: Scalars['ID']['output']; + /** The symbol of the pool. */ symbol: Scalars['String']['output']; + /** The tokens inside the pool. */ tokens: Array; + /** The type of the pool. */ type: GqlPoolType; }; +/** Hook data */ +export type Hook = { + __typename?: 'Hook'; + address: Scalars['String']['output']; + chain: GqlChain; + /** Data points changing over time */ + dynamicData?: Maybe; + /** True when hook can change the amounts send to the vault. Necessary to deduct the fees. */ + enableHookAdjustedAmounts: Scalars['Boolean']['output']; + /** List of pools using the hook */ + poolsIds?: Maybe>>; + shouldCallAfterAddLiquidity: Scalars['Boolean']['output']; + shouldCallAfterInitialize: Scalars['Boolean']['output']; + shouldCallAfterRemoveLiquidity: Scalars['Boolean']['output']; + shouldCallAfterSwap: Scalars['Boolean']['output']; + shouldCallBeforeAddLiquidity: Scalars['Boolean']['output']; + shouldCallBeforeInitialize: Scalars['Boolean']['output']; + shouldCallBeforeRemoveLiquidity: Scalars['Boolean']['output']; + shouldCallBeforeSwap: Scalars['Boolean']['output']; + shouldCallComputeDynamicSwapFee: Scalars['Boolean']['output']; +}; + +/** Collection of hook specific data. Percentage format is 0.01 -> 0.01%. */ +export type HookData = { + __typename?: 'HookData'; + addLiquidityFeePercentage?: Maybe; + removeLiquidityFeePercentage?: Maybe; + swapFeePercentage?: Maybe; +}; + export type Mutation = { __typename?: 'Mutation'; beetsPoolLoadReliquarySnapshotsForAllFarms: Scalars['String']['output']; @@ -1557,7 +2061,9 @@ export type Mutation = { poolLoadSnapshotsForPools: Scalars['String']['output']; poolReloadAllPoolAprs: Scalars['String']['output']; poolReloadAllTokenNestedPoolIds: Scalars['String']['output']; + poolReloadPools: Array; poolReloadStakingForAllPools: Scalars['String']['output']; + poolSyncAllCowSnapshots: Array; poolSyncAllPoolsFromSubgraph: Array; poolSyncLatestSnapshotsForAllPools: Scalars['String']['output']; poolSyncNewPoolsFromSubgraph: Array; @@ -1577,6 +2083,7 @@ export type Mutation = { sftmxSyncWithdrawalRequests: Scalars['String']['output']; tokenDeleteTokenType: Scalars['String']['output']; tokenReloadAllTokenTypes: Scalars['String']['output']; + tokenReloadErc4626Tokens: Array; tokenReloadTokenPrices?: Maybe; tokenSyncLatestFxPrices: Scalars['String']['output']; tokenSyncTokenDefinitions: Scalars['String']['output']; @@ -1623,13 +2130,23 @@ export type MutationPoolReloadAllPoolAprsArgs = { }; +export type MutationPoolReloadPoolsArgs = { + chains: Array; +}; + + export type MutationPoolReloadStakingForAllPoolsArgs = { stakingTypes: Array; }; +export type MutationPoolSyncAllCowSnapshotsArgs = { + chains: Array; +}; + + export type MutationPoolSyncLatestSnapshotsForAllPoolsArgs = { - daysToSync?: InputMaybe; + chain: GqlChain; }; @@ -1649,6 +2166,11 @@ export type MutationTokenDeleteTokenTypeArgs = { }; +export type MutationTokenReloadErc4626TokensArgs = { + chains: Array; +}; + + export type MutationTokenReloadTokenPricesArgs = { chains: Array; }; @@ -1682,18 +2204,29 @@ export type Query = { blocksGetBlocksPerSecond: Scalars['Float']['output']; blocksGetBlocksPerYear: Scalars['Float']['output']; contentGetNewsItems: Array; + /** Returns list of hooks. */ + hooks?: Maybe>; latestSyncedBlocks: GqlLatestSyncedBlocks; /** Getting swap, add and remove events with paging */ poolEvents: Array; - /** Will de deprecated in favor of poolEvents */ + /** + * Will de deprecated in favor of poolEvents + * @deprecated Use poolEvents instead + */ poolGetBatchSwaps: Array; /** Getting swap, add and remove events with range */ poolGetEvents: Array; - /** Will de deprecated in favor of poolGetFeaturedPools */ + /** + * Will de deprecated in favor of poolGetFeaturedPools + * @deprecated Use poolGetFeaturedPools instead + */ poolGetFeaturedPoolGroups: Array; /** Returns the list of featured pools for chains */ poolGetFeaturedPools: Array; - /** Will de deprecated in favor of poolEvents */ + /** + * Will de deprecated in favor of poolEvents + * @deprecated Use poolEvents instead + */ poolGetJoinExits: Array; /** Returns one pool. If a user address is provided, the user balances for the given pool will also be returned. */ poolGetPool: GqlPoolBase; @@ -1703,7 +2236,10 @@ export type Query = { poolGetPoolsCount: Scalars['Int']['output']; /** Gets all the snapshots for a given pool on a chain for a certain range */ poolGetSnapshots: Array; - /** Will de deprecated in favor of poolEvents */ + /** + * Will de deprecated in favor of poolEvents + * @deprecated Use poolEvents instead + */ poolGetSwaps: Array; protocolMetricsAggregated: GqlProtocolMetricsAggregated; protocolMetricsChain: GqlProtocolMetricsChain; @@ -1717,16 +2253,42 @@ export type Query = { sorGetSwapPaths: GqlSorGetSwapPaths; /** Get swap quote from the SOR, queries both the old and new SOR */ sorGetSwaps: GqlSorGetSwapsResponse; + /** + * Returns the candlestick chart data for a token for a given range. + * @deprecated Use tokenGetHistoricalPrices instead + */ tokenGetCandlestickChartData: Array; + /** Returns all current prices for allowed tokens for a given chain or chains */ tokenGetCurrentPrices: Array; + /** Returns the historical prices for a given set of tokens for a given chain and range */ tokenGetHistoricalPrices: Array; + /** + * DEPRECATED: Returns pricing data for a given token for a given range + * @deprecated Use tokenGetHistoricalPrices instead + */ tokenGetPriceChartData: Array; + /** + * Returns the price of either BAL or BEETS depending on chain + * @deprecated Use tokenGetTokensDynamicData instead + */ tokenGetProtocolTokenPrice: Scalars['AmountHumanReadable']['output']; + /** Returns the price of a token priced in another token for a given range. */ tokenGetRelativePriceChartData: Array; + /** + * Returns meta data for a given token such as description, website, etc. + * @deprecated Use tokenGetTokens instead + */ tokenGetTokenData?: Maybe; + /** Returns dynamic data of a token such as price, market cap, etc. */ tokenGetTokenDynamicData?: Maybe; + /** Returns all allowed tokens for a given chain or chains */ tokenGetTokens: Array; + /** + * Returns meta data for a given set of tokens such as description, website, etc. + * @deprecated Use tokenGetTokens instead + */ tokenGetTokensData: Array; + /** Returns dynamic data of a set of tokens such as price, market cap, etc. */ tokenGetTokensDynamicData: Array; userGetFbeetsBalance: GqlUserFbeetsBalance; userGetPoolBalances: Array; @@ -1738,6 +2300,8 @@ export type Query = { veBalGetTotalSupply: Scalars['AmountHumanReadable']['output']; veBalGetUser: GqlVeBalUserData; veBalGetUserBalance: Scalars['AmountHumanReadable']['output']; + veBalGetUserBalances: Array; + /** Returns all pools with veBAL gauges that can be voted on. */ veBalGetVotingList: Array; }; @@ -1753,10 +2317,15 @@ export type QueryContentGetNewsItemsArgs = { }; +export type QueryHooksArgs = { + chain?: InputMaybe; +}; + + export type QueryPoolEventsArgs = { first?: InputMaybe; skip?: InputMaybe; - where: GqlPoolEventsFilter; + where?: InputMaybe; }; @@ -1862,7 +2431,7 @@ export type QuerySorGetSwapPathsArgs = { swapType: GqlSorSwapType; tokenIn: Scalars['String']['input']; tokenOut: Scalars['String']['input']; - useVaultVersion?: InputMaybe; + useProtocolVersion?: InputMaybe; }; @@ -1972,6 +2541,29 @@ export type QueryUserGetSwapsArgs = { skip?: InputMaybe; }; + +export type QueryVeBalGetTotalSupplyArgs = { + chain?: InputMaybe; +}; + + +export type QueryVeBalGetUserArgs = { + address: Scalars['String']['input']; + chain?: InputMaybe; +}; + + +export type QueryVeBalGetUserBalanceArgs = { + address?: InputMaybe; + chain?: InputMaybe; +}; + + +export type QueryVeBalGetUserBalancesArgs = { + address: Scalars['String']['input']; + chains?: InputMaybe>; +}; + export type Token = { __typename?: 'Token'; address: Scalars['String']['output']; diff --git a/packages/gql/src/balancer-api-v3/__generated__/Optimism.ts b/packages/gql/src/balancer-api-v3/__generated__/Optimism.ts index dbb6d7c10..5e68d0c72 100644 --- a/packages/gql/src/balancer-api-v3/__generated__/Optimism.ts +++ b/packages/gql/src/balancer-api-v3/__generated__/Optimism.ts @@ -46,8 +46,10 @@ export type GqlChain = | 'AVALANCHE' | 'BASE' | 'FANTOM' + | 'FRAXTAL' | 'GNOSIS' | 'MAINNET' + | 'MODE' | 'OPTIMISM' | 'POLYGON' | 'SEPOLIA' @@ -130,41 +132,73 @@ export type GqlLatestSyncedBlocks = { userWalletSyncBlock: Scalars['BigInt']['output']; }; +/** All info on the nested pool if the token is a BPT. It will only support 1 level of nesting. */ export type GqlNestedPool = { __typename?: 'GqlNestedPool'; + /** Address of the pool. */ address: Scalars['Bytes']['output']; + /** Price rate of the Balancer Pool Token (BPT). */ bptPriceRate: Scalars['BigDecimal']['output']; + /** Timestamp of when the pool was created. */ createTime: Scalars['Int']['output']; + /** Address of the factory contract that created the pool, if applicable. */ factory?: Maybe; + /** Unique identifier of the pool. */ id: Scalars['ID']['output']; + /** Name of the pool. */ name: Scalars['String']['output']; + /** Total liquidity of the parent pool in the nested pool in USD. */ nestedLiquidity: Scalars['BigDecimal']['output']; + /** Percentage of the parents pool shares inside the nested pool. */ nestedPercentage: Scalars['BigDecimal']['output']; + /** Number of shares of the parent pool in the nested pool. */ nestedShares: Scalars['BigDecimal']['output']; + /** Address of the pool's owner. */ owner: Scalars['Bytes']['output']; + /** Fee charged for swapping tokens in the pool as %. 0.01 -> 0.01% */ swapFee: Scalars['BigDecimal']['output']; + /** Symbol of the pool. */ symbol: Scalars['String']['output']; + /** List of all tokens in the pool. */ tokens: Array; + /** Total liquidity in the pool in USD. */ totalLiquidity: Scalars['BigDecimal']['output']; + /** Total number of shares in the pool. */ totalShares: Scalars['BigDecimal']['output']; + /** Type of the pool. */ type: GqlPoolType; + /** Version of the pool. */ version: Scalars['Int']['output']; }; +/** Represents an event that occurs when liquidity is added or removed from a pool. */ export type GqlPoolAddRemoveEventV3 = GqlPoolEvent & { __typename?: 'GqlPoolAddRemoveEventV3'; + /** The block number of the event. */ blockNumber: Scalars['Int']['output']; + /** The block timestamp of the event. */ blockTimestamp: Scalars['Int']['output']; + /** The chain on which the event occurred. */ chain: GqlChain; + /** The unique identifier of the event. */ id: Scalars['ID']['output']; + /** The log index of the event. */ logIndex: Scalars['Int']['output']; + /** The pool ID associated with the event. */ poolId: Scalars['String']['output']; + /** The sender of the event. */ sender: Scalars['String']['output']; + /** The timestamp of the event. */ timestamp: Scalars['Int']['output']; + /** The tokens involved in the event. Ordered by poolToken index. */ tokens: Array; + /** The transaction hash of the event. */ tx: Scalars['String']['output']; + /** The type of the event. */ type: GqlPoolEventType; + /** The user address associated with the event. */ userAddress: Scalars['String']['output']; + /** The value of the event in USD. */ valueUSD: Scalars['Float']['output']; }; @@ -178,6 +212,43 @@ export type GqlPoolApr = { thirdPartyApr: GqlPoolAprValue; }; +/** All APRs for a pool */ +export type GqlPoolAprItem = { + __typename?: 'GqlPoolAprItem'; + /** The APR value in % -> 0.2 = 0.2% */ + apr: Scalars['Float']['output']; + /** The id of the APR item */ + id: Scalars['ID']['output']; + /** The title of the APR item, a human readable form */ + title: Scalars['String']['output']; + /** Specific type of this APR */ + type: GqlPoolAprItemType; +}; + +/** Enum representing the different types of the APR in a pool. */ +export type GqlPoolAprItemType = + /** APR that pools earns when BPT is staked on AURA. */ + | 'AURA' + /** Represents the yield from an IB (Interest-Bearing) asset APR in a pool. */ + | 'IB_YIELD' + /** APR in a pool that can be earned through locking, i.e. veBAL */ + | 'LOCKING' + /** Rewards distributed by merkl.xyz */ + | 'MERKL' + /** Represents if the APR items comes from a nested pool. */ + | 'NESTED' + /** Staking reward APR in a pool, i.e. BAL or BEETS. */ + | 'STAKING' + /** APR boost that can be earned, i.e. via veBAL or maBEETS. */ + | 'STAKING_BOOST' + /** Cow AMM specific APR */ + | 'SURPLUS' + /** Represents the swap fee APR in a pool. */ + | 'SWAP_FEE' + /** APR that can be earned thourgh voting, i.e. gauge votes */ + | 'VOTING' + | '%future added value'; + export type GqlPoolAprRange = { __typename?: 'GqlPoolAprRange'; max: Scalars['BigDecimal']['output']; @@ -195,23 +266,34 @@ export type GqlPoolAprValue = GqlPoolAprRange | GqlPoolAprTotal; export type GqlPoolBase = { /** The contract address of the pool. */ address: Scalars['Bytes']['output']; - /** Returns all pool tokens, including any nested tokens and phantom BPTs on one level. */ + /** + * Returns all pool tokens, including any nested tokens and phantom BPTs on one level. + * @deprecated Use poolTokens instead + */ allTokens: Array; + /** List of categories assigned by the team based on external factors */ + categories?: Maybe>>; /** The chain on which the pool is deployed */ chain: GqlChain; /** The timestamp the pool was created. */ createTime: Scalars['Int']['output']; /** The decimals of the BPT, usually 18 */ decimals: Scalars['Int']['output']; - /** Only returns main tokens, also known as leave tokens. Wont return any nested BPTs. Used for displaying the tokens that the pool consists of. */ + /** + * Only returns main tokens, also known as leave tokens. Wont return any nested BPTs. Used for displaying the tokens that the pool consists of. + * @deprecated Use poolTokens instead + */ displayTokens: Array; /** Dynamic data such as token balances, swap fees or volume */ dynamicData: GqlPoolDynamicData; /** The factory contract address from which the pool was created. */ factory?: Maybe; - /** The pool id. This is equal to the address for vaultVersion 3 pools */ + /** The pool id. This is equal to the address for protocolVersion 3 pools */ id: Scalars['ID']['output']; - /** Deprecated */ + /** + * Deprecated + * @deprecated Removed without replacement + */ investConfig: GqlPoolInvestConfig; /** The name of the pool as per contract */ name: Scalars['String']['output']; @@ -219,19 +301,29 @@ export type GqlPoolBase = { owner?: Maybe; /** Returns all pool tokens, including BPTs and nested pools if there are any. Only one nested level deep. */ poolTokens: Array; + /** The protocol version on which the pool is deployed, 1, 2 or 3 */ + protocolVersion: Scalars['Int']['output']; /** Staking options of this pool which emit additional rewards */ staking?: Maybe; /** The token symbol of the pool as per contract */ symbol: Scalars['String']['output']; + /** List of tags assigned by the team based on external factors */ + tags?: Maybe>>; /** The pool type, such as weighted, stable, etc. */ type: GqlPoolType; /** If a user address was provided in the query, the user balance is populated here */ userBalance?: Maybe; - /** The vault version on which the pool is deployed, 2 or 3 */ + /** + * The vault version on which the pool is deployed, 2 or 3 + * @deprecated use protocolVersion instead + */ vaultVersion: Scalars['Int']['output']; /** The version of the pool type. */ version: Scalars['Int']['output']; - /** Deprecated */ + /** + * Deprecated + * @deprecated Removed without replacement + */ withdrawConfig: GqlPoolWithdrawConfig; }; @@ -278,6 +370,7 @@ export type GqlPoolComposableStable = GqlPoolBase & { allTokens: Array; amp: Scalars['BigInt']['output']; bptPriceRate: Scalars['BigDecimal']['output']; + categories?: Maybe>>; chain: GqlChain; createTime: Scalars['Int']['output']; decimals: Scalars['Int']['output']; @@ -285,18 +378,27 @@ export type GqlPoolComposableStable = GqlPoolBase & { dynamicData: GqlPoolDynamicData; factory?: Maybe; id: Scalars['ID']['output']; + /** @deprecated Removed without replacement */ investConfig: GqlPoolInvestConfig; name: Scalars['String']['output']; nestingType: GqlPoolNestingType; owner: Scalars['Bytes']['output']; poolTokens: Array; + protocolVersion: Scalars['Int']['output']; staking?: Maybe; symbol: Scalars['String']['output']; + tags?: Maybe>>; + /** + * All tokens of the pool. If it is a nested pool, the nested pool is expanded with its own tokens again. + * @deprecated Use poolTokens instead + */ tokens: Array; type: GqlPoolType; userBalance?: Maybe; + /** @deprecated use protocolVersion instead */ vaultVersion: Scalars['Int']['output']; version: Scalars['Int']['output']; + /** @deprecated Removed without replacement */ withdrawConfig: GqlPoolWithdrawConfig; }; @@ -305,6 +407,7 @@ export type GqlPoolComposableStableNested = { address: Scalars['Bytes']['output']; amp: Scalars['BigInt']['output']; bptPriceRate: Scalars['BigDecimal']['output']; + categories?: Maybe>>; createTime: Scalars['Int']['output']; factory?: Maybe; id: Scalars['ID']['output']; @@ -313,6 +416,8 @@ export type GqlPoolComposableStableNested = { owner: Scalars['Bytes']['output']; swapFee: Scalars['BigDecimal']['output']; symbol: Scalars['String']['output']; + tags?: Maybe>>; + /** @deprecated Use poolTokens instead */ tokens: Array; totalLiquidity: Scalars['BigDecimal']['output']; totalShares: Scalars['BigDecimal']['output']; @@ -322,7 +427,13 @@ export type GqlPoolComposableStableNested = { export type GqlPoolDynamicData = { __typename?: 'GqlPoolDynamicData'; + /** Protocol and pool creator fees combined */ + aggregateSwapFee: Scalars['BigDecimal']['output']; + /** Protocol and pool creator fees combined */ + aggregateYieldFee: Scalars['BigDecimal']['output']; + /** @deprecated Use aprItems instead */ apr: GqlPoolApr; + aprItems: Array; fees24h: Scalars['BigDecimal']['output']; fees24hAth: Scalars['BigDecimal']['output']; fees24hAthTimestamp: Scalars['Int']['output']; @@ -330,6 +441,7 @@ export type GqlPoolDynamicData = { fees24hAtlTimestamp: Scalars['Int']['output']; fees48h: Scalars['BigDecimal']['output']; holdersCount: Scalars['BigInt']['output']; + /** True for bricked pools */ isInRecoveryMode: Scalars['Boolean']['output']; isPaused: Scalars['Boolean']['output']; lifetimeSwapFees: Scalars['BigDecimal']['output']; @@ -339,6 +451,11 @@ export type GqlPoolDynamicData = { sharePriceAthTimestamp: Scalars['Int']['output']; sharePriceAtl: Scalars['BigDecimal']['output']; sharePriceAtlTimestamp: Scalars['Int']['output']; + /** CowAmm specific, equivalent of swap fees */ + surplus24h: Scalars['BigDecimal']['output']; + /** CowAmm specific, equivalent of swap fees */ + surplus48h: Scalars['BigDecimal']['output']; + /** Disabled for bricked pools */ swapEnabled: Scalars['Boolean']['output']; swapFee: Scalars['BigDecimal']['output']; swapsCount: Scalars['BigInt']['output']; @@ -365,6 +482,7 @@ export type GqlPoolElement = GqlPoolBase & { address: Scalars['Bytes']['output']; allTokens: Array; baseToken: Scalars['Bytes']['output']; + categories?: Maybe>>; chain: GqlChain; createTime: Scalars['Int']['output']; decimals: Scalars['Int']['output']; @@ -372,34 +490,53 @@ export type GqlPoolElement = GqlPoolBase & { dynamicData: GqlPoolDynamicData; factory?: Maybe; id: Scalars['ID']['output']; + /** @deprecated Removed without replacement */ investConfig: GqlPoolInvestConfig; name: Scalars['String']['output']; owner: Scalars['Bytes']['output']; poolTokens: Array; principalToken: Scalars['Bytes']['output']; + protocolVersion: Scalars['Int']['output']; staking?: Maybe; symbol: Scalars['String']['output']; + tags?: Maybe>>; + /** @deprecated Use poolTokens instead */ tokens: Array; type: GqlPoolType; unitSeconds: Scalars['BigInt']['output']; userBalance?: Maybe; + /** @deprecated use protocolVersion instead */ vaultVersion: Scalars['Int']['output']; version: Scalars['Int']['output']; + /** @deprecated Removed without replacement */ withdrawConfig: GqlPoolWithdrawConfig; }; +/** Represents an event that occurs in a pool. */ export type GqlPoolEvent = { + /** The block number of the event. */ blockNumber: Scalars['Int']['output']; + /** The block timestamp of the event. */ blockTimestamp: Scalars['Int']['output']; + /** The chain on which the event occurred. */ chain: GqlChain; + /** The unique identifier of the event. */ id: Scalars['ID']['output']; + /** The log index of the event. */ logIndex: Scalars['Int']['output']; + /** The pool ID associated with the event. */ poolId: Scalars['String']['output']; + /** The sender of the event. */ sender: Scalars['String']['output']; + /** The timestamp of the event. */ timestamp: Scalars['Int']['output']; + /** The transaction hash of the event. */ tx: Scalars['String']['output']; + /** The type of the event. */ type: GqlPoolEventType; + /** The user address associated with the event. */ userAddress: Scalars['String']['output']; + /** The USD value of this event. */ valueUSD: Scalars['Float']['output']; }; @@ -423,11 +560,15 @@ export type GqlPoolEventsDataRange = | '%future added value'; export type GqlPoolEventsFilter = { - chain: GqlChain; - poolId: Scalars['String']['input']; + chainIn?: InputMaybe>>; + poolIdIn?: InputMaybe>>; range?: InputMaybe; typeIn?: InputMaybe>>; userAddress?: InputMaybe; + /** USD value of the event */ + valueUSD_gt?: InputMaybe; + /** USD value of the event */ + valueUSD_gte?: InputMaybe; }; export type GqlPoolFeaturedPool = { @@ -449,8 +590,6 @@ export type GqlPoolFeaturedPoolGroup = { export type GqlPoolFeaturedPoolGroupItem = GqlFeaturePoolGroupItemExternalLink | GqlPoolMinimal; export type GqlPoolFilter = { - categoryIn?: InputMaybe>; - categoryNotIn?: InputMaybe>; chainIn?: InputMaybe>; chainNotIn?: InputMaybe>; createTime?: InputMaybe; @@ -461,15 +600,33 @@ export type GqlPoolFilter = { minTvl?: InputMaybe; poolTypeIn?: InputMaybe>; poolTypeNotIn?: InputMaybe>; + protocolVersionIn?: InputMaybe>; + /** + * For list of tags see: https://github.com/balancer/metadata/blob/main/pools/index.json + * Use uppercase + */ + tagIn?: InputMaybe>; + /** + * For list of tags see: https://github.com/balancer/metadata/blob/main/pools/index.json + * Use uppercase + */ + tagNotIn?: InputMaybe>; tokensIn?: InputMaybe>; tokensNotIn?: InputMaybe>; userAddress?: InputMaybe; - vaultVersionIn?: InputMaybe>; }; export type GqlPoolFilterCategory = | 'BLACK_LISTED' | 'INCENTIVIZED' + | 'LRT' + | 'POINTS' + | 'POINTS_EIGENLAYER' + | 'POINTS_GYRO' + | 'POINTS_KELP' + | 'POINTS_RENZO' + | 'POINTS_SWELL' + | 'SUPERFEST' | '%future added value'; export type GqlPoolFx = GqlPoolBase & { @@ -478,6 +635,7 @@ export type GqlPoolFx = GqlPoolBase & { allTokens: Array; alpha: Scalars['String']['output']; beta: Scalars['String']['output']; + categories?: Maybe>>; chain: GqlChain; createTime: Scalars['Int']['output']; decimals: Scalars['Int']['output']; @@ -487,18 +645,27 @@ export type GqlPoolFx = GqlPoolBase & { epsilon: Scalars['String']['output']; factory?: Maybe; id: Scalars['ID']['output']; + /** @deprecated Removed without replacement */ investConfig: GqlPoolInvestConfig; lambda: Scalars['String']['output']; name: Scalars['String']['output']; owner?: Maybe; poolTokens: Array; + protocolVersion: Scalars['Int']['output']; staking?: Maybe; symbol: Scalars['String']['output']; + tags?: Maybe>>; + /** + * All tokens of the pool. If it is a nested pool, the nested pool is expanded with its own tokens again. + * @deprecated Use poolTokens instead + */ tokens: Array; type: GqlPoolType; userBalance?: Maybe; + /** @deprecated use protocolVersion instead */ vaultVersion: Scalars['Int']['output']; version: Scalars['Int']['output']; + /** @deprecated Removed without replacement */ withdrawConfig: GqlPoolWithdrawConfig; }; @@ -509,6 +676,7 @@ export type GqlPoolGyro = GqlPoolBase & { alpha: Scalars['String']['output']; beta: Scalars['String']['output']; c: Scalars['String']['output']; + categories?: Maybe>>; chain: GqlChain; createTime: Scalars['Int']['output']; dSq: Scalars['String']['output']; @@ -517,30 +685,39 @@ export type GqlPoolGyro = GqlPoolBase & { dynamicData: GqlPoolDynamicData; factory?: Maybe; id: Scalars['ID']['output']; + /** @deprecated Removed without replacement */ investConfig: GqlPoolInvestConfig; lambda: Scalars['String']['output']; name: Scalars['String']['output']; nestingType: GqlPoolNestingType; owner: Scalars['Bytes']['output']; poolTokens: Array; + protocolVersion: Scalars['Int']['output']; root3Alpha: Scalars['String']['output']; s: Scalars['String']['output']; sqrtAlpha: Scalars['String']['output']; sqrtBeta: Scalars['String']['output']; staking?: Maybe; symbol: Scalars['String']['output']; + tags?: Maybe>>; tauAlphaX: Scalars['String']['output']; tauAlphaY: Scalars['String']['output']; tauBetaX: Scalars['String']['output']; tauBetaY: Scalars['String']['output']; + /** + * All tokens of the pool. If it is a nested pool, the nested pool is expanded with its own tokens again. + * @deprecated Use poolTokens instead + */ tokens: Array; type: GqlPoolType; u: Scalars['String']['output']; userBalance?: Maybe; v: Scalars['String']['output']; + /** @deprecated use protocolVersion instead */ vaultVersion: Scalars['Int']['output']; version: Scalars['Int']['output']; w: Scalars['String']['output']; + /** @deprecated Removed without replacement */ withdrawConfig: GqlPoolWithdrawConfig; z: Scalars['String']['output']; }; @@ -592,6 +769,7 @@ export type GqlPoolLiquidityBootstrapping = GqlPoolBase & { __typename?: 'GqlPoolLiquidityBootstrapping'; address: Scalars['Bytes']['output']; allTokens: Array; + categories?: Maybe>>; chain: GqlChain; createTime: Scalars['Int']['output']; decimals: Scalars['Int']['output']; @@ -599,18 +777,27 @@ export type GqlPoolLiquidityBootstrapping = GqlPoolBase & { dynamicData: GqlPoolDynamicData; factory?: Maybe; id: Scalars['ID']['output']; + /** @deprecated Removed without replacement */ investConfig: GqlPoolInvestConfig; name: Scalars['String']['output']; nestingType: GqlPoolNestingType; owner: Scalars['Bytes']['output']; poolTokens: Array; + protocolVersion: Scalars['Int']['output']; staking?: Maybe; symbol: Scalars['String']['output']; + tags?: Maybe>>; + /** + * All tokens of the pool. If it is a nested pool, the nested pool is expanded with its own tokens again. + * @deprecated Use poolTokens instead + */ tokens: Array; type: GqlPoolType; userBalance?: Maybe; + /** @deprecated use protocolVersion instead */ vaultVersion: Scalars['Int']['output']; version: Scalars['Int']['output']; + /** @deprecated Removed without replacement */ withdrawConfig: GqlPoolWithdrawConfig; }; @@ -619,6 +806,7 @@ export type GqlPoolMetaStable = GqlPoolBase & { address: Scalars['Bytes']['output']; allTokens: Array; amp: Scalars['BigInt']['output']; + categories?: Maybe>>; chain: GqlChain; createTime: Scalars['Int']['output']; decimals: Scalars['Int']['output']; @@ -626,17 +814,23 @@ export type GqlPoolMetaStable = GqlPoolBase & { dynamicData: GqlPoolDynamicData; factory?: Maybe; id: Scalars['ID']['output']; + /** @deprecated Removed without replacement */ investConfig: GqlPoolInvestConfig; name: Scalars['String']['output']; owner: Scalars['Bytes']['output']; poolTokens: Array; + protocolVersion: Scalars['Int']['output']; staking?: Maybe; symbol: Scalars['String']['output']; + tags?: Maybe>>; + /** @deprecated Use poolTokens instead */ tokens: Array; type: GqlPoolType; userBalance?: Maybe; + /** @deprecated use protocolVersion instead */ vaultVersion: Scalars['Int']['output']; version: Scalars['Int']['output']; + /** @deprecated Removed without replacement */ withdrawConfig: GqlPoolWithdrawConfig; }; @@ -647,38 +841,66 @@ export type GqlPoolMinimal = { address: Scalars['Bytes']['output']; /** Returns all pool tokens, including any nested tokens and phantom BPTs */ allTokens: Array; + /** List of categories assigned by the team based on external factors */ + categories?: Maybe>>; /** The chain on which the pool is deployed */ chain: GqlChain; /** The timestamp the pool was created. */ createTime: Scalars['Int']['output']; /** The decimals of the BPT, usually 18 */ decimals: Scalars['Int']['output']; - /** Only returns main tokens, also known as leave tokens. Wont return any nested BPTs. Used for displaying the tokens that the pool consists of. */ + /** Only returns main or underlying tokens, also known as leave tokens. Wont return any nested BPTs. Used for displaying the tokens that the pool consists of. */ displayTokens: Array; /** Dynamic data such as token balances, swap fees or volume */ dynamicData: GqlPoolDynamicData; /** The factory contract address from which the pool was created. */ factory?: Maybe; - /** The pool id. This is equal to the address for vaultVersion 3 pools */ + /** Whether at least one token in this pool is considered an ERC4626 token. */ + hasErc4626: Scalars['Boolean']['output']; + /** Hook assigned to a pool */ + hook?: Maybe; + /** The pool id. This is equal to the address for protocolVersion 3 pools */ id: Scalars['ID']['output']; + /** Pool is receiving rewards when liquidity tokens are staked */ + incentivized: Scalars['Boolean']['output']; /** The name of the pool as per contract */ name: Scalars['String']['output']; /** The wallet address of the owner of the pool. Pool owners can set certain properties like swapFees or AMP. */ owner?: Maybe; + /** The protocol version on which the pool is deployed, 1, 2 or 3 */ + protocolVersion: Scalars['Int']['output']; /** Staking options of this pool which emit additional rewards */ staking?: Maybe; /** The token symbol of the pool as per contract */ symbol: Scalars['String']['output']; + /** List of tags assigned by the team based on external factors */ + tags?: Maybe>>; /** The pool type, such as weighted, stable, etc. */ type: GqlPoolType; /** If a user address was provided in the query, the user balance is populated here */ userBalance?: Maybe; - /** The vault version on which the pool is deployed, 2 or 3 */ + /** + * The vault version on which the pool is deployed, 2 or 3 + * @deprecated use protocolVersion instead + */ vaultVersion: Scalars['Int']['output']; /** The version of the pool type. */ version: Scalars['Int']['output']; }; +/** Result of the poolReloadPools mutation */ +export type GqlPoolMutationResult = { + __typename?: 'GqlPoolMutationResult'; + /** The chain that was reloaded. */ + chain: GqlChain; + /** The error message */ + error?: Maybe; + /** Whether it was successful or not. */ + success: Scalars['Boolean']['output']; + /** The type of pools that were reloaded. */ + type: Scalars['String']['output']; +}; + export type GqlPoolNestedUnion = GqlPoolComposableStableNested; export type GqlPoolNestingType = @@ -710,10 +932,12 @@ export type GqlPoolSnapshot = { id: Scalars['ID']['output']; poolId: Scalars['String']['output']; sharePrice: Scalars['String']['output']; + surplus24h: Scalars['String']['output']; swapsCount: Scalars['String']['output']; timestamp: Scalars['Int']['output']; totalLiquidity: Scalars['String']['output']; totalShares: Scalars['String']['output']; + totalSurplus: Scalars['String']['output']; totalSwapFee: Scalars['String']['output']; totalSwapVolume: Scalars['String']['output']; volume24h: Scalars['String']['output']; @@ -732,6 +956,7 @@ export type GqlPoolStable = GqlPoolBase & { address: Scalars['Bytes']['output']; allTokens: Array; amp: Scalars['BigInt']['output']; + categories?: Maybe>>; chain: GqlChain; createTime: Scalars['Int']['output']; decimals: Scalars['Int']['output']; @@ -739,17 +964,23 @@ export type GqlPoolStable = GqlPoolBase & { dynamicData: GqlPoolDynamicData; factory?: Maybe; id: Scalars['ID']['output']; + /** @deprecated Removed without replacement */ investConfig: GqlPoolInvestConfig; name: Scalars['String']['output']; owner: Scalars['Bytes']['output']; poolTokens: Array; + protocolVersion: Scalars['Int']['output']; staking?: Maybe; symbol: Scalars['String']['output']; + tags?: Maybe>>; + /** @deprecated Use poolTokens instead */ tokens: Array; type: GqlPoolType; userBalance?: Maybe; + /** @deprecated use protocolVersion instead */ vaultVersion: Scalars['Int']['output']; version: Scalars['Int']['output']; + /** @deprecated Removed without replacement */ withdrawConfig: GqlPoolWithdrawConfig; }; @@ -766,12 +997,23 @@ export type GqlPoolStableComposablePoolData = { export type GqlPoolStaking = { __typename?: 'GqlPoolStaking'; address: Scalars['String']['output']; + aura?: Maybe; chain: GqlChain; farm?: Maybe; gauge?: Maybe; id: Scalars['ID']['output']; reliquary?: Maybe; type: GqlPoolStakingType; + vebal?: Maybe; +}; + +export type GqlPoolStakingAura = { + __typename?: 'GqlPoolStakingAura'; + apr: Scalars['Float']['output']; + auraPoolAddress: Scalars['String']['output']; + auraPoolId: Scalars['String']['output']; + id: Scalars['ID']['output']; + isShutdown: Scalars['Boolean']['output']; }; export type GqlPoolStakingFarmRewarder = { @@ -842,12 +1084,20 @@ export type GqlPoolStakingReliquaryFarmLevel = { }; export type GqlPoolStakingType = + | 'AURA' | 'FRESH_BEETS' | 'GAUGE' | 'MASTER_CHEF' | 'RELIQUARY' + | 'VEBAL' | '%future added value'; +export type GqlPoolStakingVebal = { + __typename?: 'GqlPoolStakingVebal'; + id: Scalars['ID']['output']; + vebalAddress: Scalars['String']['output']; +}; + export type GqlPoolSwap = { __typename?: 'GqlPoolSwap'; chain: GqlChain; @@ -863,21 +1113,75 @@ export type GqlPoolSwap = { valueUSD: Scalars['Float']['output']; }; +/** Represents an event that occurs when a swap is made in a pool using the CowAmm protocol. */ +export type GqlPoolSwapEventCowAmm = GqlPoolEvent & { + __typename?: 'GqlPoolSwapEventCowAmm'; + /** The block number of the event. */ + blockNumber: Scalars['Int']['output']; + /** The block timestamp of the event. */ + blockTimestamp: Scalars['Int']['output']; + /** The chain on which the event occurred. */ + chain: GqlChain; + /** The fee that this swap generated. */ + fee: GqlPoolEventAmount; + /** The unique identifier of the event. */ + id: Scalars['ID']['output']; + /** The log index of the event. */ + logIndex: Scalars['Int']['output']; + /** The pool ID associated with the event. */ + poolId: Scalars['String']['output']; + /** The sender of the event. */ + sender: Scalars['String']['output']; + /** The surplus generated by the swap. */ + surplus: GqlPoolEventAmount; + /** The timestamp of the event. */ + timestamp: Scalars['Int']['output']; + /** The token that was swapped in the event. */ + tokenIn: GqlPoolEventAmount; + /** The token that was swapped out in the event. */ + tokenOut: GqlPoolEventAmount; + /** The transaction hash of the event. */ + tx: Scalars['String']['output']; + /** The type of the event. */ + type: GqlPoolEventType; + /** The user address associated with the event. */ + userAddress: Scalars['String']['output']; + /** The value of the event in USD. */ + valueUSD: Scalars['Float']['output']; +}; + +/** Represents an event that occurs when a swap is made in a pool. */ export type GqlPoolSwapEventV3 = GqlPoolEvent & { __typename?: 'GqlPoolSwapEventV3'; + /** The block number of the event. */ blockNumber: Scalars['Int']['output']; + /** The block timestamp of the event. */ blockTimestamp: Scalars['Int']['output']; + /** The chain on which the event occurred. */ chain: GqlChain; + /** The fee that this swap generated. */ + fee: GqlPoolEventAmount; + /** The unique identifier of the event. */ id: Scalars['ID']['output']; + /** The log index of the event. */ logIndex: Scalars['Int']['output']; + /** The pool ID associated with the event. */ poolId: Scalars['String']['output']; + /** The sender of the event. */ sender: Scalars['String']['output']; + /** The timestamp of the event. */ timestamp: Scalars['Int']['output']; + /** The token that was swapped in the event. */ tokenIn: GqlPoolEventAmount; + /** The token that was swapped out in the event. */ tokenOut: GqlPoolEventAmount; + /** The transaction hash of the event. */ tx: Scalars['String']['output']; + /** The type of the event. */ type: GqlPoolEventType; + /** The user address associated with the event. */ userAddress: Scalars['String']['output']; + /** The value of the event in USD. */ valueUSD: Scalars['Float']['output']; }; @@ -940,19 +1244,45 @@ export type GqlPoolTokenComposableStable = GqlPoolTokenBase & { export type GqlPoolTokenComposableStableNestedUnion = GqlPoolToken; +/** + * All info on the pool token. It will also include the nested pool if the token is a BPT. It will only support 1 level of nesting. + * A second (unsupported) level of nesting is shown by having hasNestedPool = true but nestedPool = null. + */ export type GqlPoolTokenDetail = { __typename?: 'GqlPoolTokenDetail'; + /** Address of the pool token. */ address: Scalars['String']['output']; + /** Balance of the pool token inside the pool. */ balance: Scalars['BigDecimal']['output']; + /** USD Balance of the pool token. */ + balanceUSD: Scalars['BigDecimal']['output']; + /** Decimals of the pool token. */ decimals: Scalars['Int']['output']; + /** Indicates whether this token is a BPT and therefor has a nested pool. */ hasNestedPool: Scalars['Boolean']['output']; + /** Id of the token. A combination of pool id and token address. */ id: Scalars['ID']['output']; + /** Index of the pool token in the pool as returned by the vault. */ index: Scalars['Int']['output']; + /** Whether the token is in the allow list. */ + isAllowed: Scalars['Boolean']['output']; + /** Whether the token is considered an ERC4626 token. */ + isErc4626: Scalars['Boolean']['output']; + /** Name of the pool token. */ name: Scalars['String']['output']; + /** Additional data for the nested pool if the token is a BPT. Null otherwise. */ nestedPool?: Maybe; + /** If it is an appreciating token, it shows the current price rate. 1 otherwise. */ priceRate: Scalars['BigDecimal']['output']; + /** The address of the price rate provider. */ priceRateProvider?: Maybe; + /** Additional data for the price rate provider, such as reviews or warnings. */ + priceRateProviderData?: Maybe; + /** Symbol of the pool token. */ symbol: Scalars['String']['output']; + /** If it is an Erc4262, this will be the underlying token if present in the API. */ + underlyingToken?: Maybe; + /** The weight of the token in the pool if it is a weighted pool, null otherwise */ weight?: Maybe; }; @@ -971,6 +1301,7 @@ export type GqlPoolTokenExpanded = { address: Scalars['String']['output']; decimals: Scalars['Int']['output']; id: Scalars['ID']['output']; + isErc4626: Scalars['Boolean']['output']; isMainToken: Scalars['Boolean']['output']; isNested: Scalars['Boolean']['output']; isPhantomBpt: Scalars['Boolean']['output']; @@ -984,6 +1315,7 @@ export type GqlPoolTokenUnion = GqlPoolToken | GqlPoolTokenComposableStable; /** Supported pool types */ export type GqlPoolType = | 'COMPOSABLE_STABLE' + | 'COW_AMM' | 'ELEMENT' | 'FX' | 'GYRO' @@ -1003,10 +1335,8 @@ export type GqlPoolUnion = GqlPoolComposableStable | GqlPoolElement | GqlPoolFx /** If a user address was provided in the query, the user balance is populated here */ export type GqlPoolUserBalance = { __typename?: 'GqlPoolUserBalance'; - /** The staked balance in either a gauge or farm as float. */ - stakedBalance: Scalars['AmountHumanReadable']['output']; - /** The staked balance in either a gauge or farm in USD as float. */ - stakedBalanceUsd: Scalars['Float']['output']; + /** The staked BPT balances of the user. */ + stakedBalances: Array; /** Total balance (wallet + staked) as float */ totalBalance: Scalars['AmountHumanReadable']['output']; /** Total balance (wallet + staked) in USD as float */ @@ -1027,6 +1357,7 @@ export type GqlPoolWeighted = GqlPoolBase & { __typename?: 'GqlPoolWeighted'; address: Scalars['Bytes']['output']; allTokens: Array; + categories?: Maybe>>; chain: GqlChain; createTime: Scalars['Int']['output']; decimals: Scalars['Int']['output']; @@ -1034,19 +1365,27 @@ export type GqlPoolWeighted = GqlPoolBase & { dynamicData: GqlPoolDynamicData; factory?: Maybe; id: Scalars['ID']['output']; + /** @deprecated Removed without replacement */ investConfig: GqlPoolInvestConfig; name: Scalars['String']['output']; nestingType: GqlPoolNestingType; owner: Scalars['Bytes']['output']; poolTokens: Array; + protocolVersion: Scalars['Int']['output']; staking?: Maybe; symbol: Scalars['String']['output']; - /** All tokens of the pool. If it is a nested pool, the nested pool is expanded with its own tokens again. */ + tags?: Maybe>>; + /** + * All tokens of the pool. If it is a nested pool, the nested pool is expanded with its own tokens again. + * @deprecated Use poolTokens instead + */ tokens: Array; type: GqlPoolType; userBalance?: Maybe; + /** @deprecated use protocolVersion instead */ vaultVersion: Scalars['Int']['output']; version: Scalars['Int']['output']; + /** @deprecated Removed without replacement */ withdrawConfig: GqlPoolWithdrawConfig; }; @@ -1073,6 +1412,36 @@ export type GqlPriceImpact = { priceImpact?: Maybe; }; +/** Represents the data of a price rate provider */ +export type GqlPriceRateProviderData = { + __typename?: 'GqlPriceRateProviderData'; + /** The address of the price rate provider */ + address: Scalars['String']['output']; + /** The factory used to create the price rate provider, if applicable */ + factory?: Maybe; + /** The name of the price rate provider */ + name?: Maybe; + /** The filename of the review of the price rate provider */ + reviewFile?: Maybe; + /** Indicates if the price rate provider has been reviewed */ + reviewed: Scalars['Boolean']['output']; + /** A summary of the price rate provider, usually just says safe or unsafe */ + summary?: Maybe; + /** Upgradeable components of the price rate provider */ + upgradeableComponents?: Maybe>>; + /** Warnings associated with the price rate provider */ + warnings?: Maybe>; +}; + +/** Represents an upgradeable component of a price rate provider */ +export type GqlPriceRateProviderUpgradeableComponent = { + __typename?: 'GqlPriceRateProviderUpgradeableComponent'; + /** The entry point / proxy of the upgradeable component */ + entryPoint: Scalars['String']['output']; + /** Indicates if the implementation of the component has been reviewed */ + implementationReviewed: Scalars['String']['output']; +}; + export type GqlProtocolMetricsAggregated = { __typename?: 'GqlProtocolMetricsAggregated'; chains: Array; @@ -1252,6 +1621,8 @@ export type GqlSorGetSwapPaths = { paths: Array; /** Price impact of the path */ priceImpact: GqlPriceImpact; + /** The version of the protocol these paths are from */ + protocolVersion: Scalars['Int']['output']; /** The return amount in human form. Return amount is either tokenOutAmount (if swapType is exactIn) or tokenInAmount (if swapType is exactOut) */ returnAmount: Scalars['AmountHumanReadable']['output']; /** The return amount in a raw form */ @@ -1276,7 +1647,10 @@ export type GqlSorGetSwapPaths = { tokenOut: Scalars['String']['output']; /** The amount of tokenOut in human form */ tokenOutAmount: Scalars['AmountHumanReadable']['output']; - /** The version of the vault these paths are from */ + /** + * The version of the vault these paths are from + * @deprecated Use protocolVersion instead + */ vaultVersion: Scalars['Int']['output']; }; @@ -1308,13 +1682,20 @@ export type GqlSorPath = { __typename?: 'GqlSorPath'; /** Input amount of this path in scaled form */ inputAmountRaw: Scalars['String']['output']; + /** A sorted list of booleans that indicate if the respective pool is a buffer */ + isBuffer: Array>; /** Output amount of this path in scaled form */ outputAmountRaw: Scalars['String']['output']; /** A sorted list of pool ids that are used in this path */ pools: Array>; + /** The version of the protocol these paths are from */ + protocolVersion: Scalars['Int']['output']; /** A sorted list of tokens that are ussed in this path */ tokens: Array>; - /** Vault version of this path. */ + /** + * Vault version of this path. + * @deprecated Use protocolVersion instead + */ vaultVersion: Scalars['Int']['output']; }; @@ -1391,21 +1772,44 @@ export type GqlSwapCallDataInput = { slippagePercentage: Scalars['String']['input']; }; +/** Represents a token */ export type GqlToken = { __typename?: 'GqlToken'; + /** The address of the token */ address: Scalars['String']['output']; + /** The chain of the token */ chain: GqlChain; + /** The chain ID of the token */ chainId: Scalars['Int']['output']; + /** The coingecko ID for this token, if present */ + coingeckoId?: Maybe; + /** The number of decimal places for the token */ decimals: Scalars['Int']['output']; + /** The description of the token */ description?: Maybe; + /** The Discord URL of the token */ discordUrl?: Maybe; + /** Whether the token is considered an ERC4626 token. */ + isErc4626: Scalars['Boolean']['output']; + /** The logo URI of the token */ logoURI?: Maybe; + /** The name of the token */ name: Scalars['String']['output']; + /** The rate provider data for the token */ + priceRateProviderData?: Maybe; + /** The priority of the token, can be used for sorting. */ priority: Scalars['Int']['output']; + /** The rate provider data for the token */ + rateProviderData?: Maybe; + /** The symbol of the token */ symbol: Scalars['String']['output']; + /** The Telegram URL of the token */ telegramUrl?: Maybe; + /** Indicates if the token is tradable */ tradable: Scalars['Boolean']['output']; + /** The Twitter username of the token */ twitterUsername?: Maybe; + /** The website URL of the token */ websiteUrl?: Maybe; }; @@ -1443,25 +1847,52 @@ export type GqlTokenData = { websiteUrl?: Maybe; }; +/** Represents additional data for a token */ export type GqlTokenDynamicData = { __typename?: 'GqlTokenDynamicData'; + /** The all-time high price of the token */ ath: Scalars['Float']['output']; + /** The all-time low price of the token */ atl: Scalars['Float']['output']; + /** The fully diluted valuation of the token */ fdv?: Maybe; + /** The highest price in the last 24 hours */ high24h: Scalars['Float']['output']; + /** The unique identifier of the dynamic data */ id: Scalars['String']['output']; + /** The lowest price in the last 24 hours */ low24h: Scalars['Float']['output']; + /** The market capitalization of the token */ marketCap?: Maybe; + /** The current price of the token */ price: Scalars['Float']['output']; + /** The price change in the last 24 hours */ priceChange24h: Scalars['Float']['output']; + /** The percentage price change in the last 7 days */ priceChangePercent7d?: Maybe; + /** The percentage price change in the last 14 days */ priceChangePercent14d?: Maybe; + /** The percentage price change in the last 24 hours */ priceChangePercent24h: Scalars['Float']['output']; + /** The percentage price change in the last 30 days */ priceChangePercent30d?: Maybe; + /** The address of the token */ tokenAddress: Scalars['String']['output']; + /** The timestamp when the data was last updated */ updatedAt: Scalars['String']['output']; }; +/** Result of the poolReloadPools mutation */ +export type GqlTokenMutationResult = { + __typename?: 'GqlTokenMutationResult'; + /** The chain that was reloaded. */ + chain: GqlChain; + /** The error message */ + error?: Maybe; + /** Whether it was successful or not. */ + success: Scalars['Boolean']['output']; +}; + export type GqlTokenPrice = { __typename?: 'GqlTokenPrice'; address: Scalars['String']['output']; @@ -1503,46 +1934,119 @@ export type GqlUserPoolBalance = { walletBalance: Scalars['AmountHumanReadable']['output']; }; +export type GqlUserStakedBalance = { + __typename?: 'GqlUserStakedBalance'; + /** The staked BPT balance as float. */ + balance: Scalars['AmountHumanReadable']['output']; + /** The steaked BPT balance in USD as float. */ + balanceUsd: Scalars['Float']['output']; + /** The id of the staking to match with GqlPoolStaking.id. */ + stakingId: Scalars['String']['output']; + /** The staking type (Gauge, farm, aura, etc.) in which this balance is staked. */ + stakingType: GqlPoolStakingType; +}; + export type GqlUserSwapVolumeFilter = { poolIdIn?: InputMaybe>; tokenInIn?: InputMaybe>; tokenOutIn?: InputMaybe>; }; +export type GqlVeBalBalance = { + __typename?: 'GqlVeBalBalance'; + balance: Scalars['AmountHumanReadable']['output']; + chain: GqlChain; + locked: Scalars['AmountHumanReadable']['output']; + lockedUsd: Scalars['AmountHumanReadable']['output']; +}; + export type GqlVeBalUserData = { __typename?: 'GqlVeBalUserData'; balance: Scalars['AmountHumanReadable']['output']; + locked: Scalars['AmountHumanReadable']['output']; + lockedUsd: Scalars['AmountHumanReadable']['output']; rank?: Maybe; }; +/** The Gauge that can be voted on through veBAL and that will ultimately receive the rewards. */ export type GqlVotingGauge = { __typename?: 'GqlVotingGauge'; + /** The timestamp the gauge was added. */ addedTimestamp?: Maybe; + /** The address of the root gauge on Ethereum mainnet. */ address: Scalars['Bytes']['output']; + /** The address of the child gauge on the specific chain. */ childGaugeAddress?: Maybe; + /** Whether the gauge is killed or not. */ isKilled: Scalars['Boolean']['output']; + /** The relative weight the gauge received this epoch (not more than 1.0). */ + relativeWeight: Scalars['String']['output']; + /** The relative weight cap. 1.0 for uncapped. */ relativeWeightCap?: Maybe; }; +/** A token inside of a pool with a voting gauge. */ export type GqlVotingGaugeToken = { __typename?: 'GqlVotingGaugeToken'; + /** The address of the token. */ address: Scalars['String']['output']; + /** The URL to the token logo. */ logoURI: Scalars['String']['output']; + /** The symbol of the token. */ symbol: Scalars['String']['output']; + /** If it is a weighted pool, the weigh of the token is shown here in %. 0.5 = 50%. */ weight?: Maybe; }; +/** The pool that can be voted on through veBAL */ export type GqlVotingPool = { __typename?: 'GqlVotingPool'; + /** The address of the pool. */ address: Scalars['Bytes']['output']; + /** The chain this pool is on. */ chain: GqlChain; + /** The gauge that is connected to the pool and that will receive the rewards. */ gauge: GqlVotingGauge; + /** Pool ID */ id: Scalars['ID']['output']; + /** The symbol of the pool. */ symbol: Scalars['String']['output']; + /** The tokens inside the pool. */ tokens: Array; + /** The type of the pool. */ type: GqlPoolType; }; +/** Hook data */ +export type Hook = { + __typename?: 'Hook'; + address: Scalars['String']['output']; + chain: GqlChain; + /** Data points changing over time */ + dynamicData?: Maybe; + /** True when hook can change the amounts send to the vault. Necessary to deduct the fees. */ + enableHookAdjustedAmounts: Scalars['Boolean']['output']; + /** List of pools using the hook */ + poolsIds?: Maybe>>; + shouldCallAfterAddLiquidity: Scalars['Boolean']['output']; + shouldCallAfterInitialize: Scalars['Boolean']['output']; + shouldCallAfterRemoveLiquidity: Scalars['Boolean']['output']; + shouldCallAfterSwap: Scalars['Boolean']['output']; + shouldCallBeforeAddLiquidity: Scalars['Boolean']['output']; + shouldCallBeforeInitialize: Scalars['Boolean']['output']; + shouldCallBeforeRemoveLiquidity: Scalars['Boolean']['output']; + shouldCallBeforeSwap: Scalars['Boolean']['output']; + shouldCallComputeDynamicSwapFee: Scalars['Boolean']['output']; +}; + +/** Collection of hook specific data. Percentage format is 0.01 -> 0.01%. */ +export type HookData = { + __typename?: 'HookData'; + addLiquidityFeePercentage?: Maybe; + removeLiquidityFeePercentage?: Maybe; + swapFeePercentage?: Maybe; +}; + export type Mutation = { __typename?: 'Mutation'; beetsPoolLoadReliquarySnapshotsForAllFarms: Scalars['String']['output']; @@ -1559,7 +2063,9 @@ export type Mutation = { poolLoadSnapshotsForPools: Scalars['String']['output']; poolReloadAllPoolAprs: Scalars['String']['output']; poolReloadAllTokenNestedPoolIds: Scalars['String']['output']; + poolReloadPools: Array; poolReloadStakingForAllPools: Scalars['String']['output']; + poolSyncAllCowSnapshots: Array; poolSyncAllPoolsFromSubgraph: Array; poolSyncLatestSnapshotsForAllPools: Scalars['String']['output']; poolSyncNewPoolsFromSubgraph: Array; @@ -1579,6 +2085,7 @@ export type Mutation = { sftmxSyncWithdrawalRequests: Scalars['String']['output']; tokenDeleteTokenType: Scalars['String']['output']; tokenReloadAllTokenTypes: Scalars['String']['output']; + tokenReloadErc4626Tokens: Array; tokenReloadTokenPrices?: Maybe; tokenSyncLatestFxPrices: Scalars['String']['output']; tokenSyncTokenDefinitions: Scalars['String']['output']; @@ -1625,13 +2132,23 @@ export type MutationPoolReloadAllPoolAprsArgs = { }; +export type MutationPoolReloadPoolsArgs = { + chains: Array; +}; + + export type MutationPoolReloadStakingForAllPoolsArgs = { stakingTypes: Array; }; +export type MutationPoolSyncAllCowSnapshotsArgs = { + chains: Array; +}; + + export type MutationPoolSyncLatestSnapshotsForAllPoolsArgs = { - daysToSync?: InputMaybe; + chain: GqlChain; }; @@ -1651,6 +2168,11 @@ export type MutationTokenDeleteTokenTypeArgs = { }; +export type MutationTokenReloadErc4626TokensArgs = { + chains: Array; +}; + + export type MutationTokenReloadTokenPricesArgs = { chains: Array; }; @@ -1684,18 +2206,29 @@ export type Query = { blocksGetBlocksPerSecond: Scalars['Float']['output']; blocksGetBlocksPerYear: Scalars['Float']['output']; contentGetNewsItems: Array; + /** Returns list of hooks. */ + hooks?: Maybe>; latestSyncedBlocks: GqlLatestSyncedBlocks; /** Getting swap, add and remove events with paging */ poolEvents: Array; - /** Will de deprecated in favor of poolEvents */ + /** + * Will de deprecated in favor of poolEvents + * @deprecated Use poolEvents instead + */ poolGetBatchSwaps: Array; /** Getting swap, add and remove events with range */ poolGetEvents: Array; - /** Will de deprecated in favor of poolGetFeaturedPools */ + /** + * Will de deprecated in favor of poolGetFeaturedPools + * @deprecated Use poolGetFeaturedPools instead + */ poolGetFeaturedPoolGroups: Array; /** Returns the list of featured pools for chains */ poolGetFeaturedPools: Array; - /** Will de deprecated in favor of poolEvents */ + /** + * Will de deprecated in favor of poolEvents + * @deprecated Use poolEvents instead + */ poolGetJoinExits: Array; /** Returns one pool. If a user address is provided, the user balances for the given pool will also be returned. */ poolGetPool: GqlPoolBase; @@ -1705,7 +2238,10 @@ export type Query = { poolGetPoolsCount: Scalars['Int']['output']; /** Gets all the snapshots for a given pool on a chain for a certain range */ poolGetSnapshots: Array; - /** Will de deprecated in favor of poolEvents */ + /** + * Will de deprecated in favor of poolEvents + * @deprecated Use poolEvents instead + */ poolGetSwaps: Array; protocolMetricsAggregated: GqlProtocolMetricsAggregated; protocolMetricsChain: GqlProtocolMetricsChain; @@ -1719,16 +2255,42 @@ export type Query = { sorGetSwapPaths: GqlSorGetSwapPaths; /** Get swap quote from the SOR, queries both the old and new SOR */ sorGetSwaps: GqlSorGetSwapsResponse; + /** + * Returns the candlestick chart data for a token for a given range. + * @deprecated Use tokenGetHistoricalPrices instead + */ tokenGetCandlestickChartData: Array; + /** Returns all current prices for allowed tokens for a given chain or chains */ tokenGetCurrentPrices: Array; + /** Returns the historical prices for a given set of tokens for a given chain and range */ tokenGetHistoricalPrices: Array; + /** + * DEPRECATED: Returns pricing data for a given token for a given range + * @deprecated Use tokenGetHistoricalPrices instead + */ tokenGetPriceChartData: Array; + /** + * Returns the price of either BAL or BEETS depending on chain + * @deprecated Use tokenGetTokensDynamicData instead + */ tokenGetProtocolTokenPrice: Scalars['AmountHumanReadable']['output']; + /** Returns the price of a token priced in another token for a given range. */ tokenGetRelativePriceChartData: Array; + /** + * Returns meta data for a given token such as description, website, etc. + * @deprecated Use tokenGetTokens instead + */ tokenGetTokenData?: Maybe; + /** Returns dynamic data of a token such as price, market cap, etc. */ tokenGetTokenDynamicData?: Maybe; + /** Returns all allowed tokens for a given chain or chains */ tokenGetTokens: Array; + /** + * Returns meta data for a given set of tokens such as description, website, etc. + * @deprecated Use tokenGetTokens instead + */ tokenGetTokensData: Array; + /** Returns dynamic data of a set of tokens such as price, market cap, etc. */ tokenGetTokensDynamicData: Array; userGetFbeetsBalance: GqlUserFbeetsBalance; userGetPoolBalances: Array; @@ -1740,6 +2302,8 @@ export type Query = { veBalGetTotalSupply: Scalars['AmountHumanReadable']['output']; veBalGetUser: GqlVeBalUserData; veBalGetUserBalance: Scalars['AmountHumanReadable']['output']; + veBalGetUserBalances: Array; + /** Returns all pools with veBAL gauges that can be voted on. */ veBalGetVotingList: Array; }; @@ -1755,10 +2319,15 @@ export type QueryContentGetNewsItemsArgs = { }; +export type QueryHooksArgs = { + chain?: InputMaybe; +}; + + export type QueryPoolEventsArgs = { first?: InputMaybe; skip?: InputMaybe; - where: GqlPoolEventsFilter; + where?: InputMaybe; }; @@ -1864,7 +2433,7 @@ export type QuerySorGetSwapPathsArgs = { swapType: GqlSorSwapType; tokenIn: Scalars['String']['input']; tokenOut: Scalars['String']['input']; - useVaultVersion?: InputMaybe; + useProtocolVersion?: InputMaybe; }; @@ -1974,6 +2543,29 @@ export type QueryUserGetSwapsArgs = { skip?: InputMaybe; }; + +export type QueryVeBalGetTotalSupplyArgs = { + chain?: InputMaybe; +}; + + +export type QueryVeBalGetUserArgs = { + address: Scalars['String']['input']; + chain?: InputMaybe; +}; + + +export type QueryVeBalGetUserBalanceArgs = { + address?: InputMaybe; + chain?: InputMaybe; +}; + + +export type QueryVeBalGetUserBalancesArgs = { + address: Scalars['String']['input']; + chains?: InputMaybe>; +}; + export type Token = { __typename?: 'Token'; address: Scalars['String']['output']; diff --git a/packages/gql/src/balancer-api-v3/__generated__/Polygon-zkevm.server.ts b/packages/gql/src/balancer-api-v3/__generated__/Polygon-zkevm.server.ts index 5df748271..3527d6e6a 100644 --- a/packages/gql/src/balancer-api-v3/__generated__/Polygon-zkevm.server.ts +++ b/packages/gql/src/balancer-api-v3/__generated__/Polygon-zkevm.server.ts @@ -44,8 +44,10 @@ export type GqlChain = | 'AVALANCHE' | 'BASE' | 'FANTOM' + | 'FRAXTAL' | 'GNOSIS' | 'MAINNET' + | 'MODE' | 'OPTIMISM' | 'POLYGON' | 'SEPOLIA' @@ -128,41 +130,73 @@ export type GqlLatestSyncedBlocks = { userWalletSyncBlock: Scalars['BigInt']['output']; }; +/** All info on the nested pool if the token is a BPT. It will only support 1 level of nesting. */ export type GqlNestedPool = { __typename?: 'GqlNestedPool'; + /** Address of the pool. */ address: Scalars['Bytes']['output']; + /** Price rate of the Balancer Pool Token (BPT). */ bptPriceRate: Scalars['BigDecimal']['output']; + /** Timestamp of when the pool was created. */ createTime: Scalars['Int']['output']; + /** Address of the factory contract that created the pool, if applicable. */ factory?: Maybe; + /** Unique identifier of the pool. */ id: Scalars['ID']['output']; + /** Name of the pool. */ name: Scalars['String']['output']; + /** Total liquidity of the parent pool in the nested pool in USD. */ nestedLiquidity: Scalars['BigDecimal']['output']; + /** Percentage of the parents pool shares inside the nested pool. */ nestedPercentage: Scalars['BigDecimal']['output']; + /** Number of shares of the parent pool in the nested pool. */ nestedShares: Scalars['BigDecimal']['output']; + /** Address of the pool's owner. */ owner: Scalars['Bytes']['output']; + /** Fee charged for swapping tokens in the pool as %. 0.01 -> 0.01% */ swapFee: Scalars['BigDecimal']['output']; + /** Symbol of the pool. */ symbol: Scalars['String']['output']; + /** List of all tokens in the pool. */ tokens: Array; + /** Total liquidity in the pool in USD. */ totalLiquidity: Scalars['BigDecimal']['output']; + /** Total number of shares in the pool. */ totalShares: Scalars['BigDecimal']['output']; + /** Type of the pool. */ type: GqlPoolType; + /** Version of the pool. */ version: Scalars['Int']['output']; }; +/** Represents an event that occurs when liquidity is added or removed from a pool. */ export type GqlPoolAddRemoveEventV3 = GqlPoolEvent & { __typename?: 'GqlPoolAddRemoveEventV3'; + /** The block number of the event. */ blockNumber: Scalars['Int']['output']; + /** The block timestamp of the event. */ blockTimestamp: Scalars['Int']['output']; + /** The chain on which the event occurred. */ chain: GqlChain; + /** The unique identifier of the event. */ id: Scalars['ID']['output']; + /** The log index of the event. */ logIndex: Scalars['Int']['output']; + /** The pool ID associated with the event. */ poolId: Scalars['String']['output']; + /** The sender of the event. */ sender: Scalars['String']['output']; + /** The timestamp of the event. */ timestamp: Scalars['Int']['output']; + /** The tokens involved in the event. Ordered by poolToken index. */ tokens: Array; + /** The transaction hash of the event. */ tx: Scalars['String']['output']; + /** The type of the event. */ type: GqlPoolEventType; + /** The user address associated with the event. */ userAddress: Scalars['String']['output']; + /** The value of the event in USD. */ valueUSD: Scalars['Float']['output']; }; @@ -176,6 +210,43 @@ export type GqlPoolApr = { thirdPartyApr: GqlPoolAprValue; }; +/** All APRs for a pool */ +export type GqlPoolAprItem = { + __typename?: 'GqlPoolAprItem'; + /** The APR value in % -> 0.2 = 0.2% */ + apr: Scalars['Float']['output']; + /** The id of the APR item */ + id: Scalars['ID']['output']; + /** The title of the APR item, a human readable form */ + title: Scalars['String']['output']; + /** Specific type of this APR */ + type: GqlPoolAprItemType; +}; + +/** Enum representing the different types of the APR in a pool. */ +export type GqlPoolAprItemType = + /** APR that pools earns when BPT is staked on AURA. */ + | 'AURA' + /** Represents the yield from an IB (Interest-Bearing) asset APR in a pool. */ + | 'IB_YIELD' + /** APR in a pool that can be earned through locking, i.e. veBAL */ + | 'LOCKING' + /** Rewards distributed by merkl.xyz */ + | 'MERKL' + /** Represents if the APR items comes from a nested pool. */ + | 'NESTED' + /** Staking reward APR in a pool, i.e. BAL or BEETS. */ + | 'STAKING' + /** APR boost that can be earned, i.e. via veBAL or maBEETS. */ + | 'STAKING_BOOST' + /** Cow AMM specific APR */ + | 'SURPLUS' + /** Represents the swap fee APR in a pool. */ + | 'SWAP_FEE' + /** APR that can be earned thourgh voting, i.e. gauge votes */ + | 'VOTING' + | '%future added value'; + export type GqlPoolAprRange = { __typename?: 'GqlPoolAprRange'; max: Scalars['BigDecimal']['output']; @@ -193,23 +264,34 @@ export type GqlPoolAprValue = GqlPoolAprRange | GqlPoolAprTotal; export type GqlPoolBase = { /** The contract address of the pool. */ address: Scalars['Bytes']['output']; - /** Returns all pool tokens, including any nested tokens and phantom BPTs on one level. */ + /** + * Returns all pool tokens, including any nested tokens and phantom BPTs on one level. + * @deprecated Use poolTokens instead + */ allTokens: Array; + /** List of categories assigned by the team based on external factors */ + categories?: Maybe>>; /** The chain on which the pool is deployed */ chain: GqlChain; /** The timestamp the pool was created. */ createTime: Scalars['Int']['output']; /** The decimals of the BPT, usually 18 */ decimals: Scalars['Int']['output']; - /** Only returns main tokens, also known as leave tokens. Wont return any nested BPTs. Used for displaying the tokens that the pool consists of. */ + /** + * Only returns main tokens, also known as leave tokens. Wont return any nested BPTs. Used for displaying the tokens that the pool consists of. + * @deprecated Use poolTokens instead + */ displayTokens: Array; /** Dynamic data such as token balances, swap fees or volume */ dynamicData: GqlPoolDynamicData; /** The factory contract address from which the pool was created. */ factory?: Maybe; - /** The pool id. This is equal to the address for vaultVersion 3 pools */ + /** The pool id. This is equal to the address for protocolVersion 3 pools */ id: Scalars['ID']['output']; - /** Deprecated */ + /** + * Deprecated + * @deprecated Removed without replacement + */ investConfig: GqlPoolInvestConfig; /** The name of the pool as per contract */ name: Scalars['String']['output']; @@ -217,19 +299,29 @@ export type GqlPoolBase = { owner?: Maybe; /** Returns all pool tokens, including BPTs and nested pools if there are any. Only one nested level deep. */ poolTokens: Array; + /** The protocol version on which the pool is deployed, 1, 2 or 3 */ + protocolVersion: Scalars['Int']['output']; /** Staking options of this pool which emit additional rewards */ staking?: Maybe; /** The token symbol of the pool as per contract */ symbol: Scalars['String']['output']; + /** List of tags assigned by the team based on external factors */ + tags?: Maybe>>; /** The pool type, such as weighted, stable, etc. */ type: GqlPoolType; /** If a user address was provided in the query, the user balance is populated here */ userBalance?: Maybe; - /** The vault version on which the pool is deployed, 2 or 3 */ + /** + * The vault version on which the pool is deployed, 2 or 3 + * @deprecated use protocolVersion instead + */ vaultVersion: Scalars['Int']['output']; /** The version of the pool type. */ version: Scalars['Int']['output']; - /** Deprecated */ + /** + * Deprecated + * @deprecated Removed without replacement + */ withdrawConfig: GqlPoolWithdrawConfig; }; @@ -276,6 +368,7 @@ export type GqlPoolComposableStable = GqlPoolBase & { allTokens: Array; amp: Scalars['BigInt']['output']; bptPriceRate: Scalars['BigDecimal']['output']; + categories?: Maybe>>; chain: GqlChain; createTime: Scalars['Int']['output']; decimals: Scalars['Int']['output']; @@ -283,18 +376,27 @@ export type GqlPoolComposableStable = GqlPoolBase & { dynamicData: GqlPoolDynamicData; factory?: Maybe; id: Scalars['ID']['output']; + /** @deprecated Removed without replacement */ investConfig: GqlPoolInvestConfig; name: Scalars['String']['output']; nestingType: GqlPoolNestingType; owner: Scalars['Bytes']['output']; poolTokens: Array; + protocolVersion: Scalars['Int']['output']; staking?: Maybe; symbol: Scalars['String']['output']; + tags?: Maybe>>; + /** + * All tokens of the pool. If it is a nested pool, the nested pool is expanded with its own tokens again. + * @deprecated Use poolTokens instead + */ tokens: Array; type: GqlPoolType; userBalance?: Maybe; + /** @deprecated use protocolVersion instead */ vaultVersion: Scalars['Int']['output']; version: Scalars['Int']['output']; + /** @deprecated Removed without replacement */ withdrawConfig: GqlPoolWithdrawConfig; }; @@ -303,6 +405,7 @@ export type GqlPoolComposableStableNested = { address: Scalars['Bytes']['output']; amp: Scalars['BigInt']['output']; bptPriceRate: Scalars['BigDecimal']['output']; + categories?: Maybe>>; createTime: Scalars['Int']['output']; factory?: Maybe; id: Scalars['ID']['output']; @@ -311,6 +414,8 @@ export type GqlPoolComposableStableNested = { owner: Scalars['Bytes']['output']; swapFee: Scalars['BigDecimal']['output']; symbol: Scalars['String']['output']; + tags?: Maybe>>; + /** @deprecated Use poolTokens instead */ tokens: Array; totalLiquidity: Scalars['BigDecimal']['output']; totalShares: Scalars['BigDecimal']['output']; @@ -320,7 +425,13 @@ export type GqlPoolComposableStableNested = { export type GqlPoolDynamicData = { __typename?: 'GqlPoolDynamicData'; + /** Protocol and pool creator fees combined */ + aggregateSwapFee: Scalars['BigDecimal']['output']; + /** Protocol and pool creator fees combined */ + aggregateYieldFee: Scalars['BigDecimal']['output']; + /** @deprecated Use aprItems instead */ apr: GqlPoolApr; + aprItems: Array; fees24h: Scalars['BigDecimal']['output']; fees24hAth: Scalars['BigDecimal']['output']; fees24hAthTimestamp: Scalars['Int']['output']; @@ -328,6 +439,7 @@ export type GqlPoolDynamicData = { fees24hAtlTimestamp: Scalars['Int']['output']; fees48h: Scalars['BigDecimal']['output']; holdersCount: Scalars['BigInt']['output']; + /** True for bricked pools */ isInRecoveryMode: Scalars['Boolean']['output']; isPaused: Scalars['Boolean']['output']; lifetimeSwapFees: Scalars['BigDecimal']['output']; @@ -337,6 +449,11 @@ export type GqlPoolDynamicData = { sharePriceAthTimestamp: Scalars['Int']['output']; sharePriceAtl: Scalars['BigDecimal']['output']; sharePriceAtlTimestamp: Scalars['Int']['output']; + /** CowAmm specific, equivalent of swap fees */ + surplus24h: Scalars['BigDecimal']['output']; + /** CowAmm specific, equivalent of swap fees */ + surplus48h: Scalars['BigDecimal']['output']; + /** Disabled for bricked pools */ swapEnabled: Scalars['Boolean']['output']; swapFee: Scalars['BigDecimal']['output']; swapsCount: Scalars['BigInt']['output']; @@ -363,6 +480,7 @@ export type GqlPoolElement = GqlPoolBase & { address: Scalars['Bytes']['output']; allTokens: Array; baseToken: Scalars['Bytes']['output']; + categories?: Maybe>>; chain: GqlChain; createTime: Scalars['Int']['output']; decimals: Scalars['Int']['output']; @@ -370,34 +488,53 @@ export type GqlPoolElement = GqlPoolBase & { dynamicData: GqlPoolDynamicData; factory?: Maybe; id: Scalars['ID']['output']; + /** @deprecated Removed without replacement */ investConfig: GqlPoolInvestConfig; name: Scalars['String']['output']; owner: Scalars['Bytes']['output']; poolTokens: Array; principalToken: Scalars['Bytes']['output']; + protocolVersion: Scalars['Int']['output']; staking?: Maybe; symbol: Scalars['String']['output']; + tags?: Maybe>>; + /** @deprecated Use poolTokens instead */ tokens: Array; type: GqlPoolType; unitSeconds: Scalars['BigInt']['output']; userBalance?: Maybe; + /** @deprecated use protocolVersion instead */ vaultVersion: Scalars['Int']['output']; version: Scalars['Int']['output']; + /** @deprecated Removed without replacement */ withdrawConfig: GqlPoolWithdrawConfig; }; +/** Represents an event that occurs in a pool. */ export type GqlPoolEvent = { + /** The block number of the event. */ blockNumber: Scalars['Int']['output']; + /** The block timestamp of the event. */ blockTimestamp: Scalars['Int']['output']; + /** The chain on which the event occurred. */ chain: GqlChain; + /** The unique identifier of the event. */ id: Scalars['ID']['output']; + /** The log index of the event. */ logIndex: Scalars['Int']['output']; + /** The pool ID associated with the event. */ poolId: Scalars['String']['output']; + /** The sender of the event. */ sender: Scalars['String']['output']; + /** The timestamp of the event. */ timestamp: Scalars['Int']['output']; + /** The transaction hash of the event. */ tx: Scalars['String']['output']; + /** The type of the event. */ type: GqlPoolEventType; + /** The user address associated with the event. */ userAddress: Scalars['String']['output']; + /** The USD value of this event. */ valueUSD: Scalars['Float']['output']; }; @@ -421,11 +558,15 @@ export type GqlPoolEventsDataRange = | '%future added value'; export type GqlPoolEventsFilter = { - chain: GqlChain; - poolId: Scalars['String']['input']; + chainIn?: InputMaybe>>; + poolIdIn?: InputMaybe>>; range?: InputMaybe; typeIn?: InputMaybe>>; userAddress?: InputMaybe; + /** USD value of the event */ + valueUSD_gt?: InputMaybe; + /** USD value of the event */ + valueUSD_gte?: InputMaybe; }; export type GqlPoolFeaturedPool = { @@ -447,8 +588,6 @@ export type GqlPoolFeaturedPoolGroup = { export type GqlPoolFeaturedPoolGroupItem = GqlFeaturePoolGroupItemExternalLink | GqlPoolMinimal; export type GqlPoolFilter = { - categoryIn?: InputMaybe>; - categoryNotIn?: InputMaybe>; chainIn?: InputMaybe>; chainNotIn?: InputMaybe>; createTime?: InputMaybe; @@ -459,15 +598,33 @@ export type GqlPoolFilter = { minTvl?: InputMaybe; poolTypeIn?: InputMaybe>; poolTypeNotIn?: InputMaybe>; + protocolVersionIn?: InputMaybe>; + /** + * For list of tags see: https://github.com/balancer/metadata/blob/main/pools/index.json + * Use uppercase + */ + tagIn?: InputMaybe>; + /** + * For list of tags see: https://github.com/balancer/metadata/blob/main/pools/index.json + * Use uppercase + */ + tagNotIn?: InputMaybe>; tokensIn?: InputMaybe>; tokensNotIn?: InputMaybe>; userAddress?: InputMaybe; - vaultVersionIn?: InputMaybe>; }; export type GqlPoolFilterCategory = | 'BLACK_LISTED' | 'INCENTIVIZED' + | 'LRT' + | 'POINTS' + | 'POINTS_EIGENLAYER' + | 'POINTS_GYRO' + | 'POINTS_KELP' + | 'POINTS_RENZO' + | 'POINTS_SWELL' + | 'SUPERFEST' | '%future added value'; export type GqlPoolFx = GqlPoolBase & { @@ -476,6 +633,7 @@ export type GqlPoolFx = GqlPoolBase & { allTokens: Array; alpha: Scalars['String']['output']; beta: Scalars['String']['output']; + categories?: Maybe>>; chain: GqlChain; createTime: Scalars['Int']['output']; decimals: Scalars['Int']['output']; @@ -485,18 +643,27 @@ export type GqlPoolFx = GqlPoolBase & { epsilon: Scalars['String']['output']; factory?: Maybe; id: Scalars['ID']['output']; + /** @deprecated Removed without replacement */ investConfig: GqlPoolInvestConfig; lambda: Scalars['String']['output']; name: Scalars['String']['output']; owner?: Maybe; poolTokens: Array; + protocolVersion: Scalars['Int']['output']; staking?: Maybe; symbol: Scalars['String']['output']; + tags?: Maybe>>; + /** + * All tokens of the pool. If it is a nested pool, the nested pool is expanded with its own tokens again. + * @deprecated Use poolTokens instead + */ tokens: Array; type: GqlPoolType; userBalance?: Maybe; + /** @deprecated use protocolVersion instead */ vaultVersion: Scalars['Int']['output']; version: Scalars['Int']['output']; + /** @deprecated Removed without replacement */ withdrawConfig: GqlPoolWithdrawConfig; }; @@ -507,6 +674,7 @@ export type GqlPoolGyro = GqlPoolBase & { alpha: Scalars['String']['output']; beta: Scalars['String']['output']; c: Scalars['String']['output']; + categories?: Maybe>>; chain: GqlChain; createTime: Scalars['Int']['output']; dSq: Scalars['String']['output']; @@ -515,30 +683,39 @@ export type GqlPoolGyro = GqlPoolBase & { dynamicData: GqlPoolDynamicData; factory?: Maybe; id: Scalars['ID']['output']; + /** @deprecated Removed without replacement */ investConfig: GqlPoolInvestConfig; lambda: Scalars['String']['output']; name: Scalars['String']['output']; nestingType: GqlPoolNestingType; owner: Scalars['Bytes']['output']; poolTokens: Array; + protocolVersion: Scalars['Int']['output']; root3Alpha: Scalars['String']['output']; s: Scalars['String']['output']; sqrtAlpha: Scalars['String']['output']; sqrtBeta: Scalars['String']['output']; staking?: Maybe; symbol: Scalars['String']['output']; + tags?: Maybe>>; tauAlphaX: Scalars['String']['output']; tauAlphaY: Scalars['String']['output']; tauBetaX: Scalars['String']['output']; tauBetaY: Scalars['String']['output']; + /** + * All tokens of the pool. If it is a nested pool, the nested pool is expanded with its own tokens again. + * @deprecated Use poolTokens instead + */ tokens: Array; type: GqlPoolType; u: Scalars['String']['output']; userBalance?: Maybe; v: Scalars['String']['output']; + /** @deprecated use protocolVersion instead */ vaultVersion: Scalars['Int']['output']; version: Scalars['Int']['output']; w: Scalars['String']['output']; + /** @deprecated Removed without replacement */ withdrawConfig: GqlPoolWithdrawConfig; z: Scalars['String']['output']; }; @@ -590,6 +767,7 @@ export type GqlPoolLiquidityBootstrapping = GqlPoolBase & { __typename?: 'GqlPoolLiquidityBootstrapping'; address: Scalars['Bytes']['output']; allTokens: Array; + categories?: Maybe>>; chain: GqlChain; createTime: Scalars['Int']['output']; decimals: Scalars['Int']['output']; @@ -597,18 +775,27 @@ export type GqlPoolLiquidityBootstrapping = GqlPoolBase & { dynamicData: GqlPoolDynamicData; factory?: Maybe; id: Scalars['ID']['output']; + /** @deprecated Removed without replacement */ investConfig: GqlPoolInvestConfig; name: Scalars['String']['output']; nestingType: GqlPoolNestingType; owner: Scalars['Bytes']['output']; poolTokens: Array; + protocolVersion: Scalars['Int']['output']; staking?: Maybe; symbol: Scalars['String']['output']; + tags?: Maybe>>; + /** + * All tokens of the pool. If it is a nested pool, the nested pool is expanded with its own tokens again. + * @deprecated Use poolTokens instead + */ tokens: Array; type: GqlPoolType; userBalance?: Maybe; + /** @deprecated use protocolVersion instead */ vaultVersion: Scalars['Int']['output']; version: Scalars['Int']['output']; + /** @deprecated Removed without replacement */ withdrawConfig: GqlPoolWithdrawConfig; }; @@ -617,6 +804,7 @@ export type GqlPoolMetaStable = GqlPoolBase & { address: Scalars['Bytes']['output']; allTokens: Array; amp: Scalars['BigInt']['output']; + categories?: Maybe>>; chain: GqlChain; createTime: Scalars['Int']['output']; decimals: Scalars['Int']['output']; @@ -624,17 +812,23 @@ export type GqlPoolMetaStable = GqlPoolBase & { dynamicData: GqlPoolDynamicData; factory?: Maybe; id: Scalars['ID']['output']; + /** @deprecated Removed without replacement */ investConfig: GqlPoolInvestConfig; name: Scalars['String']['output']; owner: Scalars['Bytes']['output']; poolTokens: Array; + protocolVersion: Scalars['Int']['output']; staking?: Maybe; symbol: Scalars['String']['output']; + tags?: Maybe>>; + /** @deprecated Use poolTokens instead */ tokens: Array; type: GqlPoolType; userBalance?: Maybe; + /** @deprecated use protocolVersion instead */ vaultVersion: Scalars['Int']['output']; version: Scalars['Int']['output']; + /** @deprecated Removed without replacement */ withdrawConfig: GqlPoolWithdrawConfig; }; @@ -645,38 +839,66 @@ export type GqlPoolMinimal = { address: Scalars['Bytes']['output']; /** Returns all pool tokens, including any nested tokens and phantom BPTs */ allTokens: Array; + /** List of categories assigned by the team based on external factors */ + categories?: Maybe>>; /** The chain on which the pool is deployed */ chain: GqlChain; /** The timestamp the pool was created. */ createTime: Scalars['Int']['output']; /** The decimals of the BPT, usually 18 */ decimals: Scalars['Int']['output']; - /** Only returns main tokens, also known as leave tokens. Wont return any nested BPTs. Used for displaying the tokens that the pool consists of. */ + /** Only returns main or underlying tokens, also known as leave tokens. Wont return any nested BPTs. Used for displaying the tokens that the pool consists of. */ displayTokens: Array; /** Dynamic data such as token balances, swap fees or volume */ dynamicData: GqlPoolDynamicData; /** The factory contract address from which the pool was created. */ factory?: Maybe; - /** The pool id. This is equal to the address for vaultVersion 3 pools */ + /** Whether at least one token in this pool is considered an ERC4626 token. */ + hasErc4626: Scalars['Boolean']['output']; + /** Hook assigned to a pool */ + hook?: Maybe; + /** The pool id. This is equal to the address for protocolVersion 3 pools */ id: Scalars['ID']['output']; + /** Pool is receiving rewards when liquidity tokens are staked */ + incentivized: Scalars['Boolean']['output']; /** The name of the pool as per contract */ name: Scalars['String']['output']; /** The wallet address of the owner of the pool. Pool owners can set certain properties like swapFees or AMP. */ owner?: Maybe; + /** The protocol version on which the pool is deployed, 1, 2 or 3 */ + protocolVersion: Scalars['Int']['output']; /** Staking options of this pool which emit additional rewards */ staking?: Maybe; /** The token symbol of the pool as per contract */ symbol: Scalars['String']['output']; + /** List of tags assigned by the team based on external factors */ + tags?: Maybe>>; /** The pool type, such as weighted, stable, etc. */ type: GqlPoolType; /** If a user address was provided in the query, the user balance is populated here */ userBalance?: Maybe; - /** The vault version on which the pool is deployed, 2 or 3 */ + /** + * The vault version on which the pool is deployed, 2 or 3 + * @deprecated use protocolVersion instead + */ vaultVersion: Scalars['Int']['output']; /** The version of the pool type. */ version: Scalars['Int']['output']; }; +/** Result of the poolReloadPools mutation */ +export type GqlPoolMutationResult = { + __typename?: 'GqlPoolMutationResult'; + /** The chain that was reloaded. */ + chain: GqlChain; + /** The error message */ + error?: Maybe; + /** Whether it was successful or not. */ + success: Scalars['Boolean']['output']; + /** The type of pools that were reloaded. */ + type: Scalars['String']['output']; +}; + export type GqlPoolNestedUnion = GqlPoolComposableStableNested; export type GqlPoolNestingType = @@ -708,10 +930,12 @@ export type GqlPoolSnapshot = { id: Scalars['ID']['output']; poolId: Scalars['String']['output']; sharePrice: Scalars['String']['output']; + surplus24h: Scalars['String']['output']; swapsCount: Scalars['String']['output']; timestamp: Scalars['Int']['output']; totalLiquidity: Scalars['String']['output']; totalShares: Scalars['String']['output']; + totalSurplus: Scalars['String']['output']; totalSwapFee: Scalars['String']['output']; totalSwapVolume: Scalars['String']['output']; volume24h: Scalars['String']['output']; @@ -730,6 +954,7 @@ export type GqlPoolStable = GqlPoolBase & { address: Scalars['Bytes']['output']; allTokens: Array; amp: Scalars['BigInt']['output']; + categories?: Maybe>>; chain: GqlChain; createTime: Scalars['Int']['output']; decimals: Scalars['Int']['output']; @@ -737,17 +962,23 @@ export type GqlPoolStable = GqlPoolBase & { dynamicData: GqlPoolDynamicData; factory?: Maybe; id: Scalars['ID']['output']; + /** @deprecated Removed without replacement */ investConfig: GqlPoolInvestConfig; name: Scalars['String']['output']; owner: Scalars['Bytes']['output']; poolTokens: Array; + protocolVersion: Scalars['Int']['output']; staking?: Maybe; symbol: Scalars['String']['output']; + tags?: Maybe>>; + /** @deprecated Use poolTokens instead */ tokens: Array; type: GqlPoolType; userBalance?: Maybe; + /** @deprecated use protocolVersion instead */ vaultVersion: Scalars['Int']['output']; version: Scalars['Int']['output']; + /** @deprecated Removed without replacement */ withdrawConfig: GqlPoolWithdrawConfig; }; @@ -764,12 +995,23 @@ export type GqlPoolStableComposablePoolData = { export type GqlPoolStaking = { __typename?: 'GqlPoolStaking'; address: Scalars['String']['output']; + aura?: Maybe; chain: GqlChain; farm?: Maybe; gauge?: Maybe; id: Scalars['ID']['output']; reliquary?: Maybe; type: GqlPoolStakingType; + vebal?: Maybe; +}; + +export type GqlPoolStakingAura = { + __typename?: 'GqlPoolStakingAura'; + apr: Scalars['Float']['output']; + auraPoolAddress: Scalars['String']['output']; + auraPoolId: Scalars['String']['output']; + id: Scalars['ID']['output']; + isShutdown: Scalars['Boolean']['output']; }; export type GqlPoolStakingFarmRewarder = { @@ -840,12 +1082,20 @@ export type GqlPoolStakingReliquaryFarmLevel = { }; export type GqlPoolStakingType = + | 'AURA' | 'FRESH_BEETS' | 'GAUGE' | 'MASTER_CHEF' | 'RELIQUARY' + | 'VEBAL' | '%future added value'; +export type GqlPoolStakingVebal = { + __typename?: 'GqlPoolStakingVebal'; + id: Scalars['ID']['output']; + vebalAddress: Scalars['String']['output']; +}; + export type GqlPoolSwap = { __typename?: 'GqlPoolSwap'; chain: GqlChain; @@ -861,21 +1111,75 @@ export type GqlPoolSwap = { valueUSD: Scalars['Float']['output']; }; +/** Represents an event that occurs when a swap is made in a pool using the CowAmm protocol. */ +export type GqlPoolSwapEventCowAmm = GqlPoolEvent & { + __typename?: 'GqlPoolSwapEventCowAmm'; + /** The block number of the event. */ + blockNumber: Scalars['Int']['output']; + /** The block timestamp of the event. */ + blockTimestamp: Scalars['Int']['output']; + /** The chain on which the event occurred. */ + chain: GqlChain; + /** The fee that this swap generated. */ + fee: GqlPoolEventAmount; + /** The unique identifier of the event. */ + id: Scalars['ID']['output']; + /** The log index of the event. */ + logIndex: Scalars['Int']['output']; + /** The pool ID associated with the event. */ + poolId: Scalars['String']['output']; + /** The sender of the event. */ + sender: Scalars['String']['output']; + /** The surplus generated by the swap. */ + surplus: GqlPoolEventAmount; + /** The timestamp of the event. */ + timestamp: Scalars['Int']['output']; + /** The token that was swapped in the event. */ + tokenIn: GqlPoolEventAmount; + /** The token that was swapped out in the event. */ + tokenOut: GqlPoolEventAmount; + /** The transaction hash of the event. */ + tx: Scalars['String']['output']; + /** The type of the event. */ + type: GqlPoolEventType; + /** The user address associated with the event. */ + userAddress: Scalars['String']['output']; + /** The value of the event in USD. */ + valueUSD: Scalars['Float']['output']; +}; + +/** Represents an event that occurs when a swap is made in a pool. */ export type GqlPoolSwapEventV3 = GqlPoolEvent & { __typename?: 'GqlPoolSwapEventV3'; + /** The block number of the event. */ blockNumber: Scalars['Int']['output']; + /** The block timestamp of the event. */ blockTimestamp: Scalars['Int']['output']; + /** The chain on which the event occurred. */ chain: GqlChain; + /** The fee that this swap generated. */ + fee: GqlPoolEventAmount; + /** The unique identifier of the event. */ id: Scalars['ID']['output']; + /** The log index of the event. */ logIndex: Scalars['Int']['output']; + /** The pool ID associated with the event. */ poolId: Scalars['String']['output']; + /** The sender of the event. */ sender: Scalars['String']['output']; + /** The timestamp of the event. */ timestamp: Scalars['Int']['output']; + /** The token that was swapped in the event. */ tokenIn: GqlPoolEventAmount; + /** The token that was swapped out in the event. */ tokenOut: GqlPoolEventAmount; + /** The transaction hash of the event. */ tx: Scalars['String']['output']; + /** The type of the event. */ type: GqlPoolEventType; + /** The user address associated with the event. */ userAddress: Scalars['String']['output']; + /** The value of the event in USD. */ valueUSD: Scalars['Float']['output']; }; @@ -938,19 +1242,45 @@ export type GqlPoolTokenComposableStable = GqlPoolTokenBase & { export type GqlPoolTokenComposableStableNestedUnion = GqlPoolToken; +/** + * All info on the pool token. It will also include the nested pool if the token is a BPT. It will only support 1 level of nesting. + * A second (unsupported) level of nesting is shown by having hasNestedPool = true but nestedPool = null. + */ export type GqlPoolTokenDetail = { __typename?: 'GqlPoolTokenDetail'; + /** Address of the pool token. */ address: Scalars['String']['output']; + /** Balance of the pool token inside the pool. */ balance: Scalars['BigDecimal']['output']; + /** USD Balance of the pool token. */ + balanceUSD: Scalars['BigDecimal']['output']; + /** Decimals of the pool token. */ decimals: Scalars['Int']['output']; + /** Indicates whether this token is a BPT and therefor has a nested pool. */ hasNestedPool: Scalars['Boolean']['output']; + /** Id of the token. A combination of pool id and token address. */ id: Scalars['ID']['output']; + /** Index of the pool token in the pool as returned by the vault. */ index: Scalars['Int']['output']; + /** Whether the token is in the allow list. */ + isAllowed: Scalars['Boolean']['output']; + /** Whether the token is considered an ERC4626 token. */ + isErc4626: Scalars['Boolean']['output']; + /** Name of the pool token. */ name: Scalars['String']['output']; + /** Additional data for the nested pool if the token is a BPT. Null otherwise. */ nestedPool?: Maybe; + /** If it is an appreciating token, it shows the current price rate. 1 otherwise. */ priceRate: Scalars['BigDecimal']['output']; + /** The address of the price rate provider. */ priceRateProvider?: Maybe; + /** Additional data for the price rate provider, such as reviews or warnings. */ + priceRateProviderData?: Maybe; + /** Symbol of the pool token. */ symbol: Scalars['String']['output']; + /** If it is an Erc4262, this will be the underlying token if present in the API. */ + underlyingToken?: Maybe; + /** The weight of the token in the pool if it is a weighted pool, null otherwise */ weight?: Maybe; }; @@ -969,6 +1299,7 @@ export type GqlPoolTokenExpanded = { address: Scalars['String']['output']; decimals: Scalars['Int']['output']; id: Scalars['ID']['output']; + isErc4626: Scalars['Boolean']['output']; isMainToken: Scalars['Boolean']['output']; isNested: Scalars['Boolean']['output']; isPhantomBpt: Scalars['Boolean']['output']; @@ -982,6 +1313,7 @@ export type GqlPoolTokenUnion = GqlPoolToken | GqlPoolTokenComposableStable; /** Supported pool types */ export type GqlPoolType = | 'COMPOSABLE_STABLE' + | 'COW_AMM' | 'ELEMENT' | 'FX' | 'GYRO' @@ -1001,10 +1333,8 @@ export type GqlPoolUnion = GqlPoolComposableStable | GqlPoolElement | GqlPoolFx /** If a user address was provided in the query, the user balance is populated here */ export type GqlPoolUserBalance = { __typename?: 'GqlPoolUserBalance'; - /** The staked balance in either a gauge or farm as float. */ - stakedBalance: Scalars['AmountHumanReadable']['output']; - /** The staked balance in either a gauge or farm in USD as float. */ - stakedBalanceUsd: Scalars['Float']['output']; + /** The staked BPT balances of the user. */ + stakedBalances: Array; /** Total balance (wallet + staked) as float */ totalBalance: Scalars['AmountHumanReadable']['output']; /** Total balance (wallet + staked) in USD as float */ @@ -1025,6 +1355,7 @@ export type GqlPoolWeighted = GqlPoolBase & { __typename?: 'GqlPoolWeighted'; address: Scalars['Bytes']['output']; allTokens: Array; + categories?: Maybe>>; chain: GqlChain; createTime: Scalars['Int']['output']; decimals: Scalars['Int']['output']; @@ -1032,19 +1363,27 @@ export type GqlPoolWeighted = GqlPoolBase & { dynamicData: GqlPoolDynamicData; factory?: Maybe; id: Scalars['ID']['output']; + /** @deprecated Removed without replacement */ investConfig: GqlPoolInvestConfig; name: Scalars['String']['output']; nestingType: GqlPoolNestingType; owner: Scalars['Bytes']['output']; poolTokens: Array; + protocolVersion: Scalars['Int']['output']; staking?: Maybe; symbol: Scalars['String']['output']; - /** All tokens of the pool. If it is a nested pool, the nested pool is expanded with its own tokens again. */ + tags?: Maybe>>; + /** + * All tokens of the pool. If it is a nested pool, the nested pool is expanded with its own tokens again. + * @deprecated Use poolTokens instead + */ tokens: Array; type: GqlPoolType; userBalance?: Maybe; + /** @deprecated use protocolVersion instead */ vaultVersion: Scalars['Int']['output']; version: Scalars['Int']['output']; + /** @deprecated Removed without replacement */ withdrawConfig: GqlPoolWithdrawConfig; }; @@ -1071,6 +1410,36 @@ export type GqlPriceImpact = { priceImpact?: Maybe; }; +/** Represents the data of a price rate provider */ +export type GqlPriceRateProviderData = { + __typename?: 'GqlPriceRateProviderData'; + /** The address of the price rate provider */ + address: Scalars['String']['output']; + /** The factory used to create the price rate provider, if applicable */ + factory?: Maybe; + /** The name of the price rate provider */ + name?: Maybe; + /** The filename of the review of the price rate provider */ + reviewFile?: Maybe; + /** Indicates if the price rate provider has been reviewed */ + reviewed: Scalars['Boolean']['output']; + /** A summary of the price rate provider, usually just says safe or unsafe */ + summary?: Maybe; + /** Upgradeable components of the price rate provider */ + upgradeableComponents?: Maybe>>; + /** Warnings associated with the price rate provider */ + warnings?: Maybe>; +}; + +/** Represents an upgradeable component of a price rate provider */ +export type GqlPriceRateProviderUpgradeableComponent = { + __typename?: 'GqlPriceRateProviderUpgradeableComponent'; + /** The entry point / proxy of the upgradeable component */ + entryPoint: Scalars['String']['output']; + /** Indicates if the implementation of the component has been reviewed */ + implementationReviewed: Scalars['String']['output']; +}; + export type GqlProtocolMetricsAggregated = { __typename?: 'GqlProtocolMetricsAggregated'; chains: Array; @@ -1250,6 +1619,8 @@ export type GqlSorGetSwapPaths = { paths: Array; /** Price impact of the path */ priceImpact: GqlPriceImpact; + /** The version of the protocol these paths are from */ + protocolVersion: Scalars['Int']['output']; /** The return amount in human form. Return amount is either tokenOutAmount (if swapType is exactIn) or tokenInAmount (if swapType is exactOut) */ returnAmount: Scalars['AmountHumanReadable']['output']; /** The return amount in a raw form */ @@ -1274,7 +1645,10 @@ export type GqlSorGetSwapPaths = { tokenOut: Scalars['String']['output']; /** The amount of tokenOut in human form */ tokenOutAmount: Scalars['AmountHumanReadable']['output']; - /** The version of the vault these paths are from */ + /** + * The version of the vault these paths are from + * @deprecated Use protocolVersion instead + */ vaultVersion: Scalars['Int']['output']; }; @@ -1306,13 +1680,20 @@ export type GqlSorPath = { __typename?: 'GqlSorPath'; /** Input amount of this path in scaled form */ inputAmountRaw: Scalars['String']['output']; + /** A sorted list of booleans that indicate if the respective pool is a buffer */ + isBuffer: Array>; /** Output amount of this path in scaled form */ outputAmountRaw: Scalars['String']['output']; /** A sorted list of pool ids that are used in this path */ pools: Array>; + /** The version of the protocol these paths are from */ + protocolVersion: Scalars['Int']['output']; /** A sorted list of tokens that are ussed in this path */ tokens: Array>; - /** Vault version of this path. */ + /** + * Vault version of this path. + * @deprecated Use protocolVersion instead + */ vaultVersion: Scalars['Int']['output']; }; @@ -1389,21 +1770,44 @@ export type GqlSwapCallDataInput = { slippagePercentage: Scalars['String']['input']; }; +/** Represents a token */ export type GqlToken = { __typename?: 'GqlToken'; + /** The address of the token */ address: Scalars['String']['output']; + /** The chain of the token */ chain: GqlChain; + /** The chain ID of the token */ chainId: Scalars['Int']['output']; + /** The coingecko ID for this token, if present */ + coingeckoId?: Maybe; + /** The number of decimal places for the token */ decimals: Scalars['Int']['output']; + /** The description of the token */ description?: Maybe; + /** The Discord URL of the token */ discordUrl?: Maybe; + /** Whether the token is considered an ERC4626 token. */ + isErc4626: Scalars['Boolean']['output']; + /** The logo URI of the token */ logoURI?: Maybe; + /** The name of the token */ name: Scalars['String']['output']; + /** The rate provider data for the token */ + priceRateProviderData?: Maybe; + /** The priority of the token, can be used for sorting. */ priority: Scalars['Int']['output']; + /** The rate provider data for the token */ + rateProviderData?: Maybe; + /** The symbol of the token */ symbol: Scalars['String']['output']; + /** The Telegram URL of the token */ telegramUrl?: Maybe; + /** Indicates if the token is tradable */ tradable: Scalars['Boolean']['output']; + /** The Twitter username of the token */ twitterUsername?: Maybe; + /** The website URL of the token */ websiteUrl?: Maybe; }; @@ -1441,25 +1845,52 @@ export type GqlTokenData = { websiteUrl?: Maybe; }; +/** Represents additional data for a token */ export type GqlTokenDynamicData = { __typename?: 'GqlTokenDynamicData'; + /** The all-time high price of the token */ ath: Scalars['Float']['output']; + /** The all-time low price of the token */ atl: Scalars['Float']['output']; + /** The fully diluted valuation of the token */ fdv?: Maybe; + /** The highest price in the last 24 hours */ high24h: Scalars['Float']['output']; + /** The unique identifier of the dynamic data */ id: Scalars['String']['output']; + /** The lowest price in the last 24 hours */ low24h: Scalars['Float']['output']; + /** The market capitalization of the token */ marketCap?: Maybe; + /** The current price of the token */ price: Scalars['Float']['output']; + /** The price change in the last 24 hours */ priceChange24h: Scalars['Float']['output']; + /** The percentage price change in the last 7 days */ priceChangePercent7d?: Maybe; + /** The percentage price change in the last 14 days */ priceChangePercent14d?: Maybe; + /** The percentage price change in the last 24 hours */ priceChangePercent24h: Scalars['Float']['output']; + /** The percentage price change in the last 30 days */ priceChangePercent30d?: Maybe; + /** The address of the token */ tokenAddress: Scalars['String']['output']; + /** The timestamp when the data was last updated */ updatedAt: Scalars['String']['output']; }; +/** Result of the poolReloadPools mutation */ +export type GqlTokenMutationResult = { + __typename?: 'GqlTokenMutationResult'; + /** The chain that was reloaded. */ + chain: GqlChain; + /** The error message */ + error?: Maybe; + /** Whether it was successful or not. */ + success: Scalars['Boolean']['output']; +}; + export type GqlTokenPrice = { __typename?: 'GqlTokenPrice'; address: Scalars['String']['output']; @@ -1501,46 +1932,119 @@ export type GqlUserPoolBalance = { walletBalance: Scalars['AmountHumanReadable']['output']; }; +export type GqlUserStakedBalance = { + __typename?: 'GqlUserStakedBalance'; + /** The staked BPT balance as float. */ + balance: Scalars['AmountHumanReadable']['output']; + /** The steaked BPT balance in USD as float. */ + balanceUsd: Scalars['Float']['output']; + /** The id of the staking to match with GqlPoolStaking.id. */ + stakingId: Scalars['String']['output']; + /** The staking type (Gauge, farm, aura, etc.) in which this balance is staked. */ + stakingType: GqlPoolStakingType; +}; + export type GqlUserSwapVolumeFilter = { poolIdIn?: InputMaybe>; tokenInIn?: InputMaybe>; tokenOutIn?: InputMaybe>; }; +export type GqlVeBalBalance = { + __typename?: 'GqlVeBalBalance'; + balance: Scalars['AmountHumanReadable']['output']; + chain: GqlChain; + locked: Scalars['AmountHumanReadable']['output']; + lockedUsd: Scalars['AmountHumanReadable']['output']; +}; + export type GqlVeBalUserData = { __typename?: 'GqlVeBalUserData'; balance: Scalars['AmountHumanReadable']['output']; + locked: Scalars['AmountHumanReadable']['output']; + lockedUsd: Scalars['AmountHumanReadable']['output']; rank?: Maybe; }; +/** The Gauge that can be voted on through veBAL and that will ultimately receive the rewards. */ export type GqlVotingGauge = { __typename?: 'GqlVotingGauge'; + /** The timestamp the gauge was added. */ addedTimestamp?: Maybe; + /** The address of the root gauge on Ethereum mainnet. */ address: Scalars['Bytes']['output']; + /** The address of the child gauge on the specific chain. */ childGaugeAddress?: Maybe; + /** Whether the gauge is killed or not. */ isKilled: Scalars['Boolean']['output']; + /** The relative weight the gauge received this epoch (not more than 1.0). */ + relativeWeight: Scalars['String']['output']; + /** The relative weight cap. 1.0 for uncapped. */ relativeWeightCap?: Maybe; }; +/** A token inside of a pool with a voting gauge. */ export type GqlVotingGaugeToken = { __typename?: 'GqlVotingGaugeToken'; + /** The address of the token. */ address: Scalars['String']['output']; + /** The URL to the token logo. */ logoURI: Scalars['String']['output']; + /** The symbol of the token. */ symbol: Scalars['String']['output']; + /** If it is a weighted pool, the weigh of the token is shown here in %. 0.5 = 50%. */ weight?: Maybe; }; +/** The pool that can be voted on through veBAL */ export type GqlVotingPool = { __typename?: 'GqlVotingPool'; + /** The address of the pool. */ address: Scalars['Bytes']['output']; + /** The chain this pool is on. */ chain: GqlChain; + /** The gauge that is connected to the pool and that will receive the rewards. */ gauge: GqlVotingGauge; + /** Pool ID */ id: Scalars['ID']['output']; + /** The symbol of the pool. */ symbol: Scalars['String']['output']; + /** The tokens inside the pool. */ tokens: Array; + /** The type of the pool. */ type: GqlPoolType; }; +/** Hook data */ +export type Hook = { + __typename?: 'Hook'; + address: Scalars['String']['output']; + chain: GqlChain; + /** Data points changing over time */ + dynamicData?: Maybe; + /** True when hook can change the amounts send to the vault. Necessary to deduct the fees. */ + enableHookAdjustedAmounts: Scalars['Boolean']['output']; + /** List of pools using the hook */ + poolsIds?: Maybe>>; + shouldCallAfterAddLiquidity: Scalars['Boolean']['output']; + shouldCallAfterInitialize: Scalars['Boolean']['output']; + shouldCallAfterRemoveLiquidity: Scalars['Boolean']['output']; + shouldCallAfterSwap: Scalars['Boolean']['output']; + shouldCallBeforeAddLiquidity: Scalars['Boolean']['output']; + shouldCallBeforeInitialize: Scalars['Boolean']['output']; + shouldCallBeforeRemoveLiquidity: Scalars['Boolean']['output']; + shouldCallBeforeSwap: Scalars['Boolean']['output']; + shouldCallComputeDynamicSwapFee: Scalars['Boolean']['output']; +}; + +/** Collection of hook specific data. Percentage format is 0.01 -> 0.01%. */ +export type HookData = { + __typename?: 'HookData'; + addLiquidityFeePercentage?: Maybe; + removeLiquidityFeePercentage?: Maybe; + swapFeePercentage?: Maybe; +}; + export type Mutation = { __typename?: 'Mutation'; beetsPoolLoadReliquarySnapshotsForAllFarms: Scalars['String']['output']; @@ -1557,7 +2061,9 @@ export type Mutation = { poolLoadSnapshotsForPools: Scalars['String']['output']; poolReloadAllPoolAprs: Scalars['String']['output']; poolReloadAllTokenNestedPoolIds: Scalars['String']['output']; + poolReloadPools: Array; poolReloadStakingForAllPools: Scalars['String']['output']; + poolSyncAllCowSnapshots: Array; poolSyncAllPoolsFromSubgraph: Array; poolSyncLatestSnapshotsForAllPools: Scalars['String']['output']; poolSyncNewPoolsFromSubgraph: Array; @@ -1577,6 +2083,7 @@ export type Mutation = { sftmxSyncWithdrawalRequests: Scalars['String']['output']; tokenDeleteTokenType: Scalars['String']['output']; tokenReloadAllTokenTypes: Scalars['String']['output']; + tokenReloadErc4626Tokens: Array; tokenReloadTokenPrices?: Maybe; tokenSyncLatestFxPrices: Scalars['String']['output']; tokenSyncTokenDefinitions: Scalars['String']['output']; @@ -1623,13 +2130,23 @@ export type MutationPoolReloadAllPoolAprsArgs = { }; +export type MutationPoolReloadPoolsArgs = { + chains: Array; +}; + + export type MutationPoolReloadStakingForAllPoolsArgs = { stakingTypes: Array; }; +export type MutationPoolSyncAllCowSnapshotsArgs = { + chains: Array; +}; + + export type MutationPoolSyncLatestSnapshotsForAllPoolsArgs = { - daysToSync?: InputMaybe; + chain: GqlChain; }; @@ -1649,6 +2166,11 @@ export type MutationTokenDeleteTokenTypeArgs = { }; +export type MutationTokenReloadErc4626TokensArgs = { + chains: Array; +}; + + export type MutationTokenReloadTokenPricesArgs = { chains: Array; }; @@ -1682,18 +2204,29 @@ export type Query = { blocksGetBlocksPerSecond: Scalars['Float']['output']; blocksGetBlocksPerYear: Scalars['Float']['output']; contentGetNewsItems: Array; + /** Returns list of hooks. */ + hooks?: Maybe>; latestSyncedBlocks: GqlLatestSyncedBlocks; /** Getting swap, add and remove events with paging */ poolEvents: Array; - /** Will de deprecated in favor of poolEvents */ + /** + * Will de deprecated in favor of poolEvents + * @deprecated Use poolEvents instead + */ poolGetBatchSwaps: Array; /** Getting swap, add and remove events with range */ poolGetEvents: Array; - /** Will de deprecated in favor of poolGetFeaturedPools */ + /** + * Will de deprecated in favor of poolGetFeaturedPools + * @deprecated Use poolGetFeaturedPools instead + */ poolGetFeaturedPoolGroups: Array; /** Returns the list of featured pools for chains */ poolGetFeaturedPools: Array; - /** Will de deprecated in favor of poolEvents */ + /** + * Will de deprecated in favor of poolEvents + * @deprecated Use poolEvents instead + */ poolGetJoinExits: Array; /** Returns one pool. If a user address is provided, the user balances for the given pool will also be returned. */ poolGetPool: GqlPoolBase; @@ -1703,7 +2236,10 @@ export type Query = { poolGetPoolsCount: Scalars['Int']['output']; /** Gets all the snapshots for a given pool on a chain for a certain range */ poolGetSnapshots: Array; - /** Will de deprecated in favor of poolEvents */ + /** + * Will de deprecated in favor of poolEvents + * @deprecated Use poolEvents instead + */ poolGetSwaps: Array; protocolMetricsAggregated: GqlProtocolMetricsAggregated; protocolMetricsChain: GqlProtocolMetricsChain; @@ -1717,16 +2253,42 @@ export type Query = { sorGetSwapPaths: GqlSorGetSwapPaths; /** Get swap quote from the SOR, queries both the old and new SOR */ sorGetSwaps: GqlSorGetSwapsResponse; + /** + * Returns the candlestick chart data for a token for a given range. + * @deprecated Use tokenGetHistoricalPrices instead + */ tokenGetCandlestickChartData: Array; + /** Returns all current prices for allowed tokens for a given chain or chains */ tokenGetCurrentPrices: Array; + /** Returns the historical prices for a given set of tokens for a given chain and range */ tokenGetHistoricalPrices: Array; + /** + * DEPRECATED: Returns pricing data for a given token for a given range + * @deprecated Use tokenGetHistoricalPrices instead + */ tokenGetPriceChartData: Array; + /** + * Returns the price of either BAL or BEETS depending on chain + * @deprecated Use tokenGetTokensDynamicData instead + */ tokenGetProtocolTokenPrice: Scalars['AmountHumanReadable']['output']; + /** Returns the price of a token priced in another token for a given range. */ tokenGetRelativePriceChartData: Array; + /** + * Returns meta data for a given token such as description, website, etc. + * @deprecated Use tokenGetTokens instead + */ tokenGetTokenData?: Maybe; + /** Returns dynamic data of a token such as price, market cap, etc. */ tokenGetTokenDynamicData?: Maybe; + /** Returns all allowed tokens for a given chain or chains */ tokenGetTokens: Array; + /** + * Returns meta data for a given set of tokens such as description, website, etc. + * @deprecated Use tokenGetTokens instead + */ tokenGetTokensData: Array; + /** Returns dynamic data of a set of tokens such as price, market cap, etc. */ tokenGetTokensDynamicData: Array; userGetFbeetsBalance: GqlUserFbeetsBalance; userGetPoolBalances: Array; @@ -1738,6 +2300,8 @@ export type Query = { veBalGetTotalSupply: Scalars['AmountHumanReadable']['output']; veBalGetUser: GqlVeBalUserData; veBalGetUserBalance: Scalars['AmountHumanReadable']['output']; + veBalGetUserBalances: Array; + /** Returns all pools with veBAL gauges that can be voted on. */ veBalGetVotingList: Array; }; @@ -1753,10 +2317,15 @@ export type QueryContentGetNewsItemsArgs = { }; +export type QueryHooksArgs = { + chain?: InputMaybe; +}; + + export type QueryPoolEventsArgs = { first?: InputMaybe; skip?: InputMaybe; - where: GqlPoolEventsFilter; + where?: InputMaybe; }; @@ -1862,7 +2431,7 @@ export type QuerySorGetSwapPathsArgs = { swapType: GqlSorSwapType; tokenIn: Scalars['String']['input']; tokenOut: Scalars['String']['input']; - useVaultVersion?: InputMaybe; + useProtocolVersion?: InputMaybe; }; @@ -1972,6 +2541,29 @@ export type QueryUserGetSwapsArgs = { skip?: InputMaybe; }; + +export type QueryVeBalGetTotalSupplyArgs = { + chain?: InputMaybe; +}; + + +export type QueryVeBalGetUserArgs = { + address: Scalars['String']['input']; + chain?: InputMaybe; +}; + + +export type QueryVeBalGetUserBalanceArgs = { + address?: InputMaybe; + chain?: InputMaybe; +}; + + +export type QueryVeBalGetUserBalancesArgs = { + address: Scalars['String']['input']; + chains?: InputMaybe>; +}; + export type Token = { __typename?: 'Token'; address: Scalars['String']['output']; diff --git a/packages/gql/src/balancer-api-v3/__generated__/Polygon-zkevm.ts b/packages/gql/src/balancer-api-v3/__generated__/Polygon-zkevm.ts index dbb6d7c10..5e68d0c72 100644 --- a/packages/gql/src/balancer-api-v3/__generated__/Polygon-zkevm.ts +++ b/packages/gql/src/balancer-api-v3/__generated__/Polygon-zkevm.ts @@ -46,8 +46,10 @@ export type GqlChain = | 'AVALANCHE' | 'BASE' | 'FANTOM' + | 'FRAXTAL' | 'GNOSIS' | 'MAINNET' + | 'MODE' | 'OPTIMISM' | 'POLYGON' | 'SEPOLIA' @@ -130,41 +132,73 @@ export type GqlLatestSyncedBlocks = { userWalletSyncBlock: Scalars['BigInt']['output']; }; +/** All info on the nested pool if the token is a BPT. It will only support 1 level of nesting. */ export type GqlNestedPool = { __typename?: 'GqlNestedPool'; + /** Address of the pool. */ address: Scalars['Bytes']['output']; + /** Price rate of the Balancer Pool Token (BPT). */ bptPriceRate: Scalars['BigDecimal']['output']; + /** Timestamp of when the pool was created. */ createTime: Scalars['Int']['output']; + /** Address of the factory contract that created the pool, if applicable. */ factory?: Maybe; + /** Unique identifier of the pool. */ id: Scalars['ID']['output']; + /** Name of the pool. */ name: Scalars['String']['output']; + /** Total liquidity of the parent pool in the nested pool in USD. */ nestedLiquidity: Scalars['BigDecimal']['output']; + /** Percentage of the parents pool shares inside the nested pool. */ nestedPercentage: Scalars['BigDecimal']['output']; + /** Number of shares of the parent pool in the nested pool. */ nestedShares: Scalars['BigDecimal']['output']; + /** Address of the pool's owner. */ owner: Scalars['Bytes']['output']; + /** Fee charged for swapping tokens in the pool as %. 0.01 -> 0.01% */ swapFee: Scalars['BigDecimal']['output']; + /** Symbol of the pool. */ symbol: Scalars['String']['output']; + /** List of all tokens in the pool. */ tokens: Array; + /** Total liquidity in the pool in USD. */ totalLiquidity: Scalars['BigDecimal']['output']; + /** Total number of shares in the pool. */ totalShares: Scalars['BigDecimal']['output']; + /** Type of the pool. */ type: GqlPoolType; + /** Version of the pool. */ version: Scalars['Int']['output']; }; +/** Represents an event that occurs when liquidity is added or removed from a pool. */ export type GqlPoolAddRemoveEventV3 = GqlPoolEvent & { __typename?: 'GqlPoolAddRemoveEventV3'; + /** The block number of the event. */ blockNumber: Scalars['Int']['output']; + /** The block timestamp of the event. */ blockTimestamp: Scalars['Int']['output']; + /** The chain on which the event occurred. */ chain: GqlChain; + /** The unique identifier of the event. */ id: Scalars['ID']['output']; + /** The log index of the event. */ logIndex: Scalars['Int']['output']; + /** The pool ID associated with the event. */ poolId: Scalars['String']['output']; + /** The sender of the event. */ sender: Scalars['String']['output']; + /** The timestamp of the event. */ timestamp: Scalars['Int']['output']; + /** The tokens involved in the event. Ordered by poolToken index. */ tokens: Array; + /** The transaction hash of the event. */ tx: Scalars['String']['output']; + /** The type of the event. */ type: GqlPoolEventType; + /** The user address associated with the event. */ userAddress: Scalars['String']['output']; + /** The value of the event in USD. */ valueUSD: Scalars['Float']['output']; }; @@ -178,6 +212,43 @@ export type GqlPoolApr = { thirdPartyApr: GqlPoolAprValue; }; +/** All APRs for a pool */ +export type GqlPoolAprItem = { + __typename?: 'GqlPoolAprItem'; + /** The APR value in % -> 0.2 = 0.2% */ + apr: Scalars['Float']['output']; + /** The id of the APR item */ + id: Scalars['ID']['output']; + /** The title of the APR item, a human readable form */ + title: Scalars['String']['output']; + /** Specific type of this APR */ + type: GqlPoolAprItemType; +}; + +/** Enum representing the different types of the APR in a pool. */ +export type GqlPoolAprItemType = + /** APR that pools earns when BPT is staked on AURA. */ + | 'AURA' + /** Represents the yield from an IB (Interest-Bearing) asset APR in a pool. */ + | 'IB_YIELD' + /** APR in a pool that can be earned through locking, i.e. veBAL */ + | 'LOCKING' + /** Rewards distributed by merkl.xyz */ + | 'MERKL' + /** Represents if the APR items comes from a nested pool. */ + | 'NESTED' + /** Staking reward APR in a pool, i.e. BAL or BEETS. */ + | 'STAKING' + /** APR boost that can be earned, i.e. via veBAL or maBEETS. */ + | 'STAKING_BOOST' + /** Cow AMM specific APR */ + | 'SURPLUS' + /** Represents the swap fee APR in a pool. */ + | 'SWAP_FEE' + /** APR that can be earned thourgh voting, i.e. gauge votes */ + | 'VOTING' + | '%future added value'; + export type GqlPoolAprRange = { __typename?: 'GqlPoolAprRange'; max: Scalars['BigDecimal']['output']; @@ -195,23 +266,34 @@ export type GqlPoolAprValue = GqlPoolAprRange | GqlPoolAprTotal; export type GqlPoolBase = { /** The contract address of the pool. */ address: Scalars['Bytes']['output']; - /** Returns all pool tokens, including any nested tokens and phantom BPTs on one level. */ + /** + * Returns all pool tokens, including any nested tokens and phantom BPTs on one level. + * @deprecated Use poolTokens instead + */ allTokens: Array; + /** List of categories assigned by the team based on external factors */ + categories?: Maybe>>; /** The chain on which the pool is deployed */ chain: GqlChain; /** The timestamp the pool was created. */ createTime: Scalars['Int']['output']; /** The decimals of the BPT, usually 18 */ decimals: Scalars['Int']['output']; - /** Only returns main tokens, also known as leave tokens. Wont return any nested BPTs. Used for displaying the tokens that the pool consists of. */ + /** + * Only returns main tokens, also known as leave tokens. Wont return any nested BPTs. Used for displaying the tokens that the pool consists of. + * @deprecated Use poolTokens instead + */ displayTokens: Array; /** Dynamic data such as token balances, swap fees or volume */ dynamicData: GqlPoolDynamicData; /** The factory contract address from which the pool was created. */ factory?: Maybe; - /** The pool id. This is equal to the address for vaultVersion 3 pools */ + /** The pool id. This is equal to the address for protocolVersion 3 pools */ id: Scalars['ID']['output']; - /** Deprecated */ + /** + * Deprecated + * @deprecated Removed without replacement + */ investConfig: GqlPoolInvestConfig; /** The name of the pool as per contract */ name: Scalars['String']['output']; @@ -219,19 +301,29 @@ export type GqlPoolBase = { owner?: Maybe; /** Returns all pool tokens, including BPTs and nested pools if there are any. Only one nested level deep. */ poolTokens: Array; + /** The protocol version on which the pool is deployed, 1, 2 or 3 */ + protocolVersion: Scalars['Int']['output']; /** Staking options of this pool which emit additional rewards */ staking?: Maybe; /** The token symbol of the pool as per contract */ symbol: Scalars['String']['output']; + /** List of tags assigned by the team based on external factors */ + tags?: Maybe>>; /** The pool type, such as weighted, stable, etc. */ type: GqlPoolType; /** If a user address was provided in the query, the user balance is populated here */ userBalance?: Maybe; - /** The vault version on which the pool is deployed, 2 or 3 */ + /** + * The vault version on which the pool is deployed, 2 or 3 + * @deprecated use protocolVersion instead + */ vaultVersion: Scalars['Int']['output']; /** The version of the pool type. */ version: Scalars['Int']['output']; - /** Deprecated */ + /** + * Deprecated + * @deprecated Removed without replacement + */ withdrawConfig: GqlPoolWithdrawConfig; }; @@ -278,6 +370,7 @@ export type GqlPoolComposableStable = GqlPoolBase & { allTokens: Array; amp: Scalars['BigInt']['output']; bptPriceRate: Scalars['BigDecimal']['output']; + categories?: Maybe>>; chain: GqlChain; createTime: Scalars['Int']['output']; decimals: Scalars['Int']['output']; @@ -285,18 +378,27 @@ export type GqlPoolComposableStable = GqlPoolBase & { dynamicData: GqlPoolDynamicData; factory?: Maybe; id: Scalars['ID']['output']; + /** @deprecated Removed without replacement */ investConfig: GqlPoolInvestConfig; name: Scalars['String']['output']; nestingType: GqlPoolNestingType; owner: Scalars['Bytes']['output']; poolTokens: Array; + protocolVersion: Scalars['Int']['output']; staking?: Maybe; symbol: Scalars['String']['output']; + tags?: Maybe>>; + /** + * All tokens of the pool. If it is a nested pool, the nested pool is expanded with its own tokens again. + * @deprecated Use poolTokens instead + */ tokens: Array; type: GqlPoolType; userBalance?: Maybe; + /** @deprecated use protocolVersion instead */ vaultVersion: Scalars['Int']['output']; version: Scalars['Int']['output']; + /** @deprecated Removed without replacement */ withdrawConfig: GqlPoolWithdrawConfig; }; @@ -305,6 +407,7 @@ export type GqlPoolComposableStableNested = { address: Scalars['Bytes']['output']; amp: Scalars['BigInt']['output']; bptPriceRate: Scalars['BigDecimal']['output']; + categories?: Maybe>>; createTime: Scalars['Int']['output']; factory?: Maybe; id: Scalars['ID']['output']; @@ -313,6 +416,8 @@ export type GqlPoolComposableStableNested = { owner: Scalars['Bytes']['output']; swapFee: Scalars['BigDecimal']['output']; symbol: Scalars['String']['output']; + tags?: Maybe>>; + /** @deprecated Use poolTokens instead */ tokens: Array; totalLiquidity: Scalars['BigDecimal']['output']; totalShares: Scalars['BigDecimal']['output']; @@ -322,7 +427,13 @@ export type GqlPoolComposableStableNested = { export type GqlPoolDynamicData = { __typename?: 'GqlPoolDynamicData'; + /** Protocol and pool creator fees combined */ + aggregateSwapFee: Scalars['BigDecimal']['output']; + /** Protocol and pool creator fees combined */ + aggregateYieldFee: Scalars['BigDecimal']['output']; + /** @deprecated Use aprItems instead */ apr: GqlPoolApr; + aprItems: Array; fees24h: Scalars['BigDecimal']['output']; fees24hAth: Scalars['BigDecimal']['output']; fees24hAthTimestamp: Scalars['Int']['output']; @@ -330,6 +441,7 @@ export type GqlPoolDynamicData = { fees24hAtlTimestamp: Scalars['Int']['output']; fees48h: Scalars['BigDecimal']['output']; holdersCount: Scalars['BigInt']['output']; + /** True for bricked pools */ isInRecoveryMode: Scalars['Boolean']['output']; isPaused: Scalars['Boolean']['output']; lifetimeSwapFees: Scalars['BigDecimal']['output']; @@ -339,6 +451,11 @@ export type GqlPoolDynamicData = { sharePriceAthTimestamp: Scalars['Int']['output']; sharePriceAtl: Scalars['BigDecimal']['output']; sharePriceAtlTimestamp: Scalars['Int']['output']; + /** CowAmm specific, equivalent of swap fees */ + surplus24h: Scalars['BigDecimal']['output']; + /** CowAmm specific, equivalent of swap fees */ + surplus48h: Scalars['BigDecimal']['output']; + /** Disabled for bricked pools */ swapEnabled: Scalars['Boolean']['output']; swapFee: Scalars['BigDecimal']['output']; swapsCount: Scalars['BigInt']['output']; @@ -365,6 +482,7 @@ export type GqlPoolElement = GqlPoolBase & { address: Scalars['Bytes']['output']; allTokens: Array; baseToken: Scalars['Bytes']['output']; + categories?: Maybe>>; chain: GqlChain; createTime: Scalars['Int']['output']; decimals: Scalars['Int']['output']; @@ -372,34 +490,53 @@ export type GqlPoolElement = GqlPoolBase & { dynamicData: GqlPoolDynamicData; factory?: Maybe; id: Scalars['ID']['output']; + /** @deprecated Removed without replacement */ investConfig: GqlPoolInvestConfig; name: Scalars['String']['output']; owner: Scalars['Bytes']['output']; poolTokens: Array; principalToken: Scalars['Bytes']['output']; + protocolVersion: Scalars['Int']['output']; staking?: Maybe; symbol: Scalars['String']['output']; + tags?: Maybe>>; + /** @deprecated Use poolTokens instead */ tokens: Array; type: GqlPoolType; unitSeconds: Scalars['BigInt']['output']; userBalance?: Maybe; + /** @deprecated use protocolVersion instead */ vaultVersion: Scalars['Int']['output']; version: Scalars['Int']['output']; + /** @deprecated Removed without replacement */ withdrawConfig: GqlPoolWithdrawConfig; }; +/** Represents an event that occurs in a pool. */ export type GqlPoolEvent = { + /** The block number of the event. */ blockNumber: Scalars['Int']['output']; + /** The block timestamp of the event. */ blockTimestamp: Scalars['Int']['output']; + /** The chain on which the event occurred. */ chain: GqlChain; + /** The unique identifier of the event. */ id: Scalars['ID']['output']; + /** The log index of the event. */ logIndex: Scalars['Int']['output']; + /** The pool ID associated with the event. */ poolId: Scalars['String']['output']; + /** The sender of the event. */ sender: Scalars['String']['output']; + /** The timestamp of the event. */ timestamp: Scalars['Int']['output']; + /** The transaction hash of the event. */ tx: Scalars['String']['output']; + /** The type of the event. */ type: GqlPoolEventType; + /** The user address associated with the event. */ userAddress: Scalars['String']['output']; + /** The USD value of this event. */ valueUSD: Scalars['Float']['output']; }; @@ -423,11 +560,15 @@ export type GqlPoolEventsDataRange = | '%future added value'; export type GqlPoolEventsFilter = { - chain: GqlChain; - poolId: Scalars['String']['input']; + chainIn?: InputMaybe>>; + poolIdIn?: InputMaybe>>; range?: InputMaybe; typeIn?: InputMaybe>>; userAddress?: InputMaybe; + /** USD value of the event */ + valueUSD_gt?: InputMaybe; + /** USD value of the event */ + valueUSD_gte?: InputMaybe; }; export type GqlPoolFeaturedPool = { @@ -449,8 +590,6 @@ export type GqlPoolFeaturedPoolGroup = { export type GqlPoolFeaturedPoolGroupItem = GqlFeaturePoolGroupItemExternalLink | GqlPoolMinimal; export type GqlPoolFilter = { - categoryIn?: InputMaybe>; - categoryNotIn?: InputMaybe>; chainIn?: InputMaybe>; chainNotIn?: InputMaybe>; createTime?: InputMaybe; @@ -461,15 +600,33 @@ export type GqlPoolFilter = { minTvl?: InputMaybe; poolTypeIn?: InputMaybe>; poolTypeNotIn?: InputMaybe>; + protocolVersionIn?: InputMaybe>; + /** + * For list of tags see: https://github.com/balancer/metadata/blob/main/pools/index.json + * Use uppercase + */ + tagIn?: InputMaybe>; + /** + * For list of tags see: https://github.com/balancer/metadata/blob/main/pools/index.json + * Use uppercase + */ + tagNotIn?: InputMaybe>; tokensIn?: InputMaybe>; tokensNotIn?: InputMaybe>; userAddress?: InputMaybe; - vaultVersionIn?: InputMaybe>; }; export type GqlPoolFilterCategory = | 'BLACK_LISTED' | 'INCENTIVIZED' + | 'LRT' + | 'POINTS' + | 'POINTS_EIGENLAYER' + | 'POINTS_GYRO' + | 'POINTS_KELP' + | 'POINTS_RENZO' + | 'POINTS_SWELL' + | 'SUPERFEST' | '%future added value'; export type GqlPoolFx = GqlPoolBase & { @@ -478,6 +635,7 @@ export type GqlPoolFx = GqlPoolBase & { allTokens: Array; alpha: Scalars['String']['output']; beta: Scalars['String']['output']; + categories?: Maybe>>; chain: GqlChain; createTime: Scalars['Int']['output']; decimals: Scalars['Int']['output']; @@ -487,18 +645,27 @@ export type GqlPoolFx = GqlPoolBase & { epsilon: Scalars['String']['output']; factory?: Maybe; id: Scalars['ID']['output']; + /** @deprecated Removed without replacement */ investConfig: GqlPoolInvestConfig; lambda: Scalars['String']['output']; name: Scalars['String']['output']; owner?: Maybe; poolTokens: Array; + protocolVersion: Scalars['Int']['output']; staking?: Maybe; symbol: Scalars['String']['output']; + tags?: Maybe>>; + /** + * All tokens of the pool. If it is a nested pool, the nested pool is expanded with its own tokens again. + * @deprecated Use poolTokens instead + */ tokens: Array; type: GqlPoolType; userBalance?: Maybe; + /** @deprecated use protocolVersion instead */ vaultVersion: Scalars['Int']['output']; version: Scalars['Int']['output']; + /** @deprecated Removed without replacement */ withdrawConfig: GqlPoolWithdrawConfig; }; @@ -509,6 +676,7 @@ export type GqlPoolGyro = GqlPoolBase & { alpha: Scalars['String']['output']; beta: Scalars['String']['output']; c: Scalars['String']['output']; + categories?: Maybe>>; chain: GqlChain; createTime: Scalars['Int']['output']; dSq: Scalars['String']['output']; @@ -517,30 +685,39 @@ export type GqlPoolGyro = GqlPoolBase & { dynamicData: GqlPoolDynamicData; factory?: Maybe; id: Scalars['ID']['output']; + /** @deprecated Removed without replacement */ investConfig: GqlPoolInvestConfig; lambda: Scalars['String']['output']; name: Scalars['String']['output']; nestingType: GqlPoolNestingType; owner: Scalars['Bytes']['output']; poolTokens: Array; + protocolVersion: Scalars['Int']['output']; root3Alpha: Scalars['String']['output']; s: Scalars['String']['output']; sqrtAlpha: Scalars['String']['output']; sqrtBeta: Scalars['String']['output']; staking?: Maybe; symbol: Scalars['String']['output']; + tags?: Maybe>>; tauAlphaX: Scalars['String']['output']; tauAlphaY: Scalars['String']['output']; tauBetaX: Scalars['String']['output']; tauBetaY: Scalars['String']['output']; + /** + * All tokens of the pool. If it is a nested pool, the nested pool is expanded with its own tokens again. + * @deprecated Use poolTokens instead + */ tokens: Array; type: GqlPoolType; u: Scalars['String']['output']; userBalance?: Maybe; v: Scalars['String']['output']; + /** @deprecated use protocolVersion instead */ vaultVersion: Scalars['Int']['output']; version: Scalars['Int']['output']; w: Scalars['String']['output']; + /** @deprecated Removed without replacement */ withdrawConfig: GqlPoolWithdrawConfig; z: Scalars['String']['output']; }; @@ -592,6 +769,7 @@ export type GqlPoolLiquidityBootstrapping = GqlPoolBase & { __typename?: 'GqlPoolLiquidityBootstrapping'; address: Scalars['Bytes']['output']; allTokens: Array; + categories?: Maybe>>; chain: GqlChain; createTime: Scalars['Int']['output']; decimals: Scalars['Int']['output']; @@ -599,18 +777,27 @@ export type GqlPoolLiquidityBootstrapping = GqlPoolBase & { dynamicData: GqlPoolDynamicData; factory?: Maybe; id: Scalars['ID']['output']; + /** @deprecated Removed without replacement */ investConfig: GqlPoolInvestConfig; name: Scalars['String']['output']; nestingType: GqlPoolNestingType; owner: Scalars['Bytes']['output']; poolTokens: Array; + protocolVersion: Scalars['Int']['output']; staking?: Maybe; symbol: Scalars['String']['output']; + tags?: Maybe>>; + /** + * All tokens of the pool. If it is a nested pool, the nested pool is expanded with its own tokens again. + * @deprecated Use poolTokens instead + */ tokens: Array; type: GqlPoolType; userBalance?: Maybe; + /** @deprecated use protocolVersion instead */ vaultVersion: Scalars['Int']['output']; version: Scalars['Int']['output']; + /** @deprecated Removed without replacement */ withdrawConfig: GqlPoolWithdrawConfig; }; @@ -619,6 +806,7 @@ export type GqlPoolMetaStable = GqlPoolBase & { address: Scalars['Bytes']['output']; allTokens: Array; amp: Scalars['BigInt']['output']; + categories?: Maybe>>; chain: GqlChain; createTime: Scalars['Int']['output']; decimals: Scalars['Int']['output']; @@ -626,17 +814,23 @@ export type GqlPoolMetaStable = GqlPoolBase & { dynamicData: GqlPoolDynamicData; factory?: Maybe; id: Scalars['ID']['output']; + /** @deprecated Removed without replacement */ investConfig: GqlPoolInvestConfig; name: Scalars['String']['output']; owner: Scalars['Bytes']['output']; poolTokens: Array; + protocolVersion: Scalars['Int']['output']; staking?: Maybe; symbol: Scalars['String']['output']; + tags?: Maybe>>; + /** @deprecated Use poolTokens instead */ tokens: Array; type: GqlPoolType; userBalance?: Maybe; + /** @deprecated use protocolVersion instead */ vaultVersion: Scalars['Int']['output']; version: Scalars['Int']['output']; + /** @deprecated Removed without replacement */ withdrawConfig: GqlPoolWithdrawConfig; }; @@ -647,38 +841,66 @@ export type GqlPoolMinimal = { address: Scalars['Bytes']['output']; /** Returns all pool tokens, including any nested tokens and phantom BPTs */ allTokens: Array; + /** List of categories assigned by the team based on external factors */ + categories?: Maybe>>; /** The chain on which the pool is deployed */ chain: GqlChain; /** The timestamp the pool was created. */ createTime: Scalars['Int']['output']; /** The decimals of the BPT, usually 18 */ decimals: Scalars['Int']['output']; - /** Only returns main tokens, also known as leave tokens. Wont return any nested BPTs. Used for displaying the tokens that the pool consists of. */ + /** Only returns main or underlying tokens, also known as leave tokens. Wont return any nested BPTs. Used for displaying the tokens that the pool consists of. */ displayTokens: Array; /** Dynamic data such as token balances, swap fees or volume */ dynamicData: GqlPoolDynamicData; /** The factory contract address from which the pool was created. */ factory?: Maybe; - /** The pool id. This is equal to the address for vaultVersion 3 pools */ + /** Whether at least one token in this pool is considered an ERC4626 token. */ + hasErc4626: Scalars['Boolean']['output']; + /** Hook assigned to a pool */ + hook?: Maybe; + /** The pool id. This is equal to the address for protocolVersion 3 pools */ id: Scalars['ID']['output']; + /** Pool is receiving rewards when liquidity tokens are staked */ + incentivized: Scalars['Boolean']['output']; /** The name of the pool as per contract */ name: Scalars['String']['output']; /** The wallet address of the owner of the pool. Pool owners can set certain properties like swapFees or AMP. */ owner?: Maybe; + /** The protocol version on which the pool is deployed, 1, 2 or 3 */ + protocolVersion: Scalars['Int']['output']; /** Staking options of this pool which emit additional rewards */ staking?: Maybe; /** The token symbol of the pool as per contract */ symbol: Scalars['String']['output']; + /** List of tags assigned by the team based on external factors */ + tags?: Maybe>>; /** The pool type, such as weighted, stable, etc. */ type: GqlPoolType; /** If a user address was provided in the query, the user balance is populated here */ userBalance?: Maybe; - /** The vault version on which the pool is deployed, 2 or 3 */ + /** + * The vault version on which the pool is deployed, 2 or 3 + * @deprecated use protocolVersion instead + */ vaultVersion: Scalars['Int']['output']; /** The version of the pool type. */ version: Scalars['Int']['output']; }; +/** Result of the poolReloadPools mutation */ +export type GqlPoolMutationResult = { + __typename?: 'GqlPoolMutationResult'; + /** The chain that was reloaded. */ + chain: GqlChain; + /** The error message */ + error?: Maybe; + /** Whether it was successful or not. */ + success: Scalars['Boolean']['output']; + /** The type of pools that were reloaded. */ + type: Scalars['String']['output']; +}; + export type GqlPoolNestedUnion = GqlPoolComposableStableNested; export type GqlPoolNestingType = @@ -710,10 +932,12 @@ export type GqlPoolSnapshot = { id: Scalars['ID']['output']; poolId: Scalars['String']['output']; sharePrice: Scalars['String']['output']; + surplus24h: Scalars['String']['output']; swapsCount: Scalars['String']['output']; timestamp: Scalars['Int']['output']; totalLiquidity: Scalars['String']['output']; totalShares: Scalars['String']['output']; + totalSurplus: Scalars['String']['output']; totalSwapFee: Scalars['String']['output']; totalSwapVolume: Scalars['String']['output']; volume24h: Scalars['String']['output']; @@ -732,6 +956,7 @@ export type GqlPoolStable = GqlPoolBase & { address: Scalars['Bytes']['output']; allTokens: Array; amp: Scalars['BigInt']['output']; + categories?: Maybe>>; chain: GqlChain; createTime: Scalars['Int']['output']; decimals: Scalars['Int']['output']; @@ -739,17 +964,23 @@ export type GqlPoolStable = GqlPoolBase & { dynamicData: GqlPoolDynamicData; factory?: Maybe; id: Scalars['ID']['output']; + /** @deprecated Removed without replacement */ investConfig: GqlPoolInvestConfig; name: Scalars['String']['output']; owner: Scalars['Bytes']['output']; poolTokens: Array; + protocolVersion: Scalars['Int']['output']; staking?: Maybe; symbol: Scalars['String']['output']; + tags?: Maybe>>; + /** @deprecated Use poolTokens instead */ tokens: Array; type: GqlPoolType; userBalance?: Maybe; + /** @deprecated use protocolVersion instead */ vaultVersion: Scalars['Int']['output']; version: Scalars['Int']['output']; + /** @deprecated Removed without replacement */ withdrawConfig: GqlPoolWithdrawConfig; }; @@ -766,12 +997,23 @@ export type GqlPoolStableComposablePoolData = { export type GqlPoolStaking = { __typename?: 'GqlPoolStaking'; address: Scalars['String']['output']; + aura?: Maybe; chain: GqlChain; farm?: Maybe; gauge?: Maybe; id: Scalars['ID']['output']; reliquary?: Maybe; type: GqlPoolStakingType; + vebal?: Maybe; +}; + +export type GqlPoolStakingAura = { + __typename?: 'GqlPoolStakingAura'; + apr: Scalars['Float']['output']; + auraPoolAddress: Scalars['String']['output']; + auraPoolId: Scalars['String']['output']; + id: Scalars['ID']['output']; + isShutdown: Scalars['Boolean']['output']; }; export type GqlPoolStakingFarmRewarder = { @@ -842,12 +1084,20 @@ export type GqlPoolStakingReliquaryFarmLevel = { }; export type GqlPoolStakingType = + | 'AURA' | 'FRESH_BEETS' | 'GAUGE' | 'MASTER_CHEF' | 'RELIQUARY' + | 'VEBAL' | '%future added value'; +export type GqlPoolStakingVebal = { + __typename?: 'GqlPoolStakingVebal'; + id: Scalars['ID']['output']; + vebalAddress: Scalars['String']['output']; +}; + export type GqlPoolSwap = { __typename?: 'GqlPoolSwap'; chain: GqlChain; @@ -863,21 +1113,75 @@ export type GqlPoolSwap = { valueUSD: Scalars['Float']['output']; }; +/** Represents an event that occurs when a swap is made in a pool using the CowAmm protocol. */ +export type GqlPoolSwapEventCowAmm = GqlPoolEvent & { + __typename?: 'GqlPoolSwapEventCowAmm'; + /** The block number of the event. */ + blockNumber: Scalars['Int']['output']; + /** The block timestamp of the event. */ + blockTimestamp: Scalars['Int']['output']; + /** The chain on which the event occurred. */ + chain: GqlChain; + /** The fee that this swap generated. */ + fee: GqlPoolEventAmount; + /** The unique identifier of the event. */ + id: Scalars['ID']['output']; + /** The log index of the event. */ + logIndex: Scalars['Int']['output']; + /** The pool ID associated with the event. */ + poolId: Scalars['String']['output']; + /** The sender of the event. */ + sender: Scalars['String']['output']; + /** The surplus generated by the swap. */ + surplus: GqlPoolEventAmount; + /** The timestamp of the event. */ + timestamp: Scalars['Int']['output']; + /** The token that was swapped in the event. */ + tokenIn: GqlPoolEventAmount; + /** The token that was swapped out in the event. */ + tokenOut: GqlPoolEventAmount; + /** The transaction hash of the event. */ + tx: Scalars['String']['output']; + /** The type of the event. */ + type: GqlPoolEventType; + /** The user address associated with the event. */ + userAddress: Scalars['String']['output']; + /** The value of the event in USD. */ + valueUSD: Scalars['Float']['output']; +}; + +/** Represents an event that occurs when a swap is made in a pool. */ export type GqlPoolSwapEventV3 = GqlPoolEvent & { __typename?: 'GqlPoolSwapEventV3'; + /** The block number of the event. */ blockNumber: Scalars['Int']['output']; + /** The block timestamp of the event. */ blockTimestamp: Scalars['Int']['output']; + /** The chain on which the event occurred. */ chain: GqlChain; + /** The fee that this swap generated. */ + fee: GqlPoolEventAmount; + /** The unique identifier of the event. */ id: Scalars['ID']['output']; + /** The log index of the event. */ logIndex: Scalars['Int']['output']; + /** The pool ID associated with the event. */ poolId: Scalars['String']['output']; + /** The sender of the event. */ sender: Scalars['String']['output']; + /** The timestamp of the event. */ timestamp: Scalars['Int']['output']; + /** The token that was swapped in the event. */ tokenIn: GqlPoolEventAmount; + /** The token that was swapped out in the event. */ tokenOut: GqlPoolEventAmount; + /** The transaction hash of the event. */ tx: Scalars['String']['output']; + /** The type of the event. */ type: GqlPoolEventType; + /** The user address associated with the event. */ userAddress: Scalars['String']['output']; + /** The value of the event in USD. */ valueUSD: Scalars['Float']['output']; }; @@ -940,19 +1244,45 @@ export type GqlPoolTokenComposableStable = GqlPoolTokenBase & { export type GqlPoolTokenComposableStableNestedUnion = GqlPoolToken; +/** + * All info on the pool token. It will also include the nested pool if the token is a BPT. It will only support 1 level of nesting. + * A second (unsupported) level of nesting is shown by having hasNestedPool = true but nestedPool = null. + */ export type GqlPoolTokenDetail = { __typename?: 'GqlPoolTokenDetail'; + /** Address of the pool token. */ address: Scalars['String']['output']; + /** Balance of the pool token inside the pool. */ balance: Scalars['BigDecimal']['output']; + /** USD Balance of the pool token. */ + balanceUSD: Scalars['BigDecimal']['output']; + /** Decimals of the pool token. */ decimals: Scalars['Int']['output']; + /** Indicates whether this token is a BPT and therefor has a nested pool. */ hasNestedPool: Scalars['Boolean']['output']; + /** Id of the token. A combination of pool id and token address. */ id: Scalars['ID']['output']; + /** Index of the pool token in the pool as returned by the vault. */ index: Scalars['Int']['output']; + /** Whether the token is in the allow list. */ + isAllowed: Scalars['Boolean']['output']; + /** Whether the token is considered an ERC4626 token. */ + isErc4626: Scalars['Boolean']['output']; + /** Name of the pool token. */ name: Scalars['String']['output']; + /** Additional data for the nested pool if the token is a BPT. Null otherwise. */ nestedPool?: Maybe; + /** If it is an appreciating token, it shows the current price rate. 1 otherwise. */ priceRate: Scalars['BigDecimal']['output']; + /** The address of the price rate provider. */ priceRateProvider?: Maybe; + /** Additional data for the price rate provider, such as reviews or warnings. */ + priceRateProviderData?: Maybe; + /** Symbol of the pool token. */ symbol: Scalars['String']['output']; + /** If it is an Erc4262, this will be the underlying token if present in the API. */ + underlyingToken?: Maybe; + /** The weight of the token in the pool if it is a weighted pool, null otherwise */ weight?: Maybe; }; @@ -971,6 +1301,7 @@ export type GqlPoolTokenExpanded = { address: Scalars['String']['output']; decimals: Scalars['Int']['output']; id: Scalars['ID']['output']; + isErc4626: Scalars['Boolean']['output']; isMainToken: Scalars['Boolean']['output']; isNested: Scalars['Boolean']['output']; isPhantomBpt: Scalars['Boolean']['output']; @@ -984,6 +1315,7 @@ export type GqlPoolTokenUnion = GqlPoolToken | GqlPoolTokenComposableStable; /** Supported pool types */ export type GqlPoolType = | 'COMPOSABLE_STABLE' + | 'COW_AMM' | 'ELEMENT' | 'FX' | 'GYRO' @@ -1003,10 +1335,8 @@ export type GqlPoolUnion = GqlPoolComposableStable | GqlPoolElement | GqlPoolFx /** If a user address was provided in the query, the user balance is populated here */ export type GqlPoolUserBalance = { __typename?: 'GqlPoolUserBalance'; - /** The staked balance in either a gauge or farm as float. */ - stakedBalance: Scalars['AmountHumanReadable']['output']; - /** The staked balance in either a gauge or farm in USD as float. */ - stakedBalanceUsd: Scalars['Float']['output']; + /** The staked BPT balances of the user. */ + stakedBalances: Array; /** Total balance (wallet + staked) as float */ totalBalance: Scalars['AmountHumanReadable']['output']; /** Total balance (wallet + staked) in USD as float */ @@ -1027,6 +1357,7 @@ export type GqlPoolWeighted = GqlPoolBase & { __typename?: 'GqlPoolWeighted'; address: Scalars['Bytes']['output']; allTokens: Array; + categories?: Maybe>>; chain: GqlChain; createTime: Scalars['Int']['output']; decimals: Scalars['Int']['output']; @@ -1034,19 +1365,27 @@ export type GqlPoolWeighted = GqlPoolBase & { dynamicData: GqlPoolDynamicData; factory?: Maybe; id: Scalars['ID']['output']; + /** @deprecated Removed without replacement */ investConfig: GqlPoolInvestConfig; name: Scalars['String']['output']; nestingType: GqlPoolNestingType; owner: Scalars['Bytes']['output']; poolTokens: Array; + protocolVersion: Scalars['Int']['output']; staking?: Maybe; symbol: Scalars['String']['output']; - /** All tokens of the pool. If it is a nested pool, the nested pool is expanded with its own tokens again. */ + tags?: Maybe>>; + /** + * All tokens of the pool. If it is a nested pool, the nested pool is expanded with its own tokens again. + * @deprecated Use poolTokens instead + */ tokens: Array; type: GqlPoolType; userBalance?: Maybe; + /** @deprecated use protocolVersion instead */ vaultVersion: Scalars['Int']['output']; version: Scalars['Int']['output']; + /** @deprecated Removed without replacement */ withdrawConfig: GqlPoolWithdrawConfig; }; @@ -1073,6 +1412,36 @@ export type GqlPriceImpact = { priceImpact?: Maybe; }; +/** Represents the data of a price rate provider */ +export type GqlPriceRateProviderData = { + __typename?: 'GqlPriceRateProviderData'; + /** The address of the price rate provider */ + address: Scalars['String']['output']; + /** The factory used to create the price rate provider, if applicable */ + factory?: Maybe; + /** The name of the price rate provider */ + name?: Maybe; + /** The filename of the review of the price rate provider */ + reviewFile?: Maybe; + /** Indicates if the price rate provider has been reviewed */ + reviewed: Scalars['Boolean']['output']; + /** A summary of the price rate provider, usually just says safe or unsafe */ + summary?: Maybe; + /** Upgradeable components of the price rate provider */ + upgradeableComponents?: Maybe>>; + /** Warnings associated with the price rate provider */ + warnings?: Maybe>; +}; + +/** Represents an upgradeable component of a price rate provider */ +export type GqlPriceRateProviderUpgradeableComponent = { + __typename?: 'GqlPriceRateProviderUpgradeableComponent'; + /** The entry point / proxy of the upgradeable component */ + entryPoint: Scalars['String']['output']; + /** Indicates if the implementation of the component has been reviewed */ + implementationReviewed: Scalars['String']['output']; +}; + export type GqlProtocolMetricsAggregated = { __typename?: 'GqlProtocolMetricsAggregated'; chains: Array; @@ -1252,6 +1621,8 @@ export type GqlSorGetSwapPaths = { paths: Array; /** Price impact of the path */ priceImpact: GqlPriceImpact; + /** The version of the protocol these paths are from */ + protocolVersion: Scalars['Int']['output']; /** The return amount in human form. Return amount is either tokenOutAmount (if swapType is exactIn) or tokenInAmount (if swapType is exactOut) */ returnAmount: Scalars['AmountHumanReadable']['output']; /** The return amount in a raw form */ @@ -1276,7 +1647,10 @@ export type GqlSorGetSwapPaths = { tokenOut: Scalars['String']['output']; /** The amount of tokenOut in human form */ tokenOutAmount: Scalars['AmountHumanReadable']['output']; - /** The version of the vault these paths are from */ + /** + * The version of the vault these paths are from + * @deprecated Use protocolVersion instead + */ vaultVersion: Scalars['Int']['output']; }; @@ -1308,13 +1682,20 @@ export type GqlSorPath = { __typename?: 'GqlSorPath'; /** Input amount of this path in scaled form */ inputAmountRaw: Scalars['String']['output']; + /** A sorted list of booleans that indicate if the respective pool is a buffer */ + isBuffer: Array>; /** Output amount of this path in scaled form */ outputAmountRaw: Scalars['String']['output']; /** A sorted list of pool ids that are used in this path */ pools: Array>; + /** The version of the protocol these paths are from */ + protocolVersion: Scalars['Int']['output']; /** A sorted list of tokens that are ussed in this path */ tokens: Array>; - /** Vault version of this path. */ + /** + * Vault version of this path. + * @deprecated Use protocolVersion instead + */ vaultVersion: Scalars['Int']['output']; }; @@ -1391,21 +1772,44 @@ export type GqlSwapCallDataInput = { slippagePercentage: Scalars['String']['input']; }; +/** Represents a token */ export type GqlToken = { __typename?: 'GqlToken'; + /** The address of the token */ address: Scalars['String']['output']; + /** The chain of the token */ chain: GqlChain; + /** The chain ID of the token */ chainId: Scalars['Int']['output']; + /** The coingecko ID for this token, if present */ + coingeckoId?: Maybe; + /** The number of decimal places for the token */ decimals: Scalars['Int']['output']; + /** The description of the token */ description?: Maybe; + /** The Discord URL of the token */ discordUrl?: Maybe; + /** Whether the token is considered an ERC4626 token. */ + isErc4626: Scalars['Boolean']['output']; + /** The logo URI of the token */ logoURI?: Maybe; + /** The name of the token */ name: Scalars['String']['output']; + /** The rate provider data for the token */ + priceRateProviderData?: Maybe; + /** The priority of the token, can be used for sorting. */ priority: Scalars['Int']['output']; + /** The rate provider data for the token */ + rateProviderData?: Maybe; + /** The symbol of the token */ symbol: Scalars['String']['output']; + /** The Telegram URL of the token */ telegramUrl?: Maybe; + /** Indicates if the token is tradable */ tradable: Scalars['Boolean']['output']; + /** The Twitter username of the token */ twitterUsername?: Maybe; + /** The website URL of the token */ websiteUrl?: Maybe; }; @@ -1443,25 +1847,52 @@ export type GqlTokenData = { websiteUrl?: Maybe; }; +/** Represents additional data for a token */ export type GqlTokenDynamicData = { __typename?: 'GqlTokenDynamicData'; + /** The all-time high price of the token */ ath: Scalars['Float']['output']; + /** The all-time low price of the token */ atl: Scalars['Float']['output']; + /** The fully diluted valuation of the token */ fdv?: Maybe; + /** The highest price in the last 24 hours */ high24h: Scalars['Float']['output']; + /** The unique identifier of the dynamic data */ id: Scalars['String']['output']; + /** The lowest price in the last 24 hours */ low24h: Scalars['Float']['output']; + /** The market capitalization of the token */ marketCap?: Maybe; + /** The current price of the token */ price: Scalars['Float']['output']; + /** The price change in the last 24 hours */ priceChange24h: Scalars['Float']['output']; + /** The percentage price change in the last 7 days */ priceChangePercent7d?: Maybe; + /** The percentage price change in the last 14 days */ priceChangePercent14d?: Maybe; + /** The percentage price change in the last 24 hours */ priceChangePercent24h: Scalars['Float']['output']; + /** The percentage price change in the last 30 days */ priceChangePercent30d?: Maybe; + /** The address of the token */ tokenAddress: Scalars['String']['output']; + /** The timestamp when the data was last updated */ updatedAt: Scalars['String']['output']; }; +/** Result of the poolReloadPools mutation */ +export type GqlTokenMutationResult = { + __typename?: 'GqlTokenMutationResult'; + /** The chain that was reloaded. */ + chain: GqlChain; + /** The error message */ + error?: Maybe; + /** Whether it was successful or not. */ + success: Scalars['Boolean']['output']; +}; + export type GqlTokenPrice = { __typename?: 'GqlTokenPrice'; address: Scalars['String']['output']; @@ -1503,46 +1934,119 @@ export type GqlUserPoolBalance = { walletBalance: Scalars['AmountHumanReadable']['output']; }; +export type GqlUserStakedBalance = { + __typename?: 'GqlUserStakedBalance'; + /** The staked BPT balance as float. */ + balance: Scalars['AmountHumanReadable']['output']; + /** The steaked BPT balance in USD as float. */ + balanceUsd: Scalars['Float']['output']; + /** The id of the staking to match with GqlPoolStaking.id. */ + stakingId: Scalars['String']['output']; + /** The staking type (Gauge, farm, aura, etc.) in which this balance is staked. */ + stakingType: GqlPoolStakingType; +}; + export type GqlUserSwapVolumeFilter = { poolIdIn?: InputMaybe>; tokenInIn?: InputMaybe>; tokenOutIn?: InputMaybe>; }; +export type GqlVeBalBalance = { + __typename?: 'GqlVeBalBalance'; + balance: Scalars['AmountHumanReadable']['output']; + chain: GqlChain; + locked: Scalars['AmountHumanReadable']['output']; + lockedUsd: Scalars['AmountHumanReadable']['output']; +}; + export type GqlVeBalUserData = { __typename?: 'GqlVeBalUserData'; balance: Scalars['AmountHumanReadable']['output']; + locked: Scalars['AmountHumanReadable']['output']; + lockedUsd: Scalars['AmountHumanReadable']['output']; rank?: Maybe; }; +/** The Gauge that can be voted on through veBAL and that will ultimately receive the rewards. */ export type GqlVotingGauge = { __typename?: 'GqlVotingGauge'; + /** The timestamp the gauge was added. */ addedTimestamp?: Maybe; + /** The address of the root gauge on Ethereum mainnet. */ address: Scalars['Bytes']['output']; + /** The address of the child gauge on the specific chain. */ childGaugeAddress?: Maybe; + /** Whether the gauge is killed or not. */ isKilled: Scalars['Boolean']['output']; + /** The relative weight the gauge received this epoch (not more than 1.0). */ + relativeWeight: Scalars['String']['output']; + /** The relative weight cap. 1.0 for uncapped. */ relativeWeightCap?: Maybe; }; +/** A token inside of a pool with a voting gauge. */ export type GqlVotingGaugeToken = { __typename?: 'GqlVotingGaugeToken'; + /** The address of the token. */ address: Scalars['String']['output']; + /** The URL to the token logo. */ logoURI: Scalars['String']['output']; + /** The symbol of the token. */ symbol: Scalars['String']['output']; + /** If it is a weighted pool, the weigh of the token is shown here in %. 0.5 = 50%. */ weight?: Maybe; }; +/** The pool that can be voted on through veBAL */ export type GqlVotingPool = { __typename?: 'GqlVotingPool'; + /** The address of the pool. */ address: Scalars['Bytes']['output']; + /** The chain this pool is on. */ chain: GqlChain; + /** The gauge that is connected to the pool and that will receive the rewards. */ gauge: GqlVotingGauge; + /** Pool ID */ id: Scalars['ID']['output']; + /** The symbol of the pool. */ symbol: Scalars['String']['output']; + /** The tokens inside the pool. */ tokens: Array; + /** The type of the pool. */ type: GqlPoolType; }; +/** Hook data */ +export type Hook = { + __typename?: 'Hook'; + address: Scalars['String']['output']; + chain: GqlChain; + /** Data points changing over time */ + dynamicData?: Maybe; + /** True when hook can change the amounts send to the vault. Necessary to deduct the fees. */ + enableHookAdjustedAmounts: Scalars['Boolean']['output']; + /** List of pools using the hook */ + poolsIds?: Maybe>>; + shouldCallAfterAddLiquidity: Scalars['Boolean']['output']; + shouldCallAfterInitialize: Scalars['Boolean']['output']; + shouldCallAfterRemoveLiquidity: Scalars['Boolean']['output']; + shouldCallAfterSwap: Scalars['Boolean']['output']; + shouldCallBeforeAddLiquidity: Scalars['Boolean']['output']; + shouldCallBeforeInitialize: Scalars['Boolean']['output']; + shouldCallBeforeRemoveLiquidity: Scalars['Boolean']['output']; + shouldCallBeforeSwap: Scalars['Boolean']['output']; + shouldCallComputeDynamicSwapFee: Scalars['Boolean']['output']; +}; + +/** Collection of hook specific data. Percentage format is 0.01 -> 0.01%. */ +export type HookData = { + __typename?: 'HookData'; + addLiquidityFeePercentage?: Maybe; + removeLiquidityFeePercentage?: Maybe; + swapFeePercentage?: Maybe; +}; + export type Mutation = { __typename?: 'Mutation'; beetsPoolLoadReliquarySnapshotsForAllFarms: Scalars['String']['output']; @@ -1559,7 +2063,9 @@ export type Mutation = { poolLoadSnapshotsForPools: Scalars['String']['output']; poolReloadAllPoolAprs: Scalars['String']['output']; poolReloadAllTokenNestedPoolIds: Scalars['String']['output']; + poolReloadPools: Array; poolReloadStakingForAllPools: Scalars['String']['output']; + poolSyncAllCowSnapshots: Array; poolSyncAllPoolsFromSubgraph: Array; poolSyncLatestSnapshotsForAllPools: Scalars['String']['output']; poolSyncNewPoolsFromSubgraph: Array; @@ -1579,6 +2085,7 @@ export type Mutation = { sftmxSyncWithdrawalRequests: Scalars['String']['output']; tokenDeleteTokenType: Scalars['String']['output']; tokenReloadAllTokenTypes: Scalars['String']['output']; + tokenReloadErc4626Tokens: Array; tokenReloadTokenPrices?: Maybe; tokenSyncLatestFxPrices: Scalars['String']['output']; tokenSyncTokenDefinitions: Scalars['String']['output']; @@ -1625,13 +2132,23 @@ export type MutationPoolReloadAllPoolAprsArgs = { }; +export type MutationPoolReloadPoolsArgs = { + chains: Array; +}; + + export type MutationPoolReloadStakingForAllPoolsArgs = { stakingTypes: Array; }; +export type MutationPoolSyncAllCowSnapshotsArgs = { + chains: Array; +}; + + export type MutationPoolSyncLatestSnapshotsForAllPoolsArgs = { - daysToSync?: InputMaybe; + chain: GqlChain; }; @@ -1651,6 +2168,11 @@ export type MutationTokenDeleteTokenTypeArgs = { }; +export type MutationTokenReloadErc4626TokensArgs = { + chains: Array; +}; + + export type MutationTokenReloadTokenPricesArgs = { chains: Array; }; @@ -1684,18 +2206,29 @@ export type Query = { blocksGetBlocksPerSecond: Scalars['Float']['output']; blocksGetBlocksPerYear: Scalars['Float']['output']; contentGetNewsItems: Array; + /** Returns list of hooks. */ + hooks?: Maybe>; latestSyncedBlocks: GqlLatestSyncedBlocks; /** Getting swap, add and remove events with paging */ poolEvents: Array; - /** Will de deprecated in favor of poolEvents */ + /** + * Will de deprecated in favor of poolEvents + * @deprecated Use poolEvents instead + */ poolGetBatchSwaps: Array; /** Getting swap, add and remove events with range */ poolGetEvents: Array; - /** Will de deprecated in favor of poolGetFeaturedPools */ + /** + * Will de deprecated in favor of poolGetFeaturedPools + * @deprecated Use poolGetFeaturedPools instead + */ poolGetFeaturedPoolGroups: Array; /** Returns the list of featured pools for chains */ poolGetFeaturedPools: Array; - /** Will de deprecated in favor of poolEvents */ + /** + * Will de deprecated in favor of poolEvents + * @deprecated Use poolEvents instead + */ poolGetJoinExits: Array; /** Returns one pool. If a user address is provided, the user balances for the given pool will also be returned. */ poolGetPool: GqlPoolBase; @@ -1705,7 +2238,10 @@ export type Query = { poolGetPoolsCount: Scalars['Int']['output']; /** Gets all the snapshots for a given pool on a chain for a certain range */ poolGetSnapshots: Array; - /** Will de deprecated in favor of poolEvents */ + /** + * Will de deprecated in favor of poolEvents + * @deprecated Use poolEvents instead + */ poolGetSwaps: Array; protocolMetricsAggregated: GqlProtocolMetricsAggregated; protocolMetricsChain: GqlProtocolMetricsChain; @@ -1719,16 +2255,42 @@ export type Query = { sorGetSwapPaths: GqlSorGetSwapPaths; /** Get swap quote from the SOR, queries both the old and new SOR */ sorGetSwaps: GqlSorGetSwapsResponse; + /** + * Returns the candlestick chart data for a token for a given range. + * @deprecated Use tokenGetHistoricalPrices instead + */ tokenGetCandlestickChartData: Array; + /** Returns all current prices for allowed tokens for a given chain or chains */ tokenGetCurrentPrices: Array; + /** Returns the historical prices for a given set of tokens for a given chain and range */ tokenGetHistoricalPrices: Array; + /** + * DEPRECATED: Returns pricing data for a given token for a given range + * @deprecated Use tokenGetHistoricalPrices instead + */ tokenGetPriceChartData: Array; + /** + * Returns the price of either BAL or BEETS depending on chain + * @deprecated Use tokenGetTokensDynamicData instead + */ tokenGetProtocolTokenPrice: Scalars['AmountHumanReadable']['output']; + /** Returns the price of a token priced in another token for a given range. */ tokenGetRelativePriceChartData: Array; + /** + * Returns meta data for a given token such as description, website, etc. + * @deprecated Use tokenGetTokens instead + */ tokenGetTokenData?: Maybe; + /** Returns dynamic data of a token such as price, market cap, etc. */ tokenGetTokenDynamicData?: Maybe; + /** Returns all allowed tokens for a given chain or chains */ tokenGetTokens: Array; + /** + * Returns meta data for a given set of tokens such as description, website, etc. + * @deprecated Use tokenGetTokens instead + */ tokenGetTokensData: Array; + /** Returns dynamic data of a set of tokens such as price, market cap, etc. */ tokenGetTokensDynamicData: Array; userGetFbeetsBalance: GqlUserFbeetsBalance; userGetPoolBalances: Array; @@ -1740,6 +2302,8 @@ export type Query = { veBalGetTotalSupply: Scalars['AmountHumanReadable']['output']; veBalGetUser: GqlVeBalUserData; veBalGetUserBalance: Scalars['AmountHumanReadable']['output']; + veBalGetUserBalances: Array; + /** Returns all pools with veBAL gauges that can be voted on. */ veBalGetVotingList: Array; }; @@ -1755,10 +2319,15 @@ export type QueryContentGetNewsItemsArgs = { }; +export type QueryHooksArgs = { + chain?: InputMaybe; +}; + + export type QueryPoolEventsArgs = { first?: InputMaybe; skip?: InputMaybe; - where: GqlPoolEventsFilter; + where?: InputMaybe; }; @@ -1864,7 +2433,7 @@ export type QuerySorGetSwapPathsArgs = { swapType: GqlSorSwapType; tokenIn: Scalars['String']['input']; tokenOut: Scalars['String']['input']; - useVaultVersion?: InputMaybe; + useProtocolVersion?: InputMaybe; }; @@ -1974,6 +2543,29 @@ export type QueryUserGetSwapsArgs = { skip?: InputMaybe; }; + +export type QueryVeBalGetTotalSupplyArgs = { + chain?: InputMaybe; +}; + + +export type QueryVeBalGetUserArgs = { + address: Scalars['String']['input']; + chain?: InputMaybe; +}; + + +export type QueryVeBalGetUserBalanceArgs = { + address?: InputMaybe; + chain?: InputMaybe; +}; + + +export type QueryVeBalGetUserBalancesArgs = { + address: Scalars['String']['input']; + chains?: InputMaybe>; +}; + export type Token = { __typename?: 'Token'; address: Scalars['String']['output']; diff --git a/packages/gql/src/balancer-api-v3/__generated__/Polygon.server.ts b/packages/gql/src/balancer-api-v3/__generated__/Polygon.server.ts index 5df748271..3527d6e6a 100644 --- a/packages/gql/src/balancer-api-v3/__generated__/Polygon.server.ts +++ b/packages/gql/src/balancer-api-v3/__generated__/Polygon.server.ts @@ -44,8 +44,10 @@ export type GqlChain = | 'AVALANCHE' | 'BASE' | 'FANTOM' + | 'FRAXTAL' | 'GNOSIS' | 'MAINNET' + | 'MODE' | 'OPTIMISM' | 'POLYGON' | 'SEPOLIA' @@ -128,41 +130,73 @@ export type GqlLatestSyncedBlocks = { userWalletSyncBlock: Scalars['BigInt']['output']; }; +/** All info on the nested pool if the token is a BPT. It will only support 1 level of nesting. */ export type GqlNestedPool = { __typename?: 'GqlNestedPool'; + /** Address of the pool. */ address: Scalars['Bytes']['output']; + /** Price rate of the Balancer Pool Token (BPT). */ bptPriceRate: Scalars['BigDecimal']['output']; + /** Timestamp of when the pool was created. */ createTime: Scalars['Int']['output']; + /** Address of the factory contract that created the pool, if applicable. */ factory?: Maybe; + /** Unique identifier of the pool. */ id: Scalars['ID']['output']; + /** Name of the pool. */ name: Scalars['String']['output']; + /** Total liquidity of the parent pool in the nested pool in USD. */ nestedLiquidity: Scalars['BigDecimal']['output']; + /** Percentage of the parents pool shares inside the nested pool. */ nestedPercentage: Scalars['BigDecimal']['output']; + /** Number of shares of the parent pool in the nested pool. */ nestedShares: Scalars['BigDecimal']['output']; + /** Address of the pool's owner. */ owner: Scalars['Bytes']['output']; + /** Fee charged for swapping tokens in the pool as %. 0.01 -> 0.01% */ swapFee: Scalars['BigDecimal']['output']; + /** Symbol of the pool. */ symbol: Scalars['String']['output']; + /** List of all tokens in the pool. */ tokens: Array; + /** Total liquidity in the pool in USD. */ totalLiquidity: Scalars['BigDecimal']['output']; + /** Total number of shares in the pool. */ totalShares: Scalars['BigDecimal']['output']; + /** Type of the pool. */ type: GqlPoolType; + /** Version of the pool. */ version: Scalars['Int']['output']; }; +/** Represents an event that occurs when liquidity is added or removed from a pool. */ export type GqlPoolAddRemoveEventV3 = GqlPoolEvent & { __typename?: 'GqlPoolAddRemoveEventV3'; + /** The block number of the event. */ blockNumber: Scalars['Int']['output']; + /** The block timestamp of the event. */ blockTimestamp: Scalars['Int']['output']; + /** The chain on which the event occurred. */ chain: GqlChain; + /** The unique identifier of the event. */ id: Scalars['ID']['output']; + /** The log index of the event. */ logIndex: Scalars['Int']['output']; + /** The pool ID associated with the event. */ poolId: Scalars['String']['output']; + /** The sender of the event. */ sender: Scalars['String']['output']; + /** The timestamp of the event. */ timestamp: Scalars['Int']['output']; + /** The tokens involved in the event. Ordered by poolToken index. */ tokens: Array; + /** The transaction hash of the event. */ tx: Scalars['String']['output']; + /** The type of the event. */ type: GqlPoolEventType; + /** The user address associated with the event. */ userAddress: Scalars['String']['output']; + /** The value of the event in USD. */ valueUSD: Scalars['Float']['output']; }; @@ -176,6 +210,43 @@ export type GqlPoolApr = { thirdPartyApr: GqlPoolAprValue; }; +/** All APRs for a pool */ +export type GqlPoolAprItem = { + __typename?: 'GqlPoolAprItem'; + /** The APR value in % -> 0.2 = 0.2% */ + apr: Scalars['Float']['output']; + /** The id of the APR item */ + id: Scalars['ID']['output']; + /** The title of the APR item, a human readable form */ + title: Scalars['String']['output']; + /** Specific type of this APR */ + type: GqlPoolAprItemType; +}; + +/** Enum representing the different types of the APR in a pool. */ +export type GqlPoolAprItemType = + /** APR that pools earns when BPT is staked on AURA. */ + | 'AURA' + /** Represents the yield from an IB (Interest-Bearing) asset APR in a pool. */ + | 'IB_YIELD' + /** APR in a pool that can be earned through locking, i.e. veBAL */ + | 'LOCKING' + /** Rewards distributed by merkl.xyz */ + | 'MERKL' + /** Represents if the APR items comes from a nested pool. */ + | 'NESTED' + /** Staking reward APR in a pool, i.e. BAL or BEETS. */ + | 'STAKING' + /** APR boost that can be earned, i.e. via veBAL or maBEETS. */ + | 'STAKING_BOOST' + /** Cow AMM specific APR */ + | 'SURPLUS' + /** Represents the swap fee APR in a pool. */ + | 'SWAP_FEE' + /** APR that can be earned thourgh voting, i.e. gauge votes */ + | 'VOTING' + | '%future added value'; + export type GqlPoolAprRange = { __typename?: 'GqlPoolAprRange'; max: Scalars['BigDecimal']['output']; @@ -193,23 +264,34 @@ export type GqlPoolAprValue = GqlPoolAprRange | GqlPoolAprTotal; export type GqlPoolBase = { /** The contract address of the pool. */ address: Scalars['Bytes']['output']; - /** Returns all pool tokens, including any nested tokens and phantom BPTs on one level. */ + /** + * Returns all pool tokens, including any nested tokens and phantom BPTs on one level. + * @deprecated Use poolTokens instead + */ allTokens: Array; + /** List of categories assigned by the team based on external factors */ + categories?: Maybe>>; /** The chain on which the pool is deployed */ chain: GqlChain; /** The timestamp the pool was created. */ createTime: Scalars['Int']['output']; /** The decimals of the BPT, usually 18 */ decimals: Scalars['Int']['output']; - /** Only returns main tokens, also known as leave tokens. Wont return any nested BPTs. Used for displaying the tokens that the pool consists of. */ + /** + * Only returns main tokens, also known as leave tokens. Wont return any nested BPTs. Used for displaying the tokens that the pool consists of. + * @deprecated Use poolTokens instead + */ displayTokens: Array; /** Dynamic data such as token balances, swap fees or volume */ dynamicData: GqlPoolDynamicData; /** The factory contract address from which the pool was created. */ factory?: Maybe; - /** The pool id. This is equal to the address for vaultVersion 3 pools */ + /** The pool id. This is equal to the address for protocolVersion 3 pools */ id: Scalars['ID']['output']; - /** Deprecated */ + /** + * Deprecated + * @deprecated Removed without replacement + */ investConfig: GqlPoolInvestConfig; /** The name of the pool as per contract */ name: Scalars['String']['output']; @@ -217,19 +299,29 @@ export type GqlPoolBase = { owner?: Maybe; /** Returns all pool tokens, including BPTs and nested pools if there are any. Only one nested level deep. */ poolTokens: Array; + /** The protocol version on which the pool is deployed, 1, 2 or 3 */ + protocolVersion: Scalars['Int']['output']; /** Staking options of this pool which emit additional rewards */ staking?: Maybe; /** The token symbol of the pool as per contract */ symbol: Scalars['String']['output']; + /** List of tags assigned by the team based on external factors */ + tags?: Maybe>>; /** The pool type, such as weighted, stable, etc. */ type: GqlPoolType; /** If a user address was provided in the query, the user balance is populated here */ userBalance?: Maybe; - /** The vault version on which the pool is deployed, 2 or 3 */ + /** + * The vault version on which the pool is deployed, 2 or 3 + * @deprecated use protocolVersion instead + */ vaultVersion: Scalars['Int']['output']; /** The version of the pool type. */ version: Scalars['Int']['output']; - /** Deprecated */ + /** + * Deprecated + * @deprecated Removed without replacement + */ withdrawConfig: GqlPoolWithdrawConfig; }; @@ -276,6 +368,7 @@ export type GqlPoolComposableStable = GqlPoolBase & { allTokens: Array; amp: Scalars['BigInt']['output']; bptPriceRate: Scalars['BigDecimal']['output']; + categories?: Maybe>>; chain: GqlChain; createTime: Scalars['Int']['output']; decimals: Scalars['Int']['output']; @@ -283,18 +376,27 @@ export type GqlPoolComposableStable = GqlPoolBase & { dynamicData: GqlPoolDynamicData; factory?: Maybe; id: Scalars['ID']['output']; + /** @deprecated Removed without replacement */ investConfig: GqlPoolInvestConfig; name: Scalars['String']['output']; nestingType: GqlPoolNestingType; owner: Scalars['Bytes']['output']; poolTokens: Array; + protocolVersion: Scalars['Int']['output']; staking?: Maybe; symbol: Scalars['String']['output']; + tags?: Maybe>>; + /** + * All tokens of the pool. If it is a nested pool, the nested pool is expanded with its own tokens again. + * @deprecated Use poolTokens instead + */ tokens: Array; type: GqlPoolType; userBalance?: Maybe; + /** @deprecated use protocolVersion instead */ vaultVersion: Scalars['Int']['output']; version: Scalars['Int']['output']; + /** @deprecated Removed without replacement */ withdrawConfig: GqlPoolWithdrawConfig; }; @@ -303,6 +405,7 @@ export type GqlPoolComposableStableNested = { address: Scalars['Bytes']['output']; amp: Scalars['BigInt']['output']; bptPriceRate: Scalars['BigDecimal']['output']; + categories?: Maybe>>; createTime: Scalars['Int']['output']; factory?: Maybe; id: Scalars['ID']['output']; @@ -311,6 +414,8 @@ export type GqlPoolComposableStableNested = { owner: Scalars['Bytes']['output']; swapFee: Scalars['BigDecimal']['output']; symbol: Scalars['String']['output']; + tags?: Maybe>>; + /** @deprecated Use poolTokens instead */ tokens: Array; totalLiquidity: Scalars['BigDecimal']['output']; totalShares: Scalars['BigDecimal']['output']; @@ -320,7 +425,13 @@ export type GqlPoolComposableStableNested = { export type GqlPoolDynamicData = { __typename?: 'GqlPoolDynamicData'; + /** Protocol and pool creator fees combined */ + aggregateSwapFee: Scalars['BigDecimal']['output']; + /** Protocol and pool creator fees combined */ + aggregateYieldFee: Scalars['BigDecimal']['output']; + /** @deprecated Use aprItems instead */ apr: GqlPoolApr; + aprItems: Array; fees24h: Scalars['BigDecimal']['output']; fees24hAth: Scalars['BigDecimal']['output']; fees24hAthTimestamp: Scalars['Int']['output']; @@ -328,6 +439,7 @@ export type GqlPoolDynamicData = { fees24hAtlTimestamp: Scalars['Int']['output']; fees48h: Scalars['BigDecimal']['output']; holdersCount: Scalars['BigInt']['output']; + /** True for bricked pools */ isInRecoveryMode: Scalars['Boolean']['output']; isPaused: Scalars['Boolean']['output']; lifetimeSwapFees: Scalars['BigDecimal']['output']; @@ -337,6 +449,11 @@ export type GqlPoolDynamicData = { sharePriceAthTimestamp: Scalars['Int']['output']; sharePriceAtl: Scalars['BigDecimal']['output']; sharePriceAtlTimestamp: Scalars['Int']['output']; + /** CowAmm specific, equivalent of swap fees */ + surplus24h: Scalars['BigDecimal']['output']; + /** CowAmm specific, equivalent of swap fees */ + surplus48h: Scalars['BigDecimal']['output']; + /** Disabled for bricked pools */ swapEnabled: Scalars['Boolean']['output']; swapFee: Scalars['BigDecimal']['output']; swapsCount: Scalars['BigInt']['output']; @@ -363,6 +480,7 @@ export type GqlPoolElement = GqlPoolBase & { address: Scalars['Bytes']['output']; allTokens: Array; baseToken: Scalars['Bytes']['output']; + categories?: Maybe>>; chain: GqlChain; createTime: Scalars['Int']['output']; decimals: Scalars['Int']['output']; @@ -370,34 +488,53 @@ export type GqlPoolElement = GqlPoolBase & { dynamicData: GqlPoolDynamicData; factory?: Maybe; id: Scalars['ID']['output']; + /** @deprecated Removed without replacement */ investConfig: GqlPoolInvestConfig; name: Scalars['String']['output']; owner: Scalars['Bytes']['output']; poolTokens: Array; principalToken: Scalars['Bytes']['output']; + protocolVersion: Scalars['Int']['output']; staking?: Maybe; symbol: Scalars['String']['output']; + tags?: Maybe>>; + /** @deprecated Use poolTokens instead */ tokens: Array; type: GqlPoolType; unitSeconds: Scalars['BigInt']['output']; userBalance?: Maybe; + /** @deprecated use protocolVersion instead */ vaultVersion: Scalars['Int']['output']; version: Scalars['Int']['output']; + /** @deprecated Removed without replacement */ withdrawConfig: GqlPoolWithdrawConfig; }; +/** Represents an event that occurs in a pool. */ export type GqlPoolEvent = { + /** The block number of the event. */ blockNumber: Scalars['Int']['output']; + /** The block timestamp of the event. */ blockTimestamp: Scalars['Int']['output']; + /** The chain on which the event occurred. */ chain: GqlChain; + /** The unique identifier of the event. */ id: Scalars['ID']['output']; + /** The log index of the event. */ logIndex: Scalars['Int']['output']; + /** The pool ID associated with the event. */ poolId: Scalars['String']['output']; + /** The sender of the event. */ sender: Scalars['String']['output']; + /** The timestamp of the event. */ timestamp: Scalars['Int']['output']; + /** The transaction hash of the event. */ tx: Scalars['String']['output']; + /** The type of the event. */ type: GqlPoolEventType; + /** The user address associated with the event. */ userAddress: Scalars['String']['output']; + /** The USD value of this event. */ valueUSD: Scalars['Float']['output']; }; @@ -421,11 +558,15 @@ export type GqlPoolEventsDataRange = | '%future added value'; export type GqlPoolEventsFilter = { - chain: GqlChain; - poolId: Scalars['String']['input']; + chainIn?: InputMaybe>>; + poolIdIn?: InputMaybe>>; range?: InputMaybe; typeIn?: InputMaybe>>; userAddress?: InputMaybe; + /** USD value of the event */ + valueUSD_gt?: InputMaybe; + /** USD value of the event */ + valueUSD_gte?: InputMaybe; }; export type GqlPoolFeaturedPool = { @@ -447,8 +588,6 @@ export type GqlPoolFeaturedPoolGroup = { export type GqlPoolFeaturedPoolGroupItem = GqlFeaturePoolGroupItemExternalLink | GqlPoolMinimal; export type GqlPoolFilter = { - categoryIn?: InputMaybe>; - categoryNotIn?: InputMaybe>; chainIn?: InputMaybe>; chainNotIn?: InputMaybe>; createTime?: InputMaybe; @@ -459,15 +598,33 @@ export type GqlPoolFilter = { minTvl?: InputMaybe; poolTypeIn?: InputMaybe>; poolTypeNotIn?: InputMaybe>; + protocolVersionIn?: InputMaybe>; + /** + * For list of tags see: https://github.com/balancer/metadata/blob/main/pools/index.json + * Use uppercase + */ + tagIn?: InputMaybe>; + /** + * For list of tags see: https://github.com/balancer/metadata/blob/main/pools/index.json + * Use uppercase + */ + tagNotIn?: InputMaybe>; tokensIn?: InputMaybe>; tokensNotIn?: InputMaybe>; userAddress?: InputMaybe; - vaultVersionIn?: InputMaybe>; }; export type GqlPoolFilterCategory = | 'BLACK_LISTED' | 'INCENTIVIZED' + | 'LRT' + | 'POINTS' + | 'POINTS_EIGENLAYER' + | 'POINTS_GYRO' + | 'POINTS_KELP' + | 'POINTS_RENZO' + | 'POINTS_SWELL' + | 'SUPERFEST' | '%future added value'; export type GqlPoolFx = GqlPoolBase & { @@ -476,6 +633,7 @@ export type GqlPoolFx = GqlPoolBase & { allTokens: Array; alpha: Scalars['String']['output']; beta: Scalars['String']['output']; + categories?: Maybe>>; chain: GqlChain; createTime: Scalars['Int']['output']; decimals: Scalars['Int']['output']; @@ -485,18 +643,27 @@ export type GqlPoolFx = GqlPoolBase & { epsilon: Scalars['String']['output']; factory?: Maybe; id: Scalars['ID']['output']; + /** @deprecated Removed without replacement */ investConfig: GqlPoolInvestConfig; lambda: Scalars['String']['output']; name: Scalars['String']['output']; owner?: Maybe; poolTokens: Array; + protocolVersion: Scalars['Int']['output']; staking?: Maybe; symbol: Scalars['String']['output']; + tags?: Maybe>>; + /** + * All tokens of the pool. If it is a nested pool, the nested pool is expanded with its own tokens again. + * @deprecated Use poolTokens instead + */ tokens: Array; type: GqlPoolType; userBalance?: Maybe; + /** @deprecated use protocolVersion instead */ vaultVersion: Scalars['Int']['output']; version: Scalars['Int']['output']; + /** @deprecated Removed without replacement */ withdrawConfig: GqlPoolWithdrawConfig; }; @@ -507,6 +674,7 @@ export type GqlPoolGyro = GqlPoolBase & { alpha: Scalars['String']['output']; beta: Scalars['String']['output']; c: Scalars['String']['output']; + categories?: Maybe>>; chain: GqlChain; createTime: Scalars['Int']['output']; dSq: Scalars['String']['output']; @@ -515,30 +683,39 @@ export type GqlPoolGyro = GqlPoolBase & { dynamicData: GqlPoolDynamicData; factory?: Maybe; id: Scalars['ID']['output']; + /** @deprecated Removed without replacement */ investConfig: GqlPoolInvestConfig; lambda: Scalars['String']['output']; name: Scalars['String']['output']; nestingType: GqlPoolNestingType; owner: Scalars['Bytes']['output']; poolTokens: Array; + protocolVersion: Scalars['Int']['output']; root3Alpha: Scalars['String']['output']; s: Scalars['String']['output']; sqrtAlpha: Scalars['String']['output']; sqrtBeta: Scalars['String']['output']; staking?: Maybe; symbol: Scalars['String']['output']; + tags?: Maybe>>; tauAlphaX: Scalars['String']['output']; tauAlphaY: Scalars['String']['output']; tauBetaX: Scalars['String']['output']; tauBetaY: Scalars['String']['output']; + /** + * All tokens of the pool. If it is a nested pool, the nested pool is expanded with its own tokens again. + * @deprecated Use poolTokens instead + */ tokens: Array; type: GqlPoolType; u: Scalars['String']['output']; userBalance?: Maybe; v: Scalars['String']['output']; + /** @deprecated use protocolVersion instead */ vaultVersion: Scalars['Int']['output']; version: Scalars['Int']['output']; w: Scalars['String']['output']; + /** @deprecated Removed without replacement */ withdrawConfig: GqlPoolWithdrawConfig; z: Scalars['String']['output']; }; @@ -590,6 +767,7 @@ export type GqlPoolLiquidityBootstrapping = GqlPoolBase & { __typename?: 'GqlPoolLiquidityBootstrapping'; address: Scalars['Bytes']['output']; allTokens: Array; + categories?: Maybe>>; chain: GqlChain; createTime: Scalars['Int']['output']; decimals: Scalars['Int']['output']; @@ -597,18 +775,27 @@ export type GqlPoolLiquidityBootstrapping = GqlPoolBase & { dynamicData: GqlPoolDynamicData; factory?: Maybe; id: Scalars['ID']['output']; + /** @deprecated Removed without replacement */ investConfig: GqlPoolInvestConfig; name: Scalars['String']['output']; nestingType: GqlPoolNestingType; owner: Scalars['Bytes']['output']; poolTokens: Array; + protocolVersion: Scalars['Int']['output']; staking?: Maybe; symbol: Scalars['String']['output']; + tags?: Maybe>>; + /** + * All tokens of the pool. If it is a nested pool, the nested pool is expanded with its own tokens again. + * @deprecated Use poolTokens instead + */ tokens: Array; type: GqlPoolType; userBalance?: Maybe; + /** @deprecated use protocolVersion instead */ vaultVersion: Scalars['Int']['output']; version: Scalars['Int']['output']; + /** @deprecated Removed without replacement */ withdrawConfig: GqlPoolWithdrawConfig; }; @@ -617,6 +804,7 @@ export type GqlPoolMetaStable = GqlPoolBase & { address: Scalars['Bytes']['output']; allTokens: Array; amp: Scalars['BigInt']['output']; + categories?: Maybe>>; chain: GqlChain; createTime: Scalars['Int']['output']; decimals: Scalars['Int']['output']; @@ -624,17 +812,23 @@ export type GqlPoolMetaStable = GqlPoolBase & { dynamicData: GqlPoolDynamicData; factory?: Maybe; id: Scalars['ID']['output']; + /** @deprecated Removed without replacement */ investConfig: GqlPoolInvestConfig; name: Scalars['String']['output']; owner: Scalars['Bytes']['output']; poolTokens: Array; + protocolVersion: Scalars['Int']['output']; staking?: Maybe; symbol: Scalars['String']['output']; + tags?: Maybe>>; + /** @deprecated Use poolTokens instead */ tokens: Array; type: GqlPoolType; userBalance?: Maybe; + /** @deprecated use protocolVersion instead */ vaultVersion: Scalars['Int']['output']; version: Scalars['Int']['output']; + /** @deprecated Removed without replacement */ withdrawConfig: GqlPoolWithdrawConfig; }; @@ -645,38 +839,66 @@ export type GqlPoolMinimal = { address: Scalars['Bytes']['output']; /** Returns all pool tokens, including any nested tokens and phantom BPTs */ allTokens: Array; + /** List of categories assigned by the team based on external factors */ + categories?: Maybe>>; /** The chain on which the pool is deployed */ chain: GqlChain; /** The timestamp the pool was created. */ createTime: Scalars['Int']['output']; /** The decimals of the BPT, usually 18 */ decimals: Scalars['Int']['output']; - /** Only returns main tokens, also known as leave tokens. Wont return any nested BPTs. Used for displaying the tokens that the pool consists of. */ + /** Only returns main or underlying tokens, also known as leave tokens. Wont return any nested BPTs. Used for displaying the tokens that the pool consists of. */ displayTokens: Array; /** Dynamic data such as token balances, swap fees or volume */ dynamicData: GqlPoolDynamicData; /** The factory contract address from which the pool was created. */ factory?: Maybe; - /** The pool id. This is equal to the address for vaultVersion 3 pools */ + /** Whether at least one token in this pool is considered an ERC4626 token. */ + hasErc4626: Scalars['Boolean']['output']; + /** Hook assigned to a pool */ + hook?: Maybe; + /** The pool id. This is equal to the address for protocolVersion 3 pools */ id: Scalars['ID']['output']; + /** Pool is receiving rewards when liquidity tokens are staked */ + incentivized: Scalars['Boolean']['output']; /** The name of the pool as per contract */ name: Scalars['String']['output']; /** The wallet address of the owner of the pool. Pool owners can set certain properties like swapFees or AMP. */ owner?: Maybe; + /** The protocol version on which the pool is deployed, 1, 2 or 3 */ + protocolVersion: Scalars['Int']['output']; /** Staking options of this pool which emit additional rewards */ staking?: Maybe; /** The token symbol of the pool as per contract */ symbol: Scalars['String']['output']; + /** List of tags assigned by the team based on external factors */ + tags?: Maybe>>; /** The pool type, such as weighted, stable, etc. */ type: GqlPoolType; /** If a user address was provided in the query, the user balance is populated here */ userBalance?: Maybe; - /** The vault version on which the pool is deployed, 2 or 3 */ + /** + * The vault version on which the pool is deployed, 2 or 3 + * @deprecated use protocolVersion instead + */ vaultVersion: Scalars['Int']['output']; /** The version of the pool type. */ version: Scalars['Int']['output']; }; +/** Result of the poolReloadPools mutation */ +export type GqlPoolMutationResult = { + __typename?: 'GqlPoolMutationResult'; + /** The chain that was reloaded. */ + chain: GqlChain; + /** The error message */ + error?: Maybe; + /** Whether it was successful or not. */ + success: Scalars['Boolean']['output']; + /** The type of pools that were reloaded. */ + type: Scalars['String']['output']; +}; + export type GqlPoolNestedUnion = GqlPoolComposableStableNested; export type GqlPoolNestingType = @@ -708,10 +930,12 @@ export type GqlPoolSnapshot = { id: Scalars['ID']['output']; poolId: Scalars['String']['output']; sharePrice: Scalars['String']['output']; + surplus24h: Scalars['String']['output']; swapsCount: Scalars['String']['output']; timestamp: Scalars['Int']['output']; totalLiquidity: Scalars['String']['output']; totalShares: Scalars['String']['output']; + totalSurplus: Scalars['String']['output']; totalSwapFee: Scalars['String']['output']; totalSwapVolume: Scalars['String']['output']; volume24h: Scalars['String']['output']; @@ -730,6 +954,7 @@ export type GqlPoolStable = GqlPoolBase & { address: Scalars['Bytes']['output']; allTokens: Array; amp: Scalars['BigInt']['output']; + categories?: Maybe>>; chain: GqlChain; createTime: Scalars['Int']['output']; decimals: Scalars['Int']['output']; @@ -737,17 +962,23 @@ export type GqlPoolStable = GqlPoolBase & { dynamicData: GqlPoolDynamicData; factory?: Maybe; id: Scalars['ID']['output']; + /** @deprecated Removed without replacement */ investConfig: GqlPoolInvestConfig; name: Scalars['String']['output']; owner: Scalars['Bytes']['output']; poolTokens: Array; + protocolVersion: Scalars['Int']['output']; staking?: Maybe; symbol: Scalars['String']['output']; + tags?: Maybe>>; + /** @deprecated Use poolTokens instead */ tokens: Array; type: GqlPoolType; userBalance?: Maybe; + /** @deprecated use protocolVersion instead */ vaultVersion: Scalars['Int']['output']; version: Scalars['Int']['output']; + /** @deprecated Removed without replacement */ withdrawConfig: GqlPoolWithdrawConfig; }; @@ -764,12 +995,23 @@ export type GqlPoolStableComposablePoolData = { export type GqlPoolStaking = { __typename?: 'GqlPoolStaking'; address: Scalars['String']['output']; + aura?: Maybe; chain: GqlChain; farm?: Maybe; gauge?: Maybe; id: Scalars['ID']['output']; reliquary?: Maybe; type: GqlPoolStakingType; + vebal?: Maybe; +}; + +export type GqlPoolStakingAura = { + __typename?: 'GqlPoolStakingAura'; + apr: Scalars['Float']['output']; + auraPoolAddress: Scalars['String']['output']; + auraPoolId: Scalars['String']['output']; + id: Scalars['ID']['output']; + isShutdown: Scalars['Boolean']['output']; }; export type GqlPoolStakingFarmRewarder = { @@ -840,12 +1082,20 @@ export type GqlPoolStakingReliquaryFarmLevel = { }; export type GqlPoolStakingType = + | 'AURA' | 'FRESH_BEETS' | 'GAUGE' | 'MASTER_CHEF' | 'RELIQUARY' + | 'VEBAL' | '%future added value'; +export type GqlPoolStakingVebal = { + __typename?: 'GqlPoolStakingVebal'; + id: Scalars['ID']['output']; + vebalAddress: Scalars['String']['output']; +}; + export type GqlPoolSwap = { __typename?: 'GqlPoolSwap'; chain: GqlChain; @@ -861,21 +1111,75 @@ export type GqlPoolSwap = { valueUSD: Scalars['Float']['output']; }; +/** Represents an event that occurs when a swap is made in a pool using the CowAmm protocol. */ +export type GqlPoolSwapEventCowAmm = GqlPoolEvent & { + __typename?: 'GqlPoolSwapEventCowAmm'; + /** The block number of the event. */ + blockNumber: Scalars['Int']['output']; + /** The block timestamp of the event. */ + blockTimestamp: Scalars['Int']['output']; + /** The chain on which the event occurred. */ + chain: GqlChain; + /** The fee that this swap generated. */ + fee: GqlPoolEventAmount; + /** The unique identifier of the event. */ + id: Scalars['ID']['output']; + /** The log index of the event. */ + logIndex: Scalars['Int']['output']; + /** The pool ID associated with the event. */ + poolId: Scalars['String']['output']; + /** The sender of the event. */ + sender: Scalars['String']['output']; + /** The surplus generated by the swap. */ + surplus: GqlPoolEventAmount; + /** The timestamp of the event. */ + timestamp: Scalars['Int']['output']; + /** The token that was swapped in the event. */ + tokenIn: GqlPoolEventAmount; + /** The token that was swapped out in the event. */ + tokenOut: GqlPoolEventAmount; + /** The transaction hash of the event. */ + tx: Scalars['String']['output']; + /** The type of the event. */ + type: GqlPoolEventType; + /** The user address associated with the event. */ + userAddress: Scalars['String']['output']; + /** The value of the event in USD. */ + valueUSD: Scalars['Float']['output']; +}; + +/** Represents an event that occurs when a swap is made in a pool. */ export type GqlPoolSwapEventV3 = GqlPoolEvent & { __typename?: 'GqlPoolSwapEventV3'; + /** The block number of the event. */ blockNumber: Scalars['Int']['output']; + /** The block timestamp of the event. */ blockTimestamp: Scalars['Int']['output']; + /** The chain on which the event occurred. */ chain: GqlChain; + /** The fee that this swap generated. */ + fee: GqlPoolEventAmount; + /** The unique identifier of the event. */ id: Scalars['ID']['output']; + /** The log index of the event. */ logIndex: Scalars['Int']['output']; + /** The pool ID associated with the event. */ poolId: Scalars['String']['output']; + /** The sender of the event. */ sender: Scalars['String']['output']; + /** The timestamp of the event. */ timestamp: Scalars['Int']['output']; + /** The token that was swapped in the event. */ tokenIn: GqlPoolEventAmount; + /** The token that was swapped out in the event. */ tokenOut: GqlPoolEventAmount; + /** The transaction hash of the event. */ tx: Scalars['String']['output']; + /** The type of the event. */ type: GqlPoolEventType; + /** The user address associated with the event. */ userAddress: Scalars['String']['output']; + /** The value of the event in USD. */ valueUSD: Scalars['Float']['output']; }; @@ -938,19 +1242,45 @@ export type GqlPoolTokenComposableStable = GqlPoolTokenBase & { export type GqlPoolTokenComposableStableNestedUnion = GqlPoolToken; +/** + * All info on the pool token. It will also include the nested pool if the token is a BPT. It will only support 1 level of nesting. + * A second (unsupported) level of nesting is shown by having hasNestedPool = true but nestedPool = null. + */ export type GqlPoolTokenDetail = { __typename?: 'GqlPoolTokenDetail'; + /** Address of the pool token. */ address: Scalars['String']['output']; + /** Balance of the pool token inside the pool. */ balance: Scalars['BigDecimal']['output']; + /** USD Balance of the pool token. */ + balanceUSD: Scalars['BigDecimal']['output']; + /** Decimals of the pool token. */ decimals: Scalars['Int']['output']; + /** Indicates whether this token is a BPT and therefor has a nested pool. */ hasNestedPool: Scalars['Boolean']['output']; + /** Id of the token. A combination of pool id and token address. */ id: Scalars['ID']['output']; + /** Index of the pool token in the pool as returned by the vault. */ index: Scalars['Int']['output']; + /** Whether the token is in the allow list. */ + isAllowed: Scalars['Boolean']['output']; + /** Whether the token is considered an ERC4626 token. */ + isErc4626: Scalars['Boolean']['output']; + /** Name of the pool token. */ name: Scalars['String']['output']; + /** Additional data for the nested pool if the token is a BPT. Null otherwise. */ nestedPool?: Maybe; + /** If it is an appreciating token, it shows the current price rate. 1 otherwise. */ priceRate: Scalars['BigDecimal']['output']; + /** The address of the price rate provider. */ priceRateProvider?: Maybe; + /** Additional data for the price rate provider, such as reviews or warnings. */ + priceRateProviderData?: Maybe; + /** Symbol of the pool token. */ symbol: Scalars['String']['output']; + /** If it is an Erc4262, this will be the underlying token if present in the API. */ + underlyingToken?: Maybe; + /** The weight of the token in the pool if it is a weighted pool, null otherwise */ weight?: Maybe; }; @@ -969,6 +1299,7 @@ export type GqlPoolTokenExpanded = { address: Scalars['String']['output']; decimals: Scalars['Int']['output']; id: Scalars['ID']['output']; + isErc4626: Scalars['Boolean']['output']; isMainToken: Scalars['Boolean']['output']; isNested: Scalars['Boolean']['output']; isPhantomBpt: Scalars['Boolean']['output']; @@ -982,6 +1313,7 @@ export type GqlPoolTokenUnion = GqlPoolToken | GqlPoolTokenComposableStable; /** Supported pool types */ export type GqlPoolType = | 'COMPOSABLE_STABLE' + | 'COW_AMM' | 'ELEMENT' | 'FX' | 'GYRO' @@ -1001,10 +1333,8 @@ export type GqlPoolUnion = GqlPoolComposableStable | GqlPoolElement | GqlPoolFx /** If a user address was provided in the query, the user balance is populated here */ export type GqlPoolUserBalance = { __typename?: 'GqlPoolUserBalance'; - /** The staked balance in either a gauge or farm as float. */ - stakedBalance: Scalars['AmountHumanReadable']['output']; - /** The staked balance in either a gauge or farm in USD as float. */ - stakedBalanceUsd: Scalars['Float']['output']; + /** The staked BPT balances of the user. */ + stakedBalances: Array; /** Total balance (wallet + staked) as float */ totalBalance: Scalars['AmountHumanReadable']['output']; /** Total balance (wallet + staked) in USD as float */ @@ -1025,6 +1355,7 @@ export type GqlPoolWeighted = GqlPoolBase & { __typename?: 'GqlPoolWeighted'; address: Scalars['Bytes']['output']; allTokens: Array; + categories?: Maybe>>; chain: GqlChain; createTime: Scalars['Int']['output']; decimals: Scalars['Int']['output']; @@ -1032,19 +1363,27 @@ export type GqlPoolWeighted = GqlPoolBase & { dynamicData: GqlPoolDynamicData; factory?: Maybe; id: Scalars['ID']['output']; + /** @deprecated Removed without replacement */ investConfig: GqlPoolInvestConfig; name: Scalars['String']['output']; nestingType: GqlPoolNestingType; owner: Scalars['Bytes']['output']; poolTokens: Array; + protocolVersion: Scalars['Int']['output']; staking?: Maybe; symbol: Scalars['String']['output']; - /** All tokens of the pool. If it is a nested pool, the nested pool is expanded with its own tokens again. */ + tags?: Maybe>>; + /** + * All tokens of the pool. If it is a nested pool, the nested pool is expanded with its own tokens again. + * @deprecated Use poolTokens instead + */ tokens: Array; type: GqlPoolType; userBalance?: Maybe; + /** @deprecated use protocolVersion instead */ vaultVersion: Scalars['Int']['output']; version: Scalars['Int']['output']; + /** @deprecated Removed without replacement */ withdrawConfig: GqlPoolWithdrawConfig; }; @@ -1071,6 +1410,36 @@ export type GqlPriceImpact = { priceImpact?: Maybe; }; +/** Represents the data of a price rate provider */ +export type GqlPriceRateProviderData = { + __typename?: 'GqlPriceRateProviderData'; + /** The address of the price rate provider */ + address: Scalars['String']['output']; + /** The factory used to create the price rate provider, if applicable */ + factory?: Maybe; + /** The name of the price rate provider */ + name?: Maybe; + /** The filename of the review of the price rate provider */ + reviewFile?: Maybe; + /** Indicates if the price rate provider has been reviewed */ + reviewed: Scalars['Boolean']['output']; + /** A summary of the price rate provider, usually just says safe or unsafe */ + summary?: Maybe; + /** Upgradeable components of the price rate provider */ + upgradeableComponents?: Maybe>>; + /** Warnings associated with the price rate provider */ + warnings?: Maybe>; +}; + +/** Represents an upgradeable component of a price rate provider */ +export type GqlPriceRateProviderUpgradeableComponent = { + __typename?: 'GqlPriceRateProviderUpgradeableComponent'; + /** The entry point / proxy of the upgradeable component */ + entryPoint: Scalars['String']['output']; + /** Indicates if the implementation of the component has been reviewed */ + implementationReviewed: Scalars['String']['output']; +}; + export type GqlProtocolMetricsAggregated = { __typename?: 'GqlProtocolMetricsAggregated'; chains: Array; @@ -1250,6 +1619,8 @@ export type GqlSorGetSwapPaths = { paths: Array; /** Price impact of the path */ priceImpact: GqlPriceImpact; + /** The version of the protocol these paths are from */ + protocolVersion: Scalars['Int']['output']; /** The return amount in human form. Return amount is either tokenOutAmount (if swapType is exactIn) or tokenInAmount (if swapType is exactOut) */ returnAmount: Scalars['AmountHumanReadable']['output']; /** The return amount in a raw form */ @@ -1274,7 +1645,10 @@ export type GqlSorGetSwapPaths = { tokenOut: Scalars['String']['output']; /** The amount of tokenOut in human form */ tokenOutAmount: Scalars['AmountHumanReadable']['output']; - /** The version of the vault these paths are from */ + /** + * The version of the vault these paths are from + * @deprecated Use protocolVersion instead + */ vaultVersion: Scalars['Int']['output']; }; @@ -1306,13 +1680,20 @@ export type GqlSorPath = { __typename?: 'GqlSorPath'; /** Input amount of this path in scaled form */ inputAmountRaw: Scalars['String']['output']; + /** A sorted list of booleans that indicate if the respective pool is a buffer */ + isBuffer: Array>; /** Output amount of this path in scaled form */ outputAmountRaw: Scalars['String']['output']; /** A sorted list of pool ids that are used in this path */ pools: Array>; + /** The version of the protocol these paths are from */ + protocolVersion: Scalars['Int']['output']; /** A sorted list of tokens that are ussed in this path */ tokens: Array>; - /** Vault version of this path. */ + /** + * Vault version of this path. + * @deprecated Use protocolVersion instead + */ vaultVersion: Scalars['Int']['output']; }; @@ -1389,21 +1770,44 @@ export type GqlSwapCallDataInput = { slippagePercentage: Scalars['String']['input']; }; +/** Represents a token */ export type GqlToken = { __typename?: 'GqlToken'; + /** The address of the token */ address: Scalars['String']['output']; + /** The chain of the token */ chain: GqlChain; + /** The chain ID of the token */ chainId: Scalars['Int']['output']; + /** The coingecko ID for this token, if present */ + coingeckoId?: Maybe; + /** The number of decimal places for the token */ decimals: Scalars['Int']['output']; + /** The description of the token */ description?: Maybe; + /** The Discord URL of the token */ discordUrl?: Maybe; + /** Whether the token is considered an ERC4626 token. */ + isErc4626: Scalars['Boolean']['output']; + /** The logo URI of the token */ logoURI?: Maybe; + /** The name of the token */ name: Scalars['String']['output']; + /** The rate provider data for the token */ + priceRateProviderData?: Maybe; + /** The priority of the token, can be used for sorting. */ priority: Scalars['Int']['output']; + /** The rate provider data for the token */ + rateProviderData?: Maybe; + /** The symbol of the token */ symbol: Scalars['String']['output']; + /** The Telegram URL of the token */ telegramUrl?: Maybe; + /** Indicates if the token is tradable */ tradable: Scalars['Boolean']['output']; + /** The Twitter username of the token */ twitterUsername?: Maybe; + /** The website URL of the token */ websiteUrl?: Maybe; }; @@ -1441,25 +1845,52 @@ export type GqlTokenData = { websiteUrl?: Maybe; }; +/** Represents additional data for a token */ export type GqlTokenDynamicData = { __typename?: 'GqlTokenDynamicData'; + /** The all-time high price of the token */ ath: Scalars['Float']['output']; + /** The all-time low price of the token */ atl: Scalars['Float']['output']; + /** The fully diluted valuation of the token */ fdv?: Maybe; + /** The highest price in the last 24 hours */ high24h: Scalars['Float']['output']; + /** The unique identifier of the dynamic data */ id: Scalars['String']['output']; + /** The lowest price in the last 24 hours */ low24h: Scalars['Float']['output']; + /** The market capitalization of the token */ marketCap?: Maybe; + /** The current price of the token */ price: Scalars['Float']['output']; + /** The price change in the last 24 hours */ priceChange24h: Scalars['Float']['output']; + /** The percentage price change in the last 7 days */ priceChangePercent7d?: Maybe; + /** The percentage price change in the last 14 days */ priceChangePercent14d?: Maybe; + /** The percentage price change in the last 24 hours */ priceChangePercent24h: Scalars['Float']['output']; + /** The percentage price change in the last 30 days */ priceChangePercent30d?: Maybe; + /** The address of the token */ tokenAddress: Scalars['String']['output']; + /** The timestamp when the data was last updated */ updatedAt: Scalars['String']['output']; }; +/** Result of the poolReloadPools mutation */ +export type GqlTokenMutationResult = { + __typename?: 'GqlTokenMutationResult'; + /** The chain that was reloaded. */ + chain: GqlChain; + /** The error message */ + error?: Maybe; + /** Whether it was successful or not. */ + success: Scalars['Boolean']['output']; +}; + export type GqlTokenPrice = { __typename?: 'GqlTokenPrice'; address: Scalars['String']['output']; @@ -1501,46 +1932,119 @@ export type GqlUserPoolBalance = { walletBalance: Scalars['AmountHumanReadable']['output']; }; +export type GqlUserStakedBalance = { + __typename?: 'GqlUserStakedBalance'; + /** The staked BPT balance as float. */ + balance: Scalars['AmountHumanReadable']['output']; + /** The steaked BPT balance in USD as float. */ + balanceUsd: Scalars['Float']['output']; + /** The id of the staking to match with GqlPoolStaking.id. */ + stakingId: Scalars['String']['output']; + /** The staking type (Gauge, farm, aura, etc.) in which this balance is staked. */ + stakingType: GqlPoolStakingType; +}; + export type GqlUserSwapVolumeFilter = { poolIdIn?: InputMaybe>; tokenInIn?: InputMaybe>; tokenOutIn?: InputMaybe>; }; +export type GqlVeBalBalance = { + __typename?: 'GqlVeBalBalance'; + balance: Scalars['AmountHumanReadable']['output']; + chain: GqlChain; + locked: Scalars['AmountHumanReadable']['output']; + lockedUsd: Scalars['AmountHumanReadable']['output']; +}; + export type GqlVeBalUserData = { __typename?: 'GqlVeBalUserData'; balance: Scalars['AmountHumanReadable']['output']; + locked: Scalars['AmountHumanReadable']['output']; + lockedUsd: Scalars['AmountHumanReadable']['output']; rank?: Maybe; }; +/** The Gauge that can be voted on through veBAL and that will ultimately receive the rewards. */ export type GqlVotingGauge = { __typename?: 'GqlVotingGauge'; + /** The timestamp the gauge was added. */ addedTimestamp?: Maybe; + /** The address of the root gauge on Ethereum mainnet. */ address: Scalars['Bytes']['output']; + /** The address of the child gauge on the specific chain. */ childGaugeAddress?: Maybe; + /** Whether the gauge is killed or not. */ isKilled: Scalars['Boolean']['output']; + /** The relative weight the gauge received this epoch (not more than 1.0). */ + relativeWeight: Scalars['String']['output']; + /** The relative weight cap. 1.0 for uncapped. */ relativeWeightCap?: Maybe; }; +/** A token inside of a pool with a voting gauge. */ export type GqlVotingGaugeToken = { __typename?: 'GqlVotingGaugeToken'; + /** The address of the token. */ address: Scalars['String']['output']; + /** The URL to the token logo. */ logoURI: Scalars['String']['output']; + /** The symbol of the token. */ symbol: Scalars['String']['output']; + /** If it is a weighted pool, the weigh of the token is shown here in %. 0.5 = 50%. */ weight?: Maybe; }; +/** The pool that can be voted on through veBAL */ export type GqlVotingPool = { __typename?: 'GqlVotingPool'; + /** The address of the pool. */ address: Scalars['Bytes']['output']; + /** The chain this pool is on. */ chain: GqlChain; + /** The gauge that is connected to the pool and that will receive the rewards. */ gauge: GqlVotingGauge; + /** Pool ID */ id: Scalars['ID']['output']; + /** The symbol of the pool. */ symbol: Scalars['String']['output']; + /** The tokens inside the pool. */ tokens: Array; + /** The type of the pool. */ type: GqlPoolType; }; +/** Hook data */ +export type Hook = { + __typename?: 'Hook'; + address: Scalars['String']['output']; + chain: GqlChain; + /** Data points changing over time */ + dynamicData?: Maybe; + /** True when hook can change the amounts send to the vault. Necessary to deduct the fees. */ + enableHookAdjustedAmounts: Scalars['Boolean']['output']; + /** List of pools using the hook */ + poolsIds?: Maybe>>; + shouldCallAfterAddLiquidity: Scalars['Boolean']['output']; + shouldCallAfterInitialize: Scalars['Boolean']['output']; + shouldCallAfterRemoveLiquidity: Scalars['Boolean']['output']; + shouldCallAfterSwap: Scalars['Boolean']['output']; + shouldCallBeforeAddLiquidity: Scalars['Boolean']['output']; + shouldCallBeforeInitialize: Scalars['Boolean']['output']; + shouldCallBeforeRemoveLiquidity: Scalars['Boolean']['output']; + shouldCallBeforeSwap: Scalars['Boolean']['output']; + shouldCallComputeDynamicSwapFee: Scalars['Boolean']['output']; +}; + +/** Collection of hook specific data. Percentage format is 0.01 -> 0.01%. */ +export type HookData = { + __typename?: 'HookData'; + addLiquidityFeePercentage?: Maybe; + removeLiquidityFeePercentage?: Maybe; + swapFeePercentage?: Maybe; +}; + export type Mutation = { __typename?: 'Mutation'; beetsPoolLoadReliquarySnapshotsForAllFarms: Scalars['String']['output']; @@ -1557,7 +2061,9 @@ export type Mutation = { poolLoadSnapshotsForPools: Scalars['String']['output']; poolReloadAllPoolAprs: Scalars['String']['output']; poolReloadAllTokenNestedPoolIds: Scalars['String']['output']; + poolReloadPools: Array; poolReloadStakingForAllPools: Scalars['String']['output']; + poolSyncAllCowSnapshots: Array; poolSyncAllPoolsFromSubgraph: Array; poolSyncLatestSnapshotsForAllPools: Scalars['String']['output']; poolSyncNewPoolsFromSubgraph: Array; @@ -1577,6 +2083,7 @@ export type Mutation = { sftmxSyncWithdrawalRequests: Scalars['String']['output']; tokenDeleteTokenType: Scalars['String']['output']; tokenReloadAllTokenTypes: Scalars['String']['output']; + tokenReloadErc4626Tokens: Array; tokenReloadTokenPrices?: Maybe; tokenSyncLatestFxPrices: Scalars['String']['output']; tokenSyncTokenDefinitions: Scalars['String']['output']; @@ -1623,13 +2130,23 @@ export type MutationPoolReloadAllPoolAprsArgs = { }; +export type MutationPoolReloadPoolsArgs = { + chains: Array; +}; + + export type MutationPoolReloadStakingForAllPoolsArgs = { stakingTypes: Array; }; +export type MutationPoolSyncAllCowSnapshotsArgs = { + chains: Array; +}; + + export type MutationPoolSyncLatestSnapshotsForAllPoolsArgs = { - daysToSync?: InputMaybe; + chain: GqlChain; }; @@ -1649,6 +2166,11 @@ export type MutationTokenDeleteTokenTypeArgs = { }; +export type MutationTokenReloadErc4626TokensArgs = { + chains: Array; +}; + + export type MutationTokenReloadTokenPricesArgs = { chains: Array; }; @@ -1682,18 +2204,29 @@ export type Query = { blocksGetBlocksPerSecond: Scalars['Float']['output']; blocksGetBlocksPerYear: Scalars['Float']['output']; contentGetNewsItems: Array; + /** Returns list of hooks. */ + hooks?: Maybe>; latestSyncedBlocks: GqlLatestSyncedBlocks; /** Getting swap, add and remove events with paging */ poolEvents: Array; - /** Will de deprecated in favor of poolEvents */ + /** + * Will de deprecated in favor of poolEvents + * @deprecated Use poolEvents instead + */ poolGetBatchSwaps: Array; /** Getting swap, add and remove events with range */ poolGetEvents: Array; - /** Will de deprecated in favor of poolGetFeaturedPools */ + /** + * Will de deprecated in favor of poolGetFeaturedPools + * @deprecated Use poolGetFeaturedPools instead + */ poolGetFeaturedPoolGroups: Array; /** Returns the list of featured pools for chains */ poolGetFeaturedPools: Array; - /** Will de deprecated in favor of poolEvents */ + /** + * Will de deprecated in favor of poolEvents + * @deprecated Use poolEvents instead + */ poolGetJoinExits: Array; /** Returns one pool. If a user address is provided, the user balances for the given pool will also be returned. */ poolGetPool: GqlPoolBase; @@ -1703,7 +2236,10 @@ export type Query = { poolGetPoolsCount: Scalars['Int']['output']; /** Gets all the snapshots for a given pool on a chain for a certain range */ poolGetSnapshots: Array; - /** Will de deprecated in favor of poolEvents */ + /** + * Will de deprecated in favor of poolEvents + * @deprecated Use poolEvents instead + */ poolGetSwaps: Array; protocolMetricsAggregated: GqlProtocolMetricsAggregated; protocolMetricsChain: GqlProtocolMetricsChain; @@ -1717,16 +2253,42 @@ export type Query = { sorGetSwapPaths: GqlSorGetSwapPaths; /** Get swap quote from the SOR, queries both the old and new SOR */ sorGetSwaps: GqlSorGetSwapsResponse; + /** + * Returns the candlestick chart data for a token for a given range. + * @deprecated Use tokenGetHistoricalPrices instead + */ tokenGetCandlestickChartData: Array; + /** Returns all current prices for allowed tokens for a given chain or chains */ tokenGetCurrentPrices: Array; + /** Returns the historical prices for a given set of tokens for a given chain and range */ tokenGetHistoricalPrices: Array; + /** + * DEPRECATED: Returns pricing data for a given token for a given range + * @deprecated Use tokenGetHistoricalPrices instead + */ tokenGetPriceChartData: Array; + /** + * Returns the price of either BAL or BEETS depending on chain + * @deprecated Use tokenGetTokensDynamicData instead + */ tokenGetProtocolTokenPrice: Scalars['AmountHumanReadable']['output']; + /** Returns the price of a token priced in another token for a given range. */ tokenGetRelativePriceChartData: Array; + /** + * Returns meta data for a given token such as description, website, etc. + * @deprecated Use tokenGetTokens instead + */ tokenGetTokenData?: Maybe; + /** Returns dynamic data of a token such as price, market cap, etc. */ tokenGetTokenDynamicData?: Maybe; + /** Returns all allowed tokens for a given chain or chains */ tokenGetTokens: Array; + /** + * Returns meta data for a given set of tokens such as description, website, etc. + * @deprecated Use tokenGetTokens instead + */ tokenGetTokensData: Array; + /** Returns dynamic data of a set of tokens such as price, market cap, etc. */ tokenGetTokensDynamicData: Array; userGetFbeetsBalance: GqlUserFbeetsBalance; userGetPoolBalances: Array; @@ -1738,6 +2300,8 @@ export type Query = { veBalGetTotalSupply: Scalars['AmountHumanReadable']['output']; veBalGetUser: GqlVeBalUserData; veBalGetUserBalance: Scalars['AmountHumanReadable']['output']; + veBalGetUserBalances: Array; + /** Returns all pools with veBAL gauges that can be voted on. */ veBalGetVotingList: Array; }; @@ -1753,10 +2317,15 @@ export type QueryContentGetNewsItemsArgs = { }; +export type QueryHooksArgs = { + chain?: InputMaybe; +}; + + export type QueryPoolEventsArgs = { first?: InputMaybe; skip?: InputMaybe; - where: GqlPoolEventsFilter; + where?: InputMaybe; }; @@ -1862,7 +2431,7 @@ export type QuerySorGetSwapPathsArgs = { swapType: GqlSorSwapType; tokenIn: Scalars['String']['input']; tokenOut: Scalars['String']['input']; - useVaultVersion?: InputMaybe; + useProtocolVersion?: InputMaybe; }; @@ -1972,6 +2541,29 @@ export type QueryUserGetSwapsArgs = { skip?: InputMaybe; }; + +export type QueryVeBalGetTotalSupplyArgs = { + chain?: InputMaybe; +}; + + +export type QueryVeBalGetUserArgs = { + address: Scalars['String']['input']; + chain?: InputMaybe; +}; + + +export type QueryVeBalGetUserBalanceArgs = { + address?: InputMaybe; + chain?: InputMaybe; +}; + + +export type QueryVeBalGetUserBalancesArgs = { + address: Scalars['String']['input']; + chains?: InputMaybe>; +}; + export type Token = { __typename?: 'Token'; address: Scalars['String']['output']; diff --git a/packages/gql/src/balancer-api-v3/__generated__/Polygon.ts b/packages/gql/src/balancer-api-v3/__generated__/Polygon.ts index dbb6d7c10..5e68d0c72 100644 --- a/packages/gql/src/balancer-api-v3/__generated__/Polygon.ts +++ b/packages/gql/src/balancer-api-v3/__generated__/Polygon.ts @@ -46,8 +46,10 @@ export type GqlChain = | 'AVALANCHE' | 'BASE' | 'FANTOM' + | 'FRAXTAL' | 'GNOSIS' | 'MAINNET' + | 'MODE' | 'OPTIMISM' | 'POLYGON' | 'SEPOLIA' @@ -130,41 +132,73 @@ export type GqlLatestSyncedBlocks = { userWalletSyncBlock: Scalars['BigInt']['output']; }; +/** All info on the nested pool if the token is a BPT. It will only support 1 level of nesting. */ export type GqlNestedPool = { __typename?: 'GqlNestedPool'; + /** Address of the pool. */ address: Scalars['Bytes']['output']; + /** Price rate of the Balancer Pool Token (BPT). */ bptPriceRate: Scalars['BigDecimal']['output']; + /** Timestamp of when the pool was created. */ createTime: Scalars['Int']['output']; + /** Address of the factory contract that created the pool, if applicable. */ factory?: Maybe; + /** Unique identifier of the pool. */ id: Scalars['ID']['output']; + /** Name of the pool. */ name: Scalars['String']['output']; + /** Total liquidity of the parent pool in the nested pool in USD. */ nestedLiquidity: Scalars['BigDecimal']['output']; + /** Percentage of the parents pool shares inside the nested pool. */ nestedPercentage: Scalars['BigDecimal']['output']; + /** Number of shares of the parent pool in the nested pool. */ nestedShares: Scalars['BigDecimal']['output']; + /** Address of the pool's owner. */ owner: Scalars['Bytes']['output']; + /** Fee charged for swapping tokens in the pool as %. 0.01 -> 0.01% */ swapFee: Scalars['BigDecimal']['output']; + /** Symbol of the pool. */ symbol: Scalars['String']['output']; + /** List of all tokens in the pool. */ tokens: Array; + /** Total liquidity in the pool in USD. */ totalLiquidity: Scalars['BigDecimal']['output']; + /** Total number of shares in the pool. */ totalShares: Scalars['BigDecimal']['output']; + /** Type of the pool. */ type: GqlPoolType; + /** Version of the pool. */ version: Scalars['Int']['output']; }; +/** Represents an event that occurs when liquidity is added or removed from a pool. */ export type GqlPoolAddRemoveEventV3 = GqlPoolEvent & { __typename?: 'GqlPoolAddRemoveEventV3'; + /** The block number of the event. */ blockNumber: Scalars['Int']['output']; + /** The block timestamp of the event. */ blockTimestamp: Scalars['Int']['output']; + /** The chain on which the event occurred. */ chain: GqlChain; + /** The unique identifier of the event. */ id: Scalars['ID']['output']; + /** The log index of the event. */ logIndex: Scalars['Int']['output']; + /** The pool ID associated with the event. */ poolId: Scalars['String']['output']; + /** The sender of the event. */ sender: Scalars['String']['output']; + /** The timestamp of the event. */ timestamp: Scalars['Int']['output']; + /** The tokens involved in the event. Ordered by poolToken index. */ tokens: Array; + /** The transaction hash of the event. */ tx: Scalars['String']['output']; + /** The type of the event. */ type: GqlPoolEventType; + /** The user address associated with the event. */ userAddress: Scalars['String']['output']; + /** The value of the event in USD. */ valueUSD: Scalars['Float']['output']; }; @@ -178,6 +212,43 @@ export type GqlPoolApr = { thirdPartyApr: GqlPoolAprValue; }; +/** All APRs for a pool */ +export type GqlPoolAprItem = { + __typename?: 'GqlPoolAprItem'; + /** The APR value in % -> 0.2 = 0.2% */ + apr: Scalars['Float']['output']; + /** The id of the APR item */ + id: Scalars['ID']['output']; + /** The title of the APR item, a human readable form */ + title: Scalars['String']['output']; + /** Specific type of this APR */ + type: GqlPoolAprItemType; +}; + +/** Enum representing the different types of the APR in a pool. */ +export type GqlPoolAprItemType = + /** APR that pools earns when BPT is staked on AURA. */ + | 'AURA' + /** Represents the yield from an IB (Interest-Bearing) asset APR in a pool. */ + | 'IB_YIELD' + /** APR in a pool that can be earned through locking, i.e. veBAL */ + | 'LOCKING' + /** Rewards distributed by merkl.xyz */ + | 'MERKL' + /** Represents if the APR items comes from a nested pool. */ + | 'NESTED' + /** Staking reward APR in a pool, i.e. BAL or BEETS. */ + | 'STAKING' + /** APR boost that can be earned, i.e. via veBAL or maBEETS. */ + | 'STAKING_BOOST' + /** Cow AMM specific APR */ + | 'SURPLUS' + /** Represents the swap fee APR in a pool. */ + | 'SWAP_FEE' + /** APR that can be earned thourgh voting, i.e. gauge votes */ + | 'VOTING' + | '%future added value'; + export type GqlPoolAprRange = { __typename?: 'GqlPoolAprRange'; max: Scalars['BigDecimal']['output']; @@ -195,23 +266,34 @@ export type GqlPoolAprValue = GqlPoolAprRange | GqlPoolAprTotal; export type GqlPoolBase = { /** The contract address of the pool. */ address: Scalars['Bytes']['output']; - /** Returns all pool tokens, including any nested tokens and phantom BPTs on one level. */ + /** + * Returns all pool tokens, including any nested tokens and phantom BPTs on one level. + * @deprecated Use poolTokens instead + */ allTokens: Array; + /** List of categories assigned by the team based on external factors */ + categories?: Maybe>>; /** The chain on which the pool is deployed */ chain: GqlChain; /** The timestamp the pool was created. */ createTime: Scalars['Int']['output']; /** The decimals of the BPT, usually 18 */ decimals: Scalars['Int']['output']; - /** Only returns main tokens, also known as leave tokens. Wont return any nested BPTs. Used for displaying the tokens that the pool consists of. */ + /** + * Only returns main tokens, also known as leave tokens. Wont return any nested BPTs. Used for displaying the tokens that the pool consists of. + * @deprecated Use poolTokens instead + */ displayTokens: Array; /** Dynamic data such as token balances, swap fees or volume */ dynamicData: GqlPoolDynamicData; /** The factory contract address from which the pool was created. */ factory?: Maybe; - /** The pool id. This is equal to the address for vaultVersion 3 pools */ + /** The pool id. This is equal to the address for protocolVersion 3 pools */ id: Scalars['ID']['output']; - /** Deprecated */ + /** + * Deprecated + * @deprecated Removed without replacement + */ investConfig: GqlPoolInvestConfig; /** The name of the pool as per contract */ name: Scalars['String']['output']; @@ -219,19 +301,29 @@ export type GqlPoolBase = { owner?: Maybe; /** Returns all pool tokens, including BPTs and nested pools if there are any. Only one nested level deep. */ poolTokens: Array; + /** The protocol version on which the pool is deployed, 1, 2 or 3 */ + protocolVersion: Scalars['Int']['output']; /** Staking options of this pool which emit additional rewards */ staking?: Maybe; /** The token symbol of the pool as per contract */ symbol: Scalars['String']['output']; + /** List of tags assigned by the team based on external factors */ + tags?: Maybe>>; /** The pool type, such as weighted, stable, etc. */ type: GqlPoolType; /** If a user address was provided in the query, the user balance is populated here */ userBalance?: Maybe; - /** The vault version on which the pool is deployed, 2 or 3 */ + /** + * The vault version on which the pool is deployed, 2 or 3 + * @deprecated use protocolVersion instead + */ vaultVersion: Scalars['Int']['output']; /** The version of the pool type. */ version: Scalars['Int']['output']; - /** Deprecated */ + /** + * Deprecated + * @deprecated Removed without replacement + */ withdrawConfig: GqlPoolWithdrawConfig; }; @@ -278,6 +370,7 @@ export type GqlPoolComposableStable = GqlPoolBase & { allTokens: Array; amp: Scalars['BigInt']['output']; bptPriceRate: Scalars['BigDecimal']['output']; + categories?: Maybe>>; chain: GqlChain; createTime: Scalars['Int']['output']; decimals: Scalars['Int']['output']; @@ -285,18 +378,27 @@ export type GqlPoolComposableStable = GqlPoolBase & { dynamicData: GqlPoolDynamicData; factory?: Maybe; id: Scalars['ID']['output']; + /** @deprecated Removed without replacement */ investConfig: GqlPoolInvestConfig; name: Scalars['String']['output']; nestingType: GqlPoolNestingType; owner: Scalars['Bytes']['output']; poolTokens: Array; + protocolVersion: Scalars['Int']['output']; staking?: Maybe; symbol: Scalars['String']['output']; + tags?: Maybe>>; + /** + * All tokens of the pool. If it is a nested pool, the nested pool is expanded with its own tokens again. + * @deprecated Use poolTokens instead + */ tokens: Array; type: GqlPoolType; userBalance?: Maybe; + /** @deprecated use protocolVersion instead */ vaultVersion: Scalars['Int']['output']; version: Scalars['Int']['output']; + /** @deprecated Removed without replacement */ withdrawConfig: GqlPoolWithdrawConfig; }; @@ -305,6 +407,7 @@ export type GqlPoolComposableStableNested = { address: Scalars['Bytes']['output']; amp: Scalars['BigInt']['output']; bptPriceRate: Scalars['BigDecimal']['output']; + categories?: Maybe>>; createTime: Scalars['Int']['output']; factory?: Maybe; id: Scalars['ID']['output']; @@ -313,6 +416,8 @@ export type GqlPoolComposableStableNested = { owner: Scalars['Bytes']['output']; swapFee: Scalars['BigDecimal']['output']; symbol: Scalars['String']['output']; + tags?: Maybe>>; + /** @deprecated Use poolTokens instead */ tokens: Array; totalLiquidity: Scalars['BigDecimal']['output']; totalShares: Scalars['BigDecimal']['output']; @@ -322,7 +427,13 @@ export type GqlPoolComposableStableNested = { export type GqlPoolDynamicData = { __typename?: 'GqlPoolDynamicData'; + /** Protocol and pool creator fees combined */ + aggregateSwapFee: Scalars['BigDecimal']['output']; + /** Protocol and pool creator fees combined */ + aggregateYieldFee: Scalars['BigDecimal']['output']; + /** @deprecated Use aprItems instead */ apr: GqlPoolApr; + aprItems: Array; fees24h: Scalars['BigDecimal']['output']; fees24hAth: Scalars['BigDecimal']['output']; fees24hAthTimestamp: Scalars['Int']['output']; @@ -330,6 +441,7 @@ export type GqlPoolDynamicData = { fees24hAtlTimestamp: Scalars['Int']['output']; fees48h: Scalars['BigDecimal']['output']; holdersCount: Scalars['BigInt']['output']; + /** True for bricked pools */ isInRecoveryMode: Scalars['Boolean']['output']; isPaused: Scalars['Boolean']['output']; lifetimeSwapFees: Scalars['BigDecimal']['output']; @@ -339,6 +451,11 @@ export type GqlPoolDynamicData = { sharePriceAthTimestamp: Scalars['Int']['output']; sharePriceAtl: Scalars['BigDecimal']['output']; sharePriceAtlTimestamp: Scalars['Int']['output']; + /** CowAmm specific, equivalent of swap fees */ + surplus24h: Scalars['BigDecimal']['output']; + /** CowAmm specific, equivalent of swap fees */ + surplus48h: Scalars['BigDecimal']['output']; + /** Disabled for bricked pools */ swapEnabled: Scalars['Boolean']['output']; swapFee: Scalars['BigDecimal']['output']; swapsCount: Scalars['BigInt']['output']; @@ -365,6 +482,7 @@ export type GqlPoolElement = GqlPoolBase & { address: Scalars['Bytes']['output']; allTokens: Array; baseToken: Scalars['Bytes']['output']; + categories?: Maybe>>; chain: GqlChain; createTime: Scalars['Int']['output']; decimals: Scalars['Int']['output']; @@ -372,34 +490,53 @@ export type GqlPoolElement = GqlPoolBase & { dynamicData: GqlPoolDynamicData; factory?: Maybe; id: Scalars['ID']['output']; + /** @deprecated Removed without replacement */ investConfig: GqlPoolInvestConfig; name: Scalars['String']['output']; owner: Scalars['Bytes']['output']; poolTokens: Array; principalToken: Scalars['Bytes']['output']; + protocolVersion: Scalars['Int']['output']; staking?: Maybe; symbol: Scalars['String']['output']; + tags?: Maybe>>; + /** @deprecated Use poolTokens instead */ tokens: Array; type: GqlPoolType; unitSeconds: Scalars['BigInt']['output']; userBalance?: Maybe; + /** @deprecated use protocolVersion instead */ vaultVersion: Scalars['Int']['output']; version: Scalars['Int']['output']; + /** @deprecated Removed without replacement */ withdrawConfig: GqlPoolWithdrawConfig; }; +/** Represents an event that occurs in a pool. */ export type GqlPoolEvent = { + /** The block number of the event. */ blockNumber: Scalars['Int']['output']; + /** The block timestamp of the event. */ blockTimestamp: Scalars['Int']['output']; + /** The chain on which the event occurred. */ chain: GqlChain; + /** The unique identifier of the event. */ id: Scalars['ID']['output']; + /** The log index of the event. */ logIndex: Scalars['Int']['output']; + /** The pool ID associated with the event. */ poolId: Scalars['String']['output']; + /** The sender of the event. */ sender: Scalars['String']['output']; + /** The timestamp of the event. */ timestamp: Scalars['Int']['output']; + /** The transaction hash of the event. */ tx: Scalars['String']['output']; + /** The type of the event. */ type: GqlPoolEventType; + /** The user address associated with the event. */ userAddress: Scalars['String']['output']; + /** The USD value of this event. */ valueUSD: Scalars['Float']['output']; }; @@ -423,11 +560,15 @@ export type GqlPoolEventsDataRange = | '%future added value'; export type GqlPoolEventsFilter = { - chain: GqlChain; - poolId: Scalars['String']['input']; + chainIn?: InputMaybe>>; + poolIdIn?: InputMaybe>>; range?: InputMaybe; typeIn?: InputMaybe>>; userAddress?: InputMaybe; + /** USD value of the event */ + valueUSD_gt?: InputMaybe; + /** USD value of the event */ + valueUSD_gte?: InputMaybe; }; export type GqlPoolFeaturedPool = { @@ -449,8 +590,6 @@ export type GqlPoolFeaturedPoolGroup = { export type GqlPoolFeaturedPoolGroupItem = GqlFeaturePoolGroupItemExternalLink | GqlPoolMinimal; export type GqlPoolFilter = { - categoryIn?: InputMaybe>; - categoryNotIn?: InputMaybe>; chainIn?: InputMaybe>; chainNotIn?: InputMaybe>; createTime?: InputMaybe; @@ -461,15 +600,33 @@ export type GqlPoolFilter = { minTvl?: InputMaybe; poolTypeIn?: InputMaybe>; poolTypeNotIn?: InputMaybe>; + protocolVersionIn?: InputMaybe>; + /** + * For list of tags see: https://github.com/balancer/metadata/blob/main/pools/index.json + * Use uppercase + */ + tagIn?: InputMaybe>; + /** + * For list of tags see: https://github.com/balancer/metadata/blob/main/pools/index.json + * Use uppercase + */ + tagNotIn?: InputMaybe>; tokensIn?: InputMaybe>; tokensNotIn?: InputMaybe>; userAddress?: InputMaybe; - vaultVersionIn?: InputMaybe>; }; export type GqlPoolFilterCategory = | 'BLACK_LISTED' | 'INCENTIVIZED' + | 'LRT' + | 'POINTS' + | 'POINTS_EIGENLAYER' + | 'POINTS_GYRO' + | 'POINTS_KELP' + | 'POINTS_RENZO' + | 'POINTS_SWELL' + | 'SUPERFEST' | '%future added value'; export type GqlPoolFx = GqlPoolBase & { @@ -478,6 +635,7 @@ export type GqlPoolFx = GqlPoolBase & { allTokens: Array; alpha: Scalars['String']['output']; beta: Scalars['String']['output']; + categories?: Maybe>>; chain: GqlChain; createTime: Scalars['Int']['output']; decimals: Scalars['Int']['output']; @@ -487,18 +645,27 @@ export type GqlPoolFx = GqlPoolBase & { epsilon: Scalars['String']['output']; factory?: Maybe; id: Scalars['ID']['output']; + /** @deprecated Removed without replacement */ investConfig: GqlPoolInvestConfig; lambda: Scalars['String']['output']; name: Scalars['String']['output']; owner?: Maybe; poolTokens: Array; + protocolVersion: Scalars['Int']['output']; staking?: Maybe; symbol: Scalars['String']['output']; + tags?: Maybe>>; + /** + * All tokens of the pool. If it is a nested pool, the nested pool is expanded with its own tokens again. + * @deprecated Use poolTokens instead + */ tokens: Array; type: GqlPoolType; userBalance?: Maybe; + /** @deprecated use protocolVersion instead */ vaultVersion: Scalars['Int']['output']; version: Scalars['Int']['output']; + /** @deprecated Removed without replacement */ withdrawConfig: GqlPoolWithdrawConfig; }; @@ -509,6 +676,7 @@ export type GqlPoolGyro = GqlPoolBase & { alpha: Scalars['String']['output']; beta: Scalars['String']['output']; c: Scalars['String']['output']; + categories?: Maybe>>; chain: GqlChain; createTime: Scalars['Int']['output']; dSq: Scalars['String']['output']; @@ -517,30 +685,39 @@ export type GqlPoolGyro = GqlPoolBase & { dynamicData: GqlPoolDynamicData; factory?: Maybe; id: Scalars['ID']['output']; + /** @deprecated Removed without replacement */ investConfig: GqlPoolInvestConfig; lambda: Scalars['String']['output']; name: Scalars['String']['output']; nestingType: GqlPoolNestingType; owner: Scalars['Bytes']['output']; poolTokens: Array; + protocolVersion: Scalars['Int']['output']; root3Alpha: Scalars['String']['output']; s: Scalars['String']['output']; sqrtAlpha: Scalars['String']['output']; sqrtBeta: Scalars['String']['output']; staking?: Maybe; symbol: Scalars['String']['output']; + tags?: Maybe>>; tauAlphaX: Scalars['String']['output']; tauAlphaY: Scalars['String']['output']; tauBetaX: Scalars['String']['output']; tauBetaY: Scalars['String']['output']; + /** + * All tokens of the pool. If it is a nested pool, the nested pool is expanded with its own tokens again. + * @deprecated Use poolTokens instead + */ tokens: Array; type: GqlPoolType; u: Scalars['String']['output']; userBalance?: Maybe; v: Scalars['String']['output']; + /** @deprecated use protocolVersion instead */ vaultVersion: Scalars['Int']['output']; version: Scalars['Int']['output']; w: Scalars['String']['output']; + /** @deprecated Removed without replacement */ withdrawConfig: GqlPoolWithdrawConfig; z: Scalars['String']['output']; }; @@ -592,6 +769,7 @@ export type GqlPoolLiquidityBootstrapping = GqlPoolBase & { __typename?: 'GqlPoolLiquidityBootstrapping'; address: Scalars['Bytes']['output']; allTokens: Array; + categories?: Maybe>>; chain: GqlChain; createTime: Scalars['Int']['output']; decimals: Scalars['Int']['output']; @@ -599,18 +777,27 @@ export type GqlPoolLiquidityBootstrapping = GqlPoolBase & { dynamicData: GqlPoolDynamicData; factory?: Maybe; id: Scalars['ID']['output']; + /** @deprecated Removed without replacement */ investConfig: GqlPoolInvestConfig; name: Scalars['String']['output']; nestingType: GqlPoolNestingType; owner: Scalars['Bytes']['output']; poolTokens: Array; + protocolVersion: Scalars['Int']['output']; staking?: Maybe; symbol: Scalars['String']['output']; + tags?: Maybe>>; + /** + * All tokens of the pool. If it is a nested pool, the nested pool is expanded with its own tokens again. + * @deprecated Use poolTokens instead + */ tokens: Array; type: GqlPoolType; userBalance?: Maybe; + /** @deprecated use protocolVersion instead */ vaultVersion: Scalars['Int']['output']; version: Scalars['Int']['output']; + /** @deprecated Removed without replacement */ withdrawConfig: GqlPoolWithdrawConfig; }; @@ -619,6 +806,7 @@ export type GqlPoolMetaStable = GqlPoolBase & { address: Scalars['Bytes']['output']; allTokens: Array; amp: Scalars['BigInt']['output']; + categories?: Maybe>>; chain: GqlChain; createTime: Scalars['Int']['output']; decimals: Scalars['Int']['output']; @@ -626,17 +814,23 @@ export type GqlPoolMetaStable = GqlPoolBase & { dynamicData: GqlPoolDynamicData; factory?: Maybe; id: Scalars['ID']['output']; + /** @deprecated Removed without replacement */ investConfig: GqlPoolInvestConfig; name: Scalars['String']['output']; owner: Scalars['Bytes']['output']; poolTokens: Array; + protocolVersion: Scalars['Int']['output']; staking?: Maybe; symbol: Scalars['String']['output']; + tags?: Maybe>>; + /** @deprecated Use poolTokens instead */ tokens: Array; type: GqlPoolType; userBalance?: Maybe; + /** @deprecated use protocolVersion instead */ vaultVersion: Scalars['Int']['output']; version: Scalars['Int']['output']; + /** @deprecated Removed without replacement */ withdrawConfig: GqlPoolWithdrawConfig; }; @@ -647,38 +841,66 @@ export type GqlPoolMinimal = { address: Scalars['Bytes']['output']; /** Returns all pool tokens, including any nested tokens and phantom BPTs */ allTokens: Array; + /** List of categories assigned by the team based on external factors */ + categories?: Maybe>>; /** The chain on which the pool is deployed */ chain: GqlChain; /** The timestamp the pool was created. */ createTime: Scalars['Int']['output']; /** The decimals of the BPT, usually 18 */ decimals: Scalars['Int']['output']; - /** Only returns main tokens, also known as leave tokens. Wont return any nested BPTs. Used for displaying the tokens that the pool consists of. */ + /** Only returns main or underlying tokens, also known as leave tokens. Wont return any nested BPTs. Used for displaying the tokens that the pool consists of. */ displayTokens: Array; /** Dynamic data such as token balances, swap fees or volume */ dynamicData: GqlPoolDynamicData; /** The factory contract address from which the pool was created. */ factory?: Maybe; - /** The pool id. This is equal to the address for vaultVersion 3 pools */ + /** Whether at least one token in this pool is considered an ERC4626 token. */ + hasErc4626: Scalars['Boolean']['output']; + /** Hook assigned to a pool */ + hook?: Maybe; + /** The pool id. This is equal to the address for protocolVersion 3 pools */ id: Scalars['ID']['output']; + /** Pool is receiving rewards when liquidity tokens are staked */ + incentivized: Scalars['Boolean']['output']; /** The name of the pool as per contract */ name: Scalars['String']['output']; /** The wallet address of the owner of the pool. Pool owners can set certain properties like swapFees or AMP. */ owner?: Maybe; + /** The protocol version on which the pool is deployed, 1, 2 or 3 */ + protocolVersion: Scalars['Int']['output']; /** Staking options of this pool which emit additional rewards */ staking?: Maybe; /** The token symbol of the pool as per contract */ symbol: Scalars['String']['output']; + /** List of tags assigned by the team based on external factors */ + tags?: Maybe>>; /** The pool type, such as weighted, stable, etc. */ type: GqlPoolType; /** If a user address was provided in the query, the user balance is populated here */ userBalance?: Maybe; - /** The vault version on which the pool is deployed, 2 or 3 */ + /** + * The vault version on which the pool is deployed, 2 or 3 + * @deprecated use protocolVersion instead + */ vaultVersion: Scalars['Int']['output']; /** The version of the pool type. */ version: Scalars['Int']['output']; }; +/** Result of the poolReloadPools mutation */ +export type GqlPoolMutationResult = { + __typename?: 'GqlPoolMutationResult'; + /** The chain that was reloaded. */ + chain: GqlChain; + /** The error message */ + error?: Maybe; + /** Whether it was successful or not. */ + success: Scalars['Boolean']['output']; + /** The type of pools that were reloaded. */ + type: Scalars['String']['output']; +}; + export type GqlPoolNestedUnion = GqlPoolComposableStableNested; export type GqlPoolNestingType = @@ -710,10 +932,12 @@ export type GqlPoolSnapshot = { id: Scalars['ID']['output']; poolId: Scalars['String']['output']; sharePrice: Scalars['String']['output']; + surplus24h: Scalars['String']['output']; swapsCount: Scalars['String']['output']; timestamp: Scalars['Int']['output']; totalLiquidity: Scalars['String']['output']; totalShares: Scalars['String']['output']; + totalSurplus: Scalars['String']['output']; totalSwapFee: Scalars['String']['output']; totalSwapVolume: Scalars['String']['output']; volume24h: Scalars['String']['output']; @@ -732,6 +956,7 @@ export type GqlPoolStable = GqlPoolBase & { address: Scalars['Bytes']['output']; allTokens: Array; amp: Scalars['BigInt']['output']; + categories?: Maybe>>; chain: GqlChain; createTime: Scalars['Int']['output']; decimals: Scalars['Int']['output']; @@ -739,17 +964,23 @@ export type GqlPoolStable = GqlPoolBase & { dynamicData: GqlPoolDynamicData; factory?: Maybe; id: Scalars['ID']['output']; + /** @deprecated Removed without replacement */ investConfig: GqlPoolInvestConfig; name: Scalars['String']['output']; owner: Scalars['Bytes']['output']; poolTokens: Array; + protocolVersion: Scalars['Int']['output']; staking?: Maybe; symbol: Scalars['String']['output']; + tags?: Maybe>>; + /** @deprecated Use poolTokens instead */ tokens: Array; type: GqlPoolType; userBalance?: Maybe; + /** @deprecated use protocolVersion instead */ vaultVersion: Scalars['Int']['output']; version: Scalars['Int']['output']; + /** @deprecated Removed without replacement */ withdrawConfig: GqlPoolWithdrawConfig; }; @@ -766,12 +997,23 @@ export type GqlPoolStableComposablePoolData = { export type GqlPoolStaking = { __typename?: 'GqlPoolStaking'; address: Scalars['String']['output']; + aura?: Maybe; chain: GqlChain; farm?: Maybe; gauge?: Maybe; id: Scalars['ID']['output']; reliquary?: Maybe; type: GqlPoolStakingType; + vebal?: Maybe; +}; + +export type GqlPoolStakingAura = { + __typename?: 'GqlPoolStakingAura'; + apr: Scalars['Float']['output']; + auraPoolAddress: Scalars['String']['output']; + auraPoolId: Scalars['String']['output']; + id: Scalars['ID']['output']; + isShutdown: Scalars['Boolean']['output']; }; export type GqlPoolStakingFarmRewarder = { @@ -842,12 +1084,20 @@ export type GqlPoolStakingReliquaryFarmLevel = { }; export type GqlPoolStakingType = + | 'AURA' | 'FRESH_BEETS' | 'GAUGE' | 'MASTER_CHEF' | 'RELIQUARY' + | 'VEBAL' | '%future added value'; +export type GqlPoolStakingVebal = { + __typename?: 'GqlPoolStakingVebal'; + id: Scalars['ID']['output']; + vebalAddress: Scalars['String']['output']; +}; + export type GqlPoolSwap = { __typename?: 'GqlPoolSwap'; chain: GqlChain; @@ -863,21 +1113,75 @@ export type GqlPoolSwap = { valueUSD: Scalars['Float']['output']; }; +/** Represents an event that occurs when a swap is made in a pool using the CowAmm protocol. */ +export type GqlPoolSwapEventCowAmm = GqlPoolEvent & { + __typename?: 'GqlPoolSwapEventCowAmm'; + /** The block number of the event. */ + blockNumber: Scalars['Int']['output']; + /** The block timestamp of the event. */ + blockTimestamp: Scalars['Int']['output']; + /** The chain on which the event occurred. */ + chain: GqlChain; + /** The fee that this swap generated. */ + fee: GqlPoolEventAmount; + /** The unique identifier of the event. */ + id: Scalars['ID']['output']; + /** The log index of the event. */ + logIndex: Scalars['Int']['output']; + /** The pool ID associated with the event. */ + poolId: Scalars['String']['output']; + /** The sender of the event. */ + sender: Scalars['String']['output']; + /** The surplus generated by the swap. */ + surplus: GqlPoolEventAmount; + /** The timestamp of the event. */ + timestamp: Scalars['Int']['output']; + /** The token that was swapped in the event. */ + tokenIn: GqlPoolEventAmount; + /** The token that was swapped out in the event. */ + tokenOut: GqlPoolEventAmount; + /** The transaction hash of the event. */ + tx: Scalars['String']['output']; + /** The type of the event. */ + type: GqlPoolEventType; + /** The user address associated with the event. */ + userAddress: Scalars['String']['output']; + /** The value of the event in USD. */ + valueUSD: Scalars['Float']['output']; +}; + +/** Represents an event that occurs when a swap is made in a pool. */ export type GqlPoolSwapEventV3 = GqlPoolEvent & { __typename?: 'GqlPoolSwapEventV3'; + /** The block number of the event. */ blockNumber: Scalars['Int']['output']; + /** The block timestamp of the event. */ blockTimestamp: Scalars['Int']['output']; + /** The chain on which the event occurred. */ chain: GqlChain; + /** The fee that this swap generated. */ + fee: GqlPoolEventAmount; + /** The unique identifier of the event. */ id: Scalars['ID']['output']; + /** The log index of the event. */ logIndex: Scalars['Int']['output']; + /** The pool ID associated with the event. */ poolId: Scalars['String']['output']; + /** The sender of the event. */ sender: Scalars['String']['output']; + /** The timestamp of the event. */ timestamp: Scalars['Int']['output']; + /** The token that was swapped in the event. */ tokenIn: GqlPoolEventAmount; + /** The token that was swapped out in the event. */ tokenOut: GqlPoolEventAmount; + /** The transaction hash of the event. */ tx: Scalars['String']['output']; + /** The type of the event. */ type: GqlPoolEventType; + /** The user address associated with the event. */ userAddress: Scalars['String']['output']; + /** The value of the event in USD. */ valueUSD: Scalars['Float']['output']; }; @@ -940,19 +1244,45 @@ export type GqlPoolTokenComposableStable = GqlPoolTokenBase & { export type GqlPoolTokenComposableStableNestedUnion = GqlPoolToken; +/** + * All info on the pool token. It will also include the nested pool if the token is a BPT. It will only support 1 level of nesting. + * A second (unsupported) level of nesting is shown by having hasNestedPool = true but nestedPool = null. + */ export type GqlPoolTokenDetail = { __typename?: 'GqlPoolTokenDetail'; + /** Address of the pool token. */ address: Scalars['String']['output']; + /** Balance of the pool token inside the pool. */ balance: Scalars['BigDecimal']['output']; + /** USD Balance of the pool token. */ + balanceUSD: Scalars['BigDecimal']['output']; + /** Decimals of the pool token. */ decimals: Scalars['Int']['output']; + /** Indicates whether this token is a BPT and therefor has a nested pool. */ hasNestedPool: Scalars['Boolean']['output']; + /** Id of the token. A combination of pool id and token address. */ id: Scalars['ID']['output']; + /** Index of the pool token in the pool as returned by the vault. */ index: Scalars['Int']['output']; + /** Whether the token is in the allow list. */ + isAllowed: Scalars['Boolean']['output']; + /** Whether the token is considered an ERC4626 token. */ + isErc4626: Scalars['Boolean']['output']; + /** Name of the pool token. */ name: Scalars['String']['output']; + /** Additional data for the nested pool if the token is a BPT. Null otherwise. */ nestedPool?: Maybe; + /** If it is an appreciating token, it shows the current price rate. 1 otherwise. */ priceRate: Scalars['BigDecimal']['output']; + /** The address of the price rate provider. */ priceRateProvider?: Maybe; + /** Additional data for the price rate provider, such as reviews or warnings. */ + priceRateProviderData?: Maybe; + /** Symbol of the pool token. */ symbol: Scalars['String']['output']; + /** If it is an Erc4262, this will be the underlying token if present in the API. */ + underlyingToken?: Maybe; + /** The weight of the token in the pool if it is a weighted pool, null otherwise */ weight?: Maybe; }; @@ -971,6 +1301,7 @@ export type GqlPoolTokenExpanded = { address: Scalars['String']['output']; decimals: Scalars['Int']['output']; id: Scalars['ID']['output']; + isErc4626: Scalars['Boolean']['output']; isMainToken: Scalars['Boolean']['output']; isNested: Scalars['Boolean']['output']; isPhantomBpt: Scalars['Boolean']['output']; @@ -984,6 +1315,7 @@ export type GqlPoolTokenUnion = GqlPoolToken | GqlPoolTokenComposableStable; /** Supported pool types */ export type GqlPoolType = | 'COMPOSABLE_STABLE' + | 'COW_AMM' | 'ELEMENT' | 'FX' | 'GYRO' @@ -1003,10 +1335,8 @@ export type GqlPoolUnion = GqlPoolComposableStable | GqlPoolElement | GqlPoolFx /** If a user address was provided in the query, the user balance is populated here */ export type GqlPoolUserBalance = { __typename?: 'GqlPoolUserBalance'; - /** The staked balance in either a gauge or farm as float. */ - stakedBalance: Scalars['AmountHumanReadable']['output']; - /** The staked balance in either a gauge or farm in USD as float. */ - stakedBalanceUsd: Scalars['Float']['output']; + /** The staked BPT balances of the user. */ + stakedBalances: Array; /** Total balance (wallet + staked) as float */ totalBalance: Scalars['AmountHumanReadable']['output']; /** Total balance (wallet + staked) in USD as float */ @@ -1027,6 +1357,7 @@ export type GqlPoolWeighted = GqlPoolBase & { __typename?: 'GqlPoolWeighted'; address: Scalars['Bytes']['output']; allTokens: Array; + categories?: Maybe>>; chain: GqlChain; createTime: Scalars['Int']['output']; decimals: Scalars['Int']['output']; @@ -1034,19 +1365,27 @@ export type GqlPoolWeighted = GqlPoolBase & { dynamicData: GqlPoolDynamicData; factory?: Maybe; id: Scalars['ID']['output']; + /** @deprecated Removed without replacement */ investConfig: GqlPoolInvestConfig; name: Scalars['String']['output']; nestingType: GqlPoolNestingType; owner: Scalars['Bytes']['output']; poolTokens: Array; + protocolVersion: Scalars['Int']['output']; staking?: Maybe; symbol: Scalars['String']['output']; - /** All tokens of the pool. If it is a nested pool, the nested pool is expanded with its own tokens again. */ + tags?: Maybe>>; + /** + * All tokens of the pool. If it is a nested pool, the nested pool is expanded with its own tokens again. + * @deprecated Use poolTokens instead + */ tokens: Array; type: GqlPoolType; userBalance?: Maybe; + /** @deprecated use protocolVersion instead */ vaultVersion: Scalars['Int']['output']; version: Scalars['Int']['output']; + /** @deprecated Removed without replacement */ withdrawConfig: GqlPoolWithdrawConfig; }; @@ -1073,6 +1412,36 @@ export type GqlPriceImpact = { priceImpact?: Maybe; }; +/** Represents the data of a price rate provider */ +export type GqlPriceRateProviderData = { + __typename?: 'GqlPriceRateProviderData'; + /** The address of the price rate provider */ + address: Scalars['String']['output']; + /** The factory used to create the price rate provider, if applicable */ + factory?: Maybe; + /** The name of the price rate provider */ + name?: Maybe; + /** The filename of the review of the price rate provider */ + reviewFile?: Maybe; + /** Indicates if the price rate provider has been reviewed */ + reviewed: Scalars['Boolean']['output']; + /** A summary of the price rate provider, usually just says safe or unsafe */ + summary?: Maybe; + /** Upgradeable components of the price rate provider */ + upgradeableComponents?: Maybe>>; + /** Warnings associated with the price rate provider */ + warnings?: Maybe>; +}; + +/** Represents an upgradeable component of a price rate provider */ +export type GqlPriceRateProviderUpgradeableComponent = { + __typename?: 'GqlPriceRateProviderUpgradeableComponent'; + /** The entry point / proxy of the upgradeable component */ + entryPoint: Scalars['String']['output']; + /** Indicates if the implementation of the component has been reviewed */ + implementationReviewed: Scalars['String']['output']; +}; + export type GqlProtocolMetricsAggregated = { __typename?: 'GqlProtocolMetricsAggregated'; chains: Array; @@ -1252,6 +1621,8 @@ export type GqlSorGetSwapPaths = { paths: Array; /** Price impact of the path */ priceImpact: GqlPriceImpact; + /** The version of the protocol these paths are from */ + protocolVersion: Scalars['Int']['output']; /** The return amount in human form. Return amount is either tokenOutAmount (if swapType is exactIn) or tokenInAmount (if swapType is exactOut) */ returnAmount: Scalars['AmountHumanReadable']['output']; /** The return amount in a raw form */ @@ -1276,7 +1647,10 @@ export type GqlSorGetSwapPaths = { tokenOut: Scalars['String']['output']; /** The amount of tokenOut in human form */ tokenOutAmount: Scalars['AmountHumanReadable']['output']; - /** The version of the vault these paths are from */ + /** + * The version of the vault these paths are from + * @deprecated Use protocolVersion instead + */ vaultVersion: Scalars['Int']['output']; }; @@ -1308,13 +1682,20 @@ export type GqlSorPath = { __typename?: 'GqlSorPath'; /** Input amount of this path in scaled form */ inputAmountRaw: Scalars['String']['output']; + /** A sorted list of booleans that indicate if the respective pool is a buffer */ + isBuffer: Array>; /** Output amount of this path in scaled form */ outputAmountRaw: Scalars['String']['output']; /** A sorted list of pool ids that are used in this path */ pools: Array>; + /** The version of the protocol these paths are from */ + protocolVersion: Scalars['Int']['output']; /** A sorted list of tokens that are ussed in this path */ tokens: Array>; - /** Vault version of this path. */ + /** + * Vault version of this path. + * @deprecated Use protocolVersion instead + */ vaultVersion: Scalars['Int']['output']; }; @@ -1391,21 +1772,44 @@ export type GqlSwapCallDataInput = { slippagePercentage: Scalars['String']['input']; }; +/** Represents a token */ export type GqlToken = { __typename?: 'GqlToken'; + /** The address of the token */ address: Scalars['String']['output']; + /** The chain of the token */ chain: GqlChain; + /** The chain ID of the token */ chainId: Scalars['Int']['output']; + /** The coingecko ID for this token, if present */ + coingeckoId?: Maybe; + /** The number of decimal places for the token */ decimals: Scalars['Int']['output']; + /** The description of the token */ description?: Maybe; + /** The Discord URL of the token */ discordUrl?: Maybe; + /** Whether the token is considered an ERC4626 token. */ + isErc4626: Scalars['Boolean']['output']; + /** The logo URI of the token */ logoURI?: Maybe; + /** The name of the token */ name: Scalars['String']['output']; + /** The rate provider data for the token */ + priceRateProviderData?: Maybe; + /** The priority of the token, can be used for sorting. */ priority: Scalars['Int']['output']; + /** The rate provider data for the token */ + rateProviderData?: Maybe; + /** The symbol of the token */ symbol: Scalars['String']['output']; + /** The Telegram URL of the token */ telegramUrl?: Maybe; + /** Indicates if the token is tradable */ tradable: Scalars['Boolean']['output']; + /** The Twitter username of the token */ twitterUsername?: Maybe; + /** The website URL of the token */ websiteUrl?: Maybe; }; @@ -1443,25 +1847,52 @@ export type GqlTokenData = { websiteUrl?: Maybe; }; +/** Represents additional data for a token */ export type GqlTokenDynamicData = { __typename?: 'GqlTokenDynamicData'; + /** The all-time high price of the token */ ath: Scalars['Float']['output']; + /** The all-time low price of the token */ atl: Scalars['Float']['output']; + /** The fully diluted valuation of the token */ fdv?: Maybe; + /** The highest price in the last 24 hours */ high24h: Scalars['Float']['output']; + /** The unique identifier of the dynamic data */ id: Scalars['String']['output']; + /** The lowest price in the last 24 hours */ low24h: Scalars['Float']['output']; + /** The market capitalization of the token */ marketCap?: Maybe; + /** The current price of the token */ price: Scalars['Float']['output']; + /** The price change in the last 24 hours */ priceChange24h: Scalars['Float']['output']; + /** The percentage price change in the last 7 days */ priceChangePercent7d?: Maybe; + /** The percentage price change in the last 14 days */ priceChangePercent14d?: Maybe; + /** The percentage price change in the last 24 hours */ priceChangePercent24h: Scalars['Float']['output']; + /** The percentage price change in the last 30 days */ priceChangePercent30d?: Maybe; + /** The address of the token */ tokenAddress: Scalars['String']['output']; + /** The timestamp when the data was last updated */ updatedAt: Scalars['String']['output']; }; +/** Result of the poolReloadPools mutation */ +export type GqlTokenMutationResult = { + __typename?: 'GqlTokenMutationResult'; + /** The chain that was reloaded. */ + chain: GqlChain; + /** The error message */ + error?: Maybe; + /** Whether it was successful or not. */ + success: Scalars['Boolean']['output']; +}; + export type GqlTokenPrice = { __typename?: 'GqlTokenPrice'; address: Scalars['String']['output']; @@ -1503,46 +1934,119 @@ export type GqlUserPoolBalance = { walletBalance: Scalars['AmountHumanReadable']['output']; }; +export type GqlUserStakedBalance = { + __typename?: 'GqlUserStakedBalance'; + /** The staked BPT balance as float. */ + balance: Scalars['AmountHumanReadable']['output']; + /** The steaked BPT balance in USD as float. */ + balanceUsd: Scalars['Float']['output']; + /** The id of the staking to match with GqlPoolStaking.id. */ + stakingId: Scalars['String']['output']; + /** The staking type (Gauge, farm, aura, etc.) in which this balance is staked. */ + stakingType: GqlPoolStakingType; +}; + export type GqlUserSwapVolumeFilter = { poolIdIn?: InputMaybe>; tokenInIn?: InputMaybe>; tokenOutIn?: InputMaybe>; }; +export type GqlVeBalBalance = { + __typename?: 'GqlVeBalBalance'; + balance: Scalars['AmountHumanReadable']['output']; + chain: GqlChain; + locked: Scalars['AmountHumanReadable']['output']; + lockedUsd: Scalars['AmountHumanReadable']['output']; +}; + export type GqlVeBalUserData = { __typename?: 'GqlVeBalUserData'; balance: Scalars['AmountHumanReadable']['output']; + locked: Scalars['AmountHumanReadable']['output']; + lockedUsd: Scalars['AmountHumanReadable']['output']; rank?: Maybe; }; +/** The Gauge that can be voted on through veBAL and that will ultimately receive the rewards. */ export type GqlVotingGauge = { __typename?: 'GqlVotingGauge'; + /** The timestamp the gauge was added. */ addedTimestamp?: Maybe; + /** The address of the root gauge on Ethereum mainnet. */ address: Scalars['Bytes']['output']; + /** The address of the child gauge on the specific chain. */ childGaugeAddress?: Maybe; + /** Whether the gauge is killed or not. */ isKilled: Scalars['Boolean']['output']; + /** The relative weight the gauge received this epoch (not more than 1.0). */ + relativeWeight: Scalars['String']['output']; + /** The relative weight cap. 1.0 for uncapped. */ relativeWeightCap?: Maybe; }; +/** A token inside of a pool with a voting gauge. */ export type GqlVotingGaugeToken = { __typename?: 'GqlVotingGaugeToken'; + /** The address of the token. */ address: Scalars['String']['output']; + /** The URL to the token logo. */ logoURI: Scalars['String']['output']; + /** The symbol of the token. */ symbol: Scalars['String']['output']; + /** If it is a weighted pool, the weigh of the token is shown here in %. 0.5 = 50%. */ weight?: Maybe; }; +/** The pool that can be voted on through veBAL */ export type GqlVotingPool = { __typename?: 'GqlVotingPool'; + /** The address of the pool. */ address: Scalars['Bytes']['output']; + /** The chain this pool is on. */ chain: GqlChain; + /** The gauge that is connected to the pool and that will receive the rewards. */ gauge: GqlVotingGauge; + /** Pool ID */ id: Scalars['ID']['output']; + /** The symbol of the pool. */ symbol: Scalars['String']['output']; + /** The tokens inside the pool. */ tokens: Array; + /** The type of the pool. */ type: GqlPoolType; }; +/** Hook data */ +export type Hook = { + __typename?: 'Hook'; + address: Scalars['String']['output']; + chain: GqlChain; + /** Data points changing over time */ + dynamicData?: Maybe; + /** True when hook can change the amounts send to the vault. Necessary to deduct the fees. */ + enableHookAdjustedAmounts: Scalars['Boolean']['output']; + /** List of pools using the hook */ + poolsIds?: Maybe>>; + shouldCallAfterAddLiquidity: Scalars['Boolean']['output']; + shouldCallAfterInitialize: Scalars['Boolean']['output']; + shouldCallAfterRemoveLiquidity: Scalars['Boolean']['output']; + shouldCallAfterSwap: Scalars['Boolean']['output']; + shouldCallBeforeAddLiquidity: Scalars['Boolean']['output']; + shouldCallBeforeInitialize: Scalars['Boolean']['output']; + shouldCallBeforeRemoveLiquidity: Scalars['Boolean']['output']; + shouldCallBeforeSwap: Scalars['Boolean']['output']; + shouldCallComputeDynamicSwapFee: Scalars['Boolean']['output']; +}; + +/** Collection of hook specific data. Percentage format is 0.01 -> 0.01%. */ +export type HookData = { + __typename?: 'HookData'; + addLiquidityFeePercentage?: Maybe; + removeLiquidityFeePercentage?: Maybe; + swapFeePercentage?: Maybe; +}; + export type Mutation = { __typename?: 'Mutation'; beetsPoolLoadReliquarySnapshotsForAllFarms: Scalars['String']['output']; @@ -1559,7 +2063,9 @@ export type Mutation = { poolLoadSnapshotsForPools: Scalars['String']['output']; poolReloadAllPoolAprs: Scalars['String']['output']; poolReloadAllTokenNestedPoolIds: Scalars['String']['output']; + poolReloadPools: Array; poolReloadStakingForAllPools: Scalars['String']['output']; + poolSyncAllCowSnapshots: Array; poolSyncAllPoolsFromSubgraph: Array; poolSyncLatestSnapshotsForAllPools: Scalars['String']['output']; poolSyncNewPoolsFromSubgraph: Array; @@ -1579,6 +2085,7 @@ export type Mutation = { sftmxSyncWithdrawalRequests: Scalars['String']['output']; tokenDeleteTokenType: Scalars['String']['output']; tokenReloadAllTokenTypes: Scalars['String']['output']; + tokenReloadErc4626Tokens: Array; tokenReloadTokenPrices?: Maybe; tokenSyncLatestFxPrices: Scalars['String']['output']; tokenSyncTokenDefinitions: Scalars['String']['output']; @@ -1625,13 +2132,23 @@ export type MutationPoolReloadAllPoolAprsArgs = { }; +export type MutationPoolReloadPoolsArgs = { + chains: Array; +}; + + export type MutationPoolReloadStakingForAllPoolsArgs = { stakingTypes: Array; }; +export type MutationPoolSyncAllCowSnapshotsArgs = { + chains: Array; +}; + + export type MutationPoolSyncLatestSnapshotsForAllPoolsArgs = { - daysToSync?: InputMaybe; + chain: GqlChain; }; @@ -1651,6 +2168,11 @@ export type MutationTokenDeleteTokenTypeArgs = { }; +export type MutationTokenReloadErc4626TokensArgs = { + chains: Array; +}; + + export type MutationTokenReloadTokenPricesArgs = { chains: Array; }; @@ -1684,18 +2206,29 @@ export type Query = { blocksGetBlocksPerSecond: Scalars['Float']['output']; blocksGetBlocksPerYear: Scalars['Float']['output']; contentGetNewsItems: Array; + /** Returns list of hooks. */ + hooks?: Maybe>; latestSyncedBlocks: GqlLatestSyncedBlocks; /** Getting swap, add and remove events with paging */ poolEvents: Array; - /** Will de deprecated in favor of poolEvents */ + /** + * Will de deprecated in favor of poolEvents + * @deprecated Use poolEvents instead + */ poolGetBatchSwaps: Array; /** Getting swap, add and remove events with range */ poolGetEvents: Array; - /** Will de deprecated in favor of poolGetFeaturedPools */ + /** + * Will de deprecated in favor of poolGetFeaturedPools + * @deprecated Use poolGetFeaturedPools instead + */ poolGetFeaturedPoolGroups: Array; /** Returns the list of featured pools for chains */ poolGetFeaturedPools: Array; - /** Will de deprecated in favor of poolEvents */ + /** + * Will de deprecated in favor of poolEvents + * @deprecated Use poolEvents instead + */ poolGetJoinExits: Array; /** Returns one pool. If a user address is provided, the user balances for the given pool will also be returned. */ poolGetPool: GqlPoolBase; @@ -1705,7 +2238,10 @@ export type Query = { poolGetPoolsCount: Scalars['Int']['output']; /** Gets all the snapshots for a given pool on a chain for a certain range */ poolGetSnapshots: Array; - /** Will de deprecated in favor of poolEvents */ + /** + * Will de deprecated in favor of poolEvents + * @deprecated Use poolEvents instead + */ poolGetSwaps: Array; protocolMetricsAggregated: GqlProtocolMetricsAggregated; protocolMetricsChain: GqlProtocolMetricsChain; @@ -1719,16 +2255,42 @@ export type Query = { sorGetSwapPaths: GqlSorGetSwapPaths; /** Get swap quote from the SOR, queries both the old and new SOR */ sorGetSwaps: GqlSorGetSwapsResponse; + /** + * Returns the candlestick chart data for a token for a given range. + * @deprecated Use tokenGetHistoricalPrices instead + */ tokenGetCandlestickChartData: Array; + /** Returns all current prices for allowed tokens for a given chain or chains */ tokenGetCurrentPrices: Array; + /** Returns the historical prices for a given set of tokens for a given chain and range */ tokenGetHistoricalPrices: Array; + /** + * DEPRECATED: Returns pricing data for a given token for a given range + * @deprecated Use tokenGetHistoricalPrices instead + */ tokenGetPriceChartData: Array; + /** + * Returns the price of either BAL or BEETS depending on chain + * @deprecated Use tokenGetTokensDynamicData instead + */ tokenGetProtocolTokenPrice: Scalars['AmountHumanReadable']['output']; + /** Returns the price of a token priced in another token for a given range. */ tokenGetRelativePriceChartData: Array; + /** + * Returns meta data for a given token such as description, website, etc. + * @deprecated Use tokenGetTokens instead + */ tokenGetTokenData?: Maybe; + /** Returns dynamic data of a token such as price, market cap, etc. */ tokenGetTokenDynamicData?: Maybe; + /** Returns all allowed tokens for a given chain or chains */ tokenGetTokens: Array; + /** + * Returns meta data for a given set of tokens such as description, website, etc. + * @deprecated Use tokenGetTokens instead + */ tokenGetTokensData: Array; + /** Returns dynamic data of a set of tokens such as price, market cap, etc. */ tokenGetTokensDynamicData: Array; userGetFbeetsBalance: GqlUserFbeetsBalance; userGetPoolBalances: Array; @@ -1740,6 +2302,8 @@ export type Query = { veBalGetTotalSupply: Scalars['AmountHumanReadable']['output']; veBalGetUser: GqlVeBalUserData; veBalGetUserBalance: Scalars['AmountHumanReadable']['output']; + veBalGetUserBalances: Array; + /** Returns all pools with veBAL gauges that can be voted on. */ veBalGetVotingList: Array; }; @@ -1755,10 +2319,15 @@ export type QueryContentGetNewsItemsArgs = { }; +export type QueryHooksArgs = { + chain?: InputMaybe; +}; + + export type QueryPoolEventsArgs = { first?: InputMaybe; skip?: InputMaybe; - where: GqlPoolEventsFilter; + where?: InputMaybe; }; @@ -1864,7 +2433,7 @@ export type QuerySorGetSwapPathsArgs = { swapType: GqlSorSwapType; tokenIn: Scalars['String']['input']; tokenOut: Scalars['String']['input']; - useVaultVersion?: InputMaybe; + useProtocolVersion?: InputMaybe; }; @@ -1974,6 +2543,29 @@ export type QueryUserGetSwapsArgs = { skip?: InputMaybe; }; + +export type QueryVeBalGetTotalSupplyArgs = { + chain?: InputMaybe; +}; + + +export type QueryVeBalGetUserArgs = { + address: Scalars['String']['input']; + chain?: InputMaybe; +}; + + +export type QueryVeBalGetUserBalanceArgs = { + address?: InputMaybe; + chain?: InputMaybe; +}; + + +export type QueryVeBalGetUserBalancesArgs = { + address: Scalars['String']['input']; + chains?: InputMaybe>; +}; + export type Token = { __typename?: 'Token'; address: Scalars['String']['output']; diff --git a/packages/gql/src/balancer-api-v3/__generated__/Sepolia.server.ts b/packages/gql/src/balancer-api-v3/__generated__/Sepolia.server.ts index 5df748271..3527d6e6a 100644 --- a/packages/gql/src/balancer-api-v3/__generated__/Sepolia.server.ts +++ b/packages/gql/src/balancer-api-v3/__generated__/Sepolia.server.ts @@ -44,8 +44,10 @@ export type GqlChain = | 'AVALANCHE' | 'BASE' | 'FANTOM' + | 'FRAXTAL' | 'GNOSIS' | 'MAINNET' + | 'MODE' | 'OPTIMISM' | 'POLYGON' | 'SEPOLIA' @@ -128,41 +130,73 @@ export type GqlLatestSyncedBlocks = { userWalletSyncBlock: Scalars['BigInt']['output']; }; +/** All info on the nested pool if the token is a BPT. It will only support 1 level of nesting. */ export type GqlNestedPool = { __typename?: 'GqlNestedPool'; + /** Address of the pool. */ address: Scalars['Bytes']['output']; + /** Price rate of the Balancer Pool Token (BPT). */ bptPriceRate: Scalars['BigDecimal']['output']; + /** Timestamp of when the pool was created. */ createTime: Scalars['Int']['output']; + /** Address of the factory contract that created the pool, if applicable. */ factory?: Maybe; + /** Unique identifier of the pool. */ id: Scalars['ID']['output']; + /** Name of the pool. */ name: Scalars['String']['output']; + /** Total liquidity of the parent pool in the nested pool in USD. */ nestedLiquidity: Scalars['BigDecimal']['output']; + /** Percentage of the parents pool shares inside the nested pool. */ nestedPercentage: Scalars['BigDecimal']['output']; + /** Number of shares of the parent pool in the nested pool. */ nestedShares: Scalars['BigDecimal']['output']; + /** Address of the pool's owner. */ owner: Scalars['Bytes']['output']; + /** Fee charged for swapping tokens in the pool as %. 0.01 -> 0.01% */ swapFee: Scalars['BigDecimal']['output']; + /** Symbol of the pool. */ symbol: Scalars['String']['output']; + /** List of all tokens in the pool. */ tokens: Array; + /** Total liquidity in the pool in USD. */ totalLiquidity: Scalars['BigDecimal']['output']; + /** Total number of shares in the pool. */ totalShares: Scalars['BigDecimal']['output']; + /** Type of the pool. */ type: GqlPoolType; + /** Version of the pool. */ version: Scalars['Int']['output']; }; +/** Represents an event that occurs when liquidity is added or removed from a pool. */ export type GqlPoolAddRemoveEventV3 = GqlPoolEvent & { __typename?: 'GqlPoolAddRemoveEventV3'; + /** The block number of the event. */ blockNumber: Scalars['Int']['output']; + /** The block timestamp of the event. */ blockTimestamp: Scalars['Int']['output']; + /** The chain on which the event occurred. */ chain: GqlChain; + /** The unique identifier of the event. */ id: Scalars['ID']['output']; + /** The log index of the event. */ logIndex: Scalars['Int']['output']; + /** The pool ID associated with the event. */ poolId: Scalars['String']['output']; + /** The sender of the event. */ sender: Scalars['String']['output']; + /** The timestamp of the event. */ timestamp: Scalars['Int']['output']; + /** The tokens involved in the event. Ordered by poolToken index. */ tokens: Array; + /** The transaction hash of the event. */ tx: Scalars['String']['output']; + /** The type of the event. */ type: GqlPoolEventType; + /** The user address associated with the event. */ userAddress: Scalars['String']['output']; + /** The value of the event in USD. */ valueUSD: Scalars['Float']['output']; }; @@ -176,6 +210,43 @@ export type GqlPoolApr = { thirdPartyApr: GqlPoolAprValue; }; +/** All APRs for a pool */ +export type GqlPoolAprItem = { + __typename?: 'GqlPoolAprItem'; + /** The APR value in % -> 0.2 = 0.2% */ + apr: Scalars['Float']['output']; + /** The id of the APR item */ + id: Scalars['ID']['output']; + /** The title of the APR item, a human readable form */ + title: Scalars['String']['output']; + /** Specific type of this APR */ + type: GqlPoolAprItemType; +}; + +/** Enum representing the different types of the APR in a pool. */ +export type GqlPoolAprItemType = + /** APR that pools earns when BPT is staked on AURA. */ + | 'AURA' + /** Represents the yield from an IB (Interest-Bearing) asset APR in a pool. */ + | 'IB_YIELD' + /** APR in a pool that can be earned through locking, i.e. veBAL */ + | 'LOCKING' + /** Rewards distributed by merkl.xyz */ + | 'MERKL' + /** Represents if the APR items comes from a nested pool. */ + | 'NESTED' + /** Staking reward APR in a pool, i.e. BAL or BEETS. */ + | 'STAKING' + /** APR boost that can be earned, i.e. via veBAL or maBEETS. */ + | 'STAKING_BOOST' + /** Cow AMM specific APR */ + | 'SURPLUS' + /** Represents the swap fee APR in a pool. */ + | 'SWAP_FEE' + /** APR that can be earned thourgh voting, i.e. gauge votes */ + | 'VOTING' + | '%future added value'; + export type GqlPoolAprRange = { __typename?: 'GqlPoolAprRange'; max: Scalars['BigDecimal']['output']; @@ -193,23 +264,34 @@ export type GqlPoolAprValue = GqlPoolAprRange | GqlPoolAprTotal; export type GqlPoolBase = { /** The contract address of the pool. */ address: Scalars['Bytes']['output']; - /** Returns all pool tokens, including any nested tokens and phantom BPTs on one level. */ + /** + * Returns all pool tokens, including any nested tokens and phantom BPTs on one level. + * @deprecated Use poolTokens instead + */ allTokens: Array; + /** List of categories assigned by the team based on external factors */ + categories?: Maybe>>; /** The chain on which the pool is deployed */ chain: GqlChain; /** The timestamp the pool was created. */ createTime: Scalars['Int']['output']; /** The decimals of the BPT, usually 18 */ decimals: Scalars['Int']['output']; - /** Only returns main tokens, also known as leave tokens. Wont return any nested BPTs. Used for displaying the tokens that the pool consists of. */ + /** + * Only returns main tokens, also known as leave tokens. Wont return any nested BPTs. Used for displaying the tokens that the pool consists of. + * @deprecated Use poolTokens instead + */ displayTokens: Array; /** Dynamic data such as token balances, swap fees or volume */ dynamicData: GqlPoolDynamicData; /** The factory contract address from which the pool was created. */ factory?: Maybe; - /** The pool id. This is equal to the address for vaultVersion 3 pools */ + /** The pool id. This is equal to the address for protocolVersion 3 pools */ id: Scalars['ID']['output']; - /** Deprecated */ + /** + * Deprecated + * @deprecated Removed without replacement + */ investConfig: GqlPoolInvestConfig; /** The name of the pool as per contract */ name: Scalars['String']['output']; @@ -217,19 +299,29 @@ export type GqlPoolBase = { owner?: Maybe; /** Returns all pool tokens, including BPTs and nested pools if there are any. Only one nested level deep. */ poolTokens: Array; + /** The protocol version on which the pool is deployed, 1, 2 or 3 */ + protocolVersion: Scalars['Int']['output']; /** Staking options of this pool which emit additional rewards */ staking?: Maybe; /** The token symbol of the pool as per contract */ symbol: Scalars['String']['output']; + /** List of tags assigned by the team based on external factors */ + tags?: Maybe>>; /** The pool type, such as weighted, stable, etc. */ type: GqlPoolType; /** If a user address was provided in the query, the user balance is populated here */ userBalance?: Maybe; - /** The vault version on which the pool is deployed, 2 or 3 */ + /** + * The vault version on which the pool is deployed, 2 or 3 + * @deprecated use protocolVersion instead + */ vaultVersion: Scalars['Int']['output']; /** The version of the pool type. */ version: Scalars['Int']['output']; - /** Deprecated */ + /** + * Deprecated + * @deprecated Removed without replacement + */ withdrawConfig: GqlPoolWithdrawConfig; }; @@ -276,6 +368,7 @@ export type GqlPoolComposableStable = GqlPoolBase & { allTokens: Array; amp: Scalars['BigInt']['output']; bptPriceRate: Scalars['BigDecimal']['output']; + categories?: Maybe>>; chain: GqlChain; createTime: Scalars['Int']['output']; decimals: Scalars['Int']['output']; @@ -283,18 +376,27 @@ export type GqlPoolComposableStable = GqlPoolBase & { dynamicData: GqlPoolDynamicData; factory?: Maybe; id: Scalars['ID']['output']; + /** @deprecated Removed without replacement */ investConfig: GqlPoolInvestConfig; name: Scalars['String']['output']; nestingType: GqlPoolNestingType; owner: Scalars['Bytes']['output']; poolTokens: Array; + protocolVersion: Scalars['Int']['output']; staking?: Maybe; symbol: Scalars['String']['output']; + tags?: Maybe>>; + /** + * All tokens of the pool. If it is a nested pool, the nested pool is expanded with its own tokens again. + * @deprecated Use poolTokens instead + */ tokens: Array; type: GqlPoolType; userBalance?: Maybe; + /** @deprecated use protocolVersion instead */ vaultVersion: Scalars['Int']['output']; version: Scalars['Int']['output']; + /** @deprecated Removed without replacement */ withdrawConfig: GqlPoolWithdrawConfig; }; @@ -303,6 +405,7 @@ export type GqlPoolComposableStableNested = { address: Scalars['Bytes']['output']; amp: Scalars['BigInt']['output']; bptPriceRate: Scalars['BigDecimal']['output']; + categories?: Maybe>>; createTime: Scalars['Int']['output']; factory?: Maybe; id: Scalars['ID']['output']; @@ -311,6 +414,8 @@ export type GqlPoolComposableStableNested = { owner: Scalars['Bytes']['output']; swapFee: Scalars['BigDecimal']['output']; symbol: Scalars['String']['output']; + tags?: Maybe>>; + /** @deprecated Use poolTokens instead */ tokens: Array; totalLiquidity: Scalars['BigDecimal']['output']; totalShares: Scalars['BigDecimal']['output']; @@ -320,7 +425,13 @@ export type GqlPoolComposableStableNested = { export type GqlPoolDynamicData = { __typename?: 'GqlPoolDynamicData'; + /** Protocol and pool creator fees combined */ + aggregateSwapFee: Scalars['BigDecimal']['output']; + /** Protocol and pool creator fees combined */ + aggregateYieldFee: Scalars['BigDecimal']['output']; + /** @deprecated Use aprItems instead */ apr: GqlPoolApr; + aprItems: Array; fees24h: Scalars['BigDecimal']['output']; fees24hAth: Scalars['BigDecimal']['output']; fees24hAthTimestamp: Scalars['Int']['output']; @@ -328,6 +439,7 @@ export type GqlPoolDynamicData = { fees24hAtlTimestamp: Scalars['Int']['output']; fees48h: Scalars['BigDecimal']['output']; holdersCount: Scalars['BigInt']['output']; + /** True for bricked pools */ isInRecoveryMode: Scalars['Boolean']['output']; isPaused: Scalars['Boolean']['output']; lifetimeSwapFees: Scalars['BigDecimal']['output']; @@ -337,6 +449,11 @@ export type GqlPoolDynamicData = { sharePriceAthTimestamp: Scalars['Int']['output']; sharePriceAtl: Scalars['BigDecimal']['output']; sharePriceAtlTimestamp: Scalars['Int']['output']; + /** CowAmm specific, equivalent of swap fees */ + surplus24h: Scalars['BigDecimal']['output']; + /** CowAmm specific, equivalent of swap fees */ + surplus48h: Scalars['BigDecimal']['output']; + /** Disabled for bricked pools */ swapEnabled: Scalars['Boolean']['output']; swapFee: Scalars['BigDecimal']['output']; swapsCount: Scalars['BigInt']['output']; @@ -363,6 +480,7 @@ export type GqlPoolElement = GqlPoolBase & { address: Scalars['Bytes']['output']; allTokens: Array; baseToken: Scalars['Bytes']['output']; + categories?: Maybe>>; chain: GqlChain; createTime: Scalars['Int']['output']; decimals: Scalars['Int']['output']; @@ -370,34 +488,53 @@ export type GqlPoolElement = GqlPoolBase & { dynamicData: GqlPoolDynamicData; factory?: Maybe; id: Scalars['ID']['output']; + /** @deprecated Removed without replacement */ investConfig: GqlPoolInvestConfig; name: Scalars['String']['output']; owner: Scalars['Bytes']['output']; poolTokens: Array; principalToken: Scalars['Bytes']['output']; + protocolVersion: Scalars['Int']['output']; staking?: Maybe; symbol: Scalars['String']['output']; + tags?: Maybe>>; + /** @deprecated Use poolTokens instead */ tokens: Array; type: GqlPoolType; unitSeconds: Scalars['BigInt']['output']; userBalance?: Maybe; + /** @deprecated use protocolVersion instead */ vaultVersion: Scalars['Int']['output']; version: Scalars['Int']['output']; + /** @deprecated Removed without replacement */ withdrawConfig: GqlPoolWithdrawConfig; }; +/** Represents an event that occurs in a pool. */ export type GqlPoolEvent = { + /** The block number of the event. */ blockNumber: Scalars['Int']['output']; + /** The block timestamp of the event. */ blockTimestamp: Scalars['Int']['output']; + /** The chain on which the event occurred. */ chain: GqlChain; + /** The unique identifier of the event. */ id: Scalars['ID']['output']; + /** The log index of the event. */ logIndex: Scalars['Int']['output']; + /** The pool ID associated with the event. */ poolId: Scalars['String']['output']; + /** The sender of the event. */ sender: Scalars['String']['output']; + /** The timestamp of the event. */ timestamp: Scalars['Int']['output']; + /** The transaction hash of the event. */ tx: Scalars['String']['output']; + /** The type of the event. */ type: GqlPoolEventType; + /** The user address associated with the event. */ userAddress: Scalars['String']['output']; + /** The USD value of this event. */ valueUSD: Scalars['Float']['output']; }; @@ -421,11 +558,15 @@ export type GqlPoolEventsDataRange = | '%future added value'; export type GqlPoolEventsFilter = { - chain: GqlChain; - poolId: Scalars['String']['input']; + chainIn?: InputMaybe>>; + poolIdIn?: InputMaybe>>; range?: InputMaybe; typeIn?: InputMaybe>>; userAddress?: InputMaybe; + /** USD value of the event */ + valueUSD_gt?: InputMaybe; + /** USD value of the event */ + valueUSD_gte?: InputMaybe; }; export type GqlPoolFeaturedPool = { @@ -447,8 +588,6 @@ export type GqlPoolFeaturedPoolGroup = { export type GqlPoolFeaturedPoolGroupItem = GqlFeaturePoolGroupItemExternalLink | GqlPoolMinimal; export type GqlPoolFilter = { - categoryIn?: InputMaybe>; - categoryNotIn?: InputMaybe>; chainIn?: InputMaybe>; chainNotIn?: InputMaybe>; createTime?: InputMaybe; @@ -459,15 +598,33 @@ export type GqlPoolFilter = { minTvl?: InputMaybe; poolTypeIn?: InputMaybe>; poolTypeNotIn?: InputMaybe>; + protocolVersionIn?: InputMaybe>; + /** + * For list of tags see: https://github.com/balancer/metadata/blob/main/pools/index.json + * Use uppercase + */ + tagIn?: InputMaybe>; + /** + * For list of tags see: https://github.com/balancer/metadata/blob/main/pools/index.json + * Use uppercase + */ + tagNotIn?: InputMaybe>; tokensIn?: InputMaybe>; tokensNotIn?: InputMaybe>; userAddress?: InputMaybe; - vaultVersionIn?: InputMaybe>; }; export type GqlPoolFilterCategory = | 'BLACK_LISTED' | 'INCENTIVIZED' + | 'LRT' + | 'POINTS' + | 'POINTS_EIGENLAYER' + | 'POINTS_GYRO' + | 'POINTS_KELP' + | 'POINTS_RENZO' + | 'POINTS_SWELL' + | 'SUPERFEST' | '%future added value'; export type GqlPoolFx = GqlPoolBase & { @@ -476,6 +633,7 @@ export type GqlPoolFx = GqlPoolBase & { allTokens: Array; alpha: Scalars['String']['output']; beta: Scalars['String']['output']; + categories?: Maybe>>; chain: GqlChain; createTime: Scalars['Int']['output']; decimals: Scalars['Int']['output']; @@ -485,18 +643,27 @@ export type GqlPoolFx = GqlPoolBase & { epsilon: Scalars['String']['output']; factory?: Maybe; id: Scalars['ID']['output']; + /** @deprecated Removed without replacement */ investConfig: GqlPoolInvestConfig; lambda: Scalars['String']['output']; name: Scalars['String']['output']; owner?: Maybe; poolTokens: Array; + protocolVersion: Scalars['Int']['output']; staking?: Maybe; symbol: Scalars['String']['output']; + tags?: Maybe>>; + /** + * All tokens of the pool. If it is a nested pool, the nested pool is expanded with its own tokens again. + * @deprecated Use poolTokens instead + */ tokens: Array; type: GqlPoolType; userBalance?: Maybe; + /** @deprecated use protocolVersion instead */ vaultVersion: Scalars['Int']['output']; version: Scalars['Int']['output']; + /** @deprecated Removed without replacement */ withdrawConfig: GqlPoolWithdrawConfig; }; @@ -507,6 +674,7 @@ export type GqlPoolGyro = GqlPoolBase & { alpha: Scalars['String']['output']; beta: Scalars['String']['output']; c: Scalars['String']['output']; + categories?: Maybe>>; chain: GqlChain; createTime: Scalars['Int']['output']; dSq: Scalars['String']['output']; @@ -515,30 +683,39 @@ export type GqlPoolGyro = GqlPoolBase & { dynamicData: GqlPoolDynamicData; factory?: Maybe; id: Scalars['ID']['output']; + /** @deprecated Removed without replacement */ investConfig: GqlPoolInvestConfig; lambda: Scalars['String']['output']; name: Scalars['String']['output']; nestingType: GqlPoolNestingType; owner: Scalars['Bytes']['output']; poolTokens: Array; + protocolVersion: Scalars['Int']['output']; root3Alpha: Scalars['String']['output']; s: Scalars['String']['output']; sqrtAlpha: Scalars['String']['output']; sqrtBeta: Scalars['String']['output']; staking?: Maybe; symbol: Scalars['String']['output']; + tags?: Maybe>>; tauAlphaX: Scalars['String']['output']; tauAlphaY: Scalars['String']['output']; tauBetaX: Scalars['String']['output']; tauBetaY: Scalars['String']['output']; + /** + * All tokens of the pool. If it is a nested pool, the nested pool is expanded with its own tokens again. + * @deprecated Use poolTokens instead + */ tokens: Array; type: GqlPoolType; u: Scalars['String']['output']; userBalance?: Maybe; v: Scalars['String']['output']; + /** @deprecated use protocolVersion instead */ vaultVersion: Scalars['Int']['output']; version: Scalars['Int']['output']; w: Scalars['String']['output']; + /** @deprecated Removed without replacement */ withdrawConfig: GqlPoolWithdrawConfig; z: Scalars['String']['output']; }; @@ -590,6 +767,7 @@ export type GqlPoolLiquidityBootstrapping = GqlPoolBase & { __typename?: 'GqlPoolLiquidityBootstrapping'; address: Scalars['Bytes']['output']; allTokens: Array; + categories?: Maybe>>; chain: GqlChain; createTime: Scalars['Int']['output']; decimals: Scalars['Int']['output']; @@ -597,18 +775,27 @@ export type GqlPoolLiquidityBootstrapping = GqlPoolBase & { dynamicData: GqlPoolDynamicData; factory?: Maybe; id: Scalars['ID']['output']; + /** @deprecated Removed without replacement */ investConfig: GqlPoolInvestConfig; name: Scalars['String']['output']; nestingType: GqlPoolNestingType; owner: Scalars['Bytes']['output']; poolTokens: Array; + protocolVersion: Scalars['Int']['output']; staking?: Maybe; symbol: Scalars['String']['output']; + tags?: Maybe>>; + /** + * All tokens of the pool. If it is a nested pool, the nested pool is expanded with its own tokens again. + * @deprecated Use poolTokens instead + */ tokens: Array; type: GqlPoolType; userBalance?: Maybe; + /** @deprecated use protocolVersion instead */ vaultVersion: Scalars['Int']['output']; version: Scalars['Int']['output']; + /** @deprecated Removed without replacement */ withdrawConfig: GqlPoolWithdrawConfig; }; @@ -617,6 +804,7 @@ export type GqlPoolMetaStable = GqlPoolBase & { address: Scalars['Bytes']['output']; allTokens: Array; amp: Scalars['BigInt']['output']; + categories?: Maybe>>; chain: GqlChain; createTime: Scalars['Int']['output']; decimals: Scalars['Int']['output']; @@ -624,17 +812,23 @@ export type GqlPoolMetaStable = GqlPoolBase & { dynamicData: GqlPoolDynamicData; factory?: Maybe; id: Scalars['ID']['output']; + /** @deprecated Removed without replacement */ investConfig: GqlPoolInvestConfig; name: Scalars['String']['output']; owner: Scalars['Bytes']['output']; poolTokens: Array; + protocolVersion: Scalars['Int']['output']; staking?: Maybe; symbol: Scalars['String']['output']; + tags?: Maybe>>; + /** @deprecated Use poolTokens instead */ tokens: Array; type: GqlPoolType; userBalance?: Maybe; + /** @deprecated use protocolVersion instead */ vaultVersion: Scalars['Int']['output']; version: Scalars['Int']['output']; + /** @deprecated Removed without replacement */ withdrawConfig: GqlPoolWithdrawConfig; }; @@ -645,38 +839,66 @@ export type GqlPoolMinimal = { address: Scalars['Bytes']['output']; /** Returns all pool tokens, including any nested tokens and phantom BPTs */ allTokens: Array; + /** List of categories assigned by the team based on external factors */ + categories?: Maybe>>; /** The chain on which the pool is deployed */ chain: GqlChain; /** The timestamp the pool was created. */ createTime: Scalars['Int']['output']; /** The decimals of the BPT, usually 18 */ decimals: Scalars['Int']['output']; - /** Only returns main tokens, also known as leave tokens. Wont return any nested BPTs. Used for displaying the tokens that the pool consists of. */ + /** Only returns main or underlying tokens, also known as leave tokens. Wont return any nested BPTs. Used for displaying the tokens that the pool consists of. */ displayTokens: Array; /** Dynamic data such as token balances, swap fees or volume */ dynamicData: GqlPoolDynamicData; /** The factory contract address from which the pool was created. */ factory?: Maybe; - /** The pool id. This is equal to the address for vaultVersion 3 pools */ + /** Whether at least one token in this pool is considered an ERC4626 token. */ + hasErc4626: Scalars['Boolean']['output']; + /** Hook assigned to a pool */ + hook?: Maybe; + /** The pool id. This is equal to the address for protocolVersion 3 pools */ id: Scalars['ID']['output']; + /** Pool is receiving rewards when liquidity tokens are staked */ + incentivized: Scalars['Boolean']['output']; /** The name of the pool as per contract */ name: Scalars['String']['output']; /** The wallet address of the owner of the pool. Pool owners can set certain properties like swapFees or AMP. */ owner?: Maybe; + /** The protocol version on which the pool is deployed, 1, 2 or 3 */ + protocolVersion: Scalars['Int']['output']; /** Staking options of this pool which emit additional rewards */ staking?: Maybe; /** The token symbol of the pool as per contract */ symbol: Scalars['String']['output']; + /** List of tags assigned by the team based on external factors */ + tags?: Maybe>>; /** The pool type, such as weighted, stable, etc. */ type: GqlPoolType; /** If a user address was provided in the query, the user balance is populated here */ userBalance?: Maybe; - /** The vault version on which the pool is deployed, 2 or 3 */ + /** + * The vault version on which the pool is deployed, 2 or 3 + * @deprecated use protocolVersion instead + */ vaultVersion: Scalars['Int']['output']; /** The version of the pool type. */ version: Scalars['Int']['output']; }; +/** Result of the poolReloadPools mutation */ +export type GqlPoolMutationResult = { + __typename?: 'GqlPoolMutationResult'; + /** The chain that was reloaded. */ + chain: GqlChain; + /** The error message */ + error?: Maybe; + /** Whether it was successful or not. */ + success: Scalars['Boolean']['output']; + /** The type of pools that were reloaded. */ + type: Scalars['String']['output']; +}; + export type GqlPoolNestedUnion = GqlPoolComposableStableNested; export type GqlPoolNestingType = @@ -708,10 +930,12 @@ export type GqlPoolSnapshot = { id: Scalars['ID']['output']; poolId: Scalars['String']['output']; sharePrice: Scalars['String']['output']; + surplus24h: Scalars['String']['output']; swapsCount: Scalars['String']['output']; timestamp: Scalars['Int']['output']; totalLiquidity: Scalars['String']['output']; totalShares: Scalars['String']['output']; + totalSurplus: Scalars['String']['output']; totalSwapFee: Scalars['String']['output']; totalSwapVolume: Scalars['String']['output']; volume24h: Scalars['String']['output']; @@ -730,6 +954,7 @@ export type GqlPoolStable = GqlPoolBase & { address: Scalars['Bytes']['output']; allTokens: Array; amp: Scalars['BigInt']['output']; + categories?: Maybe>>; chain: GqlChain; createTime: Scalars['Int']['output']; decimals: Scalars['Int']['output']; @@ -737,17 +962,23 @@ export type GqlPoolStable = GqlPoolBase & { dynamicData: GqlPoolDynamicData; factory?: Maybe; id: Scalars['ID']['output']; + /** @deprecated Removed without replacement */ investConfig: GqlPoolInvestConfig; name: Scalars['String']['output']; owner: Scalars['Bytes']['output']; poolTokens: Array; + protocolVersion: Scalars['Int']['output']; staking?: Maybe; symbol: Scalars['String']['output']; + tags?: Maybe>>; + /** @deprecated Use poolTokens instead */ tokens: Array; type: GqlPoolType; userBalance?: Maybe; + /** @deprecated use protocolVersion instead */ vaultVersion: Scalars['Int']['output']; version: Scalars['Int']['output']; + /** @deprecated Removed without replacement */ withdrawConfig: GqlPoolWithdrawConfig; }; @@ -764,12 +995,23 @@ export type GqlPoolStableComposablePoolData = { export type GqlPoolStaking = { __typename?: 'GqlPoolStaking'; address: Scalars['String']['output']; + aura?: Maybe; chain: GqlChain; farm?: Maybe; gauge?: Maybe; id: Scalars['ID']['output']; reliquary?: Maybe; type: GqlPoolStakingType; + vebal?: Maybe; +}; + +export type GqlPoolStakingAura = { + __typename?: 'GqlPoolStakingAura'; + apr: Scalars['Float']['output']; + auraPoolAddress: Scalars['String']['output']; + auraPoolId: Scalars['String']['output']; + id: Scalars['ID']['output']; + isShutdown: Scalars['Boolean']['output']; }; export type GqlPoolStakingFarmRewarder = { @@ -840,12 +1082,20 @@ export type GqlPoolStakingReliquaryFarmLevel = { }; export type GqlPoolStakingType = + | 'AURA' | 'FRESH_BEETS' | 'GAUGE' | 'MASTER_CHEF' | 'RELIQUARY' + | 'VEBAL' | '%future added value'; +export type GqlPoolStakingVebal = { + __typename?: 'GqlPoolStakingVebal'; + id: Scalars['ID']['output']; + vebalAddress: Scalars['String']['output']; +}; + export type GqlPoolSwap = { __typename?: 'GqlPoolSwap'; chain: GqlChain; @@ -861,21 +1111,75 @@ export type GqlPoolSwap = { valueUSD: Scalars['Float']['output']; }; +/** Represents an event that occurs when a swap is made in a pool using the CowAmm protocol. */ +export type GqlPoolSwapEventCowAmm = GqlPoolEvent & { + __typename?: 'GqlPoolSwapEventCowAmm'; + /** The block number of the event. */ + blockNumber: Scalars['Int']['output']; + /** The block timestamp of the event. */ + blockTimestamp: Scalars['Int']['output']; + /** The chain on which the event occurred. */ + chain: GqlChain; + /** The fee that this swap generated. */ + fee: GqlPoolEventAmount; + /** The unique identifier of the event. */ + id: Scalars['ID']['output']; + /** The log index of the event. */ + logIndex: Scalars['Int']['output']; + /** The pool ID associated with the event. */ + poolId: Scalars['String']['output']; + /** The sender of the event. */ + sender: Scalars['String']['output']; + /** The surplus generated by the swap. */ + surplus: GqlPoolEventAmount; + /** The timestamp of the event. */ + timestamp: Scalars['Int']['output']; + /** The token that was swapped in the event. */ + tokenIn: GqlPoolEventAmount; + /** The token that was swapped out in the event. */ + tokenOut: GqlPoolEventAmount; + /** The transaction hash of the event. */ + tx: Scalars['String']['output']; + /** The type of the event. */ + type: GqlPoolEventType; + /** The user address associated with the event. */ + userAddress: Scalars['String']['output']; + /** The value of the event in USD. */ + valueUSD: Scalars['Float']['output']; +}; + +/** Represents an event that occurs when a swap is made in a pool. */ export type GqlPoolSwapEventV3 = GqlPoolEvent & { __typename?: 'GqlPoolSwapEventV3'; + /** The block number of the event. */ blockNumber: Scalars['Int']['output']; + /** The block timestamp of the event. */ blockTimestamp: Scalars['Int']['output']; + /** The chain on which the event occurred. */ chain: GqlChain; + /** The fee that this swap generated. */ + fee: GqlPoolEventAmount; + /** The unique identifier of the event. */ id: Scalars['ID']['output']; + /** The log index of the event. */ logIndex: Scalars['Int']['output']; + /** The pool ID associated with the event. */ poolId: Scalars['String']['output']; + /** The sender of the event. */ sender: Scalars['String']['output']; + /** The timestamp of the event. */ timestamp: Scalars['Int']['output']; + /** The token that was swapped in the event. */ tokenIn: GqlPoolEventAmount; + /** The token that was swapped out in the event. */ tokenOut: GqlPoolEventAmount; + /** The transaction hash of the event. */ tx: Scalars['String']['output']; + /** The type of the event. */ type: GqlPoolEventType; + /** The user address associated with the event. */ userAddress: Scalars['String']['output']; + /** The value of the event in USD. */ valueUSD: Scalars['Float']['output']; }; @@ -938,19 +1242,45 @@ export type GqlPoolTokenComposableStable = GqlPoolTokenBase & { export type GqlPoolTokenComposableStableNestedUnion = GqlPoolToken; +/** + * All info on the pool token. It will also include the nested pool if the token is a BPT. It will only support 1 level of nesting. + * A second (unsupported) level of nesting is shown by having hasNestedPool = true but nestedPool = null. + */ export type GqlPoolTokenDetail = { __typename?: 'GqlPoolTokenDetail'; + /** Address of the pool token. */ address: Scalars['String']['output']; + /** Balance of the pool token inside the pool. */ balance: Scalars['BigDecimal']['output']; + /** USD Balance of the pool token. */ + balanceUSD: Scalars['BigDecimal']['output']; + /** Decimals of the pool token. */ decimals: Scalars['Int']['output']; + /** Indicates whether this token is a BPT and therefor has a nested pool. */ hasNestedPool: Scalars['Boolean']['output']; + /** Id of the token. A combination of pool id and token address. */ id: Scalars['ID']['output']; + /** Index of the pool token in the pool as returned by the vault. */ index: Scalars['Int']['output']; + /** Whether the token is in the allow list. */ + isAllowed: Scalars['Boolean']['output']; + /** Whether the token is considered an ERC4626 token. */ + isErc4626: Scalars['Boolean']['output']; + /** Name of the pool token. */ name: Scalars['String']['output']; + /** Additional data for the nested pool if the token is a BPT. Null otherwise. */ nestedPool?: Maybe; + /** If it is an appreciating token, it shows the current price rate. 1 otherwise. */ priceRate: Scalars['BigDecimal']['output']; + /** The address of the price rate provider. */ priceRateProvider?: Maybe; + /** Additional data for the price rate provider, such as reviews or warnings. */ + priceRateProviderData?: Maybe; + /** Symbol of the pool token. */ symbol: Scalars['String']['output']; + /** If it is an Erc4262, this will be the underlying token if present in the API. */ + underlyingToken?: Maybe; + /** The weight of the token in the pool if it is a weighted pool, null otherwise */ weight?: Maybe; }; @@ -969,6 +1299,7 @@ export type GqlPoolTokenExpanded = { address: Scalars['String']['output']; decimals: Scalars['Int']['output']; id: Scalars['ID']['output']; + isErc4626: Scalars['Boolean']['output']; isMainToken: Scalars['Boolean']['output']; isNested: Scalars['Boolean']['output']; isPhantomBpt: Scalars['Boolean']['output']; @@ -982,6 +1313,7 @@ export type GqlPoolTokenUnion = GqlPoolToken | GqlPoolTokenComposableStable; /** Supported pool types */ export type GqlPoolType = | 'COMPOSABLE_STABLE' + | 'COW_AMM' | 'ELEMENT' | 'FX' | 'GYRO' @@ -1001,10 +1333,8 @@ export type GqlPoolUnion = GqlPoolComposableStable | GqlPoolElement | GqlPoolFx /** If a user address was provided in the query, the user balance is populated here */ export type GqlPoolUserBalance = { __typename?: 'GqlPoolUserBalance'; - /** The staked balance in either a gauge or farm as float. */ - stakedBalance: Scalars['AmountHumanReadable']['output']; - /** The staked balance in either a gauge or farm in USD as float. */ - stakedBalanceUsd: Scalars['Float']['output']; + /** The staked BPT balances of the user. */ + stakedBalances: Array; /** Total balance (wallet + staked) as float */ totalBalance: Scalars['AmountHumanReadable']['output']; /** Total balance (wallet + staked) in USD as float */ @@ -1025,6 +1355,7 @@ export type GqlPoolWeighted = GqlPoolBase & { __typename?: 'GqlPoolWeighted'; address: Scalars['Bytes']['output']; allTokens: Array; + categories?: Maybe>>; chain: GqlChain; createTime: Scalars['Int']['output']; decimals: Scalars['Int']['output']; @@ -1032,19 +1363,27 @@ export type GqlPoolWeighted = GqlPoolBase & { dynamicData: GqlPoolDynamicData; factory?: Maybe; id: Scalars['ID']['output']; + /** @deprecated Removed without replacement */ investConfig: GqlPoolInvestConfig; name: Scalars['String']['output']; nestingType: GqlPoolNestingType; owner: Scalars['Bytes']['output']; poolTokens: Array; + protocolVersion: Scalars['Int']['output']; staking?: Maybe; symbol: Scalars['String']['output']; - /** All tokens of the pool. If it is a nested pool, the nested pool is expanded with its own tokens again. */ + tags?: Maybe>>; + /** + * All tokens of the pool. If it is a nested pool, the nested pool is expanded with its own tokens again. + * @deprecated Use poolTokens instead + */ tokens: Array; type: GqlPoolType; userBalance?: Maybe; + /** @deprecated use protocolVersion instead */ vaultVersion: Scalars['Int']['output']; version: Scalars['Int']['output']; + /** @deprecated Removed without replacement */ withdrawConfig: GqlPoolWithdrawConfig; }; @@ -1071,6 +1410,36 @@ export type GqlPriceImpact = { priceImpact?: Maybe; }; +/** Represents the data of a price rate provider */ +export type GqlPriceRateProviderData = { + __typename?: 'GqlPriceRateProviderData'; + /** The address of the price rate provider */ + address: Scalars['String']['output']; + /** The factory used to create the price rate provider, if applicable */ + factory?: Maybe; + /** The name of the price rate provider */ + name?: Maybe; + /** The filename of the review of the price rate provider */ + reviewFile?: Maybe; + /** Indicates if the price rate provider has been reviewed */ + reviewed: Scalars['Boolean']['output']; + /** A summary of the price rate provider, usually just says safe or unsafe */ + summary?: Maybe; + /** Upgradeable components of the price rate provider */ + upgradeableComponents?: Maybe>>; + /** Warnings associated with the price rate provider */ + warnings?: Maybe>; +}; + +/** Represents an upgradeable component of a price rate provider */ +export type GqlPriceRateProviderUpgradeableComponent = { + __typename?: 'GqlPriceRateProviderUpgradeableComponent'; + /** The entry point / proxy of the upgradeable component */ + entryPoint: Scalars['String']['output']; + /** Indicates if the implementation of the component has been reviewed */ + implementationReviewed: Scalars['String']['output']; +}; + export type GqlProtocolMetricsAggregated = { __typename?: 'GqlProtocolMetricsAggregated'; chains: Array; @@ -1250,6 +1619,8 @@ export type GqlSorGetSwapPaths = { paths: Array; /** Price impact of the path */ priceImpact: GqlPriceImpact; + /** The version of the protocol these paths are from */ + protocolVersion: Scalars['Int']['output']; /** The return amount in human form. Return amount is either tokenOutAmount (if swapType is exactIn) or tokenInAmount (if swapType is exactOut) */ returnAmount: Scalars['AmountHumanReadable']['output']; /** The return amount in a raw form */ @@ -1274,7 +1645,10 @@ export type GqlSorGetSwapPaths = { tokenOut: Scalars['String']['output']; /** The amount of tokenOut in human form */ tokenOutAmount: Scalars['AmountHumanReadable']['output']; - /** The version of the vault these paths are from */ + /** + * The version of the vault these paths are from + * @deprecated Use protocolVersion instead + */ vaultVersion: Scalars['Int']['output']; }; @@ -1306,13 +1680,20 @@ export type GqlSorPath = { __typename?: 'GqlSorPath'; /** Input amount of this path in scaled form */ inputAmountRaw: Scalars['String']['output']; + /** A sorted list of booleans that indicate if the respective pool is a buffer */ + isBuffer: Array>; /** Output amount of this path in scaled form */ outputAmountRaw: Scalars['String']['output']; /** A sorted list of pool ids that are used in this path */ pools: Array>; + /** The version of the protocol these paths are from */ + protocolVersion: Scalars['Int']['output']; /** A sorted list of tokens that are ussed in this path */ tokens: Array>; - /** Vault version of this path. */ + /** + * Vault version of this path. + * @deprecated Use protocolVersion instead + */ vaultVersion: Scalars['Int']['output']; }; @@ -1389,21 +1770,44 @@ export type GqlSwapCallDataInput = { slippagePercentage: Scalars['String']['input']; }; +/** Represents a token */ export type GqlToken = { __typename?: 'GqlToken'; + /** The address of the token */ address: Scalars['String']['output']; + /** The chain of the token */ chain: GqlChain; + /** The chain ID of the token */ chainId: Scalars['Int']['output']; + /** The coingecko ID for this token, if present */ + coingeckoId?: Maybe; + /** The number of decimal places for the token */ decimals: Scalars['Int']['output']; + /** The description of the token */ description?: Maybe; + /** The Discord URL of the token */ discordUrl?: Maybe; + /** Whether the token is considered an ERC4626 token. */ + isErc4626: Scalars['Boolean']['output']; + /** The logo URI of the token */ logoURI?: Maybe; + /** The name of the token */ name: Scalars['String']['output']; + /** The rate provider data for the token */ + priceRateProviderData?: Maybe; + /** The priority of the token, can be used for sorting. */ priority: Scalars['Int']['output']; + /** The rate provider data for the token */ + rateProviderData?: Maybe; + /** The symbol of the token */ symbol: Scalars['String']['output']; + /** The Telegram URL of the token */ telegramUrl?: Maybe; + /** Indicates if the token is tradable */ tradable: Scalars['Boolean']['output']; + /** The Twitter username of the token */ twitterUsername?: Maybe; + /** The website URL of the token */ websiteUrl?: Maybe; }; @@ -1441,25 +1845,52 @@ export type GqlTokenData = { websiteUrl?: Maybe; }; +/** Represents additional data for a token */ export type GqlTokenDynamicData = { __typename?: 'GqlTokenDynamicData'; + /** The all-time high price of the token */ ath: Scalars['Float']['output']; + /** The all-time low price of the token */ atl: Scalars['Float']['output']; + /** The fully diluted valuation of the token */ fdv?: Maybe; + /** The highest price in the last 24 hours */ high24h: Scalars['Float']['output']; + /** The unique identifier of the dynamic data */ id: Scalars['String']['output']; + /** The lowest price in the last 24 hours */ low24h: Scalars['Float']['output']; + /** The market capitalization of the token */ marketCap?: Maybe; + /** The current price of the token */ price: Scalars['Float']['output']; + /** The price change in the last 24 hours */ priceChange24h: Scalars['Float']['output']; + /** The percentage price change in the last 7 days */ priceChangePercent7d?: Maybe; + /** The percentage price change in the last 14 days */ priceChangePercent14d?: Maybe; + /** The percentage price change in the last 24 hours */ priceChangePercent24h: Scalars['Float']['output']; + /** The percentage price change in the last 30 days */ priceChangePercent30d?: Maybe; + /** The address of the token */ tokenAddress: Scalars['String']['output']; + /** The timestamp when the data was last updated */ updatedAt: Scalars['String']['output']; }; +/** Result of the poolReloadPools mutation */ +export type GqlTokenMutationResult = { + __typename?: 'GqlTokenMutationResult'; + /** The chain that was reloaded. */ + chain: GqlChain; + /** The error message */ + error?: Maybe; + /** Whether it was successful or not. */ + success: Scalars['Boolean']['output']; +}; + export type GqlTokenPrice = { __typename?: 'GqlTokenPrice'; address: Scalars['String']['output']; @@ -1501,46 +1932,119 @@ export type GqlUserPoolBalance = { walletBalance: Scalars['AmountHumanReadable']['output']; }; +export type GqlUserStakedBalance = { + __typename?: 'GqlUserStakedBalance'; + /** The staked BPT balance as float. */ + balance: Scalars['AmountHumanReadable']['output']; + /** The steaked BPT balance in USD as float. */ + balanceUsd: Scalars['Float']['output']; + /** The id of the staking to match with GqlPoolStaking.id. */ + stakingId: Scalars['String']['output']; + /** The staking type (Gauge, farm, aura, etc.) in which this balance is staked. */ + stakingType: GqlPoolStakingType; +}; + export type GqlUserSwapVolumeFilter = { poolIdIn?: InputMaybe>; tokenInIn?: InputMaybe>; tokenOutIn?: InputMaybe>; }; +export type GqlVeBalBalance = { + __typename?: 'GqlVeBalBalance'; + balance: Scalars['AmountHumanReadable']['output']; + chain: GqlChain; + locked: Scalars['AmountHumanReadable']['output']; + lockedUsd: Scalars['AmountHumanReadable']['output']; +}; + export type GqlVeBalUserData = { __typename?: 'GqlVeBalUserData'; balance: Scalars['AmountHumanReadable']['output']; + locked: Scalars['AmountHumanReadable']['output']; + lockedUsd: Scalars['AmountHumanReadable']['output']; rank?: Maybe; }; +/** The Gauge that can be voted on through veBAL and that will ultimately receive the rewards. */ export type GqlVotingGauge = { __typename?: 'GqlVotingGauge'; + /** The timestamp the gauge was added. */ addedTimestamp?: Maybe; + /** The address of the root gauge on Ethereum mainnet. */ address: Scalars['Bytes']['output']; + /** The address of the child gauge on the specific chain. */ childGaugeAddress?: Maybe; + /** Whether the gauge is killed or not. */ isKilled: Scalars['Boolean']['output']; + /** The relative weight the gauge received this epoch (not more than 1.0). */ + relativeWeight: Scalars['String']['output']; + /** The relative weight cap. 1.0 for uncapped. */ relativeWeightCap?: Maybe; }; +/** A token inside of a pool with a voting gauge. */ export type GqlVotingGaugeToken = { __typename?: 'GqlVotingGaugeToken'; + /** The address of the token. */ address: Scalars['String']['output']; + /** The URL to the token logo. */ logoURI: Scalars['String']['output']; + /** The symbol of the token. */ symbol: Scalars['String']['output']; + /** If it is a weighted pool, the weigh of the token is shown here in %. 0.5 = 50%. */ weight?: Maybe; }; +/** The pool that can be voted on through veBAL */ export type GqlVotingPool = { __typename?: 'GqlVotingPool'; + /** The address of the pool. */ address: Scalars['Bytes']['output']; + /** The chain this pool is on. */ chain: GqlChain; + /** The gauge that is connected to the pool and that will receive the rewards. */ gauge: GqlVotingGauge; + /** Pool ID */ id: Scalars['ID']['output']; + /** The symbol of the pool. */ symbol: Scalars['String']['output']; + /** The tokens inside the pool. */ tokens: Array; + /** The type of the pool. */ type: GqlPoolType; }; +/** Hook data */ +export type Hook = { + __typename?: 'Hook'; + address: Scalars['String']['output']; + chain: GqlChain; + /** Data points changing over time */ + dynamicData?: Maybe; + /** True when hook can change the amounts send to the vault. Necessary to deduct the fees. */ + enableHookAdjustedAmounts: Scalars['Boolean']['output']; + /** List of pools using the hook */ + poolsIds?: Maybe>>; + shouldCallAfterAddLiquidity: Scalars['Boolean']['output']; + shouldCallAfterInitialize: Scalars['Boolean']['output']; + shouldCallAfterRemoveLiquidity: Scalars['Boolean']['output']; + shouldCallAfterSwap: Scalars['Boolean']['output']; + shouldCallBeforeAddLiquidity: Scalars['Boolean']['output']; + shouldCallBeforeInitialize: Scalars['Boolean']['output']; + shouldCallBeforeRemoveLiquidity: Scalars['Boolean']['output']; + shouldCallBeforeSwap: Scalars['Boolean']['output']; + shouldCallComputeDynamicSwapFee: Scalars['Boolean']['output']; +}; + +/** Collection of hook specific data. Percentage format is 0.01 -> 0.01%. */ +export type HookData = { + __typename?: 'HookData'; + addLiquidityFeePercentage?: Maybe; + removeLiquidityFeePercentage?: Maybe; + swapFeePercentage?: Maybe; +}; + export type Mutation = { __typename?: 'Mutation'; beetsPoolLoadReliquarySnapshotsForAllFarms: Scalars['String']['output']; @@ -1557,7 +2061,9 @@ export type Mutation = { poolLoadSnapshotsForPools: Scalars['String']['output']; poolReloadAllPoolAprs: Scalars['String']['output']; poolReloadAllTokenNestedPoolIds: Scalars['String']['output']; + poolReloadPools: Array; poolReloadStakingForAllPools: Scalars['String']['output']; + poolSyncAllCowSnapshots: Array; poolSyncAllPoolsFromSubgraph: Array; poolSyncLatestSnapshotsForAllPools: Scalars['String']['output']; poolSyncNewPoolsFromSubgraph: Array; @@ -1577,6 +2083,7 @@ export type Mutation = { sftmxSyncWithdrawalRequests: Scalars['String']['output']; tokenDeleteTokenType: Scalars['String']['output']; tokenReloadAllTokenTypes: Scalars['String']['output']; + tokenReloadErc4626Tokens: Array; tokenReloadTokenPrices?: Maybe; tokenSyncLatestFxPrices: Scalars['String']['output']; tokenSyncTokenDefinitions: Scalars['String']['output']; @@ -1623,13 +2130,23 @@ export type MutationPoolReloadAllPoolAprsArgs = { }; +export type MutationPoolReloadPoolsArgs = { + chains: Array; +}; + + export type MutationPoolReloadStakingForAllPoolsArgs = { stakingTypes: Array; }; +export type MutationPoolSyncAllCowSnapshotsArgs = { + chains: Array; +}; + + export type MutationPoolSyncLatestSnapshotsForAllPoolsArgs = { - daysToSync?: InputMaybe; + chain: GqlChain; }; @@ -1649,6 +2166,11 @@ export type MutationTokenDeleteTokenTypeArgs = { }; +export type MutationTokenReloadErc4626TokensArgs = { + chains: Array; +}; + + export type MutationTokenReloadTokenPricesArgs = { chains: Array; }; @@ -1682,18 +2204,29 @@ export type Query = { blocksGetBlocksPerSecond: Scalars['Float']['output']; blocksGetBlocksPerYear: Scalars['Float']['output']; contentGetNewsItems: Array; + /** Returns list of hooks. */ + hooks?: Maybe>; latestSyncedBlocks: GqlLatestSyncedBlocks; /** Getting swap, add and remove events with paging */ poolEvents: Array; - /** Will de deprecated in favor of poolEvents */ + /** + * Will de deprecated in favor of poolEvents + * @deprecated Use poolEvents instead + */ poolGetBatchSwaps: Array; /** Getting swap, add and remove events with range */ poolGetEvents: Array; - /** Will de deprecated in favor of poolGetFeaturedPools */ + /** + * Will de deprecated in favor of poolGetFeaturedPools + * @deprecated Use poolGetFeaturedPools instead + */ poolGetFeaturedPoolGroups: Array; /** Returns the list of featured pools for chains */ poolGetFeaturedPools: Array; - /** Will de deprecated in favor of poolEvents */ + /** + * Will de deprecated in favor of poolEvents + * @deprecated Use poolEvents instead + */ poolGetJoinExits: Array; /** Returns one pool. If a user address is provided, the user balances for the given pool will also be returned. */ poolGetPool: GqlPoolBase; @@ -1703,7 +2236,10 @@ export type Query = { poolGetPoolsCount: Scalars['Int']['output']; /** Gets all the snapshots for a given pool on a chain for a certain range */ poolGetSnapshots: Array; - /** Will de deprecated in favor of poolEvents */ + /** + * Will de deprecated in favor of poolEvents + * @deprecated Use poolEvents instead + */ poolGetSwaps: Array; protocolMetricsAggregated: GqlProtocolMetricsAggregated; protocolMetricsChain: GqlProtocolMetricsChain; @@ -1717,16 +2253,42 @@ export type Query = { sorGetSwapPaths: GqlSorGetSwapPaths; /** Get swap quote from the SOR, queries both the old and new SOR */ sorGetSwaps: GqlSorGetSwapsResponse; + /** + * Returns the candlestick chart data for a token for a given range. + * @deprecated Use tokenGetHistoricalPrices instead + */ tokenGetCandlestickChartData: Array; + /** Returns all current prices for allowed tokens for a given chain or chains */ tokenGetCurrentPrices: Array; + /** Returns the historical prices for a given set of tokens for a given chain and range */ tokenGetHistoricalPrices: Array; + /** + * DEPRECATED: Returns pricing data for a given token for a given range + * @deprecated Use tokenGetHistoricalPrices instead + */ tokenGetPriceChartData: Array; + /** + * Returns the price of either BAL or BEETS depending on chain + * @deprecated Use tokenGetTokensDynamicData instead + */ tokenGetProtocolTokenPrice: Scalars['AmountHumanReadable']['output']; + /** Returns the price of a token priced in another token for a given range. */ tokenGetRelativePriceChartData: Array; + /** + * Returns meta data for a given token such as description, website, etc. + * @deprecated Use tokenGetTokens instead + */ tokenGetTokenData?: Maybe; + /** Returns dynamic data of a token such as price, market cap, etc. */ tokenGetTokenDynamicData?: Maybe; + /** Returns all allowed tokens for a given chain or chains */ tokenGetTokens: Array; + /** + * Returns meta data for a given set of tokens such as description, website, etc. + * @deprecated Use tokenGetTokens instead + */ tokenGetTokensData: Array; + /** Returns dynamic data of a set of tokens such as price, market cap, etc. */ tokenGetTokensDynamicData: Array; userGetFbeetsBalance: GqlUserFbeetsBalance; userGetPoolBalances: Array; @@ -1738,6 +2300,8 @@ export type Query = { veBalGetTotalSupply: Scalars['AmountHumanReadable']['output']; veBalGetUser: GqlVeBalUserData; veBalGetUserBalance: Scalars['AmountHumanReadable']['output']; + veBalGetUserBalances: Array; + /** Returns all pools with veBAL gauges that can be voted on. */ veBalGetVotingList: Array; }; @@ -1753,10 +2317,15 @@ export type QueryContentGetNewsItemsArgs = { }; +export type QueryHooksArgs = { + chain?: InputMaybe; +}; + + export type QueryPoolEventsArgs = { first?: InputMaybe; skip?: InputMaybe; - where: GqlPoolEventsFilter; + where?: InputMaybe; }; @@ -1862,7 +2431,7 @@ export type QuerySorGetSwapPathsArgs = { swapType: GqlSorSwapType; tokenIn: Scalars['String']['input']; tokenOut: Scalars['String']['input']; - useVaultVersion?: InputMaybe; + useProtocolVersion?: InputMaybe; }; @@ -1972,6 +2541,29 @@ export type QueryUserGetSwapsArgs = { skip?: InputMaybe; }; + +export type QueryVeBalGetTotalSupplyArgs = { + chain?: InputMaybe; +}; + + +export type QueryVeBalGetUserArgs = { + address: Scalars['String']['input']; + chain?: InputMaybe; +}; + + +export type QueryVeBalGetUserBalanceArgs = { + address?: InputMaybe; + chain?: InputMaybe; +}; + + +export type QueryVeBalGetUserBalancesArgs = { + address: Scalars['String']['input']; + chains?: InputMaybe>; +}; + export type Token = { __typename?: 'Token'; address: Scalars['String']['output']; diff --git a/packages/gql/src/balancer-api-v3/__generated__/Sepolia.ts b/packages/gql/src/balancer-api-v3/__generated__/Sepolia.ts index dbb6d7c10..5e68d0c72 100644 --- a/packages/gql/src/balancer-api-v3/__generated__/Sepolia.ts +++ b/packages/gql/src/balancer-api-v3/__generated__/Sepolia.ts @@ -46,8 +46,10 @@ export type GqlChain = | 'AVALANCHE' | 'BASE' | 'FANTOM' + | 'FRAXTAL' | 'GNOSIS' | 'MAINNET' + | 'MODE' | 'OPTIMISM' | 'POLYGON' | 'SEPOLIA' @@ -130,41 +132,73 @@ export type GqlLatestSyncedBlocks = { userWalletSyncBlock: Scalars['BigInt']['output']; }; +/** All info on the nested pool if the token is a BPT. It will only support 1 level of nesting. */ export type GqlNestedPool = { __typename?: 'GqlNestedPool'; + /** Address of the pool. */ address: Scalars['Bytes']['output']; + /** Price rate of the Balancer Pool Token (BPT). */ bptPriceRate: Scalars['BigDecimal']['output']; + /** Timestamp of when the pool was created. */ createTime: Scalars['Int']['output']; + /** Address of the factory contract that created the pool, if applicable. */ factory?: Maybe; + /** Unique identifier of the pool. */ id: Scalars['ID']['output']; + /** Name of the pool. */ name: Scalars['String']['output']; + /** Total liquidity of the parent pool in the nested pool in USD. */ nestedLiquidity: Scalars['BigDecimal']['output']; + /** Percentage of the parents pool shares inside the nested pool. */ nestedPercentage: Scalars['BigDecimal']['output']; + /** Number of shares of the parent pool in the nested pool. */ nestedShares: Scalars['BigDecimal']['output']; + /** Address of the pool's owner. */ owner: Scalars['Bytes']['output']; + /** Fee charged for swapping tokens in the pool as %. 0.01 -> 0.01% */ swapFee: Scalars['BigDecimal']['output']; + /** Symbol of the pool. */ symbol: Scalars['String']['output']; + /** List of all tokens in the pool. */ tokens: Array; + /** Total liquidity in the pool in USD. */ totalLiquidity: Scalars['BigDecimal']['output']; + /** Total number of shares in the pool. */ totalShares: Scalars['BigDecimal']['output']; + /** Type of the pool. */ type: GqlPoolType; + /** Version of the pool. */ version: Scalars['Int']['output']; }; +/** Represents an event that occurs when liquidity is added or removed from a pool. */ export type GqlPoolAddRemoveEventV3 = GqlPoolEvent & { __typename?: 'GqlPoolAddRemoveEventV3'; + /** The block number of the event. */ blockNumber: Scalars['Int']['output']; + /** The block timestamp of the event. */ blockTimestamp: Scalars['Int']['output']; + /** The chain on which the event occurred. */ chain: GqlChain; + /** The unique identifier of the event. */ id: Scalars['ID']['output']; + /** The log index of the event. */ logIndex: Scalars['Int']['output']; + /** The pool ID associated with the event. */ poolId: Scalars['String']['output']; + /** The sender of the event. */ sender: Scalars['String']['output']; + /** The timestamp of the event. */ timestamp: Scalars['Int']['output']; + /** The tokens involved in the event. Ordered by poolToken index. */ tokens: Array; + /** The transaction hash of the event. */ tx: Scalars['String']['output']; + /** The type of the event. */ type: GqlPoolEventType; + /** The user address associated with the event. */ userAddress: Scalars['String']['output']; + /** The value of the event in USD. */ valueUSD: Scalars['Float']['output']; }; @@ -178,6 +212,43 @@ export type GqlPoolApr = { thirdPartyApr: GqlPoolAprValue; }; +/** All APRs for a pool */ +export type GqlPoolAprItem = { + __typename?: 'GqlPoolAprItem'; + /** The APR value in % -> 0.2 = 0.2% */ + apr: Scalars['Float']['output']; + /** The id of the APR item */ + id: Scalars['ID']['output']; + /** The title of the APR item, a human readable form */ + title: Scalars['String']['output']; + /** Specific type of this APR */ + type: GqlPoolAprItemType; +}; + +/** Enum representing the different types of the APR in a pool. */ +export type GqlPoolAprItemType = + /** APR that pools earns when BPT is staked on AURA. */ + | 'AURA' + /** Represents the yield from an IB (Interest-Bearing) asset APR in a pool. */ + | 'IB_YIELD' + /** APR in a pool that can be earned through locking, i.e. veBAL */ + | 'LOCKING' + /** Rewards distributed by merkl.xyz */ + | 'MERKL' + /** Represents if the APR items comes from a nested pool. */ + | 'NESTED' + /** Staking reward APR in a pool, i.e. BAL or BEETS. */ + | 'STAKING' + /** APR boost that can be earned, i.e. via veBAL or maBEETS. */ + | 'STAKING_BOOST' + /** Cow AMM specific APR */ + | 'SURPLUS' + /** Represents the swap fee APR in a pool. */ + | 'SWAP_FEE' + /** APR that can be earned thourgh voting, i.e. gauge votes */ + | 'VOTING' + | '%future added value'; + export type GqlPoolAprRange = { __typename?: 'GqlPoolAprRange'; max: Scalars['BigDecimal']['output']; @@ -195,23 +266,34 @@ export type GqlPoolAprValue = GqlPoolAprRange | GqlPoolAprTotal; export type GqlPoolBase = { /** The contract address of the pool. */ address: Scalars['Bytes']['output']; - /** Returns all pool tokens, including any nested tokens and phantom BPTs on one level. */ + /** + * Returns all pool tokens, including any nested tokens and phantom BPTs on one level. + * @deprecated Use poolTokens instead + */ allTokens: Array; + /** List of categories assigned by the team based on external factors */ + categories?: Maybe>>; /** The chain on which the pool is deployed */ chain: GqlChain; /** The timestamp the pool was created. */ createTime: Scalars['Int']['output']; /** The decimals of the BPT, usually 18 */ decimals: Scalars['Int']['output']; - /** Only returns main tokens, also known as leave tokens. Wont return any nested BPTs. Used for displaying the tokens that the pool consists of. */ + /** + * Only returns main tokens, also known as leave tokens. Wont return any nested BPTs. Used for displaying the tokens that the pool consists of. + * @deprecated Use poolTokens instead + */ displayTokens: Array; /** Dynamic data such as token balances, swap fees or volume */ dynamicData: GqlPoolDynamicData; /** The factory contract address from which the pool was created. */ factory?: Maybe; - /** The pool id. This is equal to the address for vaultVersion 3 pools */ + /** The pool id. This is equal to the address for protocolVersion 3 pools */ id: Scalars['ID']['output']; - /** Deprecated */ + /** + * Deprecated + * @deprecated Removed without replacement + */ investConfig: GqlPoolInvestConfig; /** The name of the pool as per contract */ name: Scalars['String']['output']; @@ -219,19 +301,29 @@ export type GqlPoolBase = { owner?: Maybe; /** Returns all pool tokens, including BPTs and nested pools if there are any. Only one nested level deep. */ poolTokens: Array; + /** The protocol version on which the pool is deployed, 1, 2 or 3 */ + protocolVersion: Scalars['Int']['output']; /** Staking options of this pool which emit additional rewards */ staking?: Maybe; /** The token symbol of the pool as per contract */ symbol: Scalars['String']['output']; + /** List of tags assigned by the team based on external factors */ + tags?: Maybe>>; /** The pool type, such as weighted, stable, etc. */ type: GqlPoolType; /** If a user address was provided in the query, the user balance is populated here */ userBalance?: Maybe; - /** The vault version on which the pool is deployed, 2 or 3 */ + /** + * The vault version on which the pool is deployed, 2 or 3 + * @deprecated use protocolVersion instead + */ vaultVersion: Scalars['Int']['output']; /** The version of the pool type. */ version: Scalars['Int']['output']; - /** Deprecated */ + /** + * Deprecated + * @deprecated Removed without replacement + */ withdrawConfig: GqlPoolWithdrawConfig; }; @@ -278,6 +370,7 @@ export type GqlPoolComposableStable = GqlPoolBase & { allTokens: Array; amp: Scalars['BigInt']['output']; bptPriceRate: Scalars['BigDecimal']['output']; + categories?: Maybe>>; chain: GqlChain; createTime: Scalars['Int']['output']; decimals: Scalars['Int']['output']; @@ -285,18 +378,27 @@ export type GqlPoolComposableStable = GqlPoolBase & { dynamicData: GqlPoolDynamicData; factory?: Maybe; id: Scalars['ID']['output']; + /** @deprecated Removed without replacement */ investConfig: GqlPoolInvestConfig; name: Scalars['String']['output']; nestingType: GqlPoolNestingType; owner: Scalars['Bytes']['output']; poolTokens: Array; + protocolVersion: Scalars['Int']['output']; staking?: Maybe; symbol: Scalars['String']['output']; + tags?: Maybe>>; + /** + * All tokens of the pool. If it is a nested pool, the nested pool is expanded with its own tokens again. + * @deprecated Use poolTokens instead + */ tokens: Array; type: GqlPoolType; userBalance?: Maybe; + /** @deprecated use protocolVersion instead */ vaultVersion: Scalars['Int']['output']; version: Scalars['Int']['output']; + /** @deprecated Removed without replacement */ withdrawConfig: GqlPoolWithdrawConfig; }; @@ -305,6 +407,7 @@ export type GqlPoolComposableStableNested = { address: Scalars['Bytes']['output']; amp: Scalars['BigInt']['output']; bptPriceRate: Scalars['BigDecimal']['output']; + categories?: Maybe>>; createTime: Scalars['Int']['output']; factory?: Maybe; id: Scalars['ID']['output']; @@ -313,6 +416,8 @@ export type GqlPoolComposableStableNested = { owner: Scalars['Bytes']['output']; swapFee: Scalars['BigDecimal']['output']; symbol: Scalars['String']['output']; + tags?: Maybe>>; + /** @deprecated Use poolTokens instead */ tokens: Array; totalLiquidity: Scalars['BigDecimal']['output']; totalShares: Scalars['BigDecimal']['output']; @@ -322,7 +427,13 @@ export type GqlPoolComposableStableNested = { export type GqlPoolDynamicData = { __typename?: 'GqlPoolDynamicData'; + /** Protocol and pool creator fees combined */ + aggregateSwapFee: Scalars['BigDecimal']['output']; + /** Protocol and pool creator fees combined */ + aggregateYieldFee: Scalars['BigDecimal']['output']; + /** @deprecated Use aprItems instead */ apr: GqlPoolApr; + aprItems: Array; fees24h: Scalars['BigDecimal']['output']; fees24hAth: Scalars['BigDecimal']['output']; fees24hAthTimestamp: Scalars['Int']['output']; @@ -330,6 +441,7 @@ export type GqlPoolDynamicData = { fees24hAtlTimestamp: Scalars['Int']['output']; fees48h: Scalars['BigDecimal']['output']; holdersCount: Scalars['BigInt']['output']; + /** True for bricked pools */ isInRecoveryMode: Scalars['Boolean']['output']; isPaused: Scalars['Boolean']['output']; lifetimeSwapFees: Scalars['BigDecimal']['output']; @@ -339,6 +451,11 @@ export type GqlPoolDynamicData = { sharePriceAthTimestamp: Scalars['Int']['output']; sharePriceAtl: Scalars['BigDecimal']['output']; sharePriceAtlTimestamp: Scalars['Int']['output']; + /** CowAmm specific, equivalent of swap fees */ + surplus24h: Scalars['BigDecimal']['output']; + /** CowAmm specific, equivalent of swap fees */ + surplus48h: Scalars['BigDecimal']['output']; + /** Disabled for bricked pools */ swapEnabled: Scalars['Boolean']['output']; swapFee: Scalars['BigDecimal']['output']; swapsCount: Scalars['BigInt']['output']; @@ -365,6 +482,7 @@ export type GqlPoolElement = GqlPoolBase & { address: Scalars['Bytes']['output']; allTokens: Array; baseToken: Scalars['Bytes']['output']; + categories?: Maybe>>; chain: GqlChain; createTime: Scalars['Int']['output']; decimals: Scalars['Int']['output']; @@ -372,34 +490,53 @@ export type GqlPoolElement = GqlPoolBase & { dynamicData: GqlPoolDynamicData; factory?: Maybe; id: Scalars['ID']['output']; + /** @deprecated Removed without replacement */ investConfig: GqlPoolInvestConfig; name: Scalars['String']['output']; owner: Scalars['Bytes']['output']; poolTokens: Array; principalToken: Scalars['Bytes']['output']; + protocolVersion: Scalars['Int']['output']; staking?: Maybe; symbol: Scalars['String']['output']; + tags?: Maybe>>; + /** @deprecated Use poolTokens instead */ tokens: Array; type: GqlPoolType; unitSeconds: Scalars['BigInt']['output']; userBalance?: Maybe; + /** @deprecated use protocolVersion instead */ vaultVersion: Scalars['Int']['output']; version: Scalars['Int']['output']; + /** @deprecated Removed without replacement */ withdrawConfig: GqlPoolWithdrawConfig; }; +/** Represents an event that occurs in a pool. */ export type GqlPoolEvent = { + /** The block number of the event. */ blockNumber: Scalars['Int']['output']; + /** The block timestamp of the event. */ blockTimestamp: Scalars['Int']['output']; + /** The chain on which the event occurred. */ chain: GqlChain; + /** The unique identifier of the event. */ id: Scalars['ID']['output']; + /** The log index of the event. */ logIndex: Scalars['Int']['output']; + /** The pool ID associated with the event. */ poolId: Scalars['String']['output']; + /** The sender of the event. */ sender: Scalars['String']['output']; + /** The timestamp of the event. */ timestamp: Scalars['Int']['output']; + /** The transaction hash of the event. */ tx: Scalars['String']['output']; + /** The type of the event. */ type: GqlPoolEventType; + /** The user address associated with the event. */ userAddress: Scalars['String']['output']; + /** The USD value of this event. */ valueUSD: Scalars['Float']['output']; }; @@ -423,11 +560,15 @@ export type GqlPoolEventsDataRange = | '%future added value'; export type GqlPoolEventsFilter = { - chain: GqlChain; - poolId: Scalars['String']['input']; + chainIn?: InputMaybe>>; + poolIdIn?: InputMaybe>>; range?: InputMaybe; typeIn?: InputMaybe>>; userAddress?: InputMaybe; + /** USD value of the event */ + valueUSD_gt?: InputMaybe; + /** USD value of the event */ + valueUSD_gte?: InputMaybe; }; export type GqlPoolFeaturedPool = { @@ -449,8 +590,6 @@ export type GqlPoolFeaturedPoolGroup = { export type GqlPoolFeaturedPoolGroupItem = GqlFeaturePoolGroupItemExternalLink | GqlPoolMinimal; export type GqlPoolFilter = { - categoryIn?: InputMaybe>; - categoryNotIn?: InputMaybe>; chainIn?: InputMaybe>; chainNotIn?: InputMaybe>; createTime?: InputMaybe; @@ -461,15 +600,33 @@ export type GqlPoolFilter = { minTvl?: InputMaybe; poolTypeIn?: InputMaybe>; poolTypeNotIn?: InputMaybe>; + protocolVersionIn?: InputMaybe>; + /** + * For list of tags see: https://github.com/balancer/metadata/blob/main/pools/index.json + * Use uppercase + */ + tagIn?: InputMaybe>; + /** + * For list of tags see: https://github.com/balancer/metadata/blob/main/pools/index.json + * Use uppercase + */ + tagNotIn?: InputMaybe>; tokensIn?: InputMaybe>; tokensNotIn?: InputMaybe>; userAddress?: InputMaybe; - vaultVersionIn?: InputMaybe>; }; export type GqlPoolFilterCategory = | 'BLACK_LISTED' | 'INCENTIVIZED' + | 'LRT' + | 'POINTS' + | 'POINTS_EIGENLAYER' + | 'POINTS_GYRO' + | 'POINTS_KELP' + | 'POINTS_RENZO' + | 'POINTS_SWELL' + | 'SUPERFEST' | '%future added value'; export type GqlPoolFx = GqlPoolBase & { @@ -478,6 +635,7 @@ export type GqlPoolFx = GqlPoolBase & { allTokens: Array; alpha: Scalars['String']['output']; beta: Scalars['String']['output']; + categories?: Maybe>>; chain: GqlChain; createTime: Scalars['Int']['output']; decimals: Scalars['Int']['output']; @@ -487,18 +645,27 @@ export type GqlPoolFx = GqlPoolBase & { epsilon: Scalars['String']['output']; factory?: Maybe; id: Scalars['ID']['output']; + /** @deprecated Removed without replacement */ investConfig: GqlPoolInvestConfig; lambda: Scalars['String']['output']; name: Scalars['String']['output']; owner?: Maybe; poolTokens: Array; + protocolVersion: Scalars['Int']['output']; staking?: Maybe; symbol: Scalars['String']['output']; + tags?: Maybe>>; + /** + * All tokens of the pool. If it is a nested pool, the nested pool is expanded with its own tokens again. + * @deprecated Use poolTokens instead + */ tokens: Array; type: GqlPoolType; userBalance?: Maybe; + /** @deprecated use protocolVersion instead */ vaultVersion: Scalars['Int']['output']; version: Scalars['Int']['output']; + /** @deprecated Removed without replacement */ withdrawConfig: GqlPoolWithdrawConfig; }; @@ -509,6 +676,7 @@ export type GqlPoolGyro = GqlPoolBase & { alpha: Scalars['String']['output']; beta: Scalars['String']['output']; c: Scalars['String']['output']; + categories?: Maybe>>; chain: GqlChain; createTime: Scalars['Int']['output']; dSq: Scalars['String']['output']; @@ -517,30 +685,39 @@ export type GqlPoolGyro = GqlPoolBase & { dynamicData: GqlPoolDynamicData; factory?: Maybe; id: Scalars['ID']['output']; + /** @deprecated Removed without replacement */ investConfig: GqlPoolInvestConfig; lambda: Scalars['String']['output']; name: Scalars['String']['output']; nestingType: GqlPoolNestingType; owner: Scalars['Bytes']['output']; poolTokens: Array; + protocolVersion: Scalars['Int']['output']; root3Alpha: Scalars['String']['output']; s: Scalars['String']['output']; sqrtAlpha: Scalars['String']['output']; sqrtBeta: Scalars['String']['output']; staking?: Maybe; symbol: Scalars['String']['output']; + tags?: Maybe>>; tauAlphaX: Scalars['String']['output']; tauAlphaY: Scalars['String']['output']; tauBetaX: Scalars['String']['output']; tauBetaY: Scalars['String']['output']; + /** + * All tokens of the pool. If it is a nested pool, the nested pool is expanded with its own tokens again. + * @deprecated Use poolTokens instead + */ tokens: Array; type: GqlPoolType; u: Scalars['String']['output']; userBalance?: Maybe; v: Scalars['String']['output']; + /** @deprecated use protocolVersion instead */ vaultVersion: Scalars['Int']['output']; version: Scalars['Int']['output']; w: Scalars['String']['output']; + /** @deprecated Removed without replacement */ withdrawConfig: GqlPoolWithdrawConfig; z: Scalars['String']['output']; }; @@ -592,6 +769,7 @@ export type GqlPoolLiquidityBootstrapping = GqlPoolBase & { __typename?: 'GqlPoolLiquidityBootstrapping'; address: Scalars['Bytes']['output']; allTokens: Array; + categories?: Maybe>>; chain: GqlChain; createTime: Scalars['Int']['output']; decimals: Scalars['Int']['output']; @@ -599,18 +777,27 @@ export type GqlPoolLiquidityBootstrapping = GqlPoolBase & { dynamicData: GqlPoolDynamicData; factory?: Maybe; id: Scalars['ID']['output']; + /** @deprecated Removed without replacement */ investConfig: GqlPoolInvestConfig; name: Scalars['String']['output']; nestingType: GqlPoolNestingType; owner: Scalars['Bytes']['output']; poolTokens: Array; + protocolVersion: Scalars['Int']['output']; staking?: Maybe; symbol: Scalars['String']['output']; + tags?: Maybe>>; + /** + * All tokens of the pool. If it is a nested pool, the nested pool is expanded with its own tokens again. + * @deprecated Use poolTokens instead + */ tokens: Array; type: GqlPoolType; userBalance?: Maybe; + /** @deprecated use protocolVersion instead */ vaultVersion: Scalars['Int']['output']; version: Scalars['Int']['output']; + /** @deprecated Removed without replacement */ withdrawConfig: GqlPoolWithdrawConfig; }; @@ -619,6 +806,7 @@ export type GqlPoolMetaStable = GqlPoolBase & { address: Scalars['Bytes']['output']; allTokens: Array; amp: Scalars['BigInt']['output']; + categories?: Maybe>>; chain: GqlChain; createTime: Scalars['Int']['output']; decimals: Scalars['Int']['output']; @@ -626,17 +814,23 @@ export type GqlPoolMetaStable = GqlPoolBase & { dynamicData: GqlPoolDynamicData; factory?: Maybe; id: Scalars['ID']['output']; + /** @deprecated Removed without replacement */ investConfig: GqlPoolInvestConfig; name: Scalars['String']['output']; owner: Scalars['Bytes']['output']; poolTokens: Array; + protocolVersion: Scalars['Int']['output']; staking?: Maybe; symbol: Scalars['String']['output']; + tags?: Maybe>>; + /** @deprecated Use poolTokens instead */ tokens: Array; type: GqlPoolType; userBalance?: Maybe; + /** @deprecated use protocolVersion instead */ vaultVersion: Scalars['Int']['output']; version: Scalars['Int']['output']; + /** @deprecated Removed without replacement */ withdrawConfig: GqlPoolWithdrawConfig; }; @@ -647,38 +841,66 @@ export type GqlPoolMinimal = { address: Scalars['Bytes']['output']; /** Returns all pool tokens, including any nested tokens and phantom BPTs */ allTokens: Array; + /** List of categories assigned by the team based on external factors */ + categories?: Maybe>>; /** The chain on which the pool is deployed */ chain: GqlChain; /** The timestamp the pool was created. */ createTime: Scalars['Int']['output']; /** The decimals of the BPT, usually 18 */ decimals: Scalars['Int']['output']; - /** Only returns main tokens, also known as leave tokens. Wont return any nested BPTs. Used for displaying the tokens that the pool consists of. */ + /** Only returns main or underlying tokens, also known as leave tokens. Wont return any nested BPTs. Used for displaying the tokens that the pool consists of. */ displayTokens: Array; /** Dynamic data such as token balances, swap fees or volume */ dynamicData: GqlPoolDynamicData; /** The factory contract address from which the pool was created. */ factory?: Maybe; - /** The pool id. This is equal to the address for vaultVersion 3 pools */ + /** Whether at least one token in this pool is considered an ERC4626 token. */ + hasErc4626: Scalars['Boolean']['output']; + /** Hook assigned to a pool */ + hook?: Maybe; + /** The pool id. This is equal to the address for protocolVersion 3 pools */ id: Scalars['ID']['output']; + /** Pool is receiving rewards when liquidity tokens are staked */ + incentivized: Scalars['Boolean']['output']; /** The name of the pool as per contract */ name: Scalars['String']['output']; /** The wallet address of the owner of the pool. Pool owners can set certain properties like swapFees or AMP. */ owner?: Maybe; + /** The protocol version on which the pool is deployed, 1, 2 or 3 */ + protocolVersion: Scalars['Int']['output']; /** Staking options of this pool which emit additional rewards */ staking?: Maybe; /** The token symbol of the pool as per contract */ symbol: Scalars['String']['output']; + /** List of tags assigned by the team based on external factors */ + tags?: Maybe>>; /** The pool type, such as weighted, stable, etc. */ type: GqlPoolType; /** If a user address was provided in the query, the user balance is populated here */ userBalance?: Maybe; - /** The vault version on which the pool is deployed, 2 or 3 */ + /** + * The vault version on which the pool is deployed, 2 or 3 + * @deprecated use protocolVersion instead + */ vaultVersion: Scalars['Int']['output']; /** The version of the pool type. */ version: Scalars['Int']['output']; }; +/** Result of the poolReloadPools mutation */ +export type GqlPoolMutationResult = { + __typename?: 'GqlPoolMutationResult'; + /** The chain that was reloaded. */ + chain: GqlChain; + /** The error message */ + error?: Maybe; + /** Whether it was successful or not. */ + success: Scalars['Boolean']['output']; + /** The type of pools that were reloaded. */ + type: Scalars['String']['output']; +}; + export type GqlPoolNestedUnion = GqlPoolComposableStableNested; export type GqlPoolNestingType = @@ -710,10 +932,12 @@ export type GqlPoolSnapshot = { id: Scalars['ID']['output']; poolId: Scalars['String']['output']; sharePrice: Scalars['String']['output']; + surplus24h: Scalars['String']['output']; swapsCount: Scalars['String']['output']; timestamp: Scalars['Int']['output']; totalLiquidity: Scalars['String']['output']; totalShares: Scalars['String']['output']; + totalSurplus: Scalars['String']['output']; totalSwapFee: Scalars['String']['output']; totalSwapVolume: Scalars['String']['output']; volume24h: Scalars['String']['output']; @@ -732,6 +956,7 @@ export type GqlPoolStable = GqlPoolBase & { address: Scalars['Bytes']['output']; allTokens: Array; amp: Scalars['BigInt']['output']; + categories?: Maybe>>; chain: GqlChain; createTime: Scalars['Int']['output']; decimals: Scalars['Int']['output']; @@ -739,17 +964,23 @@ export type GqlPoolStable = GqlPoolBase & { dynamicData: GqlPoolDynamicData; factory?: Maybe; id: Scalars['ID']['output']; + /** @deprecated Removed without replacement */ investConfig: GqlPoolInvestConfig; name: Scalars['String']['output']; owner: Scalars['Bytes']['output']; poolTokens: Array; + protocolVersion: Scalars['Int']['output']; staking?: Maybe; symbol: Scalars['String']['output']; + tags?: Maybe>>; + /** @deprecated Use poolTokens instead */ tokens: Array; type: GqlPoolType; userBalance?: Maybe; + /** @deprecated use protocolVersion instead */ vaultVersion: Scalars['Int']['output']; version: Scalars['Int']['output']; + /** @deprecated Removed without replacement */ withdrawConfig: GqlPoolWithdrawConfig; }; @@ -766,12 +997,23 @@ export type GqlPoolStableComposablePoolData = { export type GqlPoolStaking = { __typename?: 'GqlPoolStaking'; address: Scalars['String']['output']; + aura?: Maybe; chain: GqlChain; farm?: Maybe; gauge?: Maybe; id: Scalars['ID']['output']; reliquary?: Maybe; type: GqlPoolStakingType; + vebal?: Maybe; +}; + +export type GqlPoolStakingAura = { + __typename?: 'GqlPoolStakingAura'; + apr: Scalars['Float']['output']; + auraPoolAddress: Scalars['String']['output']; + auraPoolId: Scalars['String']['output']; + id: Scalars['ID']['output']; + isShutdown: Scalars['Boolean']['output']; }; export type GqlPoolStakingFarmRewarder = { @@ -842,12 +1084,20 @@ export type GqlPoolStakingReliquaryFarmLevel = { }; export type GqlPoolStakingType = + | 'AURA' | 'FRESH_BEETS' | 'GAUGE' | 'MASTER_CHEF' | 'RELIQUARY' + | 'VEBAL' | '%future added value'; +export type GqlPoolStakingVebal = { + __typename?: 'GqlPoolStakingVebal'; + id: Scalars['ID']['output']; + vebalAddress: Scalars['String']['output']; +}; + export type GqlPoolSwap = { __typename?: 'GqlPoolSwap'; chain: GqlChain; @@ -863,21 +1113,75 @@ export type GqlPoolSwap = { valueUSD: Scalars['Float']['output']; }; +/** Represents an event that occurs when a swap is made in a pool using the CowAmm protocol. */ +export type GqlPoolSwapEventCowAmm = GqlPoolEvent & { + __typename?: 'GqlPoolSwapEventCowAmm'; + /** The block number of the event. */ + blockNumber: Scalars['Int']['output']; + /** The block timestamp of the event. */ + blockTimestamp: Scalars['Int']['output']; + /** The chain on which the event occurred. */ + chain: GqlChain; + /** The fee that this swap generated. */ + fee: GqlPoolEventAmount; + /** The unique identifier of the event. */ + id: Scalars['ID']['output']; + /** The log index of the event. */ + logIndex: Scalars['Int']['output']; + /** The pool ID associated with the event. */ + poolId: Scalars['String']['output']; + /** The sender of the event. */ + sender: Scalars['String']['output']; + /** The surplus generated by the swap. */ + surplus: GqlPoolEventAmount; + /** The timestamp of the event. */ + timestamp: Scalars['Int']['output']; + /** The token that was swapped in the event. */ + tokenIn: GqlPoolEventAmount; + /** The token that was swapped out in the event. */ + tokenOut: GqlPoolEventAmount; + /** The transaction hash of the event. */ + tx: Scalars['String']['output']; + /** The type of the event. */ + type: GqlPoolEventType; + /** The user address associated with the event. */ + userAddress: Scalars['String']['output']; + /** The value of the event in USD. */ + valueUSD: Scalars['Float']['output']; +}; + +/** Represents an event that occurs when a swap is made in a pool. */ export type GqlPoolSwapEventV3 = GqlPoolEvent & { __typename?: 'GqlPoolSwapEventV3'; + /** The block number of the event. */ blockNumber: Scalars['Int']['output']; + /** The block timestamp of the event. */ blockTimestamp: Scalars['Int']['output']; + /** The chain on which the event occurred. */ chain: GqlChain; + /** The fee that this swap generated. */ + fee: GqlPoolEventAmount; + /** The unique identifier of the event. */ id: Scalars['ID']['output']; + /** The log index of the event. */ logIndex: Scalars['Int']['output']; + /** The pool ID associated with the event. */ poolId: Scalars['String']['output']; + /** The sender of the event. */ sender: Scalars['String']['output']; + /** The timestamp of the event. */ timestamp: Scalars['Int']['output']; + /** The token that was swapped in the event. */ tokenIn: GqlPoolEventAmount; + /** The token that was swapped out in the event. */ tokenOut: GqlPoolEventAmount; + /** The transaction hash of the event. */ tx: Scalars['String']['output']; + /** The type of the event. */ type: GqlPoolEventType; + /** The user address associated with the event. */ userAddress: Scalars['String']['output']; + /** The value of the event in USD. */ valueUSD: Scalars['Float']['output']; }; @@ -940,19 +1244,45 @@ export type GqlPoolTokenComposableStable = GqlPoolTokenBase & { export type GqlPoolTokenComposableStableNestedUnion = GqlPoolToken; +/** + * All info on the pool token. It will also include the nested pool if the token is a BPT. It will only support 1 level of nesting. + * A second (unsupported) level of nesting is shown by having hasNestedPool = true but nestedPool = null. + */ export type GqlPoolTokenDetail = { __typename?: 'GqlPoolTokenDetail'; + /** Address of the pool token. */ address: Scalars['String']['output']; + /** Balance of the pool token inside the pool. */ balance: Scalars['BigDecimal']['output']; + /** USD Balance of the pool token. */ + balanceUSD: Scalars['BigDecimal']['output']; + /** Decimals of the pool token. */ decimals: Scalars['Int']['output']; + /** Indicates whether this token is a BPT and therefor has a nested pool. */ hasNestedPool: Scalars['Boolean']['output']; + /** Id of the token. A combination of pool id and token address. */ id: Scalars['ID']['output']; + /** Index of the pool token in the pool as returned by the vault. */ index: Scalars['Int']['output']; + /** Whether the token is in the allow list. */ + isAllowed: Scalars['Boolean']['output']; + /** Whether the token is considered an ERC4626 token. */ + isErc4626: Scalars['Boolean']['output']; + /** Name of the pool token. */ name: Scalars['String']['output']; + /** Additional data for the nested pool if the token is a BPT. Null otherwise. */ nestedPool?: Maybe; + /** If it is an appreciating token, it shows the current price rate. 1 otherwise. */ priceRate: Scalars['BigDecimal']['output']; + /** The address of the price rate provider. */ priceRateProvider?: Maybe; + /** Additional data for the price rate provider, such as reviews or warnings. */ + priceRateProviderData?: Maybe; + /** Symbol of the pool token. */ symbol: Scalars['String']['output']; + /** If it is an Erc4262, this will be the underlying token if present in the API. */ + underlyingToken?: Maybe; + /** The weight of the token in the pool if it is a weighted pool, null otherwise */ weight?: Maybe; }; @@ -971,6 +1301,7 @@ export type GqlPoolTokenExpanded = { address: Scalars['String']['output']; decimals: Scalars['Int']['output']; id: Scalars['ID']['output']; + isErc4626: Scalars['Boolean']['output']; isMainToken: Scalars['Boolean']['output']; isNested: Scalars['Boolean']['output']; isPhantomBpt: Scalars['Boolean']['output']; @@ -984,6 +1315,7 @@ export type GqlPoolTokenUnion = GqlPoolToken | GqlPoolTokenComposableStable; /** Supported pool types */ export type GqlPoolType = | 'COMPOSABLE_STABLE' + | 'COW_AMM' | 'ELEMENT' | 'FX' | 'GYRO' @@ -1003,10 +1335,8 @@ export type GqlPoolUnion = GqlPoolComposableStable | GqlPoolElement | GqlPoolFx /** If a user address was provided in the query, the user balance is populated here */ export type GqlPoolUserBalance = { __typename?: 'GqlPoolUserBalance'; - /** The staked balance in either a gauge or farm as float. */ - stakedBalance: Scalars['AmountHumanReadable']['output']; - /** The staked balance in either a gauge or farm in USD as float. */ - stakedBalanceUsd: Scalars['Float']['output']; + /** The staked BPT balances of the user. */ + stakedBalances: Array; /** Total balance (wallet + staked) as float */ totalBalance: Scalars['AmountHumanReadable']['output']; /** Total balance (wallet + staked) in USD as float */ @@ -1027,6 +1357,7 @@ export type GqlPoolWeighted = GqlPoolBase & { __typename?: 'GqlPoolWeighted'; address: Scalars['Bytes']['output']; allTokens: Array; + categories?: Maybe>>; chain: GqlChain; createTime: Scalars['Int']['output']; decimals: Scalars['Int']['output']; @@ -1034,19 +1365,27 @@ export type GqlPoolWeighted = GqlPoolBase & { dynamicData: GqlPoolDynamicData; factory?: Maybe; id: Scalars['ID']['output']; + /** @deprecated Removed without replacement */ investConfig: GqlPoolInvestConfig; name: Scalars['String']['output']; nestingType: GqlPoolNestingType; owner: Scalars['Bytes']['output']; poolTokens: Array; + protocolVersion: Scalars['Int']['output']; staking?: Maybe; symbol: Scalars['String']['output']; - /** All tokens of the pool. If it is a nested pool, the nested pool is expanded with its own tokens again. */ + tags?: Maybe>>; + /** + * All tokens of the pool. If it is a nested pool, the nested pool is expanded with its own tokens again. + * @deprecated Use poolTokens instead + */ tokens: Array; type: GqlPoolType; userBalance?: Maybe; + /** @deprecated use protocolVersion instead */ vaultVersion: Scalars['Int']['output']; version: Scalars['Int']['output']; + /** @deprecated Removed without replacement */ withdrawConfig: GqlPoolWithdrawConfig; }; @@ -1073,6 +1412,36 @@ export type GqlPriceImpact = { priceImpact?: Maybe; }; +/** Represents the data of a price rate provider */ +export type GqlPriceRateProviderData = { + __typename?: 'GqlPriceRateProviderData'; + /** The address of the price rate provider */ + address: Scalars['String']['output']; + /** The factory used to create the price rate provider, if applicable */ + factory?: Maybe; + /** The name of the price rate provider */ + name?: Maybe; + /** The filename of the review of the price rate provider */ + reviewFile?: Maybe; + /** Indicates if the price rate provider has been reviewed */ + reviewed: Scalars['Boolean']['output']; + /** A summary of the price rate provider, usually just says safe or unsafe */ + summary?: Maybe; + /** Upgradeable components of the price rate provider */ + upgradeableComponents?: Maybe>>; + /** Warnings associated with the price rate provider */ + warnings?: Maybe>; +}; + +/** Represents an upgradeable component of a price rate provider */ +export type GqlPriceRateProviderUpgradeableComponent = { + __typename?: 'GqlPriceRateProviderUpgradeableComponent'; + /** The entry point / proxy of the upgradeable component */ + entryPoint: Scalars['String']['output']; + /** Indicates if the implementation of the component has been reviewed */ + implementationReviewed: Scalars['String']['output']; +}; + export type GqlProtocolMetricsAggregated = { __typename?: 'GqlProtocolMetricsAggregated'; chains: Array; @@ -1252,6 +1621,8 @@ export type GqlSorGetSwapPaths = { paths: Array; /** Price impact of the path */ priceImpact: GqlPriceImpact; + /** The version of the protocol these paths are from */ + protocolVersion: Scalars['Int']['output']; /** The return amount in human form. Return amount is either tokenOutAmount (if swapType is exactIn) or tokenInAmount (if swapType is exactOut) */ returnAmount: Scalars['AmountHumanReadable']['output']; /** The return amount in a raw form */ @@ -1276,7 +1647,10 @@ export type GqlSorGetSwapPaths = { tokenOut: Scalars['String']['output']; /** The amount of tokenOut in human form */ tokenOutAmount: Scalars['AmountHumanReadable']['output']; - /** The version of the vault these paths are from */ + /** + * The version of the vault these paths are from + * @deprecated Use protocolVersion instead + */ vaultVersion: Scalars['Int']['output']; }; @@ -1308,13 +1682,20 @@ export type GqlSorPath = { __typename?: 'GqlSorPath'; /** Input amount of this path in scaled form */ inputAmountRaw: Scalars['String']['output']; + /** A sorted list of booleans that indicate if the respective pool is a buffer */ + isBuffer: Array>; /** Output amount of this path in scaled form */ outputAmountRaw: Scalars['String']['output']; /** A sorted list of pool ids that are used in this path */ pools: Array>; + /** The version of the protocol these paths are from */ + protocolVersion: Scalars['Int']['output']; /** A sorted list of tokens that are ussed in this path */ tokens: Array>; - /** Vault version of this path. */ + /** + * Vault version of this path. + * @deprecated Use protocolVersion instead + */ vaultVersion: Scalars['Int']['output']; }; @@ -1391,21 +1772,44 @@ export type GqlSwapCallDataInput = { slippagePercentage: Scalars['String']['input']; }; +/** Represents a token */ export type GqlToken = { __typename?: 'GqlToken'; + /** The address of the token */ address: Scalars['String']['output']; + /** The chain of the token */ chain: GqlChain; + /** The chain ID of the token */ chainId: Scalars['Int']['output']; + /** The coingecko ID for this token, if present */ + coingeckoId?: Maybe; + /** The number of decimal places for the token */ decimals: Scalars['Int']['output']; + /** The description of the token */ description?: Maybe; + /** The Discord URL of the token */ discordUrl?: Maybe; + /** Whether the token is considered an ERC4626 token. */ + isErc4626: Scalars['Boolean']['output']; + /** The logo URI of the token */ logoURI?: Maybe; + /** The name of the token */ name: Scalars['String']['output']; + /** The rate provider data for the token */ + priceRateProviderData?: Maybe; + /** The priority of the token, can be used for sorting. */ priority: Scalars['Int']['output']; + /** The rate provider data for the token */ + rateProviderData?: Maybe; + /** The symbol of the token */ symbol: Scalars['String']['output']; + /** The Telegram URL of the token */ telegramUrl?: Maybe; + /** Indicates if the token is tradable */ tradable: Scalars['Boolean']['output']; + /** The Twitter username of the token */ twitterUsername?: Maybe; + /** The website URL of the token */ websiteUrl?: Maybe; }; @@ -1443,25 +1847,52 @@ export type GqlTokenData = { websiteUrl?: Maybe; }; +/** Represents additional data for a token */ export type GqlTokenDynamicData = { __typename?: 'GqlTokenDynamicData'; + /** The all-time high price of the token */ ath: Scalars['Float']['output']; + /** The all-time low price of the token */ atl: Scalars['Float']['output']; + /** The fully diluted valuation of the token */ fdv?: Maybe; + /** The highest price in the last 24 hours */ high24h: Scalars['Float']['output']; + /** The unique identifier of the dynamic data */ id: Scalars['String']['output']; + /** The lowest price in the last 24 hours */ low24h: Scalars['Float']['output']; + /** The market capitalization of the token */ marketCap?: Maybe; + /** The current price of the token */ price: Scalars['Float']['output']; + /** The price change in the last 24 hours */ priceChange24h: Scalars['Float']['output']; + /** The percentage price change in the last 7 days */ priceChangePercent7d?: Maybe; + /** The percentage price change in the last 14 days */ priceChangePercent14d?: Maybe; + /** The percentage price change in the last 24 hours */ priceChangePercent24h: Scalars['Float']['output']; + /** The percentage price change in the last 30 days */ priceChangePercent30d?: Maybe; + /** The address of the token */ tokenAddress: Scalars['String']['output']; + /** The timestamp when the data was last updated */ updatedAt: Scalars['String']['output']; }; +/** Result of the poolReloadPools mutation */ +export type GqlTokenMutationResult = { + __typename?: 'GqlTokenMutationResult'; + /** The chain that was reloaded. */ + chain: GqlChain; + /** The error message */ + error?: Maybe; + /** Whether it was successful or not. */ + success: Scalars['Boolean']['output']; +}; + export type GqlTokenPrice = { __typename?: 'GqlTokenPrice'; address: Scalars['String']['output']; @@ -1503,46 +1934,119 @@ export type GqlUserPoolBalance = { walletBalance: Scalars['AmountHumanReadable']['output']; }; +export type GqlUserStakedBalance = { + __typename?: 'GqlUserStakedBalance'; + /** The staked BPT balance as float. */ + balance: Scalars['AmountHumanReadable']['output']; + /** The steaked BPT balance in USD as float. */ + balanceUsd: Scalars['Float']['output']; + /** The id of the staking to match with GqlPoolStaking.id. */ + stakingId: Scalars['String']['output']; + /** The staking type (Gauge, farm, aura, etc.) in which this balance is staked. */ + stakingType: GqlPoolStakingType; +}; + export type GqlUserSwapVolumeFilter = { poolIdIn?: InputMaybe>; tokenInIn?: InputMaybe>; tokenOutIn?: InputMaybe>; }; +export type GqlVeBalBalance = { + __typename?: 'GqlVeBalBalance'; + balance: Scalars['AmountHumanReadable']['output']; + chain: GqlChain; + locked: Scalars['AmountHumanReadable']['output']; + lockedUsd: Scalars['AmountHumanReadable']['output']; +}; + export type GqlVeBalUserData = { __typename?: 'GqlVeBalUserData'; balance: Scalars['AmountHumanReadable']['output']; + locked: Scalars['AmountHumanReadable']['output']; + lockedUsd: Scalars['AmountHumanReadable']['output']; rank?: Maybe; }; +/** The Gauge that can be voted on through veBAL and that will ultimately receive the rewards. */ export type GqlVotingGauge = { __typename?: 'GqlVotingGauge'; + /** The timestamp the gauge was added. */ addedTimestamp?: Maybe; + /** The address of the root gauge on Ethereum mainnet. */ address: Scalars['Bytes']['output']; + /** The address of the child gauge on the specific chain. */ childGaugeAddress?: Maybe; + /** Whether the gauge is killed or not. */ isKilled: Scalars['Boolean']['output']; + /** The relative weight the gauge received this epoch (not more than 1.0). */ + relativeWeight: Scalars['String']['output']; + /** The relative weight cap. 1.0 for uncapped. */ relativeWeightCap?: Maybe; }; +/** A token inside of a pool with a voting gauge. */ export type GqlVotingGaugeToken = { __typename?: 'GqlVotingGaugeToken'; + /** The address of the token. */ address: Scalars['String']['output']; + /** The URL to the token logo. */ logoURI: Scalars['String']['output']; + /** The symbol of the token. */ symbol: Scalars['String']['output']; + /** If it is a weighted pool, the weigh of the token is shown here in %. 0.5 = 50%. */ weight?: Maybe; }; +/** The pool that can be voted on through veBAL */ export type GqlVotingPool = { __typename?: 'GqlVotingPool'; + /** The address of the pool. */ address: Scalars['Bytes']['output']; + /** The chain this pool is on. */ chain: GqlChain; + /** The gauge that is connected to the pool and that will receive the rewards. */ gauge: GqlVotingGauge; + /** Pool ID */ id: Scalars['ID']['output']; + /** The symbol of the pool. */ symbol: Scalars['String']['output']; + /** The tokens inside the pool. */ tokens: Array; + /** The type of the pool. */ type: GqlPoolType; }; +/** Hook data */ +export type Hook = { + __typename?: 'Hook'; + address: Scalars['String']['output']; + chain: GqlChain; + /** Data points changing over time */ + dynamicData?: Maybe; + /** True when hook can change the amounts send to the vault. Necessary to deduct the fees. */ + enableHookAdjustedAmounts: Scalars['Boolean']['output']; + /** List of pools using the hook */ + poolsIds?: Maybe>>; + shouldCallAfterAddLiquidity: Scalars['Boolean']['output']; + shouldCallAfterInitialize: Scalars['Boolean']['output']; + shouldCallAfterRemoveLiquidity: Scalars['Boolean']['output']; + shouldCallAfterSwap: Scalars['Boolean']['output']; + shouldCallBeforeAddLiquidity: Scalars['Boolean']['output']; + shouldCallBeforeInitialize: Scalars['Boolean']['output']; + shouldCallBeforeRemoveLiquidity: Scalars['Boolean']['output']; + shouldCallBeforeSwap: Scalars['Boolean']['output']; + shouldCallComputeDynamicSwapFee: Scalars['Boolean']['output']; +}; + +/** Collection of hook specific data. Percentage format is 0.01 -> 0.01%. */ +export type HookData = { + __typename?: 'HookData'; + addLiquidityFeePercentage?: Maybe; + removeLiquidityFeePercentage?: Maybe; + swapFeePercentage?: Maybe; +}; + export type Mutation = { __typename?: 'Mutation'; beetsPoolLoadReliquarySnapshotsForAllFarms: Scalars['String']['output']; @@ -1559,7 +2063,9 @@ export type Mutation = { poolLoadSnapshotsForPools: Scalars['String']['output']; poolReloadAllPoolAprs: Scalars['String']['output']; poolReloadAllTokenNestedPoolIds: Scalars['String']['output']; + poolReloadPools: Array; poolReloadStakingForAllPools: Scalars['String']['output']; + poolSyncAllCowSnapshots: Array; poolSyncAllPoolsFromSubgraph: Array; poolSyncLatestSnapshotsForAllPools: Scalars['String']['output']; poolSyncNewPoolsFromSubgraph: Array; @@ -1579,6 +2085,7 @@ export type Mutation = { sftmxSyncWithdrawalRequests: Scalars['String']['output']; tokenDeleteTokenType: Scalars['String']['output']; tokenReloadAllTokenTypes: Scalars['String']['output']; + tokenReloadErc4626Tokens: Array; tokenReloadTokenPrices?: Maybe; tokenSyncLatestFxPrices: Scalars['String']['output']; tokenSyncTokenDefinitions: Scalars['String']['output']; @@ -1625,13 +2132,23 @@ export type MutationPoolReloadAllPoolAprsArgs = { }; +export type MutationPoolReloadPoolsArgs = { + chains: Array; +}; + + export type MutationPoolReloadStakingForAllPoolsArgs = { stakingTypes: Array; }; +export type MutationPoolSyncAllCowSnapshotsArgs = { + chains: Array; +}; + + export type MutationPoolSyncLatestSnapshotsForAllPoolsArgs = { - daysToSync?: InputMaybe; + chain: GqlChain; }; @@ -1651,6 +2168,11 @@ export type MutationTokenDeleteTokenTypeArgs = { }; +export type MutationTokenReloadErc4626TokensArgs = { + chains: Array; +}; + + export type MutationTokenReloadTokenPricesArgs = { chains: Array; }; @@ -1684,18 +2206,29 @@ export type Query = { blocksGetBlocksPerSecond: Scalars['Float']['output']; blocksGetBlocksPerYear: Scalars['Float']['output']; contentGetNewsItems: Array; + /** Returns list of hooks. */ + hooks?: Maybe>; latestSyncedBlocks: GqlLatestSyncedBlocks; /** Getting swap, add and remove events with paging */ poolEvents: Array; - /** Will de deprecated in favor of poolEvents */ + /** + * Will de deprecated in favor of poolEvents + * @deprecated Use poolEvents instead + */ poolGetBatchSwaps: Array; /** Getting swap, add and remove events with range */ poolGetEvents: Array; - /** Will de deprecated in favor of poolGetFeaturedPools */ + /** + * Will de deprecated in favor of poolGetFeaturedPools + * @deprecated Use poolGetFeaturedPools instead + */ poolGetFeaturedPoolGroups: Array; /** Returns the list of featured pools for chains */ poolGetFeaturedPools: Array; - /** Will de deprecated in favor of poolEvents */ + /** + * Will de deprecated in favor of poolEvents + * @deprecated Use poolEvents instead + */ poolGetJoinExits: Array; /** Returns one pool. If a user address is provided, the user balances for the given pool will also be returned. */ poolGetPool: GqlPoolBase; @@ -1705,7 +2238,10 @@ export type Query = { poolGetPoolsCount: Scalars['Int']['output']; /** Gets all the snapshots for a given pool on a chain for a certain range */ poolGetSnapshots: Array; - /** Will de deprecated in favor of poolEvents */ + /** + * Will de deprecated in favor of poolEvents + * @deprecated Use poolEvents instead + */ poolGetSwaps: Array; protocolMetricsAggregated: GqlProtocolMetricsAggregated; protocolMetricsChain: GqlProtocolMetricsChain; @@ -1719,16 +2255,42 @@ export type Query = { sorGetSwapPaths: GqlSorGetSwapPaths; /** Get swap quote from the SOR, queries both the old and new SOR */ sorGetSwaps: GqlSorGetSwapsResponse; + /** + * Returns the candlestick chart data for a token for a given range. + * @deprecated Use tokenGetHistoricalPrices instead + */ tokenGetCandlestickChartData: Array; + /** Returns all current prices for allowed tokens for a given chain or chains */ tokenGetCurrentPrices: Array; + /** Returns the historical prices for a given set of tokens for a given chain and range */ tokenGetHistoricalPrices: Array; + /** + * DEPRECATED: Returns pricing data for a given token for a given range + * @deprecated Use tokenGetHistoricalPrices instead + */ tokenGetPriceChartData: Array; + /** + * Returns the price of either BAL or BEETS depending on chain + * @deprecated Use tokenGetTokensDynamicData instead + */ tokenGetProtocolTokenPrice: Scalars['AmountHumanReadable']['output']; + /** Returns the price of a token priced in another token for a given range. */ tokenGetRelativePriceChartData: Array; + /** + * Returns meta data for a given token such as description, website, etc. + * @deprecated Use tokenGetTokens instead + */ tokenGetTokenData?: Maybe; + /** Returns dynamic data of a token such as price, market cap, etc. */ tokenGetTokenDynamicData?: Maybe; + /** Returns all allowed tokens for a given chain or chains */ tokenGetTokens: Array; + /** + * Returns meta data for a given set of tokens such as description, website, etc. + * @deprecated Use tokenGetTokens instead + */ tokenGetTokensData: Array; + /** Returns dynamic data of a set of tokens such as price, market cap, etc. */ tokenGetTokensDynamicData: Array; userGetFbeetsBalance: GqlUserFbeetsBalance; userGetPoolBalances: Array; @@ -1740,6 +2302,8 @@ export type Query = { veBalGetTotalSupply: Scalars['AmountHumanReadable']['output']; veBalGetUser: GqlVeBalUserData; veBalGetUserBalance: Scalars['AmountHumanReadable']['output']; + veBalGetUserBalances: Array; + /** Returns all pools with veBAL gauges that can be voted on. */ veBalGetVotingList: Array; }; @@ -1755,10 +2319,15 @@ export type QueryContentGetNewsItemsArgs = { }; +export type QueryHooksArgs = { + chain?: InputMaybe; +}; + + export type QueryPoolEventsArgs = { first?: InputMaybe; skip?: InputMaybe; - where: GqlPoolEventsFilter; + where?: InputMaybe; }; @@ -1864,7 +2433,7 @@ export type QuerySorGetSwapPathsArgs = { swapType: GqlSorSwapType; tokenIn: Scalars['String']['input']; tokenOut: Scalars['String']['input']; - useVaultVersion?: InputMaybe; + useProtocolVersion?: InputMaybe; }; @@ -1974,6 +2543,29 @@ export type QueryUserGetSwapsArgs = { skip?: InputMaybe; }; + +export type QueryVeBalGetTotalSupplyArgs = { + chain?: InputMaybe; +}; + + +export type QueryVeBalGetUserArgs = { + address: Scalars['String']['input']; + chain?: InputMaybe; +}; + + +export type QueryVeBalGetUserBalanceArgs = { + address?: InputMaybe; + chain?: InputMaybe; +}; + + +export type QueryVeBalGetUserBalancesArgs = { + address: Scalars['String']['input']; + chains?: InputMaybe>; +}; + export type Token = { __typename?: 'Token'; address: Scalars['String']['output']; diff --git a/packages/gql/src/balancer-gauges/__generated__/Avalanche.server.ts b/packages/gql/src/balancer-gauges/__generated__/Avalanche.server.ts index e53f99c3c..c86756f15 100644 --- a/packages/gql/src/balancer-gauges/__generated__/Avalanche.server.ts +++ b/packages/gql/src/balancer-gauges/__generated__/Avalanche.server.ts @@ -41,6 +41,7 @@ export type Chain = | 'Arbitrum' | 'Avalanche' | 'Base' + | 'Fraxtal' | 'Gnosis' | 'Optimism' | 'Polygon' diff --git a/packages/gql/src/balancer-gauges/__generated__/Avalanche.ts b/packages/gql/src/balancer-gauges/__generated__/Avalanche.ts index dbbeb7560..9e292ac4a 100644 --- a/packages/gql/src/balancer-gauges/__generated__/Avalanche.ts +++ b/packages/gql/src/balancer-gauges/__generated__/Avalanche.ts @@ -43,6 +43,7 @@ export type Chain = | 'Arbitrum' | 'Avalanche' | 'Base' + | 'Fraxtal' | 'Gnosis' | 'Optimism' | 'Polygon' diff --git a/packages/gql/src/balancer-gauges/__generated__/Base.server.ts b/packages/gql/src/balancer-gauges/__generated__/Base.server.ts index e53f99c3c..c86756f15 100644 --- a/packages/gql/src/balancer-gauges/__generated__/Base.server.ts +++ b/packages/gql/src/balancer-gauges/__generated__/Base.server.ts @@ -41,6 +41,7 @@ export type Chain = | 'Arbitrum' | 'Avalanche' | 'Base' + | 'Fraxtal' | 'Gnosis' | 'Optimism' | 'Polygon' diff --git a/packages/gql/src/balancer-gauges/__generated__/Base.ts b/packages/gql/src/balancer-gauges/__generated__/Base.ts index dbbeb7560..9e292ac4a 100644 --- a/packages/gql/src/balancer-gauges/__generated__/Base.ts +++ b/packages/gql/src/balancer-gauges/__generated__/Base.ts @@ -43,6 +43,7 @@ export type Chain = | 'Arbitrum' | 'Avalanche' | 'Base' + | 'Fraxtal' | 'Gnosis' | 'Optimism' | 'Polygon' diff --git a/packages/gql/src/balancer-gauges/__generated__/Ethereum.server.ts b/packages/gql/src/balancer-gauges/__generated__/Ethereum.server.ts index e53f99c3c..c86756f15 100644 --- a/packages/gql/src/balancer-gauges/__generated__/Ethereum.server.ts +++ b/packages/gql/src/balancer-gauges/__generated__/Ethereum.server.ts @@ -41,6 +41,7 @@ export type Chain = | 'Arbitrum' | 'Avalanche' | 'Base' + | 'Fraxtal' | 'Gnosis' | 'Optimism' | 'Polygon' diff --git a/packages/gql/src/balancer-gauges/__generated__/Ethereum.ts b/packages/gql/src/balancer-gauges/__generated__/Ethereum.ts index dbbeb7560..9e292ac4a 100644 --- a/packages/gql/src/balancer-gauges/__generated__/Ethereum.ts +++ b/packages/gql/src/balancer-gauges/__generated__/Ethereum.ts @@ -43,6 +43,7 @@ export type Chain = | 'Arbitrum' | 'Avalanche' | 'Base' + | 'Fraxtal' | 'Gnosis' | 'Optimism' | 'Polygon' diff --git a/packages/gql/src/balancer-gauges/__generated__/Goerli.server.ts b/packages/gql/src/balancer-gauges/__generated__/Goerli.server.ts index e53f99c3c..c86756f15 100644 --- a/packages/gql/src/balancer-gauges/__generated__/Goerli.server.ts +++ b/packages/gql/src/balancer-gauges/__generated__/Goerli.server.ts @@ -41,6 +41,7 @@ export type Chain = | 'Arbitrum' | 'Avalanche' | 'Base' + | 'Fraxtal' | 'Gnosis' | 'Optimism' | 'Polygon' diff --git a/packages/gql/src/balancer-gauges/__generated__/Goerli.ts b/packages/gql/src/balancer-gauges/__generated__/Goerli.ts index dbbeb7560..9e292ac4a 100644 --- a/packages/gql/src/balancer-gauges/__generated__/Goerli.ts +++ b/packages/gql/src/balancer-gauges/__generated__/Goerli.ts @@ -43,6 +43,7 @@ export type Chain = | 'Arbitrum' | 'Avalanche' | 'Base' + | 'Fraxtal' | 'Gnosis' | 'Optimism' | 'Polygon' diff --git a/packages/gql/src/balancer-gauges/__generated__/Polygon-zkevm.server.ts b/packages/gql/src/balancer-gauges/__generated__/Polygon-zkevm.server.ts index e53f99c3c..c86756f15 100644 --- a/packages/gql/src/balancer-gauges/__generated__/Polygon-zkevm.server.ts +++ b/packages/gql/src/balancer-gauges/__generated__/Polygon-zkevm.server.ts @@ -41,6 +41,7 @@ export type Chain = | 'Arbitrum' | 'Avalanche' | 'Base' + | 'Fraxtal' | 'Gnosis' | 'Optimism' | 'Polygon' diff --git a/packages/gql/src/balancer-gauges/__generated__/Polygon-zkevm.ts b/packages/gql/src/balancer-gauges/__generated__/Polygon-zkevm.ts index dbbeb7560..9e292ac4a 100644 --- a/packages/gql/src/balancer-gauges/__generated__/Polygon-zkevm.ts +++ b/packages/gql/src/balancer-gauges/__generated__/Polygon-zkevm.ts @@ -43,6 +43,7 @@ export type Chain = | 'Arbitrum' | 'Avalanche' | 'Base' + | 'Fraxtal' | 'Gnosis' | 'Optimism' | 'Polygon' diff --git a/packages/gql/src/balancer-gauges/__generated__/Sepolia.server.ts b/packages/gql/src/balancer-gauges/__generated__/Sepolia.server.ts index e53f99c3c..c86756f15 100644 --- a/packages/gql/src/balancer-gauges/__generated__/Sepolia.server.ts +++ b/packages/gql/src/balancer-gauges/__generated__/Sepolia.server.ts @@ -41,6 +41,7 @@ export type Chain = | 'Arbitrum' | 'Avalanche' | 'Base' + | 'Fraxtal' | 'Gnosis' | 'Optimism' | 'Polygon' diff --git a/packages/gql/src/balancer-gauges/__generated__/Sepolia.ts b/packages/gql/src/balancer-gauges/__generated__/Sepolia.ts index dbbeb7560..9e292ac4a 100644 --- a/packages/gql/src/balancer-gauges/__generated__/Sepolia.ts +++ b/packages/gql/src/balancer-gauges/__generated__/Sepolia.ts @@ -43,6 +43,7 @@ export type Chain = | 'Arbitrum' | 'Avalanche' | 'Base' + | 'Fraxtal' | 'Gnosis' | 'Optimism' | 'Polygon' diff --git a/packages/gql/src/balancer/__generated__/Goerli.server.ts b/packages/gql/src/balancer/__generated__/Goerli.server.ts index abf3d1f39..74dea7830 100644 --- a/packages/gql/src/balancer/__generated__/Goerli.server.ts +++ b/packages/gql/src/balancer/__generated__/Goerli.server.ts @@ -630,6 +630,8 @@ export type CircuitBreaker_OrderBy = export type FxOracle = { __typename?: 'FXOracle'; + decimals?: Maybe; + divisor?: Maybe; id: Scalars['ID']['output']; tokens: Array; }; @@ -638,6 +640,34 @@ export type FxOracle_Filter = { /** Filter for the block changed event. */ _change_block?: InputMaybe; and?: InputMaybe>>; + decimals?: InputMaybe; + decimals_gt?: InputMaybe; + decimals_gte?: InputMaybe; + decimals_in?: InputMaybe>; + decimals_lt?: InputMaybe; + decimals_lte?: InputMaybe; + decimals_not?: InputMaybe; + decimals_not_in?: InputMaybe>; + divisor?: InputMaybe; + divisor_contains?: InputMaybe; + divisor_contains_nocase?: InputMaybe; + divisor_ends_with?: InputMaybe; + divisor_ends_with_nocase?: InputMaybe; + divisor_gt?: InputMaybe; + divisor_gte?: InputMaybe; + divisor_in?: InputMaybe>; + divisor_lt?: InputMaybe; + divisor_lte?: InputMaybe; + divisor_not?: InputMaybe; + divisor_not_contains?: InputMaybe; + divisor_not_contains_nocase?: InputMaybe; + divisor_not_ends_with?: InputMaybe; + divisor_not_ends_with_nocase?: InputMaybe; + divisor_not_in?: InputMaybe>; + divisor_not_starts_with?: InputMaybe; + divisor_not_starts_with_nocase?: InputMaybe; + divisor_starts_with?: InputMaybe; + divisor_starts_with_nocase?: InputMaybe; id?: InputMaybe; id_gt?: InputMaybe; id_gte?: InputMaybe; @@ -656,6 +686,8 @@ export type FxOracle_Filter = { }; export type FxOracle_OrderBy = + | 'decimals' + | 'divisor' | 'id' | 'tokens' | '%future added value'; diff --git a/packages/gql/src/balancer/__generated__/Goerli.ts b/packages/gql/src/balancer/__generated__/Goerli.ts index 8994707bd..66cbac1e4 100644 --- a/packages/gql/src/balancer/__generated__/Goerli.ts +++ b/packages/gql/src/balancer/__generated__/Goerli.ts @@ -632,6 +632,8 @@ export type CircuitBreaker_OrderBy = export type FxOracle = { __typename?: 'FXOracle'; + decimals?: Maybe; + divisor?: Maybe; id: Scalars['ID']['output']; tokens: Array; }; @@ -640,6 +642,34 @@ export type FxOracle_Filter = { /** Filter for the block changed event. */ _change_block?: InputMaybe; and?: InputMaybe>>; + decimals?: InputMaybe; + decimals_gt?: InputMaybe; + decimals_gte?: InputMaybe; + decimals_in?: InputMaybe>; + decimals_lt?: InputMaybe; + decimals_lte?: InputMaybe; + decimals_not?: InputMaybe; + decimals_not_in?: InputMaybe>; + divisor?: InputMaybe; + divisor_contains?: InputMaybe; + divisor_contains_nocase?: InputMaybe; + divisor_ends_with?: InputMaybe; + divisor_ends_with_nocase?: InputMaybe; + divisor_gt?: InputMaybe; + divisor_gte?: InputMaybe; + divisor_in?: InputMaybe>; + divisor_lt?: InputMaybe; + divisor_lte?: InputMaybe; + divisor_not?: InputMaybe; + divisor_not_contains?: InputMaybe; + divisor_not_contains_nocase?: InputMaybe; + divisor_not_ends_with?: InputMaybe; + divisor_not_ends_with_nocase?: InputMaybe; + divisor_not_in?: InputMaybe>; + divisor_not_starts_with?: InputMaybe; + divisor_not_starts_with_nocase?: InputMaybe; + divisor_starts_with?: InputMaybe; + divisor_starts_with_nocase?: InputMaybe; id?: InputMaybe; id_gt?: InputMaybe; id_gte?: InputMaybe; @@ -658,6 +688,8 @@ export type FxOracle_Filter = { }; export type FxOracle_OrderBy = + | 'decimals' + | 'divisor' | 'id' | 'tokens' | '%future added value'; diff --git a/packages/gql/src/sushi/__generated__/Ethereum.server.ts b/packages/gql/src/sushi/__generated__/Ethereum.server.ts index bf4f14413..bfa71b340 100644 --- a/packages/gql/src/sushi/__generated__/Ethereum.server.ts +++ b/packages/gql/src/sushi/__generated__/Ethereum.server.ts @@ -76,12 +76,12 @@ export type Burn = { amount0?: Maybe; amount1?: Maybe; amountUSD?: Maybe; - complete: Scalars['Boolean']['output']; feeLiquidity?: Maybe; feeTo?: Maybe; id: Scalars['ID']['output']; liquidity: Scalars['BigDecimal']['output']; logIndex?: Maybe; + needsComplete: Scalars['Boolean']['output']; pair: Pair; sender?: Maybe; timestamp: Scalars['BigInt']['output']; @@ -117,10 +117,6 @@ export type Burn_Filter = { amountUSD_not?: InputMaybe; amountUSD_not_in?: InputMaybe>; and?: InputMaybe>>; - complete?: InputMaybe; - complete_in?: InputMaybe>; - complete_not?: InputMaybe; - complete_not_in?: InputMaybe>; feeLiquidity?: InputMaybe; feeLiquidity_gt?: InputMaybe; feeLiquidity_gte?: InputMaybe; @@ -163,6 +159,10 @@ export type Burn_Filter = { logIndex_lte?: InputMaybe; logIndex_not?: InputMaybe; logIndex_not_in?: InputMaybe>; + needsComplete?: InputMaybe; + needsComplete_in?: InputMaybe>; + needsComplete_not?: InputMaybe; + needsComplete_not_in?: InputMaybe>; or?: InputMaybe>>; pair?: InputMaybe; pair_?: InputMaybe; @@ -240,22 +240,21 @@ export type Burn_OrderBy = | 'amount0' | 'amount1' | 'amountUSD' - | 'complete' | 'feeLiquidity' | 'feeTo' | 'id' | 'liquidity' | 'logIndex' + | 'needsComplete' | 'pair' - | 'pair__block' + | 'pair__createdAtBlockNumber' + | 'pair__createdAtTimestamp' | 'pair__id' | 'pair__liquidityProviderCount' - | 'pair__name' | 'pair__reserve0' | 'pair__reserve1' | 'pair__reserveETH' | 'pair__reserveUSD' - | 'pair__timestamp' | 'pair__token0Price' | 'pair__token1Price' | 'pair__totalSupply' @@ -270,439 +269,23 @@ export type Burn_OrderBy = | 'to' | 'transaction' | 'transaction__blockNumber' + | 'transaction__gasPrice' + | 'transaction__gasUsed' | 'transaction__id' | 'transaction__timestamp' | '%future added value'; -export type DayData = { - __typename?: 'DayData'; - date: Scalars['Int']['output']; - factory: Factory; - id: Scalars['ID']['output']; - liquidityETH: Scalars['BigDecimal']['output']; - liquidityUSD: Scalars['BigDecimal']['output']; - txCount: Scalars['BigInt']['output']; - untrackedVolume: Scalars['BigDecimal']['output']; - volumeETH: Scalars['BigDecimal']['output']; - volumeUSD: Scalars['BigDecimal']['output']; -}; - -export type DayData_Filter = { - /** Filter for the block changed event. */ - _change_block?: InputMaybe; - and?: InputMaybe>>; - date?: InputMaybe; - date_gt?: InputMaybe; - date_gte?: InputMaybe; - date_in?: InputMaybe>; - date_lt?: InputMaybe; - date_lte?: InputMaybe; - date_not?: InputMaybe; - date_not_in?: InputMaybe>; - factory?: InputMaybe; - factory_?: InputMaybe; - factory_contains?: InputMaybe; - factory_contains_nocase?: InputMaybe; - factory_ends_with?: InputMaybe; - factory_ends_with_nocase?: InputMaybe; - factory_gt?: InputMaybe; - factory_gte?: InputMaybe; - factory_in?: InputMaybe>; - factory_lt?: InputMaybe; - factory_lte?: InputMaybe; - factory_not?: InputMaybe; - factory_not_contains?: InputMaybe; - factory_not_contains_nocase?: InputMaybe; - factory_not_ends_with?: InputMaybe; - factory_not_ends_with_nocase?: InputMaybe; - factory_not_in?: InputMaybe>; - factory_not_starts_with?: InputMaybe; - factory_not_starts_with_nocase?: InputMaybe; - factory_starts_with?: InputMaybe; - factory_starts_with_nocase?: InputMaybe; - id?: InputMaybe; - id_gt?: InputMaybe; - id_gte?: InputMaybe; - id_in?: InputMaybe>; - id_lt?: InputMaybe; - id_lte?: InputMaybe; - id_not?: InputMaybe; - id_not_in?: InputMaybe>; - liquidityETH?: InputMaybe; - liquidityETH_gt?: InputMaybe; - liquidityETH_gte?: InputMaybe; - liquidityETH_in?: InputMaybe>; - liquidityETH_lt?: InputMaybe; - liquidityETH_lte?: InputMaybe; - liquidityETH_not?: InputMaybe; - liquidityETH_not_in?: InputMaybe>; - liquidityUSD?: InputMaybe; - liquidityUSD_gt?: InputMaybe; - liquidityUSD_gte?: InputMaybe; - liquidityUSD_in?: InputMaybe>; - liquidityUSD_lt?: InputMaybe; - liquidityUSD_lte?: InputMaybe; - liquidityUSD_not?: InputMaybe; - liquidityUSD_not_in?: InputMaybe>; - or?: InputMaybe>>; - txCount?: InputMaybe; - txCount_gt?: InputMaybe; - txCount_gte?: InputMaybe; - txCount_in?: InputMaybe>; - txCount_lt?: InputMaybe; - txCount_lte?: InputMaybe; - txCount_not?: InputMaybe; - txCount_not_in?: InputMaybe>; - untrackedVolume?: InputMaybe; - untrackedVolume_gt?: InputMaybe; - untrackedVolume_gte?: InputMaybe; - untrackedVolume_in?: InputMaybe>; - untrackedVolume_lt?: InputMaybe; - untrackedVolume_lte?: InputMaybe; - untrackedVolume_not?: InputMaybe; - untrackedVolume_not_in?: InputMaybe>; - volumeETH?: InputMaybe; - volumeETH_gt?: InputMaybe; - volumeETH_gte?: InputMaybe; - volumeETH_in?: InputMaybe>; - volumeETH_lt?: InputMaybe; - volumeETH_lte?: InputMaybe; - volumeETH_not?: InputMaybe; - volumeETH_not_in?: InputMaybe>; - volumeUSD?: InputMaybe; - volumeUSD_gt?: InputMaybe; - volumeUSD_gte?: InputMaybe; - volumeUSD_in?: InputMaybe>; - volumeUSD_lt?: InputMaybe; - volumeUSD_lte?: InputMaybe; - volumeUSD_not?: InputMaybe; - volumeUSD_not_in?: InputMaybe>; -}; - -export type DayData_OrderBy = - | 'date' - | 'factory' - | 'factory__id' - | 'factory__liquidityETH' - | 'factory__liquidityUSD' - | 'factory__pairCount' - | 'factory__tokenCount' - | 'factory__txCount' - | 'factory__untrackedVolumeUSD' - | 'factory__userCount' - | 'factory__volumeETH' - | 'factory__volumeUSD' - | 'id' - | 'liquidityETH' - | 'liquidityUSD' - | 'txCount' - | 'untrackedVolume' - | 'volumeETH' - | 'volumeUSD' - | '%future added value'; - -export type Factory = { - __typename?: 'Factory'; - dayData: Array; - hourData: Array; - id: Scalars['ID']['output']; - liquidityETH: Scalars['BigDecimal']['output']; - liquidityUSD: Scalars['BigDecimal']['output']; - pairCount: Scalars['BigInt']['output']; - pairs: Array; - tokenCount: Scalars['BigInt']['output']; - tokens: Array; - txCount: Scalars['BigInt']['output']; - untrackedVolumeUSD: Scalars['BigDecimal']['output']; - userCount: Scalars['BigInt']['output']; - volumeETH: Scalars['BigDecimal']['output']; - volumeUSD: Scalars['BigDecimal']['output']; -}; - - -export type FactoryDayDataArgs = { - first?: InputMaybe; - orderBy?: InputMaybe; - orderDirection?: InputMaybe; - skip?: InputMaybe; - where?: InputMaybe; -}; - - -export type FactoryHourDataArgs = { - first?: InputMaybe; - orderBy?: InputMaybe; - orderDirection?: InputMaybe; - skip?: InputMaybe; - where?: InputMaybe; -}; - - -export type FactoryPairsArgs = { - first?: InputMaybe; - orderBy?: InputMaybe; - orderDirection?: InputMaybe; - skip?: InputMaybe; - where?: InputMaybe; -}; - - -export type FactoryTokensArgs = { - first?: InputMaybe; - orderBy?: InputMaybe; - orderDirection?: InputMaybe; - skip?: InputMaybe; - where?: InputMaybe; -}; - -export type Factory_Filter = { - /** Filter for the block changed event. */ - _change_block?: InputMaybe; - and?: InputMaybe>>; - dayData_?: InputMaybe; - hourData_?: InputMaybe; - id?: InputMaybe; - id_gt?: InputMaybe; - id_gte?: InputMaybe; - id_in?: InputMaybe>; - id_lt?: InputMaybe; - id_lte?: InputMaybe; - id_not?: InputMaybe; - id_not_in?: InputMaybe>; - liquidityETH?: InputMaybe; - liquidityETH_gt?: InputMaybe; - liquidityETH_gte?: InputMaybe; - liquidityETH_in?: InputMaybe>; - liquidityETH_lt?: InputMaybe; - liquidityETH_lte?: InputMaybe; - liquidityETH_not?: InputMaybe; - liquidityETH_not_in?: InputMaybe>; - liquidityUSD?: InputMaybe; - liquidityUSD_gt?: InputMaybe; - liquidityUSD_gte?: InputMaybe; - liquidityUSD_in?: InputMaybe>; - liquidityUSD_lt?: InputMaybe; - liquidityUSD_lte?: InputMaybe; - liquidityUSD_not?: InputMaybe; - liquidityUSD_not_in?: InputMaybe>; - or?: InputMaybe>>; - pairCount?: InputMaybe; - pairCount_gt?: InputMaybe; - pairCount_gte?: InputMaybe; - pairCount_in?: InputMaybe>; - pairCount_lt?: InputMaybe; - pairCount_lte?: InputMaybe; - pairCount_not?: InputMaybe; - pairCount_not_in?: InputMaybe>; - pairs_?: InputMaybe; - tokenCount?: InputMaybe; - tokenCount_gt?: InputMaybe; - tokenCount_gte?: InputMaybe; - tokenCount_in?: InputMaybe>; - tokenCount_lt?: InputMaybe; - tokenCount_lte?: InputMaybe; - tokenCount_not?: InputMaybe; - tokenCount_not_in?: InputMaybe>; - tokens_?: InputMaybe; - txCount?: InputMaybe; - txCount_gt?: InputMaybe; - txCount_gte?: InputMaybe; - txCount_in?: InputMaybe>; - txCount_lt?: InputMaybe; - txCount_lte?: InputMaybe; - txCount_not?: InputMaybe; - txCount_not_in?: InputMaybe>; - untrackedVolumeUSD?: InputMaybe; - untrackedVolumeUSD_gt?: InputMaybe; - untrackedVolumeUSD_gte?: InputMaybe; - untrackedVolumeUSD_in?: InputMaybe>; - untrackedVolumeUSD_lt?: InputMaybe; - untrackedVolumeUSD_lte?: InputMaybe; - untrackedVolumeUSD_not?: InputMaybe; - untrackedVolumeUSD_not_in?: InputMaybe>; - userCount?: InputMaybe; - userCount_gt?: InputMaybe; - userCount_gte?: InputMaybe; - userCount_in?: InputMaybe>; - userCount_lt?: InputMaybe; - userCount_lte?: InputMaybe; - userCount_not?: InputMaybe; - userCount_not_in?: InputMaybe>; - volumeETH?: InputMaybe; - volumeETH_gt?: InputMaybe; - volumeETH_gte?: InputMaybe; - volumeETH_in?: InputMaybe>; - volumeETH_lt?: InputMaybe; - volumeETH_lte?: InputMaybe; - volumeETH_not?: InputMaybe; - volumeETH_not_in?: InputMaybe>; - volumeUSD?: InputMaybe; - volumeUSD_gt?: InputMaybe; - volumeUSD_gte?: InputMaybe; - volumeUSD_in?: InputMaybe>; - volumeUSD_lt?: InputMaybe; - volumeUSD_lte?: InputMaybe; - volumeUSD_not?: InputMaybe; - volumeUSD_not_in?: InputMaybe>; -}; - -export type Factory_OrderBy = - | 'dayData' - | 'hourData' - | 'id' - | 'liquidityETH' - | 'liquidityUSD' - | 'pairCount' - | 'pairs' - | 'tokenCount' - | 'tokens' - | 'txCount' - | 'untrackedVolumeUSD' - | 'userCount' - | 'volumeETH' - | 'volumeUSD' - | '%future added value'; - -export type HourData = { - __typename?: 'HourData'; - date: Scalars['Int']['output']; - factory: Factory; - id: Scalars['ID']['output']; - liquidityETH: Scalars['BigDecimal']['output']; - liquidityUSD: Scalars['BigDecimal']['output']; - txCount: Scalars['BigInt']['output']; - untrackedVolume: Scalars['BigDecimal']['output']; - volumeETH: Scalars['BigDecimal']['output']; - volumeUSD: Scalars['BigDecimal']['output']; -}; - -export type HourData_Filter = { - /** Filter for the block changed event. */ - _change_block?: InputMaybe; - and?: InputMaybe>>; - date?: InputMaybe; - date_gt?: InputMaybe; - date_gte?: InputMaybe; - date_in?: InputMaybe>; - date_lt?: InputMaybe; - date_lte?: InputMaybe; - date_not?: InputMaybe; - date_not_in?: InputMaybe>; - factory?: InputMaybe; - factory_?: InputMaybe; - factory_contains?: InputMaybe; - factory_contains_nocase?: InputMaybe; - factory_ends_with?: InputMaybe; - factory_ends_with_nocase?: InputMaybe; - factory_gt?: InputMaybe; - factory_gte?: InputMaybe; - factory_in?: InputMaybe>; - factory_lt?: InputMaybe; - factory_lte?: InputMaybe; - factory_not?: InputMaybe; - factory_not_contains?: InputMaybe; - factory_not_contains_nocase?: InputMaybe; - factory_not_ends_with?: InputMaybe; - factory_not_ends_with_nocase?: InputMaybe; - factory_not_in?: InputMaybe>; - factory_not_starts_with?: InputMaybe; - factory_not_starts_with_nocase?: InputMaybe; - factory_starts_with?: InputMaybe; - factory_starts_with_nocase?: InputMaybe; - id?: InputMaybe; - id_gt?: InputMaybe; - id_gte?: InputMaybe; - id_in?: InputMaybe>; - id_lt?: InputMaybe; - id_lte?: InputMaybe; - id_not?: InputMaybe; - id_not_in?: InputMaybe>; - liquidityETH?: InputMaybe; - liquidityETH_gt?: InputMaybe; - liquidityETH_gte?: InputMaybe; - liquidityETH_in?: InputMaybe>; - liquidityETH_lt?: InputMaybe; - liquidityETH_lte?: InputMaybe; - liquidityETH_not?: InputMaybe; - liquidityETH_not_in?: InputMaybe>; - liquidityUSD?: InputMaybe; - liquidityUSD_gt?: InputMaybe; - liquidityUSD_gte?: InputMaybe; - liquidityUSD_in?: InputMaybe>; - liquidityUSD_lt?: InputMaybe; - liquidityUSD_lte?: InputMaybe; - liquidityUSD_not?: InputMaybe; - liquidityUSD_not_in?: InputMaybe>; - or?: InputMaybe>>; - txCount?: InputMaybe; - txCount_gt?: InputMaybe; - txCount_gte?: InputMaybe; - txCount_in?: InputMaybe>; - txCount_lt?: InputMaybe; - txCount_lte?: InputMaybe; - txCount_not?: InputMaybe; - txCount_not_in?: InputMaybe>; - untrackedVolume?: InputMaybe; - untrackedVolume_gt?: InputMaybe; - untrackedVolume_gte?: InputMaybe; - untrackedVolume_in?: InputMaybe>; - untrackedVolume_lt?: InputMaybe; - untrackedVolume_lte?: InputMaybe; - untrackedVolume_not?: InputMaybe; - untrackedVolume_not_in?: InputMaybe>; - volumeETH?: InputMaybe; - volumeETH_gt?: InputMaybe; - volumeETH_gte?: InputMaybe; - volumeETH_in?: InputMaybe>; - volumeETH_lt?: InputMaybe; - volumeETH_lte?: InputMaybe; - volumeETH_not?: InputMaybe; - volumeETH_not_in?: InputMaybe>; - volumeUSD?: InputMaybe; - volumeUSD_gt?: InputMaybe; - volumeUSD_gte?: InputMaybe; - volumeUSD_in?: InputMaybe>; - volumeUSD_lt?: InputMaybe; - volumeUSD_lte?: InputMaybe; - volumeUSD_not?: InputMaybe; - volumeUSD_not_in?: InputMaybe>; -}; - -export type HourData_OrderBy = - | 'date' - | 'factory' - | 'factory__id' - | 'factory__liquidityETH' - | 'factory__liquidityUSD' - | 'factory__pairCount' - | 'factory__tokenCount' - | 'factory__txCount' - | 'factory__untrackedVolumeUSD' - | 'factory__userCount' - | 'factory__volumeETH' - | 'factory__volumeUSD' - | 'id' - | 'liquidityETH' - | 'liquidityUSD' - | 'txCount' - | 'untrackedVolume' - | 'volumeETH' - | 'volumeUSD' - | '%future added value'; - export type LiquidityPosition = { __typename?: 'LiquidityPosition'; - block: Scalars['Int']['output']; + historicalSnapshots: Array>; id: Scalars['ID']['output']; liquidityTokenBalance: Scalars['BigDecimal']['output']; pair: Pair; - snapshots: Array>; - timestamp: Scalars['Int']['output']; user: User; }; -export type LiquidityPositionSnapshotsArgs = { +export type LiquidityPositionHistoricalSnapshotsArgs = { first?: InputMaybe; orderBy?: InputMaybe; orderDirection?: InputMaybe; @@ -724,6 +307,7 @@ export type LiquidityPositionSnapshot = { timestamp: Scalars['Int']['output']; token0PriceUSD: Scalars['BigDecimal']['output']; token1PriceUSD: Scalars['BigDecimal']['output']; + transaction: Transaction; user: User; }; @@ -854,6 +438,27 @@ export type LiquidityPositionSnapshot_Filter = { token1PriceUSD_lte?: InputMaybe; token1PriceUSD_not?: InputMaybe; token1PriceUSD_not_in?: InputMaybe>; + transaction?: InputMaybe; + transaction_?: InputMaybe; + transaction_contains?: InputMaybe; + transaction_contains_nocase?: InputMaybe; + transaction_ends_with?: InputMaybe; + transaction_ends_with_nocase?: InputMaybe; + transaction_gt?: InputMaybe; + transaction_gte?: InputMaybe; + transaction_in?: InputMaybe>; + transaction_lt?: InputMaybe; + transaction_lte?: InputMaybe; + transaction_not?: InputMaybe; + transaction_not_contains?: InputMaybe; + transaction_not_contains_nocase?: InputMaybe; + transaction_not_ends_with?: InputMaybe; + transaction_not_ends_with_nocase?: InputMaybe; + transaction_not_in?: InputMaybe>; + transaction_not_starts_with?: InputMaybe; + transaction_not_starts_with_nocase?: InputMaybe; + transaction_starts_with?: InputMaybe; + transaction_starts_with_nocase?: InputMaybe; user?: InputMaybe; user_?: InputMaybe; user_contains?: InputMaybe; @@ -881,22 +486,19 @@ export type LiquidityPositionSnapshot_OrderBy = | 'block' | 'id' | 'liquidityPosition' - | 'liquidityPosition__block' | 'liquidityPosition__id' | 'liquidityPosition__liquidityTokenBalance' - | 'liquidityPosition__timestamp' | 'liquidityTokenBalance' | 'liquidityTokenTotalSupply' | 'pair' - | 'pair__block' + | 'pair__createdAtBlockNumber' + | 'pair__createdAtTimestamp' | 'pair__id' | 'pair__liquidityProviderCount' - | 'pair__name' | 'pair__reserve0' | 'pair__reserve1' | 'pair__reserveETH' | 'pair__reserveUSD' - | 'pair__timestamp' | 'pair__token0Price' | 'pair__token1Price' | 'pair__totalSupply' @@ -912,22 +514,22 @@ export type LiquidityPositionSnapshot_OrderBy = | 'timestamp' | 'token0PriceUSD' | 'token1PriceUSD' + | 'transaction' + | 'transaction__blockNumber' + | 'transaction__gasPrice' + | 'transaction__gasUsed' + | 'transaction__id' + | 'transaction__timestamp' | 'user' | 'user__id' + | 'user__usdSwapped' | '%future added value'; export type LiquidityPosition_Filter = { /** Filter for the block changed event. */ _change_block?: InputMaybe; and?: InputMaybe>>; - block?: InputMaybe; - block_gt?: InputMaybe; - block_gte?: InputMaybe; - block_in?: InputMaybe>; - block_lt?: InputMaybe; - block_lte?: InputMaybe; - block_not?: InputMaybe; - block_not_in?: InputMaybe>; + historicalSnapshots_?: InputMaybe; id?: InputMaybe; id_gt?: InputMaybe; id_gte?: InputMaybe; @@ -966,15 +568,6 @@ export type LiquidityPosition_Filter = { pair_not_starts_with_nocase?: InputMaybe; pair_starts_with?: InputMaybe; pair_starts_with_nocase?: InputMaybe; - snapshots_?: InputMaybe; - timestamp?: InputMaybe; - timestamp_gt?: InputMaybe; - timestamp_gte?: InputMaybe; - timestamp_in?: InputMaybe>; - timestamp_lt?: InputMaybe; - timestamp_lte?: InputMaybe; - timestamp_not?: InputMaybe; - timestamp_not_in?: InputMaybe>; user?: InputMaybe; user_?: InputMaybe; user_contains?: InputMaybe; @@ -999,19 +592,18 @@ export type LiquidityPosition_Filter = { }; export type LiquidityPosition_OrderBy = - | 'block' + | 'historicalSnapshots' | 'id' | 'liquidityTokenBalance' | 'pair' - | 'pair__block' + | 'pair__createdAtBlockNumber' + | 'pair__createdAtTimestamp' | 'pair__id' | 'pair__liquidityProviderCount' - | 'pair__name' | 'pair__reserve0' | 'pair__reserve1' | 'pair__reserveETH' | 'pair__reserveUSD' - | 'pair__timestamp' | 'pair__token0Price' | 'pair__token1Price' | 'pair__totalSupply' @@ -1021,10 +613,9 @@ export type LiquidityPosition_OrderBy = | 'pair__volumeToken0' | 'pair__volumeToken1' | 'pair__volumeUSD' - | 'snapshots' - | 'timestamp' | 'user' | 'user__id' + | 'user__usdSwapped' | '%future added value'; export type Mint = { @@ -1197,15 +788,14 @@ export type Mint_OrderBy = | 'liquidity' | 'logIndex' | 'pair' - | 'pair__block' + | 'pair__createdAtBlockNumber' + | 'pair__createdAtTimestamp' | 'pair__id' | 'pair__liquidityProviderCount' - | 'pair__name' | 'pair__reserve0' | 'pair__reserve1' | 'pair__reserveETH' | 'pair__reserveUSD' - | 'pair__timestamp' | 'pair__token0Price' | 'pair__token1Price' | 'pair__totalSupply' @@ -1220,6 +810,8 @@ export type Mint_OrderBy = | 'to' | 'transaction' | 'transaction__blockNumber' + | 'transaction__gasPrice' + | 'transaction__gasUsed' | 'transaction__id' | 'transaction__timestamp' | '%future added value'; @@ -1232,23 +824,14 @@ export type OrderDirection = export type Pair = { __typename?: 'Pair'; - block: Scalars['BigInt']['output']; - burns: Array; - dayData: Array; - factory: Factory; - hourData: Array; + createdAtBlockNumber: Scalars['BigInt']['output']; + createdAtTimestamp: Scalars['BigInt']['output']; id: Scalars['ID']['output']; - liquidityPositionSnapshots: Array; - liquidityPositions: Array; liquidityProviderCount: Scalars['BigInt']['output']; - mints: Array; - name: Scalars['String']['output']; reserve0: Scalars['BigDecimal']['output']; reserve1: Scalars['BigDecimal']['output']; reserveETH: Scalars['BigDecimal']['output']; reserveUSD: Scalars['BigDecimal']['output']; - swaps: Array; - timestamp: Scalars['BigInt']['output']; token0: Token; token0Price: Scalars['BigDecimal']['output']; token1: Token; @@ -1262,90 +845,59 @@ export type Pair = { volumeUSD: Scalars['BigDecimal']['output']; }; - -export type PairBurnsArgs = { - first?: InputMaybe; - orderBy?: InputMaybe; - orderDirection?: InputMaybe; - skip?: InputMaybe; - where?: InputMaybe; -}; - - -export type PairDayDataArgs = { - first?: InputMaybe; - orderBy?: InputMaybe; - orderDirection?: InputMaybe; - skip?: InputMaybe; - where?: InputMaybe; -}; - - -export type PairHourDataArgs = { - first?: InputMaybe; - orderBy?: InputMaybe; - orderDirection?: InputMaybe; - skip?: InputMaybe; - where?: InputMaybe; -}; - - -export type PairLiquidityPositionSnapshotsArgs = { - first?: InputMaybe; - orderBy?: InputMaybe; - orderDirection?: InputMaybe; - skip?: InputMaybe; - where?: InputMaybe; -}; - - -export type PairLiquidityPositionsArgs = { - first?: InputMaybe; - orderBy?: InputMaybe; - orderDirection?: InputMaybe; - skip?: InputMaybe; - where?: InputMaybe; -}; - - -export type PairMintsArgs = { - first?: InputMaybe; - orderBy?: InputMaybe; - orderDirection?: InputMaybe; - skip?: InputMaybe; - where?: InputMaybe; -}; - - -export type PairSwapsArgs = { - first?: InputMaybe; - orderBy?: InputMaybe; - orderDirection?: InputMaybe; - skip?: InputMaybe; - where?: InputMaybe; -}; - -export type PairDayData = { - __typename?: 'PairDayData'; - date: Scalars['Int']['output']; - id: Scalars['ID']['output']; - pair: Pair; - reserve0: Scalars['BigDecimal']['output']; - reserve1: Scalars['BigDecimal']['output']; - reserveUSD: Scalars['BigDecimal']['output']; - token0: Token; - token1: Token; - totalSupply: Scalars['BigDecimal']['output']; - txCount: Scalars['BigInt']['output']; - volumeToken0: Scalars['BigDecimal']['output']; - volumeToken1: Scalars['BigDecimal']['output']; - volumeUSD: Scalars['BigDecimal']['output']; +export type PairDayData = { + __typename?: 'PairDayData'; + dailyTxns: Scalars['BigInt']['output']; + dailyVolumeToken0: Scalars['BigDecimal']['output']; + dailyVolumeToken1: Scalars['BigDecimal']['output']; + dailyVolumeUSD: Scalars['BigDecimal']['output']; + date: Scalars['Int']['output']; + id: Scalars['ID']['output']; + pairAddress: Scalars['Bytes']['output']; + reserve0: Scalars['BigDecimal']['output']; + reserve1: Scalars['BigDecimal']['output']; + reserveUSD: Scalars['BigDecimal']['output']; + token0: Token; + token1: Token; + totalSupply: Scalars['BigDecimal']['output']; }; export type PairDayData_Filter = { /** Filter for the block changed event. */ _change_block?: InputMaybe; and?: InputMaybe>>; + dailyTxns?: InputMaybe; + dailyTxns_gt?: InputMaybe; + dailyTxns_gte?: InputMaybe; + dailyTxns_in?: InputMaybe>; + dailyTxns_lt?: InputMaybe; + dailyTxns_lte?: InputMaybe; + dailyTxns_not?: InputMaybe; + dailyTxns_not_in?: InputMaybe>; + dailyVolumeToken0?: InputMaybe; + dailyVolumeToken0_gt?: InputMaybe; + dailyVolumeToken0_gte?: InputMaybe; + dailyVolumeToken0_in?: InputMaybe>; + dailyVolumeToken0_lt?: InputMaybe; + dailyVolumeToken0_lte?: InputMaybe; + dailyVolumeToken0_not?: InputMaybe; + dailyVolumeToken0_not_in?: InputMaybe>; + dailyVolumeToken1?: InputMaybe; + dailyVolumeToken1_gt?: InputMaybe; + dailyVolumeToken1_gte?: InputMaybe; + dailyVolumeToken1_in?: InputMaybe>; + dailyVolumeToken1_lt?: InputMaybe; + dailyVolumeToken1_lte?: InputMaybe; + dailyVolumeToken1_not?: InputMaybe; + dailyVolumeToken1_not_in?: InputMaybe>; + dailyVolumeUSD?: InputMaybe; + dailyVolumeUSD_gt?: InputMaybe; + dailyVolumeUSD_gte?: InputMaybe; + dailyVolumeUSD_in?: InputMaybe>; + dailyVolumeUSD_lt?: InputMaybe; + dailyVolumeUSD_lte?: InputMaybe; + dailyVolumeUSD_not?: InputMaybe; + dailyVolumeUSD_not_in?: InputMaybe>; date?: InputMaybe; date_gt?: InputMaybe; date_gte?: InputMaybe; @@ -1363,27 +915,16 @@ export type PairDayData_Filter = { id_not?: InputMaybe; id_not_in?: InputMaybe>; or?: InputMaybe>>; - pair?: InputMaybe; - pair_?: InputMaybe; - pair_contains?: InputMaybe; - pair_contains_nocase?: InputMaybe; - pair_ends_with?: InputMaybe; - pair_ends_with_nocase?: InputMaybe; - pair_gt?: InputMaybe; - pair_gte?: InputMaybe; - pair_in?: InputMaybe>; - pair_lt?: InputMaybe; - pair_lte?: InputMaybe; - pair_not?: InputMaybe; - pair_not_contains?: InputMaybe; - pair_not_contains_nocase?: InputMaybe; - pair_not_ends_with?: InputMaybe; - pair_not_ends_with_nocase?: InputMaybe; - pair_not_in?: InputMaybe>; - pair_not_starts_with?: InputMaybe; - pair_not_starts_with_nocase?: InputMaybe; - pair_starts_with?: InputMaybe; - pair_starts_with_nocase?: InputMaybe; + pairAddress?: InputMaybe; + pairAddress_contains?: InputMaybe; + pairAddress_gt?: InputMaybe; + pairAddress_gte?: InputMaybe; + pairAddress_in?: InputMaybe>; + pairAddress_lt?: InputMaybe; + pairAddress_lte?: InputMaybe; + pairAddress_not?: InputMaybe; + pairAddress_not_contains?: InputMaybe; + pairAddress_not_in?: InputMaybe>; reserve0?: InputMaybe; reserve0_gt?: InputMaybe; reserve0_gte?: InputMaybe; @@ -1458,62 +999,16 @@ export type PairDayData_Filter = { totalSupply_lte?: InputMaybe; totalSupply_not?: InputMaybe; totalSupply_not_in?: InputMaybe>; - txCount?: InputMaybe; - txCount_gt?: InputMaybe; - txCount_gte?: InputMaybe; - txCount_in?: InputMaybe>; - txCount_lt?: InputMaybe; - txCount_lte?: InputMaybe; - txCount_not?: InputMaybe; - txCount_not_in?: InputMaybe>; - volumeToken0?: InputMaybe; - volumeToken0_gt?: InputMaybe; - volumeToken0_gte?: InputMaybe; - volumeToken0_in?: InputMaybe>; - volumeToken0_lt?: InputMaybe; - volumeToken0_lte?: InputMaybe; - volumeToken0_not?: InputMaybe; - volumeToken0_not_in?: InputMaybe>; - volumeToken1?: InputMaybe; - volumeToken1_gt?: InputMaybe; - volumeToken1_gte?: InputMaybe; - volumeToken1_in?: InputMaybe>; - volumeToken1_lt?: InputMaybe; - volumeToken1_lte?: InputMaybe; - volumeToken1_not?: InputMaybe; - volumeToken1_not_in?: InputMaybe>; - volumeUSD?: InputMaybe; - volumeUSD_gt?: InputMaybe; - volumeUSD_gte?: InputMaybe; - volumeUSD_in?: InputMaybe>; - volumeUSD_lt?: InputMaybe; - volumeUSD_lte?: InputMaybe; - volumeUSD_not?: InputMaybe; - volumeUSD_not_in?: InputMaybe>; }; export type PairDayData_OrderBy = + | 'dailyTxns' + | 'dailyVolumeToken0' + | 'dailyVolumeToken1' + | 'dailyVolumeUSD' | 'date' | 'id' - | 'pair' - | 'pair__block' - | 'pair__id' - | 'pair__liquidityProviderCount' - | 'pair__name' - | 'pair__reserve0' - | 'pair__reserve1' - | 'pair__reserveETH' - | 'pair__reserveUSD' - | 'pair__timestamp' - | 'pair__token0Price' - | 'pair__token1Price' - | 'pair__totalSupply' - | 'pair__trackedReserveETH' - | 'pair__txCount' - | 'pair__untrackedVolumeUSD' - | 'pair__volumeToken0' - | 'pair__volumeToken1' - | 'pair__volumeUSD' + | 'pairAddress' | 'reserve0' | 'reserve1' | 'reserveUSD' @@ -1521,59 +1016,87 @@ export type PairDayData_OrderBy = | 'token0__decimals' | 'token0__derivedETH' | 'token0__id' - | 'token0__liquidity' | 'token0__name' | 'token0__symbol' + | 'token0__totalLiquidity' | 'token0__totalSupply' + | 'token0__tradeVolume' + | 'token0__tradeVolumeUSD' | 'token0__txCount' | 'token0__untrackedVolumeUSD' - | 'token0__volume' - | 'token0__volumeUSD' | 'token1' | 'token1__decimals' | 'token1__derivedETH' | 'token1__id' - | 'token1__liquidity' | 'token1__name' | 'token1__symbol' + | 'token1__totalLiquidity' | 'token1__totalSupply' + | 'token1__tradeVolume' + | 'token1__tradeVolumeUSD' | 'token1__txCount' | 'token1__untrackedVolumeUSD' - | 'token1__volume' - | 'token1__volumeUSD' | 'totalSupply' - | 'txCount' - | 'volumeToken0' - | 'volumeToken1' - | 'volumeUSD' | '%future added value'; export type PairHourData = { __typename?: 'PairHourData'; - date: Scalars['Int']['output']; + hourStartUnix: Scalars['Int']['output']; + hourlyTxns: Scalars['BigInt']['output']; + hourlyVolumeToken0: Scalars['BigDecimal']['output']; + hourlyVolumeToken1: Scalars['BigDecimal']['output']; + hourlyVolumeUSD: Scalars['BigDecimal']['output']; id: Scalars['ID']['output']; pair: Pair; reserve0: Scalars['BigDecimal']['output']; reserve1: Scalars['BigDecimal']['output']; reserveUSD: Scalars['BigDecimal']['output']; - txCount: Scalars['BigInt']['output']; - volumeToken0: Scalars['BigDecimal']['output']; - volumeToken1: Scalars['BigDecimal']['output']; - volumeUSD: Scalars['BigDecimal']['output']; }; export type PairHourData_Filter = { /** Filter for the block changed event. */ _change_block?: InputMaybe; and?: InputMaybe>>; - date?: InputMaybe; - date_gt?: InputMaybe; - date_gte?: InputMaybe; - date_in?: InputMaybe>; - date_lt?: InputMaybe; - date_lte?: InputMaybe; - date_not?: InputMaybe; - date_not_in?: InputMaybe>; + hourStartUnix?: InputMaybe; + hourStartUnix_gt?: InputMaybe; + hourStartUnix_gte?: InputMaybe; + hourStartUnix_in?: InputMaybe>; + hourStartUnix_lt?: InputMaybe; + hourStartUnix_lte?: InputMaybe; + hourStartUnix_not?: InputMaybe; + hourStartUnix_not_in?: InputMaybe>; + hourlyTxns?: InputMaybe; + hourlyTxns_gt?: InputMaybe; + hourlyTxns_gte?: InputMaybe; + hourlyTxns_in?: InputMaybe>; + hourlyTxns_lt?: InputMaybe; + hourlyTxns_lte?: InputMaybe; + hourlyTxns_not?: InputMaybe; + hourlyTxns_not_in?: InputMaybe>; + hourlyVolumeToken0?: InputMaybe; + hourlyVolumeToken0_gt?: InputMaybe; + hourlyVolumeToken0_gte?: InputMaybe; + hourlyVolumeToken0_in?: InputMaybe>; + hourlyVolumeToken0_lt?: InputMaybe; + hourlyVolumeToken0_lte?: InputMaybe; + hourlyVolumeToken0_not?: InputMaybe; + hourlyVolumeToken0_not_in?: InputMaybe>; + hourlyVolumeToken1?: InputMaybe; + hourlyVolumeToken1_gt?: InputMaybe; + hourlyVolumeToken1_gte?: InputMaybe; + hourlyVolumeToken1_in?: InputMaybe>; + hourlyVolumeToken1_lt?: InputMaybe; + hourlyVolumeToken1_lte?: InputMaybe; + hourlyVolumeToken1_not?: InputMaybe; + hourlyVolumeToken1_not_in?: InputMaybe>; + hourlyVolumeUSD?: InputMaybe; + hourlyVolumeUSD_gt?: InputMaybe; + hourlyVolumeUSD_gte?: InputMaybe; + hourlyVolumeUSD_in?: InputMaybe>; + hourlyVolumeUSD_lt?: InputMaybe; + hourlyVolumeUSD_lte?: InputMaybe; + hourlyVolumeUSD_not?: InputMaybe; + hourlyVolumeUSD_not_in?: InputMaybe>; id?: InputMaybe; id_gt?: InputMaybe; id_gte?: InputMaybe; @@ -1628,53 +1151,24 @@ export type PairHourData_Filter = { reserveUSD_lte?: InputMaybe; reserveUSD_not?: InputMaybe; reserveUSD_not_in?: InputMaybe>; - txCount?: InputMaybe; - txCount_gt?: InputMaybe; - txCount_gte?: InputMaybe; - txCount_in?: InputMaybe>; - txCount_lt?: InputMaybe; - txCount_lte?: InputMaybe; - txCount_not?: InputMaybe; - txCount_not_in?: InputMaybe>; - volumeToken0?: InputMaybe; - volumeToken0_gt?: InputMaybe; - volumeToken0_gte?: InputMaybe; - volumeToken0_in?: InputMaybe>; - volumeToken0_lt?: InputMaybe; - volumeToken0_lte?: InputMaybe; - volumeToken0_not?: InputMaybe; - volumeToken0_not_in?: InputMaybe>; - volumeToken1?: InputMaybe; - volumeToken1_gt?: InputMaybe; - volumeToken1_gte?: InputMaybe; - volumeToken1_in?: InputMaybe>; - volumeToken1_lt?: InputMaybe; - volumeToken1_lte?: InputMaybe; - volumeToken1_not?: InputMaybe; - volumeToken1_not_in?: InputMaybe>; - volumeUSD?: InputMaybe; - volumeUSD_gt?: InputMaybe; - volumeUSD_gte?: InputMaybe; - volumeUSD_in?: InputMaybe>; - volumeUSD_lt?: InputMaybe; - volumeUSD_lte?: InputMaybe; - volumeUSD_not?: InputMaybe; - volumeUSD_not_in?: InputMaybe>; }; export type PairHourData_OrderBy = - | 'date' + | 'hourStartUnix' + | 'hourlyTxns' + | 'hourlyVolumeToken0' + | 'hourlyVolumeToken1' + | 'hourlyVolumeUSD' | 'id' | 'pair' - | 'pair__block' + | 'pair__createdAtBlockNumber' + | 'pair__createdAtTimestamp' | 'pair__id' | 'pair__liquidityProviderCount' - | 'pair__name' | 'pair__reserve0' | 'pair__reserve1' | 'pair__reserveETH' | 'pair__reserveUSD' - | 'pair__timestamp' | 'pair__token0Price' | 'pair__token1Price' | 'pair__totalSupply' @@ -1687,48 +1181,28 @@ export type PairHourData_OrderBy = | 'reserve0' | 'reserve1' | 'reserveUSD' - | 'txCount' - | 'volumeToken0' - | 'volumeToken1' - | 'volumeUSD' | '%future added value'; export type Pair_Filter = { /** Filter for the block changed event. */ _change_block?: InputMaybe; and?: InputMaybe>>; - block?: InputMaybe; - block_gt?: InputMaybe; - block_gte?: InputMaybe; - block_in?: InputMaybe>; - block_lt?: InputMaybe; - block_lte?: InputMaybe; - block_not?: InputMaybe; - block_not_in?: InputMaybe>; - burns_?: InputMaybe; - dayData_?: InputMaybe; - factory?: InputMaybe; - factory_?: InputMaybe; - factory_contains?: InputMaybe; - factory_contains_nocase?: InputMaybe; - factory_ends_with?: InputMaybe; - factory_ends_with_nocase?: InputMaybe; - factory_gt?: InputMaybe; - factory_gte?: InputMaybe; - factory_in?: InputMaybe>; - factory_lt?: InputMaybe; - factory_lte?: InputMaybe; - factory_not?: InputMaybe; - factory_not_contains?: InputMaybe; - factory_not_contains_nocase?: InputMaybe; - factory_not_ends_with?: InputMaybe; - factory_not_ends_with_nocase?: InputMaybe; - factory_not_in?: InputMaybe>; - factory_not_starts_with?: InputMaybe; - factory_not_starts_with_nocase?: InputMaybe; - factory_starts_with?: InputMaybe; - factory_starts_with_nocase?: InputMaybe; - hourData_?: InputMaybe; + createdAtBlockNumber?: InputMaybe; + createdAtBlockNumber_gt?: InputMaybe; + createdAtBlockNumber_gte?: InputMaybe; + createdAtBlockNumber_in?: InputMaybe>; + createdAtBlockNumber_lt?: InputMaybe; + createdAtBlockNumber_lte?: InputMaybe; + createdAtBlockNumber_not?: InputMaybe; + createdAtBlockNumber_not_in?: InputMaybe>; + createdAtTimestamp?: InputMaybe; + createdAtTimestamp_gt?: InputMaybe; + createdAtTimestamp_gte?: InputMaybe; + createdAtTimestamp_in?: InputMaybe>; + createdAtTimestamp_lt?: InputMaybe; + createdAtTimestamp_lte?: InputMaybe; + createdAtTimestamp_not?: InputMaybe; + createdAtTimestamp_not_in?: InputMaybe>; id?: InputMaybe; id_gt?: InputMaybe; id_gte?: InputMaybe; @@ -1737,8 +1211,6 @@ export type Pair_Filter = { id_lte?: InputMaybe; id_not?: InputMaybe; id_not_in?: InputMaybe>; - liquidityPositionSnapshots_?: InputMaybe; - liquidityPositions_?: InputMaybe; liquidityProviderCount?: InputMaybe; liquidityProviderCount_gt?: InputMaybe; liquidityProviderCount_gte?: InputMaybe; @@ -1747,27 +1219,6 @@ export type Pair_Filter = { liquidityProviderCount_lte?: InputMaybe; liquidityProviderCount_not?: InputMaybe; liquidityProviderCount_not_in?: InputMaybe>; - mints_?: InputMaybe; - name?: InputMaybe; - name_contains?: InputMaybe; - name_contains_nocase?: InputMaybe; - name_ends_with?: InputMaybe; - name_ends_with_nocase?: InputMaybe; - name_gt?: InputMaybe; - name_gte?: InputMaybe; - name_in?: InputMaybe>; - name_lt?: InputMaybe; - name_lte?: InputMaybe; - name_not?: InputMaybe; - name_not_contains?: InputMaybe; - name_not_contains_nocase?: InputMaybe; - name_not_ends_with?: InputMaybe; - name_not_ends_with_nocase?: InputMaybe; - name_not_in?: InputMaybe>; - name_not_starts_with?: InputMaybe; - name_not_starts_with_nocase?: InputMaybe; - name_starts_with?: InputMaybe; - name_starts_with_nocase?: InputMaybe; or?: InputMaybe>>; reserve0?: InputMaybe; reserve0_gt?: InputMaybe; @@ -1801,15 +1252,6 @@ export type Pair_Filter = { reserveUSD_lte?: InputMaybe; reserveUSD_not?: InputMaybe; reserveUSD_not_in?: InputMaybe>; - swaps_?: InputMaybe; - timestamp?: InputMaybe; - timestamp_gt?: InputMaybe; - timestamp_gte?: InputMaybe; - timestamp_in?: InputMaybe>; - timestamp_lt?: InputMaybe; - timestamp_lte?: InputMaybe; - timestamp_not?: InputMaybe; - timestamp_not_in?: InputMaybe>; token0?: InputMaybe; token0Price?: InputMaybe; token0Price_gt?: InputMaybe; @@ -1927,59 +1369,40 @@ export type Pair_Filter = { }; export type Pair_OrderBy = - | 'block' - | 'burns' - | 'dayData' - | 'factory' - | 'factory__id' - | 'factory__liquidityETH' - | 'factory__liquidityUSD' - | 'factory__pairCount' - | 'factory__tokenCount' - | 'factory__txCount' - | 'factory__untrackedVolumeUSD' - | 'factory__userCount' - | 'factory__volumeETH' - | 'factory__volumeUSD' - | 'hourData' + | 'createdAtBlockNumber' + | 'createdAtTimestamp' | 'id' - | 'liquidityPositionSnapshots' - | 'liquidityPositions' | 'liquidityProviderCount' - | 'mints' - | 'name' | 'reserve0' | 'reserve1' | 'reserveETH' | 'reserveUSD' - | 'swaps' - | 'timestamp' | 'token0' | 'token0Price' | 'token0__decimals' | 'token0__derivedETH' | 'token0__id' - | 'token0__liquidity' | 'token0__name' | 'token0__symbol' + | 'token0__totalLiquidity' | 'token0__totalSupply' + | 'token0__tradeVolume' + | 'token0__tradeVolumeUSD' | 'token0__txCount' | 'token0__untrackedVolumeUSD' - | 'token0__volume' - | 'token0__volumeUSD' | 'token1' | 'token1Price' | 'token1__decimals' | 'token1__derivedETH' | 'token1__id' - | 'token1__liquidity' | 'token1__name' | 'token1__symbol' + | 'token1__totalLiquidity' | 'token1__totalSupply' + | 'token1__tradeVolume' + | 'token1__tradeVolumeUSD' | 'token1__txCount' | 'token1__untrackedVolumeUSD' - | 'token1__volume' - | 'token1__volumeUSD' | 'totalSupply' | 'trackedReserveETH' | 'txCount' @@ -1997,12 +1420,6 @@ export type Query = { bundles: Array; burn?: Maybe; burns: Array; - dayData?: Maybe; - dayDatas: Array; - factories: Array; - factory?: Maybe; - hourData?: Maybe; - hourDatas: Array; liquidityPosition?: Maybe; liquidityPositionSnapshot?: Maybe; liquidityPositionSnapshots: Array; @@ -2014,21 +1431,20 @@ export type Query = { pairDayDatas: Array; pairHourData?: Maybe; pairHourDatas: Array; - pairSearch: Array; pairs: Array; swap?: Maybe; swaps: Array; token?: Maybe; tokenDayData?: Maybe; tokenDayDatas: Array; - tokenHourData?: Maybe; - tokenHourDatas: Array; - tokenSearch: Array; tokens: Array; transaction?: Maybe; transactions: Array; + uniswapDayData?: Maybe; + uniswapDayDatas: Array; + uniswapFactories: Array; + uniswapFactory?: Maybe; user?: Maybe; - userSearch: Array; users: Array; }; @@ -2074,147 +1490,93 @@ export type QueryBurnsArgs = { }; -export type QueryDayDataArgs = { +export type QueryLiquidityPositionArgs = { block?: InputMaybe; id: Scalars['ID']['input']; subgraphError?: _SubgraphErrorPolicy_; }; -export type QueryDayDatasArgs = { +export type QueryLiquidityPositionSnapshotArgs = { block?: InputMaybe; - first?: InputMaybe; - orderBy?: InputMaybe; - orderDirection?: InputMaybe; - skip?: InputMaybe; + id: Scalars['ID']['input']; subgraphError?: _SubgraphErrorPolicy_; - where?: InputMaybe; }; -export type QueryFactoriesArgs = { +export type QueryLiquidityPositionSnapshotsArgs = { block?: InputMaybe; first?: InputMaybe; - orderBy?: InputMaybe; + orderBy?: InputMaybe; orderDirection?: InputMaybe; skip?: InputMaybe; subgraphError?: _SubgraphErrorPolicy_; - where?: InputMaybe; + where?: InputMaybe; }; -export type QueryFactoryArgs = { +export type QueryLiquidityPositionsArgs = { block?: InputMaybe; - id: Scalars['ID']['input']; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; subgraphError?: _SubgraphErrorPolicy_; + where?: InputMaybe; }; -export type QueryHourDataArgs = { +export type QueryMintArgs = { block?: InputMaybe; id: Scalars['ID']['input']; subgraphError?: _SubgraphErrorPolicy_; }; -export type QueryHourDatasArgs = { +export type QueryMintsArgs = { block?: InputMaybe; first?: InputMaybe; - orderBy?: InputMaybe; + orderBy?: InputMaybe; orderDirection?: InputMaybe; skip?: InputMaybe; subgraphError?: _SubgraphErrorPolicy_; - where?: InputMaybe; + where?: InputMaybe; }; -export type QueryLiquidityPositionArgs = { +export type QueryPairArgs = { block?: InputMaybe; id: Scalars['ID']['input']; subgraphError?: _SubgraphErrorPolicy_; }; -export type QueryLiquidityPositionSnapshotArgs = { +export type QueryPairDayDataArgs = { block?: InputMaybe; id: Scalars['ID']['input']; subgraphError?: _SubgraphErrorPolicy_; }; -export type QueryLiquidityPositionSnapshotsArgs = { +export type QueryPairDayDatasArgs = { block?: InputMaybe; first?: InputMaybe; - orderBy?: InputMaybe; + orderBy?: InputMaybe; orderDirection?: InputMaybe; skip?: InputMaybe; subgraphError?: _SubgraphErrorPolicy_; - where?: InputMaybe; + where?: InputMaybe; }; -export type QueryLiquidityPositionsArgs = { +export type QueryPairHourDataArgs = { block?: InputMaybe; - first?: InputMaybe; - orderBy?: InputMaybe; - orderDirection?: InputMaybe; - skip?: InputMaybe; + id: Scalars['ID']['input']; subgraphError?: _SubgraphErrorPolicy_; - where?: InputMaybe; }; -export type QueryMintArgs = { - block?: InputMaybe; - id: Scalars['ID']['input']; - subgraphError?: _SubgraphErrorPolicy_; -}; - - -export type QueryMintsArgs = { - block?: InputMaybe; - first?: InputMaybe; - orderBy?: InputMaybe; - orderDirection?: InputMaybe; - skip?: InputMaybe; - subgraphError?: _SubgraphErrorPolicy_; - where?: InputMaybe; -}; - - -export type QueryPairArgs = { - block?: InputMaybe; - id: Scalars['ID']['input']; - subgraphError?: _SubgraphErrorPolicy_; -}; - - -export type QueryPairDayDataArgs = { - block?: InputMaybe; - id: Scalars['ID']['input']; - subgraphError?: _SubgraphErrorPolicy_; -}; - - -export type QueryPairDayDatasArgs = { - block?: InputMaybe; - first?: InputMaybe; - orderBy?: InputMaybe; - orderDirection?: InputMaybe; - skip?: InputMaybe; - subgraphError?: _SubgraphErrorPolicy_; - where?: InputMaybe; -}; - - -export type QueryPairHourDataArgs = { - block?: InputMaybe; - id: Scalars['ID']['input']; - subgraphError?: _SubgraphErrorPolicy_; -}; - - -export type QueryPairHourDatasArgs = { +export type QueryPairHourDatasArgs = { block?: InputMaybe; first?: InputMaybe; orderBy?: InputMaybe; @@ -2225,16 +1587,6 @@ export type QueryPairHourDatasArgs = { }; -export type QueryPairSearchArgs = { - block?: InputMaybe; - first?: InputMaybe; - skip?: InputMaybe; - subgraphError?: _SubgraphErrorPolicy_; - text: Scalars['String']['input']; - where?: InputMaybe; -}; - - export type QueryPairsArgs = { block?: InputMaybe; first?: InputMaybe; @@ -2289,77 +1641,75 @@ export type QueryTokenDayDatasArgs = { }; -export type QueryTokenHourDataArgs = { - block?: InputMaybe; - id: Scalars['ID']['input']; - subgraphError?: _SubgraphErrorPolicy_; -}; - - -export type QueryTokenHourDatasArgs = { +export type QueryTokensArgs = { block?: InputMaybe; first?: InputMaybe; - orderBy?: InputMaybe; + orderBy?: InputMaybe; orderDirection?: InputMaybe; skip?: InputMaybe; subgraphError?: _SubgraphErrorPolicy_; - where?: InputMaybe; + where?: InputMaybe; }; -export type QueryTokenSearchArgs = { +export type QueryTransactionArgs = { block?: InputMaybe; - first?: InputMaybe; - skip?: InputMaybe; + id: Scalars['ID']['input']; subgraphError?: _SubgraphErrorPolicy_; - text: Scalars['String']['input']; - where?: InputMaybe; }; -export type QueryTokensArgs = { +export type QueryTransactionsArgs = { block?: InputMaybe; first?: InputMaybe; - orderBy?: InputMaybe; + orderBy?: InputMaybe; orderDirection?: InputMaybe; skip?: InputMaybe; subgraphError?: _SubgraphErrorPolicy_; - where?: InputMaybe; + where?: InputMaybe; }; -export type QueryTransactionArgs = { +export type QueryUniswapDayDataArgs = { block?: InputMaybe; id: Scalars['ID']['input']; subgraphError?: _SubgraphErrorPolicy_; }; -export type QueryTransactionsArgs = { +export type QueryUniswapDayDatasArgs = { block?: InputMaybe; first?: InputMaybe; - orderBy?: InputMaybe; + orderBy?: InputMaybe; orderDirection?: InputMaybe; skip?: InputMaybe; subgraphError?: _SubgraphErrorPolicy_; - where?: InputMaybe; + where?: InputMaybe; }; -export type QueryUserArgs = { +export type QueryUniswapFactoriesArgs = { + block?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; + where?: InputMaybe; +}; + + +export type QueryUniswapFactoryArgs = { block?: InputMaybe; id: Scalars['ID']['input']; subgraphError?: _SubgraphErrorPolicy_; }; -export type QueryUserSearchArgs = { +export type QueryUserArgs = { block?: InputMaybe; - first?: InputMaybe; - skip?: InputMaybe; + id: Scalars['ID']['input']; subgraphError?: _SubgraphErrorPolicy_; - text: Scalars['String']['input']; - where?: InputMaybe; }; @@ -2381,12 +1731,6 @@ export type Subscription = { bundles: Array; burn?: Maybe; burns: Array; - dayData?: Maybe; - dayDatas: Array; - factories: Array; - factory?: Maybe; - hourData?: Maybe; - hourDatas: Array; liquidityPosition?: Maybe; liquidityPositionSnapshot?: Maybe; liquidityPositionSnapshots: Array; @@ -2404,11 +1748,13 @@ export type Subscription = { token?: Maybe; tokenDayData?: Maybe; tokenDayDatas: Array; - tokenHourData?: Maybe; - tokenHourDatas: Array; tokens: Array; transaction?: Maybe; transactions: Array; + uniswapDayData?: Maybe; + uniswapDayDatas: Array; + uniswapFactories: Array; + uniswapFactory?: Maybe; user?: Maybe; users: Array; }; @@ -2455,60 +1801,6 @@ export type SubscriptionBurnsArgs = { }; -export type SubscriptionDayDataArgs = { - block?: InputMaybe; - id: Scalars['ID']['input']; - subgraphError?: _SubgraphErrorPolicy_; -}; - - -export type SubscriptionDayDatasArgs = { - block?: InputMaybe; - first?: InputMaybe; - orderBy?: InputMaybe; - orderDirection?: InputMaybe; - skip?: InputMaybe; - subgraphError?: _SubgraphErrorPolicy_; - where?: InputMaybe; -}; - - -export type SubscriptionFactoriesArgs = { - block?: InputMaybe; - first?: InputMaybe; - orderBy?: InputMaybe; - orderDirection?: InputMaybe; - skip?: InputMaybe; - subgraphError?: _SubgraphErrorPolicy_; - where?: InputMaybe; -}; - - -export type SubscriptionFactoryArgs = { - block?: InputMaybe; - id: Scalars['ID']['input']; - subgraphError?: _SubgraphErrorPolicy_; -}; - - -export type SubscriptionHourDataArgs = { - block?: InputMaybe; - id: Scalars['ID']['input']; - subgraphError?: _SubgraphErrorPolicy_; -}; - - -export type SubscriptionHourDatasArgs = { - block?: InputMaybe; - first?: InputMaybe; - orderBy?: InputMaybe; - orderDirection?: InputMaybe; - skip?: InputMaybe; - subgraphError?: _SubgraphErrorPolicy_; - where?: InputMaybe; -}; - - export type SubscriptionLiquidityPositionArgs = { block?: InputMaybe; id: Scalars['ID']['input']; @@ -2660,50 +1952,68 @@ export type SubscriptionTokenDayDatasArgs = { }; -export type SubscriptionTokenHourDataArgs = { +export type SubscriptionTokensArgs = { block?: InputMaybe; - id: Scalars['ID']['input']; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; subgraphError?: _SubgraphErrorPolicy_; + where?: InputMaybe; }; -export type SubscriptionTokenHourDatasArgs = { +export type SubscriptionTransactionArgs = { block?: InputMaybe; - first?: InputMaybe; - orderBy?: InputMaybe; - orderDirection?: InputMaybe; - skip?: InputMaybe; + id: Scalars['ID']['input']; subgraphError?: _SubgraphErrorPolicy_; - where?: InputMaybe; }; -export type SubscriptionTokensArgs = { +export type SubscriptionTransactionsArgs = { block?: InputMaybe; first?: InputMaybe; - orderBy?: InputMaybe; + orderBy?: InputMaybe; orderDirection?: InputMaybe; skip?: InputMaybe; subgraphError?: _SubgraphErrorPolicy_; - where?: InputMaybe; + where?: InputMaybe; }; -export type SubscriptionTransactionArgs = { +export type SubscriptionUniswapDayDataArgs = { block?: InputMaybe; id: Scalars['ID']['input']; subgraphError?: _SubgraphErrorPolicy_; }; -export type SubscriptionTransactionsArgs = { +export type SubscriptionUniswapDayDatasArgs = { block?: InputMaybe; first?: InputMaybe; - orderBy?: InputMaybe; + orderBy?: InputMaybe; orderDirection?: InputMaybe; skip?: InputMaybe; subgraphError?: _SubgraphErrorPolicy_; - where?: InputMaybe; + where?: InputMaybe; +}; + + +export type SubscriptionUniswapFactoriesArgs = { + block?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; + where?: InputMaybe; +}; + + +export type SubscriptionUniswapFactoryArgs = { + block?: InputMaybe; + id: Scalars['ID']['input']; + subgraphError?: _SubgraphErrorPolicy_; }; @@ -2882,15 +2192,14 @@ export type Swap_OrderBy = | 'id' | 'logIndex' | 'pair' - | 'pair__block' + | 'pair__createdAtBlockNumber' + | 'pair__createdAtTimestamp' | 'pair__id' | 'pair__liquidityProviderCount' - | 'pair__name' | 'pair__reserve0' | 'pair__reserve1' | 'pair__reserveETH' | 'pair__reserveUSD' - | 'pair__timestamp' | 'pair__token0Price' | 'pair__token1Price' | 'pair__totalSupply' @@ -2905,105 +2214,78 @@ export type Swap_OrderBy = | 'to' | 'transaction' | 'transaction__blockNumber' + | 'transaction__gasPrice' + | 'transaction__gasUsed' | 'transaction__id' | 'transaction__timestamp' | '%future added value'; export type Token = { __typename?: 'Token'; - basePairs: Array; - basePairsDayData: Array; - dayData: Array; decimals: Scalars['BigInt']['output']; - derivedETH: Scalars['BigDecimal']['output']; - factory: Factory; - hourData: Array; + derivedETH?: Maybe; id: Scalars['ID']['output']; - liquidity: Scalars['BigDecimal']['output']; name: Scalars['String']['output']; - quotePairs: Array; - quotePairsDayData: Array; symbol: Scalars['String']['output']; + totalLiquidity: Scalars['BigDecimal']['output']; totalSupply: Scalars['BigInt']['output']; + tradeVolume: Scalars['BigDecimal']['output']; + tradeVolumeUSD: Scalars['BigDecimal']['output']; txCount: Scalars['BigInt']['output']; untrackedVolumeUSD: Scalars['BigDecimal']['output']; - volume: Scalars['BigDecimal']['output']; - volumeUSD: Scalars['BigDecimal']['output']; -}; - - -export type TokenBasePairsArgs = { - first?: InputMaybe; - orderBy?: InputMaybe; - orderDirection?: InputMaybe; - skip?: InputMaybe; - where?: InputMaybe; -}; - - -export type TokenBasePairsDayDataArgs = { - first?: InputMaybe; - orderBy?: InputMaybe; - orderDirection?: InputMaybe; - skip?: InputMaybe; - where?: InputMaybe; -}; - - -export type TokenDayDataArgs = { - first?: InputMaybe; - orderBy?: InputMaybe; - orderDirection?: InputMaybe; - skip?: InputMaybe; - where?: InputMaybe; -}; - - -export type TokenHourDataArgs = { - first?: InputMaybe; - orderBy?: InputMaybe; - orderDirection?: InputMaybe; - skip?: InputMaybe; - where?: InputMaybe; -}; - - -export type TokenQuotePairsArgs = { - first?: InputMaybe; - orderBy?: InputMaybe; - orderDirection?: InputMaybe; - skip?: InputMaybe; - where?: InputMaybe; -}; - - -export type TokenQuotePairsDayDataArgs = { - first?: InputMaybe; - orderBy?: InputMaybe; - orderDirection?: InputMaybe; - skip?: InputMaybe; - where?: InputMaybe; }; export type TokenDayData = { __typename?: 'TokenDayData'; + dailyTxns: Scalars['BigInt']['output']; + dailyVolumeETH: Scalars['BigDecimal']['output']; + dailyVolumeToken: Scalars['BigDecimal']['output']; + dailyVolumeUSD: Scalars['BigDecimal']['output']; date: Scalars['Int']['output']; id: Scalars['ID']['output']; - liquidity: Scalars['BigDecimal']['output']; - liquidityETH: Scalars['BigDecimal']['output']; - liquidityUSD: Scalars['BigDecimal']['output']; priceUSD: Scalars['BigDecimal']['output']; token: Token; - txCount: Scalars['BigInt']['output']; - volume: Scalars['BigDecimal']['output']; - volumeETH: Scalars['BigDecimal']['output']; - volumeUSD: Scalars['BigDecimal']['output']; + totalLiquidityETH: Scalars['BigDecimal']['output']; + totalLiquidityToken: Scalars['BigDecimal']['output']; + totalLiquidityUSD: Scalars['BigDecimal']['output']; }; export type TokenDayData_Filter = { /** Filter for the block changed event. */ _change_block?: InputMaybe; and?: InputMaybe>>; + dailyTxns?: InputMaybe; + dailyTxns_gt?: InputMaybe; + dailyTxns_gte?: InputMaybe; + dailyTxns_in?: InputMaybe>; + dailyTxns_lt?: InputMaybe; + dailyTxns_lte?: InputMaybe; + dailyTxns_not?: InputMaybe; + dailyTxns_not_in?: InputMaybe>; + dailyVolumeETH?: InputMaybe; + dailyVolumeETH_gt?: InputMaybe; + dailyVolumeETH_gte?: InputMaybe; + dailyVolumeETH_in?: InputMaybe>; + dailyVolumeETH_lt?: InputMaybe; + dailyVolumeETH_lte?: InputMaybe; + dailyVolumeETH_not?: InputMaybe; + dailyVolumeETH_not_in?: InputMaybe>; + dailyVolumeToken?: InputMaybe; + dailyVolumeToken_gt?: InputMaybe; + dailyVolumeToken_gte?: InputMaybe; + dailyVolumeToken_in?: InputMaybe>; + dailyVolumeToken_lt?: InputMaybe; + dailyVolumeToken_lte?: InputMaybe; + dailyVolumeToken_not?: InputMaybe; + dailyVolumeToken_not_in?: InputMaybe>; + dailyVolumeUSD?: InputMaybe; + dailyVolumeUSD_gt?: InputMaybe; + dailyVolumeUSD_gte?: InputMaybe; + dailyVolumeUSD_in?: InputMaybe>; + dailyVolumeUSD_lt?: InputMaybe; + dailyVolumeUSD_lte?: InputMaybe; + dailyVolumeUSD_not?: InputMaybe; + dailyVolumeUSD_not_in?: InputMaybe>; date?: InputMaybe; date_gt?: InputMaybe; date_gte?: InputMaybe; @@ -3020,30 +2302,6 @@ export type TokenDayData_Filter = { id_lte?: InputMaybe; id_not?: InputMaybe; id_not_in?: InputMaybe>; - liquidity?: InputMaybe; - liquidityETH?: InputMaybe; - liquidityETH_gt?: InputMaybe; - liquidityETH_gte?: InputMaybe; - liquidityETH_in?: InputMaybe>; - liquidityETH_lt?: InputMaybe; - liquidityETH_lte?: InputMaybe; - liquidityETH_not?: InputMaybe; - liquidityETH_not_in?: InputMaybe>; - liquidityUSD?: InputMaybe; - liquidityUSD_gt?: InputMaybe; - liquidityUSD_gte?: InputMaybe; - liquidityUSD_in?: InputMaybe>; - liquidityUSD_lt?: InputMaybe; - liquidityUSD_lte?: InputMaybe; - liquidityUSD_not?: InputMaybe; - liquidityUSD_not_in?: InputMaybe>; - liquidity_gt?: InputMaybe; - liquidity_gte?: InputMaybe; - liquidity_in?: InputMaybe>; - liquidity_lt?: InputMaybe; - liquidity_lte?: InputMaybe; - liquidity_not?: InputMaybe; - liquidity_not_in?: InputMaybe>; or?: InputMaybe>>; priceUSD?: InputMaybe; priceUSD_gt?: InputMaybe; @@ -3074,220 +2332,61 @@ export type TokenDayData_Filter = { token_not_starts_with_nocase?: InputMaybe; token_starts_with?: InputMaybe; token_starts_with_nocase?: InputMaybe; - txCount?: InputMaybe; - txCount_gt?: InputMaybe; - txCount_gte?: InputMaybe; - txCount_in?: InputMaybe>; - txCount_lt?: InputMaybe; - txCount_lte?: InputMaybe; - txCount_not?: InputMaybe; - txCount_not_in?: InputMaybe>; - volume?: InputMaybe; - volumeETH?: InputMaybe; - volumeETH_gt?: InputMaybe; - volumeETH_gte?: InputMaybe; - volumeETH_in?: InputMaybe>; - volumeETH_lt?: InputMaybe; - volumeETH_lte?: InputMaybe; - volumeETH_not?: InputMaybe; - volumeETH_not_in?: InputMaybe>; - volumeUSD?: InputMaybe; - volumeUSD_gt?: InputMaybe; - volumeUSD_gte?: InputMaybe; - volumeUSD_in?: InputMaybe>; - volumeUSD_lt?: InputMaybe; - volumeUSD_lte?: InputMaybe; - volumeUSD_not?: InputMaybe; - volumeUSD_not_in?: InputMaybe>; - volume_gt?: InputMaybe; - volume_gte?: InputMaybe; - volume_in?: InputMaybe>; - volume_lt?: InputMaybe; - volume_lte?: InputMaybe; - volume_not?: InputMaybe; - volume_not_in?: InputMaybe>; + totalLiquidityETH?: InputMaybe; + totalLiquidityETH_gt?: InputMaybe; + totalLiquidityETH_gte?: InputMaybe; + totalLiquidityETH_in?: InputMaybe>; + totalLiquidityETH_lt?: InputMaybe; + totalLiquidityETH_lte?: InputMaybe; + totalLiquidityETH_not?: InputMaybe; + totalLiquidityETH_not_in?: InputMaybe>; + totalLiquidityToken?: InputMaybe; + totalLiquidityToken_gt?: InputMaybe; + totalLiquidityToken_gte?: InputMaybe; + totalLiquidityToken_in?: InputMaybe>; + totalLiquidityToken_lt?: InputMaybe; + totalLiquidityToken_lte?: InputMaybe; + totalLiquidityToken_not?: InputMaybe; + totalLiquidityToken_not_in?: InputMaybe>; + totalLiquidityUSD?: InputMaybe; + totalLiquidityUSD_gt?: InputMaybe; + totalLiquidityUSD_gte?: InputMaybe; + totalLiquidityUSD_in?: InputMaybe>; + totalLiquidityUSD_lt?: InputMaybe; + totalLiquidityUSD_lte?: InputMaybe; + totalLiquidityUSD_not?: InputMaybe; + totalLiquidityUSD_not_in?: InputMaybe>; }; export type TokenDayData_OrderBy = + | 'dailyTxns' + | 'dailyVolumeETH' + | 'dailyVolumeToken' + | 'dailyVolumeUSD' | 'date' | 'id' - | 'liquidity' - | 'liquidityETH' - | 'liquidityUSD' | 'priceUSD' | 'token' | 'token__decimals' | 'token__derivedETH' | 'token__id' - | 'token__liquidity' | 'token__name' | 'token__symbol' + | 'token__totalLiquidity' | 'token__totalSupply' + | 'token__tradeVolume' + | 'token__tradeVolumeUSD' | 'token__txCount' | 'token__untrackedVolumeUSD' - | 'token__volume' - | 'token__volumeUSD' - | 'txCount' - | 'volume' - | 'volumeETH' - | 'volumeUSD' - | '%future added value'; - -export type TokenHourData = { - __typename?: 'TokenHourData'; - date: Scalars['Int']['output']; - id: Scalars['ID']['output']; - liquidity: Scalars['BigDecimal']['output']; - liquidityETH: Scalars['BigDecimal']['output']; - liquidityUSD: Scalars['BigDecimal']['output']; - priceUSD: Scalars['BigDecimal']['output']; - token: Token; - txCount: Scalars['BigInt']['output']; - volume: Scalars['BigDecimal']['output']; - volumeETH: Scalars['BigDecimal']['output']; - volumeUSD: Scalars['BigDecimal']['output']; -}; - -export type TokenHourData_Filter = { - /** Filter for the block changed event. */ - _change_block?: InputMaybe; - and?: InputMaybe>>; - date?: InputMaybe; - date_gt?: InputMaybe; - date_gte?: InputMaybe; - date_in?: InputMaybe>; - date_lt?: InputMaybe; - date_lte?: InputMaybe; - date_not?: InputMaybe; - date_not_in?: InputMaybe>; - id?: InputMaybe; - id_gt?: InputMaybe; - id_gte?: InputMaybe; - id_in?: InputMaybe>; - id_lt?: InputMaybe; - id_lte?: InputMaybe; - id_not?: InputMaybe; - id_not_in?: InputMaybe>; - liquidity?: InputMaybe; - liquidityETH?: InputMaybe; - liquidityETH_gt?: InputMaybe; - liquidityETH_gte?: InputMaybe; - liquidityETH_in?: InputMaybe>; - liquidityETH_lt?: InputMaybe; - liquidityETH_lte?: InputMaybe; - liquidityETH_not?: InputMaybe; - liquidityETH_not_in?: InputMaybe>; - liquidityUSD?: InputMaybe; - liquidityUSD_gt?: InputMaybe; - liquidityUSD_gte?: InputMaybe; - liquidityUSD_in?: InputMaybe>; - liquidityUSD_lt?: InputMaybe; - liquidityUSD_lte?: InputMaybe; - liquidityUSD_not?: InputMaybe; - liquidityUSD_not_in?: InputMaybe>; - liquidity_gt?: InputMaybe; - liquidity_gte?: InputMaybe; - liquidity_in?: InputMaybe>; - liquidity_lt?: InputMaybe; - liquidity_lte?: InputMaybe; - liquidity_not?: InputMaybe; - liquidity_not_in?: InputMaybe>; - or?: InputMaybe>>; - priceUSD?: InputMaybe; - priceUSD_gt?: InputMaybe; - priceUSD_gte?: InputMaybe; - priceUSD_in?: InputMaybe>; - priceUSD_lt?: InputMaybe; - priceUSD_lte?: InputMaybe; - priceUSD_not?: InputMaybe; - priceUSD_not_in?: InputMaybe>; - token?: InputMaybe; - token_?: InputMaybe; - token_contains?: InputMaybe; - token_contains_nocase?: InputMaybe; - token_ends_with?: InputMaybe; - token_ends_with_nocase?: InputMaybe; - token_gt?: InputMaybe; - token_gte?: InputMaybe; - token_in?: InputMaybe>; - token_lt?: InputMaybe; - token_lte?: InputMaybe; - token_not?: InputMaybe; - token_not_contains?: InputMaybe; - token_not_contains_nocase?: InputMaybe; - token_not_ends_with?: InputMaybe; - token_not_ends_with_nocase?: InputMaybe; - token_not_in?: InputMaybe>; - token_not_starts_with?: InputMaybe; - token_not_starts_with_nocase?: InputMaybe; - token_starts_with?: InputMaybe; - token_starts_with_nocase?: InputMaybe; - txCount?: InputMaybe; - txCount_gt?: InputMaybe; - txCount_gte?: InputMaybe; - txCount_in?: InputMaybe>; - txCount_lt?: InputMaybe; - txCount_lte?: InputMaybe; - txCount_not?: InputMaybe; - txCount_not_in?: InputMaybe>; - volume?: InputMaybe; - volumeETH?: InputMaybe; - volumeETH_gt?: InputMaybe; - volumeETH_gte?: InputMaybe; - volumeETH_in?: InputMaybe>; - volumeETH_lt?: InputMaybe; - volumeETH_lte?: InputMaybe; - volumeETH_not?: InputMaybe; - volumeETH_not_in?: InputMaybe>; - volumeUSD?: InputMaybe; - volumeUSD_gt?: InputMaybe; - volumeUSD_gte?: InputMaybe; - volumeUSD_in?: InputMaybe>; - volumeUSD_lt?: InputMaybe; - volumeUSD_lte?: InputMaybe; - volumeUSD_not?: InputMaybe; - volumeUSD_not_in?: InputMaybe>; - volume_gt?: InputMaybe; - volume_gte?: InputMaybe; - volume_in?: InputMaybe>; - volume_lt?: InputMaybe; - volume_lte?: InputMaybe; - volume_not?: InputMaybe; - volume_not_in?: InputMaybe>; -}; - -export type TokenHourData_OrderBy = - | 'date' - | 'id' - | 'liquidity' - | 'liquidityETH' - | 'liquidityUSD' - | 'priceUSD' - | 'token' - | 'token__decimals' - | 'token__derivedETH' - | 'token__id' - | 'token__liquidity' - | 'token__name' - | 'token__symbol' - | 'token__totalSupply' - | 'token__txCount' - | 'token__untrackedVolumeUSD' - | 'token__volume' - | 'token__volumeUSD' - | 'txCount' - | 'volume' - | 'volumeETH' - | 'volumeUSD' + | 'totalLiquidityETH' + | 'totalLiquidityToken' + | 'totalLiquidityUSD' | '%future added value'; export type Token_Filter = { /** Filter for the block changed event. */ _change_block?: InputMaybe; and?: InputMaybe>>; - basePairsDayData_?: InputMaybe; - basePairs_?: InputMaybe; - dayData_?: InputMaybe; decimals?: InputMaybe; decimals_gt?: InputMaybe; decimals_gte?: InputMaybe; @@ -3304,28 +2403,6 @@ export type Token_Filter = { derivedETH_lte?: InputMaybe; derivedETH_not?: InputMaybe; derivedETH_not_in?: InputMaybe>; - factory?: InputMaybe; - factory_?: InputMaybe; - factory_contains?: InputMaybe; - factory_contains_nocase?: InputMaybe; - factory_ends_with?: InputMaybe; - factory_ends_with_nocase?: InputMaybe; - factory_gt?: InputMaybe; - factory_gte?: InputMaybe; - factory_in?: InputMaybe>; - factory_lt?: InputMaybe; - factory_lte?: InputMaybe; - factory_not?: InputMaybe; - factory_not_contains?: InputMaybe; - factory_not_contains_nocase?: InputMaybe; - factory_not_ends_with?: InputMaybe; - factory_not_ends_with_nocase?: InputMaybe; - factory_not_in?: InputMaybe>; - factory_not_starts_with?: InputMaybe; - factory_not_starts_with_nocase?: InputMaybe; - factory_starts_with?: InputMaybe; - factory_starts_with_nocase?: InputMaybe; - hourData_?: InputMaybe; id?: InputMaybe; id_gt?: InputMaybe; id_gte?: InputMaybe; @@ -3334,14 +2411,6 @@ export type Token_Filter = { id_lte?: InputMaybe; id_not?: InputMaybe; id_not_in?: InputMaybe>; - liquidity?: InputMaybe; - liquidity_gt?: InputMaybe; - liquidity_gte?: InputMaybe; - liquidity_in?: InputMaybe>; - liquidity_lt?: InputMaybe; - liquidity_lte?: InputMaybe; - liquidity_not?: InputMaybe; - liquidity_not_in?: InputMaybe>; name?: InputMaybe; name_contains?: InputMaybe; name_contains_nocase?: InputMaybe; @@ -3363,8 +2432,6 @@ export type Token_Filter = { name_starts_with?: InputMaybe; name_starts_with_nocase?: InputMaybe; or?: InputMaybe>>; - quotePairsDayData_?: InputMaybe; - quotePairs_?: InputMaybe; symbol?: InputMaybe; symbol_contains?: InputMaybe; symbol_contains_nocase?: InputMaybe; @@ -3385,6 +2452,14 @@ export type Token_Filter = { symbol_not_starts_with_nocase?: InputMaybe; symbol_starts_with?: InputMaybe; symbol_starts_with_nocase?: InputMaybe; + totalLiquidity?: InputMaybe; + totalLiquidity_gt?: InputMaybe; + totalLiquidity_gte?: InputMaybe; + totalLiquidity_in?: InputMaybe>; + totalLiquidity_lt?: InputMaybe; + totalLiquidity_lte?: InputMaybe; + totalLiquidity_not?: InputMaybe; + totalLiquidity_not_in?: InputMaybe>; totalSupply?: InputMaybe; totalSupply_gt?: InputMaybe; totalSupply_gte?: InputMaybe; @@ -3393,6 +2468,22 @@ export type Token_Filter = { totalSupply_lte?: InputMaybe; totalSupply_not?: InputMaybe; totalSupply_not_in?: InputMaybe>; + tradeVolume?: InputMaybe; + tradeVolumeUSD?: InputMaybe; + tradeVolumeUSD_gt?: InputMaybe; + tradeVolumeUSD_gte?: InputMaybe; + tradeVolumeUSD_in?: InputMaybe>; + tradeVolumeUSD_lt?: InputMaybe; + tradeVolumeUSD_lte?: InputMaybe; + tradeVolumeUSD_not?: InputMaybe; + tradeVolumeUSD_not_in?: InputMaybe>; + tradeVolume_gt?: InputMaybe; + tradeVolume_gte?: InputMaybe; + tradeVolume_in?: InputMaybe>; + tradeVolume_lt?: InputMaybe; + tradeVolume_lte?: InputMaybe; + tradeVolume_not?: InputMaybe; + tradeVolume_not_in?: InputMaybe>; txCount?: InputMaybe; txCount_gt?: InputMaybe; txCount_gte?: InputMaybe; @@ -3409,59 +2500,28 @@ export type Token_Filter = { untrackedVolumeUSD_lte?: InputMaybe; untrackedVolumeUSD_not?: InputMaybe; untrackedVolumeUSD_not_in?: InputMaybe>; - volume?: InputMaybe; - volumeUSD?: InputMaybe; - volumeUSD_gt?: InputMaybe; - volumeUSD_gte?: InputMaybe; - volumeUSD_in?: InputMaybe>; - volumeUSD_lt?: InputMaybe; - volumeUSD_lte?: InputMaybe; - volumeUSD_not?: InputMaybe; - volumeUSD_not_in?: InputMaybe>; - volume_gt?: InputMaybe; - volume_gte?: InputMaybe; - volume_in?: InputMaybe>; - volume_lt?: InputMaybe; - volume_lte?: InputMaybe; - volume_not?: InputMaybe; - volume_not_in?: InputMaybe>; }; export type Token_OrderBy = - | 'basePairs' - | 'basePairsDayData' - | 'dayData' | 'decimals' | 'derivedETH' - | 'factory' - | 'factory__id' - | 'factory__liquidityETH' - | 'factory__liquidityUSD' - | 'factory__pairCount' - | 'factory__tokenCount' - | 'factory__txCount' - | 'factory__untrackedVolumeUSD' - | 'factory__userCount' - | 'factory__volumeETH' - | 'factory__volumeUSD' - | 'hourData' | 'id' - | 'liquidity' | 'name' - | 'quotePairs' - | 'quotePairsDayData' | 'symbol' + | 'totalLiquidity' | 'totalSupply' + | 'tradeVolume' + | 'tradeVolumeUSD' | 'txCount' | 'untrackedVolumeUSD' - | 'volume' - | 'volumeUSD' | '%future added value'; export type Transaction = { __typename?: 'Transaction'; blockNumber: Scalars['BigInt']['output']; burns: Array>; + gasPrice: Scalars['BigInt']['output']; + gasUsed: Scalars['BigInt']['output']; id: Scalars['ID']['output']; mints: Array>; swaps: Array>; @@ -3514,6 +2574,22 @@ export type Transaction_Filter = { burns_not?: InputMaybe>; burns_not_contains?: InputMaybe>; burns_not_contains_nocase?: InputMaybe>; + gasPrice?: InputMaybe; + gasPrice_gt?: InputMaybe; + gasPrice_gte?: InputMaybe; + gasPrice_in?: InputMaybe>; + gasPrice_lt?: InputMaybe; + gasPrice_lte?: InputMaybe; + gasPrice_not?: InputMaybe; + gasPrice_not_in?: InputMaybe>; + gasUsed?: InputMaybe; + gasUsed_gt?: InputMaybe; + gasUsed_gte?: InputMaybe; + gasUsed_in?: InputMaybe>; + gasUsed_lt?: InputMaybe; + gasUsed_lte?: InputMaybe; + gasUsed_not?: InputMaybe; + gasUsed_not_in?: InputMaybe>; id?: InputMaybe; id_gt?: InputMaybe; id_gte?: InputMaybe; @@ -3550,16 +2626,227 @@ export type Transaction_Filter = { export type Transaction_OrderBy = | 'blockNumber' | 'burns' + | 'gasPrice' + | 'gasUsed' | 'id' | 'mints' | 'swaps' | 'timestamp' | '%future added value'; +export type UniswapDayData = { + __typename?: 'UniswapDayData'; + dailyVolumeETH: Scalars['BigDecimal']['output']; + dailyVolumeUSD: Scalars['BigDecimal']['output']; + dailyVolumeUntracked: Scalars['BigDecimal']['output']; + date: Scalars['Int']['output']; + id: Scalars['ID']['output']; + totalLiquidityETH: Scalars['BigDecimal']['output']; + totalLiquidityUSD: Scalars['BigDecimal']['output']; + totalVolumeETH: Scalars['BigDecimal']['output']; + totalVolumeUSD: Scalars['BigDecimal']['output']; + txCount: Scalars['BigInt']['output']; +}; + +export type UniswapDayData_Filter = { + /** Filter for the block changed event. */ + _change_block?: InputMaybe; + and?: InputMaybe>>; + dailyVolumeETH?: InputMaybe; + dailyVolumeETH_gt?: InputMaybe; + dailyVolumeETH_gte?: InputMaybe; + dailyVolumeETH_in?: InputMaybe>; + dailyVolumeETH_lt?: InputMaybe; + dailyVolumeETH_lte?: InputMaybe; + dailyVolumeETH_not?: InputMaybe; + dailyVolumeETH_not_in?: InputMaybe>; + dailyVolumeUSD?: InputMaybe; + dailyVolumeUSD_gt?: InputMaybe; + dailyVolumeUSD_gte?: InputMaybe; + dailyVolumeUSD_in?: InputMaybe>; + dailyVolumeUSD_lt?: InputMaybe; + dailyVolumeUSD_lte?: InputMaybe; + dailyVolumeUSD_not?: InputMaybe; + dailyVolumeUSD_not_in?: InputMaybe>; + dailyVolumeUntracked?: InputMaybe; + dailyVolumeUntracked_gt?: InputMaybe; + dailyVolumeUntracked_gte?: InputMaybe; + dailyVolumeUntracked_in?: InputMaybe>; + dailyVolumeUntracked_lt?: InputMaybe; + dailyVolumeUntracked_lte?: InputMaybe; + dailyVolumeUntracked_not?: InputMaybe; + dailyVolumeUntracked_not_in?: InputMaybe>; + date?: InputMaybe; + date_gt?: InputMaybe; + date_gte?: InputMaybe; + date_in?: InputMaybe>; + date_lt?: InputMaybe; + date_lte?: InputMaybe; + date_not?: InputMaybe; + date_not_in?: InputMaybe>; + id?: InputMaybe; + id_gt?: InputMaybe; + id_gte?: InputMaybe; + id_in?: InputMaybe>; + id_lt?: InputMaybe; + id_lte?: InputMaybe; + id_not?: InputMaybe; + id_not_in?: InputMaybe>; + or?: InputMaybe>>; + totalLiquidityETH?: InputMaybe; + totalLiquidityETH_gt?: InputMaybe; + totalLiquidityETH_gte?: InputMaybe; + totalLiquidityETH_in?: InputMaybe>; + totalLiquidityETH_lt?: InputMaybe; + totalLiquidityETH_lte?: InputMaybe; + totalLiquidityETH_not?: InputMaybe; + totalLiquidityETH_not_in?: InputMaybe>; + totalLiquidityUSD?: InputMaybe; + totalLiquidityUSD_gt?: InputMaybe; + totalLiquidityUSD_gte?: InputMaybe; + totalLiquidityUSD_in?: InputMaybe>; + totalLiquidityUSD_lt?: InputMaybe; + totalLiquidityUSD_lte?: InputMaybe; + totalLiquidityUSD_not?: InputMaybe; + totalLiquidityUSD_not_in?: InputMaybe>; + totalVolumeETH?: InputMaybe; + totalVolumeETH_gt?: InputMaybe; + totalVolumeETH_gte?: InputMaybe; + totalVolumeETH_in?: InputMaybe>; + totalVolumeETH_lt?: InputMaybe; + totalVolumeETH_lte?: InputMaybe; + totalVolumeETH_not?: InputMaybe; + totalVolumeETH_not_in?: InputMaybe>; + totalVolumeUSD?: InputMaybe; + totalVolumeUSD_gt?: InputMaybe; + totalVolumeUSD_gte?: InputMaybe; + totalVolumeUSD_in?: InputMaybe>; + totalVolumeUSD_lt?: InputMaybe; + totalVolumeUSD_lte?: InputMaybe; + totalVolumeUSD_not?: InputMaybe; + totalVolumeUSD_not_in?: InputMaybe>; + txCount?: InputMaybe; + txCount_gt?: InputMaybe; + txCount_gte?: InputMaybe; + txCount_in?: InputMaybe>; + txCount_lt?: InputMaybe; + txCount_lte?: InputMaybe; + txCount_not?: InputMaybe; + txCount_not_in?: InputMaybe>; +}; + +export type UniswapDayData_OrderBy = + | 'dailyVolumeETH' + | 'dailyVolumeUSD' + | 'dailyVolumeUntracked' + | 'date' + | 'id' + | 'totalLiquidityETH' + | 'totalLiquidityUSD' + | 'totalVolumeETH' + | 'totalVolumeUSD' + | 'txCount' + | '%future added value'; + +export type UniswapFactory = { + __typename?: 'UniswapFactory'; + id: Scalars['ID']['output']; + pairCount: Scalars['Int']['output']; + totalLiquidityETH: Scalars['BigDecimal']['output']; + totalLiquidityUSD: Scalars['BigDecimal']['output']; + totalVolumeETH: Scalars['BigDecimal']['output']; + totalVolumeUSD: Scalars['BigDecimal']['output']; + txCount: Scalars['BigInt']['output']; + untrackedVolumeUSD: Scalars['BigDecimal']['output']; +}; + +export type UniswapFactory_Filter = { + /** Filter for the block changed event. */ + _change_block?: InputMaybe; + and?: InputMaybe>>; + id?: InputMaybe; + id_gt?: InputMaybe; + id_gte?: InputMaybe; + id_in?: InputMaybe>; + id_lt?: InputMaybe; + id_lte?: InputMaybe; + id_not?: InputMaybe; + id_not_in?: InputMaybe>; + or?: InputMaybe>>; + pairCount?: InputMaybe; + pairCount_gt?: InputMaybe; + pairCount_gte?: InputMaybe; + pairCount_in?: InputMaybe>; + pairCount_lt?: InputMaybe; + pairCount_lte?: InputMaybe; + pairCount_not?: InputMaybe; + pairCount_not_in?: InputMaybe>; + totalLiquidityETH?: InputMaybe; + totalLiquidityETH_gt?: InputMaybe; + totalLiquidityETH_gte?: InputMaybe; + totalLiquidityETH_in?: InputMaybe>; + totalLiquidityETH_lt?: InputMaybe; + totalLiquidityETH_lte?: InputMaybe; + totalLiquidityETH_not?: InputMaybe; + totalLiquidityETH_not_in?: InputMaybe>; + totalLiquidityUSD?: InputMaybe; + totalLiquidityUSD_gt?: InputMaybe; + totalLiquidityUSD_gte?: InputMaybe; + totalLiquidityUSD_in?: InputMaybe>; + totalLiquidityUSD_lt?: InputMaybe; + totalLiquidityUSD_lte?: InputMaybe; + totalLiquidityUSD_not?: InputMaybe; + totalLiquidityUSD_not_in?: InputMaybe>; + totalVolumeETH?: InputMaybe; + totalVolumeETH_gt?: InputMaybe; + totalVolumeETH_gte?: InputMaybe; + totalVolumeETH_in?: InputMaybe>; + totalVolumeETH_lt?: InputMaybe; + totalVolumeETH_lte?: InputMaybe; + totalVolumeETH_not?: InputMaybe; + totalVolumeETH_not_in?: InputMaybe>; + totalVolumeUSD?: InputMaybe; + totalVolumeUSD_gt?: InputMaybe; + totalVolumeUSD_gte?: InputMaybe; + totalVolumeUSD_in?: InputMaybe>; + totalVolumeUSD_lt?: InputMaybe; + totalVolumeUSD_lte?: InputMaybe; + totalVolumeUSD_not?: InputMaybe; + totalVolumeUSD_not_in?: InputMaybe>; + txCount?: InputMaybe; + txCount_gt?: InputMaybe; + txCount_gte?: InputMaybe; + txCount_in?: InputMaybe>; + txCount_lt?: InputMaybe; + txCount_lte?: InputMaybe; + txCount_not?: InputMaybe; + txCount_not_in?: InputMaybe>; + untrackedVolumeUSD?: InputMaybe; + untrackedVolumeUSD_gt?: InputMaybe; + untrackedVolumeUSD_gte?: InputMaybe; + untrackedVolumeUSD_in?: InputMaybe>; + untrackedVolumeUSD_lt?: InputMaybe; + untrackedVolumeUSD_lte?: InputMaybe; + untrackedVolumeUSD_not?: InputMaybe; + untrackedVolumeUSD_not_in?: InputMaybe>; +}; + +export type UniswapFactory_OrderBy = + | 'id' + | 'pairCount' + | 'totalLiquidityETH' + | 'totalLiquidityUSD' + | 'totalVolumeETH' + | 'totalVolumeUSD' + | 'txCount' + | 'untrackedVolumeUSD' + | '%future added value'; + export type User = { __typename?: 'User'; id: Scalars['ID']['output']; - liquidityPositions: Array; + liquidityPositions?: Maybe>; + usdSwapped: Scalars['BigDecimal']['output']; }; @@ -3585,11 +2872,20 @@ export type User_Filter = { id_not_in?: InputMaybe>; liquidityPositions_?: InputMaybe; or?: InputMaybe>>; + usdSwapped?: InputMaybe; + usdSwapped_gt?: InputMaybe; + usdSwapped_gte?: InputMaybe; + usdSwapped_in?: InputMaybe>; + usdSwapped_lt?: InputMaybe; + usdSwapped_lte?: InputMaybe; + usdSwapped_not?: InputMaybe; + usdSwapped_not_in?: InputMaybe>; }; export type User_OrderBy = | 'id' | 'liquidityPositions' + | 'usdSwapped' | '%future added value'; export type _Block_ = { diff --git a/packages/gql/src/sushi/__generated__/Ethereum.ts b/packages/gql/src/sushi/__generated__/Ethereum.ts index aa6117dc1..914cf2243 100644 --- a/packages/gql/src/sushi/__generated__/Ethereum.ts +++ b/packages/gql/src/sushi/__generated__/Ethereum.ts @@ -78,12 +78,12 @@ export type Burn = { amount0?: Maybe; amount1?: Maybe; amountUSD?: Maybe; - complete: Scalars['Boolean']['output']; feeLiquidity?: Maybe; feeTo?: Maybe; id: Scalars['ID']['output']; liquidity: Scalars['BigDecimal']['output']; logIndex?: Maybe; + needsComplete: Scalars['Boolean']['output']; pair: Pair; sender?: Maybe; timestamp: Scalars['BigInt']['output']; @@ -119,10 +119,6 @@ export type Burn_Filter = { amountUSD_not?: InputMaybe; amountUSD_not_in?: InputMaybe>; and?: InputMaybe>>; - complete?: InputMaybe; - complete_in?: InputMaybe>; - complete_not?: InputMaybe; - complete_not_in?: InputMaybe>; feeLiquidity?: InputMaybe; feeLiquidity_gt?: InputMaybe; feeLiquidity_gte?: InputMaybe; @@ -165,6 +161,10 @@ export type Burn_Filter = { logIndex_lte?: InputMaybe; logIndex_not?: InputMaybe; logIndex_not_in?: InputMaybe>; + needsComplete?: InputMaybe; + needsComplete_in?: InputMaybe>; + needsComplete_not?: InputMaybe; + needsComplete_not_in?: InputMaybe>; or?: InputMaybe>>; pair?: InputMaybe; pair_?: InputMaybe; @@ -242,22 +242,21 @@ export type Burn_OrderBy = | 'amount0' | 'amount1' | 'amountUSD' - | 'complete' | 'feeLiquidity' | 'feeTo' | 'id' | 'liquidity' | 'logIndex' + | 'needsComplete' | 'pair' - | 'pair__block' + | 'pair__createdAtBlockNumber' + | 'pair__createdAtTimestamp' | 'pair__id' | 'pair__liquidityProviderCount' - | 'pair__name' | 'pair__reserve0' | 'pair__reserve1' | 'pair__reserveETH' | 'pair__reserveUSD' - | 'pair__timestamp' | 'pair__token0Price' | 'pair__token1Price' | 'pair__totalSupply' @@ -272,439 +271,23 @@ export type Burn_OrderBy = | 'to' | 'transaction' | 'transaction__blockNumber' + | 'transaction__gasPrice' + | 'transaction__gasUsed' | 'transaction__id' | 'transaction__timestamp' | '%future added value'; -export type DayData = { - __typename?: 'DayData'; - date: Scalars['Int']['output']; - factory: Factory; - id: Scalars['ID']['output']; - liquidityETH: Scalars['BigDecimal']['output']; - liquidityUSD: Scalars['BigDecimal']['output']; - txCount: Scalars['BigInt']['output']; - untrackedVolume: Scalars['BigDecimal']['output']; - volumeETH: Scalars['BigDecimal']['output']; - volumeUSD: Scalars['BigDecimal']['output']; -}; - -export type DayData_Filter = { - /** Filter for the block changed event. */ - _change_block?: InputMaybe; - and?: InputMaybe>>; - date?: InputMaybe; - date_gt?: InputMaybe; - date_gte?: InputMaybe; - date_in?: InputMaybe>; - date_lt?: InputMaybe; - date_lte?: InputMaybe; - date_not?: InputMaybe; - date_not_in?: InputMaybe>; - factory?: InputMaybe; - factory_?: InputMaybe; - factory_contains?: InputMaybe; - factory_contains_nocase?: InputMaybe; - factory_ends_with?: InputMaybe; - factory_ends_with_nocase?: InputMaybe; - factory_gt?: InputMaybe; - factory_gte?: InputMaybe; - factory_in?: InputMaybe>; - factory_lt?: InputMaybe; - factory_lte?: InputMaybe; - factory_not?: InputMaybe; - factory_not_contains?: InputMaybe; - factory_not_contains_nocase?: InputMaybe; - factory_not_ends_with?: InputMaybe; - factory_not_ends_with_nocase?: InputMaybe; - factory_not_in?: InputMaybe>; - factory_not_starts_with?: InputMaybe; - factory_not_starts_with_nocase?: InputMaybe; - factory_starts_with?: InputMaybe; - factory_starts_with_nocase?: InputMaybe; - id?: InputMaybe; - id_gt?: InputMaybe; - id_gte?: InputMaybe; - id_in?: InputMaybe>; - id_lt?: InputMaybe; - id_lte?: InputMaybe; - id_not?: InputMaybe; - id_not_in?: InputMaybe>; - liquidityETH?: InputMaybe; - liquidityETH_gt?: InputMaybe; - liquidityETH_gte?: InputMaybe; - liquidityETH_in?: InputMaybe>; - liquidityETH_lt?: InputMaybe; - liquidityETH_lte?: InputMaybe; - liquidityETH_not?: InputMaybe; - liquidityETH_not_in?: InputMaybe>; - liquidityUSD?: InputMaybe; - liquidityUSD_gt?: InputMaybe; - liquidityUSD_gte?: InputMaybe; - liquidityUSD_in?: InputMaybe>; - liquidityUSD_lt?: InputMaybe; - liquidityUSD_lte?: InputMaybe; - liquidityUSD_not?: InputMaybe; - liquidityUSD_not_in?: InputMaybe>; - or?: InputMaybe>>; - txCount?: InputMaybe; - txCount_gt?: InputMaybe; - txCount_gte?: InputMaybe; - txCount_in?: InputMaybe>; - txCount_lt?: InputMaybe; - txCount_lte?: InputMaybe; - txCount_not?: InputMaybe; - txCount_not_in?: InputMaybe>; - untrackedVolume?: InputMaybe; - untrackedVolume_gt?: InputMaybe; - untrackedVolume_gte?: InputMaybe; - untrackedVolume_in?: InputMaybe>; - untrackedVolume_lt?: InputMaybe; - untrackedVolume_lte?: InputMaybe; - untrackedVolume_not?: InputMaybe; - untrackedVolume_not_in?: InputMaybe>; - volumeETH?: InputMaybe; - volumeETH_gt?: InputMaybe; - volumeETH_gte?: InputMaybe; - volumeETH_in?: InputMaybe>; - volumeETH_lt?: InputMaybe; - volumeETH_lte?: InputMaybe; - volumeETH_not?: InputMaybe; - volumeETH_not_in?: InputMaybe>; - volumeUSD?: InputMaybe; - volumeUSD_gt?: InputMaybe; - volumeUSD_gte?: InputMaybe; - volumeUSD_in?: InputMaybe>; - volumeUSD_lt?: InputMaybe; - volumeUSD_lte?: InputMaybe; - volumeUSD_not?: InputMaybe; - volumeUSD_not_in?: InputMaybe>; -}; - -export type DayData_OrderBy = - | 'date' - | 'factory' - | 'factory__id' - | 'factory__liquidityETH' - | 'factory__liquidityUSD' - | 'factory__pairCount' - | 'factory__tokenCount' - | 'factory__txCount' - | 'factory__untrackedVolumeUSD' - | 'factory__userCount' - | 'factory__volumeETH' - | 'factory__volumeUSD' - | 'id' - | 'liquidityETH' - | 'liquidityUSD' - | 'txCount' - | 'untrackedVolume' - | 'volumeETH' - | 'volumeUSD' - | '%future added value'; - -export type Factory = { - __typename?: 'Factory'; - dayData: Array; - hourData: Array; - id: Scalars['ID']['output']; - liquidityETH: Scalars['BigDecimal']['output']; - liquidityUSD: Scalars['BigDecimal']['output']; - pairCount: Scalars['BigInt']['output']; - pairs: Array; - tokenCount: Scalars['BigInt']['output']; - tokens: Array; - txCount: Scalars['BigInt']['output']; - untrackedVolumeUSD: Scalars['BigDecimal']['output']; - userCount: Scalars['BigInt']['output']; - volumeETH: Scalars['BigDecimal']['output']; - volumeUSD: Scalars['BigDecimal']['output']; -}; - - -export type FactoryDayDataArgs = { - first?: InputMaybe; - orderBy?: InputMaybe; - orderDirection?: InputMaybe; - skip?: InputMaybe; - where?: InputMaybe; -}; - - -export type FactoryHourDataArgs = { - first?: InputMaybe; - orderBy?: InputMaybe; - orderDirection?: InputMaybe; - skip?: InputMaybe; - where?: InputMaybe; -}; - - -export type FactoryPairsArgs = { - first?: InputMaybe; - orderBy?: InputMaybe; - orderDirection?: InputMaybe; - skip?: InputMaybe; - where?: InputMaybe; -}; - - -export type FactoryTokensArgs = { - first?: InputMaybe; - orderBy?: InputMaybe; - orderDirection?: InputMaybe; - skip?: InputMaybe; - where?: InputMaybe; -}; - -export type Factory_Filter = { - /** Filter for the block changed event. */ - _change_block?: InputMaybe; - and?: InputMaybe>>; - dayData_?: InputMaybe; - hourData_?: InputMaybe; - id?: InputMaybe; - id_gt?: InputMaybe; - id_gte?: InputMaybe; - id_in?: InputMaybe>; - id_lt?: InputMaybe; - id_lte?: InputMaybe; - id_not?: InputMaybe; - id_not_in?: InputMaybe>; - liquidityETH?: InputMaybe; - liquidityETH_gt?: InputMaybe; - liquidityETH_gte?: InputMaybe; - liquidityETH_in?: InputMaybe>; - liquidityETH_lt?: InputMaybe; - liquidityETH_lte?: InputMaybe; - liquidityETH_not?: InputMaybe; - liquidityETH_not_in?: InputMaybe>; - liquidityUSD?: InputMaybe; - liquidityUSD_gt?: InputMaybe; - liquidityUSD_gte?: InputMaybe; - liquidityUSD_in?: InputMaybe>; - liquidityUSD_lt?: InputMaybe; - liquidityUSD_lte?: InputMaybe; - liquidityUSD_not?: InputMaybe; - liquidityUSD_not_in?: InputMaybe>; - or?: InputMaybe>>; - pairCount?: InputMaybe; - pairCount_gt?: InputMaybe; - pairCount_gte?: InputMaybe; - pairCount_in?: InputMaybe>; - pairCount_lt?: InputMaybe; - pairCount_lte?: InputMaybe; - pairCount_not?: InputMaybe; - pairCount_not_in?: InputMaybe>; - pairs_?: InputMaybe; - tokenCount?: InputMaybe; - tokenCount_gt?: InputMaybe; - tokenCount_gte?: InputMaybe; - tokenCount_in?: InputMaybe>; - tokenCount_lt?: InputMaybe; - tokenCount_lte?: InputMaybe; - tokenCount_not?: InputMaybe; - tokenCount_not_in?: InputMaybe>; - tokens_?: InputMaybe; - txCount?: InputMaybe; - txCount_gt?: InputMaybe; - txCount_gte?: InputMaybe; - txCount_in?: InputMaybe>; - txCount_lt?: InputMaybe; - txCount_lte?: InputMaybe; - txCount_not?: InputMaybe; - txCount_not_in?: InputMaybe>; - untrackedVolumeUSD?: InputMaybe; - untrackedVolumeUSD_gt?: InputMaybe; - untrackedVolumeUSD_gte?: InputMaybe; - untrackedVolumeUSD_in?: InputMaybe>; - untrackedVolumeUSD_lt?: InputMaybe; - untrackedVolumeUSD_lte?: InputMaybe; - untrackedVolumeUSD_not?: InputMaybe; - untrackedVolumeUSD_not_in?: InputMaybe>; - userCount?: InputMaybe; - userCount_gt?: InputMaybe; - userCount_gte?: InputMaybe; - userCount_in?: InputMaybe>; - userCount_lt?: InputMaybe; - userCount_lte?: InputMaybe; - userCount_not?: InputMaybe; - userCount_not_in?: InputMaybe>; - volumeETH?: InputMaybe; - volumeETH_gt?: InputMaybe; - volumeETH_gte?: InputMaybe; - volumeETH_in?: InputMaybe>; - volumeETH_lt?: InputMaybe; - volumeETH_lte?: InputMaybe; - volumeETH_not?: InputMaybe; - volumeETH_not_in?: InputMaybe>; - volumeUSD?: InputMaybe; - volumeUSD_gt?: InputMaybe; - volumeUSD_gte?: InputMaybe; - volumeUSD_in?: InputMaybe>; - volumeUSD_lt?: InputMaybe; - volumeUSD_lte?: InputMaybe; - volumeUSD_not?: InputMaybe; - volumeUSD_not_in?: InputMaybe>; -}; - -export type Factory_OrderBy = - | 'dayData' - | 'hourData' - | 'id' - | 'liquidityETH' - | 'liquidityUSD' - | 'pairCount' - | 'pairs' - | 'tokenCount' - | 'tokens' - | 'txCount' - | 'untrackedVolumeUSD' - | 'userCount' - | 'volumeETH' - | 'volumeUSD' - | '%future added value'; - -export type HourData = { - __typename?: 'HourData'; - date: Scalars['Int']['output']; - factory: Factory; - id: Scalars['ID']['output']; - liquidityETH: Scalars['BigDecimal']['output']; - liquidityUSD: Scalars['BigDecimal']['output']; - txCount: Scalars['BigInt']['output']; - untrackedVolume: Scalars['BigDecimal']['output']; - volumeETH: Scalars['BigDecimal']['output']; - volumeUSD: Scalars['BigDecimal']['output']; -}; - -export type HourData_Filter = { - /** Filter for the block changed event. */ - _change_block?: InputMaybe; - and?: InputMaybe>>; - date?: InputMaybe; - date_gt?: InputMaybe; - date_gte?: InputMaybe; - date_in?: InputMaybe>; - date_lt?: InputMaybe; - date_lte?: InputMaybe; - date_not?: InputMaybe; - date_not_in?: InputMaybe>; - factory?: InputMaybe; - factory_?: InputMaybe; - factory_contains?: InputMaybe; - factory_contains_nocase?: InputMaybe; - factory_ends_with?: InputMaybe; - factory_ends_with_nocase?: InputMaybe; - factory_gt?: InputMaybe; - factory_gte?: InputMaybe; - factory_in?: InputMaybe>; - factory_lt?: InputMaybe; - factory_lte?: InputMaybe; - factory_not?: InputMaybe; - factory_not_contains?: InputMaybe; - factory_not_contains_nocase?: InputMaybe; - factory_not_ends_with?: InputMaybe; - factory_not_ends_with_nocase?: InputMaybe; - factory_not_in?: InputMaybe>; - factory_not_starts_with?: InputMaybe; - factory_not_starts_with_nocase?: InputMaybe; - factory_starts_with?: InputMaybe; - factory_starts_with_nocase?: InputMaybe; - id?: InputMaybe; - id_gt?: InputMaybe; - id_gte?: InputMaybe; - id_in?: InputMaybe>; - id_lt?: InputMaybe; - id_lte?: InputMaybe; - id_not?: InputMaybe; - id_not_in?: InputMaybe>; - liquidityETH?: InputMaybe; - liquidityETH_gt?: InputMaybe; - liquidityETH_gte?: InputMaybe; - liquidityETH_in?: InputMaybe>; - liquidityETH_lt?: InputMaybe; - liquidityETH_lte?: InputMaybe; - liquidityETH_not?: InputMaybe; - liquidityETH_not_in?: InputMaybe>; - liquidityUSD?: InputMaybe; - liquidityUSD_gt?: InputMaybe; - liquidityUSD_gte?: InputMaybe; - liquidityUSD_in?: InputMaybe>; - liquidityUSD_lt?: InputMaybe; - liquidityUSD_lte?: InputMaybe; - liquidityUSD_not?: InputMaybe; - liquidityUSD_not_in?: InputMaybe>; - or?: InputMaybe>>; - txCount?: InputMaybe; - txCount_gt?: InputMaybe; - txCount_gte?: InputMaybe; - txCount_in?: InputMaybe>; - txCount_lt?: InputMaybe; - txCount_lte?: InputMaybe; - txCount_not?: InputMaybe; - txCount_not_in?: InputMaybe>; - untrackedVolume?: InputMaybe; - untrackedVolume_gt?: InputMaybe; - untrackedVolume_gte?: InputMaybe; - untrackedVolume_in?: InputMaybe>; - untrackedVolume_lt?: InputMaybe; - untrackedVolume_lte?: InputMaybe; - untrackedVolume_not?: InputMaybe; - untrackedVolume_not_in?: InputMaybe>; - volumeETH?: InputMaybe; - volumeETH_gt?: InputMaybe; - volumeETH_gte?: InputMaybe; - volumeETH_in?: InputMaybe>; - volumeETH_lt?: InputMaybe; - volumeETH_lte?: InputMaybe; - volumeETH_not?: InputMaybe; - volumeETH_not_in?: InputMaybe>; - volumeUSD?: InputMaybe; - volumeUSD_gt?: InputMaybe; - volumeUSD_gte?: InputMaybe; - volumeUSD_in?: InputMaybe>; - volumeUSD_lt?: InputMaybe; - volumeUSD_lte?: InputMaybe; - volumeUSD_not?: InputMaybe; - volumeUSD_not_in?: InputMaybe>; -}; - -export type HourData_OrderBy = - | 'date' - | 'factory' - | 'factory__id' - | 'factory__liquidityETH' - | 'factory__liquidityUSD' - | 'factory__pairCount' - | 'factory__tokenCount' - | 'factory__txCount' - | 'factory__untrackedVolumeUSD' - | 'factory__userCount' - | 'factory__volumeETH' - | 'factory__volumeUSD' - | 'id' - | 'liquidityETH' - | 'liquidityUSD' - | 'txCount' - | 'untrackedVolume' - | 'volumeETH' - | 'volumeUSD' - | '%future added value'; - export type LiquidityPosition = { __typename?: 'LiquidityPosition'; - block: Scalars['Int']['output']; + historicalSnapshots: Array>; id: Scalars['ID']['output']; liquidityTokenBalance: Scalars['BigDecimal']['output']; pair: Pair; - snapshots: Array>; - timestamp: Scalars['Int']['output']; user: User; }; -export type LiquidityPositionSnapshotsArgs = { +export type LiquidityPositionHistoricalSnapshotsArgs = { first?: InputMaybe; orderBy?: InputMaybe; orderDirection?: InputMaybe; @@ -726,6 +309,7 @@ export type LiquidityPositionSnapshot = { timestamp: Scalars['Int']['output']; token0PriceUSD: Scalars['BigDecimal']['output']; token1PriceUSD: Scalars['BigDecimal']['output']; + transaction: Transaction; user: User; }; @@ -856,6 +440,27 @@ export type LiquidityPositionSnapshot_Filter = { token1PriceUSD_lte?: InputMaybe; token1PriceUSD_not?: InputMaybe; token1PriceUSD_not_in?: InputMaybe>; + transaction?: InputMaybe; + transaction_?: InputMaybe; + transaction_contains?: InputMaybe; + transaction_contains_nocase?: InputMaybe; + transaction_ends_with?: InputMaybe; + transaction_ends_with_nocase?: InputMaybe; + transaction_gt?: InputMaybe; + transaction_gte?: InputMaybe; + transaction_in?: InputMaybe>; + transaction_lt?: InputMaybe; + transaction_lte?: InputMaybe; + transaction_not?: InputMaybe; + transaction_not_contains?: InputMaybe; + transaction_not_contains_nocase?: InputMaybe; + transaction_not_ends_with?: InputMaybe; + transaction_not_ends_with_nocase?: InputMaybe; + transaction_not_in?: InputMaybe>; + transaction_not_starts_with?: InputMaybe; + transaction_not_starts_with_nocase?: InputMaybe; + transaction_starts_with?: InputMaybe; + transaction_starts_with_nocase?: InputMaybe; user?: InputMaybe; user_?: InputMaybe; user_contains?: InputMaybe; @@ -883,22 +488,19 @@ export type LiquidityPositionSnapshot_OrderBy = | 'block' | 'id' | 'liquidityPosition' - | 'liquidityPosition__block' | 'liquidityPosition__id' | 'liquidityPosition__liquidityTokenBalance' - | 'liquidityPosition__timestamp' | 'liquidityTokenBalance' | 'liquidityTokenTotalSupply' | 'pair' - | 'pair__block' + | 'pair__createdAtBlockNumber' + | 'pair__createdAtTimestamp' | 'pair__id' | 'pair__liquidityProviderCount' - | 'pair__name' | 'pair__reserve0' | 'pair__reserve1' | 'pair__reserveETH' | 'pair__reserveUSD' - | 'pair__timestamp' | 'pair__token0Price' | 'pair__token1Price' | 'pair__totalSupply' @@ -914,22 +516,22 @@ export type LiquidityPositionSnapshot_OrderBy = | 'timestamp' | 'token0PriceUSD' | 'token1PriceUSD' + | 'transaction' + | 'transaction__blockNumber' + | 'transaction__gasPrice' + | 'transaction__gasUsed' + | 'transaction__id' + | 'transaction__timestamp' | 'user' | 'user__id' + | 'user__usdSwapped' | '%future added value'; export type LiquidityPosition_Filter = { /** Filter for the block changed event. */ _change_block?: InputMaybe; and?: InputMaybe>>; - block?: InputMaybe; - block_gt?: InputMaybe; - block_gte?: InputMaybe; - block_in?: InputMaybe>; - block_lt?: InputMaybe; - block_lte?: InputMaybe; - block_not?: InputMaybe; - block_not_in?: InputMaybe>; + historicalSnapshots_?: InputMaybe; id?: InputMaybe; id_gt?: InputMaybe; id_gte?: InputMaybe; @@ -968,15 +570,6 @@ export type LiquidityPosition_Filter = { pair_not_starts_with_nocase?: InputMaybe; pair_starts_with?: InputMaybe; pair_starts_with_nocase?: InputMaybe; - snapshots_?: InputMaybe; - timestamp?: InputMaybe; - timestamp_gt?: InputMaybe; - timestamp_gte?: InputMaybe; - timestamp_in?: InputMaybe>; - timestamp_lt?: InputMaybe; - timestamp_lte?: InputMaybe; - timestamp_not?: InputMaybe; - timestamp_not_in?: InputMaybe>; user?: InputMaybe; user_?: InputMaybe; user_contains?: InputMaybe; @@ -1001,19 +594,18 @@ export type LiquidityPosition_Filter = { }; export type LiquidityPosition_OrderBy = - | 'block' + | 'historicalSnapshots' | 'id' | 'liquidityTokenBalance' | 'pair' - | 'pair__block' + | 'pair__createdAtBlockNumber' + | 'pair__createdAtTimestamp' | 'pair__id' | 'pair__liquidityProviderCount' - | 'pair__name' | 'pair__reserve0' | 'pair__reserve1' | 'pair__reserveETH' | 'pair__reserveUSD' - | 'pair__timestamp' | 'pair__token0Price' | 'pair__token1Price' | 'pair__totalSupply' @@ -1023,10 +615,9 @@ export type LiquidityPosition_OrderBy = | 'pair__volumeToken0' | 'pair__volumeToken1' | 'pair__volumeUSD' - | 'snapshots' - | 'timestamp' | 'user' | 'user__id' + | 'user__usdSwapped' | '%future added value'; export type Mint = { @@ -1199,15 +790,14 @@ export type Mint_OrderBy = | 'liquidity' | 'logIndex' | 'pair' - | 'pair__block' + | 'pair__createdAtBlockNumber' + | 'pair__createdAtTimestamp' | 'pair__id' | 'pair__liquidityProviderCount' - | 'pair__name' | 'pair__reserve0' | 'pair__reserve1' | 'pair__reserveETH' | 'pair__reserveUSD' - | 'pair__timestamp' | 'pair__token0Price' | 'pair__token1Price' | 'pair__totalSupply' @@ -1222,6 +812,8 @@ export type Mint_OrderBy = | 'to' | 'transaction' | 'transaction__blockNumber' + | 'transaction__gasPrice' + | 'transaction__gasUsed' | 'transaction__id' | 'transaction__timestamp' | '%future added value'; @@ -1234,23 +826,14 @@ export type OrderDirection = export type Pair = { __typename?: 'Pair'; - block: Scalars['BigInt']['output']; - burns: Array; - dayData: Array; - factory: Factory; - hourData: Array; + createdAtBlockNumber: Scalars['BigInt']['output']; + createdAtTimestamp: Scalars['BigInt']['output']; id: Scalars['ID']['output']; - liquidityPositionSnapshots: Array; - liquidityPositions: Array; liquidityProviderCount: Scalars['BigInt']['output']; - mints: Array; - name: Scalars['String']['output']; reserve0: Scalars['BigDecimal']['output']; reserve1: Scalars['BigDecimal']['output']; reserveETH: Scalars['BigDecimal']['output']; reserveUSD: Scalars['BigDecimal']['output']; - swaps: Array; - timestamp: Scalars['BigInt']['output']; token0: Token; token0Price: Scalars['BigDecimal']['output']; token1: Token; @@ -1264,90 +847,59 @@ export type Pair = { volumeUSD: Scalars['BigDecimal']['output']; }; - -export type PairBurnsArgs = { - first?: InputMaybe; - orderBy?: InputMaybe; - orderDirection?: InputMaybe; - skip?: InputMaybe; - where?: InputMaybe; -}; - - -export type PairDayDataArgs = { - first?: InputMaybe; - orderBy?: InputMaybe; - orderDirection?: InputMaybe; - skip?: InputMaybe; - where?: InputMaybe; -}; - - -export type PairHourDataArgs = { - first?: InputMaybe; - orderBy?: InputMaybe; - orderDirection?: InputMaybe; - skip?: InputMaybe; - where?: InputMaybe; -}; - - -export type PairLiquidityPositionSnapshotsArgs = { - first?: InputMaybe; - orderBy?: InputMaybe; - orderDirection?: InputMaybe; - skip?: InputMaybe; - where?: InputMaybe; -}; - - -export type PairLiquidityPositionsArgs = { - first?: InputMaybe; - orderBy?: InputMaybe; - orderDirection?: InputMaybe; - skip?: InputMaybe; - where?: InputMaybe; -}; - - -export type PairMintsArgs = { - first?: InputMaybe; - orderBy?: InputMaybe; - orderDirection?: InputMaybe; - skip?: InputMaybe; - where?: InputMaybe; -}; - - -export type PairSwapsArgs = { - first?: InputMaybe; - orderBy?: InputMaybe; - orderDirection?: InputMaybe; - skip?: InputMaybe; - where?: InputMaybe; -}; - -export type PairDayData = { - __typename?: 'PairDayData'; - date: Scalars['Int']['output']; - id: Scalars['ID']['output']; - pair: Pair; - reserve0: Scalars['BigDecimal']['output']; - reserve1: Scalars['BigDecimal']['output']; - reserveUSD: Scalars['BigDecimal']['output']; - token0: Token; - token1: Token; - totalSupply: Scalars['BigDecimal']['output']; - txCount: Scalars['BigInt']['output']; - volumeToken0: Scalars['BigDecimal']['output']; - volumeToken1: Scalars['BigDecimal']['output']; - volumeUSD: Scalars['BigDecimal']['output']; +export type PairDayData = { + __typename?: 'PairDayData'; + dailyTxns: Scalars['BigInt']['output']; + dailyVolumeToken0: Scalars['BigDecimal']['output']; + dailyVolumeToken1: Scalars['BigDecimal']['output']; + dailyVolumeUSD: Scalars['BigDecimal']['output']; + date: Scalars['Int']['output']; + id: Scalars['ID']['output']; + pairAddress: Scalars['Bytes']['output']; + reserve0: Scalars['BigDecimal']['output']; + reserve1: Scalars['BigDecimal']['output']; + reserveUSD: Scalars['BigDecimal']['output']; + token0: Token; + token1: Token; + totalSupply: Scalars['BigDecimal']['output']; }; export type PairDayData_Filter = { /** Filter for the block changed event. */ _change_block?: InputMaybe; and?: InputMaybe>>; + dailyTxns?: InputMaybe; + dailyTxns_gt?: InputMaybe; + dailyTxns_gte?: InputMaybe; + dailyTxns_in?: InputMaybe>; + dailyTxns_lt?: InputMaybe; + dailyTxns_lte?: InputMaybe; + dailyTxns_not?: InputMaybe; + dailyTxns_not_in?: InputMaybe>; + dailyVolumeToken0?: InputMaybe; + dailyVolumeToken0_gt?: InputMaybe; + dailyVolumeToken0_gte?: InputMaybe; + dailyVolumeToken0_in?: InputMaybe>; + dailyVolumeToken0_lt?: InputMaybe; + dailyVolumeToken0_lte?: InputMaybe; + dailyVolumeToken0_not?: InputMaybe; + dailyVolumeToken0_not_in?: InputMaybe>; + dailyVolumeToken1?: InputMaybe; + dailyVolumeToken1_gt?: InputMaybe; + dailyVolumeToken1_gte?: InputMaybe; + dailyVolumeToken1_in?: InputMaybe>; + dailyVolumeToken1_lt?: InputMaybe; + dailyVolumeToken1_lte?: InputMaybe; + dailyVolumeToken1_not?: InputMaybe; + dailyVolumeToken1_not_in?: InputMaybe>; + dailyVolumeUSD?: InputMaybe; + dailyVolumeUSD_gt?: InputMaybe; + dailyVolumeUSD_gte?: InputMaybe; + dailyVolumeUSD_in?: InputMaybe>; + dailyVolumeUSD_lt?: InputMaybe; + dailyVolumeUSD_lte?: InputMaybe; + dailyVolumeUSD_not?: InputMaybe; + dailyVolumeUSD_not_in?: InputMaybe>; date?: InputMaybe; date_gt?: InputMaybe; date_gte?: InputMaybe; @@ -1365,27 +917,16 @@ export type PairDayData_Filter = { id_not?: InputMaybe; id_not_in?: InputMaybe>; or?: InputMaybe>>; - pair?: InputMaybe; - pair_?: InputMaybe; - pair_contains?: InputMaybe; - pair_contains_nocase?: InputMaybe; - pair_ends_with?: InputMaybe; - pair_ends_with_nocase?: InputMaybe; - pair_gt?: InputMaybe; - pair_gte?: InputMaybe; - pair_in?: InputMaybe>; - pair_lt?: InputMaybe; - pair_lte?: InputMaybe; - pair_not?: InputMaybe; - pair_not_contains?: InputMaybe; - pair_not_contains_nocase?: InputMaybe; - pair_not_ends_with?: InputMaybe; - pair_not_ends_with_nocase?: InputMaybe; - pair_not_in?: InputMaybe>; - pair_not_starts_with?: InputMaybe; - pair_not_starts_with_nocase?: InputMaybe; - pair_starts_with?: InputMaybe; - pair_starts_with_nocase?: InputMaybe; + pairAddress?: InputMaybe; + pairAddress_contains?: InputMaybe; + pairAddress_gt?: InputMaybe; + pairAddress_gte?: InputMaybe; + pairAddress_in?: InputMaybe>; + pairAddress_lt?: InputMaybe; + pairAddress_lte?: InputMaybe; + pairAddress_not?: InputMaybe; + pairAddress_not_contains?: InputMaybe; + pairAddress_not_in?: InputMaybe>; reserve0?: InputMaybe; reserve0_gt?: InputMaybe; reserve0_gte?: InputMaybe; @@ -1460,62 +1001,16 @@ export type PairDayData_Filter = { totalSupply_lte?: InputMaybe; totalSupply_not?: InputMaybe; totalSupply_not_in?: InputMaybe>; - txCount?: InputMaybe; - txCount_gt?: InputMaybe; - txCount_gte?: InputMaybe; - txCount_in?: InputMaybe>; - txCount_lt?: InputMaybe; - txCount_lte?: InputMaybe; - txCount_not?: InputMaybe; - txCount_not_in?: InputMaybe>; - volumeToken0?: InputMaybe; - volumeToken0_gt?: InputMaybe; - volumeToken0_gte?: InputMaybe; - volumeToken0_in?: InputMaybe>; - volumeToken0_lt?: InputMaybe; - volumeToken0_lte?: InputMaybe; - volumeToken0_not?: InputMaybe; - volumeToken0_not_in?: InputMaybe>; - volumeToken1?: InputMaybe; - volumeToken1_gt?: InputMaybe; - volumeToken1_gte?: InputMaybe; - volumeToken1_in?: InputMaybe>; - volumeToken1_lt?: InputMaybe; - volumeToken1_lte?: InputMaybe; - volumeToken1_not?: InputMaybe; - volumeToken1_not_in?: InputMaybe>; - volumeUSD?: InputMaybe; - volumeUSD_gt?: InputMaybe; - volumeUSD_gte?: InputMaybe; - volumeUSD_in?: InputMaybe>; - volumeUSD_lt?: InputMaybe; - volumeUSD_lte?: InputMaybe; - volumeUSD_not?: InputMaybe; - volumeUSD_not_in?: InputMaybe>; }; export type PairDayData_OrderBy = + | 'dailyTxns' + | 'dailyVolumeToken0' + | 'dailyVolumeToken1' + | 'dailyVolumeUSD' | 'date' | 'id' - | 'pair' - | 'pair__block' - | 'pair__id' - | 'pair__liquidityProviderCount' - | 'pair__name' - | 'pair__reserve0' - | 'pair__reserve1' - | 'pair__reserveETH' - | 'pair__reserveUSD' - | 'pair__timestamp' - | 'pair__token0Price' - | 'pair__token1Price' - | 'pair__totalSupply' - | 'pair__trackedReserveETH' - | 'pair__txCount' - | 'pair__untrackedVolumeUSD' - | 'pair__volumeToken0' - | 'pair__volumeToken1' - | 'pair__volumeUSD' + | 'pairAddress' | 'reserve0' | 'reserve1' | 'reserveUSD' @@ -1523,59 +1018,87 @@ export type PairDayData_OrderBy = | 'token0__decimals' | 'token0__derivedETH' | 'token0__id' - | 'token0__liquidity' | 'token0__name' | 'token0__symbol' + | 'token0__totalLiquidity' | 'token0__totalSupply' + | 'token0__tradeVolume' + | 'token0__tradeVolumeUSD' | 'token0__txCount' | 'token0__untrackedVolumeUSD' - | 'token0__volume' - | 'token0__volumeUSD' | 'token1' | 'token1__decimals' | 'token1__derivedETH' | 'token1__id' - | 'token1__liquidity' | 'token1__name' | 'token1__symbol' + | 'token1__totalLiquidity' | 'token1__totalSupply' + | 'token1__tradeVolume' + | 'token1__tradeVolumeUSD' | 'token1__txCount' | 'token1__untrackedVolumeUSD' - | 'token1__volume' - | 'token1__volumeUSD' | 'totalSupply' - | 'txCount' - | 'volumeToken0' - | 'volumeToken1' - | 'volumeUSD' | '%future added value'; export type PairHourData = { __typename?: 'PairHourData'; - date: Scalars['Int']['output']; + hourStartUnix: Scalars['Int']['output']; + hourlyTxns: Scalars['BigInt']['output']; + hourlyVolumeToken0: Scalars['BigDecimal']['output']; + hourlyVolumeToken1: Scalars['BigDecimal']['output']; + hourlyVolumeUSD: Scalars['BigDecimal']['output']; id: Scalars['ID']['output']; pair: Pair; reserve0: Scalars['BigDecimal']['output']; reserve1: Scalars['BigDecimal']['output']; reserveUSD: Scalars['BigDecimal']['output']; - txCount: Scalars['BigInt']['output']; - volumeToken0: Scalars['BigDecimal']['output']; - volumeToken1: Scalars['BigDecimal']['output']; - volumeUSD: Scalars['BigDecimal']['output']; }; export type PairHourData_Filter = { /** Filter for the block changed event. */ _change_block?: InputMaybe; and?: InputMaybe>>; - date?: InputMaybe; - date_gt?: InputMaybe; - date_gte?: InputMaybe; - date_in?: InputMaybe>; - date_lt?: InputMaybe; - date_lte?: InputMaybe; - date_not?: InputMaybe; - date_not_in?: InputMaybe>; + hourStartUnix?: InputMaybe; + hourStartUnix_gt?: InputMaybe; + hourStartUnix_gte?: InputMaybe; + hourStartUnix_in?: InputMaybe>; + hourStartUnix_lt?: InputMaybe; + hourStartUnix_lte?: InputMaybe; + hourStartUnix_not?: InputMaybe; + hourStartUnix_not_in?: InputMaybe>; + hourlyTxns?: InputMaybe; + hourlyTxns_gt?: InputMaybe; + hourlyTxns_gte?: InputMaybe; + hourlyTxns_in?: InputMaybe>; + hourlyTxns_lt?: InputMaybe; + hourlyTxns_lte?: InputMaybe; + hourlyTxns_not?: InputMaybe; + hourlyTxns_not_in?: InputMaybe>; + hourlyVolumeToken0?: InputMaybe; + hourlyVolumeToken0_gt?: InputMaybe; + hourlyVolumeToken0_gte?: InputMaybe; + hourlyVolumeToken0_in?: InputMaybe>; + hourlyVolumeToken0_lt?: InputMaybe; + hourlyVolumeToken0_lte?: InputMaybe; + hourlyVolumeToken0_not?: InputMaybe; + hourlyVolumeToken0_not_in?: InputMaybe>; + hourlyVolumeToken1?: InputMaybe; + hourlyVolumeToken1_gt?: InputMaybe; + hourlyVolumeToken1_gte?: InputMaybe; + hourlyVolumeToken1_in?: InputMaybe>; + hourlyVolumeToken1_lt?: InputMaybe; + hourlyVolumeToken1_lte?: InputMaybe; + hourlyVolumeToken1_not?: InputMaybe; + hourlyVolumeToken1_not_in?: InputMaybe>; + hourlyVolumeUSD?: InputMaybe; + hourlyVolumeUSD_gt?: InputMaybe; + hourlyVolumeUSD_gte?: InputMaybe; + hourlyVolumeUSD_in?: InputMaybe>; + hourlyVolumeUSD_lt?: InputMaybe; + hourlyVolumeUSD_lte?: InputMaybe; + hourlyVolumeUSD_not?: InputMaybe; + hourlyVolumeUSD_not_in?: InputMaybe>; id?: InputMaybe; id_gt?: InputMaybe; id_gte?: InputMaybe; @@ -1630,53 +1153,24 @@ export type PairHourData_Filter = { reserveUSD_lte?: InputMaybe; reserveUSD_not?: InputMaybe; reserveUSD_not_in?: InputMaybe>; - txCount?: InputMaybe; - txCount_gt?: InputMaybe; - txCount_gte?: InputMaybe; - txCount_in?: InputMaybe>; - txCount_lt?: InputMaybe; - txCount_lte?: InputMaybe; - txCount_not?: InputMaybe; - txCount_not_in?: InputMaybe>; - volumeToken0?: InputMaybe; - volumeToken0_gt?: InputMaybe; - volumeToken0_gte?: InputMaybe; - volumeToken0_in?: InputMaybe>; - volumeToken0_lt?: InputMaybe; - volumeToken0_lte?: InputMaybe; - volumeToken0_not?: InputMaybe; - volumeToken0_not_in?: InputMaybe>; - volumeToken1?: InputMaybe; - volumeToken1_gt?: InputMaybe; - volumeToken1_gte?: InputMaybe; - volumeToken1_in?: InputMaybe>; - volumeToken1_lt?: InputMaybe; - volumeToken1_lte?: InputMaybe; - volumeToken1_not?: InputMaybe; - volumeToken1_not_in?: InputMaybe>; - volumeUSD?: InputMaybe; - volumeUSD_gt?: InputMaybe; - volumeUSD_gte?: InputMaybe; - volumeUSD_in?: InputMaybe>; - volumeUSD_lt?: InputMaybe; - volumeUSD_lte?: InputMaybe; - volumeUSD_not?: InputMaybe; - volumeUSD_not_in?: InputMaybe>; }; export type PairHourData_OrderBy = - | 'date' + | 'hourStartUnix' + | 'hourlyTxns' + | 'hourlyVolumeToken0' + | 'hourlyVolumeToken1' + | 'hourlyVolumeUSD' | 'id' | 'pair' - | 'pair__block' + | 'pair__createdAtBlockNumber' + | 'pair__createdAtTimestamp' | 'pair__id' | 'pair__liquidityProviderCount' - | 'pair__name' | 'pair__reserve0' | 'pair__reserve1' | 'pair__reserveETH' | 'pair__reserveUSD' - | 'pair__timestamp' | 'pair__token0Price' | 'pair__token1Price' | 'pair__totalSupply' @@ -1689,48 +1183,28 @@ export type PairHourData_OrderBy = | 'reserve0' | 'reserve1' | 'reserveUSD' - | 'txCount' - | 'volumeToken0' - | 'volumeToken1' - | 'volumeUSD' | '%future added value'; export type Pair_Filter = { /** Filter for the block changed event. */ _change_block?: InputMaybe; and?: InputMaybe>>; - block?: InputMaybe; - block_gt?: InputMaybe; - block_gte?: InputMaybe; - block_in?: InputMaybe>; - block_lt?: InputMaybe; - block_lte?: InputMaybe; - block_not?: InputMaybe; - block_not_in?: InputMaybe>; - burns_?: InputMaybe; - dayData_?: InputMaybe; - factory?: InputMaybe; - factory_?: InputMaybe; - factory_contains?: InputMaybe; - factory_contains_nocase?: InputMaybe; - factory_ends_with?: InputMaybe; - factory_ends_with_nocase?: InputMaybe; - factory_gt?: InputMaybe; - factory_gte?: InputMaybe; - factory_in?: InputMaybe>; - factory_lt?: InputMaybe; - factory_lte?: InputMaybe; - factory_not?: InputMaybe; - factory_not_contains?: InputMaybe; - factory_not_contains_nocase?: InputMaybe; - factory_not_ends_with?: InputMaybe; - factory_not_ends_with_nocase?: InputMaybe; - factory_not_in?: InputMaybe>; - factory_not_starts_with?: InputMaybe; - factory_not_starts_with_nocase?: InputMaybe; - factory_starts_with?: InputMaybe; - factory_starts_with_nocase?: InputMaybe; - hourData_?: InputMaybe; + createdAtBlockNumber?: InputMaybe; + createdAtBlockNumber_gt?: InputMaybe; + createdAtBlockNumber_gte?: InputMaybe; + createdAtBlockNumber_in?: InputMaybe>; + createdAtBlockNumber_lt?: InputMaybe; + createdAtBlockNumber_lte?: InputMaybe; + createdAtBlockNumber_not?: InputMaybe; + createdAtBlockNumber_not_in?: InputMaybe>; + createdAtTimestamp?: InputMaybe; + createdAtTimestamp_gt?: InputMaybe; + createdAtTimestamp_gte?: InputMaybe; + createdAtTimestamp_in?: InputMaybe>; + createdAtTimestamp_lt?: InputMaybe; + createdAtTimestamp_lte?: InputMaybe; + createdAtTimestamp_not?: InputMaybe; + createdAtTimestamp_not_in?: InputMaybe>; id?: InputMaybe; id_gt?: InputMaybe; id_gte?: InputMaybe; @@ -1739,8 +1213,6 @@ export type Pair_Filter = { id_lte?: InputMaybe; id_not?: InputMaybe; id_not_in?: InputMaybe>; - liquidityPositionSnapshots_?: InputMaybe; - liquidityPositions_?: InputMaybe; liquidityProviderCount?: InputMaybe; liquidityProviderCount_gt?: InputMaybe; liquidityProviderCount_gte?: InputMaybe; @@ -1749,27 +1221,6 @@ export type Pair_Filter = { liquidityProviderCount_lte?: InputMaybe; liquidityProviderCount_not?: InputMaybe; liquidityProviderCount_not_in?: InputMaybe>; - mints_?: InputMaybe; - name?: InputMaybe; - name_contains?: InputMaybe; - name_contains_nocase?: InputMaybe; - name_ends_with?: InputMaybe; - name_ends_with_nocase?: InputMaybe; - name_gt?: InputMaybe; - name_gte?: InputMaybe; - name_in?: InputMaybe>; - name_lt?: InputMaybe; - name_lte?: InputMaybe; - name_not?: InputMaybe; - name_not_contains?: InputMaybe; - name_not_contains_nocase?: InputMaybe; - name_not_ends_with?: InputMaybe; - name_not_ends_with_nocase?: InputMaybe; - name_not_in?: InputMaybe>; - name_not_starts_with?: InputMaybe; - name_not_starts_with_nocase?: InputMaybe; - name_starts_with?: InputMaybe; - name_starts_with_nocase?: InputMaybe; or?: InputMaybe>>; reserve0?: InputMaybe; reserve0_gt?: InputMaybe; @@ -1803,15 +1254,6 @@ export type Pair_Filter = { reserveUSD_lte?: InputMaybe; reserveUSD_not?: InputMaybe; reserveUSD_not_in?: InputMaybe>; - swaps_?: InputMaybe; - timestamp?: InputMaybe; - timestamp_gt?: InputMaybe; - timestamp_gte?: InputMaybe; - timestamp_in?: InputMaybe>; - timestamp_lt?: InputMaybe; - timestamp_lte?: InputMaybe; - timestamp_not?: InputMaybe; - timestamp_not_in?: InputMaybe>; token0?: InputMaybe; token0Price?: InputMaybe; token0Price_gt?: InputMaybe; @@ -1929,59 +1371,40 @@ export type Pair_Filter = { }; export type Pair_OrderBy = - | 'block' - | 'burns' - | 'dayData' - | 'factory' - | 'factory__id' - | 'factory__liquidityETH' - | 'factory__liquidityUSD' - | 'factory__pairCount' - | 'factory__tokenCount' - | 'factory__txCount' - | 'factory__untrackedVolumeUSD' - | 'factory__userCount' - | 'factory__volumeETH' - | 'factory__volumeUSD' - | 'hourData' + | 'createdAtBlockNumber' + | 'createdAtTimestamp' | 'id' - | 'liquidityPositionSnapshots' - | 'liquidityPositions' | 'liquidityProviderCount' - | 'mints' - | 'name' | 'reserve0' | 'reserve1' | 'reserveETH' | 'reserveUSD' - | 'swaps' - | 'timestamp' | 'token0' | 'token0Price' | 'token0__decimals' | 'token0__derivedETH' | 'token0__id' - | 'token0__liquidity' | 'token0__name' | 'token0__symbol' + | 'token0__totalLiquidity' | 'token0__totalSupply' + | 'token0__tradeVolume' + | 'token0__tradeVolumeUSD' | 'token0__txCount' | 'token0__untrackedVolumeUSD' - | 'token0__volume' - | 'token0__volumeUSD' | 'token1' | 'token1Price' | 'token1__decimals' | 'token1__derivedETH' | 'token1__id' - | 'token1__liquidity' | 'token1__name' | 'token1__symbol' + | 'token1__totalLiquidity' | 'token1__totalSupply' + | 'token1__tradeVolume' + | 'token1__tradeVolumeUSD' | 'token1__txCount' | 'token1__untrackedVolumeUSD' - | 'token1__volume' - | 'token1__volumeUSD' | 'totalSupply' | 'trackedReserveETH' | 'txCount' @@ -1999,12 +1422,6 @@ export type Query = { bundles: Array; burn?: Maybe; burns: Array; - dayData?: Maybe; - dayDatas: Array; - factories: Array; - factory?: Maybe; - hourData?: Maybe; - hourDatas: Array; liquidityPosition?: Maybe; liquidityPositionSnapshot?: Maybe; liquidityPositionSnapshots: Array; @@ -2016,21 +1433,20 @@ export type Query = { pairDayDatas: Array; pairHourData?: Maybe; pairHourDatas: Array; - pairSearch: Array; pairs: Array; swap?: Maybe; swaps: Array; token?: Maybe; tokenDayData?: Maybe; tokenDayDatas: Array; - tokenHourData?: Maybe; - tokenHourDatas: Array; - tokenSearch: Array; tokens: Array; transaction?: Maybe; transactions: Array; + uniswapDayData?: Maybe; + uniswapDayDatas: Array; + uniswapFactories: Array; + uniswapFactory?: Maybe; user?: Maybe; - userSearch: Array; users: Array; }; @@ -2076,147 +1492,93 @@ export type QueryBurnsArgs = { }; -export type QueryDayDataArgs = { +export type QueryLiquidityPositionArgs = { block?: InputMaybe; id: Scalars['ID']['input']; subgraphError?: _SubgraphErrorPolicy_; }; -export type QueryDayDatasArgs = { +export type QueryLiquidityPositionSnapshotArgs = { block?: InputMaybe; - first?: InputMaybe; - orderBy?: InputMaybe; - orderDirection?: InputMaybe; - skip?: InputMaybe; + id: Scalars['ID']['input']; subgraphError?: _SubgraphErrorPolicy_; - where?: InputMaybe; }; -export type QueryFactoriesArgs = { +export type QueryLiquidityPositionSnapshotsArgs = { block?: InputMaybe; first?: InputMaybe; - orderBy?: InputMaybe; + orderBy?: InputMaybe; orderDirection?: InputMaybe; skip?: InputMaybe; subgraphError?: _SubgraphErrorPolicy_; - where?: InputMaybe; + where?: InputMaybe; }; -export type QueryFactoryArgs = { +export type QueryLiquidityPositionsArgs = { block?: InputMaybe; - id: Scalars['ID']['input']; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; subgraphError?: _SubgraphErrorPolicy_; + where?: InputMaybe; }; -export type QueryHourDataArgs = { +export type QueryMintArgs = { block?: InputMaybe; id: Scalars['ID']['input']; subgraphError?: _SubgraphErrorPolicy_; }; -export type QueryHourDatasArgs = { +export type QueryMintsArgs = { block?: InputMaybe; first?: InputMaybe; - orderBy?: InputMaybe; + orderBy?: InputMaybe; orderDirection?: InputMaybe; skip?: InputMaybe; subgraphError?: _SubgraphErrorPolicy_; - where?: InputMaybe; + where?: InputMaybe; }; -export type QueryLiquidityPositionArgs = { +export type QueryPairArgs = { block?: InputMaybe; id: Scalars['ID']['input']; subgraphError?: _SubgraphErrorPolicy_; }; -export type QueryLiquidityPositionSnapshotArgs = { +export type QueryPairDayDataArgs = { block?: InputMaybe; id: Scalars['ID']['input']; subgraphError?: _SubgraphErrorPolicy_; }; -export type QueryLiquidityPositionSnapshotsArgs = { +export type QueryPairDayDatasArgs = { block?: InputMaybe; first?: InputMaybe; - orderBy?: InputMaybe; + orderBy?: InputMaybe; orderDirection?: InputMaybe; skip?: InputMaybe; subgraphError?: _SubgraphErrorPolicy_; - where?: InputMaybe; + where?: InputMaybe; }; -export type QueryLiquidityPositionsArgs = { +export type QueryPairHourDataArgs = { block?: InputMaybe; - first?: InputMaybe; - orderBy?: InputMaybe; - orderDirection?: InputMaybe; - skip?: InputMaybe; + id: Scalars['ID']['input']; subgraphError?: _SubgraphErrorPolicy_; - where?: InputMaybe; }; -export type QueryMintArgs = { - block?: InputMaybe; - id: Scalars['ID']['input']; - subgraphError?: _SubgraphErrorPolicy_; -}; - - -export type QueryMintsArgs = { - block?: InputMaybe; - first?: InputMaybe; - orderBy?: InputMaybe; - orderDirection?: InputMaybe; - skip?: InputMaybe; - subgraphError?: _SubgraphErrorPolicy_; - where?: InputMaybe; -}; - - -export type QueryPairArgs = { - block?: InputMaybe; - id: Scalars['ID']['input']; - subgraphError?: _SubgraphErrorPolicy_; -}; - - -export type QueryPairDayDataArgs = { - block?: InputMaybe; - id: Scalars['ID']['input']; - subgraphError?: _SubgraphErrorPolicy_; -}; - - -export type QueryPairDayDatasArgs = { - block?: InputMaybe; - first?: InputMaybe; - orderBy?: InputMaybe; - orderDirection?: InputMaybe; - skip?: InputMaybe; - subgraphError?: _SubgraphErrorPolicy_; - where?: InputMaybe; -}; - - -export type QueryPairHourDataArgs = { - block?: InputMaybe; - id: Scalars['ID']['input']; - subgraphError?: _SubgraphErrorPolicy_; -}; - - -export type QueryPairHourDatasArgs = { +export type QueryPairHourDatasArgs = { block?: InputMaybe; first?: InputMaybe; orderBy?: InputMaybe; @@ -2227,16 +1589,6 @@ export type QueryPairHourDatasArgs = { }; -export type QueryPairSearchArgs = { - block?: InputMaybe; - first?: InputMaybe; - skip?: InputMaybe; - subgraphError?: _SubgraphErrorPolicy_; - text: Scalars['String']['input']; - where?: InputMaybe; -}; - - export type QueryPairsArgs = { block?: InputMaybe; first?: InputMaybe; @@ -2291,77 +1643,75 @@ export type QueryTokenDayDatasArgs = { }; -export type QueryTokenHourDataArgs = { - block?: InputMaybe; - id: Scalars['ID']['input']; - subgraphError?: _SubgraphErrorPolicy_; -}; - - -export type QueryTokenHourDatasArgs = { +export type QueryTokensArgs = { block?: InputMaybe; first?: InputMaybe; - orderBy?: InputMaybe; + orderBy?: InputMaybe; orderDirection?: InputMaybe; skip?: InputMaybe; subgraphError?: _SubgraphErrorPolicy_; - where?: InputMaybe; + where?: InputMaybe; }; -export type QueryTokenSearchArgs = { +export type QueryTransactionArgs = { block?: InputMaybe; - first?: InputMaybe; - skip?: InputMaybe; + id: Scalars['ID']['input']; subgraphError?: _SubgraphErrorPolicy_; - text: Scalars['String']['input']; - where?: InputMaybe; }; -export type QueryTokensArgs = { +export type QueryTransactionsArgs = { block?: InputMaybe; first?: InputMaybe; - orderBy?: InputMaybe; + orderBy?: InputMaybe; orderDirection?: InputMaybe; skip?: InputMaybe; subgraphError?: _SubgraphErrorPolicy_; - where?: InputMaybe; + where?: InputMaybe; }; -export type QueryTransactionArgs = { +export type QueryUniswapDayDataArgs = { block?: InputMaybe; id: Scalars['ID']['input']; subgraphError?: _SubgraphErrorPolicy_; }; -export type QueryTransactionsArgs = { +export type QueryUniswapDayDatasArgs = { block?: InputMaybe; first?: InputMaybe; - orderBy?: InputMaybe; + orderBy?: InputMaybe; orderDirection?: InputMaybe; skip?: InputMaybe; subgraphError?: _SubgraphErrorPolicy_; - where?: InputMaybe; + where?: InputMaybe; }; -export type QueryUserArgs = { +export type QueryUniswapFactoriesArgs = { + block?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; + where?: InputMaybe; +}; + + +export type QueryUniswapFactoryArgs = { block?: InputMaybe; id: Scalars['ID']['input']; subgraphError?: _SubgraphErrorPolicy_; }; -export type QueryUserSearchArgs = { +export type QueryUserArgs = { block?: InputMaybe; - first?: InputMaybe; - skip?: InputMaybe; + id: Scalars['ID']['input']; subgraphError?: _SubgraphErrorPolicy_; - text: Scalars['String']['input']; - where?: InputMaybe; }; @@ -2383,12 +1733,6 @@ export type Subscription = { bundles: Array; burn?: Maybe; burns: Array; - dayData?: Maybe; - dayDatas: Array; - factories: Array; - factory?: Maybe; - hourData?: Maybe; - hourDatas: Array; liquidityPosition?: Maybe; liquidityPositionSnapshot?: Maybe; liquidityPositionSnapshots: Array; @@ -2406,11 +1750,13 @@ export type Subscription = { token?: Maybe; tokenDayData?: Maybe; tokenDayDatas: Array; - tokenHourData?: Maybe; - tokenHourDatas: Array; tokens: Array; transaction?: Maybe; transactions: Array; + uniswapDayData?: Maybe; + uniswapDayDatas: Array; + uniswapFactories: Array; + uniswapFactory?: Maybe; user?: Maybe; users: Array; }; @@ -2457,60 +1803,6 @@ export type SubscriptionBurnsArgs = { }; -export type SubscriptionDayDataArgs = { - block?: InputMaybe; - id: Scalars['ID']['input']; - subgraphError?: _SubgraphErrorPolicy_; -}; - - -export type SubscriptionDayDatasArgs = { - block?: InputMaybe; - first?: InputMaybe; - orderBy?: InputMaybe; - orderDirection?: InputMaybe; - skip?: InputMaybe; - subgraphError?: _SubgraphErrorPolicy_; - where?: InputMaybe; -}; - - -export type SubscriptionFactoriesArgs = { - block?: InputMaybe; - first?: InputMaybe; - orderBy?: InputMaybe; - orderDirection?: InputMaybe; - skip?: InputMaybe; - subgraphError?: _SubgraphErrorPolicy_; - where?: InputMaybe; -}; - - -export type SubscriptionFactoryArgs = { - block?: InputMaybe; - id: Scalars['ID']['input']; - subgraphError?: _SubgraphErrorPolicy_; -}; - - -export type SubscriptionHourDataArgs = { - block?: InputMaybe; - id: Scalars['ID']['input']; - subgraphError?: _SubgraphErrorPolicy_; -}; - - -export type SubscriptionHourDatasArgs = { - block?: InputMaybe; - first?: InputMaybe; - orderBy?: InputMaybe; - orderDirection?: InputMaybe; - skip?: InputMaybe; - subgraphError?: _SubgraphErrorPolicy_; - where?: InputMaybe; -}; - - export type SubscriptionLiquidityPositionArgs = { block?: InputMaybe; id: Scalars['ID']['input']; @@ -2662,50 +1954,68 @@ export type SubscriptionTokenDayDatasArgs = { }; -export type SubscriptionTokenHourDataArgs = { +export type SubscriptionTokensArgs = { block?: InputMaybe; - id: Scalars['ID']['input']; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; subgraphError?: _SubgraphErrorPolicy_; + where?: InputMaybe; }; -export type SubscriptionTokenHourDatasArgs = { +export type SubscriptionTransactionArgs = { block?: InputMaybe; - first?: InputMaybe; - orderBy?: InputMaybe; - orderDirection?: InputMaybe; - skip?: InputMaybe; + id: Scalars['ID']['input']; subgraphError?: _SubgraphErrorPolicy_; - where?: InputMaybe; }; -export type SubscriptionTokensArgs = { +export type SubscriptionTransactionsArgs = { block?: InputMaybe; first?: InputMaybe; - orderBy?: InputMaybe; + orderBy?: InputMaybe; orderDirection?: InputMaybe; skip?: InputMaybe; subgraphError?: _SubgraphErrorPolicy_; - where?: InputMaybe; + where?: InputMaybe; }; -export type SubscriptionTransactionArgs = { +export type SubscriptionUniswapDayDataArgs = { block?: InputMaybe; id: Scalars['ID']['input']; subgraphError?: _SubgraphErrorPolicy_; }; -export type SubscriptionTransactionsArgs = { +export type SubscriptionUniswapDayDatasArgs = { block?: InputMaybe; first?: InputMaybe; - orderBy?: InputMaybe; + orderBy?: InputMaybe; orderDirection?: InputMaybe; skip?: InputMaybe; subgraphError?: _SubgraphErrorPolicy_; - where?: InputMaybe; + where?: InputMaybe; +}; + + +export type SubscriptionUniswapFactoriesArgs = { + block?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; + where?: InputMaybe; +}; + + +export type SubscriptionUniswapFactoryArgs = { + block?: InputMaybe; + id: Scalars['ID']['input']; + subgraphError?: _SubgraphErrorPolicy_; }; @@ -2884,15 +2194,14 @@ export type Swap_OrderBy = | 'id' | 'logIndex' | 'pair' - | 'pair__block' + | 'pair__createdAtBlockNumber' + | 'pair__createdAtTimestamp' | 'pair__id' | 'pair__liquidityProviderCount' - | 'pair__name' | 'pair__reserve0' | 'pair__reserve1' | 'pair__reserveETH' | 'pair__reserveUSD' - | 'pair__timestamp' | 'pair__token0Price' | 'pair__token1Price' | 'pair__totalSupply' @@ -2907,105 +2216,78 @@ export type Swap_OrderBy = | 'to' | 'transaction' | 'transaction__blockNumber' + | 'transaction__gasPrice' + | 'transaction__gasUsed' | 'transaction__id' | 'transaction__timestamp' | '%future added value'; export type Token = { __typename?: 'Token'; - basePairs: Array; - basePairsDayData: Array; - dayData: Array; decimals: Scalars['BigInt']['output']; - derivedETH: Scalars['BigDecimal']['output']; - factory: Factory; - hourData: Array; + derivedETH?: Maybe; id: Scalars['ID']['output']; - liquidity: Scalars['BigDecimal']['output']; name: Scalars['String']['output']; - quotePairs: Array; - quotePairsDayData: Array; symbol: Scalars['String']['output']; + totalLiquidity: Scalars['BigDecimal']['output']; totalSupply: Scalars['BigInt']['output']; + tradeVolume: Scalars['BigDecimal']['output']; + tradeVolumeUSD: Scalars['BigDecimal']['output']; txCount: Scalars['BigInt']['output']; untrackedVolumeUSD: Scalars['BigDecimal']['output']; - volume: Scalars['BigDecimal']['output']; - volumeUSD: Scalars['BigDecimal']['output']; -}; - - -export type TokenBasePairsArgs = { - first?: InputMaybe; - orderBy?: InputMaybe; - orderDirection?: InputMaybe; - skip?: InputMaybe; - where?: InputMaybe; -}; - - -export type TokenBasePairsDayDataArgs = { - first?: InputMaybe; - orderBy?: InputMaybe; - orderDirection?: InputMaybe; - skip?: InputMaybe; - where?: InputMaybe; -}; - - -export type TokenDayDataArgs = { - first?: InputMaybe; - orderBy?: InputMaybe; - orderDirection?: InputMaybe; - skip?: InputMaybe; - where?: InputMaybe; -}; - - -export type TokenHourDataArgs = { - first?: InputMaybe; - orderBy?: InputMaybe; - orderDirection?: InputMaybe; - skip?: InputMaybe; - where?: InputMaybe; -}; - - -export type TokenQuotePairsArgs = { - first?: InputMaybe; - orderBy?: InputMaybe; - orderDirection?: InputMaybe; - skip?: InputMaybe; - where?: InputMaybe; -}; - - -export type TokenQuotePairsDayDataArgs = { - first?: InputMaybe; - orderBy?: InputMaybe; - orderDirection?: InputMaybe; - skip?: InputMaybe; - where?: InputMaybe; }; export type TokenDayData = { __typename?: 'TokenDayData'; + dailyTxns: Scalars['BigInt']['output']; + dailyVolumeETH: Scalars['BigDecimal']['output']; + dailyVolumeToken: Scalars['BigDecimal']['output']; + dailyVolumeUSD: Scalars['BigDecimal']['output']; date: Scalars['Int']['output']; id: Scalars['ID']['output']; - liquidity: Scalars['BigDecimal']['output']; - liquidityETH: Scalars['BigDecimal']['output']; - liquidityUSD: Scalars['BigDecimal']['output']; priceUSD: Scalars['BigDecimal']['output']; token: Token; - txCount: Scalars['BigInt']['output']; - volume: Scalars['BigDecimal']['output']; - volumeETH: Scalars['BigDecimal']['output']; - volumeUSD: Scalars['BigDecimal']['output']; + totalLiquidityETH: Scalars['BigDecimal']['output']; + totalLiquidityToken: Scalars['BigDecimal']['output']; + totalLiquidityUSD: Scalars['BigDecimal']['output']; }; export type TokenDayData_Filter = { /** Filter for the block changed event. */ _change_block?: InputMaybe; and?: InputMaybe>>; + dailyTxns?: InputMaybe; + dailyTxns_gt?: InputMaybe; + dailyTxns_gte?: InputMaybe; + dailyTxns_in?: InputMaybe>; + dailyTxns_lt?: InputMaybe; + dailyTxns_lte?: InputMaybe; + dailyTxns_not?: InputMaybe; + dailyTxns_not_in?: InputMaybe>; + dailyVolumeETH?: InputMaybe; + dailyVolumeETH_gt?: InputMaybe; + dailyVolumeETH_gte?: InputMaybe; + dailyVolumeETH_in?: InputMaybe>; + dailyVolumeETH_lt?: InputMaybe; + dailyVolumeETH_lte?: InputMaybe; + dailyVolumeETH_not?: InputMaybe; + dailyVolumeETH_not_in?: InputMaybe>; + dailyVolumeToken?: InputMaybe; + dailyVolumeToken_gt?: InputMaybe; + dailyVolumeToken_gte?: InputMaybe; + dailyVolumeToken_in?: InputMaybe>; + dailyVolumeToken_lt?: InputMaybe; + dailyVolumeToken_lte?: InputMaybe; + dailyVolumeToken_not?: InputMaybe; + dailyVolumeToken_not_in?: InputMaybe>; + dailyVolumeUSD?: InputMaybe; + dailyVolumeUSD_gt?: InputMaybe; + dailyVolumeUSD_gte?: InputMaybe; + dailyVolumeUSD_in?: InputMaybe>; + dailyVolumeUSD_lt?: InputMaybe; + dailyVolumeUSD_lte?: InputMaybe; + dailyVolumeUSD_not?: InputMaybe; + dailyVolumeUSD_not_in?: InputMaybe>; date?: InputMaybe; date_gt?: InputMaybe; date_gte?: InputMaybe; @@ -3022,30 +2304,6 @@ export type TokenDayData_Filter = { id_lte?: InputMaybe; id_not?: InputMaybe; id_not_in?: InputMaybe>; - liquidity?: InputMaybe; - liquidityETH?: InputMaybe; - liquidityETH_gt?: InputMaybe; - liquidityETH_gte?: InputMaybe; - liquidityETH_in?: InputMaybe>; - liquidityETH_lt?: InputMaybe; - liquidityETH_lte?: InputMaybe; - liquidityETH_not?: InputMaybe; - liquidityETH_not_in?: InputMaybe>; - liquidityUSD?: InputMaybe; - liquidityUSD_gt?: InputMaybe; - liquidityUSD_gte?: InputMaybe; - liquidityUSD_in?: InputMaybe>; - liquidityUSD_lt?: InputMaybe; - liquidityUSD_lte?: InputMaybe; - liquidityUSD_not?: InputMaybe; - liquidityUSD_not_in?: InputMaybe>; - liquidity_gt?: InputMaybe; - liquidity_gte?: InputMaybe; - liquidity_in?: InputMaybe>; - liquidity_lt?: InputMaybe; - liquidity_lte?: InputMaybe; - liquidity_not?: InputMaybe; - liquidity_not_in?: InputMaybe>; or?: InputMaybe>>; priceUSD?: InputMaybe; priceUSD_gt?: InputMaybe; @@ -3076,220 +2334,61 @@ export type TokenDayData_Filter = { token_not_starts_with_nocase?: InputMaybe; token_starts_with?: InputMaybe; token_starts_with_nocase?: InputMaybe; - txCount?: InputMaybe; - txCount_gt?: InputMaybe; - txCount_gte?: InputMaybe; - txCount_in?: InputMaybe>; - txCount_lt?: InputMaybe; - txCount_lte?: InputMaybe; - txCount_not?: InputMaybe; - txCount_not_in?: InputMaybe>; - volume?: InputMaybe; - volumeETH?: InputMaybe; - volumeETH_gt?: InputMaybe; - volumeETH_gte?: InputMaybe; - volumeETH_in?: InputMaybe>; - volumeETH_lt?: InputMaybe; - volumeETH_lte?: InputMaybe; - volumeETH_not?: InputMaybe; - volumeETH_not_in?: InputMaybe>; - volumeUSD?: InputMaybe; - volumeUSD_gt?: InputMaybe; - volumeUSD_gte?: InputMaybe; - volumeUSD_in?: InputMaybe>; - volumeUSD_lt?: InputMaybe; - volumeUSD_lte?: InputMaybe; - volumeUSD_not?: InputMaybe; - volumeUSD_not_in?: InputMaybe>; - volume_gt?: InputMaybe; - volume_gte?: InputMaybe; - volume_in?: InputMaybe>; - volume_lt?: InputMaybe; - volume_lte?: InputMaybe; - volume_not?: InputMaybe; - volume_not_in?: InputMaybe>; + totalLiquidityETH?: InputMaybe; + totalLiquidityETH_gt?: InputMaybe; + totalLiquidityETH_gte?: InputMaybe; + totalLiquidityETH_in?: InputMaybe>; + totalLiquidityETH_lt?: InputMaybe; + totalLiquidityETH_lte?: InputMaybe; + totalLiquidityETH_not?: InputMaybe; + totalLiquidityETH_not_in?: InputMaybe>; + totalLiquidityToken?: InputMaybe; + totalLiquidityToken_gt?: InputMaybe; + totalLiquidityToken_gte?: InputMaybe; + totalLiquidityToken_in?: InputMaybe>; + totalLiquidityToken_lt?: InputMaybe; + totalLiquidityToken_lte?: InputMaybe; + totalLiquidityToken_not?: InputMaybe; + totalLiquidityToken_not_in?: InputMaybe>; + totalLiquidityUSD?: InputMaybe; + totalLiquidityUSD_gt?: InputMaybe; + totalLiquidityUSD_gte?: InputMaybe; + totalLiquidityUSD_in?: InputMaybe>; + totalLiquidityUSD_lt?: InputMaybe; + totalLiquidityUSD_lte?: InputMaybe; + totalLiquidityUSD_not?: InputMaybe; + totalLiquidityUSD_not_in?: InputMaybe>; }; export type TokenDayData_OrderBy = + | 'dailyTxns' + | 'dailyVolumeETH' + | 'dailyVolumeToken' + | 'dailyVolumeUSD' | 'date' | 'id' - | 'liquidity' - | 'liquidityETH' - | 'liquidityUSD' | 'priceUSD' | 'token' | 'token__decimals' | 'token__derivedETH' | 'token__id' - | 'token__liquidity' | 'token__name' | 'token__symbol' + | 'token__totalLiquidity' | 'token__totalSupply' + | 'token__tradeVolume' + | 'token__tradeVolumeUSD' | 'token__txCount' | 'token__untrackedVolumeUSD' - | 'token__volume' - | 'token__volumeUSD' - | 'txCount' - | 'volume' - | 'volumeETH' - | 'volumeUSD' - | '%future added value'; - -export type TokenHourData = { - __typename?: 'TokenHourData'; - date: Scalars['Int']['output']; - id: Scalars['ID']['output']; - liquidity: Scalars['BigDecimal']['output']; - liquidityETH: Scalars['BigDecimal']['output']; - liquidityUSD: Scalars['BigDecimal']['output']; - priceUSD: Scalars['BigDecimal']['output']; - token: Token; - txCount: Scalars['BigInt']['output']; - volume: Scalars['BigDecimal']['output']; - volumeETH: Scalars['BigDecimal']['output']; - volumeUSD: Scalars['BigDecimal']['output']; -}; - -export type TokenHourData_Filter = { - /** Filter for the block changed event. */ - _change_block?: InputMaybe; - and?: InputMaybe>>; - date?: InputMaybe; - date_gt?: InputMaybe; - date_gte?: InputMaybe; - date_in?: InputMaybe>; - date_lt?: InputMaybe; - date_lte?: InputMaybe; - date_not?: InputMaybe; - date_not_in?: InputMaybe>; - id?: InputMaybe; - id_gt?: InputMaybe; - id_gte?: InputMaybe; - id_in?: InputMaybe>; - id_lt?: InputMaybe; - id_lte?: InputMaybe; - id_not?: InputMaybe; - id_not_in?: InputMaybe>; - liquidity?: InputMaybe; - liquidityETH?: InputMaybe; - liquidityETH_gt?: InputMaybe; - liquidityETH_gte?: InputMaybe; - liquidityETH_in?: InputMaybe>; - liquidityETH_lt?: InputMaybe; - liquidityETH_lte?: InputMaybe; - liquidityETH_not?: InputMaybe; - liquidityETH_not_in?: InputMaybe>; - liquidityUSD?: InputMaybe; - liquidityUSD_gt?: InputMaybe; - liquidityUSD_gte?: InputMaybe; - liquidityUSD_in?: InputMaybe>; - liquidityUSD_lt?: InputMaybe; - liquidityUSD_lte?: InputMaybe; - liquidityUSD_not?: InputMaybe; - liquidityUSD_not_in?: InputMaybe>; - liquidity_gt?: InputMaybe; - liquidity_gte?: InputMaybe; - liquidity_in?: InputMaybe>; - liquidity_lt?: InputMaybe; - liquidity_lte?: InputMaybe; - liquidity_not?: InputMaybe; - liquidity_not_in?: InputMaybe>; - or?: InputMaybe>>; - priceUSD?: InputMaybe; - priceUSD_gt?: InputMaybe; - priceUSD_gte?: InputMaybe; - priceUSD_in?: InputMaybe>; - priceUSD_lt?: InputMaybe; - priceUSD_lte?: InputMaybe; - priceUSD_not?: InputMaybe; - priceUSD_not_in?: InputMaybe>; - token?: InputMaybe; - token_?: InputMaybe; - token_contains?: InputMaybe; - token_contains_nocase?: InputMaybe; - token_ends_with?: InputMaybe; - token_ends_with_nocase?: InputMaybe; - token_gt?: InputMaybe; - token_gte?: InputMaybe; - token_in?: InputMaybe>; - token_lt?: InputMaybe; - token_lte?: InputMaybe; - token_not?: InputMaybe; - token_not_contains?: InputMaybe; - token_not_contains_nocase?: InputMaybe; - token_not_ends_with?: InputMaybe; - token_not_ends_with_nocase?: InputMaybe; - token_not_in?: InputMaybe>; - token_not_starts_with?: InputMaybe; - token_not_starts_with_nocase?: InputMaybe; - token_starts_with?: InputMaybe; - token_starts_with_nocase?: InputMaybe; - txCount?: InputMaybe; - txCount_gt?: InputMaybe; - txCount_gte?: InputMaybe; - txCount_in?: InputMaybe>; - txCount_lt?: InputMaybe; - txCount_lte?: InputMaybe; - txCount_not?: InputMaybe; - txCount_not_in?: InputMaybe>; - volume?: InputMaybe; - volumeETH?: InputMaybe; - volumeETH_gt?: InputMaybe; - volumeETH_gte?: InputMaybe; - volumeETH_in?: InputMaybe>; - volumeETH_lt?: InputMaybe; - volumeETH_lte?: InputMaybe; - volumeETH_not?: InputMaybe; - volumeETH_not_in?: InputMaybe>; - volumeUSD?: InputMaybe; - volumeUSD_gt?: InputMaybe; - volumeUSD_gte?: InputMaybe; - volumeUSD_in?: InputMaybe>; - volumeUSD_lt?: InputMaybe; - volumeUSD_lte?: InputMaybe; - volumeUSD_not?: InputMaybe; - volumeUSD_not_in?: InputMaybe>; - volume_gt?: InputMaybe; - volume_gte?: InputMaybe; - volume_in?: InputMaybe>; - volume_lt?: InputMaybe; - volume_lte?: InputMaybe; - volume_not?: InputMaybe; - volume_not_in?: InputMaybe>; -}; - -export type TokenHourData_OrderBy = - | 'date' - | 'id' - | 'liquidity' - | 'liquidityETH' - | 'liquidityUSD' - | 'priceUSD' - | 'token' - | 'token__decimals' - | 'token__derivedETH' - | 'token__id' - | 'token__liquidity' - | 'token__name' - | 'token__symbol' - | 'token__totalSupply' - | 'token__txCount' - | 'token__untrackedVolumeUSD' - | 'token__volume' - | 'token__volumeUSD' - | 'txCount' - | 'volume' - | 'volumeETH' - | 'volumeUSD' + | 'totalLiquidityETH' + | 'totalLiquidityToken' + | 'totalLiquidityUSD' | '%future added value'; export type Token_Filter = { /** Filter for the block changed event. */ _change_block?: InputMaybe; and?: InputMaybe>>; - basePairsDayData_?: InputMaybe; - basePairs_?: InputMaybe; - dayData_?: InputMaybe; decimals?: InputMaybe; decimals_gt?: InputMaybe; decimals_gte?: InputMaybe; @@ -3306,28 +2405,6 @@ export type Token_Filter = { derivedETH_lte?: InputMaybe; derivedETH_not?: InputMaybe; derivedETH_not_in?: InputMaybe>; - factory?: InputMaybe; - factory_?: InputMaybe; - factory_contains?: InputMaybe; - factory_contains_nocase?: InputMaybe; - factory_ends_with?: InputMaybe; - factory_ends_with_nocase?: InputMaybe; - factory_gt?: InputMaybe; - factory_gte?: InputMaybe; - factory_in?: InputMaybe>; - factory_lt?: InputMaybe; - factory_lte?: InputMaybe; - factory_not?: InputMaybe; - factory_not_contains?: InputMaybe; - factory_not_contains_nocase?: InputMaybe; - factory_not_ends_with?: InputMaybe; - factory_not_ends_with_nocase?: InputMaybe; - factory_not_in?: InputMaybe>; - factory_not_starts_with?: InputMaybe; - factory_not_starts_with_nocase?: InputMaybe; - factory_starts_with?: InputMaybe; - factory_starts_with_nocase?: InputMaybe; - hourData_?: InputMaybe; id?: InputMaybe; id_gt?: InputMaybe; id_gte?: InputMaybe; @@ -3336,14 +2413,6 @@ export type Token_Filter = { id_lte?: InputMaybe; id_not?: InputMaybe; id_not_in?: InputMaybe>; - liquidity?: InputMaybe; - liquidity_gt?: InputMaybe; - liquidity_gte?: InputMaybe; - liquidity_in?: InputMaybe>; - liquidity_lt?: InputMaybe; - liquidity_lte?: InputMaybe; - liquidity_not?: InputMaybe; - liquidity_not_in?: InputMaybe>; name?: InputMaybe; name_contains?: InputMaybe; name_contains_nocase?: InputMaybe; @@ -3365,8 +2434,6 @@ export type Token_Filter = { name_starts_with?: InputMaybe; name_starts_with_nocase?: InputMaybe; or?: InputMaybe>>; - quotePairsDayData_?: InputMaybe; - quotePairs_?: InputMaybe; symbol?: InputMaybe; symbol_contains?: InputMaybe; symbol_contains_nocase?: InputMaybe; @@ -3387,6 +2454,14 @@ export type Token_Filter = { symbol_not_starts_with_nocase?: InputMaybe; symbol_starts_with?: InputMaybe; symbol_starts_with_nocase?: InputMaybe; + totalLiquidity?: InputMaybe; + totalLiquidity_gt?: InputMaybe; + totalLiquidity_gte?: InputMaybe; + totalLiquidity_in?: InputMaybe>; + totalLiquidity_lt?: InputMaybe; + totalLiquidity_lte?: InputMaybe; + totalLiquidity_not?: InputMaybe; + totalLiquidity_not_in?: InputMaybe>; totalSupply?: InputMaybe; totalSupply_gt?: InputMaybe; totalSupply_gte?: InputMaybe; @@ -3395,6 +2470,22 @@ export type Token_Filter = { totalSupply_lte?: InputMaybe; totalSupply_not?: InputMaybe; totalSupply_not_in?: InputMaybe>; + tradeVolume?: InputMaybe; + tradeVolumeUSD?: InputMaybe; + tradeVolumeUSD_gt?: InputMaybe; + tradeVolumeUSD_gte?: InputMaybe; + tradeVolumeUSD_in?: InputMaybe>; + tradeVolumeUSD_lt?: InputMaybe; + tradeVolumeUSD_lte?: InputMaybe; + tradeVolumeUSD_not?: InputMaybe; + tradeVolumeUSD_not_in?: InputMaybe>; + tradeVolume_gt?: InputMaybe; + tradeVolume_gte?: InputMaybe; + tradeVolume_in?: InputMaybe>; + tradeVolume_lt?: InputMaybe; + tradeVolume_lte?: InputMaybe; + tradeVolume_not?: InputMaybe; + tradeVolume_not_in?: InputMaybe>; txCount?: InputMaybe; txCount_gt?: InputMaybe; txCount_gte?: InputMaybe; @@ -3411,59 +2502,28 @@ export type Token_Filter = { untrackedVolumeUSD_lte?: InputMaybe; untrackedVolumeUSD_not?: InputMaybe; untrackedVolumeUSD_not_in?: InputMaybe>; - volume?: InputMaybe; - volumeUSD?: InputMaybe; - volumeUSD_gt?: InputMaybe; - volumeUSD_gte?: InputMaybe; - volumeUSD_in?: InputMaybe>; - volumeUSD_lt?: InputMaybe; - volumeUSD_lte?: InputMaybe; - volumeUSD_not?: InputMaybe; - volumeUSD_not_in?: InputMaybe>; - volume_gt?: InputMaybe; - volume_gte?: InputMaybe; - volume_in?: InputMaybe>; - volume_lt?: InputMaybe; - volume_lte?: InputMaybe; - volume_not?: InputMaybe; - volume_not_in?: InputMaybe>; }; export type Token_OrderBy = - | 'basePairs' - | 'basePairsDayData' - | 'dayData' | 'decimals' | 'derivedETH' - | 'factory' - | 'factory__id' - | 'factory__liquidityETH' - | 'factory__liquidityUSD' - | 'factory__pairCount' - | 'factory__tokenCount' - | 'factory__txCount' - | 'factory__untrackedVolumeUSD' - | 'factory__userCount' - | 'factory__volumeETH' - | 'factory__volumeUSD' - | 'hourData' | 'id' - | 'liquidity' | 'name' - | 'quotePairs' - | 'quotePairsDayData' | 'symbol' + | 'totalLiquidity' | 'totalSupply' + | 'tradeVolume' + | 'tradeVolumeUSD' | 'txCount' | 'untrackedVolumeUSD' - | 'volume' - | 'volumeUSD' | '%future added value'; export type Transaction = { __typename?: 'Transaction'; blockNumber: Scalars['BigInt']['output']; burns: Array>; + gasPrice: Scalars['BigInt']['output']; + gasUsed: Scalars['BigInt']['output']; id: Scalars['ID']['output']; mints: Array>; swaps: Array>; @@ -3516,6 +2576,22 @@ export type Transaction_Filter = { burns_not?: InputMaybe>; burns_not_contains?: InputMaybe>; burns_not_contains_nocase?: InputMaybe>; + gasPrice?: InputMaybe; + gasPrice_gt?: InputMaybe; + gasPrice_gte?: InputMaybe; + gasPrice_in?: InputMaybe>; + gasPrice_lt?: InputMaybe; + gasPrice_lte?: InputMaybe; + gasPrice_not?: InputMaybe; + gasPrice_not_in?: InputMaybe>; + gasUsed?: InputMaybe; + gasUsed_gt?: InputMaybe; + gasUsed_gte?: InputMaybe; + gasUsed_in?: InputMaybe>; + gasUsed_lt?: InputMaybe; + gasUsed_lte?: InputMaybe; + gasUsed_not?: InputMaybe; + gasUsed_not_in?: InputMaybe>; id?: InputMaybe; id_gt?: InputMaybe; id_gte?: InputMaybe; @@ -3552,16 +2628,227 @@ export type Transaction_Filter = { export type Transaction_OrderBy = | 'blockNumber' | 'burns' + | 'gasPrice' + | 'gasUsed' | 'id' | 'mints' | 'swaps' | 'timestamp' | '%future added value'; +export type UniswapDayData = { + __typename?: 'UniswapDayData'; + dailyVolumeETH: Scalars['BigDecimal']['output']; + dailyVolumeUSD: Scalars['BigDecimal']['output']; + dailyVolumeUntracked: Scalars['BigDecimal']['output']; + date: Scalars['Int']['output']; + id: Scalars['ID']['output']; + totalLiquidityETH: Scalars['BigDecimal']['output']; + totalLiquidityUSD: Scalars['BigDecimal']['output']; + totalVolumeETH: Scalars['BigDecimal']['output']; + totalVolumeUSD: Scalars['BigDecimal']['output']; + txCount: Scalars['BigInt']['output']; +}; + +export type UniswapDayData_Filter = { + /** Filter for the block changed event. */ + _change_block?: InputMaybe; + and?: InputMaybe>>; + dailyVolumeETH?: InputMaybe; + dailyVolumeETH_gt?: InputMaybe; + dailyVolumeETH_gte?: InputMaybe; + dailyVolumeETH_in?: InputMaybe>; + dailyVolumeETH_lt?: InputMaybe; + dailyVolumeETH_lte?: InputMaybe; + dailyVolumeETH_not?: InputMaybe; + dailyVolumeETH_not_in?: InputMaybe>; + dailyVolumeUSD?: InputMaybe; + dailyVolumeUSD_gt?: InputMaybe; + dailyVolumeUSD_gte?: InputMaybe; + dailyVolumeUSD_in?: InputMaybe>; + dailyVolumeUSD_lt?: InputMaybe; + dailyVolumeUSD_lte?: InputMaybe; + dailyVolumeUSD_not?: InputMaybe; + dailyVolumeUSD_not_in?: InputMaybe>; + dailyVolumeUntracked?: InputMaybe; + dailyVolumeUntracked_gt?: InputMaybe; + dailyVolumeUntracked_gte?: InputMaybe; + dailyVolumeUntracked_in?: InputMaybe>; + dailyVolumeUntracked_lt?: InputMaybe; + dailyVolumeUntracked_lte?: InputMaybe; + dailyVolumeUntracked_not?: InputMaybe; + dailyVolumeUntracked_not_in?: InputMaybe>; + date?: InputMaybe; + date_gt?: InputMaybe; + date_gte?: InputMaybe; + date_in?: InputMaybe>; + date_lt?: InputMaybe; + date_lte?: InputMaybe; + date_not?: InputMaybe; + date_not_in?: InputMaybe>; + id?: InputMaybe; + id_gt?: InputMaybe; + id_gte?: InputMaybe; + id_in?: InputMaybe>; + id_lt?: InputMaybe; + id_lte?: InputMaybe; + id_not?: InputMaybe; + id_not_in?: InputMaybe>; + or?: InputMaybe>>; + totalLiquidityETH?: InputMaybe; + totalLiquidityETH_gt?: InputMaybe; + totalLiquidityETH_gte?: InputMaybe; + totalLiquidityETH_in?: InputMaybe>; + totalLiquidityETH_lt?: InputMaybe; + totalLiquidityETH_lte?: InputMaybe; + totalLiquidityETH_not?: InputMaybe; + totalLiquidityETH_not_in?: InputMaybe>; + totalLiquidityUSD?: InputMaybe; + totalLiquidityUSD_gt?: InputMaybe; + totalLiquidityUSD_gte?: InputMaybe; + totalLiquidityUSD_in?: InputMaybe>; + totalLiquidityUSD_lt?: InputMaybe; + totalLiquidityUSD_lte?: InputMaybe; + totalLiquidityUSD_not?: InputMaybe; + totalLiquidityUSD_not_in?: InputMaybe>; + totalVolumeETH?: InputMaybe; + totalVolumeETH_gt?: InputMaybe; + totalVolumeETH_gte?: InputMaybe; + totalVolumeETH_in?: InputMaybe>; + totalVolumeETH_lt?: InputMaybe; + totalVolumeETH_lte?: InputMaybe; + totalVolumeETH_not?: InputMaybe; + totalVolumeETH_not_in?: InputMaybe>; + totalVolumeUSD?: InputMaybe; + totalVolumeUSD_gt?: InputMaybe; + totalVolumeUSD_gte?: InputMaybe; + totalVolumeUSD_in?: InputMaybe>; + totalVolumeUSD_lt?: InputMaybe; + totalVolumeUSD_lte?: InputMaybe; + totalVolumeUSD_not?: InputMaybe; + totalVolumeUSD_not_in?: InputMaybe>; + txCount?: InputMaybe; + txCount_gt?: InputMaybe; + txCount_gte?: InputMaybe; + txCount_in?: InputMaybe>; + txCount_lt?: InputMaybe; + txCount_lte?: InputMaybe; + txCount_not?: InputMaybe; + txCount_not_in?: InputMaybe>; +}; + +export type UniswapDayData_OrderBy = + | 'dailyVolumeETH' + | 'dailyVolumeUSD' + | 'dailyVolumeUntracked' + | 'date' + | 'id' + | 'totalLiquidityETH' + | 'totalLiquidityUSD' + | 'totalVolumeETH' + | 'totalVolumeUSD' + | 'txCount' + | '%future added value'; + +export type UniswapFactory = { + __typename?: 'UniswapFactory'; + id: Scalars['ID']['output']; + pairCount: Scalars['Int']['output']; + totalLiquidityETH: Scalars['BigDecimal']['output']; + totalLiquidityUSD: Scalars['BigDecimal']['output']; + totalVolumeETH: Scalars['BigDecimal']['output']; + totalVolumeUSD: Scalars['BigDecimal']['output']; + txCount: Scalars['BigInt']['output']; + untrackedVolumeUSD: Scalars['BigDecimal']['output']; +}; + +export type UniswapFactory_Filter = { + /** Filter for the block changed event. */ + _change_block?: InputMaybe; + and?: InputMaybe>>; + id?: InputMaybe; + id_gt?: InputMaybe; + id_gte?: InputMaybe; + id_in?: InputMaybe>; + id_lt?: InputMaybe; + id_lte?: InputMaybe; + id_not?: InputMaybe; + id_not_in?: InputMaybe>; + or?: InputMaybe>>; + pairCount?: InputMaybe; + pairCount_gt?: InputMaybe; + pairCount_gte?: InputMaybe; + pairCount_in?: InputMaybe>; + pairCount_lt?: InputMaybe; + pairCount_lte?: InputMaybe; + pairCount_not?: InputMaybe; + pairCount_not_in?: InputMaybe>; + totalLiquidityETH?: InputMaybe; + totalLiquidityETH_gt?: InputMaybe; + totalLiquidityETH_gte?: InputMaybe; + totalLiquidityETH_in?: InputMaybe>; + totalLiquidityETH_lt?: InputMaybe; + totalLiquidityETH_lte?: InputMaybe; + totalLiquidityETH_not?: InputMaybe; + totalLiquidityETH_not_in?: InputMaybe>; + totalLiquidityUSD?: InputMaybe; + totalLiquidityUSD_gt?: InputMaybe; + totalLiquidityUSD_gte?: InputMaybe; + totalLiquidityUSD_in?: InputMaybe>; + totalLiquidityUSD_lt?: InputMaybe; + totalLiquidityUSD_lte?: InputMaybe; + totalLiquidityUSD_not?: InputMaybe; + totalLiquidityUSD_not_in?: InputMaybe>; + totalVolumeETH?: InputMaybe; + totalVolumeETH_gt?: InputMaybe; + totalVolumeETH_gte?: InputMaybe; + totalVolumeETH_in?: InputMaybe>; + totalVolumeETH_lt?: InputMaybe; + totalVolumeETH_lte?: InputMaybe; + totalVolumeETH_not?: InputMaybe; + totalVolumeETH_not_in?: InputMaybe>; + totalVolumeUSD?: InputMaybe; + totalVolumeUSD_gt?: InputMaybe; + totalVolumeUSD_gte?: InputMaybe; + totalVolumeUSD_in?: InputMaybe>; + totalVolumeUSD_lt?: InputMaybe; + totalVolumeUSD_lte?: InputMaybe; + totalVolumeUSD_not?: InputMaybe; + totalVolumeUSD_not_in?: InputMaybe>; + txCount?: InputMaybe; + txCount_gt?: InputMaybe; + txCount_gte?: InputMaybe; + txCount_in?: InputMaybe>; + txCount_lt?: InputMaybe; + txCount_lte?: InputMaybe; + txCount_not?: InputMaybe; + txCount_not_in?: InputMaybe>; + untrackedVolumeUSD?: InputMaybe; + untrackedVolumeUSD_gt?: InputMaybe; + untrackedVolumeUSD_gte?: InputMaybe; + untrackedVolumeUSD_in?: InputMaybe>; + untrackedVolumeUSD_lt?: InputMaybe; + untrackedVolumeUSD_lte?: InputMaybe; + untrackedVolumeUSD_not?: InputMaybe; + untrackedVolumeUSD_not_in?: InputMaybe>; +}; + +export type UniswapFactory_OrderBy = + | 'id' + | 'pairCount' + | 'totalLiquidityETH' + | 'totalLiquidityUSD' + | 'totalVolumeETH' + | 'totalVolumeUSD' + | 'txCount' + | 'untrackedVolumeUSD' + | '%future added value'; + export type User = { __typename?: 'User'; id: Scalars['ID']['output']; - liquidityPositions: Array; + liquidityPositions?: Maybe>; + usdSwapped: Scalars['BigDecimal']['output']; }; @@ -3587,11 +2874,20 @@ export type User_Filter = { id_not_in?: InputMaybe>; liquidityPositions_?: InputMaybe; or?: InputMaybe>>; + usdSwapped?: InputMaybe; + usdSwapped_gt?: InputMaybe; + usdSwapped_gte?: InputMaybe; + usdSwapped_in?: InputMaybe>; + usdSwapped_lt?: InputMaybe; + usdSwapped_lte?: InputMaybe; + usdSwapped_not?: InputMaybe; + usdSwapped_not_in?: InputMaybe>; }; export type User_OrderBy = | 'id' | 'liquidityPositions' + | 'usdSwapped' | '%future added value'; export type _Block_ = { diff --git a/packages/gql/src/sushi/__generated__/Gnosis.server.ts b/packages/gql/src/sushi/__generated__/Gnosis.server.ts index ef598926b..bfa71b340 100644 --- a/packages/gql/src/sushi/__generated__/Gnosis.server.ts +++ b/packages/gql/src/sushi/__generated__/Gnosis.server.ts @@ -76,12 +76,12 @@ export type Burn = { amount0?: Maybe; amount1?: Maybe; amountUSD?: Maybe; - complete: Scalars['Boolean']['output']; feeLiquidity?: Maybe; feeTo?: Maybe; id: Scalars['ID']['output']; liquidity: Scalars['BigDecimal']['output']; logIndex?: Maybe; + needsComplete: Scalars['Boolean']['output']; pair: Pair; sender?: Maybe; timestamp: Scalars['BigInt']['output']; @@ -117,10 +117,6 @@ export type Burn_Filter = { amountUSD_not?: InputMaybe; amountUSD_not_in?: InputMaybe>; and?: InputMaybe>>; - complete?: InputMaybe; - complete_in?: InputMaybe>; - complete_not?: InputMaybe; - complete_not_in?: InputMaybe>; feeLiquidity?: InputMaybe; feeLiquidity_gt?: InputMaybe; feeLiquidity_gte?: InputMaybe; @@ -163,6 +159,10 @@ export type Burn_Filter = { logIndex_lte?: InputMaybe; logIndex_not?: InputMaybe; logIndex_not_in?: InputMaybe>; + needsComplete?: InputMaybe; + needsComplete_in?: InputMaybe>; + needsComplete_not?: InputMaybe; + needsComplete_not_in?: InputMaybe>; or?: InputMaybe>>; pair?: InputMaybe; pair_?: InputMaybe; @@ -240,22 +240,21 @@ export type Burn_OrderBy = | 'amount0' | 'amount1' | 'amountUSD' - | 'complete' | 'feeLiquidity' | 'feeTo' | 'id' | 'liquidity' | 'logIndex' + | 'needsComplete' | 'pair' - | 'pair__block' + | 'pair__createdAtBlockNumber' + | 'pair__createdAtTimestamp' | 'pair__id' | 'pair__liquidityProviderCount' - | 'pair__name' | 'pair__reserve0' | 'pair__reserve1' | 'pair__reserveETH' | 'pair__reserveUSD' - | 'pair__timestamp' | 'pair__token0Price' | 'pair__token1Price' | 'pair__totalSupply' @@ -270,439 +269,23 @@ export type Burn_OrderBy = | 'to' | 'transaction' | 'transaction__blockNumber' + | 'transaction__gasPrice' + | 'transaction__gasUsed' | 'transaction__id' | 'transaction__timestamp' | '%future added value'; -export type DayData = { - __typename?: 'DayData'; - date: Scalars['Int']['output']; - factory: Factory; - id: Scalars['ID']['output']; - liquidityETH: Scalars['BigDecimal']['output']; - liquidityUSD: Scalars['BigDecimal']['output']; - txCount: Scalars['BigInt']['output']; - untrackedVolume: Scalars['BigDecimal']['output']; - volumeETH: Scalars['BigDecimal']['output']; - volumeUSD: Scalars['BigDecimal']['output']; -}; - -export type DayData_Filter = { - /** Filter for the block changed event. */ - _change_block?: InputMaybe; - and?: InputMaybe>>; - date?: InputMaybe; - date_gt?: InputMaybe; - date_gte?: InputMaybe; - date_in?: InputMaybe>; - date_lt?: InputMaybe; - date_lte?: InputMaybe; - date_not?: InputMaybe; - date_not_in?: InputMaybe>; - factory?: InputMaybe; - factory_?: InputMaybe; - factory_contains?: InputMaybe; - factory_contains_nocase?: InputMaybe; - factory_ends_with?: InputMaybe; - factory_ends_with_nocase?: InputMaybe; - factory_gt?: InputMaybe; - factory_gte?: InputMaybe; - factory_in?: InputMaybe>; - factory_lt?: InputMaybe; - factory_lte?: InputMaybe; - factory_not?: InputMaybe; - factory_not_contains?: InputMaybe; - factory_not_contains_nocase?: InputMaybe; - factory_not_ends_with?: InputMaybe; - factory_not_ends_with_nocase?: InputMaybe; - factory_not_in?: InputMaybe>; - factory_not_starts_with?: InputMaybe; - factory_not_starts_with_nocase?: InputMaybe; - factory_starts_with?: InputMaybe; - factory_starts_with_nocase?: InputMaybe; - id?: InputMaybe; - id_gt?: InputMaybe; - id_gte?: InputMaybe; - id_in?: InputMaybe>; - id_lt?: InputMaybe; - id_lte?: InputMaybe; - id_not?: InputMaybe; - id_not_in?: InputMaybe>; - liquidityETH?: InputMaybe; - liquidityETH_gt?: InputMaybe; - liquidityETH_gte?: InputMaybe; - liquidityETH_in?: InputMaybe>; - liquidityETH_lt?: InputMaybe; - liquidityETH_lte?: InputMaybe; - liquidityETH_not?: InputMaybe; - liquidityETH_not_in?: InputMaybe>; - liquidityUSD?: InputMaybe; - liquidityUSD_gt?: InputMaybe; - liquidityUSD_gte?: InputMaybe; - liquidityUSD_in?: InputMaybe>; - liquidityUSD_lt?: InputMaybe; - liquidityUSD_lte?: InputMaybe; - liquidityUSD_not?: InputMaybe; - liquidityUSD_not_in?: InputMaybe>; - or?: InputMaybe>>; - txCount?: InputMaybe; - txCount_gt?: InputMaybe; - txCount_gte?: InputMaybe; - txCount_in?: InputMaybe>; - txCount_lt?: InputMaybe; - txCount_lte?: InputMaybe; - txCount_not?: InputMaybe; - txCount_not_in?: InputMaybe>; - untrackedVolume?: InputMaybe; - untrackedVolume_gt?: InputMaybe; - untrackedVolume_gte?: InputMaybe; - untrackedVolume_in?: InputMaybe>; - untrackedVolume_lt?: InputMaybe; - untrackedVolume_lte?: InputMaybe; - untrackedVolume_not?: InputMaybe; - untrackedVolume_not_in?: InputMaybe>; - volumeETH?: InputMaybe; - volumeETH_gt?: InputMaybe; - volumeETH_gte?: InputMaybe; - volumeETH_in?: InputMaybe>; - volumeETH_lt?: InputMaybe; - volumeETH_lte?: InputMaybe; - volumeETH_not?: InputMaybe; - volumeETH_not_in?: InputMaybe>; - volumeUSD?: InputMaybe; - volumeUSD_gt?: InputMaybe; - volumeUSD_gte?: InputMaybe; - volumeUSD_in?: InputMaybe>; - volumeUSD_lt?: InputMaybe; - volumeUSD_lte?: InputMaybe; - volumeUSD_not?: InputMaybe; - volumeUSD_not_in?: InputMaybe>; -}; - -export type DayData_OrderBy = - | 'date' - | 'factory' - | 'factory__id' - | 'factory__liquidityETH' - | 'factory__liquidityUSD' - | 'factory__pairCount' - | 'factory__tokenCount' - | 'factory__txCount' - | 'factory__untrackedVolumeUSD' - | 'factory__userCount' - | 'factory__volumeETH' - | 'factory__volumeUSD' - | 'id' - | 'liquidityETH' - | 'liquidityUSD' - | 'txCount' - | 'untrackedVolume' - | 'volumeETH' - | 'volumeUSD' - | '%future added value'; - -export type Factory = { - __typename?: 'Factory'; - dayData: Array; - hourData: Array; - id: Scalars['ID']['output']; - liquidityETH: Scalars['BigDecimal']['output']; - liquidityUSD: Scalars['BigDecimal']['output']; - pairCount: Scalars['BigInt']['output']; - pairs: Array; - tokenCount: Scalars['BigInt']['output']; - tokens: Array; - txCount: Scalars['BigInt']['output']; - untrackedVolumeUSD: Scalars['BigDecimal']['output']; - userCount: Scalars['BigInt']['output']; - volumeETH: Scalars['BigDecimal']['output']; - volumeUSD: Scalars['BigDecimal']['output']; -}; - - -export type FactoryDayDataArgs = { - first?: InputMaybe; - orderBy?: InputMaybe; - orderDirection?: InputMaybe; - skip?: InputMaybe; - where?: InputMaybe; -}; - - -export type FactoryHourDataArgs = { - first?: InputMaybe; - orderBy?: InputMaybe; - orderDirection?: InputMaybe; - skip?: InputMaybe; - where?: InputMaybe; -}; - - -export type FactoryPairsArgs = { - first?: InputMaybe; - orderBy?: InputMaybe; - orderDirection?: InputMaybe; - skip?: InputMaybe; - where?: InputMaybe; -}; - - -export type FactoryTokensArgs = { - first?: InputMaybe; - orderBy?: InputMaybe; - orderDirection?: InputMaybe; - skip?: InputMaybe; - where?: InputMaybe; -}; - -export type Factory_Filter = { - /** Filter for the block changed event. */ - _change_block?: InputMaybe; - and?: InputMaybe>>; - dayData_?: InputMaybe; - hourData_?: InputMaybe; - id?: InputMaybe; - id_gt?: InputMaybe; - id_gte?: InputMaybe; - id_in?: InputMaybe>; - id_lt?: InputMaybe; - id_lte?: InputMaybe; - id_not?: InputMaybe; - id_not_in?: InputMaybe>; - liquidityETH?: InputMaybe; - liquidityETH_gt?: InputMaybe; - liquidityETH_gte?: InputMaybe; - liquidityETH_in?: InputMaybe>; - liquidityETH_lt?: InputMaybe; - liquidityETH_lte?: InputMaybe; - liquidityETH_not?: InputMaybe; - liquidityETH_not_in?: InputMaybe>; - liquidityUSD?: InputMaybe; - liquidityUSD_gt?: InputMaybe; - liquidityUSD_gte?: InputMaybe; - liquidityUSD_in?: InputMaybe>; - liquidityUSD_lt?: InputMaybe; - liquidityUSD_lte?: InputMaybe; - liquidityUSD_not?: InputMaybe; - liquidityUSD_not_in?: InputMaybe>; - or?: InputMaybe>>; - pairCount?: InputMaybe; - pairCount_gt?: InputMaybe; - pairCount_gte?: InputMaybe; - pairCount_in?: InputMaybe>; - pairCount_lt?: InputMaybe; - pairCount_lte?: InputMaybe; - pairCount_not?: InputMaybe; - pairCount_not_in?: InputMaybe>; - pairs_?: InputMaybe; - tokenCount?: InputMaybe; - tokenCount_gt?: InputMaybe; - tokenCount_gte?: InputMaybe; - tokenCount_in?: InputMaybe>; - tokenCount_lt?: InputMaybe; - tokenCount_lte?: InputMaybe; - tokenCount_not?: InputMaybe; - tokenCount_not_in?: InputMaybe>; - tokens_?: InputMaybe; - txCount?: InputMaybe; - txCount_gt?: InputMaybe; - txCount_gte?: InputMaybe; - txCount_in?: InputMaybe>; - txCount_lt?: InputMaybe; - txCount_lte?: InputMaybe; - txCount_not?: InputMaybe; - txCount_not_in?: InputMaybe>; - untrackedVolumeUSD?: InputMaybe; - untrackedVolumeUSD_gt?: InputMaybe; - untrackedVolumeUSD_gte?: InputMaybe; - untrackedVolumeUSD_in?: InputMaybe>; - untrackedVolumeUSD_lt?: InputMaybe; - untrackedVolumeUSD_lte?: InputMaybe; - untrackedVolumeUSD_not?: InputMaybe; - untrackedVolumeUSD_not_in?: InputMaybe>; - userCount?: InputMaybe; - userCount_gt?: InputMaybe; - userCount_gte?: InputMaybe; - userCount_in?: InputMaybe>; - userCount_lt?: InputMaybe; - userCount_lte?: InputMaybe; - userCount_not?: InputMaybe; - userCount_not_in?: InputMaybe>; - volumeETH?: InputMaybe; - volumeETH_gt?: InputMaybe; - volumeETH_gte?: InputMaybe; - volumeETH_in?: InputMaybe>; - volumeETH_lt?: InputMaybe; - volumeETH_lte?: InputMaybe; - volumeETH_not?: InputMaybe; - volumeETH_not_in?: InputMaybe>; - volumeUSD?: InputMaybe; - volumeUSD_gt?: InputMaybe; - volumeUSD_gte?: InputMaybe; - volumeUSD_in?: InputMaybe>; - volumeUSD_lt?: InputMaybe; - volumeUSD_lte?: InputMaybe; - volumeUSD_not?: InputMaybe; - volumeUSD_not_in?: InputMaybe>; -}; - -export type Factory_OrderBy = - | 'dayData' - | 'hourData' - | 'id' - | 'liquidityETH' - | 'liquidityUSD' - | 'pairCount' - | 'pairs' - | 'tokenCount' - | 'tokens' - | 'txCount' - | 'untrackedVolumeUSD' - | 'userCount' - | 'volumeETH' - | 'volumeUSD' - | '%future added value'; - -export type HourData = { - __typename?: 'HourData'; - date: Scalars['Int']['output']; - factory: Factory; - id: Scalars['ID']['output']; - liquidityETH: Scalars['BigDecimal']['output']; - liquidityUSD: Scalars['BigDecimal']['output']; - txCount: Scalars['BigInt']['output']; - untrackedVolume: Scalars['BigDecimal']['output']; - volumeETH: Scalars['BigDecimal']['output']; - volumeUSD: Scalars['BigDecimal']['output']; -}; - -export type HourData_Filter = { - /** Filter for the block changed event. */ - _change_block?: InputMaybe; - and?: InputMaybe>>; - date?: InputMaybe; - date_gt?: InputMaybe; - date_gte?: InputMaybe; - date_in?: InputMaybe>; - date_lt?: InputMaybe; - date_lte?: InputMaybe; - date_not?: InputMaybe; - date_not_in?: InputMaybe>; - factory?: InputMaybe; - factory_?: InputMaybe; - factory_contains?: InputMaybe; - factory_contains_nocase?: InputMaybe; - factory_ends_with?: InputMaybe; - factory_ends_with_nocase?: InputMaybe; - factory_gt?: InputMaybe; - factory_gte?: InputMaybe; - factory_in?: InputMaybe>; - factory_lt?: InputMaybe; - factory_lte?: InputMaybe; - factory_not?: InputMaybe; - factory_not_contains?: InputMaybe; - factory_not_contains_nocase?: InputMaybe; - factory_not_ends_with?: InputMaybe; - factory_not_ends_with_nocase?: InputMaybe; - factory_not_in?: InputMaybe>; - factory_not_starts_with?: InputMaybe; - factory_not_starts_with_nocase?: InputMaybe; - factory_starts_with?: InputMaybe; - factory_starts_with_nocase?: InputMaybe; - id?: InputMaybe; - id_gt?: InputMaybe; - id_gte?: InputMaybe; - id_in?: InputMaybe>; - id_lt?: InputMaybe; - id_lte?: InputMaybe; - id_not?: InputMaybe; - id_not_in?: InputMaybe>; - liquidityETH?: InputMaybe; - liquidityETH_gt?: InputMaybe; - liquidityETH_gte?: InputMaybe; - liquidityETH_in?: InputMaybe>; - liquidityETH_lt?: InputMaybe; - liquidityETH_lte?: InputMaybe; - liquidityETH_not?: InputMaybe; - liquidityETH_not_in?: InputMaybe>; - liquidityUSD?: InputMaybe; - liquidityUSD_gt?: InputMaybe; - liquidityUSD_gte?: InputMaybe; - liquidityUSD_in?: InputMaybe>; - liquidityUSD_lt?: InputMaybe; - liquidityUSD_lte?: InputMaybe; - liquidityUSD_not?: InputMaybe; - liquidityUSD_not_in?: InputMaybe>; - or?: InputMaybe>>; - txCount?: InputMaybe; - txCount_gt?: InputMaybe; - txCount_gte?: InputMaybe; - txCount_in?: InputMaybe>; - txCount_lt?: InputMaybe; - txCount_lte?: InputMaybe; - txCount_not?: InputMaybe; - txCount_not_in?: InputMaybe>; - untrackedVolume?: InputMaybe; - untrackedVolume_gt?: InputMaybe; - untrackedVolume_gte?: InputMaybe; - untrackedVolume_in?: InputMaybe>; - untrackedVolume_lt?: InputMaybe; - untrackedVolume_lte?: InputMaybe; - untrackedVolume_not?: InputMaybe; - untrackedVolume_not_in?: InputMaybe>; - volumeETH?: InputMaybe; - volumeETH_gt?: InputMaybe; - volumeETH_gte?: InputMaybe; - volumeETH_in?: InputMaybe>; - volumeETH_lt?: InputMaybe; - volumeETH_lte?: InputMaybe; - volumeETH_not?: InputMaybe; - volumeETH_not_in?: InputMaybe>; - volumeUSD?: InputMaybe; - volumeUSD_gt?: InputMaybe; - volumeUSD_gte?: InputMaybe; - volumeUSD_in?: InputMaybe>; - volumeUSD_lt?: InputMaybe; - volumeUSD_lte?: InputMaybe; - volumeUSD_not?: InputMaybe; - volumeUSD_not_in?: InputMaybe>; -}; - -export type HourData_OrderBy = - | 'date' - | 'factory' - | 'factory__id' - | 'factory__liquidityETH' - | 'factory__liquidityUSD' - | 'factory__pairCount' - | 'factory__tokenCount' - | 'factory__txCount' - | 'factory__untrackedVolumeUSD' - | 'factory__userCount' - | 'factory__volumeETH' - | 'factory__volumeUSD' - | 'id' - | 'liquidityETH' - | 'liquidityUSD' - | 'txCount' - | 'untrackedVolume' - | 'volumeETH' - | 'volumeUSD' - | '%future added value'; - export type LiquidityPosition = { __typename?: 'LiquidityPosition'; - block: Scalars['Int']['output']; + historicalSnapshots: Array>; id: Scalars['ID']['output']; liquidityTokenBalance: Scalars['BigDecimal']['output']; pair: Pair; - snapshots: Array>; - timestamp: Scalars['Int']['output']; user: User; }; -export type LiquidityPositionSnapshotsArgs = { +export type LiquidityPositionHistoricalSnapshotsArgs = { first?: InputMaybe; orderBy?: InputMaybe; orderDirection?: InputMaybe; @@ -724,6 +307,7 @@ export type LiquidityPositionSnapshot = { timestamp: Scalars['Int']['output']; token0PriceUSD: Scalars['BigDecimal']['output']; token1PriceUSD: Scalars['BigDecimal']['output']; + transaction: Transaction; user: User; }; @@ -854,6 +438,27 @@ export type LiquidityPositionSnapshot_Filter = { token1PriceUSD_lte?: InputMaybe; token1PriceUSD_not?: InputMaybe; token1PriceUSD_not_in?: InputMaybe>; + transaction?: InputMaybe; + transaction_?: InputMaybe; + transaction_contains?: InputMaybe; + transaction_contains_nocase?: InputMaybe; + transaction_ends_with?: InputMaybe; + transaction_ends_with_nocase?: InputMaybe; + transaction_gt?: InputMaybe; + transaction_gte?: InputMaybe; + transaction_in?: InputMaybe>; + transaction_lt?: InputMaybe; + transaction_lte?: InputMaybe; + transaction_not?: InputMaybe; + transaction_not_contains?: InputMaybe; + transaction_not_contains_nocase?: InputMaybe; + transaction_not_ends_with?: InputMaybe; + transaction_not_ends_with_nocase?: InputMaybe; + transaction_not_in?: InputMaybe>; + transaction_not_starts_with?: InputMaybe; + transaction_not_starts_with_nocase?: InputMaybe; + transaction_starts_with?: InputMaybe; + transaction_starts_with_nocase?: InputMaybe; user?: InputMaybe; user_?: InputMaybe; user_contains?: InputMaybe; @@ -881,22 +486,19 @@ export type LiquidityPositionSnapshot_OrderBy = | 'block' | 'id' | 'liquidityPosition' - | 'liquidityPosition__block' | 'liquidityPosition__id' | 'liquidityPosition__liquidityTokenBalance' - | 'liquidityPosition__timestamp' | 'liquidityTokenBalance' | 'liquidityTokenTotalSupply' | 'pair' - | 'pair__block' + | 'pair__createdAtBlockNumber' + | 'pair__createdAtTimestamp' | 'pair__id' | 'pair__liquidityProviderCount' - | 'pair__name' | 'pair__reserve0' | 'pair__reserve1' | 'pair__reserveETH' | 'pair__reserveUSD' - | 'pair__timestamp' | 'pair__token0Price' | 'pair__token1Price' | 'pair__totalSupply' @@ -912,22 +514,22 @@ export type LiquidityPositionSnapshot_OrderBy = | 'timestamp' | 'token0PriceUSD' | 'token1PriceUSD' + | 'transaction' + | 'transaction__blockNumber' + | 'transaction__gasPrice' + | 'transaction__gasUsed' + | 'transaction__id' + | 'transaction__timestamp' | 'user' | 'user__id' + | 'user__usdSwapped' | '%future added value'; export type LiquidityPosition_Filter = { /** Filter for the block changed event. */ _change_block?: InputMaybe; and?: InputMaybe>>; - block?: InputMaybe; - block_gt?: InputMaybe; - block_gte?: InputMaybe; - block_in?: InputMaybe>; - block_lt?: InputMaybe; - block_lte?: InputMaybe; - block_not?: InputMaybe; - block_not_in?: InputMaybe>; + historicalSnapshots_?: InputMaybe; id?: InputMaybe; id_gt?: InputMaybe; id_gte?: InputMaybe; @@ -966,15 +568,6 @@ export type LiquidityPosition_Filter = { pair_not_starts_with_nocase?: InputMaybe; pair_starts_with?: InputMaybe; pair_starts_with_nocase?: InputMaybe; - snapshots_?: InputMaybe; - timestamp?: InputMaybe; - timestamp_gt?: InputMaybe; - timestamp_gte?: InputMaybe; - timestamp_in?: InputMaybe>; - timestamp_lt?: InputMaybe; - timestamp_lte?: InputMaybe; - timestamp_not?: InputMaybe; - timestamp_not_in?: InputMaybe>; user?: InputMaybe; user_?: InputMaybe; user_contains?: InputMaybe; @@ -999,19 +592,18 @@ export type LiquidityPosition_Filter = { }; export type LiquidityPosition_OrderBy = - | 'block' + | 'historicalSnapshots' | 'id' | 'liquidityTokenBalance' | 'pair' - | 'pair__block' + | 'pair__createdAtBlockNumber' + | 'pair__createdAtTimestamp' | 'pair__id' | 'pair__liquidityProviderCount' - | 'pair__name' | 'pair__reserve0' | 'pair__reserve1' | 'pair__reserveETH' | 'pair__reserveUSD' - | 'pair__timestamp' | 'pair__token0Price' | 'pair__token1Price' | 'pair__totalSupply' @@ -1021,10 +613,9 @@ export type LiquidityPosition_OrderBy = | 'pair__volumeToken0' | 'pair__volumeToken1' | 'pair__volumeUSD' - | 'snapshots' - | 'timestamp' | 'user' | 'user__id' + | 'user__usdSwapped' | '%future added value'; export type Mint = { @@ -1197,15 +788,14 @@ export type Mint_OrderBy = | 'liquidity' | 'logIndex' | 'pair' - | 'pair__block' + | 'pair__createdAtBlockNumber' + | 'pair__createdAtTimestamp' | 'pair__id' | 'pair__liquidityProviderCount' - | 'pair__name' | 'pair__reserve0' | 'pair__reserve1' | 'pair__reserveETH' | 'pair__reserveUSD' - | 'pair__timestamp' | 'pair__token0Price' | 'pair__token1Price' | 'pair__totalSupply' @@ -1220,6 +810,8 @@ export type Mint_OrderBy = | 'to' | 'transaction' | 'transaction__blockNumber' + | 'transaction__gasPrice' + | 'transaction__gasUsed' | 'transaction__id' | 'transaction__timestamp' | '%future added value'; @@ -1232,23 +824,14 @@ export type OrderDirection = export type Pair = { __typename?: 'Pair'; - block: Scalars['BigInt']['output']; - burns: Array; - dayData: Array; - factory: Factory; - hourData: Array; + createdAtBlockNumber: Scalars['BigInt']['output']; + createdAtTimestamp: Scalars['BigInt']['output']; id: Scalars['ID']['output']; - liquidityPositionSnapshots: Array; - liquidityPositions: Array; liquidityProviderCount: Scalars['BigInt']['output']; - mints: Array; - name: Scalars['String']['output']; reserve0: Scalars['BigDecimal']['output']; reserve1: Scalars['BigDecimal']['output']; reserveETH: Scalars['BigDecimal']['output']; reserveUSD: Scalars['BigDecimal']['output']; - swaps: Array; - timestamp: Scalars['BigInt']['output']; token0: Token; token0Price: Scalars['BigDecimal']['output']; token1: Token; @@ -1262,90 +845,59 @@ export type Pair = { volumeUSD: Scalars['BigDecimal']['output']; }; - -export type PairBurnsArgs = { - first?: InputMaybe; - orderBy?: InputMaybe; - orderDirection?: InputMaybe; - skip?: InputMaybe; - where?: InputMaybe; -}; - - -export type PairDayDataArgs = { - first?: InputMaybe; - orderBy?: InputMaybe; - orderDirection?: InputMaybe; - skip?: InputMaybe; - where?: InputMaybe; -}; - - -export type PairHourDataArgs = { - first?: InputMaybe; - orderBy?: InputMaybe; - orderDirection?: InputMaybe; - skip?: InputMaybe; - where?: InputMaybe; -}; - - -export type PairLiquidityPositionSnapshotsArgs = { - first?: InputMaybe; - orderBy?: InputMaybe; - orderDirection?: InputMaybe; - skip?: InputMaybe; - where?: InputMaybe; -}; - - -export type PairLiquidityPositionsArgs = { - first?: InputMaybe; - orderBy?: InputMaybe; - orderDirection?: InputMaybe; - skip?: InputMaybe; - where?: InputMaybe; -}; - - -export type PairMintsArgs = { - first?: InputMaybe; - orderBy?: InputMaybe; - orderDirection?: InputMaybe; - skip?: InputMaybe; - where?: InputMaybe; -}; - - -export type PairSwapsArgs = { - first?: InputMaybe; - orderBy?: InputMaybe; - orderDirection?: InputMaybe; - skip?: InputMaybe; - where?: InputMaybe; -}; - -export type PairDayData = { - __typename?: 'PairDayData'; - date: Scalars['Int']['output']; - id: Scalars['ID']['output']; - pair: Pair; - reserve0: Scalars['BigDecimal']['output']; - reserve1: Scalars['BigDecimal']['output']; - reserveUSD: Scalars['BigDecimal']['output']; - token0: Token; - token1: Token; - totalSupply: Scalars['BigDecimal']['output']; - txCount: Scalars['BigInt']['output']; - volumeToken0: Scalars['BigDecimal']['output']; - volumeToken1: Scalars['BigDecimal']['output']; - volumeUSD: Scalars['BigDecimal']['output']; +export type PairDayData = { + __typename?: 'PairDayData'; + dailyTxns: Scalars['BigInt']['output']; + dailyVolumeToken0: Scalars['BigDecimal']['output']; + dailyVolumeToken1: Scalars['BigDecimal']['output']; + dailyVolumeUSD: Scalars['BigDecimal']['output']; + date: Scalars['Int']['output']; + id: Scalars['ID']['output']; + pairAddress: Scalars['Bytes']['output']; + reserve0: Scalars['BigDecimal']['output']; + reserve1: Scalars['BigDecimal']['output']; + reserveUSD: Scalars['BigDecimal']['output']; + token0: Token; + token1: Token; + totalSupply: Scalars['BigDecimal']['output']; }; export type PairDayData_Filter = { /** Filter for the block changed event. */ _change_block?: InputMaybe; and?: InputMaybe>>; + dailyTxns?: InputMaybe; + dailyTxns_gt?: InputMaybe; + dailyTxns_gte?: InputMaybe; + dailyTxns_in?: InputMaybe>; + dailyTxns_lt?: InputMaybe; + dailyTxns_lte?: InputMaybe; + dailyTxns_not?: InputMaybe; + dailyTxns_not_in?: InputMaybe>; + dailyVolumeToken0?: InputMaybe; + dailyVolumeToken0_gt?: InputMaybe; + dailyVolumeToken0_gte?: InputMaybe; + dailyVolumeToken0_in?: InputMaybe>; + dailyVolumeToken0_lt?: InputMaybe; + dailyVolumeToken0_lte?: InputMaybe; + dailyVolumeToken0_not?: InputMaybe; + dailyVolumeToken0_not_in?: InputMaybe>; + dailyVolumeToken1?: InputMaybe; + dailyVolumeToken1_gt?: InputMaybe; + dailyVolumeToken1_gte?: InputMaybe; + dailyVolumeToken1_in?: InputMaybe>; + dailyVolumeToken1_lt?: InputMaybe; + dailyVolumeToken1_lte?: InputMaybe; + dailyVolumeToken1_not?: InputMaybe; + dailyVolumeToken1_not_in?: InputMaybe>; + dailyVolumeUSD?: InputMaybe; + dailyVolumeUSD_gt?: InputMaybe; + dailyVolumeUSD_gte?: InputMaybe; + dailyVolumeUSD_in?: InputMaybe>; + dailyVolumeUSD_lt?: InputMaybe; + dailyVolumeUSD_lte?: InputMaybe; + dailyVolumeUSD_not?: InputMaybe; + dailyVolumeUSD_not_in?: InputMaybe>; date?: InputMaybe; date_gt?: InputMaybe; date_gte?: InputMaybe; @@ -1363,27 +915,16 @@ export type PairDayData_Filter = { id_not?: InputMaybe; id_not_in?: InputMaybe>; or?: InputMaybe>>; - pair?: InputMaybe; - pair_?: InputMaybe; - pair_contains?: InputMaybe; - pair_contains_nocase?: InputMaybe; - pair_ends_with?: InputMaybe; - pair_ends_with_nocase?: InputMaybe; - pair_gt?: InputMaybe; - pair_gte?: InputMaybe; - pair_in?: InputMaybe>; - pair_lt?: InputMaybe; - pair_lte?: InputMaybe; - pair_not?: InputMaybe; - pair_not_contains?: InputMaybe; - pair_not_contains_nocase?: InputMaybe; - pair_not_ends_with?: InputMaybe; - pair_not_ends_with_nocase?: InputMaybe; - pair_not_in?: InputMaybe>; - pair_not_starts_with?: InputMaybe; - pair_not_starts_with_nocase?: InputMaybe; - pair_starts_with?: InputMaybe; - pair_starts_with_nocase?: InputMaybe; + pairAddress?: InputMaybe; + pairAddress_contains?: InputMaybe; + pairAddress_gt?: InputMaybe; + pairAddress_gte?: InputMaybe; + pairAddress_in?: InputMaybe>; + pairAddress_lt?: InputMaybe; + pairAddress_lte?: InputMaybe; + pairAddress_not?: InputMaybe; + pairAddress_not_contains?: InputMaybe; + pairAddress_not_in?: InputMaybe>; reserve0?: InputMaybe; reserve0_gt?: InputMaybe; reserve0_gte?: InputMaybe; @@ -1458,62 +999,16 @@ export type PairDayData_Filter = { totalSupply_lte?: InputMaybe; totalSupply_not?: InputMaybe; totalSupply_not_in?: InputMaybe>; - txCount?: InputMaybe; - txCount_gt?: InputMaybe; - txCount_gte?: InputMaybe; - txCount_in?: InputMaybe>; - txCount_lt?: InputMaybe; - txCount_lte?: InputMaybe; - txCount_not?: InputMaybe; - txCount_not_in?: InputMaybe>; - volumeToken0?: InputMaybe; - volumeToken0_gt?: InputMaybe; - volumeToken0_gte?: InputMaybe; - volumeToken0_in?: InputMaybe>; - volumeToken0_lt?: InputMaybe; - volumeToken0_lte?: InputMaybe; - volumeToken0_not?: InputMaybe; - volumeToken0_not_in?: InputMaybe>; - volumeToken1?: InputMaybe; - volumeToken1_gt?: InputMaybe; - volumeToken1_gte?: InputMaybe; - volumeToken1_in?: InputMaybe>; - volumeToken1_lt?: InputMaybe; - volumeToken1_lte?: InputMaybe; - volumeToken1_not?: InputMaybe; - volumeToken1_not_in?: InputMaybe>; - volumeUSD?: InputMaybe; - volumeUSD_gt?: InputMaybe; - volumeUSD_gte?: InputMaybe; - volumeUSD_in?: InputMaybe>; - volumeUSD_lt?: InputMaybe; - volumeUSD_lte?: InputMaybe; - volumeUSD_not?: InputMaybe; - volumeUSD_not_in?: InputMaybe>; }; export type PairDayData_OrderBy = + | 'dailyTxns' + | 'dailyVolumeToken0' + | 'dailyVolumeToken1' + | 'dailyVolumeUSD' | 'date' | 'id' - | 'pair' - | 'pair__block' - | 'pair__id' - | 'pair__liquidityProviderCount' - | 'pair__name' - | 'pair__reserve0' - | 'pair__reserve1' - | 'pair__reserveETH' - | 'pair__reserveUSD' - | 'pair__timestamp' - | 'pair__token0Price' - | 'pair__token1Price' - | 'pair__totalSupply' - | 'pair__trackedReserveETH' - | 'pair__txCount' - | 'pair__untrackedVolumeUSD' - | 'pair__volumeToken0' - | 'pair__volumeToken1' - | 'pair__volumeUSD' + | 'pairAddress' | 'reserve0' | 'reserve1' | 'reserveUSD' @@ -1521,59 +1016,87 @@ export type PairDayData_OrderBy = | 'token0__decimals' | 'token0__derivedETH' | 'token0__id' - | 'token0__liquidity' | 'token0__name' | 'token0__symbol' + | 'token0__totalLiquidity' | 'token0__totalSupply' + | 'token0__tradeVolume' + | 'token0__tradeVolumeUSD' | 'token0__txCount' | 'token0__untrackedVolumeUSD' - | 'token0__volume' - | 'token0__volumeUSD' | 'token1' | 'token1__decimals' | 'token1__derivedETH' | 'token1__id' - | 'token1__liquidity' | 'token1__name' | 'token1__symbol' + | 'token1__totalLiquidity' | 'token1__totalSupply' + | 'token1__tradeVolume' + | 'token1__tradeVolumeUSD' | 'token1__txCount' | 'token1__untrackedVolumeUSD' - | 'token1__volume' - | 'token1__volumeUSD' | 'totalSupply' - | 'txCount' - | 'volumeToken0' - | 'volumeToken1' - | 'volumeUSD' | '%future added value'; export type PairHourData = { __typename?: 'PairHourData'; - date: Scalars['Int']['output']; + hourStartUnix: Scalars['Int']['output']; + hourlyTxns: Scalars['BigInt']['output']; + hourlyVolumeToken0: Scalars['BigDecimal']['output']; + hourlyVolumeToken1: Scalars['BigDecimal']['output']; + hourlyVolumeUSD: Scalars['BigDecimal']['output']; id: Scalars['ID']['output']; pair: Pair; reserve0: Scalars['BigDecimal']['output']; reserve1: Scalars['BigDecimal']['output']; reserveUSD: Scalars['BigDecimal']['output']; - txCount: Scalars['BigInt']['output']; - volumeToken0: Scalars['BigDecimal']['output']; - volumeToken1: Scalars['BigDecimal']['output']; - volumeUSD: Scalars['BigDecimal']['output']; }; export type PairHourData_Filter = { /** Filter for the block changed event. */ _change_block?: InputMaybe; and?: InputMaybe>>; - date?: InputMaybe; - date_gt?: InputMaybe; - date_gte?: InputMaybe; - date_in?: InputMaybe>; - date_lt?: InputMaybe; - date_lte?: InputMaybe; - date_not?: InputMaybe; - date_not_in?: InputMaybe>; + hourStartUnix?: InputMaybe; + hourStartUnix_gt?: InputMaybe; + hourStartUnix_gte?: InputMaybe; + hourStartUnix_in?: InputMaybe>; + hourStartUnix_lt?: InputMaybe; + hourStartUnix_lte?: InputMaybe; + hourStartUnix_not?: InputMaybe; + hourStartUnix_not_in?: InputMaybe>; + hourlyTxns?: InputMaybe; + hourlyTxns_gt?: InputMaybe; + hourlyTxns_gte?: InputMaybe; + hourlyTxns_in?: InputMaybe>; + hourlyTxns_lt?: InputMaybe; + hourlyTxns_lte?: InputMaybe; + hourlyTxns_not?: InputMaybe; + hourlyTxns_not_in?: InputMaybe>; + hourlyVolumeToken0?: InputMaybe; + hourlyVolumeToken0_gt?: InputMaybe; + hourlyVolumeToken0_gte?: InputMaybe; + hourlyVolumeToken0_in?: InputMaybe>; + hourlyVolumeToken0_lt?: InputMaybe; + hourlyVolumeToken0_lte?: InputMaybe; + hourlyVolumeToken0_not?: InputMaybe; + hourlyVolumeToken0_not_in?: InputMaybe>; + hourlyVolumeToken1?: InputMaybe; + hourlyVolumeToken1_gt?: InputMaybe; + hourlyVolumeToken1_gte?: InputMaybe; + hourlyVolumeToken1_in?: InputMaybe>; + hourlyVolumeToken1_lt?: InputMaybe; + hourlyVolumeToken1_lte?: InputMaybe; + hourlyVolumeToken1_not?: InputMaybe; + hourlyVolumeToken1_not_in?: InputMaybe>; + hourlyVolumeUSD?: InputMaybe; + hourlyVolumeUSD_gt?: InputMaybe; + hourlyVolumeUSD_gte?: InputMaybe; + hourlyVolumeUSD_in?: InputMaybe>; + hourlyVolumeUSD_lt?: InputMaybe; + hourlyVolumeUSD_lte?: InputMaybe; + hourlyVolumeUSD_not?: InputMaybe; + hourlyVolumeUSD_not_in?: InputMaybe>; id?: InputMaybe; id_gt?: InputMaybe; id_gte?: InputMaybe; @@ -1628,53 +1151,24 @@ export type PairHourData_Filter = { reserveUSD_lte?: InputMaybe; reserveUSD_not?: InputMaybe; reserveUSD_not_in?: InputMaybe>; - txCount?: InputMaybe; - txCount_gt?: InputMaybe; - txCount_gte?: InputMaybe; - txCount_in?: InputMaybe>; - txCount_lt?: InputMaybe; - txCount_lte?: InputMaybe; - txCount_not?: InputMaybe; - txCount_not_in?: InputMaybe>; - volumeToken0?: InputMaybe; - volumeToken0_gt?: InputMaybe; - volumeToken0_gte?: InputMaybe; - volumeToken0_in?: InputMaybe>; - volumeToken0_lt?: InputMaybe; - volumeToken0_lte?: InputMaybe; - volumeToken0_not?: InputMaybe; - volumeToken0_not_in?: InputMaybe>; - volumeToken1?: InputMaybe; - volumeToken1_gt?: InputMaybe; - volumeToken1_gte?: InputMaybe; - volumeToken1_in?: InputMaybe>; - volumeToken1_lt?: InputMaybe; - volumeToken1_lte?: InputMaybe; - volumeToken1_not?: InputMaybe; - volumeToken1_not_in?: InputMaybe>; - volumeUSD?: InputMaybe; - volumeUSD_gt?: InputMaybe; - volumeUSD_gte?: InputMaybe; - volumeUSD_in?: InputMaybe>; - volumeUSD_lt?: InputMaybe; - volumeUSD_lte?: InputMaybe; - volumeUSD_not?: InputMaybe; - volumeUSD_not_in?: InputMaybe>; }; export type PairHourData_OrderBy = - | 'date' + | 'hourStartUnix' + | 'hourlyTxns' + | 'hourlyVolumeToken0' + | 'hourlyVolumeToken1' + | 'hourlyVolumeUSD' | 'id' | 'pair' - | 'pair__block' + | 'pair__createdAtBlockNumber' + | 'pair__createdAtTimestamp' | 'pair__id' | 'pair__liquidityProviderCount' - | 'pair__name' | 'pair__reserve0' | 'pair__reserve1' | 'pair__reserveETH' | 'pair__reserveUSD' - | 'pair__timestamp' | 'pair__token0Price' | 'pair__token1Price' | 'pair__totalSupply' @@ -1687,48 +1181,28 @@ export type PairHourData_OrderBy = | 'reserve0' | 'reserve1' | 'reserveUSD' - | 'txCount' - | 'volumeToken0' - | 'volumeToken1' - | 'volumeUSD' | '%future added value'; export type Pair_Filter = { /** Filter for the block changed event. */ _change_block?: InputMaybe; and?: InputMaybe>>; - block?: InputMaybe; - block_gt?: InputMaybe; - block_gte?: InputMaybe; - block_in?: InputMaybe>; - block_lt?: InputMaybe; - block_lte?: InputMaybe; - block_not?: InputMaybe; - block_not_in?: InputMaybe>; - burns_?: InputMaybe; - dayData_?: InputMaybe; - factory?: InputMaybe; - factory_?: InputMaybe; - factory_contains?: InputMaybe; - factory_contains_nocase?: InputMaybe; - factory_ends_with?: InputMaybe; - factory_ends_with_nocase?: InputMaybe; - factory_gt?: InputMaybe; - factory_gte?: InputMaybe; - factory_in?: InputMaybe>; - factory_lt?: InputMaybe; - factory_lte?: InputMaybe; - factory_not?: InputMaybe; - factory_not_contains?: InputMaybe; - factory_not_contains_nocase?: InputMaybe; - factory_not_ends_with?: InputMaybe; - factory_not_ends_with_nocase?: InputMaybe; - factory_not_in?: InputMaybe>; - factory_not_starts_with?: InputMaybe; - factory_not_starts_with_nocase?: InputMaybe; - factory_starts_with?: InputMaybe; - factory_starts_with_nocase?: InputMaybe; - hourData_?: InputMaybe; + createdAtBlockNumber?: InputMaybe; + createdAtBlockNumber_gt?: InputMaybe; + createdAtBlockNumber_gte?: InputMaybe; + createdAtBlockNumber_in?: InputMaybe>; + createdAtBlockNumber_lt?: InputMaybe; + createdAtBlockNumber_lte?: InputMaybe; + createdAtBlockNumber_not?: InputMaybe; + createdAtBlockNumber_not_in?: InputMaybe>; + createdAtTimestamp?: InputMaybe; + createdAtTimestamp_gt?: InputMaybe; + createdAtTimestamp_gte?: InputMaybe; + createdAtTimestamp_in?: InputMaybe>; + createdAtTimestamp_lt?: InputMaybe; + createdAtTimestamp_lte?: InputMaybe; + createdAtTimestamp_not?: InputMaybe; + createdAtTimestamp_not_in?: InputMaybe>; id?: InputMaybe; id_gt?: InputMaybe; id_gte?: InputMaybe; @@ -1737,8 +1211,6 @@ export type Pair_Filter = { id_lte?: InputMaybe; id_not?: InputMaybe; id_not_in?: InputMaybe>; - liquidityPositionSnapshots_?: InputMaybe; - liquidityPositions_?: InputMaybe; liquidityProviderCount?: InputMaybe; liquidityProviderCount_gt?: InputMaybe; liquidityProviderCount_gte?: InputMaybe; @@ -1747,27 +1219,6 @@ export type Pair_Filter = { liquidityProviderCount_lte?: InputMaybe; liquidityProviderCount_not?: InputMaybe; liquidityProviderCount_not_in?: InputMaybe>; - mints_?: InputMaybe; - name?: InputMaybe; - name_contains?: InputMaybe; - name_contains_nocase?: InputMaybe; - name_ends_with?: InputMaybe; - name_ends_with_nocase?: InputMaybe; - name_gt?: InputMaybe; - name_gte?: InputMaybe; - name_in?: InputMaybe>; - name_lt?: InputMaybe; - name_lte?: InputMaybe; - name_not?: InputMaybe; - name_not_contains?: InputMaybe; - name_not_contains_nocase?: InputMaybe; - name_not_ends_with?: InputMaybe; - name_not_ends_with_nocase?: InputMaybe; - name_not_in?: InputMaybe>; - name_not_starts_with?: InputMaybe; - name_not_starts_with_nocase?: InputMaybe; - name_starts_with?: InputMaybe; - name_starts_with_nocase?: InputMaybe; or?: InputMaybe>>; reserve0?: InputMaybe; reserve0_gt?: InputMaybe; @@ -1801,15 +1252,6 @@ export type Pair_Filter = { reserveUSD_lte?: InputMaybe; reserveUSD_not?: InputMaybe; reserveUSD_not_in?: InputMaybe>; - swaps_?: InputMaybe; - timestamp?: InputMaybe; - timestamp_gt?: InputMaybe; - timestamp_gte?: InputMaybe; - timestamp_in?: InputMaybe>; - timestamp_lt?: InputMaybe; - timestamp_lte?: InputMaybe; - timestamp_not?: InputMaybe; - timestamp_not_in?: InputMaybe>; token0?: InputMaybe; token0Price?: InputMaybe; token0Price_gt?: InputMaybe; @@ -1927,59 +1369,40 @@ export type Pair_Filter = { }; export type Pair_OrderBy = - | 'block' - | 'burns' - | 'dayData' - | 'factory' - | 'factory__id' - | 'factory__liquidityETH' - | 'factory__liquidityUSD' - | 'factory__pairCount' - | 'factory__tokenCount' - | 'factory__txCount' - | 'factory__untrackedVolumeUSD' - | 'factory__userCount' - | 'factory__volumeETH' - | 'factory__volumeUSD' - | 'hourData' + | 'createdAtBlockNumber' + | 'createdAtTimestamp' | 'id' - | 'liquidityPositionSnapshots' - | 'liquidityPositions' | 'liquidityProviderCount' - | 'mints' - | 'name' | 'reserve0' | 'reserve1' | 'reserveETH' | 'reserveUSD' - | 'swaps' - | 'timestamp' | 'token0' | 'token0Price' | 'token0__decimals' | 'token0__derivedETH' | 'token0__id' - | 'token0__liquidity' | 'token0__name' | 'token0__symbol' + | 'token0__totalLiquidity' | 'token0__totalSupply' + | 'token0__tradeVolume' + | 'token0__tradeVolumeUSD' | 'token0__txCount' | 'token0__untrackedVolumeUSD' - | 'token0__volume' - | 'token0__volumeUSD' | 'token1' | 'token1Price' | 'token1__decimals' | 'token1__derivedETH' | 'token1__id' - | 'token1__liquidity' | 'token1__name' | 'token1__symbol' + | 'token1__totalLiquidity' | 'token1__totalSupply' + | 'token1__tradeVolume' + | 'token1__tradeVolumeUSD' | 'token1__txCount' | 'token1__untrackedVolumeUSD' - | 'token1__volume' - | 'token1__volumeUSD' | 'totalSupply' | 'trackedReserveETH' | 'txCount' @@ -1997,12 +1420,6 @@ export type Query = { bundles: Array; burn?: Maybe; burns: Array; - dayData?: Maybe; - dayDatas: Array; - factories: Array; - factory?: Maybe; - hourData?: Maybe; - hourDatas: Array; liquidityPosition?: Maybe; liquidityPositionSnapshot?: Maybe; liquidityPositionSnapshots: Array; @@ -2020,11 +1437,13 @@ export type Query = { token?: Maybe; tokenDayData?: Maybe; tokenDayDatas: Array; - tokenHourData?: Maybe; - tokenHourDatas: Array; tokens: Array; transaction?: Maybe; transactions: Array; + uniswapDayData?: Maybe; + uniswapDayDatas: Array; + uniswapFactories: Array; + uniswapFactory?: Maybe; user?: Maybe; users: Array; }; @@ -2071,147 +1490,93 @@ export type QueryBurnsArgs = { }; -export type QueryDayDataArgs = { +export type QueryLiquidityPositionArgs = { block?: InputMaybe; id: Scalars['ID']['input']; subgraphError?: _SubgraphErrorPolicy_; }; -export type QueryDayDatasArgs = { +export type QueryLiquidityPositionSnapshotArgs = { block?: InputMaybe; - first?: InputMaybe; - orderBy?: InputMaybe; - orderDirection?: InputMaybe; - skip?: InputMaybe; + id: Scalars['ID']['input']; subgraphError?: _SubgraphErrorPolicy_; - where?: InputMaybe; }; -export type QueryFactoriesArgs = { +export type QueryLiquidityPositionSnapshotsArgs = { block?: InputMaybe; first?: InputMaybe; - orderBy?: InputMaybe; + orderBy?: InputMaybe; orderDirection?: InputMaybe; skip?: InputMaybe; subgraphError?: _SubgraphErrorPolicy_; - where?: InputMaybe; + where?: InputMaybe; }; -export type QueryFactoryArgs = { +export type QueryLiquidityPositionsArgs = { block?: InputMaybe; - id: Scalars['ID']['input']; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; subgraphError?: _SubgraphErrorPolicy_; + where?: InputMaybe; }; -export type QueryHourDataArgs = { +export type QueryMintArgs = { block?: InputMaybe; id: Scalars['ID']['input']; subgraphError?: _SubgraphErrorPolicy_; }; -export type QueryHourDatasArgs = { +export type QueryMintsArgs = { block?: InputMaybe; first?: InputMaybe; - orderBy?: InputMaybe; + orderBy?: InputMaybe; orderDirection?: InputMaybe; skip?: InputMaybe; subgraphError?: _SubgraphErrorPolicy_; - where?: InputMaybe; + where?: InputMaybe; }; -export type QueryLiquidityPositionArgs = { +export type QueryPairArgs = { block?: InputMaybe; id: Scalars['ID']['input']; subgraphError?: _SubgraphErrorPolicy_; }; -export type QueryLiquidityPositionSnapshotArgs = { +export type QueryPairDayDataArgs = { block?: InputMaybe; id: Scalars['ID']['input']; subgraphError?: _SubgraphErrorPolicy_; }; -export type QueryLiquidityPositionSnapshotsArgs = { +export type QueryPairDayDatasArgs = { block?: InputMaybe; first?: InputMaybe; - orderBy?: InputMaybe; + orderBy?: InputMaybe; orderDirection?: InputMaybe; skip?: InputMaybe; subgraphError?: _SubgraphErrorPolicy_; - where?: InputMaybe; + where?: InputMaybe; }; -export type QueryLiquidityPositionsArgs = { +export type QueryPairHourDataArgs = { block?: InputMaybe; - first?: InputMaybe; - orderBy?: InputMaybe; - orderDirection?: InputMaybe; - skip?: InputMaybe; + id: Scalars['ID']['input']; subgraphError?: _SubgraphErrorPolicy_; - where?: InputMaybe; }; -export type QueryMintArgs = { - block?: InputMaybe; - id: Scalars['ID']['input']; - subgraphError?: _SubgraphErrorPolicy_; -}; - - -export type QueryMintsArgs = { - block?: InputMaybe; - first?: InputMaybe; - orderBy?: InputMaybe; - orderDirection?: InputMaybe; - skip?: InputMaybe; - subgraphError?: _SubgraphErrorPolicy_; - where?: InputMaybe; -}; - - -export type QueryPairArgs = { - block?: InputMaybe; - id: Scalars['ID']['input']; - subgraphError?: _SubgraphErrorPolicy_; -}; - - -export type QueryPairDayDataArgs = { - block?: InputMaybe; - id: Scalars['ID']['input']; - subgraphError?: _SubgraphErrorPolicy_; -}; - - -export type QueryPairDayDatasArgs = { - block?: InputMaybe; - first?: InputMaybe; - orderBy?: InputMaybe; - orderDirection?: InputMaybe; - skip?: InputMaybe; - subgraphError?: _SubgraphErrorPolicy_; - where?: InputMaybe; -}; - - -export type QueryPairHourDataArgs = { - block?: InputMaybe; - id: Scalars['ID']['input']; - subgraphError?: _SubgraphErrorPolicy_; -}; - - -export type QueryPairHourDatasArgs = { +export type QueryPairHourDatasArgs = { block?: InputMaybe; first?: InputMaybe; orderBy?: InputMaybe; @@ -2276,50 +1641,68 @@ export type QueryTokenDayDatasArgs = { }; -export type QueryTokenHourDataArgs = { +export type QueryTokensArgs = { block?: InputMaybe; - id: Scalars['ID']['input']; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; subgraphError?: _SubgraphErrorPolicy_; + where?: InputMaybe; }; -export type QueryTokenHourDatasArgs = { +export type QueryTransactionArgs = { block?: InputMaybe; - first?: InputMaybe; - orderBy?: InputMaybe; - orderDirection?: InputMaybe; - skip?: InputMaybe; + id: Scalars['ID']['input']; subgraphError?: _SubgraphErrorPolicy_; - where?: InputMaybe; }; -export type QueryTokensArgs = { +export type QueryTransactionsArgs = { block?: InputMaybe; first?: InputMaybe; - orderBy?: InputMaybe; + orderBy?: InputMaybe; orderDirection?: InputMaybe; skip?: InputMaybe; subgraphError?: _SubgraphErrorPolicy_; - where?: InputMaybe; + where?: InputMaybe; }; -export type QueryTransactionArgs = { +export type QueryUniswapDayDataArgs = { block?: InputMaybe; id: Scalars['ID']['input']; subgraphError?: _SubgraphErrorPolicy_; }; -export type QueryTransactionsArgs = { +export type QueryUniswapDayDatasArgs = { block?: InputMaybe; first?: InputMaybe; - orderBy?: InputMaybe; + orderBy?: InputMaybe; orderDirection?: InputMaybe; skip?: InputMaybe; subgraphError?: _SubgraphErrorPolicy_; - where?: InputMaybe; + where?: InputMaybe; +}; + + +export type QueryUniswapFactoriesArgs = { + block?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; + where?: InputMaybe; +}; + + +export type QueryUniswapFactoryArgs = { + block?: InputMaybe; + id: Scalars['ID']['input']; + subgraphError?: _SubgraphErrorPolicy_; }; @@ -2348,12 +1731,6 @@ export type Subscription = { bundles: Array; burn?: Maybe; burns: Array; - dayData?: Maybe; - dayDatas: Array; - factories: Array; - factory?: Maybe; - hourData?: Maybe; - hourDatas: Array; liquidityPosition?: Maybe; liquidityPositionSnapshot?: Maybe; liquidityPositionSnapshots: Array; @@ -2371,11 +1748,13 @@ export type Subscription = { token?: Maybe; tokenDayData?: Maybe; tokenDayDatas: Array; - tokenHourData?: Maybe; - tokenHourDatas: Array; tokens: Array; transaction?: Maybe; transactions: Array; + uniswapDayData?: Maybe; + uniswapDayDatas: Array; + uniswapFactories: Array; + uniswapFactory?: Maybe; user?: Maybe; users: Array; }; @@ -2422,60 +1801,6 @@ export type SubscriptionBurnsArgs = { }; -export type SubscriptionDayDataArgs = { - block?: InputMaybe; - id: Scalars['ID']['input']; - subgraphError?: _SubgraphErrorPolicy_; -}; - - -export type SubscriptionDayDatasArgs = { - block?: InputMaybe; - first?: InputMaybe; - orderBy?: InputMaybe; - orderDirection?: InputMaybe; - skip?: InputMaybe; - subgraphError?: _SubgraphErrorPolicy_; - where?: InputMaybe; -}; - - -export type SubscriptionFactoriesArgs = { - block?: InputMaybe; - first?: InputMaybe; - orderBy?: InputMaybe; - orderDirection?: InputMaybe; - skip?: InputMaybe; - subgraphError?: _SubgraphErrorPolicy_; - where?: InputMaybe; -}; - - -export type SubscriptionFactoryArgs = { - block?: InputMaybe; - id: Scalars['ID']['input']; - subgraphError?: _SubgraphErrorPolicy_; -}; - - -export type SubscriptionHourDataArgs = { - block?: InputMaybe; - id: Scalars['ID']['input']; - subgraphError?: _SubgraphErrorPolicy_; -}; - - -export type SubscriptionHourDatasArgs = { - block?: InputMaybe; - first?: InputMaybe; - orderBy?: InputMaybe; - orderDirection?: InputMaybe; - skip?: InputMaybe; - subgraphError?: _SubgraphErrorPolicy_; - where?: InputMaybe; -}; - - export type SubscriptionLiquidityPositionArgs = { block?: InputMaybe; id: Scalars['ID']['input']; @@ -2627,50 +1952,68 @@ export type SubscriptionTokenDayDatasArgs = { }; -export type SubscriptionTokenHourDataArgs = { +export type SubscriptionTokensArgs = { block?: InputMaybe; - id: Scalars['ID']['input']; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; subgraphError?: _SubgraphErrorPolicy_; + where?: InputMaybe; }; -export type SubscriptionTokenHourDatasArgs = { +export type SubscriptionTransactionArgs = { block?: InputMaybe; - first?: InputMaybe; - orderBy?: InputMaybe; - orderDirection?: InputMaybe; - skip?: InputMaybe; + id: Scalars['ID']['input']; subgraphError?: _SubgraphErrorPolicy_; - where?: InputMaybe; }; -export type SubscriptionTokensArgs = { +export type SubscriptionTransactionsArgs = { block?: InputMaybe; first?: InputMaybe; - orderBy?: InputMaybe; + orderBy?: InputMaybe; orderDirection?: InputMaybe; skip?: InputMaybe; subgraphError?: _SubgraphErrorPolicy_; - where?: InputMaybe; + where?: InputMaybe; }; -export type SubscriptionTransactionArgs = { +export type SubscriptionUniswapDayDataArgs = { block?: InputMaybe; id: Scalars['ID']['input']; subgraphError?: _SubgraphErrorPolicy_; }; -export type SubscriptionTransactionsArgs = { +export type SubscriptionUniswapDayDatasArgs = { block?: InputMaybe; first?: InputMaybe; - orderBy?: InputMaybe; + orderBy?: InputMaybe; orderDirection?: InputMaybe; skip?: InputMaybe; subgraphError?: _SubgraphErrorPolicy_; - where?: InputMaybe; + where?: InputMaybe; +}; + + +export type SubscriptionUniswapFactoriesArgs = { + block?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; + where?: InputMaybe; +}; + + +export type SubscriptionUniswapFactoryArgs = { + block?: InputMaybe; + id: Scalars['ID']['input']; + subgraphError?: _SubgraphErrorPolicy_; }; @@ -2849,15 +2192,14 @@ export type Swap_OrderBy = | 'id' | 'logIndex' | 'pair' - | 'pair__block' + | 'pair__createdAtBlockNumber' + | 'pair__createdAtTimestamp' | 'pair__id' | 'pair__liquidityProviderCount' - | 'pair__name' | 'pair__reserve0' | 'pair__reserve1' | 'pair__reserveETH' | 'pair__reserveUSD' - | 'pair__timestamp' | 'pair__token0Price' | 'pair__token1Price' | 'pair__totalSupply' @@ -2872,115 +2214,78 @@ export type Swap_OrderBy = | 'to' | 'transaction' | 'transaction__blockNumber' + | 'transaction__gasPrice' + | 'transaction__gasUsed' | 'transaction__id' | 'transaction__timestamp' | '%future added value'; export type Token = { __typename?: 'Token'; - basePairs: Array; - basePairsDayData: Array; - dayData: Array; decimals: Scalars['BigInt']['output']; - derivedETH: Scalars['BigDecimal']['output']; - factory: Factory; - hourData: Array; + derivedETH?: Maybe; id: Scalars['ID']['output']; - liquidity: Scalars['BigDecimal']['output']; name: Scalars['String']['output']; - quotePairs: Array; - quotePairsDayData: Array; symbol: Scalars['String']['output']; + totalLiquidity: Scalars['BigDecimal']['output']; totalSupply: Scalars['BigInt']['output']; + tradeVolume: Scalars['BigDecimal']['output']; + tradeVolumeUSD: Scalars['BigDecimal']['output']; txCount: Scalars['BigInt']['output']; untrackedVolumeUSD: Scalars['BigDecimal']['output']; - volume: Scalars['BigDecimal']['output']; - volumeUSD: Scalars['BigDecimal']['output']; - whitelistPairs: Array; -}; - - -export type TokenBasePairsArgs = { - first?: InputMaybe; - orderBy?: InputMaybe; - orderDirection?: InputMaybe; - skip?: InputMaybe; - where?: InputMaybe; -}; - - -export type TokenBasePairsDayDataArgs = { - first?: InputMaybe; - orderBy?: InputMaybe; - orderDirection?: InputMaybe; - skip?: InputMaybe; - where?: InputMaybe; -}; - - -export type TokenDayDataArgs = { - first?: InputMaybe; - orderBy?: InputMaybe; - orderDirection?: InputMaybe; - skip?: InputMaybe; - where?: InputMaybe; -}; - - -export type TokenHourDataArgs = { - first?: InputMaybe; - orderBy?: InputMaybe; - orderDirection?: InputMaybe; - skip?: InputMaybe; - where?: InputMaybe; -}; - - -export type TokenQuotePairsArgs = { - first?: InputMaybe; - orderBy?: InputMaybe; - orderDirection?: InputMaybe; - skip?: InputMaybe; - where?: InputMaybe; -}; - - -export type TokenQuotePairsDayDataArgs = { - first?: InputMaybe; - orderBy?: InputMaybe; - orderDirection?: InputMaybe; - skip?: InputMaybe; - where?: InputMaybe; -}; - - -export type TokenWhitelistPairsArgs = { - first?: InputMaybe; - orderBy?: InputMaybe; - orderDirection?: InputMaybe; - skip?: InputMaybe; - where?: InputMaybe; }; export type TokenDayData = { __typename?: 'TokenDayData'; + dailyTxns: Scalars['BigInt']['output']; + dailyVolumeETH: Scalars['BigDecimal']['output']; + dailyVolumeToken: Scalars['BigDecimal']['output']; + dailyVolumeUSD: Scalars['BigDecimal']['output']; date: Scalars['Int']['output']; id: Scalars['ID']['output']; - liquidity: Scalars['BigDecimal']['output']; - liquidityETH: Scalars['BigDecimal']['output']; - liquidityUSD: Scalars['BigDecimal']['output']; priceUSD: Scalars['BigDecimal']['output']; token: Token; - txCount: Scalars['BigInt']['output']; - volume: Scalars['BigDecimal']['output']; - volumeETH: Scalars['BigDecimal']['output']; - volumeUSD: Scalars['BigDecimal']['output']; + totalLiquidityETH: Scalars['BigDecimal']['output']; + totalLiquidityToken: Scalars['BigDecimal']['output']; + totalLiquidityUSD: Scalars['BigDecimal']['output']; }; export type TokenDayData_Filter = { /** Filter for the block changed event. */ _change_block?: InputMaybe; and?: InputMaybe>>; + dailyTxns?: InputMaybe; + dailyTxns_gt?: InputMaybe; + dailyTxns_gte?: InputMaybe; + dailyTxns_in?: InputMaybe>; + dailyTxns_lt?: InputMaybe; + dailyTxns_lte?: InputMaybe; + dailyTxns_not?: InputMaybe; + dailyTxns_not_in?: InputMaybe>; + dailyVolumeETH?: InputMaybe; + dailyVolumeETH_gt?: InputMaybe; + dailyVolumeETH_gte?: InputMaybe; + dailyVolumeETH_in?: InputMaybe>; + dailyVolumeETH_lt?: InputMaybe; + dailyVolumeETH_lte?: InputMaybe; + dailyVolumeETH_not?: InputMaybe; + dailyVolumeETH_not_in?: InputMaybe>; + dailyVolumeToken?: InputMaybe; + dailyVolumeToken_gt?: InputMaybe; + dailyVolumeToken_gte?: InputMaybe; + dailyVolumeToken_in?: InputMaybe>; + dailyVolumeToken_lt?: InputMaybe; + dailyVolumeToken_lte?: InputMaybe; + dailyVolumeToken_not?: InputMaybe; + dailyVolumeToken_not_in?: InputMaybe>; + dailyVolumeUSD?: InputMaybe; + dailyVolumeUSD_gt?: InputMaybe; + dailyVolumeUSD_gte?: InputMaybe; + dailyVolumeUSD_in?: InputMaybe>; + dailyVolumeUSD_lt?: InputMaybe; + dailyVolumeUSD_lte?: InputMaybe; + dailyVolumeUSD_not?: InputMaybe; + dailyVolumeUSD_not_in?: InputMaybe>; date?: InputMaybe; date_gt?: InputMaybe; date_gte?: InputMaybe; @@ -2997,30 +2302,6 @@ export type TokenDayData_Filter = { id_lte?: InputMaybe; id_not?: InputMaybe; id_not_in?: InputMaybe>; - liquidity?: InputMaybe; - liquidityETH?: InputMaybe; - liquidityETH_gt?: InputMaybe; - liquidityETH_gte?: InputMaybe; - liquidityETH_in?: InputMaybe>; - liquidityETH_lt?: InputMaybe; - liquidityETH_lte?: InputMaybe; - liquidityETH_not?: InputMaybe; - liquidityETH_not_in?: InputMaybe>; - liquidityUSD?: InputMaybe; - liquidityUSD_gt?: InputMaybe; - liquidityUSD_gte?: InputMaybe; - liquidityUSD_in?: InputMaybe>; - liquidityUSD_lt?: InputMaybe; - liquidityUSD_lte?: InputMaybe; - liquidityUSD_not?: InputMaybe; - liquidityUSD_not_in?: InputMaybe>; - liquidity_gt?: InputMaybe; - liquidity_gte?: InputMaybe; - liquidity_in?: InputMaybe>; - liquidity_lt?: InputMaybe; - liquidity_lte?: InputMaybe; - liquidity_not?: InputMaybe; - liquidity_not_in?: InputMaybe>; or?: InputMaybe>>; priceUSD?: InputMaybe; priceUSD_gt?: InputMaybe; @@ -3051,220 +2332,61 @@ export type TokenDayData_Filter = { token_not_starts_with_nocase?: InputMaybe; token_starts_with?: InputMaybe; token_starts_with_nocase?: InputMaybe; - txCount?: InputMaybe; - txCount_gt?: InputMaybe; - txCount_gte?: InputMaybe; - txCount_in?: InputMaybe>; - txCount_lt?: InputMaybe; - txCount_lte?: InputMaybe; - txCount_not?: InputMaybe; - txCount_not_in?: InputMaybe>; - volume?: InputMaybe; - volumeETH?: InputMaybe; - volumeETH_gt?: InputMaybe; - volumeETH_gte?: InputMaybe; - volumeETH_in?: InputMaybe>; - volumeETH_lt?: InputMaybe; - volumeETH_lte?: InputMaybe; - volumeETH_not?: InputMaybe; - volumeETH_not_in?: InputMaybe>; - volumeUSD?: InputMaybe; - volumeUSD_gt?: InputMaybe; - volumeUSD_gte?: InputMaybe; - volumeUSD_in?: InputMaybe>; - volumeUSD_lt?: InputMaybe; - volumeUSD_lte?: InputMaybe; - volumeUSD_not?: InputMaybe; - volumeUSD_not_in?: InputMaybe>; - volume_gt?: InputMaybe; - volume_gte?: InputMaybe; - volume_in?: InputMaybe>; - volume_lt?: InputMaybe; - volume_lte?: InputMaybe; - volume_not?: InputMaybe; - volume_not_in?: InputMaybe>; + totalLiquidityETH?: InputMaybe; + totalLiquidityETH_gt?: InputMaybe; + totalLiquidityETH_gte?: InputMaybe; + totalLiquidityETH_in?: InputMaybe>; + totalLiquidityETH_lt?: InputMaybe; + totalLiquidityETH_lte?: InputMaybe; + totalLiquidityETH_not?: InputMaybe; + totalLiquidityETH_not_in?: InputMaybe>; + totalLiquidityToken?: InputMaybe; + totalLiquidityToken_gt?: InputMaybe; + totalLiquidityToken_gte?: InputMaybe; + totalLiquidityToken_in?: InputMaybe>; + totalLiquidityToken_lt?: InputMaybe; + totalLiquidityToken_lte?: InputMaybe; + totalLiquidityToken_not?: InputMaybe; + totalLiquidityToken_not_in?: InputMaybe>; + totalLiquidityUSD?: InputMaybe; + totalLiquidityUSD_gt?: InputMaybe; + totalLiquidityUSD_gte?: InputMaybe; + totalLiquidityUSD_in?: InputMaybe>; + totalLiquidityUSD_lt?: InputMaybe; + totalLiquidityUSD_lte?: InputMaybe; + totalLiquidityUSD_not?: InputMaybe; + totalLiquidityUSD_not_in?: InputMaybe>; }; export type TokenDayData_OrderBy = + | 'dailyTxns' + | 'dailyVolumeETH' + | 'dailyVolumeToken' + | 'dailyVolumeUSD' | 'date' | 'id' - | 'liquidity' - | 'liquidityETH' - | 'liquidityUSD' - | 'priceUSD' - | 'token' - | 'token__decimals' - | 'token__derivedETH' - | 'token__id' - | 'token__liquidity' - | 'token__name' - | 'token__symbol' - | 'token__totalSupply' - | 'token__txCount' - | 'token__untrackedVolumeUSD' - | 'token__volume' - | 'token__volumeUSD' - | 'txCount' - | 'volume' - | 'volumeETH' - | 'volumeUSD' - | '%future added value'; - -export type TokenHourData = { - __typename?: 'TokenHourData'; - date: Scalars['Int']['output']; - id: Scalars['ID']['output']; - liquidity: Scalars['BigDecimal']['output']; - liquidityETH: Scalars['BigDecimal']['output']; - liquidityUSD: Scalars['BigDecimal']['output']; - priceUSD: Scalars['BigDecimal']['output']; - token: Token; - txCount: Scalars['BigInt']['output']; - volume: Scalars['BigDecimal']['output']; - volumeETH: Scalars['BigDecimal']['output']; - volumeUSD: Scalars['BigDecimal']['output']; -}; - -export type TokenHourData_Filter = { - /** Filter for the block changed event. */ - _change_block?: InputMaybe; - and?: InputMaybe>>; - date?: InputMaybe; - date_gt?: InputMaybe; - date_gte?: InputMaybe; - date_in?: InputMaybe>; - date_lt?: InputMaybe; - date_lte?: InputMaybe; - date_not?: InputMaybe; - date_not_in?: InputMaybe>; - id?: InputMaybe; - id_gt?: InputMaybe; - id_gte?: InputMaybe; - id_in?: InputMaybe>; - id_lt?: InputMaybe; - id_lte?: InputMaybe; - id_not?: InputMaybe; - id_not_in?: InputMaybe>; - liquidity?: InputMaybe; - liquidityETH?: InputMaybe; - liquidityETH_gt?: InputMaybe; - liquidityETH_gte?: InputMaybe; - liquidityETH_in?: InputMaybe>; - liquidityETH_lt?: InputMaybe; - liquidityETH_lte?: InputMaybe; - liquidityETH_not?: InputMaybe; - liquidityETH_not_in?: InputMaybe>; - liquidityUSD?: InputMaybe; - liquidityUSD_gt?: InputMaybe; - liquidityUSD_gte?: InputMaybe; - liquidityUSD_in?: InputMaybe>; - liquidityUSD_lt?: InputMaybe; - liquidityUSD_lte?: InputMaybe; - liquidityUSD_not?: InputMaybe; - liquidityUSD_not_in?: InputMaybe>; - liquidity_gt?: InputMaybe; - liquidity_gte?: InputMaybe; - liquidity_in?: InputMaybe>; - liquidity_lt?: InputMaybe; - liquidity_lte?: InputMaybe; - liquidity_not?: InputMaybe; - liquidity_not_in?: InputMaybe>; - or?: InputMaybe>>; - priceUSD?: InputMaybe; - priceUSD_gt?: InputMaybe; - priceUSD_gte?: InputMaybe; - priceUSD_in?: InputMaybe>; - priceUSD_lt?: InputMaybe; - priceUSD_lte?: InputMaybe; - priceUSD_not?: InputMaybe; - priceUSD_not_in?: InputMaybe>; - token?: InputMaybe; - token_?: InputMaybe; - token_contains?: InputMaybe; - token_contains_nocase?: InputMaybe; - token_ends_with?: InputMaybe; - token_ends_with_nocase?: InputMaybe; - token_gt?: InputMaybe; - token_gte?: InputMaybe; - token_in?: InputMaybe>; - token_lt?: InputMaybe; - token_lte?: InputMaybe; - token_not?: InputMaybe; - token_not_contains?: InputMaybe; - token_not_contains_nocase?: InputMaybe; - token_not_ends_with?: InputMaybe; - token_not_ends_with_nocase?: InputMaybe; - token_not_in?: InputMaybe>; - token_not_starts_with?: InputMaybe; - token_not_starts_with_nocase?: InputMaybe; - token_starts_with?: InputMaybe; - token_starts_with_nocase?: InputMaybe; - txCount?: InputMaybe; - txCount_gt?: InputMaybe; - txCount_gte?: InputMaybe; - txCount_in?: InputMaybe>; - txCount_lt?: InputMaybe; - txCount_lte?: InputMaybe; - txCount_not?: InputMaybe; - txCount_not_in?: InputMaybe>; - volume?: InputMaybe; - volumeETH?: InputMaybe; - volumeETH_gt?: InputMaybe; - volumeETH_gte?: InputMaybe; - volumeETH_in?: InputMaybe>; - volumeETH_lt?: InputMaybe; - volumeETH_lte?: InputMaybe; - volumeETH_not?: InputMaybe; - volumeETH_not_in?: InputMaybe>; - volumeUSD?: InputMaybe; - volumeUSD_gt?: InputMaybe; - volumeUSD_gte?: InputMaybe; - volumeUSD_in?: InputMaybe>; - volumeUSD_lt?: InputMaybe; - volumeUSD_lte?: InputMaybe; - volumeUSD_not?: InputMaybe; - volumeUSD_not_in?: InputMaybe>; - volume_gt?: InputMaybe; - volume_gte?: InputMaybe; - volume_in?: InputMaybe>; - volume_lt?: InputMaybe; - volume_lte?: InputMaybe; - volume_not?: InputMaybe; - volume_not_in?: InputMaybe>; -}; - -export type TokenHourData_OrderBy = - | 'date' - | 'id' - | 'liquidity' - | 'liquidityETH' - | 'liquidityUSD' | 'priceUSD' | 'token' | 'token__decimals' | 'token__derivedETH' | 'token__id' - | 'token__liquidity' | 'token__name' | 'token__symbol' + | 'token__totalLiquidity' | 'token__totalSupply' + | 'token__tradeVolume' + | 'token__tradeVolumeUSD' | 'token__txCount' | 'token__untrackedVolumeUSD' - | 'token__volume' - | 'token__volumeUSD' - | 'txCount' - | 'volume' - | 'volumeETH' - | 'volumeUSD' + | 'totalLiquidityETH' + | 'totalLiquidityToken' + | 'totalLiquidityUSD' | '%future added value'; export type Token_Filter = { /** Filter for the block changed event. */ _change_block?: InputMaybe; and?: InputMaybe>>; - basePairsDayData_?: InputMaybe; - basePairs_?: InputMaybe; - dayData_?: InputMaybe; decimals?: InputMaybe; decimals_gt?: InputMaybe; decimals_gte?: InputMaybe; @@ -3281,28 +2403,6 @@ export type Token_Filter = { derivedETH_lte?: InputMaybe; derivedETH_not?: InputMaybe; derivedETH_not_in?: InputMaybe>; - factory?: InputMaybe; - factory_?: InputMaybe; - factory_contains?: InputMaybe; - factory_contains_nocase?: InputMaybe; - factory_ends_with?: InputMaybe; - factory_ends_with_nocase?: InputMaybe; - factory_gt?: InputMaybe; - factory_gte?: InputMaybe; - factory_in?: InputMaybe>; - factory_lt?: InputMaybe; - factory_lte?: InputMaybe; - factory_not?: InputMaybe; - factory_not_contains?: InputMaybe; - factory_not_contains_nocase?: InputMaybe; - factory_not_ends_with?: InputMaybe; - factory_not_ends_with_nocase?: InputMaybe; - factory_not_in?: InputMaybe>; - factory_not_starts_with?: InputMaybe; - factory_not_starts_with_nocase?: InputMaybe; - factory_starts_with?: InputMaybe; - factory_starts_with_nocase?: InputMaybe; - hourData_?: InputMaybe; id?: InputMaybe; id_gt?: InputMaybe; id_gte?: InputMaybe; @@ -3311,14 +2411,6 @@ export type Token_Filter = { id_lte?: InputMaybe; id_not?: InputMaybe; id_not_in?: InputMaybe>; - liquidity?: InputMaybe; - liquidity_gt?: InputMaybe; - liquidity_gte?: InputMaybe; - liquidity_in?: InputMaybe>; - liquidity_lt?: InputMaybe; - liquidity_lte?: InputMaybe; - liquidity_not?: InputMaybe; - liquidity_not_in?: InputMaybe>; name?: InputMaybe; name_contains?: InputMaybe; name_contains_nocase?: InputMaybe; @@ -3340,8 +2432,6 @@ export type Token_Filter = { name_starts_with?: InputMaybe; name_starts_with_nocase?: InputMaybe; or?: InputMaybe>>; - quotePairsDayData_?: InputMaybe; - quotePairs_?: InputMaybe; symbol?: InputMaybe; symbol_contains?: InputMaybe; symbol_contains_nocase?: InputMaybe; @@ -3362,6 +2452,14 @@ export type Token_Filter = { symbol_not_starts_with_nocase?: InputMaybe; symbol_starts_with?: InputMaybe; symbol_starts_with_nocase?: InputMaybe; + totalLiquidity?: InputMaybe; + totalLiquidity_gt?: InputMaybe; + totalLiquidity_gte?: InputMaybe; + totalLiquidity_in?: InputMaybe>; + totalLiquidity_lt?: InputMaybe; + totalLiquidity_lte?: InputMaybe; + totalLiquidity_not?: InputMaybe; + totalLiquidity_not_in?: InputMaybe>; totalSupply?: InputMaybe; totalSupply_gt?: InputMaybe; totalSupply_gte?: InputMaybe; @@ -3370,6 +2468,22 @@ export type Token_Filter = { totalSupply_lte?: InputMaybe; totalSupply_not?: InputMaybe; totalSupply_not_in?: InputMaybe>; + tradeVolume?: InputMaybe; + tradeVolumeUSD?: InputMaybe; + tradeVolumeUSD_gt?: InputMaybe; + tradeVolumeUSD_gte?: InputMaybe; + tradeVolumeUSD_in?: InputMaybe>; + tradeVolumeUSD_lt?: InputMaybe; + tradeVolumeUSD_lte?: InputMaybe; + tradeVolumeUSD_not?: InputMaybe; + tradeVolumeUSD_not_in?: InputMaybe>; + tradeVolume_gt?: InputMaybe; + tradeVolume_gte?: InputMaybe; + tradeVolume_in?: InputMaybe>; + tradeVolume_lt?: InputMaybe; + tradeVolume_lte?: InputMaybe; + tradeVolume_not?: InputMaybe; + tradeVolume_not_in?: InputMaybe>; txCount?: InputMaybe; txCount_gt?: InputMaybe; txCount_gte?: InputMaybe; @@ -3386,67 +2500,28 @@ export type Token_Filter = { untrackedVolumeUSD_lte?: InputMaybe; untrackedVolumeUSD_not?: InputMaybe; untrackedVolumeUSD_not_in?: InputMaybe>; - volume?: InputMaybe; - volumeUSD?: InputMaybe; - volumeUSD_gt?: InputMaybe; - volumeUSD_gte?: InputMaybe; - volumeUSD_in?: InputMaybe>; - volumeUSD_lt?: InputMaybe; - volumeUSD_lte?: InputMaybe; - volumeUSD_not?: InputMaybe; - volumeUSD_not_in?: InputMaybe>; - volume_gt?: InputMaybe; - volume_gte?: InputMaybe; - volume_in?: InputMaybe>; - volume_lt?: InputMaybe; - volume_lte?: InputMaybe; - volume_not?: InputMaybe; - volume_not_in?: InputMaybe>; - whitelistPairs?: InputMaybe>; - whitelistPairs_?: InputMaybe; - whitelistPairs_contains?: InputMaybe>; - whitelistPairs_contains_nocase?: InputMaybe>; - whitelistPairs_not?: InputMaybe>; - whitelistPairs_not_contains?: InputMaybe>; - whitelistPairs_not_contains_nocase?: InputMaybe>; }; export type Token_OrderBy = - | 'basePairs' - | 'basePairsDayData' - | 'dayData' | 'decimals' | 'derivedETH' - | 'factory' - | 'factory__id' - | 'factory__liquidityETH' - | 'factory__liquidityUSD' - | 'factory__pairCount' - | 'factory__tokenCount' - | 'factory__txCount' - | 'factory__untrackedVolumeUSD' - | 'factory__userCount' - | 'factory__volumeETH' - | 'factory__volumeUSD' - | 'hourData' | 'id' - | 'liquidity' | 'name' - | 'quotePairs' - | 'quotePairsDayData' | 'symbol' + | 'totalLiquidity' | 'totalSupply' + | 'tradeVolume' + | 'tradeVolumeUSD' | 'txCount' | 'untrackedVolumeUSD' - | 'volume' - | 'volumeUSD' - | 'whitelistPairs' | '%future added value'; export type Transaction = { __typename?: 'Transaction'; blockNumber: Scalars['BigInt']['output']; burns: Array>; + gasPrice: Scalars['BigInt']['output']; + gasUsed: Scalars['BigInt']['output']; id: Scalars['ID']['output']; mints: Array>; swaps: Array>; @@ -3499,6 +2574,22 @@ export type Transaction_Filter = { burns_not?: InputMaybe>; burns_not_contains?: InputMaybe>; burns_not_contains_nocase?: InputMaybe>; + gasPrice?: InputMaybe; + gasPrice_gt?: InputMaybe; + gasPrice_gte?: InputMaybe; + gasPrice_in?: InputMaybe>; + gasPrice_lt?: InputMaybe; + gasPrice_lte?: InputMaybe; + gasPrice_not?: InputMaybe; + gasPrice_not_in?: InputMaybe>; + gasUsed?: InputMaybe; + gasUsed_gt?: InputMaybe; + gasUsed_gte?: InputMaybe; + gasUsed_in?: InputMaybe>; + gasUsed_lt?: InputMaybe; + gasUsed_lte?: InputMaybe; + gasUsed_not?: InputMaybe; + gasUsed_not_in?: InputMaybe>; id?: InputMaybe; id_gt?: InputMaybe; id_gte?: InputMaybe; @@ -3535,16 +2626,227 @@ export type Transaction_Filter = { export type Transaction_OrderBy = | 'blockNumber' | 'burns' + | 'gasPrice' + | 'gasUsed' | 'id' | 'mints' | 'swaps' | 'timestamp' | '%future added value'; +export type UniswapDayData = { + __typename?: 'UniswapDayData'; + dailyVolumeETH: Scalars['BigDecimal']['output']; + dailyVolumeUSD: Scalars['BigDecimal']['output']; + dailyVolumeUntracked: Scalars['BigDecimal']['output']; + date: Scalars['Int']['output']; + id: Scalars['ID']['output']; + totalLiquidityETH: Scalars['BigDecimal']['output']; + totalLiquidityUSD: Scalars['BigDecimal']['output']; + totalVolumeETH: Scalars['BigDecimal']['output']; + totalVolumeUSD: Scalars['BigDecimal']['output']; + txCount: Scalars['BigInt']['output']; +}; + +export type UniswapDayData_Filter = { + /** Filter for the block changed event. */ + _change_block?: InputMaybe; + and?: InputMaybe>>; + dailyVolumeETH?: InputMaybe; + dailyVolumeETH_gt?: InputMaybe; + dailyVolumeETH_gte?: InputMaybe; + dailyVolumeETH_in?: InputMaybe>; + dailyVolumeETH_lt?: InputMaybe; + dailyVolumeETH_lte?: InputMaybe; + dailyVolumeETH_not?: InputMaybe; + dailyVolumeETH_not_in?: InputMaybe>; + dailyVolumeUSD?: InputMaybe; + dailyVolumeUSD_gt?: InputMaybe; + dailyVolumeUSD_gte?: InputMaybe; + dailyVolumeUSD_in?: InputMaybe>; + dailyVolumeUSD_lt?: InputMaybe; + dailyVolumeUSD_lte?: InputMaybe; + dailyVolumeUSD_not?: InputMaybe; + dailyVolumeUSD_not_in?: InputMaybe>; + dailyVolumeUntracked?: InputMaybe; + dailyVolumeUntracked_gt?: InputMaybe; + dailyVolumeUntracked_gte?: InputMaybe; + dailyVolumeUntracked_in?: InputMaybe>; + dailyVolumeUntracked_lt?: InputMaybe; + dailyVolumeUntracked_lte?: InputMaybe; + dailyVolumeUntracked_not?: InputMaybe; + dailyVolumeUntracked_not_in?: InputMaybe>; + date?: InputMaybe; + date_gt?: InputMaybe; + date_gte?: InputMaybe; + date_in?: InputMaybe>; + date_lt?: InputMaybe; + date_lte?: InputMaybe; + date_not?: InputMaybe; + date_not_in?: InputMaybe>; + id?: InputMaybe; + id_gt?: InputMaybe; + id_gte?: InputMaybe; + id_in?: InputMaybe>; + id_lt?: InputMaybe; + id_lte?: InputMaybe; + id_not?: InputMaybe; + id_not_in?: InputMaybe>; + or?: InputMaybe>>; + totalLiquidityETH?: InputMaybe; + totalLiquidityETH_gt?: InputMaybe; + totalLiquidityETH_gte?: InputMaybe; + totalLiquidityETH_in?: InputMaybe>; + totalLiquidityETH_lt?: InputMaybe; + totalLiquidityETH_lte?: InputMaybe; + totalLiquidityETH_not?: InputMaybe; + totalLiquidityETH_not_in?: InputMaybe>; + totalLiquidityUSD?: InputMaybe; + totalLiquidityUSD_gt?: InputMaybe; + totalLiquidityUSD_gte?: InputMaybe; + totalLiquidityUSD_in?: InputMaybe>; + totalLiquidityUSD_lt?: InputMaybe; + totalLiquidityUSD_lte?: InputMaybe; + totalLiquidityUSD_not?: InputMaybe; + totalLiquidityUSD_not_in?: InputMaybe>; + totalVolumeETH?: InputMaybe; + totalVolumeETH_gt?: InputMaybe; + totalVolumeETH_gte?: InputMaybe; + totalVolumeETH_in?: InputMaybe>; + totalVolumeETH_lt?: InputMaybe; + totalVolumeETH_lte?: InputMaybe; + totalVolumeETH_not?: InputMaybe; + totalVolumeETH_not_in?: InputMaybe>; + totalVolumeUSD?: InputMaybe; + totalVolumeUSD_gt?: InputMaybe; + totalVolumeUSD_gte?: InputMaybe; + totalVolumeUSD_in?: InputMaybe>; + totalVolumeUSD_lt?: InputMaybe; + totalVolumeUSD_lte?: InputMaybe; + totalVolumeUSD_not?: InputMaybe; + totalVolumeUSD_not_in?: InputMaybe>; + txCount?: InputMaybe; + txCount_gt?: InputMaybe; + txCount_gte?: InputMaybe; + txCount_in?: InputMaybe>; + txCount_lt?: InputMaybe; + txCount_lte?: InputMaybe; + txCount_not?: InputMaybe; + txCount_not_in?: InputMaybe>; +}; + +export type UniswapDayData_OrderBy = + | 'dailyVolumeETH' + | 'dailyVolumeUSD' + | 'dailyVolumeUntracked' + | 'date' + | 'id' + | 'totalLiquidityETH' + | 'totalLiquidityUSD' + | 'totalVolumeETH' + | 'totalVolumeUSD' + | 'txCount' + | '%future added value'; + +export type UniswapFactory = { + __typename?: 'UniswapFactory'; + id: Scalars['ID']['output']; + pairCount: Scalars['Int']['output']; + totalLiquidityETH: Scalars['BigDecimal']['output']; + totalLiquidityUSD: Scalars['BigDecimal']['output']; + totalVolumeETH: Scalars['BigDecimal']['output']; + totalVolumeUSD: Scalars['BigDecimal']['output']; + txCount: Scalars['BigInt']['output']; + untrackedVolumeUSD: Scalars['BigDecimal']['output']; +}; + +export type UniswapFactory_Filter = { + /** Filter for the block changed event. */ + _change_block?: InputMaybe; + and?: InputMaybe>>; + id?: InputMaybe; + id_gt?: InputMaybe; + id_gte?: InputMaybe; + id_in?: InputMaybe>; + id_lt?: InputMaybe; + id_lte?: InputMaybe; + id_not?: InputMaybe; + id_not_in?: InputMaybe>; + or?: InputMaybe>>; + pairCount?: InputMaybe; + pairCount_gt?: InputMaybe; + pairCount_gte?: InputMaybe; + pairCount_in?: InputMaybe>; + pairCount_lt?: InputMaybe; + pairCount_lte?: InputMaybe; + pairCount_not?: InputMaybe; + pairCount_not_in?: InputMaybe>; + totalLiquidityETH?: InputMaybe; + totalLiquidityETH_gt?: InputMaybe; + totalLiquidityETH_gte?: InputMaybe; + totalLiquidityETH_in?: InputMaybe>; + totalLiquidityETH_lt?: InputMaybe; + totalLiquidityETH_lte?: InputMaybe; + totalLiquidityETH_not?: InputMaybe; + totalLiquidityETH_not_in?: InputMaybe>; + totalLiquidityUSD?: InputMaybe; + totalLiquidityUSD_gt?: InputMaybe; + totalLiquidityUSD_gte?: InputMaybe; + totalLiquidityUSD_in?: InputMaybe>; + totalLiquidityUSD_lt?: InputMaybe; + totalLiquidityUSD_lte?: InputMaybe; + totalLiquidityUSD_not?: InputMaybe; + totalLiquidityUSD_not_in?: InputMaybe>; + totalVolumeETH?: InputMaybe; + totalVolumeETH_gt?: InputMaybe; + totalVolumeETH_gte?: InputMaybe; + totalVolumeETH_in?: InputMaybe>; + totalVolumeETH_lt?: InputMaybe; + totalVolumeETH_lte?: InputMaybe; + totalVolumeETH_not?: InputMaybe; + totalVolumeETH_not_in?: InputMaybe>; + totalVolumeUSD?: InputMaybe; + totalVolumeUSD_gt?: InputMaybe; + totalVolumeUSD_gte?: InputMaybe; + totalVolumeUSD_in?: InputMaybe>; + totalVolumeUSD_lt?: InputMaybe; + totalVolumeUSD_lte?: InputMaybe; + totalVolumeUSD_not?: InputMaybe; + totalVolumeUSD_not_in?: InputMaybe>; + txCount?: InputMaybe; + txCount_gt?: InputMaybe; + txCount_gte?: InputMaybe; + txCount_in?: InputMaybe>; + txCount_lt?: InputMaybe; + txCount_lte?: InputMaybe; + txCount_not?: InputMaybe; + txCount_not_in?: InputMaybe>; + untrackedVolumeUSD?: InputMaybe; + untrackedVolumeUSD_gt?: InputMaybe; + untrackedVolumeUSD_gte?: InputMaybe; + untrackedVolumeUSD_in?: InputMaybe>; + untrackedVolumeUSD_lt?: InputMaybe; + untrackedVolumeUSD_lte?: InputMaybe; + untrackedVolumeUSD_not?: InputMaybe; + untrackedVolumeUSD_not_in?: InputMaybe>; +}; + +export type UniswapFactory_OrderBy = + | 'id' + | 'pairCount' + | 'totalLiquidityETH' + | 'totalLiquidityUSD' + | 'totalVolumeETH' + | 'totalVolumeUSD' + | 'txCount' + | 'untrackedVolumeUSD' + | '%future added value'; + export type User = { __typename?: 'User'; id: Scalars['ID']['output']; - liquidityPositions: Array; + liquidityPositions?: Maybe>; + usdSwapped: Scalars['BigDecimal']['output']; }; @@ -3570,11 +2872,20 @@ export type User_Filter = { id_not_in?: InputMaybe>; liquidityPositions_?: InputMaybe; or?: InputMaybe>>; + usdSwapped?: InputMaybe; + usdSwapped_gt?: InputMaybe; + usdSwapped_gte?: InputMaybe; + usdSwapped_in?: InputMaybe>; + usdSwapped_lt?: InputMaybe; + usdSwapped_lte?: InputMaybe; + usdSwapped_not?: InputMaybe; + usdSwapped_not_in?: InputMaybe>; }; export type User_OrderBy = | 'id' | 'liquidityPositions' + | 'usdSwapped' | '%future added value'; export type _Block_ = { diff --git a/packages/gql/src/sushi/__generated__/Gnosis.ts b/packages/gql/src/sushi/__generated__/Gnosis.ts index 79e7bafbd..914cf2243 100644 --- a/packages/gql/src/sushi/__generated__/Gnosis.ts +++ b/packages/gql/src/sushi/__generated__/Gnosis.ts @@ -78,12 +78,12 @@ export type Burn = { amount0?: Maybe; amount1?: Maybe; amountUSD?: Maybe; - complete: Scalars['Boolean']['output']; feeLiquidity?: Maybe; feeTo?: Maybe; id: Scalars['ID']['output']; liquidity: Scalars['BigDecimal']['output']; logIndex?: Maybe; + needsComplete: Scalars['Boolean']['output']; pair: Pair; sender?: Maybe; timestamp: Scalars['BigInt']['output']; @@ -119,10 +119,6 @@ export type Burn_Filter = { amountUSD_not?: InputMaybe; amountUSD_not_in?: InputMaybe>; and?: InputMaybe>>; - complete?: InputMaybe; - complete_in?: InputMaybe>; - complete_not?: InputMaybe; - complete_not_in?: InputMaybe>; feeLiquidity?: InputMaybe; feeLiquidity_gt?: InputMaybe; feeLiquidity_gte?: InputMaybe; @@ -165,6 +161,10 @@ export type Burn_Filter = { logIndex_lte?: InputMaybe; logIndex_not?: InputMaybe; logIndex_not_in?: InputMaybe>; + needsComplete?: InputMaybe; + needsComplete_in?: InputMaybe>; + needsComplete_not?: InputMaybe; + needsComplete_not_in?: InputMaybe>; or?: InputMaybe>>; pair?: InputMaybe; pair_?: InputMaybe; @@ -242,22 +242,21 @@ export type Burn_OrderBy = | 'amount0' | 'amount1' | 'amountUSD' - | 'complete' | 'feeLiquidity' | 'feeTo' | 'id' | 'liquidity' | 'logIndex' + | 'needsComplete' | 'pair' - | 'pair__block' + | 'pair__createdAtBlockNumber' + | 'pair__createdAtTimestamp' | 'pair__id' | 'pair__liquidityProviderCount' - | 'pair__name' | 'pair__reserve0' | 'pair__reserve1' | 'pair__reserveETH' | 'pair__reserveUSD' - | 'pair__timestamp' | 'pair__token0Price' | 'pair__token1Price' | 'pair__totalSupply' @@ -272,439 +271,23 @@ export type Burn_OrderBy = | 'to' | 'transaction' | 'transaction__blockNumber' + | 'transaction__gasPrice' + | 'transaction__gasUsed' | 'transaction__id' | 'transaction__timestamp' | '%future added value'; -export type DayData = { - __typename?: 'DayData'; - date: Scalars['Int']['output']; - factory: Factory; - id: Scalars['ID']['output']; - liquidityETH: Scalars['BigDecimal']['output']; - liquidityUSD: Scalars['BigDecimal']['output']; - txCount: Scalars['BigInt']['output']; - untrackedVolume: Scalars['BigDecimal']['output']; - volumeETH: Scalars['BigDecimal']['output']; - volumeUSD: Scalars['BigDecimal']['output']; -}; - -export type DayData_Filter = { - /** Filter for the block changed event. */ - _change_block?: InputMaybe; - and?: InputMaybe>>; - date?: InputMaybe; - date_gt?: InputMaybe; - date_gte?: InputMaybe; - date_in?: InputMaybe>; - date_lt?: InputMaybe; - date_lte?: InputMaybe; - date_not?: InputMaybe; - date_not_in?: InputMaybe>; - factory?: InputMaybe; - factory_?: InputMaybe; - factory_contains?: InputMaybe; - factory_contains_nocase?: InputMaybe; - factory_ends_with?: InputMaybe; - factory_ends_with_nocase?: InputMaybe; - factory_gt?: InputMaybe; - factory_gte?: InputMaybe; - factory_in?: InputMaybe>; - factory_lt?: InputMaybe; - factory_lte?: InputMaybe; - factory_not?: InputMaybe; - factory_not_contains?: InputMaybe; - factory_not_contains_nocase?: InputMaybe; - factory_not_ends_with?: InputMaybe; - factory_not_ends_with_nocase?: InputMaybe; - factory_not_in?: InputMaybe>; - factory_not_starts_with?: InputMaybe; - factory_not_starts_with_nocase?: InputMaybe; - factory_starts_with?: InputMaybe; - factory_starts_with_nocase?: InputMaybe; - id?: InputMaybe; - id_gt?: InputMaybe; - id_gte?: InputMaybe; - id_in?: InputMaybe>; - id_lt?: InputMaybe; - id_lte?: InputMaybe; - id_not?: InputMaybe; - id_not_in?: InputMaybe>; - liquidityETH?: InputMaybe; - liquidityETH_gt?: InputMaybe; - liquidityETH_gte?: InputMaybe; - liquidityETH_in?: InputMaybe>; - liquidityETH_lt?: InputMaybe; - liquidityETH_lte?: InputMaybe; - liquidityETH_not?: InputMaybe; - liquidityETH_not_in?: InputMaybe>; - liquidityUSD?: InputMaybe; - liquidityUSD_gt?: InputMaybe; - liquidityUSD_gte?: InputMaybe; - liquidityUSD_in?: InputMaybe>; - liquidityUSD_lt?: InputMaybe; - liquidityUSD_lte?: InputMaybe; - liquidityUSD_not?: InputMaybe; - liquidityUSD_not_in?: InputMaybe>; - or?: InputMaybe>>; - txCount?: InputMaybe; - txCount_gt?: InputMaybe; - txCount_gte?: InputMaybe; - txCount_in?: InputMaybe>; - txCount_lt?: InputMaybe; - txCount_lte?: InputMaybe; - txCount_not?: InputMaybe; - txCount_not_in?: InputMaybe>; - untrackedVolume?: InputMaybe; - untrackedVolume_gt?: InputMaybe; - untrackedVolume_gte?: InputMaybe; - untrackedVolume_in?: InputMaybe>; - untrackedVolume_lt?: InputMaybe; - untrackedVolume_lte?: InputMaybe; - untrackedVolume_not?: InputMaybe; - untrackedVolume_not_in?: InputMaybe>; - volumeETH?: InputMaybe; - volumeETH_gt?: InputMaybe; - volumeETH_gte?: InputMaybe; - volumeETH_in?: InputMaybe>; - volumeETH_lt?: InputMaybe; - volumeETH_lte?: InputMaybe; - volumeETH_not?: InputMaybe; - volumeETH_not_in?: InputMaybe>; - volumeUSD?: InputMaybe; - volumeUSD_gt?: InputMaybe; - volumeUSD_gte?: InputMaybe; - volumeUSD_in?: InputMaybe>; - volumeUSD_lt?: InputMaybe; - volumeUSD_lte?: InputMaybe; - volumeUSD_not?: InputMaybe; - volumeUSD_not_in?: InputMaybe>; -}; - -export type DayData_OrderBy = - | 'date' - | 'factory' - | 'factory__id' - | 'factory__liquidityETH' - | 'factory__liquidityUSD' - | 'factory__pairCount' - | 'factory__tokenCount' - | 'factory__txCount' - | 'factory__untrackedVolumeUSD' - | 'factory__userCount' - | 'factory__volumeETH' - | 'factory__volumeUSD' - | 'id' - | 'liquidityETH' - | 'liquidityUSD' - | 'txCount' - | 'untrackedVolume' - | 'volumeETH' - | 'volumeUSD' - | '%future added value'; - -export type Factory = { - __typename?: 'Factory'; - dayData: Array; - hourData: Array; - id: Scalars['ID']['output']; - liquidityETH: Scalars['BigDecimal']['output']; - liquidityUSD: Scalars['BigDecimal']['output']; - pairCount: Scalars['BigInt']['output']; - pairs: Array; - tokenCount: Scalars['BigInt']['output']; - tokens: Array; - txCount: Scalars['BigInt']['output']; - untrackedVolumeUSD: Scalars['BigDecimal']['output']; - userCount: Scalars['BigInt']['output']; - volumeETH: Scalars['BigDecimal']['output']; - volumeUSD: Scalars['BigDecimal']['output']; -}; - - -export type FactoryDayDataArgs = { - first?: InputMaybe; - orderBy?: InputMaybe; - orderDirection?: InputMaybe; - skip?: InputMaybe; - where?: InputMaybe; -}; - - -export type FactoryHourDataArgs = { - first?: InputMaybe; - orderBy?: InputMaybe; - orderDirection?: InputMaybe; - skip?: InputMaybe; - where?: InputMaybe; -}; - - -export type FactoryPairsArgs = { - first?: InputMaybe; - orderBy?: InputMaybe; - orderDirection?: InputMaybe; - skip?: InputMaybe; - where?: InputMaybe; -}; - - -export type FactoryTokensArgs = { - first?: InputMaybe; - orderBy?: InputMaybe; - orderDirection?: InputMaybe; - skip?: InputMaybe; - where?: InputMaybe; -}; - -export type Factory_Filter = { - /** Filter for the block changed event. */ - _change_block?: InputMaybe; - and?: InputMaybe>>; - dayData_?: InputMaybe; - hourData_?: InputMaybe; - id?: InputMaybe; - id_gt?: InputMaybe; - id_gte?: InputMaybe; - id_in?: InputMaybe>; - id_lt?: InputMaybe; - id_lte?: InputMaybe; - id_not?: InputMaybe; - id_not_in?: InputMaybe>; - liquidityETH?: InputMaybe; - liquidityETH_gt?: InputMaybe; - liquidityETH_gte?: InputMaybe; - liquidityETH_in?: InputMaybe>; - liquidityETH_lt?: InputMaybe; - liquidityETH_lte?: InputMaybe; - liquidityETH_not?: InputMaybe; - liquidityETH_not_in?: InputMaybe>; - liquidityUSD?: InputMaybe; - liquidityUSD_gt?: InputMaybe; - liquidityUSD_gte?: InputMaybe; - liquidityUSD_in?: InputMaybe>; - liquidityUSD_lt?: InputMaybe; - liquidityUSD_lte?: InputMaybe; - liquidityUSD_not?: InputMaybe; - liquidityUSD_not_in?: InputMaybe>; - or?: InputMaybe>>; - pairCount?: InputMaybe; - pairCount_gt?: InputMaybe; - pairCount_gte?: InputMaybe; - pairCount_in?: InputMaybe>; - pairCount_lt?: InputMaybe; - pairCount_lte?: InputMaybe; - pairCount_not?: InputMaybe; - pairCount_not_in?: InputMaybe>; - pairs_?: InputMaybe; - tokenCount?: InputMaybe; - tokenCount_gt?: InputMaybe; - tokenCount_gte?: InputMaybe; - tokenCount_in?: InputMaybe>; - tokenCount_lt?: InputMaybe; - tokenCount_lte?: InputMaybe; - tokenCount_not?: InputMaybe; - tokenCount_not_in?: InputMaybe>; - tokens_?: InputMaybe; - txCount?: InputMaybe; - txCount_gt?: InputMaybe; - txCount_gte?: InputMaybe; - txCount_in?: InputMaybe>; - txCount_lt?: InputMaybe; - txCount_lte?: InputMaybe; - txCount_not?: InputMaybe; - txCount_not_in?: InputMaybe>; - untrackedVolumeUSD?: InputMaybe; - untrackedVolumeUSD_gt?: InputMaybe; - untrackedVolumeUSD_gte?: InputMaybe; - untrackedVolumeUSD_in?: InputMaybe>; - untrackedVolumeUSD_lt?: InputMaybe; - untrackedVolumeUSD_lte?: InputMaybe; - untrackedVolumeUSD_not?: InputMaybe; - untrackedVolumeUSD_not_in?: InputMaybe>; - userCount?: InputMaybe; - userCount_gt?: InputMaybe; - userCount_gte?: InputMaybe; - userCount_in?: InputMaybe>; - userCount_lt?: InputMaybe; - userCount_lte?: InputMaybe; - userCount_not?: InputMaybe; - userCount_not_in?: InputMaybe>; - volumeETH?: InputMaybe; - volumeETH_gt?: InputMaybe; - volumeETH_gte?: InputMaybe; - volumeETH_in?: InputMaybe>; - volumeETH_lt?: InputMaybe; - volumeETH_lte?: InputMaybe; - volumeETH_not?: InputMaybe; - volumeETH_not_in?: InputMaybe>; - volumeUSD?: InputMaybe; - volumeUSD_gt?: InputMaybe; - volumeUSD_gte?: InputMaybe; - volumeUSD_in?: InputMaybe>; - volumeUSD_lt?: InputMaybe; - volumeUSD_lte?: InputMaybe; - volumeUSD_not?: InputMaybe; - volumeUSD_not_in?: InputMaybe>; -}; - -export type Factory_OrderBy = - | 'dayData' - | 'hourData' - | 'id' - | 'liquidityETH' - | 'liquidityUSD' - | 'pairCount' - | 'pairs' - | 'tokenCount' - | 'tokens' - | 'txCount' - | 'untrackedVolumeUSD' - | 'userCount' - | 'volumeETH' - | 'volumeUSD' - | '%future added value'; - -export type HourData = { - __typename?: 'HourData'; - date: Scalars['Int']['output']; - factory: Factory; - id: Scalars['ID']['output']; - liquidityETH: Scalars['BigDecimal']['output']; - liquidityUSD: Scalars['BigDecimal']['output']; - txCount: Scalars['BigInt']['output']; - untrackedVolume: Scalars['BigDecimal']['output']; - volumeETH: Scalars['BigDecimal']['output']; - volumeUSD: Scalars['BigDecimal']['output']; -}; - -export type HourData_Filter = { - /** Filter for the block changed event. */ - _change_block?: InputMaybe; - and?: InputMaybe>>; - date?: InputMaybe; - date_gt?: InputMaybe; - date_gte?: InputMaybe; - date_in?: InputMaybe>; - date_lt?: InputMaybe; - date_lte?: InputMaybe; - date_not?: InputMaybe; - date_not_in?: InputMaybe>; - factory?: InputMaybe; - factory_?: InputMaybe; - factory_contains?: InputMaybe; - factory_contains_nocase?: InputMaybe; - factory_ends_with?: InputMaybe; - factory_ends_with_nocase?: InputMaybe; - factory_gt?: InputMaybe; - factory_gte?: InputMaybe; - factory_in?: InputMaybe>; - factory_lt?: InputMaybe; - factory_lte?: InputMaybe; - factory_not?: InputMaybe; - factory_not_contains?: InputMaybe; - factory_not_contains_nocase?: InputMaybe; - factory_not_ends_with?: InputMaybe; - factory_not_ends_with_nocase?: InputMaybe; - factory_not_in?: InputMaybe>; - factory_not_starts_with?: InputMaybe; - factory_not_starts_with_nocase?: InputMaybe; - factory_starts_with?: InputMaybe; - factory_starts_with_nocase?: InputMaybe; - id?: InputMaybe; - id_gt?: InputMaybe; - id_gte?: InputMaybe; - id_in?: InputMaybe>; - id_lt?: InputMaybe; - id_lte?: InputMaybe; - id_not?: InputMaybe; - id_not_in?: InputMaybe>; - liquidityETH?: InputMaybe; - liquidityETH_gt?: InputMaybe; - liquidityETH_gte?: InputMaybe; - liquidityETH_in?: InputMaybe>; - liquidityETH_lt?: InputMaybe; - liquidityETH_lte?: InputMaybe; - liquidityETH_not?: InputMaybe; - liquidityETH_not_in?: InputMaybe>; - liquidityUSD?: InputMaybe; - liquidityUSD_gt?: InputMaybe; - liquidityUSD_gte?: InputMaybe; - liquidityUSD_in?: InputMaybe>; - liquidityUSD_lt?: InputMaybe; - liquidityUSD_lte?: InputMaybe; - liquidityUSD_not?: InputMaybe; - liquidityUSD_not_in?: InputMaybe>; - or?: InputMaybe>>; - txCount?: InputMaybe; - txCount_gt?: InputMaybe; - txCount_gte?: InputMaybe; - txCount_in?: InputMaybe>; - txCount_lt?: InputMaybe; - txCount_lte?: InputMaybe; - txCount_not?: InputMaybe; - txCount_not_in?: InputMaybe>; - untrackedVolume?: InputMaybe; - untrackedVolume_gt?: InputMaybe; - untrackedVolume_gte?: InputMaybe; - untrackedVolume_in?: InputMaybe>; - untrackedVolume_lt?: InputMaybe; - untrackedVolume_lte?: InputMaybe; - untrackedVolume_not?: InputMaybe; - untrackedVolume_not_in?: InputMaybe>; - volumeETH?: InputMaybe; - volumeETH_gt?: InputMaybe; - volumeETH_gte?: InputMaybe; - volumeETH_in?: InputMaybe>; - volumeETH_lt?: InputMaybe; - volumeETH_lte?: InputMaybe; - volumeETH_not?: InputMaybe; - volumeETH_not_in?: InputMaybe>; - volumeUSD?: InputMaybe; - volumeUSD_gt?: InputMaybe; - volumeUSD_gte?: InputMaybe; - volumeUSD_in?: InputMaybe>; - volumeUSD_lt?: InputMaybe; - volumeUSD_lte?: InputMaybe; - volumeUSD_not?: InputMaybe; - volumeUSD_not_in?: InputMaybe>; -}; - -export type HourData_OrderBy = - | 'date' - | 'factory' - | 'factory__id' - | 'factory__liquidityETH' - | 'factory__liquidityUSD' - | 'factory__pairCount' - | 'factory__tokenCount' - | 'factory__txCount' - | 'factory__untrackedVolumeUSD' - | 'factory__userCount' - | 'factory__volumeETH' - | 'factory__volumeUSD' - | 'id' - | 'liquidityETH' - | 'liquidityUSD' - | 'txCount' - | 'untrackedVolume' - | 'volumeETH' - | 'volumeUSD' - | '%future added value'; - export type LiquidityPosition = { __typename?: 'LiquidityPosition'; - block: Scalars['Int']['output']; + historicalSnapshots: Array>; id: Scalars['ID']['output']; liquidityTokenBalance: Scalars['BigDecimal']['output']; pair: Pair; - snapshots: Array>; - timestamp: Scalars['Int']['output']; user: User; }; -export type LiquidityPositionSnapshotsArgs = { +export type LiquidityPositionHistoricalSnapshotsArgs = { first?: InputMaybe; orderBy?: InputMaybe; orderDirection?: InputMaybe; @@ -726,6 +309,7 @@ export type LiquidityPositionSnapshot = { timestamp: Scalars['Int']['output']; token0PriceUSD: Scalars['BigDecimal']['output']; token1PriceUSD: Scalars['BigDecimal']['output']; + transaction: Transaction; user: User; }; @@ -856,6 +440,27 @@ export type LiquidityPositionSnapshot_Filter = { token1PriceUSD_lte?: InputMaybe; token1PriceUSD_not?: InputMaybe; token1PriceUSD_not_in?: InputMaybe>; + transaction?: InputMaybe; + transaction_?: InputMaybe; + transaction_contains?: InputMaybe; + transaction_contains_nocase?: InputMaybe; + transaction_ends_with?: InputMaybe; + transaction_ends_with_nocase?: InputMaybe; + transaction_gt?: InputMaybe; + transaction_gte?: InputMaybe; + transaction_in?: InputMaybe>; + transaction_lt?: InputMaybe; + transaction_lte?: InputMaybe; + transaction_not?: InputMaybe; + transaction_not_contains?: InputMaybe; + transaction_not_contains_nocase?: InputMaybe; + transaction_not_ends_with?: InputMaybe; + transaction_not_ends_with_nocase?: InputMaybe; + transaction_not_in?: InputMaybe>; + transaction_not_starts_with?: InputMaybe; + transaction_not_starts_with_nocase?: InputMaybe; + transaction_starts_with?: InputMaybe; + transaction_starts_with_nocase?: InputMaybe; user?: InputMaybe; user_?: InputMaybe; user_contains?: InputMaybe; @@ -883,22 +488,19 @@ export type LiquidityPositionSnapshot_OrderBy = | 'block' | 'id' | 'liquidityPosition' - | 'liquidityPosition__block' | 'liquidityPosition__id' | 'liquidityPosition__liquidityTokenBalance' - | 'liquidityPosition__timestamp' | 'liquidityTokenBalance' | 'liquidityTokenTotalSupply' | 'pair' - | 'pair__block' + | 'pair__createdAtBlockNumber' + | 'pair__createdAtTimestamp' | 'pair__id' | 'pair__liquidityProviderCount' - | 'pair__name' | 'pair__reserve0' | 'pair__reserve1' | 'pair__reserveETH' | 'pair__reserveUSD' - | 'pair__timestamp' | 'pair__token0Price' | 'pair__token1Price' | 'pair__totalSupply' @@ -914,22 +516,22 @@ export type LiquidityPositionSnapshot_OrderBy = | 'timestamp' | 'token0PriceUSD' | 'token1PriceUSD' + | 'transaction' + | 'transaction__blockNumber' + | 'transaction__gasPrice' + | 'transaction__gasUsed' + | 'transaction__id' + | 'transaction__timestamp' | 'user' | 'user__id' + | 'user__usdSwapped' | '%future added value'; export type LiquidityPosition_Filter = { /** Filter for the block changed event. */ _change_block?: InputMaybe; and?: InputMaybe>>; - block?: InputMaybe; - block_gt?: InputMaybe; - block_gte?: InputMaybe; - block_in?: InputMaybe>; - block_lt?: InputMaybe; - block_lte?: InputMaybe; - block_not?: InputMaybe; - block_not_in?: InputMaybe>; + historicalSnapshots_?: InputMaybe; id?: InputMaybe; id_gt?: InputMaybe; id_gte?: InputMaybe; @@ -968,15 +570,6 @@ export type LiquidityPosition_Filter = { pair_not_starts_with_nocase?: InputMaybe; pair_starts_with?: InputMaybe; pair_starts_with_nocase?: InputMaybe; - snapshots_?: InputMaybe; - timestamp?: InputMaybe; - timestamp_gt?: InputMaybe; - timestamp_gte?: InputMaybe; - timestamp_in?: InputMaybe>; - timestamp_lt?: InputMaybe; - timestamp_lte?: InputMaybe; - timestamp_not?: InputMaybe; - timestamp_not_in?: InputMaybe>; user?: InputMaybe; user_?: InputMaybe; user_contains?: InputMaybe; @@ -1001,19 +594,18 @@ export type LiquidityPosition_Filter = { }; export type LiquidityPosition_OrderBy = - | 'block' + | 'historicalSnapshots' | 'id' | 'liquidityTokenBalance' | 'pair' - | 'pair__block' + | 'pair__createdAtBlockNumber' + | 'pair__createdAtTimestamp' | 'pair__id' | 'pair__liquidityProviderCount' - | 'pair__name' | 'pair__reserve0' | 'pair__reserve1' | 'pair__reserveETH' | 'pair__reserveUSD' - | 'pair__timestamp' | 'pair__token0Price' | 'pair__token1Price' | 'pair__totalSupply' @@ -1023,10 +615,9 @@ export type LiquidityPosition_OrderBy = | 'pair__volumeToken0' | 'pair__volumeToken1' | 'pair__volumeUSD' - | 'snapshots' - | 'timestamp' | 'user' | 'user__id' + | 'user__usdSwapped' | '%future added value'; export type Mint = { @@ -1199,15 +790,14 @@ export type Mint_OrderBy = | 'liquidity' | 'logIndex' | 'pair' - | 'pair__block' + | 'pair__createdAtBlockNumber' + | 'pair__createdAtTimestamp' | 'pair__id' | 'pair__liquidityProviderCount' - | 'pair__name' | 'pair__reserve0' | 'pair__reserve1' | 'pair__reserveETH' | 'pair__reserveUSD' - | 'pair__timestamp' | 'pair__token0Price' | 'pair__token1Price' | 'pair__totalSupply' @@ -1222,6 +812,8 @@ export type Mint_OrderBy = | 'to' | 'transaction' | 'transaction__blockNumber' + | 'transaction__gasPrice' + | 'transaction__gasUsed' | 'transaction__id' | 'transaction__timestamp' | '%future added value'; @@ -1234,23 +826,14 @@ export type OrderDirection = export type Pair = { __typename?: 'Pair'; - block: Scalars['BigInt']['output']; - burns: Array; - dayData: Array; - factory: Factory; - hourData: Array; + createdAtBlockNumber: Scalars['BigInt']['output']; + createdAtTimestamp: Scalars['BigInt']['output']; id: Scalars['ID']['output']; - liquidityPositionSnapshots: Array; - liquidityPositions: Array; liquidityProviderCount: Scalars['BigInt']['output']; - mints: Array; - name: Scalars['String']['output']; reserve0: Scalars['BigDecimal']['output']; reserve1: Scalars['BigDecimal']['output']; reserveETH: Scalars['BigDecimal']['output']; reserveUSD: Scalars['BigDecimal']['output']; - swaps: Array; - timestamp: Scalars['BigInt']['output']; token0: Token; token0Price: Scalars['BigDecimal']['output']; token1: Token; @@ -1264,90 +847,59 @@ export type Pair = { volumeUSD: Scalars['BigDecimal']['output']; }; - -export type PairBurnsArgs = { - first?: InputMaybe; - orderBy?: InputMaybe; - orderDirection?: InputMaybe; - skip?: InputMaybe; - where?: InputMaybe; -}; - - -export type PairDayDataArgs = { - first?: InputMaybe; - orderBy?: InputMaybe; - orderDirection?: InputMaybe; - skip?: InputMaybe; - where?: InputMaybe; -}; - - -export type PairHourDataArgs = { - first?: InputMaybe; - orderBy?: InputMaybe; - orderDirection?: InputMaybe; - skip?: InputMaybe; - where?: InputMaybe; -}; - - -export type PairLiquidityPositionSnapshotsArgs = { - first?: InputMaybe; - orderBy?: InputMaybe; - orderDirection?: InputMaybe; - skip?: InputMaybe; - where?: InputMaybe; -}; - - -export type PairLiquidityPositionsArgs = { - first?: InputMaybe; - orderBy?: InputMaybe; - orderDirection?: InputMaybe; - skip?: InputMaybe; - where?: InputMaybe; -}; - - -export type PairMintsArgs = { - first?: InputMaybe; - orderBy?: InputMaybe; - orderDirection?: InputMaybe; - skip?: InputMaybe; - where?: InputMaybe; -}; - - -export type PairSwapsArgs = { - first?: InputMaybe; - orderBy?: InputMaybe; - orderDirection?: InputMaybe; - skip?: InputMaybe; - where?: InputMaybe; -}; - -export type PairDayData = { - __typename?: 'PairDayData'; - date: Scalars['Int']['output']; - id: Scalars['ID']['output']; - pair: Pair; - reserve0: Scalars['BigDecimal']['output']; - reserve1: Scalars['BigDecimal']['output']; - reserveUSD: Scalars['BigDecimal']['output']; - token0: Token; - token1: Token; - totalSupply: Scalars['BigDecimal']['output']; - txCount: Scalars['BigInt']['output']; - volumeToken0: Scalars['BigDecimal']['output']; - volumeToken1: Scalars['BigDecimal']['output']; - volumeUSD: Scalars['BigDecimal']['output']; +export type PairDayData = { + __typename?: 'PairDayData'; + dailyTxns: Scalars['BigInt']['output']; + dailyVolumeToken0: Scalars['BigDecimal']['output']; + dailyVolumeToken1: Scalars['BigDecimal']['output']; + dailyVolumeUSD: Scalars['BigDecimal']['output']; + date: Scalars['Int']['output']; + id: Scalars['ID']['output']; + pairAddress: Scalars['Bytes']['output']; + reserve0: Scalars['BigDecimal']['output']; + reserve1: Scalars['BigDecimal']['output']; + reserveUSD: Scalars['BigDecimal']['output']; + token0: Token; + token1: Token; + totalSupply: Scalars['BigDecimal']['output']; }; export type PairDayData_Filter = { /** Filter for the block changed event. */ _change_block?: InputMaybe; and?: InputMaybe>>; + dailyTxns?: InputMaybe; + dailyTxns_gt?: InputMaybe; + dailyTxns_gte?: InputMaybe; + dailyTxns_in?: InputMaybe>; + dailyTxns_lt?: InputMaybe; + dailyTxns_lte?: InputMaybe; + dailyTxns_not?: InputMaybe; + dailyTxns_not_in?: InputMaybe>; + dailyVolumeToken0?: InputMaybe; + dailyVolumeToken0_gt?: InputMaybe; + dailyVolumeToken0_gte?: InputMaybe; + dailyVolumeToken0_in?: InputMaybe>; + dailyVolumeToken0_lt?: InputMaybe; + dailyVolumeToken0_lte?: InputMaybe; + dailyVolumeToken0_not?: InputMaybe; + dailyVolumeToken0_not_in?: InputMaybe>; + dailyVolumeToken1?: InputMaybe; + dailyVolumeToken1_gt?: InputMaybe; + dailyVolumeToken1_gte?: InputMaybe; + dailyVolumeToken1_in?: InputMaybe>; + dailyVolumeToken1_lt?: InputMaybe; + dailyVolumeToken1_lte?: InputMaybe; + dailyVolumeToken1_not?: InputMaybe; + dailyVolumeToken1_not_in?: InputMaybe>; + dailyVolumeUSD?: InputMaybe; + dailyVolumeUSD_gt?: InputMaybe; + dailyVolumeUSD_gte?: InputMaybe; + dailyVolumeUSD_in?: InputMaybe>; + dailyVolumeUSD_lt?: InputMaybe; + dailyVolumeUSD_lte?: InputMaybe; + dailyVolumeUSD_not?: InputMaybe; + dailyVolumeUSD_not_in?: InputMaybe>; date?: InputMaybe; date_gt?: InputMaybe; date_gte?: InputMaybe; @@ -1365,27 +917,16 @@ export type PairDayData_Filter = { id_not?: InputMaybe; id_not_in?: InputMaybe>; or?: InputMaybe>>; - pair?: InputMaybe; - pair_?: InputMaybe; - pair_contains?: InputMaybe; - pair_contains_nocase?: InputMaybe; - pair_ends_with?: InputMaybe; - pair_ends_with_nocase?: InputMaybe; - pair_gt?: InputMaybe; - pair_gte?: InputMaybe; - pair_in?: InputMaybe>; - pair_lt?: InputMaybe; - pair_lte?: InputMaybe; - pair_not?: InputMaybe; - pair_not_contains?: InputMaybe; - pair_not_contains_nocase?: InputMaybe; - pair_not_ends_with?: InputMaybe; - pair_not_ends_with_nocase?: InputMaybe; - pair_not_in?: InputMaybe>; - pair_not_starts_with?: InputMaybe; - pair_not_starts_with_nocase?: InputMaybe; - pair_starts_with?: InputMaybe; - pair_starts_with_nocase?: InputMaybe; + pairAddress?: InputMaybe; + pairAddress_contains?: InputMaybe; + pairAddress_gt?: InputMaybe; + pairAddress_gte?: InputMaybe; + pairAddress_in?: InputMaybe>; + pairAddress_lt?: InputMaybe; + pairAddress_lte?: InputMaybe; + pairAddress_not?: InputMaybe; + pairAddress_not_contains?: InputMaybe; + pairAddress_not_in?: InputMaybe>; reserve0?: InputMaybe; reserve0_gt?: InputMaybe; reserve0_gte?: InputMaybe; @@ -1460,62 +1001,16 @@ export type PairDayData_Filter = { totalSupply_lte?: InputMaybe; totalSupply_not?: InputMaybe; totalSupply_not_in?: InputMaybe>; - txCount?: InputMaybe; - txCount_gt?: InputMaybe; - txCount_gte?: InputMaybe; - txCount_in?: InputMaybe>; - txCount_lt?: InputMaybe; - txCount_lte?: InputMaybe; - txCount_not?: InputMaybe; - txCount_not_in?: InputMaybe>; - volumeToken0?: InputMaybe; - volumeToken0_gt?: InputMaybe; - volumeToken0_gte?: InputMaybe; - volumeToken0_in?: InputMaybe>; - volumeToken0_lt?: InputMaybe; - volumeToken0_lte?: InputMaybe; - volumeToken0_not?: InputMaybe; - volumeToken0_not_in?: InputMaybe>; - volumeToken1?: InputMaybe; - volumeToken1_gt?: InputMaybe; - volumeToken1_gte?: InputMaybe; - volumeToken1_in?: InputMaybe>; - volumeToken1_lt?: InputMaybe; - volumeToken1_lte?: InputMaybe; - volumeToken1_not?: InputMaybe; - volumeToken1_not_in?: InputMaybe>; - volumeUSD?: InputMaybe; - volumeUSD_gt?: InputMaybe; - volumeUSD_gte?: InputMaybe; - volumeUSD_in?: InputMaybe>; - volumeUSD_lt?: InputMaybe; - volumeUSD_lte?: InputMaybe; - volumeUSD_not?: InputMaybe; - volumeUSD_not_in?: InputMaybe>; }; export type PairDayData_OrderBy = + | 'dailyTxns' + | 'dailyVolumeToken0' + | 'dailyVolumeToken1' + | 'dailyVolumeUSD' | 'date' | 'id' - | 'pair' - | 'pair__block' - | 'pair__id' - | 'pair__liquidityProviderCount' - | 'pair__name' - | 'pair__reserve0' - | 'pair__reserve1' - | 'pair__reserveETH' - | 'pair__reserveUSD' - | 'pair__timestamp' - | 'pair__token0Price' - | 'pair__token1Price' - | 'pair__totalSupply' - | 'pair__trackedReserveETH' - | 'pair__txCount' - | 'pair__untrackedVolumeUSD' - | 'pair__volumeToken0' - | 'pair__volumeToken1' - | 'pair__volumeUSD' + | 'pairAddress' | 'reserve0' | 'reserve1' | 'reserveUSD' @@ -1523,59 +1018,87 @@ export type PairDayData_OrderBy = | 'token0__decimals' | 'token0__derivedETH' | 'token0__id' - | 'token0__liquidity' | 'token0__name' | 'token0__symbol' + | 'token0__totalLiquidity' | 'token0__totalSupply' + | 'token0__tradeVolume' + | 'token0__tradeVolumeUSD' | 'token0__txCount' | 'token0__untrackedVolumeUSD' - | 'token0__volume' - | 'token0__volumeUSD' | 'token1' | 'token1__decimals' | 'token1__derivedETH' | 'token1__id' - | 'token1__liquidity' | 'token1__name' | 'token1__symbol' + | 'token1__totalLiquidity' | 'token1__totalSupply' + | 'token1__tradeVolume' + | 'token1__tradeVolumeUSD' | 'token1__txCount' | 'token1__untrackedVolumeUSD' - | 'token1__volume' - | 'token1__volumeUSD' | 'totalSupply' - | 'txCount' - | 'volumeToken0' - | 'volumeToken1' - | 'volumeUSD' | '%future added value'; export type PairHourData = { __typename?: 'PairHourData'; - date: Scalars['Int']['output']; + hourStartUnix: Scalars['Int']['output']; + hourlyTxns: Scalars['BigInt']['output']; + hourlyVolumeToken0: Scalars['BigDecimal']['output']; + hourlyVolumeToken1: Scalars['BigDecimal']['output']; + hourlyVolumeUSD: Scalars['BigDecimal']['output']; id: Scalars['ID']['output']; pair: Pair; reserve0: Scalars['BigDecimal']['output']; reserve1: Scalars['BigDecimal']['output']; reserveUSD: Scalars['BigDecimal']['output']; - txCount: Scalars['BigInt']['output']; - volumeToken0: Scalars['BigDecimal']['output']; - volumeToken1: Scalars['BigDecimal']['output']; - volumeUSD: Scalars['BigDecimal']['output']; }; export type PairHourData_Filter = { /** Filter for the block changed event. */ _change_block?: InputMaybe; and?: InputMaybe>>; - date?: InputMaybe; - date_gt?: InputMaybe; - date_gte?: InputMaybe; - date_in?: InputMaybe>; - date_lt?: InputMaybe; - date_lte?: InputMaybe; - date_not?: InputMaybe; - date_not_in?: InputMaybe>; + hourStartUnix?: InputMaybe; + hourStartUnix_gt?: InputMaybe; + hourStartUnix_gte?: InputMaybe; + hourStartUnix_in?: InputMaybe>; + hourStartUnix_lt?: InputMaybe; + hourStartUnix_lte?: InputMaybe; + hourStartUnix_not?: InputMaybe; + hourStartUnix_not_in?: InputMaybe>; + hourlyTxns?: InputMaybe; + hourlyTxns_gt?: InputMaybe; + hourlyTxns_gte?: InputMaybe; + hourlyTxns_in?: InputMaybe>; + hourlyTxns_lt?: InputMaybe; + hourlyTxns_lte?: InputMaybe; + hourlyTxns_not?: InputMaybe; + hourlyTxns_not_in?: InputMaybe>; + hourlyVolumeToken0?: InputMaybe; + hourlyVolumeToken0_gt?: InputMaybe; + hourlyVolumeToken0_gte?: InputMaybe; + hourlyVolumeToken0_in?: InputMaybe>; + hourlyVolumeToken0_lt?: InputMaybe; + hourlyVolumeToken0_lte?: InputMaybe; + hourlyVolumeToken0_not?: InputMaybe; + hourlyVolumeToken0_not_in?: InputMaybe>; + hourlyVolumeToken1?: InputMaybe; + hourlyVolumeToken1_gt?: InputMaybe; + hourlyVolumeToken1_gte?: InputMaybe; + hourlyVolumeToken1_in?: InputMaybe>; + hourlyVolumeToken1_lt?: InputMaybe; + hourlyVolumeToken1_lte?: InputMaybe; + hourlyVolumeToken1_not?: InputMaybe; + hourlyVolumeToken1_not_in?: InputMaybe>; + hourlyVolumeUSD?: InputMaybe; + hourlyVolumeUSD_gt?: InputMaybe; + hourlyVolumeUSD_gte?: InputMaybe; + hourlyVolumeUSD_in?: InputMaybe>; + hourlyVolumeUSD_lt?: InputMaybe; + hourlyVolumeUSD_lte?: InputMaybe; + hourlyVolumeUSD_not?: InputMaybe; + hourlyVolumeUSD_not_in?: InputMaybe>; id?: InputMaybe; id_gt?: InputMaybe; id_gte?: InputMaybe; @@ -1630,53 +1153,24 @@ export type PairHourData_Filter = { reserveUSD_lte?: InputMaybe; reserveUSD_not?: InputMaybe; reserveUSD_not_in?: InputMaybe>; - txCount?: InputMaybe; - txCount_gt?: InputMaybe; - txCount_gte?: InputMaybe; - txCount_in?: InputMaybe>; - txCount_lt?: InputMaybe; - txCount_lte?: InputMaybe; - txCount_not?: InputMaybe; - txCount_not_in?: InputMaybe>; - volumeToken0?: InputMaybe; - volumeToken0_gt?: InputMaybe; - volumeToken0_gte?: InputMaybe; - volumeToken0_in?: InputMaybe>; - volumeToken0_lt?: InputMaybe; - volumeToken0_lte?: InputMaybe; - volumeToken0_not?: InputMaybe; - volumeToken0_not_in?: InputMaybe>; - volumeToken1?: InputMaybe; - volumeToken1_gt?: InputMaybe; - volumeToken1_gte?: InputMaybe; - volumeToken1_in?: InputMaybe>; - volumeToken1_lt?: InputMaybe; - volumeToken1_lte?: InputMaybe; - volumeToken1_not?: InputMaybe; - volumeToken1_not_in?: InputMaybe>; - volumeUSD?: InputMaybe; - volumeUSD_gt?: InputMaybe; - volumeUSD_gte?: InputMaybe; - volumeUSD_in?: InputMaybe>; - volumeUSD_lt?: InputMaybe; - volumeUSD_lte?: InputMaybe; - volumeUSD_not?: InputMaybe; - volumeUSD_not_in?: InputMaybe>; }; export type PairHourData_OrderBy = - | 'date' + | 'hourStartUnix' + | 'hourlyTxns' + | 'hourlyVolumeToken0' + | 'hourlyVolumeToken1' + | 'hourlyVolumeUSD' | 'id' | 'pair' - | 'pair__block' + | 'pair__createdAtBlockNumber' + | 'pair__createdAtTimestamp' | 'pair__id' | 'pair__liquidityProviderCount' - | 'pair__name' | 'pair__reserve0' | 'pair__reserve1' | 'pair__reserveETH' | 'pair__reserveUSD' - | 'pair__timestamp' | 'pair__token0Price' | 'pair__token1Price' | 'pair__totalSupply' @@ -1689,48 +1183,28 @@ export type PairHourData_OrderBy = | 'reserve0' | 'reserve1' | 'reserveUSD' - | 'txCount' - | 'volumeToken0' - | 'volumeToken1' - | 'volumeUSD' | '%future added value'; export type Pair_Filter = { /** Filter for the block changed event. */ _change_block?: InputMaybe; and?: InputMaybe>>; - block?: InputMaybe; - block_gt?: InputMaybe; - block_gte?: InputMaybe; - block_in?: InputMaybe>; - block_lt?: InputMaybe; - block_lte?: InputMaybe; - block_not?: InputMaybe; - block_not_in?: InputMaybe>; - burns_?: InputMaybe; - dayData_?: InputMaybe; - factory?: InputMaybe; - factory_?: InputMaybe; - factory_contains?: InputMaybe; - factory_contains_nocase?: InputMaybe; - factory_ends_with?: InputMaybe; - factory_ends_with_nocase?: InputMaybe; - factory_gt?: InputMaybe; - factory_gte?: InputMaybe; - factory_in?: InputMaybe>; - factory_lt?: InputMaybe; - factory_lte?: InputMaybe; - factory_not?: InputMaybe; - factory_not_contains?: InputMaybe; - factory_not_contains_nocase?: InputMaybe; - factory_not_ends_with?: InputMaybe; - factory_not_ends_with_nocase?: InputMaybe; - factory_not_in?: InputMaybe>; - factory_not_starts_with?: InputMaybe; - factory_not_starts_with_nocase?: InputMaybe; - factory_starts_with?: InputMaybe; - factory_starts_with_nocase?: InputMaybe; - hourData_?: InputMaybe; + createdAtBlockNumber?: InputMaybe; + createdAtBlockNumber_gt?: InputMaybe; + createdAtBlockNumber_gte?: InputMaybe; + createdAtBlockNumber_in?: InputMaybe>; + createdAtBlockNumber_lt?: InputMaybe; + createdAtBlockNumber_lte?: InputMaybe; + createdAtBlockNumber_not?: InputMaybe; + createdAtBlockNumber_not_in?: InputMaybe>; + createdAtTimestamp?: InputMaybe; + createdAtTimestamp_gt?: InputMaybe; + createdAtTimestamp_gte?: InputMaybe; + createdAtTimestamp_in?: InputMaybe>; + createdAtTimestamp_lt?: InputMaybe; + createdAtTimestamp_lte?: InputMaybe; + createdAtTimestamp_not?: InputMaybe; + createdAtTimestamp_not_in?: InputMaybe>; id?: InputMaybe; id_gt?: InputMaybe; id_gte?: InputMaybe; @@ -1739,8 +1213,6 @@ export type Pair_Filter = { id_lte?: InputMaybe; id_not?: InputMaybe; id_not_in?: InputMaybe>; - liquidityPositionSnapshots_?: InputMaybe; - liquidityPositions_?: InputMaybe; liquidityProviderCount?: InputMaybe; liquidityProviderCount_gt?: InputMaybe; liquidityProviderCount_gte?: InputMaybe; @@ -1749,27 +1221,6 @@ export type Pair_Filter = { liquidityProviderCount_lte?: InputMaybe; liquidityProviderCount_not?: InputMaybe; liquidityProviderCount_not_in?: InputMaybe>; - mints_?: InputMaybe; - name?: InputMaybe; - name_contains?: InputMaybe; - name_contains_nocase?: InputMaybe; - name_ends_with?: InputMaybe; - name_ends_with_nocase?: InputMaybe; - name_gt?: InputMaybe; - name_gte?: InputMaybe; - name_in?: InputMaybe>; - name_lt?: InputMaybe; - name_lte?: InputMaybe; - name_not?: InputMaybe; - name_not_contains?: InputMaybe; - name_not_contains_nocase?: InputMaybe; - name_not_ends_with?: InputMaybe; - name_not_ends_with_nocase?: InputMaybe; - name_not_in?: InputMaybe>; - name_not_starts_with?: InputMaybe; - name_not_starts_with_nocase?: InputMaybe; - name_starts_with?: InputMaybe; - name_starts_with_nocase?: InputMaybe; or?: InputMaybe>>; reserve0?: InputMaybe; reserve0_gt?: InputMaybe; @@ -1803,15 +1254,6 @@ export type Pair_Filter = { reserveUSD_lte?: InputMaybe; reserveUSD_not?: InputMaybe; reserveUSD_not_in?: InputMaybe>; - swaps_?: InputMaybe; - timestamp?: InputMaybe; - timestamp_gt?: InputMaybe; - timestamp_gte?: InputMaybe; - timestamp_in?: InputMaybe>; - timestamp_lt?: InputMaybe; - timestamp_lte?: InputMaybe; - timestamp_not?: InputMaybe; - timestamp_not_in?: InputMaybe>; token0?: InputMaybe; token0Price?: InputMaybe; token0Price_gt?: InputMaybe; @@ -1929,59 +1371,40 @@ export type Pair_Filter = { }; export type Pair_OrderBy = - | 'block' - | 'burns' - | 'dayData' - | 'factory' - | 'factory__id' - | 'factory__liquidityETH' - | 'factory__liquidityUSD' - | 'factory__pairCount' - | 'factory__tokenCount' - | 'factory__txCount' - | 'factory__untrackedVolumeUSD' - | 'factory__userCount' - | 'factory__volumeETH' - | 'factory__volumeUSD' - | 'hourData' + | 'createdAtBlockNumber' + | 'createdAtTimestamp' | 'id' - | 'liquidityPositionSnapshots' - | 'liquidityPositions' | 'liquidityProviderCount' - | 'mints' - | 'name' | 'reserve0' | 'reserve1' | 'reserveETH' | 'reserveUSD' - | 'swaps' - | 'timestamp' | 'token0' | 'token0Price' | 'token0__decimals' | 'token0__derivedETH' | 'token0__id' - | 'token0__liquidity' | 'token0__name' | 'token0__symbol' + | 'token0__totalLiquidity' | 'token0__totalSupply' + | 'token0__tradeVolume' + | 'token0__tradeVolumeUSD' | 'token0__txCount' | 'token0__untrackedVolumeUSD' - | 'token0__volume' - | 'token0__volumeUSD' | 'token1' | 'token1Price' | 'token1__decimals' | 'token1__derivedETH' | 'token1__id' - | 'token1__liquidity' | 'token1__name' | 'token1__symbol' + | 'token1__totalLiquidity' | 'token1__totalSupply' + | 'token1__tradeVolume' + | 'token1__tradeVolumeUSD' | 'token1__txCount' | 'token1__untrackedVolumeUSD' - | 'token1__volume' - | 'token1__volumeUSD' | 'totalSupply' | 'trackedReserveETH' | 'txCount' @@ -1999,12 +1422,6 @@ export type Query = { bundles: Array; burn?: Maybe; burns: Array; - dayData?: Maybe; - dayDatas: Array; - factories: Array; - factory?: Maybe; - hourData?: Maybe; - hourDatas: Array; liquidityPosition?: Maybe; liquidityPositionSnapshot?: Maybe; liquidityPositionSnapshots: Array; @@ -2022,11 +1439,13 @@ export type Query = { token?: Maybe; tokenDayData?: Maybe; tokenDayDatas: Array; - tokenHourData?: Maybe; - tokenHourDatas: Array; tokens: Array; transaction?: Maybe; transactions: Array; + uniswapDayData?: Maybe; + uniswapDayDatas: Array; + uniswapFactories: Array; + uniswapFactory?: Maybe; user?: Maybe; users: Array; }; @@ -2073,147 +1492,93 @@ export type QueryBurnsArgs = { }; -export type QueryDayDataArgs = { +export type QueryLiquidityPositionArgs = { block?: InputMaybe; id: Scalars['ID']['input']; subgraphError?: _SubgraphErrorPolicy_; }; -export type QueryDayDatasArgs = { +export type QueryLiquidityPositionSnapshotArgs = { block?: InputMaybe; - first?: InputMaybe; - orderBy?: InputMaybe; - orderDirection?: InputMaybe; - skip?: InputMaybe; + id: Scalars['ID']['input']; subgraphError?: _SubgraphErrorPolicy_; - where?: InputMaybe; }; -export type QueryFactoriesArgs = { +export type QueryLiquidityPositionSnapshotsArgs = { block?: InputMaybe; first?: InputMaybe; - orderBy?: InputMaybe; + orderBy?: InputMaybe; orderDirection?: InputMaybe; skip?: InputMaybe; subgraphError?: _SubgraphErrorPolicy_; - where?: InputMaybe; + where?: InputMaybe; }; -export type QueryFactoryArgs = { +export type QueryLiquidityPositionsArgs = { block?: InputMaybe; - id: Scalars['ID']['input']; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; subgraphError?: _SubgraphErrorPolicy_; + where?: InputMaybe; }; -export type QueryHourDataArgs = { +export type QueryMintArgs = { block?: InputMaybe; id: Scalars['ID']['input']; subgraphError?: _SubgraphErrorPolicy_; }; -export type QueryHourDatasArgs = { +export type QueryMintsArgs = { block?: InputMaybe; first?: InputMaybe; - orderBy?: InputMaybe; + orderBy?: InputMaybe; orderDirection?: InputMaybe; skip?: InputMaybe; subgraphError?: _SubgraphErrorPolicy_; - where?: InputMaybe; + where?: InputMaybe; }; -export type QueryLiquidityPositionArgs = { +export type QueryPairArgs = { block?: InputMaybe; id: Scalars['ID']['input']; subgraphError?: _SubgraphErrorPolicy_; }; -export type QueryLiquidityPositionSnapshotArgs = { +export type QueryPairDayDataArgs = { block?: InputMaybe; id: Scalars['ID']['input']; subgraphError?: _SubgraphErrorPolicy_; }; -export type QueryLiquidityPositionSnapshotsArgs = { +export type QueryPairDayDatasArgs = { block?: InputMaybe; first?: InputMaybe; - orderBy?: InputMaybe; + orderBy?: InputMaybe; orderDirection?: InputMaybe; skip?: InputMaybe; subgraphError?: _SubgraphErrorPolicy_; - where?: InputMaybe; + where?: InputMaybe; }; -export type QueryLiquidityPositionsArgs = { +export type QueryPairHourDataArgs = { block?: InputMaybe; - first?: InputMaybe; - orderBy?: InputMaybe; - orderDirection?: InputMaybe; - skip?: InputMaybe; + id: Scalars['ID']['input']; subgraphError?: _SubgraphErrorPolicy_; - where?: InputMaybe; }; -export type QueryMintArgs = { - block?: InputMaybe; - id: Scalars['ID']['input']; - subgraphError?: _SubgraphErrorPolicy_; -}; - - -export type QueryMintsArgs = { - block?: InputMaybe; - first?: InputMaybe; - orderBy?: InputMaybe; - orderDirection?: InputMaybe; - skip?: InputMaybe; - subgraphError?: _SubgraphErrorPolicy_; - where?: InputMaybe; -}; - - -export type QueryPairArgs = { - block?: InputMaybe; - id: Scalars['ID']['input']; - subgraphError?: _SubgraphErrorPolicy_; -}; - - -export type QueryPairDayDataArgs = { - block?: InputMaybe; - id: Scalars['ID']['input']; - subgraphError?: _SubgraphErrorPolicy_; -}; - - -export type QueryPairDayDatasArgs = { - block?: InputMaybe; - first?: InputMaybe; - orderBy?: InputMaybe; - orderDirection?: InputMaybe; - skip?: InputMaybe; - subgraphError?: _SubgraphErrorPolicy_; - where?: InputMaybe; -}; - - -export type QueryPairHourDataArgs = { - block?: InputMaybe; - id: Scalars['ID']['input']; - subgraphError?: _SubgraphErrorPolicy_; -}; - - -export type QueryPairHourDatasArgs = { +export type QueryPairHourDatasArgs = { block?: InputMaybe; first?: InputMaybe; orderBy?: InputMaybe; @@ -2278,50 +1643,68 @@ export type QueryTokenDayDatasArgs = { }; -export type QueryTokenHourDataArgs = { +export type QueryTokensArgs = { block?: InputMaybe; - id: Scalars['ID']['input']; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; subgraphError?: _SubgraphErrorPolicy_; + where?: InputMaybe; }; -export type QueryTokenHourDatasArgs = { +export type QueryTransactionArgs = { block?: InputMaybe; - first?: InputMaybe; - orderBy?: InputMaybe; - orderDirection?: InputMaybe; - skip?: InputMaybe; + id: Scalars['ID']['input']; subgraphError?: _SubgraphErrorPolicy_; - where?: InputMaybe; }; -export type QueryTokensArgs = { +export type QueryTransactionsArgs = { block?: InputMaybe; first?: InputMaybe; - orderBy?: InputMaybe; + orderBy?: InputMaybe; orderDirection?: InputMaybe; skip?: InputMaybe; subgraphError?: _SubgraphErrorPolicy_; - where?: InputMaybe; + where?: InputMaybe; }; -export type QueryTransactionArgs = { +export type QueryUniswapDayDataArgs = { block?: InputMaybe; id: Scalars['ID']['input']; subgraphError?: _SubgraphErrorPolicy_; }; -export type QueryTransactionsArgs = { +export type QueryUniswapDayDatasArgs = { block?: InputMaybe; first?: InputMaybe; - orderBy?: InputMaybe; + orderBy?: InputMaybe; orderDirection?: InputMaybe; skip?: InputMaybe; subgraphError?: _SubgraphErrorPolicy_; - where?: InputMaybe; + where?: InputMaybe; +}; + + +export type QueryUniswapFactoriesArgs = { + block?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; + where?: InputMaybe; +}; + + +export type QueryUniswapFactoryArgs = { + block?: InputMaybe; + id: Scalars['ID']['input']; + subgraphError?: _SubgraphErrorPolicy_; }; @@ -2350,12 +1733,6 @@ export type Subscription = { bundles: Array; burn?: Maybe; burns: Array; - dayData?: Maybe; - dayDatas: Array; - factories: Array; - factory?: Maybe; - hourData?: Maybe; - hourDatas: Array; liquidityPosition?: Maybe; liquidityPositionSnapshot?: Maybe; liquidityPositionSnapshots: Array; @@ -2373,11 +1750,13 @@ export type Subscription = { token?: Maybe; tokenDayData?: Maybe; tokenDayDatas: Array; - tokenHourData?: Maybe; - tokenHourDatas: Array; tokens: Array; transaction?: Maybe; transactions: Array; + uniswapDayData?: Maybe; + uniswapDayDatas: Array; + uniswapFactories: Array; + uniswapFactory?: Maybe; user?: Maybe; users: Array; }; @@ -2424,60 +1803,6 @@ export type SubscriptionBurnsArgs = { }; -export type SubscriptionDayDataArgs = { - block?: InputMaybe; - id: Scalars['ID']['input']; - subgraphError?: _SubgraphErrorPolicy_; -}; - - -export type SubscriptionDayDatasArgs = { - block?: InputMaybe; - first?: InputMaybe; - orderBy?: InputMaybe; - orderDirection?: InputMaybe; - skip?: InputMaybe; - subgraphError?: _SubgraphErrorPolicy_; - where?: InputMaybe; -}; - - -export type SubscriptionFactoriesArgs = { - block?: InputMaybe; - first?: InputMaybe; - orderBy?: InputMaybe; - orderDirection?: InputMaybe; - skip?: InputMaybe; - subgraphError?: _SubgraphErrorPolicy_; - where?: InputMaybe; -}; - - -export type SubscriptionFactoryArgs = { - block?: InputMaybe; - id: Scalars['ID']['input']; - subgraphError?: _SubgraphErrorPolicy_; -}; - - -export type SubscriptionHourDataArgs = { - block?: InputMaybe; - id: Scalars['ID']['input']; - subgraphError?: _SubgraphErrorPolicy_; -}; - - -export type SubscriptionHourDatasArgs = { - block?: InputMaybe; - first?: InputMaybe; - orderBy?: InputMaybe; - orderDirection?: InputMaybe; - skip?: InputMaybe; - subgraphError?: _SubgraphErrorPolicy_; - where?: InputMaybe; -}; - - export type SubscriptionLiquidityPositionArgs = { block?: InputMaybe; id: Scalars['ID']['input']; @@ -2629,50 +1954,68 @@ export type SubscriptionTokenDayDatasArgs = { }; -export type SubscriptionTokenHourDataArgs = { +export type SubscriptionTokensArgs = { block?: InputMaybe; - id: Scalars['ID']['input']; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; subgraphError?: _SubgraphErrorPolicy_; + where?: InputMaybe; }; -export type SubscriptionTokenHourDatasArgs = { +export type SubscriptionTransactionArgs = { block?: InputMaybe; - first?: InputMaybe; - orderBy?: InputMaybe; - orderDirection?: InputMaybe; - skip?: InputMaybe; + id: Scalars['ID']['input']; subgraphError?: _SubgraphErrorPolicy_; - where?: InputMaybe; }; -export type SubscriptionTokensArgs = { +export type SubscriptionTransactionsArgs = { block?: InputMaybe; first?: InputMaybe; - orderBy?: InputMaybe; + orderBy?: InputMaybe; orderDirection?: InputMaybe; skip?: InputMaybe; subgraphError?: _SubgraphErrorPolicy_; - where?: InputMaybe; + where?: InputMaybe; }; -export type SubscriptionTransactionArgs = { +export type SubscriptionUniswapDayDataArgs = { block?: InputMaybe; id: Scalars['ID']['input']; subgraphError?: _SubgraphErrorPolicy_; }; -export type SubscriptionTransactionsArgs = { +export type SubscriptionUniswapDayDatasArgs = { block?: InputMaybe; first?: InputMaybe; - orderBy?: InputMaybe; + orderBy?: InputMaybe; orderDirection?: InputMaybe; skip?: InputMaybe; subgraphError?: _SubgraphErrorPolicy_; - where?: InputMaybe; + where?: InputMaybe; +}; + + +export type SubscriptionUniswapFactoriesArgs = { + block?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; + where?: InputMaybe; +}; + + +export type SubscriptionUniswapFactoryArgs = { + block?: InputMaybe; + id: Scalars['ID']['input']; + subgraphError?: _SubgraphErrorPolicy_; }; @@ -2851,15 +2194,14 @@ export type Swap_OrderBy = | 'id' | 'logIndex' | 'pair' - | 'pair__block' + | 'pair__createdAtBlockNumber' + | 'pair__createdAtTimestamp' | 'pair__id' | 'pair__liquidityProviderCount' - | 'pair__name' | 'pair__reserve0' | 'pair__reserve1' | 'pair__reserveETH' | 'pair__reserveUSD' - | 'pair__timestamp' | 'pair__token0Price' | 'pair__token1Price' | 'pair__totalSupply' @@ -2874,115 +2216,78 @@ export type Swap_OrderBy = | 'to' | 'transaction' | 'transaction__blockNumber' + | 'transaction__gasPrice' + | 'transaction__gasUsed' | 'transaction__id' | 'transaction__timestamp' | '%future added value'; export type Token = { __typename?: 'Token'; - basePairs: Array; - basePairsDayData: Array; - dayData: Array; decimals: Scalars['BigInt']['output']; - derivedETH: Scalars['BigDecimal']['output']; - factory: Factory; - hourData: Array; + derivedETH?: Maybe; id: Scalars['ID']['output']; - liquidity: Scalars['BigDecimal']['output']; name: Scalars['String']['output']; - quotePairs: Array; - quotePairsDayData: Array; symbol: Scalars['String']['output']; + totalLiquidity: Scalars['BigDecimal']['output']; totalSupply: Scalars['BigInt']['output']; + tradeVolume: Scalars['BigDecimal']['output']; + tradeVolumeUSD: Scalars['BigDecimal']['output']; txCount: Scalars['BigInt']['output']; untrackedVolumeUSD: Scalars['BigDecimal']['output']; - volume: Scalars['BigDecimal']['output']; - volumeUSD: Scalars['BigDecimal']['output']; - whitelistPairs: Array; -}; - - -export type TokenBasePairsArgs = { - first?: InputMaybe; - orderBy?: InputMaybe; - orderDirection?: InputMaybe; - skip?: InputMaybe; - where?: InputMaybe; -}; - - -export type TokenBasePairsDayDataArgs = { - first?: InputMaybe; - orderBy?: InputMaybe; - orderDirection?: InputMaybe; - skip?: InputMaybe; - where?: InputMaybe; -}; - - -export type TokenDayDataArgs = { - first?: InputMaybe; - orderBy?: InputMaybe; - orderDirection?: InputMaybe; - skip?: InputMaybe; - where?: InputMaybe; -}; - - -export type TokenHourDataArgs = { - first?: InputMaybe; - orderBy?: InputMaybe; - orderDirection?: InputMaybe; - skip?: InputMaybe; - where?: InputMaybe; -}; - - -export type TokenQuotePairsArgs = { - first?: InputMaybe; - orderBy?: InputMaybe; - orderDirection?: InputMaybe; - skip?: InputMaybe; - where?: InputMaybe; -}; - - -export type TokenQuotePairsDayDataArgs = { - first?: InputMaybe; - orderBy?: InputMaybe; - orderDirection?: InputMaybe; - skip?: InputMaybe; - where?: InputMaybe; -}; - - -export type TokenWhitelistPairsArgs = { - first?: InputMaybe; - orderBy?: InputMaybe; - orderDirection?: InputMaybe; - skip?: InputMaybe; - where?: InputMaybe; }; export type TokenDayData = { __typename?: 'TokenDayData'; + dailyTxns: Scalars['BigInt']['output']; + dailyVolumeETH: Scalars['BigDecimal']['output']; + dailyVolumeToken: Scalars['BigDecimal']['output']; + dailyVolumeUSD: Scalars['BigDecimal']['output']; date: Scalars['Int']['output']; id: Scalars['ID']['output']; - liquidity: Scalars['BigDecimal']['output']; - liquidityETH: Scalars['BigDecimal']['output']; - liquidityUSD: Scalars['BigDecimal']['output']; priceUSD: Scalars['BigDecimal']['output']; token: Token; - txCount: Scalars['BigInt']['output']; - volume: Scalars['BigDecimal']['output']; - volumeETH: Scalars['BigDecimal']['output']; - volumeUSD: Scalars['BigDecimal']['output']; + totalLiquidityETH: Scalars['BigDecimal']['output']; + totalLiquidityToken: Scalars['BigDecimal']['output']; + totalLiquidityUSD: Scalars['BigDecimal']['output']; }; export type TokenDayData_Filter = { /** Filter for the block changed event. */ _change_block?: InputMaybe; and?: InputMaybe>>; + dailyTxns?: InputMaybe; + dailyTxns_gt?: InputMaybe; + dailyTxns_gte?: InputMaybe; + dailyTxns_in?: InputMaybe>; + dailyTxns_lt?: InputMaybe; + dailyTxns_lte?: InputMaybe; + dailyTxns_not?: InputMaybe; + dailyTxns_not_in?: InputMaybe>; + dailyVolumeETH?: InputMaybe; + dailyVolumeETH_gt?: InputMaybe; + dailyVolumeETH_gte?: InputMaybe; + dailyVolumeETH_in?: InputMaybe>; + dailyVolumeETH_lt?: InputMaybe; + dailyVolumeETH_lte?: InputMaybe; + dailyVolumeETH_not?: InputMaybe; + dailyVolumeETH_not_in?: InputMaybe>; + dailyVolumeToken?: InputMaybe; + dailyVolumeToken_gt?: InputMaybe; + dailyVolumeToken_gte?: InputMaybe; + dailyVolumeToken_in?: InputMaybe>; + dailyVolumeToken_lt?: InputMaybe; + dailyVolumeToken_lte?: InputMaybe; + dailyVolumeToken_not?: InputMaybe; + dailyVolumeToken_not_in?: InputMaybe>; + dailyVolumeUSD?: InputMaybe; + dailyVolumeUSD_gt?: InputMaybe; + dailyVolumeUSD_gte?: InputMaybe; + dailyVolumeUSD_in?: InputMaybe>; + dailyVolumeUSD_lt?: InputMaybe; + dailyVolumeUSD_lte?: InputMaybe; + dailyVolumeUSD_not?: InputMaybe; + dailyVolumeUSD_not_in?: InputMaybe>; date?: InputMaybe; date_gt?: InputMaybe; date_gte?: InputMaybe; @@ -2999,30 +2304,6 @@ export type TokenDayData_Filter = { id_lte?: InputMaybe; id_not?: InputMaybe; id_not_in?: InputMaybe>; - liquidity?: InputMaybe; - liquidityETH?: InputMaybe; - liquidityETH_gt?: InputMaybe; - liquidityETH_gte?: InputMaybe; - liquidityETH_in?: InputMaybe>; - liquidityETH_lt?: InputMaybe; - liquidityETH_lte?: InputMaybe; - liquidityETH_not?: InputMaybe; - liquidityETH_not_in?: InputMaybe>; - liquidityUSD?: InputMaybe; - liquidityUSD_gt?: InputMaybe; - liquidityUSD_gte?: InputMaybe; - liquidityUSD_in?: InputMaybe>; - liquidityUSD_lt?: InputMaybe; - liquidityUSD_lte?: InputMaybe; - liquidityUSD_not?: InputMaybe; - liquidityUSD_not_in?: InputMaybe>; - liquidity_gt?: InputMaybe; - liquidity_gte?: InputMaybe; - liquidity_in?: InputMaybe>; - liquidity_lt?: InputMaybe; - liquidity_lte?: InputMaybe; - liquidity_not?: InputMaybe; - liquidity_not_in?: InputMaybe>; or?: InputMaybe>>; priceUSD?: InputMaybe; priceUSD_gt?: InputMaybe; @@ -3053,220 +2334,61 @@ export type TokenDayData_Filter = { token_not_starts_with_nocase?: InputMaybe; token_starts_with?: InputMaybe; token_starts_with_nocase?: InputMaybe; - txCount?: InputMaybe; - txCount_gt?: InputMaybe; - txCount_gte?: InputMaybe; - txCount_in?: InputMaybe>; - txCount_lt?: InputMaybe; - txCount_lte?: InputMaybe; - txCount_not?: InputMaybe; - txCount_not_in?: InputMaybe>; - volume?: InputMaybe; - volumeETH?: InputMaybe; - volumeETH_gt?: InputMaybe; - volumeETH_gte?: InputMaybe; - volumeETH_in?: InputMaybe>; - volumeETH_lt?: InputMaybe; - volumeETH_lte?: InputMaybe; - volumeETH_not?: InputMaybe; - volumeETH_not_in?: InputMaybe>; - volumeUSD?: InputMaybe; - volumeUSD_gt?: InputMaybe; - volumeUSD_gte?: InputMaybe; - volumeUSD_in?: InputMaybe>; - volumeUSD_lt?: InputMaybe; - volumeUSD_lte?: InputMaybe; - volumeUSD_not?: InputMaybe; - volumeUSD_not_in?: InputMaybe>; - volume_gt?: InputMaybe; - volume_gte?: InputMaybe; - volume_in?: InputMaybe>; - volume_lt?: InputMaybe; - volume_lte?: InputMaybe; - volume_not?: InputMaybe; - volume_not_in?: InputMaybe>; + totalLiquidityETH?: InputMaybe; + totalLiquidityETH_gt?: InputMaybe; + totalLiquidityETH_gte?: InputMaybe; + totalLiquidityETH_in?: InputMaybe>; + totalLiquidityETH_lt?: InputMaybe; + totalLiquidityETH_lte?: InputMaybe; + totalLiquidityETH_not?: InputMaybe; + totalLiquidityETH_not_in?: InputMaybe>; + totalLiquidityToken?: InputMaybe; + totalLiquidityToken_gt?: InputMaybe; + totalLiquidityToken_gte?: InputMaybe; + totalLiquidityToken_in?: InputMaybe>; + totalLiquidityToken_lt?: InputMaybe; + totalLiquidityToken_lte?: InputMaybe; + totalLiquidityToken_not?: InputMaybe; + totalLiquidityToken_not_in?: InputMaybe>; + totalLiquidityUSD?: InputMaybe; + totalLiquidityUSD_gt?: InputMaybe; + totalLiquidityUSD_gte?: InputMaybe; + totalLiquidityUSD_in?: InputMaybe>; + totalLiquidityUSD_lt?: InputMaybe; + totalLiquidityUSD_lte?: InputMaybe; + totalLiquidityUSD_not?: InputMaybe; + totalLiquidityUSD_not_in?: InputMaybe>; }; export type TokenDayData_OrderBy = + | 'dailyTxns' + | 'dailyVolumeETH' + | 'dailyVolumeToken' + | 'dailyVolumeUSD' | 'date' | 'id' - | 'liquidity' - | 'liquidityETH' - | 'liquidityUSD' - | 'priceUSD' - | 'token' - | 'token__decimals' - | 'token__derivedETH' - | 'token__id' - | 'token__liquidity' - | 'token__name' - | 'token__symbol' - | 'token__totalSupply' - | 'token__txCount' - | 'token__untrackedVolumeUSD' - | 'token__volume' - | 'token__volumeUSD' - | 'txCount' - | 'volume' - | 'volumeETH' - | 'volumeUSD' - | '%future added value'; - -export type TokenHourData = { - __typename?: 'TokenHourData'; - date: Scalars['Int']['output']; - id: Scalars['ID']['output']; - liquidity: Scalars['BigDecimal']['output']; - liquidityETH: Scalars['BigDecimal']['output']; - liquidityUSD: Scalars['BigDecimal']['output']; - priceUSD: Scalars['BigDecimal']['output']; - token: Token; - txCount: Scalars['BigInt']['output']; - volume: Scalars['BigDecimal']['output']; - volumeETH: Scalars['BigDecimal']['output']; - volumeUSD: Scalars['BigDecimal']['output']; -}; - -export type TokenHourData_Filter = { - /** Filter for the block changed event. */ - _change_block?: InputMaybe; - and?: InputMaybe>>; - date?: InputMaybe; - date_gt?: InputMaybe; - date_gte?: InputMaybe; - date_in?: InputMaybe>; - date_lt?: InputMaybe; - date_lte?: InputMaybe; - date_not?: InputMaybe; - date_not_in?: InputMaybe>; - id?: InputMaybe; - id_gt?: InputMaybe; - id_gte?: InputMaybe; - id_in?: InputMaybe>; - id_lt?: InputMaybe; - id_lte?: InputMaybe; - id_not?: InputMaybe; - id_not_in?: InputMaybe>; - liquidity?: InputMaybe; - liquidityETH?: InputMaybe; - liquidityETH_gt?: InputMaybe; - liquidityETH_gte?: InputMaybe; - liquidityETH_in?: InputMaybe>; - liquidityETH_lt?: InputMaybe; - liquidityETH_lte?: InputMaybe; - liquidityETH_not?: InputMaybe; - liquidityETH_not_in?: InputMaybe>; - liquidityUSD?: InputMaybe; - liquidityUSD_gt?: InputMaybe; - liquidityUSD_gte?: InputMaybe; - liquidityUSD_in?: InputMaybe>; - liquidityUSD_lt?: InputMaybe; - liquidityUSD_lte?: InputMaybe; - liquidityUSD_not?: InputMaybe; - liquidityUSD_not_in?: InputMaybe>; - liquidity_gt?: InputMaybe; - liquidity_gte?: InputMaybe; - liquidity_in?: InputMaybe>; - liquidity_lt?: InputMaybe; - liquidity_lte?: InputMaybe; - liquidity_not?: InputMaybe; - liquidity_not_in?: InputMaybe>; - or?: InputMaybe>>; - priceUSD?: InputMaybe; - priceUSD_gt?: InputMaybe; - priceUSD_gte?: InputMaybe; - priceUSD_in?: InputMaybe>; - priceUSD_lt?: InputMaybe; - priceUSD_lte?: InputMaybe; - priceUSD_not?: InputMaybe; - priceUSD_not_in?: InputMaybe>; - token?: InputMaybe; - token_?: InputMaybe; - token_contains?: InputMaybe; - token_contains_nocase?: InputMaybe; - token_ends_with?: InputMaybe; - token_ends_with_nocase?: InputMaybe; - token_gt?: InputMaybe; - token_gte?: InputMaybe; - token_in?: InputMaybe>; - token_lt?: InputMaybe; - token_lte?: InputMaybe; - token_not?: InputMaybe; - token_not_contains?: InputMaybe; - token_not_contains_nocase?: InputMaybe; - token_not_ends_with?: InputMaybe; - token_not_ends_with_nocase?: InputMaybe; - token_not_in?: InputMaybe>; - token_not_starts_with?: InputMaybe; - token_not_starts_with_nocase?: InputMaybe; - token_starts_with?: InputMaybe; - token_starts_with_nocase?: InputMaybe; - txCount?: InputMaybe; - txCount_gt?: InputMaybe; - txCount_gte?: InputMaybe; - txCount_in?: InputMaybe>; - txCount_lt?: InputMaybe; - txCount_lte?: InputMaybe; - txCount_not?: InputMaybe; - txCount_not_in?: InputMaybe>; - volume?: InputMaybe; - volumeETH?: InputMaybe; - volumeETH_gt?: InputMaybe; - volumeETH_gte?: InputMaybe; - volumeETH_in?: InputMaybe>; - volumeETH_lt?: InputMaybe; - volumeETH_lte?: InputMaybe; - volumeETH_not?: InputMaybe; - volumeETH_not_in?: InputMaybe>; - volumeUSD?: InputMaybe; - volumeUSD_gt?: InputMaybe; - volumeUSD_gte?: InputMaybe; - volumeUSD_in?: InputMaybe>; - volumeUSD_lt?: InputMaybe; - volumeUSD_lte?: InputMaybe; - volumeUSD_not?: InputMaybe; - volumeUSD_not_in?: InputMaybe>; - volume_gt?: InputMaybe; - volume_gte?: InputMaybe; - volume_in?: InputMaybe>; - volume_lt?: InputMaybe; - volume_lte?: InputMaybe; - volume_not?: InputMaybe; - volume_not_in?: InputMaybe>; -}; - -export type TokenHourData_OrderBy = - | 'date' - | 'id' - | 'liquidity' - | 'liquidityETH' - | 'liquidityUSD' | 'priceUSD' | 'token' | 'token__decimals' | 'token__derivedETH' | 'token__id' - | 'token__liquidity' | 'token__name' | 'token__symbol' + | 'token__totalLiquidity' | 'token__totalSupply' + | 'token__tradeVolume' + | 'token__tradeVolumeUSD' | 'token__txCount' | 'token__untrackedVolumeUSD' - | 'token__volume' - | 'token__volumeUSD' - | 'txCount' - | 'volume' - | 'volumeETH' - | 'volumeUSD' + | 'totalLiquidityETH' + | 'totalLiquidityToken' + | 'totalLiquidityUSD' | '%future added value'; export type Token_Filter = { /** Filter for the block changed event. */ _change_block?: InputMaybe; and?: InputMaybe>>; - basePairsDayData_?: InputMaybe; - basePairs_?: InputMaybe; - dayData_?: InputMaybe; decimals?: InputMaybe; decimals_gt?: InputMaybe; decimals_gte?: InputMaybe; @@ -3283,28 +2405,6 @@ export type Token_Filter = { derivedETH_lte?: InputMaybe; derivedETH_not?: InputMaybe; derivedETH_not_in?: InputMaybe>; - factory?: InputMaybe; - factory_?: InputMaybe; - factory_contains?: InputMaybe; - factory_contains_nocase?: InputMaybe; - factory_ends_with?: InputMaybe; - factory_ends_with_nocase?: InputMaybe; - factory_gt?: InputMaybe; - factory_gte?: InputMaybe; - factory_in?: InputMaybe>; - factory_lt?: InputMaybe; - factory_lte?: InputMaybe; - factory_not?: InputMaybe; - factory_not_contains?: InputMaybe; - factory_not_contains_nocase?: InputMaybe; - factory_not_ends_with?: InputMaybe; - factory_not_ends_with_nocase?: InputMaybe; - factory_not_in?: InputMaybe>; - factory_not_starts_with?: InputMaybe; - factory_not_starts_with_nocase?: InputMaybe; - factory_starts_with?: InputMaybe; - factory_starts_with_nocase?: InputMaybe; - hourData_?: InputMaybe; id?: InputMaybe; id_gt?: InputMaybe; id_gte?: InputMaybe; @@ -3313,14 +2413,6 @@ export type Token_Filter = { id_lte?: InputMaybe; id_not?: InputMaybe; id_not_in?: InputMaybe>; - liquidity?: InputMaybe; - liquidity_gt?: InputMaybe; - liquidity_gte?: InputMaybe; - liquidity_in?: InputMaybe>; - liquidity_lt?: InputMaybe; - liquidity_lte?: InputMaybe; - liquidity_not?: InputMaybe; - liquidity_not_in?: InputMaybe>; name?: InputMaybe; name_contains?: InputMaybe; name_contains_nocase?: InputMaybe; @@ -3342,8 +2434,6 @@ export type Token_Filter = { name_starts_with?: InputMaybe; name_starts_with_nocase?: InputMaybe; or?: InputMaybe>>; - quotePairsDayData_?: InputMaybe; - quotePairs_?: InputMaybe; symbol?: InputMaybe; symbol_contains?: InputMaybe; symbol_contains_nocase?: InputMaybe; @@ -3364,6 +2454,14 @@ export type Token_Filter = { symbol_not_starts_with_nocase?: InputMaybe; symbol_starts_with?: InputMaybe; symbol_starts_with_nocase?: InputMaybe; + totalLiquidity?: InputMaybe; + totalLiquidity_gt?: InputMaybe; + totalLiquidity_gte?: InputMaybe; + totalLiquidity_in?: InputMaybe>; + totalLiquidity_lt?: InputMaybe; + totalLiquidity_lte?: InputMaybe; + totalLiquidity_not?: InputMaybe; + totalLiquidity_not_in?: InputMaybe>; totalSupply?: InputMaybe; totalSupply_gt?: InputMaybe; totalSupply_gte?: InputMaybe; @@ -3372,6 +2470,22 @@ export type Token_Filter = { totalSupply_lte?: InputMaybe; totalSupply_not?: InputMaybe; totalSupply_not_in?: InputMaybe>; + tradeVolume?: InputMaybe; + tradeVolumeUSD?: InputMaybe; + tradeVolumeUSD_gt?: InputMaybe; + tradeVolumeUSD_gte?: InputMaybe; + tradeVolumeUSD_in?: InputMaybe>; + tradeVolumeUSD_lt?: InputMaybe; + tradeVolumeUSD_lte?: InputMaybe; + tradeVolumeUSD_not?: InputMaybe; + tradeVolumeUSD_not_in?: InputMaybe>; + tradeVolume_gt?: InputMaybe; + tradeVolume_gte?: InputMaybe; + tradeVolume_in?: InputMaybe>; + tradeVolume_lt?: InputMaybe; + tradeVolume_lte?: InputMaybe; + tradeVolume_not?: InputMaybe; + tradeVolume_not_in?: InputMaybe>; txCount?: InputMaybe; txCount_gt?: InputMaybe; txCount_gte?: InputMaybe; @@ -3388,67 +2502,28 @@ export type Token_Filter = { untrackedVolumeUSD_lte?: InputMaybe; untrackedVolumeUSD_not?: InputMaybe; untrackedVolumeUSD_not_in?: InputMaybe>; - volume?: InputMaybe; - volumeUSD?: InputMaybe; - volumeUSD_gt?: InputMaybe; - volumeUSD_gte?: InputMaybe; - volumeUSD_in?: InputMaybe>; - volumeUSD_lt?: InputMaybe; - volumeUSD_lte?: InputMaybe; - volumeUSD_not?: InputMaybe; - volumeUSD_not_in?: InputMaybe>; - volume_gt?: InputMaybe; - volume_gte?: InputMaybe; - volume_in?: InputMaybe>; - volume_lt?: InputMaybe; - volume_lte?: InputMaybe; - volume_not?: InputMaybe; - volume_not_in?: InputMaybe>; - whitelistPairs?: InputMaybe>; - whitelistPairs_?: InputMaybe; - whitelistPairs_contains?: InputMaybe>; - whitelistPairs_contains_nocase?: InputMaybe>; - whitelistPairs_not?: InputMaybe>; - whitelistPairs_not_contains?: InputMaybe>; - whitelistPairs_not_contains_nocase?: InputMaybe>; }; export type Token_OrderBy = - | 'basePairs' - | 'basePairsDayData' - | 'dayData' | 'decimals' | 'derivedETH' - | 'factory' - | 'factory__id' - | 'factory__liquidityETH' - | 'factory__liquidityUSD' - | 'factory__pairCount' - | 'factory__tokenCount' - | 'factory__txCount' - | 'factory__untrackedVolumeUSD' - | 'factory__userCount' - | 'factory__volumeETH' - | 'factory__volumeUSD' - | 'hourData' | 'id' - | 'liquidity' | 'name' - | 'quotePairs' - | 'quotePairsDayData' | 'symbol' + | 'totalLiquidity' | 'totalSupply' + | 'tradeVolume' + | 'tradeVolumeUSD' | 'txCount' | 'untrackedVolumeUSD' - | 'volume' - | 'volumeUSD' - | 'whitelistPairs' | '%future added value'; export type Transaction = { __typename?: 'Transaction'; blockNumber: Scalars['BigInt']['output']; burns: Array>; + gasPrice: Scalars['BigInt']['output']; + gasUsed: Scalars['BigInt']['output']; id: Scalars['ID']['output']; mints: Array>; swaps: Array>; @@ -3501,6 +2576,22 @@ export type Transaction_Filter = { burns_not?: InputMaybe>; burns_not_contains?: InputMaybe>; burns_not_contains_nocase?: InputMaybe>; + gasPrice?: InputMaybe; + gasPrice_gt?: InputMaybe; + gasPrice_gte?: InputMaybe; + gasPrice_in?: InputMaybe>; + gasPrice_lt?: InputMaybe; + gasPrice_lte?: InputMaybe; + gasPrice_not?: InputMaybe; + gasPrice_not_in?: InputMaybe>; + gasUsed?: InputMaybe; + gasUsed_gt?: InputMaybe; + gasUsed_gte?: InputMaybe; + gasUsed_in?: InputMaybe>; + gasUsed_lt?: InputMaybe; + gasUsed_lte?: InputMaybe; + gasUsed_not?: InputMaybe; + gasUsed_not_in?: InputMaybe>; id?: InputMaybe; id_gt?: InputMaybe; id_gte?: InputMaybe; @@ -3537,16 +2628,227 @@ export type Transaction_Filter = { export type Transaction_OrderBy = | 'blockNumber' | 'burns' + | 'gasPrice' + | 'gasUsed' | 'id' | 'mints' | 'swaps' | 'timestamp' | '%future added value'; +export type UniswapDayData = { + __typename?: 'UniswapDayData'; + dailyVolumeETH: Scalars['BigDecimal']['output']; + dailyVolumeUSD: Scalars['BigDecimal']['output']; + dailyVolumeUntracked: Scalars['BigDecimal']['output']; + date: Scalars['Int']['output']; + id: Scalars['ID']['output']; + totalLiquidityETH: Scalars['BigDecimal']['output']; + totalLiquidityUSD: Scalars['BigDecimal']['output']; + totalVolumeETH: Scalars['BigDecimal']['output']; + totalVolumeUSD: Scalars['BigDecimal']['output']; + txCount: Scalars['BigInt']['output']; +}; + +export type UniswapDayData_Filter = { + /** Filter for the block changed event. */ + _change_block?: InputMaybe; + and?: InputMaybe>>; + dailyVolumeETH?: InputMaybe; + dailyVolumeETH_gt?: InputMaybe; + dailyVolumeETH_gte?: InputMaybe; + dailyVolumeETH_in?: InputMaybe>; + dailyVolumeETH_lt?: InputMaybe; + dailyVolumeETH_lte?: InputMaybe; + dailyVolumeETH_not?: InputMaybe; + dailyVolumeETH_not_in?: InputMaybe>; + dailyVolumeUSD?: InputMaybe; + dailyVolumeUSD_gt?: InputMaybe; + dailyVolumeUSD_gte?: InputMaybe; + dailyVolumeUSD_in?: InputMaybe>; + dailyVolumeUSD_lt?: InputMaybe; + dailyVolumeUSD_lte?: InputMaybe; + dailyVolumeUSD_not?: InputMaybe; + dailyVolumeUSD_not_in?: InputMaybe>; + dailyVolumeUntracked?: InputMaybe; + dailyVolumeUntracked_gt?: InputMaybe; + dailyVolumeUntracked_gte?: InputMaybe; + dailyVolumeUntracked_in?: InputMaybe>; + dailyVolumeUntracked_lt?: InputMaybe; + dailyVolumeUntracked_lte?: InputMaybe; + dailyVolumeUntracked_not?: InputMaybe; + dailyVolumeUntracked_not_in?: InputMaybe>; + date?: InputMaybe; + date_gt?: InputMaybe; + date_gte?: InputMaybe; + date_in?: InputMaybe>; + date_lt?: InputMaybe; + date_lte?: InputMaybe; + date_not?: InputMaybe; + date_not_in?: InputMaybe>; + id?: InputMaybe; + id_gt?: InputMaybe; + id_gte?: InputMaybe; + id_in?: InputMaybe>; + id_lt?: InputMaybe; + id_lte?: InputMaybe; + id_not?: InputMaybe; + id_not_in?: InputMaybe>; + or?: InputMaybe>>; + totalLiquidityETH?: InputMaybe; + totalLiquidityETH_gt?: InputMaybe; + totalLiquidityETH_gte?: InputMaybe; + totalLiquidityETH_in?: InputMaybe>; + totalLiquidityETH_lt?: InputMaybe; + totalLiquidityETH_lte?: InputMaybe; + totalLiquidityETH_not?: InputMaybe; + totalLiquidityETH_not_in?: InputMaybe>; + totalLiquidityUSD?: InputMaybe; + totalLiquidityUSD_gt?: InputMaybe; + totalLiquidityUSD_gte?: InputMaybe; + totalLiquidityUSD_in?: InputMaybe>; + totalLiquidityUSD_lt?: InputMaybe; + totalLiquidityUSD_lte?: InputMaybe; + totalLiquidityUSD_not?: InputMaybe; + totalLiquidityUSD_not_in?: InputMaybe>; + totalVolumeETH?: InputMaybe; + totalVolumeETH_gt?: InputMaybe; + totalVolumeETH_gte?: InputMaybe; + totalVolumeETH_in?: InputMaybe>; + totalVolumeETH_lt?: InputMaybe; + totalVolumeETH_lte?: InputMaybe; + totalVolumeETH_not?: InputMaybe; + totalVolumeETH_not_in?: InputMaybe>; + totalVolumeUSD?: InputMaybe; + totalVolumeUSD_gt?: InputMaybe; + totalVolumeUSD_gte?: InputMaybe; + totalVolumeUSD_in?: InputMaybe>; + totalVolumeUSD_lt?: InputMaybe; + totalVolumeUSD_lte?: InputMaybe; + totalVolumeUSD_not?: InputMaybe; + totalVolumeUSD_not_in?: InputMaybe>; + txCount?: InputMaybe; + txCount_gt?: InputMaybe; + txCount_gte?: InputMaybe; + txCount_in?: InputMaybe>; + txCount_lt?: InputMaybe; + txCount_lte?: InputMaybe; + txCount_not?: InputMaybe; + txCount_not_in?: InputMaybe>; +}; + +export type UniswapDayData_OrderBy = + | 'dailyVolumeETH' + | 'dailyVolumeUSD' + | 'dailyVolumeUntracked' + | 'date' + | 'id' + | 'totalLiquidityETH' + | 'totalLiquidityUSD' + | 'totalVolumeETH' + | 'totalVolumeUSD' + | 'txCount' + | '%future added value'; + +export type UniswapFactory = { + __typename?: 'UniswapFactory'; + id: Scalars['ID']['output']; + pairCount: Scalars['Int']['output']; + totalLiquidityETH: Scalars['BigDecimal']['output']; + totalLiquidityUSD: Scalars['BigDecimal']['output']; + totalVolumeETH: Scalars['BigDecimal']['output']; + totalVolumeUSD: Scalars['BigDecimal']['output']; + txCount: Scalars['BigInt']['output']; + untrackedVolumeUSD: Scalars['BigDecimal']['output']; +}; + +export type UniswapFactory_Filter = { + /** Filter for the block changed event. */ + _change_block?: InputMaybe; + and?: InputMaybe>>; + id?: InputMaybe; + id_gt?: InputMaybe; + id_gte?: InputMaybe; + id_in?: InputMaybe>; + id_lt?: InputMaybe; + id_lte?: InputMaybe; + id_not?: InputMaybe; + id_not_in?: InputMaybe>; + or?: InputMaybe>>; + pairCount?: InputMaybe; + pairCount_gt?: InputMaybe; + pairCount_gte?: InputMaybe; + pairCount_in?: InputMaybe>; + pairCount_lt?: InputMaybe; + pairCount_lte?: InputMaybe; + pairCount_not?: InputMaybe; + pairCount_not_in?: InputMaybe>; + totalLiquidityETH?: InputMaybe; + totalLiquidityETH_gt?: InputMaybe; + totalLiquidityETH_gte?: InputMaybe; + totalLiquidityETH_in?: InputMaybe>; + totalLiquidityETH_lt?: InputMaybe; + totalLiquidityETH_lte?: InputMaybe; + totalLiquidityETH_not?: InputMaybe; + totalLiquidityETH_not_in?: InputMaybe>; + totalLiquidityUSD?: InputMaybe; + totalLiquidityUSD_gt?: InputMaybe; + totalLiquidityUSD_gte?: InputMaybe; + totalLiquidityUSD_in?: InputMaybe>; + totalLiquidityUSD_lt?: InputMaybe; + totalLiquidityUSD_lte?: InputMaybe; + totalLiquidityUSD_not?: InputMaybe; + totalLiquidityUSD_not_in?: InputMaybe>; + totalVolumeETH?: InputMaybe; + totalVolumeETH_gt?: InputMaybe; + totalVolumeETH_gte?: InputMaybe; + totalVolumeETH_in?: InputMaybe>; + totalVolumeETH_lt?: InputMaybe; + totalVolumeETH_lte?: InputMaybe; + totalVolumeETH_not?: InputMaybe; + totalVolumeETH_not_in?: InputMaybe>; + totalVolumeUSD?: InputMaybe; + totalVolumeUSD_gt?: InputMaybe; + totalVolumeUSD_gte?: InputMaybe; + totalVolumeUSD_in?: InputMaybe>; + totalVolumeUSD_lt?: InputMaybe; + totalVolumeUSD_lte?: InputMaybe; + totalVolumeUSD_not?: InputMaybe; + totalVolumeUSD_not_in?: InputMaybe>; + txCount?: InputMaybe; + txCount_gt?: InputMaybe; + txCount_gte?: InputMaybe; + txCount_in?: InputMaybe>; + txCount_lt?: InputMaybe; + txCount_lte?: InputMaybe; + txCount_not?: InputMaybe; + txCount_not_in?: InputMaybe>; + untrackedVolumeUSD?: InputMaybe; + untrackedVolumeUSD_gt?: InputMaybe; + untrackedVolumeUSD_gte?: InputMaybe; + untrackedVolumeUSD_in?: InputMaybe>; + untrackedVolumeUSD_lt?: InputMaybe; + untrackedVolumeUSD_lte?: InputMaybe; + untrackedVolumeUSD_not?: InputMaybe; + untrackedVolumeUSD_not_in?: InputMaybe>; +}; + +export type UniswapFactory_OrderBy = + | 'id' + | 'pairCount' + | 'totalLiquidityETH' + | 'totalLiquidityUSD' + | 'totalVolumeETH' + | 'totalVolumeUSD' + | 'txCount' + | 'untrackedVolumeUSD' + | '%future added value'; + export type User = { __typename?: 'User'; id: Scalars['ID']['output']; - liquidityPositions: Array; + liquidityPositions?: Maybe>; + usdSwapped: Scalars['BigDecimal']['output']; }; @@ -3572,11 +2874,20 @@ export type User_Filter = { id_not_in?: InputMaybe>; liquidityPositions_?: InputMaybe; or?: InputMaybe>>; + usdSwapped?: InputMaybe; + usdSwapped_gt?: InputMaybe; + usdSwapped_gte?: InputMaybe; + usdSwapped_in?: InputMaybe>; + usdSwapped_lt?: InputMaybe; + usdSwapped_lte?: InputMaybe; + usdSwapped_not?: InputMaybe; + usdSwapped_not_in?: InputMaybe>; }; export type User_OrderBy = | 'id' | 'liquidityPositions' + | 'usdSwapped' | '%future added value'; export type _Block_ = { From 9dd9d2b8fb18faf3ce9dadc884d0fc70aac8e47e Mon Sep 17 00:00:00 2001 From: luizakp Date: Tue, 27 Aug 2024 12:04:21 -0300 Subject: [PATCH 5/5] fix format --- packages/gql/codegen.ts | 36 +++++++++++-------- .../__generated__/Ethereum.server.ts | 8 ----- .../src/uniswap-v2/__generated__/Ethereum.ts | 8 ----- 3 files changed, 22 insertions(+), 30 deletions(-) diff --git a/packages/gql/codegen.ts b/packages/gql/codegen.ts index 63d48c23d..19552e78f 100644 --- a/packages/gql/codegen.ts +++ b/packages/gql/codegen.ts @@ -1,6 +1,6 @@ import { capitalize, Network } from "@bleu/utils"; import { CodegenConfig } from "@graphql-codegen/cli"; -import dotenv from 'dotenv'; +import dotenv from "dotenv"; dotenv.config(); @@ -50,18 +50,27 @@ export const SUBGRAPHS = { [Subgraph.BalancerGauges]: { name: Subgraph.BalancerGauges, endpoints() { - return { - [Network.Ethereum]: "https://api.studio.thegraph.com/query/75376/balancer-gauges/version/latest", - [Network.Sepolia]: "https://api.studio.thegraph.com/query/24660/balancer-gauges-sepolia/version/latest", - [Network.Goerli]: "https://api.studio.thegraph.com/query/24660/balancer-gauges-sepolia/version/latest", - [Network.Polygon]: "https://api.studio.thegraph.com/query/75376/balancer-gauges-polygon/version/latest", - [Network.PolygonZKEVM]:"https://api.studio.thegraph.com/query/24660/balancer-gauges-polygon-zk/version/latest" , - [Network.Arbitrum]: "https://api.studio.thegraph.com/query/75376/balancer-gauges-arbitrum/version/latest", - [Network.Gnosis]: "https://api.studio.thegraph.com/query/75376/balancer-gauges-gnosis-chain/version/latest", - [Network.Optimism]: "https://api.studio.thegraph.com/query/75376/balancer-gauges-optimism/version/latest", - [Network.Base]: "https://api.studio.thegraph.com/query/24660/balancer-gauges-base/version/latest", - [Network.Avalanche]: "https://api.studio.thegraph.com/query/75376/balancer-gauges-avalanche/version/latest", + [Network.Ethereum]: + "https://api.studio.thegraph.com/query/75376/balancer-gauges/version/latest", + [Network.Sepolia]: + "https://api.studio.thegraph.com/query/24660/balancer-gauges-sepolia/version/latest", + [Network.Goerli]: + "https://api.studio.thegraph.com/query/24660/balancer-gauges-sepolia/version/latest", + [Network.Polygon]: + "https://api.studio.thegraph.com/query/75376/balancer-gauges-polygon/version/latest", + [Network.PolygonZKEVM]: + "https://api.studio.thegraph.com/query/24660/balancer-gauges-polygon-zk/version/latest", + [Network.Arbitrum]: + "https://api.studio.thegraph.com/query/75376/balancer-gauges-arbitrum/version/latest", + [Network.Gnosis]: + "https://api.studio.thegraph.com/query/75376/balancer-gauges-gnosis-chain/version/latest", + [Network.Optimism]: + "https://api.studio.thegraph.com/query/75376/balancer-gauges-optimism/version/latest", + [Network.Base]: + "https://api.studio.thegraph.com/query/24660/balancer-gauges-base/version/latest", + [Network.Avalanche]: + "https://api.studio.thegraph.com/query/75376/balancer-gauges-avalanche/version/latest", }; }, endpointFor(network: Network) { @@ -123,8 +132,7 @@ export const SUBGRAPHS = { [Subgraph.UniswapV2]: { name: Subgraph.UniswapV2, endpoints() { - const baseEndpoint = - `https://gateway.thegraph.com/api/${process.env.THE_GRAPH_API_KEY}/subgraphs/id/EYCKATKGBKLWvSfwvBjzfCBmGwYNdVkduYXVivCsLRFu`; + const baseEndpoint = `https://gateway.thegraph.com/api/${process.env.THE_GRAPH_API_KEY}/subgraphs/id/EYCKATKGBKLWvSfwvBjzfCBmGwYNdVkduYXVivCsLRFu`; return { [Network.Ethereum]: `${baseEndpoint}`, }; diff --git a/packages/gql/src/uniswap-v2/__generated__/Ethereum.server.ts b/packages/gql/src/uniswap-v2/__generated__/Ethereum.server.ts index de9744ee7..3b9a3f303 100644 --- a/packages/gql/src/uniswap-v2/__generated__/Ethereum.server.ts +++ b/packages/gql/src/uniswap-v2/__generated__/Ethereum.server.ts @@ -19,14 +19,8 @@ export type Scalars = { BigInt: { input: any; output: any; } Bytes: { input: any; output: any; } Int8: { input: any; output: any; } - Timestamp: { input: any; output: any; } }; -export type Aggregation_Interval = - | 'day' - | 'hour' - | '%future added value'; - export type BlockChangedFilter = { number_gte: Scalars['Int']['input']; }; @@ -2982,8 +2976,6 @@ export type _Block_ = { hash?: Maybe; /** The block number */ number: Scalars['Int']['output']; - /** The hash of the parent block */ - parentHash?: Maybe; /** Integer representation of the timestamp stored in blocks for the chain */ timestamp?: Maybe; }; diff --git a/packages/gql/src/uniswap-v2/__generated__/Ethereum.ts b/packages/gql/src/uniswap-v2/__generated__/Ethereum.ts index a4b187d3e..3f4b71fa5 100644 --- a/packages/gql/src/uniswap-v2/__generated__/Ethereum.ts +++ b/packages/gql/src/uniswap-v2/__generated__/Ethereum.ts @@ -21,14 +21,8 @@ export type Scalars = { BigInt: { input: any; output: any; } Bytes: { input: any; output: any; } Int8: { input: any; output: any; } - Timestamp: { input: any; output: any; } }; -export type Aggregation_Interval = - | 'day' - | 'hour' - | '%future added value'; - export type BlockChangedFilter = { number_gte: Scalars['Int']['input']; }; @@ -2984,8 +2978,6 @@ export type _Block_ = { hash?: Maybe; /** The block number */ number: Scalars['Int']['output']; - /** The hash of the parent block */ - parentHash?: Maybe; /** Integer representation of the timestamp stored in blocks for the chain */ timestamp?: Maybe; };