mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-07-19 11:05:40 +00:00
docs: Extends #999. Remove disused package readmes. Rename to sr-metadata. Fix Readme Rustdoc names (#1016)
* docs: Remove safe-mix since is no longer local dependency * docs: Fix existing packages link. Still only includes Substrate Core * docs: Remove empty package Readmes. Remove old docs links. Rename to Readme * docs: Remove link to old docs * misc: Merge latest from master. Renaem to sr-metadata. Fix list of RustDoc package names * Rename substrate-metadata to sr-metadata, since it is in the "srml" subdirectory * Change example to use package name that opens all packages in RustDocs * Fix list of packages names that are available to open in RustDocs * fix typo * fix ordering of CLI options and add missing backslash
This commit is contained in:
+34
-14
@@ -227,18 +227,36 @@ Or you can join the BBQ Birch Testnet with:
|
||||
[source, shell]
|
||||
cargo run
|
||||
|
||||
If you want to see the multi-node consensus algorithm in action locally, then
|
||||
you can create a local testnet. You'll need two terminals open. In one, run:
|
||||
Detailed logs may be shown by running the node with the following environment variables set: `RUST_LOG=debug RUST_BACKTRACE=1 cargo run -- --dev`.
|
||||
|
||||
If you want to see the multi-node consensus algorithm in action locally, then you can create a local testnet with two validator nodes for Alice and Bob, who are the initial authorities of the genesis chain specification that have been endowed with a testnet DOTs. We'll give each node a name and expose them so they are listed on [Telemetry](https://telemetry.polkadot.io/#/Local%20Testnet). You'll need two terminals windows open.
|
||||
|
||||
We'll start Alice's substrate node first on default TCP port 30333 with her chain database stored locally at `/tmp/alice`. The Bootnode ID of her node is `QmQZ8TjTqeDj3ciwr93EJ95hxfDsb9pEYDizUAbWpigtQN`, which is generated from the `--node-key` value that we specify below:
|
||||
|
||||
[source, shell]
|
||||
cargo run -- --chain=local --validator --key Alice -d /tmp/alice --node-key 0000000000000000000000000000000000000000000000000000000000000001
|
||||
cargo run -- \
|
||||
--base-path /tmp/alice \
|
||||
--chain=local \
|
||||
--key Alice \
|
||||
--name "ALICE" \
|
||||
--node-key 0000000000000000000000000000000000000000000000000000000000000001 \
|
||||
--telemetry-url ws://telemetry.polkadot.io:1024 \
|
||||
--validator
|
||||
|
||||
and in the other, run:
|
||||
In the second terminal, we'll run the following to start Bob's substrate node on a different TCP port of 30334, and with his chain database stored locally at `/tmp/bob`. We'll specify a value for the `--bootnodes` option that will connect his node to Alice's Bootnode ID on TCP port 30333:
|
||||
|
||||
[source, shell]
|
||||
cargo run -- --chain=local --validator --key Bob -d /tmp/bob --port 30334 --bootnodes /ip4/127.0.0.1/tcp/30333/p2p/QmQZ8TjTqeDj3ciwr93EJ95hxfDsb9pEYDizUAbWpigtQN
|
||||
cargo run -- \
|
||||
--base-path /tmp/bob \
|
||||
--bootnodes /ip4/127.0.0.1/tcp/30333/p2p/QmQZ8TjTqeDj3ciwr93EJ95hxfDsb9pEYDizUAbWpigtQN \
|
||||
--chain=local \
|
||||
--key Bob \
|
||||
--name "BOB" \
|
||||
--port 30334 \
|
||||
--telemetry-url ws://telemetry.polkadot.io:1024 \
|
||||
--validator
|
||||
|
||||
include::doc/packages/packages.adoc[]
|
||||
Additional Substate CLI usage options are available and may be shown by running `cargo run -- --help`.
|
||||
|
||||
== Documentation
|
||||
|
||||
@@ -251,13 +269,16 @@ You can generate documentation for a Substrate Rust package and have it automati
|
||||
cargo doc --package <spec> --open
|
||||
```
|
||||
|
||||
Replacing `<spec>` with one of the following (i.e. `cargo doc --package node-cli --open`):
|
||||
Replacing `<spec>` with one of the following (i.e. `cargo doc --package substrate --open`):
|
||||
|
||||
* All Substrate Packages
|
||||
[source, shell]
|
||||
substrate
|
||||
* Substrate Core
|
||||
[source, shell]
|
||||
substrate, substrate-bft, substrate-cli, substrate-client, substrate-client-db,
|
||||
substrate-executor, substrate-finality-grandpa, substrate-keyring, substrate-keystore,
|
||||
substrate-metadata, substrate-misbehavior-check, substrate-network,
|
||||
substrate, substrate-cli, substrate-client, substrate-client-db,
|
||||
substrate-consensus-common, substrate-consensus-rhd,
|
||||
substrate-executor, substrate-finality-grandpa, substrate-keyring, substrate-keystore, substrate-network,
|
||||
substrate-network-libp2p, substrate-primitives, substrate-rpc, substrate-rpc-servers,
|
||||
substrate-serializer, substrate-service, substrate-service-test, substrate-state-db,
|
||||
substrate-state-machine, substrate-telemetry, substrate-test-client,
|
||||
@@ -268,17 +289,16 @@ substrate-trie
|
||||
sr-api, sr-io, sr-primitives, sr-sandbox, sr-std, sr-version
|
||||
* Substrate Runtime Module Library (SRML)
|
||||
[source, shell]
|
||||
srml-balances, srml-consensus, srml-contract, srml-council, srml-democracy, srml-example,
|
||||
srml-executive, srml-session, srml-staking, srml-support, srml-system, srml-timestamp,
|
||||
srml-assets, srml-balances, srml-consensus, srml-contract, srml-council, srml-democracy, srml-example,
|
||||
srml-executive, srml-metadata, srml-session, srml-staking, srml-support, srml-system, srml-timestamp,
|
||||
srml-treasury
|
||||
* Node
|
||||
[source, shell]
|
||||
node-cli, node-consensus, node-executor, node-network, node-primitives, node-runtime, node-service
|
||||
node-cli, node-consensus, node-executor, node-network, node-primitives, node-runtime
|
||||
* Subkey
|
||||
[source, shell]
|
||||
subkey
|
||||
|
||||
|
||||
=== Contributing to documentation for Substrate packages
|
||||
|
||||
https://doc.rust-lang.org/1.9.0/book/documentation.html[Document source code] for Substrate packages by annotating the source code with documentation comments.
|
||||
|
||||
Reference in New Issue
Block a user