Socket
Socket
Sign inDemoInstall

@web3modal/core

Package Overview
Dependencies
Maintainers
4
Versions
374
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@web3modal/core - npm Package Compare versions

Comparing version 2.1.2 to 2.2.0-02f443d

dist/_types/src/controllers/AccountCtrl.d.ts

4

dist/_types/index.d.ts

@@ -0,1 +1,2 @@

export { AccountCtrl } from './src/controllers/AccountCtrl';
export { ClientCtrl } from './src/controllers/ClientCtrl';

@@ -7,5 +8,6 @@ export { ConfigCtrl } from './src/controllers/ConfigCtrl';

export { RouterCtrl } from './src/controllers/RouterCtrl';
export { ThemeCtrl } from './src/controllers/ThemeCtrl';
export { ToastCtrl } from './src/controllers/ToastCtrl';
export type { ConfigCtrlState, DesktopConnectorData, InstallConnectorData, Listing, ListingResponse, RouterView, SwitchNetworkData, MobileWallet } from './src/types/controllerTypes';
export type { ConfigCtrlState, DesktopConnectorData, InstallConnectorData, Listing, ListingResponse, MobileWallet, RouterView, SwitchNetworkData, ThemeCtrlState } from './src/types/controllerTypes';
export { CoreUtil } from './src/utils/CoreUtil';
import './src/utils/PolyfillUtil';

@@ -6,3 +6,2 @@ import type { ConfigCtrlState } from '../types/controllerTypes';

setConfig(config: ConfigCtrlState): void;
setThemeConfig(theme: Pick<ConfigCtrlState, 'themeBackground' | 'themeColor' | 'themeMode'>): void;
};

@@ -13,16 +13,5 @@ import type { OptionsCtrlState } from '../types/controllerTypes';

setIsCustomMobile(isCustomMobile: OptionsCtrlState['isCustomMobile']): void;
getAccount(): void;
setAddress(address: OptionsCtrlState['address']): void;
setIsConnected(isConnected: OptionsCtrlState['isConnected']): void;
setProfileName(profileName: OptionsCtrlState['profileName']): void;
setProfileAvatar(profileAvatar: OptionsCtrlState['profileAvatar']): void;
setProfileLoading(profileLoading: OptionsCtrlState['profileLoading']): void;
setBalanceLoading(balanceLoading: OptionsCtrlState['balanceLoading']): void;
setBalance(balance: OptionsCtrlState['balance']): void;
setIsDataLoaded(isDataLoaded: OptionsCtrlState['isDataLoaded']): void;
setIsUiLoaded(isUiLoaded: OptionsCtrlState['isUiLoaded']): void;
setWalletConnectVersion(walletConnectVersion: OptionsCtrlState['walletConnectVersion']): void;
resetEnsProfile(): void;
resetBalance(): void;
resetAccount(): void;
};

@@ -21,6 +21,2 @@ import type { Chain, EthereumClient } from '@web3modal/ethereum';

walletConnectVersion?: 1 | 2;
themeMode?: 'dark' | 'light';
themeColor?: 'blackWhite' | 'blue' | 'default' | 'green' | 'magenta' | 'orange' | 'purple' | 'teal';
themeBackground?: 'gradient' | 'themeColor';
themeZIndex?: number;
standaloneChains?: string[];

@@ -36,2 +32,3 @@ defaultChain?: Chain;

enableAccountView?: boolean;
enableExplorer?: boolean;
explorerAllowList?: string[];

@@ -50,4 +47,2 @@ explorerDenyList?: string[];

standaloneUri?: string;
address?: `0x${string}`;
isConnected: boolean;
isStandalone: boolean;

@@ -58,2 +53,7 @@ isCustomDesktop: boolean;

isUiLoaded: boolean;
walletConnectVersion: 1 | 2;
}
export interface AccountCtrlState {
address?: `0x${string}`;
isConnected: boolean;
profileName?: string | null;

@@ -67,3 +67,2 @@ profileAvatar?: string | null;

};
walletConnectVersion: 1 | 2;
}

