-
Notifications
You must be signed in to change notification settings - Fork 193
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs(create-mud): explain boilerplate in templates (#1427)
Co-authored-by: Kevin Ingersoll <[email protected]>
- Loading branch information
Showing
23 changed files
with
645 additions
and
8 deletions.
There are no files selected for viewing
11 changes: 11 additions & 0 deletions
11
templates/phaser/packages/client/src/mud/createClientComponents.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
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
58 changes: 58 additions & 0 deletions
58
templates/phaser/packages/client/src/mud/getNetworkConfig.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
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
17 changes: 16 additions & 1 deletion
17
templates/phaser/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,4 +1,19 @@ | ||
/* | ||
* 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"; | ||
|
||
// If you are deploying to chains other than anvil or Lattice testnet, add them here | ||
/* | ||
* See https://mud.dev/tutorials/minimal/deploy#run-the-user-interface | ||
* for instructions on how to add networks. | ||
*/ | ||
export const supportedChains: MUDChain[] = [mudFoundry, latticeTestnet]; |
11 changes: 11 additions & 0 deletions
11
templates/react/packages/client/src/mud/createClientComponents.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
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
59 changes: 59 additions & 0 deletions
59
templates/react/packages/client/src/mud/getNetworkConfig.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
Oops, something went wrong.