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

Commit

Permalink
lint files
Browse files Browse the repository at this point in the history
  • Loading branch information
izaakwalz committed Jun 29, 2024
1 parent 96380db commit c9f24ec
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 142 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
"dotenv": "^16.4.5",
"embla-carousel": "^8.1.5",
"embla-carousel-react": "^8.1.5",
"eslint-plugin-tailwindcss": "^3.17.4",
"lucide-react": "^0.376.0",
"next": "14.2.3",
"next-themes": "^0.3.0",
Expand Down
14 changes: 14 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

133 changes: 0 additions & 133 deletions src/components/game.tsx

This file was deleted.

15 changes: 6 additions & 9 deletions src/lib/queries.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ export async function getNextListingId() {
const output = result.toHuman();
return output;
}
export async function getNextOfferId(){
export async function getNextOfferId() {
const api = await getApi();
const result = await api.query.gameModule.nextOfferId();
const output = result.toHuman();
Expand All @@ -80,43 +80,40 @@ export async function getOffers(id: number) {
const api = await getApi();
const result = await api.query.gameModule.offers(id);
const output = result.toHuman();
return
return;
}


export async function getPalletVersion() {
const api = await getApi();
const result = await api.query.gameModule.palletVersion();
const output = result.toHuman();
return output;
}

export async function isRoundActive(){
export async function isRoundActive() {
const api = await getApi();
const result = await api.query.gameModule.roundActive();
const output = result.toHuman();
return output;
}


export async function getRoundChampion(id: number){
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(){
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){
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 c9f24ec

Please sign in to comment.