UNPKG

1.29 kBTypeScriptView Raw
1import { type Client } from "../client";
2import { AtomicAsset, AtomicAssetSchema } from "../types/campaign";
3/**
4 * AtomicAssetsService
5 *
6 * This service is used to interact with the atomicassets contract.
7 *
8 * Read more on the atomicassets contracts here:
9 * https://github.com/pinknetworkx/atomicassets-contract/wiki/
10 */
11export declare class AtomicAssetsService {
12 private readonly client;
13 constructor(client: Client);
14 /**
15 * Retrieve atomic assets from the atomicassets contract for the given account
16 * @param account eosio account name
17 * @returns {Promise<AtomicAsset[]>} Returns an array of atomic assets
18 */
19 getAccountAssets: (account: string) => Promise<AtomicAsset[]>;
20 /**
21 * Retrieve atomic assets from the atomicassets contract
22 * @param account eosio account name
23 * @param assetId
24 * @returns {Promise<AtomicAsset>} Returns the atomic asset config
25 */
26 getAsset: (account: string, assetId: string, deserializeAsset?: boolean) => Promise<AtomicAsset>;
27 getCollection: (collectionName: string) => Promise<any>;
28 getSchema: (collectionName: string, schemaName: string) => Promise<AtomicAssetSchema>;
29 /**
30 * TODO
31 * Mint an asset to the given account
32 */
33 mintAsset: () => Promise<any>;
34}