https://github.com/pmuens/plokadotting
Playing around with Substrate and Polkadot
https://github.com/pmuens/plokadotting
blockchain blockchain-technology ink polkadot polkadot-blockchain polkadot-network smart-contracts substrate substrate-runtime
Last synced: 17 days ago
JSON representation
Playing around with Substrate and Polkadot
- Host: GitHub
- URL: https://github.com/pmuens/plokadotting
- Owner: pmuens
- Created: 2020-10-28T13:04:02.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2020-10-29T13:51:22.000Z (over 4 years ago)
- Last Synced: 2025-02-17T10:47:51.933Z (3 months ago)
- Topics: blockchain, blockchain-technology, ink, polkadot, polkadot-blockchain, polkadot-network, smart-contracts, substrate, substrate-runtime
- Language: Rust
- Homepage:
- Size: 302 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Polkadotting
Playing around with [Substrate](https://substrate.io) and [Polkadot](https://polkadot.network) while following their [tutorials](https://substrate.dev/en/tutorials).
## Useful commands
```sh
# Start a Nix shell
nix-shell# Compile Rust code
cargo build --release# Format the code
cargo fmt# Run tests
cargo test# Start a Substrate node in development mode
./target/release/node-template --dev --tmp# Purge old chain data
./target/release/node-template purge-chain --base-path /tmp/ --chain local# Start Alice's and Bob's nodes
./target/release/node-template \
--base-path /tmp/alice \
--chain local \
--alice \
--port 30333 \
--ws-port 9945 \
--rpc-port 9933 \
--node-key 0000000000000000000000000000000000000000000000000000000000000001 \
--telemetry-url 'wss://telemetry.polkadot.io/submit/ 0' \
--validator./target/release/node-template \
--base-path /tmp/bob \
--chain local \
--bob \
--port 30334 \
--ws-port 9946 \
--rpc-port 9934 \
--telemetry-url 'wss://telemetry.polkadot.io/submit/ 0' \
--validator \
--bootnodes /ip4/127.0.0.1/tcp/30333/p2p/12D3KooWEyoppNCUx8Yx66oV9fJnriXwCcXwDDUA2kj6vnc6iDEp# Export chain spec
./target/release/node-template build-spec --disable-default-bootnode --chain local > customSpec.json# Convert chain spec to raw chain spec
./target/release/node-template build-spec --chain=customSpec.json --raw --disable-default-bootnode > customSpecRaw.json# Key generation via Substrate
~/.cargo/bin/subkey generate --scheme sr25519
~/.cargo/bin/subkey inspect --scheme ed25519# Node key generation
~/.cargo/bin/subkey generate-node-key# Check dependency resolution
cargo check -p node-template-runtime# Build for production release
cargo build --release -p node-template-runtime# Build and run
cargo run -- --dev --tmp# Install node dependencies
yarn install# Start the frontend
yarn start
```