From 66dd1202528494c9e3e4235051477b3acba58f76 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Mon, 22 Apr 2024 09:45:17 +0200 Subject: [PATCH] applying prettier to entire repo (#5805) Co-authored-by: Polkadot-Kusama Bot --- docs/build/build-tools-index.md | 8 +++++--- docs/learn/learn-guides-DOT-KSM-bridge.md | 22 +++++++++++++--------- docs/learn/learn-guides-treasury.md | 4 ++-- docs/learn/learn-jam-chain.md | 20 +++++++++++--------- 4 files changed, 31 insertions(+), 23 deletions(-) diff --git a/docs/build/build-tools-index.md b/docs/build/build-tools-index.md index addc35339d25..e953b34702dd 100644 --- a/docs/build/build-tools-index.md +++ b/docs/build/build-tools-index.md @@ -184,8 +184,8 @@ WebAssembly related tools and projects. language. - [Go: Subscan API](https://github.com/itering/substrate-api-rpc) - Go API for Polkadot. - [C++ Polkadot API](https://github.com/usetech-llc/polkadot_api_cpp) - С++ API for Polkadot. -- [.NET Polkadot/Substrate API](https://github.com/SubstrateGaming/Substrate.NET.API) - - Core Framework for Substrate in .NET and connect to nodes. +- [.NET Polkadot/Substrate API](https://github.com/SubstrateGaming/Substrate.NET.API) - Core + Framework for Substrate in .NET and connect to nodes. - [.NET Toolchain Polkadot/Substrate API](https://github.com/SubstrateGaming/Substrate.NET.Toolchain) - Toolchain to generate Polkadot/Substrate API & Service Layer for .NET. - [.NET Polkadot API](https://github.com/usetech-llc/polkadot_api_dotnet) - Polkadot Substrate API @@ -202,7 +202,9 @@ WebAssembly related tools and projects. ### GAME ENGINE SDK - [Polkadot SDK for Unity](https://github.com/PolkadotPlay/Polkadot.Unity.SDK) - A powerful toolkit - that integrates substrate seamless into Unity projects. ([AssetStore](https://assetstore.unity.com/packages/decentralization/infrastructure/polkadot-sdk-for-unity-273535), [wiki](https://github.com/PolkadotPlay/Polkadot.Unity.SDK/wiki)). + that integrates substrate seamless into Unity projects. + ([AssetStore](https://assetstore.unity.com/packages/decentralization/infrastructure/polkadot-sdk-for-unity-273535), + [wiki](https://github.com/PolkadotPlay/Polkadot.Unity.SDK/wiki)). ### SCALE Codec diff --git a/docs/learn/learn-guides-DOT-KSM-bridge.md b/docs/learn/learn-guides-DOT-KSM-bridge.md index b41e191797bd..4cc3ad32224c 100644 --- a/docs/learn/learn-guides-DOT-KSM-bridge.md +++ b/docs/learn/learn-guides-DOT-KSM-bridge.md @@ -129,20 +129,24 @@ balances of any account on Kusama Asset Hub can be queried on-chain through the ## Transfer of arbitrary assets between Polkadot Asset Hub and Kusama Asset Hub -Transfer functionality of assets other than DOT and KSM between Asset Hubs is yet to be enabled. Once this -functionality is enabled, assets which are sufficient or non-sufficient on the Asset Hubs can be bridged. +Transfer functionality of assets other than DOT and KSM between Asset Hubs is yet to be enabled. +Once this functionality is enabled, assets which are sufficient or non-sufficient on the Asset Hubs +can be bridged. :::caution Avoid Asset Traps To avoid issues on the receiving side for non-sufficient assets, make sure to call -[pallet_assets::touch()](https://github.com/paritytech/polkadot-sdk/blob/0ef37c75401b78b61ed35ce27af8b964da27bb3c/substrate/frame/assets/src/lib.rs#L1531) or [pallet_assets::touch_other()](https://github.com/paritytech/polkadot-sdk/blob/0ef37c75401b78b61ed35ce27af8b964da27bb3c/substrate/frame/assets/src/lib.rs#L1616) +[pallet_assets::touch()](https://github.com/paritytech/polkadot-sdk/blob/0ef37c75401b78b61ed35ce27af8b964da27bb3c/substrate/frame/assets/src/lib.rs#L1531) +or +[pallet_assets::touch_other()](https://github.com/paritytech/polkadot-sdk/blob/0ef37c75401b78b61ed35ce27af8b964da27bb3c/substrate/frame/assets/src/lib.rs#L1616) effectively guaranteeing the ability to successfully receive and accept the bridged assets in your -account on the destination chain. -This eliminates issues like your account on destination not existing or not having enough ED or having -reached the maximum limit of different assets it can hold. -Without this sanity step, you risk that the bridged assets will make their way to the destination chain -but will not be accepted by your account, and instead get trapped in the Asset Trap on the destination chain. +account on the destination chain. This eliminates issues like your account on destination not +existing or not having enough ED or having reached the maximum limit of different assets it can +hold. Without this sanity step, you risk that the bridged assets will make their way to the +destination chain but will not be accepted by your account, and instead get trapped in the Asset +Trap on the destination chain. ::: -Once arbitrary asset transfers are enabled by the Asset Hubs, a guide will be posted to this Wiki page. +Once arbitrary asset transfers are enabled by the Asset Hubs, a guide will be posted to this Wiki +page. diff --git a/docs/learn/learn-guides-treasury.md b/docs/learn/learn-guides-treasury.md index 8229e8852c17..9f5f896e8ccf 100644 --- a/docs/learn/learn-guides-treasury.md +++ b/docs/learn/learn-guides-treasury.md @@ -75,8 +75,8 @@ unchanged. ### Submit Treasury Proposal Preimage -The example below shows how to create a [preimage](../general/glossary.md#preimage) for a transaction -that requests 100 DOT from Treasury. +The example below shows how to create a [preimage](../general/glossary.md#preimage) for a +transaction that requests 100 DOT from Treasury. - Navigate to [Polkadot-JS UI > Governance > Preimages](https://polkadot.js.org/apps/#/preimages) and then click on Add Preimage. diff --git a/docs/learn/learn-jam-chain.md b/docs/learn/learn-jam-chain.md index e4f4ef0c7ac7..da948e44644c 100644 --- a/docs/learn/learn-jam-chain.md +++ b/docs/learn/learn-jam-chain.md @@ -106,9 +106,11 @@ The first three types form part of the JAM chain's security framework. Guarantee involve validators collectively attesting that a work result accurately reflects the outcome of its corresponding work item after transformation through the service's refine function. -Judgments occur when then integrity of a work result is considered uncertain and a large plurality of validators attest to its validity or lack thereof. In this case an invalid work item may already have been -integrated into the service’s state and a rollback may need to happen. Judgments must occur within one hour of submitting the work report to the -chain, during which finality is temporarily paused. +Judgments occur when then integrity of a work result is considered uncertain and a large plurality +of validators attest to its validity or lack thereof. In this case an invalid work item may already +have been integrated into the service’s state and a rollback may need to happen. Judgments must +occur within one hour of submitting the work report to the chain, during which finality is +temporarily paused. Preimages represent a feature provided by the JAM chain for the refine function. While the refine function is typically stateless, it can perform one stateful operation: looking up the preimage of a @@ -121,9 +123,9 @@ algorithm. ### Refine Function -In the Refine processing stage within JAM, up to 15 MB of data can be accepted during each time slot, -which lasts 6 seconds. However, Refine yields a maximum of 90 kB of data, resulting in significant -data compaction that is necessary due to the distributed nature of +In the Refine processing stage within JAM, up to 15 MB of data can be accepted during each time +slot, which lasts 6 seconds. However, Refine yields a maximum of 90 kB of data, resulting in +significant data compaction that is necessary due to the distributed nature of [the availability system](./learn-parachains-protocol.md#availability-and-validity-anv-protocol). For instance, in the context of a parachain, the 15 MB of data represents the [Proof of Validity (PoV)](./learn-parachains-protocol.md#protocols-summary), while the 90 kB of data @@ -157,9 +159,9 @@ storage from any service, write to its key-value store, transfer funds, and incl transfers. Additionally, Accumulate can create new services, upgrade its code, and request preimage availability, among other functionalities. -Moreover, Refine can invoke child instances of the PVM. This allows for creating -sub-instances, or virtual machines, where code and data can be deployed, memory and stack -configurations can be customized, and computations can be executed within a flexible framework. +Moreover, Refine can invoke child instances of the PVM. This allows for creating sub-instances, or +virtual machines, where code and data can be deployed, memory and stack configurations can be +customized, and computations can be executed within a flexible framework. ### On-transfer Function