@effectai/effect-js
Version:
Effect Network Javscript/Typescript SDK (for [https://effect.network](https://effect.network))
28 lines (27 loc) • 806 B
TypeScript
import { TransactResult } from "@wharfkit/session";
import { type Client } from "../client";
import { AtomicAsset, DaoConfig } from "../types/campaign";
export declare class DaoService {
private readonly client;
constructor(client: Client);
/**
* Retrieve the DAO config
* @returns {Promise<DaoConfig>} Returns the DAO config
*/
getConfig: () => Promise<DaoConfig>;
/**
* Set the avatar asset for the given account
* @param asset
*/
setAvatarAsset(asset: AtomicAsset): Promise<TransactResult>;
/**
* Retrieve the avatar for the given account
* @param account
* @returns
* @example { type: 0, asset_id: '2199025109172' }
*/
getAvatar(account: string): Promise<{
type: number;
asset_id: string;
}>;
}