mirror of
https://github.com/web3privacy/explorer-data.git
synced 2024-10-15 12:06:26 +02:00
feat(data): add ranks with conditions
This commit is contained in:
parent
f7db9770ed
commit
5d11c6fcfb
2 changed files with 126 additions and 0 deletions
37
schema/rank.yaml
Normal file
37
schema/rank.yaml
Normal file
|
@ -0,0 +1,37 @@
|
||||||
|
type: object
|
||||||
|
properties:
|
||||||
|
id:
|
||||||
|
type: string
|
||||||
|
name:
|
||||||
|
type: string
|
||||||
|
references:
|
||||||
|
type: array
|
||||||
|
items:
|
||||||
|
type: object
|
||||||
|
properties:
|
||||||
|
field:
|
||||||
|
type: string
|
||||||
|
conditions:
|
||||||
|
type: object
|
||||||
|
properties:
|
||||||
|
exists:
|
||||||
|
type: boolean
|
||||||
|
minLength:
|
||||||
|
type: integer
|
||||||
|
regex:
|
||||||
|
type: string
|
||||||
|
equals:
|
||||||
|
oneOf:
|
||||||
|
- type: boolean
|
||||||
|
- type: string
|
||||||
|
points:
|
||||||
|
type: integer
|
||||||
|
required:
|
||||||
|
- field
|
||||||
|
- conditions
|
||||||
|
- points
|
||||||
|
required:
|
||||||
|
- id
|
||||||
|
- name
|
||||||
|
- references
|
||||||
|
additionalProperties: false
|
89
src/ranks.yaml
Normal file
89
src/ranks.yaml
Normal file
|
@ -0,0 +1,89 @@
|
||||||
|
- id: openess
|
||||||
|
name: Openess
|
||||||
|
references:
|
||||||
|
- field: team.teammembers
|
||||||
|
conditions:
|
||||||
|
minLength: 1
|
||||||
|
points: 10
|
||||||
|
- field: links.docs
|
||||||
|
conditions:
|
||||||
|
exists: true
|
||||||
|
points: 10
|
||||||
|
- field: links.github
|
||||||
|
conditions:
|
||||||
|
exists: true
|
||||||
|
points: 10
|
||||||
|
- field: links.twitter
|
||||||
|
conditions:
|
||||||
|
exists: true
|
||||||
|
points: 1
|
||||||
|
- field: links.telegram
|
||||||
|
conditions:
|
||||||
|
exists: true
|
||||||
|
points: 1
|
||||||
|
- field: links.discord
|
||||||
|
conditions:
|
||||||
|
exists: true
|
||||||
|
points: 1
|
||||||
|
- field: links.lens
|
||||||
|
conditions:
|
||||||
|
exists: true
|
||||||
|
points: 1
|
||||||
|
- field: links.farcaster
|
||||||
|
conditions:
|
||||||
|
exists: true
|
||||||
|
points: 1
|
||||||
|
- field: links.whitepaper
|
||||||
|
conditions:
|
||||||
|
exists: true
|
||||||
|
points: 10
|
||||||
|
- field: team.funding
|
||||||
|
conditions:
|
||||||
|
minLength: 1
|
||||||
|
points: 10
|
||||||
|
|
||||||
|
- id: technology
|
||||||
|
name: Technology
|
||||||
|
references:
|
||||||
|
- field: project_status.mainnet
|
||||||
|
conditions:
|
||||||
|
exists: true
|
||||||
|
points: 10
|
||||||
|
- field: blockchain_features.opensource
|
||||||
|
conditions:
|
||||||
|
equals: true
|
||||||
|
points: 20
|
||||||
|
- field: blockchain_features.asset_custody_type
|
||||||
|
conditions:
|
||||||
|
equals: non-custody
|
||||||
|
points: 10
|
||||||
|
- field: blockchain_features.upgradability.enabled
|
||||||
|
conditions:
|
||||||
|
equals: false
|
||||||
|
points: 10
|
||||||
|
- field: audits
|
||||||
|
conditions:
|
||||||
|
minLength: 1
|
||||||
|
points: 10
|
||||||
|
|
||||||
|
- id: privacy
|
||||||
|
name: Privacy
|
||||||
|
references:
|
||||||
|
- field: privacy_policy.link
|
||||||
|
conditions:
|
||||||
|
exists: true
|
||||||
|
points: 10
|
||||||
|
- field: traceability.kyc
|
||||||
|
conditions:
|
||||||
|
equals: false
|
||||||
|
points: 10
|
||||||
|
- field: compliance
|
||||||
|
conditions:
|
||||||
|
equals: true
|
||||||
|
points: 5
|
||||||
|
- field: default_privacy
|
||||||
|
conditions:
|
||||||
|
equals: true
|
||||||
|
points: 10
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue