mirror of
https://github.com/luxfi/eth-walletconnect-keyring.git
synced 2026-10-30 16:58:01 +00:00
31 lines
721 B
TypeScript
31 lines
721 B
TypeScript
export const OPTIONAL_METHODS = [
|
|
'eth_accounts',
|
|
'eth_requestAccounts',
|
|
'eth_sendRawTransaction',
|
|
'eth_sign',
|
|
'eth_signTransaction',
|
|
'eth_signTypedData',
|
|
'eth_signTypedData_v3',
|
|
'eth_signTypedData_v4',
|
|
'eth_sendTransaction',
|
|
'personal_sign',
|
|
'wallet_switchEthereumChain',
|
|
'wallet_addEthereumChain',
|
|
'wallet_getPermissions',
|
|
'wallet_requestPermissions',
|
|
'wallet_registerOnboarding',
|
|
'wallet_watchAsset',
|
|
'wallet_scanQRCode'
|
|
];
|
|
export const OPTIONAL_EVENTS = [
|
|
'chainChanged',
|
|
'accountsChanged',
|
|
'message',
|
|
'disconnect',
|
|
'connect'
|
|
];
|
|
|
|
export const REQUIRED_METHODS = ['eth_sendTransaction', 'personal_sign'];
|
|
|
|
export const REQUIRED_EVENTS = ['chainChanged', 'accountsChanged'];
|