-
Notifications
You must be signed in to change notification settings - Fork 457
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
47 additions
and
44 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
export const SAFE_COMPATIBLE_METHODS = [ | ||
'eth_accounts', | ||
'net_version', | ||
'eth_chainId', | ||
'personal_sign', | ||
'eth_sign', | ||
'eth_signTypedData', | ||
'eth_signTypedData_v4', | ||
'eth_sendTransaction', | ||
'eth_blockNumber', | ||
'eth_getBalance', | ||
'eth_getCode', | ||
'eth_getTransactionCount', | ||
'eth_getStorageAt', | ||
'eth_getBlockByNumber', | ||
'eth_getBlockByHash', | ||
'eth_getTransactionByHash', | ||
'eth_getTransactionReceipt', | ||
'eth_estimateGas', | ||
'eth_call', | ||
'eth_getLogs', | ||
'eth_gasPrice', | ||
'wallet_getPermissions', | ||
'wallet_requestPermissions', | ||
'safe_setSettings', | ||
] | ||
|
||
export enum WC_ERRORS { | ||
UNSUPPORTED_CHAIN_ERROR_CODE = 5100, | ||
INVALID_METHOD_ERROR_CODE = 1001, | ||
USER_REJECTED_REQUEST_CODE = 4001, | ||
USER_DISCONNECTED_CODE = 6000, | ||
} | ||
|
||
export const SAFE_WALLET_METADATA = { | ||
name: 'Safe Wallet', | ||
description: 'The most trusted platform to manage digital assets on Ethereum', | ||
url: 'https://app.safe.global', | ||
icons: ['https://app.safe.global/favicons/mstile-150x150.png', 'https://app.safe.global/favicons/logo_120x120.png'], | ||
} | ||
|
||
export const EVMBasedNamespaces = 'eip155' |