Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(explorer): dozer integration #3185

Merged
merged 83 commits into from
Sep 25, 2024
Merged

feat(explorer): dozer integration #3185

merged 83 commits into from
Sep 25, 2024

Conversation

karooolis
Copy link
Contributor

@karooolis karooolis commented Sep 17, 2024

Key changes:

  • Added Dozer support.
  • Created DataExplorerSqlite and DataExplorerDozer to distinguish which indexer is used under-the-hood.
  • Standardized TablesViewer and TableSelector interfaces so they work for both, DataExplorerSqlite and DataExplorerDozer.
  • Added a basic SQLEditor that is included as part of DataExplorerDozer.
  • Removed tables, rows and other routes. Only left with api/world for fetching world ABI, and api/table to fetch a specific data table (when using sqlite indexer).
  • All queries have been moved to queries/** helpers.
  • In SQLite and Dozer case all available MUD tables are fetched from store__tables (previously it was fetched from all available SQL databases using its pragma).

Demo world - http://localhost:13690/garnet/worlds/0x9ca094a38027bb331656e4f1f6ed40c9982dbe70/explore

todo:

  • handle anvil
  • improve types
  • same component interfaces for sqlite and dozer
  • remove redundant api endpoints

Copy link

changeset-bot bot commented Sep 17, 2024

🦋 Changeset detected

Latest commit: 6b8a21a

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 26 packages
Name Type
@latticexyz/explorer Patch
@latticexyz/abi-ts Patch
@latticexyz/block-logs-stream Patch
@latticexyz/cli Patch
@latticexyz/common Patch
@latticexyz/config Patch
create-mud Patch
@latticexyz/dev-tools Patch
@latticexyz/faucet Patch
@latticexyz/gas-report Patch
@latticexyz/protocol-parser Patch
@latticexyz/react Patch
@latticexyz/recs Patch
@latticexyz/schema-type Patch
solhint-config-mud Patch
solhint-plugin-mud Patch
@latticexyz/stash Patch
@latticexyz/store-indexer Patch
@latticexyz/store-sync Patch
@latticexyz/store Patch
@latticexyz/utils Patch
@latticexyz/world-module-metadata Patch
@latticexyz/world-modules Patch
@latticexyz/world Patch
mock-game-contracts Patch
ts-benchmarks Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

holic
holic previously approved these changes Sep 25, 2024
Copy link
Member

@holic holic left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good!

I personally prefer the table naming of Table objects rather than tableConfig as it matches the rest of MUD (minus stash)

@karooolis karooolis merged commit 2f2e63a into main Sep 25, 2024
12 checks passed
@karooolis karooolis deleted the kumpis/dozer-api-logs branch September 25, 2024 12:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants