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 register ether command to control tool #1361

Merged
merged 7 commits into from
Jan 20, 2025

Conversation

alistair-singh
Copy link
Contributor

@alistair-singh alistair-singh commented Dec 31, 2024

Resolves: SNO-1222, SNO-1251

Comment on lines +40 to +45
pub fn get_ether_id(chain_id: u64) -> Location {
return Location {
parents: 2,
interior: X1([GlobalConsensus(NetworkId::Ethereum { chain_id })]),
};
}
Copy link
Contributor

Choose a reason for hiding this comment

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

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This was merged by parity before discussing with Vincent. But I think we would like it to be { parents: 2, interior: X1([GlobalConsensus(Ethereum { chain_id: 1 })]) } because in XCM this is the convention. I.e. The relaychain token and the destination of the relaychain share the same location. So in our case the bridge location and the bridge native token also shares the same location.

Base automatically changed from alistair/control-tool-remove-rococo to main January 7, 2025 22:37
@alistair-singh alistair-singh force-pushed the alistair/control-tool-register-eth branch from b6ffe80 to ad05a6e Compare January 7, 2025 22:44
Copy link
Contributor

@yrong yrong left a comment

Choose a reason for hiding this comment

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

+1

@alistair-singh alistair-singh force-pushed the alistair/control-tool-register-eth branch from ad05a6e to 8490979 Compare January 14, 2025 23:38
#[arg(long, value_name = "ASSET_DISPLAY_NAME", default_value_t = String::from("Ether"))]
ether_name: String,
/// The Ether asset symbol
#[arg(long, value_name = "ASSET_SYMBOL", default_value_t = String::from("ETH.e"))]
Copy link
Collaborator

Choose a reason for hiding this comment

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

I thought it was only bridge UIs that appended ".e" to the token symbol?

Shouldn't we default to "ETH" to be consistent with "WETH" registered on AssetHub?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Resolved in 9132e64

@alistair-singh alistair-singh merged commit 01b2b53 into main Jan 20, 2025
4 checks passed
@alistair-singh alistair-singh deleted the alistair/control-tool-register-eth branch January 20, 2025 22:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants