diff --git a/.changeset/curly-grapes-hear.md b/.changeset/curly-grapes-hear.md new file mode 100644 index 0000000000..37152d57ad --- /dev/null +++ b/.changeset/curly-grapes-hear.md @@ -0,0 +1,5 @@ +--- +"create-mud": patch +--- + +Updated templates with Redstone and Garnet chains and removed the deprecated Lattice testnet chain. diff --git a/templates/phaser/packages/client/src/mud/supportedChains.ts b/templates/phaser/packages/client/src/mud/supportedChains.ts index abc9c557eb..03cefdf77f 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, 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, redstone, garnet]; diff --git a/templates/phaser/packages/contracts/foundry.toml b/templates/phaser/packages/contracts/foundry.toml index 15424eb6d8..3256b0c658 100644 --- a/templates/phaser/packages/contracts/foundry.toml +++ b/templates/phaser/packages/contracts/foundry.toml @@ -22,5 +22,8 @@ extra_output_files = [ ] fs_permissions = [{ access = "read", path = "./"}] -[profile.lattice-testnet] -eth_rpc_url = "https://follower.testnet-chain.linfra.xyz" +[profile.garnet] +eth_rpc_url = "https://rpc.garnetchain.com" + +[profile.redstone] +eth_rpc_url = "https://rpc.redstonechain.com" diff --git a/templates/react-ecs/packages/client/src/mud/supportedChains.ts b/templates/react-ecs/packages/client/src/mud/supportedChains.ts index 614412500e..03cefdf77f 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, 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, redstone, garnet]; diff --git a/templates/react-ecs/packages/contracts/foundry.toml b/templates/react-ecs/packages/contracts/foundry.toml index 15424eb6d8..3256b0c658 100644 --- a/templates/react-ecs/packages/contracts/foundry.toml +++ b/templates/react-ecs/packages/contracts/foundry.toml @@ -22,5 +22,8 @@ extra_output_files = [ ] fs_permissions = [{ access = "read", path = "./"}] -[profile.lattice-testnet] -eth_rpc_url = "https://follower.testnet-chain.linfra.xyz" +[profile.garnet] +eth_rpc_url = "https://rpc.garnetchain.com" + +[profile.redstone] +eth_rpc_url = "https://rpc.redstonechain.com" diff --git a/templates/react/packages/client/src/mud/supportedChains.ts b/templates/react/packages/client/src/mud/supportedChains.ts index 614412500e..03cefdf77f 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, 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, redstone, garnet]; diff --git a/templates/react/packages/contracts/foundry.toml b/templates/react/packages/contracts/foundry.toml index 15424eb6d8..3256b0c658 100644 --- a/templates/react/packages/contracts/foundry.toml +++ b/templates/react/packages/contracts/foundry.toml @@ -22,5 +22,8 @@ extra_output_files = [ ] fs_permissions = [{ access = "read", path = "./"}] -[profile.lattice-testnet] -eth_rpc_url = "https://follower.testnet-chain.linfra.xyz" +[profile.garnet] +eth_rpc_url = "https://rpc.garnetchain.com" + +[profile.redstone] +eth_rpc_url = "https://rpc.redstonechain.com" diff --git a/templates/threejs/packages/client/src/mud/supportedChains.ts b/templates/threejs/packages/client/src/mud/supportedChains.ts index 499c8bb3a6..03cefdf77f 100644 --- a/templates/threejs/packages/client/src/mud/supportedChains.ts +++ b/templates/threejs/packages/client/src/mud/supportedChains.ts @@ -9,10 +9,11 @@ * - latticeTestnet, our public test network. * */ -import { MUDChain, latticeTestnet, mudFoundry } from "@latticexyz/common/chains"; + +import { MUDChain, 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, redstone, garnet]; diff --git a/templates/threejs/packages/contracts/foundry.toml b/templates/threejs/packages/contracts/foundry.toml index 15424eb6d8..3256b0c658 100644 --- a/templates/threejs/packages/contracts/foundry.toml +++ b/templates/threejs/packages/contracts/foundry.toml @@ -22,5 +22,8 @@ extra_output_files = [ ] fs_permissions = [{ access = "read", path = "./"}] -[profile.lattice-testnet] -eth_rpc_url = "https://follower.testnet-chain.linfra.xyz" +[profile.garnet] +eth_rpc_url = "https://rpc.garnetchain.com" + +[profile.redstone] +eth_rpc_url = "https://rpc.redstonechain.com" diff --git a/templates/vanilla/packages/client/src/mud/supportedChains.ts b/templates/vanilla/packages/client/src/mud/supportedChains.ts index abc9c557eb..03cefdf77f 100644 --- a/templates/vanilla/packages/client/src/mud/supportedChains.ts +++ b/templates/vanilla/packages/client/src/mud/supportedChains.ts @@ -10,10 +10,10 @@ * */ -import { MUDChain, latticeTestnet, mudFoundry } from "@latticexyz/common/chains"; +import { MUDChain, 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, redstone, garnet]; diff --git a/templates/vanilla/packages/contracts/foundry.toml b/templates/vanilla/packages/contracts/foundry.toml index 15424eb6d8..3256b0c658 100644 --- a/templates/vanilla/packages/contracts/foundry.toml +++ b/templates/vanilla/packages/contracts/foundry.toml @@ -22,5 +22,8 @@ extra_output_files = [ ] fs_permissions = [{ access = "read", path = "./"}] -[profile.lattice-testnet] -eth_rpc_url = "https://follower.testnet-chain.linfra.xyz" +[profile.garnet] +eth_rpc_url = "https://rpc.garnetchain.com" + +[profile.redstone] +eth_rpc_url = "https://rpc.redstonechain.com"