@web3-wallets-kit/types
Version:
Package for connecting with Ethereum wallets for dApp
20 lines (19 loc) • 591 B
TypeScript
declare module 'squarelink' {
import { Provider } from '@web3-wallets-kit/for-third-library-definitions';
export type SquarelinkProvider = Provider & {
enable(): Promise<void>;
};
export interface Network {
url: string;
chainId?: number;
}
export interface Options {
scope: string[];
useSync: boolean;
}
class Squarelink {
constructor(clientId: string, network?: string | Network, options?: Options);
getProvider(): Promise<SquarelinkProvider>;
}
export default Squarelink;
}