Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix all the broken links #2028

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion content/md/en/docs/build/build-process.md
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ For example, you might want to use the native runtime for initial synchronizatio
To use the native runtime for synchronizing blocks, you can start the node using the `--execution-syncing native` or `--execution-syncing native-else-wasm` command-line option.

For information about using the command-line options to specify an execution strategy for all or specific operations, see [node-template](/reference/command-line-tools/node-template).
For information about the execution strategy variant, see [ExecutionStrategy](https://paritytech.github.io/substrate/master/sp_state_machine/enum.ExecutionStrategy.html)
For information about the execution strategy variant, see [ExecutionStrategy](https://paritytech.github.io/substrate/master/sc_cli/arg_enums/enum.ExecutionStrategy.html)

## Building WebAssembly without a native runtime

Expand Down
2 changes: 1 addition & 1 deletion content/md/en/docs/build/runtime-storage.md
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ Refer to the [StorageMap](https://paritytech.github.io/substrate/master/frame_su

## Double key storage maps

[DoubleStorageMap](https://paritytech.github.io/substrate/master/frame_support/storage/trait.StorageDoubleMap.html) storage items are similar to single key storage maps except that they contain two keys.
[StorageDoubleMap](https://paritytech.github.io/substrate/master/frame_support/storage/trait.StorageDoubleMap.html) storage items are similar to single key storage maps except that they contain two keys.
Using this type of storage structure is useful for querying values with common keys.

## Multi-key storage maps
Expand Down
4 changes: 2 additions & 2 deletions content/md/en/docs/build/tx-weights-fees.md
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ To account for this variability, the Transaction Payment pallet provides the [`F
The default update function is inspired by the Polkadot network and implements a targeted adjustment in which a target saturation level of block weight is defined.
If the previous block is more saturated, then the fees are slightly increased.
Similarly, if the previous block has fewer transactions than the target, fees are decreased by a small amount.
For more information about fee multiplier adjustments, see the [Web3 research page](https://w3f-research.readthedocs.io/en/latest/polkadot/overview/2-token-economics.html#relay-chain-transaction-fees-and-per-block-transaction-limits).
For more information about fee multiplier adjustments, see the [Web3 research page](https://research.web3.foundation/Polkadot/overview/token-economics#relay-chain-transaction-fees-and-per-block-transaction-limits).

## Transactions with special requirements

Expand Down Expand Up @@ -398,6 +398,6 @@ You can use Substrate **benchmarking functions** and `frame-benchmarking` calls
- [Benchmark](/test/benchmark/)
- [SignedExtension](https://paritytech.github.io/substrate/master/sp_runtime/traits/trait.SignedExtension.html)
- [Custom weights for the Example pallet](https://github.com/paritytech/substrate/blob/master/frame/examples/basic/src/weights.rs)
- [Web3 Foundation Research](https://w3f-research.readthedocs.io/en/latest/polkadot/overview/2-token-economics.html#relay-chain-transaction-fees-and-per-block-transaction-limits)
- [Web3 Foundation Research](https://research.web3.foundation/Polkadot/overview/token-economics#relay-chain-transaction-fees-and-per-block-transaction-limits)

<!-- - [Calculate weight](/reference/how-to-guides/weights/) -->
2 changes: 1 addition & 1 deletion content/md/en/docs/deploy/deployment-options.md
Original file line number Diff line number Diff line change
Expand Up @@ -412,7 +412,7 @@ ENTRYPOINT ["/usr/local/bin/node-template"]

### Automated build pipeline

The following sample [GitHub action](https://github.com/substrate-developer-hub/substrate-node-template/blob/main/.github/workflows/build-publish-image.yml) builds and publishes a Docker image to DockerHub.
The following sample GitHub action builds and publishes a Docker image to DockerHub.
In most cases, you trigger this action using a manual workflow or when a new release is published.

Note that you must add secrets to your GitHub repository or organization as described in [Encrypted secrets](https://docs.github.com/en/actions/security-guides/encrypted-secrets) to publish images securely.
Expand Down
4 changes: 2 additions & 2 deletions content/md/en/docs/learn/consensus.md
Original file line number Diff line number Diff line change
Expand Up @@ -133,5 +133,5 @@ See [AlephBFT](https://github.com/aleph-zero-foundation/aleph-node) for such an

## Where to go next

- [BABE research](https://research.web3.foundation/en/latest/polkadot/block-production/Babe.html)
- [GRANDPA research](https://research.web3.foundation/en/latest/polkadot/finality.html)
- [BABE research](https://research.web3.foundation/Polkadot/protocols/block-production/Babe)
- [GRANDPA research](https://research.web3.foundation/Polkadot/protocols/finality)
4 changes: 2 additions & 2 deletions content/md/en/docs/learn/cryptography.md
Original file line number Diff line number Diff line change
Expand Up @@ -92,12 +92,12 @@ It is carefully engineered at several levels of design and implementation to ach

#### SR25519

[SR25519](https://research.web3.foundation/en/latest/polkadot/keys/1-accounts-more.html) is based on the same underlying curve as [Ed25519](#ed25519).
[SR25519](https://research.web3.foundation/Polkadot/security/keys#account-keys) is based on the same underlying curve as [Ed25519](#ed25519).
However, it uses Schnorr signatures instead of the EdDSA scheme.

## Where to go next

- [Cryptography on Polkadot](https://wiki.polkadot.network/docs/en/learn-cryptography).
- [Research at W3F: Cryptography](https://research.web3.foundation/en/latest/crypto.html).
- [Research at W3F: Cryptography](https://research.web3.foundation/crypto).
- [`Hash`](https://paritytech.github.io/substrate/master/sp_runtime/traits/trait.Hash.html) trait for implementing new hashing algorithms.
- [`Pair`](https://paritytech.github.io/substrate/master/sp_core/crypto/trait.Pair.html) trait for implementing new cryptographic schemes.
2 changes: 1 addition & 1 deletion content/md/en/docs/reference/command-line-tools/srtool.md
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ You can use the following command-line options with the `srtool build` command.

### Examples

To build the Westmint runtime from the `cumulus` repository where the path to the `Cargo.toml` for the runtime is [parachains/runtimes/assets/westmint](https://github.com/paritytech/cumulus/tree/master/parachains/runtimes/assets/westmint), you would run the following command:
To build the Westmint runtime from the `cumulus` repository where the path to the `Cargo.toml` for the runtime is [parachains/runtimes/assets/westmint](https://github.com/paritytech/cumulus/tree/master/parachains/runtimes/assets/asset-hub-westend), you would run the following command:

```bash
srtool build --app --package westmint-runtime --runtime-dir parachains/runtimes/assets/westmint
Expand Down
2 changes: 1 addition & 1 deletion content/md/en/docs/reference/command-line-tools/subxt.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ The `subxt-cli` tool enables you to perform two key tasks that are critical to u
* You can use the `subxt-cli` tool to generate the runtime API code from the metadata from any target Substrate node.

You can use the `subxt` library and `subxt-cli` tool for any node that uses metadata v14 and later.
For examples of how to use the `subxt` library, see the [examples](https://github.com/paritytech/subxt/tree/master/examples/examples) folder.
For examples of how to use the `subxt` library, see the [examples](https://github.com/paritytech/subxt/tree/master/examples) folder.

## Installation

Expand Down
6 changes: 3 additions & 3 deletions content/md/en/docs/reference/frame-macros.md
Original file line number Diff line number Diff line change
Expand Up @@ -392,9 +392,9 @@ $vis type $StorageName<$some_generic> $optional_where_clause

For more information, see the Rust documentation for [pallet::storage](https://paritytech.github.io/substrate/master/frame_support/attr.pallet.html#storage-palletstorage-optional) and the following storage data structures:

- [StorageDoubleMap](https://paritytech.github.io/substrate/master/frame_support/pallet_prelude/struct.StorageDoubleMap.html)
- [StorageMap](https://paritytech.github.io/substrate/master/frame_support/pallet_prelude/struct.StorageMap.html#implementations)
- [StorageValue](https://paritytech.github.io/substrate/master/frame_support/pallet_prelude/struct.StorageValue.html)
- [StorageDoubleMap](https://paritytech.github.io/substrate/master/frame_support/storage/types/struct.StorageDoubleMap.html)
- [StorageMap](https://paritytech.github.io/substrate/master/frame_support/storage/trait.StorageMap.html#implementors)
- [StorageValue](https://paritytech.github.io/substrate/master/frame_support/storage/trait.StorageValue.html)

### #[pallet::type_value]

Expand Down
2 changes: 1 addition & 1 deletion content/md/en/docs/reference/glossary.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ A [block authoring](#author) protocol similar to [Aura](#aura).
However, with the blind assignment of blockchain extension (BABE) protocol, [authorities](#authority) win [slots](#slot) based on a verifiable random function (VRF) as opposed to the round-robin selection method.
The winning authority can select a chain and submit a new block for it.

Learn more about BABE by referring to its [official Web3 Foundation research document](https://research.web3.foundation/en/latest/polkadot/block-production/Babe.html).
Learn more about BABE by referring to its [official Web3 Foundation research document](https://research.web3.foundation/Polkadot/protocols/block-production/Babe).

## block

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ Customize the consensus mechanisms of a Substrate chain.
We begin by creating the block import for Grandpa.
In addition to the block import itself, we get back a `grandpa_link`.
This link is a channel over which the block import can communicate with the background task that actually casts Grandpa votes.
The [details of the Grandpa protocol](https://research.web3.foundation/en/latest/polkadot/finality.html) are beyond the scope of this guide.
The [details of the Grandpa protocol](https://research.web3.foundation/Polkadot/protocols/finality) are beyond the scope of this guide.

In `node/src/service.rs`, create the Grandpa block import:

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ keywords:
---

This guide shows you how to write a pallet that allows users to lock funds for staking and voting.
The [`LockableCurrency`](https://paritytech.github.io/substrate/master/frame_support/traits/trait.LockableCurrency.html) trait is useful in the context of economic systems that enforce accountability by collateralizing fungible resources.
The [`LockableCurrency`](https://paritytech.github.io/substrate/master/frame_support/traits/tokens/currency/trait.LockableCurrency.html) trait is useful in the context of economic systems that enforce accountability by collateralizing fungible resources.
You can use the Substrate [staking pallet](https://paritytech.github.io/substrate/master/pallet_staking/index.html) to manage locked funds in time-based increments.

In this guide, we will implement the `set_lock`, `extend_lock` and `remove_lock` methods in our own custom pallet.
Expand All @@ -22,7 +22,7 @@ You can use the template pallet in the [node template](https://github.com/substr

## Declare the necessary dependencies

The methods from [`LockableCurrency`](https://paritytech.github.io/substrate/master/frame_support/traits/trait.LockableCurrency.html) require us to import a few traits from `frame_support`.
The methods from [`LockableCurrency`](https://paritytech.github.io/substrate/master/frame_support/traits/tokens/currency/trait.LockableCurrency.html) require us to import a few traits from `frame_support`.

1. Ensure you have the following traits imported in the top section of your pallet:

Expand Down Expand Up @@ -162,5 +162,5 @@ The required methods are:
## Related material

- [Currency trait](https://paritytech.github.io/substrate/master/frame_support/traits/tokens/currency/trait.Currency.html)
- [LockableCurrency](https://paritytech.github.io/substrate/master/frame_support/traits/trait.LockableCurrency.html)
- [LockIdentifier](https://paritytech.github.io/substrate/master/frame_support/traits/type.LockIdentifier.html)
- [LockableCurrency](https://paritytech.github.io/substrate/master/frame_support/traits/tokens/currency/trait.LockableCurrency.html)
- [LockIdentifier](https://paritytech.github.io/substrate/master/frame_support/traits/index.html#reexport.LockIdentifier)
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ To implement the errors for the proof-of-existence pallet:

To add a new claim to the blockchain, the proof-of-existence pallet requires a storage mechanism.
To address this requirement, you can create a key-value map, where each claim points to the owner and the block number when the claim was made.
To create this key-value map, you can use the FRAME [`StorageMap`](https://paritytech.github.io/substrate/master/frame_support/pallet_prelude/struct.StorageMap.html).
To create this key-value map, you can use the FRAME [`StorageMap`](https://paritytech.github.io/substrate/master/frame_support/storage/types/struct.StorageMap.html).

To implement storage for the proof-of-existence pallet:

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ If you don't have a preferred IDE, Visual Studio Code is a good choice.
To interact with the blockchain and test your work as you build the Substrate collectibles application, you'll need a browser-based application that can connect to the Substrate node.
For the workshop, you can connect to the node from the [Polkadot/Substrate Portal](https://polkadot.js.org/apps/) if you have Chrome or a Chromium-based browser.

- [ ] [Google Chrome](https://www.google.com/chrome/) or a Chromium-based browser, such as [Brave](https://brave.com/download/), [Microsoft Edge](https://www.microsoft.com/en-us/edge?form=MA13FJ&exp=e00), [Opera](https://www.opera.com/download), or [Vivaldi](https://vivaldi.com/download/).
- [ ] [Google Chrome](https://www.google.com/chrome/) or a Chromium-based browser, such as [Brave](https://brave.com/download/), [Microsoft Edge](https://www.microsoft.com/en-us/edge?form=MA13FJ&exp=e00), [Opera](https://www.opera.com/download), or [Vivaldi](https://vivaldi.com/download/). <!-- markdown-link-check-disable-line -->

If you use a more restrictive browser—such as Firefox—you might find that connections between the Polkadot/Substrate Portal and the node are blocked for security or privacy reasons.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ The primary difference in the code is that you must explicitly identify the chai

To connect to Statemint:

1. Download the custom chain specification file from the [cumulus repository](https://github.com/paritytech/cumulus/blob/master/parachains/chain-specs/statemint.json).
1. Download the custom chain specification file from the [cumulus repository](https://github.com/paritytech/cumulus/blob/master/parachains/chain-specs/asset-hub-polkadot.json).

2. Copy the downloaded chain specification to the `empty-webapp` directory you created in [Connect to a well-known chain](#connect-to-a-well-known-chain).

Expand Down
2 changes: 1 addition & 1 deletion plugins/gatsby-plugin-substrate