Skip to content

Commit

Permalink
applying prettier to entire repo (#5805)
Browse files Browse the repository at this point in the history
Co-authored-by: Polkadot-Kusama Bot <polkadot-kusama-automation-bot@users.noreply.github.com>
  • Loading branch information
github-actions[bot] and Polkadot-Kusama Bot authored Apr 22, 2024
1 parent dcf5972 commit 66dd120
Show file tree
Hide file tree
Showing 4 changed files with 31 additions and 23 deletions.
8 changes: 5 additions & 3 deletions docs/build/build-tools-index.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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

Expand Down
22 changes: 13 additions & 9 deletions docs/learn/learn-guides-DOT-KSM-bridge.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
4 changes: 2 additions & 2 deletions docs/learn/learn-guides-treasury.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
20 changes: 11 additions & 9 deletions docs/learn/learn-jam-chain.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down Expand Up @@ -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

Expand Down

0 comments on commit 66dd120

Please sign in to comment.