Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ggwpez/substrate-scripts
Helper scripts for dealing with various Substrate tasks.
https://github.com/ggwpez/substrate-scripts
Last synced: 5 days ago
JSON representation
Helper scripts for dealing with various Substrate tasks.
- Host: GitHub
- URL: https://github.com/ggwpez/substrate-scripts
- Owner: ggwpez
- License: gpl-3.0
- Created: 2023-01-23T11:29:02.000Z (almost 2 years ago)
- Default Branch: master
- Last Pushed: 2024-10-21T16:20:05.000Z (24 days ago)
- Last Synced: 2024-10-22T04:30:40.775Z (24 days ago)
- Language: Python
- Homepage:
- Size: 1.78 MB
- Stars: 11
- Watchers: 2
- Forks: 9
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Setup
```sh
pip install substrate-interface
# or
pip install -r requirements.txt
```# Content
**[prefund-chain-spec](/prefund-chain-spec/)**: can be used to prefund accounts in a Substrate chainspec. Example:
```sh
./target/release/substrate build-spec --dev > spec.json
python prefund-chain-spec.py
./target/release/substrate --chain=out-spec.json --alice --force-authoring --tmp --no-hardware-benchmarks
```Tests with:
```sh
pytest prefund-chain-spec
```**[update-weights](update-weights/)**: Helper script to run all pallet benchmarks in Substrate/Polkadot/Cumulus.
Usage like (see [README](update-weights/README.md)):
```bash
python run.py --debug --project substrate --cwd ~/work/substrate/
```