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: properties:
field: field:
type: string type: string
conditions: label:
type: string
condition:
type: object type: object
properties: properties:
exists: exists:
@ -24,11 +26,13 @@ properties:
oneOf: oneOf:
- type: boolean - type: boolean
- type: string - type: string
- type: integer
points: points:
type: integer type: integer
required: required:
- field - field
- conditions - label
- condition
- points - points
required: required:
- id - id

View file

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