mirror of
https://github.com/luxfi/explore.git
synced 2026-09-24 00:28:18 +00:00
Bump up Next.js, typescript and other packages (#2988)
bump up Next.js, typescript and other packages
This commit is contained in:
+2
-2
@@ -380,10 +380,10 @@ export default tseslint.config(
|
||||
numbers: true,
|
||||
} ],
|
||||
'@stylistic/quotes': [ 'error', 'single', {
|
||||
allowTemplateLiterals: true,
|
||||
allowTemplateLiterals: 'always',
|
||||
} ],
|
||||
'@stylistic/semi': [ 'error', 'always' ],
|
||||
'@stylistic/space-before-function-paren': [ 'error', 'never' ],
|
||||
'@stylistic/space-before-function-paren': [ 'error', { anonymous: 'never', named: 'never', asyncArrow: 'never', 'catch': 'always' } ],
|
||||
'@stylistic/space-before-blocks': [ 'error', 'always' ],
|
||||
'@stylistic/space-in-parens': [ 'error', 'never' ],
|
||||
'@stylistic/space-infix-ops': 'error',
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
export default function removeNonSignificantZeroBytes(bytes: Uint8Array) {
|
||||
export default function removeNonSignificantZeroBytes(bytes: Uint8Array<ArrayBuffer>): Uint8Array<ArrayBuffer> {
|
||||
return shouldRemoveBytes(bytes) ? bytes.filter((item, index) => index % 32) : bytes;
|
||||
}
|
||||
|
||||
|
||||
@@ -13,11 +13,11 @@ const feature = config.features.rewards;
|
||||
const LAST_EXPLORE_TIME_KEY = 'rewards_activity_last_explore_time';
|
||||
|
||||
type RewardsActivityEndpoint =
|
||||
| 'rewards:user_activity_track_tx'
|
||||
| 'rewards:user_activity_track_tx_confirm'
|
||||
| 'rewards:user_activity_track_contract'
|
||||
| 'rewards:user_activity_track_contract_confirm'
|
||||
| 'rewards:user_activity_track_usage';
|
||||
'rewards:user_activity_track_tx' |
|
||||
'rewards:user_activity_track_tx_confirm' |
|
||||
'rewards:user_activity_track_contract' |
|
||||
'rewards:user_activity_track_contract_confirm' |
|
||||
'rewards:user_activity_track_usage';
|
||||
|
||||
export default function useRewardsActivity() {
|
||||
const { apiToken } = useRewardsContext();
|
||||
|
||||
Vendored
+1
@@ -1,5 +1,6 @@
|
||||
/// <reference types="next" />
|
||||
/// <reference types="next/image-types/global" />
|
||||
/// <reference path="./.next/types/routes.d.ts" />
|
||||
|
||||
// NOTE: This file should not be edited
|
||||
// see https://nextjs.org/docs/pages/api-reference/config/typescript for more information.
|
||||
|
||||
@@ -14,8 +14,6 @@ const rewrites = require('./nextjs/rewrites');
|
||||
const moduleExports = {
|
||||
transpilePackages: [
|
||||
'react-syntax-highlighter',
|
||||
'swagger-client',
|
||||
'swagger-ui-react',
|
||||
],
|
||||
reactStrictMode: true,
|
||||
webpack(config) {
|
||||
|
||||
+7
-7
@@ -57,7 +57,7 @@
|
||||
"@metamask/post-message-stream": "^7.0.0",
|
||||
"@metamask/providers": "^10.2.1",
|
||||
"@monaco-editor/react": "^4.7.0",
|
||||
"@next/bundle-analyzer": "15.0.3",
|
||||
"@next/bundle-analyzer": "15.5.2",
|
||||
"@opentelemetry/api": "^1.4.1",
|
||||
"@opentelemetry/auto-instrumentations-node": "0.43.0",
|
||||
"@opentelemetry/exporter-jaeger": "1.27.0",
|
||||
@@ -87,7 +87,7 @@
|
||||
"dappscout-iframe": "0.3.0",
|
||||
"dayjs": "^1.11.5",
|
||||
"dom-to-image": "^2.6.0",
|
||||
"es-toolkit": "1.39.8",
|
||||
"es-toolkit": "1.39.10",
|
||||
"focus-visible": "^5.2.0",
|
||||
"gradient-avatar": "git+https://github.com/blockscout/gradient-avatar.git",
|
||||
"graphiql": "^4.1.2",
|
||||
@@ -97,7 +97,7 @@
|
||||
"magic-bytes.js": "1.8.0",
|
||||
"mixpanel-browser": "2.67.0",
|
||||
"monaco-editor": "^0.34.1",
|
||||
"next": "15.2.3",
|
||||
"next": "15.5.2",
|
||||
"next-themes": "0.4.4",
|
||||
"nextjs-routes": "^1.0.8",
|
||||
"node-fetch": "^3.2.9",
|
||||
@@ -120,7 +120,7 @@
|
||||
"react-number-format": "^5.3.1",
|
||||
"react-scroll": "^1.8.7",
|
||||
"rollbar": "2.26.4",
|
||||
"swagger-ui-react": "5.20.3",
|
||||
"swagger-ui-react": "5.28.0",
|
||||
"use-font-face-observer": "^1.3.0",
|
||||
"valibot": "0.38.0",
|
||||
"viem": "2.23.14",
|
||||
@@ -134,7 +134,7 @@
|
||||
"@next/eslint-plugin-next": "15.0.3",
|
||||
"@playwright/experimental-ct-react": "1.49.0",
|
||||
"@playwright/test": "1.49.0",
|
||||
"@stylistic/eslint-plugin": "2.10.1",
|
||||
"@stylistic/eslint-plugin": "5.2.3",
|
||||
"@svgr/webpack": "^6.5.1",
|
||||
"@tanstack/eslint-plugin-query": "5.60.1",
|
||||
"@testing-library/react": "^14.0.0",
|
||||
@@ -181,8 +181,8 @@
|
||||
"svgo": "^2.8.0",
|
||||
"ts-jest": "^29.0.3",
|
||||
"ts-node": "^10.9.1",
|
||||
"typescript": "5.4.2",
|
||||
"typescript-eslint": "8.14.0",
|
||||
"typescript": "5.9.2",
|
||||
"typescript-eslint": "8.41.0",
|
||||
"vite-plugin-svgr": "^2.2.2",
|
||||
"vite-tsconfig-paths": "4.3.2",
|
||||
"ws": "^8.17.1"
|
||||
|
||||
+17
-17
@@ -22,21 +22,21 @@ export type SmartContractLicenseType =
|
||||
'bsl_1_1';
|
||||
|
||||
export type SmartContractProxyType =
|
||||
| 'eip1167'
|
||||
| 'eip1967'
|
||||
| 'eip1822'
|
||||
| 'eip930'
|
||||
| 'eip2535'
|
||||
| 'eip7702'
|
||||
| 'erc7760'
|
||||
| 'master_copy'
|
||||
| 'basic_implementation'
|
||||
| 'basic_get_implementation'
|
||||
| 'comptroller'
|
||||
| 'clone_with_immutable_arguments'
|
||||
| 'resolved_delegate_proxy'
|
||||
| 'unknown'
|
||||
| null;
|
||||
'eip1167' |
|
||||
'eip1967' |
|
||||
'eip1822' |
|
||||
'eip930' |
|
||||
'eip2535' |
|
||||
'eip7702' |
|
||||
'erc7760' |
|
||||
'master_copy' |
|
||||
'basic_implementation' |
|
||||
'basic_get_implementation' |
|
||||
'comptroller' |
|
||||
'clone_with_immutable_arguments' |
|
||||
'resolved_delegate_proxy' |
|
||||
'unknown' |
|
||||
null;
|
||||
|
||||
export interface SmartContract {
|
||||
deployed_bytecode: string | null;
|
||||
@@ -101,8 +101,8 @@ export interface SmartContractExternalLibrary {
|
||||
|
||||
// VERIFICATION
|
||||
|
||||
export type SmartContractVerificationMethodApi = 'flattened-code' | 'standard-input' | 'sourcify' | 'multi-part'
|
||||
| 'vyper-code' | 'vyper-multi-part' | 'vyper-standard-input' | 'stylus-github-repository';
|
||||
export type SmartContractVerificationMethodApi = 'flattened-code' | 'standard-input' | 'sourcify' | 'multi-part' |
|
||||
'vyper-code' | 'vyper-multi-part' | 'vyper-standard-input' | 'stylus-github-repository';
|
||||
|
||||
export interface SmartContractVerificationConfigRaw {
|
||||
solidity_compiler_versions: Array<string>;
|
||||
|
||||
+3
-3
@@ -1,6 +1,6 @@
|
||||
export type ArrayElement<ArrType> = ArrType extends ReadonlyArray<infer ElementType>
|
||||
? ElementType
|
||||
: never;
|
||||
export type ArrayElement<ArrType> = ArrType extends ReadonlyArray<infer ElementType> ?
|
||||
ElementType :
|
||||
never;
|
||||
|
||||
export type ExcludeNull<T> = T extends null ? never : T;
|
||||
|
||||
|
||||
+39
-39
@@ -4,43 +4,43 @@ import type { EIP1193Provider } from 'viem';
|
||||
import type { Evaluate } from './utils';
|
||||
|
||||
type WalletProviderFlags =
|
||||
| 'isApexWallet'
|
||||
| 'isAvalanche'
|
||||
| 'isBackpack'
|
||||
| 'isBifrost'
|
||||
| 'isBitKeep'
|
||||
| 'isBitski'
|
||||
| 'isBlockWallet'
|
||||
| 'isBraveWallet'
|
||||
| 'isCoinbaseWallet'
|
||||
| 'isDawn'
|
||||
| 'isEnkrypt'
|
||||
| 'isExodus'
|
||||
| 'isFrame'
|
||||
| 'isFrontier'
|
||||
| 'isGamestop'
|
||||
| 'isHyperPay'
|
||||
| 'isImToken'
|
||||
| 'isKuCoinWallet'
|
||||
| 'isMathWallet'
|
||||
| 'isMetaMask'
|
||||
| 'isOkxWallet'
|
||||
| 'isOKExWallet'
|
||||
| 'isOneInchAndroidWallet'
|
||||
| 'isOneInchIOSWallet'
|
||||
| 'isOpera'
|
||||
| 'isPhantom'
|
||||
| 'isPortal'
|
||||
| 'isRabby'
|
||||
| 'isRainbow'
|
||||
| 'isStatus'
|
||||
| 'isTally'
|
||||
| 'isTokenPocket'
|
||||
| 'isTokenary'
|
||||
| 'isTrust'
|
||||
| 'isTrustWallet'
|
||||
| 'isXDEFI'
|
||||
| 'isZerion';
|
||||
'isApexWallet' |
|
||||
'isAvalanche' |
|
||||
'isBackpack' |
|
||||
'isBifrost' |
|
||||
'isBitKeep' |
|
||||
'isBitski' |
|
||||
'isBlockWallet' |
|
||||
'isBraveWallet' |
|
||||
'isCoinbaseWallet' |
|
||||
'isDawn' |
|
||||
'isEnkrypt' |
|
||||
'isExodus' |
|
||||
'isFrame' |
|
||||
'isFrontier' |
|
||||
'isGamestop' |
|
||||
'isHyperPay' |
|
||||
'isImToken' |
|
||||
'isKuCoinWallet' |
|
||||
'isMathWallet' |
|
||||
'isMetaMask' |
|
||||
'isOkxWallet' |
|
||||
'isOKExWallet' |
|
||||
'isOneInchAndroidWallet' |
|
||||
'isOneInchIOSWallet' |
|
||||
'isOpera' |
|
||||
'isPhantom' |
|
||||
'isPortal' |
|
||||
'isRabby' |
|
||||
'isRainbow' |
|
||||
'isStatus' |
|
||||
'isTally' |
|
||||
'isTokenPocket' |
|
||||
'isTokenary' |
|
||||
'isTrust' |
|
||||
'isTrustWallet' |
|
||||
'isXDEFI' |
|
||||
'isZerion';
|
||||
|
||||
export type WalletProvider = Evaluate<
|
||||
EIP1193Provider & {
|
||||
@@ -59,7 +59,7 @@ EIP1193Provider & {
|
||||
isConnected?: boolean;
|
||||
isPermanentlyDisconnected?: boolean;
|
||||
isUnlocked?: boolean;
|
||||
}
|
||||
| undefined;
|
||||
} |
|
||||
undefined;
|
||||
}
|
||||
>;
|
||||
|
||||
@@ -7,11 +7,11 @@ import TimeFormatToggle from 'ui/shared/time/TimeFormatToggle';
|
||||
|
||||
import AddressEpochRewardsTableItem from './AddressEpochRewardsTableItem';
|
||||
|
||||
type Props = {
|
||||
items: Array<AddressEpochRewardsItem>;
|
||||
isLoading?: boolean;
|
||||
top: number;
|
||||
};
|
||||
type Props = {
|
||||
items: Array<AddressEpochRewardsItem>;
|
||||
isLoading?: boolean;
|
||||
top: number;
|
||||
};
|
||||
|
||||
const AddressEpochRewardsTable = ({ items, isLoading, top }: Props) => {
|
||||
return (
|
||||
|
||||
@@ -14,10 +14,10 @@ import TokenEntity from 'ui/shared/entities/token/TokenEntity';
|
||||
import EpochRewardTypeTag from 'ui/shared/EpochRewardTypeTag';
|
||||
import TimeWithTooltip from 'ui/shared/time/TimeWithTooltip';
|
||||
|
||||
type Props = {
|
||||
item: AddressEpochRewardsItem;
|
||||
isLoading?: boolean;
|
||||
};
|
||||
type Props = {
|
||||
item: AddressEpochRewardsItem;
|
||||
isLoading?: boolean;
|
||||
};
|
||||
|
||||
const AddressEpochRewardsTableItem = ({ item, isLoading }: Props) => {
|
||||
const { valueStr } = getCurrencyValue({ value: item.amount, decimals: item.token.decimals });
|
||||
|
||||
@@ -11,12 +11,12 @@ import BeaconChainDepositsTableItem from './BeaconChainDepositsTableItem';
|
||||
|
||||
const feature = config.features.beaconChain;
|
||||
|
||||
type Props = {
|
||||
top: number;
|
||||
isLoading?: boolean;
|
||||
items: Array<DepositsItem>;
|
||||
view: 'list' | 'address' | 'block';
|
||||
};
|
||||
type Props = {
|
||||
top: number;
|
||||
isLoading?: boolean;
|
||||
items: Array<DepositsItem>;
|
||||
view: 'list' | 'address' | 'block';
|
||||
};
|
||||
|
||||
const BeaconChainDepositsTable = ({ items, isLoading, top, view }: Props) => {
|
||||
const { cutRef, renderedItemsNum } = useLazyRenderedList(items, !isLoading);
|
||||
|
||||
@@ -7,11 +7,11 @@ import TimeFormatToggle from 'ui/shared/time/TimeFormatToggle';
|
||||
|
||||
import OptimisticDepositsTableItem from './OptimisticDepositsTableItem';
|
||||
|
||||
type Props = {
|
||||
items: Array<OptimisticL2DepositsItem>;
|
||||
top: number;
|
||||
isLoading?: boolean;
|
||||
};
|
||||
type Props = {
|
||||
items: Array<OptimisticL2DepositsItem>;
|
||||
top: number;
|
||||
isLoading?: boolean;
|
||||
};
|
||||
|
||||
const OptimisticDepositsTable = ({ items, top, isLoading }: Props) => {
|
||||
return (
|
||||
|
||||
@@ -14,7 +14,7 @@ import TimeWithTooltip from 'ui/shared/time/TimeWithTooltip';
|
||||
|
||||
const rollupFeature = config.features.rollup;
|
||||
|
||||
type Props = { item: OptimisticL2DepositsItem; isLoading?: boolean };
|
||||
type Props = { item: OptimisticL2DepositsItem; isLoading?: boolean };
|
||||
|
||||
const OptimisticDepositsTableItem = ({ item, isLoading }: Props) => {
|
||||
|
||||
|
||||
@@ -8,11 +8,11 @@ import TimeFormatToggle from 'ui/shared/time/TimeFormatToggle';
|
||||
|
||||
import ScrollL2DepositsTableItem from './ScrollL2DepositsTableItem';
|
||||
|
||||
type Props = {
|
||||
items: Array<ScrollL2MessageItem>;
|
||||
top: number;
|
||||
isLoading?: boolean;
|
||||
};
|
||||
type Props = {
|
||||
items: Array<ScrollL2MessageItem>;
|
||||
top: number;
|
||||
isLoading?: boolean;
|
||||
};
|
||||
|
||||
const ScrollL2DepositsTable = ({ items, top, isLoading }: Props) => {
|
||||
return (
|
||||
|
||||
@@ -14,7 +14,7 @@ import TimeWithTooltip from 'ui/shared/time/TimeWithTooltip';
|
||||
|
||||
const rollupFeature = config.features.rollup;
|
||||
|
||||
type Props = { item: ScrollL2MessageItem; isLoading?: boolean };
|
||||
type Props = { item: ScrollL2MessageItem; isLoading?: boolean };
|
||||
|
||||
const ScrollL2DepositsTableItem = ({ item, isLoading }: Props) => {
|
||||
if (!rollupFeature.isEnabled || rollupFeature.type !== 'scroll') {
|
||||
|
||||
@@ -7,11 +7,11 @@ import TimeFormatToggle from 'ui/shared/time/TimeFormatToggle';
|
||||
|
||||
import DepositsTableItem from './DepositsTableItem';
|
||||
|
||||
type Props = {
|
||||
items: Array<ShibariumDepositsItem>;
|
||||
top: number;
|
||||
isLoading?: boolean;
|
||||
};
|
||||
type Props = {
|
||||
items: Array<ShibariumDepositsItem>;
|
||||
top: number;
|
||||
isLoading?: boolean;
|
||||
};
|
||||
|
||||
const DepositsTable = ({ items, top, isLoading }: Props) => {
|
||||
return (
|
||||
|
||||
@@ -12,7 +12,7 @@ import TimeWithTooltip from 'ui/shared/time/TimeWithTooltip';
|
||||
|
||||
const feature = config.features.rollup;
|
||||
|
||||
type Props = { item: ShibariumDepositsItem; isLoading?: boolean };
|
||||
type Props = { item: ShibariumDepositsItem; isLoading?: boolean };
|
||||
|
||||
const DepositsTableItem = ({ item, isLoading }: Props) => {
|
||||
|
||||
|
||||
@@ -7,11 +7,11 @@ import TimeFormatToggle from 'ui/shared/time/TimeFormatToggle';
|
||||
|
||||
import ZkEvmL2DepositsTableItem from './ZkEvmL2DepositsTableItem';
|
||||
|
||||
type Props = {
|
||||
items: Array<ZkEvmL2DepositsItem>;
|
||||
top: number;
|
||||
isLoading?: boolean;
|
||||
};
|
||||
type Props = {
|
||||
items: Array<ZkEvmL2DepositsItem>;
|
||||
top: number;
|
||||
isLoading?: boolean;
|
||||
};
|
||||
|
||||
const ZkEvmL2DepositsTable = ({ items, top, isLoading }: Props) => {
|
||||
return (
|
||||
|
||||
@@ -14,7 +14,7 @@ import TimeWithTooltip from 'ui/shared/time/TimeWithTooltip';
|
||||
|
||||
const rollupFeature = config.features.rollup;
|
||||
|
||||
type Props = { item: ZkEvmL2DepositsItem; isLoading?: boolean };
|
||||
type Props = { item: ZkEvmL2DepositsItem; isLoading?: boolean };
|
||||
|
||||
const ZkEvmL2DepositsTableItem = ({ item, isLoading }: Props) => {
|
||||
if (!rollupFeature.isEnabled || rollupFeature.type !== 'zkEvm') {
|
||||
|
||||
@@ -15,8 +15,8 @@ type SendTransactionArgs = {
|
||||
|
||||
export type SignTypedDataArgs<
|
||||
TTypedData extends
|
||||
| TypedData
|
||||
| {
|
||||
| TypedData |
|
||||
{
|
||||
[key: string]: unknown;
|
||||
} = TypedData,
|
||||
TPrimaryType extends string = string,
|
||||
|
||||
@@ -8,12 +8,12 @@ import TimeFormatToggle from 'ui/shared/time/TimeFormatToggle';
|
||||
import type { MessagesDirection } from './ArbitrumL2Messages';
|
||||
import ArbitrumL2MessagesTableItem from './ArbitrumL2MessagesTableItem';
|
||||
|
||||
type Props = {
|
||||
items: Array<ArbitrumL2MessagesItem>;
|
||||
direction: MessagesDirection;
|
||||
top: number;
|
||||
isLoading?: boolean;
|
||||
};
|
||||
type Props = {
|
||||
items: Array<ArbitrumL2MessagesItem>;
|
||||
direction: MessagesDirection;
|
||||
top: number;
|
||||
isLoading?: boolean;
|
||||
};
|
||||
|
||||
const ArbitrumL2MessagesTable = ({ items, direction, top, isLoading }: Props) => {
|
||||
return (
|
||||
|
||||
@@ -20,7 +20,7 @@ import type { MessagesDirection } from './ArbitrumL2Messages';
|
||||
|
||||
const rollupFeature = config.features.rollup;
|
||||
|
||||
type Props = { item: ArbitrumL2MessagesItem; isLoading?: boolean; direction: MessagesDirection };
|
||||
type Props = { item: ArbitrumL2MessagesItem; isLoading?: boolean; direction: MessagesDirection };
|
||||
|
||||
const ArbitrumL2MessagesTableItem = ({ item, direction, isLoading }: Props) => {
|
||||
if (!rollupFeature.isEnabled || rollupFeature.type !== 'arbitrum') {
|
||||
|
||||
@@ -8,10 +8,10 @@ import TimeFormatToggle from 'ui/shared/time/TimeFormatToggle';
|
||||
|
||||
import TacOperationsTableItem from './TacOperationsTableItem';
|
||||
|
||||
type Props = {
|
||||
items: Array<tac.OperationBriefDetails>;
|
||||
isLoading?: boolean;
|
||||
};
|
||||
type Props = {
|
||||
items: Array<tac.OperationBriefDetails>;
|
||||
isLoading?: boolean;
|
||||
};
|
||||
|
||||
const TacOperationsTable = ({ items, isLoading }: Props) => {
|
||||
return (
|
||||
|
||||
@@ -6,29 +6,29 @@ import sortFileTree from './sortFileTree';
|
||||
|
||||
export default function composeFileTree(files: Array<File>) {
|
||||
const result: FileTree = [];
|
||||
type Level = {
|
||||
result: FileTree;
|
||||
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
||||
} & Record<string, any>;
|
||||
const level: Level = { result };
|
||||
type Level = {
|
||||
result: FileTree;
|
||||
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
||||
} & Record<string, any>;
|
||||
const level: Level = { result };
|
||||
|
||||
files.forEach((file) => {
|
||||
const path = stripLeadingSlash(file.file_path);
|
||||
const segments = path.split('/');
|
||||
files.forEach((file) => {
|
||||
const path = stripLeadingSlash(file.file_path);
|
||||
const segments = path.split('/');
|
||||
|
||||
segments.reduce((acc, segment, currentIndex, array) => {
|
||||
if (!acc[segment]) {
|
||||
acc[segment] = { result: [] };
|
||||
acc.result.push({
|
||||
name: segment,
|
||||
...(currentIndex === array.length - 1 ? file : { children: acc[segment].result }),
|
||||
});
|
||||
}
|
||||
acc.result.sort(sortFileTree);
|
||||
segments.reduce((acc, segment, currentIndex, array) => {
|
||||
if (!acc[segment]) {
|
||||
acc[segment] = { result: [] };
|
||||
acc.result.push({
|
||||
name: segment,
|
||||
...(currentIndex === array.length - 1 ? file : { children: acc[segment].result }),
|
||||
});
|
||||
}
|
||||
acc.result.sort(sortFileTree);
|
||||
|
||||
return acc[segment];
|
||||
}, level);
|
||||
});
|
||||
return acc[segment];
|
||||
}, level);
|
||||
});
|
||||
|
||||
return result.sort(sortFileTree);
|
||||
return result.sort(sortFileTree);
|
||||
}
|
||||
|
||||
@@ -9,11 +9,11 @@ import type { QueryWithPagesResult } from 'ui/shared/pagination/useQueryWithPage
|
||||
import UserOpsListItem from 'ui/userOps/UserOpsListItem';
|
||||
import UserOpsTable from 'ui/userOps/UserOpsTable';
|
||||
|
||||
type Props = {
|
||||
query: QueryWithPagesResult<'general:user_ops'>;
|
||||
showTx?: boolean;
|
||||
showSender?: boolean;
|
||||
};
|
||||
type Props = {
|
||||
query: QueryWithPagesResult<'general:user_ops'>;
|
||||
showTx?: boolean;
|
||||
showSender?: boolean;
|
||||
};
|
||||
|
||||
const UserOpsContent = ({ query, showTx = true, showSender = true }: Props) => {
|
||||
|
||||
|
||||
@@ -10,13 +10,13 @@ import TimeFormatToggle from 'ui/shared/time/TimeFormatToggle';
|
||||
|
||||
import UserOpsTableItem from './UserOpsTableItem';
|
||||
|
||||
type Props = {
|
||||
items: Array<UserOpsItem>;
|
||||
isLoading?: boolean;
|
||||
top: number;
|
||||
showTx: boolean;
|
||||
showSender: boolean;
|
||||
};
|
||||
type Props = {
|
||||
items: Array<UserOpsItem>;
|
||||
isLoading?: boolean;
|
||||
top: number;
|
||||
showTx: boolean;
|
||||
showSender: boolean;
|
||||
};
|
||||
|
||||
const UserOpsTable = ({ items, isLoading, top, showTx, showSender }: Props) => {
|
||||
const multichainContext = useMultichainContext();
|
||||
|
||||
@@ -14,13 +14,13 @@ import UserOpEntity from 'ui/shared/entities/userOp/UserOpEntity';
|
||||
import TimeWithTooltip from 'ui/shared/time/TimeWithTooltip';
|
||||
import UserOpStatus from 'ui/shared/userOps/UserOpStatus';
|
||||
|
||||
type Props = {
|
||||
item: UserOpsItem;
|
||||
isLoading?: boolean;
|
||||
showTx: boolean;
|
||||
showSender: boolean;
|
||||
chainData?: ChainConfig;
|
||||
};
|
||||
type Props = {
|
||||
item: UserOpsItem;
|
||||
isLoading?: boolean;
|
||||
showTx: boolean;
|
||||
showSender: boolean;
|
||||
chainData?: ChainConfig;
|
||||
};
|
||||
|
||||
const UserOpsTableItem = ({ item, isLoading, showTx, showSender, chainData }: Props) => {
|
||||
return (
|
||||
|
||||
@@ -13,19 +13,19 @@ import BeaconChainWithdrawalsTableItem from './BeaconChainWithdrawalsTableItem';
|
||||
|
||||
const feature = config.features.beaconChain;
|
||||
|
||||
type Props = {
|
||||
top: number;
|
||||
isLoading?: boolean;
|
||||
} & ({
|
||||
items: Array<WithdrawalsItem>;
|
||||
view: 'list';
|
||||
} | {
|
||||
items: Array<AddressWithdrawalsItem>;
|
||||
view: 'address';
|
||||
} | {
|
||||
items: Array<BlockWithdrawalsItem>;
|
||||
view: 'block';
|
||||
});
|
||||
type Props = {
|
||||
top: number;
|
||||
isLoading?: boolean;
|
||||
} & ({
|
||||
items: Array<WithdrawalsItem>;
|
||||
view: 'list';
|
||||
} | {
|
||||
items: Array<AddressWithdrawalsItem>;
|
||||
view: 'address';
|
||||
} | {
|
||||
items: Array<BlockWithdrawalsItem>;
|
||||
view: 'block';
|
||||
});
|
||||
|
||||
const BeaconChainWithdrawalsTable = ({ items, isLoading, top, view }: Props) => {
|
||||
const { cutRef, renderedItemsNum } = useLazyRenderedList(items, !isLoading);
|
||||
|
||||
@@ -7,11 +7,11 @@ import TimeFormatToggle from 'ui/shared/time/TimeFormatToggle';
|
||||
|
||||
import OptimisticL2WithdrawalsTableItem from './OptimisticL2WithdrawalsTableItem';
|
||||
|
||||
type Props = {
|
||||
items: Array<OptimisticL2WithdrawalsItem>;
|
||||
top: number;
|
||||
isLoading?: boolean;
|
||||
};
|
||||
type Props = {
|
||||
items: Array<OptimisticL2WithdrawalsItem>;
|
||||
top: number;
|
||||
isLoading?: boolean;
|
||||
};
|
||||
|
||||
const OptimisticL2WithdrawalsTable = ({ items, top, isLoading }: Props) => {
|
||||
return (
|
||||
|
||||
@@ -14,7 +14,7 @@ import TimeWithTooltip from 'ui/shared/time/TimeWithTooltip';
|
||||
|
||||
const rollupFeature = config.features.rollup;
|
||||
|
||||
type Props = { item: OptimisticL2WithdrawalsItem; isLoading?: boolean };
|
||||
type Props = { item: OptimisticL2WithdrawalsItem; isLoading?: boolean };
|
||||
|
||||
const OptimisticL2WithdrawalsTableItem = ({ item, isLoading }: Props) => {
|
||||
const timeToEnd = item.challenge_period_end ? dayjs(item.challenge_period_end).fromNow(true) + ' left' : '';
|
||||
|
||||
@@ -8,11 +8,11 @@ import TimeFormatToggle from 'ui/shared/time/TimeFormatToggle';
|
||||
|
||||
import ScrollL2WithdrawalsTableItem from './ScrollL2WithdrawalsTableItem';
|
||||
|
||||
type Props = {
|
||||
items: Array<ScrollL2MessageItem>;
|
||||
top: number;
|
||||
isLoading?: boolean;
|
||||
};
|
||||
type Props = {
|
||||
items: Array<ScrollL2MessageItem>;
|
||||
top: number;
|
||||
isLoading?: boolean;
|
||||
};
|
||||
|
||||
const ScrollL2WithdrawalsTable = ({ items, top, isLoading }: Props) => {
|
||||
return (
|
||||
|
||||
@@ -14,7 +14,7 @@ import TimeWithTooltip from 'ui/shared/time/TimeWithTooltip';
|
||||
|
||||
const rollupFeature = config.features.rollup;
|
||||
|
||||
type Props = { item: ScrollL2MessageItem; isLoading?: boolean };
|
||||
type Props = { item: ScrollL2MessageItem; isLoading?: boolean };
|
||||
|
||||
const ScrollL2WithdrawalsTableItem = ({ item, isLoading }: Props) => {
|
||||
if (!rollupFeature.isEnabled || rollupFeature.type !== 'scroll') {
|
||||
|
||||
@@ -7,11 +7,11 @@ import TimeFormatToggle from 'ui/shared/time/TimeFormatToggle';
|
||||
|
||||
import WithdrawalsTableItem from './WithdrawalsTableItem';
|
||||
|
||||
type Props = {
|
||||
items: Array<ShibariumWithdrawalsItem>;
|
||||
top: number;
|
||||
isLoading?: boolean;
|
||||
};
|
||||
type Props = {
|
||||
items: Array<ShibariumWithdrawalsItem>;
|
||||
top: number;
|
||||
isLoading?: boolean;
|
||||
};
|
||||
|
||||
const WithdrawalsTable = ({ items, top, isLoading }: Props) => {
|
||||
return (
|
||||
|
||||
@@ -12,7 +12,7 @@ import TimeWithTooltip from 'ui/shared/time/TimeWithTooltip';
|
||||
|
||||
const feature = config.features.rollup;
|
||||
|
||||
type Props = { item: ShibariumWithdrawalsItem; isLoading?: boolean };
|
||||
type Props = { item: ShibariumWithdrawalsItem; isLoading?: boolean };
|
||||
|
||||
const WithdrawalsTableItem = ({ item, isLoading }: Props) => {
|
||||
if (!(feature.isEnabled && feature.type === 'shibarium')) {
|
||||
|
||||
@@ -7,11 +7,11 @@ import TimeFormatToggle from 'ui/shared/time/TimeFormatToggle';
|
||||
|
||||
import ZkEvmL2WithdrawalsTableItem from './ZkEvmL2WithdrawalsTableItem';
|
||||
|
||||
type Props = {
|
||||
items: Array<ZkEvmL2WithdrawalsItem>;
|
||||
top: number;
|
||||
isLoading?: boolean;
|
||||
};
|
||||
type Props = {
|
||||
items: Array<ZkEvmL2WithdrawalsItem>;
|
||||
top: number;
|
||||
isLoading?: boolean;
|
||||
};
|
||||
|
||||
const ZkEvmL2DepositsTable = ({ items, top, isLoading }: Props) => {
|
||||
return (
|
||||
|
||||
@@ -14,7 +14,7 @@ import TimeWithTooltip from 'ui/shared/time/TimeWithTooltip';
|
||||
|
||||
const rollupFeature = config.features.rollup;
|
||||
|
||||
type Props = { item: ZkEvmL2WithdrawalsItem; isLoading?: boolean };
|
||||
type Props = { item: ZkEvmL2WithdrawalsItem; isLoading?: boolean };
|
||||
|
||||
const ZkEvmL2WithdrawalsTableItem = ({ item, isLoading }: Props) => {
|
||||
if (!rollupFeature.isEnabled || rollupFeature.type !== 'zkEvm') {
|
||||
|
||||
Reference in New Issue
Block a user