Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

Rename Statemint to Asset Hub #2633

Merged
merged 38 commits into from
Jun 2, 2023
Merged

Rename Statemint to Asset Hub #2633

merged 38 commits into from
Jun 2, 2023

Conversation

joepetrowski
Copy link
Contributor

@joepetrowski joepetrowski commented May 24, 2023

  • Update integration / emulator tests
  • Change internal function naming
  • Update chain specs
  • Consider / fix operational migrations (e.g. DB paths)

Logged an issue with DevOps, but statemint obviously stays unchanged in WSS/bootnode paths until renaming/redirects are in place.

Does not change the on-chain spec_name, as many wallets rely on this name.

Closes #2591

CC Docs/DevEx @sacha-l and Wiki @DrW3RK and Apps @jacogr

@joepetrowski joepetrowski added A3-in_progress Pull request is in progress. No review needed at this stage. B1-note_worthy Changes should be noted in the release notes C1-low PR touches the given topic and has a low impact on builders. T1-runtime This PR/Issue is related to the topic “runtime”. D3-trivial 🧸 PR contains trivial changes in a runtime directory that do not require an audit labels May 24, 2023
@joepetrowski joepetrowski marked this pull request as ready for review May 25, 2023 05:55
@joepetrowski joepetrowski requested review from a team as code owners May 25, 2023 05:55
@paritytech-ci paritytech-ci requested review from a team May 25, 2023 05:56
@paritytech-processbot
Copy link

Rebased

/// Westend chain id.
pub const WESTMINT_CHAIN_ID: ChainId = *b"wmnt";
/// AssetHubWestend chain id.
pub const ASSET_HUB_WESTEND_CHAIN_ID: ChainId = *b"ahwe";
Copy link
Contributor

Choose a reason for hiding this comment

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

I presume this is not used anywhere live, and has no consequence to change?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Correct, #2633 (comment)

@paritytech-ci paritytech-ci requested a review from a team June 2, 2023 08:35
@@ -94,6 +94,9 @@ impl_opaque_keys! {
#[cfg(feature = "state-trie-version-1")]
#[sp_version::runtime_version]
pub const VERSION: RuntimeVersion = RuntimeVersion {
// Note: "statemine" is the legacy name for this chain. It has been renamed to
Copy link
Contributor

Choose a reason for hiding this comment

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

I wish there was a way to have a more concrete and delicate plan here, similar to https://github.com/paritytech/substrate/issues/13976#issuecomment-1568538473

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yeah, I was thinking the same. There's not really a good way to change it except to leave it, hope enough tools update to support the change, and then break it.

@paritytech-ci paritytech-ci requested a review from a team June 2, 2023 08:37
@@ -74,7 +74,7 @@ pub mod fee {
type Balance = Balance;
Copy link
Contributor

Choose a reason for hiding this comment

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

FYI this stuff can easily be rfactored out to runtime_common with something like RefTimeToFee<const COEFFICIENT> or similar.

@paritytech-ci paritytech-ci requested a review from a team June 2, 2023 08:38
@paritytech-ci paritytech-ci requested a review from a team June 2, 2023 08:39
Copy link
Contributor

@kianenigma kianenigma left a comment

Choose a reason for hiding this comment

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

I skipped most toml/readme/md files and so on, the main changes all seem good.

@joepetrowski
Copy link
Contributor Author

bot merge

@paritytech-processbot paritytech-processbot bot merged commit 80aaed3 into master Jun 2, 2023
@paritytech-processbot paritytech-processbot bot deleted the joe-assethub branch June 2, 2023 09:58
chevdor added a commit to paritytech/polkadot_network_directory that referenced this pull request Jun 9, 2023
chevdor added a commit to paritytech/polkadot_network_directory that referenced this pull request Jun 12, 2023
* Rename Statemint and Statemine

ref # paritytech/cumulus#2633

* Fix chainspecs

* Rename westmint and rockmine
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
A0-please_review Pull request needs code review. B1-note_worthy Changes should be noted in the release notes C1-low PR touches the given topic and has a low impact on builders. D3-trivial 🧸 PR contains trivial changes in a runtime directory that do not require an audit T1-runtime This PR/Issue is related to the topic “runtime”.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Rename Statemint to Asset Hub
10 participants