mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-23 09:52:26 +01:00
35 lines
861 B
TypeScript
35 lines
861 B
TypeScript
export enum SecurityProvider {
|
|
Blockaid = 'blockaid',
|
|
}
|
|
|
|
type SecurityProviderConfig = Record<
|
|
SecurityProvider,
|
|
{
|
|
/** translation key for security provider name */
|
|
readonly tKeyName: string;
|
|
/** URL to securty provider website */
|
|
readonly url: string;
|
|
}
|
|
>;
|
|
|
|
export const SECURITY_PROVIDER_CONFIG: Readonly<SecurityProviderConfig> = {
|
|
[SecurityProvider.Blockaid]: {
|
|
tKeyName: 'blockaid',
|
|
url: 'https://blockaid.io/',
|
|
},
|
|
};
|
|
|
|
/**
|
|
* @typedef {object} SecurityProviderMessageSeverity
|
|
* @property {0} NOT_MALICIOUS - Indicates message is not malicious
|
|
* @property {1} MALICIOUS - Indicates message is malicious
|
|
* @property {2} NOT_SAFE - Indicates message is not safe
|
|
*/
|
|
|
|
/** @type {SecurityProviderMessageSeverity} */
|
|
export const SECURITY_PROVIDER_MESSAGE_SEVERITY = {
|
|
NOT_MALICIOUS: 0,
|
|
MALICIOUS: 1,
|
|
NOT_SAFE: 2,
|
|
};
|