Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Ethereum router #8

Closed
wants to merge 4 commits into from

Conversation

claravanstaden
Copy link
Collaborator

@claravanstaden claravanstaden commented Nov 1, 2023

Add a separate router to Ethereum, instead of reusing the existing Rococo router.

Resolves: SNO-731


pub type ToEthereumXcmRouterInstance = pallet_assets::Instance3;
impl pallet_xcm_bridge_hub_router::Config<ToEthereumXcmRouterInstance> for Runtime {
type WeightInfo = weights::pallet_xcm_bridge_hub_router_to_rococo::WeightInfo<Runtime>; // TODO do for ethereum
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure if we should add our own weights file here - there doesn't seem to be a difference in the xcm router pallet weights (i.e. Rococo and Wococo xcm router pallet weights are generated with the same command)

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yeah just the copy the file and rename it appropriately, I'd say.

@claravanstaden claravanstaden marked this pull request as ready for review November 2, 2023 15:25
@claravanstaden
Copy link
Collaborator Author

claravanstaden commented Nov 2, 2023

Tested:

  • register token
  • send token
  • transfer token
  • create agent
  • create channel

Routing from Ethereum -> Bridge Hub -> Asset Hub and Asset Hub -> Bridge Hub -> Ethereum works with the new router config.

Base automatically changed from reserve-asset-transfer to snowbridge November 3, 2023 10:09
@claravanstaden
Copy link
Collaborator Author

Closed in favour of #16.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants