2020-11-03 23:57:51 +01:00
|
|
|
import {
|
|
|
|
TRANSACTION_CATEGORIES,
|
|
|
|
TRANSACTION_STATUSES,
|
2021-02-04 19:15:23 +01:00
|
|
|
} from '../../../../shared/constants/transaction';
|
2018-07-31 07:03:20 +02:00
|
|
|
|
2020-05-26 22:49:11 +02:00
|
|
|
export const PENDING_STATUS_HASH = {
|
2020-11-03 23:57:51 +01:00
|
|
|
[TRANSACTION_STATUSES.UNAPPROVED]: true,
|
|
|
|
[TRANSACTION_STATUSES.APPROVED]: true,
|
|
|
|
[TRANSACTION_STATUSES.SUBMITTED]: true,
|
2021-02-04 19:15:23 +01:00
|
|
|
};
|
2020-05-26 22:49:11 +02:00
|
|
|
|
|
|
|
export const PRIORITY_STATUS_HASH = {
|
|
|
|
...PENDING_STATUS_HASH,
|
2020-11-03 23:57:51 +01:00
|
|
|
[TRANSACTION_STATUSES.CONFIRMED]: true,
|
2021-02-04 19:15:23 +01:00
|
|
|
};
|
2020-05-26 22:49:11 +02:00
|
|
|
|
|
|
|
export const TOKEN_CATEGORY_HASH = {
|
2020-11-03 23:57:51 +01:00
|
|
|
[TRANSACTION_CATEGORIES.TOKEN_METHOD_APPROVE]: true,
|
|
|
|
[TRANSACTION_CATEGORIES.TOKEN_METHOD_TRANSFER]: true,
|
|
|
|
[TRANSACTION_CATEGORIES.TOKEN_METHOD_TRANSFER_FROM]: true,
|
2021-02-04 19:15:23 +01:00
|
|
|
};
|