-
Notifications
You must be signed in to change notification settings - Fork 35
Feature request add foreign asset pallet precompile #346
Copy link
Copy link
Open
Labels
runtime-upgradeRuntime UpgradeRuntime Upgrade
Description
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
- Westend Runtime Source: https://github.com/paritytech/polkadot-sdk/blob/master/cumulus/parachains/runtimes/assets/asset-hub-westend/src/lib.rs
- PR #10869: [pallet-assets] add ForeignAssetIdExtractor to assets precompile paritytech/polkadot-sdk#10869
- PRD: https://github.com/paritytech/polkadot-sdk/blob/master/prdoc/pr_10869.prdoc
- Foreign Assets Precompile: https://github.com/paritytech/polkadot-sdk/blob/master/substrate/frame/assets/precompiles/src/foreign_assets.rs
Would be awesome is this could be added into the paseo assethub runtime. Thanks!
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
runtime-upgradeRuntime UpgradeRuntime Upgrade