UNPKG

@broxus/tvm-connect

Version:

Nekoton-compatible wallets connector.

20 lines (19 loc) 865 B
import { type Provider, ProviderRpcClient } from 'everscale-inpage-provider'; import { NekotonConnector, type NekotonConnectorCtorParams } from '../core'; import { ConnectionType } from '../types'; interface SparXWalletCtorParams extends NekotonConnectorCtorParams { autoInit?: boolean; fallbackAttempts?: number; } type SparXRpcFallbackParams = { fallbackAttempts?: number; }; export declare const sparxRpcFallback: (opts?: SparXRpcFallbackParams) => (client?: Provider) => Promise<Provider>; export declare class SparXWallet extends NekotonConnector { protected readonly params?: Readonly<SparXWalletCtorParams> | undefined; readonly name = "SparXWallet"; readonly type = ConnectionType.NEKOTON_WALLET; constructor(params?: Readonly<SparXWalletCtorParams> | undefined); init(): Promise<ProviderRpcClient | undefined>; } export {};