@@ -162,1 +161,58 @@ export interface ExplorerCtrlState {

}
export interface ThemeCtrlState {
themeVariables?: {
'--w3m-z-index'?: string;
'--w3m-accent-color'?: string;
'--w3m-accent-fill-color'?: string;
'--w3m-background-color'?: string;
'--w3m-background-image-url'?: string;
'--w3m-logo-image-url'?: string;
'--w3m-background-border-radius'?: string;
'--w3m-container-border-radius'?: string;
'--w3m-wallet-icon-border-radius'?: string;
'--w3m-input-border-radius'?: string;
'--w3m-notification-border-radius'?: string;
'--w3m-button-border-radius'?: string;
'--w3m-secondary-button-border-radius'?: string;
'--w3m-icon-button-border-radius'?: string;
'--w3m-button-hover-highlight-border-radius'?: string;
'--w3m-font-family'?: string;
'--w3m-text-big-bold-size'?: string;
'--w3m-text-big-bold-weight'?: string;
'--w3m-text-big-bold-line-height'?: string;
'--w3m-text-big-bold-letter-spacing'?: string;
'--w3m-text-big-bold-text-transform'?: string;
'--w3m-text-big-bold-font-family'?: string;
'--w3m-text-medium-regular-size'?: string;
'--w3m-text-medium-regular-weight'?: string;
'--w3m-text-medium-regular-line-height'?: string;
'--w3m-text-medium-regular-letter-spacing'?: string;
'--w3m-text-medium-regular-text-transform'?: string;
'--w3m-text-medium-regular-font-family'?: string;
'--w3m-text-small-regular-size'?: string;
'--w3m-text-small-regular-weight'?: string;
'--w3m-text-small-regular-line-height'?: string;
'--w3m-text-small-regular-letter-spacing'?: string;
'--w3m-text-small-regular-text-transform'?: string;
'--w3m-text-small-regular-font-family'?: string;
'--w3m-text-small-thin-size'?: string;
'--w3m-text-small-thin-weight'?: string;
'--w3m-text-small-thin-line-height'?: string;
'--w3m-text-small-thin-letter-spacing'?: string;
'--w3m-text-small-thin-text-transform'?: string;
'--w3m-text-small-thin-font-family'?: string;
'--w3m-text-xsmall-bold-size'?: string;
'--w3m-text-xsmall-bold-weight'?: string;
'--w3m-text-xsmall-bold-line-height'?: string;
'--w3m-text-xsmall-bold-letter-spacing'?: string;
'--w3m-text-xsmall-bold-text-transform'?: string;
'--w3m-text-xsmall-bold-font-family'?: string;
'--w3m-text-xsmall-regular-size'?: string;
'--w3m-text-xsmall-regular-weight'?: string;
'--w3m-text-xsmall-regular-line-height'?: string;
'--w3m-text-xsmall-regular-letter-spacing'?: string;
'--w3m-text-xsmall-regular-text-transform'?: string;
'--w3m-text-xsmall-regular-font-family'?: string;
};
themeMode?: 'dark' | 'light';
}

