2020-11-03 23:57:51 +01:00
|
|
|
import {
|
2021-03-10 21:16:44 +01:00
|
|
|
TRANSACTION_TYPES,
|
2020-11-03 23:57:51 +01:00
|
|
|
TRANSACTION_STATUSES,
|
2021-04-28 21:53:59 +02: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,
|
2022-02-18 17:48:38 +01:00
|
|
|
[TRANSACTION_STATUSES.PENDING]: 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 = {
|
2021-03-10 21:16:44 +01:00
|
|
|
[TRANSACTION_TYPES.TOKEN_METHOD_APPROVE]: true,
|
2022-07-12 01:32:55 +02:00
|
|
|
[TRANSACTION_TYPES.TOKEN_METHOD_SET_APPROVAL_FOR_ALL]: true,
|
2021-03-10 21:16:44 +01:00
|
|
|
[TRANSACTION_TYPES.TOKEN_METHOD_TRANSFER]: true,
|
|
|
|
[TRANSACTION_TYPES.TOKEN_METHOD_TRANSFER_FROM]: true,
|
2021-02-04 19:15:23 +01:00
|
|
|
};
|