UNPKG

@multiversx/sdk-dapp-swap

Version:

A library to hold the main logic for swapping between tokens on the MultiversX blockchain

36 lines 1.25 kB
import { TokensType } from 'queries'; import { EsdtType, FactoryType } from 'types'; interface GetTokensType { limit?: number; offset?: number; identifiers?: string[]; enabledSwaps?: boolean; } interface UseTokensType { pricePolling?: boolean; } export declare const useTokens: (options?: UseTokensType) => { swapConfig: FactoryType | undefined; wrappedEgld: EsdtType | undefined; isTokensError: boolean | undefined; isTokensLoading: boolean | undefined; tokens: { price: string | undefined; valueUSD: string; usdPrice?: string | undefined; balance: string | null; identifier: string; owner: string; type?: "FungibleESDT-LP" | undefined; previous24hPrice?: string | undefined; previous7dPrice?: string | undefined; name: string; decimals: number; ticker: string; assets?: import("types").AssetsType | undefined; }[]; getTokens: (options?: GetTokensType) => void; refetch: (options?: Partial<import("@apollo/client").LazyQueryHookOptions<TokensType, import("@apollo/client").OperationVariables>> | undefined) => Promise<TokensType | undefined>; }; export {}; //# sourceMappingURL=useTokens.d.ts.map