From 3aa5704da2d46fcb1d058b4e2b590c6bd728a1eb Mon Sep 17 00:00:00 2001 From: Neeraj Choubisa Date: Thu, 27 Jun 2024 01:55:24 +0530 Subject: [PATCH] Update Wrappers --- src/lib/queries.ts | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/src/lib/queries.ts b/src/lib/queries.ts index dffbf6e..53b9fd6 100644 --- a/src/lib/queries.ts +++ b/src/lib/queries.ts @@ -98,9 +98,25 @@ export async function isRoundActive(){ return output; } + export async function getRoundChampion(id: number){ const api = await getApi(); const result = await api.query.gameModule.roundChampion(id); const output = result.toHuman(); return output; -} \ No newline at end of file +} + +export async function getGameProperties(){ + const api = await getApi(); + const result = await api.query.gameModule.gameProperties(); + const output = result.toHuman(); + return output; +} + +export async function getCollectionColor(id: number){ + const api = await getApi(); + const result = await api.query.gameModule.collectionColor(id); + const output = result.toHuman(); + return output; +} +