From 69d95070bc11bec52a9d549c51870d59cf9528cb Mon Sep 17 00:00:00 2001 From: macqbat Date: Tue, 23 Aug 2022 13:25:58 +0200 Subject: [PATCH] feat: [console-lite] - filter markets on market selector (#1065) * feat: [console-lite] - filter markets on market selector * feat: [console-lite] - fix typo in int test * feat: [console-lite] - merge and resolve conflicts Co-authored-by: maciek --- .../src/support/mocks/generate-markets.ts | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/apps/simple-trading-app-e2e/src/support/mocks/generate-markets.ts b/apps/simple-trading-app-e2e/src/support/mocks/generate-markets.ts index d835360b4..9a7b50bdd 100644 --- a/apps/simple-trading-app-e2e/src/support/mocks/generate-markets.ts +++ b/apps/simple-trading-app-e2e/src/support/mocks/generate-markets.ts @@ -7,6 +7,7 @@ export const generateSimpleMarkets = () => { { id: '57fbaa322e97cfc8bb5f1de048c37e033c41b1ac1906d3aed9960912a067ef5a', name: 'CELUSD (June 2022)', + state: 'Active', data: { market: { id: '57fbaa322e97cfc8bb5f1de048c37e033c41b1ac1906d3aed9960912a067ef5a', @@ -43,6 +44,7 @@ export const generateSimpleMarkets = () => { { id: 'ccf2f04865e5951ac3405da6e16b7cbdb535a0ad32df4df2dbed4262cf473255', name: 'XMRUSD market', + state: 'Suspended', data: { market: { id: 'ccf2f04865e5951ac3405da6e16b7cbdb535a0ad32df4df2dbed4262cf473255', @@ -79,6 +81,7 @@ export const generateSimpleMarkets = () => { { id: '6030e5b4e0ca3297a26081e5af4d453f97f96baab2d74bf56f84efcffc4c382f', name: 'UNIDAI Monthly (30 Jun 2022)', + state: 'Active', data: { market: { id: '6030e5b4e0ca3297a26081e5af4d453f97f96baab2d74bf56f84efcffc4c382f', @@ -189,6 +192,7 @@ export const generateSimpleMarkets = () => { { id: 'de74a5572045b300e8ec50d136896912ec76e7d7ec135bc305dfd4854d9363a4', name: 'XMRUSD market', + state: 'Pending', data: { market: { id: 'de74a5572045b300e8ec50d136896912ec76e7d7ec135bc305dfd4854d9363a4', @@ -298,6 +302,7 @@ export const generateSimpleMarkets = () => { { id: '31ea96284611771e486c820acb26a325a99664f9854b5a7e7ad99023efa8f9e6', name: 'ApeCoin (18 Jul 2022)', + state: 'Closed', data: { market: { id: '31ea96284611771e486c820acb26a325a99664f9854b5a7e7ad99023efa8f9e6', @@ -333,6 +338,7 @@ export const generateSimpleMarkets = () => { { id: '34cff959cdc2ffdb0f167820d701fe8b51cc6b8588e650d93369aaa22d6f8b74', name: 'BTCUSD Monthly (18 Jul 2022)', + state: 'Settled', data: { market: { id: '34cff959cdc2ffdb0f167820d701fe8b51cc6b8588e650d93369aaa22d6f8b74', @@ -370,6 +376,7 @@ export const generateSimpleMarkets = () => { { id: '87b0bbb3c171baa5d97dfc3852332829c91e5c5dc9f7c8fb584c6d8ac75aaaf2', name: 'Builders Club x ETHcc', + state: 'Settled', data: { market: { id: '87b0bbb3c171baa5d97dfc3852332829c91e5c5dc9f7c8fb584c6d8ac75aaaf2', @@ -467,6 +474,7 @@ export const generateSimpleMarkets = () => { { id: '45266143c6e9b58f4cff9b8906e971c531bb29ea7af01066973f9b77e8134823', name: 'BTCUSD Monthly (18 Jul 2022)', + state: 'Pending', data: { market: { id: '45266143c6e9b58f4cff9b8906e971c531bb29ea7af01066973f9b77e8134823', @@ -504,6 +512,7 @@ export const generateSimpleMarkets = () => { { id: '65663ebdc96161162769c4d5c5508137416748178d7cb28e2cb0d07a151a2bc6', name: 'ETHBTC Quarterly (30 Jun 2022)', + state: 'Active', data: { market: { id: '65663ebdc96161162769c4d5c5508137416748178d7cb28e2cb0d07a151a2bc6', @@ -614,6 +623,7 @@ export const generateSimpleMarkets = () => { { id: '234afabd27e3bce1a879039c041f9f00f915d98459935ddafd0169d38dd13850', name: 'Apple Monthly (30 Jun 2022)', + state: 'Active', data: { market: { id: '234afabd27e3bce1a879039c041f9f00f915d98459935ddafd0169d38dd13850', @@ -725,6 +735,7 @@ export const generateSimpleMarkets = () => { { id: '9f2a3c1caa67bb0773ec18d908d32b55b129b9ec2d106a8e9a87f6aa5c0375a6', name: 'Tesla Quarterly (30 Jun 2022)', + state: 'Active', data: { market: { id: '9f2a3c1caa67bb0773ec18d908d32b55b129b9ec2d106a8e9a87f6aa5c0375a6', @@ -836,6 +847,7 @@ export const generateSimpleMarkets = () => { { id: '8a45ee934d3ddac4b036f9884df1064a5353c620a56f775ba36597d0edef9a7a', name: 'Go big or Go home', + state: 'Active', data: { market: { id: '8a45ee934d3ddac4b036f9884df1064a5353c620a56f775ba36597d0edef9a7a', @@ -886,6 +898,7 @@ export const generateSimpleMarkets = () => { { id: 'aede7b9ac0c3b225004929c5455160a00f59864aad32ec366e8a2bff1b30fd0f', name: 'BTCUSD Monthly (08 Jul 2022)', + state: 'Active', data: { market: { id: 'aede7b9ac0c3b225004929c5455160a00f59864aad32ec366e8a2bff1b30fd0f', @@ -923,6 +936,7 @@ export const generateSimpleMarkets = () => { { id: '9398707e01daa1a1f1ca6ff87cf8d6c03fe7373ce31121ce81b99a129e6bda47', name: 'BTCUSD Monthly (18 Jul 2022)', + state: 'Active', data: { market: { id: '9398707e01daa1a1f1ca6ff87cf8d6c03fe7373ce31121ce81b99a129e6bda47',