myria-core-sdk
Version:
Latest version SDK
16 lines (15 loc) • 988 B
TypeScript
import { MintedAssetType } from "../../types/MintTypes";
import { APIResponseType } from '../../types/APIResponseType';
import { AssetVaultDetailsRequestAPI, AssetVaultDetailsResponseAPI } from "../../types/AssetTypes";
import { CreateVaultERC721ByEthKeyParams } from "../../types/VaultType";
import { EnvTypes } from "../../typesBundle";
export declare class AssetAPI {
private axiosInstance;
private axiosWrapper;
constructor(env: EnvTypes);
getAssetVaultsByStarkKey(starkKey: string): Promise<any>;
createAssetVaultsByEthAddress(ethAddress: string): Promise<APIResponseType<AssetVaultDetailsResponseAPI>>;
createERC721VaultByEthAddress(payload: CreateVaultERC721ByEthKeyParams): Promise<APIResponseType<AssetVaultDetailsResponseAPI>>;
getNftAssets(starkKey: string): Promise<APIResponseType<MintedAssetType[]> | undefined>;
getAssetVaultDetails(params: AssetVaultDetailsRequestAPI): Promise<APIResponseType<AssetVaultDetailsResponseAPI> | undefined>;
}