import { BigNumber } from "ethers/utils"; import { Serialisable, Serialised } from "./serialiser"; import { Address } from "./address"; import { ClassicTransaction, DirectTransaction, RelayFeeSchedule } from "./relayTransaction"; export declare class NetworkIdentifier { readonly chainId: number; readonly data: string; readonly gasLimit: number; readonly to: Address; readonly value: BigNumber; constructor(chainId: number, data: string, gasLimit: number, to: Address, value: BigNumber); private mNetworkString; toString(): string; equals(other: NetworkIdentifier): boolean; static prepareDataForComparison(data: string): string; } export declare class SenderTx implements Serialisable { readonly chainId: number; readonly to: Address; readonly from: Address; readonly data: string; readonly gasLimit: number; readonly startBlock: number; readonly value: BigNumber; /** * Unique identity of this tx. */ readonly id: string; readonly schedule: RelayFeeSchedule; /** * If it's known, the exact balance that the sender will have after this tx has been mined. * We may know this if this transaction is a topup tx which guarantees a certain amount of balance. */ readonly balanceAfter: BigNumber | null; static readonly TYPE = "sender-tx"; transactionEquals(tx: { chainId: number; data: string; gasLimit: BigNumber; to: string; value: BigNumber; }): boolean; readonly networkIdentifier: NetworkIdentifier; networkEquals(other: SenderTx): boolean; serialise(): { __type__: string; chainId: number; data: string; gasLimit: number; startBlock: number; to: string; from: string; value: string; id: string; schedule: RelayFeeSchedule; balanceAfter: string | undefined; }; static deserialise(serialisation: Serialised): SenderTx; constructor(chainId: number, to: Address, from: Address, data: string, gasLimit: number, startBlock: number, value: BigNumber, /** * Unique identity of this tx. */ id: string, schedule: RelayFeeSchedule, /** * If it's known, the exact balance that the sender will have after this tx has been mined. * We may know this if this transaction is a topup tx which guarantees a certain amount of balance. */ balanceAfter?: BigNumber | null); /** * Constructor for sender transactions that go via a relay contract * @param transaction * @param startBlock * @param chainId * @param relayGasOverhead */ static classic(transaction: ClassicTransaction, startBlock: number, chainId: number, relayGasOverhead: number): SenderTx; /** * Constructor for transactions that do not go via a relay contract, and instead go directly to the target * @param transaction * @param startBlock * @param chainId */ static direct(transaction: DirectTransaction, startBlock: number, chainId: number, relayGasOverhead: number): SenderTx; } //# sourceMappingURL=senderTx.d.ts.map