UNPKG

1.05 kBTypeScriptView Raw
1/**
2 * Vaccount Interface, Virtual Account for Effect Network
3 * @interface
4 * @property {number} id - Vaccount ID
5 * @property {number} nonce - Vaccount nonce
6 * @property {array} address - Vaccount address ['name', 'eosAccName']
7 * @property {string} balance - Vaccount balance
8 * @property {string} contract - Vaccount contract
9 * @property {string} quantity - Vaccount quantity
10 */
11export interface VAccount {
12 id: number;
13 nonce: number;
14 address: [string, string];
15 balance: {
16 quantity: string;
17 contract: string;
18 };
19}
20export interface efxTicker {
21 btc: number;
22 eth: number;
23 usd: number;
24}
25export interface DefiBoxPair {
26 id: number;
27 token0: {
28 contract: string;
29 symbol: string;
30 };
31 token1: {
32 contract: string;
33 symbol: string;
34 };
35 reserve0: string;
36 reserve1: string;
37 liquidity_token: number;
38 price0_last: string;
39 price1_last: string;
40 price0_cumulative_last: string;
41 price1_cumulative_last: number;
42 block_time_last: string;
43}