cic-staff-client/src/app/_models/transaction.ts

39 lines
573 B
TypeScript
Raw Normal View History

export class BlocksBloom {
low: number;
blockFilter: string;
blocktxFilter: string;
alg: string;
filterRounds: number;
}
export class Token {
address: string;
name: string;
symbol: string;
}
export class Tx {
block: number;
success: boolean;
timestamp: number;
txHash: string;
txIndex: number;
}
export class Transaction {
from: string;
to: string;
token: Token;
tx: Tx;
value: number;
}
export class Conversion {
destinationToken: Token;
fromValue: number;
sourceToken: Token;
toValue: number;
trader: string;
tx: Tx;
}