From db0afdbb1e15e7bc03f2f7406904d7dc90801043 Mon Sep 17 00:00:00 2001 From: matstyler Date: Thu, 15 Aug 2024 18:27:48 +0200 Subject: [PATCH] fix: extensions schema --- src/schema/spectraTokens.schema.json | 65 ++++++++++++++++++++++++++++ 1 file changed, 65 insertions(+) diff --git a/src/schema/spectraTokens.schema.json b/src/schema/spectraTokens.schema.json index 2d29642..53803e5 100644 --- a/src/schema/spectraTokens.schema.json +++ b/src/schema/spectraTokens.schema.json @@ -33,6 +33,71 @@ }, "logoURI": { "type": "string" + }, + "extensions": { + "type": "object", + "additionalProperties": false, + "properties": { + "underlying": { + "type": "string", + "pattern": "^0x[a-fA-F0-9]{40}$" + }, + "protocol": { + "type": "string" + }, + "externalLink": { + "type": "string" + }, + "faucetAddress": { + "type": "string", + "pattern": "^0x[a-fA-F0-9]{40}$" + }, + "ibtRoutes": { + "type": "object", + "additionalProperties": false, + "properties": { + "deposit": { + "type": "boolean" + }, + "mint": { + "type": "boolean" + }, + "withdraw": { + "type": "boolean" + }, + "redeem": { + "type": "boolean" + } + } + }, + "vault": { + "type": "object", + "additionalProperties": false, + "properties": { + "chainId": { + "type": "integer" + }, + "address": { + "type": "string", + "pattern": "^0x[a-fA-F0-9]{40}$" + }, + "name": { + "type": "string" + }, + "symbol": { + "type": "string" + }, + "decimals": { + "type": "integer", + "minimum": 1, + "maximum": 18 + }, + "logoURI": { + "type": "string" + } + } + } + } } } }