import type { evm } from '@shapeshiftoss/common-api'; import type * as mayachain from '../../parser/mayachain'; import type * as thorchain from '../../parser/thorchain'; import type { StandardTx } from '../../types'; import type * as cowswap from '../ethereum/parser/cowswap'; import type * as foxy from '../ethereum/parser/foxy'; import type * as uniV2 from '../ethereum/parser/uniV2'; import type * as weth from '../ethereum/parser/weth'; import type * as arbitrumBridge from '../parser/arbitrumBridge'; import type * as erc20 from '../parser/erc20'; import type * as rfox from '../parser/rfox'; import type * as zrx from '../parser/zrx'; export type Tx = evm.Tx; export type TxMetadata = cowswap.TxMetadata | erc20.TxMetadata | foxy.TxMetadata | thorchain.TxMetadata | mayachain.TxMetadata | uniV2.TxMetadata | weth.TxMetadata | zrx.TxMetadata | rfox.TxMetadata | arbitrumBridge.TxMetadata; export interface ParsedTx extends StandardTx { data?: TxMetadata; } export type TxSpecific = Partial>; export interface SubParser { parse(tx: T, address: string): Promise; }