-
Notifications
You must be signed in to change notification settings - Fork 196
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(common): add rhodolite chain (#3295)
- Loading branch information
Showing
11 changed files
with
43 additions
and
65 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
"@latticexyz/common": patch | ||
--- | ||
|
||
Added Rhodolite devnet chain config and removed the old and now-defunct Lattice testnet chain config. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
import { MUDChain, latticeTestnet, mudFoundry } from "@latticexyz/common/chains"; | ||
import { MUDChain, mudFoundry } from "@latticexyz/common/chains"; | ||
|
||
// If you are deploying to chains other than anvil or Lattice testnet, add them here | ||
export const supportedChains: MUDChain[] = [mudFoundry, latticeTestnet]; | ||
// If you are deploying to chains other than anvil, add them here | ||
export const supportedChains: MUDChain[] = [mudFoundry]; |
20 changes: 2 additions & 18 deletions
20
examples/local-explorer/packages/client/src/mud/supportedChains.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,3 @@ | ||
/* | ||
* 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, mudFoundry, redstone, garnet, rhodolite } 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, redstone, garnet]; | ||
export const supportedChains: MUDChain[] = [mudFoundry, redstone, garnet, rhodolite]; |
6 changes: 3 additions & 3 deletions
6
examples/minimal/packages/client-phaser/src/mud/supportedChains.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
import { MUDChain, latticeTestnet, mudFoundry } from "@latticexyz/common/chains"; | ||
import { MUDChain, mudFoundry } from "@latticexyz/common/chains"; | ||
|
||
// If you are deploying to chains other than anvil or Lattice testnet, add them here | ||
export const supportedChains: MUDChain[] = [mudFoundry, latticeTestnet]; | ||
// If you are deploying to chains other than anvil, add them here | ||
export const supportedChains: MUDChain[] = [mudFoundry]; |
6 changes: 3 additions & 3 deletions
6
examples/minimal/packages/client-react/src/mud/supportedChains.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
import { MUDChain, latticeTestnet, mudFoundry } from "@latticexyz/common/chains"; | ||
import { MUDChain, mudFoundry } from "@latticexyz/common/chains"; | ||
|
||
// If you are deploying to chains other than anvil or Lattice testnet, add them here | ||
export const supportedChains: MUDChain[] = [mudFoundry, latticeTestnet]; | ||
// If you are deploying to chains other than anvil, add them here | ||
export const supportedChains: MUDChain[] = [mudFoundry]; |
6 changes: 3 additions & 3 deletions
6
examples/minimal/packages/client-vanilla/src/mud/supportedChains.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
import { MUDChain, latticeTestnet, mudFoundry } from "@latticexyz/common/chains"; | ||
import { MUDChain, mudFoundry } from "@latticexyz/common/chains"; | ||
|
||
// If you are deploying to chains other than anvil or Lattice testnet, add them here | ||
export const supportedChains: MUDChain[] = [mudFoundry, latticeTestnet]; | ||
// If you are deploying to chains other than anvil, add them here | ||
export const supportedChains: MUDChain[] = [mudFoundry]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 2 additions & 6 deletions
8
examples/multiple-accounts/packages/client/src/mud/supportedChains.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,16 @@ | ||
/* | ||
* 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 } from "@latticexyz/common/chains"; | ||
import { MUDChain, mudFoundry } 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]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
export type { MUDChain } from "./types"; | ||
export { mudFoundry } from "./mudFoundry"; | ||
export { latticeTestnet } from "./latticeTestnet"; | ||
export { garnet } from "./garnet"; | ||
export { redstone } from "./redstone"; | ||
export { garnet } from "./garnet"; | ||
export { rhodolite } from "./rhodolite"; |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
import { chainConfig } from "viem/op-stack"; | ||
import { MUDChain } from "./types"; | ||
|
||
const sourceId = 17001; | ||
|
||
export const rhodolite = { | ||
...chainConfig, | ||
name: "Rhodolite Devnet", | ||
testnet: true, | ||
id: 17420, | ||
sourceId, | ||
nativeCurrency: { name: "Ether", symbol: "ETH", decimals: 18 }, | ||
rpcUrls: { | ||
default: { | ||
http: ["https://rpc.rhodolitechain.com"], | ||
}, | ||
}, | ||
iconUrls: ["https://redstone.xyz/chain-icons/rhodolite.png"], | ||
indexerUrl: "https://indexer.mud.rhodolitechain.com", | ||
} as const satisfies MUDChain; |