diff --git a/packages/wallet/src/W3mFrameSchema.ts b/packages/wallet/src/W3mFrameSchema.ts index c4d08b7d82..8b355e2e38 100644 --- a/packages/wallet/src/W3mFrameSchema.ts +++ b/packages/wallet/src/W3mFrameSchema.ts @@ -100,6 +100,16 @@ export const RpcEthGetTransactionByHash = z.object({ params: z.array(z.any()) }) +export const RpcEthSendUserOperation = z.object({ + method: z.literal('eth_sendUserOperation'), + params: z.array(z.any()) +}) + +export const RpcEthEstimateUserOperationGas = z.object({ + method: z.literal('eth_estimateUserOperationGas'), + params: z.array(z.any()) +}) + export const RpcEthBlockNumber = z.object({ method: z.literal('eth_blockNumber') }) @@ -144,6 +154,8 @@ export const W3mFrameSchema = { .or(RpcEthBlockNumber) .or(RpcEthChainId) .or(RpcEthGetTransactionByHash) + .or(RpcEthSendUserOperation) + .or(RpcEthEstimateUserOperationGas) }) ) diff --git a/packages/wallet/src/W3mFrameTypes.ts b/packages/wallet/src/W3mFrameTypes.ts index acc1adb0fa..4a53c12bff 100644 --- a/packages/wallet/src/W3mFrameTypes.ts +++ b/packages/wallet/src/W3mFrameTypes.ts @@ -27,7 +27,9 @@ import { RpcEthChainId, FrameSwitchNetworkResponse, AppSyncDappDataRequest, - RpcEthGetTransactionByHash + RpcEthGetTransactionByHash, + RpcEthSendUserOperation, + RpcEthEstimateUserOperationGas } from './W3mFrameSchema.js' export namespace W3mFrameTypes { @@ -72,6 +74,8 @@ export namespace W3mFrameTypes { | z.infer | z.infer | z.infer + | z.infer + | z.infer export type RPCResponse = z.infer