import { Address } from '@xchainjs/xchain-util'; export type ERC20Tx = { timeStamp: string; hash: string; from: string; contractAddress: string; to: string; value: string; tokenName: string; tokenSymbol: string; tokenDecimal: string; }; export type GasAssetTx = { timeStamp: string; hash: string; from: string; contractAddress: string; to: string; value: string; }; export type GetERC20TxsResponse = { status: string; message: string; result: ERC20Tx[]; }; export type GetGasAssetTxsResponse = { status: string; message: string; result: GasAssetTx[]; }; export type LogEventParam = { name: string; type: string; value: string; }; export type LogEvent = { sender_contract_decimals: number; sender_contract_ticker_symbol: string | null | undefined; sender_address: string | null | undefined; decoded: DecodedEvent | null | undefined; }; export type DecodedEvent = { name: string; params: LogEventParam[] | null | undefined; }; export type GetTransactionsItem = { tx_hash: string; block_signed_at: string; from_address: string; to_address: string; value: string; log_events: LogEvent[]; }; export type GetTransactionsResponse = { data: { address: string; items: GetTransactionsItem[]; pagination: { has_more: boolean; page_number: number; page_size: number; total_count: number | null; }; }; }; export type GetTransactionResponse = { data: { items: GetTransactionsItem[]; }; }; export type getTxsParams = { address: Address; offset: number; limit: number; assetAddress: string | undefined; };