Skip to content

Feature request add foreign asset pallet precompile #346

@flipchan

Description

@flipchan

Hi *,

There is a new feature that westend has already implemented and it allows smart contract to interact with foreign assets.

Feature PR #10869: paritytech/polkadot-sdk#10869

This would enable us smart contracts developers to interact with foreign assets, so that we can test before this feature hits Kusama Assethub.

Westend has added this precompile in its runtime:
https://github.com/paritytech/polkadot-sdk/blob/master/cumulus/parachains/runtimes/assets/asset-hub-westend/src/lib.rs

Code References

File Line Description
asset-hub-westend/src/lib.rs 74 Import: use pallet_assets_precompiles::{ForeignAssetId, ForeignIdConfig, InlineIdConfig, ERC20};
asset-hub-westend/src/lib.rs 592-597 impl pallet_assets_precompiles::ForeignAssetsConfig for Runtime
asset-hub-westend/src/lib.rs 636 type CallbackHandle = (ForeignAssetId<Runtime, ForeignAssetsInstance>,);
asset-hub-westend/src/lib.rs 1262 ERC20<Self, ForeignIdConfig<0x220, Self, ForeignAssetsInstance>, ForeignAssetsInstance>,
asset-hub-westend/src/lib.rs 1444-1445 AssetsPrecompiles: pallet_assets_precompiles::pallet = 62,

Direct Links

Would be awesome is this could be added into the paseo assethub runtime. Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions