@effectai/effect-js
Version:
Effect Network Javscript/Typescript SDK (for [https://effect.network](https://effect.network))
47 lines (46 loc) • 1.44 kB
TypeScript
import { Client } from '../client';
import { Checksum256 } from '@wharfkit/antelope';
import { VAccount } from '../types/user';
import { TransactResult } from '@wharfkit/session';
import { AtomicAsset } from '../types/campaign';
export declare class VAccountService {
private client;
constructor(client: Client);
vtransfer(from_id: number, to_id: number, quantity: string): Promise<TransactResult>;
open(): Promise<TransactResult>;
/**
* Get vAccount row of the configured account and token contract
* @returns {Promise<VAccount>}
*/
get(): Promise<VAccount>;
/**
* Get all VAccount rows of the configured account and token contract
*/
getAll(): Promise<VAccount[]>;
/**
* Retrieve the avatar asset for the given account
* @param account
*/
getAvatarAsset(account: string): Promise<AtomicAsset>;
/**
* TODO: Figure out return type
* get pending balance
* @param accountId ID of the given acccount
* @returns the payment rows of the given `accountId`
*/
getPendingPayout: (accountId: number) => Promise<any>;
/**
* TODO: Define tests for this method
* Receive tokens from completed tasks.
* @param paymentId
* @returns
*/
payout(): Promise<TransactResult>;
/**
* Generate checkSum for vaccount
*/
generateCheckSumForVAccount(): {
conf: any;
keycs: Checksum256;
};
}