mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-12 10:01:17 +00:00
Migrate to docs.substrate.io throughout (#10007)
* all reverences of substrate.dev replaced with *correct* docs.substrate.io links * fix links in non-cargo files, errors in replace * homepage https://substrate.io * cargo +nightly fmt * FMT Co-authored-by: Bastian Köcher <info@kchr.de>
This commit is contained in:
@@ -4,7 +4,7 @@ version = "4.0.0-dev"
|
||||
authors = ["Parity Technologies <admin@parity.io>"]
|
||||
edition = "2018"
|
||||
license = "Apache-2.0"
|
||||
homepage = "https://substrate.dev"
|
||||
homepage = "https://substrate.io"
|
||||
repository = "https://github.com/paritytech/substrate/"
|
||||
description = "Support code for the runtime."
|
||||
readme = "README.md"
|
||||
|
||||
@@ -4,7 +4,7 @@ version = "4.0.0-dev"
|
||||
authors = ["Parity Technologies <admin@parity.io>"]
|
||||
edition = "2018"
|
||||
license = "Apache-2.0"
|
||||
homepage = "https://substrate.dev"
|
||||
homepage = "https://substrate.io"
|
||||
repository = "https://github.com/paritytech/substrate/"
|
||||
description = "Proc macro of Support code for the runtime."
|
||||
|
||||
|
||||
@@ -69,7 +69,7 @@ pub fn expand_error(def: &mut Def) -> proc_macro2::TokenStream {
|
||||
if get_doc_literals(&error_item.attrs).is_empty() {
|
||||
error_item.attrs.push(syn::parse_quote!(
|
||||
#[doc = r"
|
||||
Custom [dispatch errors](https://substrate.dev/docs/en/knowledgebase/runtime/errors)
|
||||
Custom [dispatch errors](https://docs.substrate.io/v3/runtime/events-and-errors)
|
||||
of this pallet.
|
||||
"]
|
||||
));
|
||||
|
||||
@@ -98,7 +98,7 @@ pub fn expand_event(def: &mut Def) -> proc_macro2::TokenStream {
|
||||
if get_doc_literals(&event_item.attrs).is_empty() {
|
||||
event_item.attrs.push(syn::parse_quote!(
|
||||
#[doc = r"
|
||||
The [event](https://substrate.dev/docs/en/knowledgebase/runtime/events) emitted
|
||||
The [event](https://docs.substrate.io/v3/runtime/events-and-errors) emitted
|
||||
by this pallet.
|
||||
"]
|
||||
));
|
||||
|
||||
@@ -89,7 +89,7 @@ pub fn expand_genesis_config(def: &mut Def) -> proc_macro2::TokenStream {
|
||||
attrs.push(syn::parse_quote!(
|
||||
#[doc = r"
|
||||
Can be used to configure the
|
||||
[genesis state](https://substrate.dev/docs/en/knowledgebase/integrate/chain-spec#the-genesis-state)
|
||||
[genesis state](https://docs.substrate.io/v3/runtime/chain-specs#the-genesis-state)
|
||||
of this pallet.
|
||||
"]
|
||||
));
|
||||
|
||||
@@ -72,9 +72,9 @@ pub fn expand(mut def: Def) -> proc_macro2::TokenStream {
|
||||
def.item.attrs.push(syn::parse_quote!(
|
||||
#[doc = r"
|
||||
The module that hosts all the
|
||||
[FRAME](https://substrate.dev/docs/en/knowledgebase/runtime/frame)
|
||||
[FRAME](https://docs.substrate.io/v3/runtime/frame)
|
||||
types needed to add this pallet to a
|
||||
[runtime](https://substrate.dev/docs/en/knowledgebase/runtime/).
|
||||
runtime.
|
||||
"]
|
||||
));
|
||||
}
|
||||
|
||||
@@ -62,7 +62,7 @@ pub fn expand_pallet_struct(def: &mut Def) -> proc_macro2::TokenStream {
|
||||
if get_doc_literals(&pallet_item.attrs).is_empty() {
|
||||
pallet_item.attrs.push(syn::parse_quote!(
|
||||
#[doc = r"
|
||||
The [pallet](https://substrate.dev/docs/en/knowledgebase/runtime/pallets) implementing
|
||||
The [pallet](https://docs.substrate.io/v3/runtime/frame#pallets) implementing
|
||||
the on-chain logic.
|
||||
"]
|
||||
));
|
||||
|
||||
@@ -4,7 +4,7 @@ version = "4.0.0-dev"
|
||||
authors = ["Parity Technologies <admin@parity.io>"]
|
||||
edition = "2018"
|
||||
license = "Apache-2.0"
|
||||
homepage = "https://substrate.dev"
|
||||
homepage = "https://substrate.io"
|
||||
repository = "https://github.com/paritytech/substrate/"
|
||||
description = "Proc macro helpers for procedural macros"
|
||||
|
||||
|
||||
@@ -4,7 +4,7 @@ version = "3.0.0"
|
||||
authors = ["Parity Technologies <admin@parity.io>"]
|
||||
edition = "2018"
|
||||
license = "Apache-2.0"
|
||||
homepage = "https://substrate.dev"
|
||||
homepage = "https://substrate.io"
|
||||
repository = "https://github.com/paritytech/substrate/"
|
||||
description = "Use to derive parsing for parsing struct."
|
||||
|
||||
|
||||
@@ -280,7 +280,7 @@ impl<T> Parameter for T where T: Codec + EncodeLike + Clone + Eq + fmt::Debug +
|
||||
///
|
||||
/// The following are reserved function signatures:
|
||||
///
|
||||
/// * `deposit_event`: Helper function for depositing an [event](https://docs.substrate.dev/docs/event-enum).
|
||||
/// * `deposit_event`: Helper function for depositing an [event](https://docs.substrate.io/v3/runtime/events-and-errors).
|
||||
/// The default behavior is to call `deposit_event` from the [System
|
||||
/// module](../frame_system/index.html). However, you can write your own implementation for events
|
||||
/// in your runtime. To use the default behavior, add `fn deposit_event() = default;` to your
|
||||
|
||||
@@ -337,7 +337,7 @@ where
|
||||
fn max_encoded_len() -> usize {
|
||||
// BoundedVec<T, S> encodes like Vec<T> which encodes like [T], which is a compact u32
|
||||
// plus each item in the slice:
|
||||
// https://substrate.dev/rustdocs/v3.0.0/src/parity_scale_codec/codec.rs.html#798-808
|
||||
// https://docs.substrate.io/v3/advanced/scale-codec
|
||||
codec::Compact(S::get())
|
||||
.encoded_size()
|
||||
.saturating_add(Self::bound().saturating_mul(T::max_encoded_len()))
|
||||
|
||||
@@ -307,7 +307,7 @@ where
|
||||
fn max_encoded_len() -> usize {
|
||||
// WeakBoundedVec<T, S> encodes like Vec<T> which encodes like [T], which is a compact u32
|
||||
// plus each item in the slice:
|
||||
// https://substrate.dev/rustdocs/v3.0.0/src/parity_scale_codec/codec.rs.html#798-808
|
||||
// https://docs.substrate.io/v3/advanced/scale-codec
|
||||
codec::Compact(S::get())
|
||||
.encoded_size()
|
||||
.saturating_add(Self::bound().saturating_mul(T::max_encoded_len()))
|
||||
|
||||
@@ -429,7 +429,7 @@ impl<T: MaxEncodedLen> MaxEncodedLen for WrapperOpaque<T> {
|
||||
fn max_encoded_len() -> usize {
|
||||
let t_max_len = T::max_encoded_len();
|
||||
|
||||
// See scale encoding https://substrate.dev/docs/en/knowledgebase/advanced/codec
|
||||
// See scale encoding https://docs.substrate.io/v3/advanced/scale-codec
|
||||
if t_max_len < 64 {
|
||||
t_max_len + 1
|
||||
} else if t_max_len < 2usize.pow(14) {
|
||||
|
||||
@@ -5,7 +5,7 @@ authors = ["Parity Technologies <admin@parity.io>"]
|
||||
edition = "2018"
|
||||
license = "Apache-2.0"
|
||||
publish = false
|
||||
homepage = "https://substrate.dev"
|
||||
homepage = "https://substrate.io"
|
||||
repository = "https://github.com/paritytech/substrate/"
|
||||
|
||||
[package.metadata.docs.rs]
|
||||
|
||||
@@ -5,7 +5,7 @@ authors = ["Parity Technologies <admin@parity.io>"]
|
||||
edition = "2018"
|
||||
license = "Apache-2.0"
|
||||
publish = false
|
||||
homepage = "https://substrate.dev"
|
||||
homepage = "https://substrate.io"
|
||||
repository = "https://github.com/paritytech/substrate/"
|
||||
|
||||
[package.metadata.docs.rs]
|
||||
|
||||
Reference in New Issue
Block a user