/// import BigNumber from "bignumber.js"; import { ITransactionOnNetwork } from "./interfaceOfNetwork"; export interface ITransactionFetcher { /** * Fetches the state of a {@link Transaction}. */ getTransaction(txHash: string): Promise; } export interface IPlainTransactionObject { nonce: number; value: string; receiver: string; sender: string; gasPrice: number; gasLimit: number; data?: string; chainID: string; version: number; options?: number; signature?: string; } export interface ISignature { hex(): string; } export interface IAddress { bech32(): string; } export interface ITransactionValue { toString(): string; } export interface IAccountBalance { toString(): string; } export interface INonce { valueOf(): number; } export interface IChainID { valueOf(): string; } export interface IGasLimit { valueOf(): number; } export interface IGasPrice { valueOf(): number; } export interface ITransactionPayload { length(): number; encoded(): string; toString(): string; valueOf(): Buffer; } export interface ITokenPayment { readonly tokenIdentifier: string; readonly nonce: number; readonly amountAsBigInteger: BigNumber.Value; valueOf(): BigNumber.Value; }