import type { evm } from '@shapeshiftoss/common-api'; import type * as mayachain from '../../parser/mayachain.js'; import type * as thorchain from '../../parser/thorchain.js'; import type { StandardTx } from '../../types.js'; import type * as cowswap from '../ethereum/parser/cowswap.js'; import type * as foxy from '../ethereum/parser/foxy.js'; import type * as uniV2 from '../ethereum/parser/uniV2.js'; import type * as weth from '../ethereum/parser/weth.js'; import type * as arbitrumBridge from '../parser/arbitrumBridge.js'; import type * as erc20 from '../parser/erc20.js'; import type * as rfox from '../parser/rfox.js'; import type * as zrx from '../parser/zrx.js'; 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; }