Commit Graph

975 Commits

Author SHA1 Message Date
Bartłomiej Głownia
a65ee358ff
fix(market-depth): orderbook row height calculation (#3068) 2023-03-06 10:21:45 +00:00
Bartłomiej Głownia
fab055bb34
chore(orders): fix order table rows flickering on filter change (#3088) 2023-03-05 14:08:16 +00:00
Edd
acd96fbf21
chore(smart-contracts): remove redundant ascii to hex in favour of ethers hexlify (#3066) 2023-03-03 12:21:22 +00:00
Matthew Russell
96bf12d4dd
fix(trading): add a timeout to show subscriptions as failed (#3073) 2023-03-03 12:20:51 +00:00
Maciek
5dd0cafeca
chore(trading): catch ethereum errors and capture to sentry (#3064) 2023-03-03 08:39:20 +01:00
Maciek
c030264211
chore(react-helpers): improve error catching in useResizeObserver (#3058) 2023-03-02 10:32:42 +01:00
Maciek
068f7b3fc3
chore(trading): tweaking catching no market data error (#3044) 2023-03-02 08:25:57 +01:00
m.ray
cddf2ba00b
fix(trading): edit order strikethrough (#3057) 2023-03-01 16:36:12 +00:00
m.ray
886b0cb6d3
fix(trading): deal ticket limit price input and margin warning (#3050) 2023-03-01 14:23:21 +00:00
Maciek
76bf45b461
chore(trading): add handle wrong chainId in withdrawal (#3015) 2023-03-01 09:07:31 +01:00
Matthew Russell
f128f41ea0
fix(environment): console not finding node (#3040) 2023-03-01 08:45:57 +01:00
Matthew Russell
fcb992b64e
chore(trading,explorer,governance): remove unused deps (#3019) 2023-02-28 22:09:58 -08:00
Matthew Russell
a796a38200
chore(datagrid,utils,react-helpers): rename token app, add utils, datagrid, i18n (#3022) 2023-02-28 10:56:29 -08:00
m.ray
cc6ea6176a
fix(accounts): show breakdown in view as user mode (#3021) 2023-02-28 17:21:57 +00:00
Dexter Edwards
6b280d8a70
chore(token): add validator testnet env (#2808)
Co-authored-by: Edd <edd@vega.xyz>
2023-02-28 16:51:02 +00:00
Maciek
86739dfaad
chore(trading): loader component css animation only, preloader tweaks (#3027) 2023-02-28 15:31:23 +01:00
Sam Keen
d87adfd7d5
fix(governance): vote state update fix (#3023) 2023-02-28 12:43:20 +00:00
Ciaran McGhie
1bd56c9bdb
chore(ci): bump ui-toolkit version to 0.7.0 (#2961) 2023-02-28 10:13:51 +00:00
Matthew Russell
69a0830e80
fix(ui-toolkit): remove calt from nav and toasts (#3020) 2023-02-27 15:21:17 -08:00
m.ray
4eb6e09bd4
fix(trading): condense deal ticket & market info price range snags (#3012) 2023-02-27 18:04:13 +00:00
Maciek
a02100b079
chore(ui-toolkit): revert: loader no rerender version only 2023-02-27 07:51:50 -08:00
Maciek
4bb78e9891
chore(ui-toolkit): loader no rerender version only (#3011) 2023-02-27 16:44:48 +01:00
Art
a3fcd6b7dc
feat(explorer): validators page (#2982) 2023-02-27 09:17:23 +00:00
Matthew Russell
23ce480daa
feat(trading): show block height (#3010) 2023-02-27 09:16:19 +00:00
Matthew Russell
da209d96b0
fix(tailwindcss-config): fix calt for firefox, make calt opt in when using font-alpha (#3007) 2023-02-27 09:13:19 +00:00
Matthew Russell
649cc61280
chore(trading): fix formatting for volume cells in book (#3006) 2023-02-24 16:31:42 -05:00
Dexter Edwards
92ec7166bc
feat(token): 1823 tranches service (#2742) 2023-02-24 14:53:30 +00:00
Matthew Russell
56b5214dbf
chore(trading): grid cell fixes (#2986) 2023-02-24 14:38:45 +00:00
Maciek
94509a29c5
chore(ui-toolkit): add pseudo random instead Math.random (#2997) 2023-02-24 14:38:34 +00:00
Maciek
c29087cc96
chore(trading): filtering and sorting for ledger entries (#2944)
Co-authored-by: Matthew Russell <mattrussell36@gmail.com>
2023-02-24 08:40:31 +01:00
m.ray
0c26d99ce2
fix(trading): fees breakdown layout and condense tabs (#2976) 2023-02-23 14:27:11 +00:00
m.ray
d95fdca0d4
fix(trading): update step on market dp (#2972) 2023-02-23 11:10:56 +00:00
Maciek
e4bf61c2e2
chore(trading): add market dropdown to account history (#2971) 2023-02-23 11:02:13 +00:00
Matthew Russell
63698fbb80
feat(trading,deposits): improve ethereum connection and approve step (#2926) 2023-02-22 16:27:17 -08:00
m.ray
3aefa10a4f
feat(trading): quote unit and settlement asset relation (#2953) 2023-02-22 17:05:31 +00:00
Edd
efeccc7972
feat(explorer): add transfers tx view (#2902) 2023-02-22 16:31:06 +00:00
Ciaran McGhie
abf69786ba
feat(ci): publish monorepo libs to npm (#2951) 2023-02-22 12:11:35 +00:00
Bartłomiej Głownia
4bb57e9c47
fix(market-depth): fix order book priceInCenter calculation and scroll to price (#2901) 2023-02-21 18:01:48 -08:00
Matthew Russell
a12a5b3a15
chore(trading,governance): remove busEvent for proposals (#2946) 2023-02-20 16:57:25 -08:00
Matthew Russell
849415a78e
fix: set size properly for checkbox icon (#2903) 2023-02-20 16:50:27 +00:00
Dexter Edwards
d33f5428b6
chore(token): governance missing details (#2938) 2023-02-20 16:18:40 +00:00
m.ray
c73b01d549
feat(trading): do not pin row of existing account as it will become duplicated (#2942) 2023-02-20 15:59:01 +00:00
Sam Keen
4286bc37b3
feat(wallet): tighten up the flow for "view as vega user" (#2934) 2023-02-20 15:56:12 +00:00
Art
d4ecb88fb4
feat(explorer): new proposals index page (#2925) 2023-02-20 15:53:23 +00:00
Sam Keen
ac53b1f97a
feat(governance,ui-toolkit): individual rewards table (#2928) 2023-02-20 14:30:11 +00:00
m.ray
94c40cce7d
fix(trading): re-use input errors instead of notification component (#2924) 2023-02-20 07:53:16 +00:00
Sam Keen
4dcdec7a35
fix(governance): navigation token drop down behaviour (#2931) 2023-02-17 16:41:32 +00:00
m.ray
c22fec97b4
feat(trading): deposit to trade collateral tab pinned row (#2921) 2023-02-17 13:32:20 +00:00
Maciek
b2a115f935
chore(trading): handle timeout and offline errors (#2918) 2023-02-16 17:30:32 +01:00
Matthew Russell
a82509f0e0
feat(trading): datanode block header for env and node switcher (#2905) 2023-02-15 19:52:54 -08:00
Art
969bfd6945
feat(explorer): markets and market details pages (#2914) 2023-02-15 14:20:01 +00:00
Joe Tsang
42cd32f376
test(governance): refactor proposal enactment tests (#2897) 2023-02-14 16:44:36 +00:00
m.ray
55d6dd4dce
feat(trading): deposit flow deal ticket (#2874) 2023-02-14 15:43:52 +00:00
Maciek
ee67736ac5
chore(trading): positions and collateral tab remove infinitive scroll (#2898) 2023-02-13 15:48:44 +01:00
Sam Keen
fa415318ff
feat(governance): epoch total rewards tables (#2889) 2023-02-10 18:01:30 +00:00
Art
fc93bbd7c5
feat(explorer): asset details (#2882)
Co-authored-by: Edd <edd@vega.xyz>
2023-02-09 18:12:38 +01:00
Bartłomiej Głownia
a5d53eee77
chore(trading): live update deal ticket market data (#2570) 2023-02-09 14:20:31 +00:00
Maciek
4dd63da62b
chore(trading): handle positions with market data gql errors (#2884) 2023-02-09 14:26:23 +01:00
Bartłomiej Głownia
56731e34cc
chore(react-helpers): add generic data provider unit test (#2776) 2023-02-08 17:35:10 +00:00
daro-maj
026e5f5679
chore(trading): key to key transfers e2e tests (#2878) 2023-02-08 18:31:41 +01:00
Sam Keen
da551f9d3c
feat(governance): replace proposal and vote busEvents with subscriptions (#2862) 2023-02-08 09:42:20 +00:00
Maciek
1952cb0e78
fix(trading): inform the user his connection to wallet is lost (#2863) 2023-02-07 11:31:15 +01:00
Matthew Russell
8dccee69f2
chore(trading): remove unnecessary sentry capture from asyncrenderer component (#2869) 2023-02-06 15:21:39 -08:00
Art
c7a6fdd879
chore(trading): new toasts designs (#2779) 2023-02-06 20:09:56 +00:00
Matthew Russell
8bcdaf4cda
feat(trading): key to key transfers (#2784) 2023-02-06 11:35:40 -08:00
macqbat
710e2daa27
chore(trading): notification component redesign (#2845) 2023-02-06 13:31:35 +01:00
m.ray
73de2fed43
fix(trading): when order is rejected change tx toast intent (#2851) 2023-02-06 11:44:04 +00:00
Sam Keen
536859e067
feat(governance): visual tweaks to main nav (#2839) 2023-02-06 11:18:14 +00:00
Matthew Russell
9ece19869d
chore(trading): update order subs to not use busevents (#2849) 2023-02-03 16:12:20 -08:00
m.ray
44d6d931d5
fix(trading): update async renderer on error (#2842) 2023-02-03 16:52:10 +00:00
m.ray
7f1e47d7fd
fix(trading): remove price flash cell from PNL (#2829) 2023-02-03 14:59:24 +00:00
Art
0eddfa4073
fix(ui-toolkit): dark and light shades mismatch (#2841) 2023-02-03 12:33:13 +00:00
macqbat
3f7692ce75
chore(trading): add alpha font to trading (#2833) 2023-02-02 19:25:14 +01:00
macqbat
83af6e74f6
chore(trading): no data message in charts (#2816) 2023-02-02 18:43:16 +01:00
m.ray
b9908003ba
fix(trading): fix symbol on order estimates (#2827) 2023-02-02 13:30:47 +00:00
macqbat
fb1ebb3bdf
chore(trading): remove noise form the test logs (#2801) 2023-02-01 16:58:47 +01:00
macqbat
d151b6e923
chore(trading): add sub statuses of opening auction trading mode (#2797) 2023-01-31 17:31:55 +01:00
Sam Keen
8f8e9c1061
feat(ui-toolkit): announcement banner to highlight mainnet sims (#2800) 2023-01-31 16:12:44 +00:00
m.ray
b40358a723
fix(trading): consolidate view as user mode (#2778) 2023-01-31 16:04:52 +00:00
Art
01f0934da3
chore(ui-toolkit): new colour palette (#2783) 2023-01-31 16:33:16 +01:00
Art
053cd0fa27
fix(trading): asset option on mobile got overflown (#2782) 2023-01-31 11:10:55 +01:00
Joe Tsang
1861852852
test(2704): proposals with market (#2775) 2023-01-30 18:06:04 +00:00
Bartłomiej Głownia
00e319b3c6
chore: handle not found errors as correct response (#2759) 2023-01-27 18:35:45 -08:00
m.ray
4b3b5c322a
fix: trades grid colors (#2766) 2023-01-27 18:55:20 +00:00
Bartłomiej Głownia
b1280c8285
fix: hide close button if openVolume is zero (#2768) 2023-01-27 18:44:20 +00:00
m.ray
fe95c6fcbc
fix: show markets link & deal ticket validation (#2763) 2023-01-27 18:10:20 +01:00
macqbat
853ec8f69c
chore(2351): improve handling wallet errors (#2729) 2023-01-27 15:45:29 +01:00
Matthew Russell
cb9b811730
feat(#1791): block height check (#2701)
Co-authored-by: asiaznik <artur@vegaprotocol.io>
2023-01-27 11:31:23 +01:00
Bartłomiej Głownia
98b5260d93
feat: fix positions and margins providers update (#2753) 2023-01-27 09:39:39 +01:00
m.ray
cfb75fcf8f
fix: volume charts position dp (#2756) 2023-01-26 19:36:29 +00:00
Edd
33e528c569
fix(explorer): switch decimals used in lp commitment views (#2747) 2023-01-26 14:47:31 +00:00
m.ray
47b2a2fdcb
fix: volume chart values fixing - position dp (#2749) 2023-01-26 14:21:43 +00:00
m.ray
860938f26c
fix: market selected no longer available - add link to all markets (#2748) 2023-01-26 13:46:44 +00:00
Art
5766d84804
fix: select position (#2745) 2023-01-26 12:36:47 +00:00
Ciaran McGhie
3ed3714e79
fix(#2216): lp-dashboard grab market close from metadata (#2564) 2023-01-26 09:58:39 +00:00
Matthew Russell
3893b26d30
fix: dropdown menu portals (#2740) 2023-01-26 09:52:49 +01:00
Bartłomiej Głownia
129274a8e6
feat: add seperate transaction toast for completed eth transaction (#2733)
Co-authored-by: Matthew Russell <mattrussell36@gmail.com>
2023-01-25 12:25:44 -08:00
Bartłomiej Głownia
3fadda15fd
chore: remove sentry captureException in marketDepthProvider update (#2713) 2023-01-25 11:58:37 -08:00
m.ray
7ea7edc1e2
feat(#2565): orderbook populate limit (#2690)
Co-authored-by: asiaznik <artur@vegaprotocol.io>
2023-01-25 11:38:26 -08:00
Art
b2ab4f49d9
feat: rich asset details dropdown (2557) (#2711) 2023-01-25 14:24:53 +00:00
m.ray
7279556bf7
feat(#2599): liquidity price range added in market info (#2716) 2023-01-25 13:42:29 +02:00
Dexter Edwards
52cc2ef7df
fix: add risk parameters (#2706) 2023-01-25 10:36:22 +00:00
macqbat
a218da93a6
feat: logging - working solution (#2696) 2023-01-25 09:43:11 +01:00
daro-maj
10fe82dea8
chore: deposit and withdrawal capsule e2e tests (#2720) 2023-01-25 08:21:17 +01:00
Matthew Russell
cd0e2e41a8
chore(#2668): use ui-toolkit checkbox for orderbook (#2702) 2023-01-24 21:49:59 -08:00
Matthew Russell
a016feab2a
fix: dont use current value in update callback for estimate queries (#2721) 2023-01-24 21:33:55 +00:00
Matthew Russell
c7aec5cfcb
chore: add cypress files to ignore list and use glob ignore option (#2700) 2023-01-24 08:06:46 -08:00
Art
165b131b27
chore: move token's web3 url connector to web3 lib (#2655)
Co-authored-by: Dexter <dexter.edwards93@gmail.com>
Co-authored-by: Dariusz Majcherczyk <dariusz.majcherczyk@gmail.com>
2023-01-24 14:02:17 +00:00
Bartłomiej Głownia
0cff5895c7
feat: call update with null data from useDataProvider hook on variables change (#2689) 2023-01-24 14:01:51 +00:00
Art
346af6118d
chore: consolidate persisted order entries (#2673) 2023-01-24 13:56:12 +00:00
Joe Tsang
e883ef5c5e
test(#2639): e2e view public key tests (#2688) 2023-01-24 10:52:01 +00:00
botond
ae84e16b9b
chore: bump wallet client (#2662) 2023-01-20 20:05:18 +00:00
m.ray
e4ada295e2
fix(#2345): positions table link to markets (#2652) 2023-01-19 13:53:10 -08:00
Art
805e8fbee7
chore: focus on toggle (2562) (#2678) 2023-01-19 18:43:58 +00:00
m.ray
df4cea8e00
feat(#2661): show status on all markets list (#2669) 2023-01-19 10:09:24 -08:00
m.ray
52b25b8b15
fix: explorer header remove w-full network switcher (#2679) 2023-01-19 18:06:51 +00:00
Art
5ccef2de5e
feat: deposit and deal ticket transaction stores and toasts (#2495) 2023-01-19 13:10:52 +01:00
Dexter Edwards
f5b345636c
feat: view apps as any pub key (#2548) 2023-01-19 11:16:21 +00:00
Matthew Russell
c533c584da
chore: tidy market setup scripts (#2657) 2023-01-19 09:52:38 +00:00
m.ray
fbdcd04096
chore(#2618): rename fields in ledger entry query (#2658) (#2660)
Co-authored-by: macqbat <maciek@vegaprotocol.io>
2023-01-18 13:14:06 +00:00
m.ray
2a9f3c7568
fix: liquidation est. should update on price change (#2649)
* fix: liquidation close out price needs to update when price updates on limit orders

* fix(#2624): add test case on limit sell order
2023-01-17 16:31:39 +00:00
Matthew Russell
2c3c685522
feat(#2255): capsule tests for trading (#2498)
* feat: improve proposal types, add faucet for trading asset

* chore: yarn lock update

* fix: capsule tests to avoid jsx import

* chore: throw error so that ethereum setup failure is caught

* chore: org files and add logging

* chore: revert current trading-e2e .env file

* chore: add .env.capsule for trading tests on capsule

* chore: remove unused nx command

* chore: remove try catchs and allow errors to be caught by cypress

* chore: add slow tag for capsule test

* feat: move create market setup to libs/cypress

* chore: clearly separate vars meant for capsule with vars meant for non-capsule

* feat: remove hardcoded urls and use config obj

* chore: fix missing comma in genesis.tmpl

* chore: added limit order edit price test

* chore: remove encoding of transaction, update proposal tx trigger ratio to string

* chore: fix date and add date verification for update order

* chore: formatting fix

* chore: adjust trading app tests and workflows to be run in capsule in ci (#2574)

* chore: adjust trading app tests and workflows to be run in capsule in ci

* chore: fix token tests

* chore: increase timeout as it fails in ci

* chore: move market check to before function

* chore: add capsule logs to trading

* chore: increase proposal close time, also break up script for better debugging

* chore: bump up ethereum account setup timeout

* chore: suppress fetch logs to help with debugging

* chore: revert cy wraps now with suppressed logging

* chore: decrease tick amount

* chore: promise with timeout for better debugging

* chore: bump individual timeouts

* chore: bump timeout for tx wait promises

* chore: minor fix

* fix: leave Promise<any>

* fix: leave Promise<any>

* chore: fix home fail

Co-authored-by: Joe <joe@vega.xyz>
Co-authored-by: Dariusz Majcherczyk <dariusz.majcherczyk@gmail.com>
Co-authored-by: Radosław Szpiech <szpiechrados@gmail.com>
Co-authored-by: Madalina Raicu <madalina@raygroup.uk>
2023-01-17 16:33:43 +01:00
Bartłomiej Głownia
1a6266e2ec
chore: fix data and no data message update issues in trading data grids (#2620) 2023-01-17 15:01:24 +00:00
m.ray
c70ec7676e
fix(#2569): market id copy update (#2627)
* fix(#2569): market id copy update

* fix: enable cell text selection on ag-grid by default

* chore: fix partially filled order test

Co-authored-by: Rado <szpiechrados@gmail.com>
2023-01-17 13:59:34 +00:00
macqbat
5e97391d53
chore(2559): filter ledger entries by account type (#2631)
* chore: ledger entries - add account type filters

* chore: ledger entries filtering - add int test

* chore: ledger entries filtering - fix linter fails

* chore: ledger entries filtering - fix int test failing

* chore: ledger entries filtering - fix int test failing
2023-01-17 13:44:23 +00:00
m.ray
e362d06b5a
fix: asset dropdown list (#2622)
* fix(#2556): asset dropdown list fix

* fix: add ID to market list and make cell copyable

* fix: revert market list table
2023-01-17 10:02:46 +00:00
macqbat
45a4dd7009
feat: mobile navbar on Console (#2547)
* feat: mobile navbar on Console

* feat: mobile navbar on Console - adjust unit test

* feat: mobile navbar on Console - adjust unit test

* feat: mobile navbar on Console - adjust themes

* feat: mobile navbar on Console - add some unit tests

* feat: mobile navbar on Console - refactor solution

* feat: mobile navbar on Console - adjust int tests

* feat: mobile navbar on Console - adjust styling

* feat: mobile navbar on Console - move close button into the drawer

* feat: mobile navbar on Console - adjust int tests

* chore: close drawe after navigation

* chore: mobile navbar on Console - adjust unit tests

* chore: mobile navbar on Console - adjust unit tests

Co-authored-by: Matthew Russell <mattrussell36@gmail.com>
2023-01-17 10:59:12 +01:00
Bartłomiej Głownia
5a0da4e158
feat: update market data components when they are in view (#2607) 2023-01-16 17:51:30 +00:00
m.ray
e5bf54ca02
fix: market expiry & trading live copy (#2619)
* fix(#2602): market expiry tooltip

* fix(#2612): update live trading copy

* fix: show - liq. supplied and fix lint issue

* fix: on-chain functionality tooltip

* Update apps/trading/components/welcome-dialog/welcome-notice-dialog.tsx

Co-authored-by: candida-d <62548908+candida-d@users.noreply.github.com>

* fix: propose a market link

Co-authored-by: candida-d <62548908+candida-d@users.noreply.github.com>
2023-01-16 17:36:06 +00:00
Matthew Russell
b10effa3c7
chore: add link to etherscan for asset dialog contract address (#2561)
* chore: add link to etherscan for asset dialog contract address

* chore: use useEtherscanLink hook

* chore: fix unused import
2023-01-16 13:11:51 +00:00
Bartłomiej Głownia
06151c0592
feat: add marketId to orders query (#2536)
* feat: add marketId to orders query

* feat: move filters handling from useOrderListData to ordersProvider
2023-01-16 12:26:50 +00:00
macqbat
2b28ff6c18
chore: update fills tab - add tooltip with fees breakdown (#2606)
* chore: update fills tab - add tooltip with fees breakdown

* chore: update fills tab - fix failing unit test

* chore: update fills tab - add unit test

* chore: update fills tab - adjust int test
2023-01-13 10:44:01 +00:00
Sam Keen
47c0ec01eb
feat(2601): token homepage proposals should have their width halved on larger breakpoints (#2603) 2023-01-12 14:18:17 +00:00
Dexter Edwards
b8ff3d3050
feat(2093): token sub nav (#2549)
* feat: implement subnav using exisitng DD component

* chore: make nav as per design

* chore: fix conflicts

* style: make css for trigger match designs

* chore: add border to subnav card

* chore: reogranise files

* chore: remove unused imports

* fix: minor rendering errors

* test: add first tests

* chore: fix failing tests from nav update

* test: add unit tests for nav

* style: lint

* style: make navbar theme work properly

* style: lint

* chore: remove unnecessary click on header

* fix: move route config to ts only file

* test: tidy up test logic

* feat: add nav drop down to ui toolkit

* fix: broken routing in places

* style: lint

Co-authored-by: Joe <joe@vega.xyz>
2023-01-12 11:45:22 +00:00
macqbat
06e1b3663d
chore: volume in chart enabled by default (#2577)
* chore: volume in chart enabled by default

* chore: volume in chart enabled by default - add unit test
2023-01-12 11:49:57 +01:00
m.ray
31ffa306eb
fix(#2554): close out formatting (#2584)
* fix(#2530): fix use order close out - formatting to be done in component

* fix: format number in console-lite
2023-01-11 17:10:35 +00:00
Bartłomiej Głownia
4608683bde
feat(2408): trading data grid snags (#2513)
* feat: trading data grid snags

* feat: fix e2e tests, fix use order list data avoid rerender condition
2023-01-11 15:43:52 +01:00
Edd
996c4ac4d5
chore: regenerate types from version 66 (#2568)
* chore: regenerate types from version 66

* chore: fix transfer type mappings

* chore: update triggering ratio to use strings

* chore: regen explorer types

* build(explorer): fix linting error in regenerated explorer types

* chore: remove expiry fields from tests and fix imports to use updated generated code

Co-authored-by: Matthew Russell <mattrussell36@gmail.com>
2023-01-10 14:21:54 -08:00
m.ray
0fd1739ce5
fix(#2553): show rejection reason & orderbook fixed dp (#2563)
* fix: orderbook fixed dp - and show rejection reason

* fix: show rejection reason in order list

* fix: fix parked rejection reason test

* fix: remove not covered part
2023-01-10 13:41:37 +00:00
Matthew Russell
9552fbc033
chore: change text for TRANSFER_TYPE_WIN (#2522) 2023-01-09 10:55:48 -08:00
m.ray
ef35999091
fix(#2532): show why market is in liquidity monitoring auction when liquidity supplied is > target (#2543)
* fix: add sufficient liquidity still auction message

* fix: add sufficient liquidity still auction message

* fix(#2532): update message

* fix(#2532): update liquidity data provider

* fix: lint issue

* fix: try update test
2023-01-09 14:39:03 +00:00
m.ray
bbdc64582a
feat(#2465): vega-pink across frontend-monorepo (#2476)
* feat(#2465): change red to vega pink

* feat(#2465): change red to vega pink part 2

* fix: update vega.red to vega.pink

* feat: color the charts

* feat: color the charts

* feat: color the charts

* fix: use dark pink and green

* fix: use dark pink and green

* feat(#2467): color long/short toggle and place order button

* fix: colors wick showing within candle

* fix: remove opacity from chart

* fix: use vega dark pink and green for vol cell

* fix: toggle and button colors

* feat(#2465): toggle peer checked text white

* fix: add liquidity supplied gap-2 in tooltip data grid

* fix: add indicator temporarily

* chore: update colors

* chore: update from x-dark to vega-x

* fix: rename symbols

* chore: update sell candles to only use stroke as they are solidly filled

* fix: remove use state

* fix: remove network account types

Co-authored-by: Matthew Russell <mattrussell36@gmail.com>
2023-01-06 16:58:55 +00:00
m.ray
dabae31bfd
fix(#2538): stake to ccy volume renaming (#2546)
* fix(#2538): stakeToCcyVolume param

* chore: fix for network params query error

Co-authored-by: Rado <szpiechrados@gmail.com>
2023-01-06 15:35:32 +00:00
Ciaran McGhie
8db3b01284
feat: add market close datetime to lp dashboard (#2529)
* feat: add proposal data from governance to market liquidity provider

We need data from this API to be able to tell when a market will close,
and when opening auctions will end.

* feat: add closing time to lp-dashboard market list page

Adds a 'closing time' column to the market list page on the dashboard.
2023-01-05 15:28:30 +00:00
Bartłomiej Głownia
4fbd2e5eba
feat(#2323): don't allow cancel all if there are no cancellable orders (#2472) 2023-01-05 13:11:58 +00:00
Matthew Russell
35de756120
fix(#2515): use accounts nested under LP provision (#2523)
* fix: use accounts nested under lp provision

* fix: add getLiquidityProvision test

Co-authored-by: Madalina Raicu <madalina@raygroup.uk>
2023-01-05 13:09:45 +00:00
botond
117c0c1306
fix: wallet connect save url to config (#2518) 2023-01-04 16:34:35 +00:00
macqbat
ba14ead8fc
feat(1784): maintenance page (#2505)
* feat: maintance page

* feat: maintenance page - add styling and animations

* feat: maintenance page - add skip of node inits

* feat: maintenance page - add unit test

* feat: maintenance page - add unit test
2023-01-04 13:45:50 +01:00
Art
1211d27011
fix: error message consitency (2486) (#2507)
fix: error message consitency (2486)
2023-01-04 13:25:11 +01:00
Art
e45265ac71
chore: chain id to name (714) (#2503) 2023-01-03 14:54:54 -08:00
Art
cc3c339cc3
fix: asset dialog overflow (2488) (#2497) 2023-01-03 10:37:23 -08:00
Radosław Szpiech
14f0c5a5fb
chore: change connect vega wallet to set vega wallet config in local storage (#2502) 2023-01-03 14:56:33 +01:00
Matthew Russell
82833cc06a
chore: fix and improve types for market proposal (#2493)
* chore: fix and improve types for market proposal

* chore: remove unused type definition
2022-12-30 10:05:48 -08:00
botond
aac3799b14
chore: add wallet client (#2462)
* chore: migrate to wallet client

* fix: bump client with new esm release version

* fix: add new no client error

* fix: bump wallet client to 0.1.2 and remove empty params from method calls

* fix: bump wallet client

* fix: format

* fix: reset client on url change

* fix: trading-deal-ticket tests after wallet client added

* fix: amend and cancel order tests, global connect tests

* chore: fix typescript error

* fix: connect wallet before mobile view test for console-lite

Co-authored-by: Matthew Russell <mattrussell36@gmail.com>
2022-12-30 10:05:27 -08:00
Edd
f8eec8a056
fix(explorer): fix resizing callout (#2492)
* fix(explorer): prevent layout thrashing on stats page
2022-12-30 11:40:47 +00:00
Matthew Russell
955e233c46
fix: dark class being removed on token due to theme switcher changes (#2484)
* fix: dark class being removed on token due to theme switcher changes

* chore: check for window before reading from document classlist
2022-12-29 21:01:37 -08:00
m.ray
1e98ecbd21
feat(#2367): liquidity supplied info in market header (#2481)
* feat(#2367): market liquidity supplied in trade market header

* feat(#2467): calculate LP status

* fix: add LP view link

* fix: add LP view link

* feat(#2367): show liquidity supplied percentage

* feat(#2367): show liquidity supplied percentage

* fix: liquidity-utils test needs big number

* feat(#2456): liquidity status marker

* feat(#2456): liquidity indicator

* feat(#2367): update props lp

* fix: use market data directly

* feat(#2367): move data grid in react-helpers

* feat(#2367): move data grid in react-helpers

* fix: indicator commented

* chore: remove unnecessary styles

* test: update test name

Co-authored-by: Matthew Russell <mattrussell36@gmail.com>
2022-12-28 09:37:19 -08:00
macqbat
64aa39fe4b
feat: add animated preloader (#2464)
* feat: add animated preloader

* feat: add animated preloader - add scss lines

* feat: add animated preloader - add scss lines

* feat: add animated preloader - ref scss lines

* feat: add animated preloader - add preloader property to loader component
2022-12-27 15:46:44 +00:00
m.ray
485c609791
fix: governance links to proposals (#2478) (#2480)
* fix: governance links to proposals

* fix:  fix proposals link in governance.cy.js

* fix: fix link for https://vega.xyz/governance
2022-12-27 15:18:42 +00:00
m.ray
61457bc24d
fix(#2474): liquidity provisions table has incorrect supplied values (#2475)
* fix(#2472): lp table supplied calculate bond account balance fixed

* fix(#2472): unit tests in accounts-data-provider.spec.ts

* fix(#2472): unit tests in accounts.mock.ts
2022-12-27 14:10:09 +00:00
botond
2217925285
fix: env ssl to subscription (#2440)
* fix: rename ssl environment check to subscription

* fix: format
2022-12-27 13:28:54 +00:00
Radosław Szpiech
6cb2e3a3cf
chore: move mocks next to graphql queries (#2469)
* chore: move mocks next to graphql queries

* chore: mock functions rework

* chore: clean up
2022-12-23 12:36:25 +01:00
Art
9c26f4d01b
chore: console dapp routes for skeleton page (2361) (#2450)
* chore: console dapp routes for skeleton page (2361)

* chore: console dapp routes for skeleton page (2361)

* chore: console dapp routes for skeleton page (2361)
2022-12-22 15:24:20 +01:00
Bartłomiej Głownia
dbba734672
feat: add filters to Orders query (#2446) 2022-12-22 10:52:09 +00:00
daro-maj
c2595b533d
chore: 7003 mord amend and cancel e2e tests (#2449)
* chore: cover e2e tests for: Amend order - price and Cancel orders

* chore: fix for formating

* chore: rework

* chore: fix for formating
2022-12-22 10:49:15 +00:00
Art
65316075fa
feat: view proposed network changes (579) (#2444) 2022-12-22 10:49:02 +00:00
m.ray
57c9ea9471
chore(#2410): market info reduce font sizes (#2443)
* chore(#2410): market info reduce font sizes

* chore(#2410): text-sm to row class name in market info
2022-12-21 16:06:50 +00:00
m.ray
b6c448b630
fix(#2413): collateral table to have separate used available cells (#2436)
* fix(#2413): separate collateral used and available cells

* fix(#2413): fix accounts table test update

* fix(#2413): move progress bar in breakdown.tsx
2022-12-21 10:35:15 +00:00
Art
87e1f9998e
feat: transaction store and toasts (#2382)
* feat: add eth and vega transaction stores

feat: replace useStoredEthereumTransaction with useEthTransactionManager

feat: add event bus subsciption to vega transaction store

feat: handle order cancellation

feat: rename Deposit, Order and Withdraw status field to be unique

Revert "feat: rename Deposit, Order and Withdraw status field to be unique"

This reverts commit f0b314d53fb3ada6fbebaba4fd1e5af6f38beaed.

feat: split transaction update subscription

feat: handle order and deposit transaction

feat: handle withdrawal creation through transaction store

feat: handle withdraw approval

feat: handle panding withdrawls, add createdAt

feat: handle transaction toast/dialog dismissal

feat: add use vega transaction store tests

feat: add use vega transaction store tests

feat: add use vega transaction menager tests

feat: add use vega transaction menager tests

feat: add use vega transaction updater tests

feat: improve use vega transaction updater tests

feat: add use eth transaction store

feat: add use eth withdraw approvals store

feat: add use eth transaction updater tests

fixed tests

* feat: toasts

feat: toasts

feat: toasts

* feat: add use eth withdraw approval manager tests

* feat: add use eth transaction manager tests

* feat: add use eth transaction manager tests

* feat: add useEthWithdrawApprovalsManager tests

* feat: remove Web3Container react container from CreateWithdrawalDialog

* feat: remove Web3Container react container around TransactionsHandler

* feat: remove unnecessary async from PendingWithdrawalsTable

* feat: remove comments from WithdrawalFeedback

* fixed z-index issue

* cypress

Co-authored-by: Bartłomiej Głownia <bglownia@gmail.com>
2022-12-21 10:29:32 +01:00
Matthew Russell
0b4f918208
chore(#2412): refactor theme context (#2435)
* chore: switch theme to zustand, delete context

* chore: switch apps/componenets to consume the hook

* chore: update storybook theme usage to use documentElement

* chore: dry up theme switcher listener for storybooks

* feat: optional theme param to allow toggling

* chore: add additional check for matchMedia function

* chore: change block explorer test to use light theme as its the default

* chore: remove unused headerprops for multisig-signer

* chore: remove unused props from theme switcher component

* chore: dry up validateTheme func

* chore: remove unused props from explorer header test

* chore: use new theme switcher in account history container
2022-12-20 18:55:35 -08:00
Matthew Russell
df609d442c
chore: remove settlementDataDecimals field and regen graphql (#2442) 2022-12-20 17:36:54 -08:00
macqbat
a830e4729f
chore: fix too big margin in tooltips (#2438) 2022-12-20 14:41:30 +01:00
m.ray
c5b6032184
feat(#469): account history with pennant price chart (#2434)
* feat: account hitory poc

* feat(#469): update account history and chart

* feat(#469): remove radix toggle group

* fix: add use memo and some tweaks to make sure you pass undefined to cancel all

* feat(#469): add new version pennant

* feat(#469): style account history chart and no data splash

* fix(#469): use splash only

* fix(#469): sort assets list

* feat(#469): new pennant version

* fix: update query

* fix: update query

* Update libs/orders/src/lib/components/order-list/order-list.tsx

* Update libs/assets/src/lib/asset-details-dialog.tsx

* feat(#469): update test on trading positions tab

* Update apps/trading-e2e/src/integration/trading-positions.cy.ts

* fix: click on positions in portfolio

* feat(#469): refactor with async renderer

* feat(#469): refactor date range in account history

Co-authored-by: Matthew Russell <mattrussell36@gmail.com>
2022-12-20 11:22:35 +00:00
m.ray
cb80c6d417
chore(#2430): update stake reward to reward payout mapping (#2437) 2022-12-20 10:58:33 +00:00
macqbat
b9ff2388db
chore(2415): get rid of polling queries on deal ticket (#2427)
* chore: get rid of polling queries on dael ticket

* chore: get rid of polling queries on dael ticket - fix tests

* chore: get rid of polling queries on deal ticket - fix linter

* chore: get rid of polling queries on deal ticket - fix linter

* chore: get rid of polling queries on deal ticket - adjust int test

* chore: get rid of polling queries on deal ticket - adjust int test in console-lite

* chore: get rid of polling queries on deal ticket - adjust unit some test

* chore: get rid of polling queries on deal ticket - adjust unit some test

* chore: get rid of polling queries on deal ticket - clean up some redundant types

* chore: get rid of polling queries on deal ticket - clean up some redundant files
2022-12-20 10:01:10 +01:00
Sam Keen
f133200c7f
fix(2380): fixed block duration field to account for the new api format (#2423)
* fix(2380): fixed block duration field to account for the new api format

* fix(2380): removed unneeded import

* fix(2380): a little more hardened against duration being undefined and different environments returning different data

* fix(2380): improved comment
2022-12-16 12:25:20 +00:00
Sam Keen
0a3509faad
feat(2034): governance home (#2299)
* feat(2034): quickly-assembled governance home

* feat(2034): tweaks

* feat(2034): tidied up new homepage

* feat(2034): e2e test tweak

* feat(2034): tweaks from PR comments and adjusted epoch progress bg-colour

* feat(2034): fix linting
2022-12-16 10:11:14 +00:00
macqbat
7d5cc9b080
chore: change name of the column (#2420) 2022-12-15 13:38:55 +01:00
macqbat
e653ad328f
feat(2036): add markets to the navbar (#2402)
* feat: add markets to the navbar

* feat: add markets to the navbar - adjust failing int test
2022-12-15 08:45:03 +01:00
Sam Keen
071a9ab34b
feat(2326): style Token validators (#2388)
* feat(2326): styled up validators intro as per designs, including site-wide tweaking to headers for consistency

* feat(2326): styled up reduced height epoch progress bar

* feat(2326): styled up inline 'reveal all validators' table row. Test failing

* feat(2326): failing test fixed

* feat(2326): components and styling for validator table

* feat(2326): making proposals section consistent with new validators styling

* feat(2326): extra consistency changes

* feat(2326): linting fixes

* feat(2326): a couple of e2e test fixes

* feat(2326): more e2e test fixes
2022-12-14 13:25:03 +00:00
m.ray
e49ad9da6a
feat(#2273): orders and fills on trading page to be market specific (#2395)
* feat(#2273): make orders and fills tabs market specific in trade grid

* feat(#2273): fix order navigation and show orders for this market only checkbox

* fix(#2273): fills container should not require market

* feat(#2273): add marketId as hook dependency

* fix: use data-testid in trading orders

* fix(#2273): default to false
2022-12-14 12:59:59 +00:00
m.ray
817521bb08
feat(#1853): ledger entries date filtering (#2267)
* chore: update ledger entries columns

* fix: yarn generate types against stagnet3

* fix: orderbook decimal places issue  (#2235)

* fix: positions table fixes notional dp (#2144)

* fix: update decimals on position notional size

* fix: normalize values

* fix: fix positions unit tests

* fix: remove liquidation price

* fix: positions linting issue

* fix: remove liquidation price test

* fix: remove total summary row

* fix: remove comments

* fix: cypress test to not show trailing 0s

* fix: add back liq. price est as cell only

* fix: remove not used params

* chore: merge with release/testnet

* fix: orderbook dp

* Update libs/positions/src/lib/positions-table.spec.tsx

* feat(#1853): use date range filter

* feat(#1853): add date range filter to ledger entries on update

* chore(#1853): add extra checks

* fix: update types on stagnet3

* fix: add checkpoint balance restore

* fix(#1853): fix ledger generic make data provider cast in ledger entries

* fix(#1853): fix transfer type

* fix(#1853): remove TransferTypeMapping cast type

* fix(#1853): remove pagination filtering and use formatForInput from date

* fix(#1853): call filterChangedCallback in onChange method

* fix(#1853): remove subscription from ledger entries table

* fix(#1853): filterChangedCallback called in useEffect gets triggered also on reset

* fix: use-order-list-data hook order of params for makeInfiniteScrollGetRows

* fix(#1853): fix ledger build import all as schema

* fix(#1853): fix schema import

Co-authored-by: maciek <maciek@vegaprotocol.io>
Co-authored-by: Bartłomiej Głownia <bglownia@gmail.com>
2022-12-14 09:43:16 +00:00
macqbat
c14e57cfd5
feat(2146): adjust and refactor welcome dialogs (#2384)
* feat: adjust and refactor welcome dialogs

* feat: adjust and refactor welcome dialogs - add int tests

* feat: adjust and refactor welcome dialogs - small fixes and imprvments

* feat: adjust and refactor welcome dialogs - fix a typo

* feat: adjust and refactor welcome dialogs - fix a property name

* feat: adjust and refactor welcome dialogs - fix an unit test
2022-12-13 14:31:28 +01:00
Ciaran McGhie
c217741924
chore: improve typing in markets list page on the lpdashboard (#2363)
* chore: add some missing properties to the Market type

* chore: improve typing of value formatters in market list page

Replacing ValueFormatterParams with VegaValueFormatterParams<T, Y> in a
bunch of places. Doing this also highlighted we weren't dealing with a
bunch of undefined cases, so we now have fallback formatting for those.

Co-authored-by: Madalina Raicu <madalina@raygroup.uk>
2022-12-12 11:46:33 +00:00
Dexter Edwards
7bf753e6c2
fix: token dependency graph (#2371)
* chore: fix dependency graph

* fix: silly error

* fix: remove uneeded generics
2022-12-09 14:02:56 +00:00
Dexter Edwards
22610c2d0a
fix: proposals list (#2374)
* fix: proposals list

* Update apps/token/src/routes/governance/components/proposals-list/proposals-list.tsx
2022-12-09 14:01:33 +00:00
Radosław Szpiech
615748548b
chore: remove chainID request to wallet in e2e (#2370) 2022-12-09 12:08:26 +01:00
macqbat
fa8868d42a
feat(2298): handle lost connection with wallet during order setting (#2344)
* feat: handle lost connection with wallet during order setting

* Update libs/deal-ticket/src/components/deal-ticket/deal-ticket-manager.tsx

Co-authored-by: candida-d <62548908+candida-d@users.noreply.github.com>

* feat: handle lost connection with wallet during order setting - adjust wording

* feat: handle lost connection with wallet during order setting - adjust wording

* feat: handle lost connection with wallet during order setting - adjust wording

* fix: handle lost connection with wallet add print vega version

* fix: handle lost connection with wallet add print vega version

Co-authored-by: candida-d <62548908+candida-d@users.noreply.github.com>
2022-12-09 11:33:13 +01:00
botond
2211abbd72
chore: cleanup type gen (#2362)
* chore: remove apollo type gen and clean up types lib

* fix: format

* fix: tests

* fix: format

* fix: hammer token types til sh*t turns green

* fix: format

* fix: apparently format again

* fix: lint

* fix: build-specs

* fix: format

* chore: regen types

* chore: regenerate types again

* fix: format
2022-12-08 21:13:30 +00:00
Sam Keen
86e4280680
feat(2089): second level validator table mouseovers (#2354)
* feat(1913): validator table column heading mouseovers

* feat(2089): stake needed for promotion tooltip

* feat(2089): normalised voting power tooltip

* feat(2089): total stake tooltip

* feat(2089): total stake tooltip for standby-pending-validators-table

* feat(2089): total penalties tooltip

* feat(2089): tooltip colour tweakage

* feat(2089): unit tests for the shared validator data functions

* feat(2089): removed unused import from tooltip.tsx

* Update apps/token/src/routes/staking/home/validator-tables/standby-pending-validators-table.tsx

Co-authored-by: Dexter Edwards <dexter.edwards93@gmail.com>

* feat(2089): tweaks from PR comments

Co-authored-by: Dexter Edwards <dexter.edwards93@gmail.com>
2022-12-08 14:57:11 +00:00
macqbat
19c1f2f8c6
fix: lock widths of market table cells - make it durable for long values (#2360) 2022-12-08 06:30:05 -05:00
Matthew Russell
09af8db1fe
fix: blank page if startup subscription fails (#2357)
* feat: add loading skeleton for network loader

* feat: add timeout for subscription check
2022-12-08 08:51:01 +00:00
Matthew Russell
97a264d0b8
feat: align governance right (#2358) 2022-12-08 08:46:44 +00:00
Sam Keen
ce04dd9ff2
feat(1913): validator table column heading mouseovers (#2335) 2022-12-07 21:55:32 +00:00
Dexter Edwards
c0566a91b2
feat: mirror environment (#2343)
* feat: mirror environment

* style: lint

* chore: update networks to have correct data node

* chore: update netowrks to point to correct data nodes

* chore: fix build
2022-12-07 13:55:51 +00:00
Matthew Russell
d1e0af0dbf
feat(#1271): allow ethereum disconnect (#2325) 2022-12-07 04:24:40 -05:00
macqbat
46a85b8e65
fix: insufficient balance error doesn't reset validation after balance has been fulfilled (#2336)
* fix: live validation in deal ticket - reset validation after market state or account balance changes

* fix: live validation in deal ticket - reset fix lint error

* fix: live validation in deal ticket - adjust failing int test
2022-12-07 08:45:30 +01:00
m.ray
8f182a5877
chore(#2039): update ledger entries mappings (#2339) 2022-12-06 18:52:58 -08:00
Dexter Edwards
3486244137
feat(2033): reorganise token site (#2313)
* chore: make proposals the home page, redirect home to proposals

* chore: reorganise the remainder of the routes

* chore: small styling bug

* fix: nav links highlighted incorrectly

* feat: rename title, rename routes to new structure, add redirects

* chore: make navbar full width

* feat: new navbar bases on trading navbar

* chore: revert change to the width of the page

* chore: make navbar reactive and support draw

* chore: move draw into its' own file

* chore: move nav into toolkit

* style: lint

* chore: trading to use navbar

* fix: uppercase navbar title

* chore: add test

* fix: merge issue

* style: lint

* test: adjust test URLs

* test: more route adjsuting

* test: fix route name

* test: change URL to be new url

* test: more path corrections

* test: more path fixes

* style: lint

* test: minor test fixes

* test: more test fixes

* test: fix incorrect paths

* test: green build plz

* chore: adjust name as per PR comments

* test: fix path

* test: fix incorrect path

* test: final test fix

* test: plz green
2022-12-06 16:00:37 +00:00
macqbat
ca5c3bc21d
fix: live validation in deal ticket (#2315)
* fix: live validation in deal ticket

* fix: live validation in deal ticket

* fix: live validation in deal ticket

* fix: live validation in deal ticket - fix test mock generate
2022-12-06 09:09:13 +01:00