New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@web3modal/wallet

Package Overview
Dependencies
Maintainers
11
Versions
183
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@web3modal/wallet - npm Package Compare versions

Comparing version

to
3.6.0-f682e195

2

dist/esm/src/W3mFrame.js

@@ -65,3 +65,3 @@ import { W3mFrameConstants } from './W3mFrameConstants.js';

this.iframe.onerror = () => {
this.frameLoadPromiseResolver?.reject();
this.frameLoadPromiseResolver?.reject('Unable to load email login dependency');
};

@@ -68,0 +68,0 @@ }

export const W3mFrameConstants = {
SECURE_SITE_SDK: 'http://localhost:3010/sdk',
SECURE_SITE_SDK: 'https://secure.web3modal.com/sdk',
APP_EVENT_KEY: '@w3m-app/',

@@ -9,2 +9,4 @@ FRAME_EVENT_KEY: '@w3m-frame/',

EMAIL_LOGIN_USED_KEY: 'EMAIL_LOGIN_USED_KEY',
LAST_EMAIL_LOGIN_TIME: 'LAST_EMAIL_LOGIN_TIME',
EMAIL: 'EMAIL',
APP_SWITCH_NETWORK: '@w3m-app/SWITCH_NETWORK',

@@ -19,2 +21,5 @@ APP_CONNECT_EMAIL: '@w3m-app/CONNECT_EMAIL',

APP_RPC_REQUEST: '@w3m-app/RPC_REQUEST',
APP_UPDATE_EMAIL: '@w3m-app/UPDATE_EMAIL',
APP_AWAIT_UPDATE_EMAIL: '@w3m-app/AWAIT_UPDATE_EMAIL',
APP_SYNC_THEME: '@w3m-app/SYNC_THEME',
FRAME_SWITCH_NETWORK_ERROR: '@w3m-frame/SWITCH_NETWORK_ERROR',

@@ -38,4 +43,10 @@ FRAME_SWITCH_NETWORK_SUCCESS: '@w3m-frame/SWITCH_NETWORK_SUCCESS',

FRAME_RPC_REQUEST_ERROR: '@w3m-frame/RPC_REQUEST_ERROR',
FRAME_SESSION_UPDATE: '@w3m-frame/SESSION_UPDATE'
FRAME_SESSION_UPDATE: '@w3m-frame/SESSION_UPDATE',
FRAME_UPDATE_EMAIL_SUCCESS: '@w3m-frame/UPDATE_EMAIL_SUCCESS',
FRAME_UPDATE_EMAIL_ERROR: '@w3m-frame/UPDATE_EMAIL_ERROR',
FRAME_AWAIT_UPDATE_EMAIL_SUCCESS: '@w3m-frame/AWAIT_UPDATE_EMAIL_SUCCESS',
FRAME_AWAIT_UPDATE_EMAIL_ERROR: '@w3m-frame/AWAIT_UPDATE_EMAIL_ERROR',
FRAME_SYNC_THEME_SUCCESS: '@w3m-frame/SYNC_THEME_SUCCESS',
FRAME_SYNC_THEME_ERROR: '@w3m-frame/SYNC_THEME_ERROR'
};
//# sourceMappingURL=W3mFrameConstants.js.map

@@ -0,1 +1,3 @@

