chore: back merge release/testnet after hotfix (#2292)

* 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

* fix: governance navbar link (#2247)

* fix: governance navbar link

* fix(#2245): fix gov link a tag no navlink

* fix(#2245): remove export getActiveNavLinkClassNames

* fix(#2283): use correct GQL document for withdrawal event subscription (#2291)

Co-authored-by: m.ray <16125548+MadalinaRaicu@users.noreply.github.com>
This commit is contained in:
Matthew Russell 2022-11-30 19:48:35 -06:00 committed by GitHub
parent ac17bc4b64
commit 910a3e7a7f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 5 deletions

View File

@ -18,7 +18,7 @@ import type {
WithdrawalEventSubscription,
WithdrawalFieldsFragment,
} from './__generated__/Withdrawal';
import { WithdrawalsDocument } from './__generated__/Withdrawal';
import { WithdrawalEventDocument } from './__generated__/Withdrawal';
import { Schema } from '@vegaprotocol/types';
function setup(
@ -116,7 +116,7 @@ beforeEach(() => {
};
mockWithdrawalEvent = {
request: {
query: WithdrawalsDocument,
query: WithdrawalEventDocument,
variables: { partyId: pubKey },
},
result: {

View File

@ -2,7 +2,7 @@ import { useApolloClient } from '@apollo/client';
import type { VegaTxState } from '@vegaprotocol/wallet';
import { useCallback, useEffect, useRef } from 'react';
import type { Subscription } from 'zen-observable-ts';
import { WithdrawalsDocument } from './__generated__/Withdrawal';
import { WithdrawalEventDocument } from './__generated__/Withdrawal';
import type {
WithdrawalEventSubscription,
WithdrawalEventSubscriptionVariables,
@ -20,13 +20,13 @@ export const useWithdrawalEvent = (transaction: VegaTxState) => {
const waitForWithdrawalEvent = useCallback<WaitForWithdrawalEvent>(
(id, partyId) => {
return new Promise((resolve) => {
return new Promise<WithdrawalFieldsFragment>((resolve) => {
subRef.current = client
.subscribe<
WithdrawalEventSubscription,
WithdrawalEventSubscriptionVariables
>({
query: WithdrawalsDocument,
query: WithdrawalEventDocument,
variables: { partyId },
})
.subscribe(({ data }) => {