diff --git a/client/package.json b/client/package.json index 2676ed0ae..bc711ec33 100644 --- a/client/package.json +++ b/client/package.json @@ -19,14 +19,14 @@ "@bibliothecadao/eternum": "workspace:^", "@cartridge/connector": "0.5.5", "@cartridge/controller": "0.5.5", - "@dojoengine/core": "1.0.3-alpha.1", - "@dojoengine/torii-wasm": "1.0.3-alpha.1", - "@dojoengine/create-burner": "1.0.3-alpha.1", - "@dojoengine/react": "1.0.3-alpha.1", + "@dojoengine/core": "1.0.3-alpha.2", + "@dojoengine/torii-wasm": "1.0.3-alpha.2", + "@dojoengine/create-burner": "1.0.3-alpha.2", + "@dojoengine/react": "1.0.3-alpha.2", "@dojoengine/recs": "^2.0.13", - "@dojoengine/state": "1.0.3-alpha.1", - "@dojoengine/torii-client": "1.0.3-alpha.1", - "@dojoengine/utils": "1.0.3-alpha.1", + "@dojoengine/state": "1.0.3-alpha.2", + "@dojoengine/torii-client": "1.0.3-alpha.2", + "@dojoengine/utils": "1.0.3-alpha.2", "@headlessui/react": "^1.7.18", "@latticexyz/utils": "^2.0.0-next.12", "@radix-ui/react-collapsible": "^1.1.1", diff --git a/client/src/dojo/queries.ts b/client/src/dojo/queries.ts index 6de87a294..0d485bead 100644 --- a/client/src/dojo/queries.ts +++ b/client/src/dojo/queries.ts @@ -66,15 +66,16 @@ export const addToSubscription = async ( }, }; - await getEntities( - client, - { - ...positionClause, - }, - components, - 10_000, - false, - ); + position && + (await getEntities( + client, + { + ...positionClause, + }, + components, + 10_000, + false, + )); await getEntities( client, @@ -89,7 +90,12 @@ export const addToSubscription = async ( 10_000, false, ); +}; +export const addMarketSubscription = async ( + client: ToriiClient, + components: Component[], +) => { await getEntities( client, { diff --git a/client/src/dojo/setupNetwork.ts b/client/src/dojo/setupNetwork.ts index 5157445a3..84bd155a5 100644 --- a/client/src/dojo/setupNetwork.ts +++ b/client/src/dojo/setupNetwork.ts @@ -8,7 +8,7 @@ import * as torii from "@dojoengine/torii-client"; import { Account } from "starknet"; import { env } from "./../../env"; -const { VITE_VRF_PROVIDER_ADDRESS } = env; +const { VITE_VRF_PROVIDER_ADDRESS, VITE_PUBLIC_DEV } = env; export type SetupNetworkResult = Awaited>; @@ -31,7 +31,7 @@ export async function setupNetwork({ ...config }: DojoConfig) { try { await burnerManager.init(); - if (burnerManager.list().length === 0) { + if (VITE_PUBLIC_DEV === true && burnerManager.list().length === 0) { await burnerManager.create(); } } catch (e) { diff --git a/client/src/hooks/context/DojoContext.tsx b/client/src/hooks/context/DojoContext.tsx index c42286e76..7365d3324 100644 --- a/client/src/hooks/context/DojoContext.tsx +++ b/client/src/hooks/context/DojoContext.tsx @@ -226,7 +226,7 @@ const DojoContextProvider = ({ } } else { if (controllerAccount) { - console.log("Setting account from controllerAccount:", controllerAccount); + // console.log("Setting account from controllerAccount:", controllerAccount); useAccountStore.getState().setAccount(controllerAccount); const addressName = runQuery([ @@ -239,7 +239,7 @@ const DojoContextProvider = ({ setAccountsInitialized(true); } else { - console.log("ControllerAccount is null in production or not connected."); + // console.log("ControllerAccount is null in production or not connected."); setTimeout(() => { setRetries((prevRetries) => { if (prevRetries < 10) { diff --git a/client/src/hooks/store/useWorldLoading.tsx b/client/src/hooks/store/useWorldLoading.tsx index f20cd52cc..a7f2bedb1 100644 --- a/client/src/hooks/store/useWorldLoading.tsx +++ b/client/src/hooks/store/useWorldLoading.tsx @@ -3,10 +3,14 @@ import { create } from "zustand"; interface WorldState { isWorldLoading: boolean; + isMarketLoading: boolean; setWorldLoading: (loading: boolean) => void; + setMarketLoading: (loading: boolean) => void; } export const useWorldStore = create((set) => ({ isWorldLoading: true, + isMarketLoading: true, setWorldLoading: (loading: boolean) => set({ isWorldLoading: loading }), + setMarketLoading: (loading: boolean) => set({ isMarketLoading: loading }), })); diff --git a/client/src/three/components/BattleManager.ts b/client/src/three/components/BattleManager.ts index d7da53e64..46cc94a23 100644 --- a/client/src/three/components/BattleManager.ts +++ b/client/src/three/components/BattleManager.ts @@ -104,7 +104,10 @@ export class BattleManager { removeBattle(entityId: ID) { const meshMatrixIndex = this.battles.getBattleIndex(entityId); - if (meshMatrixIndex === undefined) throw new Error(`meshMatrixIndex not found for entityId ${entityId}`); + if (meshMatrixIndex === undefined) { + // console.warn(`meshMatrixIndex not found for entityId ${entityId}`); + return; + } const newMatrix = new THREE.Matrix4().scale(new THREE.Vector3(0, 0, 0)); this.battleModel.mesh.setMatrixAt(meshMatrixIndex, newMatrix); @@ -113,6 +116,7 @@ export class BattleManager { this.battles.removeBattle(entityId); const label = this.labels.get(entityId); + if (!label) throw new Error(`Label not found for entityId ${entityId}`); this.labelManager.removeLabel(label, this.scene); diff --git a/client/src/ui/components/structures/construction/StructureConstructionMenu.tsx b/client/src/ui/components/structures/construction/StructureConstructionMenu.tsx index 23afa6e9e..4b1bc87f5 100644 --- a/client/src/ui/components/structures/construction/StructureConstructionMenu.tsx +++ b/client/src/ui/components/structures/construction/StructureConstructionMenu.tsx @@ -4,7 +4,7 @@ import useUIStore from "@/hooks/store/useUIStore"; import { Headline } from "@/ui/elements/Headline"; import { ResourceCost } from "@/ui/elements/ResourceCost"; import { multiplyByPrecision } from "@/ui/utils/utils"; -import { ID, ResourcesIds, StructureType } from "@bibliothecadao/eternum"; +import { HYPERSTRUCTURE_CONSTRUCTION_COSTS_SCALED, HYPERSTRUCTURE_CREATION_COSTS, ID, ResourceTier, ResourcesIds, StructureType } from "@bibliothecadao/eternum"; import React from "react"; import { StructureCard } from "./StructureCard"; @@ -43,7 +43,7 @@ export const StructureConstructionMenu = ({ className, entityId }: { className?: // if is hyperstructure, the construction cost are only fragments const isHyperstructure = building === StructureType["Hyperstructure"]; - const cost = configManager.structureCosts[building].filter( + const cost = HYPERSTRUCTURE_CONSTRUCTION_COSTS_SCALED.filter( (cost) => !isHyperstructure || cost.resource === ResourcesIds.AncientFragment, ); @@ -85,8 +85,8 @@ const StructureInfo = ({ }) => { // if is hyperstructure, the construction cost are only fragments const isHyperstructure = structureId === StructureType["Hyperstructure"]; - const cost = configManager.structureCosts[structureId].filter( - (cost) => !isHyperstructure || cost.resource === ResourcesIds.AncientFragment, + const cost = HYPERSTRUCTURE_CREATION_COSTS.filter( + (cost) => !isHyperstructure || cost.resource_tier === ResourceTier.Lords, ); const perTick = @@ -110,13 +110,13 @@ const StructureInfo = ({
One time cost
{Object.keys(cost).map((resourceId, index) => { - const balance = getBalance(entityId || 0, cost[Number(resourceId)].resource); + const balance = getBalance(entityId || 0, ResourcesIds.AncientFragment); return ( ); diff --git a/client/src/ui/components/trading/MarketModal.tsx b/client/src/ui/components/trading/MarketModal.tsx index d388d544c..3ca0449ef 100644 --- a/client/src/ui/components/trading/MarketModal.tsx +++ b/client/src/ui/components/trading/MarketModal.tsx @@ -15,6 +15,7 @@ import { useSetMarket } from "@/hooks/helpers/useTrade"; import useMarketStore from "@/hooks/store/useMarketStore"; import { useModalStore } from "@/hooks/store/useModalStore"; import useUIStore from "@/hooks/store/useUIStore"; +import { useWorldStore } from "@/hooks/store/useWorldLoading"; import { BuildingThumbs } from "@/ui/config"; import CircleButton from "@/ui/elements/CircleButton"; import { LoadingAnimation } from "@/ui/elements/LoadingAnimation"; @@ -53,21 +54,18 @@ export const MarketModal = () => { const [selectedTab, setSelectedTab] = useState(0); const { playerStructures } = useEntities(); - const { toggleModal } = useModalStore(); - const banks = useGetBanks(); - - const bank = banks.length === 1 ? banks[0] : null; - const { bidOffers, askOffers } = useSetMarket(); + const bank = banks.length === 1 ? banks[0] : null; const battles = useBattlesByPosition(bank?.position || { x: 0, y: 0 }); + const isMarketLoading = useWorldStore((state) => state.isMarketLoading); + const currentBlockTimestamp = useUIStore.getState().nextBlockTimestamp || 0; const getStructure = useStructureByPosition(); - const bankStructure = getStructure(bank?.position || { x: 0, y: 0 }); const battle = useMemo(() => { @@ -144,7 +142,7 @@ export const MarketModal = () => {
), component: bank && ( - }> + }> { return ( -
+
@@ -344,6 +342,14 @@ export const MarketModal = () => {
+ {isMarketLoading && ( +
+
+
+ Syncing market data... +
+
+ )} ); }; diff --git a/client/src/ui/layouts/World.tsx b/client/src/ui/layouts/World.tsx index b17bfdf01..72ec220b5 100644 --- a/client/src/ui/layouts/World.tsx +++ b/client/src/ui/layouts/World.tsx @@ -3,12 +3,13 @@ import { lazy, Suspense, useEffect, useMemo, useState } from "react"; import { Redirect } from "wouter"; import useUIStore from "../../hooks/store/useUIStore"; -import { addToSubscription } from "@/dojo/queries"; +import { addMarketSubscription, addToSubscription } from "@/dojo/queries"; import { useDojo } from "@/hooks/context/DojoContext"; import { PlayerStructure, useEntities } from "@/hooks/helpers/useEntities"; import { useStructureEntityId } from "@/hooks/helpers/useStructureEntityId"; import { useFetchBlockchainData } from "@/hooks/store/useBlockchainStore"; import { useWorldStore } from "@/hooks/store/useWorldLoading"; +import { ADMIN_BANK_ENTITY_ID } from "@bibliothecadao/eternum"; import { getComponentValue } from "@dojoengine/recs"; import { getEntityIdFromKeys } from "@dojoengine/utils"; import { env } from "../../../env"; @@ -102,6 +103,7 @@ export const World = ({ backgroundImage }: { backgroundImage: string }) => { const worldLoading = useWorldStore((state) => state.isWorldLoading); const setWorldLoading = useWorldStore((state) => state.setWorldLoading); + const setMarketLoading = useWorldStore((state) => state.setMarketLoading); const dojo = useDojo(); const structureEntityId = useUIStore((state) => state.structureEntityId); @@ -115,7 +117,12 @@ export const World = ({ backgroundImage }: { backgroundImage: string }) => { ); useEffect(() => { - if (!structureEntityId || subscriptions[structureEntityId.toString()] || structureEntityId === 999999998) { + if ( + !structureEntityId || + subscriptions[structureEntityId.toString()] || + subscriptions[ADMIN_BANK_ENTITY_ID.toString()] || + structureEntityId === 999999999 + ) { return; } @@ -125,7 +132,7 @@ export const World = ({ backgroundImage }: { backgroundImage: string }) => { ); setWorldLoading(true); - setSubscriptions((prev) => ({ ...prev, [structureEntityId.toString()]: true })); + setSubscriptions((prev) => ({ ...prev, [structureEntityId.toString()]: true, [ADMIN_BANK_ENTITY_ID.toString()]: true })); const fetch = async () => { try { await addToSubscription( @@ -134,6 +141,13 @@ export const World = ({ backgroundImage }: { backgroundImage: string }) => { structureEntityId.toString(), { x: position?.x || 0, y: position?.y || 0 }, ); + + await addToSubscription( + dojo.network.toriiClient, + dojo.network.contractComponents as any, + ADMIN_BANK_ENTITY_ID.toString(), + { x: 0, y: 0 }, + ); } catch (error) { console.error("Fetch failed", error); } finally { @@ -141,6 +155,14 @@ export const World = ({ backgroundImage }: { backgroundImage: string }) => { } console.log("world loading", worldLoading); + + try { + await addMarketSubscription(dojo.network.toriiClient, dojo.network.contractComponents as any); + } catch (error) { + console.error("Fetch failed", error); + } finally { + setMarketLoading(false); + } }; fetch(); diff --git a/landing/package.json b/landing/package.json index b28262fa3..45204cfdb 100644 --- a/landing/package.json +++ b/landing/package.json @@ -19,13 +19,13 @@ "@bibliothecadao/eternum": "workspace:^", "@cartridge/connector": "^0.5.3", "@cartridge/controller": "^0.5.3", - "@dojoengine/core": "1.0.3-alpha.1", - "@dojoengine/create-burner": "1.0.3-alpha.1", - "@dojoengine/react": "1.0.3-alpha.1", + "@dojoengine/core": "1.0.3-alpha.2", + "@dojoengine/create-burner": "1.0.3-alpha.2", + "@dojoengine/react": "1.0.3-alpha.2", "@dojoengine/recs": "^2.0.13", - "@dojoengine/state": "1.0.3-alpha.1", - "@dojoengine/torii-client": "1.0.3-alpha.1", - "@dojoengine/utils": "1.0.3-alpha.1", + "@dojoengine/state": "1.0.3-alpha.2", + "@dojoengine/torii-client": "1.0.3-alpha.2", + "@dojoengine/utils": "1.0.3-alpha.2", "@graphql-codegen/schema-ast": "^4.1.0", "@graphql-typed-document-node/core": "^3.2.0", "@headlessui/react": "^1.7.18", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index a62ad0db2..f4f66bc93 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -132,34 +132,34 @@ importers: version: link:../sdk/packages/eternum '@cartridge/connector': specifier: 0.5.5 - version: 0.5.5(encoding@0.1.13)(get-starknet-core@4.0.0)(react@18.3.1)(typescript@5.7.2) + version: 0.5.5(encoding@0.1.13)(get-starknet-core@3.3.4(starknet@6.11.0(encoding@0.1.13)))(react@18.3.1)(typescript@5.7.2) '@cartridge/controller': specifier: 0.5.5 version: 0.5.5(encoding@0.1.13) '@dojoengine/core': - specifier: 1.0.3-alpha.1 - version: 1.0.3-alpha.1(starknet@6.11.0(encoding@0.1.13))(typescript@5.7.2) + specifier: 1.0.3-alpha.2 + version: 1.0.3-alpha.2(starknet@6.11.0(encoding@0.1.13))(typescript@5.7.2) '@dojoengine/create-burner': - specifier: 1.0.3-alpha.1 - version: 1.0.3-alpha.1(react-dom@18.3.1(react@18.3.1))(react@18.3.1)(starknet@6.11.0(encoding@0.1.13))(typescript@5.7.2) + specifier: 1.0.3-alpha.2 + version: 1.0.3-alpha.2(react-dom@18.3.1(react@18.3.1))(react@18.3.1)(starknet@6.11.0(encoding@0.1.13))(typescript@5.7.2) '@dojoengine/react': - specifier: 1.0.3-alpha.1 - version: 1.0.3-alpha.1(@types/node@20.17.10)(@types/react@18.3.16)(@vitest/ui@2.1.8(vitest@2.1.8))(jsdom@24.1.3)(react@18.3.1)(starknet@6.11.0(encoding@0.1.13))(terser@5.37.0)(type-fest@2.19.0)(typescript@5.7.2)(zod@3.24.1) + specifier: 1.0.3-alpha.2 + version: 1.0.3-alpha.2(@types/node@20.17.10)(@types/react@18.3.16)(@vitest/ui@2.1.8(vitest@2.1.8))(jsdom@24.1.3)(react@18.3.1)(starknet@6.11.0(encoding@0.1.13))(terser@5.37.0)(type-fest@2.19.0)(typescript@5.7.2)(zod@3.24.1) '@dojoengine/recs': specifier: ^2.0.13 version: 2.0.13(typescript@5.7.2)(zod@3.24.1) '@dojoengine/state': - specifier: 1.0.3-alpha.1 - version: 1.0.3-alpha.1(@types/node@20.17.10)(@vitest/ui@2.1.8(vitest@2.1.8))(jsdom@24.1.3)(starknet@6.11.0(encoding@0.1.13))(terser@5.37.0)(typescript@5.7.2)(zod@3.24.1) + specifier: 1.0.3-alpha.2 + version: 1.0.3-alpha.2(@types/node@20.17.10)(@vitest/ui@2.1.8(vitest@2.1.8))(jsdom@24.1.3)(starknet@6.11.0(encoding@0.1.13))(terser@5.37.0)(typescript@5.7.2)(zod@3.24.1) '@dojoengine/torii-client': - specifier: 1.0.3-alpha.1 - version: 1.0.3-alpha.1 + specifier: 1.0.3-alpha.2 + version: 1.0.3-alpha.2 '@dojoengine/torii-wasm': - specifier: 1.0.3-alpha.1 - version: 1.0.3-alpha.1 + specifier: 1.0.3-alpha.2 + version: 1.0.3-alpha.2 '@dojoengine/utils': - specifier: 1.0.3-alpha.1 - version: 1.0.3-alpha.1(starknet@6.11.0(encoding@0.1.13))(typescript@5.7.2)(zod@3.24.1) + specifier: 1.0.3-alpha.2 + version: 1.0.3-alpha.2(starknet@6.11.0(encoding@0.1.13))(typescript@5.7.2)(zod@3.24.1) '@headlessui/react': specifier: ^1.7.18 version: 1.7.19(react-dom@18.3.1(react@18.3.1))(react@18.3.1) @@ -189,7 +189,7 @@ importers: version: 3.1.0 '@starknet-react/core': specifier: ^3.0.3 - version: 3.6.2(get-starknet-core@4.0.0)(react@18.3.1)(starknet@6.11.0(encoding@0.1.13))(typescript@5.7.2) + version: 3.6.2(get-starknet-core@3.3.4(starknet@6.11.0(encoding@0.1.13)))(react@18.3.1)(starknet@6.11.0(encoding@0.1.13))(typescript@5.7.2) '@tanstack/react-query': specifier: ^5.59.15 version: 5.62.7(react@18.3.1) @@ -427,26 +427,26 @@ importers: specifier: ^0.5.3 version: 0.5.5(encoding@0.1.13) '@dojoengine/core': - specifier: 1.0.3-alpha.1 - version: 1.0.3-alpha.1(starknet@6.11.0(encoding@0.1.13))(typescript@5.7.2) + specifier: 1.0.3-alpha.2 + version: 1.0.3-alpha.2(starknet@6.11.0(encoding@0.1.13))(typescript@5.7.2) '@dojoengine/create-burner': - specifier: 1.0.3-alpha.1 - version: 1.0.3-alpha.1(react-dom@18.3.1(react@18.3.1))(react@18.3.1)(starknet@6.11.0(encoding@0.1.13))(typescript@5.7.2) + specifier: 1.0.3-alpha.2 + version: 1.0.3-alpha.2(react-dom@18.3.1(react@18.3.1))(react@18.3.1)(starknet@6.11.0(encoding@0.1.13))(typescript@5.7.2) '@dojoengine/react': - specifier: 1.0.3-alpha.1 - version: 1.0.3-alpha.1(@types/node@20.17.10)(@types/react@18.3.16)(@vitest/ui@2.1.8(vitest@2.1.8))(jsdom@24.1.3)(react@18.3.1)(starknet@6.11.0(encoding@0.1.13))(terser@5.37.0)(type-fest@2.19.0)(typescript@5.7.2)(zod@3.24.1) + specifier: 1.0.3-alpha.2 + version: 1.0.3-alpha.2(@types/node@20.17.10)(@types/react@18.3.16)(@vitest/ui@2.1.8(vitest@2.1.8))(jsdom@24.1.3)(react@18.3.1)(starknet@6.11.0(encoding@0.1.13))(terser@5.37.0)(type-fest@2.19.0)(typescript@5.7.2)(zod@3.24.1) '@dojoengine/recs': specifier: ^2.0.13 version: 2.0.13(typescript@5.7.2)(zod@3.24.1) '@dojoengine/state': - specifier: 1.0.3-alpha.1 - version: 1.0.3-alpha.1(@types/node@20.17.10)(@vitest/ui@2.1.8(vitest@2.1.8))(jsdom@24.1.3)(starknet@6.11.0(encoding@0.1.13))(terser@5.37.0)(typescript@5.7.2)(zod@3.24.1) + specifier: 1.0.3-alpha.2 + version: 1.0.3-alpha.2(@types/node@20.17.10)(@vitest/ui@2.1.8(vitest@2.1.8))(jsdom@24.1.3)(starknet@6.11.0(encoding@0.1.13))(terser@5.37.0)(typescript@5.7.2)(zod@3.24.1) '@dojoengine/torii-client': - specifier: 1.0.3-alpha.1 - version: 1.0.3-alpha.1 + specifier: 1.0.3-alpha.2 + version: 1.0.3-alpha.2 '@dojoengine/utils': - specifier: 1.0.3-alpha.1 - version: 1.0.3-alpha.1(starknet@6.11.0(encoding@0.1.13))(typescript@5.7.2)(zod@3.24.1) + specifier: 1.0.3-alpha.2 + version: 1.0.3-alpha.2(starknet@6.11.0(encoding@0.1.13))(typescript@5.7.2)(zod@3.24.1) '@graphql-codegen/schema-ast': specifier: ^4.1.0 version: 4.1.0(graphql@16.9.0) @@ -1493,21 +1493,21 @@ packages: peerDependencies: starknet: 6.11.0 - '@dojoengine/core@1.0.3-alpha.1': - resolution: {integrity: sha512-UAKjqrgjThj3GpoDGnHp76yGSBO7jsC17iQEPIUevZcrRGFKYBlrE8TnW71y6ATo4xIu1d+OVh9mbhrZx/fG/Q==} + '@dojoengine/core@1.0.3-alpha.2': + resolution: {integrity: sha512-8FaNwmIAmKOwBVUIYSqFDtbtlZPrbQtHQT8GDkN4czMXhBjRiMoHFAkHL10ygfcPg87t+XPUbR27aWa6u4nGwA==} hasBin: true peerDependencies: starknet: 6.11.0 - '@dojoengine/create-burner@1.0.3-alpha.1': - resolution: {integrity: sha512-jV+9dXskKrgFVRjKFTanBE4AUwdiv8L99HSI7EFw7M0lkWDn07kvc1jIH1nmApE9NrKA/RzUsUfuuctKvCQHXw==} + '@dojoengine/create-burner@1.0.3-alpha.2': + resolution: {integrity: sha512-vZnH8tVRp+ZY6Fl1ql+proYbxbf22RNXngfdE/pAgnQG2qS/0lDsoP2O7N4h+LJDKyVGjHxY01+JPhDU6kMzeA==} peerDependencies: react: ^18.2.0 react-dom: ^18.2.0 starknet: 6.11.0 - '@dojoengine/react@1.0.3-alpha.1': - resolution: {integrity: sha512-F5Rft2/p9365bJvAoy5JhgVS4Q7roxZ5oZR5xwJvX8Ni6kBzuO3gUJRLw3z52bYhBkyexqxM4IQwOxK6vRP46g==} + '@dojoengine/react@1.0.3-alpha.2': + resolution: {integrity: sha512-Fj0jKXqsFB3c8crNngwlfjtqIB1NwISf9pQkrzjzSAlkC171NjPyIxA5qbXCfhVYs7XYGi3Ka26piJj3r0yPhA==} peerDependencies: react: ^18.2.0 starknet: 6.11.0 @@ -1516,19 +1516,19 @@ packages: '@dojoengine/recs@2.0.13': resolution: {integrity: sha512-Cgz4Unlnk2FSDoFTYKrJexX/KiSYPMFMxftxQkC+9LUKS5yNGkgFQM7xu4/L1HvpDAenL7NjUmH6ynRAS7Iifw==} - '@dojoengine/state@1.0.3-alpha.1': - resolution: {integrity: sha512-wjInSqugEKhHu5L7RxOJI55mZ+J68k5QNfN/ESQxvecztTBMIF7PRBCizojVS56q0ke5dOhXsy7yxiIncs/OAg==} + '@dojoengine/state@1.0.3-alpha.2': + resolution: {integrity: sha512-L7q9Exk54IlsUP+RWfXkXjyIewS4BJEH/w7ahP2EJXYhkkQDbcnEkGnonfY/Un5hUSLVG2mDdAjznD0u/IWkgw==} peerDependencies: starknet: 6.11.0 - '@dojoengine/torii-client@1.0.3-alpha.1': - resolution: {integrity: sha512-n3+Z6SyG2hovMrDvU3OMsSta3Ai37hW5Jy/DC+uYwJP55HNh0oHQ8ovGtBvwgytnMsKKnagpXzP68Ai8dHwmYg==} + '@dojoengine/torii-client@1.0.3-alpha.2': + resolution: {integrity: sha512-wJxixfj33CNnKEIOKTwI4tgNPDZq/3uiBh9qCz+buDiCjkWvbAiUlwwLUZj9a9PFG+TAQWB6SpjWzFwOwNpejA==} - '@dojoengine/torii-wasm@1.0.3-alpha.1': - resolution: {integrity: sha512-piNAMay3E1ZFSgzJ4DE2zySf7FqtRJYHPkLmaoWnrJfUnfcsfFCYY+hRm/KoYCcohZWwab3MfFcQxDIKj1Zuyw==} + '@dojoengine/torii-wasm@1.0.3-alpha.2': + resolution: {integrity: sha512-9eQc4eTV53+DNtnrMRTddTYA1kG4285OF1qNOUrAZJstLPNcLzIboJtejVcXA6v5Kb+vkI70ypdp2A+QprEDdw==} - '@dojoengine/utils@1.0.3-alpha.1': - resolution: {integrity: sha512-nKuUsDw510MjJ36ZwoCe3SjC3An7LCbCom7+xvuzt7tbGqxO0lDe6htSfumCkSxIzsjQc7wTfGJGpLHJIvbDGw==} + '@dojoengine/utils@1.0.3-alpha.2': + resolution: {integrity: sha512-NulEGvwArNhaSF9dkq5zuK/dWPu+Ri6NyMJcPsy2v0/6voP2ecQ0SKNMPDlBqX7GNC5Rrpr+mY9q1StYHtprNA==} peerDependencies: starknet: 6.11.0 @@ -10527,19 +10527,6 @@ snapshots: - typescript - utf-8-validate - '@cartridge/connector@0.5.5(encoding@0.1.13)(get-starknet-core@4.0.0)(react@18.3.1)(typescript@5.7.2)': - dependencies: - '@cartridge/controller': 0.5.5(encoding@0.1.13) - '@starknet-react/core': 3.6.2(get-starknet-core@4.0.0)(react@18.3.1)(starknet@6.11.0(encoding@0.1.13))(typescript@5.7.2) - starknet: 6.11.0(encoding@0.1.13) - transitivePeerDependencies: - - bufferutil - - encoding - - get-starknet-core - - react - - typescript - - utf-8-validate - '@cartridge/controller@0.5.5(encoding@0.1.13)': dependencies: '@cartridge/account-wasm': 0.5.5 @@ -10627,7 +10614,7 @@ snapshots: - typescript - utf-8-validate - '@dojoengine/core@1.0.3-alpha.1(starknet@6.11.0(encoding@0.1.13))(typescript@5.7.2)': + '@dojoengine/core@1.0.3-alpha.2(starknet@6.11.0(encoding@0.1.13))(typescript@5.7.2)': dependencies: '@dojoengine/recs': 2.0.13(typescript@5.7.2)(zod@3.24.1) starknet: 6.11.0(encoding@0.1.13) @@ -10637,9 +10624,9 @@ snapshots: - typescript - utf-8-validate - '@dojoengine/create-burner@1.0.3-alpha.1(react-dom@18.3.1(react@18.3.1))(react@18.3.1)(starknet@6.11.0(encoding@0.1.13))(typescript@5.7.2)': + '@dojoengine/create-burner@1.0.3-alpha.2(react-dom@18.3.1(react@18.3.1))(react@18.3.1)(starknet@6.11.0(encoding@0.1.13))(typescript@5.7.2)': dependencies: - '@dojoengine/core': 1.0.3-alpha.1(starknet@6.11.0(encoding@0.1.13))(typescript@5.7.2) + '@dojoengine/core': 1.0.3-alpha.2(starknet@6.11.0(encoding@0.1.13))(typescript@5.7.2) '@scure/bip32': 1.6.0 '@starknet-react/core': 2.3.0(get-starknet-core@3.3.4(starknet@6.11.0(encoding@0.1.13)))(react@18.3.1)(starknet@6.11.0(encoding@0.1.13)) encoding: 0.1.13 @@ -10653,12 +10640,12 @@ snapshots: - typescript - utf-8-validate - '@dojoengine/react@1.0.3-alpha.1(@types/node@20.17.10)(@types/react@18.3.16)(@vitest/ui@2.1.8(vitest@2.1.8))(jsdom@24.1.3)(react@18.3.1)(starknet@6.11.0(encoding@0.1.13))(terser@5.37.0)(type-fest@2.19.0)(typescript@5.7.2)(zod@3.24.1)': + '@dojoengine/react@1.0.3-alpha.2(@types/node@20.17.10)(@types/react@18.3.16)(@vitest/ui@2.1.8(vitest@2.1.8))(jsdom@24.1.3)(react@18.3.1)(starknet@6.11.0(encoding@0.1.13))(terser@5.37.0)(type-fest@2.19.0)(typescript@5.7.2)(zod@3.24.1)': dependencies: '@dojoengine/recs': 2.0.13(typescript@5.7.2)(zod@3.24.1) - '@dojoengine/state': 1.0.3-alpha.1(@types/node@20.17.10)(@vitest/ui@2.1.8(vitest@2.1.8))(jsdom@24.1.3)(starknet@6.11.0(encoding@0.1.13))(terser@5.37.0)(typescript@5.7.2)(zod@3.24.1) - '@dojoengine/torii-client': 1.0.3-alpha.1 - '@dojoengine/utils': 1.0.3-alpha.1(starknet@6.11.0(encoding@0.1.13))(typescript@5.7.2)(zod@3.24.1) + '@dojoengine/state': 1.0.3-alpha.2(@types/node@20.17.10)(@vitest/ui@2.1.8(vitest@2.1.8))(jsdom@24.1.3)(starknet@6.11.0(encoding@0.1.13))(terser@5.37.0)(typescript@5.7.2)(zod@3.24.1) + '@dojoengine/torii-client': 1.0.3-alpha.2 + '@dojoengine/utils': 1.0.3-alpha.2(starknet@6.11.0(encoding@0.1.13))(typescript@5.7.2)(zod@3.24.1) '@latticexyz/utils': 2.2.14 encoding: 0.1.13 fast-deep-equal: 3.1.3 @@ -10715,10 +10702,10 @@ snapshots: - utf-8-validate - zod - '@dojoengine/state@1.0.3-alpha.1(@types/node@20.17.10)(@vitest/ui@2.1.8(vitest@2.1.8))(jsdom@24.1.3)(starknet@6.11.0(encoding@0.1.13))(terser@5.37.0)(typescript@5.7.2)(zod@3.24.1)': + '@dojoengine/state@1.0.3-alpha.2(@types/node@20.17.10)(@vitest/ui@2.1.8(vitest@2.1.8))(jsdom@24.1.3)(starknet@6.11.0(encoding@0.1.13))(terser@5.37.0)(typescript@5.7.2)(zod@3.24.1)': dependencies: '@dojoengine/recs': 2.0.13(typescript@5.7.2)(zod@3.24.1) - '@dojoengine/torii-client': 1.0.3-alpha.1 + '@dojoengine/torii-client': 1.0.3-alpha.2 starknet: 6.11.0(encoding@0.1.13) vitest: 1.6.0(@types/node@20.17.10)(@vitest/ui@2.1.8(vitest@2.1.8))(jsdom@24.1.3)(terser@5.37.0) transitivePeerDependencies: @@ -10741,13 +10728,13 @@ snapshots: - utf-8-validate - zod - '@dojoengine/torii-client@1.0.3-alpha.1': + '@dojoengine/torii-client@1.0.3-alpha.2': dependencies: - '@dojoengine/torii-wasm': 1.0.3-alpha.1 + '@dojoengine/torii-wasm': 1.0.3-alpha.2 - '@dojoengine/torii-wasm@1.0.3-alpha.1': {} + '@dojoengine/torii-wasm@1.0.3-alpha.2': {} - '@dojoengine/utils@1.0.3-alpha.1(starknet@6.11.0(encoding@0.1.13))(typescript@5.7.2)(zod@3.24.1)': + '@dojoengine/utils@1.0.3-alpha.2(starknet@6.11.0(encoding@0.1.13))(typescript@5.7.2)(zod@3.24.1)': dependencies: '@dojoengine/recs': 2.0.13(typescript@5.7.2)(zod@3.24.1) '@latticexyz/utils': 2.2.14 @@ -13036,22 +13023,6 @@ snapshots: - typescript - utf-8-validate - '@starknet-react/core@3.6.2(get-starknet-core@4.0.0)(react@18.3.1)(starknet@6.11.0(encoding@0.1.13))(typescript@5.7.2)': - dependencies: - '@starknet-io/types-js': 0.7.10 - '@starknet-react/chains': 3.1.0 - '@tanstack/react-query': 5.62.7(react@18.3.1) - eventemitter3: 5.0.1 - get-starknet-core: 4.0.0 - react: 18.3.1 - starknet: 6.11.0(encoding@0.1.13) - viem: 2.21.54(typescript@5.7.2)(zod@3.24.1) - zod: 3.24.1 - transitivePeerDependencies: - - bufferutil - - typescript - - utf-8-validate - '@stitches/react@1.2.8(react@18.3.1)': dependencies: react: 18.3.1