Add user and transaction models.
This commit is contained in:
parent
d448083cec
commit
9d6217558c
@ -1,2 +1,3 @@
|
|||||||
export * from './transaction';
|
export * from './transaction';
|
||||||
export * from './settings';
|
export * from './settings';
|
||||||
|
export * from './user';
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
import {User} from './user';
|
||||||
|
|
||||||
export class BlocksBloom {
|
export class BlocksBloom {
|
||||||
low: number;
|
low: number;
|
||||||
blockFilter: string;
|
blockFilter: string;
|
||||||
@ -22,7 +24,9 @@ export class Tx {
|
|||||||
|
|
||||||
export class Transaction {
|
export class Transaction {
|
||||||
from: string;
|
from: string;
|
||||||
|
sender: User;
|
||||||
to: string;
|
to: string;
|
||||||
|
recipient: User;
|
||||||
token: Token;
|
token: Token;
|
||||||
tx: Tx;
|
tx: Tx;
|
||||||
value: number;
|
value: number;
|
||||||
@ -34,5 +38,6 @@ export class Conversion {
|
|||||||
sourceToken: Token;
|
sourceToken: Token;
|
||||||
toValue: number;
|
toValue: number;
|
||||||
trader: string;
|
trader: string;
|
||||||
|
user: User;
|
||||||
tx: Tx;
|
tx: Tx;
|
||||||
}
|
}
|
||||||
|
22
src/app/_models/user.ts
Normal file
22
src/app/_models/user.ts
Normal file
@ -0,0 +1,22 @@
|
|||||||
|
export class User {
|
||||||
|
dateRegistered: number;
|
||||||
|
vcard: {
|
||||||
|
fn: string;
|
||||||
|
version: string;
|
||||||
|
tel: [{
|
||||||
|
meta: {
|
||||||
|
TYP: string;
|
||||||
|
};
|
||||||
|
value: string[];
|
||||||
|
}];
|
||||||
|
};
|
||||||
|
key: {
|
||||||
|
ethereum: string[];
|
||||||
|
};
|
||||||
|
location: {
|
||||||
|
latitude: string;
|
||||||
|
longitude: string;
|
||||||
|
external: {};
|
||||||
|
};
|
||||||
|
selling: string[];
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user