Files
2024-07-16 01:07:42 +10:00

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'];