Skip to content

Commit

Permalink
add wallet methods
Browse files Browse the repository at this point in the history
  • Loading branch information
pedrouid committed Jan 12, 2022
1 parent 3c61120 commit 85844dd
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions legacy/types/src/constants/jsonrpc.ts
Original file line number Diff line number Diff line change
@@ -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",
Expand All @@ -8,6 +18,7 @@ export const SIGNING_METHODS = [
"eth_signTypedData_v3",
"eth_signTypedData_v4",
"personal_sign",
...WALLET_METHODS
];

// backwards-compatibility alias
Expand Down

0 comments on commit 85844dd

Please sign in to comment.