UNPKG

1.44 kBTypeScriptView Raw
1import { Client } from '../client';
2import { Checksum256 } from '@wharfkit/antelope';
3import { VAccount } from '../types/user';
4import { TransactResult } from '@wharfkit/session';
5import { AtomicAsset } from '../types/campaign';
6export declare class VAccountService {
7 private client;
8 constructor(client: Client);
9 vtransfer(from_id: number, to_id: number, quantity: string): Promise<TransactResult>;
10 open(): Promise<TransactResult>;
11 /**
12 * Get vAccount row of the configured account and token contract
13 * @returns {Promise<VAccount>}
14 */
15 get(): Promise<VAccount>;
16 /**
17 * Get all VAccount rows of the configured account and token contract
18 */
19 getAll(): Promise<VAccount[]>;
20 /**
21 * Retrieve the avatar asset for the given account
22 * @param account
23 */
24 getAvatarAsset(account: string): Promise<AtomicAsset>;
25 /**
26 * TODO: Figure out return type
27 * get pending balance
28 * @param accountId ID of the given acccount
29 * @returns the payment rows of the given `accountId`
30 */
31 getPendingPayout: (accountId: number) => Promise<any>;
32 /**
33 * TODO: Define tests for this method
34 * Receive tokens from completed tasks.
35 * @param paymentId
36 * @returns
37 */
38 payout(): Promise<TransactResult>;
39 /**
40 * Generate checkSum for vaccount
41 */
42 generateCheckSumForVAccount(): {
43 conf: any;
44 keycs: Checksum256;
45 };
46}