From 85844ddfd58ae3480960898bf72ccb4504201638 Mon Sep 17 00:00:00 2001 From: Pedro Gomes Date: Wed, 12 Jan 2022 16:36:59 +0100 Subject: [PATCH] add wallet methods --- legacy/types/src/constants/jsonrpc.ts | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/legacy/types/src/constants/jsonrpc.ts b/legacy/types/src/constants/jsonrpc.ts index 95e38613c..b88830ec1 100644 --- a/legacy/types/src/constants/jsonrpc.ts +++ b/legacy/types/src/constants/jsonrpc.ts @@ -1,3 +1,13 @@ +export const WALLET_METHODS = [ + "wallet_addEthereumChain", + "wallet_switchEthereumChain", + "wallet_getPermissions", + "wallet_requestPermissions", + "wallet_registerOnboarding", + "wallet_watchAsset", + "wallet_scanQRCode", +] + export const SIGNING_METHODS = [ "eth_sendTransaction", "eth_signTransaction", @@ -8,6 +18,7 @@ export const SIGNING_METHODS = [ "eth_signTypedData_v3", "eth_signTypedData_v4", "personal_sign", + ...WALLET_METHODS ]; // backwards-compatibility alias