Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(create-mud): redstone and garnet chains #2776

Merged
merged 9 commits into from
Apr 30, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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"
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"
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"
Loading