Skip to content

Commit

Permalink
Chain Metadata Explorer (w3f#4408)
Browse files Browse the repository at this point in the history
* Start pulling chain metadata

* render initial metadata response

* decode constants

* add ability to load metadata from different networks

* function casing

* cleanup pass

* add ability to expand and collapse pallet divs

* rough out a search bar

* decode pallet errors

* decode events

* decode runtime and get event param types and names

* format runtime

* add type lookup for constants

* minor types improvements

* cleanup

* add comments to functions and handle empty children in dom tree

* add ability to expand or collapse all nested items

* add section for RPCs

* add pallet extrinsics

* comments

* add ability to expand and collapse constants, errors, events, extrinsics, storage

* display polkadotjs module version number

* whitespace formatting

* unify styling before consolidation

* breakout css styling

* change expand/collapse tree buttons to text

* finalize formatting before consolidation refactor

* start refactor and consolidation pass

* deal w/ merge conflict related to pkgs

* revert package changes

* newlines

* formatting

* restore polkadotjs api version display

* consolidate param extraction

* align organization with display order

* legacy comments

* more closely align rpc and runtime extraction for further abstraction to come

* consolidate rpc and runtime to share abstraction for decoding chain data

* refactor constants, errors, events, extrinsics, storage to single abstraction

* let to const

* unify formatting

* fix expand/collapse all bug

* significantly improve storage type decoding results and abstraction

* decode tuple types

* finish decoding storage types

* formatting

* styling

* unify polkadot and kusama styling

* set default network based on current doc

* add tool description and styling

* improve description

* display chain metadata version

* else if else if else if else if to switch

* comment

* add UI for search filter

* add basic search div filtering

* add metadata explorer sidebar nav links to polkadot/kusama wiki/guide

* add search query highlighting and throttle

* more styling updates

* remove legacy log statement
  • Loading branch information
alfarok authored Feb 27, 2023
1 parent a199acb commit 8e4a6e0
Show file tree
Hide file tree
Showing 4 changed files with 531 additions and 0 deletions.
Loading

0 comments on commit 8e4a6e0

Please sign in to comment.