Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update blob arena + season passes #314

Merged
merged 5 commits into from
Dec 5, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions .env.sepolia
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@ RESERVOIR_API_KEY=
NEXT_PUBLIC_ALCHEMY_API=
NEXT_PUBLIC_LOCAL_API=http://localhost:3000/api/
NEXT_PUBLIC_IS_TESTNET=true
NEXT_PUBLIC_ETHERSCAN_URL=https://goerli.etherscan.io
NEXT_PUBLIC_VOYAGER_URL=https://goerli.voyager.online
NEXT_PUBLIC_STARKSCAN_URL=https://testnet.starkscan.co
NEXT_PUBLIC_SUBGRAPH_NAME=redbeardeth/starknet-bridge-goerli
NEXT_PUBLIC_ETHERSCAN_URL=https://sepolia.etherscan.io
NEXT_PUBLIC_VOYAGER_URL=https://sepolia.voyager.online
NEXT_PUBLIC_STARKSCAN_URL=https://sepolia.starkscan.co
NEXT_PUBLIC_SUBGRAPH_NAME=https://api.studio.thegraph.com/query/73174/starknet-bridge-mainnet/version/latest
NEXT_PUBLIC_APIBARA_HANDLE=goerli-graphql
NEXT_PUBLIC_REALMS_SUBGRAPH_NAME=bibliothecadao/goerli-realms
NEXT_PUBLIC_REALMS_SUBGRAPH_NAME=https://api.studio.thegraph.com/query/73174/realms/version/latest
NEXT_PUBLIC_REALMS_BRIDGE_SUBGRAPH_NAME=https://api.studio.thegraph.com/query/73174/realms-bridge/version/latest
NEXT_PUBLIC_REALMS_LEGACY_REWARD_SUBGRAPH_NAME=https://api.studio.thegraph.com/query/73174/legacy-rewards-sepolia/version/latest

Expand Down
112 changes: 0 additions & 112 deletions apps/nextjs/content/blogs/eternum-preseason.mdoc

This file was deleted.

14 changes: 9 additions & 5 deletions apps/nextjs/content/games/blob-arena.mdoc
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,9 @@ color: '#f5f5f5'
status: development
developer: grugs-lair
genres:
- Last Man Standing
- Turn-Based Combat
- Strategy
description: >-
Blob Arena is an innovative strategy mini-game where players engage in
Pókemon-like battles using unique characters called Bloberts.
description: Blobert Battle Game
operatingSystems:
- Web Browser
chains: []
Expand All @@ -21,7 +19,13 @@ screenshots:
- screenshots/0.png
- screenshots/1.png
- screenshots/2.png
links: {}
- screenshots/3.png
- screenshots/4.png
links:
homepage: https://www.blobarena.xyz/
discord: https://discord.gg/Aa43XBgYvh
twitter: https://x.com/Blobarena
github: https://github.com/grugslair/Blob-arena
playable: true
---
Aiming to deliver a high-quality gaming experience, Blob Arena stands out for its gameplay dynamics and strategic focus. Players will navigate through exciting encounters, against other players or against AI, using their Bloberts’ distinctive traits to outsmart and defeat opponents. The game’s core mechanic revolves around an enhanced rock-paper-scissors style combat modified by each character’s attributes such as Attack, Defence, Speed, and Strength, which are crucial for mastering the game.
2 changes: 1 addition & 1 deletion apps/nextjs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@
"lodash": "4.17.21",
"lucide-react": "^0.441.0",
"merkletreejs": "^0.3.11",
"next": "^15.0.0",
"next": "^15.0.3",
"nuqs": "^1.20.0",
"react": "catalog:react19",
"react-dom": "catalog:react19",
Expand Down
Binary file added apps/nextjs/public/collections/eternum.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified apps/nextjs/public/content/games/blob-arena/screenshots/0.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified apps/nextjs/public/content/games/blob-arena/screenshots/1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified apps/nextjs/public/content/games/blob-arena/screenshots/2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
import type { ContractDetails } from "@/types";
import type { Collections, Game } from "@realms-world/constants";
import Image from "next/image";
import Link from "next/link";
import { SUPPORTED_L2_CHAIN_ID } from "@/constants/env";
import Gamepad from "@/icons/gamepad.svg";
import LordsIcon from "@/icons/lords.svg";

