import { BaseCoin as CoinConfig } from '@aloe2/statics'; import { BaseKey, BaseTransaction, TransactionType } from '@aloe2/sdk-core'; import { ContractEntry, TransactionReceipt } from './iface'; /** * Tron transaction model. */ export declare class Transaction extends BaseTransaction { protected _validFrom: number; protected _validTo: number; protected _inputs: ContractEntry[]; protected _outputs: ContractEntry[]; private _decodedRawDataHex; private _transaction?; /** * Public constructor. * * @param coinConfig * @param rawTransaction */ constructor(coinConfig: Readonly, rawTransaction?: TransactionReceipt); /** * Parse the transaction raw data and record the most important fields. * * @param rawData Object from a tron transaction */ private recordRawDataFields; /** * Recalculate and update the transaction id. This should be done after changing any transaction * field since the the id is a hash of the transaction body. */ private updateId; /** * Extend the expiration date by the given number of milliseconds. * * @param extensionMs The number of milliseconds to extend the expiration by */ extendExpiration(extensionMs: number): void; /** * Get the signatures associated with this transaction. */ get signature(): string[]; /** * Get the time in milliseconds this transaction becomes valid and can be broadcasted to the * network. */ get validFrom(): number; /** * Get the expiration time in milliseconds. */ get validTo(): number; /** @inheritdoc */ get outputs(): ContractEntry[]; /** @inheritdoc */ get inputs(): ContractEntry[]; /** @inheritdoc */ canSign(key: BaseKey): boolean; /** * Sets this transaction * * @param {Transaction} tx transaction */ setTransactionReceipt(tx: TransactionReceipt): void; /** * Set the transaction type * * @param {TransactionType} transactionType The transaction type to be set */ setTransactionType(transactionType: TransactionType): void; /** @inheritdoc */ toJson(): TransactionReceipt; /** @inheritdoc */ toBroadcastFormat(): any; } //# sourceMappingURL=transaction.d.ts.map