@magic-sdk/types
Advanced tools
Comparing version
@@ -9,7 +9,57 @@ export interface ThirdPartyWalletOptions { | ||
}; | ||
walletConnect?: { | ||
modal: any; | ||
provider: any; | ||
connect: any; | ||
walletConnect?: WalletConnectSDKOptions; | ||
} | ||
export interface WalletConnectSDKOptions { | ||
bridge: string; | ||
qrcode: boolean; | ||
qrcodeModal: { | ||
open: (uri: string, cb: any, qrcodeModalOptions?: IQRCodeModalOptions | undefined) => void; | ||
close: () => void; | ||
}; | ||
qrcodeModalOptions: IQRCodeModalOptions | undefined; | ||
rpc: IRPCMap | null; | ||
infuraId: string; | ||
http: any; | ||
wc: any; | ||
isConnecting: boolean; | ||
connected: boolean; | ||
connectCallbacks: any[]; | ||
accounts: string[]; | ||
chainId: number; | ||
rpcUrl: string; | ||
} | ||
export interface IQRCodeModalOptions { | ||
registryUrl?: string; | ||
mobileLinks?: string[]; | ||
desktopLinks?: string[]; | ||
} | ||
export interface IRPCMap { | ||
[chainId: number]: string; | ||
} | ||
export interface CoinbaseWalletSDKOptions { | ||
/** Application name */ | ||
appName: string; | ||
/** @optional Application logo image URL; favicon is used if unspecified */ | ||
appLogoUrl?: string | null; | ||
/** @optional Use dark theme */ | ||
darkMode?: boolean; | ||
/** @optional Coinbase Wallet link server URL; for most, leave it unspecified */ | ||
linkAPIUrl?: string; | ||
/** @optional an implementation of WalletUI; for most, leave it unspecified */ | ||
uiConstructor?: (options: any) => any; | ||
/** @optional an implementation of EventListener for debugging; for most, leave it unspecified */ | ||
/** @deprecated in favor of diagnosticLogger */ | ||
eventListener?: EventListener; | ||
/** @optional a diagnostic tool for debugging; for most, leave it unspecified */ | ||
diagnosticLogger?: any; | ||
/** @optional whether wallet link provider should override the isMetaMask property. */ | ||
overrideIsMetaMask?: boolean; | ||
/** @optional whether wallet link provider should override the isCoinbaseWallet property. */ | ||
overrideIsCoinbaseWallet?: boolean; | ||
/** @optional whether coinbase wallet provider should override the isCoinbaseBrowser property. */ | ||
overrideIsCoinbaseBrowser?: boolean; | ||
/** @optional whether or not onboarding overlay popup should be displayed */ | ||
headlessMode?: boolean; | ||
/** @optional whether or not to reload dapp automatically after disconnect, defaults to true */ | ||
reloadOnDisconnect?: boolean; | ||
} |
{ | ||
"name": "@magic-sdk/types", | ||
"version": "11.4.0-beta", | ||
"version": "11.4.0-beta-2", | ||
"description": "Core typings for Magic SDK packages.", | ||
@@ -5,0 +5,0 @@ "author": "Magic Labs <team@magic.link> (https://magic.link/)", |
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
67746
3.21%408
13.97%0
-100%