diff --git a/graphql_schema_generated.ts b/apps/api/gql/generated-schema-ast.ts similarity index 99% rename from graphql_schema_generated.ts rename to apps/api/gql/generated-schema-ast.ts index 0ef9c4552..ae73c1f66 100644 --- a/graphql_schema_generated.ts +++ b/apps/api/gql/generated-schema-ast.ts @@ -1,4 +1,4 @@ -import { gql } from 'apollo-server-express'; +import { gql } from 'graphql-request'; export const schema = gql` # # THIS FILE IS AUTOGENERATED — DO NOT EDIT IT diff --git a/schema.ts b/apps/api/gql/generated-schema.ts similarity index 99% rename from schema.ts rename to apps/api/gql/generated-schema.ts index 4251022aa..c7613e371 100644 --- a/schema.ts +++ b/apps/api/gql/generated-schema.ts @@ -2,7 +2,7 @@ * THIS FILE IS AUTOGENERATED — DO NOT EDIT IT */ import { GraphQLResolveInfo, GraphQLScalarType, GraphQLScalarTypeConfig } from 'graphql'; -import { ResolverContext } from './apps/api/gql/resolver-context'; +import { ResolverContext } from './resolver-context'; export type Maybe = T | null; export type InputMaybe = Maybe; export type Exact = { [K in keyof T]: T[K] }; diff --git a/apps/api/gql/resolvers/beets.resolvers.ts b/apps/api/gql/resolvers/beets.resolvers.ts index a471ea604..8f9cf0f57 100644 --- a/apps/api/gql/resolvers/beets.resolvers.ts +++ b/apps/api/gql/resolvers/beets.resolvers.ts @@ -1,4 +1,4 @@ -import { Resolvers } from '../../../../schema'; +import { Resolvers } from '../generated-schema'; import { beetsService } from '../../../../modules/beets/beets.service'; import { getRequiredAccountAddress, isAdminRoute } from '../../../../modules/auth/auth-context'; import { userService } from '../../../../modules/user/user.service'; diff --git a/apps/api/gql/resolvers/blocks.resolvers.ts b/apps/api/gql/resolvers/blocks.resolvers.ts index 0cefe65ee..27506f333 100644 --- a/apps/api/gql/resolvers/blocks.resolvers.ts +++ b/apps/api/gql/resolvers/blocks.resolvers.ts @@ -1,4 +1,4 @@ -import { Resolvers } from '../../../../schema'; +import { Resolvers } from '../generated-schema'; import { isAdminRoute } from '../../../../modules/auth/auth-context'; import { blocksSubgraphService } from '../../../../modules/subgraphs/blocks-subgraph/blocks-subgraph.service'; diff --git a/apps/api/gql/resolvers/content.resolvers.ts b/apps/api/gql/resolvers/content.resolvers.ts index ed07b0c4f..b1d05c6b9 100644 --- a/apps/api/gql/resolvers/content.resolvers.ts +++ b/apps/api/gql/resolvers/content.resolvers.ts @@ -1,4 +1,4 @@ -import { Resolvers } from '../../../../schema'; +import { Resolvers } from '../generated-schema'; import { headerChain } from '../../../../modules/context/header-chain'; import { SanityContentService } from '../../../../modules/content/sanity-content.service'; import { GraphQLError } from 'graphql'; diff --git a/apps/api/gql/resolvers/pool.resolvers.ts b/apps/api/gql/resolvers/pool.resolvers.ts index ed3810b14..4c1c3fdef 100644 --- a/apps/api/gql/resolvers/pool.resolvers.ts +++ b/apps/api/gql/resolvers/pool.resolvers.ts @@ -1,5 +1,5 @@ import { poolService } from '../../../../modules/pool/pool.service'; -import { GqlChain, Resolvers } from '../../../../schema'; +import { GqlChain, Resolvers } from '../generated-schema'; import { isAdminRoute } from '../../../../modules/auth/auth-context'; import { networkContext } from '../../../../modules/network/network-context.service'; import { headerChain } from '../../../../modules/context/header-chain'; diff --git a/apps/api/gql/resolvers/protocol.resolvers.ts b/apps/api/gql/resolvers/protocol.resolvers.ts index c4bb1b2c1..787d00f37 100644 --- a/apps/api/gql/resolvers/protocol.resolvers.ts +++ b/apps/api/gql/resolvers/protocol.resolvers.ts @@ -1,4 +1,4 @@ -import { GqlLatestSyncedBlocks, Resolvers } from '../../../../schema'; +import { GqlLatestSyncedBlocks, Resolvers } from '../generated-schema'; import { protocolService } from '../../../../modules/protocol/protocol.service'; import { networkContext } from '../../../../modules/network/network-context.service'; import { headerChain } from '../../../../modules/context/header-chain'; diff --git a/apps/api/gql/resolvers/scalar.resolvers.ts b/apps/api/gql/resolvers/scalar.resolvers.ts index 3e128a8aa..0787f2eb6 100644 --- a/apps/api/gql/resolvers/scalar.resolvers.ts +++ b/apps/api/gql/resolvers/scalar.resolvers.ts @@ -1,4 +1,4 @@ -import { Resolvers } from '../../../../schema'; +import { Resolvers } from '../generated-schema'; import { GraphQLScalarType, Kind } from 'graphql'; const dateScalar = new GraphQLScalarType({ diff --git a/apps/api/gql/resolvers/sftmx.resolvers.ts b/apps/api/gql/resolvers/sftmx.resolvers.ts index 79b270c40..75cba8ca5 100644 --- a/apps/api/gql/resolvers/sftmx.resolvers.ts +++ b/apps/api/gql/resolvers/sftmx.resolvers.ts @@ -1,4 +1,4 @@ -import { Resolvers } from '../../../../schema'; +import { Resolvers } from '../generated-schema'; import { SftmxController } from '../../../../modules/controllers'; const resolvers: Resolvers = { diff --git a/apps/api/gql/resolvers/sor.resolvers.ts b/apps/api/gql/resolvers/sor.resolvers.ts index 98b216dc9..b0266584d 100644 --- a/apps/api/gql/resolvers/sor.resolvers.ts +++ b/apps/api/gql/resolvers/sor.resolvers.ts @@ -1,4 +1,4 @@ -import { Resolvers } from '../../../../schema'; +import { Resolvers } from '../generated-schema'; import { sorService } from '../../../../modules/sor/sor.service'; import { headerChain } from '../../../../modules/context/header-chain'; import { GraphQLError } from 'graphql'; diff --git a/apps/api/gql/resolvers/sts.resolvers.ts b/apps/api/gql/resolvers/sts.resolvers.ts index d9fb8687b..d59fec58d 100644 --- a/apps/api/gql/resolvers/sts.resolvers.ts +++ b/apps/api/gql/resolvers/sts.resolvers.ts @@ -1,4 +1,4 @@ -import { Resolvers } from '../../../../schema'; +import { Resolvers } from '../generated-schema'; import { StakedSonicController } from '../../../../modules/controllers'; const resolvers: Resolvers = { diff --git a/apps/api/gql/resolvers/token.resolvers.ts b/apps/api/gql/resolvers/token.resolvers.ts index 1c931d58e..a9178b5fa 100644 --- a/apps/api/gql/resolvers/token.resolvers.ts +++ b/apps/api/gql/resolvers/token.resolvers.ts @@ -1,4 +1,4 @@ -import { GqlChain, GqlHistoricalTokenPrice, Resolvers } from '../../../../schema'; +import { GqlChain, GqlHistoricalTokenPrice, Resolvers } from '../generated-schema'; import _ from 'lodash'; import { isAdminRoute } from '../../../../modules/auth/auth-context'; import { tokenService } from '../../../../modules/token/token.service'; diff --git a/apps/api/gql/resolvers/user.resolvers.ts b/apps/api/gql/resolvers/user.resolvers.ts index 0d2344e8b..c37aa0524 100644 --- a/apps/api/gql/resolvers/user.resolvers.ts +++ b/apps/api/gql/resolvers/user.resolvers.ts @@ -1,4 +1,4 @@ -import { Resolvers } from '../../../../schema'; +import { Resolvers } from '../generated-schema'; import { userService } from '../../../../modules/user/user.service'; import { getRequiredAccountAddress, isAdminRoute } from '../../../../modules/auth/auth-context'; import { tokenService } from '../../../../modules/token/token.service'; diff --git a/apps/api/gql/resolvers/vebal.resolvers.ts b/apps/api/gql/resolvers/vebal.resolvers.ts index 01f3b2258..3b0bae6f3 100644 --- a/apps/api/gql/resolvers/vebal.resolvers.ts +++ b/apps/api/gql/resolvers/vebal.resolvers.ts @@ -1,4 +1,4 @@ -import { Resolvers } from '../../../../schema'; +import { Resolvers } from '../generated-schema'; import { getRequiredAccountAddress, isAdminRoute } from '../../../../modules/auth/auth-context'; import { veBalService } from '../../../../modules/vebal/vebal.service'; import { veBalVotingListService } from '../../../../modules/vebal/vebal-voting-list.service'; diff --git a/apps/api/server.ts b/apps/api/server.ts index 45a691a2a..0d1d9e8e0 100644 --- a/apps/api/server.ts +++ b/apps/api/server.ts @@ -10,7 +10,7 @@ import { corsMiddleware, lowerCaseMiddleware, sessionMiddleware } from './middle import { ApolloServerPluginDrainHttpServer } from '@apollo/server/plugin/drainHttpServer'; import { ApolloServerPluginUsageReporting } from '@apollo/server/plugin/usageReporting'; import { ApolloServerPluginLandingPageLocalDefault } from '@apollo/server/plugin/landingPage/default'; -import { schema } from '../../graphql_schema_generated'; +import { schema } from './gql/generated-schema-ast'; import { resolvers } from './gql/resolvers'; import { ResolverContext, resolverContext } from './gql/resolver-context'; import { apolloSentryPlugin } from './apollo/sentry-plugin'; diff --git a/codegen.ts b/codegen.ts index e727be325..a4fdcb6f2 100644 --- a/codegen.ts +++ b/codegen.ts @@ -121,20 +121,20 @@ const files = { }, }, }, - ['graphql_schema_generated.ts']: { + ['apps/api/gql/generated-schema-ast.ts']: { schema: './apps/api/gql/schema/*.gql', plugins: [ { add: { content: - "import { gql } from 'apollo-server-express';\nexport const schema = gql`\n#\n# THIS FILE IS AUTOGENERATED — DO NOT EDIT IT\n#\n", + "import { gql } from 'graphql-request';\nexport const schema = gql`\n#\n# THIS FILE IS AUTOGENERATED — DO NOT EDIT IT\n#\n", }, }, 'schema-ast', { add: { content: '`;', placement: 'append' } }, ], }, - ['schema.ts']: { + ['apps/api/gql/generated-schema.ts']: { schema: './apps/api/gql/schema/*.gql', plugins: [ { @@ -150,7 +150,7 @@ const files = { immutableTypes: false, useIndexSignature: true, enumsAsTypes: true, - contextType: './apps/api/gql/resolver-context#ResolverContext', + contextType: './resolver-context#ResolverContext', scalars: { Date: 'Date', UUID: 'string', diff --git a/modules/actions/snapshots/pool-snapshot-service.ts b/modules/actions/snapshots/pool-snapshot-service.ts index d1fc01ec4..7fac53eae 100644 --- a/modules/actions/snapshots/pool-snapshot-service.ts +++ b/modules/actions/snapshots/pool-snapshot-service.ts @@ -4,7 +4,7 @@ import { OrderDirection, PoolSnapshot_OrderBy, } from '../../subgraphs/balancer-subgraph/generated/balancer-subgraph-types'; -import { GqlPoolSnapshotDataRange } from '../../../schema'; +import { GqlPoolSnapshotDataRange } from '../../../apps/api/gql/generated-schema'; import moment from 'moment-timezone'; import _ from 'lodash'; import { Chain, PrismaPoolSnapshot } from '@prisma/client'; diff --git a/modules/content/content-types.ts b/modules/content/content-types.ts index 8168b55e3..1b3d7ba95 100644 --- a/modules/content/content-types.ts +++ b/modules/content/content-types.ts @@ -1,5 +1,5 @@ import { Chain } from '@prisma/client'; -import { GqlChain } from '../../schema'; +import { GqlChain } from '../../apps/api/gql/generated-schema'; export interface ConfigHomeScreen { featuredPoolGroups: HomeScreenFeaturedPoolGroup[]; diff --git a/modules/controllers/event-query-controller.ts b/modules/controllers/event-query-controller.ts index 4e7096f94..a7f7bf7e0 100644 --- a/modules/controllers/event-query-controller.ts +++ b/modules/controllers/event-query-controller.ts @@ -4,7 +4,7 @@ import { GqlPoolSwapEventV3, QueryPoolEventsArgs, GqlPoolSwapEventCowAmm, -} from '../../schema'; +} from '../../apps/api/gql/generated-schema'; import { prisma } from '../../prisma/prisma-client'; import { Chain, PoolEventType, Prisma } from '@prisma/client'; import { JoinExitEvent, SwapEvent } from '../../prisma/prisma-types'; diff --git a/modules/controllers/sftmx-controller.ts b/modules/controllers/sftmx-controller.ts index e232fe659..688de3dcc 100644 --- a/modules/controllers/sftmx-controller.ts +++ b/modules/controllers/sftmx-controller.ts @@ -13,7 +13,7 @@ import { GqlSftmxWithdrawalRequests, GqlSftmxStakingData, GqlSftmxStakingSnapshot, -} from '../../schema'; +} from '../../apps/api/gql/generated-schema'; import { AllNetworkConfigsKeyedOnChain } from '../network/network-config'; const SFTMX_STACKINGCONTRACT = AllNetworkConfigsKeyedOnChain['FANTOM'].data.sftmx!.stakingContractAddress; diff --git a/modules/controllers/sts-controller.ts b/modules/controllers/sts-controller.ts index f09c333aa..94b6ba750 100644 --- a/modules/controllers/sts-controller.ts +++ b/modules/controllers/sts-controller.ts @@ -2,7 +2,11 @@ import config from '../../config'; import { getViemClient } from '../sources/viem-client'; import { Address } from 'viem'; import { prisma } from '../../prisma/prisma-client'; -import { GqlStakedSonicData, GqlStakedSonicSnapshot, GqlStakedSonicSnapshotDataRange } from '../../schema'; +import { + GqlStakedSonicData, + GqlStakedSonicSnapshot, + GqlStakedSonicSnapshotDataRange, +} from '../../apps/api/gql/generated-schema'; import { syncStakingData } from '../actions/sts/sync-staking-data'; import { StsSubgraphService } from '../sources/subgraphs/sts-subgraph/sts.service'; import { syncSonicStakingSnapshots } from '../actions/sts/sync-staking-snapshots'; diff --git a/modules/network/network-config-types.ts b/modules/network/network-config-types.ts index 7c3ee2f32..5c3fcbaf5 100644 --- a/modules/network/network-config-types.ts +++ b/modules/network/network-config-types.ts @@ -3,7 +3,7 @@ import type { BigNumber } from 'ethers'; import type { PoolAprService } from '../pool/pool-types'; import type { UserStakedBalanceService } from '../user/user-types'; import type { BaseProvider } from '@ethersproject/providers'; -import type { GqlChain } from '../../schema'; +import type { GqlChain } from '../../apps/api/gql/generated-schema'; import type { ContentService } from '../content/content-types'; import type { YbAprConfig } from './apr-config-types'; import type { BalancerSubgraphService } from '../subgraphs/balancer-subgraph/balancer-subgraph.service'; diff --git a/modules/pool/lib/pool-gql-loader.service.ts b/modules/pool/lib/pool-gql-loader.service.ts index 8d766713e..a761f4f5b 100644 --- a/modules/pool/lib/pool-gql-loader.service.ts +++ b/modules/pool/lib/pool-gql-loader.service.ts @@ -37,7 +37,7 @@ import { GqlPoolAggregator, LiquidityManagement, GqlHook, -} from '../../../schema'; +} from '../../../apps/api/gql/generated-schema'; import { addressesMatch } from '../../web3/addresses'; import _ from 'lodash'; import { prisma } from '../../../prisma/prisma-client'; diff --git a/modules/pool/lib/pool-snapshot.service.ts b/modules/pool/lib/pool-snapshot.service.ts index 64ca73c72..7571705bd 100644 --- a/modules/pool/lib/pool-snapshot.service.ts +++ b/modules/pool/lib/pool-snapshot.service.ts @@ -4,7 +4,7 @@ import { OrderDirection, PoolSnapshot_OrderBy, } from '../../subgraphs/balancer-subgraph/generated/balancer-subgraph-types'; -import { GqlPoolSnapshotDataRange } from '../../../schema'; +import { GqlPoolSnapshotDataRange } from '../../../apps/api/gql/generated-schema'; import moment from 'moment-timezone'; import _ from 'lodash'; import { Chain, PrismaPoolSnapshot } from '@prisma/client'; diff --git a/modules/pool/lib/pool-swap.service.ts b/modules/pool/lib/pool-swap.service.ts index b30e500d9..db812629a 100644 --- a/modules/pool/lib/pool-swap.service.ts +++ b/modules/pool/lib/pool-swap.service.ts @@ -12,7 +12,7 @@ import { QueryPoolGetBatchSwapsArgs, QueryPoolGetJoinExitsArgs, QueryPoolGetSwapsArgs, -} from '../../../schema'; +} from '../../../apps/api/gql/generated-schema'; import { Chain, PrismaPoolSwap } from '@prisma/client'; import _ from 'lodash'; import { isSupportedInt, prismaBulkExecuteOperations } from '../../../prisma/prisma-util'; diff --git a/modules/pool/lib/reliquary-snapshot.service.ts b/modules/pool/lib/reliquary-snapshot.service.ts index edf532f7c..2310239ab 100644 --- a/modules/pool/lib/reliquary-snapshot.service.ts +++ b/modules/pool/lib/reliquary-snapshot.service.ts @@ -1,5 +1,5 @@ import { prisma } from '../../../prisma/prisma-client'; -import { GqlPoolSnapshotDataRange } from '../../../schema'; +import { GqlPoolSnapshotDataRange } from '../../../apps/api/gql/generated-schema'; import moment from 'moment-timezone'; import _ from 'lodash'; import { prismaBulkExecuteOperations } from '../../../prisma/prisma-util'; diff --git a/modules/pool/pool.service.ts b/modules/pool/pool.service.ts index 190a45984..b7088fc32 100644 --- a/modules/pool/pool.service.ts +++ b/modules/pool/pool.service.ts @@ -16,7 +16,7 @@ import { QueryPoolGetJoinExitsArgs, QueryPoolGetPoolsArgs, QueryPoolGetSwapsArgs, -} from '../../schema'; +} from '../../apps/api/gql/generated-schema'; import { blocksSubgraphService } from '../subgraphs/blocks-subgraph/blocks-subgraph.service'; import { tokenService } from '../token/token.service'; import { userService } from '../user/user.service'; diff --git a/modules/protocol/protocol.service.ts b/modules/protocol/protocol.service.ts index c46ee0a09..5978589bb 100644 --- a/modules/protocol/protocol.service.ts +++ b/modules/protocol/protocol.service.ts @@ -5,7 +5,7 @@ import { Chain, PrismaLastBlockSyncedCategory, PrismaUserBalanceType } from '@pr import _ from 'lodash'; import { networkContext } from '../network/network-context.service'; import { AllNetworkConfigs, AllNetworkConfigsKeyedOnChain } from '../network/network-config'; -import { GqlProtocolMetricsAggregated, GqlProtocolMetricsChain } from '../../schema'; +import { GqlProtocolMetricsAggregated, GqlProtocolMetricsChain } from '../../apps/api/gql/generated-schema'; import axios from 'axios'; interface LatestSyncedBlocks { diff --git a/modules/sor/sor.service.ts b/modules/sor/sor.service.ts index 2e1ba06d1..bb8bd7b03 100644 --- a/modules/sor/sor.service.ts +++ b/modules/sor/sor.service.ts @@ -3,7 +3,7 @@ import { GqlSorGetSwapsResponse, QuerySorGetSwapPathsArgs, QuerySorGetSwapsArgs, -} from '../../schema'; +} from '../../apps/api/gql/generated-schema'; import { sorV2Service } from './sorV2/sorPathService'; import { GetSwapsV2Input as GetSwapPathsInput } from './types'; import { getToken, getTokenAmountHuman, swapPathsZeroResponse, zeroResponse } from './utils'; diff --git a/modules/sor/sorV2/lib/poolsV2/weighted/weightedPool.ts b/modules/sor/sorV2/lib/poolsV2/weighted/weightedPool.ts index 82bba3917..63d264bb4 100644 --- a/modules/sor/sorV2/lib/poolsV2/weighted/weightedPool.ts +++ b/modules/sor/sorV2/lib/poolsV2/weighted/weightedPool.ts @@ -1,5 +1,5 @@ import { PrismaPoolAndHookWithDynamic } from '../../../../../../prisma/prisma-types'; -import { GqlPoolType } from '../../../../../../schema'; +import { GqlPoolType } from '../../../../../../apps/api/gql/generated-schema'; import { Chain } from '@prisma/client'; import { MathSol, WAD } from '../../utils/math'; import { Address, Hex, parseEther } from 'viem'; diff --git a/modules/sor/sorV2/lib/poolsV3/weighted/weightedPool.ts b/modules/sor/sorV2/lib/poolsV3/weighted/weightedPool.ts index 0e755beb2..5d788704b 100644 --- a/modules/sor/sorV2/lib/poolsV3/weighted/weightedPool.ts +++ b/modules/sor/sorV2/lib/poolsV3/weighted/weightedPool.ts @@ -4,7 +4,7 @@ import { AddKind, RemoveKind, Vault, Weighted, WeightedState, HookState } from ' import { Chain } from '@prisma/client'; import { PrismaPoolAndHookWithDynamic } from '../../../../../../prisma/prisma-types'; -import { GqlPoolType } from '../../../../../../schema'; +import { GqlPoolType } from '../../../../../../apps/api/gql/generated-schema'; import { TokenPairData } from '../../../../../sources/contracts/v3/fetch-tokenpair-data'; import { chainToChainId as chainToIdMap } from '../../../../../network/chain-id-to-chain'; diff --git a/modules/sor/sorV2/sorPathService.ts b/modules/sor/sorV2/sorPathService.ts index 697a3add5..96e67499d 100644 --- a/modules/sor/sorV2/sorPathService.ts +++ b/modules/sor/sorV2/sorPathService.ts @@ -8,7 +8,7 @@ import { GqlSorSwapRouteHop, GqlSorSwapType, GqlSwapCallDataInput, -} from '../../../schema'; +} from '../../../apps/api/gql/generated-schema'; import { Chain, Prisma, PrismaPoolType } from '@prisma/client'; import { PrismaPoolAndHookWithDynamic, prismaPoolAndHookWithDynamic } from '../../../prisma/prisma-types'; import { prisma } from '../../../prisma/prisma-client'; diff --git a/modules/sor/sorV2/swapResultV2.ts b/modules/sor/sorV2/swapResultV2.ts index 9a15047aa..53a4b9297 100644 --- a/modules/sor/sorV2/swapResultV2.ts +++ b/modules/sor/sorV2/swapResultV2.ts @@ -5,7 +5,7 @@ import { GqlPoolMinimal, GqlSorSwapRoute, GqlSorSwapRouteHop, -} from '../../../schema'; +} from '../../../apps/api/gql/generated-schema'; import { Chain } from '@prisma/client'; import { SwapResult } from '../types'; import { poolService } from '../../pool/pool.service'; diff --git a/modules/sor/types.ts b/modules/sor/types.ts index 11f87cbd6..a918fbca4 100644 --- a/modules/sor/types.ts +++ b/modules/sor/types.ts @@ -1,5 +1,10 @@ import { Chain } from '@prisma/client'; -import { GqlSorSwapType, GqlSorGetSwapsResponse, GqlSorSwapOptionsInput, GqlSwapCallDataInput } from '../../schema'; +import { + GqlSorSwapType, + GqlSorGetSwapsResponse, + GqlSorSwapOptionsInput, + GqlSwapCallDataInput, +} from '../../apps/api/gql/generated-schema'; import { TokenAmount } from '@balancer/sdk'; export interface GetSwapsInput { chain: Chain; diff --git a/modules/sor/utils.ts b/modules/sor/utils.ts index b66fda379..5f2c387c3 100644 --- a/modules/sor/utils.ts +++ b/modules/sor/utils.ts @@ -2,7 +2,7 @@ import { tokenService } from '../token/token.service'; import { Chain } from '@prisma/client'; import { AllNetworkConfigsKeyedOnChain } from '../network/network-config'; import { chainToChainId as chainToIdMap } from '../network/chain-id-to-chain'; -import { GqlSorGetSwapPaths, GqlSorGetSwapsResponse, GqlSorSwapType } from '../../schema'; +import { GqlSorGetSwapPaths, GqlSorGetSwapsResponse, GqlSorSwapType } from '../../apps/api/gql/generated-schema'; import { replaceZeroAddressWithEth } from '../web3/addresses'; import { Address } from 'viem'; import { Token, TokenAmount } from '@balancer/sdk'; diff --git a/modules/sources/subgraphs/aura/generated/aura-subgraph-types.ts b/modules/sources/subgraphs/aura/generated/aura-subgraph-types.ts index b0a76ab6a..4d370a9cf 100644 --- a/modules/sources/subgraphs/aura/generated/aura-subgraph-types.ts +++ b/modules/sources/subgraphs/aura/generated/aura-subgraph-types.ts @@ -400,7 +400,7 @@ export type VaultSchemaHistoricApRsArgs = { }; export type AllPoolsQueryVariables = Exact<{ - chainIds?: Maybe | Scalars['Int']>; + chainIds?: InputMaybe | Scalars['Int']>; }>; export type AllPoolsQuery = { @@ -427,7 +427,7 @@ export type PoolSchemaFragment = { }; export type AccountsQueryVariables = Exact<{ - ids?: Maybe | Scalars['String']>; + ids?: InputMaybe | Scalars['String']>; }>; export type AccountsQuery = { @@ -515,9 +515,10 @@ export const AccountsDocument = gql` export type SdkFunctionWrapper = ( action: (requestHeaders?: Record) => Promise, operationName: string, + operationType?: string, ) => Promise; -const defaultWrapper: SdkFunctionWrapper = (action, _operationName) => action(); +const defaultWrapper: SdkFunctionWrapper = (action, _operationName, _operationType) => action(); export function getSdk(client: GraphQLClient, withWrapper: SdkFunctionWrapper = defaultWrapper) { return { @@ -532,6 +533,7 @@ export function getSdk(client: GraphQLClient, withWrapper: SdkFunctionWrapper = ...wrappedRequestHeaders, }), 'allPools', + 'query', ); }, accounts( @@ -545,6 +547,7 @@ export function getSdk(client: GraphQLClient, withWrapper: SdkFunctionWrapper = ...wrappedRequestHeaders, }), 'accounts', + 'query', ); }, }; diff --git a/modules/sources/subgraphs/balancer-v3-pools/generated/types.ts b/modules/sources/subgraphs/balancer-v3-pools/generated/types.ts index 8fc64f8b2..9aa7de38c 100644 --- a/modules/sources/subgraphs/balancer-v3-pools/generated/types.ts +++ b/modules/sources/subgraphs/balancer-v3-pools/generated/types.ts @@ -514,7 +514,7 @@ export type FactoryFragment = { id: string; type: PoolType; version: number; - pools?: Array<{ __typename?: 'Pool'; id: string; address: string }> | null | undefined; + pools?: Array<{ __typename?: 'Pool'; id: string; address: string }> | null; }; export type TypePoolFragment = { @@ -522,17 +522,17 @@ export type TypePoolFragment = { id: string; address: string; factory: { __typename?: 'Factory'; id: string; type: PoolType; version: number }; - stableParams?: { __typename?: 'StableParams'; amp: string } | null | undefined; - weightedParams?: { __typename?: 'WeightedParams'; weights: Array } | null | undefined; + stableParams?: { __typename?: 'StableParams'; amp: string } | null; + weightedParams?: { __typename?: 'WeightedParams'; weights: Array } | null; }; export type PoolsQueryVariables = Exact<{ - skip?: Maybe; - first?: Maybe; - orderBy?: Maybe; - orderDirection?: Maybe; - where?: Maybe; - block?: Maybe; + skip?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + where?: InputMaybe; + block?: InputMaybe; }>; export type PoolsQuery = { @@ -542,8 +542,8 @@ export type PoolsQuery = { id: string; address: string; factory: { __typename?: 'Factory'; id: string; type: PoolType; version: number }; - stableParams?: { __typename?: 'StableParams'; amp: string } | null | undefined; - weightedParams?: { __typename?: 'WeightedParams'; weights: Array } | null | undefined; + stableParams?: { __typename?: 'StableParams'; amp: string } | null; + weightedParams?: { __typename?: 'WeightedParams'; weights: Array } | null; }>; }; @@ -601,9 +601,10 @@ export const PoolsDocument = gql` export type SdkFunctionWrapper = ( action: (requestHeaders?: Record) => Promise, operationName: string, + operationType?: string, ) => Promise; -const defaultWrapper: SdkFunctionWrapper = (action, _operationName) => action(); +const defaultWrapper: SdkFunctionWrapper = (action, _operationName, _operationType) => action(); export function getSdk(client: GraphQLClient, withWrapper: SdkFunctionWrapper = defaultWrapper) { return { @@ -615,6 +616,7 @@ export function getSdk(client: GraphQLClient, withWrapper: SdkFunctionWrapper = ...wrappedRequestHeaders, }), 'Pools', + 'query', ); }, }; diff --git a/modules/sources/subgraphs/balancer-v3-vault/generated/types.ts b/modules/sources/subgraphs/balancer-v3-vault/generated/types.ts index c74c7ecae..06d3d0891 100644 --- a/modules/sources/subgraphs/balancer-v3-vault/generated/types.ts +++ b/modules/sources/subgraphs/balancer-v3-vault/generated/types.ts @@ -2989,12 +2989,12 @@ export type AddRemoveFragment = { }; export type AddRemoveQueryVariables = Exact<{ - skip?: Maybe; - first?: Maybe; - orderBy?: Maybe; - orderDirection?: Maybe; - where?: Maybe; - block?: Maybe; + skip?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + where?: InputMaybe; + block?: InputMaybe; }>; export type AddRemoveQuery = { @@ -3027,12 +3027,12 @@ export type PoolBalancesFragment = { }; export type PoolBalancesQueryVariables = Exact<{ - skip?: Maybe; - first?: Maybe; - orderBy?: Maybe; - orderDirection?: Maybe; - where?: Maybe; - block?: Maybe; + skip?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + where?: InputMaybe; + block?: InputMaybe; }>; export type PoolBalancesQuery = { @@ -3056,26 +3056,23 @@ export type MetadataQueryVariables = Exact<{ [key: string]: never }>; export type MetadataQuery = { __typename?: 'Query'; - meta?: - | { - __typename?: '_Meta_'; - deployment: string; - hasIndexingErrors: boolean; - block: { __typename?: '_Block_'; number: number }; - } - | null - | undefined; + meta?: { + __typename?: '_Meta_'; + deployment: string; + hasIndexingErrors: boolean; + block: { __typename?: '_Block_'; number: number }; + } | null; }; export type PoolShareFragment = { __typename?: 'PoolShare'; id: string; balance: string }; export type PoolSharesQueryVariables = Exact<{ - skip?: Maybe; - first?: Maybe; - orderBy?: Maybe; - orderDirection?: Maybe; - where?: Maybe; - block?: Maybe; + skip?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + where?: InputMaybe; + block?: InputMaybe; }>; export type PoolSharesQuery = { @@ -3104,12 +3101,12 @@ export type PoolSnapshotFragment = { }; export type PoolSnapshotsQueryVariables = Exact<{ - skip?: Maybe; - first?: Maybe; - orderBy?: Maybe; - orderDirection?: Maybe; - where?: Maybe; - block?: Maybe; + skip?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + where?: InputMaybe; + block?: InputMaybe; }>; export type PoolSnapshotsQuery = { @@ -3163,18 +3160,15 @@ export type VaultPoolFragment = { totalProtocolYieldFee: string; paysYieldFees: boolean; scalingFactor: string; - nestedPool?: - | { - __typename?: 'Pool'; - id: string; - tokens: Array<{ - __typename?: 'PoolToken'; - address: string; - nestedPool?: { __typename?: 'Pool'; id: string } | null | undefined; - }>; - } - | null - | undefined; + nestedPool?: { + __typename?: 'Pool'; + id: string; + tokens: Array<{ + __typename?: 'PoolToken'; + address: string; + nestedPool?: { __typename?: 'Pool'; id: string } | null; + }>; + } | null; }>; rateProviders: Array<{ __typename?: 'RateProvider'; @@ -3205,12 +3199,12 @@ export type VaultPoolFragment = { }; export type PoolsQueryVariables = Exact<{ - skip?: Maybe; - first?: Maybe; - orderBy?: Maybe; - orderDirection?: Maybe; - where?: Maybe; - block?: Maybe; + skip?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + where?: InputMaybe; + block?: InputMaybe; }>; export type PoolsQuery = { @@ -3243,18 +3237,15 @@ export type PoolsQuery = { totalProtocolYieldFee: string; paysYieldFees: boolean; scalingFactor: string; - nestedPool?: - | { - __typename?: 'Pool'; - id: string; - tokens: Array<{ - __typename?: 'PoolToken'; - address: string; - nestedPool?: { __typename?: 'Pool'; id: string } | null | undefined; - }>; - } - | null - | undefined; + nestedPool?: { + __typename?: 'Pool'; + id: string; + tokens: Array<{ + __typename?: 'PoolToken'; + address: string; + nestedPool?: { __typename?: 'Pool'; id: string } | null; + }>; + } | null; }>; rateProviders: Array<{ __typename?: 'RateProvider'; @@ -3305,12 +3296,12 @@ export type SwapFragment = { }; export type SwapsQueryVariables = Exact<{ - skip?: Maybe; - first?: Maybe; - orderBy?: Maybe; - orderDirection?: Maybe; - where?: Maybe; - block?: Maybe; + skip?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + where?: InputMaybe; + block?: InputMaybe; }>; export type SwapsQuery = { @@ -3338,35 +3329,34 @@ export type SwapsQuery = { export type UserFragment = { __typename?: 'User'; id: string; - swaps?: - | Array<{ - __typename?: 'Swap'; - id: string; - pool: string; - tokenIn: string; - tokenOut: string; - tokenAmountIn: string; - tokenAmountOut: string; - swapFeeAmount: string; - blockNumber: string; - blockTimestamp: string; - transactionHash: string; - }> - | null - | undefined; - shares?: - | Array<{ __typename?: 'PoolShare'; id: string; balance: string; pool: { __typename?: 'Pool'; id: string } }> - | null - | undefined; + swaps?: Array<{ + __typename?: 'Swap'; + id: string; + pool: string; + tokenIn: string; + tokenOut: string; + tokenAmountIn: string; + tokenAmountOut: string; + swapFeeAmount: string; + blockNumber: string; + blockTimestamp: string; + transactionHash: string; + }> | null; + shares?: Array<{ + __typename?: 'PoolShare'; + id: string; + balance: string; + pool: { __typename?: 'Pool'; id: string }; + }> | null; }; export type UsersQueryVariables = Exact<{ - skip?: Maybe; - first?: Maybe; - orderBy?: Maybe; - orderDirection?: Maybe; - where?: Maybe; - block?: Maybe; + skip?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + where?: InputMaybe; + block?: InputMaybe; }>; export type UsersQuery = { @@ -3374,31 +3364,25 @@ export type UsersQuery = { users: Array<{ __typename?: 'User'; id: string; - swaps?: - | Array<{ - __typename?: 'Swap'; - id: string; - pool: string; - tokenIn: string; - tokenOut: string; - tokenAmountIn: string; - tokenAmountOut: string; - swapFeeAmount: string; - blockNumber: string; - blockTimestamp: string; - transactionHash: string; - }> - | null - | undefined; - shares?: - | Array<{ - __typename?: 'PoolShare'; - id: string; - balance: string; - pool: { __typename?: 'Pool'; id: string }; - }> - | null - | undefined; + swaps?: Array<{ + __typename?: 'Swap'; + id: string; + pool: string; + tokenIn: string; + tokenOut: string; + tokenAmountIn: string; + tokenAmountOut: string; + swapFeeAmount: string; + blockNumber: string; + blockTimestamp: string; + transactionHash: string; + }> | null; + shares?: Array<{ + __typename?: 'PoolShare'; + id: string; + balance: string; + pool: { __typename?: 'Pool'; id: string }; + }> | null; }>; }; @@ -3745,9 +3729,10 @@ export const UsersDocument = gql` export type SdkFunctionWrapper = ( action: (requestHeaders?: Record) => Promise, operationName: string, + operationType?: string, ) => Promise; -const defaultWrapper: SdkFunctionWrapper = (action, _operationName) => action(); +const defaultWrapper: SdkFunctionWrapper = (action, _operationName, _operationType) => action(); export function getSdk(client: GraphQLClient, withWrapper: SdkFunctionWrapper = defaultWrapper) { return { @@ -3762,6 +3747,7 @@ export function getSdk(client: GraphQLClient, withWrapper: SdkFunctionWrapper = ...wrappedRequestHeaders, }), 'AddRemove', + 'query', ); }, PoolBalances( @@ -3775,6 +3761,7 @@ export function getSdk(client: GraphQLClient, withWrapper: SdkFunctionWrapper = ...wrappedRequestHeaders, }), 'PoolBalances', + 'query', ); }, Metadata( @@ -3788,6 +3775,7 @@ export function getSdk(client: GraphQLClient, withWrapper: SdkFunctionWrapper = ...wrappedRequestHeaders, }), 'Metadata', + 'query', ); }, PoolShares( @@ -3801,6 +3789,7 @@ export function getSdk(client: GraphQLClient, withWrapper: SdkFunctionWrapper = ...wrappedRequestHeaders, }), 'PoolShares', + 'query', ); }, PoolSnapshots( @@ -3814,6 +3803,7 @@ export function getSdk(client: GraphQLClient, withWrapper: SdkFunctionWrapper = ...wrappedRequestHeaders, }), 'PoolSnapshots', + 'query', ); }, Pools(variables?: PoolsQueryVariables, requestHeaders?: Dom.RequestInit['headers']): Promise { @@ -3824,6 +3814,7 @@ export function getSdk(client: GraphQLClient, withWrapper: SdkFunctionWrapper = ...wrappedRequestHeaders, }), 'Pools', + 'query', ); }, Swaps(variables?: SwapsQueryVariables, requestHeaders?: Dom.RequestInit['headers']): Promise { @@ -3834,6 +3825,7 @@ export function getSdk(client: GraphQLClient, withWrapper: SdkFunctionWrapper = ...wrappedRequestHeaders, }), 'Swaps', + 'query', ); }, Users(variables?: UsersQueryVariables, requestHeaders?: Dom.RequestInit['headers']): Promise { @@ -3844,6 +3836,7 @@ export function getSdk(client: GraphQLClient, withWrapper: SdkFunctionWrapper = ...wrappedRequestHeaders, }), 'Users', + 'query', ); }, }; diff --git a/modules/sources/subgraphs/cow-amm/generated/types.ts b/modules/sources/subgraphs/cow-amm/generated/types.ts index eefd13557..39c736dad 100644 --- a/modules/sources/subgraphs/cow-amm/generated/types.ts +++ b/modules/sources/subgraphs/cow-amm/generated/types.ts @@ -1723,12 +1723,12 @@ export type CowAmmAddRemoveFragment = { }; export type AddRemovesQueryVariables = Exact<{ - skip?: Maybe; - first?: Maybe; - orderBy?: Maybe; - orderDirection?: Maybe; - where?: Maybe; - block?: Maybe; + skip?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + where?: InputMaybe; + block?: InputMaybe; }>; export type AddRemovesQuery = { @@ -1765,10 +1765,10 @@ export type CowAmmSwapFragment = { blockTimestamp: string; transactionHash: string; logIndex: string; - surplusAmount?: string | null | undefined; - surplusToken?: string | null | undefined; - swapFeeAmount?: string | null | undefined; - swapFeeToken?: string | null | undefined; + surplusAmount?: string | null; + surplusToken?: string | null; + swapFeeAmount?: string | null; + swapFeeToken?: string | null; pool: { __typename?: 'Pool'; id: string; @@ -1778,12 +1778,12 @@ export type CowAmmSwapFragment = { }; export type SwapsQueryVariables = Exact<{ - skip?: Maybe; - first?: Maybe; - orderBy?: Maybe; - orderDirection?: Maybe; - where?: Maybe; - block?: Maybe; + skip?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + where?: InputMaybe; + block?: InputMaybe; }>; export type SwapsQuery = { @@ -1801,10 +1801,10 @@ export type SwapsQuery = { blockTimestamp: string; transactionHash: string; logIndex: string; - surplusAmount?: string | null | undefined; - surplusToken?: string | null | undefined; - swapFeeAmount?: string | null | undefined; - swapFeeToken?: string | null | undefined; + surplusAmount?: string | null; + surplusToken?: string | null; + swapFeeAmount?: string | null; + swapFeeToken?: string | null; pool: { __typename?: 'Pool'; id: string; @@ -1818,26 +1818,23 @@ export type MetadataQueryVariables = Exact<{ [key: string]: never }>; export type MetadataQuery = { __typename?: 'Query'; - meta?: - | { - __typename?: '_Meta_'; - deployment: string; - hasIndexingErrors: boolean; - block: { __typename?: '_Block_'; number: number }; - } - | null - | undefined; + meta?: { + __typename?: '_Meta_'; + deployment: string; + hasIndexingErrors: boolean; + block: { __typename?: '_Block_'; number: number }; + } | null; }; export type PoolShareFragment = { __typename?: 'PoolShare'; id: string; balance: string }; export type PoolSharesQueryVariables = Exact<{ - skip?: Maybe; - first?: Maybe; - orderBy?: Maybe; - orderDirection?: Maybe; - where?: Maybe; - block?: Maybe; + skip?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + where?: InputMaybe; + block?: InputMaybe; }>; export type PoolSharesQuery = { @@ -1873,12 +1870,12 @@ export type CowAmmPoolFragment = { }; export type PoolsQueryVariables = Exact<{ - skip?: Maybe; - first?: Maybe; - orderBy?: Maybe; - orderDirection?: Maybe; - where?: Maybe; - block?: Maybe; + skip?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + where?: InputMaybe; + block?: InputMaybe; }>; export type PoolsQuery = { @@ -1909,16 +1906,16 @@ export type PoolsQuery = { weight: string; }>; }>; - _meta?: { __typename?: '_Meta_'; block: { __typename?: '_Block_'; number: number } } | null | undefined; + _meta?: { __typename?: '_Meta_'; block: { __typename?: '_Block_'; number: number } } | null; }; export type SnapshotsQueryVariables = Exact<{ - skip?: Maybe; - first?: Maybe; - orderBy?: Maybe; - orderDirection?: Maybe; - where?: Maybe; - block?: Maybe; + skip?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + where?: InputMaybe; + block?: InputMaybe; }>; export type SnapshotsQuery = { @@ -2202,9 +2199,10 @@ export const SnapshotsDocument = gql` export type SdkFunctionWrapper = ( action: (requestHeaders?: Record) => Promise, operationName: string, + operationType?: string, ) => Promise; -const defaultWrapper: SdkFunctionWrapper = (action, _operationName) => action(); +const defaultWrapper: SdkFunctionWrapper = (action, _operationName, _operationType) => action(); export function getSdk(client: GraphQLClient, withWrapper: SdkFunctionWrapper = defaultWrapper) { return { @@ -2219,6 +2217,7 @@ export function getSdk(client: GraphQLClient, withWrapper: SdkFunctionWrapper = ...wrappedRequestHeaders, }), 'AddRemoves', + 'query', ); }, Swaps(variables?: SwapsQueryVariables, requestHeaders?: Dom.RequestInit['headers']): Promise { @@ -2229,6 +2228,7 @@ export function getSdk(client: GraphQLClient, withWrapper: SdkFunctionWrapper = ...wrappedRequestHeaders, }), 'Swaps', + 'query', ); }, Metadata( @@ -2242,6 +2242,7 @@ export function getSdk(client: GraphQLClient, withWrapper: SdkFunctionWrapper = ...wrappedRequestHeaders, }), 'Metadata', + 'query', ); }, PoolShares( @@ -2255,6 +2256,7 @@ export function getSdk(client: GraphQLClient, withWrapper: SdkFunctionWrapper = ...wrappedRequestHeaders, }), 'PoolShares', + 'query', ); }, Pools(variables?: PoolsQueryVariables, requestHeaders?: Dom.RequestInit['headers']): Promise { @@ -2265,6 +2267,7 @@ export function getSdk(client: GraphQLClient, withWrapper: SdkFunctionWrapper = ...wrappedRequestHeaders, }), 'Pools', + 'query', ); }, Snapshots( @@ -2278,6 +2281,7 @@ export function getSdk(client: GraphQLClient, withWrapper: SdkFunctionWrapper = ...wrappedRequestHeaders, }), 'Snapshots', + 'query', ); }, }; diff --git a/modules/sources/subgraphs/sftmx-subgraph/generated/sftmx-subgraph-types.ts b/modules/sources/subgraphs/sftmx-subgraph/generated/sftmx-subgraph-types.ts index e7a5c2277..508dc189c 100644 --- a/modules/sources/subgraphs/sftmx-subgraph/generated/sftmx-subgraph-types.ts +++ b/modules/sources/subgraphs/sftmx-subgraph/generated/sftmx-subgraph-types.ts @@ -860,12 +860,12 @@ export enum _SubgraphErrorPolicy_ { } export type WithdrawalRequestsQueryVariables = Exact<{ - skip?: Maybe; - first?: Maybe; - orderBy?: Maybe; - orderDirection?: Maybe; - where?: Maybe; - block?: Maybe; + skip?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + where?: InputMaybe; + block?: InputMaybe; }>; export type WithdrawalRequestsQuery = { @@ -881,12 +881,12 @@ export type WithdrawalRequestsQuery = { }; export type FtmStakingSnapshotsQueryVariables = Exact<{ - skip?: Maybe; - first?: Maybe; - orderBy?: Maybe; - orderDirection?: Maybe; - where?: Maybe; - block?: Maybe; + skip?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + where?: InputMaybe; + block?: InputMaybe; }>; export type FtmStakingSnapshotsQuery = { @@ -990,9 +990,10 @@ export const FtmStakingSnapshotsDocument = gql` export type SdkFunctionWrapper = ( action: (requestHeaders?: Record) => Promise, operationName: string, + operationType?: string, ) => Promise; -const defaultWrapper: SdkFunctionWrapper = (action, _operationName) => action(); +const defaultWrapper: SdkFunctionWrapper = (action, _operationName, _operationType) => action(); export function getSdk(client: GraphQLClient, withWrapper: SdkFunctionWrapper = defaultWrapper) { return { @@ -1007,6 +1008,7 @@ export function getSdk(client: GraphQLClient, withWrapper: SdkFunctionWrapper = ...wrappedRequestHeaders, }), 'WithdrawalRequests', + 'query', ); }, ftmStakingSnapshots( @@ -1020,6 +1022,7 @@ export function getSdk(client: GraphQLClient, withWrapper: SdkFunctionWrapper = ...wrappedRequestHeaders, }), 'ftmStakingSnapshots', + 'query', ); }, }; diff --git a/modules/sources/subgraphs/sts-subgraph/generated/sts-subgraph-types.ts b/modules/sources/subgraphs/sts-subgraph/generated/sts-subgraph-types.ts index a69c741b8..a4b0c3e47 100644 --- a/modules/sources/subgraphs/sts-subgraph/generated/sts-subgraph-types.ts +++ b/modules/sources/subgraphs/sts-subgraph/generated/sts-subgraph-types.ts @@ -433,12 +433,12 @@ export enum _SubgraphErrorPolicy_ { } export type ValidatorsQueryVariables = Exact<{ - skip?: Maybe; - first?: Maybe; - orderBy?: Maybe; - orderDirection?: Maybe; - where?: Maybe; - block?: Maybe; + skip?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + where?: InputMaybe; + block?: InputMaybe; }>; export type ValidatorsQuery = { @@ -447,12 +447,12 @@ export type ValidatorsQuery = { }; export type SonicStakingSnapshotsQueryVariables = Exact<{ - skip?: Maybe; - first?: Maybe; - orderBy?: Maybe; - orderDirection?: Maybe; - where?: Maybe; - block?: Maybe; + skip?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + where?: InputMaybe; + block?: InputMaybe; }>; export type SonicStakingSnapshotsQuery = { @@ -544,9 +544,10 @@ export const SonicStakingSnapshotsDocument = gql` export type SdkFunctionWrapper = ( action: (requestHeaders?: Record) => Promise, operationName: string, + operationType?: string, ) => Promise; -const defaultWrapper: SdkFunctionWrapper = (action, _operationName) => action(); +const defaultWrapper: SdkFunctionWrapper = (action, _operationName, _operationType) => action(); export function getSdk(client: GraphQLClient, withWrapper: SdkFunctionWrapper = defaultWrapper) { return { @@ -561,6 +562,7 @@ export function getSdk(client: GraphQLClient, withWrapper: SdkFunctionWrapper = ...wrappedRequestHeaders, }), 'Validators', + 'query', ); }, SonicStakingSnapshots( @@ -574,6 +576,7 @@ export function getSdk(client: GraphQLClient, withWrapper: SdkFunctionWrapper = ...wrappedRequestHeaders, }), 'SonicStakingSnapshots', + 'query', ); }, }; diff --git a/modules/subgraphs/balancer-subgraph/generated/balancer-subgraph-types.ts b/modules/subgraphs/balancer-subgraph/generated/balancer-subgraph-types.ts index 17182c371..639599228 100644 --- a/modules/subgraphs/balancer-subgraph/generated/balancer-subgraph-types.ts +++ b/modules/subgraphs/balancer-subgraph/generated/balancer-subgraph-types.ts @@ -5883,12 +5883,12 @@ export enum _SubgraphErrorPolicy_ { } export type BalancerProtocolDataQueryVariables = Exact<{ - skip?: Maybe; - first?: Maybe; - orderBy?: Maybe; - orderDirection?: Maybe; - where?: Maybe; - block?: Maybe; + skip?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + where?: InputMaybe; + block?: InputMaybe; }>; export type BalancerProtocolDataQuery = { @@ -5905,36 +5905,30 @@ export type BalancerProtocolDataQuery = { export type BalancerUserQueryVariables = Exact<{ id: Scalars['ID']; - block?: Maybe; + block?: InputMaybe; }>; export type BalancerUserQuery = { __typename?: 'Query'; - user?: - | { - __typename?: 'User'; - id: string; - sharesOwned?: - | Array<{ - __typename?: 'PoolShare'; - id: string; - balance: string; - poolId: { __typename?: 'Pool'; id: string }; - }> - | null - | undefined; - } - | null - | undefined; + user?: { + __typename?: 'User'; + id: string; + sharesOwned?: Array<{ + __typename?: 'PoolShare'; + id: string; + balance: string; + poolId: { __typename?: 'Pool'; id: string }; + }> | null; + } | null; }; export type BalancerUsersQueryVariables = Exact<{ - skip?: Maybe; - first?: Maybe; - orderBy?: Maybe; - orderDirection?: Maybe; - where?: Maybe; - block?: Maybe; + skip?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + where?: InputMaybe; + block?: InputMaybe; }>; export type BalancerUsersQuery = { @@ -5942,34 +5936,33 @@ export type BalancerUsersQuery = { users: Array<{ __typename?: 'User'; id: string; - sharesOwned?: - | Array<{ - __typename?: 'PoolShare'; - id: string; - balance: string; - poolId: { __typename?: 'Pool'; id: string }; - }> - | null - | undefined; + sharesOwned?: Array<{ + __typename?: 'PoolShare'; + id: string; + balance: string; + poolId: { __typename?: 'Pool'; id: string }; + }> | null; }>; }; export type BalancerUserFragment = { __typename?: 'User'; id: string; - sharesOwned?: - | Array<{ __typename?: 'PoolShare'; id: string; balance: string; poolId: { __typename?: 'Pool'; id: string } }> - | null - | undefined; + sharesOwned?: Array<{ + __typename?: 'PoolShare'; + id: string; + balance: string; + poolId: { __typename?: 'Pool'; id: string }; + }> | null; }; export type BalancerPoolSharesQueryVariables = Exact<{ - skip?: Maybe; - first?: Maybe; - orderBy?: Maybe; - orderDirection?: Maybe; - where?: Maybe; - block?: Maybe; + skip?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + where?: InputMaybe; + block?: InputMaybe; }>; export type BalancerPoolSharesQuery = { @@ -5990,12 +5983,12 @@ export type BalancerPoolShareFragment = { }; export type BalancerTokenPricesQueryVariables = Exact<{ - skip?: Maybe; - first?: Maybe; - orderBy?: Maybe; - orderDirection?: Maybe; - where?: Maybe; - block?: Maybe; + skip?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + where?: InputMaybe; + block?: InputMaybe; }>; export type BalancerTokenPricesQuery = { @@ -6026,12 +6019,12 @@ export type BalancerTokenPriceFragment = { }; export type BalancerTokensQueryVariables = Exact<{ - skip?: Maybe; - first?: Maybe; - orderBy?: Maybe; - orderDirection?: Maybe; - where?: Maybe; - block?: Maybe; + skip?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + where?: InputMaybe; + block?: InputMaybe; }>; export type BalancerTokensQuery = { @@ -6039,40 +6032,40 @@ export type BalancerTokensQuery = { tokens: Array<{ __typename?: 'Token'; id: string; - symbol?: string | null | undefined; + symbol?: string | null; address: string; - latestFXPrice?: string | null | undefined; - latestUSDPrice?: string | null | undefined; + latestFXPrice?: string | null; + latestUSDPrice?: string | null; totalVolumeNotional: string; totalVolumeUSD: string; totalSwapCount: string; - latestPrice?: { __typename?: 'LatestPrice'; pricingAsset: string; price: string } | null | undefined; + latestPrice?: { __typename?: 'LatestPrice'; pricingAsset: string; price: string } | null; }>; }; export type BalancerTokenFragment = { __typename?: 'Token'; id: string; - symbol?: string | null | undefined; + symbol?: string | null; address: string; - latestFXPrice?: string | null | undefined; - latestUSDPrice?: string | null | undefined; + latestFXPrice?: string | null; + latestUSDPrice?: string | null; totalVolumeNotional: string; totalVolumeUSD: string; totalSwapCount: string; - latestPrice?: { __typename?: 'LatestPrice'; pricingAsset: string; price: string } | null | undefined; + latestPrice?: { __typename?: 'LatestPrice'; pricingAsset: string; price: string } | null; }; export type BalancerPoolFragment = { __typename?: 'Pool'; id: string; address: string; - poolType?: string | null | undefined; - poolTypeVersion?: number | null | undefined; - symbol?: string | null | undefined; - name?: string | null | undefined; + poolType?: string | null; + poolTypeVersion?: number | null; + symbol?: string | null; + name?: string | null; swapFee: string; - totalWeight?: string | null | undefined; + totalWeight?: string | null; totalSwapVolume: string; totalSwapFee: string; totalLiquidity: string; @@ -6082,61 +6075,55 @@ export type BalancerPoolFragment = { createTime: number; swapEnabled: boolean; tokensList: Array; - lowerTarget?: string | null | undefined; - upperTarget?: string | null | undefined; - mainIndex?: number | null | undefined; - wrappedIndex?: number | null | undefined; - factory?: string | null | undefined; - expiryTime?: string | null | undefined; - unitSeconds?: string | null | undefined; - principalToken?: string | null | undefined; - baseToken?: string | null | undefined; - owner?: string | null | undefined; - amp?: string | null | undefined; - alpha?: string | null | undefined; - beta?: string | null | undefined; - sqrtAlpha?: string | null | undefined; - sqrtBeta?: string | null | undefined; - root3Alpha?: string | null | undefined; - c?: string | null | undefined; - s?: string | null | undefined; - lambda?: string | null | undefined; - tauAlphaX?: string | null | undefined; - tauAlphaY?: string | null | undefined; - tauBetaX?: string | null | undefined; - tauBetaY?: string | null | undefined; - u?: string | null | undefined; - v?: string | null | undefined; - w?: string | null | undefined; - z?: string | null | undefined; - dSq?: string | null | undefined; - delta?: string | null | undefined; - epsilon?: string | null | undefined; - priceRateProviders?: - | Array<{ - __typename?: 'PriceRateProvider'; - address: string; - token: { __typename?: 'PoolToken'; address: string }; - }> - | null - | undefined; - tokens?: - | Array<{ - __typename?: 'PoolToken'; - id: string; - symbol: string; - name: string; - decimals: number; - address: string; - balance: string; - weight?: string | null | undefined; - priceRate: string; - isExemptFromYieldProtocolFee?: boolean | null | undefined; - index?: number | null | undefined; - token: { __typename?: 'Token'; latestFXPrice?: string | null | undefined }; - }> - | null - | undefined; + lowerTarget?: string | null; + upperTarget?: string | null; + mainIndex?: number | null; + wrappedIndex?: number | null; + factory?: string | null; + expiryTime?: string | null; + unitSeconds?: string | null; + principalToken?: string | null; + baseToken?: string | null; + owner?: string | null; + amp?: string | null; + alpha?: string | null; + beta?: string | null; + sqrtAlpha?: string | null; + sqrtBeta?: string | null; + root3Alpha?: string | null; + c?: string | null; + s?: string | null; + lambda?: string | null; + tauAlphaX?: string | null; + tauAlphaY?: string | null; + tauBetaX?: string | null; + tauBetaY?: string | null; + u?: string | null; + v?: string | null; + w?: string | null; + z?: string | null; + dSq?: string | null; + delta?: string | null; + epsilon?: string | null; + priceRateProviders?: Array<{ + __typename?: 'PriceRateProvider'; + address: string; + token: { __typename?: 'PoolToken'; address: string }; + }> | null; + tokens?: Array<{ + __typename?: 'PoolToken'; + id: string; + symbol: string; + name: string; + decimals: number; + address: string; + balance: string; + weight?: string | null; + priceRate: string; + isExemptFromYieldProtocolFee?: boolean | null; + index?: number | null; + token: { __typename?: 'Token'; latestFXPrice?: string | null }; + }> | null; }; export type BalancerPoolTokenFragment = { @@ -6147,20 +6134,20 @@ export type BalancerPoolTokenFragment = { decimals: number; address: string; balance: string; - weight?: string | null | undefined; + weight?: string | null; priceRate: string; - isExemptFromYieldProtocolFee?: boolean | null | undefined; - index?: number | null | undefined; - token: { __typename?: 'Token'; latestFXPrice?: string | null | undefined }; + isExemptFromYieldProtocolFee?: boolean | null; + index?: number | null; + token: { __typename?: 'Token'; latestFXPrice?: string | null }; }; export type BalancerPoolsQueryVariables = Exact<{ - skip?: Maybe; - first?: Maybe; - orderBy?: Maybe; - orderDirection?: Maybe; - where?: Maybe; - block?: Maybe; + skip?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + where?: InputMaybe; + block?: InputMaybe; }>; export type BalancerPoolsQuery = { @@ -6169,12 +6156,12 @@ export type BalancerPoolsQuery = { __typename?: 'Pool'; id: string; address: string; - poolType?: string | null | undefined; - poolTypeVersion?: number | null | undefined; - symbol?: string | null | undefined; - name?: string | null | undefined; + poolType?: string | null; + poolTypeVersion?: number | null; + symbol?: string | null; + name?: string | null; swapFee: string; - totalWeight?: string | null | undefined; + totalWeight?: string | null; totalSwapVolume: string; totalSwapFee: string; totalLiquidity: string; @@ -6184,158 +6171,143 @@ export type BalancerPoolsQuery = { createTime: number; swapEnabled: boolean; tokensList: Array; - lowerTarget?: string | null | undefined; - upperTarget?: string | null | undefined; - mainIndex?: number | null | undefined; - wrappedIndex?: number | null | undefined; - factory?: string | null | undefined; - expiryTime?: string | null | undefined; - unitSeconds?: string | null | undefined; - principalToken?: string | null | undefined; - baseToken?: string | null | undefined; - owner?: string | null | undefined; - amp?: string | null | undefined; - alpha?: string | null | undefined; - beta?: string | null | undefined; - sqrtAlpha?: string | null | undefined; - sqrtBeta?: string | null | undefined; - root3Alpha?: string | null | undefined; - c?: string | null | undefined; - s?: string | null | undefined; - lambda?: string | null | undefined; - tauAlphaX?: string | null | undefined; - tauAlphaY?: string | null | undefined; - tauBetaX?: string | null | undefined; - tauBetaY?: string | null | undefined; - u?: string | null | undefined; - v?: string | null | undefined; - w?: string | null | undefined; - z?: string | null | undefined; - dSq?: string | null | undefined; - delta?: string | null | undefined; - epsilon?: string | null | undefined; - priceRateProviders?: - | Array<{ - __typename?: 'PriceRateProvider'; - address: string; - token: { __typename?: 'PoolToken'; address: string }; - }> - | null - | undefined; - tokens?: - | Array<{ - __typename?: 'PoolToken'; - id: string; - symbol: string; - name: string; - decimals: number; - address: string; - balance: string; - weight?: string | null | undefined; - priceRate: string; - isExemptFromYieldProtocolFee?: boolean | null | undefined; - index?: number | null | undefined; - token: { __typename?: 'Token'; latestFXPrice?: string | null | undefined }; - }> - | null - | undefined; + lowerTarget?: string | null; + upperTarget?: string | null; + mainIndex?: number | null; + wrappedIndex?: number | null; + factory?: string | null; + expiryTime?: string | null; + unitSeconds?: string | null; + principalToken?: string | null; + baseToken?: string | null; + owner?: string | null; + amp?: string | null; + alpha?: string | null; + beta?: string | null; + sqrtAlpha?: string | null; + sqrtBeta?: string | null; + root3Alpha?: string | null; + c?: string | null; + s?: string | null; + lambda?: string | null; + tauAlphaX?: string | null; + tauAlphaY?: string | null; + tauBetaX?: string | null; + tauBetaY?: string | null; + u?: string | null; + v?: string | null; + w?: string | null; + z?: string | null; + dSq?: string | null; + delta?: string | null; + epsilon?: string | null; + priceRateProviders?: Array<{ + __typename?: 'PriceRateProvider'; + address: string; + token: { __typename?: 'PoolToken'; address: string }; + }> | null; + tokens?: Array<{ + __typename?: 'PoolToken'; + id: string; + symbol: string; + name: string; + decimals: number; + address: string; + balance: string; + weight?: string | null; + priceRate: string; + isExemptFromYieldProtocolFee?: boolean | null; + index?: number | null; + token: { __typename?: 'Token'; latestFXPrice?: string | null }; + }> | null; }>; }; export type BalancerPoolQueryVariables = Exact<{ id: Scalars['ID']; - block?: Maybe; + block?: InputMaybe; }>; export type BalancerPoolQuery = { __typename?: 'Query'; - pool?: - | { - __typename?: 'Pool'; - id: string; - address: string; - poolType?: string | null | undefined; - poolTypeVersion?: number | null | undefined; - symbol?: string | null | undefined; - name?: string | null | undefined; - swapFee: string; - totalWeight?: string | null | undefined; - totalSwapVolume: string; - totalSwapFee: string; - totalLiquidity: string; - totalShares: string; - swapsCount: string; - holdersCount: string; - createTime: number; - swapEnabled: boolean; - tokensList: Array; - lowerTarget?: string | null | undefined; - upperTarget?: string | null | undefined; - mainIndex?: number | null | undefined; - wrappedIndex?: number | null | undefined; - factory?: string | null | undefined; - expiryTime?: string | null | undefined; - unitSeconds?: string | null | undefined; - principalToken?: string | null | undefined; - baseToken?: string | null | undefined; - owner?: string | null | undefined; - amp?: string | null | undefined; - alpha?: string | null | undefined; - beta?: string | null | undefined; - sqrtAlpha?: string | null | undefined; - sqrtBeta?: string | null | undefined; - root3Alpha?: string | null | undefined; - c?: string | null | undefined; - s?: string | null | undefined; - lambda?: string | null | undefined; - tauAlphaX?: string | null | undefined; - tauAlphaY?: string | null | undefined; - tauBetaX?: string | null | undefined; - tauBetaY?: string | null | undefined; - u?: string | null | undefined; - v?: string | null | undefined; - w?: string | null | undefined; - z?: string | null | undefined; - dSq?: string | null | undefined; - delta?: string | null | undefined; - epsilon?: string | null | undefined; - priceRateProviders?: - | Array<{ - __typename?: 'PriceRateProvider'; - address: string; - token: { __typename?: 'PoolToken'; address: string }; - }> - | null - | undefined; - tokens?: - | Array<{ - __typename?: 'PoolToken'; - id: string; - symbol: string; - name: string; - decimals: number; - address: string; - balance: string; - weight?: string | null | undefined; - priceRate: string; - isExemptFromYieldProtocolFee?: boolean | null | undefined; - index?: number | null | undefined; - token: { __typename?: 'Token'; latestFXPrice?: string | null | undefined }; - }> - | null - | undefined; - } - | null - | undefined; + pool?: { + __typename?: 'Pool'; + id: string; + address: string; + poolType?: string | null; + poolTypeVersion?: number | null; + symbol?: string | null; + name?: string | null; + swapFee: string; + totalWeight?: string | null; + totalSwapVolume: string; + totalSwapFee: string; + totalLiquidity: string; + totalShares: string; + swapsCount: string; + holdersCount: string; + createTime: number; + swapEnabled: boolean; + tokensList: Array; + lowerTarget?: string | null; + upperTarget?: string | null; + mainIndex?: number | null; + wrappedIndex?: number | null; + factory?: string | null; + expiryTime?: string | null; + unitSeconds?: string | null; + principalToken?: string | null; + baseToken?: string | null; + owner?: string | null; + amp?: string | null; + alpha?: string | null; + beta?: string | null; + sqrtAlpha?: string | null; + sqrtBeta?: string | null; + root3Alpha?: string | null; + c?: string | null; + s?: string | null; + lambda?: string | null; + tauAlphaX?: string | null; + tauAlphaY?: string | null; + tauBetaX?: string | null; + tauBetaY?: string | null; + u?: string | null; + v?: string | null; + w?: string | null; + z?: string | null; + dSq?: string | null; + delta?: string | null; + epsilon?: string | null; + priceRateProviders?: Array<{ + __typename?: 'PriceRateProvider'; + address: string; + token: { __typename?: 'PoolToken'; address: string }; + }> | null; + tokens?: Array<{ + __typename?: 'PoolToken'; + id: string; + symbol: string; + name: string; + decimals: number; + address: string; + balance: string; + weight?: string | null; + priceRate: string; + isExemptFromYieldProtocolFee?: boolean | null; + index?: number | null; + token: { __typename?: 'Token'; latestFXPrice?: string | null }; + }> | null; + } | null; }; export type BalancerPoolHistoricalLiquiditiesQueryVariables = Exact<{ - skip?: Maybe; - first?: Maybe; - orderBy?: Maybe; - orderDirection?: Maybe; - where?: Maybe; - block?: Maybe; + skip?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + where?: InputMaybe; + block?: InputMaybe; }>; export type BalancerPoolHistoricalLiquiditiesQuery = { @@ -6353,12 +6325,12 @@ export type BalancerPoolHistoricalLiquiditiesQuery = { }; export type BalancerPoolSnapshotsQueryVariables = Exact<{ - skip?: Maybe; - first?: Maybe; - orderBy?: Maybe; - orderDirection?: Maybe; - where?: Maybe; - block?: Maybe; + skip?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + where?: InputMaybe; + block?: InputMaybe; }>; export type BalancerPoolSnapshotsQuery = { @@ -6393,12 +6365,12 @@ export type BalancerPoolSnapshotFragment = { }; export type BalancerLatestPricesQueryVariables = Exact<{ - skip?: Maybe; - first?: Maybe; - orderBy?: Maybe; - orderDirection?: Maybe; - where?: Maybe; - block?: Maybe; + skip?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + where?: InputMaybe; + block?: InputMaybe; }>; export type BalancerLatestPricesQuery = { @@ -6420,27 +6392,24 @@ export type BalancerLatestPriceQueryVariables = Exact<{ export type BalancerLatestPriceQuery = { __typename?: 'Query'; - latestPrice?: - | { - __typename?: 'LatestPrice'; - id: string; - asset: string; - price: string; - pricingAsset: string; - block: string; - poolId: { __typename?: 'Pool'; id: string }; - } - | null - | undefined; + latestPrice?: { + __typename?: 'LatestPrice'; + id: string; + asset: string; + price: string; + pricingAsset: string; + block: string; + poolId: { __typename?: 'Pool'; id: string }; + } | null; }; export type BalancerJoinExitsQueryVariables = Exact<{ - skip?: Maybe; - first?: Maybe; - orderBy?: Maybe; - orderDirection?: Maybe; - where?: Maybe; - block?: Maybe; + skip?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + where?: InputMaybe; + block?: InputMaybe; }>; export type BalancerJoinExitsQuery = { @@ -6450,11 +6419,11 @@ export type BalancerJoinExitsQuery = { amounts: Array; id: string; sender: string; - block?: string | null | undefined; + block?: string | null; timestamp: number; tx: string; type: InvestType; - valueUSD?: string | null | undefined; + valueUSD?: string | null; pool: { __typename?: 'Pool'; id: string; tokensList: Array }; }>; }; @@ -6474,11 +6443,11 @@ export type BalancerJoinExitFragment = { amounts: Array; id: string; sender: string; - block?: string | null | undefined; + block?: string | null; timestamp: number; tx: string; type: InvestType; - valueUSD?: string | null | undefined; + valueUSD?: string | null; pool: { __typename?: 'Pool'; id: string; tokensList: Array }; }; @@ -6489,38 +6458,26 @@ export type BalancerPortfolioDataQueryVariables = Exact<{ export type BalancerPortfolioDataQuery = { __typename?: 'Query'; - user?: - | { - __typename?: 'User'; - id: string; - sharesOwned?: - | Array<{ - __typename?: 'PoolShare'; - id: string; - balance: string; - poolId: { __typename?: 'Pool'; id: string }; - }> - | null - | undefined; - } - | null - | undefined; - previousUser?: - | { - __typename?: 'User'; - id: string; - sharesOwned?: - | Array<{ - __typename?: 'PoolShare'; - id: string; - balance: string; - poolId: { __typename?: 'Pool'; id: string }; - }> - | null - | undefined; - } - | null - | undefined; + user?: { + __typename?: 'User'; + id: string; + sharesOwned?: Array<{ + __typename?: 'PoolShare'; + id: string; + balance: string; + poolId: { __typename?: 'Pool'; id: string }; + }> | null; + } | null; + previousUser?: { + __typename?: 'User'; + id: string; + sharesOwned?: Array<{ + __typename?: 'PoolShare'; + id: string; + balance: string; + poolId: { __typename?: 'Pool'; id: string }; + }> | null; + } | null; }; export type BalancerPortfolioPoolsDataQueryVariables = Exact<{ @@ -6533,12 +6490,12 @@ export type BalancerPortfolioPoolsDataQuery = { __typename?: 'Pool'; id: string; address: string; - poolType?: string | null | undefined; - poolTypeVersion?: number | null | undefined; - symbol?: string | null | undefined; - name?: string | null | undefined; + poolType?: string | null; + poolTypeVersion?: number | null; + symbol?: string | null; + name?: string | null; swapFee: string; - totalWeight?: string | null | undefined; + totalWeight?: string | null; totalSwapVolume: string; totalSwapFee: string; totalLiquidity: string; @@ -6548,72 +6505,66 @@ export type BalancerPortfolioPoolsDataQuery = { createTime: number; swapEnabled: boolean; tokensList: Array; - lowerTarget?: string | null | undefined; - upperTarget?: string | null | undefined; - mainIndex?: number | null | undefined; - wrappedIndex?: number | null | undefined; - factory?: string | null | undefined; - expiryTime?: string | null | undefined; - unitSeconds?: string | null | undefined; - principalToken?: string | null | undefined; - baseToken?: string | null | undefined; - owner?: string | null | undefined; - amp?: string | null | undefined; - alpha?: string | null | undefined; - beta?: string | null | undefined; - sqrtAlpha?: string | null | undefined; - sqrtBeta?: string | null | undefined; - root3Alpha?: string | null | undefined; - c?: string | null | undefined; - s?: string | null | undefined; - lambda?: string | null | undefined; - tauAlphaX?: string | null | undefined; - tauAlphaY?: string | null | undefined; - tauBetaX?: string | null | undefined; - tauBetaY?: string | null | undefined; - u?: string | null | undefined; - v?: string | null | undefined; - w?: string | null | undefined; - z?: string | null | undefined; - dSq?: string | null | undefined; - delta?: string | null | undefined; - epsilon?: string | null | undefined; - priceRateProviders?: - | Array<{ - __typename?: 'PriceRateProvider'; - address: string; - token: { __typename?: 'PoolToken'; address: string }; - }> - | null - | undefined; - tokens?: - | Array<{ - __typename?: 'PoolToken'; - id: string; - symbol: string; - name: string; - decimals: number; - address: string; - balance: string; - weight?: string | null | undefined; - priceRate: string; - isExemptFromYieldProtocolFee?: boolean | null | undefined; - index?: number | null | undefined; - token: { __typename?: 'Token'; latestFXPrice?: string | null | undefined }; - }> - | null - | undefined; + lowerTarget?: string | null; + upperTarget?: string | null; + mainIndex?: number | null; + wrappedIndex?: number | null; + factory?: string | null; + expiryTime?: string | null; + unitSeconds?: string | null; + principalToken?: string | null; + baseToken?: string | null; + owner?: string | null; + amp?: string | null; + alpha?: string | null; + beta?: string | null; + sqrtAlpha?: string | null; + sqrtBeta?: string | null; + root3Alpha?: string | null; + c?: string | null; + s?: string | null; + lambda?: string | null; + tauAlphaX?: string | null; + tauAlphaY?: string | null; + tauBetaX?: string | null; + tauBetaY?: string | null; + u?: string | null; + v?: string | null; + w?: string | null; + z?: string | null; + dSq?: string | null; + delta?: string | null; + epsilon?: string | null; + priceRateProviders?: Array<{ + __typename?: 'PriceRateProvider'; + address: string; + token: { __typename?: 'PoolToken'; address: string }; + }> | null; + tokens?: Array<{ + __typename?: 'PoolToken'; + id: string; + symbol: string; + name: string; + decimals: number; + address: string; + balance: string; + weight?: string | null; + priceRate: string; + isExemptFromYieldProtocolFee?: boolean | null; + index?: number | null; + token: { __typename?: 'Token'; latestFXPrice?: string | null }; + }> | null; }>; previousPools: Array<{ __typename?: 'Pool'; id: string; address: string; - poolType?: string | null | undefined; - poolTypeVersion?: number | null | undefined; - symbol?: string | null | undefined; - name?: string | null | undefined; + poolType?: string | null; + poolTypeVersion?: number | null; + symbol?: string | null; + name?: string | null; swapFee: string; - totalWeight?: string | null | undefined; + totalWeight?: string | null; totalSwapVolume: string; totalSwapFee: string; totalLiquidity: string; @@ -6623,71 +6574,65 @@ export type BalancerPortfolioPoolsDataQuery = { createTime: number; swapEnabled: boolean; tokensList: Array; - lowerTarget?: string | null | undefined; - upperTarget?: string | null | undefined; - mainIndex?: number | null | undefined; - wrappedIndex?: number | null | undefined; - factory?: string | null | undefined; - expiryTime?: string | null | undefined; - unitSeconds?: string | null | undefined; - principalToken?: string | null | undefined; - baseToken?: string | null | undefined; - owner?: string | null | undefined; - amp?: string | null | undefined; - alpha?: string | null | undefined; - beta?: string | null | undefined; - sqrtAlpha?: string | null | undefined; - sqrtBeta?: string | null | undefined; - root3Alpha?: string | null | undefined; - c?: string | null | undefined; - s?: string | null | undefined; - lambda?: string | null | undefined; - tauAlphaX?: string | null | undefined; - tauAlphaY?: string | null | undefined; - tauBetaX?: string | null | undefined; - tauBetaY?: string | null | undefined; - u?: string | null | undefined; - v?: string | null | undefined; - w?: string | null | undefined; - z?: string | null | undefined; - dSq?: string | null | undefined; - delta?: string | null | undefined; - epsilon?: string | null | undefined; - priceRateProviders?: - | Array<{ - __typename?: 'PriceRateProvider'; - address: string; - token: { __typename?: 'PoolToken'; address: string }; - }> - | null - | undefined; - tokens?: - | Array<{ - __typename?: 'PoolToken'; - id: string; - symbol: string; - name: string; - decimals: number; - address: string; - balance: string; - weight?: string | null | undefined; - priceRate: string; - isExemptFromYieldProtocolFee?: boolean | null | undefined; - index?: number | null | undefined; - token: { __typename?: 'Token'; latestFXPrice?: string | null | undefined }; - }> - | null - | undefined; + lowerTarget?: string | null; + upperTarget?: string | null; + mainIndex?: number | null; + wrappedIndex?: number | null; + factory?: string | null; + expiryTime?: string | null; + unitSeconds?: string | null; + principalToken?: string | null; + baseToken?: string | null; + owner?: string | null; + amp?: string | null; + alpha?: string | null; + beta?: string | null; + sqrtAlpha?: string | null; + sqrtBeta?: string | null; + root3Alpha?: string | null; + c?: string | null; + s?: string | null; + lambda?: string | null; + tauAlphaX?: string | null; + tauAlphaY?: string | null; + tauBetaX?: string | null; + tauBetaY?: string | null; + u?: string | null; + v?: string | null; + w?: string | null; + z?: string | null; + dSq?: string | null; + delta?: string | null; + epsilon?: string | null; + priceRateProviders?: Array<{ + __typename?: 'PriceRateProvider'; + address: string; + token: { __typename?: 'PoolToken'; address: string }; + }> | null; + tokens?: Array<{ + __typename?: 'PoolToken'; + id: string; + symbol: string; + name: string; + decimals: number; + address: string; + balance: string; + weight?: string | null; + priceRate: string; + isExemptFromYieldProtocolFee?: boolean | null; + index?: number | null; + token: { __typename?: 'Token'; latestFXPrice?: string | null }; + }> | null; }>; }; export type BalancerTradePairSnapshotsQueryVariables = Exact<{ - skip?: Maybe; - first?: Maybe; - orderBy?: Maybe; - orderDirection?: Maybe; - where?: Maybe; - block?: Maybe; + skip?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + where?: InputMaybe; + block?: InputMaybe; }>; export type BalancerTradePairSnapshotsQuery = { @@ -6700,8 +6645,8 @@ export type BalancerTradePairSnapshotsQuery = { timestamp: number; pair: { __typename?: 'TradePair'; - token0: { __typename?: 'Token'; address: string; symbol?: string | null | undefined }; - token1: { __typename?: 'Token'; address: string; symbol?: string | null | undefined }; + token0: { __typename?: 'Token'; address: string; symbol?: string | null }; + token1: { __typename?: 'Token'; address: string; symbol?: string | null }; }; }>; }; @@ -6714,18 +6659,18 @@ export type BalancerTradePairSnapshotFragment = { timestamp: number; pair: { __typename?: 'TradePair'; - token0: { __typename?: 'Token'; address: string; symbol?: string | null | undefined }; - token1: { __typename?: 'Token'; address: string; symbol?: string | null | undefined }; + token0: { __typename?: 'Token'; address: string; symbol?: string | null }; + token1: { __typename?: 'Token'; address: string; symbol?: string | null }; }; }; export type BalancerSwapsQueryVariables = Exact<{ - skip?: Maybe; - first?: Maybe; - orderBy?: Maybe; - orderDirection?: Maybe; - where?: Maybe; - block?: Maybe; + skip?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + where?: InputMaybe; + block?: InputMaybe; }>; export type BalancerSwapsQuery = { @@ -6743,19 +6688,16 @@ export type BalancerSwapsQuery = { timestamp: number; tx: string; valueUSD: string; - block?: string | null | undefined; + block?: string | null; poolId: { __typename?: 'Pool'; id: string; swapFee: string; - poolType?: string | null | undefined; - tokens?: - | Array<{ - __typename?: 'PoolToken'; - token: { __typename?: 'Token'; address: string; latestFXPrice?: string | null | undefined }; - }> - | null - | undefined; + poolType?: string | null; + tokens?: Array<{ + __typename?: 'PoolToken'; + token: { __typename?: 'Token'; address: string; latestFXPrice?: string | null }; + }> | null; }; userAddress: { __typename?: 'User'; id: string }; }>; @@ -6774,30 +6716,27 @@ export type BalancerSwapFragment = { timestamp: number; tx: string; valueUSD: string; - block?: string | null | undefined; + block?: string | null; poolId: { __typename?: 'Pool'; id: string; swapFee: string; - poolType?: string | null | undefined; - tokens?: - | Array<{ - __typename?: 'PoolToken'; - token: { __typename?: 'Token'; address: string; latestFXPrice?: string | null | undefined }; - }> - | null - | undefined; + poolType?: string | null; + tokens?: Array<{ + __typename?: 'PoolToken'; + token: { __typename?: 'Token'; address: string; latestFXPrice?: string | null }; + }> | null; }; userAddress: { __typename?: 'User'; id: string }; }; export type BalancerAmpUpdatesQueryVariables = Exact<{ - skip?: Maybe; - first?: Maybe; - orderBy?: Maybe; - orderDirection?: Maybe; - where?: Maybe; - block?: Maybe; + skip?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + where?: InputMaybe; + block?: InputMaybe; }>; export type BalancerAmpUpdatesQuery = { @@ -6824,12 +6763,12 @@ export type BalancerAmpUpdateFragment = { }; export type BalancerGradualWeightUpdatesQueryVariables = Exact<{ - skip?: Maybe; - first?: Maybe; - orderBy?: Maybe; - orderDirection?: Maybe; - where?: Maybe; - block?: Maybe; + skip?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + where?: InputMaybe; + block?: InputMaybe; }>; export type BalancerGradualWeightUpdatesQuery = { @@ -6867,15 +6806,12 @@ export type BalancerGetMetaQueryVariables = Exact<{ [key: string]: never }>; export type BalancerGetMetaQuery = { __typename?: 'Query'; - meta?: - | { - __typename?: '_Meta_'; - deployment: string; - hasIndexingErrors: boolean; - block: { __typename?: '_Block_'; number: number }; - } - | null - | undefined; + meta?: { + __typename?: '_Meta_'; + deployment: string; + hasIndexingErrors: boolean; + block: { __typename?: '_Block_'; number: number }; + } | null; }; export type PoolBalancesFragment = { @@ -6883,19 +6819,22 @@ export type PoolBalancesFragment = { id: string; address: string; totalShares: string; - tokens?: - | Array<{ __typename?: 'PoolToken'; address: string; decimals: number; balance: string; priceRate: string }> - | null - | undefined; + tokens?: Array<{ + __typename?: 'PoolToken'; + address: string; + decimals: number; + balance: string; + priceRate: string; + }> | null; }; export type PoolBalancesQueryVariables = Exact<{ - skip?: Maybe; - first?: Maybe; - orderBy?: Maybe; - orderDirection?: Maybe; - where?: Maybe; - block?: Maybe; + skip?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + where?: InputMaybe; + block?: InputMaybe; }>; export type PoolBalancesQuery = { @@ -6905,10 +6844,13 @@ export type PoolBalancesQuery = { id: string; address: string; totalShares: string; - tokens?: - | Array<{ __typename?: 'PoolToken'; address: string; decimals: number; balance: string; priceRate: string }> - | null - | undefined; + tokens?: Array<{ + __typename?: 'PoolToken'; + address: string; + decimals: number; + balance: string; + priceRate: string; + }> | null; }>; }; @@ -7585,9 +7527,10 @@ export const PoolBalancesDocument = gql` export type SdkFunctionWrapper = ( action: (requestHeaders?: Record) => Promise, operationName: string, + operationType?: string, ) => Promise; -const defaultWrapper: SdkFunctionWrapper = (action, _operationName) => action(); +const defaultWrapper: SdkFunctionWrapper = (action, _operationName, _operationType) => action(); export function getSdk(client: GraphQLClient, withWrapper: SdkFunctionWrapper = defaultWrapper) { return { @@ -7602,6 +7545,7 @@ export function getSdk(client: GraphQLClient, withWrapper: SdkFunctionWrapper = ...wrappedRequestHeaders, }), 'BalancerProtocolData', + 'query', ); }, BalancerUser( @@ -7615,6 +7559,7 @@ export function getSdk(client: GraphQLClient, withWrapper: SdkFunctionWrapper = ...wrappedRequestHeaders, }), 'BalancerUser', + 'query', ); }, BalancerUsers( @@ -7628,6 +7573,7 @@ export function getSdk(client: GraphQLClient, withWrapper: SdkFunctionWrapper = ...wrappedRequestHeaders, }), 'BalancerUsers', + 'query', ); }, BalancerPoolShares( @@ -7641,6 +7587,7 @@ export function getSdk(client: GraphQLClient, withWrapper: SdkFunctionWrapper = ...wrappedRequestHeaders, }), 'BalancerPoolShares', + 'query', ); }, BalancerTokenPrices( @@ -7654,6 +7601,7 @@ export function getSdk(client: GraphQLClient, withWrapper: SdkFunctionWrapper = ...wrappedRequestHeaders, }), 'BalancerTokenPrices', + 'query', ); }, BalancerTokens( @@ -7667,6 +7615,7 @@ export function getSdk(client: GraphQLClient, withWrapper: SdkFunctionWrapper = ...wrappedRequestHeaders, }), 'BalancerTokens', + 'query', ); }, BalancerPools( @@ -7680,6 +7629,7 @@ export function getSdk(client: GraphQLClient, withWrapper: SdkFunctionWrapper = ...wrappedRequestHeaders, }), 'BalancerPools', + 'query', ); }, BalancerPool( @@ -7693,6 +7643,7 @@ export function getSdk(client: GraphQLClient, withWrapper: SdkFunctionWrapper = ...wrappedRequestHeaders, }), 'BalancerPool', + 'query', ); }, BalancerPoolHistoricalLiquidities( @@ -7707,6 +7658,7 @@ export function getSdk(client: GraphQLClient, withWrapper: SdkFunctionWrapper = { ...requestHeaders, ...wrappedRequestHeaders }, ), 'BalancerPoolHistoricalLiquidities', + 'query', ); }, BalancerPoolSnapshots( @@ -7720,6 +7672,7 @@ export function getSdk(client: GraphQLClient, withWrapper: SdkFunctionWrapper = ...wrappedRequestHeaders, }), 'BalancerPoolSnapshots', + 'query', ); }, BalancerLatestPrices( @@ -7733,6 +7686,7 @@ export function getSdk(client: GraphQLClient, withWrapper: SdkFunctionWrapper = ...wrappedRequestHeaders, }), 'BalancerLatestPrices', + 'query', ); }, BalancerLatestPrice( @@ -7746,6 +7700,7 @@ export function getSdk(client: GraphQLClient, withWrapper: SdkFunctionWrapper = ...wrappedRequestHeaders, }), 'BalancerLatestPrice', + 'query', ); }, BalancerJoinExits( @@ -7759,6 +7714,7 @@ export function getSdk(client: GraphQLClient, withWrapper: SdkFunctionWrapper = ...wrappedRequestHeaders, }), 'BalancerJoinExits', + 'query', ); }, BalancerPortfolioData( @@ -7772,6 +7728,7 @@ export function getSdk(client: GraphQLClient, withWrapper: SdkFunctionWrapper = ...wrappedRequestHeaders, }), 'BalancerPortfolioData', + 'query', ); }, BalancerPortfolioPoolsData( @@ -7785,6 +7742,7 @@ export function getSdk(client: GraphQLClient, withWrapper: SdkFunctionWrapper = ...wrappedRequestHeaders, }), 'BalancerPortfolioPoolsData', + 'query', ); }, BalancerTradePairSnapshots( @@ -7798,6 +7756,7 @@ export function getSdk(client: GraphQLClient, withWrapper: SdkFunctionWrapper = ...wrappedRequestHeaders, }), 'BalancerTradePairSnapshots', + 'query', ); }, BalancerSwaps( @@ -7811,6 +7770,7 @@ export function getSdk(client: GraphQLClient, withWrapper: SdkFunctionWrapper = ...wrappedRequestHeaders, }), 'BalancerSwaps', + 'query', ); }, BalancerAmpUpdates( @@ -7824,6 +7784,7 @@ export function getSdk(client: GraphQLClient, withWrapper: SdkFunctionWrapper = ...wrappedRequestHeaders, }), 'BalancerAmpUpdates', + 'query', ); }, BalancerGradualWeightUpdates( @@ -7837,6 +7798,7 @@ export function getSdk(client: GraphQLClient, withWrapper: SdkFunctionWrapper = ...wrappedRequestHeaders, }), 'BalancerGradualWeightUpdates', + 'query', ); }, BalancerGetPoolsWithActiveUpdates( @@ -7851,6 +7813,7 @@ export function getSdk(client: GraphQLClient, withWrapper: SdkFunctionWrapper = { ...requestHeaders, ...wrappedRequestHeaders }, ), 'BalancerGetPoolsWithActiveUpdates', + 'query', ); }, BalancerGetMeta( @@ -7864,6 +7827,7 @@ export function getSdk(client: GraphQLClient, withWrapper: SdkFunctionWrapper = ...wrappedRequestHeaders, }), 'BalancerGetMeta', + 'query', ); }, PoolBalances( @@ -7877,6 +7841,7 @@ export function getSdk(client: GraphQLClient, withWrapper: SdkFunctionWrapper = ...wrappedRequestHeaders, }), 'PoolBalances', + 'query', ); }, }; diff --git a/modules/subgraphs/beets-bar-subgraph/generated/beets-bar-subgraph-types.ts b/modules/subgraphs/beets-bar-subgraph/generated/beets-bar-subgraph-types.ts index 426f3ac96..5b0289049 100644 --- a/modules/subgraphs/beets-bar-subgraph/generated/beets-bar-subgraph-types.ts +++ b/modules/subgraphs/beets-bar-subgraph/generated/beets-bar-subgraph-types.ts @@ -497,63 +497,57 @@ export enum _SubgraphErrorPolicy_ { export type GetBeetsBarQueryVariables = Exact<{ id: Scalars['ID']; - block?: Maybe; + block?: InputMaybe; }>; export type GetBeetsBarQuery = { __typename?: 'Query'; - bar?: - | { - __typename?: 'Bar'; - id: string; - address: string; - block: string; - decimals: number; - fBeetsBurned: string; - fBeetsMinted: string; - name: string; - ratio: string; - sharedVestingTokenRevenue: string; - symbol: string; - timestamp: string; - totalSupply: string; - vestingToken: string; - vestingTokenStaked: string; - } - | null - | undefined; + bar?: { + __typename?: 'Bar'; + id: string; + address: string; + block: string; + decimals: number; + fBeetsBurned: string; + fBeetsMinted: string; + name: string; + ratio: string; + sharedVestingTokenRevenue: string; + symbol: string; + timestamp: string; + totalSupply: string; + vestingToken: string; + vestingTokenStaked: string; + } | null; }; export type GetBeetsBarUserQueryVariables = Exact<{ id: Scalars['ID']; - block?: Maybe; + block?: InputMaybe; }>; export type GetBeetsBarUserQuery = { __typename?: 'Query'; - user?: - | { - __typename?: 'User'; - id: string; - address: string; - block: string; - fBeets: string; - timestamp: string; - vestingTokenHarvested: string; - vestingTokenIn: string; - vestingTokenOut: string; - } - | null - | undefined; + user?: { + __typename?: 'User'; + id: string; + address: string; + block: string; + fBeets: string; + timestamp: string; + vestingTokenHarvested: string; + vestingTokenIn: string; + vestingTokenOut: string; + } | null; }; export type BeetsBarUsersQueryVariables = Exact<{ - skip?: Maybe; - first?: Maybe; - orderBy?: Maybe; - orderDirection?: Maybe; - where?: Maybe; - block?: Maybe; + skip?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + where?: InputMaybe; + block?: InputMaybe; }>; export type BeetsBarUsersQuery = { @@ -609,74 +603,62 @@ export type BeetsBarPortfolioDataQueryVariables = Exact<{ export type BeetsBarPortfolioDataQuery = { __typename?: 'Query'; - beetsBar?: - | { - __typename?: 'Bar'; - id: string; - address: string; - block: string; - decimals: number; - fBeetsBurned: string; - fBeetsMinted: string; - name: string; - ratio: string; - sharedVestingTokenRevenue: string; - symbol: string; - timestamp: string; - totalSupply: string; - vestingToken: string; - vestingTokenStaked: string; - } - | null - | undefined; - previousBeetsBar?: - | { - __typename?: 'Bar'; - id: string; - address: string; - block: string; - decimals: number; - fBeetsBurned: string; - fBeetsMinted: string; - name: string; - ratio: string; - sharedVestingTokenRevenue: string; - symbol: string; - timestamp: string; - totalSupply: string; - vestingToken: string; - vestingTokenStaked: string; - } - | null - | undefined; - beetsBarUser?: - | { - __typename?: 'User'; - id: string; - address: string; - block: string; - fBeets: string; - timestamp: string; - vestingTokenHarvested: string; - vestingTokenIn: string; - vestingTokenOut: string; - } - | null - | undefined; - previousBeetsBarUser?: - | { - __typename?: 'User'; - id: string; - address: string; - block: string; - fBeets: string; - timestamp: string; - vestingTokenHarvested: string; - vestingTokenIn: string; - vestingTokenOut: string; - } - | null - | undefined; + beetsBar?: { + __typename?: 'Bar'; + id: string; + address: string; + block: string; + decimals: number; + fBeetsBurned: string; + fBeetsMinted: string; + name: string; + ratio: string; + sharedVestingTokenRevenue: string; + symbol: string; + timestamp: string; + totalSupply: string; + vestingToken: string; + vestingTokenStaked: string; + } | null; + previousBeetsBar?: { + __typename?: 'Bar'; + id: string; + address: string; + block: string; + decimals: number; + fBeetsBurned: string; + fBeetsMinted: string; + name: string; + ratio: string; + sharedVestingTokenRevenue: string; + symbol: string; + timestamp: string; + totalSupply: string; + vestingToken: string; + vestingTokenStaked: string; + } | null; + beetsBarUser?: { + __typename?: 'User'; + id: string; + address: string; + block: string; + fBeets: string; + timestamp: string; + vestingTokenHarvested: string; + vestingTokenIn: string; + vestingTokenOut: string; + } | null; + previousBeetsBarUser?: { + __typename?: 'User'; + id: string; + address: string; + block: string; + fBeets: string; + timestamp: string; + vestingTokenHarvested: string; + vestingTokenIn: string; + vestingTokenOut: string; + } | null; }; export type BeetsBarDataQueryVariables = Exact<{ @@ -686,61 +668,52 @@ export type BeetsBarDataQueryVariables = Exact<{ export type BeetsBarDataQuery = { __typename?: 'Query'; - beetsBar?: - | { - __typename?: 'Bar'; - id: string; - address: string; - block: string; - decimals: number; - fBeetsBurned: string; - fBeetsMinted: string; - name: string; - ratio: string; - sharedVestingTokenRevenue: string; - symbol: string; - timestamp: string; - totalSupply: string; - vestingToken: string; - vestingTokenStaked: string; - } - | null - | undefined; - previousBeetsBar?: - | { - __typename?: 'Bar'; - id: string; - address: string; - block: string; - decimals: number; - fBeetsBurned: string; - fBeetsMinted: string; - name: string; - ratio: string; - sharedVestingTokenRevenue: string; - symbol: string; - timestamp: string; - totalSupply: string; - vestingToken: string; - vestingTokenStaked: string; - } - | null - | undefined; + beetsBar?: { + __typename?: 'Bar'; + id: string; + address: string; + block: string; + decimals: number; + fBeetsBurned: string; + fBeetsMinted: string; + name: string; + ratio: string; + sharedVestingTokenRevenue: string; + symbol: string; + timestamp: string; + totalSupply: string; + vestingToken: string; + vestingTokenStaked: string; + } | null; + previousBeetsBar?: { + __typename?: 'Bar'; + id: string; + address: string; + block: string; + decimals: number; + fBeetsBurned: string; + fBeetsMinted: string; + name: string; + ratio: string; + sharedVestingTokenRevenue: string; + symbol: string; + timestamp: string; + totalSupply: string; + vestingToken: string; + vestingTokenStaked: string; + } | null; }; export type BeetsBarGetMetaQueryVariables = Exact<{ [key: string]: never }>; export type BeetsBarGetMetaQuery = { __typename?: 'Query'; - meta?: - | { - __typename?: '_Meta_'; - deployment: string; - hasIndexingErrors: boolean; - block: { __typename?: '_Block_'; number: number }; - } - | null - | undefined; + meta?: { + __typename?: '_Meta_'; + deployment: string; + hasIndexingErrors: boolean; + block: { __typename?: '_Block_'; number: number }; + } | null; }; export const BeetsBarFragmentDoc = gql` @@ -855,9 +828,10 @@ export const BeetsBarGetMetaDocument = gql` export type SdkFunctionWrapper = ( action: (requestHeaders?: Record) => Promise, operationName: string, + operationType?: string, ) => Promise; -const defaultWrapper: SdkFunctionWrapper = (action, _operationName) => action(); +const defaultWrapper: SdkFunctionWrapper = (action, _operationName, _operationType) => action(); export function getSdk(client: GraphQLClient, withWrapper: SdkFunctionWrapper = defaultWrapper) { return { @@ -872,6 +846,7 @@ export function getSdk(client: GraphQLClient, withWrapper: SdkFunctionWrapper = ...wrappedRequestHeaders, }), 'GetBeetsBar', + 'query', ); }, GetBeetsBarUser( @@ -885,6 +860,7 @@ export function getSdk(client: GraphQLClient, withWrapper: SdkFunctionWrapper = ...wrappedRequestHeaders, }), 'GetBeetsBarUser', + 'query', ); }, BeetsBarUsers( @@ -898,6 +874,7 @@ export function getSdk(client: GraphQLClient, withWrapper: SdkFunctionWrapper = ...wrappedRequestHeaders, }), 'BeetsBarUsers', + 'query', ); }, BeetsBarPortfolioData( @@ -911,6 +888,7 @@ export function getSdk(client: GraphQLClient, withWrapper: SdkFunctionWrapper = ...wrappedRequestHeaders, }), 'BeetsBarPortfolioData', + 'query', ); }, BeetsBarData( @@ -924,6 +902,7 @@ export function getSdk(client: GraphQLClient, withWrapper: SdkFunctionWrapper = ...wrappedRequestHeaders, }), 'BeetsBarData', + 'query', ); }, BeetsBarGetMeta( @@ -937,6 +916,7 @@ export function getSdk(client: GraphQLClient, withWrapper: SdkFunctionWrapper = ...wrappedRequestHeaders, }), 'BeetsBarGetMeta', + 'query', ); }, }; diff --git a/modules/subgraphs/blocks-subgraph/generated/blocks-subgraph-types.ts b/modules/subgraphs/blocks-subgraph/generated/blocks-subgraph-types.ts index a8e25e133..651c08324 100644 --- a/modules/subgraphs/blocks-subgraph/generated/blocks-subgraph-types.ts +++ b/modules/subgraphs/blocks-subgraph/generated/blocks-subgraph-types.ts @@ -360,12 +360,12 @@ export enum _SubgraphErrorPolicy_ { } export type BlocksQueryVariables = Exact<{ - skip?: Maybe; - first?: Maybe; - orderBy?: Maybe; - orderDirection?: Maybe; - where?: Maybe; - block?: Maybe; + skip?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + where?: InputMaybe; + block?: InputMaybe; }>; export type BlocksQuery = { @@ -408,9 +408,10 @@ export const BlocksDocument = gql` export type SdkFunctionWrapper = ( action: (requestHeaders?: Record) => Promise, operationName: string, + operationType?: string, ) => Promise; -const defaultWrapper: SdkFunctionWrapper = (action, _operationName) => action(); +const defaultWrapper: SdkFunctionWrapper = (action, _operationName, _operationType) => action(); export function getSdk(client: GraphQLClient, withWrapper: SdkFunctionWrapper = defaultWrapper) { return { @@ -422,6 +423,7 @@ export function getSdk(client: GraphQLClient, withWrapper: SdkFunctionWrapper = ...wrappedRequestHeaders, }), 'Blocks', + 'query', ); }, }; diff --git a/modules/subgraphs/gauge-subgraph/generated/gauge-subgraph-types.ts b/modules/subgraphs/gauge-subgraph/generated/gauge-subgraph-types.ts index af21cdc78..8016f0a57 100644 --- a/modules/subgraphs/gauge-subgraph/generated/gauge-subgraph-types.ts +++ b/modules/subgraphs/gauge-subgraph/generated/gauge-subgraph-types.ts @@ -2318,11 +2318,11 @@ export enum _SubgraphErrorPolicy_ { } export type GaugeLiquidityGaugesQueryVariables = Exact<{ - first?: Maybe; - orderBy?: Maybe; - orderDirection?: Maybe; - skip?: Maybe; - where?: Maybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + where?: InputMaybe; }>; export type GaugeLiquidityGaugesQuery = { @@ -2330,56 +2330,48 @@ export type GaugeLiquidityGaugesQuery = { liquidityGauges: Array<{ __typename?: 'LiquidityGauge'; id: string; - poolId?: string | null | undefined; + poolId?: string | null; poolAddress: string; totalSupply: string; - streamer?: string | null | undefined; + streamer?: string | null; isPreferentialGauge: boolean; isKilled: boolean; - tokens?: - | Array<{ - __typename?: 'RewardToken'; - id: string; - decimals: number; - symbol: string; - rate?: string | null | undefined; - periodFinish?: string | null | undefined; - }> - | null - | undefined; - shares?: - | Array<{ __typename?: 'GaugeShare'; balance: string; user: { __typename?: 'User'; id: string } }> - | null - | undefined; - gauge?: { __typename?: 'Gauge'; addedTimestamp: number } | null | undefined; + tokens?: Array<{ + __typename?: 'RewardToken'; + id: string; + decimals: number; + symbol: string; + rate?: string | null; + periodFinish?: string | null; + }> | null; + shares?: Array<{ + __typename?: 'GaugeShare'; + balance: string; + user: { __typename?: 'User'; id: string }; + }> | null; + gauge?: { __typename?: 'Gauge'; addedTimestamp: number } | null; }>; }; export type GaugeFragment = { __typename?: 'LiquidityGauge'; id: string; - poolId?: string | null | undefined; + poolId?: string | null; poolAddress: string; totalSupply: string; - streamer?: string | null | undefined; + streamer?: string | null; isPreferentialGauge: boolean; isKilled: boolean; - tokens?: - | Array<{ - __typename?: 'RewardToken'; - id: string; - decimals: number; - symbol: string; - rate?: string | null | undefined; - periodFinish?: string | null | undefined; - }> - | null - | undefined; - shares?: - | Array<{ __typename?: 'GaugeShare'; balance: string; user: { __typename?: 'User'; id: string } }> - | null - | undefined; - gauge?: { __typename?: 'Gauge'; addedTimestamp: number } | null | undefined; + tokens?: Array<{ + __typename?: 'RewardToken'; + id: string; + decimals: number; + symbol: string; + rate?: string | null; + periodFinish?: string | null; + }> | null; + shares?: Array<{ __typename?: 'GaugeShare'; balance: string; user: { __typename?: 'User'; id: string } }> | null; + gauge?: { __typename?: 'Gauge'; addedTimestamp: number } | null; }; export type GaugeLiquidityGaugeAddressesQueryVariables = Exact<{ [key: string]: never }>; @@ -2395,47 +2387,38 @@ export type GaugeUserGaugesQueryVariables = Exact<{ export type GaugeUserGaugesQuery = { __typename?: 'Query'; - user?: - | { - __typename?: 'User'; - id: string; - gaugeShares?: - | Array<{ - __typename?: 'GaugeShare'; - balance: string; - gauge: { - __typename?: 'LiquidityGauge'; - id: string; - poolId?: string | null | undefined; - isPreferentialGauge: boolean; - isKilled: boolean; - tokens?: - | Array<{ - __typename?: 'RewardToken'; - id: string; - decimals: number; - symbol: string; - rate?: string | null | undefined; - periodFinish?: string | null | undefined; - }> - | null - | undefined; - }; - }> - | null - | undefined; - } - | null - | undefined; + user?: { + __typename?: 'User'; + id: string; + gaugeShares?: Array<{ + __typename?: 'GaugeShare'; + balance: string; + gauge: { + __typename?: 'LiquidityGauge'; + id: string; + poolId?: string | null; + isPreferentialGauge: boolean; + isKilled: boolean; + tokens?: Array<{ + __typename?: 'RewardToken'; + id: string; + decimals: number; + symbol: string; + rate?: string | null; + periodFinish?: string | null; + }> | null; + }; + }> | null; + } | null; }; export type GaugeSharesQueryVariables = Exact<{ - block?: Maybe; - first?: Maybe; - orderBy?: Maybe; - orderDirection?: Maybe; - skip?: Maybe; - where?: Maybe; + block?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + where?: InputMaybe; }>; export type GaugeSharesQuery = { @@ -2447,7 +2430,7 @@ export type GaugeSharesQuery = { gauge: { __typename?: 'LiquidityGauge'; id: string; - poolId?: string | null | undefined; + poolId?: string | null; poolAddress: string; isPreferentialGauge: boolean; isKilled: boolean; @@ -2463,7 +2446,7 @@ export type GaugeShareFragment = { gauge: { __typename?: 'LiquidityGauge'; id: string; - poolId?: string | null | undefined; + poolId?: string | null; poolAddress: string; isPreferentialGauge: boolean; isKilled: boolean; @@ -2475,24 +2458,21 @@ export type GaugeGetMetaQueryVariables = Exact<{ [key: string]: never }>; export type GaugeGetMetaQuery = { __typename?: 'Query'; - meta?: - | { - __typename?: '_Meta_'; - deployment: string; - hasIndexingErrors: boolean; - block: { __typename?: '_Block_'; number: number }; - } - | null - | undefined; + meta?: { + __typename?: '_Meta_'; + deployment: string; + hasIndexingErrors: boolean; + block: { __typename?: '_Block_'; number: number }; + } | null; }; export type VotingEscrowLocksQueryVariables = Exact<{ - block?: Maybe; - first?: Maybe; - orderBy?: Maybe; - orderDirection?: Maybe; - skip?: Maybe; - where?: Maybe; + block?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + where?: InputMaybe; }>; export type VotingEscrowLocksQuery = { @@ -2506,12 +2486,12 @@ export type VotingEscrowLocksQuery = { }; export type RootGaugesQueryVariables = Exact<{ - block?: Maybe; - first?: Maybe; - orderBy?: Maybe; - orderDirection?: Maybe; - skip?: Maybe; - where?: Maybe; + block?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + where?: InputMaybe; }>; export type RootGaugesQuery = { @@ -2521,7 +2501,7 @@ export type RootGaugesQuery = { id: string; chain: Chain; recipient: string; - gauge?: { __typename?: 'Gauge'; addedTimestamp: number } | null | undefined; + gauge?: { __typename?: 'Gauge'; addedTimestamp: number } | null; }>; }; @@ -2530,11 +2510,11 @@ export type RootGaugeFragment = { id: string; chain: Chain; recipient: string; - gauge?: { __typename?: 'Gauge'; addedTimestamp: number } | null | undefined; + gauge?: { __typename?: 'Gauge'; addedTimestamp: number } | null; }; export type LiquidityGaugesQueryVariables = Exact<{ - ids?: Maybe | Scalars['ID']>; + ids?: InputMaybe | Scalars['ID']>; }>; export type LiquidityGaugesQuery = { @@ -2730,9 +2710,10 @@ export const LiquidityGaugesDocument = gql` export type SdkFunctionWrapper = ( action: (requestHeaders?: Record) => Promise, operationName: string, + operationType?: string, ) => Promise; -const defaultWrapper: SdkFunctionWrapper = (action, _operationName) => action(); +const defaultWrapper: SdkFunctionWrapper = (action, _operationName, _operationType) => action(); export function getSdk(client: GraphQLClient, withWrapper: SdkFunctionWrapper = defaultWrapper) { return { @@ -2747,6 +2728,7 @@ export function getSdk(client: GraphQLClient, withWrapper: SdkFunctionWrapper = ...wrappedRequestHeaders, }), 'GaugeLiquidityGauges', + 'query', ); }, GaugeLiquidityGaugeAddresses( @@ -2760,6 +2742,7 @@ export function getSdk(client: GraphQLClient, withWrapper: SdkFunctionWrapper = ...wrappedRequestHeaders, }), 'GaugeLiquidityGaugeAddresses', + 'query', ); }, GaugeUserGauges( @@ -2773,6 +2756,7 @@ export function getSdk(client: GraphQLClient, withWrapper: SdkFunctionWrapper = ...wrappedRequestHeaders, }), 'GaugeUserGauges', + 'query', ); }, GaugeShares( @@ -2786,6 +2770,7 @@ export function getSdk(client: GraphQLClient, withWrapper: SdkFunctionWrapper = ...wrappedRequestHeaders, }), 'GaugeShares', + 'query', ); }, GaugeGetMeta( @@ -2799,6 +2784,7 @@ export function getSdk(client: GraphQLClient, withWrapper: SdkFunctionWrapper = ...wrappedRequestHeaders, }), 'GaugeGetMeta', + 'query', ); }, VotingEscrowLocks( @@ -2812,6 +2798,7 @@ export function getSdk(client: GraphQLClient, withWrapper: SdkFunctionWrapper = ...wrappedRequestHeaders, }), 'VotingEscrowLocks', + 'query', ); }, RootGauges( @@ -2825,6 +2812,7 @@ export function getSdk(client: GraphQLClient, withWrapper: SdkFunctionWrapper = ...wrappedRequestHeaders, }), 'RootGauges', + 'query', ); }, LiquidityGauges( @@ -2838,6 +2826,7 @@ export function getSdk(client: GraphQLClient, withWrapper: SdkFunctionWrapper = ...wrappedRequestHeaders, }), 'LiquidityGauges', + 'query', ); }, }; diff --git a/modules/subgraphs/masterchef-subgraph/generated/masterchef-subgraph-types.ts b/modules/subgraphs/masterchef-subgraph/generated/masterchef-subgraph-types.ts index f42ae54e8..73114e6da 100644 --- a/modules/subgraphs/masterchef-subgraph/generated/masterchef-subgraph-types.ts +++ b/modules/subgraphs/masterchef-subgraph/generated/masterchef-subgraph-types.ts @@ -988,12 +988,12 @@ export enum _SubgraphErrorPolicy_ { } export type MasterchefUsersQueryVariables = Exact<{ - skip?: Maybe; - first?: Maybe; - orderBy?: Maybe; - orderDirection?: Maybe; - where?: Maybe; - block?: Maybe; + skip?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + where?: InputMaybe; + block?: InputMaybe; }>; export type MasterchefUsersQuery = { @@ -1006,7 +1006,7 @@ export type MasterchefUsersQuery = { rewardDebt: string; beetsHarvested: string; timestamp: string; - pool?: { __typename?: 'Pool'; id: string; pair: string } | null | undefined; + pool?: { __typename?: 'Pool'; id: string; pair: string } | null; }>; }; @@ -1018,16 +1018,16 @@ export type FarmUserFragment = { rewardDebt: string; beetsHarvested: string; timestamp: string; - pool?: { __typename?: 'Pool'; id: string; pair: string } | null | undefined; + pool?: { __typename?: 'Pool'; id: string; pair: string } | null; }; export type MasterchefsQueryVariables = Exact<{ - skip?: Maybe; - first?: Maybe; - orderBy?: Maybe; - orderDirection?: Maybe; - where?: Maybe; - block?: Maybe; + skip?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + where?: InputMaybe; + block?: InputMaybe; }>; export type MasterchefsQuery = { @@ -1045,12 +1045,12 @@ export type MasterchefsQuery = { }; export type MasterchefFarmsQueryVariables = Exact<{ - skip?: Maybe; - first?: Maybe; - orderBy?: Maybe; - orderDirection?: Maybe; - where?: Maybe; - block?: Maybe; + skip?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + where?: InputMaybe; + block?: InputMaybe; }>; export type MasterchefFarmsQuery = { @@ -1067,20 +1067,17 @@ export type MasterchefFarmsQuery = { timestamp: string; block: string; masterChef: { __typename?: 'MasterChef'; id: string; totalAllocPoint: string; beetsPerBlock: string }; - rewarder?: - | { - __typename?: 'Rewarder'; - id: string; - rewardTokens: Array<{ - __typename?: 'RewardToken'; - token: string; - decimals: number; - symbol: string; - rewardPerSecond: string; - }>; - } - | null - | undefined; + rewarder?: { + __typename?: 'Rewarder'; + id: string; + rewardTokens: Array<{ + __typename?: 'RewardToken'; + token: string; + decimals: number; + symbol: string; + rewardPerSecond: string; + }>; + } | null; }>; }; @@ -1096,20 +1093,17 @@ export type FarmFragment = { timestamp: string; block: string; masterChef: { __typename?: 'MasterChef'; id: string; totalAllocPoint: string; beetsPerBlock: string }; - rewarder?: - | { - __typename?: 'Rewarder'; - id: string; - rewardTokens: Array<{ - __typename?: 'RewardToken'; - token: string; - decimals: number; - symbol: string; - rewardPerSecond: string; - }>; - } - | null - | undefined; + rewarder?: { + __typename?: 'Rewarder'; + id: string; + rewardTokens: Array<{ + __typename?: 'RewardToken'; + token: string; + decimals: number; + symbol: string; + rewardPerSecond: string; + }>; + } | null; }; export type MasterchefPortfolioDataQueryVariables = Exact<{ @@ -1127,7 +1121,7 @@ export type MasterchefPortfolioDataQuery = { rewardDebt: string; beetsHarvested: string; timestamp: string; - pool?: { __typename?: 'Pool'; id: string; pair: string } | null | undefined; + pool?: { __typename?: 'Pool'; id: string; pair: string } | null; }>; previousFarmUsers: Array<{ __typename?: 'User'; @@ -1137,7 +1131,7 @@ export type MasterchefPortfolioDataQuery = { rewardDebt: string; beetsHarvested: string; timestamp: string; - pool?: { __typename?: 'Pool'; id: string; pair: string } | null | undefined; + pool?: { __typename?: 'Pool'; id: string; pair: string } | null; }>; }; @@ -1145,15 +1139,12 @@ export type MasterchefGetMetaQueryVariables = Exact<{ [key: string]: never }>; export type MasterchefGetMetaQuery = { __typename?: 'Query'; - meta?: - | { - __typename?: '_Meta_'; - deployment: string; - hasIndexingErrors: boolean; - block: { __typename?: '_Block_'; number: number }; - } - | null - | undefined; + meta?: { + __typename?: '_Meta_'; + deployment: string; + hasIndexingErrors: boolean; + block: { __typename?: '_Block_'; number: number }; + } | null; }; export const FarmUserFragmentDoc = gql` @@ -1294,9 +1285,10 @@ export const MasterchefGetMetaDocument = gql` export type SdkFunctionWrapper = ( action: (requestHeaders?: Record) => Promise, operationName: string, + operationType?: string, ) => Promise; -const defaultWrapper: SdkFunctionWrapper = (action, _operationName) => action(); +const defaultWrapper: SdkFunctionWrapper = (action, _operationName, _operationType) => action(); export function getSdk(client: GraphQLClient, withWrapper: SdkFunctionWrapper = defaultWrapper) { return { @@ -1311,6 +1303,7 @@ export function getSdk(client: GraphQLClient, withWrapper: SdkFunctionWrapper = ...wrappedRequestHeaders, }), 'MasterchefUsers', + 'query', ); }, Masterchefs( @@ -1324,6 +1317,7 @@ export function getSdk(client: GraphQLClient, withWrapper: SdkFunctionWrapper = ...wrappedRequestHeaders, }), 'Masterchefs', + 'query', ); }, MasterchefFarms( @@ -1337,6 +1331,7 @@ export function getSdk(client: GraphQLClient, withWrapper: SdkFunctionWrapper = ...wrappedRequestHeaders, }), 'MasterchefFarms', + 'query', ); }, MasterchefPortfolioData( @@ -1350,6 +1345,7 @@ export function getSdk(client: GraphQLClient, withWrapper: SdkFunctionWrapper = ...wrappedRequestHeaders, }), 'MasterchefPortfolioData', + 'query', ); }, MasterchefGetMeta( @@ -1363,6 +1359,7 @@ export function getSdk(client: GraphQLClient, withWrapper: SdkFunctionWrapper = ...wrappedRequestHeaders, }), 'MasterchefGetMeta', + 'query', ); }, }; diff --git a/modules/subgraphs/reliquary-subgraph/generated/reliquary-subgraph-types.ts b/modules/subgraphs/reliquary-subgraph/generated/reliquary-subgraph-types.ts index 45200c463..800971a45 100644 --- a/modules/subgraphs/reliquary-subgraph/generated/reliquary-subgraph-types.ts +++ b/modules/subgraphs/reliquary-subgraph/generated/reliquary-subgraph-types.ts @@ -2068,39 +2068,36 @@ export enum _SubgraphErrorPolicy_ { export type ReliquaryQueryVariables = Exact<{ id: Scalars['ID']; - block?: Maybe; + block?: InputMaybe; }>; export type ReliquaryQuery = { __typename?: 'Query'; - reliquary?: - | { - __typename?: 'Reliquary'; - id: string; - totalAllocPoint: number; - poolCount: number; - relicCount: number; - emissionToken: { - __typename?: 'Token'; - id: string; - address: string; - name: string; - symbol: string; - decimals: number; - }; - emissionCurve: { __typename?: 'EmissionCurve'; id: string; address: string; rewardPerSecond: string }; - } - | null - | undefined; + reliquary?: { + __typename?: 'Reliquary'; + id: string; + totalAllocPoint: number; + poolCount: number; + relicCount: number; + emissionToken: { + __typename?: 'Token'; + id: string; + address: string; + name: string; + symbol: string; + decimals: number; + }; + emissionCurve: { __typename?: 'EmissionCurve'; id: string; address: string; rewardPerSecond: string }; + } | null; }; export type ReliquaryRelicsQueryVariables = Exact<{ - skip?: Maybe; - first?: Maybe; - orderBy?: Maybe; - orderDirection?: Maybe; - where?: Maybe; - block?: Maybe; + skip?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + where?: InputMaybe; + block?: InputMaybe; }>; export type ReliquaryRelicsQuery = { @@ -2119,12 +2116,12 @@ export type ReliquaryRelicsQuery = { }; export type ReliquaryUsersQueryVariables = Exact<{ - skip?: Maybe; - first?: Maybe; - orderBy?: Maybe; - orderDirection?: Maybe; - where?: Maybe; - block?: Maybe; + skip?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + where?: InputMaybe; + block?: InputMaybe; }>; export type ReliquaryUsersQuery = { @@ -2147,12 +2144,12 @@ export type ReliquaryUsersQuery = { }; export type ReliquaryPoolsQueryVariables = Exact<{ - skip?: Maybe; - first?: Maybe; - orderBy?: Maybe; - orderDirection?: Maybe; - where?: Maybe; - block?: Maybe; + skip?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + where?: InputMaybe; + block?: InputMaybe; }>; export type ReliquaryPoolsQuery = { @@ -2166,25 +2163,22 @@ export type ReliquaryPoolsQuery = { totalBalance: string; relicCount: number; allocPoint: number; - rewarder?: - | { - __typename?: 'Rewarder'; - id: string; - emissions: Array<{ - __typename?: 'RewarderEmission'; - rewardPerSecond: string; - rewardToken: { - __typename?: 'Token'; - id: string; - address: string; - name: string; - symbol: string; - decimals: number; - }; - }>; - } - | null - | undefined; + rewarder?: { + __typename?: 'Rewarder'; + id: string; + emissions: Array<{ + __typename?: 'RewarderEmission'; + rewardPerSecond: string; + rewardToken: { + __typename?: 'Token'; + id: string; + address: string; + name: string; + symbol: string; + decimals: number; + }; + }>; + } | null; levels: Array<{ __typename?: 'PoolLevel'; level: number; @@ -2196,12 +2190,12 @@ export type ReliquaryPoolsQuery = { }; export type ReliquaryFarmSnapshotsQueryVariables = Exact<{ - skip?: Maybe; - first?: Maybe; - orderBy?: Maybe; - orderDirection?: Maybe; - where?: Maybe; - block?: Maybe; + skip?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + where?: InputMaybe; + block?: InputMaybe; }>; export type ReliquaryFarmSnapshotsQuery = { @@ -2219,12 +2213,12 @@ export type ReliquaryFarmSnapshotsQuery = { }; export type ReliquaryRelicSnapshotsQueryVariables = Exact<{ - skip?: Maybe; - first?: Maybe; - orderBy?: Maybe; - orderDirection?: Maybe; - where?: Maybe; - block?: Maybe; + skip?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + where?: InputMaybe; + block?: InputMaybe; }>; export type ReliquaryRelicSnapshotsQuery = { @@ -2243,12 +2237,12 @@ export type ReliquaryRelicSnapshotsQuery = { }; export type ReliquaryPoolLevelsQueryVariables = Exact<{ - skip?: Maybe; - first?: Maybe; - orderBy?: Maybe; - orderDirection?: Maybe; - where?: Maybe; - block?: Maybe; + skip?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + where?: InputMaybe; + block?: InputMaybe; }>; export type ReliquaryPoolLevelsQuery = { @@ -2300,25 +2294,22 @@ export type ReliquaryFarmFragment = { totalBalance: string; relicCount: number; allocPoint: number; - rewarder?: - | { - __typename?: 'Rewarder'; - id: string; - emissions: Array<{ - __typename?: 'RewarderEmission'; - rewardPerSecond: string; - rewardToken: { - __typename?: 'Token'; - id: string; - address: string; - name: string; - symbol: string; - decimals: number; - }; - }>; - } - | null - | undefined; + rewarder?: { + __typename?: 'Rewarder'; + id: string; + emissions: Array<{ + __typename?: 'RewarderEmission'; + rewardPerSecond: string; + rewardToken: { + __typename?: 'Token'; + id: string; + address: string; + name: string; + symbol: string; + decimals: number; + }; + }>; + } | null; levels: Array<{ __typename?: 'PoolLevel'; level: number; @@ -2355,15 +2346,12 @@ export type ReliquaryGetMetaQueryVariables = Exact<{ [key: string]: never }>; export type ReliquaryGetMetaQuery = { __typename?: 'Query'; - meta?: - | { - __typename?: '_Meta_'; - deployment: string; - hasIndexingErrors: boolean; - block: { __typename?: '_Block_'; number: number }; - } - | null - | undefined; + meta?: { + __typename?: '_Meta_'; + deployment: string; + hasIndexingErrors: boolean; + block: { __typename?: '_Block_'; number: number }; + } | null; }; export const ReliquaryRelicFragmentDoc = gql` @@ -2614,9 +2602,10 @@ export const ReliquaryGetMetaDocument = gql` export type SdkFunctionWrapper = ( action: (requestHeaders?: Record) => Promise, operationName: string, + operationType?: string, ) => Promise; -const defaultWrapper: SdkFunctionWrapper = (action, _operationName) => action(); +const defaultWrapper: SdkFunctionWrapper = (action, _operationName, _operationType) => action(); export function getSdk(client: GraphQLClient, withWrapper: SdkFunctionWrapper = defaultWrapper) { return { @@ -2631,6 +2620,7 @@ export function getSdk(client: GraphQLClient, withWrapper: SdkFunctionWrapper = ...wrappedRequestHeaders, }), 'Reliquary', + 'query', ); }, ReliquaryRelics( @@ -2644,6 +2634,7 @@ export function getSdk(client: GraphQLClient, withWrapper: SdkFunctionWrapper = ...wrappedRequestHeaders, }), 'ReliquaryRelics', + 'query', ); }, ReliquaryUsers( @@ -2657,6 +2648,7 @@ export function getSdk(client: GraphQLClient, withWrapper: SdkFunctionWrapper = ...wrappedRequestHeaders, }), 'ReliquaryUsers', + 'query', ); }, ReliquaryPools( @@ -2670,6 +2662,7 @@ export function getSdk(client: GraphQLClient, withWrapper: SdkFunctionWrapper = ...wrappedRequestHeaders, }), 'ReliquaryPools', + 'query', ); }, ReliquaryFarmSnapshots( @@ -2683,6 +2676,7 @@ export function getSdk(client: GraphQLClient, withWrapper: SdkFunctionWrapper = ...wrappedRequestHeaders, }), 'ReliquaryFarmSnapshots', + 'query', ); }, ReliquaryRelicSnapshots( @@ -2696,6 +2690,7 @@ export function getSdk(client: GraphQLClient, withWrapper: SdkFunctionWrapper = ...wrappedRequestHeaders, }), 'ReliquaryRelicSnapshots', + 'query', ); }, ReliquaryPoolLevels( @@ -2709,6 +2704,7 @@ export function getSdk(client: GraphQLClient, withWrapper: SdkFunctionWrapper = ...wrappedRequestHeaders, }), 'ReliquaryPoolLevels', + 'query', ); }, ReliquaryGetMeta( @@ -2722,6 +2718,7 @@ export function getSdk(client: GraphQLClient, withWrapper: SdkFunctionWrapper = ...wrappedRequestHeaders, }), 'ReliquaryGetMeta', + 'query', ); }, }; diff --git a/modules/subgraphs/veBal-locks-subgraph/generated/veBal-locks-subgraph-types.ts b/modules/subgraphs/veBal-locks-subgraph/generated/veBal-locks-subgraph-types.ts index 20be807a0..87b361092 100644 --- a/modules/subgraphs/veBal-locks-subgraph/generated/veBal-locks-subgraph-types.ts +++ b/modules/subgraphs/veBal-locks-subgraph/generated/veBal-locks-subgraph-types.ts @@ -2318,12 +2318,12 @@ export enum _SubgraphErrorPolicy_ { } export type VotingEscrowLocksQueryVariables = Exact<{ - block?: Maybe; - first?: Maybe; - orderBy?: Maybe; - orderDirection?: Maybe; - skip?: Maybe; - where?: Maybe; + block?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + where?: InputMaybe; }>; export type VotingEscrowLocksQuery = { @@ -2337,12 +2337,12 @@ export type VotingEscrowLocksQuery = { }; export type LockSnapshotsQueryVariables = Exact<{ - block?: Maybe; - first?: Maybe; - orderBy?: Maybe; - orderDirection?: Maybe; - skip?: Maybe; - where?: Maybe; + block?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + where?: InputMaybe; }>; export type LockSnapshotsQuery = { @@ -2361,15 +2361,12 @@ export type VebalGetMetaQueryVariables = Exact<{ [key: string]: never }>; export type VebalGetMetaQuery = { __typename?: 'Query'; - meta?: - | { - __typename?: '_Meta_'; - deployment: string; - hasIndexingErrors: boolean; - block: { __typename?: '_Block_'; number: number }; - } - | null - | undefined; + meta?: { + __typename?: '_Meta_'; + deployment: string; + hasIndexingErrors: boolean; + block: { __typename?: '_Block_'; number: number }; + } | null; }; export const VotingEscrowLocksDocument = gql` @@ -2439,9 +2436,10 @@ export const VebalGetMetaDocument = gql` export type SdkFunctionWrapper = ( action: (requestHeaders?: Record) => Promise, operationName: string, + operationType?: string, ) => Promise; -const defaultWrapper: SdkFunctionWrapper = (action, _operationName) => action(); +const defaultWrapper: SdkFunctionWrapper = (action, _operationName, _operationType) => action(); export function getSdk(client: GraphQLClient, withWrapper: SdkFunctionWrapper = defaultWrapper) { return { @@ -2456,6 +2454,7 @@ export function getSdk(client: GraphQLClient, withWrapper: SdkFunctionWrapper = ...wrappedRequestHeaders, }), 'VotingEscrowLocks', + 'query', ); }, LockSnapshots( @@ -2469,6 +2468,7 @@ export function getSdk(client: GraphQLClient, withWrapper: SdkFunctionWrapper = ...wrappedRequestHeaders, }), 'LockSnapshots', + 'query', ); }, VebalGetMeta( @@ -2482,6 +2482,7 @@ export function getSdk(client: GraphQLClient, withWrapper: SdkFunctionWrapper = ...wrappedRequestHeaders, }), 'VebalGetMeta', + 'query', ); }, }; diff --git a/modules/token/lib/token-price.service.ts b/modules/token/lib/token-price.service.ts index 8a5f2f620..6240b4d86 100644 --- a/modules/token/lib/token-price.service.ts +++ b/modules/token/lib/token-price.service.ts @@ -4,7 +4,7 @@ import _ from 'lodash'; import { timestampRoundedUpToNearestHour } from '../../common/time'; import { Chain, PrismaTokenCurrentPrice, PrismaTokenPrice } from '@prisma/client'; import moment from 'moment-timezone'; -import { GqlTokenChartDataRange } from '../../../schema'; +import { GqlTokenChartDataRange } from '../../../apps/api/gql/generated-schema'; import { Cache, CacheClass } from 'memory-cache'; import * as Sentry from '@sentry/node'; import { FbeetsPriceHandlerService } from './token-price-handlers/fbeets-price-handler.service'; diff --git a/modules/token/token.service.ts b/modules/token/token.service.ts index 09fedd159..cb6815326 100644 --- a/modules/token/token.service.ts +++ b/modules/token/token.service.ts @@ -18,7 +18,7 @@ import { GqlTokenChartDataRange, MutationTokenDeleteTokenTypeArgs, QueryTokenGetTokensArgs, -} from '../../schema'; +} from '../../apps/api/gql/generated-schema'; import { Dictionary } from 'lodash'; import { GithubContentService } from '../content/github-content.service'; import config from '../../config'; diff --git a/modules/user/user.service.ts b/modules/user/user.service.ts index 3242eaf10..0a54ba114 100644 --- a/modules/user/user.service.ts +++ b/modules/user/user.service.ts @@ -1,6 +1,6 @@ import { Chain, PrismaPoolStaking, PrismaPoolStakingType } from '@prisma/client'; import { prisma } from '../../prisma/prisma-client'; -import { GqlPoolJoinExit, GqlPoolSwap } from '../../schema'; +import { GqlPoolJoinExit, GqlPoolSwap } from '../../apps/api/gql/generated-schema'; import { PoolSwapService } from '../pool/lib/pool-swap.service'; import { tokenService } from '../token/token.service'; import { UserBalanceService } from './lib/user-balance.service'; diff --git a/modules/vebal/special-pools/hardcoded-pools.ts b/modules/vebal/special-pools/hardcoded-pools.ts index 4cd54c3be..3048e542b 100644 --- a/modules/vebal/special-pools/hardcoded-pools.ts +++ b/modules/vebal/special-pools/hardcoded-pools.ts @@ -1,5 +1,5 @@ import { Chain } from '@prisma/client'; -import { GqlVotingPool } from '../../../schema'; +import { GqlVotingPool } from '../../../apps/api/gql/generated-schema'; /* Balancer wstETH/rETH/L and USDC/WETH/L from Cron Finance are special pools because Cron Contract is not compliant with BasePool interface so we won't find it the pools from the Subgraph diff --git a/modules/vebal/vebal-voting-list.service.ts b/modules/vebal/vebal-voting-list.service.ts index 57e667950..94bb14ef4 100644 --- a/modules/vebal/vebal-voting-list.service.ts +++ b/modules/vebal/vebal-voting-list.service.ts @@ -5,7 +5,7 @@ import { VotingGauge, VotingGaugesRepository } from './voting-gauges.repository' import { oldVeBalAddress, specialVotingGaugeAddresses } from './special-pools/special-voting-gauge-addresses'; import { getVeVotingGauges, veGauges, vePools } from './special-pools/ve-pools'; import { hardCodedPools } from './special-pools/hardcoded-pools'; -import { GqlVotingPool } from '../../schema'; +import { GqlVotingPool } from '../../apps/api/gql/generated-schema'; import { Chain } from '@prisma/client'; export class VeBalVotingListService { diff --git a/modules/vebal/vebal.service.ts b/modules/vebal/vebal.service.ts index caa304081..c7ccc9151 100644 --- a/modules/vebal/vebal.service.ts +++ b/modules/vebal/vebal.service.ts @@ -9,7 +9,7 @@ import { Multicaller } from '../web3/multicaller'; import VeDelegationAbi from './abi/VotingEscrowDelegationProxy.json'; import { getContractAt } from '../web3/contract'; import { AmountHumanReadable } from '../common/global-types'; -import { GqlVeBalBalance, GqlVeBalUserData } from '../../schema'; +import { GqlVeBalBalance, GqlVeBalUserData } from '../../apps/api/gql/generated-schema'; import mainnet from '../../config/mainnet'; import VeBalABI from './abi/vebal.json'; import { Chain } from '@prisma/client'; diff --git a/stellate-beets-canary.ts b/stellate-beets-canary.ts deleted file mode 100644 index 1a21f625a..000000000 --- a/stellate-beets-canary.ts +++ /dev/null @@ -1,137 +0,0 @@ -// import { Config } from 'stellate'; - -// const config: Config = { -// config: { -// originUrl: 'https://backend-v3-canary-origin.beets-ftm-node.com/graphql', -// schema: 'https://backend-v3-canary.beets-ftm-node.com/graphql', -// name: 'backend-v3-canary', -// devPortal: { -// enabled: true, -// auth: false, -// description: 'IMPORTANT: To stay up to date with changes of our API, please join https://t.me/beetsapi', -// readme: 'Learn how to use the API ### Query pools for a certain or multiple chains and apply sorting ```graphiql { poolGetPools(where: {chainIn: [FANTOM, OPTIMISM]}, orderBy: totalLiquidity, orderDirection: desc) { id name } } ``` ### Query user balances for one or more chains ```graphiql { userGetPoolBalances( address: "0x4fbe899d37fb7514adf2f41b0630e018ec275a0c" chains: [FANTOM] ) { poolId stakedBalance walletBalance } } ``` Check out the Graphql Schema for endless possibilities.', -// urls: { -// logo: 'https://beethoven-assets.s3.eu-central-1.amazonaws.com/logo-full%402x.png', -// favicon: 'https://assets.coingecko.com/coins/images/19158/large/beets-icon-large.png?1634545465', -// support: 'https://discord.gg/kbPnYJjvwZ', -// website: 'https://beets.fi', -// }, -// }, -// queryDepthLimit: 10, -// scopes: { -// AUTHENTICATED: 'header:accountaddress', -// CHAIN: 'header:chainid', -// AUTHENTICATED_CHAIN: 'header:accountaddress|header:chainid', -// }, -// rootTypeNames: { -// query: 'Query', -// mutation: 'Mutation', -// }, -// rules: [ -// { -// types: ['Query'], -// maxAge: 15, -// swr: 30, -// description: 'Cache everything (default)', -// scope: 'CHAIN', -// }, -// { -// types: { -// Query: [ -// 'userGetSwaps', -// 'userGetStaking', -// 'userGetPoolBalances', -// 'userGetFbeetsBalance', -// 'userGetPoolJoinExits', -// ], -// }, -// maxAge: 10, -// swr: 15, -// scope: 'AUTHENTICATED_CHAIN', -// description: 'Time critical user queries', -// }, -// { -// types: { -// Query: ['latestSyncedBlocks'], -// }, -// maxAge: 2, -// swr: 10, -// description: 'Time critical block data', -// scope: 'CHAIN', -// }, -// { -// types: { -// Query: [ -// 'protocolMetricsChain', -// 'protocolMetricsAggregated', -// 'tokenGetProtocolTokenPrice', -// 'beetsGetFbeetsRatio', -// 'blocksGetBlocksPerSecond', -// 'blocksGetBlocksPerDay', -// 'blocksGetAverageBlockTime', -// 'tokenGetTokens', -// 'poolGetFeaturedPoolGroups', -// 'contentGetNewsItems', -// ], -// }, -// maxAge: 60, -// swr: 120, -// description: 'Mostly static, cache for a long time', -// scope: 'CHAIN', -// }, -// ], -// rateLimits: (req) => { -// if ( -// req.headers['stellate-api-token'] && -// req.headers['stellate-api-token'] === -// 'stl8_bcebb2b60910a55e58a82c8e83825034dc763e294582447118fab0a6a1225ebb' -// ) { -// return [ -// { -// name: 'Specific API Token based limits', -// state: 'dryRun', -// group: req.headers['stellate-api-token'], -// limit: { -// type: 'RequestCount', -// budget: 20, -// window: '1m', -// }, -// }, -// ]; -// } - -// if (req.headers['stellate-api-token']) { -// return [ -// { -// name: 'General API Token based limits', -// state: 'dryRun', -// group: req.headers['stellate-api-token'], -// limit: { -// type: 'RequestCount', -// budget: 10, -// window: '1m', -// }, -// }, -// ]; -// } - -// const xForwardedFor = Array.isArray(req.headers['x-forwarded-for']) -// ? req.headers['x-forwarded-for'][0] -// : req.headers['x-forwarded-for']; -// return [ -// { -// name: 'IP based limits', -// state: 'dryRun', -// group: xForwardedFor ? xForwardedFor.split(',')[0] : req.ip, -// limit: { -// type: 'RequestCount', -// budget: 5, -// window: '1m', -// }, -// }, -// ]; -// }, -// }, -// }; - -// export default config;