mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-11-23 10:30:04 +01:00
6f47fece56
Implement `eth_decrypt` and `eth_getEncryptionPublicKey`. This allows decryption backed by the user's private key. The message decryption uses a confirmation flow similar to the messaging signing flow, where the message to be decrypted is also able to be decrypted inline for the user to read directly before confirming.
28 lines
1.2 KiB
JavaScript
28 lines
1.2 KiB
JavaScript
export const UNAPPROVED_STATUS = 'unapproved'
|
|
export const REJECTED_STATUS = 'rejected'
|
|
export const APPROVED_STATUS = 'approved'
|
|
export const SIGNED_STATUS = 'signed'
|
|
export const SUBMITTED_STATUS = 'submitted'
|
|
export const CONFIRMED_STATUS = 'confirmed'
|
|
export const FAILED_STATUS = 'failed'
|
|
export const DROPPED_STATUS = 'dropped'
|
|
export const CANCELLED_STATUS = 'cancelled'
|
|
|
|
export const TOKEN_METHOD_TRANSFER = 'transfer'
|
|
export const TOKEN_METHOD_APPROVE = 'approve'
|
|
export const TOKEN_METHOD_TRANSFER_FROM = 'transferfrom'
|
|
|
|
export const SEND_ETHER_ACTION_KEY = 'sentEther'
|
|
export const DEPLOY_CONTRACT_ACTION_KEY = 'contractDeployment'
|
|
export const APPROVE_ACTION_KEY = 'approve'
|
|
export const SEND_TOKEN_ACTION_KEY = 'sentTokens'
|
|
export const TRANSFER_FROM_ACTION_KEY = 'transferFrom'
|
|
export const SIGNATURE_REQUEST_KEY = 'signatureRequest'
|
|
export const DECRYPT_REQUEST_KEY = 'decryptRequest'
|
|
export const ENCRYPTION_PUBLIC_KEY_REQUEST_KEY = 'encryptionPublicKeyRequest'
|
|
export const CONTRACT_INTERACTION_KEY = 'contractInteraction'
|
|
export const CANCEL_ATTEMPT_ACTION_KEY = 'cancelAttempt'
|
|
export const DEPOSIT_TRANSACTION_KEY = 'deposit'
|
|
|
|
export const TRANSACTION_TYPE_SHAPESHIFT = 'shapeshift'
|