Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ggwpez/pdu
Polkadot Disk Usage 🕵️
https://github.com/ggwpez/pdu
Last synced: 5 days ago
JSON representation
Polkadot Disk Usage 🕵️
- Host: GitHub
- URL: https://github.com/ggwpez/pdu
- Owner: ggwpez
- License: gpl-3.0
- Created: 2024-09-13T15:10:09.000Z (2 months ago)
- Default Branch: master
- Last Pushed: 2024-10-28T16:13:17.000Z (17 days ago)
- Last Synced: 2024-10-28T18:15:32.570Z (17 days ago)
- Language: Rust
- Size: 1.15 MB
- Stars: 8
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# polkadot-du
Investigate storage size of Substrate chains.
Install with:
```sh
cargo install polkadot-du
pdu --help
```### Example
First acquire a state snapshot. We are going to use the People Rococo chain, since it is rather
small. You will need the
[try-runtime-cli](https://paritytech.github.io/try-runtime-cli/try_runtime/) for this and a
full or archive node to download the state from:```sh
try-runtime create-snapshot --uri wss://rococo-people-rpc.polkadot.io:443 rococo-people.snap
```Then run the analysis:
```sh
cargo run --release -- --network rococo-people
```The results will be a bit boring for such a small network, but for a larger one - eg Kusama - it
could look like this. You can download [this snapshot](https://tasty.limo/kusama.snap) to try it.![Kusama storage analysis](./.images/ksm-overview.png)
You can also zoom in on a specific pallet:
```sh
cargo run --release -- --network rococo-people --pallet Balances
```Again for Kusama:
![Kusama Balances pallet](./.images/ksm-zoom.png)
### License
GPLv3 ONLY, see [LICENSE](./LICENSE) file for details.
License: GPL-3.0