Files
xrpl-hooks-ide/content/amount-schema.json
2025-01-01 21:29:35 +01:00

45 lines
1.1 KiB
JSON

{
"uri": "file:///amount-schema.json",
"title": "Amount",
"description": "Specify XAH in drops and tokens as objects.",
"schema": {
"anyOf": [
{
"type": ["number", "string"],
"exclusiveMinimum": 0,
"maximum": "100000000000000000"
},
{
"type": "object",
"properties": {
"currency": {
"description": "Arbitrary currency code for the token. Cannot be XAH."
},
"value": {
"type": ["string", "number"],
"description": "Quoted decimal representation of the amount of the token."
},
"issuer": {
"type": "string",
"description": "Generally, the account that issues this token. In special cases, this can refer to the account that holds the token instead."
}
}
}
],
"defaultSnippets": [
{
"label": "XAH",
"body": "1000000"
},
{
"label": "Token",
"body": {
"currency": "${1:USD}",
"value": "${2:100}",
"issuer": "${3:rf1BiGeXwwQoi8Z2ueFYTEXSwuJYfV2Jpns}"
}
}
]
}
}