UNPKG

@dapplets/dapplet-extension

Version:
36 lines (35 loc) 1.05 kB
import * as React from 'react'; import { Bus } from '../../../../../../../common/bus'; import { ChainTypes, LoginRequest, WalletDescriptor, WalletTypes } from '../../../../../../../common/types'; interface IWalletPairingProps { data: { frameId: string; app: string; loginRequest: LoginRequest; }; bus: Bus; chains: ChainTypes[]; redirect: (route: string) => void; } interface IWalletPairingState { loading: boolean; descriptors: WalletDescriptor[]; wallets: { id: string; label: string; icon: any; }[]; } export declare class WalletPairing extends React.Component<IWalletPairingProps, IWalletPairingState> { constructor(props: any); componentDidMount(): Promise<void>; disconnectButtonClick(chain: ChainTypes, wallet: WalletTypes): Promise<void>; private _openMetamaskWebpage; getMeta(wallet: WalletTypes, chain: ChainTypes): { id: string; label: string; icon: any; }; render(): React.JSX.Element; } export {};