From bc68a114d95fdaceb9da9b6c9e423542ae5acac4 Mon Sep 17 00:00:00 2001 From: rishikesh yadav Date: Tue, 14 Nov 2023 11:06:06 +0530 Subject: [PATCH 1/3] added tokens field in dappSchema --- src/schemas/merokuDappStore.dAppSchema.json | 29 +++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/src/schemas/merokuDappStore.dAppSchema.json b/src/schemas/merokuDappStore.dAppSchema.json index 28b8692..7a21880 100644 --- a/src/schemas/merokuDappStore.dAppSchema.json +++ b/src/schemas/merokuDappStore.dAppSchema.json @@ -314,6 +314,35 @@ }, "minItems": 1, "uniqueItems": true + }, + "tokens": { + "type": "array", + "items": { + "type": "object", + "required": ["name", "symbol", "address", "chains"], + "properties": { + "name": { + "type": "string", + "description": "The name of the token" + }, + "symbol": { + "type": "string", + "description": "The symbol of the token" + }, + "address": { + "type": "string", + "description": "The address of the token" + }, + "chains": { + "type": "array", + "minItems": 1, + "uniqueItems": true, + "items": { + "type": "integer" + } + } + } + } } }, "allOf": [ From b24a5b6a499d260c679c03e5abb352c90cac9a8c Mon Sep 17 00:00:00 2001 From: rishikesh yadav Date: Tue, 14 Nov 2023 11:07:42 +0530 Subject: [PATCH 2/3] incremented version --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 0489422..f1249ad 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@merokudao/dapp-store-registry", - "version": "0.1.103", + "version": "0.1.104", "description": "The dApp Store registry for MerokuDAO dAapp Store", "repository": { "type": "git", From 5aa2db6b95141056941a02f662c00eeb8dcc2eb4 Mon Sep 17 00:00:00 2001 From: rishikesh yadav Date: Tue, 14 Nov 2023 11:13:05 +0530 Subject: [PATCH 3/3] added tokens field in dappschema interface --- src/interfaces/dAppSchema.ts | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/interfaces/dAppSchema.ts b/src/interfaces/dAppSchema.ts index 1f397f8..dd213e4 100644 --- a/src/interfaces/dAppSchema.ts +++ b/src/interfaces/dAppSchema.ts @@ -58,6 +58,13 @@ export interface DownloadBaseUrls { versionCode?: string; } +export interface Token { + name: string; + symbol: string; + address: string; + chains: number[]; +} + /** * A schema for dapps for dApp Registry */ @@ -188,4 +195,5 @@ export interface DAppSchema { version?: string; versionCode?: string; packageId?: string; + tokens?: Token[]; }