src/app/_models/transaction.ts
Transaction object interface
Properties |
from |
from:
|
Type : string
|
recipient |
recipient:
|
Type : AccountDetails
|
sender |
sender:
|
Type : AccountDetails
|
to |
to:
|
Type : string
|
token |
token:
|
Type : TxToken
|
tx |
tx:
|
Type : Tx
|
type |
type:
|
Type : string
|
Optional |
value |
value:
|
Type : number
|
import { AccountDetails } from '@app/_models/account';
/** BlocksBloom object interface */
interface BlocksBloom {
low: number;
blockFilter: string;
blocktxFilter: string;
alg: string;
filterRounds: number;
}
/** Conversion object interface */
interface Conversion {
destinationToken: TxToken;
fromValue: number;
sourceToken: TxToken;
toValue: number;
trader: string;
user: AccountDetails;
tx: Tx;
}
/** Transaction object interface */
interface Transaction {
from: string;
sender: AccountDetails;
to: string;
recipient: AccountDetails;
token: TxToken;
tx: Tx;
value: number;
type?: string;
}
/** Transaction data interface */
interface Tx {
block: number;
success: boolean;
timestamp: number;
txHash: string;
txIndex: number;
}
/** Transaction token object interface */
interface TxToken {
address: string;
name: string;
symbol: string;
}
/** @exports */
export { BlocksBloom, Conversion, Transaction, Tx, TxToken };