diff --git a/Scarb.toml b/Scarb.toml index 428d0353..0e0e86a9 100644 --- a/Scarb.toml +++ b/Scarb.toml @@ -57,7 +57,7 @@ slot_ryo2_torii = "slot d create ryo2 torii -v v1.0.0-rc.2 --config-file ./torii slot_ryosepolia_torii = "slot d create ryosepolia2 torii -v v1.0.0-rc.2 --config-file ./torii_ryosepolia2.toml" # slot ryomainnet -slot_ryomainnet_torii = "slot d create --tier rare ryomainnet torii -v v1.0.0-rc.2 --config-file ./torii_mainnet.toml" +slot_ryomainnet_torii = "slot d create --tier rare ryomainnet torii -v v1.0.1 --config ./torii_mainnet.toml" [profile.ryo1] [profile.ryo2] diff --git a/torii_mainnet.toml b/torii_mainnet.toml index f82fcb1b..a4b860c1 100644 --- a/torii_mainnet.toml +++ b/torii_mainnet.toml @@ -1,10 +1,17 @@ rpc = "https://api.cartridge.gg/x/starknet/mainnet" world_address = "0x04f3dccb47477c087ad9c76b8067b8aadded57f8df7f2d7543e6066bcb25332c" + +[indexing] allowed_origins = ["*"] index_pending = true +index_transactions = false polling_interval = 1000 -historical_events = [ +contracts = [] + +[events] +raw = false +historical = [ "dopewars-GameCreated", "dopewars-Traveled", "dopewars-GameOver", @@ -20,5 +27,3 @@ historical_events = [ "dopewars-TrophyCreation", "dopewars-TrophyProgression", ] - -contracts = [] diff --git a/web/src/pages/index.tsx b/web/src/pages/index.tsx index 200e0e0f..9f7ab0d8 100644 --- a/web/src/pages/index.tsx +++ b/web/src/pages/index.tsx @@ -1,25 +1,11 @@ import { Button } from "@/components/common"; -import { Flipflop, LaundromatIcon, PaperIcon, Warning } from "@/components/icons"; +import { CopsIcon, Flipflop, LaundromatIcon, PaperIcon, Warning } from "@/components/icons"; import { Layout } from "@/components/layout"; import { HomeLeftPanel, Leaderboard, Tutorial } from "@/components/pages/home"; import { HallOfFame } from "@/components/pages/home/HallOfFame"; import { useConfigStore, useDojoContext, useRouterContext, useSeasonByVersion, useSystems } from "@/dojo/hooks"; import { sleep } from "@/dojo/utils"; -import { play } from "@/hooks/media"; -import { Sounds, playSound } from "@/hooks/sound"; -import { - Card, - Divider, - HStack, - Progress, - Tab, - TabList, - TabPanel, - TabPanels, - Tabs, - Text, - VStack, -} from "@chakra-ui/react"; +import { Card, HStack, Progress, Tab, TabList, TabPanel, TabPanels, Tabs, Text, VStack } from "@chakra-ui/react"; import { useAccount, useConnect } from "@starknet-react/core"; import { useEffect, useState } from "react"; import colors from "@/theme/colors"; @@ -30,7 +16,7 @@ import { gameModeName } from "@/dojo/helpers"; export default function Home() { const { router, isLocalhost } = useRouterContext(); const { account } = useAccount(); - const { uiStore, burnerManager } = useDojoContext(); + const { uiStore } = useDojoContext(); const { launder, isPending } = useSystems(); const { connectors, connect } = useConnect(); @@ -47,6 +33,8 @@ export default function Home() { const [progressPercent, setProgressPercent] = useState(0); + const isPaused = config?.ryo.paused; + useEffect(() => { if (!sortedList || sortedList.process_max_size === 0) return; @@ -96,18 +84,27 @@ export default function Home() { - {isSeasonOpen && canCreateGame && ( + {isPaused && ( + + + + Game under arrest. + The streets are silent... + + + )} + {!isPaused && isSeasonOpen && canCreateGame && ( )} - {isSeasonOpen && canCreateGame && ( + {!isPaused && isSeasonOpen && canCreateGame && ( )} - {isSeasonOpen && !canCreateGame && ( + {!isPaused && isSeasonOpen && !canCreateGame && (