Socket
Socket
Sign inDemoInstall

@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 4.2.0-3f0d3b12.1 to 4.2.0-4031b23.2

dist/esm/src/RegexUtil.js

1

dist/esm/index.js

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

import '@web3modal/polyfills';
export { W3mFrame } from './src/W3mFrame.js';

@@ -2,0 +3,0 @@ export { W3mFrameHelpers } from './src/W3mFrameHelpers.js';

7

dist/esm/src/W3mFrame.js

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

import { W3mFrameConstants } from './W3mFrameConstants.js';
import { SECURE_SITE_SDK, W3mFrameConstants } from './W3mFrameConstants.js';
import { W3mFrameSchema } from './W3mFrameSchema.js';

@@ -62,3 +62,3 @@ import { W3mFrameHelpers } from './W3mFrameHelpers.js';

iframe.id = 'w3m-iframe';
iframe.src = `${W3mFrameConstants.SECURE_SITE_SDK}?projectId=${projectId}`;
iframe.src = `${SECURE_SITE_SDK}?projectId=${projectId}`;
iframe.style.position = 'fixed';

@@ -68,3 +68,4 @@ iframe.style.zIndex = '999999';

iframe.style.opacity = '0';
iframe.style.borderRadius = `clamp(0px, var(--wui-border-radius-l), 44px)`;
iframe.style.borderBottomLeftRadius = `clamp(0px, var(--wui-border-radius-l), 44px)`;
iframe.style.borderBottomRightRadius = `clamp(0px, var(--wui-border-radius-l), 44px)`;
document.body.appendChild(iframe);

@@ -71,0 +72,0 @@ this.iframe = iframe;

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

export const SECURE_SITE_SDK = process.env['NEXT_PUBLIC_SECURE_SITE_SDK_URL'] || 'https://secure.walletconnect.com/sdk';
export const W3mFrameConstants = {
SECURE_SITE_SDK: 'https://secure.walletconnect.com/sdk',
APP_EVENT_KEY: '@w3m-app/',

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

PREFERRED_ACCOUNT_TYPE: 'PREFERRED_ACCOUNT_TYPE',
SMART_ACCOUNT_ENABLED: 'SMART_ACCOUNT_ENABLED',
SMART_ACCOUNT_ENABLED_NETWORKS: 'SMART_ACCOUNT_ENABLED_NETWORKS',
APP_SWITCH_NETWORK: '@w3m-app/SWITCH_NETWORK',

@@ -66,3 +68,6 @@ APP_CONNECT_EMAIL: '@w3m-app/CONNECT_EMAIL',

FRAME_SET_PREFERRED_ACCOUNT_SUCCESS: '@w3m-frame/SET_PREFERRED_ACCOUNT_SUCCESS',
FRAME_SET_PREFERRED_ACCOUNT_ERROR: '@w3m-frame/SET_PREFERRED_ACCOUNT_ERROR'
FRAME_SET_PREFERRED_ACCOUNT_ERROR: '@w3m-frame/SET_PREFERRED_ACCOUNT_ERROR',
RPC_RESPONSE_TYPE_ERROR: 'RPC_RESPONSE_ERROR',
RPC_RESPONSE_TYPE_TX: 'RPC_RESPONSE_TRANSACTION_HASH',
RPC_RESPONSE_TYPE_OBJECT: 'RPC_RESPONSE_OBJECT'
};

