From 9fc09d6ea889512882baa98cd2ef05136b41bfed Mon Sep 17 00:00:00 2001 From: raschel <38816784+aymericdelab@users.noreply.github.com> Date: Thu, 12 Dec 2024 11:54:06 +0100 Subject: [PATCH] hs cost (#2443) * hs cost * fix deposit arrival * update lock --- client/src/dojo/setup.ts | 12 +- client/src/ui/components/entities/Entity.tsx | 31 +- pnpm-lock.yaml | 348 ++++--------------- 3 files changed, 108 insertions(+), 283 deletions(-) diff --git a/client/src/dojo/setup.ts b/client/src/dojo/setup.ts index f0807df8d..fdb7aedf3 100644 --- a/client/src/dojo/setup.ts +++ b/client/src/dojo/setup.ts @@ -1,6 +1,7 @@ import { BUILDING_CATEGORY_POPULATION_CONFIG_ID, - WORLD_CONFIG_ID + HYPERSTRUCTURE_CONFIG_ID, + WORLD_CONFIG_ID, } from "@bibliothecadao/eternum"; import { DojoConfig } from "@dojoengine/core"; import { getSyncEntities, getSyncEvents, syncEntities } from "@dojoengine/state"; @@ -48,8 +49,13 @@ export async function setup({ ...config }: DojoConfig) { models: [], }, }, - - + { + Keys: { + keys: [HYPERSTRUCTURE_CONFIG_ID.toString(), undefined], + pattern_matching: "VariableLen", + models: [], + }, + }, ]; // fetch all existing entities from torii diff --git a/client/src/ui/components/entities/Entity.tsx b/client/src/ui/components/entities/Entity.tsx index 9d15c2e44..c853b37f5 100644 --- a/client/src/ui/components/entities/Entity.tsx +++ b/client/src/ui/components/entities/Entity.tsx @@ -1,3 +1,4 @@ +import { addToSubscription } from "@/dojo/queries"; import { useDojo } from "@/hooks/context/DojoContext"; import { ArrivalInfo } from "@/hooks/helpers/use-resource-arrivals"; import { getArmyByEntityId } from "@/hooks/helpers/useArmies"; @@ -10,7 +11,7 @@ import { divideByPrecision, formatTime, getEntityIdFromKeys } from "@/ui/utils/u import { EntityType } from "@bibliothecadao/eternum"; import { useComponentValue } from "@dojoengine/react"; import clsx from "clsx"; -import React, { useMemo } from "react"; +import React, { useEffect, useMemo, useState } from "react"; import { DepositResources } from "../resources/DepositResources"; const entityIcon: Record = { @@ -32,6 +33,8 @@ type EntityProps = { export const EntityArrival = ({ arrival, ...props }: EntityProps) => { const dojo = useDojo(); + const [isSyncing, setIsSyncing] = useState(false); + const { getEntityInfo, getEntityName } = useEntitiesUtils(); const { getResourcesFromBalance } = useResourcesUtils(); const nextBlockTimestamp = useUIStore.getState().nextBlockTimestamp; @@ -45,6 +48,26 @@ export const EntityArrival = ({ arrival, ...props }: EntityProps) => { return getResourcesFromBalance(arrival.entityId); }, [weight]); + useEffect(() => { + if (entityResources.length === 0) { + setIsSyncing(true); + const fetch = async () => { + try { + await addToSubscription( + dojo.network.toriiClient, + dojo.network.contractComponents as any, + arrival.entityId.toString(), + ); + } catch (error) { + console.error("Fetch failed", error); + } finally { + setIsSyncing(false); + } + }; + fetch(); + } + }, [arrival.entityId, dojo.network.toriiClient, dojo.network.contractComponents, entityResources.length]); + const army = useMemo(() => getArmy(arrival.entityId), [arrival.entityId, entity.resources]); const renderEntityStatus = useMemo(() => { @@ -62,6 +85,10 @@ export const EntityArrival = ({ arrival, ...props }: EntityProps) => { }, [nextBlockTimestamp, arrival.recipientEntityId, arrival.hasResources, entity.arrivalTime]); const renderedResources = useMemo(() => { + if (isSyncing) { + return
Syncing resources...
; + } + return entityResources .filter(Boolean) .map((resource) => ( @@ -74,7 +101,7 @@ export const EntityArrival = ({ arrival, ...props }: EntityProps) => { amount={divideByPrecision(resource.amount)} /> )); - }, [entityResources]); + }, [entityResources, isSyncing]); const name = entity.entityType === EntityType.TROOP ? army?.name : entityName[entity.entityType]; diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 10e2e5cdc..fbd18dd1d 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -137,29 +137,29 @@ importers: specifier: 0.5.5 version: 0.5.5(encoding@0.1.13) '@dojoengine/core': - specifier: 1.0.3-alpha.0 - version: 1.0.3-alpha.0(starknet@6.11.0(encoding@0.1.13))(typescript@5.7.2) + specifier: 1.0.3-alpha.1 + version: 1.0.3-alpha.1(starknet@6.11.0(encoding@0.1.13))(typescript@5.7.2) '@dojoengine/create-burner': - specifier: 1.0.3-alpha.0 - version: 1.0.3-alpha.0(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.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) '@dojoengine/react': - specifier: 1.0.3-alpha.0 - version: 1.0.3-alpha.0(@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.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) '@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.0 - version: 1.0.3-alpha.0(@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.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) '@dojoengine/torii-client': - specifier: 1.0.3-alpha.0 - version: 1.0.3-alpha.0 + specifier: 1.0.3-alpha.1 + version: 1.0.3-alpha.1 '@dojoengine/torii-wasm': - specifier: 1.0.3-alpha.0 - version: 1.0.3-alpha.0 + specifier: 1.0.3-alpha.1 + version: 1.0.3-alpha.1 '@dojoengine/utils': - specifier: 1.0.3-alpha.0 - version: 1.0.3-alpha.0(starknet@6.11.0(encoding@0.1.13))(typescript@5.7.2)(zod@3.24.1) + 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) '@headlessui/react': specifier: ^1.7.18 version: 1.7.19(react-dom@18.3.1(react@18.3.1))(react@18.3.1) @@ -267,7 +267,7 @@ importers: version: 3.2.0(@types/three@0.163.0)(three@0.166.1) three-stdlib: specifier: ^2.29.5 - version: 2.34.1(three@0.166.1) + version: 2.35.0(three@0.166.1) use-sound: specifier: ^4.0.1 version: 4.0.3(react@18.3.1) @@ -434,19 +434,19 @@ importers: 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) '@dojoengine/react': specifier: 1.0.3-alpha.1 - version: 1.0.3-alpha.1(@types/node@20.17.9)(@types/react@18.3.15)(jsdom@24.1.3)(react@18.3.1)(starknet@6.11.0(encoding@0.1.13))(terser@5.36.0)(type-fest@4.26.1)(typescript@5.7.2)(zod@3.24.0) + 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) '@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.9)(jsdom@24.1.3)(starknet@6.11.0(encoding@0.1.13))(terser@5.36.0)(typescript@5.7.2)(zod@3.24.0) + 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) '@dojoengine/torii-client': specifier: 1.0.3-alpha.1 version: 1.0.3-alpha.1 '@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.0) + version: 1.0.3-alpha.1(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) @@ -636,7 +636,7 @@ importers: version: 1.87.9(@tanstack/react-router@1.87.9(@tanstack/router-generator@1.87.7)(react-dom@18.3.1(react@18.3.1))(react@18.3.1))(csstype@3.1.3)(react-dom@18.3.1(react@18.3.1))(react@18.3.1) '@tanstack/router-plugin': specifier: ^1.73.1 - version: 1.87.7(vite@5.4.11(@types/node@20.17.10)(terser@5.37.0)) + version: 1.87.11(vite@5.4.11(@types/node@20.17.10)(terser@5.37.0)) '@types/node': specifier: ^20.11.10 version: 20.17.10 @@ -1493,25 +1493,12 @@ packages: peerDependencies: starknet: 6.11.0 - '@dojoengine/core@1.0.1': - resolution: {integrity: sha512-b1/uIWC2XBP7qVj5Log+vkCdxB5gsm4PhSCM+4xpgLBkf7xDDG9kZ/XltNgkNdO+GzeeT/R3BnvfmwpMmwDywQ==} - hasBin: true - peerDependencies: - starknet: 6.11.0 - '@dojoengine/core@1.0.3-alpha.1': resolution: {integrity: sha512-UAKjqrgjThj3GpoDGnHp76yGSBO7jsC17iQEPIUevZcrRGFKYBlrE8TnW71y6ATo4xIu1d+OVh9mbhrZx/fG/Q==} hasBin: true peerDependencies: starknet: 6.11.0 - '@dojoengine/create-burner@1.0.1': - resolution: {integrity: sha512-E6k5baRzIo91pET90NGWOsUHyXYSuVapIb7lb8z8dvZ+Zdru+RzQqC9K8nIpFjjDtGTbfCaQb8fZ/meUuvf0Ww==} - peerDependencies: - react: ^18.2.0 - react-dom: ^18.2.0 - starknet: 6.11.0 - '@dojoengine/create-burner@1.0.3-alpha.1': resolution: {integrity: sha512-jV+9dXskKrgFVRjKFTanBE4AUwdiv8L99HSI7EFw7M0lkWDn07kvc1jIH1nmApE9NrKA/RzUsUfuuctKvCQHXw==} peerDependencies: @@ -1519,13 +1506,6 @@ packages: react-dom: ^18.2.0 starknet: 6.11.0 - '@dojoengine/react@1.0.1': - resolution: {integrity: sha512-DsAvGlrOuOjp2LeL6H3VHjcT32tz7dhvUIrjKRMgFX2NWcbqYVKaOv4Jm1YX4oSZi+SqDvKhlzrOma1sfrITdg==} - peerDependencies: - react: ^18.2.0 - starknet: 6.11.0 - type-fest: ^2.14.0 - '@dojoengine/react@1.0.3-alpha.1': resolution: {integrity: sha512-F5Rft2/p9365bJvAoy5JhgVS4Q7roxZ5oZR5xwJvX8Ni6kBzuO3gUJRLw3z52bYhBkyexqxM4IQwOxK6vRP46g==} peerDependencies: @@ -1536,33 +1516,17 @@ packages: '@dojoengine/recs@2.0.13': resolution: {integrity: sha512-Cgz4Unlnk2FSDoFTYKrJexX/KiSYPMFMxftxQkC+9LUKS5yNGkgFQM7xu4/L1HvpDAenL7NjUmH6ynRAS7Iifw==} - '@dojoengine/state@1.0.1': - resolution: {integrity: sha512-akvjXw7nls0wnmcd0xb9klDfNEfSicjGZOK9HO2LOIOxisv4H7XVElVXmm68qjWYgVCfMKtvXtWuVA45M/ztvw==} - peerDependencies: - starknet: 6.11.0 - '@dojoengine/state@1.0.3-alpha.1': resolution: {integrity: sha512-wjInSqugEKhHu5L7RxOJI55mZ+J68k5QNfN/ESQxvecztTBMIF7PRBCizojVS56q0ke5dOhXsy7yxiIncs/OAg==} peerDependencies: starknet: 6.11.0 - '@dojoengine/torii-client@1.0.1': - resolution: {integrity: sha512-10dFxX/wSFv7nSIAMo+Vly84CHyPEhyPB7T4od5aTDI+TuYOVIYqj4sDuytccZrj0cZmiDcw6vm9wL/C3rieKQ==} - '@dojoengine/torii-client@1.0.3-alpha.1': resolution: {integrity: sha512-n3+Z6SyG2hovMrDvU3OMsSta3Ai37hW5Jy/DC+uYwJP55HNh0oHQ8ovGtBvwgytnMsKKnagpXzP68Ai8dHwmYg==} - '@dojoengine/torii-wasm@1.0.1': - resolution: {integrity: sha512-/kr0BP+Kb6aNqtTPniFOLErHRhBoXWZnCoY1zuHjWQI0IJi820MjtgrCObG8TDjxHvtjgGLGt92IlwiTDlbdEQ==} - '@dojoengine/torii-wasm@1.0.3-alpha.1': resolution: {integrity: sha512-piNAMay3E1ZFSgzJ4DE2zySf7FqtRJYHPkLmaoWnrJfUnfcsfFCYY+hRm/KoYCcohZWwab3MfFcQxDIKj1Zuyw==} - '@dojoengine/utils@1.0.1': - resolution: {integrity: sha512-2E5bCYSeifsLxN5bmez8ziJSKbexWxRr3Ss3+txDWLICzfIqNA6eF43rBgUp6/w4NDI57ClimSq7TwXcU/lepA==} - peerDependencies: - starknet: 6.11.0 - '@dojoengine/utils@1.0.3-alpha.1': resolution: {integrity: sha512-nKuUsDw510MjJ36ZwoCe3SjC3An7LCbCom7+xvuzt7tbGqxO0lDe6htSfumCkSxIzsjQc7wTfGJGpLHJIvbDGw==} peerDependencies: @@ -4138,8 +4102,8 @@ packages: resolution: {integrity: sha512-w9Px1C6DM0YNVXvu1VjUuZ5el0ykOeofEmEZBW83VUTzvCXFpcjPCHncU9FO9uXup8NFIxNfGz+xpwf93GoFnQ==} engines: {node: '>=12'} - '@tanstack/router-plugin@1.87.7': - resolution: {integrity: sha512-3QdDyanjZkGW9yqqiDbjrFIEnrDpJGydNB5pawTbv2UsWO3vXQfzFY6wYuUZGjbXjXxXZ+C0H2f/igIP0dDDqg==} + '@tanstack/router-plugin@1.87.11': + resolution: {integrity: sha512-mg8Ci9IT2H5aDBM6DippwKr1AHTBc6eudgpvHRMelGxLl4VY7vlKNx5Ds5yZeqE9Jp6VNr2z7E0xx70e8cFoBg==} engines: {node: '>=12'} peerDependencies: '@rsbuild/core': '>=1.0.2' @@ -4905,8 +4869,8 @@ packages: bare-path@2.1.3: resolution: {integrity: sha512-lh/eITfU8hrj9Ru5quUp0Io1kJWIk1bTjzo7JH1P5dWmQ2EL4hFUlfI8FonAhSlgIfhn63p84CDY/x+PisgcXA==} - bare-stream@2.5.2: - resolution: {integrity: sha512-QK6bePvszntxgPKdVXciYzjlWv2Ry1mQuUqyUUzd27G7eLupl6d0K5AGJfnfyFAdgy5tRolHP/zbaUMslLceOg==} + bare-stream@2.5.3: + resolution: {integrity: sha512-p+zwXMlLluovtQXGKvT9oZkSYZA9wgpYaY3EluZlQJXYgPIL2r5Ym/3ZS8pvDkXLVWXnnRkeipdD+V1SAm25aw==} base64-js@1.5.1: resolution: {integrity: sha512-AKpaYlHn8t4SVbOHCy+b5+KKgvR4vrsD8vbvrbiQJps7fKDTkjkDry6ji0rUJjC0kzbNePLwzxq8iypo41qeWA==} @@ -5031,8 +4995,8 @@ packages: peerDependencies: three: '>=0.126.1' - caniuse-lite@1.0.30001687: - resolution: {integrity: sha512-0S/FDhf4ZiqrTUiQ39dKeUjYRjkv7lOZU1Dgif2rIqrTzX/1wV2hfKu9TOm1IHkdSijfLswxTFzl/cvir+SLSQ==} + caniuse-lite@1.0.30001688: + resolution: {integrity: sha512-Nmqpru91cuABu/DTCXbM2NSRHzM2uVHfPnhJ/1zEAJx/ILBRVmz3pzH4N7DZqbdG0gWClsCC05Oj0mJ/1AWMbA==} capital-case@1.0.4: resolution: {integrity: sha512-ds37W8CytHgwnhGGTi88pcPyR15qoNkOpYwmMMfnWqqWgESapLqvDx6huFjQ5vqWSn2Z06173XNA7LtMOeUh1A==} @@ -6531,8 +6495,8 @@ packages: resolution: {integrity: sha512-z0vtXSwucUJtANQWldhbtbt7BnL0vxiFjIdDLAatwhDYty2bad6s+rijD6Ri4YuYJubLzIJLUidCh09e1djEVQ==} engines: {node: '>= 0.4'} - is-data-view@1.0.1: - resolution: {integrity: sha512-AHkaJrsUVW6wq6JS8y3JnM/GJF/9cf+k20+iDzlSaJrinEo5+7vRiteOSwBhHRiAyQATN1AmY4hwzxJKPmYf+w==} + is-data-view@1.0.2: + resolution: {integrity: sha512-RKtWF8pGmS87i2D6gqQu/l7EYRlVdfzemCJN/P3UOs//x1QE7mfhvzHIApBTRf7axvT6DMGwSwBXYCT0nfB9xw==} engines: {node: '>= 0.4'} is-date-object@1.0.5: @@ -6630,8 +6594,8 @@ packages: is-promise@2.2.2: resolution: {integrity: sha512-+lP4/6lKUBfQjZ2pdxThZvLUAafmZb8OAxFb8XXtiQmS35INgr85hdOGoEs124ez1FCnZJt6jau/T+alh58QFQ==} - is-regex@1.2.0: - resolution: {integrity: sha512-B6ohK4ZmoftlUe+uvenXSbPJFo6U37BH7oO1B3nQH8f/7h27N56s85MhUtbFJAziz5dcmuR3i8ovUl35zp8pFA==} + is-regex@1.2.1: + resolution: {integrity: sha512-MjYsKHO5O7mCsmRGxWcLWheFqN9DJ/2TmngvjKXihe6efViPqc274+Fx/4fYj/r03+ESvBdTXK0V6tA3rgez1g==} engines: {node: '>= 0.4'} is-regexp@1.0.0: @@ -6748,8 +6712,8 @@ packages: resolution: {integrity: sha512-BewmUXImeuRk2YY0PVbxgKAysvhRPUQE0h5QRM++nVWyubKGV0l8qQ5op8+B2DOmwSe63Jivj0BjkPQVf8fP5g==} engines: {node: '>=8'} - iterator.prototype@1.1.3: - resolution: {integrity: sha512-FW5iMbeQ6rBGm/oKgzq2aW4KvAGpxPzYES8N4g4xNXUKpL1mclMvOe+76AcLDTvD+Ze+sOpVhgdAQEKF4L9iGQ==} + iterator.prototype@1.1.4: + resolution: {integrity: sha512-x4WH0BWmrMmg4oHHl+duwubhrvczGlyuGAZu3nvrf0UXOfPu8IhZObFEr7DE/iv01YgVZrsOiRcqw2srkKEDIA==} engines: {node: '>= 0.4'} its-fine@1.2.5: @@ -8749,8 +8713,8 @@ packages: peerDependencies: three: '>= 0.151.0' - three-stdlib@2.34.1: - resolution: {integrity: sha512-Ck1eXTyd0Ii+/X9eGqOBxijHwy0fjyQbaZMBxdCrX7C1J7+nvueDsZqddny7Rh6KZwX+YBD8PplCzAoWY3mIXg==} + three-stdlib@2.35.0: + resolution: {integrity: sha512-LVj6ehsfHIEw1Jsue5PWz9W8NyBA99k72s4StFPxR3ZU1Pf3XctocPev3n3Sh8zUD2R+4hu6sx6svbYfNwuUcg==} peerDependencies: three: '>=0.128.0' @@ -10650,7 +10614,7 @@ snapshots: - typescript - utf-8-validate - '@dojoengine/core@1.0.1(starknet@6.11.0(encoding@0.1.13))(typescript@5.7.2)': + '@dojoengine/core@1.0.3-alpha.1(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) @@ -10660,32 +10624,6 @@ snapshots: - typescript - utf-8-validate - '@dojoengine/core@1.0.3-alpha.1(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.0) - starknet: 6.11.0(encoding@0.1.13) - zod: 3.24.0 - transitivePeerDependencies: - - bufferutil - - typescript - - utf-8-validate - - '@dojoengine/create-burner@1.0.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)': - dependencies: - '@dojoengine/core': 1.0.1(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 - get-starknet-core: 3.3.4(starknet@6.11.0(encoding@0.1.13)) - js-cookie: 3.0.5 - react: 18.3.1 - react-dom: 18.3.1(react@18.3.1) - starknet: 6.11.0(encoding@0.1.13) - transitivePeerDependencies: - - bufferutil - - 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)': dependencies: '@dojoengine/core': 1.0.3-alpha.1(starknet@6.11.0(encoding@0.1.13))(typescript@5.7.2) @@ -10702,50 +10640,12 @@ snapshots: - typescript - utf-8-validate - '@dojoengine/react@1.0.1(@types/node@20.17.10)(@types/react@18.3.16)(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.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)': dependencies: '@dojoengine/recs': 2.0.13(typescript@5.7.2)(zod@3.24.1) - '@dojoengine/state': 1.0.1(@types/node@20.17.10)(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.1 - '@dojoengine/utils': 1.0.1(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 - get-starknet-core: 3.3.4(starknet@6.11.0(encoding@0.1.13)) - js-cookie: 3.0.5 - react: 18.3.1 - rxjs: 7.5.5 - starknet: 6.11.0(encoding@0.1.13) - type-fest: 2.19.0 - zustand: 4.5.5(@types/react@18.3.16)(react@18.3.1) - transitivePeerDependencies: - - '@edge-runtime/vm' - - '@types/node' - - '@types/react' - - '@vitest/browser' - - '@vitest/ui' - - bufferutil - - happy-dom - - immer - - jsdom - - less - - lightningcss - - sass - - sass-embedded - - stylus - - sugarss - - supports-color - - terser - - typescript - - utf-8-validate - - zod - - '@dojoengine/react@1.0.3-alpha.1(@types/node@20.17.9)(@types/react@18.3.15)(jsdom@24.1.3)(react@18.3.1)(starknet@6.11.0(encoding@0.1.13))(terser@5.36.0)(type-fest@4.26.1)(typescript@5.7.2)(zod@3.24.0)': - dependencies: - '@dojoengine/recs': 2.0.13(typescript@5.7.2)(zod@3.24.0) - '@dojoengine/state': 1.0.3-alpha.1(@types/node@20.17.9)(jsdom@24.1.3)(starknet@6.11.0(encoding@0.1.13))(terser@5.36.0)(typescript@5.7.2)(zod@3.24.0) + '@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.0) + '@dojoengine/utils': 1.0.3-alpha.1(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 @@ -10802,59 +10702,9 @@ snapshots: - utf-8-validate - zod - '@dojoengine/state@1.0.1(@types/node@20.17.10)(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: - '@latticexyz/schema-type': 2.0.12(typescript@5.6.3)(zod@3.24.0) - '@latticexyz/utils': 2.0.12 - mobx: 6.13.5 - rxjs: 7.5.5 - transitivePeerDependencies: - - bufferutil - - typescript - - utf-8-validate - - zod - - '@dojoengine/recs@2.0.13(typescript@5.7.2)(zod@3.24.0)': - dependencies: - '@latticexyz/schema-type': 2.0.12(typescript@5.7.2)(zod@3.24.0) - '@latticexyz/utils': 2.0.12 - mobx: 6.13.5 - rxjs: 7.5.5 - transitivePeerDependencies: - - bufferutil - - typescript - - utf-8-validate - - zod - - '@dojoengine/state@1.0.1(@types/node@20.17.1)(@vitest/ui@2.1.3)(jsdom@24.1.3)(starknet@6.11.0(encoding@0.1.13))(terser@5.36.0)(typescript@5.6.3)(zod@3.23.8)': + '@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)': dependencies: - '@dojoengine/recs': 2.0.13(typescript@5.6.3)(zod@3.23.8) - '@dojoengine/torii-client': 1.0.1 - 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: - - '@edge-runtime/vm' - - '@types/node' - - '@vitest/browser' - - '@vitest/ui' - - bufferutil - - happy-dom - - jsdom - - less - - lightningcss - - sass - - sass-embedded - - stylus - - sugarss - - supports-color - - terser - - typescript - - utf-8-validate - - zod - - '@dojoengine/state@1.0.3-alpha.1(@types/node@20.17.9)(jsdom@24.1.3)(starknet@6.11.0(encoding@0.1.13))(terser@5.36.0)(typescript@5.7.2)(zod@3.24.0)': - dependencies: - '@dojoengine/recs': 2.0.13(typescript@5.7.2)(zod@3.24.0) + '@dojoengine/recs': 2.0.13(typescript@5.7.2)(zod@3.24.1) '@dojoengine/torii-client': 1.0.3-alpha.1 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) @@ -10878,32 +10728,13 @@ snapshots: - utf-8-validate - zod - '@dojoengine/torii-client@1.0.1': - dependencies: - '@dojoengine/torii-wasm': 1.0.1 - '@dojoengine/torii-client@1.0.3-alpha.1': dependencies: '@dojoengine/torii-wasm': 1.0.3-alpha.1 - '@dojoengine/torii-wasm@1.0.1': {} - '@dojoengine/torii-wasm@1.0.3-alpha.1': {} - '@dojoengine/utils@1.0.1(starknet@6.11.0(encoding@0.1.13))(typescript@5.6.3)(zod@3.23.8)': - dependencies: - '@dojoengine/recs': 2.0.13(typescript@5.7.2)(zod@3.24.1) - '@latticexyz/utils': 2.2.14 - mathjs: 12.4.3 - micro-starknet: 0.2.3 - starknet: 6.11.0(encoding@0.1.13) - transitivePeerDependencies: - - bufferutil - - typescript - - utf-8-validate - - zod - - '@dojoengine/utils@1.0.3-alpha.1(starknet@6.11.0(encoding@0.1.13))(typescript@5.7.2)(zod@3.24.0)': + '@dojoengine/utils@1.0.3-alpha.1(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 @@ -11929,26 +11760,6 @@ snapshots: - utf-8-validate - zod - '@latticexyz/schema-type@2.0.12(typescript@5.6.3)(zod@3.24.0)': - dependencies: - abitype: 1.0.0(typescript@5.6.3)(zod@3.24.0) - viem: 2.9.20(typescript@5.6.3)(zod@3.24.0) - transitivePeerDependencies: - - bufferutil - - typescript - - utf-8-validate - - zod - - '@latticexyz/schema-type@2.0.12(typescript@5.7.2)(zod@3.24.0)': - dependencies: - abitype: 1.0.0(typescript@5.7.2)(zod@3.24.0) - viem: 2.9.20(typescript@5.7.2)(zod@3.24.0) - transitivePeerDependencies: - - bufferutil - - typescript - - utf-8-validate - - zod - '@latticexyz/utils@2.0.12': dependencies: mobx: 6.13.5 @@ -12897,7 +12708,7 @@ snapshots: suspend-react: 0.1.3(react@18.3.1) three: 0.166.1 three-mesh-bvh: 0.7.8(three@0.166.1) - three-stdlib: 2.34.1(three@0.166.1) + three-stdlib: 2.35.0(three@0.166.1) troika-three-text: 0.52.2(three@0.166.1) tunnel-rat: 0.1.2(@types/react@18.3.16)(react@18.3.1) utility-types: 3.11.0 @@ -12941,7 +12752,7 @@ snapshots: postprocessing: 6.36.4(three@0.166.1) react: 18.3.1 three: 0.166.1 - three-stdlib: 2.34.1(three@0.166.1) + three-stdlib: 2.35.0(three@0.166.1) transitivePeerDependencies: - '@types/three' @@ -13684,7 +13495,7 @@ snapshots: tsx: 4.19.2 zod: 3.24.1 - '@tanstack/router-plugin@1.87.7(vite@5.4.11(@types/node@20.17.10)(terser@5.37.0))': + '@tanstack/router-plugin@1.87.11(vite@5.4.11(@types/node@20.17.10)(terser@5.37.0))': dependencies: '@babel/core': 7.26.0 '@babel/generator': 7.26.3 @@ -14426,15 +14237,10 @@ snapshots: abitype@1.0.0(typescript@5.7.2)(zod@3.24.1): optionalDependencies: - typescript: 5.6.3 - zod: 3.23.8 - - abitype@1.0.0(typescript@5.6.3)(zod@3.24.0): - optionalDependencies: - typescript: 5.6.3 - zod: 3.24.0 + typescript: 5.7.2 + zod: 3.24.1 - abitype@1.0.0(typescript@5.7.2)(zod@3.24.0): + abitype@1.0.7(typescript@5.7.2)(zod@3.24.1): optionalDependencies: typescript: 5.7.2 zod: 3.24.1 @@ -14611,7 +14417,7 @@ snapshots: autoprefixer@10.4.20(postcss@8.4.49): dependencies: browserslist: 4.24.2 - caniuse-lite: 1.0.30001687 + caniuse-lite: 1.0.30001688 fraction.js: 4.3.7 normalize-range: 0.1.2 picocolors: 1.1.1 @@ -14711,7 +14517,7 @@ snapshots: dependencies: bare-events: 2.5.0 bare-path: 2.1.3 - bare-stream: 2.5.2 + bare-stream: 2.5.3 optional: true bare-os@2.4.4: @@ -14722,7 +14528,7 @@ snapshots: bare-os: 2.4.4 optional: true - bare-stream@2.5.2: + bare-stream@2.5.3: dependencies: streamx: 2.21.0 optional: true @@ -14780,7 +14586,7 @@ snapshots: browserslist@4.24.2: dependencies: - caniuse-lite: 1.0.30001687 + caniuse-lite: 1.0.30001688 electron-to-chromium: 1.5.73 node-releases: 2.0.19 update-browserslist-db: 1.1.1(browserslist@4.24.2) @@ -14853,7 +14659,7 @@ snapshots: dependencies: three: 0.166.1 - caniuse-lite@1.0.30001687: {} + caniuse-lite@1.0.30001688: {} capital-case@1.0.4: dependencies: @@ -15208,19 +15014,19 @@ snapshots: dependencies: call-bind: 1.0.8 es-errors: 1.3.0 - is-data-view: 1.0.1 + is-data-view: 1.0.2 data-view-byte-length@1.0.1: dependencies: call-bind: 1.0.8 es-errors: 1.3.0 - is-data-view: 1.0.1 + is-data-view: 1.0.2 data-view-byte-offset@1.0.0: dependencies: call-bind: 1.0.8 es-errors: 1.3.0 - is-data-view: 1.0.1 + is-data-view: 1.0.2 dataloader@2.2.3: {} @@ -15459,9 +15265,9 @@ snapshots: internal-slot: 1.0.7 is-array-buffer: 3.0.4 is-callable: 1.2.7 - is-data-view: 1.0.1 + is-data-view: 1.0.2 is-negative-zero: 2.0.3 - is-regex: 1.2.0 + is-regex: 1.2.1 is-shared-array-buffer: 1.0.3 is-string: 1.1.0 is-typed-array: 1.1.13 @@ -15501,7 +15307,7 @@ snapshots: has-proto: 1.2.0 has-symbols: 1.1.0 internal-slot: 1.0.7 - iterator.prototype: 1.1.3 + iterator.prototype: 1.1.4 safe-array-concat: 1.1.3 es-module-lexer@1.5.4: {} @@ -16679,8 +16485,10 @@ snapshots: dependencies: hasown: 2.0.2 - is-data-view@1.0.1: + is-data-view@1.0.2: dependencies: + call-bound: 1.0.2 + get-intrinsic: 1.2.6 is-typed-array: 1.1.13 is-date-object@1.0.5: @@ -16750,9 +16558,9 @@ snapshots: is-promise@2.2.2: {} - is-regex@1.2.0: + is-regex@1.2.1: dependencies: - call-bind: 1.0.8 + call-bound: 1.0.2 gopd: 1.2.0 has-tostringtag: 1.0.2 hasown: 2.0.2 @@ -16863,9 +16671,10 @@ snapshots: html-escaper: 2.0.2 istanbul-lib-report: 3.0.1 - iterator.prototype@1.1.3: + iterator.prototype@1.1.4: dependencies: - define-properties: 1.2.1 + define-data-property: 1.1.4 + es-object-atoms: 1.0.0 get-intrinsic: 1.2.6 has-symbols: 1.1.0 reflect.getprototypeof: 1.0.8 @@ -18802,7 +18611,7 @@ snapshots: dependencies: call-bind: 1.0.8 es-errors: 1.3.0 - is-regex: 1.2.0 + is-regex: 1.2.1 safer-buffer@2.1.2: {} @@ -19382,7 +19191,7 @@ snapshots: dependencies: three: 0.166.1 - three-stdlib@2.34.1(three@0.166.1): + three-stdlib@2.35.0(three@0.166.1): dependencies: '@types/draco3d': 1.4.10 '@types/offscreencanvas': 2019.7.3 @@ -19897,30 +19706,13 @@ snapshots: isows: 1.0.3(ws@8.13.0) ws: 8.13.0 optionalDependencies: - typescript: 5.6.3 - transitivePeerDependencies: - - bufferutil - - utf-8-validate - - zod - - viem@2.9.20(typescript@5.6.3)(zod@3.24.0): - dependencies: - '@adraffy/ens-normalize': 1.10.0 - '@noble/curves': 1.2.0 - '@noble/hashes': 1.3.2 - '@scure/bip32': 1.3.2 - '@scure/bip39': 1.2.1 - abitype: 1.0.0(typescript@5.6.3)(zod@3.24.0) - isows: 1.0.3(ws@8.13.0) - ws: 8.13.0 - optionalDependencies: - typescript: 5.6.3 + typescript: 5.7.2 transitivePeerDependencies: - bufferutil - utf-8-validate - zod - viem@2.9.20(typescript@5.7.2)(zod@3.24.0): + vite-node@1.6.0(@types/node@20.17.10)(terser@5.37.0): dependencies: cac: 6.7.14 debug: 4.4.0 @@ -20292,7 +20084,7 @@ snapshots: is-date-object: 1.0.5 is-finalizationregistry: 1.1.0 is-generator-function: 1.0.10 - is-regex: 1.2.0 + is-regex: 1.2.1 is-weakref: 1.0.2 isarray: 2.0.5 which-boxed-primitive: 1.1.0