UNPKG

@dapplets/dapplet-extension

Version:
31 lines (30 loc) 1.32 kB
import { Falsy } from '../../../common/types'; import { StorageAggregator } from '../../moduleStorages/moduleStorage'; import GlobalConfigService from '../globalConfigService'; import { OverlayService } from '../overlayService'; import { WalletService } from '../walletService'; interface I_TokenFactory { } export declare class TokenRegistryService { private _globalConfigService; private _walletService; private overlayService; private _storageAggregator; private tokenFactory; constructor(_globalConfigService: GlobalConfigService, _walletService: WalletService, overlayService: OverlayService, _storageAggregator: StorageAggregator); private _init; getTokensByApp(appId: string): Promise<I_TokenFactory[]>; getAppsByToken(addressToken: string): Promise<string[]>; createAppToken(appId: string, symbol: string, name: string, referenceUrl: any, additionalCollaterals?: { addr: string; referenceUrl: string; }[]): Promise<void>; linkAppWithToken(appId: string, tokenAddress: string): Promise<void>; getErc20TokenInfo(tokenAddress: string | Falsy): Promise<{ name: any; address: string; symbol: any; }>; saveBlobToIpfs(data: any, targetStorages: any): Promise<import("../../../common/types").StorageRef>; } export {};