From 947cbb2a7c93a853cdeaed02ab8be5b116a3fe30 Mon Sep 17 00:00:00 2001 From: kiok46 Date: Fri, 28 Aug 2026 19:47:15 +0530 Subject: [PATCH] Add relevant field property in the schema --- package-lock.json | 18 ++++++++++++++---- package.json | 4 ++-- source/template/schemas.ts | 5 +++++ 3 files changed, 21 insertions(+), 6 deletions(-) diff --git a/package-lock.json b/package-lock.json index 3c4740a..c59559f 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,17 +1,17 @@ { "name": "@xo-cash/utils", - "version": "0.0.4", + "version": "0.0.5", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@xo-cash/utils", - "version": "0.0.4", + "version": "0.0.5", "license": "MIT", "dependencies": { "@bitauth/libauth": "^3.1.0-next.8", "@xo-cash/primitives": "0.0.2", - "@xo-cash/types": "0.0.4", + "@xo-cash/types": "0.0.5", "zod": "^4.3.6" }, "devDependencies": { @@ -2941,10 +2941,20 @@ "@xo-cash/types": "0.0.4" } }, - "node_modules/@xo-cash/types": { + "node_modules/@xo-cash/templates/node_modules/@xo-cash/types": { "version": "0.0.4", "resolved": "https://registry.npmjs.org/@xo-cash/types/-/types-0.0.4.tgz", "integrity": "sha512-XBB/jNC1orDcMUi5Q0g+fnPXdKdb+n7OyqmJ8pxFrfM0y9OAdLjfddMih/JWfOWQtBkvY0CtdaZapgBSrvLeSw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@bitauth/libauth": "^3.1.0-next.8" + } + }, + "node_modules/@xo-cash/types": { + "version": "0.0.5", + "resolved": "https://registry.npmjs.org/@xo-cash/types/-/types-0.0.5.tgz", + "integrity": "sha512-qoLqR4mrm/Wnp+luZSJNzrjHL6x6baforwIFSEiMz00uXfJJcpCFwckoN4TcUrNrNyvPOgfJUp5qAg8SO+AJ3A==", "license": "MIT", "dependencies": { "@bitauth/libauth": "^3.1.0-next.8" diff --git a/package.json b/package.json index 73ebff8..be66aa7 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@xo-cash/utils", - "version": "0.0.4", + "version": "0.0.5", "description": "XO Cash utilities", "type": "module", "types": "./dist/index.d.mts", @@ -45,7 +45,7 @@ "dependencies": { "@bitauth/libauth": "^3.1.0-next.8", "@xo-cash/primitives": "0.0.2", - "@xo-cash/types": "0.0.4", + "@xo-cash/types": "0.0.5", "zod": "^4.3.6" }, "overrides": { diff --git a/source/template/schemas.ts b/source/template/schemas.ts index 83322d7..07147e2 100644 --- a/source/template/schemas.ts +++ b/source/template/schemas.ts @@ -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()