import { W3mFrameStorage } from './W3mFrameStorage.js';
import { W3mFrameConstants } from './W3mFrameConstants.js';
const RESTRICTED_TIMEZONES = [

@@ -25,4 +27,14 @@ 'ASIA/SHANGHAI',

}
},
checkIfAllowedToTriggerEmail() {
const lastEmailLoginTime = W3mFrameStorage.get(W3mFrameConstants.LAST_EMAIL_LOGIN_TIME);
if (lastEmailLoginTime) {
const difference = Date.now() - Number(lastEmailLoginTime);
if (difference < 30000) {
const cooldownSec = Math.ceil((30000 - difference) / 1000);
throw new Error(`Please try again after ${cooldownSec} seconds`);
}
}
}
};
//# sourceMappingURL=W3mFrameHelpers.js.map
import { W3mFrame } from './W3mFrame.js';
import { W3mFrameConstants } from './W3mFrameConstants.js';
import { W3mFrameStorage } from './W3mFrameStorage.js';
import { W3mFrameHelpers } from './W3mFrameHelpers.js';
export class W3mFrameProvider {

@@ -15,2 +16,5 @@ constructor(projectId) {

this.rpcRequestResolver = undefined;
this.updateEmailResolver = undefined;
this.awaitUpdateEmailResolver = undefined;
this.syncThemeResolver = undefined;
this.w3mFrame = new W3mFrame(projectId, true);

@@ -58,2 +62,14 @@ this.w3mFrame.events.onFrameEvent(event => {

return this.onSessionUpdate(event);
case W3mFrameConstants.FRAME_UPDATE_EMAIL_SUCCESS:
return this.onUpdateEmailSuccess();
case W3mFrameConstants.FRAME_UPDATE_EMAIL_ERROR:
return this.onUpdateEmailError(event);
case W3mFrameConstants.FRAME_AWAIT_UPDATE_EMAIL_SUCCESS:
return this.onAwaitUpdateEmailSuccess(event);
case W3mFrameConstants.FRAME_AWAIT_UPDATE_EMAIL_ERROR:
return this.onAwaitUpdateEmailError(event);
case W3mFrameConstants.FRAME_SYNC_THEME_SUCCESS:
return this.onSyncThemeSuccess();
case W3mFrameConstants.FRAME_SYNC_THEME_ERROR:
return this.onSyncThemeError(event);
default:

@@ -67,4 +83,8 @@ return null;

}
getEmail() {
return W3mFrameStorage.get(W3mFrameConstants.EMAIL);
}
async connectEmail(payload) {
await this.w3mFrame.frameLoadPromise;
W3mFrameHelpers.checkIfAllowedToTriggerEmail();
this.w3mFrame.events.postAppEvent({ type: W3mFrameConstants.APP_CONNECT_EMAIL, payload });

@@ -91,6 +111,5 @@ return new Promise((resolve, reject) => {

await this.w3mFrame.frameLoadPromise;
const token = this.getSessionToken();
this.w3mFrame.events.postAppEvent({
type: W3mFrameConstants.APP_IS_CONNECTED,
payload: token ? { token } : undefined
payload: undefined
});

@@ -108,2 +127,24 @@ return new Promise((resolve, reject) => {

}
async updateEmail(payload) {
await this.w3mFrame.frameLoadPromise;
W3mFrameHelpers.checkIfAllowedToTriggerEmail();
this.w3mFrame.events.postAppEvent({ type: W3mFrameConstants.APP_UPDATE_EMAIL, payload });
return new Promise((resolve, reject) => {
this.updateEmailResolver = { resolve, reject };
});
}
async awaitUpdateEmail() {
await this.w3mFrame.frameLoadPromise;
this.w3mFrame.events.postAppEvent({ type: W3mFrameConstants.APP_AWAIT_UPDATE_EMAIL });
return new Promise((resolve, reject) => {
this.awaitUpdateEmailResolver = { resolve, reject };
});
}
async syncTheme(payload) {
await this.w3mFrame.frameLoadPromise;
this.w3mFrame.events.postAppEvent({ type: W3mFrameConstants.APP_SYNC_THEME, payload });
return new Promise((resolve, reject) => {
this.syncThemeResolver = { resolve, reject };
});
}
async connect(payload) {

@@ -128,3 +169,2 @@ await this.w3mFrame.frameLoadPromise;

await this.w3mFrame.frameLoadPromise;
this.deleteSessionToken();
this.w3mFrame.events.postAppEvent({ type: W3mFrameConstants.APP_SIGN_OUT });

@@ -168,3 +208,3 @@ return new Promise((resolve, reject) => {

this.connectEmailResolver?.resolve(event.payload);
W3mFrameStorage.set(W3mFrameConstants.EMAIL_LOGIN_USED_KEY, 'true');
this.setNewLastEmailLoginTime();
}

@@ -187,2 +227,3 @@ onConnectEmailError(event) {

onConnectSuccess(event) {
this.setEmailLoginSuccess(event.payload.email);
this.connectResolver?.resolve(event.payload);

@@ -208,2 +249,3 @@ }

W3mFrameStorage.delete(W3mFrameConstants.EMAIL_LOGIN_USED_KEY);
W3mFrameStorage.delete(W3mFrameConstants.EMAIL);
}

@@ -228,15 +270,33 @@ onSignOutError(event) {

if (payload) {
this.setSessionToken(payload.token);
}
}
setSessionToken(token) {
W3mFrameStorage.set(W3mFrameConstants.SESSION_TOKEN_KEY, token);
onUpdateEmailSuccess() {
this.updateEmailResolver?.resolve(undefined);
this.setNewLastEmailLoginTime();
}
getSessionToken() {
return W3mFrameStorage.get(W3mFrameConstants.SESSION_TOKEN_KEY);
onUpdateEmailError(event) {
this.updateEmailResolver?.reject(event.payload.message);
}
deleteSessionToken() {
W3mFrameStorage.delete(W3mFrameConstants.SESSION_TOKEN_KEY);
onAwaitUpdateEmailSuccess(event) {
this.setEmailLoginSuccess(event.payload.email);
this.awaitUpdateEmailResolver?.resolve(event.payload);
}
onAwaitUpdateEmailError(event) {
this.awaitUpdateEmailResolver?.reject(event.payload.message);
}
onSyncThemeSuccess() {
this.syncThemeResolver?.resolve(undefined);
}
onSyncThemeError(event) {
this.syncThemeResolver?.reject(event.payload.message);
}
setNewLastEmailLoginTime() {
W3mFrameStorage.set(W3mFrameConstants.LAST_EMAIL_LOGIN_TIME, Date.now().toString());
}
setEmailLoginSuccess(email) {
W3mFrameStorage.set(W3mFrameConstants.EMAIL, email);
W3mFrameStorage.set(W3mFrameConstants.EMAIL_LOGIN_USED_KEY, 'true');
W3mFrameStorage.delete(W3mFrameConstants.LAST_EMAIL_LOGIN_TIME);
}
}
//# sourceMappingURL=W3mFrameProvider.js.map

@@ -11,2 +11,7 @@ import { z } from 'zod';

export const AppGetUserRequest = z.object({ chainId: z.optional(z.number()) });
export const AppUpdateEmailRequest = z.object({ email: z.string().email() });
export const AppSyncThemeRequest = z.object({
themeMode: z.optional(z.enum(['light', 'dark'])),
themeVariables: z.optional(z.record(z.string(), z.string().or(z.number())))
});
export const FrameConnectEmailResponse = z.object({

@@ -16,2 +21,3 @@ action: z.enum(['VERIFY_DEVICE', 'VERIFY_OTP'])

export const FrameGetUserResponse = z.object({
email: z.string().email(),
address: z.string(),

@@ -22,2 +28,3 @@ chainId: z.number()

export const FrameGetChainIdResponse = z.object({ chainId: z.number() });
export const FrameAwaitUpdateEmailResponse = z.object({ email: z.string().email() });
export const RpcResponse = z.string();

@@ -71,3 +78,6 @@ export const RpcPersonalSignRequest = z.object({

.or(RpcEthSignTypedDataV4)
})),
}))
.or(z.object({ type: zType('APP_UPDATE_EMAIL'), payload: AppUpdateEmailRequest }))
.or(z.object({ type: zType('APP_AWAIT_UPDATE_EMAIL') }))
.or(z.object({ type: zType('APP_SYNC_THEME'), payload: AppSyncThemeRequest })),
frameEvent: z

@@ -93,3 +103,12 @@ .object({ type: zType('FRAME_SWITCH_NETWORK_ERROR'), payload: zError })

.or(z.object({ type: zType('FRAME_SESSION_UPDATE'), payload: FrameSession }))
.or(z.object({ type: zType('FRAME_UPDATE_EMAIL_ERROR'), payload: zError }))
.or(z.object({ type: zType('FRAME_UPDATE_EMAIL_SUCCESS') }))
.or(z.object({ type: zType('FRAME_AWAIT_UPDATE_EMAIL_ERROR'), payload: zError }))
.or(z.object({
type: zType('FRAME_AWAIT_UPDATE_EMAIL_SUCCESS'),
payload: FrameAwaitUpdateEmailResponse
}))
.or(z.object({ type: zType('FRAME_SYNC_THEME_ERROR'), payload: zError }))
.or(z.object({ type: zType('FRAME_SYNC_THEME_SUCCESS') }))
};
//# sourceMappingURL=W3mFrameSchema.js.map
import { z } from 'zod';
import { W3mFrameSchema, AppConnectEmailRequest, AppConnectOtpRequest, AppSwitchNetworkRequest, FrameConnectEmailResponse, FrameGetChainIdResponse, FrameGetUserResponse, FrameIsConnectedResponse, RpcPersonalSignRequest, RpcResponse, RpcEthSendTransactionRequest, RpcEthSignTypedDataV4, RpcEthAccountsRequest, RpcEthEstimateGas, RpcEthGasPrice, RpcGetBalance, FrameSession, AppGetUserRequest } from './W3mFrameSchema.js';
import { W3mFrameSchema, AppConnectEmailRequest, AppConnectOtpRequest, AppSwitchNetworkRequest, FrameConnectEmailResponse, FrameGetChainIdResponse, FrameGetUserResponse, FrameIsConnectedResponse, RpcPersonalSignRequest, RpcResponse, RpcEthSendTransactionRequest, RpcEthSignTypedDataV4, RpcEthAccountsRequest, RpcEthEstimateGas, RpcEthGasPrice, RpcGetBalance, FrameSession, AppGetUserRequest, AppUpdateEmailRequest, FrameAwaitUpdateEmailResponse, AppSyncThemeRequest } from './W3mFrameSchema.js';
//# sourceMappingURL=W3mFrameTypes.js.map
export declare const W3mFrameConstants: {
readonly SECURE_SITE_SDK: "http://localhost:3010/sdk";
readonly SECURE_SITE_SDK: "https://secure.web3modal.com/sdk";
readonly APP_EVENT_KEY: "@w3m-app/";

@@ -9,2 +9,4 @@ readonly FRAME_EVENT_KEY: "@w3m-frame/";

readonly EMAIL_LOGIN_USED_KEY: "EMAIL_LOGIN_USED_KEY";
readonly LAST_EMAIL_LOGIN_TIME: "LAST_EMAIL_LOGIN_TIME";
readonly EMAIL: "EMAIL";
readonly APP_SWITCH_NETWORK: "@w3m-app/SWITCH_NETWORK";

@@ -19,2 +21,5 @@ readonly APP_CONNECT_EMAIL: "@w3m-app/CONNECT_EMAIL";

readonly APP_RPC_REQUEST: "@w3m-app/RPC_REQUEST";
readonly APP_UPDATE_EMAIL: "@w3m-app/UPDATE_EMAIL";
readonly APP_AWAIT_UPDATE_EMAIL: "@w3m-app/AWAIT_UPDATE_EMAIL";
readonly APP_SYNC_THEME: "@w3m-app/SYNC_THEME";
readonly FRAME_SWITCH_NETWORK_ERROR: "@w3m-frame/SWITCH_NETWORK_ERROR";

@@ -39,2 +44,8 @@ readonly FRAME_SWITCH_NETWORK_SUCCESS: "@w3m-frame/SWITCH_NETWORK_SUCCESS";

readonly FRAME_SESSION_UPDATE: "@w3m-frame/SESSION_UPDATE";
readonly FRAME_UPDATE_EMAIL_SUCCESS: "@w3m-frame/UPDATE_EMAIL_SUCCESS";
readonly FRAME_UPDATE_EMAIL_ERROR: "@w3m-frame/UPDATE_EMAIL_ERROR";
readonly FRAME_AWAIT_UPDATE_EMAIL_SUCCESS: "@w3m-frame/AWAIT_UPDATE_EMAIL_SUCCESS";
readonly FRAME_AWAIT_UPDATE_EMAIL_ERROR: "@w3m-frame/AWAIT_UPDATE_EMAIL_ERROR";
readonly FRAME_SYNC_THEME_SUCCESS: "@w3m-frame/SYNC_THEME_SUCCESS";
readonly FRAME_SYNC_THEME_ERROR: "@w3m-frame/SYNC_THEME_ERROR";
};
export declare const W3mFrameHelpers: {
getBlockchainApiUrl(): false | "https://rpc.walletconnect.org" | "https://rpc.walletconnect.com";
checkIfAllowedToTriggerEmail(): void;
};

@@ -13,4 +13,8 @@ import type { W3mFrameTypes } from './W3mFrameTypes.js';

private rpcRequestResolver;
private updateEmailResolver;
private awaitUpdateEmailResolver;
private syncThemeResolver;
constructor(projectId: string);
getLoginEmailUsed(): boolean;
getEmail(): string | null;
connectEmail(payload: W3mFrameTypes.Requests['AppConnectEmailRequest']): Promise<{

@@ -27,4 +31,10 @@ action: "VERIFY_DEVICE" | "VERIFY_OTP";

}>;
updateEmail(payload: W3mFrameTypes.Requests['AppUpdateEmailRequest']): Promise<unknown>;
awaitUpdateEmail(): Promise<{
email: string;
}>;
syncTheme(payload: W3mFrameTypes.Requests['AppSyncThemeRequest']): Promise<unknown>;
connect(payload?: W3mFrameTypes.Requests['AppGetUserRequest']): Promise<{
chainId: number;
email: string;
address: string;

@@ -57,5 +67,10 @@ }>;

private onSessionUpdate;
private setSessionToken;
private getSessionToken;
private deleteSessionToken;
private onUpdateEmailSuccess;
private onUpdateEmailError;
private onAwaitUpdateEmailSuccess;
private onAwaitUpdateEmailError;
private onSyncThemeSuccess;
private onSyncThemeError;
private setNewLastEmailLoginTime;
private setEmailLoginSuccess;
}

@@ -30,2 +30,19 @@ import { z } from 'zod';

}>;
export declare const AppUpdateEmailRequest: z.ZodObject<{
email: z.ZodString;
}, "strip", z.ZodTypeAny, {
email: string;
}, {
email: string;
}>;
export declare const AppSyncThemeRequest: z.ZodObject<{
themeMode: z.ZodOptional<z.ZodEnum<["light", "dark"]>>;
themeVariables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
}, "strip", z.ZodTypeAny, {
themeMode?: "light" | "dark" | undefined;
themeVariables?: Record<string, string | number> | undefined;
}, {
themeMode?: "light" | "dark" | undefined;
themeVariables?: Record<string, string | number> | undefined;
}>;
export declare const FrameConnectEmailResponse: z.ZodObject<{

@@ -39,2 +56,3 @@ action: z.ZodEnum<["VERIFY_DEVICE", "VERIFY_OTP"]>;

export declare const FrameGetUserResponse: z.ZodObject<{
email: z.ZodString;
address: z.ZodString;

@@ -44,5 +62,7 @@ chainId: z.ZodNumber;

chainId: number;
email: string;
address: string;
}, {
chainId: number;
email: string;
address: string;

@@ -64,2 +84,9 @@ }>;

}>;
export declare const FrameAwaitUpdateEmailResponse: z.ZodObject<{
email: z.ZodString;
}, "strip", z.ZodTypeAny, {
email: string;
}, {
email: string;
}>;
export declare const RpcResponse: z.ZodString;

@@ -138,3 +165,3 @@ export declare const RpcPersonalSignRequest: z.ZodObject<{

export declare const W3mFrameSchema: {
appEvent: z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
appEvent: z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
type: z.ZodLiteral<"@w3m-app/SWITCH_NETWORK">;

@@ -356,4 +383,53 @@ payload: z.ZodObject<{

};
}>]>, z.ZodObject<{
type: z.ZodLiteral<"@w3m-app/UPDATE_EMAIL">;
payload: z.ZodObject<{
email: z.ZodString;
}, "strip", z.ZodTypeAny, {
email: string;
}, {
email: string;
}>;
}, "strip", z.ZodTypeAny, {
type: "@w3m-app/UPDATE_EMAIL";
payload: {
email: string;
};
}, {
type: "@w3m-app/UPDATE_EMAIL";
payload: {
email: string;
};
}>]>, z.ZodObject<{
type: z.ZodLiteral<"@w3m-app/AWAIT_UPDATE_EMAIL">;
}, "strip", z.ZodTypeAny, {
type: "@w3m-app/AWAIT_UPDATE_EMAIL";
}, {
type: "@w3m-app/AWAIT_UPDATE_EMAIL";
}>]>, z.ZodObject<{
type: z.ZodLiteral<"@w3m-app/SYNC_THEME">;
payload: z.ZodObject<{
themeMode: z.ZodOptional<z.ZodEnum<["light", "dark"]>>;
themeVariables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
}, "strip", z.ZodTypeAny, {
themeMode?: "light" | "dark" | undefined;
themeVariables?: Record<string, string | number> | undefined;
}, {
themeMode?: "light" | "dark" | undefined;
themeVariables?: Record<string, string | number> | undefined;
}>;
}, "strip", z.ZodTypeAny, {
type: "@w3m-app/SYNC_THEME";
payload: {
themeMode?: "light" | "dark" | undefined;
themeVariables?: Record<string, string | number> | undefined;
};
}, {
type: "@w3m-app/SYNC_THEME";
payload: {
themeMode?: "light" | "dark" | undefined;
themeVariables?: Record<string, string | number> | undefined;
};
}>]>;
frameEvent: z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
frameEvent: z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
type: z.ZodLiteral<"@w3m-frame/SWITCH_NETWORK_ERROR">;

@@ -493,2 +569,3 @@ payload: z.ZodObject<{

payload: z.ZodObject<{
email: z.ZodString;
address: z.ZodString;

@@ -498,5 +575,7 @@ chainId: z.ZodNumber;

chainId: number;
email: string;
address: string;
}, {
chainId: number;
email: string;
address: string;

@@ -508,2 +587,3 @@ }>;

chainId: number;
email: string;
address: string;

@@ -515,2 +595,3 @@ };

chainId: number;
email: string;
address: string;

@@ -666,3 +747,91 @@ };

};
}>]>, z.ZodObject<{
type: z.ZodLiteral<"@w3m-frame/UPDATE_EMAIL_ERROR">;
payload: z.ZodObject<{
message: z.ZodString;
}, "strip", z.ZodTypeAny, {
message: string;
}, {
message: string;
}>;
}, "strip", z.ZodTypeAny, {
type: "@w3m-frame/UPDATE_EMAIL_ERROR";
payload: {
message: string;
};
}, {
type: "@w3m-frame/UPDATE_EMAIL_ERROR";
payload: {
message: string;
};
}>]>, z.ZodObject<{
type: z.ZodLiteral<"@w3m-frame/UPDATE_EMAIL_SUCCESS">;
}, "strip", z.ZodTypeAny, {
type: "@w3m-frame/UPDATE_EMAIL_SUCCESS";
}, {
type: "@w3m-frame/UPDATE_EMAIL_SUCCESS";
}>]>, z.ZodObject<{
type: z.ZodLiteral<"@w3m-frame/AWAIT_UPDATE_EMAIL_ERROR">;
payload: z.ZodObject<{
message: z.ZodString;
}, "strip", z.ZodTypeAny, {
message: string;
}, {
message: string;
}>;
}, "strip", z.ZodTypeAny, {
type: "@w3m-frame/AWAIT_UPDATE_EMAIL_ERROR";
payload: {
message: string;
};
}, {
type: "@w3m-frame/AWAIT_UPDATE_EMAIL_ERROR";
payload: {
message: string;
};
}>]>, z.ZodObject<{
type: z.ZodLiteral<"@w3m-frame/AWAIT_UPDATE_EMAIL_SUCCESS">;
payload: z.ZodObject<{
email: z.ZodString;
}, "strip", z.ZodTypeAny, {
email: string;
}, {
email: string;
}>;
}, "strip", z.ZodTypeAny, {
type: "@w3m-frame/AWAIT_UPDATE_EMAIL_SUCCESS";
payload: {
email: string;
};
}, {
type: "@w3m-frame/AWAIT_UPDATE_EMAIL_SUCCESS";
payload: {
email: string;
};
}>]>, z.ZodObject<{
type: z.ZodLiteral<"@w3m-frame/SYNC_THEME_ERROR">;
payload: z.ZodObject<{
message: z.ZodString;
}, "strip", z.ZodTypeAny, {
message: string;
}, {
message: string;
}>;
}, "strip", z.ZodTypeAny, {
type: "@w3m-frame/SYNC_THEME_ERROR";
payload: {
message: string;
};
}, {
type: "@w3m-frame/SYNC_THEME_ERROR";
payload: {
message: string;
};
}>]>, z.ZodObject<{
type: z.ZodLiteral<"@w3m-frame/SYNC_THEME_SUCCESS">;
}, "strip", z.ZodTypeAny, {
type: "@w3m-frame/SYNC_THEME_SUCCESS";
}, {
type: "@w3m-frame/SYNC_THEME_SUCCESS";
}>]>;
};
import { z } from 'zod';
import { W3mFrameSchema, AppConnectEmailRequest, AppConnectOtpRequest, AppSwitchNetworkRequest, FrameConnectEmailResponse, FrameGetChainIdResponse, FrameGetUserResponse, FrameIsConnectedResponse, RpcPersonalSignRequest, RpcResponse, RpcEthSendTransactionRequest, RpcEthSignTypedDataV4, RpcEthAccountsRequest, RpcEthEstimateGas, RpcEthGasPrice, RpcGetBalance, FrameSession, AppGetUserRequest } from './W3mFrameSchema.js';
import { W3mFrameSchema, AppConnectEmailRequest, AppConnectOtpRequest, AppSwitchNetworkRequest, FrameConnectEmailResponse, FrameGetChainIdResponse, FrameGetUserResponse, FrameIsConnectedResponse, RpcPersonalSignRequest, RpcResponse, RpcEthSendTransactionRequest, RpcEthSignTypedDataV4, RpcEthAccountsRequest, RpcEthEstimateGas, RpcEthGasPrice, RpcGetBalance, FrameSession, AppGetUserRequest, AppUpdateEmailRequest, FrameAwaitUpdateEmailResponse, AppSyncThemeRequest } from './W3mFrameSchema.js';
export declare namespace W3mFrameTypes {

@@ -11,2 +11,4 @@ type AppEvent = z.infer<typeof W3mFrameSchema.appEvent>;

AppGetUserRequest: z.infer<typeof AppGetUserRequest>;
AppUpdateEmailRequest: z.infer<typeof AppUpdateEmailRequest>;
AppSyncThemeRequest: z.infer<typeof AppSyncThemeRequest>;
}

@@ -18,2 +20,3 @@ interface Responses {

FrameIsConnectedResponse: z.infer<typeof FrameIsConnectedResponse>;
FrameAwaitUpdateEmailResponse: z.infer<typeof FrameAwaitUpdateEmailResponse>;
}

@@ -20,0 +23,0 @@ interface Network {

{
"name": "@web3modal/wallet",
"version": "3.6.0-dd04125d",
"version": "3.6.0-f682e195",
"type": "module",

@@ -5,0 +5,0 @@ "main": "./dist/esm/index.js",

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet