Add relevant field property in the schema

This commit is contained in:
kiok46
2026-08-28 19:47:15 +05:30
parent c73c6b216e
commit 947cbb2a7c
3 changed files with 21 additions and 6 deletions
+5
View File
@@ -521,6 +521,11 @@ export const xoTemplateLockingScriptRoleSchema = xoTemplateViewPropertiesSchema
actions: z.array(xoTemplateActionIntentSchema).optional().describe('List of action references available to this role.'),
balance: xoTemplateAssetAmountsSchema.partial().optional().describe('Estimated ownership in the optional set of asset amounts specified.'),
selectable: z.boolean().optional().describe('Whether outputs locked to this script should be available for coin selection.'),
relevant: z
.union([ z.boolean(), z.string() ])
.optional()
.describe('Whether this output or locking script should be tracked by the engine, When omitted, the engine treats this field as true.'
+ 'Accepts true, false, or a CashASM expression that evaluates to a boolean relevance value.'),
privacy: z
.union([ z.number(), z.string() ])
.optional()