mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-11-29 23:58:06 +01:00
24 lines
640 B
JavaScript
24 lines
640 B
JavaScript
import {
|
|
TransactionType,
|
|
TransactionStatus,
|
|
} from '../../../shared/constants/transaction';
|
|
|
|
export const PENDING_STATUS_HASH = {
|
|
[TransactionStatus.unapproved]: true,
|
|
[TransactionStatus.approved]: true,
|
|
[TransactionStatus.submitted]: true,
|
|
[TransactionStatus.pending]: true,
|
|
};
|
|
|
|
export const PRIORITY_STATUS_HASH = {
|
|
...PENDING_STATUS_HASH,
|
|
[TransactionStatus.confirmed]: true,
|
|
};
|
|
|
|
export const TOKEN_CATEGORY_HASH = {
|
|
[TransactionType.tokenMethodApprove]: true,
|
|
[TransactionType.tokenMethodSetApprovalForAll]: true,
|
|
[TransactionType.tokenMethodTransfer]: true,
|
|
[TransactionType.tokenMethodTransferFrom]: true,
|
|
};
|