Skip to content

Commit

Permalink
Upgrade to polkadot v1.3.0 (#12)
Browse files Browse the repository at this point in the history
* update to polkadot v1.3.0

* fix formatting

* fix compilation for ring dep

* fix build errors

* fix feature runtime-benchmarks

* remove unused dependencies
  • Loading branch information
ahmadkaouk authored Nov 23, 2023
1 parent 4304fdb commit 97011f3
Show file tree
Hide file tree
Showing 9 changed files with 834 additions and 810 deletions.
1,373 changes: 696 additions & 677 deletions Cargo.lock

Large diffs are not rendered by default.

257 changes: 126 additions & 131 deletions Cargo.toml

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion pallets/author-inherent/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -49,4 +49,4 @@ runtime-benchmarks = [
"nimbus-primitives/runtime-benchmarks",
]

try-runtime = [ "frame-support/try-runtime", "nimbus-primitives/try-runtime" ]
try-runtime = [ "frame-support/try-runtime", "nimbus-primitives/try-runtime" ]
1 change: 1 addition & 0 deletions pallets/author-mapping/src/mock.rs
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,7 @@ impl pallet_balances::Config for Runtime {
type FreezeIdentifier = ();
type MaxHolds = ();
type MaxFreezes = ();
type RuntimeFreezeReason = ();
}

parameter_types! {
Expand Down
1 change: 1 addition & 0 deletions pallets/migrations/src/mock.rs
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ impl pallet_balances::Config for Runtime {
type FreezeIdentifier = ();
type MaxHolds = ();
type MaxFreezes = ();
type RuntimeFreezeReason = ();
}

parameter_types! {
Expand Down
1 change: 1 addition & 0 deletions pallets/randomness/src/mock.rs
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ impl pallet_balances::Config for Test {
type FreezeIdentifier = ();
type MaxHolds = ();
type MaxFreezes = ();
type RuntimeFreezeReason = ();
}

parameter_types! {
Expand Down
2 changes: 2 additions & 0 deletions template/node/src/service.rs
Original file line number Diff line number Diff line change
Expand Up @@ -300,6 +300,7 @@ where
})),
warp_sync_params: None,
net_config,
block_relay: None,
})?;

let rpc_extensions_builder = {
Expand Down Expand Up @@ -499,6 +500,7 @@ pub fn start_instant_seal_node(config: Configuration) -> Result<TaskManager, sc_
block_announce_validator_builder: None,
warp_sync_params: None,
net_config,
block_relay: None,
})?;

if config.offchain_worker.enabled {
Expand Down
1 change: 1 addition & 0 deletions template/runtime/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,7 @@ runtime-benchmarks = [
"pallet-xcm/runtime-benchmarks",
"sp-runtime/runtime-benchmarks",
"staging-xcm-builder/runtime-benchmarks",
"polkadot-runtime-common/runtime-benchmarks",
]

try-runtime = [
Expand Down
6 changes: 5 additions & 1 deletion template/runtime/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,9 @@ use staging_xcm_builder::{
};
use staging_xcm_executor::{Config, XcmExecutor};

use cumulus_primitives_core::ParaId;
use polkadot_runtime_common::xcm_sender::NoPriceForMessageDelivery;

mod pallet_account_set;

/// Import the template pallet.
Expand Down Expand Up @@ -364,6 +367,7 @@ impl pallet_balances::Config for Runtime {
type MaxReserves = MaxReserves;
type ReserveIdentifier = [u8; 8];
type RuntimeHoldReason = ();
type RuntimeFreezeReason = ();
type FreezeIdentifier = ();
type MaxHolds = ConstU32<0>;
type MaxFreezes = ConstU32<0>;
Expand Down Expand Up @@ -573,7 +577,7 @@ impl cumulus_pallet_xcmp_queue::Config for Runtime {
type ControllerOrigin = EnsureRoot<AccountId>;
type ControllerOriginConverter = XcmOriginToTransactDispatchOrigin;
type WeightInfo = ();
type PriceForSiblingDelivery = ();
type PriceForSiblingDelivery = NoPriceForMessageDelivery<ParaId>;
}

impl cumulus_pallet_dmp_queue::Config for Runtime {
Expand Down

0 comments on commit 97011f3

Please sign in to comment.