FRAME: Unity Balance Conversion for Different IDs of Native Asset (#3659)
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>
parent
753bf2d8
Showing
- Cargo.lock 35 additions, 0 deletionsCargo.lock
- Cargo.toml 1 addition, 0 deletionsCargo.toml
- cumulus/parachains/integration-tests/emulated/chains/relays/rococo/src/lib.rs 2 additions, 0 deletions...ntegration-tests/emulated/chains/relays/rococo/src/lib.rs
- cumulus/parachains/integration-tests/emulated/tests/assets/asset-hub-rococo/Cargo.toml 5 additions, 0 deletions...n-tests/emulated/tests/assets/asset-hub-rococo/Cargo.toml
- cumulus/parachains/integration-tests/emulated/tests/assets/asset-hub-rococo/src/tests/mod.rs 1 addition, 0 deletions...s/emulated/tests/assets/asset-hub-rococo/src/tests/mod.rs
- cumulus/parachains/integration-tests/emulated/tests/assets/asset-hub-rococo/src/tests/treasury.rs 270 additions, 0 deletions...lated/tests/assets/asset-hub-rococo/src/tests/treasury.rs
- cumulus/parachains/integration-tests/emulated/tests/collectives/collectives-westend/Cargo.toml 43 additions, 0 deletions...emulated/tests/collectives/collectives-westend/Cargo.toml
- cumulus/parachains/integration-tests/emulated/tests/collectives/collectives-westend/src/lib.rs 30 additions, 0 deletions...emulated/tests/collectives/collectives-westend/src/lib.rs
- cumulus/parachains/integration-tests/emulated/tests/collectives/collectives-westend/src/tests/fellowship_treasury.rs 236 additions, 0 deletions...ives/collectives-westend/src/tests/fellowship_treasury.rs
- cumulus/parachains/integration-tests/emulated/tests/collectives/collectives-westend/src/tests/mod.rs 16 additions, 0 deletions...ed/tests/collectives/collectives-westend/src/tests/mod.rs
- cumulus/parachains/runtimes/collectives/collectives-westend/src/fellowship/mod.rs 18 additions, 6 deletions...mes/collectives/collectives-westend/src/fellowship/mod.rs
- polkadot/runtime/common/src/impls.rs 21 additions, 1 deletionpolkadot/runtime/common/src/impls.rs
- polkadot/runtime/rococo/src/lib.rs 20 additions, 8 deletionspolkadot/runtime/rococo/src/lib.rs
- polkadot/runtime/westend/src/lib.rs 15 additions, 6 deletionspolkadot/runtime/westend/src/lib.rs
- polkadot/xcm/xcm-builder/src/barriers.rs 23 additions, 0 deletionspolkadot/xcm/xcm-builder/src/barriers.rs
- polkadot/xcm/xcm-builder/src/lib.rs 2 additions, 2 deletionspolkadot/xcm/xcm-builder/src/lib.rs
- prdoc/pr_3659.prdoc 12 additions, 0 deletionsprdoc/pr_3659.prdoc
- substrate/frame/support/src/traits.rs 1 addition, 1 deletionsubstrate/frame/support/src/traits.rs
- substrate/frame/support/src/traits/members.rs 9 additions, 0 deletionssubstrate/frame/support/src/traits/members.rs
- substrate/frame/support/src/traits/tokens.rs 2 additions, 2 deletionssubstrate/frame/support/src/traits/tokens.rs
Please register or sign in to comment