refact(rank-schema): labels schema

This commit is contained in:
Daniel Klein 2024-09-17 09:02:17 +02:00
parent bb55177ab1
commit a5a915a1a1
2 changed files with 84 additions and 62 deletions

View file

@ -12,6 +12,9 @@ properties:
field: field:
type: string type: string
label: label:
type: object
properties:
name:
type: string type: string
positive: positive:
type: string type: string

View file

@ -2,72 +2,82 @@
name: Openess name: Openess
references: references:
- field: team.teammembers - field: team.teammembers
label: Team label:
positive: 'Member' name: Team
negative: 'Anonymous' positive: Member
negative: Anonymous
condition: condition:
minLength: 1 minLength: 1
points: 10 points: 10
- field: links.docs - field: links.docs
label: Documentation label:
positive: 'Link' name: Documentation
negative: 'Not available' positive: Link
negative: Not available
condition: condition:
exists: true exists: true
points: 10 points: 10
- field: links.github - field: links.github
label: Github label:
positive: 'Link' name: Github
negative: 'Not available' positive: Link
negative: Not available
condition: condition:
exists: true exists: true
points: 10 points: 10
- field: links.twitter - field: links.twitter
label: Twitter label:
positive: 'Link' name: Twitter
negative: 'Not available' positive: Link
negative: Not available
condition: condition:
exists: true exists: true
points: 1 points: 1
- field: links.telegram - field: links.telegram
label: Telegram label:
positive: 'Link' name: Twitter
negative: 'Not available' positive: Link
negative: Not available
condition: condition:
exists: true exists: true
points: 1 points: 1
- field: links.discord - field: links.discord
label: Discord label:
positive: 'Link' name: Discord
negative: 'Not available' positive: Link
negative: Not available
condition: condition:
exists: true exists: true
points: 1 points: 1
- field: links.lens - field: links.lens
label: Lens label:
positive: 'Link' name: Lens
negative: 'Not available' positive: Link
negative: Not available
condition: condition:
exists: true exists: true
points: 1 points: 1
- field: links.farcaster - field: links.farcaster
label: Farcaster label:
positive: 'Link' name: Farcaster
negative: 'Not available' positive: Link
negative: Not available
condition: condition:
exists: true exists: true
points: 1 points: 1
- field: links.whitepaper - field: links.whitepaper
label: Whitepaper label:
positive: 'Link' name: Whitepaper
negative: 'Not available' positive: Link
negative: Not available
condition: condition:
exists: true exists: true
points: 10 points: 10
- field: funding.value - field: funding.value
label: Funding label:
positive: 'Investment' name: Funding
negative: 'Not available' positive: Investment
negative: Not available
condition: condition:
exists: true exists: true
points: 10 points: 10
@ -76,37 +86,42 @@
name: Technology name: Technology
references: references:
- field: project_status.mainnet - field: project_status.mainnet
label: Mainnet label:
positive: 'Yes' name: Mainnet
negative: 'No' positive: Yes
negative: No
condition: condition:
exists: true exists: true
points: 10 points: 10
- field: blockchain_features.opensource - field: blockchain_features.opensource
label: Open Source label:
positive: 'Yes' name: Open Source
negative: 'No' positive: Yes
negative: No
condition: condition:
equals: true equals: true
points: 20 points: 20
- field: blockchain_features.asset_custody_type - field: blockchain_features.asset_custody_type
label: Non Custody label:
positive: 'None' name: Non Custody
negative: 'Custodial' positive: None
negative: Custodial
condition: condition:
equals: non-custody equals: non-custody
points: 10 points: 10
- field: blockchain_features.upgradability.enabled - field: blockchain_features.upgradability.enabled
label: Upgradability label:
positive: 'Disabled' name: Upgradability
negative: 'Enabled' positive: Disabled
negative: Enabled
condition: condition:
equals: false equals: false
points: 10 points: 10
- field: audits - field: audits
label: Audits label:
positive: 'Audit' name: Audits
negative: 'None' positive: Audit
negative: None
condition: condition:
minLength: 1 minLength: 1
points: 10 points: 10
@ -115,30 +130,34 @@
name: Privacy name: Privacy
references: references:
- field: privacy_policy.link - field: privacy_policy.link
label: Privacy Policy label:
positive: 'Link' name: Privacy Policy
negative: 'Not available' positive: Link
negative: Not available
condition: condition:
exists: true exists: true
points: 10 points: 10
- field: traceability.kyc - field: traceability.kyc
label: KYC label:
positive: 'No' name: KYC
negative: 'Yes' positive: No
negative: Yes
condition: condition:
equals: false equals: false
points: 10 points: 10
- field: compliance - field: compliance
label: Compliance label:
positive: 'No' name: Compliance
negative: 'OFAC' positive: No
negative: OFAC
condition: condition:
equals: true equals: true
points: 5 points: 5
- field: default_privacy - field: default_privacy
label: Default Privacy label:
positive: 'YES' name: Default Privacy
negative: 'No' positive: YES
negative: No
condition: condition:
equals: true equals: true
points: 10 points: 10