feat(schema): update ranks schema, add label

This commit is contained in:
Klein Petr 2024-09-12 18:36:07 +02:00
parent 1aee29f4e7
commit 66cee36804
2 changed files with 44 additions and 21 deletions

View file

@ -11,7 +11,9 @@ properties:
properties:
field:
type: string
conditions:
label:
type: string
condition:
type: object
properties:
exists:
@ -24,11 +26,13 @@ properties:
oneOf:
- type: boolean
- type: string
- type: integer
points:
type: integer
required:
- field
- conditions
- label
- condition
- points
required:
- id

View file

@ -2,43 +2,53 @@
name: Openess
references:
- field: team.teammembers
conditions:
label: Team
condition:
minLength: 1
points: 10
- field: links.docs
conditions:
label: Documentation
condition:
exists: true
points: 10
- field: links.github
conditions:
label: Github
condition:
exists: true
points: 10
- field: links.twitter
conditions:
label: Twitter
condition:
exists: true
points: 1
- field: links.telegram
conditions:
label: Telegram
condition:
exists: true
points: 1
- field: links.discord
conditions:
label: Discord
condition:
exists: true
points: 1
- field: links.lens
conditions:
label: Lens
condition:
exists: true
points: 1
- field: links.farcaster
conditions:
label: Farcaster
condition:
exists: true
points: 1
- field: links.whitepaper
conditions:
label: Whitepaper
condition:
exists: true
points: 10
- field: team.funding
conditions:
label: Funding
condition:
minLength: 1
points: 10
@ -46,23 +56,28 @@
name: Technology
references:
- field: project_status.mainnet
conditions:
label: Mainnet
condition:
exists: true
points: 10
- field: blockchain_features.opensource
conditions:
label: Open Source
condition:
equals: true
points: 20
- field: blockchain_features.asset_custody_type
conditions:
label: Non Custody
condition:
equals: non-custody
points: 10
- field: blockchain_features.upgradability.enabled
conditions:
label: Upgradability
condition:
equals: false
points: 10
- field: audits
conditions:
label: Audits
condition:
minLength: 1
points: 10
@ -70,19 +85,23 @@
name: Privacy
references:
- field: privacy_policy.link
conditions:
label: Privacy Policy
condition:
exists: true
points: 10
- field: traceability.kyc
conditions:
label: KYC
condition:
equals: false
points: 10
- field: compliance
conditions:
label: Compliance
condition:
equals: true
points: 5
- field: default_privacy
conditions:
label: Default Privacy
condition:
equals: true
points: 10