diff --git a/apps/console-lite/src/app/components/deal-ticket/__generated__/MarketTags.ts b/apps/console-lite/src/app/components/deal-ticket/__generated__/MarketTags.ts index 7373c78cd..36694839a 100644 --- a/apps/console-lite/src/app/components/deal-ticket/__generated__/MarketTags.ts +++ b/apps/console-lite/src/app/components/deal-ticket/__generated__/MarketTags.ts @@ -26,7 +26,7 @@ export interface MarketTags_market_tradableInstrument_instrument { export interface MarketTags_market_tradableInstrument { __typename: "TradableInstrument"; /** - * An instance of, or reference to, a fully specified instrument. + * An instance of or reference to a fully specified instrument. */ instrument: MarketTags_market_tradableInstrument_instrument; } @@ -34,14 +34,14 @@ export interface MarketTags_market_tradableInstrument { export interface MarketTags_market { __typename: "Market"; /** - * An instance of, or reference to, a tradable instrument. + * An instance of or reference to a tradable instrument. */ tradableInstrument: MarketTags_market_tradableInstrument; } export interface MarketTags { /** - * An instrument that is trading on the Vega network + * An instrument that is trading on the VEGA network */ market: MarketTags_market | null; } diff --git a/apps/console-lite/src/app/components/deal-ticket/__generated__/PartyBalanceQuery.ts b/apps/console-lite/src/app/components/deal-ticket/__generated__/PartyBalanceQuery.ts index 0db423392..159670129 100644 --- a/apps/console-lite/src/app/components/deal-ticket/__generated__/PartyBalanceQuery.ts +++ b/apps/console-lite/src/app/components/deal-ticket/__generated__/PartyBalanceQuery.ts @@ -3,7 +3,7 @@ // @generated // This file was automatically generated and should not be edited. -import { AccountType } from "@vegaprotocol/types"; +import { AccountType } from "./../../../../../../../libs/types/src/__generated__/globalTypes"; // ==================================================== // GraphQL query operation: PartyBalanceQuery @@ -12,7 +12,7 @@ import { AccountType } from "@vegaprotocol/types"; export interface PartyBalanceQuery_party_accounts_asset { __typename: "Asset"; /** - * The ID of the asset + * The id of the asset */ id: string; /** @@ -24,7 +24,7 @@ export interface PartyBalanceQuery_party_accounts_asset { */ name: string; /** - * The precision of the asset. Should match the decimal precision of the asset on its native chain, e.g: for ERC20 assets, it is often 18 + * The precision of the asset */ decimals: number; } @@ -55,7 +55,7 @@ export interface PartyBalanceQuery_party { export interface PartyBalanceQuery { /** - * An entity that is trading on the Vega network + * An entity that is trading on the VEGA network */ party: PartyBalanceQuery_party | null; } diff --git a/apps/console-lite/src/app/components/deposits/__generated__/Deposits.ts b/apps/console-lite/src/app/components/deposits/__generated__/Deposits.ts index 030cca1b1..ad7053c31 100644 --- a/apps/console-lite/src/app/components/deposits/__generated__/Deposits.ts +++ b/apps/console-lite/src/app/components/deposits/__generated__/Deposits.ts @@ -3,7 +3,7 @@ // @generated // This file was automatically generated and should not be edited. -import { AssetStatus } from "@vegaprotocol/types"; +import { AssetStatus } from "./../../../../../../../libs/types/src/__generated__/globalTypes"; // ==================================================== // GraphQL query operation: Deposits @@ -16,7 +16,7 @@ export interface Deposits_assetsConnection_edges_node_source_BuiltinAsset { export interface Deposits_assetsConnection_edges_node_source_ERC20 { __typename: "ERC20"; /** - * The address of the ERC20 contract + * The address of the erc20 contract */ contractAddress: string; } @@ -26,7 +26,7 @@ export type Deposits_assetsConnection_edges_node_source = Deposits_assetsConnect export interface Deposits_assetsConnection_edges_node { __typename: "Asset"; /** - * The ID of the asset + * The id of the asset */ id: string; /** @@ -38,15 +38,15 @@ export interface Deposits_assetsConnection_edges_node { */ symbol: string; /** - * The precision of the asset. Should match the decimal precision of the asset on its native chain, e.g: for ERC20 assets, it is often 18 + * The precision of the asset */ decimals: number; /** - * The status of the asset in the Vega network + * The status of the asset in the vega network */ status: AssetStatus; /** - * The origin source of the asset (e.g: an ERC20 asset) + * The origin source of the asset (e.g: an erc20 asset) */ source: Deposits_assetsConnection_edges_node_source; } @@ -66,7 +66,7 @@ export interface Deposits_assetsConnection { export interface Deposits { /** - * The list of all assets in use in the Vega network or the specified asset if ID is provided + * The list of all assets in use in the vega network or the specified asset if id is provided */ assetsConnection: Deposits_assetsConnection; } diff --git a/apps/console-lite/src/app/components/simple-market-list/__generated__/SimpleMarketDataSub.ts b/apps/console-lite/src/app/components/simple-market-list/__generated__/SimpleMarketDataSub.ts index 0f78b5f53..c508614ee 100644 --- a/apps/console-lite/src/app/components/simple-market-list/__generated__/SimpleMarketDataSub.ts +++ b/apps/console-lite/src/app/components/simple-market-list/__generated__/SimpleMarketDataSub.ts @@ -3,7 +3,7 @@ // @generated // This file was automatically generated and should not be edited. -import { MarketState } from "@vegaprotocol/types"; +import { MarketState } from "./../../../../../../../libs/types/src/__generated__/globalTypes"; // ==================================================== // GraphQL subscription operation: SimpleMarketDataSub @@ -24,7 +24,7 @@ export interface SimpleMarketDataSub_marketData_market { export interface SimpleMarketDataSub_marketData { __typename: "MarketData"; /** - * market ID of the associated mark price + * market id of the associated mark price */ market: SimpleMarketDataSub_marketData_market; } diff --git a/apps/console-lite/src/app/components/simple-market-list/__generated__/SimpleMarkets.ts b/apps/console-lite/src/app/components/simple-market-list/__generated__/SimpleMarkets.ts index 97dc42767..40a46ffa8 100644 --- a/apps/console-lite/src/app/components/simple-market-list/__generated__/SimpleMarkets.ts +++ b/apps/console-lite/src/app/components/simple-market-list/__generated__/SimpleMarkets.ts @@ -3,7 +3,7 @@ // @generated // This file was automatically generated and should not be edited. -import { MarketState } from "@vegaprotocol/types"; +import { MarketState } from "./../../../../../../../libs/types/src/__generated__/globalTypes"; // ==================================================== // GraphQL query operation: SimpleMarkets @@ -60,7 +60,7 @@ export interface SimpleMarkets_markets_tradableInstrument_instrument { export interface SimpleMarkets_markets_tradableInstrument { __typename: "TradableInstrument"; /** - * An instance of, or reference to, a fully specified instrument. + * An instance of or reference to a fully specified instrument. */ instrument: SimpleMarkets_markets_tradableInstrument_instrument; } @@ -88,11 +88,11 @@ export interface SimpleMarkets_markets { */ state: MarketState; /** - * An instance of, or reference to, a tradable instrument. + * An instance of or reference to a tradable instrument. */ tradableInstrument: SimpleMarkets_markets_tradableInstrument; /** - * Candles on a market, for the 'last' n candles, at 'interval' seconds as specified by parameters + * Candles on a market, for the 'last' n candles, at 'interval' seconds as specified by params */ candles: (SimpleMarkets_markets_candles | null)[] | null; } diff --git a/apps/console-lite/src/app/components/simple-market-list/data-provider.ts b/apps/console-lite/src/app/components/simple-market-list/data-provider.ts index 5be5b70fe..b41439fbd 100644 --- a/apps/console-lite/src/app/components/simple-market-list/data-provider.ts +++ b/apps/console-lite/src/app/components/simple-market-list/data-provider.ts @@ -33,7 +33,7 @@ export const MARKETS_QUERY = gql` } } } - candles(interval: INTERVAL_I1H, since: $CandleSince) { + candles(interval: I1H, since: $CandleSince) { open close } @@ -54,7 +54,7 @@ const MARKET_DATA_SUB = gql` export const CANDLE_SUB = gql` subscription CandleLive($marketId: ID!) { - candles(marketId: $marketId, interval: INTERVAL_I1H) { + candles(marketId: $marketId, interval: I1H) { close } } diff --git a/apps/console-lite/src/app/hooks/__generated__/MarketMarkPrice.ts b/apps/console-lite/src/app/hooks/__generated__/MarketMarkPrice.ts index 889d0be10..99c0c5fcc 100644 --- a/apps/console-lite/src/app/hooks/__generated__/MarketMarkPrice.ts +++ b/apps/console-lite/src/app/hooks/__generated__/MarketMarkPrice.ts @@ -10,7 +10,7 @@ export interface MarketMarkPrice_market_data { __typename: "MarketData"; /** - * the mark price (an unsigned integer) + * the mark price (actually an unsigned int) */ markPrice: string; } @@ -19,7 +19,7 @@ export interface MarketMarkPrice_market { __typename: "Market"; /** * 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) + * number denominated in the currency of the Market. (uint64) * * Examples: * Currency Balance decimalPlaces Real Balance @@ -42,7 +42,7 @@ export interface MarketMarkPrice_market { export interface MarketMarkPrice { /** - * An instrument that is trading on the Vega network + * An instrument that is trading on the VEGA network */ market: MarketMarkPrice_market | null; } diff --git a/apps/console-lite/src/app/hooks/__generated__/PartyMarketData.ts b/apps/console-lite/src/app/hooks/__generated__/PartyMarketData.ts index e1cc6aac5..e1f92333f 100644 --- a/apps/console-lite/src/app/hooks/__generated__/PartyMarketData.ts +++ b/apps/console-lite/src/app/hooks/__generated__/PartyMarketData.ts @@ -3,7 +3,7 @@ // @generated // This file was automatically generated and should not be edited. -import { AccountType } from "@vegaprotocol/types"; +import { AccountType } from "./../../../../../../libs/types/src/__generated__/globalTypes"; // ==================================================== // GraphQL query operation: PartyMarketData @@ -12,11 +12,11 @@ import { AccountType } from "@vegaprotocol/types"; export interface PartyMarketData_party_accounts_asset { __typename: "Asset"; /** - * The ID of the asset + * The id of the asset */ id: string; /** - * The precision of the asset. Should match the decimal precision of the asset on its native chain, e.g: for ERC20 assets, it is often 18 + * The precision of the asset */ decimals: number; } @@ -64,15 +64,15 @@ export interface PartyMarketData_party_marginsConnection_edges_node { */ market: PartyMarketData_party_marginsConnection_edges_node_market; /** - * this is the minimum margin required for a party to place a new order on the network (unsigned integer) + * this is the minimal margin required for a party to place a new order on the network (unsigned int actually) */ initialLevel: string; /** - * minimal margin for the position to be maintained in the network (unsigned integer) + * minimal margin for the position to be maintained in the network (unsigned int actually) */ maintenanceLevel: string; /** - * if the margin is between maintenance and search, the network will initiate a collateral search (unsigned integer) + * if the margin is between maintenance and search, the network will initiate a collateral search (unsigned int actually) */ searchLevel: string; } @@ -101,14 +101,14 @@ export interface PartyMarketData_party { */ accounts: PartyMarketData_party_accounts[] | null; /** - * Margin levels for a market + * Margin level for a market */ marginsConnection: PartyMarketData_party_marginsConnection; } export interface PartyMarketData { /** - * An entity that is trading on the Vega network + * An entity that is trading on the VEGA network */ party: PartyMarketData_party | null; } diff --git a/apps/console-lite/src/app/hooks/__generated__/estimateOrder.ts b/apps/console-lite/src/app/hooks/__generated__/estimateOrder.ts index 3eb01248e..c4345e3f3 100644 --- a/apps/console-lite/src/app/hooks/__generated__/estimateOrder.ts +++ b/apps/console-lite/src/app/hooks/__generated__/estimateOrder.ts @@ -3,7 +3,7 @@ // @generated // This file was automatically generated and should not be edited. -import { Side, OrderTimeInForce, OrderType } from "@vegaprotocol/types"; +import { Side, OrderTimeInForce, OrderType } from "./../../../../../../libs/types/src/__generated__/globalTypes"; // ==================================================== // GraphQL query operation: EstimateOrder @@ -12,15 +12,15 @@ import { Side, OrderTimeInForce, OrderType } from "@vegaprotocol/types"; export interface EstimateOrder_estimateOrder_fee { __typename: "TradeFee"; /** - * The maker fee, paid by the aggressive party to the other party (the one who had an order in the book) + * The maker fee, aggressive party to the other party (the one who had an order in the book) */ makerFee: string; /** - * The infrastructure fee, a fee paid to the validators to maintain the Vega network + * The infrastructure fee, a fee paid to the node runner to maintain the vega network */ infrastructureFee: string; /** - * The fee paid to the liquidity providers that committed liquidity to the market + * The fee paid to the market makers to provide liquidity in the market */ liquidityFee: string; } @@ -28,7 +28,7 @@ export interface EstimateOrder_estimateOrder_fee { export interface EstimateOrder_estimateOrder_marginLevels { __typename: "MarginLevels"; /** - * this is the minimum margin required for a party to place a new order on the network (unsigned integer) + * this is the minimal margin required for a party to place a new order on the network (unsigned int actually) */ initialLevel: string; } diff --git a/apps/console-lite/src/app/hooks/__generated__/marketPositions.ts b/apps/console-lite/src/app/hooks/__generated__/marketPositions.ts index 66fe5ed56..c83884ab3 100644 --- a/apps/console-lite/src/app/hooks/__generated__/marketPositions.ts +++ b/apps/console-lite/src/app/hooks/__generated__/marketPositions.ts @@ -3,7 +3,7 @@ // @generated // This file was automatically generated and should not be edited. -import { AccountType } from "@vegaprotocol/types"; +import { AccountType } from "./../../../../../../libs/types/src/__generated__/globalTypes"; // ==================================================== // GraphQL query operation: MarketPositions @@ -12,7 +12,7 @@ import { AccountType } from "@vegaprotocol/types"; export interface MarketPositions_party_accounts_asset { __typename: "Asset"; /** - * The precision of the asset. Should match the decimal precision of the asset on its native chain, e.g: for ERC20 assets, it is often 18 + * The precision of the asset */ decimals: number; } @@ -96,7 +96,7 @@ export interface MarketPositions_party { export interface MarketPositions { /** - * An entity that is trading on the Vega network + * An entity that is trading on the VEGA network */ party: MarketPositions_party | null; } diff --git a/apps/explorer/src/app/routes/assets/__generated__/AssetsQuery.ts b/apps/explorer/src/app/routes/assets/__generated__/AssetsQuery.ts index 19916db4b..d0d2a6e87 100644 --- a/apps/explorer/src/app/routes/assets/__generated__/AssetsQuery.ts +++ b/apps/explorer/src/app/routes/assets/__generated__/AssetsQuery.ts @@ -3,7 +3,7 @@ // @generated // This file was automatically generated and should not be edited. -import { AccountType } from "@vegaprotocol/types"; +import { AccountType } from "./../../../../../../../libs/types/src/__generated__/globalTypes"; // ==================================================== // GraphQL query operation: AssetsQuery @@ -12,7 +12,7 @@ import { AccountType } from "@vegaprotocol/types"; export interface AssetsQuery_assetsConnection_edges_node_source_ERC20 { __typename: "ERC20"; /** - * The address of the ERC20 contract + * The address of the erc20 contract */ contractAddress: string; } @@ -54,7 +54,7 @@ export interface AssetsQuery_assetsConnection_edges_node_infrastructureFeeAccoun export interface AssetsQuery_assetsConnection_edges_node { __typename: "Asset"; /** - * The ID of the asset + * The id of the asset */ id: string; /** @@ -66,11 +66,11 @@ export interface AssetsQuery_assetsConnection_edges_node { */ symbol: string; /** - * The precision of the asset. Should match the decimal precision of the asset on its native chain, e.g: for ERC20 assets, it is often 18 + * The precision of the asset */ decimals: number; /** - * The origin source of the asset (e.g: an ERC20 asset) + * The origin source of the asset (e.g: an erc20 asset) */ source: AssetsQuery_assetsConnection_edges_node_source; /** @@ -94,7 +94,7 @@ export interface AssetsQuery_assetsConnection { export interface AssetsQuery { /** - * The list of all assets in use in the Vega network or the specified asset if ID is provided + * The list of all assets in use in the vega network or the specified asset if id is provided */ assetsConnection: AssetsQuery_assetsConnection; } diff --git a/apps/explorer/src/app/routes/governance/__generated__/ProposalsQuery.ts b/apps/explorer/src/app/routes/governance/__generated__/ProposalsQuery.ts index 7e6d2b10b..01beb9781 100644 --- a/apps/explorer/src/app/routes/governance/__generated__/ProposalsQuery.ts +++ b/apps/explorer/src/app/routes/governance/__generated__/ProposalsQuery.ts @@ -3,7 +3,7 @@ // @generated // This file was automatically generated and should not be edited. -import { ProposalState, ProposalRejectionReason, VoteValue } from "@vegaprotocol/types"; +import { ProposalState, ProposalRejectionReason, VoteValue } from "./../../../../../../../libs/types/src/__generated__/globalTypes"; // ==================================================== // GraphQL query operation: ProposalsQuery @@ -17,8 +17,8 @@ export interface ProposalsQuery_proposals_party { id: string; } -export interface ProposalsQuery_proposals_terms_change_UpdateAsset { - __typename: "UpdateAsset" | "NewFreeform"; +export interface ProposalsQuery_proposals_terms_change_NewFreeform { + __typename: "NewFreeform"; } export interface ProposalsQuery_proposals_terms_change_NewMarket_instrument { @@ -53,7 +53,7 @@ export interface ProposalsQuery_proposals_terms_change_NewAsset_source_BuiltinAs export interface ProposalsQuery_proposals_terms_change_NewAsset_source_ERC20 { __typename: "ERC20"; /** - * The address of the ERC20 contract + * The address of the erc20 contract */ contractAddress: string; } @@ -67,7 +67,7 @@ export interface ProposalsQuery_proposals_terms_change_NewAsset { */ symbol: string; /** - * The source of the new asset + * the source of the new Asset */ source: ProposalsQuery_proposals_terms_change_NewAsset_source; } @@ -89,7 +89,7 @@ export interface ProposalsQuery_proposals_terms_change_UpdateNetworkParameter { networkParameter: ProposalsQuery_proposals_terms_change_UpdateNetworkParameter_networkParameter; } -export type ProposalsQuery_proposals_terms_change = ProposalsQuery_proposals_terms_change_UpdateAsset | 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_NewFreeform | 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"; @@ -101,9 +101,8 @@ export interface ProposalsQuery_proposals_terms { /** * RFC3339Nano time and date when this proposal is executed (if passed). Note that it has to be after closing date time. * Constrained by "minEnactInSeconds" and "maxEnactInSeconds" network parameters. - * Note: Optional as free form proposals do not require it. */ - enactmentDatetime: string | null; + enactmentDatetime: string; /** * Actual change being introduced by the proposal - action the proposal triggers if passed and enacted. */ @@ -149,15 +148,15 @@ export interface ProposalsQuery_proposals_votes_yes_votes { export interface ProposalsQuery_proposals_votes_yes { __typename: "ProposalVoteSide"; /** - * Total number of governance tokens from the votes cast for this side + * Total tokens of governance token from the votes casted for this side */ totalTokens: string; /** - * Total number of votes cast for this side + * Total number of votes casted for this side */ totalNumber: string; /** - * All votes cast for this side + * All votes casted for this side */ votes: ProposalsQuery_proposals_votes_yes_votes[] | null; } @@ -201,15 +200,15 @@ export interface ProposalsQuery_proposals_votes_no_votes { export interface ProposalsQuery_proposals_votes_no { __typename: "ProposalVoteSide"; /** - * Total number of governance tokens from the votes cast for this side + * Total tokens of governance token from the votes casted for this side */ totalTokens: string; /** - * Total number of votes cast for this side + * Total number of votes casted for this side */ totalNumber: string; /** - * All votes cast for this side + * All votes casted for this side */ votes: ProposalsQuery_proposals_votes_no_votes[] | null; } @@ -229,11 +228,11 @@ export interface ProposalsQuery_proposals_votes { export interface ProposalsQuery_proposals { __typename: "Proposal"; /** - * Proposal ID that is filled by Vega once proposal reaches the network + * Proposal ID that is filled by VEGA once proposal reaches the network */ id: string | null; /** - * A UUID reference to aid tracking proposals on Vega + * A UUID reference to aid tracking proposals on VEGA */ reference: string; /** @@ -264,7 +263,7 @@ export interface ProposalsQuery_proposals { export interface ProposalsQuery { /** - * All governance proposals in the Vega network + * All governance proposals in the VEGA network */ proposals: ProposalsQuery_proposals[] | null; } diff --git a/apps/explorer/src/app/routes/markets/__generated__/MarketsQuery.ts b/apps/explorer/src/app/routes/markets/__generated__/MarketsQuery.ts index 9896efed9..52815655b 100644 --- a/apps/explorer/src/app/routes/markets/__generated__/MarketsQuery.ts +++ b/apps/explorer/src/app/routes/markets/__generated__/MarketsQuery.ts @@ -3,7 +3,7 @@ // @generated // This file was automatically generated and should not be edited. -import { MarketTradingMode, MarketState, AccountType, AuctionTrigger } from "@vegaprotocol/types"; +import { MarketTradingMode, MarketState, AccountType, AuctionTrigger } from "./../../../../../../../libs/types/src/__generated__/globalTypes"; // ==================================================== // GraphQL query operation: MarketsQuery @@ -52,7 +52,7 @@ export interface MarketsQuery_markets_tradableInstrument_instrument_product_sett export interface MarketsQuery_markets_tradableInstrument_instrument_product_settlementAsset { __typename: "Asset"; /** - * The ID of the asset + * The id of the asset */ id: string; /** @@ -60,7 +60,7 @@ export interface MarketsQuery_markets_tradableInstrument_instrument_product_sett */ name: string; /** - * The precision of the asset. Should match the decimal precision of the asset on its native chain, e.g: for ERC20 assets, it is often 18 + * The precision of the asset */ decimals: number; /** @@ -108,11 +108,11 @@ export interface MarketsQuery_markets_tradableInstrument_riskModel_LogNormalRisk */ r: number; /** - * sigma parameter, annualised volatility of the underlying asset, must be a strictly non-negative real number + * sigma parameter */ sigma: number; /** - * mu parameter, annualised growth rate of the underlying asset + * mu parameter */ mu: number; } @@ -120,15 +120,15 @@ export interface MarketsQuery_markets_tradableInstrument_riskModel_LogNormalRisk export interface MarketsQuery_markets_tradableInstrument_riskModel_LogNormalRiskModel { __typename: "LogNormalRiskModel"; /** - * Tau parameter of the risk model, projection horizon measured as a year fraction used in the expected shortfall calculation to obtain the maintenance margin, must be a strictly non-negative real number + * Tau parameter of the risk model */ tau: number; /** - * Lambda parameter of the risk model, probability confidence level used in expected shortfall calculation when obtaining the maintenance margin level, must be strictly greater than 0 and strictly smaller than 1 + * Lambda parameter of the risk model */ riskAversionParameter: number; /** - * Parameters for the log normal risk model + * Params for the log normal risk model */ params: MarketsQuery_markets_tradableInstrument_riskModel_LogNormalRiskModel_params; } @@ -166,7 +166,7 @@ export interface MarketsQuery_markets_tradableInstrument_marginCalculator_scalin */ initialMargin: number; /** - * the scaling factor that determines the overflow margin level + * The scaling factor that determines the overflow margin level */ collateralRelease: number; } @@ -182,7 +182,7 @@ export interface MarketsQuery_markets_tradableInstrument_marginCalculator { export interface MarketsQuery_markets_tradableInstrument { __typename: "TradableInstrument"; /** - * An instance of, or reference to, a fully specified instrument. + * An instance of or reference to a fully specified instrument. */ instrument: MarketsQuery_markets_tradableInstrument_instrument; /** @@ -219,7 +219,7 @@ export interface MarketsQuery_markets_priceMonitoringSettings_parameters_trigger probability: number; /** * Price monitoring auction extension duration in seconds should the price - * breach its theoretical level over the specified horizon at the specified + * breach it's theoretical level over the specified horizon at the specified * probability level (> 0) */ auctionExtensionSecs: number; @@ -268,7 +268,7 @@ export interface MarketsQuery_markets_liquidityMonitoringParameters { export interface MarketsQuery_markets_proposal { __typename: "Proposal"; /** - * Proposal ID that is filled by Vega once proposal reaches the network + * Proposal ID that is filled by VEGA once proposal reaches the network */ id: string | null; } @@ -276,7 +276,7 @@ export interface MarketsQuery_markets_proposal { export interface MarketsQuery_markets_accounts_asset { __typename: "Asset"; /** - * The ID of the asset + * The id of the asset */ id: string; /** @@ -305,7 +305,7 @@ export interface MarketsQuery_markets_data_priceMonitoringBounds_trigger { __typename: "PriceMonitoringTrigger"; /** * Price monitoring auction extension duration in seconds should the price - * breach its theoretical level over the specified horizon at the specified + * breach it's theoretical level over the specified horizon at the specified * probability level (> 0) */ auctionExtensionSecs: number; @@ -346,15 +346,15 @@ export interface MarketsQuery_markets_data_liquidityProviderFeeShare_party { export interface MarketsQuery_markets_data_liquidityProviderFeeShare { __typename: "LiquidityProviderFeeShare"; /** - * The liquidity provider party ID + * The liquidity provider party id */ party: MarketsQuery_markets_data_liquidityProviderFeeShare_party; /** - * The share owned by this liquidity provider (float) + * The share own by this liquidity provider (float) */ equityLikeShare: string; /** - * The average entry valuation of the liquidity provider for the market + * the average entry valuation of the liquidity provider for the market */ averageEntryValuation: string; } @@ -362,7 +362,7 @@ export interface MarketsQuery_markets_data_liquidityProviderFeeShare { export interface MarketsQuery_markets_data { __typename: "MarketData"; /** - * the mark price (an unsigned integer) + * the mark price (actually an unsigned int) */ markPrice: string; /** @@ -446,7 +446,7 @@ export interface MarketsQuery_markets_data { */ suppliedStake: string | null; /** - * a list of valid price ranges per associated trigger + * A list of valid price ranges per associated trigger */ priceMonitoringBounds: MarketsQuery_markets_data_priceMonitoringBounds[] | null; /** @@ -470,12 +470,12 @@ export interface MarketsQuery_markets { */ fees: MarketsQuery_markets_fees; /** - * An instance of, or reference to, a tradable instrument. + * An instance of or reference to a tradable instrument. */ tradableInstrument: MarketsQuery_markets_tradableInstrument; /** * 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) + * number denominated in the currency of the Market. (uint64) * * Examples: * Currency Balance decimalPlaces Real Balance @@ -512,7 +512,7 @@ export interface MarketsQuery_markets { */ state: MarketState; /** - * The proposal that initiated this market + * The proposal which initiated this market */ proposal: MarketsQuery_markets_proposal | null; /** diff --git a/apps/explorer/src/app/routes/oracles/__generated__/OracleSpecs.ts b/apps/explorer/src/app/routes/oracles/__generated__/OracleSpecs.ts index cecdb1a11..84c6f28ff 100644 --- a/apps/explorer/src/app/routes/oracles/__generated__/OracleSpecs.ts +++ b/apps/explorer/src/app/routes/oracles/__generated__/OracleSpecs.ts @@ -3,7 +3,7 @@ // @generated // This file was automatically generated and should not be edited. -import { OracleSpecStatus, PropertyKeyType, ConditionOperator } from "@vegaprotocol/types"; +import { OracleSpecStatus, PropertyKeyType, ConditionOperator } from "./../../../../../../../libs/types/src/__generated__/globalTypes"; // ==================================================== // GraphQL query operation: OracleSpecs @@ -61,7 +61,7 @@ export interface OracleSpecs_oracleSpecs { */ status: OracleSpecStatus; /** - * ID is a hash generated from the OracleSpec data. + * id is a hash generated from the OracleSpec data. */ id: string; /** 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 8f43167b7..623bd276c 100644 --- a/apps/explorer/src/app/routes/parties/id/__generated__/PartyAssetsQuery.ts +++ b/apps/explorer/src/app/routes/parties/id/__generated__/PartyAssetsQuery.ts @@ -3,7 +3,7 @@ // @generated // This file was automatically generated and should not be edited. -import { AccountType } from "@vegaprotocol/types"; +import { AccountType } from "./../../../../../../../../libs/types/src/__generated__/globalTypes"; // ==================================================== // GraphQL query operation: PartyAssetsQuery @@ -12,7 +12,7 @@ import { AccountType } from "@vegaprotocol/types"; export interface PartyAssetsQuery_party_delegations_node { __typename: "Node"; /** - * The node URL eg n01.vega.xyz + * The node url eg n01.vega.xyz */ id: string; name: string; @@ -49,7 +49,7 @@ export interface PartyAssetsQuery_party_accounts_asset_source_BuiltinAsset { export interface PartyAssetsQuery_party_accounts_asset_source_ERC20 { __typename: "ERC20"; /** - * The address of the ERC20 contract + * The address of the erc20 contract */ contractAddress: string; } @@ -63,11 +63,11 @@ export interface PartyAssetsQuery_party_accounts_asset { */ name: string; /** - * The ID of the asset + * The id of the asset */ id: string; /** - * The precision of the asset. Should match the decimal precision of the asset on its native chain, e.g: for ERC20 assets, it is often 18 + * The precision of the asset */ decimals: number; /** @@ -75,7 +75,7 @@ export interface PartyAssetsQuery_party_accounts_asset { */ symbol: string; /** - * The origin source of the asset (e.g: an ERC20 asset) + * The origin source of the asset (e.g: an erc20 asset) */ source: PartyAssetsQuery_party_accounts_asset_source; } @@ -115,7 +115,7 @@ export interface PartyAssetsQuery_party { export interface PartyAssetsQuery { /** - * An entity that is trading on the Vega network + * An entity that is trading on the VEGA network */ party: PartyAssetsQuery_party | null; } diff --git a/apps/explorer/src/app/routes/validators/__generated__/NodesQuery.ts b/apps/explorer/src/app/routes/validators/__generated__/NodesQuery.ts index a84f39207..0df9fe0e1 100644 --- a/apps/explorer/src/app/routes/validators/__generated__/NodesQuery.ts +++ b/apps/explorer/src/app/routes/validators/__generated__/NodesQuery.ts @@ -3,7 +3,7 @@ // @generated // This file was automatically generated and should not be edited. -import { NodeStatus } from "@vegaprotocol/types"; +import { NodeStatus } from "./../../../../../../../libs/types/src/__generated__/globalTypes"; // ==================================================== // GraphQL query operation: NodesQuery @@ -28,33 +28,33 @@ export interface NodesQuery_nodes_epochData { export interface NodesQuery_nodes { __typename: "Node"; /** - * The node URL eg n01.vega.xyz + * The node url eg n01.vega.xyz */ id: string; name: string; /** - * URL from which you can get more info about the node. + * URL where I can find out more info on the node. Will this be possible? */ infoUrl: string; avatarUrl: string | null; /** - * Public key of the node operator + * Pubkey of the node operator */ pubkey: string; /** - * Tendermint public key of the node + * Public key of Tendermint */ tmPubkey: string; /** * Ethereum public key of the node */ - ethereumAddress: string; + ethereumAdddress: string; /** * Country code for the location of the node */ location: string; /** - * The amount of stake the node has put up themselves + * The amount the node has put up themselves */ stakedByOperator: string; /** diff --git a/apps/token/src/components/vega-wallet/__generated__/Delegations.ts b/apps/token/src/components/vega-wallet/__generated__/Delegations.ts index 0392833ad..520783ad2 100644 --- a/apps/token/src/components/vega-wallet/__generated__/Delegations.ts +++ b/apps/token/src/components/vega-wallet/__generated__/Delegations.ts @@ -3,7 +3,7 @@ // @generated // This file was automatically generated and should not be edited. -import { AccountType } from "@vegaprotocol/types"; +import { AccountType } from "./../../../../../../libs/types/src/__generated__/globalTypes"; // ==================================================== // GraphQL query operation: Delegations @@ -20,7 +20,7 @@ export interface Delegations_epoch { export interface Delegations_party_delegations_node { __typename: "Node"; /** - * The node URL eg n01.vega.xyz + * The node url eg n01.vega.xyz */ id: string; name: string; @@ -65,7 +65,7 @@ export interface Delegations_party_accounts_asset_source_BuiltinAsset { export interface Delegations_party_accounts_asset_source_ERC20 { __typename: "ERC20"; /** - * The address of the ERC20 contract + * The address of the erc20 contract */ contractAddress: string; } @@ -79,11 +79,11 @@ export interface Delegations_party_accounts_asset { */ name: string; /** - * The ID of the asset + * The id of the asset */ id: string; /** - * The precision of the asset. Should match the decimal precision of the asset on its native chain, e.g: for ERC20 assets, it is often 18 + * The precision of the asset */ decimals: number; /** @@ -91,7 +91,7 @@ export interface Delegations_party_accounts_asset { */ symbol: string; /** - * The origin source of the asset (e.g: an ERC20 asset) + * The origin source of the asset (e.g: an erc20 asset) */ source: Delegations_party_accounts_asset_source; } @@ -131,11 +131,11 @@ export interface Delegations_party { export interface Delegations { /** - * get data for a specific epoch, if ID omitted it gets the current epoch. If the string is 'next', fetch the next epoch + * get data for a specific epoch, if id omitted it gets the current epoch. If the string is 'next', fetch the next epoch */ epoch: Delegations_epoch; /** - * An entity that is trading on the Vega network + * An entity that is trading on the VEGA network */ party: Delegations_party | null; } diff --git a/apps/token/src/components/vega-wallet/hooks.ts b/apps/token/src/components/vega-wallet/hooks.ts index 840a7c7e8..fc3c1e87a 100644 --- a/apps/token/src/components/vega-wallet/hooks.ts +++ b/apps/token/src/components/vega-wallet/hooks.ts @@ -115,7 +115,7 @@ export const usePollForDelegations = () => { const accounts = res.data.party?.accounts || []; setAccounts( accounts - .filter((a) => a.type === AccountType.ACCOUNT_TYPE_GENERAL) + .filter((a) => a.type === AccountType.General) .map((a) => { const isVega = isAssetTypeERC20(a.asset) && diff --git a/apps/token/src/lib/client.graphql b/apps/token/src/lib/client.graphql deleted file mode 100644 index 0cea90165..000000000 --- a/apps/token/src/lib/client.graphql +++ /dev/null @@ -1,37 +0,0 @@ -extend type Proposal { - "Whether or the not the proposal is processing on the blockchain" - pending: Boolean! - "Generated name for the proposal" - name: String! -} - -extend type Node { - pendingStakeFormatted: String! - stakedByOperatorFormatted: String! - stakedByDelegatesFormatted: String! - stakedTotalFormatted: String! -} - -extend type Delegation { - amountFormatted: String! -} - -extend type NodeData { - stakedTotalFormatted: String! -} - -extend type PartyStake { - currentStakeAvailableFormatted: String! -} - -extend type Reward { - amountFormatted: String! -} - -extend type RewardPerAssetDetail { - totalAmountFormatted: String! -} - -extend type Account { - balanceFormatted: String! -} diff --git a/apps/token/src/routes/governance/__generated__/ProposalFields.ts b/apps/token/src/routes/governance/__generated__/ProposalFields.ts index bf2740a4d..8eec89f69 100644 --- a/apps/token/src/routes/governance/__generated__/ProposalFields.ts +++ b/apps/token/src/routes/governance/__generated__/ProposalFields.ts @@ -3,7 +3,7 @@ // @generated // This file was automatically generated and should not be edited. -import { ProposalState, ProposalRejectionReason, VoteValue } from "@vegaprotocol/types"; +import { ProposalState, ProposalRejectionReason, VoteValue } from "./../../../../../../libs/types/src/__generated__/globalTypes"; // ==================================================== // GraphQL fragment: ProposalFields @@ -17,8 +17,8 @@ export interface ProposalFields_party { id: string; } -export interface ProposalFields_terms_change_UpdateAsset { - __typename: "UpdateAsset" | "NewFreeform"; +export interface ProposalFields_terms_change_NewFreeform { + __typename: "NewFreeform"; } export interface ProposalFields_terms_change_NewMarket_instrument_futureProduct_settlementAsset { @@ -56,7 +56,7 @@ export interface ProposalFields_terms_change_NewMarket_instrument { export interface ProposalFields_terms_change_NewMarket { __typename: "NewMarket"; /** - * Decimal places used for the new market, sets the smallest price increment on the book + * Decimal places used for the new market */ decimalPlaces: number; /** @@ -85,7 +85,7 @@ export interface ProposalFields_terms_change_NewAsset_source_BuiltinAsset { export interface ProposalFields_terms_change_NewAsset_source_ERC20 { __typename: "ERC20"; /** - * The address of the ERC20 contract + * The address of the erc20 contract */ contractAddress: string; } @@ -103,7 +103,7 @@ export interface ProposalFields_terms_change_NewAsset { */ symbol: string; /** - * The source of the new asset + * the source of the new Asset */ source: ProposalFields_terms_change_NewAsset_source; } @@ -125,7 +125,7 @@ export interface ProposalFields_terms_change_UpdateNetworkParameter { networkParameter: ProposalFields_terms_change_UpdateNetworkParameter_networkParameter; } -export type ProposalFields_terms_change = ProposalFields_terms_change_UpdateAsset | ProposalFields_terms_change_NewMarket | ProposalFields_terms_change_UpdateMarket | ProposalFields_terms_change_NewAsset | ProposalFields_terms_change_UpdateNetworkParameter; +export type ProposalFields_terms_change = ProposalFields_terms_change_NewFreeform | ProposalFields_terms_change_NewMarket | ProposalFields_terms_change_UpdateMarket | ProposalFields_terms_change_NewAsset | ProposalFields_terms_change_UpdateNetworkParameter; export interface ProposalFields_terms { __typename: "ProposalTerms"; @@ -137,9 +137,8 @@ export interface ProposalFields_terms { /** * RFC3339Nano time and date when this proposal is executed (if passed). Note that it has to be after closing date time. * Constrained by "minEnactInSeconds" and "maxEnactInSeconds" network parameters. - * Note: Optional as free form proposals do not require it. */ - enactmentDatetime: string | null; + enactmentDatetime: string; /** * Actual change being introduced by the proposal - action the proposal triggers if passed and enacted. */ @@ -185,15 +184,15 @@ export interface ProposalFields_votes_yes_votes { export interface ProposalFields_votes_yes { __typename: "ProposalVoteSide"; /** - * Total number of governance tokens from the votes cast for this side + * Total tokens of governance token from the votes casted for this side */ totalTokens: string; /** - * Total number of votes cast for this side + * Total number of votes casted for this side */ totalNumber: string; /** - * All votes cast for this side + * All votes casted for this side */ votes: ProposalFields_votes_yes_votes[] | null; } @@ -237,15 +236,15 @@ export interface ProposalFields_votes_no_votes { export interface ProposalFields_votes_no { __typename: "ProposalVoteSide"; /** - * Total number of governance tokens from the votes cast for this side + * Total tokens of governance token from the votes casted for this side */ totalTokens: string; /** - * Total number of votes cast for this side + * Total number of votes casted for this side */ totalNumber: string; /** - * All votes cast for this side + * All votes casted for this side */ votes: ProposalFields_votes_no_votes[] | null; } @@ -265,11 +264,11 @@ export interface ProposalFields_votes { export interface ProposalFields { __typename: "Proposal"; /** - * Proposal ID that is filled by Vega once proposal reaches the network + * Proposal ID that is filled by VEGA once proposal reaches the network */ id: string | null; /** - * A UUID reference to aid tracking proposals on Vega + * A UUID reference to aid tracking proposals on VEGA */ reference: string; /** diff --git a/apps/token/src/routes/governance/components/current-proposal-state/current-proposal-state.tsx b/apps/token/src/routes/governance/components/current-proposal-state/current-proposal-state.tsx index 09fe38921..9fdea2987 100644 --- a/apps/token/src/routes/governance/components/current-proposal-state/current-proposal-state.tsx +++ b/apps/token/src/routes/governance/components/current-proposal-state/current-proposal-state.tsx @@ -10,14 +10,14 @@ export const CurrentProposalState = ({ let className = 'text-white'; if ( - state === ProposalState.STATE_DECLINED || - state === ProposalState.STATE_FAILED || - state === ProposalState.STATE_REJECTED + state === ProposalState.Declined || + state === ProposalState.Failed || + state === ProposalState.Rejected ) { className = 'text-danger'; } else if ( - state === ProposalState.STATE_ENACTED || - state === ProposalState.STATE_PASSED + state === ProposalState.Enacted || + state === ProposalState.Passed ) { className = 'text-white'; } diff --git a/apps/token/src/routes/governance/components/current-proposal-status/current-proposal-status.tsx b/apps/token/src/routes/governance/components/current-proposal-status/current-proposal-status.tsx index 6a6fcba27..bce68d84b 100644 --- a/apps/token/src/routes/governance/components/current-proposal-status/current-proposal-status.tsx +++ b/apps/token/src/routes/governance/components/current-proposal-status/current-proposal-status.tsx @@ -35,7 +35,7 @@ export const CurrentProposalStatus = ({ addSuffix: true, }); - if (proposal.state === ProposalState.STATE_OPEN) { + if (proposal.state === ProposalState.Open) { if (willPass) { return ( <> @@ -54,9 +54,9 @@ export const CurrentProposalStatus = ({ } if ( - proposal.state === ProposalState.STATE_FAILED || - proposal.state === ProposalState.STATE_DECLINED || - proposal.state === ProposalState.STATE_REJECTED + proposal.state === ProposalState.Failed || + proposal.state === ProposalState.Declined || + proposal.state === ProposalState.Rejected ) { if (!participationMet) { return ( @@ -87,8 +87,8 @@ export const CurrentProposalStatus = ({ ); } if ( - proposal.state === ProposalState.STATE_ENACTED || - proposal.state === ProposalState.STATE_PASSED + proposal.state === ProposalState.Enacted || + proposal.state === ProposalState.Passed ) { return ( <> @@ -96,7 +96,7 @@ export const CurrentProposalStatus = ({  {proposal.state}   - {proposal.state === ProposalState.STATE_ENACTED + {proposal.state === ProposalState.Enacted ? daysEnactedAgo : daysClosedAgo} . @@ -105,7 +105,7 @@ export const CurrentProposalStatus = ({ ); } - if (proposal.state === ProposalState.STATE_WAITING_FOR_NODE_VOTE) { + if (proposal.state === ProposalState.WaitingForNodeVote) { return ( {t('subjectToFurtherActions', { daysAgo: daysClosedAgo })} ); diff --git a/apps/token/src/routes/governance/components/proposals-list-item/proposals-list-item-details.tsx b/apps/token/src/routes/governance/components/proposals-list-item/proposals-list-item-details.tsx index 802ac3760..7d4911a6b 100644 --- a/apps/token/src/routes/governance/components/proposals-list-item/proposals-list-item-details.tsx +++ b/apps/token/src/routes/governance/components/proposals-list-item/proposals-list-item-details.tsx @@ -11,10 +11,7 @@ import { useTranslation } from 'react-i18next'; import { DATE_FORMAT_DETAILED } from '../../../../lib/date-formats'; import type { ReactNode } from 'react'; import type { Proposals_proposals } from '../../proposals/__generated__/Proposals'; -import { - ProposalRejectionReasonMapping, - ProposalState, -} from '@vegaprotocol/types'; +import { ProposalState } from '@vegaprotocol/types'; import Routes from '../../../routes'; const MajorityNotReached = () => { @@ -55,7 +52,7 @@ export const ProposalsListItemDetails = ({ let voteStatus: ReactNode; switch (state) { - case ProposalState.STATE_ENACTED: { + case ProposalState.Enacted: { proposalStatus = ( <> {t('voteState_Enacted')} @@ -71,7 +68,7 @@ export const ProposalsListItemDetails = ({ ); break; } - case ProposalState.STATE_PASSED: { + case ProposalState.Passed: { proposalStatus = ( <> {t('voteState_Passed')} @@ -89,7 +86,7 @@ export const ProposalsListItemDetails = ({ ); break; } - case ProposalState.STATE_WAITING_FOR_NODE_VOTE: { + case ProposalState.WaitingForNodeVote: { proposalStatus = ( <> {t('voteState_WaitingForNodeVote')} @@ -107,7 +104,7 @@ export const ProposalsListItemDetails = ({ ); break; } - case ProposalState.STATE_OPEN: { + case ProposalState.Open: { proposalStatus = ( <> {t('voteState_Open')} @@ -145,7 +142,7 @@ export const ProposalsListItemDetails = ({ )); break; } - case ProposalState.STATE_DECLINED: { + case ProposalState.Declined: { proposalStatus = ( <> {t('voteState_Declined')} @@ -156,16 +153,14 @@ export const ProposalsListItemDetails = ({ (!majorityMet && ); break; } - case ProposalState.STATE_REJECTED: { + case ProposalState.Rejected: { proposalStatus = ( <> {t('voteState_Rejected')}{' '} ); - voteStatus = proposal.rejectionReason && ( - <>{t(ProposalRejectionReasonMapping[proposal.rejectionReason])} - ); + voteStatus = proposal.rejectionReason && proposal.rejectionReason; break; } } diff --git a/apps/token/src/routes/governance/components/vote-details/__generated__/VoteButtons.ts b/apps/token/src/routes/governance/components/vote-details/__generated__/VoteButtons.ts index 094fd9d4d..12ebf48e4 100644 --- a/apps/token/src/routes/governance/components/vote-details/__generated__/VoteButtons.ts +++ b/apps/token/src/routes/governance/components/vote-details/__generated__/VoteButtons.ts @@ -33,7 +33,7 @@ export interface VoteButtons_party { export interface VoteButtons { /** - * An entity that is trading on the Vega network + * An entity that is trading on the VEGA network */ party: VoteButtons_party | null; } diff --git a/apps/token/src/routes/governance/components/vote-details/use-user-vote.tsx b/apps/token/src/routes/governance/components/vote-details/use-user-vote.tsx index 675d02f38..4d8d951b2 100644 --- a/apps/token/src/routes/governance/components/vote-details/use-user-vote.tsx +++ b/apps/token/src/routes/governance/components/vote-details/use-user-vote.tsx @@ -64,7 +64,7 @@ export function useUserVote( setVoteState(VoteState.NotCast); } else { setVoteState( - userVote.value === VoteValue.VALUE_YES ? VoteState.Yes : VoteState.No + userVote.value === VoteValue.Yes ? VoteState.Yes : VoteState.No ); } }, [userVote]); diff --git a/apps/token/src/routes/governance/components/vote-details/vote-buttons.tsx b/apps/token/src/routes/governance/components/vote-details/vote-buttons.tsx index fec5dfe8f..48ca7efcd 100644 --- a/apps/token/src/routes/governance/components/vote-details/vote-buttons.tsx +++ b/apps/token/src/routes/governance/components/vote-details/vote-buttons.tsx @@ -77,7 +77,7 @@ export const VoteButtons = ({ const [changeVote, setChangeVote] = React.useState(false); const cantVoteUI = React.useMemo(() => { - if (proposalState !== ProposalState.STATE_OPEN) { + if (proposalState !== ProposalState.Open) { return t('youDidNotVote'); } @@ -143,7 +143,7 @@ export const VoteButtons = ({ {voteDatetime ? ( {format(voteDatetime, DATE_FORMAT_LONG)}. ) : null} - {proposalState === ProposalState.STATE_OPEN ? ( + {proposalState === ProposalState.Open ? ( { @@ -164,12 +164,12 @@ export const VoteButtons = ({ return (
-
-
diff --git a/apps/token/src/routes/governance/components/vote-details/vote-details.tsx b/apps/token/src/routes/governance/components/vote-details/vote-details.tsx index 13240db44..8afbb6c86 100644 --- a/apps/token/src/routes/governance/components/vote-details/vote-details.tsx +++ b/apps/token/src/routes/governance/components/vote-details/vote-details.tsx @@ -50,7 +50,7 @@ export const VoteDetails = ({ proposal }: VoteDetailsProps) => { {'. '} - {proposal.state === ProposalState.STATE_OPEN ? daysLeft : null} + {proposal.state === ProposalState.Open ? daysLeft : null}

diff --git a/apps/token/src/routes/governance/proposal/__generated__/Proposal.ts b/apps/token/src/routes/governance/proposal/__generated__/Proposal.ts index b882b7854..b6012d232 100644 --- a/apps/token/src/routes/governance/proposal/__generated__/Proposal.ts +++ b/apps/token/src/routes/governance/proposal/__generated__/Proposal.ts @@ -3,7 +3,7 @@ // @generated // This file was automatically generated and should not be edited. -import { ProposalState, ProposalRejectionReason, VoteValue } from "@vegaprotocol/types"; +import { ProposalState, ProposalRejectionReason, VoteValue } from "./../../../../../../../libs/types/src/__generated__/globalTypes"; // ==================================================== // GraphQL query operation: Proposal @@ -17,8 +17,8 @@ export interface Proposal_proposal_party { id: string; } -export interface Proposal_proposal_terms_change_UpdateAsset { - __typename: "UpdateAsset" | "NewFreeform"; +export interface Proposal_proposal_terms_change_NewFreeform { + __typename: "NewFreeform"; } export interface Proposal_proposal_terms_change_NewMarket_instrument_futureProduct_settlementAsset { @@ -56,7 +56,7 @@ export interface Proposal_proposal_terms_change_NewMarket_instrument { export interface Proposal_proposal_terms_change_NewMarket { __typename: "NewMarket"; /** - * Decimal places used for the new market, sets the smallest price increment on the book + * Decimal places used for the new market */ decimalPlaces: number; /** @@ -85,7 +85,7 @@ export interface Proposal_proposal_terms_change_NewAsset_source_BuiltinAsset { export interface Proposal_proposal_terms_change_NewAsset_source_ERC20 { __typename: "ERC20"; /** - * The address of the ERC20 contract + * The address of the erc20 contract */ contractAddress: string; } @@ -103,7 +103,7 @@ export interface Proposal_proposal_terms_change_NewAsset { */ symbol: string; /** - * The source of the new asset + * the source of the new Asset */ source: Proposal_proposal_terms_change_NewAsset_source; } @@ -125,7 +125,7 @@ export interface Proposal_proposal_terms_change_UpdateNetworkParameter { networkParameter: Proposal_proposal_terms_change_UpdateNetworkParameter_networkParameter; } -export type Proposal_proposal_terms_change = Proposal_proposal_terms_change_UpdateAsset | Proposal_proposal_terms_change_NewMarket | Proposal_proposal_terms_change_UpdateMarket | Proposal_proposal_terms_change_NewAsset | Proposal_proposal_terms_change_UpdateNetworkParameter; +export type Proposal_proposal_terms_change = Proposal_proposal_terms_change_NewFreeform | Proposal_proposal_terms_change_NewMarket | Proposal_proposal_terms_change_UpdateMarket | Proposal_proposal_terms_change_NewAsset | Proposal_proposal_terms_change_UpdateNetworkParameter; export interface Proposal_proposal_terms { __typename: "ProposalTerms"; @@ -137,9 +137,8 @@ export interface Proposal_proposal_terms { /** * RFC3339Nano time and date when this proposal is executed (if passed). Note that it has to be after closing date time. * Constrained by "minEnactInSeconds" and "maxEnactInSeconds" network parameters. - * Note: Optional as free form proposals do not require it. */ - enactmentDatetime: string | null; + enactmentDatetime: string; /** * Actual change being introduced by the proposal - action the proposal triggers if passed and enacted. */ @@ -185,15 +184,15 @@ export interface Proposal_proposal_votes_yes_votes { export interface Proposal_proposal_votes_yes { __typename: "ProposalVoteSide"; /** - * Total number of governance tokens from the votes cast for this side + * Total tokens of governance token from the votes casted for this side */ totalTokens: string; /** - * Total number of votes cast for this side + * Total number of votes casted for this side */ totalNumber: string; /** - * All votes cast for this side + * All votes casted for this side */ votes: Proposal_proposal_votes_yes_votes[] | null; } @@ -237,15 +236,15 @@ export interface Proposal_proposal_votes_no_votes { export interface Proposal_proposal_votes_no { __typename: "ProposalVoteSide"; /** - * Total number of governance tokens from the votes cast for this side + * Total tokens of governance token from the votes casted for this side */ totalTokens: string; /** - * Total number of votes cast for this side + * Total number of votes casted for this side */ totalNumber: string; /** - * All votes cast for this side + * All votes casted for this side */ votes: Proposal_proposal_votes_no_votes[] | null; } @@ -265,11 +264,11 @@ export interface Proposal_proposal_votes { export interface Proposal_proposal { __typename: "Proposal"; /** - * Proposal ID that is filled by Vega once proposal reaches the network + * Proposal ID that is filled by VEGA once proposal reaches the network */ id: string | null; /** - * A UUID reference to aid tracking proposals on Vega + * A UUID reference to aid tracking proposals on VEGA */ reference: string; /** @@ -304,7 +303,7 @@ export interface Proposal_proposal { export interface Proposal { /** - * A governance proposal located by either its ID or reference. If both are set, ID is used. + * A governance proposal located by either its id or reference. If both are set, id is used. */ proposal: Proposal_proposal; } diff --git a/apps/token/src/routes/governance/proposals/__generated__/Proposals.ts b/apps/token/src/routes/governance/proposals/__generated__/Proposals.ts index 892f399c5..cc23680bc 100644 --- a/apps/token/src/routes/governance/proposals/__generated__/Proposals.ts +++ b/apps/token/src/routes/governance/proposals/__generated__/Proposals.ts @@ -3,7 +3,7 @@ // @generated // This file was automatically generated and should not be edited. -import { ProposalState, ProposalRejectionReason, VoteValue } from "@vegaprotocol/types"; +import { ProposalState, ProposalRejectionReason, VoteValue } from "./../../../../../../../libs/types/src/__generated__/globalTypes"; // ==================================================== // GraphQL query operation: Proposals @@ -17,8 +17,8 @@ export interface Proposals_proposals_party { id: string; } -export interface Proposals_proposals_terms_change_UpdateAsset { - __typename: "UpdateAsset" | "NewFreeform"; +export interface Proposals_proposals_terms_change_NewFreeform { + __typename: "NewFreeform"; } export interface Proposals_proposals_terms_change_NewMarket_instrument_futureProduct_settlementAsset { @@ -56,7 +56,7 @@ export interface Proposals_proposals_terms_change_NewMarket_instrument { export interface Proposals_proposals_terms_change_NewMarket { __typename: "NewMarket"; /** - * Decimal places used for the new market, sets the smallest price increment on the book + * Decimal places used for the new market */ decimalPlaces: number; /** @@ -85,7 +85,7 @@ export interface Proposals_proposals_terms_change_NewAsset_source_BuiltinAsset { export interface Proposals_proposals_terms_change_NewAsset_source_ERC20 { __typename: "ERC20"; /** - * The address of the ERC20 contract + * The address of the erc20 contract */ contractAddress: string; } @@ -103,7 +103,7 @@ export interface Proposals_proposals_terms_change_NewAsset { */ symbol: string; /** - * The source of the new asset + * the source of the new Asset */ source: Proposals_proposals_terms_change_NewAsset_source; } @@ -125,7 +125,7 @@ export interface Proposals_proposals_terms_change_UpdateNetworkParameter { networkParameter: Proposals_proposals_terms_change_UpdateNetworkParameter_networkParameter; } -export type Proposals_proposals_terms_change = Proposals_proposals_terms_change_UpdateAsset | Proposals_proposals_terms_change_NewMarket | Proposals_proposals_terms_change_UpdateMarket | Proposals_proposals_terms_change_NewAsset | Proposals_proposals_terms_change_UpdateNetworkParameter; +export type Proposals_proposals_terms_change = Proposals_proposals_terms_change_NewFreeform | Proposals_proposals_terms_change_NewMarket | Proposals_proposals_terms_change_UpdateMarket | Proposals_proposals_terms_change_NewAsset | Proposals_proposals_terms_change_UpdateNetworkParameter; export interface Proposals_proposals_terms { __typename: "ProposalTerms"; @@ -137,9 +137,8 @@ export interface Proposals_proposals_terms { /** * RFC3339Nano time and date when this proposal is executed (if passed). Note that it has to be after closing date time. * Constrained by "minEnactInSeconds" and "maxEnactInSeconds" network parameters. - * Note: Optional as free form proposals do not require it. */ - enactmentDatetime: string | null; + enactmentDatetime: string; /** * Actual change being introduced by the proposal - action the proposal triggers if passed and enacted. */ @@ -185,15 +184,15 @@ export interface Proposals_proposals_votes_yes_votes { export interface Proposals_proposals_votes_yes { __typename: "ProposalVoteSide"; /** - * Total number of governance tokens from the votes cast for this side + * Total tokens of governance token from the votes casted for this side */ totalTokens: string; /** - * Total number of votes cast for this side + * Total number of votes casted for this side */ totalNumber: string; /** - * All votes cast for this side + * All votes casted for this side */ votes: Proposals_proposals_votes_yes_votes[] | null; } @@ -237,15 +236,15 @@ export interface Proposals_proposals_votes_no_votes { export interface Proposals_proposals_votes_no { __typename: "ProposalVoteSide"; /** - * Total number of governance tokens from the votes cast for this side + * Total tokens of governance token from the votes casted for this side */ totalTokens: string; /** - * Total number of votes cast for this side + * Total number of votes casted for this side */ totalNumber: string; /** - * All votes cast for this side + * All votes casted for this side */ votes: Proposals_proposals_votes_no_votes[] | null; } @@ -265,11 +264,11 @@ export interface Proposals_proposals_votes { export interface Proposals_proposals { __typename: "Proposal"; /** - * Proposal ID that is filled by Vega once proposal reaches the network + * Proposal ID that is filled by VEGA once proposal reaches the network */ id: string | null; /** - * A UUID reference to aid tracking proposals on Vega + * A UUID reference to aid tracking proposals on VEGA */ reference: string; /** @@ -304,7 +303,7 @@ export interface Proposals_proposals { export interface Proposals { /** - * All governance proposals in the Vega network + * All governance proposals in the VEGA network */ proposals: Proposals_proposals[] | null; } diff --git a/apps/token/src/routes/governance/proposals/proposals-container.tsx b/apps/token/src/routes/governance/proposals/proposals-container.tsx index fc4bc574e..8bb787bf3 100644 --- a/apps/token/src/routes/governance/proposals/proposals-container.tsx +++ b/apps/token/src/routes/governance/proposals/proposals-container.tsx @@ -37,8 +37,7 @@ export const ProposalsContainer = () => { return flow([ compact, - (arr) => - filter(arr, ({ state }) => state !== ProposalState.STATE_REJECTED), + (arr) => filter(arr, ({ state }) => state !== ProposalState.Rejected), (arr) => orderBy( arr, diff --git a/apps/token/src/routes/governance/rejected/rejected-proposals-container.tsx b/apps/token/src/routes/governance/rejected/rejected-proposals-container.tsx index 0e5a96e6a..0147198cb 100644 --- a/apps/token/src/routes/governance/rejected/rejected-proposals-container.tsx +++ b/apps/token/src/routes/governance/rejected/rejected-proposals-container.tsx @@ -27,8 +27,7 @@ export const RejectedProposalsContainer = () => { return flow([ compact, - (arr) => - filter(arr, ({ state }) => state === ProposalState.STATE_REJECTED), + (arr) => filter(arr, ({ state }) => state === ProposalState.Rejected), (arr) => orderBy( arr, diff --git a/apps/token/src/routes/governance/test-helpers/generate-proposals.ts b/apps/token/src/routes/governance/test-helpers/generate-proposals.ts index fd8dcaff2..57ec8bad6 100644 --- a/apps/token/src/routes/governance/test-helpers/generate-proposals.ts +++ b/apps/token/src/routes/governance/test-helpers/generate-proposals.ts @@ -17,7 +17,7 @@ export function generateProposal( __typename: 'Proposal', id: faker.datatype.uuid(), reference: 'ref' + faker.datatype.uuid(), - state: ProposalState.STATE_OPEN, + state: ProposalState.Open, datetime: faker.date.past().toISOString(), rejectionReason: null, errorDetails: null, @@ -29,14 +29,14 @@ export function generateProposal( __typename: 'ProposalTerms', closingDatetime: !override.state || // defaults to Open - override.state === ProposalState.STATE_OPEN || - override.state === ProposalState.STATE_WAITING_FOR_NODE_VOTE + override.state === ProposalState.Open || + override.state === ProposalState.WaitingForNodeVote ? faker.date.soon().toISOString() : faker.date.past().toISOString(), enactmentDatetime: !override.state || // defaults to Open - override.state === ProposalState.STATE_OPEN || - override.state === ProposalState.STATE_WAITING_FOR_NODE_VOTE + override.state === ProposalState.Open || + override.state === ProposalState.WaitingForNodeVote ? faker.date.future().toISOString() : faker.date.past().toISOString(), change: { @@ -80,7 +80,7 @@ export const generateYesVotes = ( votes: Array.from(Array(numberOfVotes)).map(() => { return { __typename: 'Vote', - value: VoteValue.VALUE_YES, + value: VoteValue.Yes, party: { id: faker.datatype.uuid(), __typename: 'Party', @@ -115,7 +115,7 @@ export const generateNoVotes = ( votes: Array.from(Array(numberOfVotes)).map(() => { return { __typename: 'Vote', - value: VoteValue.VALUE_NO, + value: VoteValue.No, party: { id: faker.datatype.uuid(), __typename: 'Party', diff --git a/apps/token/src/routes/rewards/home/__generated__/Rewards.ts b/apps/token/src/routes/rewards/home/__generated__/Rewards.ts index 3d659de4d..7b4a14441 100644 --- a/apps/token/src/routes/rewards/home/__generated__/Rewards.ts +++ b/apps/token/src/routes/rewards/home/__generated__/Rewards.ts @@ -3,7 +3,7 @@ // @generated // This file was automatically generated and should not be edited. -import { AccountType } from "@vegaprotocol/types"; +import { AccountType } from "./../../../../../../../libs/types/src/__generated__/globalTypes"; // ==================================================== // GraphQL query operation: Rewards @@ -12,7 +12,7 @@ import { AccountType } from "@vegaprotocol/types"; export interface Rewards_party_rewardDetails_asset { __typename: "Asset"; /** - * The ID of the asset + * The id of the asset */ id: string; /** @@ -24,7 +24,7 @@ export interface Rewards_party_rewardDetails_asset { export interface Rewards_party_rewardDetails_rewards_asset { __typename: "Asset"; /** - * The ID of the asset + * The id of the asset */ id: string; } @@ -153,18 +153,18 @@ export interface Rewards_epoch { */ id: string; /** - * Timestamps for start and end of epochs + * Timestamps for start/end etc */ timestamps: Rewards_epoch_timestamps; } export interface Rewards { /** - * An entity that is trading on the Vega network + * An entity that is trading on the VEGA network */ party: Rewards_party | null; /** - * get data for a specific epoch, if ID omitted it gets the current epoch. If the string is 'next', fetch the next epoch + * get data for a specific epoch, if id omitted it gets the current epoch. If the string is 'next', fetch the next epoch */ epoch: Rewards_epoch; } diff --git a/apps/token/src/routes/staking/__generated__/Nodes.ts b/apps/token/src/routes/staking/__generated__/Nodes.ts index 1cb2737bf..763a78bea 100644 --- a/apps/token/src/routes/staking/__generated__/Nodes.ts +++ b/apps/token/src/routes/staking/__generated__/Nodes.ts @@ -3,8 +3,6 @@ // @generated // This file was automatically generated and should not be edited. -import { ValidatorStatus } from "@vegaprotocol/types"; - // ==================================================== // GraphQL query operation: Nodes // ==================================================== @@ -24,25 +22,25 @@ export interface Nodes_nodes_rankingScore { */ performanceScore: string; /** - * The Tendermint voting power of the validator (uint32) + * The tendermint voting power of the validator (uint32) */ votingPower: string; /** * The current validation status of the validator */ - status: ValidatorStatus; + status: string; } export interface Nodes_nodes { __typename: "Node"; avatarUrl: string | null; /** - * The node URL eg n01.vega.xyz + * The node url eg n01.vega.xyz */ id: string; name: string; /** - * Public key of the node operator + * Pubkey of the node operator */ pubkey: string; /** diff --git a/apps/token/src/routes/staking/__generated__/PartyDelegations.ts b/apps/token/src/routes/staking/__generated__/PartyDelegations.ts index c6a3ed4fe..3204324ae 100644 --- a/apps/token/src/routes/staking/__generated__/PartyDelegations.ts +++ b/apps/token/src/routes/staking/__generated__/PartyDelegations.ts @@ -10,7 +10,7 @@ export interface PartyDelegations_party_delegations_node { __typename: "Node"; /** - * The node URL eg n01.vega.xyz + * The node url eg n01.vega.xyz */ id: string; } @@ -54,11 +54,11 @@ export interface PartyDelegations_epoch { export interface PartyDelegations { /** - * An entity that is trading on the Vega network + * An entity that is trading on the VEGA network */ party: PartyDelegations_party | null; /** - * get data for a specific epoch, if ID omitted it gets the current epoch. If the string is 'next', fetch the next epoch + * get data for a specific epoch, if id omitted it gets the current epoch. If the string is 'next', fetch the next epoch */ epoch: PartyDelegations_epoch; } diff --git a/apps/token/src/routes/staking/__generated__/Staking.ts b/apps/token/src/routes/staking/__generated__/Staking.ts index bea8e092e..99380a75f 100644 --- a/apps/token/src/routes/staking/__generated__/Staking.ts +++ b/apps/token/src/routes/staking/__generated__/Staking.ts @@ -3,7 +3,7 @@ // @generated // This file was automatically generated and should not be edited. -import { NodeStatus } from "@vegaprotocol/types"; +import { NodeStatus } from "./../../../../../../libs/types/src/__generated__/globalTypes"; // ==================================================== // GraphQL query operation: Staking @@ -24,7 +24,7 @@ export interface Staking_party_stake { export interface Staking_party_delegations_node { __typename: "Node"; /** - * The node URL eg n01.vega.xyz + * The node url eg n01.vega.xyz */ id: string; } @@ -85,7 +85,7 @@ export interface Staking_epoch { */ id: string; /** - * Timestamps for start and end of epochs + * Timestamps for start/end etc */ timestamps: Staking_epoch_timestamps; } @@ -121,7 +121,7 @@ export interface Staking_nodes_rankingScore { */ performanceScore: string; /** - * The Tendermint voting power of the validator (uint32) + * The tendermint voting power of the validator (uint32) */ votingPower: string; } @@ -129,16 +129,16 @@ export interface Staking_nodes_rankingScore { export interface Staking_nodes { __typename: "Node"; /** - * The node URL eg n01.vega.xyz + * The node url eg n01.vega.xyz */ id: string; name: string; /** - * Public key of the node operator + * Pubkey of the node operator */ pubkey: string; /** - * URL from which you can get more info about the node. + * URL where I can find out more info on the node. Will this be possible? */ infoUrl: string; /** @@ -150,7 +150,7 @@ export interface Staking_nodes { */ ethereumAdddress: string; /** - * The amount of stake the node has put up themselves + * The amount the node has put up themselves */ stakedByOperator: string; /** @@ -219,11 +219,11 @@ export interface Staking_nodeData { export interface Staking { /** - * An entity that is trading on the Vega network + * An entity that is trading on the VEGA network */ party: Staking_party | null; /** - * get data for a specific epoch, if ID omitted it gets the current epoch. If the string is 'next', fetch the next epoch + * get data for a specific epoch, if id omitted it gets the current epoch. If the string is 'next', fetch the next epoch */ epoch: Staking_epoch; /** diff --git a/apps/token/src/routes/staking/associate/__generated__/PartyStakeLinkings.ts b/apps/token/src/routes/staking/associate/__generated__/PartyStakeLinkings.ts index 1e107d22b..f26552348 100644 --- a/apps/token/src/routes/staking/associate/__generated__/PartyStakeLinkings.ts +++ b/apps/token/src/routes/staking/associate/__generated__/PartyStakeLinkings.ts @@ -3,7 +3,7 @@ // @generated // This file was automatically generated and should not be edited. -import { StakeLinkingStatus } from "@vegaprotocol/types"; +import { StakeLinkingStatus } from "./../../../../../../../libs/types/src/__generated__/globalTypes"; // ==================================================== // GraphQL query operation: PartyStakeLinkings @@ -44,7 +44,7 @@ export interface PartyStakeLinkings_party { export interface PartyStakeLinkings { /** - * An entity that is trading on the Vega network + * An entity that is trading on the VEGA network */ party: PartyStakeLinkings_party | null; } diff --git a/apps/token/src/routes/staking/associate/hooks.ts b/apps/token/src/routes/staking/associate/hooks.ts index 3a5cd29f3..ec3964859 100644 --- a/apps/token/src/routes/staking/associate/hooks.ts +++ b/apps/token/src/routes/staking/associate/hooks.ts @@ -110,8 +110,7 @@ export const usePollForStakeLinking = ( const matchingLinking = linkings?.find((l) => { return ( - l.txHash === txHash && - l.status === StakeLinkingStatus.STATUS_ACCEPTED + l.txHash === txHash && l.status === StakeLinkingStatus.Accepted ); }); diff --git a/apps/trading/pages/markets/__generated__/Market.ts b/apps/trading/pages/markets/__generated__/Market.ts index ff2b98e79..3f40dc3de 100644 --- a/apps/trading/pages/markets/__generated__/Market.ts +++ b/apps/trading/pages/markets/__generated__/Market.ts @@ -3,7 +3,7 @@ // @generated // This file was automatically generated and should not be edited. -import { Interval, MarketTradingMode, MarketState, AuctionTrigger } from "@vegaprotocol/types"; +import { Interval, MarketTradingMode, MarketState, AuctionTrigger } from "./../../../../../libs/types/src/__generated__/globalTypes"; // ==================================================== // GraphQL query operation: Market @@ -20,7 +20,7 @@ export interface Market_market_data_market { export interface Market_market_data { __typename: "MarketData"; /** - * market ID of the associated mark price + * market id of the associated mark price */ market: Market_market_data_market; /** @@ -32,7 +32,7 @@ export interface Market_market_data { */ auctionEnd: string | null; /** - * the mark price (an unsigned integer) + * the mark price (actually an unsigned int) */ markPrice: string; /** @@ -84,7 +84,7 @@ export interface Market_market_tradableInstrument_instrument_metadata { export interface Market_market_tradableInstrument_instrument_product_oracleSpecForTradingTermination { __typename: "OracleSpec"; /** - * ID is a hash generated from the OracleSpec data. + * id is a hash generated from the OracleSpec data. */ id: string; } @@ -92,7 +92,7 @@ export interface Market_market_tradableInstrument_instrument_product_oracleSpecF export interface Market_market_tradableInstrument_instrument_product_settlementAsset { __typename: "Asset"; /** - * The ID of the asset + * The id of the asset */ id: string; /** @@ -148,7 +148,7 @@ export interface Market_market_tradableInstrument_instrument { export interface Market_market_tradableInstrument { __typename: "TradableInstrument"; /** - * An instance of, or reference to, a fully specified instrument. + * An instance of or reference to a fully specified instrument. */ instrument: Market_market_tradableInstrument_instrument; } @@ -197,7 +197,7 @@ export interface Market_market { state: MarketState; /** * 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) + * number denominated in the currency of the Market. (uint64) * * Examples: * Currency Balance decimalPlaces Real Balance @@ -213,10 +213,9 @@ export interface Market_market { */ decimalPlaces: number; /** - * positionDecimalPlaces indicates the number of decimal places that an integer must be shifted in order to get a correct size (uint64). + * positionDecimalPlaces indicated the number of decimal places that an integer must be shifted in order to get a correct size (uint64). * i.e. 0 means there are no fractional orders for the market, and order sizes are always whole sizes. * 2 means sizes given as 10^2 * desired size, e.g. a desired size of 1.23 is represented as 123 in this market. - * This sets how big the smallest order / position on the market can be. */ positionDecimalPlaces: number; /** @@ -224,7 +223,7 @@ export interface Market_market { */ data: Market_market_data | null; /** - * An instance of, or reference to, a tradable instrument. + * An instance of or reference to a tradable instrument. */ tradableInstrument: Market_market_tradableInstrument; /** @@ -232,14 +231,14 @@ export interface Market_market { */ marketTimestamps: Market_market_marketTimestamps; /** - * Candles on a market, for the 'last' n candles, at 'interval' seconds as specified by parameters + * Candles on a market, for the 'last' n candles, at 'interval' seconds as specified by params */ candles: (Market_market_candles | null)[] | null; } export interface Market { /** - * An instrument that is trading on the Vega network + * An instrument that is trading on the VEGA network */ market: Market_market | null; } diff --git a/apps/trading/pages/portfolio/deposit/__generated__/DepositPage.ts b/apps/trading/pages/portfolio/deposit/__generated__/DepositPage.ts index 104fcddf9..a3d53af1d 100644 --- a/apps/trading/pages/portfolio/deposit/__generated__/DepositPage.ts +++ b/apps/trading/pages/portfolio/deposit/__generated__/DepositPage.ts @@ -3,7 +3,7 @@ // @generated // This file was automatically generated and should not be edited. -import { AssetStatus } from "@vegaprotocol/types"; +import { AssetStatus } from "./../../../../../../libs/types/src/__generated__/globalTypes"; // ==================================================== // GraphQL query operation: DepositPage @@ -16,7 +16,7 @@ export interface DepositPage_assetsConnection_edges_node_source_BuiltinAsset { export interface DepositPage_assetsConnection_edges_node_source_ERC20 { __typename: "ERC20"; /** - * The address of the ERC20 contract + * The address of the erc20 contract */ contractAddress: string; } @@ -26,7 +26,7 @@ export type DepositPage_assetsConnection_edges_node_source = DepositPage_assetsC export interface DepositPage_assetsConnection_edges_node { __typename: "Asset"; /** - * The ID of the asset + * The id of the asset */ id: string; /** @@ -38,15 +38,15 @@ export interface DepositPage_assetsConnection_edges_node { */ name: string; /** - * The precision of the asset. Should match the decimal precision of the asset on its native chain, e.g: for ERC20 assets, it is often 18 + * The precision of the asset */ decimals: number; /** - * The status of the asset in the Vega network + * The status of the asset in the vega network */ status: AssetStatus; /** - * The origin source of the asset (e.g: an ERC20 asset) + * The origin source of the asset (e.g: an erc20 asset) */ source: DepositPage_assetsConnection_edges_node_source; } @@ -66,7 +66,7 @@ export interface DepositPage_assetsConnection { export interface DepositPage { /** - * The list of all assets in use in the Vega network or the specified asset if ID is provided + * The list of all assets in use in the vega network or the specified asset if id is provided */ assetsConnection: DepositPage_assetsConnection; } diff --git a/libs/accounts/src/lib/__generated__/AccountFields.ts b/libs/accounts/src/lib/__generated__/AccountFields.ts index b2286b2b1..725e2cc63 100644 --- a/libs/accounts/src/lib/__generated__/AccountFields.ts +++ b/libs/accounts/src/lib/__generated__/AccountFields.ts @@ -3,7 +3,7 @@ // @generated // This file was automatically generated and should not be edited. -import { AccountType } from "@vegaprotocol/types"; +import { AccountType } from "./../../../../types/src/__generated__/globalTypes"; // ==================================================== // GraphQL fragment: AccountFields @@ -20,7 +20,7 @@ export interface AccountFields_market_tradableInstrument_instrument { export interface AccountFields_market_tradableInstrument { __typename: "TradableInstrument"; /** - * An instance of, or reference to, a fully specified instrument. + * An instance of or reference to a fully specified instrument. */ instrument: AccountFields_market_tradableInstrument_instrument; } @@ -32,7 +32,7 @@ export interface AccountFields_market { */ id: string; /** - * An instance of, or reference to, a tradable instrument. + * An instance of or reference to a tradable instrument. */ tradableInstrument: AccountFields_market_tradableInstrument; } @@ -40,7 +40,7 @@ export interface AccountFields_market { export interface AccountFields_asset { __typename: "Asset"; /** - * The ID of the asset + * The id of the asset */ id: string; /** @@ -48,7 +48,7 @@ export interface AccountFields_asset { */ symbol: string; /** - * The precision of the asset. Should match the decimal precision of the asset on its native chain, e.g: for ERC20 assets, it is often 18 + * The precision of the asset */ decimals: number; } diff --git a/libs/accounts/src/lib/__generated__/AccountSubscribe.ts b/libs/accounts/src/lib/__generated__/AccountSubscribe.ts index 94a5e17bf..67b11070c 100644 --- a/libs/accounts/src/lib/__generated__/AccountSubscribe.ts +++ b/libs/accounts/src/lib/__generated__/AccountSubscribe.ts @@ -3,7 +3,7 @@ // @generated // This file was automatically generated and should not be edited. -import { AccountType } from "@vegaprotocol/types"; +import { AccountType } from "./../../../../types/src/__generated__/globalTypes"; // ==================================================== // GraphQL subscription operation: AccountSubscribe @@ -20,7 +20,7 @@ export interface AccountSubscribe_accounts_market_tradableInstrument_instrument export interface AccountSubscribe_accounts_market_tradableInstrument { __typename: "TradableInstrument"; /** - * An instance of, or reference to, a fully specified instrument. + * An instance of or reference to a fully specified instrument. */ instrument: AccountSubscribe_accounts_market_tradableInstrument_instrument; } @@ -32,7 +32,7 @@ export interface AccountSubscribe_accounts_market { */ id: string; /** - * An instance of, or reference to, a tradable instrument. + * An instance of or reference to a tradable instrument. */ tradableInstrument: AccountSubscribe_accounts_market_tradableInstrument; } @@ -40,7 +40,7 @@ export interface AccountSubscribe_accounts_market { export interface AccountSubscribe_accounts_asset { __typename: "Asset"; /** - * The ID of the asset + * The id of the asset */ id: string; /** @@ -48,7 +48,7 @@ export interface AccountSubscribe_accounts_asset { */ symbol: string; /** - * The precision of the asset. Should match the decimal precision of the asset on its native chain, e.g: for ERC20 assets, it is often 18 + * The precision of the asset */ decimals: number; } diff --git a/libs/accounts/src/lib/__generated__/Accounts.ts b/libs/accounts/src/lib/__generated__/Accounts.ts index 42ff085ed..c8a8fda32 100644 --- a/libs/accounts/src/lib/__generated__/Accounts.ts +++ b/libs/accounts/src/lib/__generated__/Accounts.ts @@ -3,7 +3,7 @@ // @generated // This file was automatically generated and should not be edited. -import { AccountType } from "@vegaprotocol/types"; +import { AccountType } from "./../../../../types/src/__generated__/globalTypes"; // ==================================================== // GraphQL query operation: Accounts @@ -20,7 +20,7 @@ export interface Accounts_party_accounts_market_tradableInstrument_instrument { export interface Accounts_party_accounts_market_tradableInstrument { __typename: "TradableInstrument"; /** - * An instance of, or reference to, a fully specified instrument. + * An instance of or reference to a fully specified instrument. */ instrument: Accounts_party_accounts_market_tradableInstrument_instrument; } @@ -32,7 +32,7 @@ export interface Accounts_party_accounts_market { */ id: string; /** - * An instance of, or reference to, a tradable instrument. + * An instance of or reference to a tradable instrument. */ tradableInstrument: Accounts_party_accounts_market_tradableInstrument; } @@ -40,7 +40,7 @@ export interface Accounts_party_accounts_market { export interface Accounts_party_accounts_asset { __typename: "Asset"; /** - * The ID of the asset + * The id of the asset */ id: string; /** @@ -48,7 +48,7 @@ export interface Accounts_party_accounts_asset { */ symbol: string; /** - * The precision of the asset. Should match the decimal precision of the asset on its native chain, e.g: for ERC20 assets, it is often 18 + * The precision of the asset */ decimals: number; } @@ -87,7 +87,7 @@ export interface Accounts_party { export interface Accounts { /** - * An entity that is trading on the Vega network + * An entity that is trading on the VEGA network */ party: Accounts_party | null; } diff --git a/libs/assets/src/lib/__generated__/AssetsConnection.ts b/libs/assets/src/lib/__generated__/AssetsConnection.ts index 47a34d4c6..664b110db 100644 --- a/libs/assets/src/lib/__generated__/AssetsConnection.ts +++ b/libs/assets/src/lib/__generated__/AssetsConnection.ts @@ -14,17 +14,17 @@ export interface AssetsConnection_assetsConnection_edges_node_source_BuiltinAsse export interface AssetsConnection_assetsConnection_edges_node_source_ERC20 { __typename: "ERC20"; /** - * The address of the ERC20 contract + * The address of the erc20 contract */ contractAddress: string; /** * The lifetime limits deposit per address - * Note: this is a temporary measure for alpha mainnet + * Note: this is a temporary measure for restricted mainnet */ lifetimeLimit: string; /** - * The maximum allowed per withdrawal - * Note: this is a temporary measure for alpha mainnet + * The maximum allowed per withdraw + * Note: this is a temporary measure for restricted mainnet */ withdrawThreshold: string; } @@ -34,7 +34,7 @@ export type AssetsConnection_assetsConnection_edges_node_source = AssetsConnecti export interface AssetsConnection_assetsConnection_edges_node { __typename: "Asset"; /** - * The ID of the asset + * The id of the asset */ id: string; /** @@ -46,7 +46,7 @@ export interface AssetsConnection_assetsConnection_edges_node { */ symbol: string; /** - * The precision of the asset. Should match the decimal precision of the asset on its native chain, e.g: for ERC20 assets, it is often 18 + * The precision of the asset */ decimals: number; /** @@ -54,7 +54,7 @@ export interface AssetsConnection_assetsConnection_edges_node { */ quantum: string; /** - * The origin source of the asset (e.g: an ERC20 asset) + * The origin source of the asset (e.g: an erc20 asset) */ source: AssetsConnection_assetsConnection_edges_node_source; } @@ -74,7 +74,7 @@ export interface AssetsConnection_assetsConnection { export interface AssetsConnection { /** - * The list of all assets in use in the Vega network or the specified asset if ID is provided + * The list of all assets in use in the vega network or the specified asset if id is provided */ assetsConnection: AssetsConnection_assetsConnection; } diff --git a/libs/candles-chart/src/lib/__generated__/Candles.ts b/libs/candles-chart/src/lib/__generated__/Candles.ts index 21f13dcbc..3cbfe802a 100644 --- a/libs/candles-chart/src/lib/__generated__/Candles.ts +++ b/libs/candles-chart/src/lib/__generated__/Candles.ts @@ -3,7 +3,7 @@ // @generated // This file was automatically generated and should not be edited. -import { Interval } from "@vegaprotocol/types"; +import { Interval } from "./../../../../types/src/__generated__/globalTypes"; // ==================================================== // GraphQL query operation: Candles @@ -28,7 +28,7 @@ export interface Candles_market_tradableInstrument_instrument { export interface Candles_market_tradableInstrument { __typename: "TradableInstrument"; /** - * An instance of, or reference to, a fully specified instrument. + * An instance of or reference to a fully specified instrument. */ instrument: Candles_market_tradableInstrument_instrument; } @@ -69,7 +69,7 @@ export interface Candles_market { id: string; /** * 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) + * number denominated in the currency of the Market. (uint64) * * Examples: * Currency Balance decimalPlaces Real Balance @@ -85,18 +85,18 @@ export interface Candles_market { */ decimalPlaces: number; /** - * An instance of, or reference to, a tradable instrument. + * An instance of or reference to a tradable instrument. */ tradableInstrument: Candles_market_tradableInstrument; /** - * Candles on a market, for the 'last' n candles, at 'interval' seconds as specified by parameters + * Candles on a market, for the 'last' n candles, at 'interval' seconds as specified by params */ candles: (Candles_market_candles | null)[] | null; } export interface Candles { /** - * An instrument that is trading on the Vega network + * An instrument that is trading on the VEGA network */ market: Candles_market | null; } diff --git a/libs/candles-chart/src/lib/__generated__/CandlesSub.ts b/libs/candles-chart/src/lib/__generated__/CandlesSub.ts index e81470f4c..4abf0ebe3 100644 --- a/libs/candles-chart/src/lib/__generated__/CandlesSub.ts +++ b/libs/candles-chart/src/lib/__generated__/CandlesSub.ts @@ -3,7 +3,7 @@ // @generated // This file was automatically generated and should not be edited. -import { Interval } from "@vegaprotocol/types"; +import { Interval } from "./../../../../types/src/__generated__/globalTypes"; // ==================================================== // GraphQL subscription operation: CandlesSub diff --git a/libs/candles-chart/src/lib/__generated__/Chart.ts b/libs/candles-chart/src/lib/__generated__/Chart.ts index e7dbd0c80..8b204633c 100644 --- a/libs/candles-chart/src/lib/__generated__/Chart.ts +++ b/libs/candles-chart/src/lib/__generated__/Chart.ts @@ -26,7 +26,7 @@ export interface Chart_market_data_priceMonitoringBounds { export interface Chart_market_data { __typename: "MarketData"; /** - * a list of valid price ranges per associated trigger + * A list of valid price ranges per associated trigger */ priceMonitoringBounds: Chart_market_data_priceMonitoringBounds[] | null; } @@ -35,7 +35,7 @@ export interface Chart_market { __typename: "Market"; /** * 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) + * number denominated in the currency of the Market. (uint64) * * Examples: * Currency Balance decimalPlaces Real Balance @@ -58,7 +58,7 @@ export interface Chart_market { export interface Chart { /** - * An instrument that is trading on the Vega network + * An instrument that is trading on the VEGA network */ market: Chart_market | null; } diff --git a/libs/deal-ticket/src/components/deal-ticket/__generated__/DealTicketQuery.ts b/libs/deal-ticket/src/components/deal-ticket/__generated__/DealTicketQuery.ts index a1a6bf1d9..7f0ec58ee 100644 --- a/libs/deal-ticket/src/components/deal-ticket/__generated__/DealTicketQuery.ts +++ b/libs/deal-ticket/src/components/deal-ticket/__generated__/DealTicketQuery.ts @@ -3,7 +3,7 @@ // @generated // This file was automatically generated and should not be edited. -import { MarketState, MarketTradingMode } from "@vegaprotocol/types"; +import { MarketState, MarketTradingMode } from "./../../../../../types/src/__generated__/globalTypes"; // ==================================================== // GraphQL query operation: DealTicketQuery @@ -12,7 +12,7 @@ import { MarketState, MarketTradingMode } from "@vegaprotocol/types"; export interface DealTicketQuery_market_tradableInstrument_instrument_product_settlementAsset { __typename: "Asset"; /** - * The ID of the asset + * The id of the asset */ id: string; /** @@ -56,7 +56,7 @@ export interface DealTicketQuery_market_tradableInstrument_instrument { export interface DealTicketQuery_market_tradableInstrument { __typename: "TradableInstrument"; /** - * An instance of, or reference to, a fully specified instrument. + * An instance of or reference to a fully specified instrument. */ instrument: DealTicketQuery_market_tradableInstrument_instrument; } @@ -85,7 +85,7 @@ export interface DealTicketQuery_market { id: string; /** * 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) + * number denominated in the currency of the Market. (uint64) * * Examples: * Currency Balance decimalPlaces Real Balance @@ -101,10 +101,9 @@ export interface DealTicketQuery_market { */ decimalPlaces: number; /** - * positionDecimalPlaces indicates the number of decimal places that an integer must be shifted in order to get a correct size (uint64). + * positionDecimalPlaces indicated the number of decimal places that an integer must be shifted in order to get a correct size (uint64). * i.e. 0 means there are no fractional orders for the market, and order sizes are always whole sizes. * 2 means sizes given as 10^2 * desired size, e.g. a desired size of 1.23 is represented as 123 in this market. - * This sets how big the smallest order / position on the market can be. */ positionDecimalPlaces: number; /** @@ -116,7 +115,7 @@ export interface DealTicketQuery_market { */ tradingMode: MarketTradingMode; /** - * An instance of, or reference to, a tradable instrument. + * An instance of or reference to a tradable instrument. */ tradableInstrument: DealTicketQuery_market_tradableInstrument; /** @@ -127,7 +126,7 @@ export interface DealTicketQuery_market { export interface DealTicketQuery { /** - * An instrument that is trading on the Vega network + * An instrument that is trading on the VEGA network */ market: DealTicketQuery_market | null; } diff --git a/libs/deal-ticket/src/components/deal-ticket/__generated__/MarketNames.ts b/libs/deal-ticket/src/components/deal-ticket/__generated__/MarketNames.ts index c91ec7e1f..555d8a62a 100644 --- a/libs/deal-ticket/src/components/deal-ticket/__generated__/MarketNames.ts +++ b/libs/deal-ticket/src/components/deal-ticket/__generated__/MarketNames.ts @@ -3,7 +3,7 @@ // @generated // This file was automatically generated and should not be edited. -import { MarketState } from "@vegaprotocol/types"; +import { MarketState } from "./../../../../../types/src/__generated__/globalTypes"; // ==================================================== // GraphQL query operation: MarketNames @@ -48,7 +48,7 @@ export interface MarketNames_markets_tradableInstrument_instrument { export interface MarketNames_markets_tradableInstrument { __typename: "TradableInstrument"; /** - * An instance of, or reference to, a fully specified instrument. + * An instance of or reference to a fully specified instrument. */ instrument: MarketNames_markets_tradableInstrument_instrument; } @@ -64,7 +64,7 @@ export interface MarketNames_markets { */ state: MarketState; /** - * An instance of, or reference to, a tradable instrument. + * An instance of or reference to a tradable instrument. */ tradableInstrument: MarketNames_markets_tradableInstrument; } diff --git a/libs/deal-ticket/src/components/market-info/__generated__/MarketInfoQuery.ts b/libs/deal-ticket/src/components/market-info/__generated__/MarketInfoQuery.ts index b564c331d..5eb1cc185 100644 --- a/libs/deal-ticket/src/components/market-info/__generated__/MarketInfoQuery.ts +++ b/libs/deal-ticket/src/components/market-info/__generated__/MarketInfoQuery.ts @@ -3,7 +3,7 @@ // @generated // This file was automatically generated and should not be edited. -import { Interval, MarketState, MarketTradingMode, AccountType, AuctionTrigger } from "@vegaprotocol/types"; +import { Interval, MarketState, MarketTradingMode, AccountType, AuctionTrigger } from "./../../../../../types/src/__generated__/globalTypes"; // ==================================================== // GraphQL query operation: MarketInfoQuery @@ -11,16 +11,10 @@ import { Interval, MarketState, MarketTradingMode, AccountType, AuctionTrigger } export interface MarketInfoQuery_market_proposal_rationale { __typename: "ProposalRationale"; - /** - * Title to be used to give a short description of the proposal in lists. - * This is to be between 0 and 100 unicode characters. - * This is mandatory for all proposals. - */ - title: string; /** * Description to show a short title / something in case the link goes offline. - * This is to be between 0 and 20k unicode characters. - * This is mandatory for all proposals. + * This is to be between 0 and 1024 unicode characters. + * This is mandatory for all proposal. */ description: string; } @@ -28,7 +22,7 @@ export interface MarketInfoQuery_market_proposal_rationale { export interface MarketInfoQuery_market_proposal { __typename: "Proposal"; /** - * Proposal ID that is filled by Vega once proposal reaches the network + * Proposal ID that is filled by VEGA once proposal reaches the network */ id: string | null; /** @@ -40,7 +34,7 @@ export interface MarketInfoQuery_market_proposal { export interface MarketInfoQuery_market_accounts_asset { __typename: "Asset"; /** - * The ID of the asset + * The id of the asset */ id: string; } @@ -97,7 +91,7 @@ export interface MarketInfoQuery_market_priceMonitoringSettings_parameters_trigg probability: number; /** * Price monitoring auction extension duration in seconds should the price - * breach its theoretical level over the specified horizon at the specified + * breach it's theoretical level over the specified horizon at the specified * probability level (> 0) */ auctionExtensionSecs: number; @@ -155,7 +149,7 @@ export interface MarketInfoQuery_market_data_priceMonitoringBounds_trigger { probability: number; /** * Price monitoring auction extension duration in seconds should the price - * breach its theoretical level over the specified horizon at the specified + * breach it's theoretical level over the specified horizon at the specified * probability level (> 0) */ auctionExtensionSecs: number; @@ -184,11 +178,11 @@ export interface MarketInfoQuery_market_data_priceMonitoringBounds { export interface MarketInfoQuery_market_data { __typename: "MarketData"; /** - * market ID of the associated mark price + * market id of the associated mark price */ market: MarketInfoQuery_market_data_market; /** - * the mark price (an unsigned integer) + * the mark price (actually an unsigned int) */ markPrice: string; /** @@ -236,7 +230,7 @@ export interface MarketInfoQuery_market_data { */ marketValueProxy: string; /** - * a list of valid price ranges per associated trigger + * A list of valid price ranges per associated trigger */ priceMonitoringBounds: MarketInfoQuery_market_data_priceMonitoringBounds[] | null; } @@ -284,7 +278,7 @@ export interface MarketInfoQuery_market_tradableInstrument_instrument_metadata { export interface MarketInfoQuery_market_tradableInstrument_instrument_product_settlementAsset { __typename: "Asset"; /** - * The ID of the asset + * The id of the asset */ id: string; /** @@ -296,7 +290,7 @@ export interface MarketInfoQuery_market_tradableInstrument_instrument_product_se */ name: string; /** - * The precision of the asset. Should match the decimal precision of the asset on its native chain, e.g: for ERC20 assets, it is often 18 + * The precision of the asset */ decimals: number; } @@ -304,7 +298,7 @@ export interface MarketInfoQuery_market_tradableInstrument_instrument_product_se export interface MarketInfoQuery_market_tradableInstrument_instrument_product_oracleSpecForSettlementPrice { __typename: "OracleSpec"; /** - * ID is a hash generated from the OracleSpec data. + * id is a hash generated from the OracleSpec data. */ id: string; } @@ -312,7 +306,7 @@ export interface MarketInfoQuery_market_tradableInstrument_instrument_product_or export interface MarketInfoQuery_market_tradableInstrument_instrument_product_oracleSpecForTradingTermination { __typename: "OracleSpec"; /** - * ID is a hash generated from the OracleSpec data. + * id is a hash generated from the OracleSpec data. */ id: string; } @@ -378,11 +372,11 @@ export interface MarketInfoQuery_market_tradableInstrument_riskModel_LogNormalRi */ r: number; /** - * sigma parameter, annualised volatility of the underlying asset, must be a strictly non-negative real number + * sigma parameter */ sigma: number; /** - * mu parameter, annualised growth rate of the underlying asset + * mu parameter */ mu: number; } @@ -390,15 +384,15 @@ export interface MarketInfoQuery_market_tradableInstrument_riskModel_LogNormalRi export interface MarketInfoQuery_market_tradableInstrument_riskModel_LogNormalRiskModel { __typename: "LogNormalRiskModel"; /** - * Tau parameter of the risk model, projection horizon measured as a year fraction used in the expected shortfall calculation to obtain the maintenance margin, must be a strictly non-negative real number + * Tau parameter of the risk model */ tau: number; /** - * Lambda parameter of the risk model, probability confidence level used in expected shortfall calculation when obtaining the maintenance margin level, must be strictly greater than 0 and strictly smaller than 1 + * Lambda parameter of the risk model */ riskAversionParameter: number; /** - * Parameters for the log normal risk model + * Params for the log normal risk model */ params: MarketInfoQuery_market_tradableInstrument_riskModel_LogNormalRiskModel_params; } @@ -428,7 +422,7 @@ export type MarketInfoQuery_market_tradableInstrument_riskModel = MarketInfoQuer export interface MarketInfoQuery_market_tradableInstrument { __typename: "TradableInstrument"; /** - * An instance of, or reference to, a fully specified instrument. + * An instance of or reference to a fully specified instrument. */ instrument: MarketInfoQuery_market_tradableInstrument_instrument; /** @@ -461,15 +455,15 @@ export interface MarketInfoQuery_market { id: string; /** * 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) - * + * 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 ) @@ -477,10 +471,9 @@ export interface MarketInfoQuery_market { */ decimalPlaces: number; /** - * positionDecimalPlaces indicates the number of decimal places that an integer must be shifted in order to get a correct size (uint64). + * positionDecimalPlaces indicated the number of decimal places that an integer must be shifted in order to get a correct size (uint64). * i.e. 0 means there are no fractional orders for the market, and order sizes are always whole sizes. * 2 means sizes given as 10^2 * desired size, e.g. a desired size of 1.23 is represented as 123 in this market. - * This sets how big the smallest order / position on the market can be. */ positionDecimalPlaces: number; /** @@ -492,7 +485,7 @@ export interface MarketInfoQuery_market { */ tradingMode: MarketTradingMode; /** - * The proposal that initiated this market + * The proposal which initiated this market */ proposal: MarketInfoQuery_market_proposal | null; /** @@ -520,11 +513,11 @@ export interface MarketInfoQuery_market { */ liquidityMonitoringParameters: MarketInfoQuery_market_liquidityMonitoringParameters; /** - * Candles on a market, for the 'last' n candles, at 'interval' seconds as specified by parameters + * Candles on a market, for the 'last' n candles, at 'interval' seconds as specified by params */ candles: (MarketInfoQuery_market_candles | null)[] | null; /** - * An instance of, or reference to, a tradable instrument. + * An instance of or reference to a tradable instrument. */ tradableInstrument: MarketInfoQuery_market_tradableInstrument; /** @@ -535,7 +528,7 @@ export interface MarketInfoQuery_market { export interface MarketInfoQuery { /** - * An instrument that is trading on the Vega network + * An instrument that is trading on the VEGA network */ market: MarketInfoQuery_market | null; } diff --git a/libs/deal-ticket/src/components/market-info/info-market-query.ts b/libs/deal-ticket/src/components/market-info/info-market-query.ts index 98afe6ef9..511b867ce 100644 --- a/libs/deal-ticket/src/components/market-info/info-market-query.ts +++ b/libs/deal-ticket/src/components/market-info/info-market-query.ts @@ -11,7 +11,6 @@ export const MARKET_INFO_QUERY = gql` proposal { id rationale { - title description } } diff --git a/libs/deposits/src/lib/__generated__/DepositEvent.ts b/libs/deposits/src/lib/__generated__/DepositEvent.ts index aaa0265b2..ef3d778f5 100644 --- a/libs/deposits/src/lib/__generated__/DepositEvent.ts +++ b/libs/deposits/src/lib/__generated__/DepositEvent.ts @@ -3,7 +3,7 @@ // @generated // This file was automatically generated and should not be edited. -import { DepositStatus } from "@vegaprotocol/types"; +import { DepositStatus } from "./../../../../types/src/__generated__/globalTypes"; // ==================================================== // GraphQL subscription operation: DepositEvent @@ -16,7 +16,7 @@ export interface DepositEvent_busEvents_event_TimeUpdate { export interface DepositEvent_busEvents_event_Deposit { __typename: "Deposit"; /** - * The Vega internal ID of the deposit + * The Vega internal id of the deposit */ id: string; /** diff --git a/libs/deposits/src/lib/__generated__/DepositEventSub.ts b/libs/deposits/src/lib/__generated__/DepositEventSub.ts index 411994334..6eb1e1751 100644 --- a/libs/deposits/src/lib/__generated__/DepositEventSub.ts +++ b/libs/deposits/src/lib/__generated__/DepositEventSub.ts @@ -3,7 +3,7 @@ // @generated // This file was automatically generated and should not be edited. -import { DepositStatus } from "@vegaprotocol/types"; +import { DepositStatus } from "./../../../../types/src/__generated__/globalTypes"; // ==================================================== // GraphQL subscription operation: DepositEventSub @@ -16,7 +16,7 @@ export interface DepositEventSub_busEvents_event_TimeUpdate { export interface DepositEventSub_busEvents_event_Deposit_asset { __typename: "Asset"; /** - * The ID of the asset + * The id of the asset */ id: string; /** @@ -24,7 +24,7 @@ export interface DepositEventSub_busEvents_event_Deposit_asset { */ symbol: string; /** - * The precision of the asset. Should match the decimal precision of the asset on its native chain, e.g: for ERC20 assets, it is often 18 + * The precision of the asset */ decimals: number; } @@ -32,7 +32,7 @@ export interface DepositEventSub_busEvents_event_Deposit_asset { export interface DepositEventSub_busEvents_event_Deposit { __typename: "Deposit"; /** - * The Vega internal ID of the deposit + * The Vega internal id of the deposit */ id: string; /** @@ -52,7 +52,7 @@ export interface DepositEventSub_busEvents_event_Deposit { */ createdTimestamp: string; /** - * RFC3339Nano time at which the deposit was finalised + * RFC3339Nano time at which the deposit was finalized */ creditedTimestamp: string | null; /** diff --git a/libs/deposits/src/lib/__generated__/DepositFields.ts b/libs/deposits/src/lib/__generated__/DepositFields.ts index 8026e39f3..b6fa00262 100644 --- a/libs/deposits/src/lib/__generated__/DepositFields.ts +++ b/libs/deposits/src/lib/__generated__/DepositFields.ts @@ -3,7 +3,7 @@ // @generated // This file was automatically generated and should not be edited. -import { DepositStatus } from "@vegaprotocol/types"; +import { DepositStatus } from "./../../../../types/src/__generated__/globalTypes"; // ==================================================== // GraphQL fragment: DepositFields @@ -12,7 +12,7 @@ import { DepositStatus } from "@vegaprotocol/types"; export interface DepositFields_asset { __typename: "Asset"; /** - * The ID of the asset + * The id of the asset */ id: string; /** @@ -20,7 +20,7 @@ export interface DepositFields_asset { */ symbol: string; /** - * The precision of the asset. Should match the decimal precision of the asset on its native chain, e.g: for ERC20 assets, it is often 18 + * The precision of the asset */ decimals: number; } @@ -28,7 +28,7 @@ export interface DepositFields_asset { export interface DepositFields { __typename: "Deposit"; /** - * The Vega internal ID of the deposit + * The Vega internal id of the deposit */ id: string; /** @@ -48,7 +48,7 @@ export interface DepositFields { */ createdTimestamp: string; /** - * RFC3339Nano time at which the deposit was finalised + * RFC3339Nano time at which the deposit was finalized */ creditedTimestamp: string | null; /** diff --git a/libs/deposits/src/lib/__generated__/DepositsQuery.ts b/libs/deposits/src/lib/__generated__/DepositsQuery.ts index 23140dd02..1e5b0fecf 100644 --- a/libs/deposits/src/lib/__generated__/DepositsQuery.ts +++ b/libs/deposits/src/lib/__generated__/DepositsQuery.ts @@ -3,7 +3,7 @@ // @generated // This file was automatically generated and should not be edited. -import { DepositStatus } from "@vegaprotocol/types"; +import { DepositStatus } from "./../../../../types/src/__generated__/globalTypes"; // ==================================================== // GraphQL query operation: DepositsQuery @@ -12,7 +12,7 @@ import { DepositStatus } from "@vegaprotocol/types"; export interface DepositsQuery_party_depositsConnection_edges_node_asset { __typename: "Asset"; /** - * The ID of the asset + * The id of the asset */ id: string; /** @@ -20,7 +20,7 @@ export interface DepositsQuery_party_depositsConnection_edges_node_asset { */ symbol: string; /** - * The precision of the asset. Should match the decimal precision of the asset on its native chain, e.g: for ERC20 assets, it is often 18 + * The precision of the asset */ decimals: number; } @@ -28,7 +28,7 @@ export interface DepositsQuery_party_depositsConnection_edges_node_asset { export interface DepositsQuery_party_depositsConnection_edges_node { __typename: "Deposit"; /** - * The Vega internal ID of the deposit + * The Vega internal id of the deposit */ id: string; /** @@ -48,7 +48,7 @@ export interface DepositsQuery_party_depositsConnection_edges_node { */ createdTimestamp: string; /** - * RFC3339Nano time at which the deposit was finalised + * RFC3339Nano time at which the deposit was finalized */ creditedTimestamp: string | null; /** @@ -84,7 +84,7 @@ export interface DepositsQuery_party { export interface DepositsQuery { /** - * An entity that is trading on the Vega network + * An entity that is trading on the VEGA network */ party: DepositsQuery_party | null; } diff --git a/libs/environment/src/utils/__generated__/BlockTime.ts b/libs/environment/src/utils/__generated__/BlockTime.ts index 40fa9807b..7f6cc2895 100644 --- a/libs/environment/src/utils/__generated__/BlockTime.ts +++ b/libs/environment/src/utils/__generated__/BlockTime.ts @@ -10,7 +10,7 @@ export interface BlockTime_busEvents { __typename: "BusEvent"; /** - * the ID for this event + * the id for this event */ eventId: string; } diff --git a/libs/environment/src/utils/__generated__/Statistics.ts b/libs/environment/src/utils/__generated__/Statistics.ts index 97582021e..90d1d3ea2 100644 --- a/libs/environment/src/utils/__generated__/Statistics.ts +++ b/libs/environment/src/utils/__generated__/Statistics.ts @@ -10,7 +10,7 @@ export interface Statistics_statistics { __typename: "Statistics"; /** - * Current chain ID + * Current chain id */ chainId: string; /** @@ -21,7 +21,7 @@ export interface Statistics_statistics { export interface Statistics { /** - * get statistics about the Vega node + * get statistics about the vega node */ statistics: Statistics_statistics; } diff --git a/libs/fills/src/lib/__generated__/FillFields.ts b/libs/fills/src/lib/__generated__/FillFields.ts index 70c685e65..6408a4971 100644 --- a/libs/fills/src/lib/__generated__/FillFields.ts +++ b/libs/fills/src/lib/__generated__/FillFields.ts @@ -3,7 +3,7 @@ // @generated // This file was automatically generated and should not be edited. -import { Side } from "@vegaprotocol/types"; +import { Side } from "./../../../../types/src/__generated__/globalTypes"; // ==================================================== // GraphQL fragment: FillFields @@ -28,15 +28,15 @@ export interface FillFields_seller { export interface FillFields_buyerFee { __typename: "TradeFee"; /** - * The maker fee, paid by the aggressive party to the other party (the one who had an order in the book) + * The maker fee, aggressive party to the other party (the one who had an order in the book) */ makerFee: string; /** - * The infrastructure fee, a fee paid to the validators to maintain the Vega network + * The infrastructure fee, a fee paid to the node runner to maintain the vega network */ infrastructureFee: string; /** - * The fee paid to the liquidity providers that committed liquidity to the market + * The fee paid to the market makers to provide liquidity in the market */ liquidityFee: string; } @@ -44,15 +44,15 @@ export interface FillFields_buyerFee { export interface FillFields_sellerFee { __typename: "TradeFee"; /** - * The maker fee, paid by the aggressive party to the other party (the one who had an order in the book) + * The maker fee, aggressive party to the other party (the one who had an order in the book) */ makerFee: string; /** - * The infrastructure fee, a fee paid to the validators to maintain the Vega network + * The infrastructure fee, a fee paid to the node runner to maintain the vega network */ infrastructureFee: string; /** - * The fee paid to the liquidity providers that committed liquidity to the market + * The fee paid to the market makers to provide liquidity in the market */ liquidityFee: string; } @@ -60,7 +60,7 @@ export interface FillFields_sellerFee { export interface FillFields_market_tradableInstrument_instrument_product_settlementAsset { __typename: "Asset"; /** - * The ID of the asset + * The id of the asset */ id: string; /** @@ -68,7 +68,7 @@ export interface FillFields_market_tradableInstrument_instrument_product_settlem */ symbol: string; /** - * The precision of the asset. Should match the decimal precision of the asset on its native chain, e.g: for ERC20 assets, it is often 18 + * The precision of the asset */ decimals: number; } @@ -104,7 +104,7 @@ export interface FillFields_market_tradableInstrument_instrument { export interface FillFields_market_tradableInstrument { __typename: "TradableInstrument"; /** - * An instance of, or reference to, a fully specified instrument. + * An instance of or reference to a fully specified instrument. */ instrument: FillFields_market_tradableInstrument_instrument; } @@ -117,7 +117,7 @@ export interface FillFields_market { id: string; /** * 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) + * number denominated in the currency of the Market. (uint64) * * Examples: * Currency Balance decimalPlaces Real Balance @@ -133,14 +133,13 @@ export interface FillFields_market { */ decimalPlaces: number; /** - * positionDecimalPlaces indicates the number of decimal places that an integer must be shifted in order to get a correct size (uint64). + * positionDecimalPlaces indicated the number of decimal places that an integer must be shifted in order to get a correct size (uint64). * i.e. 0 means there are no fractional orders for the market, and order sizes are always whole sizes. * 2 means sizes given as 10^2 * desired size, e.g. a desired size of 1.23 is represented as 123 in this market. - * This sets how big the smallest order / position on the market can be. */ positionDecimalPlaces: number; /** - * An instance of, or reference to, a tradable instrument. + * An instance of or reference to a tradable instrument. */ tradableInstrument: FillFields_market_tradableInstrument; } diff --git a/libs/fills/src/lib/__generated__/Fills.ts b/libs/fills/src/lib/__generated__/Fills.ts index 669b87d12..609a65708 100644 --- a/libs/fills/src/lib/__generated__/Fills.ts +++ b/libs/fills/src/lib/__generated__/Fills.ts @@ -3,7 +3,7 @@ // @generated // This file was automatically generated and should not be edited. -import { Pagination, Side } from "@vegaprotocol/types"; +import { Pagination, Side } from "./../../../../types/src/__generated__/globalTypes"; // ==================================================== // GraphQL query operation: Fills @@ -28,15 +28,15 @@ export interface Fills_party_tradesConnection_edges_node_seller { export interface Fills_party_tradesConnection_edges_node_buyerFee { __typename: "TradeFee"; /** - * The maker fee, paid by the aggressive party to the other party (the one who had an order in the book) + * The maker fee, aggressive party to the other party (the one who had an order in the book) */ makerFee: string; /** - * The infrastructure fee, a fee paid to the validators to maintain the Vega network + * The infrastructure fee, a fee paid to the node runner to maintain the vega network */ infrastructureFee: string; /** - * The fee paid to the liquidity providers that committed liquidity to the market + * The fee paid to the market makers to provide liquidity in the market */ liquidityFee: string; } @@ -44,15 +44,15 @@ export interface Fills_party_tradesConnection_edges_node_buyerFee { export interface Fills_party_tradesConnection_edges_node_sellerFee { __typename: "TradeFee"; /** - * The maker fee, paid by the aggressive party to the other party (the one who had an order in the book) + * The maker fee, aggressive party to the other party (the one who had an order in the book) */ makerFee: string; /** - * The infrastructure fee, a fee paid to the validators to maintain the Vega network + * The infrastructure fee, a fee paid to the node runner to maintain the vega network */ infrastructureFee: string; /** - * The fee paid to the liquidity providers that committed liquidity to the market + * The fee paid to the market makers to provide liquidity in the market */ liquidityFee: string; } @@ -60,7 +60,7 @@ export interface Fills_party_tradesConnection_edges_node_sellerFee { export interface Fills_party_tradesConnection_edges_node_market_tradableInstrument_instrument_product_settlementAsset { __typename: "Asset"; /** - * The ID of the asset + * The id of the asset */ id: string; /** @@ -68,7 +68,7 @@ export interface Fills_party_tradesConnection_edges_node_market_tradableInstrume */ symbol: string; /** - * The precision of the asset. Should match the decimal precision of the asset on its native chain, e.g: for ERC20 assets, it is often 18 + * The precision of the asset */ decimals: number; } @@ -104,7 +104,7 @@ export interface Fills_party_tradesConnection_edges_node_market_tradableInstrume export interface Fills_party_tradesConnection_edges_node_market_tradableInstrument { __typename: "TradableInstrument"; /** - * An instance of, or reference to, a fully specified instrument. + * An instance of or reference to a fully specified instrument. */ instrument: Fills_party_tradesConnection_edges_node_market_tradableInstrument_instrument; } @@ -117,7 +117,7 @@ export interface Fills_party_tradesConnection_edges_node_market { id: string; /** * 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) + * number denominated in the currency of the Market. (uint64) * * Examples: * Currency Balance decimalPlaces Real Balance @@ -133,14 +133,13 @@ export interface Fills_party_tradesConnection_edges_node_market { */ decimalPlaces: number; /** - * positionDecimalPlaces indicates the number of decimal places that an integer must be shifted in order to get a correct size (uint64). + * positionDecimalPlaces indicated the number of decimal places that an integer must be shifted in order to get a correct size (uint64). * i.e. 0 means there are no fractional orders for the market, and order sizes are always whole sizes. * 2 means sizes given as 10^2 * desired size, e.g. a desired size of 1.23 is represented as 123 in this market. - * This sets how big the smallest order / position on the market can be. */ positionDecimalPlaces: number; /** - * An instance of, or reference to, a tradable instrument. + * An instance of or reference to a tradable instrument. */ tradableInstrument: Fills_party_tradesConnection_edges_node_market_tradableInstrument; } @@ -234,7 +233,7 @@ export interface Fills_party { export interface Fills { /** - * An entity that is trading on the Vega network + * An entity that is trading on the VEGA network */ party: Fills_party | null; } diff --git a/libs/fills/src/lib/__generated__/FillsSub.ts b/libs/fills/src/lib/__generated__/FillsSub.ts index 69651b833..a7b97867c 100644 --- a/libs/fills/src/lib/__generated__/FillsSub.ts +++ b/libs/fills/src/lib/__generated__/FillsSub.ts @@ -3,7 +3,7 @@ // @generated // This file was automatically generated and should not be edited. -import { Side } from "@vegaprotocol/types"; +import { Side } from "./../../../../types/src/__generated__/globalTypes"; // ==================================================== // GraphQL subscription operation: FillsSub @@ -28,15 +28,15 @@ export interface FillsSub_trades_seller { export interface FillsSub_trades_buyerFee { __typename: "TradeFee"; /** - * The maker fee, paid by the aggressive party to the other party (the one who had an order in the book) + * The maker fee, aggressive party to the other party (the one who had an order in the book) */ makerFee: string; /** - * The infrastructure fee, a fee paid to the validators to maintain the Vega network + * The infrastructure fee, a fee paid to the node runner to maintain the vega network */ infrastructureFee: string; /** - * The fee paid to the liquidity providers that committed liquidity to the market + * The fee paid to the market makers to provide liquidity in the market */ liquidityFee: string; } @@ -44,15 +44,15 @@ export interface FillsSub_trades_buyerFee { export interface FillsSub_trades_sellerFee { __typename: "TradeFee"; /** - * The maker fee, paid by the aggressive party to the other party (the one who had an order in the book) + * The maker fee, aggressive party to the other party (the one who had an order in the book) */ makerFee: string; /** - * The infrastructure fee, a fee paid to the validators to maintain the Vega network + * The infrastructure fee, a fee paid to the node runner to maintain the vega network */ infrastructureFee: string; /** - * The fee paid to the liquidity providers that committed liquidity to the market + * The fee paid to the market makers to provide liquidity in the market */ liquidityFee: string; } @@ -60,7 +60,7 @@ export interface FillsSub_trades_sellerFee { export interface FillsSub_trades_market_tradableInstrument_instrument_product_settlementAsset { __typename: "Asset"; /** - * The ID of the asset + * The id of the asset */ id: string; /** @@ -68,7 +68,7 @@ export interface FillsSub_trades_market_tradableInstrument_instrument_product_se */ symbol: string; /** - * The precision of the asset. Should match the decimal precision of the asset on its native chain, e.g: for ERC20 assets, it is often 18 + * The precision of the asset */ decimals: number; } @@ -104,7 +104,7 @@ export interface FillsSub_trades_market_tradableInstrument_instrument { export interface FillsSub_trades_market_tradableInstrument { __typename: "TradableInstrument"; /** - * An instance of, or reference to, a fully specified instrument. + * An instance of or reference to a fully specified instrument. */ instrument: FillsSub_trades_market_tradableInstrument_instrument; } @@ -117,7 +117,7 @@ export interface FillsSub_trades_market { id: string; /** * 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) + * number denominated in the currency of the Market. (uint64) * * Examples: * Currency Balance decimalPlaces Real Balance @@ -133,14 +133,13 @@ export interface FillsSub_trades_market { */ decimalPlaces: number; /** - * positionDecimalPlaces indicates the number of decimal places that an integer must be shifted in order to get a correct size (uint64). + * positionDecimalPlaces indicated the number of decimal places that an integer must be shifted in order to get a correct size (uint64). * i.e. 0 means there are no fractional orders for the market, and order sizes are always whole sizes. * 2 means sizes given as 10^2 * desired size, e.g. a desired size of 1.23 is represented as 123 in this market. - * This sets how big the smallest order / position on the market can be. */ positionDecimalPlaces: number; /** - * An instance of, or reference to, a tradable instrument. + * An instance of or reference to a tradable instrument. */ tradableInstrument: FillsSub_trades_market_tradableInstrument; } diff --git a/libs/governance/src/lib/proposals-hooks/__generated__/ProposalEvent.ts b/libs/governance/src/lib/proposals-hooks/__generated__/ProposalEvent.ts index 088e4b4b8..7ab10fc72 100644 --- a/libs/governance/src/lib/proposals-hooks/__generated__/ProposalEvent.ts +++ b/libs/governance/src/lib/proposals-hooks/__generated__/ProposalEvent.ts @@ -3,7 +3,7 @@ // @generated // This file was automatically generated and should not be edited. -import { BusEventType, ProposalState, ProposalRejectionReason } from "@vegaprotocol/types"; +import { BusEventType, ProposalState, ProposalRejectionReason } from "./../../../../../types/src/__generated__/globalTypes"; // ==================================================== // GraphQL subscription operation: ProposalEvent @@ -16,11 +16,11 @@ export interface ProposalEvent_busEvents_event_TimeUpdate { export interface ProposalEvent_busEvents_event_Proposal { __typename: "Proposal"; /** - * Proposal ID that is filled by Vega once proposal reaches the network + * Proposal ID that is filled by VEGA once proposal reaches the network */ id: string | null; /** - * A UUID reference to aid tracking proposals on Vega + * A UUID reference to aid tracking proposals on VEGA */ reference: string; /** @@ -42,7 +42,7 @@ export type ProposalEvent_busEvents_event = ProposalEvent_busEvents_event_TimeUp export interface ProposalEvent_busEvents { __typename: "BusEvent"; /** - * the type of event + * the type of event we're dealing with */ type: BusEventType; /** diff --git a/libs/governance/src/utils/proposal-dialog-helpers.tsx b/libs/governance/src/utils/proposal-dialog-helpers.tsx index f351d16f8..9c6f57dc5 100644 --- a/libs/governance/src/utils/proposal-dialog-helpers.tsx +++ b/libs/governance/src/utils/proposal-dialog-helpers.tsx @@ -11,19 +11,19 @@ export const getProposalDialogTitle = ( } switch (status) { - case ProposalState.STATE_OPEN: + case ProposalState.Open: return t('Proposal submitted'); - case ProposalState.STATE_WAITING_FOR_NODE_VOTE: + case ProposalState.WaitingForNodeVote: return t('Proposal waiting for node vote'); - case ProposalState.STATE_PASSED: + case ProposalState.Passed: return t('Proposal passed'); - case ProposalState.STATE_ENACTED: + case ProposalState.Enacted: return t('Proposal enacted'); - case ProposalState.STATE_DECLINED: + case ProposalState.Declined: return t('Proposal declined'); - case ProposalState.STATE_REJECTED: + case ProposalState.Rejected: return t('Proposal rejected'); - case ProposalState.STATE_FAILED: + case ProposalState.Failed: return t('Proposal failed'); default: return t('Submission failed'); @@ -38,15 +38,15 @@ export const getProposalDialogIntent = ( } switch (status) { - case ProposalState.STATE_PASSED: - case ProposalState.STATE_ENACTED: + case ProposalState.Passed: + case ProposalState.Enacted: return Intent.Success; - case ProposalState.STATE_OPEN: - case ProposalState.STATE_WAITING_FOR_NODE_VOTE: + case ProposalState.Open: + case ProposalState.WaitingForNodeVote: return Intent.None; - case ProposalState.STATE_REJECTED: - case ProposalState.STATE_FAILED: - case ProposalState.STATE_DECLINED: + case ProposalState.Rejected: + case ProposalState.Failed: + case ProposalState.Declined: return Intent.Danger; default: return; @@ -61,12 +61,12 @@ export const getProposalDialogIcon = ( } switch (status) { - case ProposalState.STATE_PASSED: - case ProposalState.STATE_ENACTED: + case ProposalState.Passed: + case ProposalState.Enacted: return ; - case ProposalState.STATE_REJECTED: - case ProposalState.STATE_FAILED: - case ProposalState.STATE_DECLINED: + case ProposalState.Rejected: + case ProposalState.Failed: + case ProposalState.Declined: return ; default: return; diff --git a/libs/liquidity/src/lib/__generated__/MarketLiquidity.ts b/libs/liquidity/src/lib/__generated__/MarketLiquidity.ts index 194f3f2fe..2b9be1138 100644 --- a/libs/liquidity/src/lib/__generated__/MarketLiquidity.ts +++ b/libs/liquidity/src/lib/__generated__/MarketLiquidity.ts @@ -3,13 +3,13 @@ // @generated // This file was automatically generated and should not be edited. -import { AccountType, LiquidityProvisionStatus } from "@vegaprotocol/types"; +import { AccountType, LiquidityProvisionStatus } from "./../../../../types/src/__generated__/globalTypes"; // ==================================================== // GraphQL query operation: MarketLiquidity // ==================================================== -export interface MarketLiquidity_market_liquidityProvisionsConnection_edges_node_party_accountsConnection_edges_node { +export interface MarketLiquidity_market_liquidityProvisionsConnection_edges_node_party_accounts { __typename: "Account"; /** * Account type (General, Margin, etc) @@ -21,22 +21,6 @@ export interface MarketLiquidity_market_liquidityProvisionsConnection_edges_node balance: string; } -export interface MarketLiquidity_market_liquidityProvisionsConnection_edges_node_party_accountsConnection_edges { - __typename: "AccountEdge"; - /** - * The account - */ - node: MarketLiquidity_market_liquidityProvisionsConnection_edges_node_party_accountsConnection_edges_node; -} - -export interface MarketLiquidity_market_liquidityProvisionsConnection_edges_node_party_accountsConnection { - __typename: "AccountsConnection"; - /** - * List of accounts available for the connection - */ - edges: (MarketLiquidity_market_liquidityProvisionsConnection_edges_node_party_accountsConnection_edges | null)[] | null; -} - export interface MarketLiquidity_market_liquidityProvisionsConnection_edges_node_party { __typename: "Party"; /** @@ -46,7 +30,7 @@ export interface MarketLiquidity_market_liquidityProvisionsConnection_edges_node /** * Collateral accounts relating to a party */ - accountsConnection: MarketLiquidity_market_liquidityProvisionsConnection_edges_node_party_accountsConnection; + accounts: MarketLiquidity_market_liquidityProvisionsConnection_edges_node_party_accounts[] | null; } export interface MarketLiquidity_market_liquidityProvisionsConnection_edges_node { @@ -72,7 +56,7 @@ export interface MarketLiquidity_market_liquidityProvisionsConnection_edges_node */ commitmentAmount: string; /** - * Nominated liquidity fee factor, which is an input to the calculation of maker fees on the market, as per setting fees and rewarding liquidity providers. + * nominated liquidity fee factor, which is an input to the calculation of taker fees on the market, as per setting fees and rewarding liquidity providers. */ fee: string; /** @@ -94,7 +78,7 @@ export interface MarketLiquidity_market_liquidityProvisionsConnection { export interface MarketLiquidity_market_tradableInstrument_instrument_product_settlementAsset { __typename: "Asset"; /** - * The ID of the asset + * The id of the asset */ id: string; /** @@ -102,7 +86,7 @@ export interface MarketLiquidity_market_tradableInstrument_instrument_product_se */ symbol: string; /** - * The precision of the asset. Should match the decimal precision of the asset on its native chain, e.g: for ERC20 assets, it is often 18 + * The precision of the asset */ decimals: number; } @@ -130,7 +114,7 @@ export interface MarketLiquidity_market_tradableInstrument_instrument { export interface MarketLiquidity_market_tradableInstrument { __typename: "TradableInstrument"; /** - * An instance of, or reference to, a fully specified instrument. + * An instance of or reference to a fully specified instrument. */ instrument: MarketLiquidity_market_tradableInstrument_instrument; } @@ -154,15 +138,15 @@ export interface MarketLiquidity_market_data_liquidityProviderFeeShare_party { export interface MarketLiquidity_market_data_liquidityProviderFeeShare { __typename: "LiquidityProviderFeeShare"; /** - * The liquidity provider party ID + * The liquidity provider party id */ party: MarketLiquidity_market_data_liquidityProviderFeeShare_party; /** - * The share owned by this liquidity provider (float) + * The share own by this liquidity provider (float) */ equityLikeShare: string; /** - * The average entry valuation of the liquidity provider for the market + * the average entry valuation of the liquidity provider for the market */ averageEntryValuation: string; } @@ -170,7 +154,7 @@ export interface MarketLiquidity_market_data_liquidityProviderFeeShare { export interface MarketLiquidity_market_data { __typename: "MarketData"; /** - * market ID of the associated mark price + * market id of the associated mark price */ market: MarketLiquidity_market_data_market; /** @@ -203,7 +187,7 @@ export interface MarketLiquidity_market { id: string; /** * 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) + * number denominated in the currency of the Market. (uint64) * * Examples: * Currency Balance decimalPlaces Real Balance @@ -219,18 +203,17 @@ export interface MarketLiquidity_market { */ decimalPlaces: number; /** - * positionDecimalPlaces indicates the number of decimal places that an integer must be shifted in order to get a correct size (uint64). + * positionDecimalPlaces indicated the number of decimal places that an integer must be shifted in order to get a correct size (uint64). * i.e. 0 means there are no fractional orders for the market, and order sizes are always whole sizes. * 2 means sizes given as 10^2 * desired size, e.g. a desired size of 1.23 is represented as 123 in this market. - * This sets how big the smallest order / position on the market can be. */ positionDecimalPlaces: number; /** - * The list of the liquidity provision commitments for this market + * The list of the liquidity provision commitment for this market */ liquidityProvisionsConnection: MarketLiquidity_market_liquidityProvisionsConnection; /** - * An instance of, or reference to, a tradable instrument. + * An instance of or reference to a tradable instrument. */ tradableInstrument: MarketLiquidity_market_tradableInstrument; /** @@ -241,7 +224,7 @@ export interface MarketLiquidity_market { export interface MarketLiquidity { /** - * An instrument that is trading on the Vega network + * An instrument that is trading on the VEGA network */ market: MarketLiquidity_market | null; } diff --git a/libs/liquidity/src/lib/liquidity-data-provider.ts b/libs/liquidity/src/lib/liquidity-data-provider.ts index c96eb285b..8ad9af8f2 100644 --- a/libs/liquidity/src/lib/liquidity-data-provider.ts +++ b/libs/liquidity/src/lib/liquidity-data-provider.ts @@ -22,13 +22,9 @@ const MARKET_LIQUIDITY_QUERY = gql` id party { id - accountsConnection(marketId: $marketId, type: ACCOUNT_TYPE_BOND) { - edges { - node { - type - balance - } - } + accounts(marketId: $marketId, type: Bond) { + type + balance } } createdAt diff --git a/libs/market-depth/src/lib/__generated__/MarketDepth.ts b/libs/market-depth/src/lib/__generated__/MarketDepth.ts index 7b043223b..90516cb07 100644 --- a/libs/market-depth/src/lib/__generated__/MarketDepth.ts +++ b/libs/market-depth/src/lib/__generated__/MarketDepth.ts @@ -3,7 +3,7 @@ // @generated // This file was automatically generated and should not be edited. -import { MarketTradingMode } from "@vegaprotocol/types"; +import { MarketTradingMode } from "./../../../../types/src/__generated__/globalTypes"; // ==================================================== // GraphQL query operation: MarketDepth @@ -24,7 +24,7 @@ export interface MarketDepth_market_data { */ staticMidPrice: string; /** - * what state the market is in (auction, continuous, etc) + * what state the market is in (auction, continuous etc) */ marketTradingMode: MarketTradingMode; /** @@ -44,7 +44,7 @@ export interface MarketDepth_market_data { */ bestStaticOfferPrice: string; /** - * market ID of the associated mark price + * market id of the associated mark price */ market: MarketDepth_market_data_market; } @@ -117,7 +117,7 @@ export interface MarketDepth_market { id: string; /** * 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) + * number denominated in the currency of the Market. (uint64) * * Examples: * Currency Balance decimalPlaces Real Balance @@ -133,10 +133,9 @@ export interface MarketDepth_market { */ decimalPlaces: number; /** - * positionDecimalPlaces indicates the number of decimal places that an integer must be shifted in order to get a correct size (uint64). + * positionDecimalPlaces indicated the number of decimal places that an integer must be shifted in order to get a correct size (uint64). * i.e. 0 means there are no fractional orders for the market, and order sizes are always whole sizes. * 2 means sizes given as 10^2 * desired size, e.g. a desired size of 1.23 is represented as 123 in this market. - * This sets how big the smallest order / position on the market can be. */ positionDecimalPlaces: number; /** @@ -151,7 +150,7 @@ export interface MarketDepth_market { export interface MarketDepth { /** - * An instrument that is trading on the Vega network + * An instrument that is trading on the VEGA network */ market: MarketDepth_market | null; } diff --git a/libs/market-depth/src/lib/__generated__/MarketDepthSubscription.ts b/libs/market-depth/src/lib/__generated__/MarketDepthSubscription.ts index 456b6cc8c..afa1234a7 100644 --- a/libs/market-depth/src/lib/__generated__/MarketDepthSubscription.ts +++ b/libs/market-depth/src/lib/__generated__/MarketDepthSubscription.ts @@ -3,7 +3,7 @@ // @generated // This file was automatically generated and should not be edited. -import { MarketTradingMode } from "@vegaprotocol/types"; +import { MarketTradingMode } from "./../../../../types/src/__generated__/globalTypes"; // ==================================================== // GraphQL subscription operation: MarketDepthSubscription @@ -24,7 +24,7 @@ export interface MarketDepthSubscription_marketDepthUpdate_market_data { */ staticMidPrice: string; /** - * what state the market is in (auction, continuous, etc) + * what state the market is in (auction, continuous etc) */ marketTradingMode: MarketTradingMode; /** @@ -44,7 +44,7 @@ export interface MarketDepthSubscription_marketDepthUpdate_market_data { */ bestStaticOfferPrice: string; /** - * market ID of the associated mark price + * market id of the associated mark price */ market: MarketDepthSubscription_marketDepthUpdate_market_data_market; } @@ -56,10 +56,9 @@ export interface MarketDepthSubscription_marketDepthUpdate_market { */ id: string; /** - * positionDecimalPlaces indicates the number of decimal places that an integer must be shifted in order to get a correct size (uint64). + * positionDecimalPlaces indicated the number of decimal places that an integer must be shifted in order to get a correct size (uint64). * i.e. 0 means there are no fractional orders for the market, and order sizes are always whole sizes. * 2 means sizes given as 10^2 * desired size, e.g. a desired size of 1.23 is represented as 123 in this market. - * This sets how big the smallest order / position on the market can be. */ positionDecimalPlaces: number; /** @@ -103,7 +102,7 @@ export interface MarketDepthSubscription_marketDepthUpdate_buy { export interface MarketDepthSubscription_marketDepthUpdate { __typename: "MarketDepthUpdate"; /** - * Market + * Market id */ market: MarketDepthSubscription_marketDepthUpdate_market; /** diff --git a/libs/market-list/src/lib/__generated__/MarketDataFields.ts b/libs/market-list/src/lib/__generated__/MarketDataFields.ts index 44cdd10ac..31775e27e 100644 --- a/libs/market-list/src/lib/__generated__/MarketDataFields.ts +++ b/libs/market-list/src/lib/__generated__/MarketDataFields.ts @@ -3,7 +3,7 @@ // @generated // This file was automatically generated and should not be edited. -import { MarketState, MarketTradingMode, AuctionTrigger } from "@vegaprotocol/types"; +import { MarketState, MarketTradingMode, AuctionTrigger } from "./../../../../types/src/__generated__/globalTypes"; // ==================================================== // GraphQL fragment: MarketDataFields @@ -28,7 +28,7 @@ export interface MarketDataFields_market { export interface MarketDataFields { __typename: "MarketData"; /** - * market ID of the associated mark price + * market id of the associated mark price */ market: MarketDataFields_market; /** @@ -40,7 +40,7 @@ export interface MarketDataFields { */ bestOfferPrice: string; /** - * the mark price (an unsigned integer) + * the mark price (actually an unsigned int) */ markPrice: string; /** diff --git a/libs/market-list/src/lib/__generated__/MarketDataSub.ts b/libs/market-list/src/lib/__generated__/MarketDataSub.ts index c77181ea3..cf6bc874b 100644 --- a/libs/market-list/src/lib/__generated__/MarketDataSub.ts +++ b/libs/market-list/src/lib/__generated__/MarketDataSub.ts @@ -3,7 +3,7 @@ // @generated // This file was automatically generated and should not be edited. -import { MarketState, MarketTradingMode, AuctionTrigger } from "@vegaprotocol/types"; +import { MarketState, MarketTradingMode, AuctionTrigger } from "./../../../../types/src/__generated__/globalTypes"; // ==================================================== // GraphQL subscription operation: MarketDataSub @@ -28,7 +28,7 @@ export interface MarketDataSub_marketData_market { export interface MarketDataSub_marketData { __typename: "MarketData"; /** - * market ID of the associated mark price + * market id of the associated mark price */ market: MarketDataSub_marketData_market; /** @@ -40,7 +40,7 @@ export interface MarketDataSub_marketData { */ bestOfferPrice: string; /** - * the mark price (an unsigned integer) + * the mark price (actually an unsigned int) */ markPrice: string; /** diff --git a/libs/market-list/src/lib/__generated__/MarketList.ts b/libs/market-list/src/lib/__generated__/MarketList.ts index f147b3498..1d4ea5e01 100644 --- a/libs/market-list/src/lib/__generated__/MarketList.ts +++ b/libs/market-list/src/lib/__generated__/MarketList.ts @@ -3,7 +3,7 @@ // @generated // This file was automatically generated and should not be edited. -import { Interval, MarketState, MarketTradingMode, AuctionTrigger } from "@vegaprotocol/types"; +import { Interval, MarketState, MarketTradingMode, AuctionTrigger } from "./../../../../types/src/__generated__/globalTypes"; // ==================================================== // GraphQL query operation: MarketList @@ -52,7 +52,7 @@ export interface MarketList_markets_data_market { export interface MarketList_markets_data { __typename: "MarketData"; /** - * market ID of the associated mark price + * market id of the associated mark price */ market: MarketList_markets_data_market; /** @@ -64,7 +64,7 @@ export interface MarketList_markets_data { */ bestOfferPrice: string; /** - * the mark price (an unsigned integer) + * the mark price (actually an unsigned int) */ markPrice: string; /** @@ -128,7 +128,7 @@ export interface MarketList_markets_tradableInstrument_instrument { export interface MarketList_markets_tradableInstrument { __typename: "TradableInstrument"; /** - * An instance of, or reference to, a fully specified instrument. + * An instance of or reference to a fully specified instrument. */ instrument: MarketList_markets_tradableInstrument_instrument; } @@ -173,7 +173,7 @@ export interface MarketList_markets { id: string; /** * 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) + * number denominated in the currency of the Market. (uint64) * * Examples: * Currency Balance decimalPlaces Real Balance @@ -189,10 +189,9 @@ export interface MarketList_markets { */ decimalPlaces: number; /** - * positionDecimalPlaces indicates the number of decimal places that an integer must be shifted in order to get a correct size (uint64). + * positionDecimalPlaces indicated the number of decimal places that an integer must be shifted in order to get a correct size (uint64). * i.e. 0 means there are no fractional orders for the market, and order sizes are always whole sizes. * 2 means sizes given as 10^2 * desired size, e.g. a desired size of 1.23 is represented as 123 in this market. - * This sets how big the smallest order / position on the market can be. */ positionDecimalPlaces: number; /** @@ -212,7 +211,7 @@ export interface MarketList_markets { */ data: MarketList_markets_data | null; /** - * An instance of, or reference to, a tradable instrument. + * An instance of or reference to a tradable instrument. */ tradableInstrument: MarketList_markets_tradableInstrument; /** @@ -220,7 +219,7 @@ export interface MarketList_markets { */ marketTimestamps: MarketList_markets_marketTimestamps; /** - * Candles on a market, for the 'last' n candles, at 'interval' seconds as specified by parameters + * Candles on a market, for the 'last' n candles, at 'interval' seconds as specified by params */ candles: (MarketList_markets_candles | null)[] | null; } diff --git a/libs/network-stats/src/components/stats-manager/__generated__/NetworkStats.ts b/libs/network-stats/src/components/stats-manager/__generated__/NetworkStats.ts index 1f4e6990f..d04a05cce 100644 --- a/libs/network-stats/src/components/stats-manager/__generated__/NetworkStats.ts +++ b/libs/network-stats/src/components/stats-manager/__generated__/NetworkStats.ts @@ -34,7 +34,7 @@ export interface NetworkStats_nodeData { export interface NetworkStats_statistics { __typename: "Statistics"; /** - * Status of the Vega application connection with the chain + * Status of the vega application connection with the chain */ status: string; /** @@ -70,7 +70,7 @@ export interface NetworkStats_statistics { */ vegaTime: string; /** - * Version of the Vega node (semver) + * Version of the vega node (semver) */ appVersion: string; /** @@ -78,7 +78,7 @@ export interface NetworkStats_statistics { */ chainVersion: string; /** - * Current chain ID + * Current chain id */ chainId: string; } @@ -89,7 +89,7 @@ export interface NetworkStats { */ nodeData: NetworkStats_nodeData | null; /** - * get statistics about the Vega node + * get statistics about the vega node */ statistics: NetworkStats_statistics; } diff --git a/libs/orders/src/lib/components/order-data-provider/__generated__/OrderFields.ts b/libs/orders/src/lib/components/order-data-provider/__generated__/OrderFields.ts index ebfd1865a..404def0bc 100644 --- a/libs/orders/src/lib/components/order-data-provider/__generated__/OrderFields.ts +++ b/libs/orders/src/lib/components/order-data-provider/__generated__/OrderFields.ts @@ -3,7 +3,7 @@ // @generated // This file was automatically generated and should not be edited. -import { OrderType, Side, OrderStatus, OrderRejectionReason, OrderTimeInForce } from "@vegaprotocol/types"; +import { OrderType, Side, OrderStatus, OrderRejectionReason, OrderTimeInForce } from "./../../../../../../types/src/__generated__/globalTypes"; // ==================================================== // GraphQL fragment: OrderFields @@ -28,7 +28,7 @@ export interface OrderFields_market_tradableInstrument_instrument { export interface OrderFields_market_tradableInstrument { __typename: "TradableInstrument"; /** - * An instance of, or reference to, a fully specified instrument. + * An instance of or reference to a fully specified instrument. */ instrument: OrderFields_market_tradableInstrument_instrument; } @@ -41,7 +41,7 @@ export interface OrderFields_market { id: string; /** * 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) + * number denominated in the currency of the Market. (uint64) * * Examples: * Currency Balance decimalPlaces Real Balance @@ -57,14 +57,13 @@ export interface OrderFields_market { */ decimalPlaces: number; /** - * positionDecimalPlaces indicates the number of decimal places that an integer must be shifted in order to get a correct size (uint64). + * positionDecimalPlaces indicated the number of decimal places that an integer must be shifted in order to get a correct size (uint64). * i.e. 0 means there are no fractional orders for the market, and order sizes are always whole sizes. * 2 means sizes given as 10^2 * desired size, e.g. a desired size of 1.23 is represented as 123 in this market. - * This sets how big the smallest order / position on the market can be. */ positionDecimalPlaces: number; /** - * An instance of, or reference to, a tradable instrument. + * An instance of or reference to a tradable instrument. */ tradableInstrument: OrderFields_market_tradableInstrument; } @@ -78,7 +77,7 @@ export interface OrderFields { /** * The market the order is trading on (probably stored internally as a hash of the market details) */ - market: OrderFields_market; + market: OrderFields_market | null; /** * Type the order type (defaults to PARTY) */ diff --git a/libs/orders/src/lib/components/order-data-provider/__generated__/OrderSub.ts b/libs/orders/src/lib/components/order-data-provider/__generated__/OrderSub.ts index d1d3128ea..e43861647 100644 --- a/libs/orders/src/lib/components/order-data-provider/__generated__/OrderSub.ts +++ b/libs/orders/src/lib/components/order-data-provider/__generated__/OrderSub.ts @@ -3,7 +3,7 @@ // @generated // This file was automatically generated and should not be edited. -import { OrderType, Side, OrderStatus, OrderRejectionReason, OrderTimeInForce } from "@vegaprotocol/types"; +import { OrderType, Side, OrderStatus, OrderRejectionReason, OrderTimeInForce } from "./../../../../../../types/src/__generated__/globalTypes"; // ==================================================== // GraphQL subscription operation: OrderSub @@ -28,7 +28,7 @@ export interface OrderSub_orders_market_tradableInstrument_instrument { export interface OrderSub_orders_market_tradableInstrument { __typename: "TradableInstrument"; /** - * An instance of, or reference to, a fully specified instrument. + * An instance of or reference to a fully specified instrument. */ instrument: OrderSub_orders_market_tradableInstrument_instrument; } @@ -41,7 +41,7 @@ export interface OrderSub_orders_market { id: string; /** * 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) + * number denominated in the currency of the Market. (uint64) * * Examples: * Currency Balance decimalPlaces Real Balance @@ -57,14 +57,13 @@ export interface OrderSub_orders_market { */ decimalPlaces: number; /** - * positionDecimalPlaces indicates the number of decimal places that an integer must be shifted in order to get a correct size (uint64). + * positionDecimalPlaces indicated the number of decimal places that an integer must be shifted in order to get a correct size (uint64). * i.e. 0 means there are no fractional orders for the market, and order sizes are always whole sizes. * 2 means sizes given as 10^2 * desired size, e.g. a desired size of 1.23 is represented as 123 in this market. - * This sets how big the smallest order / position on the market can be. */ positionDecimalPlaces: number; /** - * An instance of, or reference to, a tradable instrument. + * An instance of or reference to a tradable instrument. */ tradableInstrument: OrderSub_orders_market_tradableInstrument; } @@ -78,7 +77,7 @@ export interface OrderSub_orders { /** * The market the order is trading on (probably stored internally as a hash of the market details) */ - market: OrderSub_orders_market; + market: OrderSub_orders_market | null; /** * Type the order type (defaults to PARTY) */ diff --git a/libs/orders/src/lib/components/order-data-provider/__generated__/Orders.ts b/libs/orders/src/lib/components/order-data-provider/__generated__/Orders.ts index e1cde6308..ac173ca53 100644 --- a/libs/orders/src/lib/components/order-data-provider/__generated__/Orders.ts +++ b/libs/orders/src/lib/components/order-data-provider/__generated__/Orders.ts @@ -3,7 +3,7 @@ // @generated // This file was automatically generated and should not be edited. -import { Pagination, OrderType, Side, OrderStatus, OrderRejectionReason, OrderTimeInForce } from "@vegaprotocol/types"; +import { Pagination, OrderType, Side, OrderStatus, OrderRejectionReason, OrderTimeInForce } from "./../../../../../../types/src/__generated__/globalTypes"; // ==================================================== // GraphQL query operation: Orders @@ -28,7 +28,7 @@ export interface Orders_party_ordersConnection_edges_node_market_tradableInstrum export interface Orders_party_ordersConnection_edges_node_market_tradableInstrument { __typename: "TradableInstrument"; /** - * An instance of, or reference to, a fully specified instrument. + * An instance of or reference to a fully specified instrument. */ instrument: Orders_party_ordersConnection_edges_node_market_tradableInstrument_instrument; } @@ -41,7 +41,7 @@ export interface Orders_party_ordersConnection_edges_node_market { id: string; /** * 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) + * number denominated in the currency of the Market. (uint64) * * Examples: * Currency Balance decimalPlaces Real Balance @@ -57,14 +57,13 @@ export interface Orders_party_ordersConnection_edges_node_market { */ decimalPlaces: number; /** - * positionDecimalPlaces indicates the number of decimal places that an integer must be shifted in order to get a correct size (uint64). + * positionDecimalPlaces indicated the number of decimal places that an integer must be shifted in order to get a correct size (uint64). * i.e. 0 means there are no fractional orders for the market, and order sizes are always whole sizes. * 2 means sizes given as 10^2 * desired size, e.g. a desired size of 1.23 is represented as 123 in this market. - * This sets how big the smallest order / position on the market can be. */ positionDecimalPlaces: number; /** - * An instance of, or reference to, a tradable instrument. + * An instance of or reference to a tradable instrument. */ tradableInstrument: Orders_party_ordersConnection_edges_node_market_tradableInstrument; } @@ -78,7 +77,7 @@ export interface Orders_party_ordersConnection_edges_node { /** * The market the order is trading on (probably stored internally as a hash of the market details) */ - market: Orders_party_ordersConnection_edges_node_market; + market: Orders_party_ordersConnection_edges_node_market | null; /** * Type the order type (defaults to PARTY) */ @@ -165,7 +164,7 @@ export interface Orders_party { export interface Orders { /** - * An entity that is trading on the Vega network + * An entity that is trading on the VEGA network */ party: Orders_party | null; } diff --git a/libs/orders/src/lib/order-hooks/__generated__/OrderEvent.ts b/libs/orders/src/lib/order-hooks/__generated__/OrderEvent.ts index 5226464bf..614b21214 100644 --- a/libs/orders/src/lib/order-hooks/__generated__/OrderEvent.ts +++ b/libs/orders/src/lib/order-hooks/__generated__/OrderEvent.ts @@ -3,7 +3,7 @@ // @generated // This file was automatically generated and should not be edited. -import { BusEventType, OrderType, OrderStatus, OrderRejectionReason, OrderTimeInForce, Side } from "@vegaprotocol/types"; +import { BusEventType, OrderType, OrderStatus, OrderRejectionReason, OrderTimeInForce, Side } from "./../../../../../types/src/__generated__/globalTypes"; // ==================================================== // GraphQL subscription operation: OrderEvent @@ -24,7 +24,7 @@ export interface OrderEvent_busEvents_event_Order_market_tradableInstrument_inst export interface OrderEvent_busEvents_event_Order_market_tradableInstrument { __typename: "TradableInstrument"; /** - * An instance of, or reference to, a fully specified instrument. + * An instance of or reference to a fully specified instrument. */ instrument: OrderEvent_busEvents_event_Order_market_tradableInstrument_instrument; } @@ -36,12 +36,12 @@ export interface OrderEvent_busEvents_event_Order_market { */ id: string; /** - * An instance of, or reference to, a tradable instrument. + * An instance of or reference to a tradable instrument. */ tradableInstrument: OrderEvent_busEvents_event_Order_market_tradableInstrument; /** * 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) + * number denominated in the currency of the Market. (uint64) * * Examples: * Currency Balance decimalPlaces Real Balance @@ -57,10 +57,9 @@ export interface OrderEvent_busEvents_event_Order_market { */ decimalPlaces: number; /** - * positionDecimalPlaces indicates the number of decimal places that an integer must be shifted in order to get a correct size (uint64). + * positionDecimalPlaces indicated the number of decimal places that an integer must be shifted in order to get a correct size (uint64). * i.e. 0 means there are no fractional orders for the market, and order sizes are always whole sizes. * 2 means sizes given as 10^2 * desired size, e.g. a desired size of 1.23 is represented as 123 in this market. - * This sets how big the smallest order / position on the market can be. */ positionDecimalPlaces: number; } @@ -110,7 +109,7 @@ export interface OrderEvent_busEvents_event_Order { /** * The market the order is trading on (probably stored internally as a hash of the market details) */ - market: OrderEvent_busEvents_event_Order_market; + market: OrderEvent_busEvents_event_Order_market | null; } export type OrderEvent_busEvents_event = OrderEvent_busEvents_event_TimeUpdate | OrderEvent_busEvents_event_Order; @@ -118,7 +117,7 @@ export type OrderEvent_busEvents_event = OrderEvent_busEvents_event_TimeUpdate | export interface OrderEvent_busEvents { __typename: "BusEvent"; /** - * the type of event + * the type of event we're dealing with */ type: BusEventType; /** diff --git a/libs/positions/src/lib/__generated__/PositionFields.ts b/libs/positions/src/lib/__generated__/PositionFields.ts index 7575fb799..3240ba7df 100644 --- a/libs/positions/src/lib/__generated__/PositionFields.ts +++ b/libs/positions/src/lib/__generated__/PositionFields.ts @@ -3,7 +3,7 @@ // @generated // This file was automatically generated and should not be edited. -import { MarketTradingMode } from "@vegaprotocol/types"; +import { MarketTradingMode } from "./../../../../types/src/__generated__/globalTypes"; // ==================================================== // GraphQL fragment: PositionFields @@ -32,15 +32,15 @@ export interface PositionFields_marginsConnection_edges_node { */ market: PositionFields_marginsConnection_edges_node_market; /** - * minimal margin for the position to be maintained in the network (unsigned integer) + * minimal margin for the position to be maintained in the network (unsigned int actually) */ maintenanceLevel: string; /** - * if the margin is between maintenance and search, the network will initiate a collateral search (unsigned integer) + * if the margin is between maintenance and search, the network will initiate a collateral search (unsigned int actually) */ searchLevel: string; /** - * this is the minimum margin required for a party to place a new order on the network (unsigned integer) + * this is the minimal margin required for a party to place a new order on the network (unsigned int actually) */ initialLevel: string; /** @@ -78,7 +78,7 @@ export interface PositionFields_market_tradableInstrument_instrument { export interface PositionFields_market_tradableInstrument { __typename: "TradableInstrument"; /** - * An instance of, or reference to, a fully specified instrument. + * An instance of or reference to a fully specified instrument. */ instrument: PositionFields_market_tradableInstrument_instrument; } @@ -94,11 +94,11 @@ export interface PositionFields_market_data_market { export interface PositionFields_market_data { __typename: "MarketData"; /** - * the mark price (an unsigned integer) + * the mark price (actually an unsigned int) */ markPrice: string; /** - * market ID of the associated mark price + * market id of the associated mark price */ market: PositionFields_market_data_market; } @@ -111,7 +111,7 @@ export interface PositionFields_market { id: string; /** * 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) + * number denominated in the currency of the Market. (uint64) * * Examples: * Currency Balance decimalPlaces Real Balance @@ -127,10 +127,9 @@ export interface PositionFields_market { */ decimalPlaces: number; /** - * positionDecimalPlaces indicates the number of decimal places that an integer must be shifted in order to get a correct size (uint64). + * positionDecimalPlaces indicated the number of decimal places that an integer must be shifted in order to get a correct size (uint64). * i.e. 0 means there are no fractional orders for the market, and order sizes are always whole sizes. * 2 means sizes given as 10^2 * desired size, e.g. a desired size of 1.23 is represented as 123 in this market. - * This sets how big the smallest order / position on the market can be. */ positionDecimalPlaces: number; /** @@ -138,7 +137,7 @@ export interface PositionFields_market { */ tradingMode: MarketTradingMode; /** - * An instance of, or reference to, a tradable instrument. + * An instance of or reference to a tradable instrument. */ tradableInstrument: PositionFields_market_tradableInstrument; /** @@ -170,7 +169,7 @@ export interface PositionFields { */ updatedAt: string | null; /** - * Margins of the party for the given position + * margins of the party for the given position */ marginsConnection: PositionFields_marginsConnection; /** diff --git a/libs/positions/src/lib/__generated__/Positions.ts b/libs/positions/src/lib/__generated__/Positions.ts index 7dbb01dbf..17e88f21c 100644 --- a/libs/positions/src/lib/__generated__/Positions.ts +++ b/libs/positions/src/lib/__generated__/Positions.ts @@ -3,7 +3,7 @@ // @generated // This file was automatically generated and should not be edited. -import { MarketTradingMode } from "@vegaprotocol/types"; +import { MarketTradingMode } from "./../../../../types/src/__generated__/globalTypes"; // ==================================================== // GraphQL query operation: Positions @@ -32,15 +32,15 @@ export interface Positions_party_positionsConnection_edges_node_marginsConnectio */ market: Positions_party_positionsConnection_edges_node_marginsConnection_edges_node_market; /** - * minimal margin for the position to be maintained in the network (unsigned integer) + * minimal margin for the position to be maintained in the network (unsigned int actually) */ maintenanceLevel: string; /** - * if the margin is between maintenance and search, the network will initiate a collateral search (unsigned integer) + * if the margin is between maintenance and search, the network will initiate a collateral search (unsigned int actually) */ searchLevel: string; /** - * this is the minimum margin required for a party to place a new order on the network (unsigned integer) + * this is the minimal margin required for a party to place a new order on the network (unsigned int actually) */ initialLevel: string; /** @@ -78,7 +78,7 @@ export interface Positions_party_positionsConnection_edges_node_market_tradableI export interface Positions_party_positionsConnection_edges_node_market_tradableInstrument { __typename: "TradableInstrument"; /** - * An instance of, or reference to, a fully specified instrument. + * An instance of or reference to a fully specified instrument. */ instrument: Positions_party_positionsConnection_edges_node_market_tradableInstrument_instrument; } @@ -94,11 +94,11 @@ export interface Positions_party_positionsConnection_edges_node_market_data_mark export interface Positions_party_positionsConnection_edges_node_market_data { __typename: "MarketData"; /** - * the mark price (an unsigned integer) + * the mark price (actually an unsigned int) */ markPrice: string; /** - * market ID of the associated mark price + * market id of the associated mark price */ market: Positions_party_positionsConnection_edges_node_market_data_market; } @@ -111,7 +111,7 @@ export interface Positions_party_positionsConnection_edges_node_market { id: string; /** * 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) + * number denominated in the currency of the Market. (uint64) * * Examples: * Currency Balance decimalPlaces Real Balance @@ -127,10 +127,9 @@ export interface Positions_party_positionsConnection_edges_node_market { */ decimalPlaces: number; /** - * positionDecimalPlaces indicates the number of decimal places that an integer must be shifted in order to get a correct size (uint64). + * positionDecimalPlaces indicated the number of decimal places that an integer must be shifted in order to get a correct size (uint64). * i.e. 0 means there are no fractional orders for the market, and order sizes are always whole sizes. * 2 means sizes given as 10^2 * desired size, e.g. a desired size of 1.23 is represented as 123 in this market. - * This sets how big the smallest order / position on the market can be. */ positionDecimalPlaces: number; /** @@ -138,7 +137,7 @@ export interface Positions_party_positionsConnection_edges_node_market { */ tradingMode: MarketTradingMode; /** - * An instance of, or reference to, a tradable instrument. + * An instance of or reference to a tradable instrument. */ tradableInstrument: Positions_party_positionsConnection_edges_node_market_tradableInstrument; /** @@ -170,7 +169,7 @@ export interface Positions_party_positionsConnection_edges_node { */ updatedAt: string | null; /** - * Margins of the party for the given position + * margins of the party for the given position */ marginsConnection: Positions_party_positionsConnection_edges_node_marginsConnection; /** @@ -206,7 +205,7 @@ export interface Positions_party { export interface Positions { /** - * An entity that is trading on the Vega network + * An entity that is trading on the VEGA network */ party: Positions_party | null; } diff --git a/libs/positions/src/lib/__generated__/PositionsSubscription.ts b/libs/positions/src/lib/__generated__/PositionsSubscription.ts index 9fbfe6a9d..9ed00bcf7 100644 --- a/libs/positions/src/lib/__generated__/PositionsSubscription.ts +++ b/libs/positions/src/lib/__generated__/PositionsSubscription.ts @@ -3,7 +3,7 @@ // @generated // This file was automatically generated and should not be edited. -import { MarketTradingMode } from "@vegaprotocol/types"; +import { MarketTradingMode } from "./../../../../types/src/__generated__/globalTypes"; // ==================================================== // GraphQL subscription operation: PositionsSubscription @@ -32,15 +32,15 @@ export interface PositionsSubscription_positions_marginsConnection_edges_node { */ market: PositionsSubscription_positions_marginsConnection_edges_node_market; /** - * minimal margin for the position to be maintained in the network (unsigned integer) + * minimal margin for the position to be maintained in the network (unsigned int actually) */ maintenanceLevel: string; /** - * if the margin is between maintenance and search, the network will initiate a collateral search (unsigned integer) + * if the margin is between maintenance and search, the network will initiate a collateral search (unsigned int actually) */ searchLevel: string; /** - * this is the minimum margin required for a party to place a new order on the network (unsigned integer) + * this is the minimal margin required for a party to place a new order on the network (unsigned int actually) */ initialLevel: string; /** @@ -78,7 +78,7 @@ export interface PositionsSubscription_positions_market_tradableInstrument_instr export interface PositionsSubscription_positions_market_tradableInstrument { __typename: "TradableInstrument"; /** - * An instance of, or reference to, a fully specified instrument. + * An instance of or reference to a fully specified instrument. */ instrument: PositionsSubscription_positions_market_tradableInstrument_instrument; } @@ -94,11 +94,11 @@ export interface PositionsSubscription_positions_market_data_market { export interface PositionsSubscription_positions_market_data { __typename: "MarketData"; /** - * the mark price (an unsigned integer) + * the mark price (actually an unsigned int) */ markPrice: string; /** - * market ID of the associated mark price + * market id of the associated mark price */ market: PositionsSubscription_positions_market_data_market; } @@ -111,7 +111,7 @@ export interface PositionsSubscription_positions_market { id: string; /** * 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) + * number denominated in the currency of the Market. (uint64) * * Examples: * Currency Balance decimalPlaces Real Balance @@ -127,10 +127,9 @@ export interface PositionsSubscription_positions_market { */ decimalPlaces: number; /** - * positionDecimalPlaces indicates the number of decimal places that an integer must be shifted in order to get a correct size (uint64). + * positionDecimalPlaces indicated the number of decimal places that an integer must be shifted in order to get a correct size (uint64). * i.e. 0 means there are no fractional orders for the market, and order sizes are always whole sizes. * 2 means sizes given as 10^2 * desired size, e.g. a desired size of 1.23 is represented as 123 in this market. - * This sets how big the smallest order / position on the market can be. */ positionDecimalPlaces: number; /** @@ -138,7 +137,7 @@ export interface PositionsSubscription_positions_market { */ tradingMode: MarketTradingMode; /** - * An instance of, or reference to, a tradable instrument. + * An instance of or reference to a tradable instrument. */ tradableInstrument: PositionsSubscription_positions_market_tradableInstrument; /** @@ -170,7 +169,7 @@ export interface PositionsSubscription_positions { */ updatedAt: string | null; /** - * Margins of the party for the given position + * margins of the party for the given position */ marginsConnection: PositionsSubscription_positions_marginsConnection; /** diff --git a/libs/react-helpers/src/lib/assets.ts b/libs/react-helpers/src/lib/assets.ts index c734aca92..f952217ad 100644 --- a/libs/react-helpers/src/lib/assets.ts +++ b/libs/react-helpers/src/lib/assets.ts @@ -1,3 +1,5 @@ +import { AssetStatus } from '@vegaprotocol/types'; + export interface ERC20AssetSource { __typename: 'ERC20'; contractAddress: string; @@ -16,13 +18,6 @@ export interface Asset { source: ERC20AssetSource | BuiltinAssetSource; } -export enum AssetStatus { - STATUS_ENABLED = 'STATUS_ENABLED', - STATUS_PENDING_LISTING = 'STATUS_PENDING_LISTING', - STATUS_PROPOSED = 'STATUS_PROPOSED', - STATUS_REJECTED = 'STATUS_REJECTED', -} - export interface AssetWithStatus extends Asset { status: AssetStatus; } @@ -62,4 +57,4 @@ export const getEnabledAssets = ( data?.assetsConnection?.edges ?.filter((e) => e && e?.node) .map((e) => (e as AssetEdge).node) - .filter((a) => a.status === AssetStatus.STATUS_ENABLED) || []; + .filter((a) => a.status === AssetStatus.Enabled) || []; diff --git a/libs/react-helpers/src/lib/grid/size.tsx b/libs/react-helpers/src/lib/grid/size.tsx index acd38c67b..5a6b5c531 100644 --- a/libs/react-helpers/src/lib/grid/size.tsx +++ b/libs/react-helpers/src/lib/grid/size.tsx @@ -17,11 +17,11 @@ export const Size = ({ - {side === Side.SIDE_BUY ? '+' : side === Side.SIDE_SELL ? '-' : ''} + {side === Side.Buy ? '+' : side === Side.Sell ? '-' : ''} {addDecimalsFormatNumber(value, positionDecimalPlaces)} ); diff --git a/libs/trades/src/lib/__generated__/TradeFields.ts b/libs/trades/src/lib/__generated__/TradeFields.ts index 60678676c..e3eb24265 100644 --- a/libs/trades/src/lib/__generated__/TradeFields.ts +++ b/libs/trades/src/lib/__generated__/TradeFields.ts @@ -15,7 +15,7 @@ export interface TradeFields_market { id: string; /** * 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) + * number denominated in the currency of the Market. (uint64) * * Examples: * Currency Balance decimalPlaces Real Balance @@ -31,10 +31,9 @@ export interface TradeFields_market { */ decimalPlaces: number; /** - * positionDecimalPlaces indicates the number of decimal places that an integer must be shifted in order to get a correct size (uint64). + * positionDecimalPlaces indicated the number of decimal places that an integer must be shifted in order to get a correct size (uint64). * i.e. 0 means there are no fractional orders for the market, and order sizes are always whole sizes. * 2 means sizes given as 10^2 * desired size, e.g. a desired size of 1.23 is represented as 123 in this market. - * This sets how big the smallest order / position on the market can be. */ positionDecimalPlaces: number; } diff --git a/libs/trades/src/lib/__generated__/Trades.ts b/libs/trades/src/lib/__generated__/Trades.ts index f656ceca9..8924e4676 100644 --- a/libs/trades/src/lib/__generated__/Trades.ts +++ b/libs/trades/src/lib/__generated__/Trades.ts @@ -3,7 +3,7 @@ // @generated // This file was automatically generated and should not be edited. -import { Pagination } from "@vegaprotocol/types"; +import { Pagination } from "./../../../../types/src/__generated__/globalTypes"; // ==================================================== // GraphQL query operation: Trades @@ -17,7 +17,7 @@ export interface Trades_market_tradesConnection_edges_node_market { id: string; /** * 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) + * number denominated in the currency of the Market. (uint64) * * Examples: * Currency Balance decimalPlaces Real Balance @@ -33,10 +33,9 @@ export interface Trades_market_tradesConnection_edges_node_market { */ decimalPlaces: number; /** - * positionDecimalPlaces indicates the number of decimal places that an integer must be shifted in order to get a correct size (uint64). + * positionDecimalPlaces indicated the number of decimal places that an integer must be shifted in order to get a correct size (uint64). * i.e. 0 means there are no fractional orders for the market, and order sizes are always whole sizes. * 2 means sizes given as 10^2 * desired size, e.g. a desired size of 1.23 is represented as 123 in this market. - * This sets how big the smallest order / position on the market can be. */ positionDecimalPlaces: number; } @@ -102,7 +101,7 @@ export interface Trades_market { export interface Trades { /** - * An instrument that is trading on the Vega network + * An instrument that is trading on the VEGA network */ market: Trades_market | null; } diff --git a/libs/trades/src/lib/__generated__/TradesSub.ts b/libs/trades/src/lib/__generated__/TradesSub.ts index 58d83cb89..9b837772d 100644 --- a/libs/trades/src/lib/__generated__/TradesSub.ts +++ b/libs/trades/src/lib/__generated__/TradesSub.ts @@ -15,7 +15,7 @@ export interface TradesSub_trades_market { id: string; /** * 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) + * number denominated in the currency of the Market. (uint64) * * Examples: * Currency Balance decimalPlaces Real Balance @@ -31,10 +31,9 @@ export interface TradesSub_trades_market { */ decimalPlaces: number; /** - * positionDecimalPlaces indicates the number of decimal places that an integer must be shifted in order to get a correct size (uint64). + * positionDecimalPlaces indicated the number of decimal places that an integer must be shifted in order to get a correct size (uint64). * i.e. 0 means there are no fractional orders for the market, and order sizes are always whole sizes. * 2 means sizes given as 10^2 * desired size, e.g. a desired size of 1.23 is represented as 123 in this market. - * This sets how big the smallest order / position on the market can be. */ positionDecimalPlaces: number; } diff --git a/libs/types/apollo.config.js b/libs/types/apollo.config.js index 7f306cb72..9074072c8 100644 --- a/libs/types/apollo.config.js +++ b/libs/types/apollo.config.js @@ -2,9 +2,7 @@ module.exports = { client: { service: { name: 'vega', - url: - process.env.GRAPHQL_SCHEMA_PATH || - 'https://api.n07.testnet.vega.xyz/graphql', + url: 'http://vega-mainnet-0002-observer.vega.xyz:3008/query', }, includes: [ '../../{apps,libs}/**/*.{ts,tsx,js,jsx}', diff --git a/libs/types/src/__generated__/globalTypes.ts b/libs/types/src/__generated__/globalTypes.ts index 25e42c03f..070f286b3 100644 --- a/libs/types/src/__generated__/globalTypes.ts +++ b/libs/types/src/__generated__/globalTypes.ts @@ -8,40 +8,41 @@ //============================================================== /** - * The various account types in Vega (used by collateral) + * The various account types we have (used by collateral) */ export enum AccountType { - ACCOUNT_TYPE_BOND = "ACCOUNT_TYPE_BOND", - ACCOUNT_TYPE_EXTERNAL = "ACCOUNT_TYPE_EXTERNAL", - ACCOUNT_TYPE_FEES_INFRASTRUCTURE = "ACCOUNT_TYPE_FEES_INFRASTRUCTURE", - ACCOUNT_TYPE_FEES_LIQUIDITY = "ACCOUNT_TYPE_FEES_LIQUIDITY", - ACCOUNT_TYPE_FEES_MAKER = "ACCOUNT_TYPE_FEES_MAKER", - ACCOUNT_TYPE_GENERAL = "ACCOUNT_TYPE_GENERAL", - ACCOUNT_TYPE_GLOBAL_INSURANCE = "ACCOUNT_TYPE_GLOBAL_INSURANCE", - ACCOUNT_TYPE_GLOBAL_REWARD = "ACCOUNT_TYPE_GLOBAL_REWARD", - ACCOUNT_TYPE_INSURANCE = "ACCOUNT_TYPE_INSURANCE", - ACCOUNT_TYPE_MARGIN = "ACCOUNT_TYPE_MARGIN", - ACCOUNT_TYPE_PENDING_TRANSFERS = "ACCOUNT_TYPE_PENDING_TRANSFERS", - ACCOUNT_TYPE_REWARD_LP_RECEIVED_FEES = "ACCOUNT_TYPE_REWARD_LP_RECEIVED_FEES", - ACCOUNT_TYPE_REWARD_MAKER_RECEIVED_FEES = "ACCOUNT_TYPE_REWARD_MAKER_RECEIVED_FEES", - ACCOUNT_TYPE_REWARD_MARKET_PROPOSERS = "ACCOUNT_TYPE_REWARD_MARKET_PROPOSERS", - ACCOUNT_TYPE_REWARD_TAKER_PAID_FEES = "ACCOUNT_TYPE_REWARD_TAKER_PAID_FEES", - ACCOUNT_TYPE_SETTLEMENT = "ACCOUNT_TYPE_SETTLEMENT", + Bond = "Bond", + External = "External", + FeeInfrastructure = "FeeInfrastructure", + FeeLiquidity = "FeeLiquidity", + FeeMaker = "FeeMaker", + General = "General", + GlobalInsurance = "GlobalInsurance", + GlobalReward = "GlobalReward", + Insurance = "Insurance", + LockWithdraw = "LockWithdraw", + Margin = "Margin", + PendingTransfers = "PendingTransfers", + RewardLpReceivedFees = "RewardLpReceivedFees", + RewardMakerReceivedFees = "RewardMakerReceivedFees", + RewardMarketProposers = "RewardMarketProposers", + RewardTakerPaidFees = "RewardTakerPaidFees", + Settlement = "Settlement", } export enum AssetStatus { - STATUS_ENABLED = "STATUS_ENABLED", - STATUS_PENDING_LISTING = "STATUS_PENDING_LISTING", - STATUS_PROPOSED = "STATUS_PROPOSED", - STATUS_REJECTED = "STATUS_REJECTED", + Enabled = "Enabled", + PendingListing = "PendingListing", + Proposed = "Proposed", + Rejected = "Rejected", } export enum AuctionTrigger { - AUCTION_TRIGGER_BATCH = "AUCTION_TRIGGER_BATCH", - AUCTION_TRIGGER_LIQUIDITY = "AUCTION_TRIGGER_LIQUIDITY", - AUCTION_TRIGGER_OPENING = "AUCTION_TRIGGER_OPENING", - AUCTION_TRIGGER_PRICE = "AUCTION_TRIGGER_PRICE", - AUCTION_TRIGGER_UNSPECIFIED = "AUCTION_TRIGGER_UNSPECIFIED", + Batch = "Batch", + Liquidity = "Liquidity", + Opening = "Opening", + Price = "Price", + Unspecified = "Unspecified", } export enum BusEventType { @@ -77,165 +78,166 @@ export enum BusEventType { * Comparator describes the type of comparison. */ export enum ConditionOperator { - OPERATOR_EQUALS = "OPERATOR_EQUALS", - OPERATOR_GREATER_THAN = "OPERATOR_GREATER_THAN", - OPERATOR_GREATER_THAN_OR_EQUAL = "OPERATOR_GREATER_THAN_OR_EQUAL", - OPERATOR_LESS_THAN = "OPERATOR_LESS_THAN", - OPERATOR_LESS_THAN_OR_EQUAL = "OPERATOR_LESS_THAN_OR_EQUAL", + OperatorEquals = "OperatorEquals", + OperatorGreaterThan = "OperatorGreaterThan", + OperatorGreaterThanOrEqual = "OperatorGreaterThanOrEqual", + OperatorLessThan = "OperatorLessThan", + OperatorLessThanOrEqual = "OperatorLessThanOrEqual", } /** * The status of a deposit */ export enum DepositStatus { - STATUS_CANCELLED = "STATUS_CANCELLED", - STATUS_FINALIZED = "STATUS_FINALIZED", - STATUS_OPEN = "STATUS_OPEN", + Cancelled = "Cancelled", + Finalized = "Finalized", + Open = "Open", } /** - * The interval for trade candles when subscribing via Vega GraphQL, default is I15M + * The interval for trade candles when subscribing via VEGA graphql, default is I15M */ export enum Interval { - INTERVAL_I15M = "INTERVAL_I15M", - INTERVAL_I1D = "INTERVAL_I1D", - INTERVAL_I1H = "INTERVAL_I1H", - INTERVAL_I1M = "INTERVAL_I1M", - INTERVAL_I5M = "INTERVAL_I5M", - INTERVAL_I6H = "INTERVAL_I6H", + I15M = "I15M", + I1D = "I1D", + I1H = "I1H", + I1M = "I1M", + I5M = "I5M", + I6H = "I6H", } /** * Status of a liquidity provision order */ export enum LiquidityProvisionStatus { - STATUS_ACTIVE = "STATUS_ACTIVE", - STATUS_CANCELLED = "STATUS_CANCELLED", - STATUS_PENDING = "STATUS_PENDING", - STATUS_REJECTED = "STATUS_REJECTED", - STATUS_STOPPED = "STATUS_STOPPED", - STATUS_UNDEPLOYED = "STATUS_UNDEPLOYED", + Active = "Active", + Cancelled = "Cancelled", + Pending = "Pending", + Rejected = "Rejected", + Stopped = "Stopped", + Undeployed = "Undeployed", } /** * The current state of a market */ export enum MarketState { - STATE_ACTIVE = "STATE_ACTIVE", - STATE_CANCELLED = "STATE_CANCELLED", - STATE_CLOSED = "STATE_CLOSED", - STATE_PENDING = "STATE_PENDING", - STATE_PROPOSED = "STATE_PROPOSED", - STATE_REJECTED = "STATE_REJECTED", - STATE_SETTLED = "STATE_SETTLED", - STATE_SUSPENDED = "STATE_SUSPENDED", - STATE_TRADING_TERMINATED = "STATE_TRADING_TERMINATED", + Active = "Active", + Cancelled = "Cancelled", + Closed = "Closed", + Pending = "Pending", + Proposed = "Proposed", + Rejected = "Rejected", + Settled = "Settled", + Suspended = "Suspended", + TradingTerminated = "TradingTerminated", } /** - * What market trading mode is the market in + * What market trading mode are we in */ export enum MarketTradingMode { - TRADING_MODE_BATCH_AUCTION = "TRADING_MODE_BATCH_AUCTION", - TRADING_MODE_CONTINUOUS = "TRADING_MODE_CONTINUOUS", - TRADING_MODE_MONITORING_AUCTION = "TRADING_MODE_MONITORING_AUCTION", - TRADING_MODE_NO_TRADING = "TRADING_MODE_NO_TRADING", - TRADING_MODE_OPENING_AUCTION = "TRADING_MODE_OPENING_AUCTION", + BatchAuction = "BatchAuction", + Continuous = "Continuous", + MonitoringAuction = "MonitoringAuction", + NoTrading = "NoTrading", + OpeningAuction = "OpeningAuction", } export enum NodeStatus { - NODE_STATUS_NON_VALIDATOR = "NODE_STATUS_NON_VALIDATOR", - NODE_STATUS_VALIDATOR = "NODE_STATUS_VALIDATOR", + NonValidator = "NonValidator", + Validator = "Validator", } /** * Status describe the status of the oracle spec */ export enum OracleSpecStatus { - STATUS_ACTIVE = "STATUS_ACTIVE", - STATUS_DEACTIVATED = "STATUS_DEACTIVATED", + StatusActive = "StatusActive", + StatusUnused = "StatusUnused", } /** * Reason for the order being rejected by the core node */ export enum OrderRejectionReason { - ORDER_ERROR_AMEND_FAILURE = "ORDER_ERROR_AMEND_FAILURE", - ORDER_ERROR_BUY_CANNOT_REFERENCE_BEST_ASK_PRICE = "ORDER_ERROR_BUY_CANNOT_REFERENCE_BEST_ASK_PRICE", - ORDER_ERROR_CANNOT_AMEND_FROM_GFA_OR_GFN = "ORDER_ERROR_CANNOT_AMEND_FROM_GFA_OR_GFN", - ORDER_ERROR_CANNOT_AMEND_PEGGED_ORDER_DETAILS_ON_NON_PEGGED_ORDER = "ORDER_ERROR_CANNOT_AMEND_PEGGED_ORDER_DETAILS_ON_NON_PEGGED_ORDER", - ORDER_ERROR_CANNOT_AMEND_TO_FOK_OR_IOC = "ORDER_ERROR_CANNOT_AMEND_TO_FOK_OR_IOC", - ORDER_ERROR_CANNOT_AMEND_TO_GFA_OR_GFN = "ORDER_ERROR_CANNOT_AMEND_TO_GFA_OR_GFN", - ORDER_ERROR_CANNOT_AMEND_TO_GTT_WITHOUT_EXPIRYAT = "ORDER_ERROR_CANNOT_AMEND_TO_GTT_WITHOUT_EXPIRYAT", - ORDER_ERROR_CANNOT_HAVE_GTC_AND_EXPIRYAT = "ORDER_ERROR_CANNOT_HAVE_GTC_AND_EXPIRYAT", - ORDER_ERROR_CANNOT_SEND_FOK_ORDER_DURING_AUCTION = "ORDER_ERROR_CANNOT_SEND_FOK_ORDER_DURING_AUCTION", - ORDER_ERROR_CANNOT_SEND_IOC_ORDER_DURING_AUCTION = "ORDER_ERROR_CANNOT_SEND_IOC_ORDER_DURING_AUCTION", - ORDER_ERROR_EDIT_NOT_ALLOWED = "ORDER_ERROR_EDIT_NOT_ALLOWED", - ORDER_ERROR_EXPIRYAT_BEFORE_CREATEDAT = "ORDER_ERROR_EXPIRYAT_BEFORE_CREATEDAT", - ORDER_ERROR_GFA_ORDER_DURING_CONTINUOUS_TRADING = "ORDER_ERROR_GFA_ORDER_DURING_CONTINUOUS_TRADING", - ORDER_ERROR_GFN_ORDER_DURING_AN_AUCTION = "ORDER_ERROR_GFN_ORDER_DURING_AN_AUCTION", - ORDER_ERROR_INSUFFICIENT_ASSET_BALANCE = "ORDER_ERROR_INSUFFICIENT_ASSET_BALANCE", - ORDER_ERROR_INSUFFICIENT_FUNDS_TO_PAY_FEES = "ORDER_ERROR_INSUFFICIENT_FUNDS_TO_PAY_FEES", - ORDER_ERROR_INTERNAL_ERROR = "ORDER_ERROR_INTERNAL_ERROR", - ORDER_ERROR_INVALID_EXPIRATION_DATETIME = "ORDER_ERROR_INVALID_EXPIRATION_DATETIME", - ORDER_ERROR_INVALID_MARKET_ID = "ORDER_ERROR_INVALID_MARKET_ID", - ORDER_ERROR_INVALID_ORDER_ID = "ORDER_ERROR_INVALID_ORDER_ID", - ORDER_ERROR_INVALID_ORDER_REFERENCE = "ORDER_ERROR_INVALID_ORDER_REFERENCE", - ORDER_ERROR_INVALID_PARTY_ID = "ORDER_ERROR_INVALID_PARTY_ID", - ORDER_ERROR_INVALID_PERSISTENCE = "ORDER_ERROR_INVALID_PERSISTENCE", - ORDER_ERROR_INVALID_REMAINING_SIZE = "ORDER_ERROR_INVALID_REMAINING_SIZE", - ORDER_ERROR_INVALID_SIZE = "ORDER_ERROR_INVALID_SIZE", - ORDER_ERROR_INVALID_TIME_IN_FORCE = "ORDER_ERROR_INVALID_TIME_IN_FORCE", - ORDER_ERROR_INVALID_TYPE = "ORDER_ERROR_INVALID_TYPE", - ORDER_ERROR_MARGIN_CHECK_FAILED = "ORDER_ERROR_MARGIN_CHECK_FAILED", - ORDER_ERROR_MARKET_CLOSED = "ORDER_ERROR_MARKET_CLOSED", - ORDER_ERROR_MISSING_GENERAL_ACCOUNT = "ORDER_ERROR_MISSING_GENERAL_ACCOUNT", - ORDER_ERROR_MUST_BE_GTT_OR_GTC = "ORDER_ERROR_MUST_BE_GTT_OR_GTC", - ORDER_ERROR_MUST_BE_LIMIT_ORDER = "ORDER_ERROR_MUST_BE_LIMIT_ORDER", - ORDER_ERROR_NON_PERSISTENT_ORDER_OUT_OF_PRICE_BOUNDS = "ORDER_ERROR_NON_PERSISTENT_ORDER_OUT_OF_PRICE_BOUNDS", - ORDER_ERROR_NOT_FOUND = "ORDER_ERROR_NOT_FOUND", - ORDER_ERROR_OFFSET_MUST_BE_GREATER_OR_EQUAL_TO_ZERO = "ORDER_ERROR_OFFSET_MUST_BE_GREATER_OR_EQUAL_TO_ZERO", - ORDER_ERROR_OFFSET_MUST_BE_GREATER_THAN_ZERO = "ORDER_ERROR_OFFSET_MUST_BE_GREATER_THAN_ZERO", - ORDER_ERROR_OUT_OF_SEQUENCE = "ORDER_ERROR_OUT_OF_SEQUENCE", - ORDER_ERROR_REMOVAL_FAILURE = "ORDER_ERROR_REMOVAL_FAILURE", - ORDER_ERROR_SELF_TRADING = "ORDER_ERROR_SELF_TRADING", - ORDER_ERROR_SELL_CANNOT_REFERENCE_BEST_BID_PRICE = "ORDER_ERROR_SELL_CANNOT_REFERENCE_BEST_BID_PRICE", - ORDER_ERROR_TIME_FAILURE = "ORDER_ERROR_TIME_FAILURE", - ORDER_ERROR_UNABLE_TO_AMEND_PRICE_ON_PEGGED_ORDER = "ORDER_ERROR_UNABLE_TO_AMEND_PRICE_ON_PEGGED_ORDER", - ORDER_ERROR_UNABLE_TO_REPRICE_PEGGED_ORDER = "ORDER_ERROR_UNABLE_TO_REPRICE_PEGGED_ORDER", - ORDER_ERROR_WITHOUT_REFERENCE_PRICE = "ORDER_ERROR_WITHOUT_REFERENCE_PRICE", + AmendToGTTWithoutExpiryAt = "AmendToGTTWithoutExpiryAt", + CannotAmendFromGFAOrGFN = "CannotAmendFromGFAOrGFN", + CannotAmendPeggedOrderDetailsOnNonPeggedOrder = "CannotAmendPeggedOrderDetailsOnNonPeggedOrder", + CannotAmendToFOKOrIOC = "CannotAmendToFOKOrIOC", + CannotAmendToGFAOrGFN = "CannotAmendToGFAOrGFN", + EditNotAllowed = "EditNotAllowed", + ExpiryAtBeforeCreatedAt = "ExpiryAtBeforeCreatedAt", + FOKOrderDuringAuction = "FOKOrderDuringAuction", + GFAOrderDuringContinuousTrading = "GFAOrderDuringContinuousTrading", + GFNOrderDuringAuction = "GFNOrderDuringAuction", + GTCWithExpiryAtNotValid = "GTCWithExpiryAtNotValid", + IOCOrderDuringAuction = "IOCOrderDuringAuction", + InsufficientAssetBalance = "InsufficientAssetBalance", + InsufficientFundsToPayFees = "InsufficientFundsToPayFees", + InternalError = "InternalError", + InvalidExpirationTime = "InvalidExpirationTime", + InvalidMarketId = "InvalidMarketId", + InvalidMarketType = "InvalidMarketType", + InvalidOrderId = "InvalidOrderId", + InvalidOrderReference = "InvalidOrderReference", + InvalidPartyId = "InvalidPartyId", + InvalidPersistence = "InvalidPersistence", + InvalidRemainingSize = "InvalidRemainingSize", + InvalidSize = "InvalidSize", + InvalidTimeInForce = "InvalidTimeInForce", + InvalidType = "InvalidType", + MarginCheckFailed = "MarginCheckFailed", + MarketClosed = "MarketClosed", + MissingGeneralAccount = "MissingGeneralAccount", + NonPersistentOrderExceedsPriceBounds = "NonPersistentOrderExceedsPriceBounds", + OrderAmendFailure = "OrderAmendFailure", + OrderNotFound = "OrderNotFound", + OrderOutOfSequence = "OrderOutOfSequence", + OrderRemovalFailure = "OrderRemovalFailure", + PeggedOrderBuyCannotReferenceBestAskPrice = "PeggedOrderBuyCannotReferenceBestAskPrice", + PeggedOrderMustBeGTTOrGTC = "PeggedOrderMustBeGTTOrGTC", + PeggedOrderMustBeLimitOrder = "PeggedOrderMustBeLimitOrder", + PeggedOrderOffsetMustBeGreaterOrEqualToZero = "PeggedOrderOffsetMustBeGreaterOrEqualToZero", + PeggedOrderOffsetMustBeGreaterThanZero = "PeggedOrderOffsetMustBeGreaterThanZero", + PeggedOrderSellCannotReferenceBestBidPrice = "PeggedOrderSellCannotReferenceBestBidPrice", + PeggedOrderWithoutReferencePrice = "PeggedOrderWithoutReferencePrice", + SelfTrading = "SelfTrading", + TimeFailure = "TimeFailure", + UnableToAmendPeggedOrderPrice = "UnableToAmendPeggedOrderPrice", + UnableToRepricePeggedOrder = "UnableToRepricePeggedOrder", } /** * Valid order statuses, these determine several states for an order that cannot be expressed with other fields in Order. */ export enum OrderStatus { - STATUS_ACTIVE = "STATUS_ACTIVE", - STATUS_CANCELLED = "STATUS_CANCELLED", - STATUS_EXPIRED = "STATUS_EXPIRED", - STATUS_FILLED = "STATUS_FILLED", - STATUS_PARKED = "STATUS_PARKED", - STATUS_PARTIALLY_FILLED = "STATUS_PARTIALLY_FILLED", - STATUS_REJECTED = "STATUS_REJECTED", - STATUS_STOPPED = "STATUS_STOPPED", + Active = "Active", + Cancelled = "Cancelled", + Expired = "Expired", + Filled = "Filled", + Parked = "Parked", + PartiallyFilled = "PartiallyFilled", + Rejected = "Rejected", + Stopped = "Stopped", } /** * Valid order types, these determine what happens when an order is added to the book */ export enum OrderTimeInForce { - TIME_IN_FORCE_FOK = "TIME_IN_FORCE_FOK", - TIME_IN_FORCE_GFA = "TIME_IN_FORCE_GFA", - TIME_IN_FORCE_GFN = "TIME_IN_FORCE_GFN", - TIME_IN_FORCE_GTC = "TIME_IN_FORCE_GTC", - TIME_IN_FORCE_GTT = "TIME_IN_FORCE_GTT", - TIME_IN_FORCE_IOC = "TIME_IN_FORCE_IOC", + FOK = "FOK", + GFA = "GFA", + GFN = "GFN", + GTC = "GTC", + GTT = "GTT", + IOC = "IOC", } export enum OrderType { - TYPE_LIMIT = "TYPE_LIMIT", - TYPE_MARKET = "TYPE_MARKET", - TYPE_NETWORK = "TYPE_NETWORK", + Limit = "Limit", + Market = "Market", + Network = "Network", } /** @@ -243,56 +245,55 @@ export enum OrderType { * engine. */ export enum PropertyKeyType { - TYPE_BOOLEAN = "TYPE_BOOLEAN", - TYPE_DECIMAL = "TYPE_DECIMAL", - TYPE_EMPTY = "TYPE_EMPTY", - TYPE_INTEGER = "TYPE_INTEGER", - TYPE_STRING = "TYPE_STRING", - TYPE_TIMESTAMP = "TYPE_TIMESTAMP", + TypeBoolean = "TypeBoolean", + TypeDecimal = "TypeDecimal", + TypeEmpty = "TypeEmpty", + TypeInteger = "TypeInteger", + TypeString = "TypeString", + TypeTimestamp = "TypeTimestamp", } /** * Reason for the proposal being rejected by the core node */ export enum ProposalRejectionReason { - PROPOSAL_ERROR_CLOSE_TIME_TOO_LATE = "PROPOSAL_ERROR_CLOSE_TIME_TOO_LATE", - PROPOSAL_ERROR_CLOSE_TIME_TOO_SOON = "PROPOSAL_ERROR_CLOSE_TIME_TOO_SOON", - PROPOSAL_ERROR_COULD_NOT_INSTANTIATE_MARKET = "PROPOSAL_ERROR_COULD_NOT_INSTANTIATE_MARKET", - PROPOSAL_ERROR_ENACT_TIME_TOO_LATE = "PROPOSAL_ERROR_ENACT_TIME_TOO_LATE", - PROPOSAL_ERROR_ENACT_TIME_TOO_SOON = "PROPOSAL_ERROR_ENACT_TIME_TOO_SOON", - PROPOSAL_ERROR_INCOMPATIBLE_TIMESTAMPS = "PROPOSAL_ERROR_INCOMPATIBLE_TIMESTAMPS", - PROPOSAL_ERROR_INSUFFICIENT_EQUITY_LIKE_SHARE = "PROPOSAL_ERROR_INSUFFICIENT_EQUITY_LIKE_SHARE", - PROPOSAL_ERROR_INSUFFICIENT_TOKENS = "PROPOSAL_ERROR_INSUFFICIENT_TOKENS", - PROPOSAL_ERROR_INVALID_ASSET = "PROPOSAL_ERROR_INVALID_ASSET", - PROPOSAL_ERROR_INVALID_ASSET_DETAILS = "PROPOSAL_ERROR_INVALID_ASSET_DETAILS", - PROPOSAL_ERROR_INVALID_FEE_AMOUNT = "PROPOSAL_ERROR_INVALID_FEE_AMOUNT", - PROPOSAL_ERROR_INVALID_FREEFORM = "PROPOSAL_ERROR_INVALID_FREEFORM", - PROPOSAL_ERROR_INVALID_FUTURE_PRODUCT = "PROPOSAL_ERROR_INVALID_FUTURE_PRODUCT", - PROPOSAL_ERROR_INVALID_INSTRUMENT_SECURITY = "PROPOSAL_ERROR_INVALID_INSTRUMENT_SECURITY", - PROPOSAL_ERROR_INVALID_MARKET = "PROPOSAL_ERROR_INVALID_MARKET", - PROPOSAL_ERROR_INVALID_RISK_PARAMETER = "PROPOSAL_ERROR_INVALID_RISK_PARAMETER", - PROPOSAL_ERROR_INVALID_SHAPE = "PROPOSAL_ERROR_INVALID_SHAPE", - PROPOSAL_ERROR_MAJORITY_THRESHOLD_NOT_REACHED = "PROPOSAL_ERROR_MAJORITY_THRESHOLD_NOT_REACHED", - PROPOSAL_ERROR_MARKET_MISSING_LIQUIDITY_COMMITMENT = "PROPOSAL_ERROR_MARKET_MISSING_LIQUIDITY_COMMITMENT", - PROPOSAL_ERROR_MISSING_BUILTIN_ASSET_FIELD = "PROPOSAL_ERROR_MISSING_BUILTIN_ASSET_FIELD", - PROPOSAL_ERROR_MISSING_COMMITMENT_AMOUNT = "PROPOSAL_ERROR_MISSING_COMMITMENT_AMOUNT", - PROPOSAL_ERROR_MISSING_ERC20_CONTRACT_ADDRESS = "PROPOSAL_ERROR_MISSING_ERC20_CONTRACT_ADDRESS", - PROPOSAL_ERROR_NETWORK_PARAMETER_INVALID_KEY = "PROPOSAL_ERROR_NETWORK_PARAMETER_INVALID_KEY", - PROPOSAL_ERROR_NETWORK_PARAMETER_INVALID_VALUE = "PROPOSAL_ERROR_NETWORK_PARAMETER_INVALID_VALUE", - PROPOSAL_ERROR_NETWORK_PARAMETER_VALIDATION_FAILED = "PROPOSAL_ERROR_NETWORK_PARAMETER_VALIDATION_FAILED", - PROPOSAL_ERROR_NODE_VALIDATION_FAILED = "PROPOSAL_ERROR_NODE_VALIDATION_FAILED", - PROPOSAL_ERROR_NO_PRODUCT = "PROPOSAL_ERROR_NO_PRODUCT", - PROPOSAL_ERROR_NO_RISK_PARAMETERS = "PROPOSAL_ERROR_NO_RISK_PARAMETERS", - PROPOSAL_ERROR_NO_TRADING_MODE = "PROPOSAL_ERROR_NO_TRADING_MODE", - PROPOSAL_ERROR_OPENING_AUCTION_DURATION_TOO_LARGE = "PROPOSAL_ERROR_OPENING_AUCTION_DURATION_TOO_LARGE", - PROPOSAL_ERROR_OPENING_AUCTION_DURATION_TOO_SMALL = "PROPOSAL_ERROR_OPENING_AUCTION_DURATION_TOO_SMALL", - PROPOSAL_ERROR_PARTICIPATION_THRESHOLD_NOT_REACHED = "PROPOSAL_ERROR_PARTICIPATION_THRESHOLD_NOT_REACHED", - PROPOSAL_ERROR_TOO_MANY_MARKET_DECIMAL_PLACES = "PROPOSAL_ERROR_TOO_MANY_MARKET_DECIMAL_PLACES", - PROPOSAL_ERROR_TOO_MANY_PRICE_MONITORING_TRIGGERS = "PROPOSAL_ERROR_TOO_MANY_PRICE_MONITORING_TRIGGERS", - PROPOSAL_ERROR_UNKNOWN_RISK_PARAMETER_TYPE = "PROPOSAL_ERROR_UNKNOWN_RISK_PARAMETER_TYPE", - PROPOSAL_ERROR_UNKNOWN_TYPE = "PROPOSAL_ERROR_UNKNOWN_TYPE", - PROPOSAL_ERROR_UNSUPPORTED_PRODUCT = "PROPOSAL_ERROR_UNSUPPORTED_PRODUCT", - PROPOSAL_ERROR_UNSUPPORTED_TRADING_MODE = "PROPOSAL_ERROR_UNSUPPORTED_TRADING_MODE", + CloseTimeTooLate = "CloseTimeTooLate", + CloseTimeTooSoon = "CloseTimeTooSoon", + CouldNotInstantiateMarket = "CouldNotInstantiateMarket", + EnactTimeTooLate = "EnactTimeTooLate", + EnactTimeTooSoon = "EnactTimeTooSoon", + IncompatibleTimestamps = "IncompatibleTimestamps", + InsufficientEquityLikeShare = "InsufficientEquityLikeShare", + InsufficientTokens = "InsufficientTokens", + InvalidAsset = "InvalidAsset", + InvalidAssetDetails = "InvalidAssetDetails", + InvalidFeeAmount = "InvalidFeeAmount", + InvalidFutureMaturityTimestamp = "InvalidFutureMaturityTimestamp", + InvalidFutureProduct = "InvalidFutureProduct", + InvalidInstrumentSecurity = "InvalidInstrumentSecurity", + InvalidMarket = "InvalidMarket", + 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", + TooManyMarketDecimalPlaces = "TooManyMarketDecimalPlaces", + TooManyPriceMonitoringTriggers = "TooManyPriceMonitoringTriggers", + UnsupportedProduct = "UnsupportedProduct", + UnsupportedTradingMode = "UnsupportedTradingMode", } /** @@ -303,50 +304,44 @@ export enum ProposalRejectionReason { * Proposal can enter Failed state from any other state. */ export enum ProposalState { - STATE_DECLINED = "STATE_DECLINED", - STATE_ENACTED = "STATE_ENACTED", - STATE_FAILED = "STATE_FAILED", - STATE_OPEN = "STATE_OPEN", - STATE_PASSED = "STATE_PASSED", - STATE_REJECTED = "STATE_REJECTED", - STATE_WAITING_FOR_NODE_VOTE = "STATE_WAITING_FOR_NODE_VOTE", + Declined = "Declined", + Enacted = "Enacted", + Failed = "Failed", + Open = "Open", + Passed = "Passed", + Rejected = "Rejected", + WaitingForNodeVote = "WaitingForNodeVote", } /** * Whether the placer of an order is aiming to buy or sell on the market */ export enum Side { - SIDE_BUY = "SIDE_BUY", - SIDE_SELL = "SIDE_SELL", + Buy = "Buy", + Sell = "Sell", } /** * The status of the stake linking */ export enum StakeLinkingStatus { - STATUS_ACCEPTED = "STATUS_ACCEPTED", - STATUS_PENDING = "STATUS_PENDING", - STATUS_REJECTED = "STATUS_REJECTED", -} - -export enum ValidatorStatus { - VALIDATOR_NODE_STATUS_ERSATZ = "VALIDATOR_NODE_STATUS_ERSATZ", - VALIDATOR_NODE_STATUS_PENDING = "VALIDATOR_NODE_STATUS_PENDING", - VALIDATOR_NODE_STATUS_TENDERMINT = "VALIDATOR_NODE_STATUS_TENDERMINT", + Accepted = "Accepted", + Pending = "Pending", + Rejected = "Rejected", } export enum VoteValue { - VALUE_NO = "VALUE_NO", - VALUE_YES = "VALUE_YES", + No = "No", + Yes = "Yes", } /** * The status of a withdrawal */ export enum WithdrawalStatus { - STATUS_FINALIZED = "STATUS_FINALIZED", - STATUS_OPEN = "STATUS_OPEN", - STATUS_REJECTED = "STATUS_REJECTED", + Finalized = "Finalized", + Open = "Open", + Rejected = "Rejected", } /** diff --git a/libs/withdraws/src/lib/__generated__/AssetFields.ts b/libs/withdraws/src/lib/__generated__/AssetFields.ts index e3a9bd4a6..b08598d14 100644 --- a/libs/withdraws/src/lib/__generated__/AssetFields.ts +++ b/libs/withdraws/src/lib/__generated__/AssetFields.ts @@ -3,7 +3,7 @@ // @generated // This file was automatically generated and should not be edited. -import { AssetStatus } from "@vegaprotocol/types"; +import { AssetStatus } from "./../../../../types/src/__generated__/globalTypes"; // ==================================================== // GraphQL fragment: AssetFields @@ -16,7 +16,7 @@ export interface AssetFields_source_BuiltinAsset { export interface AssetFields_source_ERC20 { __typename: "ERC20"; /** - * The address of the ERC20 contract + * The address of the erc20 contract */ contractAddress: string; } @@ -26,7 +26,7 @@ export type AssetFields_source = AssetFields_source_BuiltinAsset | AssetFields_s export interface AssetFields { __typename: "Asset"; /** - * The ID of the asset + * The id of the asset */ id: string; /** @@ -38,15 +38,15 @@ export interface AssetFields { */ name: string; /** - * The precision of the asset. Should match the decimal precision of the asset on its native chain, e.g: for ERC20 assets, it is often 18 + * The precision of the asset */ decimals: number; /** - * The status of the asset in the Vega network + * The status of the asset in the vega network */ status: AssetStatus; /** - * The origin source of the asset (e.g: an ERC20 asset) + * The origin source of the asset (e.g: an erc20 asset) */ source: AssetFields_source; } diff --git a/libs/withdraws/src/lib/__generated__/Erc20Approval.ts b/libs/withdraws/src/lib/__generated__/Erc20Approval.ts index 5f5343224..357cbaeb2 100644 --- a/libs/withdraws/src/lib/__generated__/Erc20Approval.ts +++ b/libs/withdraws/src/lib/__generated__/Erc20Approval.ts @@ -42,7 +42,7 @@ export interface Erc20Approval_erc20WithdrawalApproval { export interface Erc20Approval { /** - * find an erc20 withdrawal approval using its withdrawal ID + * find an erc20 withdrawal approval using its withdrawal id */ erc20WithdrawalApproval: Erc20Approval_erc20WithdrawalApproval | null; } diff --git a/libs/withdraws/src/lib/__generated__/WithdrawFormQuery.ts b/libs/withdraws/src/lib/__generated__/WithdrawFormQuery.ts index db49ae5af..e486ceb2f 100644 --- a/libs/withdraws/src/lib/__generated__/WithdrawFormQuery.ts +++ b/libs/withdraws/src/lib/__generated__/WithdrawFormQuery.ts @@ -3,7 +3,7 @@ // @generated // This file was automatically generated and should not be edited. -import { AccountType, AssetStatus } from "@vegaprotocol/types"; +import { AccountType, AssetStatus } from "./../../../../types/src/__generated__/globalTypes"; // ==================================================== // GraphQL query operation: WithdrawFormQuery @@ -12,7 +12,7 @@ import { AccountType, AssetStatus } from "@vegaprotocol/types"; export interface WithdrawFormQuery_party_withdrawals { __typename: "Withdrawal"; /** - * The Vega internal ID of the withdrawal + * The Vega internal id of the withdrawal */ id: string; /** @@ -24,7 +24,7 @@ export interface WithdrawFormQuery_party_withdrawals { export interface WithdrawFormQuery_party_accounts_asset { __typename: "Asset"; /** - * The ID of the asset + * The id of the asset */ id: string; /** @@ -72,7 +72,7 @@ export interface WithdrawFormQuery_assetsConnection_edges_node_source_BuiltinAss export interface WithdrawFormQuery_assetsConnection_edges_node_source_ERC20 { __typename: "ERC20"; /** - * The address of the ERC20 contract + * The address of the erc20 contract */ contractAddress: string; } @@ -82,7 +82,7 @@ export type WithdrawFormQuery_assetsConnection_edges_node_source = WithdrawFormQ export interface WithdrawFormQuery_assetsConnection_edges_node { __typename: "Asset"; /** - * The ID of the asset + * The id of the asset */ id: string; /** @@ -94,15 +94,15 @@ export interface WithdrawFormQuery_assetsConnection_edges_node { */ name: string; /** - * The precision of the asset. Should match the decimal precision of the asset on its native chain, e.g: for ERC20 assets, it is often 18 + * The precision of the asset */ decimals: number; /** - * The status of the asset in the Vega network + * The status of the asset in the vega network */ status: AssetStatus; /** - * The origin source of the asset (e.g: an ERC20 asset) + * The origin source of the asset (e.g: an erc20 asset) */ source: WithdrawFormQuery_assetsConnection_edges_node_source; } @@ -122,11 +122,11 @@ export interface WithdrawFormQuery_assetsConnection { export interface WithdrawFormQuery { /** - * An entity that is trading on the Vega network + * An entity that is trading on the VEGA network */ party: WithdrawFormQuery_party | null; /** - * The list of all assets in use in the Vega network or the specified asset if ID is provided + * The list of all assets in use in the vega network or the specified asset if id is provided */ assetsConnection: WithdrawFormQuery_assetsConnection; } diff --git a/libs/withdraws/src/lib/__generated__/WithdrawalEvent.ts b/libs/withdraws/src/lib/__generated__/WithdrawalEvent.ts index 6260ecf3f..e7f91d228 100644 --- a/libs/withdraws/src/lib/__generated__/WithdrawalEvent.ts +++ b/libs/withdraws/src/lib/__generated__/WithdrawalEvent.ts @@ -3,7 +3,7 @@ // @generated // This file was automatically generated and should not be edited. -import { WithdrawalStatus, AssetStatus } from "@vegaprotocol/types"; +import { WithdrawalStatus, AssetStatus } from "./../../../../types/src/__generated__/globalTypes"; // ==================================================== // GraphQL subscription operation: WithdrawalEvent @@ -20,7 +20,7 @@ export interface WithdrawalEvent_busEvents_event_Withdrawal_asset_source_Builtin export interface WithdrawalEvent_busEvents_event_Withdrawal_asset_source_ERC20 { __typename: "ERC20"; /** - * The address of the ERC20 contract + * The address of the erc20 contract */ contractAddress: string; } @@ -30,7 +30,7 @@ export type WithdrawalEvent_busEvents_event_Withdrawal_asset_source = Withdrawal export interface WithdrawalEvent_busEvents_event_Withdrawal_asset { __typename: "Asset"; /** - * The ID of the asset + * The id of the asset */ id: string; /** @@ -42,15 +42,15 @@ export interface WithdrawalEvent_busEvents_event_Withdrawal_asset { */ symbol: string; /** - * The precision of the asset. Should match the decimal precision of the asset on its native chain, e.g: for ERC20 assets, it is often 18 + * The precision of the asset */ decimals: number; /** - * The status of the asset in the Vega network + * The status of the asset in the vega network */ status: AssetStatus; /** - * The origin source of the asset (e.g: an ERC20 asset) + * The origin source of the asset (e.g: an erc20 asset) */ source: WithdrawalEvent_busEvents_event_Withdrawal_asset_source; } @@ -66,7 +66,7 @@ export interface WithdrawalEvent_busEvents_event_Withdrawal_details { export interface WithdrawalEvent_busEvents_event_Withdrawal { __typename: "Withdrawal"; /** - * The Vega internal ID of the withdrawal + * The Vega internal id of the withdrawal */ id: string; /** @@ -86,7 +86,7 @@ export interface WithdrawalEvent_busEvents_event_Withdrawal { */ createdTimestamp: string; /** - * RFC3339Nano time at which the withdrawal was finalised + * RFC3339Nano time at which the withdrawal was finalized */ withdrawnTimestamp: string | null; /** diff --git a/libs/withdraws/src/lib/__generated__/WithdrawalFields.ts b/libs/withdraws/src/lib/__generated__/WithdrawalFields.ts index 8fe4e6bcb..ba47afed6 100644 --- a/libs/withdraws/src/lib/__generated__/WithdrawalFields.ts +++ b/libs/withdraws/src/lib/__generated__/WithdrawalFields.ts @@ -3,7 +3,7 @@ // @generated // This file was automatically generated and should not be edited. -import { WithdrawalStatus, AssetStatus } from "@vegaprotocol/types"; +import { WithdrawalStatus, AssetStatus } from "./../../../../types/src/__generated__/globalTypes"; // ==================================================== // GraphQL fragment: WithdrawalFields @@ -16,7 +16,7 @@ export interface WithdrawalFields_asset_source_BuiltinAsset { export interface WithdrawalFields_asset_source_ERC20 { __typename: "ERC20"; /** - * The address of the ERC20 contract + * The address of the erc20 contract */ contractAddress: string; } @@ -26,7 +26,7 @@ export type WithdrawalFields_asset_source = WithdrawalFields_asset_source_Builti export interface WithdrawalFields_asset { __typename: "Asset"; /** - * The ID of the asset + * The id of the asset */ id: string; /** @@ -38,15 +38,15 @@ export interface WithdrawalFields_asset { */ symbol: string; /** - * The precision of the asset. Should match the decimal precision of the asset on its native chain, e.g: for ERC20 assets, it is often 18 + * The precision of the asset */ decimals: number; /** - * The status of the asset in the Vega network + * The status of the asset in the vega network */ status: AssetStatus; /** - * The origin source of the asset (e.g: an ERC20 asset) + * The origin source of the asset (e.g: an erc20 asset) */ source: WithdrawalFields_asset_source; } @@ -62,7 +62,7 @@ export interface WithdrawalFields_details { export interface WithdrawalFields { __typename: "Withdrawal"; /** - * The Vega internal ID of the withdrawal + * The Vega internal id of the withdrawal */ id: string; /** @@ -82,7 +82,7 @@ export interface WithdrawalFields { */ createdTimestamp: string; /** - * RFC3339Nano time at which the withdrawal was finalised + * RFC3339Nano time at which the withdrawal was finalized */ withdrawnTimestamp: string | null; /** diff --git a/libs/withdraws/src/lib/__generated__/Withdrawals.ts b/libs/withdraws/src/lib/__generated__/Withdrawals.ts index e7caab1d6..e42248dd1 100644 --- a/libs/withdraws/src/lib/__generated__/Withdrawals.ts +++ b/libs/withdraws/src/lib/__generated__/Withdrawals.ts @@ -3,7 +3,7 @@ // @generated // This file was automatically generated and should not be edited. -import { WithdrawalStatus, AssetStatus } from "@vegaprotocol/types"; +import { WithdrawalStatus, AssetStatus } from "./../../../../types/src/__generated__/globalTypes"; // ==================================================== // GraphQL query operation: Withdrawals @@ -16,7 +16,7 @@ export interface Withdrawals_party_withdrawalsConnection_edges_node_asset_source export interface Withdrawals_party_withdrawalsConnection_edges_node_asset_source_ERC20 { __typename: "ERC20"; /** - * The address of the ERC20 contract + * The address of the erc20 contract */ contractAddress: string; } @@ -26,7 +26,7 @@ export type Withdrawals_party_withdrawalsConnection_edges_node_asset_source = Wi export interface Withdrawals_party_withdrawalsConnection_edges_node_asset { __typename: "Asset"; /** - * The ID of the asset + * The id of the asset */ id: string; /** @@ -38,15 +38,15 @@ export interface Withdrawals_party_withdrawalsConnection_edges_node_asset { */ symbol: string; /** - * The precision of the asset. Should match the decimal precision of the asset on its native chain, e.g: for ERC20 assets, it is often 18 + * The precision of the asset */ decimals: number; /** - * The status of the asset in the Vega network + * The status of the asset in the vega network */ status: AssetStatus; /** - * The origin source of the asset (e.g: an ERC20 asset) + * The origin source of the asset (e.g: an erc20 asset) */ source: Withdrawals_party_withdrawalsConnection_edges_node_asset_source; } @@ -62,7 +62,7 @@ export interface Withdrawals_party_withdrawalsConnection_edges_node_details { export interface Withdrawals_party_withdrawalsConnection_edges_node { __typename: "Withdrawal"; /** - * The Vega internal ID of the withdrawal + * The Vega internal id of the withdrawal */ id: string; /** @@ -82,7 +82,7 @@ export interface Withdrawals_party_withdrawalsConnection_edges_node { */ createdTimestamp: string; /** - * RFC3339Nano time at which the withdrawal was finalised + * RFC3339Nano time at which the withdrawal was finalized */ withdrawnTimestamp: string | null; /** @@ -126,7 +126,7 @@ export interface Withdrawals_party { export interface Withdrawals { /** - * An entity that is trading on the Vega network + * An entity that is trading on the VEGA network */ party: Withdrawals_party | null; } diff --git a/libs/withdraws/src/lib/withdraw-manager.tsx b/libs/withdraws/src/lib/withdraw-manager.tsx index 18d06282c..372791186 100644 --- a/libs/withdraws/src/lib/withdraw-manager.tsx +++ b/libs/withdraws/src/lib/withdraw-manager.tsx @@ -33,9 +33,7 @@ export const WithdrawManager = ({ async (id: string) => { const asset = assets.find((a) => a.id === id); const account = accounts.find( - (a) => - a.type === AccountType.ACCOUNT_TYPE_GENERAL && - a.asset.id === asset?.id + (a) => a.type === AccountType.General && a.asset.id === asset?.id ); const balance = account && asset