chore(datagrid,utils,react-helpers): rename token app, add utils, datagrid, i18n (#3022)

This commit is contained in:
Matthew Russell 2023-02-28 10:56:29 -08:00 committed by GitHub
parent cf83fe9469
commit a796a38200
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1009 changed files with 6782 additions and 3777 deletions

View File

@ -1,5 +1,5 @@
import { useAssetDataProvider } from '@vegaprotocol/assets';
import { addDecimalsFormatNumber } from '@vegaprotocol/react-helpers';
import { addDecimalsFormatNumber } from '@vegaprotocol/utils';
import { AssetLink } from '../links';
export type AssetBalanceProps = {

View File

@ -1,4 +1,4 @@
import { addDecimalsFormatNumber } from '@vegaprotocol/react-helpers';
import { addDecimalsFormatNumber } from '@vegaprotocol/utils';
import { useExplorerGovernanceAssetQuery } from './__generated__/Governance-asset';
import AssetBalance from './asset-balance';

View File

@ -1,11 +1,11 @@
import type { AssetFieldsFragment } from '@vegaprotocol/assets';
import { AssetTypeMapping, AssetStatusMapping } from '@vegaprotocol/assets';
import { t } from '@vegaprotocol/react-helpers';
import type { VegaICellRendererParams } from '@vegaprotocol/ui-toolkit';
import { t } from '@vegaprotocol/i18n';
import { ButtonLink } from '@vegaprotocol/ui-toolkit';
import type { AgGridReact } from 'ag-grid-react';
import { AgGridColumn } from 'ag-grid-react';
import { AgGridDynamic as AgGrid } from '@vegaprotocol/ui-toolkit';
import { AgGridDynamic as AgGrid } from '@vegaprotocol/datagrid';
import type { VegaICellRendererParams } from '@vegaprotocol/datagrid';
import { useRef, useLayoutEffect } from 'react';
import { BREAKPOINT_MD } from '../../config/breakpoints';
import { useNavigate } from 'react-router-dom';

View File

@ -2,11 +2,11 @@ import React from 'react';
import type { BlockMeta } from '../../routes/blocks/tendermint-blockchain-response';
import { Routes } from '../../routes/route-names';
import { Link } from 'react-router-dom';
import { getDateTimeFormat } from '@vegaprotocol/react-helpers';
import { getDateTimeFormat } from '@vegaprotocol/utils';
import { Tooltip } from '@vegaprotocol/ui-toolkit';
import { TimeAgo } from '../time-ago';
import { TableWithTbody, TableRow, TableCell } from '../table';
import { t } from '@vegaprotocol/react-helpers';
import { t } from '@vegaprotocol/i18n';
interface BlockProps {
block: BlockMeta;

View File

@ -1,4 +1,4 @@
import { t } from '@vegaprotocol/react-helpers';
import { t } from '@vegaprotocol/i18n';
import React from 'react';
import type { TendermintBlockchainResponse } from '../../routes/blocks/tendermint-blockchain-response';
import { BlockData } from './block-data';

View File

@ -1,7 +1,7 @@
import React from 'react';
import { FixedSizeList as List } from 'react-window';
import InfiniteLoader from 'react-window-infinite-loader';
import { t } from '@vegaprotocol/react-helpers';
import { t } from '@vegaprotocol/i18n';
import type { BlockMeta } from '../../routes/blocks/tendermint-blockchain-response';
import { BlockData } from './block-data';
import EmptyList from '../empty-list/empty-list';

View File

@ -1,6 +1,6 @@
import { useState, useEffect } from 'react';
import { useTendermintWebsocket } from '../../hooks/use-tendermint-websocket';
import { t } from '@vegaprotocol/react-helpers';
import { t } from '@vegaprotocol/i18n';
import { ButtonLink } from '@vegaprotocol/ui-toolkit';
interface BlocksRefetchProps {

View File

@ -1,4 +1,4 @@
import { t } from '@vegaprotocol/react-helpers';
import { t } from '@vegaprotocol/i18n';
import {
Button,
Dialog,

View File

@ -1,7 +1,7 @@
import { MockedProvider } from '@apollo/client/testing';
import { render } from '@testing-library/react';
import EpochMissingOverview, { calculateEpochData } from './epoch-missing';
import { getSecondsFromInterval } from '@vegaprotocol/react-helpers';
import { getSecondsFromInterval } from '@vegaprotocol/utils';
const START_DATE_PAST = 'Monday, 17 February 2022 11:44:09';
describe('getSecondsFromInterval', () => {

View File

@ -4,8 +4,7 @@ import addSeconds from 'date-fns/addSeconds';
import formatDistance from 'date-fns/formatDistance';
import { Icon, Tooltip } from '@vegaprotocol/ui-toolkit';
import isFuture from 'date-fns/isFuture';
import { isValidDate } from '@vegaprotocol/react-helpers';
import { getSecondsFromInterval } from '@vegaprotocol/react-helpers';
import { getSecondsFromInterval, isValidDate } from '@vegaprotocol/utils';
export type EpochMissingOverviewProps = {
missingEpochId?: string;

View File

@ -1,6 +1,6 @@
import { useExplorerEpochQuery } from './__generated__/Epoch';
import { t } from '@vegaprotocol/react-helpers';
import { t } from '@vegaprotocol/i18n';
import { BlockLink } from '../links';
import { Time } from '../time';
import { TimeAgo } from '../time-ago';

View File

@ -1,5 +1,6 @@
import { NodeSwitcherDialog, useEnvironment } from '@vegaprotocol/environment';
import { t, useScreenDimensions } from '@vegaprotocol/react-helpers';
import { t } from '@vegaprotocol/i18n';
import { useScreenDimensions } from '@vegaprotocol/react-helpers';
import { ExternalLink, Link } from '@vegaprotocol/ui-toolkit';
import { useMemo, useState } from 'react';
import { ENV } from '../../config/env';

View File

@ -1,7 +1,7 @@
import classnames from 'classnames';
import { Link } from 'react-router-dom';
import { ThemeSwitcher, Icon } from '@vegaprotocol/ui-toolkit';
import { t } from '@vegaprotocol/react-helpers';
import { t } from '@vegaprotocol/i18n';
import { Search } from '../search';
import { Routes } from '../../routes/route-names';
import { NetworkSwitcher } from '@vegaprotocol/environment';

View File

@ -1,4 +1,4 @@
import { t } from '@vegaprotocol/react-helpers';
import { t } from '@vegaprotocol/i18n';
import React from 'react';
import { useNavigate } from 'react-router-dom';
import { Routes } from '../../routes/route-names';

View File

@ -1,6 +1,6 @@
import type { HTMLInputTypeAttribute, SyntheticEvent } from 'react';
import { Input, Button } from '@vegaprotocol/ui-toolkit';
import { t } from '@vegaprotocol/react-helpers';
import { t } from '@vegaprotocol/i18n';
interface JumpToProps {
label: string;

View File

@ -3,7 +3,7 @@ import { useExplorerMarketQuery } from './__generated__/Market';
import { Link } from 'react-router-dom';
import type { ComponentProps } from 'react';
import { t } from '@vegaprotocol/react-helpers';
import { t } from '@vegaprotocol/i18n';
import Hash from '../hash';
export type MarketLinkProps = Partial<ComponentProps<typeof Link>> & {

View File

@ -3,7 +3,7 @@ import { Link } from 'react-router-dom';
import type { ComponentProps } from 'react';
import Hash from '../hash';
import { t } from '@vegaprotocol/react-helpers';
import { t } from '@vegaprotocol/i18n';
import { isValidPartyId } from '../../../routes/parties/id/components/party-id-error';
import { truncateMiddle } from '@vegaprotocol/ui-toolkit';

View File

@ -2,8 +2,8 @@ import {
addDecimalsFormatNumber,
formatNumberPercentage,
getMarketExpiryDateFormatted,
t,
} from '@vegaprotocol/react-helpers';
} from '@vegaprotocol/utils';
import { t } from '@vegaprotocol/i18n';
import type { MarketInfoNoCandlesQuery } from '@vegaprotocol/market-info';
import { MarketInfoTable } from '@vegaprotocol/market-info';
import pick from 'lodash/pick';

View File

@ -1,13 +1,13 @@
import type { MarketFieldsFragment } from '@vegaprotocol/market-list';
import { t } from '@vegaprotocol/react-helpers';
import type {
VegaICellRendererParams,
VegaValueGetterParams,
} from '@vegaprotocol/ui-toolkit';
import { t } from '@vegaprotocol/i18n';
import { ButtonLink } from '@vegaprotocol/ui-toolkit';
import type { AgGridReact } from 'ag-grid-react';
import { AgGridColumn } from 'ag-grid-react';
import { AgGridDynamic as AgGrid } from '@vegaprotocol/ui-toolkit';
import { AgGridDynamic as AgGrid } from '@vegaprotocol/datagrid';
import type {
VegaICellRendererParams,
VegaValueGetterParams,
} from '@vegaprotocol/datagrid';
import { useRef, useLayoutEffect } from 'react';
import { BREAKPOINT_MD } from '../../config/breakpoints';
import { MarketStateMapping } from '@vegaprotocol/types';

View File

@ -1,4 +1,4 @@
import { t } from '@vegaprotocol/react-helpers';
import { t } from '@vegaprotocol/i18n';
import { useExplorerDeterministicOrderQuery } from './__generated__/Order';
import { MarketLink } from '../links';
import PriceInMarket from '../price-in-market/price-in-market';

View File

@ -1,4 +1,4 @@
import { t } from '@vegaprotocol/react-helpers';
import { t } from '@vegaprotocol/i18n';
import { useExplorerDeterministicOrderQuery } from './__generated__/Order';
import { MarketLink } from '../links';
import PriceInMarket from '../price-in-market/price-in-market';

View File

@ -1,4 +1,4 @@
import { t } from '@vegaprotocol/react-helpers';
import { t } from '@vegaprotocol/i18n';
import type * as Schema from '@vegaprotocol/types';
import type { components } from '../../../../types/explorer';

View File

@ -1,4 +1,5 @@
import { addDecimalsFormatNumber, t } from '@vegaprotocol/react-helpers';
import { addDecimalsFormatNumber } from '@vegaprotocol/utils';
import { t } from '@vegaprotocol/i18n';
import isUndefined from 'lodash/isUndefined';
import { useExplorerMarketQuery } from '../links/market-link/__generated__/Market';
import get from 'lodash/get';

View File

@ -1,21 +1,18 @@
import type { ProposalListFieldsFragment } from '@vegaprotocol/governance';
import { VoteProgress } from '@vegaprotocol/governance';
import type { ProposalListFieldsFragment } from '@vegaprotocol/proposals';
import { VoteProgress } from '@vegaprotocol/proposals';
import type { AgGridReact } from 'ag-grid-react';
import { AgGridColumn } from 'ag-grid-react';
import { ExternalLink } from '@vegaprotocol/ui-toolkit';
import { AgGridDynamic as AgGrid } from '@vegaprotocol/datagrid';
import type {
VegaICellRendererParams,
VegaValueFormatterParams,
} from '@vegaprotocol/ui-toolkit';
import { ExternalLink } from '@vegaprotocol/ui-toolkit';
import { AgGridDynamic as AgGrid } from '@vegaprotocol/ui-toolkit';
} from '@vegaprotocol/datagrid';
import { useLayoutEffect, useMemo, useRef, useState } from 'react';
import type { RowClickedEvent } from 'ag-grid-community';
import {
getDateTimeFormat,
NetworkParams,
t,
useNetworkParams,
} from '@vegaprotocol/react-helpers';
import { getDateTimeFormat } from '@vegaprotocol/utils';
import { t } from '@vegaprotocol/i18n';
import { NetworkParams, useNetworkParams } from '@vegaprotocol/react-helpers';
import { ProposalStateMapping } from '@vegaprotocol/types';
import BigNumber from 'bignumber.js';
import { DApp, TOKEN_PROPOSAL, useLinks } from '@vegaprotocol/environment';

View File

@ -1,4 +1,4 @@
import { t } from '@vegaprotocol/react-helpers';
import { t } from '@vegaprotocol/i18n';
import { StatusMessage } from '../status-message';
interface RenderFetchedProps {

View File

@ -1,4 +1,4 @@
import { t } from '@vegaprotocol/react-helpers';
import { t } from '@vegaprotocol/i18n';
import React from 'react';
interface RouteErrorBoundaryProps {

View File

@ -1,5 +1,5 @@
import { useCallback, useState } from 'react';
import { t } from '@vegaprotocol/react-helpers';
import { t } from '@vegaprotocol/i18n';
import { Button, Input, InputError } from '@vegaprotocol/ui-toolkit';
import { useForm } from 'react-hook-form';
import { useNavigate } from 'react-router-dom';

View File

@ -1,5 +1,5 @@
import { useAssetDataProvider } from '@vegaprotocol/assets';
import { addDecimalsFormatNumber } from '@vegaprotocol/react-helpers';
import { addDecimalsFormatNumber } from '@vegaprotocol/utils';
import { AssetLink } from '../links';
export type DecimalSource = 'ASSET';

View File

@ -1,4 +1,4 @@
import { addDecimalsFormatNumber } from '@vegaprotocol/react-helpers';
import { addDecimalsFormatNumber } from '@vegaprotocol/utils';
import { useExplorerMarketQuery } from '../links/market-link/__generated__/Market';
export type DecimalSource = 'MARKET';

View File

@ -1,5 +1,5 @@
import { formatDistanceToNowStrict } from 'date-fns';
import { t } from '@vegaprotocol/react-helpers';
import { t } from '@vegaprotocol/i18n';
import { useEffect, useState } from 'react';
interface TimeAgoProps {

View File

@ -1,4 +1,4 @@
import { t } from '@vegaprotocol/react-helpers';
import { t } from '@vegaprotocol/i18n';
interface TimeProps {
date: string | null | undefined;

View File

@ -1,4 +1,4 @@
import { truncateByChars } from '@vegaprotocol/react-helpers';
import { truncateByChars } from '@vegaprotocol/utils';
import * as React from 'react';
interface TruncateInlineProps {

View File

@ -1,6 +1,6 @@
import { render } from '@testing-library/react';
import { TxDetailsChainEventBuiltinDeposit } from './tx-builtin-deposit';
import { t } from '@vegaprotocol/react-helpers';
import { t } from '@vegaprotocol/i18n';
import type { components } from '../../../../../types/explorer';
import omit from 'lodash/omit';

View File

@ -1,4 +1,4 @@
import { t } from '@vegaprotocol/react-helpers';
import { t } from '@vegaprotocol/i18n';
import { TableRow, TableCell } from '../../../table';
import type { components } from '../../../../../types/explorer';
import { AssetLink, PartyLink } from '../../../links';

View File

@ -1,6 +1,6 @@
import { render } from '@testing-library/react';
import { TxDetailsChainEventBuiltinWithdrawal } from './tx-builtin-withdrawal';
import { t } from '@vegaprotocol/react-helpers';
import { t } from '@vegaprotocol/i18n';
import type { components } from '../../../../../types/explorer';
import omit from 'lodash/omit';

View File

@ -1,4 +1,4 @@
import { t } from '@vegaprotocol/react-helpers';
import { t } from '@vegaprotocol/i18n';
import { TableRow, TableCell } from '../../../table';
import type { components } from '../../../../../types/explorer';
import { AssetLink, PartyLink } from '../../../links';

View File

@ -1,5 +1,5 @@
import { render } from '@testing-library/react';
import { t } from '@vegaprotocol/react-helpers';
import { t } from '@vegaprotocol/i18n';
import type { components } from '../../../../../types/explorer';
import omit from 'lodash/omit';

View File

@ -1,4 +1,4 @@
import { t } from '@vegaprotocol/react-helpers';
import { t } from '@vegaprotocol/i18n';
import { TableRow, TableCell } from '../../../table';
import type { components } from '../../../../../types/explorer';
import { AssetLink } from '../../../links';

View File

@ -1,5 +1,5 @@
import { render } from '@testing-library/react';
import { t } from '@vegaprotocol/react-helpers';
import { t } from '@vegaprotocol/i18n';
import type { components } from '../../../../../types/explorer';
import omit from 'lodash/omit';

View File

@ -1,4 +1,4 @@
import { t } from '@vegaprotocol/react-helpers';
import { t } from '@vegaprotocol/i18n';
import { TableRow, TableCell } from '../../../table';
import type { components } from '../../../../../types/explorer';
import { AssetLink } from '../../../links';

View File

@ -1,5 +1,5 @@
import { render } from '@testing-library/react';
import { t } from '@vegaprotocol/react-helpers';
import { t } from '@vegaprotocol/i18n';
import type { components } from '../../../../../types/explorer';
import omit from 'lodash/omit';

View File

@ -1,4 +1,4 @@
import { t } from '@vegaprotocol/react-helpers';
import { t } from '@vegaprotocol/i18n';
import { TableRow, TableCell } from '../../../table';
import type { components } from '../../../../../types/explorer';
import { AssetLink } from '../../../links';

View File

@ -1,5 +1,5 @@
import { render } from '@testing-library/react';
import { t } from '@vegaprotocol/react-helpers';
import { t } from '@vegaprotocol/i18n';
import { TxDetailsChainEventErc20BridgePause } from './tx-erc20-bridge-pause';
describe('Chain Event: ERC20 bridge pause', () => {

View File

@ -1,4 +1,4 @@
import { t } from '@vegaprotocol/react-helpers';
import { t } from '@vegaprotocol/i18n';
import { TableRow, TableCell } from '../../../table';
export interface TxDetailsChainEventErc20BridgePauseProps {

View File

@ -1,5 +1,5 @@
import { render } from '@testing-library/react';
import { t } from '@vegaprotocol/react-helpers';
import { t } from '@vegaprotocol/i18n';
import type { components } from '../../../../../types/explorer';
import omit from 'lodash/omit';

View File

@ -1,4 +1,4 @@
import { t } from '@vegaprotocol/react-helpers';
import { t } from '@vegaprotocol/i18n';
import { TableRow, TableCell } from '../../../table';
import type { components } from '../../../../../types/explorer';
import { AssetLink, PartyLink } from '../../../links';

View File

@ -1,5 +1,5 @@
import { render } from '@testing-library/react';
import { t } from '@vegaprotocol/react-helpers';
import { t } from '@vegaprotocol/i18n';
import type { components } from '../../../../../types/explorer';
import omit from 'lodash/omit';

View File

@ -1,4 +1,4 @@
import { t } from '@vegaprotocol/react-helpers';
import { t } from '@vegaprotocol/i18n';
import { TableRow, TableCell } from '../../../table';
import type { components } from '../../../../../types/explorer';
import { AssetLink } from '../../../links';

View File

@ -1,5 +1,5 @@
import { render } from '@testing-library/react';
import { t } from '@vegaprotocol/react-helpers';
import { t } from '@vegaprotocol/i18n';
import type { components } from '../../../../../types/explorer';
import { MockedProvider } from '@apollo/client/testing';

View File

@ -1,4 +1,4 @@
import { t } from '@vegaprotocol/react-helpers';
import { t } from '@vegaprotocol/i18n';
import { TableRow, TableCell } from '../../../table';
import type { components } from '../../../../../types/explorer';
import { getBlockTime } from './lib/get-block-time';

View File

@ -1,5 +1,5 @@
import { render } from '@testing-library/react';
import { t } from '@vegaprotocol/react-helpers';
import { t } from '@vegaprotocol/i18n';
import type { components } from '../../../../../types/explorer';
import { MockedProvider } from '@apollo/client/testing';

View File

@ -1,4 +1,4 @@
import { t } from '@vegaprotocol/react-helpers';
import { t } from '@vegaprotocol/i18n';
import { TableRow, TableCell } from '../../../table';
import type { components } from '../../../../../types/explorer';
import isNumber from 'lodash/isNumber';

View File

@ -1,5 +1,5 @@
import { render } from '@testing-library/react';
import { t } from '@vegaprotocol/react-helpers';
import { t } from '@vegaprotocol/i18n';
import type { components } from '../../../../../types/explorer';
import omit from 'lodash/omit';

View File

@ -1,4 +1,4 @@
import { t } from '@vegaprotocol/react-helpers';
import { t } from '@vegaprotocol/i18n';
import { TableRow, TableCell } from '../../../table';
import type { components } from '../../../../../types/explorer';
import { PartyLink } from '../../../links';

View File

@ -1,5 +1,5 @@
import { render } from '@testing-library/react';
import { t } from '@vegaprotocol/react-helpers';
import { t } from '@vegaprotocol/i18n';
import type { components } from '../../../../../types/explorer';
import omit from 'lodash/omit';

View File

@ -1,4 +1,4 @@
import { t } from '@vegaprotocol/react-helpers';
import { t } from '@vegaprotocol/i18n';
import { TableRow, TableCell } from '../../../table';
import type { components } from '../../../../../types/explorer';
import { PartyLink } from '../../../links';

View File

@ -1,5 +1,5 @@
import { render } from '@testing-library/react';
import { t } from '@vegaprotocol/react-helpers';
import { t } from '@vegaprotocol/i18n';
import type { components } from '../../../../../types/explorer';
import omit from 'lodash/omit';

View File

@ -1,4 +1,5 @@
import { formatNumber, t, toBigNum } from '@vegaprotocol/react-helpers';
import { formatNumber, toBigNum } from '@vegaprotocol/utils';
import { t } from '@vegaprotocol/i18n';
import { TableRow, TableCell } from '../../../table';
import type { components } from '../../../../../types/explorer';
import {

View File

@ -1,4 +1,4 @@
import { t } from '@vegaprotocol/react-helpers';
import { t } from '@vegaprotocol/i18n';
import type { components } from '../../../../../../types/explorer';
import { TableRow } from '../../../../table';

View File

@ -1,5 +1,5 @@
import { useExplorerSettlementAssetForMarketQuery } from '../__generated__/Explorer-settlement-asset';
import { addDecimalsFormatNumber } from '@vegaprotocol/react-helpers';
import { addDecimalsFormatNumber } from '@vegaprotocol/utils';
import type { ExplorerSettlementAssetForMarketQuery } from '../__generated__/Explorer-settlement-asset';
import type { VegaSide } from './liquidity-provision-details-row';

View File

@ -1,4 +1,4 @@
import { t } from '@vegaprotocol/react-helpers';
import { t } from '@vegaprotocol/i18n';
import type { components } from '../../../../../types/explorer';
import type { LiquiditySubmission } from '../tx-liquidity-submission';

View File

@ -1,4 +1,4 @@
import { t } from '@vegaprotocol/react-helpers';
import { t } from '@vegaprotocol/i18n';
interface JSONOracleDataProps {
payload: string;

View File

@ -1,4 +1,4 @@
import { t } from '@vegaprotocol/react-helpers';
import { t } from '@vegaprotocol/i18n';
import { NestedDataList } from '../../../nested-data-list';
import { OpenOraclePrices } from './open-oracle/open-oracle-prices';

View File

@ -1,4 +1,4 @@
import { t } from '@vegaprotocol/react-helpers';
import { t } from '@vegaprotocol/i18n';
import { CopyWithTooltip } from '@vegaprotocol/ui-toolkit';
import { TableRow } from '../../../../table';
import { TruncateInline } from '../../../../truncate/truncate';

View File

@ -1,4 +1,4 @@
import { t } from '@vegaprotocol/react-helpers';
import { t } from '@vegaprotocol/i18n';
import { TableRow, TableCell } from '../../../table';
import { BlockLink, PartyLink } from '../../../links/';
import { TimeAgo } from '../../../time-ago';

View File

@ -1,4 +1,4 @@
import { t } from '@vegaprotocol/react-helpers';
import { t } from '@vegaprotocol/i18n';
import type { components } from '../../../../../types/explorer';
import { Table, TableRow, TableHeader, TableCell } from '../../../table';

View File

@ -1,4 +1,4 @@
import { t } from '@vegaprotocol/react-helpers';
import { t } from '@vegaprotocol/i18n';
import zip from 'lodash/zip';
import type { components } from '../../../../../types/explorer';
import { Table, TableRow, TableHeader, TableCell } from '../../../table';

View File

@ -1,4 +1,4 @@
import { t } from '@vegaprotocol/react-helpers';
import { t } from '@vegaprotocol/i18n';
import type { components } from '../../../../../types/explorer';
import { Table, TableRow, TableHeader, TableCell } from '../../../table';
import { getValues } from './bound-factors';

View File

@ -1,4 +1,4 @@
import { t } from '@vegaprotocol/react-helpers';
import { t } from '@vegaprotocol/i18n';
import { Icon, Tooltip } from '@vegaprotocol/ui-toolkit';
import { PartyLink } from '../../../../links';
import {

View File

@ -1,4 +1,4 @@
import { t } from '@vegaprotocol/react-helpers';
import { t } from '@vegaprotocol/i18n';
import { Icon } from '@vegaprotocol/ui-toolkit';
import EpochOverview from '../../../../epoch-overview/epoch';
import { useExplorerFutureEpochQuery } from '../../../../epoch-overview/__generated__/Epoch';

View File

@ -1,4 +1,4 @@
import { t } from '@vegaprotocol/react-helpers';
import { t } from '@vegaprotocol/i18n';
import { AssetLink, MarketLink } from '../../../../links';
import { headerClasses, wrapperClasses } from '../transfer-details';
import type { components } from '../../../../../../types/explorer';

View File

@ -1,4 +1,4 @@
import { t } from '@vegaprotocol/react-helpers';
import { t } from '@vegaprotocol/i18n';
import type {
BatchCancellationInstruction,
BatchInstruction,

View File

@ -1,4 +1,4 @@
import { t } from '@vegaprotocol/react-helpers';
import { t } from '@vegaprotocol/i18n';
import { TxDetailsShared } from './shared/tx-details-shared';
import { TableWithTbody } from '../../table';

View File

@ -1,4 +1,4 @@
import { t } from '@vegaprotocol/react-helpers';
import { t } from '@vegaprotocol/i18n';
import type { BlockExplorerTransactionResult } from '../../../routes/types/block-explorer-response';
import type { TendermintBlocksResponse } from '../../../routes/blocks/tendermint-blocks-response';
import { TxDetailsShared } from './shared/tx-details-shared';

View File

@ -1,4 +1,4 @@
import { t } from '@vegaprotocol/react-helpers';
import { t } from '@vegaprotocol/i18n';
import type { BlockExplorerTransactionResult } from '../../../routes/types/block-explorer-response';
import type { TendermintBlocksResponse } from '../../../routes/blocks/tendermint-blocks-response';
import { TxDetailsShared } from './shared/tx-details-shared';

View File

@ -1,4 +1,4 @@
import { t } from '@vegaprotocol/react-helpers';
import { t } from '@vegaprotocol/i18n';
import { TxDetailsShared } from './shared/tx-details-shared';
import { TableCell, TableRow, TableWithTbody } from '../../table';
import { BlockLink } from '../../links';

View File

@ -1,6 +1,7 @@
import { useMemo } from 'react';
import { DATA_SOURCES } from '../../../config';
import { t, useFetch } from '@vegaprotocol/react-helpers';
import { t } from '@vegaprotocol/i18n';
import { useFetch } from '@vegaprotocol/react-helpers';
import { TxDetailsOrder } from './tx-order';
import type { BlockExplorerTransactionResult } from '../../../routes/types/block-explorer-response';
import type { TendermintBlocksResponse } from '../../../routes/blocks/tendermint-blocks-response';

View File

@ -1,4 +1,4 @@
import { t } from '@vegaprotocol/react-helpers';
import { t } from '@vegaprotocol/i18n';
import type { BlockExplorerTransactionResult } from '../../../routes/types/block-explorer-response';
import type { TendermintBlocksResponse } from '../../../routes/blocks/tendermint-blocks-response';
import { TxDetailsShared } from './shared/tx-details-shared';

View File

@ -1,4 +1,4 @@
import { t } from '@vegaprotocol/react-helpers';
import { t } from '@vegaprotocol/i18n';
import type { BlockExplorerTransactionResult } from '../../../routes/types/block-explorer-response';
import type { TendermintBlocksResponse } from '../../../routes/blocks/tendermint-blocks-response';
import { TxDetailsShared } from './shared/tx-details-shared';

View File

@ -1,4 +1,4 @@
import { t } from '@vegaprotocol/react-helpers';
import { t } from '@vegaprotocol/i18n';
import type { BlockExplorerTransactionResult } from '../../../routes/types/block-explorer-response';
import { BlockLink, NodeLink } from '../../links/';
import type { TendermintBlocksResponse } from '../../../routes/blocks/tendermint-blocks-response';

View File

@ -1,4 +1,4 @@
import { t } from '@vegaprotocol/react-helpers';
import { t } from '@vegaprotocol/i18n';
import type { BlockExplorerTransactionResult } from '../../../routes/types/block-explorer-response';
import type { TendermintBlocksResponse } from '../../../routes/blocks/tendermint-blocks-response';
import { TxDetailsShared } from './shared/tx-details-shared';

View File

@ -1,4 +1,4 @@
import { t } from '@vegaprotocol/react-helpers';
import { t } from '@vegaprotocol/i18n';
import type { BlockExplorerTransactionResult } from '../../../routes/types/block-explorer-response';
import type { TendermintBlocksResponse } from '../../../routes/blocks/tendermint-blocks-response';
import { TxDetailsShared } from './shared/tx-details-shared';

View File

@ -1,4 +1,4 @@
import { t } from '@vegaprotocol/react-helpers';
import { t } from '@vegaprotocol/i18n';
import type { BlockExplorerTransactionResult } from '../../../routes/types/block-explorer-response';
import { MarketLink } from '../../links';
import type { TendermintBlocksResponse } from '../../../routes/blocks/tendermint-blocks-response';

View File

@ -1,4 +1,4 @@
import { t } from '@vegaprotocol/react-helpers';
import { t } from '@vegaprotocol/i18n';
import { MarketLink } from '../../links';
import { TxDetailsShared } from './shared/tx-details-shared';
import { TableCell, TableRow, TableWithTbody } from '../../table';

View File

@ -1,4 +1,4 @@
import { t } from '@vegaprotocol/react-helpers';
import { t } from '@vegaprotocol/i18n';
import type { BlockExplorerTransactionResult } from '../../../routes/types/block-explorer-response';
import { MarketLink } from '../../links/';
import type { TendermintBlocksResponse } from '../../../routes/blocks/tendermint-blocks-response';

View File

@ -1,4 +1,4 @@
import { t } from '@vegaprotocol/react-helpers';
import { t } from '@vegaprotocol/i18n';
import type { BlockExplorerTransactionResult } from '../../../routes/types/block-explorer-response';
import type { TendermintBlocksResponse } from '../../../routes/blocks/tendermint-blocks-response';
import { TxDetailsShared } from './shared/tx-details-shared';

View File

@ -1,4 +1,4 @@
import { t } from '@vegaprotocol/react-helpers';
import { t } from '@vegaprotocol/i18n';
import type { BlockExplorerTransactionResult } from '../../../routes/types/block-explorer-response';
import type { TendermintBlocksResponse } from '../../../routes/blocks/tendermint-blocks-response';
import { TxDetailsShared } from './shared/tx-details-shared';

View File

@ -1,4 +1,4 @@
import { t } from '@vegaprotocol/react-helpers';
import { t } from '@vegaprotocol/i18n';
import type { BlockExplorerTransactionResult } from '../../../routes/types/block-explorer-response';
import { MarketLink } from '../../links';
import type { TendermintBlocksResponse } from '../../../routes/blocks/tendermint-blocks-response';

View File

@ -1,4 +1,4 @@
import { t } from '@vegaprotocol/react-helpers';
import { t } from '@vegaprotocol/i18n';
import type { BlockExplorerTransactionResult } from '../../../routes/types/block-explorer-response';
import { MarketLink } from '../../links/';
import type { TendermintBlocksResponse } from '../../../routes/blocks/tendermint-blocks-response';

View File

@ -1,4 +1,4 @@
import { t } from '@vegaprotocol/react-helpers';
import { t } from '@vegaprotocol/i18n';
import type { BlockExplorerTransactionResult } from '../../../routes/types/block-explorer-response';
import { MarketLink } from '../../links/';
import type { TendermintBlocksResponse } from '../../../routes/blocks/tendermint-blocks-response';

View File

@ -1,4 +1,4 @@
import { t } from '@vegaprotocol/react-helpers';
import { t } from '@vegaprotocol/i18n';
import type { BlockExplorerTransactionResult } from '../../../routes/types/block-explorer-response';
import type { TendermintBlocksResponse } from '../../../routes/blocks/tendermint-blocks-response';
import { TxDetailsShared } from './shared/tx-details-shared';

View File

@ -1,4 +1,4 @@
import { t } from '@vegaprotocol/react-helpers';
import { t } from '@vegaprotocol/i18n';
import { TxDetailsShared } from './shared/tx-details-shared';
import { TableCell, TableRow, TableWithTbody } from '../../table';
import { MarketLink } from '../../links';

View File

@ -1,4 +1,4 @@
import { t } from '@vegaprotocol/react-helpers';
import { t } from '@vegaprotocol/i18n';
import type { BlockExplorerTransactionResult } from '../../../routes/types/block-explorer-response';
import type { TendermintBlocksResponse } from '../../../routes/blocks/tendermint-blocks-response';
import { sharedHeaderProps, TxDetailsShared } from './shared/tx-details-shared';

View File

@ -1,4 +1,4 @@
import { t } from '@vegaprotocol/react-helpers';
import { t } from '@vegaprotocol/i18n';
import type { BlockExplorerTransactionResult } from '../../../routes/types/block-explorer-response';
import type { TendermintBlocksResponse } from '../../../routes/blocks/tendermint-blocks-response';
import { TxDetailsShared } from './shared/tx-details-shared';

View File

@ -1,4 +1,4 @@
import { t } from '@vegaprotocol/react-helpers';
import { t } from '@vegaprotocol/i18n';
import type { BlockExplorerTransactionResult } from '../../../routes/types/block-explorer-response';
import type { TendermintBlocksResponse } from '../../../routes/blocks/tendermint-blocks-response';
import { TxDetailsShared } from './shared/tx-details-shared';

View File

@ -1,5 +1,5 @@
import { useState } from 'react';
import { t } from '@vegaprotocol/react-helpers';
import { t } from '@vegaprotocol/i18n';
import get from 'lodash/get';
import { Select } from '@vegaprotocol/ui-toolkit';

View File

@ -1,4 +1,4 @@
import { t } from '@vegaprotocol/react-helpers';
import { t } from '@vegaprotocol/i18n';
import type { TendermintUnconfirmedTransactionsResponse } from '../../routes/txs/tendermint-unconfirmed-transactions-response.d';
interface TxsProps {

View File

@ -1,4 +1,4 @@
import { t } from '@vegaprotocol/react-helpers';
import { t } from '@vegaprotocol/i18n';
import type { components } from '../../../types/explorer';
interface TxOrderTypeProps {

View File

@ -1,7 +1,8 @@
import React from 'react';
import { FixedSizeList as List } from 'react-window';
import InfiniteLoader from 'react-window-infinite-loader';
import { t, useScreenDimensions } from '@vegaprotocol/react-helpers';
import { t } from '@vegaprotocol/i18n';
import { useScreenDimensions } from '@vegaprotocol/react-helpers';
import { TxsInfiniteListItem } from './txs-infinite-list-item';
import type { BlockExplorerTransactionResult } from '../../routes/types/block-explorer-response';
import EmptyList from '../empty-list/empty-list';

View File

@ -3,7 +3,8 @@ import { RenderFetched } from '../render-fetched';
import { TruncatedLink } from '../truncate/truncated-link';
import { TxOrderType } from './tx-order-type';
import { Table, TableRow, TableCell } from '../table';
import { t, useFetch } from '@vegaprotocol/react-helpers';
import { t } from '@vegaprotocol/i18n';
import { useFetch } from '@vegaprotocol/react-helpers';
import type { BlockExplorerTransactions } from '../../routes/types/block-explorer-response';
import isNumber from 'lodash/isNumber';
import { ChainResponseCode } from './details/chain-response-code/chain-reponse.code';

Some files were not shown because too many files have changed in this diff Show More