mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-26 01:47:55 +00:00
6f3d890ed3
Introduce types to define 1:1 balance conversion for different relative
asset ids/locations of native asset.
Examples:
native asset on Asset Hub presented as `VersionedLocatableAsset` type in
the context of Relay Chain is
```
{
`location`: (0, Parachain(1000)),
`asset_id`: (1, Here),
}
```
and it's balance should be converted 1:1 by implementations of
`ConversionToAssetBalance` trait.
---------
Co-authored-by: Branislav Kontur <bkontur@gmail.com>
12 lines
449 B
Plaintext
12 lines
449 B
Plaintext
# Schema: Polkadot SDK PRDoc Schema (prdoc) v1.0.0
|
|
# See doc at https://raw.githubusercontent.com/paritytech/polkadot-sdk/master/prdoc/schema_user.json
|
|
|
|
title: Unity Balance Conversion for Different IDs of Native Asset
|
|
|
|
doc:
|
|
- audience: Runtime Dev
|
|
description: |
|
|
Introduce types to define 1:1 balance conversion for different relative asset ids/locations
|
|
of native asset for `ConversionToAssetBalance` trait bounds.
|
|
|
|
crates: [ ] |