-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: P-717 support
>
op in amount comparison right clause, support …
…single clause item in amount comparison
- Loading branch information
higherordertech
committed
Aug 2, 2024
1 parent
c1796e6
commit 022ae2a
Showing
13 changed files
with
2,382 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | ||
} | ||
} | ||
} | ||
] | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} |
Oops, something went wrong.