diff --git a/templates/phaser/packages/client/package.json b/templates/phaser/packages/client/package.json index 285ce6eb37..6fcc5485bf 100644 --- a/templates/phaser/packages/client/package.json +++ b/templates/phaser/packages/client/package.json @@ -38,6 +38,7 @@ "@types/react-dom": "18.2.7", "@types/styled-components": "^5.1.26", "@vitejs/plugin-react": "^3.1.0", + "eslint": "8.57.0", "eslint-plugin-react": "7.31.11", "eslint-plugin-react-hooks": "4.6.0", "vite": "^4.2.1", diff --git a/templates/phaser/packages/client/src/mud/supportedChains.ts b/templates/phaser/packages/client/src/mud/supportedChains.ts index abc9c557eb..5251ff8f96 100644 --- a/templates/phaser/packages/client/src/mud/supportedChains.ts +++ b/templates/phaser/packages/client/src/mud/supportedChains.ts @@ -10,10 +10,10 @@ * */ -import { MUDChain, latticeTestnet, mudFoundry } from "@latticexyz/common/chains"; +import { MUDChain, latticeTestnet, mudFoundry, redstone, garnet } from "@latticexyz/common/chains"; /* * See https://mud.dev/tutorials/minimal/deploy#run-the-user-interface * for instructions on how to add networks. */ -export const supportedChains: MUDChain[] = [mudFoundry, latticeTestnet]; +export const supportedChains: MUDChain[] = [mudFoundry, latticeTestnet, redstone, garnet]; diff --git a/templates/react-ecs/packages/client/package.json b/templates/react-ecs/packages/client/package.json index 18098bbb19..ee4c62d002 100644 --- a/templates/react-ecs/packages/client/package.json +++ b/templates/react-ecs/packages/client/package.json @@ -30,6 +30,7 @@ "@types/react": "18.2.22", "@types/react-dom": "18.2.7", "@vitejs/plugin-react": "^3.1.0", + "eslint": "8.57.0", "eslint-plugin-react": "7.31.11", "eslint-plugin-react-hooks": "4.6.0", "vite": "^4.2.1", diff --git a/templates/react-ecs/packages/client/src/mud/supportedChains.ts b/templates/react-ecs/packages/client/src/mud/supportedChains.ts index 614412500e..5251ff8f96 100644 --- a/templates/react-ecs/packages/client/src/mud/supportedChains.ts +++ b/templates/react-ecs/packages/client/src/mud/supportedChains.ts @@ -8,13 +8,12 @@ * basefee set to zero to avoid transaction fees. * - latticeTestnet, our public test network. * - */ -import { MUDChain, latticeTestnet, mudFoundry } from "@latticexyz/common/chains"; +import { MUDChain, latticeTestnet, mudFoundry, redstone, garnet } from "@latticexyz/common/chains"; /* * See https://mud.dev/tutorials/minimal/deploy#run-the-user-interface * for instructions on how to add networks. */ -export const supportedChains: MUDChain[] = [mudFoundry, latticeTestnet]; +export const supportedChains: MUDChain[] = [mudFoundry, latticeTestnet, redstone, garnet]; diff --git a/templates/react/packages/client/package.json b/templates/react/packages/client/package.json index 66cefb659d..c0be380910 100644 --- a/templates/react/packages/client/package.json +++ b/templates/react/packages/client/package.json @@ -29,6 +29,7 @@ "@types/react": "18.2.22", "@types/react-dom": "18.2.7", "@vitejs/plugin-react": "^3.1.0", + "eslint": "8.57.0", "eslint-plugin-react": "7.31.11", "eslint-plugin-react-hooks": "4.6.0", "vite": "^4.2.1", diff --git a/templates/react/packages/client/src/mud/supportedChains.ts b/templates/react/packages/client/src/mud/supportedChains.ts index 614412500e..5251ff8f96 100644 --- a/templates/react/packages/client/src/mud/supportedChains.ts +++ b/templates/react/packages/client/src/mud/supportedChains.ts @@ -8,13 +8,12 @@ * basefee set to zero to avoid transaction fees. * - latticeTestnet, our public test network. * - */ -import { MUDChain, latticeTestnet, mudFoundry } from "@latticexyz/common/chains"; +import { MUDChain, latticeTestnet, mudFoundry, redstone, garnet } from "@latticexyz/common/chains"; /* * See https://mud.dev/tutorials/minimal/deploy#run-the-user-interface * for instructions on how to add networks. */ -export const supportedChains: MUDChain[] = [mudFoundry, latticeTestnet]; +export const supportedChains: MUDChain[] = [mudFoundry, latticeTestnet, redstone, garnet]; diff --git a/templates/supportedChains.ts b/templates/supportedChains.ts deleted file mode 100644 index 5251ff8f96..0000000000 --- a/templates/supportedChains.ts +++ /dev/null @@ -1,19 +0,0 @@ -/* - * The supported chains. - * By default, there are only two chains here: - * - * - mudFoundry, the chain running on anvil that pnpm dev - * starts by default. It is similar to the viem anvil chain - * (see https://viem.sh/docs/clients/test.html), but with the - * basefee set to zero to avoid transaction fees. - * - latticeTestnet, our public test network. - * - */ - -import { MUDChain, latticeTestnet, mudFoundry, redstone, garnet } from "@latticexyz/common/chains"; - -/* - * See https://mud.dev/tutorials/minimal/deploy#run-the-user-interface - * for instructions on how to add networks. - */ -export const supportedChains: MUDChain[] = [mudFoundry, latticeTestnet, redstone, garnet];