@btc-vision/walletconnect
Version:
The OP_NET Wallet Connect library helps your dApp connect to any compatible wallet.
33 lines • 1.44 kB
TypeScript
import { type MLDSASignature, type Unisat, UnisatChainType, UnisatSigner } from '@btc-vision/transaction';
import { AbstractRpcProvider } from 'opnet';
import { type WalletBase } from '../types';
declare class UnisatWallet implements WalletBase {
private walletBase;
private accountsChangedHookWrapper?;
private chainChangedHookWrapper?;
private disconnectHookWrapper?;
private _isConnected;
isInstalled(): boolean;
isConnected(): boolean;
canAutoConnect(): Promise<boolean>;
getWalletInstance(): Unisat | null;
getProvider(): Promise<AbstractRpcProvider | null>;
getSigner(): Promise<UnisatSigner>;
getChainId(): void;
connect(): Promise<string[]>;
disconnect(): Promise<void>;
getPublicKey(): Promise<string>;
getNetwork(): Promise<UnisatChainType>;
setAccountsChangedHook(fn: (accounts: string[]) => void): void;
removeAccountsChangedHook(): void;
setDisconnectHook(fn: () => void): void;
removeDisconnectHook(): void;
setChainChangedHook(fn: (chainType: UnisatChainType) => void): void;
removeChainChangedHook(): void;
getMLDSAPublicKey(): Promise<string | null>;
getHashedMLDSAKey(): Promise<string | null>;
signMLDSAMessage(_message: string): Promise<MLDSASignature | null>;
verifyMLDSASignature(_message: string, _signature: MLDSASignature): Promise<boolean>;
}
export default UnisatWallet;
//# sourceMappingURL=controller.d.ts.map