crustio / crust

Official Rust implementation of the Crust protocol
https://crust.network
Apache License 2.0
497 stars 39 forks source link

Upgrade to polkadot-sdk version 'release-polkadot-v1.1.0' #940

Closed wuhaixian1984 closed 6 months ago

wuhaixian1984 commented 6 months ago
  1. Update all substrate, polkadot, and cumulus related dependencies to version 'release-polkadot-v1.1.0' substrate, polkadot, and cumulus have been consolidated into one single repo since v1.1.0 (https://github.com/paritytech/polkadot-sdk)

  2. Remove the linked cumulus folder from the repo, because cumulus is part of polkadot-sdk repo right now

  3. Rename some dependency package name per the update in polkadot-sdk, like xcm, xcm-builder, xcm-executor, polkadot-parachain, etc.

  4. Update the orml-xxx related dependencies version to the git revision which is compatible with 'release-polkadot-v1.1.0'

  5. Add 'default-features=false' attribute to all related dependencies to avoid wierd build errors like:

    • the wasm32-unknown-unknown target is not supported by default, you may need to enable the "js" feature
    • file not found for module sys in errno-0.3.8/src/lib.rs
    • cannot find macro thread_local in this scope, in externalities/src/scope_limited.rs
  6. Fix the source code per the new changes introduced in 'release-polkadot-v1.1.0', for example:

    • Dispatchable trait and RuntimeDebug trait have been moved from frame_support to sp_runtime
    • FirstAssetTrader trait has added new parameters for its functions
    • DefaultImportQueue type has removed one generic type parameter
    • BuildNetworkParams struct has added one new field