UNPKG

autsequi

Version:

Web3modal's provider layer abstraction for simple implementation of web3 wallet connections

20 lines (14 loc) 406 B
import { IAbstractConnectorOptions } from '../../helpers'; export interface IDcentConnectorOptions extends IAbstractConnectorOptions { rpcUrl: string; chainId: number; } const ConnectToDcentWallet = async ( DcentProvider: any, opts: IDcentConnectorOptions ) => { const provider = new DcentProvider(opts); await provider.enable(); return provider; }; export default ConnectToDcentWallet;