Skip to content

Commit

Permalink
Merge branch 'main' into kumpis/show-transactions
Browse files Browse the repository at this point in the history
  • Loading branch information
karooolis committed Aug 27, 2024
2 parents f66d2e9 + 1a96544 commit f5e53f8
Show file tree
Hide file tree
Showing 22 changed files with 91 additions and 11 deletions.
5 changes: 5 additions & 0 deletions .changeset/real-waves-bathe.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@latticexyz/create-mud": patch
---

Added `@latticexyz/explorer` and `@latticexyz/store-indexer` to all MUD templates. Updated default `worlds.json` config and world address.
2 changes: 1 addition & 1 deletion examples/local-explorer/mprocs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,4 @@ procs:
SQLITE_FILENAME: "indexer.db"
explorer:
cwd: packages/contracts
shell: pnpm explorer --env development
shell: pnpm explorer
5 changes: 4 additions & 1 deletion templates/phaser/.gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,4 @@
node_modules
node_modules

# mud sqlite indexer data
indexer.db
10 changes: 10 additions & 0 deletions templates/phaser/mprocs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,13 @@ procs:
anvil:
cwd: packages/contracts
shell: anvil --base-fee 0 --block-time 2
indexer:
cwd: packages/contracts
shell: rimraf $SQLITE_FILENAME && pnpm sqlite-indexer
env:
RPC_HTTP_URL: "http://127.0.0.1:8545"
FOLLOW_BLOCK_TAG: "latest"
SQLITE_FILENAME: "indexer.db"
explorer:
cwd: packages/contracts
shell: pnpm explorer
2 changes: 2 additions & 0 deletions templates/phaser/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@
"devDependencies": {
"@latticexyz/cli": "link:../../packages/cli",
"@latticexyz/common": "link:../../packages/common",
"@latticexyz/explorer": "link:../../packages/explorer",
"@latticexyz/store-indexer": "link:../../packages/store-indexer",
"@types/debug": "4.1.7",
"@typescript-eslint/eslint-plugin": "7.1.1",
"@typescript-eslint/parser": "7.1.1",
Expand Down
2 changes: 1 addition & 1 deletion templates/phaser/packages/contracts/worlds.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"31337": {
"address": "0x4f4ddafbc93cf8d11a253f21ddbcf836139efdec"
"address": "0x8d8b6b8414e1e3dcfd4168561b9be6bd3bf6ec4b"
}
}
5 changes: 4 additions & 1 deletion templates/react-ecs/.gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,4 @@
node_modules
node_modules

# mud sqlite indexer data
indexer.db
10 changes: 10 additions & 0 deletions templates/react-ecs/mprocs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,13 @@ procs:
anvil:
cwd: packages/contracts
shell: anvil --base-fee 0 --block-time 2
indexer:
cwd: packages/contracts
shell: rimraf $SQLITE_FILENAME && pnpm sqlite-indexer
env:
RPC_HTTP_URL: "http://127.0.0.1:8545"
FOLLOW_BLOCK_TAG: "latest"
SQLITE_FILENAME: "indexer.db"
explorer:
cwd: packages/contracts
shell: pnpm explorer
2 changes: 2 additions & 0 deletions templates/react-ecs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@
"devDependencies": {
"@latticexyz/cli": "link:../../packages/cli",
"@latticexyz/common": "link:../../packages/common",
"@latticexyz/explorer": "link:../../packages/explorer",
"@latticexyz/store-indexer": "link:../../packages/store-indexer",
"@types/debug": "4.1.7",
"@typescript-eslint/eslint-plugin": "7.1.1",
"@typescript-eslint/parser": "7.1.1",
Expand Down
2 changes: 1 addition & 1 deletion templates/react-ecs/packages/contracts/worlds.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"31337": {
"address": "0x4f4ddafbc93cf8d11a253f21ddbcf836139efdec"
"address": "0x8d8b6b8414e1e3dcfd4168561b9be6bd3bf6ec4b"
}
}
5 changes: 4 additions & 1 deletion templates/react/.gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,4 @@
node_modules
node_modules

