Skip to content
This repository has been archived by the owner on Nov 8, 2024. It is now read-only.

Commit

Permalink
Update Wrappers
Browse files Browse the repository at this point in the history
  • Loading branch information
Kali-Decoder committed Jun 26, 2024
1 parent b8d2f5f commit 3aa5704
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion src/lib/queries.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}

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;
}

0 comments on commit 3aa5704

Please sign in to comment.