Skip to content

Commit

Permalink
fix: P-717 support > op in amount comparison right clause, support …
Browse files Browse the repository at this point in the history
…single clause item in amount comparison
  • Loading branch information
higherordertech committed Aug 2, 2024
1 parent c1796e6 commit 022ae2a
Show file tree
Hide file tree
Showing 13 changed files with 2,382 additions and 0 deletions.
204 changes: 204 additions & 0 deletions dist/schemas/15-bnb-domain-holding-amount/1-1-1.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,204 @@
{
"$schema": "http://json-schema.org/draft-07/schema#",
"$id": "https://raw.githubusercontent.com/litentry/vc-jsonschema/main/dist/schemas/15-bnb-domain-holding-amount/1-1-1.json",
"title": "BNB domain holding amount.",
"description": "The amount of .bnb domain you are holding",
"type": "object",
"required": [
"@context",
"issuer",
"issuanceDate",
"credentialSubject",
"proof"
],
"properties": {
"@context": {
"type": "array",
"items": {
"type": "string",
"format": "uri"
}
},
"id": {
"type": "string"
},
"type": {
"type": "array",
"items": {
"type": "string"
}
},
"issuer": {
"type": "object",
"required": [
"id",
"name",
"mrenclave"
],
"properties": {
"id": {
"type": "string"
},
"name": {
"type": "string"
},
"mrenclave": {
"type": "string"
},
"runtimeVersion": {
"type": "object",
"required": [
"parachain",
"sidechain"
],
"properties": {
"sidechain": {
"type": "number"
},
"parachain": {
"type": "number"
}
}
}
}
},
"issuanceDate": {
"type": "string",
"format": "date-time"
},
"proof": {
"type": "object",
"required": [
"created",
"type",
"proofPurpose",
"proofValue",
"verificationMethod"
],
"properties": {
"created": {
"type": "string",
"format": "date-time"
},
"type": {
"type": "string"
},
"proofPurpose": {
"type": "string"
},
"proofValue": {
"type": "string"
},
"verificationMethod": {
"type": "string"
}
}
},
"credentialSubject": {
"title": "Credential Subject of BnbDomainHolding/ BNB domain holding amount.",
"type": "object",
"required": [
"id",
"type",
"values",
"endpoint",
"assertions"
],
"properties": {
"id": {
"type": "string"
},
"type": {
"type": "string"
},
"description": {
"type": "string"
},
"values": {
"type": "array",
"minItems": 1,
"items": {
"type": "boolean"
}
},
"endpoint": {
"type": "string",
"format": "uri"
},
"assertions": {
"type": "array",
"minItems": 1,
"items": {
"type": "object",
"required": [
"and"
],
"properties": {
"and": {
"type": "array",
"minItems": 1,
"maxItems": 2,
"additionalItems": false,
"items": [
{
"type": "object",
"required": [
"src",
"op",
"dst"
],
"properties": {
"src": {
"type": "string",
"enum": [
"$bnb_domain_hoding_amount",
"$bnb_domain_holding_amount"
]
},
"op": {
"type": "string",
"enum": [
">",
">="
]
},
"dst": {
"type": "string"
}
}
},
{
"type": "object",
"required": [
"src",
"op",
"dst"
],
"properties": {
"src": {
"type": "string",
"enum": [
"$bnb_domain_hoding_amount",
"$bnb_domain_holding_amount"
]
},
"op": {
"type": "string",
"enum": [
"<"
]
},
"dst": {
"type": "string"
}
}
}
]
}
}
}
}
}
}
}
}
Loading

0 comments on commit 022ae2a

Please sign in to comment.