UNPKG

@reef-defi/api-derive

Version:

Additional polkadot.js derives for Reef Chain

20 lines (19 loc) 797 B
import { ApiInterfaceRx } from '@polkadot/api/types'; import { Observable } from 'rxjs'; import { Vec } from '@polkadot/types'; import { CurrencyId } from '@reef-defi/types/interfaces'; /** * @name nativeCurrencyId * @returns native currencyId */ export declare function nativeCurrencyId(instanceId: string, api: ApiInterfaceRx): () => Observable<CurrencyId>; /** * @name allNonNativeCurrencyIds * @returns all nonnative currencyIds */ export declare function allNonNativeCurrencyIds(instanceId: string, api: ApiInterfaceRx): () => Observable<Vec<CurrencyId>>; /** * @name allCurrencyIds * @returns all currencyIds includes stable curerncyId and all nonnative currencyIds */ export declare function allCurrencyIds(instanceId: string, api: ApiInterfaceRx): () => Observable<CurrencyId[]>;