@@ -109,4 +114,8 @@ export const W3mFrameRpcConstants = {

RPC_METHOD_NOT_ALLOWED_MESSAGE: 'Requested RPC call is not allowed',
RPC_METHOD_NOT_ALLOWED_UI_MESSAGE: 'Action not allowed'
RPC_METHOD_NOT_ALLOWED_UI_MESSAGE: 'Action not allowed',
ACCOUNT_TYPES: {
EOA: 'eoa',
SMART_ACCOUNT: 'smartAccount'
}
};
//# sourceMappingURL=W3mFrameConstants.js.map
import { W3mFrameStorage } from './W3mFrameStorage.js';
import { W3mFrameConstants, W3mFrameRpcConstants } from './W3mFrameConstants.js';
import { RegexUtil } from './RegexUtil.js';
const RESTRICTED_TIMEZONES = [

@@ -57,2 +58,16 @@ 'ASIA/SHANGHAI',

},
getResponseType(response) {
const { type, payload } = response;
const isError = type === W3mFrameConstants.FRAME_RPC_REQUEST_ERROR;
if (isError) {
return W3mFrameConstants.RPC_RESPONSE_TYPE_ERROR;
}
const isPayloadString = typeof payload === 'string';
const isTransactionHash = isPayloadString &&
(payload.match(RegexUtil.transactionHash) || payload.match(RegexUtil.signedMessage));
if (isTransactionHash) {
return W3mFrameConstants.RPC_RESPONSE_TYPE_TX;
}
return W3mFrameConstants.RPC_RESPONSE_TYPE_OBJECT;
},
checkIfRequestIsAllowed(request) {

@@ -59,0 +74,0 @@ const method = this.getRequestMethod(request);

@@ -22,3 +22,2 @@ import { W3mFrame } from './W3mFrame.js';

this.smartAccountEnabledNetworksResolver = undefined;
this.initSmartAccountResolver = undefined;
this.setPreferredAccountResolver = undefined;

@@ -68,3 +67,3 @@ this.w3mFrame = new W3mFrame(projectId, true);

case W3mFrameConstants.FRAME_UPDATE_EMAIL_SUCCESS:
return this.onUpdateEmailSuccess();
return this.onUpdateEmailSuccess(event);
case W3mFrameConstants.FRAME_UPDATE_EMAIL_ERROR:

@@ -92,10 +91,6 @@ return this.onUpdateEmailError(event);

return this.onSmartAccountEnabledNetworksError(event);
case W3mFrameConstants.FRAME_INIT_SMART_ACCOUNT_SUCCESS:
return this.onInitSmartAccountSuccess(event);
case W3mFrameConstants.FRAME_INIT_SMART_ACCOUNT_ERROR:
return this.onInitSmartAccountError(event);
case W3mFrameConstants.FRAME_SET_PREFERRED_ACCOUNT_SUCCESS:
return this.onPreferSmartAccountSuccess(event);
return this.onSetPreferredAccountSuccess();
case W3mFrameConstants.FRAME_SET_PREFERRED_ACCOUNT_ERROR:
return this.onPreferSmartAccountError();
return this.onSetPreferredAccountError();
default:

@@ -205,9 +200,2 @@ return null;

}
async initSmartAccount() {
await this.w3mFrame.frameLoadPromise;
this.w3mFrame.events.postAppEvent({ type: W3mFrameConstants.APP_INIT_SMART_ACCOUNT });
return new Promise((resolve, reject) => {
this.initSmartAccountResolver = { resolve, reject };
});
}
async setPreferredAccount(type) {

@@ -281,3 +269,3 @@ await this.w3mFrame.frameLoadPromise;

if (event.type === W3mFrameConstants.FRAME_GET_USER_SUCCESS) {
callback();
callback(event.payload);
}

@@ -297,12 +285,22 @@ });

}
onInitSmartAccount(callback) {
onSetPreferredAccount(callback) {
this.w3mFrame.events.onFrameEvent(event => {
if (event.type === W3mFrameConstants.FRAME_INIT_SMART_ACCOUNT_SUCCESS) {
callback(event.payload.isDeployed);
if (event.type === W3mFrameConstants.FRAME_SET_PREFERRED_ACCOUNT_SUCCESS) {
callback(event.payload);
}
else if (event.type === W3mFrameConstants.FRAME_INIT_SMART_ACCOUNT_ERROR) {
callback(false);
else if (event.type === W3mFrameConstants.FRAME_SET_PREFERRED_ACCOUNT_ERROR) {
callback({ type: W3mFrameRpcConstants.ACCOUNT_TYPES.EOA });
}
});
}
onGetSmartAccountEnabledNetworks(callback) {
this.w3mFrame.events.onFrameEvent(event => {
if (event.type === W3mFrameConstants.FRAME_GET_SMART_ACCOUNT_ENABLED_NETWORKS_SUCCESS) {
callback(event.payload.smartAccountEnabledNetworks);
}
else if (event.type === W3mFrameConstants.FRAME_GET_SMART_ACCOUNT_ENABLED_NETWORKS_ERROR) {
callback([]);
}
});
}
onConnectEmailSuccess(event) {

@@ -376,4 +374,4 @@ this.connectEmailResolver?.resolve(event.payload);

}
onUpdateEmailSuccess() {
this.updateEmailResolver?.resolve(undefined);
onUpdateEmailSuccess(event) {
this.updateEmailResolver?.resolve(event.payload);
this.setNewLastEmailLoginTime();

@@ -411,18 +409,13 @@ }

onSmartAccountEnabledNetworksSuccess(event) {
this.persistSmartAccountEnabledNetworks(event.payload.smartAccountEnabledNetworks);
this.smartAccountEnabledNetworksResolver?.resolve(event.payload);
}
onSmartAccountEnabledNetworksError(event) {
this.persistSmartAccountEnabledNetworks([]);
this.smartAccountEnabledNetworksResolver?.reject(event.payload.message);
}
onInitSmartAccountSuccess(event) {
this.initSmartAccountResolver?.resolve(event.payload);
}
onInitSmartAccountError(event) {
this.initSmartAccountResolver?.reject(event.payload.message);
}
onPreferSmartAccountSuccess(event) {
this.persistPreferredAccount(event.payload.type);
onSetPreferredAccountSuccess() {
this.setPreferredAccountResolver?.resolve(undefined);
}
onPreferSmartAccountError() {
onSetPreferredAccountError() {
this.setPreferredAccountResolver?.reject();

@@ -449,6 +442,6 @@ }

}
persistPreferredAccount(type) {
W3mFrameStorage.set(W3mFrameConstants.PREFERRED_ACCOUNT_TYPE, type);
persistSmartAccountEnabledNetworks(networks) {
W3mFrameStorage.set(W3mFrameConstants.SMART_ACCOUNT_ENABLED_NETWORKS, networks.join(','));
}
}
//# sourceMappingURL=W3mFrameProvider.js.map

@@ -30,3 +30,6 @@ import { z } from 'zod';

export const AppConnectOtpRequest = z.object({ otp: z.string() });
export const AppGetUserRequest = z.object({ chainId: z.optional(z.number()) });
export const AppGetUserRequest = z.object({
chainId: z.optional(z.number()),
preferredAccountType: z.optional(z.string())
});
export const AppUpdateEmailRequest = z.object({ email: z.string().email() });

@@ -37,3 +40,4 @@ export const AppUpdateEmailPrimaryOtpRequest = z.object({ otp: z.string() });

themeMode: z.optional(z.enum(['light', 'dark'])),
themeVariables: z.optional(z.record(z.string(), z.string().or(z.number())))
themeVariables: z.optional(z.record(z.string(), z.string().or(z.number()))),
w3mThemeVariables: z.record(z.string(), z.string())
});

@@ -56,6 +60,11 @@ export const AppSyncDappDataRequest = z.object({

});
export const FrameUpdateEmailResponse = z.object({
action: z.enum(['VERIFY_PRIMARY_OTP', 'VERIFY_SECONDARY_OTP'])
});
export const FrameGetUserResponse = z.object({
email: z.string().email(),
address: z.string(),
chainId: z.number()
chainId: z.number(),
smartAccountDeployed: z.optional(z.boolean()),
preferredAccountType: z.optional(z.string())
});

@@ -73,3 +82,3 @@ export const FrameIsConnectedResponse = z.object({ isConnected: z.boolean() });

});
export const FrameSetPreferredAccountResponse = z.object({ type: z.string() });
export const FrameSetPreferredAccountResponse = z.object({ type: z.string(), address: z.string() });
export const RpcResponse = z.any();

@@ -306,3 +315,3 @@ export const RpcEthAccountsRequest = z.object({

.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_UPDATE_EMAIL_SUCCESS'), payload: FrameUpdateEmailResponse }))
.or(z.object({ type: zType('FRAME_UPDATE_EMAIL_PRIMARY_OTP_ERROR'), payload: zError }))

@@ -327,6 +336,2 @@ .or(z.object({ type: zType('FRAME_UPDATE_EMAIL_PRIMARY_OTP_SUCCESS') }))

}))
.or(z.object({
type: zType('FRAME_INIT_SMART_ACCOUNT_SUCCESS'),
payload: FrameInitSmartAccountResponse
}))
.or(z.object({ type: zType('FRAME_INIT_SMART_ACCOUNT_ERROR'), payload: zError }))

