diff --git a/templates/phaser/indexer.db b/templates/phaser/indexer.db new file mode 100644 index 0000000000..6261d6932b Binary files /dev/null and b/templates/phaser/indexer.db differ diff --git a/templates/phaser/mprocs.yaml b/templates/phaser/mprocs.yaml index 3f9ca198e3..404b536f2d 100644 --- a/templates/phaser/mprocs.yaml +++ b/templates/phaser/mprocs.yaml @@ -8,3 +8,11 @@ procs: anvil: cwd: packages/contracts shell: anvil --base-fee 0 --block-time 2 + indexer: + 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: + shell: pnpm explorer --worldsFile packages/contracts/worlds.json diff --git a/templates/phaser/package.json b/templates/phaser/package.json index 2e076feba7..33b712f7cf 100644 --- a/templates/phaser/package.json +++ b/templates/phaser/package.json @@ -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", diff --git a/templates/phaser/packages/contracts/worlds.json b/templates/phaser/packages/contracts/worlds.json index 43a5a6f4e5..6fed600155 100644 --- a/templates/phaser/packages/contracts/worlds.json +++ b/templates/phaser/packages/contracts/worlds.json @@ -1,5 +1,5 @@ { "31337": { - "address": "0x4f4ddafbc93cf8d11a253f21ddbcf836139efdec" + "address": "0x8d8b6b8414e1e3dcfd4168561b9be6bd3bf6ec4b" } } \ No newline at end of file diff --git a/templates/react-ecs/indexer.db b/templates/react-ecs/indexer.db new file mode 100644 index 0000000000..611f2f0923 Binary files /dev/null and b/templates/react-ecs/indexer.db differ diff --git a/templates/react-ecs/mprocs.yaml b/templates/react-ecs/mprocs.yaml index 3f9ca198e3..404b536f2d 100644 --- a/templates/react-ecs/mprocs.yaml +++ b/templates/react-ecs/mprocs.yaml @@ -8,3 +8,11 @@ procs: anvil: cwd: packages/contracts shell: anvil --base-fee 0 --block-time 2 + indexer: + 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: + shell: pnpm explorer --worldsFile packages/contracts/worlds.json diff --git a/templates/react-ecs/package.json b/templates/react-ecs/package.json index 741c071f75..f5d5d40724 100644 --- a/templates/react-ecs/package.json +++ b/templates/react-ecs/package.json @@ -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", diff --git a/templates/react-ecs/packages/contracts/worlds.json b/templates/react-ecs/packages/contracts/worlds.json index 43a5a6f4e5..6fed600155 100644 --- a/templates/react-ecs/packages/contracts/worlds.json +++ b/templates/react-ecs/packages/contracts/worlds.json @@ -1,5 +1,5 @@ { "31337": { - "address": "0x4f4ddafbc93cf8d11a253f21ddbcf836139efdec" + "address": "0x8d8b6b8414e1e3dcfd4168561b9be6bd3bf6ec4b" } } \ No newline at end of file diff --git a/templates/react/indexer.db b/templates/react/indexer.db new file mode 100644 index 0000000000..873ec99869 Binary files /dev/null and b/templates/react/indexer.db differ diff --git a/templates/react/mprocs.yaml b/templates/react/mprocs.yaml index 3f9ca198e3..404b536f2d 100644 --- a/templates/react/mprocs.yaml +++ b/templates/react/mprocs.yaml @@ -8,3 +8,11 @@ procs: anvil: cwd: packages/contracts shell: anvil --base-fee 0 --block-time 2 + indexer: + 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: + shell: pnpm explorer --worldsFile packages/contracts/worlds.json diff --git a/templates/react/package.json b/templates/react/package.json index 5943eb528a..8170c2cf9c 100644 --- a/templates/react/package.json +++ b/templates/react/package.json @@ -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", diff --git a/templates/react/packages/contracts/worlds.json b/templates/react/packages/contracts/worlds.json index 43a5a6f4e5..6fed600155 100644 --- a/templates/react/packages/contracts/worlds.json +++ b/templates/react/packages/contracts/worlds.json @@ -1,5 +1,5 @@ { "31337": { - "address": "0x4f4ddafbc93cf8d11a253f21ddbcf836139efdec" + "address": "0x8d8b6b8414e1e3dcfd4168561b9be6bd3bf6ec4b" } } \ No newline at end of file diff --git a/templates/threejs/indexer.db b/templates/threejs/indexer.db new file mode 100644 index 0000000000..b445523fa8 Binary files /dev/null and b/templates/threejs/indexer.db differ diff --git a/templates/threejs/mprocs.yaml b/templates/threejs/mprocs.yaml index 3f9ca198e3..404b536f2d 100644 --- a/templates/threejs/mprocs.yaml +++ b/templates/threejs/mprocs.yaml @@ -8,3 +8,11 @@ procs: anvil: cwd: packages/contracts shell: anvil --base-fee 0 --block-time 2 + indexer: + 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: + shell: pnpm explorer --worldsFile packages/contracts/worlds.json diff --git a/templates/threejs/package.json b/templates/threejs/package.json index 1ef7c907f0..eb8f06d5ed 100644 --- a/templates/threejs/package.json +++ b/templates/threejs/package.json @@ -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", diff --git a/templates/threejs/packages/contracts/worlds.json b/templates/threejs/packages/contracts/worlds.json index 43a5a6f4e5..6fed600155 100644 --- a/templates/threejs/packages/contracts/worlds.json +++ b/templates/threejs/packages/contracts/worlds.json @@ -1,5 +1,5 @@ { "31337": { - "address": "0x4f4ddafbc93cf8d11a253f21ddbcf836139efdec" + "address": "0x8d8b6b8414e1e3dcfd4168561b9be6bd3bf6ec4b" } } \ No newline at end of file diff --git a/templates/vanilla/indexer.db b/templates/vanilla/indexer.db new file mode 100644 index 0000000000..c7d1272c86 Binary files /dev/null and b/templates/vanilla/indexer.db differ diff --git a/templates/vanilla/mprocs.yaml b/templates/vanilla/mprocs.yaml index 3f9ca198e3..404b536f2d 100644 --- a/templates/vanilla/mprocs.yaml +++ b/templates/vanilla/mprocs.yaml @@ -8,3 +8,11 @@ procs: anvil: cwd: packages/contracts shell: anvil --base-fee 0 --block-time 2 + indexer: + 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: + shell: pnpm explorer --worldsFile packages/contracts/worlds.json diff --git a/templates/vanilla/package.json b/templates/vanilla/package.json index 09b9d29c5f..39512b882b 100644 --- a/templates/vanilla/package.json +++ b/templates/vanilla/package.json @@ -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", diff --git a/templates/vanilla/packages/contracts/worlds.json b/templates/vanilla/packages/contracts/worlds.json index 43a5a6f4e5..6fed600155 100644 --- a/templates/vanilla/packages/contracts/worlds.json +++ b/templates/vanilla/packages/contracts/worlds.json @@ -1,5 +1,5 @@ { "31337": { - "address": "0x4f4ddafbc93cf8d11a253f21ddbcf836139efdec" + "address": "0x8d8b6b8414e1e3dcfd4168561b9be6bd3bf6ec4b" } } \ No newline at end of file