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 package #3001

Merged
merged 182 commits into from
Aug 21, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
182 commits
Select commit Hold shift + click to select a range
d7a2356
create world-explorer package
karooolis Aug 2, 2024
45dacb9
add world-explorer to all-build cmd
karooolis Aug 2, 2024
b90e60d
Merge branch 'main' into kumpis/world-explorer-package
karooolis Aug 5, 2024
4b98464
remove logs
karooolis Aug 5, 2024
25714f4
add SchemaAbiType to fieldType
karooolis Aug 5, 2024
b835e1e
fix ts errors
karooolis Aug 5, 2024
cff7bf4
Merge branch 'main' into kumpis/world-explorer-package
karooolis Aug 8, 2024
f7b9935
use getWorldAbi from @latticexyz/world
karooolis Aug 8, 2024
98cb5b3
downgrade to zod 3.22.2 due to type deep error
karooolis Aug 8, 2024
226f328
fix build + bin script
karooolis Aug 8, 2024
ccd88ba
downgrade to zod 3.22.2
karooolis Aug 8, 2024
105b54a
remove deduplicateABI
karooolis Aug 8, 2024
54aa23e
add back deduplicateAbi (resolve git casing issue)
karooolis Aug 8, 2024
d2a99f5
upgrade zod to 3.23.8
karooolis Aug 8, 2024
ebe67d5
fix frozen lockfile
karooolis Aug 8, 2024
d4ab69b
rename world-explorer to explorer
karooolis Aug 8, 2024
3682a4f
update package version + description
karooolis Aug 8, 2024
d2c4919
Merge branch 'main' into kumpis/world-explorer-package
karooolis Aug 8, 2024
c8fa69c
pin explorer zod dep version
karooolis Aug 8, 2024
7fe480c
unfreeze pnpm.lock
karooolis Aug 8, 2024
3352c16
add changeset (swift-rabbits-appear.md)
karooolis Aug 8, 2024
7f15348
format changeset
karooolis Aug 8, 2024
63782e4
update README + remove unused public assets
karooolis Aug 8, 2024
4725907
undo react-ecs changes
karooolis Aug 8, 2024
1f0f1d3
undo react-ecs changes
karooolis Aug 8, 2024
9056681
remove unused line
karooolis Aug 8, 2024
9c8b15b
remove sql editor
karooolis Aug 8, 2024
b8a298d
delete all components
karooolis Aug 8, 2024
0ef05d5
match filename to component name
karooolis Aug 8, 2024
61244be
use relative paths
karooolis Aug 8, 2024
c2acee0
remove lodash dependency
karooolis Aug 9, 2024
9db601b
unfreeze lockfile
karooolis Aug 9, 2024
96bd5ab
simplify Input props type
karooolis Aug 9, 2024
6b5519c
add temporary explorer example
karooolis Aug 9, 2024
3378620
parameterize sql queries + whitelist tables
karooolis Aug 9, 2024
b365f00
parameterize sql endpoints + catch errors + cleanup
karooolis Aug 9, 2024
3573556
add more component examples (mud.config)
karooolis Aug 9, 2024
2e600ce
camelCase only in editable cell
karooolis Aug 9, 2024
9762cbb
remove unused Account component
karooolis Aug 9, 2024
f5a08d9
fetch balances with useBalance
karooolis Aug 9, 2024
9fb6652
show truncated addr in account select
karooolis Aug 9, 2024
c84ac62
remove deps already in root
karooolis Aug 9, 2024
f125776
unfreeze lockfile
karooolis Aug 9, 2024
4d7e50f
add/use TruncatedHex component
karooolis Aug 9, 2024
61c68fe
update example template
karooolis Aug 9, 2024
669e97f
align tsconfig with base tsconfig
karooolis Aug 12, 2024
c299f75
Update .changeset/swift-rabbits-appear.md
karooolis Aug 12, 2024
025ee57
Update .changeset/swift-rabbits-appear.md
karooolis Aug 12, 2024
049cb04
Update .changeset/swift-rabbits-appear.md
karooolis Aug 12, 2024
554812b
Update packages/explorer/src/app/interact/FunctionField.tsx
karooolis Aug 12, 2024
34cf96c
update changeset, remove headline
karooolis Aug 12, 2024
b2561a3
Update packages/explorer/src/app/interact/Form.tsx
karooolis Aug 12, 2024
591b3ba
Merge branch 'kumpis/world-explorer-package' of https://github.com/la…
karooolis Aug 12, 2024
80bcdf6
update worlds.json
karooolis Aug 12, 2024
54af0bc
remove tsconfig paths
karooolis Aug 12, 2024
2994e2b
use type predicate for functions
karooolis Aug 12, 2024
1e1585c
remove duplicate sort
karooolis Aug 12, 2024
bbfcd49
wip
karooolis Aug 12, 2024
bb2c671
use full name for idx
karooolis Aug 12, 2024
27b58c5
rename database util, use function declaration
karooolis Aug 12, 2024
d6f9f60
rename getFieldIdx to getFieldIndex
karooolis Aug 12, 2024
44fbc40
rename providers file
karooolis Aug 12, 2024
8a38e19
Merge branch 'main' into kumpis/world-explorer-package
karooolis Aug 12, 2024
ed92ca1
remove SQLEditor file
karooolis Aug 12, 2024
8debe60
Merge branch 'kumpis/world-explorer-package' of https://github.com/la…
karooolis Aug 12, 2024
809282e
move back deduplicateAbi
karooolis Aug 12, 2024
4240170
Merge branch 'main' into kumpis/world-explorer-package
karooolis Aug 12, 2024
dd8e922
Update packages/explorer/src/components/ui/Button.tsx
karooolis Aug 13, 2024
94c374c
add local-explorer example
karooolis Aug 13, 2024
a4bc501
Merge branch 'kumpis/world-explorer-package' of https://github.com/la…
karooolis Aug 13, 2024
d024141
add local-explorer example
karooolis Aug 13, 2024
342bb84
update explorer metadata
karooolis Aug 13, 2024
8f6a5fc
change to usehashState
karooolis Aug 13, 2024
5e7b673
Update packages/explorer/src/components/LatestBlock.tsx
karooolis Aug 13, 2024
bb2486f
update useHash path
karooolis Aug 13, 2024
d593887
Merge branch 'kumpis/world-explorer-package' of https://github.com/la…
karooolis Aug 13, 2024
f709d6e
prettify button component
karooolis Aug 13, 2024
875ec5c
trim abi
karooolis Aug 13, 2024
bb97506
use config values, avoid magic numbers
karooolis Aug 13, 2024
294e7a5
remove config
karooolis Aug 13, 2024
052c314
use IBaseWorldAbi
karooolis Aug 13, 2024
66db968
remove .env.local
karooolis Aug 13, 2024
719fce6
undo mprocs config change
karooolis Aug 13, 2024
e8b654e
ignore env.local
karooolis Aug 13, 2024
2a329f6
remove explorer from all-build cmd
karooolis Aug 13, 2024
876b9b2
remove unnecessary fragment
karooolis Aug 13, 2024
1d8ea55
Merge branch 'main' into kumpis/world-explorer-package
karooolis Aug 14, 2024
86c344f
use react-query mutation for editable cell
karooolis Aug 14, 2024
f1255f1
ignore sqlite db
karooolis Aug 14, 2024
0b7ea9c
prevent page rerender on cell submit
karooolis Aug 14, 2024
322e5b9
remove deduplicate abi
karooolis Aug 14, 2024
76afd32
refactor function field to useMutation
karooolis Aug 14, 2024
cda4eac
remove unused previousValue
karooolis Aug 14, 2024
2310d53
show full error message for interact functions
karooolis Aug 14, 2024
3940c42
show full error for editable table cell
karooolis Aug 14, 2024
3143dc9
update package versions
karooolis Aug 14, 2024
4749f8f
do not show read successful toast
karooolis Aug 14, 2024
bc2238a
remove unused package
karooolis Aug 14, 2024
d871921
unfreeze pnpm-lock
karooolis Aug 14, 2024
8a9baa5
inherit prettier config
karooolis Aug 14, 2024
4f1a35f
prettify with new config
karooolis Aug 14, 2024
43e55fb
add back prettier to explorer
karooolis Aug 14, 2024
ebc21aa
setup start explorer script
karooolis Aug 14, 2024
aaac5d6
change EXPLORER_MOE to MODE
karooolis Aug 14, 2024
f3a41df
use get world address helper
karooolis Aug 14, 2024
529d73f
correct useWorldAddress use
karooolis Aug 14, 2024
63c0c87
check if valid address
karooolis Aug 14, 2024
7f8cb2c
add script to fetch worlds.json config
karooolis Aug 14, 2024
d603df2
add script to fetch worlds.json config
karooolis Aug 14, 2024
0b2c07a
add browser & node envs to local explorer eslint
karooolis Aug 15, 2024
7f62d9b
remove explorer-watcher bash version
karooolis Aug 15, 2024
a93edf6
refactor to worldAddress dynamic route param
karooolis Aug 15, 2024
039ee0c
Merge branch 'main' into kumpis/world-explorer-package
karooolis Aug 15, 2024
bb333f6
unfreeze lockfile
karooolis Aug 15, 2024
ed6753b
remove unused form file
karooolis Aug 16, 2024
05bbb6d
Merge branch 'main' into kumpis/world-explorer-package
karooolis Aug 16, 2024
4ca9f5a
watch for worlds.json change
karooolis Aug 16, 2024
1f1e3ad
rename explorer-watcher script process
karooolis Aug 16, 2024
ceac13a
add redirect to /worlds
karooolis Aug 16, 2024
3c66964
add 404 page
karooolis Aug 16, 2024
6b2adc8
add error boundary
karooolis Aug 16, 2024
3ec67cb
fix explorer watcher script + correct home url
karooolis Aug 16, 2024
646e865
remove sticky navigation bar
karooolis Aug 16, 2024
eed5040
do not show toast for read txs
karooolis Aug 16, 2024
8dca9ac
improve changeset
karooolis Aug 16, 2024
070b1ce
typo
karooolis Aug 16, 2024
5b7c392
changeset contributing clarification
karooolis Aug 16, 2024
e1af359
adjust changeset
karooolis Aug 16, 2024
d18f919
changeset formatting
karooolis Aug 16, 2024
700d336
update link url to world url
karooolis Aug 16, 2024
75cbebf
Update examples/local-explorer/package.json
karooolis Aug 19, 2024
907137d
Update packages/explorer/src/components/ui/Button.tsx
karooolis Aug 19, 2024
d51cbc3
remove deduplicateAbi
karooolis Aug 19, 2024
39a9051
Merge branch 'kumpis/world-explorer-package' of https://github.com/la…
karooolis Aug 19, 2024
17de60a
clarify private keys source
karooolis Aug 19, 2024
fb0e4eb
change form abi props
karooolis Aug 19, 2024
8e6f942
Update packages/explorer/src/app/worlds/[worldAddress]/interact/page.tsx
karooolis Aug 19, 2024
3fbcb0a
correct prettierrc tailwindcss sort order
karooolis Aug 19, 2024
4634d37
separate tailwind classes by purpose (ui components)
karooolis Aug 19, 2024
3154ec6
add getFieldIndex to protocol-parser (temporary)
karooolis Aug 19, 2024
ef6d09e
add chainState, mudStoreTables from store-sync
karooolis Aug 19, 2024
625bd89
import non-editable names from store-sync
karooolis Aug 19, 2024
79a5429
update changeset and readme
karooolis Aug 19, 2024
2730e14
fix tailwind sorting
karooolis Aug 19, 2024
985db95
pass env args to spawn
karooolis Aug 19, 2024
cc508c1
move explorer watcher to the package itself
karooolis Aug 19, 2024
42f4800
modify README to reflect new CLI args setup
karooolis Aug 20, 2024
8b81d16
remove chainId from example command
karooolis Aug 20, 2024
a90470d
reorder cli args
karooolis Aug 20, 2024
1f86fb8
add default indexer db path
karooolis Aug 20, 2024
9999491
correct non editable tables name
karooolis Aug 20, 2024
aa66b13
Merge branch 'main' into kumpis/world-explorer-package
karooolis Aug 20, 2024
2b4e9b2
unfreeze lockfile
karooolis Aug 20, 2024
06099a5
Merge branch 'main' into kumpis/world-explorer-package
karooolis Aug 20, 2024
d3d56e4
upgrade viem
karooolis Aug 20, 2024
d750e15
upgrade viem in local-explorer
karooolis Aug 20, 2024
1ce28ca
use internalTableNames for non-editable tables
karooolis Aug 20, 2024
b5dce20
use KeySchema and ValueSchema types
karooolis Aug 20, 2024
4df5231
add wagmi to catalog, use viem catalog version
karooolis Aug 20, 2024
3b1b0a5
remove catalog: version from local-explorer example
karooolis Aug 20, 2024
e28f0bd
remove LICENSE
karooolis Aug 21, 2024
367c94d
Update packages/explorer/README.md
karooolis Aug 21, 2024
6dc9cda
Update packages/explorer/explorer-runner.mjs
karooolis Aug 21, 2024
169eb6a
Update packages/explorer/explorer-runner.mjs
karooolis Aug 21, 2024
bf9514c
Update packages/explorer/explorer-runner.mjs
karooolis Aug 21, 2024
139fe48
update env variable names
karooolis Aug 21, 2024
56d3e1e
add full github URL to changeset
karooolis Aug 21, 2024
7684102
resolve db path in explorer-runner
karooolis Aug 21, 2024
f04bf1c
bundle explorer bin with tsup
karooolis Aug 21, 2024
f518ff5
merge pnpm-lock
karooolis Aug 21, 2024
04eb5bc
Merge branch 'main' into kumpis/world-explorer-package
karooolis Aug 21, 2024
0fdd9ed
remove dev env from local-explorer
karooolis Aug 21, 2024
a9da163
remove pnpm link for explorer build:bin
karooolis Aug 21, 2024
06bb5b7
update changeset version, remove private, use type module
karooolis Aug 21, 2024
5722cec
prettier config as cjs
karooolis Aug 21, 2024
ebe5fb3
remove redundant tsconfig
karooolis Aug 21, 2024
4d84284
update pnpm lockfile
karooolis Aug 21, 2024
f72be9f
add .env file to local-explorer example
karooolis Aug 21, 2024
c0b4117
update .gitignore for local-explorer example
karooolis Aug 21, 2024
92b3b65
add comments to .env local-explorer
karooolis Aug 21, 2024
0081256
add comments to .env local-explorer
karooolis Aug 21, 2024
a84bee4
add final line .gitignore
karooolis Aug 21, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
File renamed without changes.
1 change: 1 addition & 0 deletions packages/explorer/tsconfig.json
karooolis marked this conversation as resolved.
Show resolved Hide resolved
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"extends": ["../../packages/common/tsconfig.base.json"],
"compilerOptions": {
"lib": ["DOM", "ESNext"],
karooolis marked this conversation as resolved.
Show resolved Hide resolved
"allowJs": true,
"incremental": true,
"isolatedModules": true,
Expand Down
Loading