From 48675af6548baeab92f6ea408a7a49cd796bc089 Mon Sep 17 00:00:00 2001 From: asiaznik Date: Wed, 14 Sep 2022 12:36:25 +0200 Subject: [PATCH] fixed accounts build errors and unit tests --- libs/accounts/src/lib/accounts-table.spec.tsx | 6 +++--- libs/types/src/global-types-mappings.ts | 1 + 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/libs/accounts/src/lib/accounts-table.spec.tsx b/libs/accounts/src/lib/accounts-table.spec.tsx index 9db752249..815904382 100644 --- a/libs/accounts/src/lib/accounts-table.spec.tsx +++ b/libs/accounts/src/lib/accounts-table.spec.tsx @@ -1,11 +1,11 @@ import AccountsTable from './accounts-table'; import { act, render, screen, waitFor } from '@testing-library/react'; -import type { AccountFieldsFragment } from './__generated__/Accounts'; -import { AccountType } from '@vegaprotocol/types'; +import type { AccountFieldsFragment } from './__generated___/Accounts'; +import { Schema as Types } from '@vegaprotocol/types'; const singleRow: AccountFieldsFragment = { __typename: 'Account', - type: AccountType.ACCOUNT_TYPE_MARGIN, + type: Types.AccountType.ACCOUNT_TYPE_MARGIN, balance: '125600000', market: { __typename: 'Market', diff --git a/libs/types/src/global-types-mappings.ts b/libs/types/src/global-types-mappings.ts index 281649e01..3917d6c1b 100644 --- a/libs/types/src/global-types-mappings.ts +++ b/libs/types/src/global-types-mappings.ts @@ -13,6 +13,7 @@ export enum AccountTypeMapping { ACCOUNT_TYPE_REWARD_LP_RECEIVED_FEES = 'Reward LP received fees', ACCOUNT_TYPE_REWARD_MAKER_RECEIVED_FEES = 'Reward Maker received fees', ACCOUNT_TYPE_REWARD_MARKET_PROPOSERS = 'Reward Market Proposers', + ACCOUNT_TYPE_REWARD_MAKER_PAID_FEES = 'Reward Maker paid fees', ACCOUNT_TYPE_REWARD_TAKER_PAID_FEES = 'Reward Taker paid fees', ACCOUNT_TYPE_SETTLEMENT = 'Settlement', }