1 | import { DefiBoxPair } from '../types/user';
|
2 | import { Client } from '../client';
|
3 | import { TransactResult } from '@wharfkit/session';
|
4 | export declare enum DefiBoxPairEnum {
|
5 | EosEfx = 191,
|
6 | EosUsdt = 12
|
7 | }
|
8 | export declare enum swapDirection {
|
9 | EfxToUsdt = "191-12",
|
10 | UsdtToEfx = "12-191"
|
11 | }
|
12 | export declare class TokenService {
|
13 | private client;
|
14 | constructor(client: Client);
|
15 | /**
|
16 | * Returns a DefiBox pair,
|
17 | * @param pairEnum DefiBoxPairEnum
|
18 | * @returns DefiBoxPair
|
19 | */
|
20 | getDefiBoxPair(pairEnum: DefiBoxPairEnum): Promise<DefiBoxPair>;
|
21 | /**
|
22 | * Returns the current EFX price in USDT from DefiBox
|
23 | * @returns EFX price in USDT
|
24 | */
|
25 | getEfxPrice(): Promise<number>;
|
26 | /**
|
27 | * Deposit EFX into vaccount
|
28 | */
|
29 | deposit(amount: number): Promise<TransactResult>;
|
30 | /**
|
31 | * TODO
|
32 | * Withdraw EFX from vaccount
|
33 | */
|
34 | /**
|
35 | * TODO
|
36 | * Claim EFX from vaccount to user
|
37 | */
|
38 | /**
|
39 | * TODO
|
40 | * Claim EFX from vaccount to staking account.
|
41 | */
|
42 | /**
|
43 | * Swaps out of EFX into USDT
|
44 | * @param amount The amount of EFX to swap out of
|
45 | * @returns TransactResult
|
46 | */
|
47 | swapOut(amount: number): Promise<TransactResult>;
|
48 | /**
|
49 | * Swaps into EFX from USDT
|
50 | * @param amount The amount of USDT to swap into EFX
|
51 | * @returns TransactResult
|
52 | */
|
53 | swapIn(amount: number): Promise<TransactResult>;
|
54 | }
|