import type { Collections, Game } from "@realms-world/constants";
import { marketPlaceClientBuilder } from "@/lib/ark/client";
import { getCollections } from "@/lib/ark/getCollection";
import { reader } from "@/utils/keystatic";
import {
CollectionDetails,
getCollectionAddresses,
} from "@realms-world/constants";
import { Button } from "@realms-world/ui/components/ui/button";
import { ViewOnMarketplace } from "../../ViewOnMarketplace";
import { getCollections } from "@/lib/ark/getCollection";
import { marketPlaceClientBuilder } from "@/lib/ark/client";
import { reader } from "@/utils/keystatic";
import { formatEther } from "viem";
import Gamepad from "@/icons/gamepad.svg";

import { ViewOnMarketplace } from "../../ViewOnMarketplace";

export default async function L2CollectionSummary({
collectionId,
Expand All @@ -26,14 +26,12 @@ export default async function L2CollectionSummary({
await reader().collections.collections.read(collectionId);

const collectionGames = await Promise.all(
collectionContent.games.map(async (game, index) => {
return (
{
...(await reader().collections.games.read(game ?? "")),
slug: collectionContent.games[index],
} ?? ""
);
}),
collectionContent?.games.map(async (game, index) => {
return {
...(await reader().collections.games.read(game ?? "")),
slug: collectionContent.games[index],
};
}) ?? [],
);
const l2CollectionAddress =
getCollectionAddresses(collectionId)?.[SUPPORTED_L2_CHAIN_ID];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -177,8 +177,10 @@ const GridDetails = ({
</div>
<div className="h-[48px]">
{token.metadata?.attributes &&
token.collection_address ==
CollectionAddresses.realms[SUPPORTED_L2_CHAIN_ID] && (
[
CollectionAddresses["eternum-0"][SUPPORTED_L2_CHAIN_ID],
CollectionAddresses.realms[SUPPORTED_L2_CHAIN_ID],
].includes(token.collection_address) && (
<RealmResources traits={token.metadata.attributes} />
)}
</div>
Expand Down
2 changes: 1 addition & 1 deletion apps/nextjs/src/app/(app)/games/[slug]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@ export default async function Page(props: {
alt={image.alt}
width={1096}
height={750}
className="h-full w-full rounded border object-cover"
className="h-full w-full rounded border object-contain sm:max-h-[750px]"
/>
)}
</CarouselItem>
Expand Down
2 changes: 1 addition & 1 deletion packages/auth/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
"@auth/drizzle-adapter": "^1.4.2",
"@realms-world/db": "workspace:*",
"@t3-oss/env-nextjs": "^0.11.1",
"next": "^15.0.0",
"next": "^15.0.3",
"next-auth": "5.0.0-beta.19",
"react": "catalog:react19",
"react-dom": "catalog:react19",
Expand Down
16 changes: 16 additions & 0 deletions packages/constants/src/Collections.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ export enum Collections {
GOLDEN_TOKEN = "goldentoken",
BLOBERT = "blobert",
BANNERS = "banners",
ETERNUM_0 = "eternum-0",
}

export const CollectionAddresses: {
Expand Down Expand Up @@ -44,6 +45,10 @@ export const CollectionAddresses: {
"0x02d66679de61a5c6d57afd21e005a8c96118bd60315fd79a4521d68f5e5430d1",
[ChainId.SN_SEPOLIA]: "",
},
[Collections.ETERNUM_0]: {
[ChainId.SN_MAIN]:
"0x057675b9c0bd62b096a2e15502a37b290fa766ead21c33eda42993e48a714b80",
},
};
export const CollectionDetails: {
readonly [key in Collections]: {
Expand Down Expand Up @@ -77,6 +82,11 @@ export const CollectionDetails: {
displayName: "Pixel Banners (for Adventurers)",
//developer: Studios.BANNERS_FOR_ADVENTURERS,
},
[Collections.ETERNUM_0]: {
royalties: 500,
displayName: "Eternum Season 0 Pass",
//developer: Studios.BANNERS_FOR_ADVENTURERS,
},
};
export function getCollectionAddresses(
collectionName: string,
Expand Down Expand Up @@ -121,6 +131,12 @@ export const REALMS_L2_COLLECTIONS: RealmsL2CollectionInfo[] = [
image: "/collections/realms.svg",
addresses: CollectionAddresses[Collections.REALMS],
},
{
name: "Eternum Season 0 Pass",
link: "eternum-0",
image: "/collections/eternum.png",
addresses: CollectionAddresses[Collections.ETERNUM_0],
},
{
name: "Beasts",
link: "beasts",
Expand Down
Loading
Loading