Skip to content

Commit e9b963a

Browse files
committed
Merge remote-tracking branch 'origin/main' into holic/worldgen-system-abis
2 parents 5da0132 + 1a96544 commit e9b963a

File tree

137 files changed

+21390
-4556
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

137 files changed

+21390
-4556
lines changed

.changeset/quick-frogs-fold.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
"@latticexyz/config": patch
3+
"@latticexyz/store": patch
4+
---
5+
6+
Fixed a few type issues with `namespaceLabel` in tables and added/clarified TSDoc for config input/output objects.

.changeset/real-waves-bathe.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@latticexyz/create-mud": patch
3+
---
4+
5+
Added `@latticexyz/explorer` and `@latticexyz/store-indexer` to all MUD templates. Updated default `worlds.json` config and world address.

.changeset/swift-rabbits-appear.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
---
2+
"@latticexyz/explorer": minor
3+
---
4+
5+
Initial release of the @latticexyz/explorer package. Explorer is a standalone tool designed to explore and manage worlds. This initial release supports local worlds, with plans to extend support to any world in the future.
6+
7+
Read more on how to get started or contribute in the [Explorer README](https://github.com/latticexyz/mud/blob/main/packages/explorer/README.md).

.changeset/tasty-toys-deliver.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
---
2+
"@latticexyz/cli": patch
3+
"@latticexyz/world": patch
4+
---
5+
6+
Add a strongly typed `namespaceLabel` to the system config output.
7+
It corresponds to the `label` of the namespace the system belongs to and can't be set manually.

docs/pages/config/reference.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ The following options are available in both single- and multiple-namespace modes
143143
</Params>
144144
</Param>
145145
<Param name="deploy">
146-
Customize how to deploy this table.
146+
Customize how to deploy the world.
147147

148148
<Params>
149149
<Param name="deploysDirectory">Directory, relative to project root, to write the deployment artifacts to. Defaults to `"deploys"`.</Param>

examples/local-explorer/.eslintrc

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{
2+
"root": true,
3+
"parser": "@typescript-eslint/parser",
4+
"plugins": ["@typescript-eslint"],
5+
"extends": [
6+
"eslint:recommended",
7+
"plugin:@typescript-eslint/eslint-recommended",
8+
"plugin:@typescript-eslint/recommended",
9+
],
10+
"env": {
11+
"browser": true,
12+
"node": true,
13+
},
14+
}
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# suppress diffs for generated files
2+
**/pnpm-lock.yaml linguist-generated=true
3+
**/codegen/**/*.sol linguist-generated=true

examples/local-explorer/.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
indexer.db
2+
node_modules
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
procs:
2+
client:
3+
cwd: packages/client
4+
shell: pnpm run dev
5+
contracts:
6+
cwd: packages/contracts
7+
shell: pnpm mud dev-contracts --rpc http://127.0.0.1:8545
8+
anvil:
9+
cwd: packages/contracts
10+
shell: anvil --base-fee 0 --block-time 2
11+
indexer:
12+
cwd: packages/contracts
13+
shell: rimraf $SQLITE_FILENAME && pnpm sqlite-indexer
14+
env:
15+
RPC_HTTP_URL: "http://127.0.0.1:8545"
16+
FOLLOW_BLOCK_TAG: "latest"
17+
SQLITE_FILENAME: "indexer.db"
18+
explorer:
19+
cwd: packages/contracts
20+
shell: pnpm explorer
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
{
2+
"name": "local-explorer",
3+
"private": true,
4+
"scripts": {
5+
"build": "pnpm recursive run build",
6+
"dev": "mprocs",
7+
"dev:client": "pnpm --filter 'client' run dev",
8+
"dev:contracts": "pnpm --filter 'contracts' dev",
9+
"foundry:up": "curl -L https://foundry.paradigm.xyz | bash && bash $HOME/.foundry/bin/foundryup",
10+
"mud:up": "pnpm mud set-version --tag main && pnpm install",
11+
"prepare": "(forge --version || pnpm foundry:up)",
12+
"test": "pnpm recursive run test"
13+
},
14+
"devDependencies": {
15+
"@latticexyz/cli": "link:../../packages/cli",
16+
"@latticexyz/common": "link:../../packages/common",
17+
"@latticexyz/explorer": "link:../../packages/explorer",
18+
"@latticexyz/store-indexer": "link:../../packages/store-indexer",
19+
"@types/debug": "4.1.7",
20+
"@typescript-eslint/eslint-plugin": "7.1.1",
21+
"@typescript-eslint/parser": "7.1.1",
22+
"eslint": "8.57.0",
23+
"mprocs": "^0.6.4",
24+
"rimraf": "^3.0.2",
25+
"typescript": "5.4.2"
26+
},
27+
"engines": {
28+
"node": "^18",
29+
"pnpm": "^8 || ^9"
30+
}
31+
}

0 commit comments

Comments
 (0)