UNPKG

@biuauth/wallet-connect-v2-adapter

Version:
23 lines (22 loc) 1.24 kB
import type { EngineTypes, ProposalTypes } from "@walletconnect/types"; import { ChainNamespaceType, IWalletConnectExtensionAdapter } from "@web3auth/base"; import { IAdapterSettings } from "./interface"; export declare const WALLET_CONNECT_EXTENSION_ADAPTERS: IWalletConnectExtensionAdapter[]; export declare enum DEFAULT_EIP155_METHODS { ETH_SEND_TRANSACTION = "eth_sendTransaction", ETH_SIGN = "eth_sign", PERSONAL_SIGN = "personal_sign", ETH_SIGN_TYPED_DATA = "eth_signTypedData" } export declare enum DEFAULT_EIP_155_EVENTS { ETH_CHAIN_CHANGED = "chainChanged", ETH_ACCOUNTS_CHANGED = "accountsChanged" } export declare const getNamespacesFromChains: (chains: string[]) => string[]; export declare const getSupportedMethodsByNamespace: (namespace: string) => DEFAULT_EIP155_METHODS[]; export declare const getSupportedEventsByNamespace: (namespace: string) => DEFAULT_EIP_155_EVENTS[]; export declare const getRequiredNamespaces: (chains: string[]) => ProposalTypes.RequiredNamespaces; export declare const getWalletConnectV2Settings: (namespace: ChainNamespaceType, chainIds: number[], projectID: string) => Promise<{ adapterSettings: IAdapterSettings; loginSettings: EngineTypes.ConnectParams; }>;