Commit 440101ac authored by isstuev's avatar isstuev

add 404 tokens to watchlist

parent d8375454
...@@ -48,6 +48,10 @@ export const WATCH_LIST_ITEM_WITH_TOKEN_INFO: WatchlistAddress = { ...@@ -48,6 +48,10 @@ export const WATCH_LIST_ITEM_WITH_TOKEN_INFO: WatchlistAddress = {
incoming: true, incoming: true,
outcoming: true, outcoming: true,
}, },
'ERC-404': {
incoming: true,
outcoming: true,
},
'native': { 'native': {
incoming: true, incoming: true,
outcoming: true, outcoming: true,
......
...@@ -36,6 +36,7 @@ export interface NotificationSettings { ...@@ -36,6 +36,7 @@ export interface NotificationSettings {
'native': NotificationDirection; 'native': NotificationDirection;
'ERC-20': NotificationDirection; 'ERC-20': NotificationDirection;
'ERC-721': NotificationDirection; 'ERC-721': NotificationDirection;
'ERC-404': NotificationDirection;
} }
export interface NotificationMethods { export interface NotificationMethods {
......
...@@ -22,7 +22,7 @@ import TagInput from 'ui/shared/TagInput'; ...@@ -22,7 +22,7 @@ import TagInput from 'ui/shared/TagInput';
import AddressFormNotifications from './AddressFormNotifications'; import AddressFormNotifications from './AddressFormNotifications';
// does it depend on the network? // does it depend on the network?
const NOTIFICATIONS = [ 'native', 'ERC-20', 'ERC-721' ] as const; const NOTIFICATIONS = [ 'native', 'ERC-20', 'ERC-721', 'ERC-404' ] as const;
const TAG_MAX_LENGTH = 35; const TAG_MAX_LENGTH = 35;
...@@ -50,6 +50,10 @@ type Inputs = { ...@@ -50,6 +50,10 @@ type Inputs = {
outcoming: boolean; outcoming: boolean;
incoming: boolean; incoming: boolean;
}; };
'ERC-404': {
outcoming: boolean;
incoming: boolean;
};
}; };
} }
...@@ -59,7 +63,9 @@ type Checkboxes = 'notification' | ...@@ -59,7 +63,9 @@ type Checkboxes = 'notification' |
'notification_settings.ERC-20.outcoming' | 'notification_settings.ERC-20.outcoming' |
'notification_settings.ERC-20.incoming' | 'notification_settings.ERC-20.incoming' |
'notification_settings.ERC-721.outcoming' | 'notification_settings.ERC-721.outcoming' |
'notification_settings.ERC-721.incoming'; 'notification_settings.ERC-721.incoming' |
'notification_settings.ERC-404.outcoming' |
'notification_settings.ERC-404.incoming';
const AddressForm: React.FC<Props> = ({ data, onSuccess, setAlertVisible, isAdd }) => { const AddressForm: React.FC<Props> = ({ data, onSuccess, setAlertVisible, isAdd }) => {
const [ pending, setPending ] = useState(false); const [ pending, setPending ] = useState(false);
......
...@@ -7,8 +7,8 @@ import config from 'configs/app'; ...@@ -7,8 +7,8 @@ import config from 'configs/app';
import CheckboxInput from 'ui/shared/CheckboxInput'; import CheckboxInput from 'ui/shared/CheckboxInput';
// does it depend on the network? // does it depend on the network?
const NOTIFICATIONS = [ 'native', 'ERC-20', 'ERC-721' ] as const; const NOTIFICATIONS = [ 'native', 'ERC-20', 'ERC-721', 'ERC-404' ] as const;
const NOTIFICATIONS_NAMES = [ config.chain.currency.symbol, 'ERC-20', 'ERC-721, ERC-1155, ERC-404 (NFT)' ]; const NOTIFICATIONS_NAMES = [ config.chain.currency.symbol, 'ERC-20', 'ERC-721, ERC-1155 (NFT)', 'ERC-404' ];
type Props<Inputs extends FieldValues> = { type Props<Inputs extends FieldValues> = {
control: Control<Inputs>; control: Control<Inputs>;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment