-
Notifications
You must be signed in to change notification settings - Fork 97
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
Update to SDK stable2409-1
#490
base: main
Are you sure you want to change the base?
Update to SDK stable2409-1
#490
Conversation
2e8844d
to
471ce8d
Compare
stable2409
stable2409
f08d159
to
4b4a252
Compare
- Rename `assigner_on_demand` to `on_demand` (SDK #4706) - [BEEFY] Add runtime support for reporting fork voting (#4522) - `SchedulerParams` moved from `polkadot_primitives::vstaging`, to `polkadot_primitives` - `XcmFeeToAccount` -> `SendXcmFeeToAccount` - Mock Weights
- Rename `assigner_on_demand` to `on_demand` (SDK #4706) - [BEEFY] Add runtime support for reporting fork voting (SDK #4522) - `SchedulerParams` moved from `polkadot_primitives::vstaging`, to `polkadot_primitives` - `XcmFeeToAccount` -> `SendXcmFeeToAccount` - Mock Weights
- [Assets] Call implementation for `transfer_all` (SDK #4527) - [bridges-v2] Permissionless lanes (SDK #4949) - add possibility to inject non-authorities session-keys in genesis (SDK #5078) - Tx Payment: drop ED requirements for tx payments with exchangeable asset (SDK #4488) - relax XcmFeeToAccount trait bound on AccountId (SDK #4959)
- [Assets] Call implementation for `transfer_all` (SDK #4527) - [bridges-v2] Permissionless lanes (SDK #4949) - add possibility to inject non-authorities session-keys in genesis (SDK #5078) - Tx Payment: drop ED requirements for tx payments with exchangeable asset (SDK #4488) - relax XcmFeeToAccount trait bound on AccountId (SDK #4959)
- Bridges V2 refactoring backport and pallet_bridge_messages simplifications (SDK #4935) - [bridges-v2] Permissionless lanes (SDK #4949) - add possibility to inject non-authorities session-keys in genesis (SDK #5078) - Transfer Polkadot-native assets to Ethereum (SDK #5546) - [stable2049] Backport #5546 (SDK #5710) - `XcmFeeToAccount` -> `SendXcmFeeToAccount`
- Bridges V2 refactoring backport and pallet_bridge_messages simplifications (SDK #4935) - [bridges-v2] Permissionless lanes (SDK #4949) - add possibility to inject non-authorities session-keys in genesis (SDK #5078) - Transfer Polkadot-native assets to Ethereum (SDK #5546) - [stable2049] Backport #5546 (SDK #5710) - `XcmFeeToAccount` -> `SendXcmFeeToAccount` - [bh polkadot] minor: replace `DOLLARS` with `UNITS` on `BridgeDeposit` storage type
- `XcmFeeToAccount` -> `SendXcmFeeToAccount` - add possibility to inject non-authorities session-keys in genesis (SDK #5078)
- `XcmFeeToAccount` -> `SendXcmFeeToAccount` - add possibility to inject non-authorities session-keys in genesis (SDK #5078) - Coretime auto-renew (SDK #4424) - Mock Weights
- `XcmFeeToAccount` -> `SendXcmFeeToAccount` - add possibility to inject non-authorities session-keys in genesis (SDK #5078) - Coretime auto-renew (SDK #4424) - Mock Weights
- `XcmFeeToAccount` -> `SendXcmFeeToAccount` - add possibility to inject non-authorities session-keys in genesis (SDK #5078)
- `XcmFeeToAccount` -> `SendXcmFeeToAccount` - add possibility to inject non-authorities session-keys in genesis (SDK #5078)
- add possibility to inject non-authorities session-keys in genesis (SDK #5078)
3d0b758
to
e0760ad
Compare
I can probably squeeze it in later this week. 👍 |
Opened for review with a small caveat: tests will keep failing, until #472 is merged and can be merged back to this branch. |
system-parachains/bridge-hubs/bridge-hub-polkadot/primitives/src/lib.rs
Outdated
Show resolved
Hide resolved
system-parachains/bridge-hubs/bridge-hub-kusama/src/bridge_to_polkadot_config.rs
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The Coretime chain related changes look good to me.
What's the state of this? Only needs reviews? |
Only reviews @franciscoaguirre. There are some "failing" migrations, but the failure is related to the spec version. Once we bump, those errors should disappear. |
/cmd help |
Command "help" has started 🚀 See logs here |
Command "help" has failed ❌! See logs here |
/cmd --help |
Command help:
|
@SBalaguer @anaelleltd just to mention this PR aims to update the Polkadot SDK version of the runtimes to the latest stable one ( |
…n instead of 1.3.4 Also, fixes a broken link.
5f44fbf
to
f54a026
Compare
* add delegated staking to kusama * delegate stake in polkadot * fmt * comment * update delegated staking pallet * fix comment * make slashes go to the treasury * update changelog * fmt
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM (not an expert on most of the changed code). Someone from bridges should certainly double-check.
|
||
type ByteFee = xcm_config::bridging::XcmBridgeHubRouterByteFee; | ||
type FeeAsset = xcm_config::bridging::XcmBridgeHubRouterFeeAssetId; | ||
// TODO: @bkontur - change to `report_bridge_status` when patched - FAIL-CI |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@bkontur will this be done before the release?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Well, the truth is, we missed the last stable202409 patch release on 14.11 with this PR. However, we are targeting the next stable202409 release on 2024-12-12.
Actually, I am working now on small nits/fixes/workarounds for this PR, should be ready today and I will remove this TODO.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this TODO: is removed as a part of pandres95#7
To reviewers: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
partial feedback, still not finished
@@ -380,6 +385,8 @@ impl pallet_mmr::Config for Runtime { | |||
type WeightInfo = (); | |||
type LeafData = pallet_beefy_mmr::Pallet<Runtime>; | |||
type BlockHashProvider = pallet_mmr::DefaultBlockHashProvider<Runtime>; | |||
#[cfg(feature = "runtime-benchmarks")] | |||
type BenchmarkHelper = (); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shouldn't this be better like this?
According to the stable2409 branch: https://github.com/paritytech/polkadot-sdk/blob/stable2409/polkadot/runtime/westend/src/lib.rs#L427
type BenchmarkHelper = (); | |
type BenchmarkHelper = parachains_paras::benchmarking::mmr_setup::MmrSetup<Runtime>; |
@@ -367,6 +372,8 @@ impl pallet_mmr::Config for Runtime { | |||
type WeightInfo = (); | |||
type LeafData = pallet_beefy_mmr::Pallet<Runtime>; | |||
type BlockHashProvider = pallet_mmr::DefaultBlockHashProvider<Runtime>; | |||
#[cfg(feature = "runtime-benchmarks")] | |||
type BenchmarkHelper = (); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shouldn't this be better like this?
According to the stable2409 branch: https://github.com/paritytech/polkadot-sdk/blob/stable2409/polkadot/runtime/westend/src/lib.rs#L427
type BenchmarkHelper = (); | |
type BenchmarkHelper = parachains_paras::benchmarking::mmr_setup::MmrSetup<Runtime>; |
// TODO: @acatangiu (bridges-v2) - add `LocalXcmChannelManager` impl - https://github.com/paritytech/parity-bridges-common/issues/3047 | ||
// @acatangiu |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
// TODO: @acatangiu (bridges-v2) - add `LocalXcmChannelManager` impl - https://github.com/paritytech/parity-bridges-common/issues/3047 | |
// @acatangiu | |
// TODO: @bkontur (bridges-v2) - add impl - FAIL-CI |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@pandres95 fixed by pandres95#7
type AllowWithoutBridgeDeposit = | ||
RelayOrOtherSystemParachains<AllSiblingSystemParachains, Runtime>; | ||
|
||
// TODO: @acatangiu (bridges-v2) - add `LocalXcmChannelManager` impl - https://github.com/paritytech/parity-bridges-common/issues/3047 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
// TODO: @acatangiu (bridges-v2) - add `LocalXcmChannelManager` impl - https://github.com/paritytech/parity-bridges-common/issues/3047 | |
// TODO: @bkontur (bridges-v2) - add impl - FAIL-CI |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@pandres95 fixed by pandres95#7
// 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. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes, it is used for PolkadotOrEthereumAssetFromAssetHubPolkadot
, which means that AHK accepts these locations as trusted reserves
// 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 PolkadotNetwork: NetworkId = NetworkId::Polkadot; | |
pub const EthereumNetwork: NetworkId = NetworkId::Ethereum { chain_id: 1 }; |
// TODO: @acatangiu, is there any specs about the deposit cost? | ||
pub storage BridgeDeposit: Balance = 10 * constants::currency::UNITS; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this TODO is fixed by: pandres95#7
// TODO: @acatangiu, is there any specs about the deposit cost? | |
pub storage BridgeDeposit: Balance = 10 * constants::currency::UNITS; |
// TODO: What's the correct value? - FAIL-CI | ||
pub storage BridgeDeposit: Balance = constants::currency::UNITS; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this TODO is fixed by pandres95#7
// TODO: What's the correct value? - FAIL-CI | |
pub storage BridgeDeposit: Balance = constants::currency::UNITS; |
* revert delegate stake configuration in kusama * update pool migrating max count
Closes #457
Closes #469
Updating the runtimes to SDK version
stable2409-1
. CHANGELOG mentions all relevant changes for UI and Walletbuilders.Checklist
stable2409
stable2409-1
Dependencies
This PR depends on certain PRs to be merged before it can properly work.
Impacts
The success of this PR impacts directly on the feasibility of executing certain issues, or closing certain PRs.
Help wanted
Initially, I request the help of:
XCMv4
.Lanes
toLegacyLane
-based lanes storage).