UNPKG

@mysten/wallet-standard

Version:

A suite of standard utilities for implementing wallets based on the Wallet Standard.

12 lines (11 loc) 402 B
import { StandardConnect, StandardEvents } from "@wallet-standard/core"; const REQUIRED_FEATURES = [StandardConnect, StandardEvents]; function isWalletWithRequiredFeatureSet(wallet, additionalFeatures = []) { return [...REQUIRED_FEATURES, ...additionalFeatures].every( (feature) => feature in wallet.features ); } export { isWalletWithRequiredFeatureSet }; //# sourceMappingURL=detect.js.map