UNPKG

@ledgerhq/coin-tron

Version:
14 lines 1.09 kB
import type { Account, OperationType } from "@ledgerhq/types-live"; import { BigNumber } from "bignumber.js"; import { type AccountInfo } from "../logic/utils"; import type { BandwidthInfo, NetworkInfo, Transaction, TrongridTxInfo, TronOperation, TronOperationMode, TronResources, TronTransactionInfo } from "../types"; export declare const isParentTx: (tx: TrongridTxInfo) => boolean; export declare const getEstimatedBlockSize: (a: Account, t: Transaction) => BigNumber; export declare const getOperationTypefromMode: (mode: TronOperationMode) => OperationType; export declare const txInfoToOperation: (id: string, address: string, tx: TrongridTxInfo) => TronOperation | null | undefined; export declare const extractBandwidthInfo: (networkInfo: NetworkInfo | null | undefined) => BandwidthInfo; export declare const defaultTronResources: TronResources; export declare function getTronResources(acc: AccountInfo & { address: string; }, txs?: TrongridTxInfo[], cacheTransactionInfoById?: Record<string, TronTransactionInfo>): Promise<TronResources>; //# sourceMappingURL=utils.d.ts.map