2018-07-31 07:03:20 +02:00
|
|
|
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'
|
2018-12-09 21:48:06 +01:00
|
|
|
export const CANCELLED_STATUS = 'cancelled'
|
2018-07-31 07:03:20 +02:00
|
|
|
|
2020-05-26 22:49:11 +02:00
|
|
|
export const PENDING_STATUS_HASH = {
|
|
|
|
[UNAPPROVED_STATUS]: true,
|
|
|
|
[APPROVED_STATUS]: true,
|
|
|
|
[SUBMITTED_STATUS]: true,
|
|
|
|
}
|
|
|
|
|
|
|
|
export const PRIORITY_STATUS_HASH = {
|
|
|
|
...PENDING_STATUS_HASH,
|
|
|
|
[CONFIRMED_STATUS]: true,
|
|
|
|
}
|
|
|
|
|
2018-07-31 07:03:20 +02:00
|
|
|
export const TOKEN_METHOD_TRANSFER = 'transfer'
|
|
|
|
export const TOKEN_METHOD_APPROVE = 'approve'
|
|
|
|
export const TOKEN_METHOD_TRANSFER_FROM = 'transferfrom'
|
|
|
|
|
2020-05-26 22:49:11 +02:00
|
|
|
export const TOKEN_CATEGORY_HASH = {
|
|
|
|
[TOKEN_METHOD_APPROVE]: true,
|
|
|
|
[TOKEN_METHOD_TRANSFER]: true,
|
|
|
|
[TOKEN_METHOD_TRANSFER_FROM]: true,
|
|
|
|
}
|
|
|
|
|
|
|
|
export const INCOMING_TRANSACTION = 'incoming'
|
|
|
|
|
2018-08-16 21:46:40 +02:00
|
|
|
export const SEND_ETHER_ACTION_KEY = 'sentEther'
|
2018-07-31 07:03:20 +02:00
|
|
|
export const DEPLOY_CONTRACT_ACTION_KEY = 'contractDeployment'
|
|
|
|
export const APPROVE_ACTION_KEY = 'approve'
|
2018-08-16 21:46:40 +02:00
|
|
|
export const SEND_TOKEN_ACTION_KEY = 'sentTokens'
|
2018-07-31 07:03:20 +02:00
|
|
|
export const TRANSFER_FROM_ACTION_KEY = 'transferFrom'
|
2018-08-07 07:39:54 +02:00
|
|
|
export const SIGNATURE_REQUEST_KEY = 'signatureRequest'
|
2020-02-19 19:24:16 +01:00
|
|
|
export const DECRYPT_REQUEST_KEY = 'decryptRequest'
|
|
|
|
export const ENCRYPTION_PUBLIC_KEY_REQUEST_KEY = 'encryptionPublicKeyRequest'
|
2018-12-09 21:48:06 +01:00
|
|
|
export const CONTRACT_INTERACTION_KEY = 'contractInteraction'
|
2018-09-17 19:34:29 +02:00
|
|
|
export const CANCEL_ATTEMPT_ACTION_KEY = 'cancelAttempt'
|
2019-08-16 20:54:10 +02:00
|
|
|
export const DEPOSIT_TRANSACTION_KEY = 'deposit'
|
2020-05-26 22:49:11 +02:00
|
|
|
|
|
|
|
// Transaction List Item Categories
|
|
|
|
// Used for UI distinction between transactions in the history list
|
|
|
|
export const TRANSACTION_CATEGORY_SEND = 'send'
|
|
|
|
export const TRANSACTION_CATEGORY_RECEIVE = 'receive'
|
|
|
|
export const TRANSACTION_CATEGORY_INTERACTION = 'interaction'
|
|
|
|
export const TRANSACTION_CATEGORY_APPROVAL = 'approval'
|
|
|
|
export const TRANSACTION_CATEGORY_SIGNATURE_REQUEST = 'signature-request'
|