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 5 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
1 change: 1 addition & 0 deletions templates/phaser/packages/client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What was the issue with eslint?

Copy link
Contributor Author

@qbzzt qbzzt Apr 30, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That it wouldn't let me commit because it had some kind of problem. I can try to reproduce it, but it'll take a bit. I'd rather not do it before Redstone.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if you can't repro, should we remove this?

holic marked this conversation as resolved.
Show resolved Hide resolved
"eslint-plugin-react": "7.31.11",
"eslint-plugin-react-hooks": "4.6.0",
"vite": "^4.2.1",
Expand Down
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, 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];
6 changes: 6 additions & 0 deletions templates/phaser/packages/contracts/foundry.toml
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,9 @@ 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"
1 change: 1 addition & 0 deletions templates/react-ecs/packages/client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
holic marked this conversation as resolved.
Show resolved Hide resolved
"eslint-plugin-react": "7.31.11",
"eslint-plugin-react-hooks": "4.6.0",
"vite": "^4.2.1",
Expand Down
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, 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];
6 changes: 6 additions & 0 deletions templates/react-ecs/packages/contracts/foundry.toml
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,9 @@ 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"
1 change: 1 addition & 0 deletions templates/react/packages/client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
holic marked this conversation as resolved.
Show resolved Hide resolved
"eslint-plugin-react": "7.31.11",
"eslint-plugin-react-hooks": "4.6.0",
"vite": "^4.2.1",
Expand Down
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, 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];
6 changes: 6 additions & 0 deletions templates/react/packages/contracts/foundry.toml
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,9 @@ 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"
1 change: 1 addition & 0 deletions templates/threejs/packages/client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
"@types/react": "18.2.22",
"@types/react-dom": "18.2.7",
"@vitejs/plugin-react": "^3.1.0",
"eslint": "8.57.0",
holic marked this conversation as resolved.
Show resolved Hide resolved
"eslint-plugin-react": "7.31.11",
"eslint-plugin-react-hooks": "4.6.0",
"vite": "^4.2.1",
Expand Down
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, 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];
6 changes: 6 additions & 0 deletions templates/threejs/packages/contracts/foundry.toml
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,9 @@ 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, 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];
6 changes: 6 additions & 0 deletions templates/vanilla/packages/contracts/foundry.toml
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,9 @@ 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