From 7b4437f407f7b7a39d8a175837c9c590040e7f35 Mon Sep 17 00:00:00 2001 From: Dexter Edwards Date: Thu, 17 Mar 2022 09:09:48 +0000 Subject: [PATCH] regenerate based on new API client (#86) * regenerate based on new API client * lint * run projects on different ports --- apps/explorer-e2e/cypress.json | 2 +- apps/explorer/project.json | 1 + .../explorer/src/__generated__/globalTypes.ts | 142 +++++++++--------- .../components/search/__generated__/Guess.ts | 4 +- .../assets/__generated__/AssetsQuery.ts | 20 +-- apps/explorer/src/app/routes/assets/index.tsx | 1 - .../__generated__/ProposalsQuery.ts | 56 +++---- .../markets/__generated__/MarketsQuery.ts | 89 +++++------ .../explorer/src/app/routes/markets/index.tsx | 1 - .../id/__generated__/PartyAssetsQuery.ts | 24 ++- .../src/app/routes/parties/id/index.tsx | 2 +- .../validators/__generated__/NodesQuery.ts | 8 +- .../src/app/routes/validators/index.tsx | 2 - .../pages/markets/__generated__/Market.ts | 4 +- 14 files changed, 158 insertions(+), 198 deletions(-) diff --git a/apps/explorer-e2e/cypress.json b/apps/explorer-e2e/cypress.json index bad6108fe..6f4e8dcc8 100644 --- a/apps/explorer-e2e/cypress.json +++ b/apps/explorer-e2e/cypress.json @@ -1,5 +1,5 @@ { - "baseUrl": "http://localhost:4200", + "baseUrl": "http://localhost:3000", "projectId": "et4snf", "fileServerFolder": ".", "fixturesFolder": false, diff --git a/apps/explorer/project.json b/apps/explorer/project.json index e9a9d4566..44f9db00a 100644 --- a/apps/explorer/project.json +++ b/apps/explorer/project.json @@ -40,6 +40,7 @@ "serve": { "executor": "@nrwl/web:dev-server", "options": { + "port": 3000, "buildTarget": "explorer:build", "hmr": true }, diff --git a/apps/explorer/src/__generated__/globalTypes.ts b/apps/explorer/src/__generated__/globalTypes.ts index 95fd90e8d..74aa66291 100644 --- a/apps/explorer/src/__generated__/globalTypes.ts +++ b/apps/explorer/src/__generated__/globalTypes.ts @@ -11,92 +11,92 @@ * The various account types we have (used by collateral) */ export enum AccountType { - Bond = 'Bond', - FeeInfrastructure = 'FeeInfrastructure', - FeeLiquidity = 'FeeLiquidity', - General = 'General', - GlobalInsurance = 'GlobalInsurance', - Insurance = 'Insurance', - LockWithdraw = 'LockWithdraw', - Margin = 'Margin', - Settlement = 'Settlement', + Bond = "Bond", + FeeInfrastructure = "FeeInfrastructure", + FeeLiquidity = "FeeLiquidity", + General = "General", + GlobalInsurance = "GlobalInsurance", + Insurance = "Insurance", + LockWithdraw = "LockWithdraw", + Margin = "Margin", + Settlement = "Settlement", } export enum AuctionTrigger { - Batch = 'Batch', - Liquidity = 'Liquidity', - Opening = 'Opening', - Price = 'Price', - Unspecified = 'Unspecified', + Batch = "Batch", + Liquidity = "Liquidity", + Opening = "Opening", + Price = "Price", + Unspecified = "Unspecified", } /** * The current state of a market */ export enum MarketState { - Active = 'Active', - Cancelled = 'Cancelled', - Closed = 'Closed', - Pending = 'Pending', - Proposed = 'Proposed', - Rejected = 'Rejected', - Settled = 'Settled', - Suspended = 'Suspended', - TradingTerminated = 'TradingTerminated', + Active = "Active", + Cancelled = "Cancelled", + Closed = "Closed", + Pending = "Pending", + Proposed = "Proposed", + Rejected = "Rejected", + Settled = "Settled", + Suspended = "Suspended", + TradingTerminated = "TradingTerminated", } /** * What market trading mode are we in */ export enum MarketTradingMode { - BatchAuction = 'BatchAuction', - Continuous = 'Continuous', - MonitoringAuction = 'MonitoringAuction', - OpeningAuction = 'OpeningAuction', + BatchAuction = "BatchAuction", + Continuous = "Continuous", + MonitoringAuction = "MonitoringAuction", + OpeningAuction = "OpeningAuction", } export enum NodeStatus { - NonValidator = 'NonValidator', - Validator = 'Validator', + NonValidator = "NonValidator", + Validator = "Validator", } /** * Reason for the proposal being rejected by the core node */ export enum ProposalRejectionReason { - CloseTimeTooLate = 'CloseTimeTooLate', - CloseTimeTooSoon = 'CloseTimeTooSoon', - CouldNotInstantiateMarket = 'CouldNotInstantiateMarket', - EnactTimeTooLate = 'EnactTimeTooLate', - EnactTimeTooSoon = 'EnactTimeTooSoon', - IncompatibleTimestamps = 'IncompatibleTimestamps', - InsufficientTokens = 'InsufficientTokens', - InvalidAsset = 'InvalidAsset', - InvalidAssetDetails = 'InvalidAssetDetails', - InvalidFeeAmount = 'InvalidFeeAmount', - InvalidFutureMaturityTimestamp = 'InvalidFutureMaturityTimestamp', - InvalidFutureProduct = 'InvalidFutureProduct', - InvalidInstrumentSecurity = 'InvalidInstrumentSecurity', - InvalidRiskParameter = 'InvalidRiskParameter', - InvalidShape = 'InvalidShape', - MajorityThresholdNotReached = 'MajorityThresholdNotReached', - MarketMissingLiquidityCommitment = 'MarketMissingLiquidityCommitment', - MissingBuiltinAssetField = 'MissingBuiltinAssetField', - MissingCommitmentAmount = 'MissingCommitmentAmount', - MissingERC20ContractAddress = 'MissingERC20ContractAddress', - NetworkParameterInvalidKey = 'NetworkParameterInvalidKey', - NetworkParameterInvalidValue = 'NetworkParameterInvalidValue', - NetworkParameterValidationFailed = 'NetworkParameterValidationFailed', - NoProduct = 'NoProduct', - NoRiskParameters = 'NoRiskParameters', - NoTradingMode = 'NoTradingMode', - NodeValidationFailed = 'NodeValidationFailed', - OpeningAuctionDurationTooLarge = 'OpeningAuctionDurationTooLarge', - OpeningAuctionDurationTooSmall = 'OpeningAuctionDurationTooSmall', - ParticipationThresholdNotReached = 'ParticipationThresholdNotReached', - ProductMaturityIsPassed = 'ProductMaturityIsPassed', - UnsupportedProduct = 'UnsupportedProduct', - UnsupportedTradingMode = 'UnsupportedTradingMode', + CloseTimeTooLate = "CloseTimeTooLate", + CloseTimeTooSoon = "CloseTimeTooSoon", + CouldNotInstantiateMarket = "CouldNotInstantiateMarket", + EnactTimeTooLate = "EnactTimeTooLate", + EnactTimeTooSoon = "EnactTimeTooSoon", + IncompatibleTimestamps = "IncompatibleTimestamps", + InsufficientTokens = "InsufficientTokens", + InvalidAsset = "InvalidAsset", + InvalidAssetDetails = "InvalidAssetDetails", + InvalidFeeAmount = "InvalidFeeAmount", + InvalidFutureMaturityTimestamp = "InvalidFutureMaturityTimestamp", + InvalidFutureProduct = "InvalidFutureProduct", + InvalidInstrumentSecurity = "InvalidInstrumentSecurity", + InvalidRiskParameter = "InvalidRiskParameter", + InvalidShape = "InvalidShape", + MajorityThresholdNotReached = "MajorityThresholdNotReached", + MarketMissingLiquidityCommitment = "MarketMissingLiquidityCommitment", + MissingBuiltinAssetField = "MissingBuiltinAssetField", + MissingCommitmentAmount = "MissingCommitmentAmount", + MissingERC20ContractAddress = "MissingERC20ContractAddress", + NetworkParameterInvalidKey = "NetworkParameterInvalidKey", + NetworkParameterInvalidValue = "NetworkParameterInvalidValue", + NetworkParameterValidationFailed = "NetworkParameterValidationFailed", + NoProduct = "NoProduct", + NoRiskParameters = "NoRiskParameters", + NoTradingMode = "NoTradingMode", + NodeValidationFailed = "NodeValidationFailed", + OpeningAuctionDurationTooLarge = "OpeningAuctionDurationTooLarge", + OpeningAuctionDurationTooSmall = "OpeningAuctionDurationTooSmall", + ParticipationThresholdNotReached = "ParticipationThresholdNotReached", + ProductMaturityIsPassed = "ProductMaturityIsPassed", + UnsupportedProduct = "UnsupportedProduct", + UnsupportedTradingMode = "UnsupportedTradingMode", } /** @@ -107,18 +107,18 @@ export enum ProposalRejectionReason { * Proposal can enter Failed state from any other state. */ export enum ProposalState { - Declined = 'Declined', - Enacted = 'Enacted', - Failed = 'Failed', - Open = 'Open', - Passed = 'Passed', - Rejected = 'Rejected', - WaitingForNodeVote = 'WaitingForNodeVote', + Declined = "Declined", + Enacted = "Enacted", + Failed = "Failed", + Open = "Open", + Passed = "Passed", + Rejected = "Rejected", + WaitingForNodeVote = "WaitingForNodeVote", } export enum VoteValue { - No = 'No', - Yes = 'Yes', + No = "No", + Yes = "Yes", } //============================================================== diff --git a/apps/explorer/src/app/components/search/__generated__/Guess.ts b/apps/explorer/src/app/components/search/__generated__/Guess.ts index 3f51b12d8..7e096adf3 100644 --- a/apps/explorer/src/app/components/search/__generated__/Guess.ts +++ b/apps/explorer/src/app/components/search/__generated__/Guess.ts @@ -8,7 +8,7 @@ // ==================================================== export interface Guess_party { - __typename: 'Party'; + __typename: "Party"; /** * Party identifier */ @@ -16,7 +16,7 @@ export interface Guess_party { } export interface Guess_market { - __typename: 'Market'; + __typename: "Market"; /** * Market ID */ diff --git a/apps/explorer/src/app/routes/assets/__generated__/AssetsQuery.ts b/apps/explorer/src/app/routes/assets/__generated__/AssetsQuery.ts index ae0f80b04..99a430f5e 100644 --- a/apps/explorer/src/app/routes/assets/__generated__/AssetsQuery.ts +++ b/apps/explorer/src/app/routes/assets/__generated__/AssetsQuery.ts @@ -3,14 +3,14 @@ // @generated // This file was automatically generated and should not be edited. -import { AccountType } from './../../../../__generated__/globalTypes'; +import { AccountType } from "./../../../../__generated__/globalTypes"; // ==================================================== // GraphQL query operation: AssetsQuery // ==================================================== export interface AssetsQuery_assets_source_ERC20 { - __typename: 'ERC20'; + __typename: "ERC20"; /** * The address of the erc20 contract */ @@ -18,19 +18,17 @@ export interface AssetsQuery_assets_source_ERC20 { } export interface AssetsQuery_assets_source_BuiltinAsset { - __typename: 'BuiltinAsset'; + __typename: "BuiltinAsset"; /** * Maximum amount that can be requested by a party through the built-in asset faucet at a time */ maxFaucetAmountMint: string; } -export type AssetsQuery_assets_source = - | AssetsQuery_assets_source_ERC20 - | AssetsQuery_assets_source_BuiltinAsset; +export type AssetsQuery_assets_source = AssetsQuery_assets_source_ERC20 | AssetsQuery_assets_source_BuiltinAsset; export interface AssetsQuery_assets_infrastructureFeeAccount_market { - __typename: 'Market'; + __typename: "Market"; /** * Market ID */ @@ -38,7 +36,7 @@ export interface AssetsQuery_assets_infrastructureFeeAccount_market { } export interface AssetsQuery_assets_infrastructureFeeAccount { - __typename: 'Account'; + __typename: "Account"; /** * Account type (General, Margin, etc) */ @@ -54,7 +52,7 @@ export interface AssetsQuery_assets_infrastructureFeeAccount { } export interface AssetsQuery_assets { - __typename: 'Asset'; + __typename: "Asset"; /** * The id of the asset */ @@ -75,10 +73,6 @@ export interface AssetsQuery_assets { * The precision of the asset */ decimals: number; - /** - * The min stake to become an lp for any market using this asset for settlement - */ - minLpStake: string; /** * The origin source of the asset (e.g: an erc20 asset) */ diff --git a/apps/explorer/src/app/routes/assets/index.tsx b/apps/explorer/src/app/routes/assets/index.tsx index 56001abd7..39c337162 100644 --- a/apps/explorer/src/app/routes/assets/index.tsx +++ b/apps/explorer/src/app/routes/assets/index.tsx @@ -11,7 +11,6 @@ export const ASSETS_QUERY = gql` symbol totalSupply decimals - minLpStake source { ... on ERC20 { contractAddress diff --git a/apps/explorer/src/app/routes/governance/__generated__/ProposalsQuery.ts b/apps/explorer/src/app/routes/governance/__generated__/ProposalsQuery.ts index c19e3ff2d..ff64977e9 100644 --- a/apps/explorer/src/app/routes/governance/__generated__/ProposalsQuery.ts +++ b/apps/explorer/src/app/routes/governance/__generated__/ProposalsQuery.ts @@ -3,18 +3,14 @@ // @generated // This file was automatically generated and should not be edited. -import { - ProposalState, - ProposalRejectionReason, - VoteValue, -} from './../../../../__generated__/globalTypes'; +import { ProposalState, ProposalRejectionReason, VoteValue } from "./../../../../__generated__/globalTypes"; // ==================================================== // GraphQL query operation: ProposalsQuery // ==================================================== export interface ProposalsQuery_proposals_party { - __typename: 'Party'; + __typename: "Party"; /** * Party identifier */ @@ -22,7 +18,7 @@ export interface ProposalsQuery_proposals_party { } export interface ProposalsQuery_proposals_terms_change_NewMarket_instrument { - __typename: 'InstrumentConfiguration'; + __typename: "InstrumentConfiguration"; /** * Full and fairly descriptive name for the instrument */ @@ -30,7 +26,7 @@ export interface ProposalsQuery_proposals_terms_change_NewMarket_instrument { } export interface ProposalsQuery_proposals_terms_change_NewMarket { - __typename: 'NewMarket'; + __typename: "NewMarket"; /** * New market instrument configuration */ @@ -38,12 +34,12 @@ export interface ProposalsQuery_proposals_terms_change_NewMarket { } export interface ProposalsQuery_proposals_terms_change_UpdateMarket { - __typename: 'UpdateMarket'; + __typename: "UpdateMarket"; marketId: string; } export interface ProposalsQuery_proposals_terms_change_NewAsset_source_BuiltinAsset { - __typename: 'BuiltinAsset'; + __typename: "BuiltinAsset"; /** * Maximum amount that can be requested by a party through the built-in asset faucet at a time */ @@ -51,19 +47,17 @@ export interface ProposalsQuery_proposals_terms_change_NewAsset_source_BuiltinAs } export interface ProposalsQuery_proposals_terms_change_NewAsset_source_ERC20 { - __typename: 'ERC20'; + __typename: "ERC20"; /** * The address of the erc20 contract */ contractAddress: string; } -export type ProposalsQuery_proposals_terms_change_NewAsset_source = - | ProposalsQuery_proposals_terms_change_NewAsset_source_BuiltinAsset - | ProposalsQuery_proposals_terms_change_NewAsset_source_ERC20; +export type ProposalsQuery_proposals_terms_change_NewAsset_source = ProposalsQuery_proposals_terms_change_NewAsset_source_BuiltinAsset | ProposalsQuery_proposals_terms_change_NewAsset_source_ERC20; export interface ProposalsQuery_proposals_terms_change_NewAsset { - __typename: 'NewAsset'; + __typename: "NewAsset"; /** * The symbol of the asset (e.g: GBP) */ @@ -75,7 +69,7 @@ export interface ProposalsQuery_proposals_terms_change_NewAsset { } export interface ProposalsQuery_proposals_terms_change_UpdateNetworkParameter_networkParameter { - __typename: 'NetworkParameter'; + __typename: "NetworkParameter"; /** * The name of the network parameter */ @@ -87,18 +81,14 @@ export interface ProposalsQuery_proposals_terms_change_UpdateNetworkParameter_ne } export interface ProposalsQuery_proposals_terms_change_UpdateNetworkParameter { - __typename: 'UpdateNetworkParameter'; + __typename: "UpdateNetworkParameter"; networkParameter: ProposalsQuery_proposals_terms_change_UpdateNetworkParameter_networkParameter; } -export type ProposalsQuery_proposals_terms_change = - | ProposalsQuery_proposals_terms_change_NewMarket - | ProposalsQuery_proposals_terms_change_UpdateMarket - | ProposalsQuery_proposals_terms_change_NewAsset - | ProposalsQuery_proposals_terms_change_UpdateNetworkParameter; +export type ProposalsQuery_proposals_terms_change = ProposalsQuery_proposals_terms_change_NewMarket | ProposalsQuery_proposals_terms_change_UpdateMarket | ProposalsQuery_proposals_terms_change_NewAsset | ProposalsQuery_proposals_terms_change_UpdateNetworkParameter; export interface ProposalsQuery_proposals_terms { - __typename: 'ProposalTerms'; + __typename: "ProposalTerms"; /** * RFC3339Nano time and date when voting closes for this proposal. * Constrained by "minClose" and "maxClose" network parameters. @@ -116,7 +106,7 @@ export interface ProposalsQuery_proposals_terms { } export interface ProposalsQuery_proposals_votes_yes_votes_party_stake { - __typename: 'PartyStake'; + __typename: "PartyStake"; /** * The stake currently available for the party */ @@ -124,7 +114,7 @@ export interface ProposalsQuery_proposals_votes_yes_votes_party_stake { } export interface ProposalsQuery_proposals_votes_yes_votes_party { - __typename: 'Party'; + __typename: "Party"; /** * Party identifier */ @@ -136,7 +126,7 @@ export interface ProposalsQuery_proposals_votes_yes_votes_party { } export interface ProposalsQuery_proposals_votes_yes_votes { - __typename: 'Vote'; + __typename: "Vote"; /** * The vote value cast */ @@ -152,7 +142,7 @@ export interface ProposalsQuery_proposals_votes_yes_votes { } export interface ProposalsQuery_proposals_votes_yes { - __typename: 'ProposalVoteSide'; + __typename: "ProposalVoteSide"; /** * Total tokens of governance token from the votes casted for this side */ @@ -168,7 +158,7 @@ export interface ProposalsQuery_proposals_votes_yes { } export interface ProposalsQuery_proposals_votes_no_votes_party_stake { - __typename: 'PartyStake'; + __typename: "PartyStake"; /** * The stake currently available for the party */ @@ -176,7 +166,7 @@ export interface ProposalsQuery_proposals_votes_no_votes_party_stake { } export interface ProposalsQuery_proposals_votes_no_votes_party { - __typename: 'Party'; + __typename: "Party"; /** * Party identifier */ @@ -188,7 +178,7 @@ export interface ProposalsQuery_proposals_votes_no_votes_party { } export interface ProposalsQuery_proposals_votes_no_votes { - __typename: 'Vote'; + __typename: "Vote"; /** * The vote value cast */ @@ -204,7 +194,7 @@ export interface ProposalsQuery_proposals_votes_no_votes { } export interface ProposalsQuery_proposals_votes_no { - __typename: 'ProposalVoteSide'; + __typename: "ProposalVoteSide"; /** * Total tokens of governance token from the votes casted for this side */ @@ -220,7 +210,7 @@ export interface ProposalsQuery_proposals_votes_no { } export interface ProposalsQuery_proposals_votes { - __typename: 'ProposalVotes'; + __typename: "ProposalVotes"; /** * Yes votes cast for this proposal */ @@ -232,7 +222,7 @@ export interface ProposalsQuery_proposals_votes { } export interface ProposalsQuery_proposals { - __typename: 'Proposal'; + __typename: "Proposal"; /** * Proposal ID that is filled by VEGA once proposal reaches the network */ diff --git a/apps/explorer/src/app/routes/markets/__generated__/MarketsQuery.ts b/apps/explorer/src/app/routes/markets/__generated__/MarketsQuery.ts index 49f849c78..b507f79aa 100644 --- a/apps/explorer/src/app/routes/markets/__generated__/MarketsQuery.ts +++ b/apps/explorer/src/app/routes/markets/__generated__/MarketsQuery.ts @@ -3,19 +3,14 @@ // @generated // This file was automatically generated and should not be edited. -import { - MarketTradingMode, - MarketState, - AccountType, - AuctionTrigger, -} from './../../../../__generated__/globalTypes'; +import { MarketTradingMode, MarketState, AccountType, AuctionTrigger } from "./../../../../__generated__/globalTypes"; // ==================================================== // GraphQL query operation: MarketsQuery // ==================================================== export interface MarketsQuery_markets_fees_factors { - __typename: 'FeeFactors'; + __typename: "FeeFactors"; /** * The factor applied to calculate MakerFees, a non-negative float */ @@ -31,7 +26,7 @@ export interface MarketsQuery_markets_fees_factors { } export interface MarketsQuery_markets_fees { - __typename: 'Fees'; + __typename: "Fees"; /** * The factors used to calculate the different fees */ @@ -39,7 +34,7 @@ export interface MarketsQuery_markets_fees { } export interface MarketsQuery_markets_tradableInstrument_instrument_metadata { - __typename: 'InstrumentMetadata'; + __typename: "InstrumentMetadata"; /** * An arbitrary list of tags to associated to associate to the Instrument (string list) */ @@ -47,7 +42,7 @@ export interface MarketsQuery_markets_tradableInstrument_instrument_metadata { } export interface MarketsQuery_markets_tradableInstrument_instrument_product_settlementAsset_globalRewardPoolAccount { - __typename: 'Account'; + __typename: "Account"; /** * Balance as string - current account balance (approx. as balances can be updated several times per second) */ @@ -55,7 +50,7 @@ export interface MarketsQuery_markets_tradableInstrument_instrument_product_sett } export interface MarketsQuery_markets_tradableInstrument_instrument_product_settlementAsset { - __typename: 'Asset'; + __typename: "Asset"; /** * The id of the asset */ @@ -79,11 +74,7 @@ export interface MarketsQuery_markets_tradableInstrument_instrument_product_sett } export interface MarketsQuery_markets_tradableInstrument_instrument_product { - __typename: 'Future'; - /** - * RFC3339Nano maturity date of the product - */ - maturity: string; + __typename: "Future"; /** * The name of the asset (string) */ @@ -91,7 +82,7 @@ export interface MarketsQuery_markets_tradableInstrument_instrument_product { } export interface MarketsQuery_markets_tradableInstrument_instrument { - __typename: 'Instrument'; + __typename: "Instrument"; /** * Full and fairly descriptive name for the instrument */ @@ -115,7 +106,7 @@ export interface MarketsQuery_markets_tradableInstrument_instrument { } export interface MarketsQuery_markets_tradableInstrument_riskModel_LogNormalRiskModel_params { - __typename: 'LogNormalModelParams'; + __typename: "LogNormalModelParams"; /** * r parameter */ @@ -131,7 +122,7 @@ export interface MarketsQuery_markets_tradableInstrument_riskModel_LogNormalRisk } export interface MarketsQuery_markets_tradableInstrument_riskModel_LogNormalRiskModel { - __typename: 'LogNormalRiskModel'; + __typename: "LogNormalRiskModel"; /** * Tau parameter of the risk model */ @@ -147,7 +138,7 @@ export interface MarketsQuery_markets_tradableInstrument_riskModel_LogNormalRisk } export interface MarketsQuery_markets_tradableInstrument_riskModel_SimpleRiskModel_params { - __typename: 'SimpleRiskModelParams'; + __typename: "SimpleRiskModelParams"; /** * Risk factor for long */ @@ -159,19 +150,17 @@ export interface MarketsQuery_markets_tradableInstrument_riskModel_SimpleRiskMod } export interface MarketsQuery_markets_tradableInstrument_riskModel_SimpleRiskModel { - __typename: 'SimpleRiskModel'; + __typename: "SimpleRiskModel"; /** * Params for the simple risk model */ params: MarketsQuery_markets_tradableInstrument_riskModel_SimpleRiskModel_params; } -export type MarketsQuery_markets_tradableInstrument_riskModel = - | MarketsQuery_markets_tradableInstrument_riskModel_LogNormalRiskModel - | MarketsQuery_markets_tradableInstrument_riskModel_SimpleRiskModel; +export type MarketsQuery_markets_tradableInstrument_riskModel = MarketsQuery_markets_tradableInstrument_riskModel_LogNormalRiskModel | MarketsQuery_markets_tradableInstrument_riskModel_SimpleRiskModel; export interface MarketsQuery_markets_tradableInstrument_marginCalculator_scalingFactors { - __typename: 'ScalingFactors'; + __typename: "ScalingFactors"; /** * the scaling factor that determines the margin level at which Vega has to search for more money */ @@ -187,7 +176,7 @@ export interface MarketsQuery_markets_tradableInstrument_marginCalculator_scalin } export interface MarketsQuery_markets_tradableInstrument_marginCalculator { - __typename: 'MarginCalculator'; + __typename: "MarginCalculator"; /** * The scaling factors that will be used for margin calculation */ @@ -195,7 +184,7 @@ export interface MarketsQuery_markets_tradableInstrument_marginCalculator { } export interface MarketsQuery_markets_tradableInstrument { - __typename: 'TradableInstrument'; + __typename: "TradableInstrument"; /** * An instance of or reference to a fully specified instrument. */ @@ -211,7 +200,7 @@ export interface MarketsQuery_markets_tradableInstrument { } export interface MarketsQuery_markets_openingAuction { - __typename: 'AuctionDuration'; + __typename: "AuctionDuration"; /** * Duration of the auction in seconds */ @@ -223,7 +212,7 @@ export interface MarketsQuery_markets_openingAuction { } export interface MarketsQuery_markets_priceMonitoringSettings_parameters_triggers { - __typename: 'PriceMonitoringTrigger'; + __typename: "PriceMonitoringTrigger"; /** * Price monitoring projection horizon τ in seconds (> 0). */ @@ -241,17 +230,15 @@ export interface MarketsQuery_markets_priceMonitoringSettings_parameters_trigger } export interface MarketsQuery_markets_priceMonitoringSettings_parameters { - __typename: 'PriceMonitoringParameters'; + __typename: "PriceMonitoringParameters"; /** * The list of triggers for this price monitoring */ - triggers: - | MarketsQuery_markets_priceMonitoringSettings_parameters_triggers[] - | null; + triggers: MarketsQuery_markets_priceMonitoringSettings_parameters_triggers[] | null; } export interface MarketsQuery_markets_priceMonitoringSettings { - __typename: 'PriceMonitoringSettings'; + __typename: "PriceMonitoringSettings"; /** * Specified a set of PriceMonitoringParameters to be use for price monitoring purposes */ @@ -263,7 +250,7 @@ export interface MarketsQuery_markets_priceMonitoringSettings { } export interface MarketsQuery_markets_liquidityMonitoringParameters_targetStakeParameters { - __typename: 'TargetStakeParameters'; + __typename: "TargetStakeParameters"; /** * Specifies length of time window expressed in seconds for target stake calculation */ @@ -275,7 +262,7 @@ export interface MarketsQuery_markets_liquidityMonitoringParameters_targetStakeP } export interface MarketsQuery_markets_liquidityMonitoringParameters { - __typename: 'LiquidityMonitoringParameters'; + __typename: "LiquidityMonitoringParameters"; /** * Specifies the triggering ratio for entering liquidity auction */ @@ -287,7 +274,7 @@ export interface MarketsQuery_markets_liquidityMonitoringParameters { } export interface MarketsQuery_markets_proposal { - __typename: 'Proposal'; + __typename: "Proposal"; /** * Proposal ID that is filled by VEGA once proposal reaches the network */ @@ -295,7 +282,7 @@ export interface MarketsQuery_markets_proposal { } export interface MarketsQuery_markets_accounts_asset { - __typename: 'Asset'; + __typename: "Asset"; /** * The id of the asset */ @@ -307,7 +294,7 @@ export interface MarketsQuery_markets_accounts_asset { } export interface MarketsQuery_markets_accounts { - __typename: 'Account'; + __typename: "Account"; /** * Asset, the 'currency' */ @@ -323,7 +310,7 @@ export interface MarketsQuery_markets_accounts { } export interface MarketsQuery_markets_data_priceMonitoringBounds_trigger { - __typename: 'PriceMonitoringTrigger'; + __typename: "PriceMonitoringTrigger"; /** * Price monitoring auction extension duration in seconds should the price * breach it's theoretical level over the specified horizon at the specified @@ -337,7 +324,7 @@ export interface MarketsQuery_markets_data_priceMonitoringBounds_trigger { } export interface MarketsQuery_markets_data_priceMonitoringBounds { - __typename: 'PriceMonitoringBounds'; + __typename: "PriceMonitoringBounds"; /** * Minimum price that isn't currently breaching the specified price monitoring trigger */ @@ -357,7 +344,7 @@ export interface MarketsQuery_markets_data_priceMonitoringBounds { } export interface MarketsQuery_markets_data_liquidityProviderFeeShare_party { - __typename: 'Party'; + __typename: "Party"; /** * Party identifier */ @@ -365,7 +352,7 @@ export interface MarketsQuery_markets_data_liquidityProviderFeeShare_party { } export interface MarketsQuery_markets_data_liquidityProviderFeeShare { - __typename: 'LiquidityProviderFeeShare'; + __typename: "LiquidityProviderFeeShare"; /** * The liquidity provider party id */ @@ -381,7 +368,7 @@ export interface MarketsQuery_markets_data_liquidityProviderFeeShare { } export interface MarketsQuery_markets_data { - __typename: 'MarketData'; + __typename: "MarketData"; /** * the mark price (actually an unsgined int) */ @@ -469,9 +456,7 @@ export interface MarketsQuery_markets_data { /** * A list of valid price ranges per associated trigger */ - priceMonitoringBounds: - | MarketsQuery_markets_data_priceMonitoringBounds[] - | null; + priceMonitoringBounds: MarketsQuery_markets_data_priceMonitoringBounds[] | null; /** * the market value proxy */ @@ -479,13 +464,11 @@ export interface MarketsQuery_markets_data { /** * the equity like share of liquidity fee for each liquidity provider */ - liquidityProviderFeeShare: - | MarketsQuery_markets_data_liquidityProviderFeeShare[] - | null; + liquidityProviderFeeShare: MarketsQuery_markets_data_liquidityProviderFeeShare[] | null; } export interface MarketsQuery_markets { - __typename: 'Market'; + __typename: "Market"; /** * Market ID */ @@ -505,14 +488,14 @@ export interface MarketsQuery_markets { /** * decimalPlaces indicates the number of decimal places that an integer must be shifted by in order to get a correct * number denominated in the currency of the Market. (uint64) - * + * * Examples: * Currency Balance decimalPlaces Real Balance * GBP 100 0 GBP 100 * GBP 100 2 GBP 1.00 * GBP 100 4 GBP 0.01 * GBP 1 4 GBP 0.0001 ( 0.01p ) - * + * * GBX (pence) 100 0 GBP 1.00 (100p ) * GBX (pence) 100 2 GBP 0.01 ( 1p ) * GBX (pence) 100 4 GBP 0.0001 ( 0.01p ) diff --git a/apps/explorer/src/app/routes/markets/index.tsx b/apps/explorer/src/app/routes/markets/index.tsx index bd79f0177..687a62f88 100644 --- a/apps/explorer/src/app/routes/markets/index.tsx +++ b/apps/explorer/src/app/routes/markets/index.tsx @@ -26,7 +26,6 @@ const MARKETS_QUERY = gql` code product { ... on Future { - maturity settlementAsset { id name diff --git a/apps/explorer/src/app/routes/parties/id/__generated__/PartyAssetsQuery.ts b/apps/explorer/src/app/routes/parties/id/__generated__/PartyAssetsQuery.ts index 0f9807f74..ab6f3e83f 100644 --- a/apps/explorer/src/app/routes/parties/id/__generated__/PartyAssetsQuery.ts +++ b/apps/explorer/src/app/routes/parties/id/__generated__/PartyAssetsQuery.ts @@ -3,14 +3,14 @@ // @generated // This file was automatically generated and should not be edited. -import { AccountType } from '../../../../../__generated__/globalTypes'; +import { AccountType } from "./../../../../../__generated__/globalTypes"; // ==================================================== // GraphQL query operation: PartyAssetsQuery // ==================================================== export interface PartyAssetsQuery_party_delegations_node { - __typename: 'Node'; + __typename: "Node"; /** * The node url eg n01.vega.xyz */ @@ -19,7 +19,7 @@ export interface PartyAssetsQuery_party_delegations_node { } export interface PartyAssetsQuery_party_delegations { - __typename: 'Delegation'; + __typename: "Delegation"; /** * Amount delegated */ @@ -35,7 +35,7 @@ export interface PartyAssetsQuery_party_delegations { } export interface PartyAssetsQuery_party_stake { - __typename: 'PartyStake'; + __typename: "PartyStake"; /** * The stake currently available for the party */ @@ -43,23 +43,21 @@ export interface PartyAssetsQuery_party_stake { } export interface PartyAssetsQuery_party_accounts_asset_source_BuiltinAsset { - __typename: 'BuiltinAsset'; + __typename: "BuiltinAsset"; } export interface PartyAssetsQuery_party_accounts_asset_source_ERC20 { - __typename: 'ERC20'; + __typename: "ERC20"; /** * The address of the erc20 contract */ contractAddress: string; } -export type PartyAssetsQuery_party_accounts_asset_source = - | PartyAssetsQuery_party_accounts_asset_source_BuiltinAsset - | PartyAssetsQuery_party_accounts_asset_source_ERC20; +export type PartyAssetsQuery_party_accounts_asset_source = PartyAssetsQuery_party_accounts_asset_source_BuiltinAsset | PartyAssetsQuery_party_accounts_asset_source_ERC20; export interface PartyAssetsQuery_party_accounts_asset { - __typename: 'Asset'; + __typename: "Asset"; /** * The full name of the asset (e.g: Great British Pound) */ @@ -83,7 +81,7 @@ export interface PartyAssetsQuery_party_accounts_asset { } export interface PartyAssetsQuery_party_accounts { - __typename: 'Account'; + __typename: "Account"; /** * Asset, the 'currency' */ @@ -99,7 +97,7 @@ export interface PartyAssetsQuery_party_accounts { } export interface PartyAssetsQuery_party { - __typename: 'Party'; + __typename: "Party"; /** * Party identifier */ @@ -123,5 +121,5 @@ export interface PartyAssetsQuery { } export interface PartyAssetsQueryVariables { - partyId: string | undefined; + partyId: string; } diff --git a/apps/explorer/src/app/routes/parties/id/index.tsx b/apps/explorer/src/app/routes/parties/id/index.tsx index 6f17b82b0..2b5e2aed6 100644 --- a/apps/explorer/src/app/routes/parties/id/index.tsx +++ b/apps/explorer/src/app/routes/parties/id/index.tsx @@ -58,7 +58,7 @@ const Party = () => { { // Don't cache data for this query, party information can move quite quickly fetchPolicy: 'network-only', - variables: { partyId: party?.replace('0x', '') }, + variables: { partyId: party?.replace('0x', '') || '' }, skip: !party, } ); diff --git a/apps/explorer/src/app/routes/validators/__generated__/NodesQuery.ts b/apps/explorer/src/app/routes/validators/__generated__/NodesQuery.ts index e926f6466..5ed4289a6 100644 --- a/apps/explorer/src/app/routes/validators/__generated__/NodesQuery.ts +++ b/apps/explorer/src/app/routes/validators/__generated__/NodesQuery.ts @@ -3,14 +3,14 @@ // @generated // This file was automatically generated and should not be edited. -import { NodeStatus } from './../../../../__generated__/globalTypes'; +import { NodeStatus } from "./../../../../__generated__/globalTypes"; // ==================================================== // GraphQL query operation: NodesQuery // ==================================================== export interface NodesQuery_nodes_epochData { - __typename: 'EpochData'; + __typename: "EpochData"; /** * Total number of epochs since node was created */ @@ -26,7 +26,7 @@ export interface NodesQuery_nodes_epochData { } export interface NodesQuery_nodes { - __typename: 'Node'; + __typename: "Node"; /** * The node url eg n01.vega.xyz */ @@ -71,8 +71,6 @@ export interface NodesQuery_nodes { pendingStake: string; epochData: NodesQuery_nodes_epochData | null; status: NodeStatus; - score: string; - normalisedScore: string; } export interface NodesQuery { diff --git a/apps/explorer/src/app/routes/validators/index.tsx b/apps/explorer/src/app/routes/validators/index.tsx index ff76b1ed4..7d8cad2ef 100644 --- a/apps/explorer/src/app/routes/validators/index.tsx +++ b/apps/explorer/src/app/routes/validators/index.tsx @@ -26,8 +26,6 @@ const NODES_QUERY = gql` online } status - score - normalisedScore name } } diff --git a/apps/trading/pages/markets/__generated__/Market.ts b/apps/trading/pages/markets/__generated__/Market.ts index 58c8f008b..44933dd5d 100644 --- a/apps/trading/pages/markets/__generated__/Market.ts +++ b/apps/trading/pages/markets/__generated__/Market.ts @@ -8,7 +8,7 @@ // ==================================================== export interface Market_market_trades { - __typename: 'Trade'; + __typename: "Trade"; /** * The hash of the trade data */ @@ -28,7 +28,7 @@ export interface Market_market_trades { } export interface Market_market { - __typename: 'Market'; + __typename: "Market"; /** * Market ID */