# mud sqlite indexer data
indexer.db
10 changes: 10 additions & 0 deletions templates/react/mprocs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,13 @@ procs:
anvil:
cwd: packages/contracts
shell: anvil --base-fee 0 --block-time 2
indexer:
cwd: packages/contracts
shell: rimraf $SQLITE_FILENAME && pnpm sqlite-indexer
env:
RPC_HTTP_URL: "http://127.0.0.1:8545"
FOLLOW_BLOCK_TAG: "latest"
SQLITE_FILENAME: "indexer.db"
explorer:
cwd: packages/contracts
shell: pnpm explorer
2 changes: 2 additions & 0 deletions templates/react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@
"devDependencies": {
"@latticexyz/cli": "link:../../packages/cli",
"@latticexyz/common": "link:../../packages/common",
"@latticexyz/explorer": "link:../../packages/explorer",
"@latticexyz/store-indexer": "link:../../packages/store-indexer",
"@types/debug": "4.1.7",
"@typescript-eslint/eslint-plugin": "7.1.1",
"@typescript-eslint/parser": "7.1.1",
Expand Down
2 changes: 1 addition & 1 deletion templates/react/packages/contracts/worlds.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"31337": {
"address": "0x4f4ddafbc93cf8d11a253f21ddbcf836139efdec"
"address": "0x8d8b6b8414e1e3dcfd4168561b9be6bd3bf6ec4b"
}
}
5 changes: 4 additions & 1 deletion templates/threejs/.gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,4 @@
node_modules
node_modules

# mud sqlite indexer data
indexer.db
10 changes: 10 additions & 0 deletions templates/threejs/mprocs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,13 @@ procs:
anvil:
cwd: packages/contracts
shell: anvil --base-fee 0 --block-time 2
indexer:
cwd: packages/contracts
shell: rimraf $SQLITE_FILENAME && pnpm sqlite-indexer
env:
RPC_HTTP_URL: "http://127.0.0.1:8545"
FOLLOW_BLOCK_TAG: "latest"
SQLITE_FILENAME: "indexer.db"
explorer:
cwd: packages/contracts
shell: pnpm explorer
2 changes: 2 additions & 0 deletions templates/threejs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@
"devDependencies": {
"@latticexyz/cli": "link:../../packages/cli",
"@latticexyz/common": "link:../../packages/common",
"@latticexyz/explorer": "link:../../packages/explorer",
"@latticexyz/store-indexer": "link:../../packages/store-indexer",
"@types/debug": "4.1.7",
"@typescript-eslint/eslint-plugin": "7.1.1",
"@typescript-eslint/parser": "7.1.1",
Expand Down
2 changes: 1 addition & 1 deletion templates/threejs/packages/contracts/worlds.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"31337": {
"address": "0x4f4ddafbc93cf8d11a253f21ddbcf836139efdec"
"address": "0x8d8b6b8414e1e3dcfd4168561b9be6bd3bf6ec4b"
}
}
5 changes: 4 additions & 1 deletion templates/vanilla/.gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,4 @@
node_modules
node_modules

# mud sqlite indexer data
indexer.db
10 changes: 10 additions & 0 deletions templates/vanilla/mprocs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,13 @@ procs:
anvil:
cwd: packages/contracts
shell: anvil --base-fee 0 --block-time 2
indexer:
cwd: packages/contracts
shell: rimraf $SQLITE_FILENAME && pnpm sqlite-indexer
env:
RPC_HTTP_URL: "http://127.0.0.1:8545"
FOLLOW_BLOCK_TAG: "latest"
SQLITE_FILENAME: "indexer.db"
explorer:
cwd: packages/contracts
shell: pnpm explorer
2 changes: 2 additions & 0 deletions templates/vanilla/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@
"devDependencies": {
"@latticexyz/cli": "link:../../packages/cli",
"@latticexyz/common": "link:../../packages/common",
"@latticexyz/explorer": "link:../../packages/explorer",
"@latticexyz/store-indexer": "link:../../packages/store-indexer",
"@types/debug": "4.1.7",
"@typescript-eslint/eslint-plugin": "7.1.1",
"@typescript-eslint/parser": "7.1.1",
Expand Down
2 changes: 1 addition & 1 deletion templates/vanilla/packages/contracts/worlds.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"31337": {
"address": "0x4f4ddafbc93cf8d11a253f21ddbcf836139efdec"
"address": "0x8d8b6b8414e1e3dcfd4168561b9be6bd3bf6ec4b"
}
}

0 comments on commit f5e53f8

Please sign in to comment.