eosplayer
Version:
eosplayer is the glue layer of eosjs, which is packaged based on eosjs and provides better usability for the application layer. It can be used on browsers already installed scatter or in Dapp wallets.
27 lines (26 loc) • 1.04 kB
TypeScript
import Asset from '../model/asset';
import ChainHelper from './chain';
export default class ResHelper {
readonly _chain: ChainHelper;
readonly _code: string;
readonly _symStr: string;
readonly _admin: any;
constructor(_chain: ChainHelper, _code: string, _symStr: string, _admin?: any);
readonly admin: any;
resContract(): Promise<any>;
/**
* check res of an user
* @param account_name - account of the user
* @return {Promise<Asset>} - returns null if it's not exist.
*/
checkAsset(account_name: string): Promise<Asset>;
/**
* check res's info
* @return {Promise<Asset>} - returns null if it's not exist.
*/
checkInfo(): Promise<Asset>;
issue(account_name: string, quantity: string, memo: string): Promise<any>;
burn(account_name: string, quantity: string, memo: string): Promise<any>;
take(from: string, to: string, quantity: string, memo: string): Promise<any>;
change(account_name: string, from: string, to: string, memo: string): Promise<any>;
}