@web3auth/wallet-connect-v2-adapter
Version:
wallet connect v2 adapter for web3auth
19 lines (18 loc) • 612 B
TypeScript
import type { EngineTypes, SignClientTypes } from "@walletconnect/types";
import { BaseAdapterSettings } from "@web3auth/base";
export interface OpenOptions {
uri: string;
chains?: string[];
}
export interface IQRCodeModal {
openModal: (options?: OpenOptions) => Promise<void>;
closeModal: () => void;
}
export interface IAdapterSettings {
walletConnectInitOptions?: SignClientTypes.Options;
qrcodeModal?: IQRCodeModal;
}
export interface WalletConnectV2AdapterOptions extends BaseAdapterSettings {
adapterSettings?: IAdapterSettings;
loginSettings?: EngineTypes.ConnectParams;
}