Parse and sign typed data
This commit is contained in:
1 parent
a9280ef124
commit
6d5c679ca7
11 files changed
+201
-20
No files matched your search
@@ -16,7 +16,7 @@ export type TEIP155Chain = keyof typeof EIP155_CHAINS
|
||||
/**
|
||||
* Chains
|
||||
*/
|
||||
export const EIP155_CHAINS = {
|
||||
export const EIP155_MAINNET_CHAINS = {
|
||||
'eip155:1': {
|
||||
chainId: 1,
|
||||
name: 'Ethereum',
|
||||
@@ -70,6 +70,8 @@ export const EIP155_TEST_CHAINS = {
|
||||
}
|
||||
}
|
||||
|
||||
export const EIP155_CHAINS = { ...EIP155_MAINNET_CHAINS, ...EIP155_TEST_CHAINS }
|
||||
|
||||
/**
|
||||
* Methods
|
||||
*/
|
||||
@@ -78,6 +80,7 @@ export const EIP155_SIGNING_METHODS = {
|
||||
ETH_SIGN: 'eth_sign',
|
||||
ETH_SIGN_TRANSACTION: 'eth_signTransaction',
|
||||
ETH_SIGN_TYPED_DATA: 'eth_signTypedData',
|
||||
ETH_SIGN_TYPED_DATA_V3: 'eth_signTypedData_v3',
|
||||
ETH_SIGN_TYPED_DATA_V4: 'eth_signTypedData_v4',
|
||||
ETH_SIGN_RAW_TRANSACTION: 'eth_sendRawTransaction',
|
||||
ETH_SEND_TRANSACTION: 'eth_sendTransaction'
|
||||
|
||||
Reference in new issue
Block a user