2020-11-03 23:57:51 +01:00
|
|
|
import {
|
2023-01-18 15:47:29 +01:00
|
|
|
TransactionType,
|
|
|
|
TransactionStatus,
|
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 = {
|
2023-01-18 15:47:29 +01:00
|
|
|
[TransactionStatus.unapproved]: true,
|
|
|
|
[TransactionStatus.approved]: true,
|
|
|
|
[TransactionStatus.submitted]: true,
|
|
|
|
[TransactionStatus.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,
|
2023-01-18 15:47:29 +01:00
|
|
|
[TransactionStatus.confirmed]: true,
|
2021-02-04 19:15:23 +01:00
|
|
|
};
|
2020-05-26 22:49:11 +02:00
|
|
|
|
|
|
|
export const TOKEN_CATEGORY_HASH = {
|
2023-01-18 15:47:29 +01:00
|
|
|
[TransactionType.tokenMethodApprove]: true,
|
|
|
|
[TransactionType.tokenMethodSetApprovalForAll]: true,
|
|
|
|
[TransactionType.tokenMethodTransfer]: true,
|
|
|
|
[TransactionType.tokenMethodTransferFrom]: true,
|
2021-02-04 19:15:23 +01:00
|
|
|
};
|