UNPKG

806 BTypeScriptView Raw
1import { TransactResult } from "@wharfkit/session";
2import { type Client } from "../client";
3import { AtomicAsset, DaoConfig } from "../types/campaign";
4export declare class DaoService {
5 private readonly client;
6 constructor(client: Client);
7 /**
8 * Retrieve the DAO config
9 * @returns {Promise<DaoConfig>} Returns the DAO config
10 */
11 getConfig: () => Promise<DaoConfig>;
12 /**
13 * Set the avatar asset for the given account
14 * @param asset
15 */
16 setAvatarAsset(asset: AtomicAsset): Promise<TransactResult>;
17 /**
18 * Retrieve the avatar for the given account
19 * @param account
20 * @returns
21 * @example { type: 0, asset_id: '2199025109172' }
22 */
23 getAvatar(account: string): Promise<{
24 type: number;
25 asset_id: string;
26 }>;
27}