mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-11-23 18:41:38 +01:00
4f0115fcdc
* enhance setApprovalForAll confirmation flow * cleanup * address feedback
29 lines
781 B
JavaScript
29 lines
781 B
JavaScript
import {
|
|
TRANSACTION_TYPES,
|
|
TRANSACTION_STATUSES,
|
|
} from '../../../shared/constants/transaction';
|
|
|
|
export const PENDING_STATUS_HASH = {
|
|
[TRANSACTION_STATUSES.UNAPPROVED]: true,
|
|
[TRANSACTION_STATUSES.APPROVED]: true,
|
|
[TRANSACTION_STATUSES.SUBMITTED]: true,
|
|
[TRANSACTION_STATUSES.PENDING]: true,
|
|
};
|
|
|
|
export const PRIORITY_STATUS_HASH = {
|
|
...PENDING_STATUS_HASH,
|
|
[TRANSACTION_STATUSES.CONFIRMED]: true,
|
|
};
|
|
|
|
export const TOKEN_CATEGORY_HASH = {
|
|
[TRANSACTION_TYPES.TOKEN_METHOD_APPROVE]: true,
|
|
[TRANSACTION_TYPES.TOKEN_METHOD_SET_APPROVAL_FOR_ALL]: true,
|
|
[TRANSACTION_TYPES.TOKEN_METHOD_TRANSFER]: true,
|
|
[TRANSACTION_TYPES.TOKEN_METHOD_TRANSFER_FROM]: true,
|
|
};
|
|
|
|
export const TRANSACTION_ENVELOPE_TYPE_NAMES = {
|
|
FEE_MARKET: 'fee-market',
|
|
LEGACY: 'legacy',
|
|
};
|