@@ -10,3 +10,3 @@ export declare const CoreUtil: {

wait(miliseconds: number): Promise<unknown>;
openHref(href: string, target?: string): void;
openHref(href: string, target: '_blank' | '_self'): void;
setWalletConnectDeepLink(href: string, name: string): void;

@@ -13,0 +13,0 @@ setWalletConnectAndroidDeepLink(wcUri: string): void;

@@ -1,2 +0,2 @@

import{proxy as p,subscribe as m}from"valtio/vanilla";import{Buffer as O}from"buffer";const n=p({selectedChain:void 0,chains:void 0,standaloneChains:void 0,standaloneUri:void 0,address:void 0,profileName:void 0,profileAvatar:void 0,profileLoading:!1,balanceLoading:!1,balance:void 0,isConnected:!1,isStandalone:!1,isCustomDesktop:!1,isCustomMobile:!1,isDataLoaded:!1,isUiLoaded:!1,walletConnectVersion:1}),a={state:n,subscribe(e){return m(n,()=>e(n))},setChains(e){n.chains=e},setStandaloneChains(e){n.standaloneChains=e},setStandaloneUri(e){n.standaloneUri=e},getSelectedChain(){const e=L.client().getNetwork().chain;return e&&(n.selectedChain=e),n.selectedChain},setSelectedChain(e){n.selectedChain=e},setIsStandalone(e){n.isStandalone=e},setIsCustomDesktop(e){n.isCustomDesktop=e},setIsCustomMobile(e){n.isCustomMobile=e},getAccount(){const e=L.client().getAccount();n.address=e.address,n.isConnected=e.isConnected},setAddress(e){n.address=e},setIsConnected(e){n.isConnected=e},setProfileName(e){n.profileName=e},setProfileAvatar(e){n.profileAvatar=e},setProfileLoading(e){n.profileLoading=e},setBalanceLoading(e){n.balanceLoading=e},setBalance(e){n.balance=e},setIsDataLoaded(e){n.isDataLoaded=e},setIsUiLoaded(e){n.isUiLoaded=e},setWalletConnectVersion(e){n.walletConnectVersion=e},resetEnsProfile(){n.profileName=void 0,n.profileAvatar=void 0},resetBalance(){n.balance=void 0},resetAccount(){n.address=void 0,n.isConnected=!1,a.resetEnsProfile(),a.resetBalance()}},h=p({initialized:!1,ethereumClient:void 0}),L={setEthereumClient(e){!h.initialized&&e&&(h.ethereumClient=e,a.setChains(e.chains),h.initialized=!0)},client(){if(h.ethereumClient)return h.ethereumClient;throw new Error("ClientCtrl has no client set")}},d={WALLETCONNECT_DEEPLINK_CHOICE:"WALLETCONNECT_DEEPLINK_CHOICE",isMobile(){return typeof window<"u"?Boolean(window.matchMedia("(pointer:coarse)").matches||/Android|webOS|iPhone|iPad|iPod|BlackBerry|Opera Mini/u.test(navigator.userAgent)):!1},isAndroid(){return d.isMobile()&&navigator.userAgent.toLowerCase().includes("android")},isEmptyObject(e){return Object.getPrototypeOf(e)===Object.prototype&&Object.getOwnPropertyNames(e).length===0&&Object.getOwnPropertySymbols(e).length===0},isHttpUrl(e){return e.startsWith("http://")||e.startsWith("https://")},formatNativeUrl(e,t,s){if(d.isHttpUrl(e))return this.formatUniversalUrl(e,t,s);let o=e;o.includes("://")||(o=e.replaceAll("/","").replaceAll(":",""),o=`${o}://`),this.setWalletConnectDeepLink(o,s);const l=encodeURIComponent(t);return`${o}wc?uri=${l}`},formatUniversalUrl(e,t,s){if(!d.isHttpUrl(e))return this.formatNativeUrl(e,t,s);let o=e;e.endsWith("/")&&(o=e.slice(0,-1)),this.setWalletConnectDeepLink(o,s);const l=encodeURIComponent(t);return`${o}/wc?uri=${l}`},async wait(e){return new Promise(t=>{setTimeout(t,e)})},openHref(e,t="_self"){window.open(e,t,"noreferrer noopener")},setWalletConnectDeepLink(e,t){localStorage.setItem(d.WALLETCONNECT_DEEPLINK_CHOICE,JSON.stringify({href:e,name:t}))},setWalletConnectAndroidDeepLink(e){const[t]=e.split("?");localStorage.setItem(d.WALLETCONNECT_DEEPLINK_CHOICE,JSON.stringify({href:t,name:"Android"}))},removeWalletConnectDeepLink(){localStorage.removeItem(d.WALLETCONNECT_DEEPLINK_CHOICE)},isNull(e){return e===null}};function S(){return typeof matchMedia<"u"&&matchMedia("(prefers-color-scheme: dark)").matches}const f=p({projectId:"",themeMode:S()?"dark":"light",themeColor:"default",themeBackground:d.isMobile()?"themeColor":"gradient",themeZIndex:89,mobileWallets:void 0,desktopWallets:void 0,walletImages:void 0,chainImages:void 0,tokenImages:void 0,standaloneChains:void 0,enableStandaloneMode:!1,enableNetworkView:!1,enableAccountView:!0,defaultChain:void 0,explorerAllowList:void 0,explorerDenyList:void 0,termsOfServiceUrl:void 0,privacyPolicyUrl:void 0}),W={state:f,subscribe(e){return m(f,()=>e(f))},setConfig(e){var t,s,o,l;if(a.setStandaloneChains(e.standaloneChains),a.setIsStandalone(Boolean((t=e.standaloneChains)==null?void 0:t.length)||Boolean(e.enableStandaloneMode)),a.setIsCustomMobile(Boolean((s=e.mobileWallets)==null?void 0:s.length)),a.setIsCustomDesktop(Boolean((o=e.desktopWallets)==null?void 0:o.length)),a.setWalletConnectVersion((l=e.walletConnectVersion)!=null?l:1),e.defaultChain)a.setSelectedChain(e.defaultChain);else if(!a.state.isStandalone){const u=L.client().getDefaultChain();a.setSelectedChain(u)}Object.assign(f,e)},setThemeConfig(e){Object.assign(f,e)}},I="https://explorer-api.walletconnect.com";function y(e){const t=Object.fromEntries(Object.entries(e).filter(([s,o])=>typeof o<"u"&&o!==null&&o!=="").map(([s,o])=>[s,o.toString()]));return new URLSearchParams(t).toString()}const v={async fetchWallets(e,t){const s=y(t),o=`${I}/v3/wallets?projectId=${e}&${s}`;return(await fetch(o)).json()},formatImageUrl(e,t){return`${I}/v3/logo/lg/${t}?projectId=${e}`}},r=p({wallets:{listings:[],total:0,page:1},search:{listings:[],total:0,page:1},previewWallets:[],recomendedWallets:[]});function b(){const{projectId:e}=W.state;if(!e)throw new Error("projectId is required to work with explorer api");return e}const A={state:r,async getPreviewWallets(e){const{listings:t}=await v.fetchWallets(b(),e);return r.previewWallets=Object.values(t),r.previewWallets},async getRecomendedWallets(){const{listings:e}=await v.fetchWallets(b(),{page:1,entries:6});r.recomendedWallets=Object.values(e)},async getPaginatedWallets(e){const{page:t,search:s}=e,{listings:o,total:l}=await v.fetchWallets(b(),e),u=Object.values(o),w=s?"search":"wallets";return r[w]={listings:[...r[w].listings,...u],total:l,page:t??1},{listings:u,total:l}},getImageUrl(e){return v.formatImageUrl(b(),e)},resetSearch(){r.search={listings:[],total:0,page:1}}},i=p({history:["ConnectWallet"],view:"ConnectWallet",data:void 0}),g={state:i,subscribe(e){return m(i,()=>e(i))},push(e,t){e!==i.view&&(i.view=e,t&&(i.data=t),i.history.push(e))},replace(e){i.view=e,i.history=[e]},goBack(){if(i.history.length>1){i.history.pop();const[e]=i.history.slice(-1);i.view=e}}},C=p({open:!1}),k={state:C,subscribe(e){return m(C,()=>e(C))},async open(e){return new Promise(t=>{const{isConnected:s,isStandalone:o,isUiLoaded:l,isDataLoaded:u}=a.state,{enableNetworkView:w}=W.state;if(o?(a.setStandaloneUri(e?.uri),a.setStandaloneChains(e?.standaloneChains),g.replace("ConnectWallet")):e!=null&&e.route?g.replace(e.route):s?g.replace("Account"):w?g.replace("SelectNetwork"):g.replace("ConnectWallet"),l&&u)C.open=!0,t();else{const E=setInterval(()=>{a.state.isUiLoaded&&a.state.isDataLoaded&&(clearInterval(E),C.open=!0,t())},200)}})},close(){C.open=!1}},c=p({open:!1,message:"",variant:"success"}),P={state:c,subscribe(e){return m(c,()=>e(c))},openToast(e,t){c.open=!0,c.message=e,c.variant=t},closeToast(){c.open=!1}};typeof window<"u"&&(window.Buffer||(window.Buffer=O),window.global||(window.global=window),window.process||(window.process={env:{}}));export{L as ClientCtrl,W as ConfigCtrl,d as CoreUtil,A as ExplorerCtrl,k as ModalCtrl,a as OptionsCtrl,g as RouterCtrl,P as ToastCtrl};
import{proxy as d,subscribe as h}from"valtio/vanilla";import{Buffer as S}from"buffer";const o=d({selectedChain:void 0,chains:void 0,standaloneChains:void 0,standaloneUri:void 0,isStandalone:!1,isCustomDesktop:!1,isCustomMobile:!1,isDataLoaded:!1,isUiLoaded:!1,walletConnectVersion:1}),i={state:o,subscribe(e){return h(o,()=>e(o))},setChains(e){o.chains=e},setStandaloneChains(e){o.standaloneChains=e},setStandaloneUri(e){o.standaloneUri=e},getSelectedChain(){const e=C.client().getNetwork().chain;return e&&(o.selectedChain=e),o.selectedChain},setSelectedChain(e){o.selectedChain=e},setIsStandalone(e){o.isStandalone=e},setIsCustomDesktop(e){o.isCustomDesktop=e},setIsCustomMobile(e){o.isCustomMobile=e},setIsDataLoaded(e){o.isDataLoaded=e},setIsUiLoaded(e){o.isUiLoaded=e},setWalletConnectVersion(e){o.walletConnectVersion=e}},g=d({initialized:!1,ethereumClient:void 0}),C={setEthereumClient(e){!g.initialized&&e&&(g.ethereumClient=e,i.setChains(e.chains),g.initialized=!0)},client(){if(g.ethereumClient)return g.ethereumClient;throw new Error("ClientCtrl has no client set")}},a=d({address:void 0,profileName:void 0,profileAvatar:void 0,profileLoading:!1,balanceLoading:!1,balance:void 0,isConnected:!1}),N={state:a,subscribe(e){return h(a,()=>e(a))},getAccount(){const e=C.client().getAccount();a.address=e.address,a.isConnected=e.isConnected},async fetchProfile(e,t){try{a.profileLoading=!0;const s=t??a.address,{id:n}=C.client().getDefaultChain();if(s&&n===1){const[l,c]=await Promise.all([C.client().fetchEnsName({address:s,chainId:1}),C.client().fetchEnsAvatar({address:s,chainId:1})]);c&&await e(c),a.profileName=l,a.profileAvatar=c}}finally{a.profileLoading=!1}},async fetchBalance(e){try{a.balanceLoading=!0;const t=e??a.address;if(t){const s=await C.client().fetchBalance({address:t});a.balance={amount:s.formatted,symbol:s.symbol}}}finally{a.balanceLoading=!1}},setAddress(e){a.address=e},setIsConnected(e){a.isConnected=e},resetBalance(){a.balance=void 0},resetAccount(){a.address=void 0,a.isConnected=!1,a.profileName=void 0,a.profileAvatar=void 0,a.balance=void 0}},b=d({projectId:"",mobileWallets:void 0,desktopWallets:void 0,walletImages:void 0,chainImages:void 0,tokenImages:void 0,standaloneChains:void 0,enableStandaloneMode:!1,enableNetworkView:!1,enableAccountView:!0,enableExplorer:!0,defaultChain:void 0,explorerAllowList:void 0,explorerDenyList:void 0,termsOfServiceUrl:void 0,privacyPolicyUrl:void 0}),W={state:b,subscribe(e){return h(b,()=>e(b))},setConfig(e){var t,s,n,l;if(i.setStandaloneChains(e.standaloneChains),i.setIsStandalone(Boolean((t=e.standaloneChains)==null?void 0:t.length)||Boolean(e.enableStandaloneMode)),i.setIsCustomMobile(Boolean((s=e.mobileWallets)==null?void 0:s.length)),i.setIsCustomDesktop(Boolean((n=e.desktopWallets)==null?void 0:n.length)),i.setWalletConnectVersion((l=e.walletConnectVersion)!=null?l:1),e.defaultChain)i.setSelectedChain(e.defaultChain);else if(!i.state.isStandalone){const c=C.client().getDefaultChain();i.setSelectedChain(c)}Object.assign(b,e)}},E="https://explorer-api.walletconnect.com";function U(e){const t=Object.fromEntries(Object.entries(e).filter(([s,n])=>typeof n<"u"&&n!==null&&n!=="").map(([s,n])=>[s,n.toString()]));return new URLSearchParams(t).toString()}const L={async fetchWallets(e,t){const s=U(t),n=`${E}/v3/wallets?projectId=${e}&${s}`;return(await fetch(n)).json()},formatImageUrl(e,t){return`${E}/v3/logo/lg/${t}?projectId=${e}`}},u=d({wallets:{listings:[],total:0,page:1},search:{listings:[],total:0,page:1},previewWallets:[],recomendedWallets:[]});function I(){const{projectId:e}=W.state;if(!e)throw new Error("projectId is required to work with explorer api");return e}const P={state:u,async getPreviewWallets(e){const{listings:t}=await L.fetchWallets(I(),e);return u.previewWallets=Object.values(t),u.previewWallets},async getRecomendedWallets(){const{listings:e}=await L.fetchWallets(I(),{page:1,entries:6});u.recomendedWallets=Object.values(e)},async getPaginatedWallets(e){const{page:t,search:s}=e,{listings:n,total:l}=await L.fetchWallets(I(),e),c=Object.values(n),v=s?"search":"wallets";return u[v]={listings:[...u[v].listings,...c],total:l,page:t??1},{listings:c,total:l}},getImageUrl(e){return L.formatImageUrl(I(),e)},resetSearch(){u.search={listings:[],total:0,page:1}}},r=d({history:["ConnectWallet"],view:"ConnectWallet",data:void 0}),w={state:r,subscribe(e){return h(r,()=>e(r))},push(e,t){e!==r.view&&(r.view=e,t&&(r.data=t),r.history.push(e))},replace(e){r.view=e,r.history=[e]},goBack(){if(r.history.length>1){r.history.pop();const[e]=r.history.slice(-1);r.view=e}}},f=d({open:!1}),j={state:f,subscribe(e){return h(f,()=>e(f))},async open(e){return new Promise(t=>{const{isStandalone:s,isUiLoaded:n,isDataLoaded:l}=i.state,{isConnected:c}=N.state,{enableNetworkView:v}=W.state;if(s?(i.setStandaloneUri(e?.uri),i.setStandaloneChains(e?.standaloneChains),w.replace("ConnectWallet")):e!=null&&e.route?w.replace(e.route):c?w.replace("Account"):v?w.replace("SelectNetwork"):w.replace("ConnectWallet"),n&&l)f.open=!0,t();else{const O=setInterval(()=>{i.state.isUiLoaded&&i.state.isDataLoaded&&(clearInterval(O),f.open=!0,t())},200)}})},close(){f.open=!1}};function A(){return typeof matchMedia<"u"&&matchMedia("(prefers-color-scheme: dark)").matches}const y=d({themeMode:A()?"dark":"light"}),$={state:y,subscribe(e){return h(y,()=>e(y))},setThemeConfig(e){Object.assign(y,e)}},p=d({open:!1,message:"",variant:"success"}),T={state:p,subscribe(e){return h(p,()=>e(p))},openToast(e,t){p.open=!0,p.message=e,p.variant=t},closeToast(){p.open=!1}},m={WALLETCONNECT_DEEPLINK_CHOICE:"WALLETCONNECT_DEEPLINK_CHOICE",isMobile(){return typeof window<"u"?Boolean(window.matchMedia("(pointer:coarse)").matches||/Android|webOS|iPhone|iPad|iPod|BlackBerry|Opera Mini/u.test(navigator.userAgent)):!1},isAndroid(){return m.isMobile()&&navigator.userAgent.toLowerCase().includes("android")},isEmptyObject(e){return Object.getPrototypeOf(e)===Object.prototype&&Object.getOwnPropertyNames(e).length===0&&Object.getOwnPropertySymbols(e).length===0},isHttpUrl(e){return e.startsWith("http://")||e.startsWith("https://")},formatNativeUrl(e,t,s){if(m.isHttpUrl(e))return this.formatUniversalUrl(e,t,s);let n=e;n.includes("://")||(n=e.replaceAll("/","").replaceAll(":",""),n=`${n}://`),this.setWalletConnectDeepLink(n,s);const l=encodeURIComponent(t);return`${n}wc?uri=${l}`},formatUniversalUrl(e,t,s){if(!m.isHttpUrl(e))return this.formatNativeUrl(e,t,s);let n=e;e.endsWith("/")&&(n=e.slice(0,-1)),this.setWalletConnectDeepLink(n,s);const l=encodeURIComponent(t);return`${n}/wc?uri=${l}`},async wait(e){return new Promise(t=>{setTimeout(t,e)})},openHref(e,t){window.open(e,t,"noreferrer noopener")},setWalletConnectDeepLink(e,t){localStorage.setItem(m.WALLETCONNECT_DEEPLINK_CHOICE,JSON.stringify({href:e,name:t}))},setWalletConnectAndroidDeepLink(e){const[t]=e.split("?");localStorage.setItem(m.WALLETCONNECT_DEEPLINK_CHOICE,JSON.stringify({href:t,name:"Android"}))},removeWalletConnectDeepLink(){localStorage.removeItem(m.WALLETCONNECT_DEEPLINK_CHOICE)},isNull(e){return e===null}};typeof window<"u"&&(window.Buffer||(window.Buffer=S),window.global||(window.global=window),window.process||(window.process={env:{}}));export{N as AccountCtrl,C as ClientCtrl,W as ConfigCtrl,m as CoreUtil,P as ExplorerCtrl,j as ModalCtrl,i as OptionsCtrl,w as RouterCtrl,$ as ThemeCtrl,T as ToastCtrl};
//# sourceMappingURL=index.js.map
{
"name": "@web3modal/core",
"version": "2.1.2",
"version": "2.2.0-02f443d",
"main": "dist/index.js",

@@ -20,6 +20,6 @@ "type": "module",

"buffer": "6.0.3",
"valtio": "1.10.2"
"valtio": "1.10.3"
},
"devDependencies": {
"@web3modal/ethereum": "2.1.2"
"@web3modal/ethereum": "2.2.0-02f443d"
},

@@ -26,0 +26,0 @@ "keywords": [

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc