Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/main' into entrykit-v0
Browse files Browse the repository at this point in the history
  • Loading branch information
holic committed Jan 7, 2025
2 parents 812b200 + 1e09240 commit 1bf11c3
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 15 deletions.
5 changes: 5 additions & 0 deletions .changeset/curly-apples-bake.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@latticexyz/cli": patch
---

When upgrading an existing world, the deployer now attempts to read the deploy block number from the `worlds.json` file. If it is found, the `HelloWorld` and `HelloStore` event are fetched from this block instead of searching for the events starting from the genesis block.
31 changes: 16 additions & 15 deletions docs/pages/cli/deploy.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -37,21 +37,22 @@ Again, there are several ways to do this:

These are the command line options you can specify on `mud deploy`:

| Option | Meaning | Type | Default value |
| ----------------------- | ------------------------------------------------ | ------- | ---------------------------------------------------------- |
| `--configPath` | Path to the config file | string | `mud.config.ts` |
| `--printConfig` | Print the resolved config | boolean | `false` |
| `--saveDeployment` | Save the deployment info to a file | boolean | `true` |
| `--profile` | The foundry profile to use | string | `local` |
| `--rpc`<sup>1</sup> | The RPC URL to use | string | RPC url from `foundry.toml` |
| `--rpcBatch` | Enable batch processing of RPC requests | boolean | `false` |
| `--worldAddress` | Deploy to an existing World at the given address | string | Empty, deploy new `World` |
| `--srcDir` | Source directory | string | Foundry `src` directory |
| `--skipBuild` | Skip rebuilding the contracts before deploying | boolean | `false` |
| `--alwaysRunPostDeploy` | Run `PostDeploy.s.sol` after each deploy | boolean | `false` (run the script only when deploying a new `World`) |
| `--help` | Show help | boolean | `false` |
| `--version` | Show version number | boolean | `false` |
| `--forgeScriptOptions` | Command line options for forge | string | empty |
| Option | Meaning | Type | Default value |
| ----------------------- | -------------------------------------------------------------------------------- | ------- | ---------------------------------------------------------- |
| `--configPath` | Path to the config file | string | `mud.config.ts` |
| `--printConfig` | Print the resolved config | boolean | `false` |
| `--saveDeployment` | Save the deployment info to a file | boolean | `true` |
| `--profile` | The foundry profile to use | string | `local` |
| `--rpc`<sup>1</sup> | The RPC URL to use | string | RPC url from `foundry.toml` |
| `--rpcBatch` | Enable batch processing of RPC requests | boolean | `false` |
| `--worldAddress` | Deploy to an existing World at the given address | string | Empty, deploy new `World` |
| `--srcDir` | Source directory | string | Foundry `src` directory |
| `--skipBuild` | Skip rebuilding the contracts before deploying | boolean | `false` |
| `--alwaysRunPostDeploy` | Run `PostDeploy.s.sol` after each deploy | boolean | `false` (run the script only when deploying a new `World`) |
| `--help` | Show help | boolean | `false` |
| `--version` | Show version number | boolean | `false` |
| `--forgeScriptOptions` | Command line options for forge | string | empty |
| `--indexerUrl` | If provided, read records from the indexer instead of fetching logs from the RPC | string | empty |

(1) The hostname `localhost` may not work. If that is the case, use `127.0.0.1` instead.

Expand Down

0 comments on commit 1bf11c3

Please sign in to comment.