explorer-app/types/project.ts

178 lines
3.6 KiB
TypeScript
Raw Permalink Normal View History

2024-09-12 18:03:06 +02:00
import type { Team } from './team'
2023-12-19 18:43:42 +01:00
import type { Fund } from './fund'
import type { ClientDiversability } from './clientDiversability'
import type { Audit } from './audit'
export interface Project {
id: string
name: string
categories: string[]
usecases?: string[]
2024-09-12 18:03:06 +02:00
ecosystem?: string[]
2023-12-19 18:43:42 +01:00
product_readiness?: string
security?: string
2024-09-20 12:13:27 +02:00
have_token: boolean
2023-12-19 18:43:42 +01:00
token_link?: string
assets_used?: string[]
2023-12-19 18:43:42 +01:00
tokens?: {
name?: string
2024-09-12 18:03:06 +02:00
symbol?: string
2023-12-19 18:43:42 +01:00
network?: string
contract_address?: string
2024-09-12 18:03:06 +02:00
token_link?: string
2023-12-19 18:43:42 +01:00
[k: string]: unknown
}[]
percentage: number
2023-12-19 18:43:42 +01:00
description?: string
project_type?: string
product_launch_day?: string
2024-09-12 18:03:06 +02:00
project_phase?: string
sunset: boolean
2023-12-19 18:43:42 +01:00
technology?: {
type: string
name?: string
features: string[]
[k: string]: unknown
}
links?: {
web?: string
twitter?: string
telegram?: string
discord?: string
blog?: string
governance?: string
2023-12-19 18:43:42 +01:00
facebook?: string
block_explorer?: string
whitepaper?: string
github?: string
docs?: string
changelog?: string
forum?: string
snapshot?: string
lens?: string
farcaster?: string
rss_feed?: string
coingecko?: string
token?: string
[k: string]: unknown
}
blockchain_features?: {
2024-09-20 12:13:27 +02:00
p2p: boolean
2023-12-19 18:43:42 +01:00
encryption?: string
network?: string
upgradability?: {
2024-09-20 12:13:27 +02:00
enabled: boolean
2023-12-19 18:43:42 +01:00
type?: string
admin_keys?: string
[k: string]: unknown
}
[k: string]: unknown
opensource: boolean
2024-09-20 12:13:27 +02:00
viewing_key: boolean
dissapearing_tx: boolean
2024-09-12 18:03:06 +02:00
frontend_anonymity?: string
identity_integration?: null
2024-09-20 12:13:27 +02:00
connected_tx: boolean
revealed_recipient: boolean
revealed_sender: boolean
revealed_ammount: boolean
2024-09-12 18:03:06 +02:00
reversability_condition?: string
data_masking?: string
asset_custody_type?: string
2023-12-19 18:43:42 +01:00
}
licences?: string
2024-09-20 12:13:27 +02:00
privacy_policy: {
defined: boolean
2023-12-19 18:43:42 +01:00
link?: string
data_usage?: string
[k: string]: unknown
}
2024-09-12 18:03:06 +02:00
team?: Team
2023-12-19 18:43:42 +01:00
storage?: {
2024-09-20 12:13:27 +02:00
decentralized: boolean
2023-12-19 18:43:42 +01:00
[k: string]: unknown
}
tracebility?: {
tracked_data?: string
2024-09-20 12:13:27 +02:00
kyc: boolean
2024-09-12 18:03:06 +02:00
sign_in_type_requirments?: string[]
2023-12-19 18:43:42 +01:00
[k: string]: unknown
}
third_party_dependency?: string
compliance?: string
audits?: Audit[]
social_trust?: string
technical_spof?: string
history?: {
title?: string
event_type?: string
description?: string
time?: string
link?: string
[k: string]: unknown
2024-09-12 18:03:06 +02:00
}[]
2023-12-19 18:43:42 +01:00
client_diversability?: ClientDiversability[]
default_privacy?: boolean
funding?: Fund[]
project_status?: {
2024-09-20 12:13:27 +02:00
live_status: boolean
2023-12-19 18:43:42 +01:00
version?: string
2024-09-20 12:13:27 +02:00
testnet: boolean
mainnet: boolean
2023-12-19 18:43:42 +01:00
[k: string]: unknown
}
logos?: {
file?: string
ext?: string
url?: string
[k: string]: unknown
}[]
ratings?: ProjectRating[]
2023-12-19 18:43:42 +01:00
}
export interface ProjectShallow {
id: string
image: string
title1: string
description: string
percentage: number
2024-09-12 18:03:06 +02:00
forum?: string
github?: string
website?: string
twitter?: string
coingecko?: string
explorer?: string
newsletter?: string
readyness?: string
team?: Team
docs?: string
audits?: Audit[]
support?: number
anonymity?: boolean
categories: string[]
usecases?: string[]
ecosystem?: string[]
assets_used?: string []
ratings?: ProjectRating[]
2023-12-19 18:43:42 +01:00
}
2024-07-22 12:17:18 +02:00
export interface ProjectIndexable extends Project {
[key: string]: unknown
2024-07-22 12:17:18 +02:00
}
export interface ProjectRating {
type: string
name: string
items: ProjectRatingItem[]
points: number
percentagePoints: number
}
export interface ProjectRatingItem {
isValid: boolean
label: string
positive: string
negative: string
value: any
}