@dapplets/dapplet-extension
Version:
The Bridge to the Augmented Web.
31 lines (30 loc) • 878 B
TypeScript
import * as React from 'react';
import { Bus } from '../../../../../../../common/bus';
import { LoginRequest, WalletDescriptor } from '../../../../../../../common/types';
interface Props {
data: {
frameId: string;
app: string;
loginRequest: LoginRequest;
};
bus: Bus;
redirect: (route: string) => void;
}
interface State {
loading: boolean;
descriptors: WalletDescriptor[];
signing: {
wallet: string;
error?: string | null;
} | null;
error: string;
}
export declare class ConnectedWallets extends React.Component<Props, State> {
constructor(props: any);
componentDidMount(): Promise<void>;
loadData(): Promise<void>;
selectWallet(wallet: string, chain: string): Promise<void>;
loginWallet(wallet: string, chain: string): Promise<void>;
render(): React.JSX.Element;
}
export {};