trustwallet-assets/script/generic/status-values.ts
Adam R 62f50817bb
Add new nsfw tag (#11525)
Co-authored-by: Catenocrypt <catenocrypt@users.noreply.github.com>
2021-07-08 16:20:02 +02:00

18 lines
348 B
TypeScript

// see https://developer.trustwallet.com/add_new_asset
const StatusValues: string[] = [
'active',
'spam',
'abandoned',
'nsfw'
];
export function isValidStatusValue(value: string): boolean {
if (!value) {
return false;
}
if (!StatusValues.find(e => e === value)) {
return false;
}
return true;
}