Skip to content

Commit

Permalink
Format/lint
Browse files Browse the repository at this point in the history
  • Loading branch information
xbtmatt committed Jan 22, 2025
1 parent be93314 commit c4d5346
Show file tree
Hide file tree
Showing 3 changed files with 927 additions and 72 deletions.
4 changes: 3 additions & 1 deletion src/typescript/frontend/src/app/arena/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@ export default async function Arena() {
try {
melee = await fetchMelee({});
} catch (e) {
console.warn("Could not get melee data. This probably means that the backend is running an outdated version of the processor, without the arena processing. Please update.")
console.warn(
"Could not get melee data. This probably means that the backend is running an outdated version of the processor, without the arena processing. Please update."
);
redirect("/home");
}

Expand Down
6 changes: 3 additions & 3 deletions src/typescript/sdk/src/const.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,15 @@ export const VERCEL = process.env.VERCEL === "1";
if (
!process.env.NEXT_PUBLIC_MODULE_ADDRESS ||
!process.env.NEXT_PUBLIC_REWARDS_MODULE_ADDRESS ||
!process.env.NEXT_PUBLIC_ARENA_MODULE_ADDRESS ||
!process.env.NEXT_PUBLIC_INTEGRATOR_ADDRESS ||
!process.env.NEXT_PUBLIC_INTEGRATOR_FEE_RATE_BPS ||
!process.env.NEXT_PUBLIC_APTOS_NETWORK
) {
const missing = [
["NEXT_PUBLIC_MODULE_ADDRESS", process.env.NEXT_PUBLIC_MODULE_ADDRESS],
["NEXT_PUBLIC_REWARDS_MODULE_ADDRESS", process.env.NEXT_PUBLIC_REWARDS_MODULE_ADDRESS],
["NEXT_PUBLIC_ARENA_MODULE_ADDRESS", process.env.NEXT_PUBLIC_ARENA_MODULE_ADDRESS],
["NEXT_PUBLIC_INTEGRATOR_ADDRESS", process.env.NEXT_PUBLIC_INTEGRATOR_ADDRESS],
["NEXT_PUBLIC_INTEGRATOR_FEE_RATE_BPS", process.env.NEXT_PUBLIC_INTEGRATOR_FEE_RATE_BPS],
["NEXT_PUBLIC_APTOS_NETWORK", process.env.NEXT_PUBLIC_APTOS_NETWORK],
Expand Down Expand Up @@ -67,9 +69,7 @@ export const getAptosApiKey = () => serverApiKey ?? clientApiKey;
// is much simpler.
export const MODULE_ADDRESS = (() => AccountAddress.from(process.env.NEXT_PUBLIC_MODULE_ADDRESS))();
export const ARENA_MODULE_ADDRESS = (() =>
process.env.NEXT_PUBLIC_ARENA_MODULE_ADDRESS
? AccountAddress.from(process.env.NEXT_PUBLIC_ARENA_MODULE_ADDRESS)
: null)();
AccountAddress.from(process.env.NEXT_PUBLIC_ARENA_MODULE_ADDRESS))();
export const REWARDS_MODULE_ADDRESS = (() =>
AccountAddress.from(process.env.NEXT_PUBLIC_REWARDS_MODULE_ADDRESS))();
export const INTEGRATOR_ADDRESS = (() =>
Expand Down
Loading

0 comments on commit c4d5346

Please sign in to comment.