/****************************************************************************** * * (C) 2022 AhnLab Blockchain Company, Inc. All rights reserved. * Any part of this source code can not be copied with any method without * prior written permission from the author or authorized person. * ******************************************************************************/ /// import { createUnsignedTxForTransferingNativeCurrencyDto, CreateUnsignedTxForTransferingTokenDto, TxModel, TxStatus, TxType, TX_SOURCE } from '../main/transactions/interface'; declare const TransactionUtil: { parseTransactionWithAbi: (abi: string, data: string) => any; updateTxStatus: ({ txs, txId, change, history }: { txs: any; txId: any; change: any; history: any; }) => any; calculateV: (arg: { r: string; s: string; hash: string; address: string; vsource: number; chainId: number; }) => number; concatSig: (v: number, r: Buffer, s: Buffer) => string; serializeEthTx: (unsignedTx: any) => string; getSignTypeForMpcJwt: ({ autoconfirm, txType }: { autoconfirm: any; txType: any; }) => "autoconfirm" | "retry"; validateTxParams: (txParams: any, address: any) => void; normalizeTxParams: (txParams: any, lowerCase?: boolean) => {}; makeTxHistory: (status: TxStatus | TxType, tx: { maxFeePerGas?: string; maxPriorityFeePerGas?: string; value?: string; gasPrice?: string; confirmations?: number; errMsg?: string; }) => { eventKey: TxStatus.FAILED; message: string; timestamp: number; maxFeePerGas?: undefined; maxPriorityFeePerGas?: undefined; value?: undefined; gasPrice?: undefined; } | { eventKey: TxType | TxStatus.DROPPED | TxStatus.APPROVED | TxStatus.SUMMITTED | TxStatus.CONFIRMED; maxFeePerGas: string; maxPriorityFeePerGas: string; value: string; timestamp: number; message?: undefined; gasPrice?: undefined; } | { eventKey: TxType | TxStatus.DROPPED | TxStatus.APPROVED | TxStatus.SUMMITTED | TxStatus.CONFIRMED; gasPrice: string; value: string; timestamp: number; message?: undefined; maxFeePerGas?: undefined; maxPriorityFeePerGas?: undefined; }; getMaxEthBalance: ({ gasPrice, gasLimit, balance }: { gasPrice: any; gasLimit: any; balance: any; }) => string; getEip1559MaxEthBalance: ({ gasLimit, maxFeePerGas, balance }: { gasLimit: any; maxFeePerGas: any; balance: any; }) => string; addPendingTx: ({ txs, item }: { txs: TxModel[]; item: any; }) => any[]; createSpeedupTxParams: (tx: any, gasData: any, gasLimit: any, txSource: TX_SOURCE) => any; createUnsignedTxForTransferingNativeCurrency: (dto: createUnsignedTxForTransferingNativeCurrencyDto) => any; createUnsignedTxForSelectedNonce: (dto: createUnsignedTxForTransferingNativeCurrencyDto) => any; createUnsignedTxForTransferingToken: (dto: CreateUnsignedTxForTransferingTokenDto) => { maxFeePerGas: string; maxPriorityFeePerGas: string; gasPrice?: undefined; type: number; to: string; chainId: number; gasLimit: string; value: string; data: string; } | { gasPrice: string; maxFeePerGas?: undefined; maxPriorityFeePerGas?: undefined; type: number; to: string; chainId: number; gasLimit: string; value: string; data: string; }; createCancelTxParams: (tx: any, gasData: any, gasLimit: any) => any; parseGasDataForTx: (maxFeePerGas?: string, maxPriorityFeePerGas?: string, gasPrice?: string) => { maxFeePerGas: string; maxPriorityFeePerGas: string; gasPrice?: undefined; } | { gasPrice: string; maxFeePerGas?: undefined; maxPriorityFeePerGas?: undefined; }; createTxHash: (txParams: any) => string; createRawTx: ({ txParams, v, r, s }: { txParams: any; v: any; r: any; s: any; }) => string; showTxReceivedToast: (timeStamp: number) => boolean; }; export default TransactionUtil;