Module penpal_runtime::xcm_config
source · Expand description
Holds the XCM specific configuration that would otherwise be in lib.rs
This configuration dictates how the Penpal chain will communicate with other chains.
One of the main uses of the penpal chain will be to be a benefactor of reserve asset transfers
with Asset Hub as the reserve. At present no derivative tokens are minted on receipt of a
ReserveAssetTransferDeposited
message but that will but the intension will be to support this
soon.
Structs§
- Accepts asset with ID
AssetLocation
and is coming fromOrigin
chain. - Asset filter that allows all assets from a certain location matching asset id.
- The Penpal runtime is utilized for testing with various environment setups. This storage item provides the opportunity to customize testing scenarios by configuring the trusted asset from the
SystemAssetHub
. - Asset filter that allows native/relay asset if coming from a certain location.
- The location that this chain recognizes as the Relay network’s Asset Hub.
- Simple conversion of
u32
into anAssetId
for use in benchmarking.
Constants§
Type Aliases§
- Type alias to conveniently refer to
frame_system
’sConfig::AccountId
. - Means for transacting assets on this chain.
- Multiplier used for dedicated
TakeFirstAssetTrader
withForeignAssets
instance. - Means for transacting foreign assets from different global consensus.
- Means for transacting assets on this chain.
- Means for transacting assets besides the native currency on this chain.
- No local origins on this chain are allowed to dispatch XCM sends/executions.
- Type for specifying how a
Location
can be converted into anAccountId
. This is used when determining ownership of accounts for asset transacting and when attempting to use XCMTransact
in order to determine the dispatch Origin. - Asset converter for pool assets. Used to convert assets in pools to the asset required for fee payment. The pool must be between the first asset and the one required for fee payment. This type allows paying fees with any asset in a pool with the asset required for fee payment.
AssetId
/Balance
converter forTrustBackedAssets
.- This is the type we use to convert an (incoming) XCM origin into a local
Origin
instance, ready for dispatching a transaction with Xcm’sTransact
. There is anOriginKind
which can biases the kind of localOrigin
it will become. - The means for routing XCM messages which are not for local execution into the right message queues.