diff --git a/apps/trading-e2e/src/support/mocks/generate-market-list.ts b/apps/trading-e2e/src/support/mocks/generate-market-list.ts index a449ce274..e7055a737 100644 --- a/apps/trading-e2e/src/support/mocks/generate-market-list.ts +++ b/apps/trading-e2e/src/support/mocks/generate-market-list.ts @@ -1,6 +1,7 @@ import merge from 'lodash/merge'; import type { PartialDeep } from 'type-fest'; import type { MarketList, MarketList_markets } from '@vegaprotocol/market-list'; +import { MarketState, MarketTradingMode } from '@vegaprotocol/types'; export const generateMarketList = ( override?: PartialDeep @@ -9,6 +10,8 @@ export const generateMarketList = ( { id: 'market-0', decimalPlaces: 5, + state: MarketState.Active, + tradingMode: MarketTradingMode.Continuous, data: { market: { id: '10cd0a793ad2887b340940337fa6d97a212e0e517fe8e9eab2b5ef3a38633f35', @@ -40,6 +43,8 @@ export const generateMarketList = ( { id: 'market-1', decimalPlaces: 2, + state: MarketState.Suspended, + tradingMode: MarketTradingMode.MonitoringAuction, data: { market: { id: '34d95e10faa00c21d19d382d6d7e6fc9722a96985369f0caec041b0f44b775ed', diff --git a/apps/trading-e2e/src/support/mocks/generate-market.ts b/apps/trading-e2e/src/support/mocks/generate-market.ts index f8905a491..91a9d4b79 100644 --- a/apps/trading-e2e/src/support/mocks/generate-market.ts +++ b/apps/trading-e2e/src/support/mocks/generate-market.ts @@ -1,5 +1,9 @@ import merge from 'lodash/merge'; -import { MarketState, MarketTradingMode } from '@vegaprotocol/types'; +import { + AuctionTrigger, + MarketState, + MarketTradingMode, +} from '@vegaprotocol/types'; import type { PartialDeep } from 'type-fest'; // eslint-disable-next-line @nrwl/nx/enforce-module-boundaries import type { Market } from '../../../../trading/pages/markets/__generated__/Market'; @@ -12,6 +16,7 @@ export const generateMarket = (override?: PartialDeep): Market => { tradingMode: MarketTradingMode.Continuous, state: MarketState.Active, decimalPlaces: 5, + positionDecimalPlaces: 0, data: { market: { id: '10cd0a793ad2887b340940337fa6d97a212e0e517fe8e9eab2b5ef3a38633f35', @@ -23,6 +28,7 @@ export const generateMarket = (override?: PartialDeep): Market => { bestOfferVolume: '100', bestStaticBidVolume: '482', bestStaticOfferVolume: '2188', + trigger: AuctionTrigger.Unspecified, __typename: 'MarketData', }, tradableInstrument: { @@ -40,6 +46,16 @@ export const generateMarket = (override?: PartialDeep): Market => { ], __typename: 'InstrumentMetadata', }, + product: { + quoteName: 'BTCUSD Monthly', + settlementAsset: { + id: '000', + symbol: 'USD', + name: 'United States Dollar', + __typename: 'Asset', + }, + __typename: 'Future', + }, __typename: 'Instrument', }, __typename: 'TradableInstrument', diff --git a/apps/trading-e2e/src/support/mocks/generate-markets.ts b/apps/trading-e2e/src/support/mocks/generate-markets.ts index 21e358fd8..8c4d4653d 100644 --- a/apps/trading-e2e/src/support/mocks/generate-markets.ts +++ b/apps/trading-e2e/src/support/mocks/generate-markets.ts @@ -1,5 +1,9 @@ import merge from 'lodash/merge'; -import { MarketState, MarketTradingMode } from '@vegaprotocol/types'; +import { + AuctionTrigger, + MarketState, + MarketTradingMode, +} from '@vegaprotocol/types'; import type { PartialDeep } from 'type-fest'; import type { Markets, Markets_markets } from '@vegaprotocol/market-list'; @@ -19,6 +23,7 @@ export const generateMarkets = (override?: PartialDeep): Markets => { bestBidPrice: '0', bestOfferPrice: '0', markPrice: '4612690058', + trigger: AuctionTrigger.Unspecified, __typename: 'MarketData', }, tradableInstrument: { @@ -51,6 +56,7 @@ export const generateMarkets = (override?: PartialDeep): Markets => { bestBidPrice: '0', bestOfferPrice: '0', markPrice: '8441', + trigger: AuctionTrigger.Unspecified, __typename: 'MarketData', }, tradableInstrument: {