From 0a3a7467d43e6fa90ce1775c22a10f90b826e0a4 Mon Sep 17 00:00:00 2001 From: botond <105208209+notbot00@users.noreply.github.com> Date: Fri, 11 Nov 2022 00:10:37 +0100 Subject: [PATCH] fix: remove new typegen files from console-lite to fix typegen errors (#2022) --- .../src/app/routes/assets/Assets.graphql | 27 --- .../routes/assets/__generated___/Assets.ts | 67 ------- .../app/routes/governance/Proposals.graphql | 74 -------- .../governance/__generated___/Proposals.ts | 114 ------------ .../src/app/routes/markets/Markets.graphql | 133 -------------- .../routes/markets/__generated___/Markets.ts | 173 ------------------ .../app/routes/oracles/OracleSpecs.graphql | 82 --------- .../oracles/__generated___/OracleSpecs.ts | 122 ------------ .../app/routes/parties/PartyAssets.graphql | 32 ---- .../parties/__generated___/PartyAssets.ts | 75 -------- .../src/app/routes/validators/Nodes.graphql | 22 --- .../routes/validators/__generated___/Nodes.ts | 62 ------- 12 files changed, 983 deletions(-) delete mode 100644 apps/explorer/src/app/routes/assets/Assets.graphql delete mode 100644 apps/explorer/src/app/routes/assets/__generated___/Assets.ts delete mode 100644 apps/explorer/src/app/routes/governance/Proposals.graphql delete mode 100644 apps/explorer/src/app/routes/governance/__generated___/Proposals.ts delete mode 100644 apps/explorer/src/app/routes/markets/Markets.graphql delete mode 100644 apps/explorer/src/app/routes/markets/__generated___/Markets.ts delete mode 100644 apps/explorer/src/app/routes/oracles/OracleSpecs.graphql delete mode 100644 apps/explorer/src/app/routes/oracles/__generated___/OracleSpecs.ts delete mode 100644 apps/explorer/src/app/routes/parties/PartyAssets.graphql delete mode 100644 apps/explorer/src/app/routes/parties/__generated___/PartyAssets.ts delete mode 100644 apps/explorer/src/app/routes/validators/Nodes.graphql delete mode 100644 apps/explorer/src/app/routes/validators/__generated___/Nodes.ts diff --git a/apps/explorer/src/app/routes/assets/Assets.graphql b/apps/explorer/src/app/routes/assets/Assets.graphql deleted file mode 100644 index 00e113473..000000000 --- a/apps/explorer/src/app/routes/assets/Assets.graphql +++ /dev/null @@ -1,27 +0,0 @@ -query AssetsQuery { - assetsConnection { - edges { - node { - id - name - symbol - decimals - source { - ... on ERC20 { - contractAddress - } - ... on BuiltinAsset { - maxFaucetAmountMint - } - } - infrastructureFeeAccount { - type - balance - market { - id - } - } - } - } - } -} diff --git a/apps/explorer/src/app/routes/assets/__generated___/Assets.ts b/apps/explorer/src/app/routes/assets/__generated___/Assets.ts deleted file mode 100644 index d38d54341..000000000 --- a/apps/explorer/src/app/routes/assets/__generated___/Assets.ts +++ /dev/null @@ -1,67 +0,0 @@ -import { Schema as Types } from '@vegaprotocol/types'; - -import { gql } from '@apollo/client'; -import * as Apollo from '@apollo/client'; -const defaultOptions = {} as const; -export type AssetsQueryQueryVariables = Types.Exact<{ [key: string]: never; }>; - - -export type AssetsQueryQuery = { __typename?: 'Query', assetsConnection?: { __typename?: 'AssetsConnection', edges?: Array<{ __typename?: 'AssetEdge', node: { __typename?: 'Asset', id: string, name: string, symbol: string, decimals: number, source: { __typename?: 'BuiltinAsset', maxFaucetAmountMint: string } | { __typename?: 'ERC20', contractAddress: string }, infrastructureFeeAccount?: { __typename?: 'AccountBalance', type: Types.AccountType, balance: string, market?: { __typename?: 'Market', id: string } | null } | null } } | null> | null } | null }; - - -export const AssetsQueryDocument = gql` - query AssetsQuery { - assetsConnection { - edges { - node { - id - name - symbol - decimals - source { - ... on ERC20 { - contractAddress - } - ... on BuiltinAsset { - maxFaucetAmountMint - } - } - infrastructureFeeAccount { - type - balance - market { - id - } - } - } - } - } -} - `; - -/** - * __useAssetsQueryQuery__ - * - * To run a query within a React component, call `useAssetsQueryQuery` and pass it any options that fit your needs. - * When your component renders, `useAssetsQueryQuery` returns an object from Apollo Client that contains loading, error, and data properties - * you can use to render your UI. - * - * @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options; - * - * @example - * const { data, loading, error } = useAssetsQueryQuery({ - * variables: { - * }, - * }); - */ -export function useAssetsQueryQuery(baseOptions?: Apollo.QueryHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useQuery(AssetsQueryDocument, options); - } -export function useAssetsQueryLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useLazyQuery(AssetsQueryDocument, options); - } -export type AssetsQueryQueryHookResult = ReturnType; -export type AssetsQueryLazyQueryHookResult = ReturnType; -export type AssetsQueryQueryResult = Apollo.QueryResult; \ No newline at end of file diff --git a/apps/explorer/src/app/routes/governance/Proposals.graphql b/apps/explorer/src/app/routes/governance/Proposals.graphql deleted file mode 100644 index 2050e56c8..000000000 --- a/apps/explorer/src/app/routes/governance/Proposals.graphql +++ /dev/null @@ -1,74 +0,0 @@ -query ProposalsQuery { - proposals { - id - reference - state - datetime - rejectionReason - party { - id - } - terms { - closingDatetime - enactmentDatetime - change { - ... on NewMarket { - instrument { - name - } - } - ... on UpdateMarket { - marketId - } - ... on NewAsset { - __typename - symbol - source { - ... on BuiltinAsset { - maxFaucetAmountMint - } - ... on ERC20 { - contractAddress - } - } - } - ... on UpdateNetworkParameter { - networkParameter { - key - value - } - } - } - } - votes { - yes { - totalTokens - totalNumber - votes { - value - party { - id - stakingSummary { - currentStakeAvailable - } - } - datetime - } - } - no { - totalTokens - totalNumber - votes { - value - party { - id - stakingSummary { - currentStakeAvailable - } - } - datetime - } - } - } - } -} diff --git a/apps/explorer/src/app/routes/governance/__generated___/Proposals.ts b/apps/explorer/src/app/routes/governance/__generated___/Proposals.ts deleted file mode 100644 index 7686cfd92..000000000 --- a/apps/explorer/src/app/routes/governance/__generated___/Proposals.ts +++ /dev/null @@ -1,114 +0,0 @@ -import { Schema as Types } from '@vegaprotocol/types'; - -import { gql } from '@apollo/client'; -import * as Apollo from '@apollo/client'; -const defaultOptions = {} as const; -export type ProposalsQueryQueryVariables = Types.Exact<{ [key: string]: never; }>; - - -export type ProposalsQueryQuery = { __typename?: 'Query', proposals?: Array<{ __typename?: 'Proposal', id?: string | null, reference: string, state: Types.ProposalState, datetime: string, rejectionReason?: Types.ProposalRejectionReason | null, party: { __typename?: 'Party', id: string }, terms: { __typename?: 'ProposalTerms', closingDatetime: string, enactmentDatetime?: string | null, change: { __typename: 'NewAsset', symbol: string, source: { __typename?: 'BuiltinAsset', maxFaucetAmountMint: string } | { __typename?: 'ERC20', contractAddress: string } } | { __typename?: 'NewFreeform' } | { __typename?: 'NewMarket', instrument: { __typename?: 'InstrumentConfiguration', name: string } } | { __typename?: 'UpdateAsset' } | { __typename?: 'UpdateMarket', marketId: string } | { __typename?: 'UpdateNetworkParameter', networkParameter: { __typename?: 'NetworkParameter', key: string, value: string } } }, votes: { __typename?: 'ProposalVotes', yes: { __typename?: 'ProposalVoteSide', totalTokens: string, totalNumber: string, votes?: Array<{ __typename?: 'Vote', value: Types.VoteValue, datetime: string, party: { __typename?: 'Party', id: string, stakingSummary: { __typename?: 'StakingSummary', currentStakeAvailable: string } } }> | null }, no: { __typename?: 'ProposalVoteSide', totalTokens: string, totalNumber: string, votes?: Array<{ __typename?: 'Vote', value: Types.VoteValue, datetime: string, party: { __typename?: 'Party', id: string, stakingSummary: { __typename?: 'StakingSummary', currentStakeAvailable: string } } }> | null } } }> | null }; - - -export const ProposalsQueryDocument = gql` - query ProposalsQuery { - proposals { - id - reference - state - datetime - rejectionReason - party { - id - } - terms { - closingDatetime - enactmentDatetime - change { - ... on NewMarket { - instrument { - name - } - } - ... on UpdateMarket { - marketId - } - ... on NewAsset { - __typename - symbol - source { - ... on BuiltinAsset { - maxFaucetAmountMint - } - ... on ERC20 { - contractAddress - } - } - } - ... on UpdateNetworkParameter { - networkParameter { - key - value - } - } - } - } - votes { - yes { - totalTokens - totalNumber - votes { - value - party { - id - stakingSummary { - currentStakeAvailable - } - } - datetime - } - } - no { - totalTokens - totalNumber - votes { - value - party { - id - stakingSummary { - currentStakeAvailable - } - } - datetime - } - } - } - } -} - `; - -/** - * __useProposalsQueryQuery__ - * - * To run a query within a React component, call `useProposalsQueryQuery` and pass it any options that fit your needs. - * When your component renders, `useProposalsQueryQuery` returns an object from Apollo Client that contains loading, error, and data properties - * you can use to render your UI. - * - * @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options; - * - * @example - * const { data, loading, error } = useProposalsQueryQuery({ - * variables: { - * }, - * }); - */ -export function useProposalsQueryQuery(baseOptions?: Apollo.QueryHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useQuery(ProposalsQueryDocument, options); - } -export function useProposalsQueryLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useLazyQuery(ProposalsQueryDocument, options); - } -export type ProposalsQueryQueryHookResult = ReturnType; -export type ProposalsQueryLazyQueryHookResult = ReturnType; -export type ProposalsQueryQueryResult = Apollo.QueryResult; \ No newline at end of file diff --git a/apps/explorer/src/app/routes/markets/Markets.graphql b/apps/explorer/src/app/routes/markets/Markets.graphql deleted file mode 100644 index d656c739c..000000000 --- a/apps/explorer/src/app/routes/markets/Markets.graphql +++ /dev/null @@ -1,133 +0,0 @@ -query MarketsQuery { - markets { - id - fees { - factors { - makerFee - infrastructureFee - liquidityFee - } - } - tradableInstrument { - instrument { - name - metadata { - tags - } - id - code - product { - ... on Future { - settlementAsset { - id - name - decimals - globalRewardPoolAccount { - balance - } - } - } - } - } - riskModel { - ... on LogNormalRiskModel { - tau - riskAversionParameter - params { - r - sigma - mu - } - } - ... on SimpleRiskModel { - params { - factorLong - factorShort - } - } - } - marginCalculator { - scalingFactors { - searchLevel - initialMargin - collateralRelease - } - } - } - decimalPlaces - openingAuction { - durationSecs - volume - } - priceMonitoringSettings { - parameters { - triggers { - horizonSecs - probability - auctionExtensionSecs - } - } - } - liquidityMonitoringParameters { - triggeringRatio - targetStakeParameters { - timeWindow - scalingFactor - } - } - tradingMode - state - proposal { - id - } - state - accounts { - asset { - id - name - } - balance - type - } - data { - markPrice - bestBidPrice - bestBidVolume - bestOfferPrice - bestOfferVolume - bestStaticBidPrice - bestStaticBidVolume - bestStaticOfferPrice - bestStaticOfferVolume - midPrice - staticMidPrice - timestamp - openInterest - auctionEnd - auctionStart - indicativePrice - indicativeVolume - trigger - extensionTrigger - targetStake - suppliedStake - priceMonitoringBounds { - minValidPrice - maxValidPrice - trigger { - auctionExtensionSecs - probability - } - referencePrice - } - marketValueProxy - liquidityProviderFeeShare { - party { - id - } - equityLikeShare - averageEntryValuation - } - } - } -} diff --git a/apps/explorer/src/app/routes/markets/__generated___/Markets.ts b/apps/explorer/src/app/routes/markets/__generated___/Markets.ts deleted file mode 100644 index 4ed804377..000000000 --- a/apps/explorer/src/app/routes/markets/__generated___/Markets.ts +++ /dev/null @@ -1,173 +0,0 @@ -import { Schema as Types } from '@vegaprotocol/types'; - -import { gql } from '@apollo/client'; -import * as Apollo from '@apollo/client'; -const defaultOptions = {} as const; -export type MarketsQueryQueryVariables = Types.Exact<{ [key: string]: never; }>; - - -export type MarketsQueryQuery = { __typename?: 'Query', markets?: Array<{ __typename?: 'Market', id: string, decimalPlaces: number, tradingMode: Types.MarketTradingMode, state: Types.MarketState, fees: { __typename?: 'Fees', factors: { __typename?: 'FeeFactors', makerFee: string, infrastructureFee: string, liquidityFee: string } }, tradableInstrument: { __typename?: 'TradableInstrument', instrument: { __typename?: 'Instrument', name: string, id: string, code: string, metadata: { __typename?: 'InstrumentMetadata', tags?: Array | null }, product: { __typename?: 'Future', settlementAsset: { __typename?: 'Asset', id: string, name: string, decimals: number, globalRewardPoolAccount?: { __typename?: 'AccountBalance', balance: string } | null } } }, riskModel: { __typename?: 'LogNormalRiskModel', tau: number, riskAversionParameter: number, params: { __typename?: 'LogNormalModelParams', r: number, sigma: number, mu: number } } | { __typename?: 'SimpleRiskModel', params: { __typename?: 'SimpleRiskModelParams', factorLong: number, factorShort: number } }, marginCalculator?: { __typename?: 'MarginCalculator', scalingFactors: { __typename?: 'ScalingFactors', searchLevel: number, initialMargin: number, collateralRelease: number } } | null }, openingAuction: { __typename?: 'AuctionDuration', durationSecs: number, volume: number }, priceMonitoringSettings: { __typename?: 'PriceMonitoringSettings', parameters?: { __typename?: 'PriceMonitoringParameters', triggers?: Array<{ __typename?: 'PriceMonitoringTrigger', horizonSecs: number, probability: number, auctionExtensionSecs: number }> | null } | null }, liquidityMonitoringParameters: { __typename?: 'LiquidityMonitoringParameters', triggeringRatio: number, targetStakeParameters: { __typename?: 'TargetStakeParameters', timeWindow: number, scalingFactor: number } }, proposal?: { __typename?: 'Proposal', id?: string | null } | null, accounts?: Array<{ __typename?: 'AccountBalance', balance: string, type: Types.AccountType, asset: { __typename?: 'Asset', id: string, name: string } }> | null, data?: { __typename?: 'MarketData', markPrice: string, bestBidPrice: string, bestBidVolume: string, bestOfferPrice: string, bestOfferVolume: string, bestStaticBidPrice: string, bestStaticBidVolume: string, bestStaticOfferPrice: string, bestStaticOfferVolume: string, midPrice: string, staticMidPrice: string, timestamp: string, openInterest: string, auctionEnd?: string | null, auctionStart?: string | null, indicativePrice: string, indicativeVolume: string, trigger: Types.AuctionTrigger, extensionTrigger: Types.AuctionTrigger, targetStake?: string | null, suppliedStake?: string | null, marketValueProxy: string, priceMonitoringBounds?: Array<{ __typename?: 'PriceMonitoringBounds', minValidPrice: string, maxValidPrice: string, referencePrice: string, trigger: { __typename?: 'PriceMonitoringTrigger', auctionExtensionSecs: number, probability: number } }> | null, liquidityProviderFeeShare?: Array<{ __typename?: 'LiquidityProviderFeeShare', equityLikeShare: string, averageEntryValuation: string, party: { __typename?: 'Party', id: string } }> | null } | null }> | null }; - - -export const MarketsQueryDocument = gql` - query MarketsQuery { - markets { - id - fees { - factors { - makerFee - infrastructureFee - liquidityFee - } - } - tradableInstrument { - instrument { - name - metadata { - tags - } - id - code - product { - ... on Future { - settlementAsset { - id - name - decimals - globalRewardPoolAccount { - balance - } - } - } - } - } - riskModel { - ... on LogNormalRiskModel { - tau - riskAversionParameter - params { - r - sigma - mu - } - } - ... on SimpleRiskModel { - params { - factorLong - factorShort - } - } - } - marginCalculator { - scalingFactors { - searchLevel - initialMargin - collateralRelease - } - } - } - decimalPlaces - openingAuction { - durationSecs - volume - } - priceMonitoringSettings { - parameters { - triggers { - horizonSecs - probability - auctionExtensionSecs - } - } - } - liquidityMonitoringParameters { - triggeringRatio - targetStakeParameters { - timeWindow - scalingFactor - } - } - tradingMode - state - proposal { - id - } - state - accounts { - asset { - id - name - } - balance - type - } - data { - markPrice - bestBidPrice - bestBidVolume - bestOfferPrice - bestOfferVolume - bestStaticBidPrice - bestStaticBidVolume - bestStaticOfferPrice - bestStaticOfferVolume - midPrice - staticMidPrice - timestamp - openInterest - auctionEnd - auctionStart - indicativePrice - indicativeVolume - trigger - extensionTrigger - targetStake - suppliedStake - priceMonitoringBounds { - minValidPrice - maxValidPrice - trigger { - auctionExtensionSecs - probability - } - referencePrice - } - marketValueProxy - liquidityProviderFeeShare { - party { - id - } - equityLikeShare - averageEntryValuation - } - } - } -} - `; - -/** - * __useMarketsQueryQuery__ - * - * To run a query within a React component, call `useMarketsQueryQuery` and pass it any options that fit your needs. - * When your component renders, `useMarketsQueryQuery` returns an object from Apollo Client that contains loading, error, and data properties - * you can use to render your UI. - * - * @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options; - * - * @example - * const { data, loading, error } = useMarketsQueryQuery({ - * variables: { - * }, - * }); - */ -export function useMarketsQueryQuery(baseOptions?: Apollo.QueryHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useQuery(MarketsQueryDocument, options); - } -export function useMarketsQueryLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useLazyQuery(MarketsQueryDocument, options); - } -export type MarketsQueryQueryHookResult = ReturnType; -export type MarketsQueryLazyQueryHookResult = ReturnType; -export type MarketsQueryQueryResult = Apollo.QueryResult; \ No newline at end of file diff --git a/apps/explorer/src/app/routes/oracles/OracleSpecs.graphql b/apps/explorer/src/app/routes/oracles/OracleSpecs.graphql deleted file mode 100644 index 4deb4346d..000000000 --- a/apps/explorer/src/app/routes/oracles/OracleSpecs.graphql +++ /dev/null @@ -1,82 +0,0 @@ -query OracleSpecs { - oracleSpecsConnection { - edges { - node { - dataSourceSpec { - spec { - id - createdAt - updatedAt - status - data { - sourceType { - ... on DataSourceDefinitionInternal { - sourceType { - ... on DataSourceSpecConfigurationTime { - conditions { - value - operator - } - } - } - } - ... on DataSourceDefinitionExternal { - sourceType { - ... on DataSourceSpecConfiguration { - signers { - signer { - ... on ETHAddress { - address - } - ... on PubKey { - key - } - } - } - filters { - key { - name - type - } - conditions { - value - operator - } - } - } - } - } - } - } - } - } - dataConnection { - edges { - node { - externalData { - data { - signers { - signer { - ... on ETHAddress { - address - } - ... on PubKey { - key - } - } - } - data { - name - value - } - matchedSpecIds - broadcastAt - } - } - } - } - } - } - } - } -} diff --git a/apps/explorer/src/app/routes/oracles/__generated___/OracleSpecs.ts b/apps/explorer/src/app/routes/oracles/__generated___/OracleSpecs.ts deleted file mode 100644 index e5605b110..000000000 --- a/apps/explorer/src/app/routes/oracles/__generated___/OracleSpecs.ts +++ /dev/null @@ -1,122 +0,0 @@ -import { Schema as Types } from '@vegaprotocol/types'; - -import { gql } from '@apollo/client'; -import * as Apollo from '@apollo/client'; -const defaultOptions = {} as const; -export type OracleSpecsQueryVariables = Types.Exact<{ [key: string]: never; }>; - - -export type OracleSpecsQuery = { __typename?: 'Query', oracleSpecsConnection?: { __typename?: 'OracleSpecsConnection', edges?: Array<{ __typename?: 'OracleSpecEdge', node: { __typename?: 'OracleSpec', dataSourceSpec: { __typename?: 'ExternalDataSourceSpec', spec: { __typename?: 'DataSourceSpec', id: string, createdAt: string, updatedAt?: string | null, status: Types.DataSourceSpecStatus, data: { __typename?: 'DataSourceDefinition', sourceType: { __typename?: 'DataSourceDefinitionExternal', sourceType: { __typename?: 'DataSourceSpecConfiguration', signers?: Array<{ __typename?: 'Signer', signer: { __typename?: 'ETHAddress', address?: string | null } | { __typename?: 'PubKey', key?: string | null } }> | null, filters?: Array<{ __typename?: 'Filter', key: { __typename?: 'PropertyKey', name?: string | null, type: Types.PropertyKeyType }, conditions?: Array<{ __typename?: 'Condition', value?: string | null, operator: Types.ConditionOperator }> | null }> | null } } | { __typename?: 'DataSourceDefinitionInternal', sourceType: { __typename?: 'DataSourceSpecConfigurationTime', conditions: Array<{ __typename?: 'Condition', value?: string | null, operator: Types.ConditionOperator } | null> } } } } }, dataConnection: { __typename?: 'OracleDataConnection', edges?: Array<{ __typename?: 'OracleDataEdge', node: { __typename?: 'OracleData', externalData: { __typename?: 'ExternalData', data: { __typename?: 'Data', matchedSpecIds?: Array | null, broadcastAt: string, signers?: Array<{ __typename?: 'Signer', signer: { __typename?: 'ETHAddress', address?: string | null } | { __typename?: 'PubKey', key?: string | null } }> | null, data?: Array<{ __typename?: 'Property', name: string, value: string }> | null } } } } | null> | null } } } | null> | null } | null }; - - -export const OracleSpecsDocument = gql` - query OracleSpecs { - oracleSpecsConnection { - edges { - node { - dataSourceSpec { - spec { - id - createdAt - updatedAt - status - data { - sourceType { - ... on DataSourceDefinitionInternal { - sourceType { - ... on DataSourceSpecConfigurationTime { - conditions { - value - operator - } - } - } - } - ... on DataSourceDefinitionExternal { - sourceType { - ... on DataSourceSpecConfiguration { - signers { - signer { - ... on ETHAddress { - address - } - ... on PubKey { - key - } - } - } - filters { - key { - name - type - } - conditions { - value - operator - } - } - } - } - } - } - } - } - } - dataConnection { - edges { - node { - externalData { - data { - signers { - signer { - ... on ETHAddress { - address - } - ... on PubKey { - key - } - } - } - data { - name - value - } - matchedSpecIds - broadcastAt - } - } - } - } - } - } - } - } -} - `; - -/** - * __useOracleSpecsQuery__ - * - * To run a query within a React component, call `useOracleSpecsQuery` and pass it any options that fit your needs. - * When your component renders, `useOracleSpecsQuery` returns an object from Apollo Client that contains loading, error, and data properties - * you can use to render your UI. - * - * @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options; - * - * @example - * const { data, loading, error } = useOracleSpecsQuery({ - * variables: { - * }, - * }); - */ -export function useOracleSpecsQuery(baseOptions?: Apollo.QueryHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useQuery(OracleSpecsDocument, options); - } -export function useOracleSpecsLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useLazyQuery(OracleSpecsDocument, options); - } -export type OracleSpecsQueryHookResult = ReturnType; -export type OracleSpecsLazyQueryHookResult = ReturnType; -export type OracleSpecsQueryResult = Apollo.QueryResult; \ No newline at end of file diff --git a/apps/explorer/src/app/routes/parties/PartyAssets.graphql b/apps/explorer/src/app/routes/parties/PartyAssets.graphql deleted file mode 100644 index 508f43d4e..000000000 --- a/apps/explorer/src/app/routes/parties/PartyAssets.graphql +++ /dev/null @@ -1,32 +0,0 @@ -query PartyAssetsQuery($partyId: ID!) { - party(id: $partyId) { - id - delegations { - amount - node { - id - name - } - epoch - } - stakingSummary { - currentStakeAvailable - } - accounts { - asset { - name - id - decimals - symbol - source { - __typename - ... on ERC20 { - contractAddress - } - } - } - type - balance - } - } -} diff --git a/apps/explorer/src/app/routes/parties/__generated___/PartyAssets.ts b/apps/explorer/src/app/routes/parties/__generated___/PartyAssets.ts deleted file mode 100644 index e9f3f71d3..000000000 --- a/apps/explorer/src/app/routes/parties/__generated___/PartyAssets.ts +++ /dev/null @@ -1,75 +0,0 @@ -import { Schema as Types } from '@vegaprotocol/types'; - -import { gql } from '@apollo/client'; -import * as Apollo from '@apollo/client'; -const defaultOptions = {} as const; -export type PartyAssetsQueryQueryVariables = Types.Exact<{ - partyId: Types.Scalars['ID']; -}>; - - -export type PartyAssetsQueryQuery = { __typename?: 'Query', party?: { __typename?: 'Party', id: string, delegations?: Array<{ __typename?: 'Delegation', amount: string, epoch: number, node: { __typename?: 'Node', id: string, name: string } }> | null, stakingSummary: { __typename?: 'StakingSummary', currentStakeAvailable: string }, accounts?: Array<{ __typename?: 'AccountBalance', type: Types.AccountType, balance: string, asset: { __typename?: 'Asset', name: string, id: string, decimals: number, symbol: string, source: { __typename: 'BuiltinAsset' } | { __typename: 'ERC20', contractAddress: string } } }> | null } | null }; - - -export const PartyAssetsQueryDocument = gql` - query PartyAssetsQuery($partyId: ID!) { - party(id: $partyId) { - id - delegations { - amount - node { - id - name - } - epoch - } - stakingSummary { - currentStakeAvailable - } - accounts { - asset { - name - id - decimals - symbol - source { - __typename - ... on ERC20 { - contractAddress - } - } - } - type - balance - } - } -} - `; - -/** - * __usePartyAssetsQueryQuery__ - * - * To run a query within a React component, call `usePartyAssetsQueryQuery` and pass it any options that fit your needs. - * When your component renders, `usePartyAssetsQueryQuery` returns an object from Apollo Client that contains loading, error, and data properties - * you can use to render your UI. - * - * @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options; - * - * @example - * const { data, loading, error } = usePartyAssetsQueryQuery({ - * variables: { - * partyId: // value for 'partyId' - * }, - * }); - */ -export function usePartyAssetsQueryQuery(baseOptions: Apollo.QueryHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useQuery(PartyAssetsQueryDocument, options); - } -export function usePartyAssetsQueryLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useLazyQuery(PartyAssetsQueryDocument, options); - } -export type PartyAssetsQueryQueryHookResult = ReturnType; -export type PartyAssetsQueryLazyQueryHookResult = ReturnType; -export type PartyAssetsQueryQueryResult = Apollo.QueryResult; \ No newline at end of file diff --git a/apps/explorer/src/app/routes/validators/Nodes.graphql b/apps/explorer/src/app/routes/validators/Nodes.graphql deleted file mode 100644 index 17daa0a43..000000000 --- a/apps/explorer/src/app/routes/validators/Nodes.graphql +++ /dev/null @@ -1,22 +0,0 @@ -query NodesQuery { - nodes { - id - name - infoUrl - avatarUrl - pubkey - tmPubkey - ethereumAddress - location - stakedByOperator - stakedByDelegates - stakedTotal - pendingStake - epochData { - total - offline - online - } - status - } -} diff --git a/apps/explorer/src/app/routes/validators/__generated___/Nodes.ts b/apps/explorer/src/app/routes/validators/__generated___/Nodes.ts deleted file mode 100644 index ceffa4c68..000000000 --- a/apps/explorer/src/app/routes/validators/__generated___/Nodes.ts +++ /dev/null @@ -1,62 +0,0 @@ -import { Schema as Types } from '@vegaprotocol/types'; - -import { gql } from '@apollo/client'; -import * as Apollo from '@apollo/client'; -const defaultOptions = {} as const; -export type NodesQueryQueryVariables = Types.Exact<{ [key: string]: never; }>; - - -export type NodesQueryQuery = { __typename?: 'Query', nodes?: Array<{ __typename?: 'Node', id: string, name: string, infoUrl: string, avatarUrl?: string | null, pubkey: string, tmPubkey: string, ethereumAddress: string, location: string, stakedByOperator: string, stakedByDelegates: string, stakedTotal: string, pendingStake: string, status: Types.NodeStatus, epochData?: { __typename?: 'EpochData', total: number, offline: number, online: number } | null }> | null }; - - -export const NodesQueryDocument = gql` - query NodesQuery { - nodes { - id - name - infoUrl - avatarUrl - pubkey - tmPubkey - ethereumAddress - location - stakedByOperator - stakedByDelegates - stakedTotal - pendingStake - epochData { - total - offline - online - } - status - } -} - `; - -/** - * __useNodesQueryQuery__ - * - * To run a query within a React component, call `useNodesQueryQuery` and pass it any options that fit your needs. - * When your component renders, `useNodesQueryQuery` returns an object from Apollo Client that contains loading, error, and data properties - * you can use to render your UI. - * - * @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options; - * - * @example - * const { data, loading, error } = useNodesQueryQuery({ - * variables: { - * }, - * }); - */ -export function useNodesQueryQuery(baseOptions?: Apollo.QueryHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useQuery(NodesQueryDocument, options); - } -export function useNodesQueryLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useLazyQuery(NodesQueryDocument, options); - } -export type NodesQueryQueryHookResult = ReturnType; -export type NodesQueryLazyQueryHookResult = ReturnType; -export type NodesQueryQueryResult = Apollo.QueryResult; \ No newline at end of file