@@ -333,0 +338,0 @@ .or(z.object({

import { z } from 'zod';
import { W3mFrameSchema, AppConnectEmailRequest, AppConnectOtpRequest, AppSwitchNetworkRequest, FrameConnectEmailResponse, FrameGetChainIdResponse, FrameGetUserResponse, FrameIsConnectedResponse, RpcPersonalSignRequest, RpcResponse, RpcEthSendTransactionRequest, RpcEthSignTypedDataV4, RpcEthAccountsRequest, RpcEthEstimateGas, RpcEthGasPrice, RpcEthBlockNumber, RpcEthGetTransactionByHash, RpcEthGetBlockByNumber, RpcEthCall, RpcEthFeeHistory, RpcEthGetAccount, RpcEthGetBalance, RpcEthGetBlockyByHash, RpcUnistallFilter, RpcEthSyncing, RpcEthSendRawTransaction, RpcEthNewPendingTransactionFilter, RpcEthNewFilter, RpcEthNewBlockFilter, RpcEthMaxPriorityFeePerGas, RpcEthGetUncleCountByBlockNumber, RpcEthGetUncleCountByBlockHash, RpcEthGetTransactionReceipt, RpcEthGetTransactionCount, RpcEthGetTransactionByBlockNumberAndIndex, RpcEthGetTransactionByBlockHashAndIndex, RpcEthGetStorageAt, RpcEthGetProof, RpcEthGetLogs, RpcEthGetFilterLogs, RpcEthGetFilter, RpcEthGetCode, RcpEthGetBlockTransactionCountByNumber, RcpEthGetBlockTransactionCountByHash, RpcEthGetBlockReceipts, FrameSession, AppGetUserRequest, AppUpdateEmailRequest, FrameUpdateEmailSecondaryOtpResolver, AppUpdateEmailPrimaryOtpRequest, AppUpdateEmailSecondaryOtpRequest, AppSyncThemeRequest, RpcEthChainId, FrameSwitchNetworkResponse, AppSyncDappDataRequest, FrameGetSmartAccountEnabledNetworksResponse, FrameInitSmartAccountResponse } from './W3mFrameSchema.js';
import { W3mFrameSchema, AppConnectEmailRequest, AppConnectOtpRequest, AppSwitchNetworkRequest, FrameConnectEmailResponse, FrameGetChainIdResponse, FrameGetUserResponse, FrameIsConnectedResponse, RpcPersonalSignRequest, RpcResponse, RpcEthSendTransactionRequest, RpcEthSignTypedDataV4, RpcEthAccountsRequest, RpcEthEstimateGas, RpcEthGasPrice, RpcEthBlockNumber, RpcEthGetTransactionByHash, RpcEthGetBlockByNumber, RpcEthCall, RpcEthFeeHistory, RpcEthGetAccount, RpcEthGetBalance, RpcEthGetBlockyByHash, RpcUnistallFilter, RpcEthSyncing, RpcEthSendRawTransaction, RpcEthNewPendingTransactionFilter, RpcEthNewFilter, RpcEthNewBlockFilter, RpcEthMaxPriorityFeePerGas, RpcEthGetUncleCountByBlockNumber, RpcEthGetUncleCountByBlockHash, RpcEthGetTransactionReceipt, RpcEthGetTransactionCount, RpcEthGetTransactionByBlockNumberAndIndex, RpcEthGetTransactionByBlockHashAndIndex, RpcEthGetStorageAt, RpcEthGetProof, RpcEthGetLogs, RpcEthGetFilterLogs, RpcEthGetFilter, RpcEthGetCode, RcpEthGetBlockTransactionCountByNumber, RcpEthGetBlockTransactionCountByHash, RpcEthGetBlockReceipts, FrameSession, AppGetUserRequest, AppUpdateEmailRequest, FrameUpdateEmailSecondaryOtpResolver, AppUpdateEmailPrimaryOtpRequest, AppUpdateEmailSecondaryOtpRequest, AppSyncThemeRequest, RpcEthChainId, FrameSwitchNetworkResponse, AppSyncDappDataRequest, FrameGetSmartAccountEnabledNetworksResponse, FrameUpdateEmailResponse } from './W3mFrameSchema.js';
//# sourceMappingURL=W3mFrameTypes.js.map

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

import '@web3modal/polyfills';
export { W3mFrame } from './src/W3mFrame.js';

@@ -5,4 +6,4 @@ export { W3mFrameHelpers } from './src/W3mFrameHelpers.js';

export { W3mFrameSchema } from './src/W3mFrameSchema.js';
export { W3mFrameConstants, W3mFrameRpcConstants } from './src/W3mFrameConstants.js';
export { W3mFrameConstants, W3mFrameRpcConstants, type W3mFrameConstantValue } from './src/W3mFrameConstants.js';
export { W3mFrameStorage } from './src/W3mFrameStorage.js';
export type { W3mFrameTypes } from './src/W3mFrameTypes.js';

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

export declare const SECURE_SITE_SDK: string;
export declare const W3mFrameConstants: {
readonly SECURE_SITE_SDK: "https://secure.walletconnect.com/sdk";
readonly APP_EVENT_KEY: "@w3m-app/";

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

readonly PREFERRED_ACCOUNT_TYPE: "PREFERRED_ACCOUNT_TYPE";
readonly SMART_ACCOUNT_ENABLED: "SMART_ACCOUNT_ENABLED";
readonly SMART_ACCOUNT_ENABLED_NETWORKS: "SMART_ACCOUNT_ENABLED_NETWORKS";
readonly APP_SWITCH_NETWORK: "@w3m-app/SWITCH_NETWORK";

@@ -67,3 +69,7 @@ readonly APP_CONNECT_EMAIL: "@w3m-app/CONNECT_EMAIL";

readonly FRAME_SET_PREFERRED_ACCOUNT_ERROR: "@w3m-frame/SET_PREFERRED_ACCOUNT_ERROR";
readonly RPC_RESPONSE_TYPE_ERROR: "RPC_RESPONSE_ERROR";
readonly RPC_RESPONSE_TYPE_TX: "RPC_RESPONSE_TRANSACTION_HASH";
readonly RPC_RESPONSE_TYPE_OBJECT: "RPC_RESPONSE_OBJECT";
};
export type W3mFrameConstantValue = (typeof W3mFrameConstants)[keyof typeof W3mFrameConstants];
export declare const W3mFrameRpcConstants: {

@@ -75,2 +81,6 @@ SAFE_RPC_METHODS: string[];

RPC_METHOD_NOT_ALLOWED_UI_MESSAGE: string;
ACCOUNT_TYPES: {
readonly EOA: "eoa";
readonly SMART_ACCOUNT: "smartAccount";
};
};

@@ -7,4 +7,5 @@ export declare const W3mFrameHelpers: {

getRequestMethod(request: unknown): "eth_accounts" | "eth_blockNumber" | "eth_call" | "eth_chainId" | "eth_estimateGas" | "eth_feeHistory" | "eth_gasPrice" | "eth_getAccount" | "eth_getBalance" | "eth_getBlockByHash" | "eth_getBlockByNumber" | "eth_getBlockReceipts" | "eth_getBlockTransactionCountByHash" | "eth_getBlockTransactionCountByNumber" | "eth_getCode" | "eth_getFilterChanges" | "eth_getFilterLogs" | "eth_getLogs" | "eth_getProof" | "eth_getStorageAt" | "eth_getTransactionByBlockHashAndIndex" | "eth_getTransactionByBlockNumberAndIndex" | "eth_getTransactionByHash" | "eth_getTransactionCount" | "eth_getTransactionReceipt" | "eth_getUncleCountByBlockHash" | "eth_getUncleCountByBlockNumber" | "eth_maxPriorityFeePerGas" | "eth_newBlockFilter" | "eth_newFilter" | "eth_newPendingTransactionFilter" | "eth_sendRawTransaction" | "eth_syncing" | "eth_uninstallFilter" | "personal_sign" | "eth_signTypedData_v4" | "eth_sendTransaction";
getResponseType(response: unknown): "RPC_RESPONSE_ERROR" | "RPC_RESPONSE_TRANSACTION_HASH" | "RPC_RESPONSE_OBJECT";
checkIfRequestIsAllowed(request: unknown): boolean;
isClient: boolean;
};

@@ -19,3 +19,2 @@ import type { W3mFrameTypes } from './W3mFrameTypes.js';

private smartAccountEnabledNetworksResolver;
private initSmartAccountResolver;
private setPreferredAccountResolver;

@@ -37,3 +36,5 @@ constructor(projectId: string);

}>;
updateEmail(payload: W3mFrameTypes.Requests['AppUpdateEmailRequest']): Promise<unknown>;
updateEmail(payload: W3mFrameTypes.Requests['AppUpdateEmailRequest']): Promise<{
action: "VERIFY_PRIMARY_OTP" | "VERIFY_SECONDARY_OTP";
}>;
updateEmailPrimaryOtp(payload: W3mFrameTypes.Requests['AppUpdateEmailPrimaryOtpRequest']): Promise<unknown>;

@@ -48,7 +49,3 @@ updateEmailSecondaryOtp(payload: W3mFrameTypes.Requests['AppUpdateEmailSecondaryOtpRequest']): Promise<{

}>;
initSmartAccount(): Promise<{
address: string;
isDeployed: boolean;
}>;
setPreferredAccount(type: 'eoa' | 'smartAccount'): Promise<unknown>;
setPreferredAccount(type: W3mFrameTypes.AccountType): Promise<unknown>;
connect(payload?: W3mFrameTypes.Requests['AppGetUserRequest']): Promise<{

@@ -58,2 +55,4 @@ chainId: number;

address: string;
smartAccountDeployed?: boolean | undefined;
preferredAccountType?: string | undefined;
}>;

@@ -67,5 +66,9 @@ switchNetwork(chainId: number): Promise<{

onRpcResponse(callback: (request: unknown) => void): void;
onIsConnected(callback: () => void): void;
onIsConnected(callback: (request: W3mFrameTypes.Responses['FrameGetUserResponse']) => void): void;
onNotConnected(callback: () => void): void;
onInitSmartAccount(callback: (isDeployed: boolean) => void): void;
onSetPreferredAccount(callback: ({ type, address }: {
type: string;
address?: string;
}) => void): void;
onGetSmartAccountEnabledNetworks(callback: (networks: number[]) => void): void;
private onConnectEmailSuccess;

@@ -102,6 +105,4 @@ private onConnectEmailError;

private onSmartAccountEnabledNetworksError;
private onInitSmartAccountSuccess;
private onInitSmartAccountError;
private onPreferSmartAccountSuccess;
private onPreferSmartAccountError;
private onSetPreferredAccountSuccess;
private onSetPreferredAccountError;
private setNewLastEmailLoginTime;

@@ -112,3 +113,3 @@ private setEmailLoginSuccess;

private getLastUsedChainId;
private persistPreferredAccount;
private persistSmartAccountEnabledNetworks;
}
import { z } from 'zod';
import { W3mFrameSchema, AppConnectEmailRequest, AppConnectOtpRequest, AppSwitchNetworkRequest, FrameConnectEmailResponse, FrameGetChainIdResponse, FrameGetUserResponse, FrameIsConnectedResponse, RpcPersonalSignRequest, RpcResponse, RpcEthSendTransactionRequest, RpcEthSignTypedDataV4, RpcEthAccountsRequest, RpcEthEstimateGas, RpcEthGasPrice, RpcEthBlockNumber, RpcEthGetTransactionByHash, RpcEthGetBlockByNumber, RpcEthCall, RpcEthFeeHistory, RpcEthGetAccount, RpcEthGetBalance, RpcEthGetBlockyByHash, RpcUnistallFilter, RpcEthSyncing, RpcEthSendRawTransaction, RpcEthNewPendingTransactionFilter, RpcEthNewFilter, RpcEthNewBlockFilter, RpcEthMaxPriorityFeePerGas, RpcEthGetUncleCountByBlockNumber, RpcEthGetUncleCountByBlockHash, RpcEthGetTransactionReceipt, RpcEthGetTransactionCount, RpcEthGetTransactionByBlockNumberAndIndex, RpcEthGetTransactionByBlockHashAndIndex, RpcEthGetStorageAt, RpcEthGetProof, RpcEthGetLogs, RpcEthGetFilterLogs, RpcEthGetFilter, RpcEthGetCode, RcpEthGetBlockTransactionCountByNumber, RcpEthGetBlockTransactionCountByHash, RpcEthGetBlockReceipts, FrameSession, AppGetUserRequest, AppUpdateEmailRequest, FrameUpdateEmailSecondaryOtpResolver, AppUpdateEmailPrimaryOtpRequest, AppUpdateEmailSecondaryOtpRequest, AppSyncThemeRequest, RpcEthChainId, FrameSwitchNetworkResponse, AppSyncDappDataRequest, FrameGetSmartAccountEnabledNetworksResponse, FrameInitSmartAccountResponse } from './W3mFrameSchema.js';
import { W3mFrameSchema, AppConnectEmailRequest, AppConnectOtpRequest, AppSwitchNetworkRequest, FrameConnectEmailResponse, FrameGetChainIdResponse, FrameGetUserResponse, FrameIsConnectedResponse, RpcPersonalSignRequest, RpcResponse, RpcEthSendTransactionRequest, RpcEthSignTypedDataV4, RpcEthAccountsRequest, RpcEthEstimateGas, RpcEthGasPrice, RpcEthBlockNumber, RpcEthGetTransactionByHash, RpcEthGetBlockByNumber, RpcEthCall, RpcEthFeeHistory, RpcEthGetAccount, RpcEthGetBalance, RpcEthGetBlockyByHash, RpcUnistallFilter, RpcEthSyncing, RpcEthSendRawTransaction, RpcEthNewPendingTransactionFilter, RpcEthNewFilter, RpcEthNewBlockFilter, RpcEthMaxPriorityFeePerGas, RpcEthGetUncleCountByBlockNumber, RpcEthGetUncleCountByBlockHash, RpcEthGetTransactionReceipt, RpcEthGetTransactionCount, RpcEthGetTransactionByBlockNumberAndIndex, RpcEthGetTransactionByBlockHashAndIndex, RpcEthGetStorageAt, RpcEthGetProof, RpcEthGetLogs, RpcEthGetFilterLogs, RpcEthGetFilter, RpcEthGetCode, RcpEthGetBlockTransactionCountByNumber, RcpEthGetBlockTransactionCountByHash, RpcEthGetBlockReceipts, FrameSession, AppGetUserRequest, AppUpdateEmailRequest, FrameUpdateEmailSecondaryOtpResolver, AppUpdateEmailPrimaryOtpRequest, AppUpdateEmailSecondaryOtpRequest, AppSyncThemeRequest, RpcEthChainId, FrameSwitchNetworkResponse, AppSyncDappDataRequest, FrameGetSmartAccountEnabledNetworksResponse, FrameUpdateEmailResponse } from './W3mFrameSchema.js';
import type { W3mFrameRpcConstants } from './W3mFrameConstants.js';
export declare namespace W3mFrameTypes {

@@ -25,3 +26,3 @@ type AppEvent = z.infer<typeof W3mFrameSchema.appEvent>;

FrameGetSmartAccountEnabledNetworksResponse: z.infer<typeof FrameGetSmartAccountEnabledNetworksResponse>;
FrameInitSmartAccountResponse: z.infer<typeof FrameInitSmartAccountResponse>;
FrameUpdateEmailResponse: z.infer<typeof FrameUpdateEmailResponse>;
}

@@ -35,2 +36,3 @@ interface Network {

type FrameSessionType = z.infer<typeof FrameSession>;
type AccountType = (typeof W3mFrameRpcConstants.ACCOUNT_TYPES)[keyof typeof W3mFrameRpcConstants.ACCOUNT_TYPES];
}
{
"name": "@web3modal/wallet",
"version": "4.2.0-3f0d3b12.1",
"version": "4.2.0-4031b23.2",
"type": "module",

@@ -19,3 +19,4 @@ "main": "./dist/esm/index.js",

"dependencies": {
"zod": "3.22.4"
"zod": "3.22.4",
"@web3modal/polyfills": "4.2.0-4031b23.2"
},

@@ -22,0 +23,0 @@ "keywords": [

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

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

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