# MUD framework

MUD is a framework for ambitious onchain applications. It reduces the complexity of building [Ethereum](https://ethereum.org/) apps with a tightly integrated software stack. It's [open source](https://github.com/latticexyz/mud) and [free to use](https://github.com/latticexyz/mud/blob/main/LICENSE).

{% embed url="<https://mud.dev/introduction#why-mud>" %}

## Deploy MUD to Conla Network

{% hint style="warning" %}
Update to the latest foundry version.

```bash
foundryup
```

{% endhint %}

At present, MUD does not fully support zkEVM version. We have modified some packages to be able to deploy MUD contracts to zkEVM. If you are using the MUD framework, please see the instructions below to deploy your game to Conla testnet:

Step 1: Move to `packages/contracts` folder and clean the [`node_modules`](#user-content-fn-1)[^1] folder.

Step 2: Edit the `package.json` file, then replace the dependencies below:

```
"@latticexyz/cli": "npm:@conla-network/cli@2.0.0-next.17-batched",
"@latticexyz/world": "npm:@conla-network/world@2.0.0-next.17",
"@latticexyz/world-modules": "npm:@conla-network/world-modules@2.0.0-next.17"
```

Step 3: Install the dependencies

```bash
pnpm install
```

Step 4: Add Conla network profile. Edit the `foundry.toml` file, then add configurations below:

```
solc = "0.8.24" // upgrade solidity version to 0.8.24

// Add the Conla testnet profile
[profile.conla-testnet]
eth_rpc_url = "https://testnet-rpc.conla.com"
```

Step 4: Deploy to Conla testnet. Faucet native token [here](/users/onboarding/faucet-tton.md).

```bash
pnpm run build && mud deploy --profile=conla-testnet
```

Wait for the contracts to be deployed.

[^1]:


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.conla.com/developers/fully-on-chain-games/mud-framework.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
