UNPKG

eros-sdk-react

Version:

eros sdk

133 lines (122 loc) 7.12 kB
import * as _tanstack_react_query from '@tanstack/react-query'; import { UseQueryOptions } from '@tanstack/react-query/src/types'; import { w as PohZkpassParams, r as UserTransactionType, x as UserTransactionNextPageParams, y as WalletAssetType, z as MetaPageType, F as BindItemType, G as BindInfoType, J as PohItemType, p as UserChainType, t as UserAssetToken, s as UserImportTokenType, K as WalletChainType, N as WalletNFTType } from './types-BrVeC0c8.mjs'; import { M as MyResponseType, i as isSuccess } from './request-B0CyrGFT.mjs'; declare const bindCexApi: (data: { cex: string; api_key: string; api_secret: string; api_passphrase?: string; }) => Promise<MyResponseType<any>>; declare const unBindApi: ({ type }: { type: string; }) => Promise<MyResponseType<any>>; declare const unBindWalletApi: ({ address }: { address: string; }) => Promise<MyResponseType<any>>; declare const verifyPohApi: ({ taskId, schemaId, publicFields, allocatorAddress, publicFieldsHash, allocatorSignature, uHash, validatorAddress, validatorSignature }: PohZkpassParams) => Promise<MyResponseType<any>>; declare const chooseIdentityApi: ({ identity }: { identity: string; }) => Promise<MyResponseType<any>>; declare const mintPassportNftApi: () => Promise<MyResponseType<any>>; declare const userImportTokenApi: (data: { chain_id: string; symbol: string; address: string; decimals: string; }) => Promise<MyResponseType<any>>; declare const getUserWalletTransactionsApi: (data: { address?: string; chain_id: string; page?: string; block_number?: number; index?: number; items_count?: number; }) => Promise<MyResponseType<{ transactions: UserTransactionType[]; next_page_params: UserTransactionNextPageParams; }>>; declare const getWalletAssetListApi: (data: { chain_id: string; address: string; }) => Promise<MyResponseType<{ asset_list: WalletAssetType[]; asset_total_balance: string; }>>; declare const getWalletListApi: (data: { page: number; page_size: number; }) => Promise<MyResponseType<MetaPageType<{ wallet_list: { address: string; chain_network: string; }[]; mpc_address: string; }>>>; declare function useBindList(options?: Partial<Omit<UseQueryOptions<BindItemType[]>, 'queryKey' | 'queryFn'>>): _tanstack_react_query.UseQueryResult<BindItemType[], Error>; declare function useBindInfo(options?: Partial<Omit<UseQueryOptions<BindInfoType>, 'queryKey' | 'queryFn'>>): _tanstack_react_query.UseQueryResult<BindInfoType, Error>; declare const bind_bindCexApi: typeof bindCexApi; declare const bind_unBindApi: typeof unBindApi; declare const bind_unBindWalletApi: typeof unBindWalletApi; declare const bind_useBindInfo: typeof useBindInfo; declare const bind_useBindList: typeof useBindList; declare namespace bind { export { bind_bindCexApi as bindCexApi, bind_unBindApi as unBindApi, bind_unBindWalletApi as unBindWalletApi, bind_useBindInfo as useBindInfo, bind_useBindList as useBindList }; } declare function usePohList(options?: Partial<Omit<UseQueryOptions<PohItemType[]>, 'queryKey' | 'queryFn'>>): _tanstack_react_query.UseQueryResult<PohItemType[], Error>; declare const poh_usePohList: typeof usePohList; declare const poh_verifyPohApi: typeof verifyPohApi; declare namespace poh { export { poh_usePohList as usePohList, poh_verifyPohApi as verifyPohApi }; } declare const user_chooseIdentityApi: typeof chooseIdentityApi; declare const user_mintPassportNftApi: typeof mintPassportNftApi; declare namespace user { export { user_chooseIdentityApi as chooseIdentityApi, user_mintPassportNftApi as mintPassportNftApi }; } declare function useChainListQuery(options?: Partial<Omit<UseQueryOptions<UserChainType[]>, 'queryKey' | 'queryFn'>>): _tanstack_react_query.UseQueryResult<UserChainType[], Error>; declare function useAssetListQuery({ chainId, ...options }: { chainId: number; } & Partial<Omit<UseQueryOptions<UserAssetToken[]>, 'queryKey' | 'queryFn'>>): _tanstack_react_query.UseQueryResult<UserAssetToken[], Error>; declare const USER_IMPORT_TOKEN_LIST_KEY = "match-user-import-token-list"; declare function useImportTokenListQuery({ chainId, ...options }: { chainId: number; } & Partial<Omit<UseQueryOptions<UserImportTokenType[]>, 'queryKey' | 'queryFn'>>): _tanstack_react_query.UseQueryResult<UserImportTokenType[], Error>; declare function useWalletChainListQuery(options?: Partial<Omit<UseQueryOptions<WalletChainType[]>, 'queryKey' | 'queryFn'>>): _tanstack_react_query.UseQueryResult<WalletChainType[], Error>; declare function useWalletNftListQuery({ chainId, address, ...options }: { chainId: string; address: string; } & Partial<Omit<UseQueryOptions<WalletNFTType[]>, 'queryKey' | 'queryFn'>>): _tanstack_react_query.UseQueryResult<WalletNFTType[], Error>; declare function useWalletAssetListQuery({ chainId, address, ...options }: { chainId: string; address: string; } & Partial<Omit<UseQueryOptions<{ asset_list: WalletAssetType[]; asset_total_balance: string; } | null>, 'queryKey' | 'queryFn'>>): _tanstack_react_query.UseQueryResult<{ asset_list: WalletAssetType[]; asset_total_balance: string; } | null, Error>; declare const wallet_USER_IMPORT_TOKEN_LIST_KEY: typeof USER_IMPORT_TOKEN_LIST_KEY; declare const wallet_getUserWalletTransactionsApi: typeof getUserWalletTransactionsApi; declare const wallet_getWalletAssetListApi: typeof getWalletAssetListApi; declare const wallet_getWalletListApi: typeof getWalletListApi; declare const wallet_useAssetListQuery: typeof useAssetListQuery; declare const wallet_useChainListQuery: typeof useChainListQuery; declare const wallet_useImportTokenListQuery: typeof useImportTokenListQuery; declare const wallet_useWalletAssetListQuery: typeof useWalletAssetListQuery; declare const wallet_useWalletChainListQuery: typeof useWalletChainListQuery; declare const wallet_useWalletNftListQuery: typeof useWalletNftListQuery; declare const wallet_userImportTokenApi: typeof userImportTokenApi; declare namespace wallet { export { wallet_USER_IMPORT_TOKEN_LIST_KEY as USER_IMPORT_TOKEN_LIST_KEY, wallet_getUserWalletTransactionsApi as getUserWalletTransactionsApi, wallet_getWalletAssetListApi as getWalletAssetListApi, wallet_getWalletListApi as getWalletListApi, wallet_useAssetListQuery as useAssetListQuery, wallet_useChainListQuery as useChainListQuery, wallet_useImportTokenListQuery as useImportTokenListQuery, wallet_useWalletAssetListQuery as useWalletAssetListQuery, wallet_useWalletChainListQuery as useWalletChainListQuery, wallet_useWalletNftListQuery as useWalletNftListQuery, wallet_userImportTokenApi as userImportTokenApi }; } declare const index_bind: typeof bind; declare const index_isSuccess: typeof isSuccess; declare const index_poh: typeof poh; declare const index_user: typeof user; declare const index_wallet: typeof wallet; declare namespace index { export { index_bind as bind, index_isSuccess as isSuccess, index_poh as poh, index_user as user, index_wallet as wallet }; } export { bind as b, index as i, poh as p, user as u, wallet as w };