@web3modal/wallet
Advanced tools
Comparing version 4.0.7 to 4.0.8-f1845392.0
@@ -62,3 +62,4 @@ export const W3mFrameConstants = { | ||
'eth_getTransactionByHash', | ||
'eth_getBalance' | ||
'eth_getBalance', | ||
'eth_getBlockByNumber' | ||
], | ||
@@ -65,0 +66,0 @@ GET_CHAIN_ID: 'eth_chainId' |
@@ -99,2 +99,6 @@ import { z } from 'zod'; | ||
}); | ||
export const RpcEthGetBlockByNumber = z.object({ | ||
method: z.literal('eth_getBlockByNumber'), | ||
params: z.array(z.any()) | ||
}); | ||
export const FrameSession = z.object({ | ||
@@ -124,2 +128,3 @@ token: z.string() | ||
.or(RpcEthGetTransactionByHash) | ||
.or(RpcEthGetBlockByNumber) | ||
})) | ||
@@ -126,0 +131,0 @@ .or(z.object({ type: zType('APP_UPDATE_EMAIL'), payload: AppUpdateEmailRequest })) |
import { z } from 'zod'; | ||
import { W3mFrameSchema, AppConnectEmailRequest, AppConnectOtpRequest, AppSwitchNetworkRequest, FrameConnectEmailResponse, FrameGetChainIdResponse, FrameGetUserResponse, FrameIsConnectedResponse, RpcPersonalSignRequest, RpcResponse, RpcEthSendTransactionRequest, RpcEthSignTypedDataV4, RpcEthAccountsRequest, RpcEthEstimateGas, RpcEthGasPrice, RpcGetBalance, RpcEthBlockNumber, FrameSession, AppGetUserRequest, AppUpdateEmailRequest, FrameUpdateEmailSecondaryOtpResolver, AppUpdateEmailPrimaryOtpRequest, AppUpdateEmailSecondaryOtpRequest, AppSyncThemeRequest, RpcEthChainId, FrameSwitchNetworkResponse, AppSyncDappDataRequest, RpcEthGetTransactionByHash } from './W3mFrameSchema.js'; | ||
import { W3mFrameSchema, AppConnectEmailRequest, AppConnectOtpRequest, AppSwitchNetworkRequest, FrameConnectEmailResponse, FrameGetChainIdResponse, FrameGetUserResponse, FrameIsConnectedResponse, RpcPersonalSignRequest, RpcResponse, RpcEthSendTransactionRequest, RpcEthSignTypedDataV4, RpcEthAccountsRequest, RpcEthEstimateGas, RpcEthGasPrice, RpcGetBalance, RpcEthBlockNumber, FrameSession, AppGetUserRequest, AppUpdateEmailRequest, FrameUpdateEmailSecondaryOtpResolver, AppUpdateEmailPrimaryOtpRequest, AppUpdateEmailSecondaryOtpRequest, AppSyncThemeRequest, RpcEthChainId, FrameSwitchNetworkResponse, AppSyncDappDataRequest, RpcEthGetTransactionByHash, RpcEthGetBlockByNumber } from './W3mFrameSchema.js'; | ||
//# sourceMappingURL=W3mFrameTypes.js.map |
@@ -294,2 +294,12 @@ import { z } from 'zod'; | ||
}>; | ||
export declare const RpcEthGetBlockByNumber: z.ZodObject<{ | ||
method: z.ZodLiteral<"eth_getBlockByNumber">; | ||
params: z.ZodArray<z.ZodAny, "many">; | ||
}, "strip", z.ZodTypeAny, { | ||
params: any[]; | ||
method: "eth_getBlockByNumber"; | ||
}, { | ||
params: any[]; | ||
method: "eth_getBlockByNumber"; | ||
}>; | ||
export declare const FrameSession: z.ZodObject<{ | ||
@@ -418,3 +428,3 @@ token: z.ZodString; | ||
type: z.ZodLiteral<"@w3m-app/RPC_REQUEST">; | ||
payload: z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodObject<{ | ||
payload: z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodObject<{ | ||
method: z.ZodLiteral<"personal_sign">; | ||
@@ -497,2 +507,11 @@ params: z.ZodArray<z.ZodAny, "many">; | ||
method: "eth_getTransactionByHash"; | ||
}>]>, z.ZodObject<{ | ||
method: z.ZodLiteral<"eth_getBlockByNumber">; | ||
params: z.ZodArray<z.ZodAny, "many">; | ||
}, "strip", z.ZodTypeAny, { | ||
params: any[]; | ||
method: "eth_getBlockByNumber"; | ||
}, { | ||
params: any[]; | ||
method: "eth_getBlockByNumber"; | ||
}>]>; | ||
@@ -527,2 +546,5 @@ }, "strip", z.ZodTypeAny, { | ||
method: "eth_chainId"; | ||
} | { | ||
params: any[]; | ||
method: "eth_getBlockByNumber"; | ||
}; | ||
@@ -557,2 +579,5 @@ }, { | ||
method: "eth_chainId"; | ||
} | { | ||
params: any[]; | ||
method: "eth_getBlockByNumber"; | ||
}; | ||
@@ -559,0 +584,0 @@ }>]>, z.ZodObject<{ |
import { z } from 'zod'; | ||
import { W3mFrameSchema, AppConnectEmailRequest, AppConnectOtpRequest, AppSwitchNetworkRequest, FrameConnectEmailResponse, FrameGetChainIdResponse, FrameGetUserResponse, FrameIsConnectedResponse, RpcPersonalSignRequest, RpcResponse, RpcEthSendTransactionRequest, RpcEthSignTypedDataV4, RpcEthAccountsRequest, RpcEthEstimateGas, RpcEthGasPrice, RpcGetBalance, RpcEthBlockNumber, FrameSession, AppGetUserRequest, AppUpdateEmailRequest, FrameUpdateEmailSecondaryOtpResolver, AppUpdateEmailPrimaryOtpRequest, AppUpdateEmailSecondaryOtpRequest, AppSyncThemeRequest, RpcEthChainId, FrameSwitchNetworkResponse, AppSyncDappDataRequest, RpcEthGetTransactionByHash } from './W3mFrameSchema.js'; | ||
import { W3mFrameSchema, AppConnectEmailRequest, AppConnectOtpRequest, AppSwitchNetworkRequest, FrameConnectEmailResponse, FrameGetChainIdResponse, FrameGetUserResponse, FrameIsConnectedResponse, RpcPersonalSignRequest, RpcResponse, RpcEthSendTransactionRequest, RpcEthSignTypedDataV4, RpcEthAccountsRequest, RpcEthEstimateGas, RpcEthGasPrice, RpcGetBalance, RpcEthBlockNumber, FrameSession, AppGetUserRequest, AppUpdateEmailRequest, FrameUpdateEmailSecondaryOtpResolver, AppUpdateEmailPrimaryOtpRequest, AppUpdateEmailSecondaryOtpRequest, AppSyncThemeRequest, RpcEthChainId, FrameSwitchNetworkResponse, AppSyncDappDataRequest, RpcEthGetTransactionByHash, RpcEthGetBlockByNumber } from './W3mFrameSchema.js'; | ||
export declare namespace W3mFrameTypes { | ||
@@ -29,5 +29,5 @@ type AppEvent = z.infer<typeof W3mFrameSchema.appEvent>; | ||
} | ||
type RPCRequest = z.infer<typeof RpcPersonalSignRequest> | z.infer<typeof RpcEthSendTransactionRequest> | z.infer<typeof RpcEthSignTypedDataV4> | z.infer<typeof RpcEthAccountsRequest> | z.infer<typeof RpcEthEstimateGas> | z.infer<typeof RpcEthGasPrice> | z.infer<typeof RpcGetBalance> | z.infer<typeof RpcEthBlockNumber> | z.infer<typeof RpcEthChainId> | z.infer<typeof RpcEthGetTransactionByHash>; | ||
type RPCRequest = z.infer<typeof RpcPersonalSignRequest> | z.infer<typeof RpcEthSendTransactionRequest> | z.infer<typeof RpcEthSignTypedDataV4> | z.infer<typeof RpcEthAccountsRequest> | z.infer<typeof RpcEthEstimateGas> | z.infer<typeof RpcEthGasPrice> | z.infer<typeof RpcGetBalance> | z.infer<typeof RpcEthBlockNumber> | z.infer<typeof RpcEthChainId> | z.infer<typeof RpcEthGetTransactionByHash> | z.infer<typeof RpcEthGetBlockByNumber>; | ||
type RPCResponse = z.infer<typeof RpcResponse>; | ||
type FrameSessionType = z.infer<typeof FrameSession>; | ||
} |
{ | ||
"name": "@web3modal/wallet", | ||
"version": "4.0.7", | ||
"version": "4.0.8-f1845392.0", | ||
"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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
117980
2197
1