Skip to content

Commit

Permalink
feat(create-mud): redstone and garnet chains (latticexyz#2776)
Browse files Browse the repository at this point in the history
Co-authored-by: Kevin Ingersoll <[email protected]>
  • Loading branch information
2 people authored and dhvanipa committed May 24, 2024
1 parent 55a9714 commit beff5db
Show file tree
Hide file tree
Showing 11 changed files with 41 additions and 22 deletions.
5 changes: 5 additions & 0 deletions .changeset/curly-grapes-hear.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"create-mud": patch
---

Updated templates with Redstone and Garnet chains and removed the deprecated Lattice testnet chain.
4 changes: 2 additions & 2 deletions templates/phaser/packages/client/src/mud/supportedChains.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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];
7 changes: 5 additions & 2 deletions templates/phaser/packages/contracts/foundry.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Original file line number Diff line number Diff line change
Expand Up @@ -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];
7 changes: 5 additions & 2 deletions templates/react-ecs/packages/contracts/foundry.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
5 changes: 2 additions & 3 deletions templates/react/packages/client/src/mud/supportedChains.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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];
7 changes: 5 additions & 2 deletions templates/react/packages/contracts/foundry.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
5 changes: 3 additions & 2 deletions templates/threejs/packages/client/src/mud/supportedChains.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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];
7 changes: 5 additions & 2 deletions templates/threejs/packages/contracts/foundry.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
4 changes: 2 additions & 2 deletions templates/vanilla/packages/client/src/mud/supportedChains.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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];
7 changes: 5 additions & 2 deletions templates/vanilla/packages/contracts/foundry.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"

0 comments on commit beff5db

Please sign in to comment.