Skip to content

Commit

Permalink
chore: P-383 add token holding variations for brc20 and ton, trx (#12)
Browse files Browse the repository at this point in the history
Signed-off-by: Jonathan Alvarez <[email protected]>
  • Loading branch information
jonalvarezz authored Jan 11, 2024
1 parent e7d987e commit 8e4b6da
Show file tree
Hide file tree
Showing 12 changed files with 813 additions and 4 deletions.
2 changes: 0 additions & 2 deletions dist/schemas/19-token-holding-amount/1-0-0.json
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,6 @@
"src": {
"type": "string",
"enum": [
"$holding_amount",
"$wbtc_holding_amount",
"$lit_holding_amount",
"$usdc_holding_amount",
Expand Down Expand Up @@ -179,7 +178,6 @@
"src": {
"type": "string",
"enum": [
"$holding_amount",
"$wbtc_holding_amount",
"$lit_holding_amount",
"$usdc_holding_amount",
Expand Down
219 changes: 219 additions & 0 deletions dist/schemas/22-token-holding-amount-list/1-0-0.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,219 @@
{
"$schema": "http://json-schema.org/draft-07/schema#",
"$id": "https://raw.githubusercontent.com/litentry/vc-jsonschema/main/dist/schemas/22-token-holding-amount-list/1-0-0.json",
"title": "Token holding amount list",
"description": "The amount of a particular token 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"
}
}
},
"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 Token holding amount list",
"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": 3,
"maxItems": 3,
"items": [
{
"type": "object",
"required": [
"src",
"op",
"dst"
],
"properties": {
"src": {
"type": "string",
"enum": [
"$token"
]
},
"op": {
"type": "string",
"enum": [
"=="
]
},
"dst": {
"type": "string",
"enum": [
"$ordi",
"$sats",
"$rats",
"$MMSS",
"$long",
"$cats",
"$BTCs"
]
}
}
},
{
"type": "object",
"required": [
"src",
"op",
"dst"
],
"properties": {
"src": {
"type": "string",
"enum": [
"$holding_amount"
]
},
"op": {
"type": "string",
"enum": [
">="
]
},
"dst": {
"type": "string"
}
}
},
{
"type": "object",
"required": [
"src",
"op",
"dst"
],
"properties": {
"src": {
"type": "string",
"enum": [
"$holding_amount"
]
},
"op": {
"type": "string",
"enum": [
"<"
]
},
"dst": {
"type": "string"
}
}
}
]
}
}
}
}
}
}
}
}
1 change: 1 addition & 0 deletions dist/schemas/22-token-holding-amount-list/latest.json
Loading

0 comments on commit 8e4b6da

Please sign in to comment.