UNPKG

@effectai/effect-js

Version:

Effect Network Javscript/Typescript SDK (for [https://effect.network](https://effect.network))

35 lines (34 loc) 1.29 kB
import { type Client } from "../client"; import { AtomicAsset, AtomicAssetSchema } from "../types/campaign"; /** * AtomicAssetsService * * This service is used to interact with the atomicassets contract. * * Read more on the atomicassets contracts here: * https://github.com/pinknetworkx/atomicassets-contract/wiki/ */ export declare class AtomicAssetsService { private readonly client; constructor(client: Client); /** * Retrieve atomic assets from the atomicassets contract for the given account * @param account eosio account name * @returns {Promise<AtomicAsset[]>} Returns an array of atomic assets */ getAccountAssets: (account: string) => Promise<AtomicAsset[]>; /** * Retrieve atomic assets from the atomicassets contract * @param account eosio account name * @param assetId * @returns {Promise<AtomicAsset>} Returns the atomic asset config */ getAsset: (account: string, assetId: string, deserializeAsset?: boolean) => Promise<AtomicAsset>; getCollection: (collectionName: string) => Promise<any>; getSchema: (collectionName: string, schemaName: string) => Promise<AtomicAssetSchema>; /** * TODO * Mint an asset to the given account */ mintAsset: () => Promise<any>; }