Skip to content
This repository was archived by the owner on May 21, 2024. It is now read-only.

Commit 8bd5d21

Browse files
author
José Molina
committed
feat: upgrade to polkadot-v1.3.0
1 parent 2911c31 commit 8bd5d21

24 files changed

Lines changed: 2807 additions & 2656 deletions

File tree

Cargo.lock

Lines changed: 2521 additions & 2140 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 115 additions & 115 deletions
Large diffs are not rendered by default.

node/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,3 +119,4 @@ try-runtime = [
119119
"trappist-runtime?/try-runtime",
120120
"try-runtime-cli/try-runtime"
121121
]
122+
parameterized-consensus-hook = []

node/src/rpc.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ use parachains_common::{AccountId, AssetIdForTrustBackedAssets as AssetId, Balan
2323
use sc_client_api::AuxStore;
2424
pub use sc_rpc::{DenyUnsafe, SubscriptionTaskExecutor};
2525
use sc_transaction_pool_api::TransactionPool;
26-
use sp_api::{CallApiAt, ProvideRuntimeApi};
26+
use sp_api::ProvideRuntimeApi;
2727
use sp_block_builder::BlockBuilder;
2828
use sp_blockchain::{Error as BlockChainError, HeaderBackend, HeaderMetadata};
2929

@@ -53,7 +53,6 @@ where
5353
+ Send
5454
+ Sync
5555
+ 'static,
56-
C: CallApiAt<Block>,
5756
C::Api: frame_rpc_system::AccountNonceApi<Block, AccountId, Nonce>,
5857
C::Api: pallet_transaction_payment_rpc::TransactionPaymentRuntimeApi<Block, Balance>,
5958
C::Api: BlockBuilder<Block>,

node/src/service.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -580,6 +580,7 @@ where
580580
collator_service,
581581
// Very limited proposal time.
582582
authoring_duration: Duration::from_millis(500),
583+
collation_request_receiver: None,
583584
};
584585

585586
let fut =

pallets/asset-registry/src/mock.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,8 +98,9 @@ impl pallet_balances::Config for Test {
9898
type FreezeIdentifier = ();
9999
type MaxLocks = ();
100100
type MaxReserves = ();
101-
type MaxHolds = ConstU32<0>;
101+
type MaxHolds = ConstU32<2>;
102102
type MaxFreezes = ConstU32<0>;
103+
type RuntimeFreezeReason = ();
103104
}
104105

105106
impl pallet_assets::Config for Test {

pallets/benchmarks/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,6 @@ std = [
3030
"frame-system/std",
3131
"sp-runtime/std",
3232
"sp-std/std",
33-
"xcm-executor/std"
33+
"xcm-executor/std",
3434
]
35-
runtime-benchmarks = ["frame-benchmarking/runtime-benchmarks"]
35+
runtime-benchmarks = ["frame-benchmarking/runtime-benchmarks"]

pallets/lockdown-mode/src/mock.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,8 +84,9 @@ impl pallet_balances::Config for Test {
8484
type FreezeIdentifier = ();
8585
type MaxLocks = ();
8686
type MaxReserves = ();
87-
type MaxHolds = ConstU32<0>;
87+
type MaxHolds = ConstU32<2>;
8888
type MaxFreezes = ConstU32<0>;
89+
type RuntimeFreezeReason = ();
8990
}
9091

9192
pub struct RuntimeBlackListedCalls;

pallets/lockdown-mode/src/tests.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,8 @@ fn call_not_filtered_in_lockdown_mode() {
8181
fn call_filtered_in_lockdown_mode() {
8282
new_test_ext(false).execute_with(|| {
8383
assert_ok!(LockdownMode::activate_lockdown_mode(RuntimeOrigin::root()));
84-
let balance_call = RuntimeCall::Balance(BalancesCall::transfer { dest: 1, value: 2 });
84+
let balance_call =
85+
RuntimeCall::Balance(BalancesCall::transfer_allow_death { dest: 1, value: 2 });
8586

8687
let result: bool = LockdownMode::contains(&balance_call);
8788
assert!(!result);
@@ -93,7 +94,8 @@ fn call_not_filtered_in_normal_mode() {
9394
new_test_ext(false).execute_with(|| {
9495
let lockdown_mode = LockdownModeStatus::<Test>::get();
9596
assert_eq!(lockdown_mode, DEACTIVATED);
96-
let balance_call = RuntimeCall::Balance(BalancesCall::transfer { dest: 1, value: 2 });
97+
let balance_call =
98+
RuntimeCall::Balance(BalancesCall::transfer_allow_death { dest: 1, value: 2 });
9799
let result: bool = LockdownMode::contains(&balance_call);
98100
assert!(result);
99101
});

pallets/withdraw-teleport/Cargo.toml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,10 @@ std = [
4444
"frame-system/std",
4545
"scale-info/std",
4646
"log/std",
47+
"xcm-executor/std",
48+
]
49+
runtime-benchmarks = [
50+
"frame-benchmarking/runtime-benchmarks",
51+
"pallet-xcm/runtime-benchmarks",
4752
]
48-
runtime-benchmarks = ["frame-benchmarking/runtime-benchmarks"]
4953
try-runtime = ["frame-support/try-runtime"]

0 commit comments

Comments
 (0)