2020-11-25 08:17:37 +01:00
|
|
|
import {User} from './user';
|
|
|
|
|
2020-11-04 13:34:37 +01:00
|
|
|
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;
|
2020-11-25 08:17:37 +01:00
|
|
|
sender: User;
|
2020-11-04 13:34:37 +01:00
|
|
|
to: string;
|
2020-11-25 08:17:37 +01:00
|
|
|
recipient: User;
|
2020-11-04 13:34:37 +01:00
|
|
|
token: Token;
|
|
|
|
tx: Tx;
|
|
|
|
value: number;
|
|
|
|
}
|
|
|
|
|
|
|
|
export class Conversion {
|
|
|
|
destinationToken: Token;
|
|
|
|
fromValue: number;
|
|
|
|
sourceToken: Token;
|
|
|
|
toValue: number;
|
|
|
|
trader: string;
|
2020-11-25 08:17:37 +01:00
|
|
|
user: User;
|
2020-11-04 13:34:37 +01:00
|
|
|
tx: Tx;
|
|
|
|
}
|