Skip to content

Commit

Permalink
fix(system-parachains/asset-hub-kusama): allow incoming assets from E…
Browse files Browse the repository at this point in the history
…thereum Snowbridge (chain 11155111)
  • Loading branch information
pandres95 committed Oct 25, 2024
1 parent 1faeb30 commit f8adb35
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion system-parachains/asset-hubs/asset-hub-kusama/src/xcm_config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -513,9 +513,14 @@ pub mod bridging {
]
);

// TODO: @bkontur or @acatangiu, please confirm if this chain will be used at all.
pub const PolkadotNetwork: NetworkId = NetworkId::Polkadot;
pub const EthereumNetwork: NetworkId = NetworkId::Ethereum { chain_id: 1 };
// TODO: @bkontur or @acatangiu, please confirm if this should be in the configuration, or if
// this `chain_id` is just for testing purposes.
pub const EthereumNetworkSnowbridgeChain: NetworkId = NetworkId::Ethereum { chain_id: 11155111 };
pub EthereumEcosystem: Location = Location::new(2, [GlobalConsensus(EthereumNetwork::get())]);
pub EthereumSnowbridge: Location = Location::new(2, [GlobalConsensus(EthereumNetworkSnowbridgeChain::get())]);
pub DotLocation: Location = Location::new(2, [GlobalConsensus(PolkadotNetwork::get())]);
pub AssetHubPolkadot: Location = Location::new(
2,
Expand Down Expand Up @@ -559,7 +564,11 @@ pub mod bridging {
/// Allow any asset native to the Polkadot or Ethereum ecosystems if it comes from Polkadot
/// Asset Hub.
pub type PolkadotOrEthereumAssetFromAssetHubPolkadot = RemoteAssetFromLocation<
(StartsWith<DotLocation>, StartsWith<EthereumEcosystem>),
(
StartsWith<DotLocation>,
StartsWith<EthereumEcosystem>,
StartsWith<EthereumSnowbridge>,
),
AssetHubPolkadot,
>;

Expand Down

0 comments on commit f8adb35

Please sign in to comment.