UNPKG

@btc-vision/walletconnect

Version:

The OP_NET Wallet Connect library helps your dApp connect to any compatible wallet.

26 lines 1.22 kB
import { Address, type MLDSASignature, type Unisat, UnisatSigner } from '@btc-vision/transaction'; import { AbstractRpcProvider } from 'opnet'; import type { WalletBalance, WalletConnectNetwork, WalletInformation } from '../types.ts'; import { SupportedWallets } from '../wallets'; export type WalletConnectContextType = { allWallets: WalletInformation[]; walletType: string | null; walletAddress: string | null; walletInstance: Unisat | null; network: WalletConnectNetwork | null; publicKey: string | null; address: Address | null; openConnectModal: () => void; connectToWallet: (wallet: SupportedWallets) => void; connecting: boolean; disconnect: () => void; provider: AbstractRpcProvider | null; signer: UnisatSigner | null; walletBalance: WalletBalance | null; mldsaPublicKey: string | null; hashedMLDSAKey: string | null; signMLDSAMessage: (message: string) => Promise<MLDSASignature | null>; verifyMLDSASignature: (message: string, signature: MLDSASignature) => Promise<boolean>; }; export declare const WalletConnectContext: import("react").Context<WalletConnectContextType | undefined>; //# sourceMappingURL=WalletConnectContext.d.ts.map