From f95a3c9dc447e71703a65797c1dca7feba98eb59 Mon Sep 17 00:00:00 2001 From: Matthew Orris <--help> Date: Mon, 13 Nov 2023 10:01:54 -0700 Subject: [PATCH 01/26] chore: Replace Currency->fungible: update pallet_capacity with fungible --- pallets/capacity/src/benchmarking.rs | 3 +- pallets/capacity/src/lib.rs | 58 +++++++++++++++++++++++----- pallets/capacity/src/types.rs | 10 ++++- runtime/frequency/src/lib.rs | 7 ++-- 4 files changed, 64 insertions(+), 14 deletions(-) diff --git a/pallets/capacity/src/benchmarking.rs b/pallets/capacity/src/benchmarking.rs index 3f6fe24099..6c97e0391f 100644 --- a/pallets/capacity/src/benchmarking.rs +++ b/pallets/capacity/src/benchmarking.rs @@ -26,7 +26,8 @@ pub fn create_funded_account( whitelist_account!(user); let balance = T::Currency::minimum_balance() * balance_factor.into(); let _ = T::Currency::make_free_balance_be(&user, balance); - assert_eq!(T::Currency::free_balance(&user), balance.into()); + // REVIEW: + assert_eq!(T::fungible::Inspect::balance(&user), balance.into()); user } diff --git a/pallets/capacity/src/lib.rs b/pallets/capacity/src/lib.rs index 61640341a5..2ac309b89a 100644 --- a/pallets/capacity/src/lib.rs +++ b/pallets/capacity/src/lib.rs @@ -51,7 +51,7 @@ use frame_support::{ dispatch::DispatchResult, ensure, - traits::{Currency, Get, Hooks, LockIdentifier, LockableCurrency, WithdrawReasons}, + traits::{fungible, Get, Hooks}, weights::{constants::RocksDbWeight, Weight}, }; @@ -82,11 +82,19 @@ mod benchmarking; mod tests; pub mod weights; +// REVIEW: original +// type BalanceOf = +// <::Currency as Currency<::AccountId>>::Balance; -type BalanceOf = - <::Currency as Currency<::AccountId>>::Balance; +// type BalanceOf = +// <::FungibleToken as fungible::Inspect<::AccountId>>::Balance; + +// REVIEW: Mostly working version, except Balance doesn't have EncodeLike +use codec::EncodeLike; +type BalanceOf = <::FungibleToken as frame_support::traits::fungible::Inspect< + ::AccountId, +>>::Balance; -const STAKING_ID: LockIdentifier = *b"netstkng"; use frame_system::pallet_prelude::*; #[frame_support::pallet] pub mod pallet { @@ -95,16 +103,33 @@ pub mod pallet { use frame_support::{pallet_prelude::*, Twox64Concat}; use sp_runtime::traits::{AtLeast32BitUnsigned, MaybeDisplay}; + // REVIEW: Can I put the enum here? + /// A reason for freezing funds. + #[pallet::composite_enum] + pub enum FreezeReason { + // REVIEW: If Id is a type like this, will it fix the EncodeLike issue? + // type Id: codec::Encode + TypeInfo + 'static; + /// The account is staked. + Staked, + } + #[pallet::config] pub trait Config: frame_system::Config { /// The overarching event type. type RuntimeEvent: From> + IsType<::RuntimeEvent>; + /// The overarching freeze reason. + type RuntimeFreezeReason: From; + /// Weight information for extrinsics in this pallet. type WeightInfo: WeightInfo; /// Function that allows a balance to be locked. - type Currency: LockableCurrency>; + // REVIEW: replace LockableCurrency + // type Currency: LockableCurrency>; + type FungibleToken: fungible::InspectFreeze + + fungible::MutateFreeze + + fungible::Inspect; /// Function that checks if an MSA is a valid target. type TargetValidator: TargetValidator; @@ -473,14 +498,29 @@ impl Pallet { } /// Sets staking account details. - fn set_staking_account(staker: &T::AccountId, staking_account: &StakingAccountDetails) { - T::Currency::set_lock(STAKING_ID, &staker, staking_account.total, WithdrawReasons::all()); - StakingAccountLedger::::insert(staker, staking_account); + fn set_staking_account(staker: &T::AccountId, staking_account: &StakingAccountDetails) + // REVIEW: experimenting with restricting the EncodeLike trait + // where + // <::FungibleToken as frame_support::traits::fungible::Inspect< + // ::AccountId, + // >>::Balance: EncodeLike>, + { + // REVIEW: replace LockableCurrency + // T::Currency::set_lock(STAKING_ID, &staker, staking_account.total, WithdrawReasons::all()); + <::FungibleToken as frame_support::traits::fungible::freeze::Mutate< + T::AccountId, + >>::set_freeze(&FreezeReason::Staked.into(), staker, staking_account.total); + StakingAccountLedger::::insert(staker, staking_account.total); } /// Deletes staking account details fn delete_staking_account(staker: &T::AccountId) { - T::Currency::remove_lock(STAKING_ID, &staker); + // REVIEW: replace remove_lock with thaw + // T::FungibleToken::freeze::Mutate::thaw(STAKING_ID, staker); + <::FungibleToken as frame_support::traits::fungible::freeze::Mutate< + T::AccountId, + >>::thaw(&FreezeReason::Staked.into(), staker); + // T::Currency::remove_lock(STAKING_ID, &staker); StakingAccountLedger::::remove(&staker); } diff --git a/pallets/capacity/src/types.rs b/pallets/capacity/src/types.rs index 72f5168cb8..a5a9c86a37 100644 --- a/pallets/capacity/src/types.rs +++ b/pallets/capacity/src/types.rs @@ -49,7 +49,15 @@ impl StakingAccountDetails { staker: &T::AccountId, proposed_amount: BalanceOf, ) -> BalanceOf { - let account_balance = T::Currency::free_balance(&staker); + // REVIEW: experiments at getting the type correct/shorter + // let account_balance = T::Currency::free_balance(&staker); + // let account_balance = <::FungibleToken as frame_support::traits::fungible::Inspect<_>>::balance(&staker); + // let account_balance = T::FungibleToken::fungible::Inspect::balance(&staker); + // let account_balance = BalanceOf::::balance(&staker); + let account_balance = + <::FungibleToken as frame_support::traits::fungible::Inspect< + ::AccountId, + >>::balance(&staker); let available_staking_balance = account_balance.saturating_sub(self.total); available_staking_balance .saturating_sub(T::MinimumTokenBalance::get()) diff --git a/runtime/frequency/src/lib.rs b/runtime/frequency/src/lib.rs index 1af8603e70..37421a6ce1 100644 --- a/runtime/frequency/src/lib.rs +++ b/runtime/frequency/src/lib.rs @@ -406,7 +406,8 @@ impl pallet_msa::Config for Runtime { impl pallet_capacity::Config for Runtime { type RuntimeEvent = RuntimeEvent; type WeightInfo = pallet_capacity::weights::SubstrateWeight; - type Currency = Balances; + // REVIEW: Change Currency->Fungible + type FungibleToken = Balances; type MinimumStakingAmount = CapacityMinimumStakingAmount; type MinimumTokenBalance = CapacityMinimumTokenBalance; type TargetValidator = Msa; @@ -509,7 +510,7 @@ impl pallet_balances::Config for Runtime { type MaxHolds = ConstU32<0>; type MaxFreezes = ConstU32<0>; type RuntimeHoldReason = RuntimeHoldReason; - type FreezeIdentifier = (); + type FreezeIdentifier = RuntimeFreezeReason; } // Needs parameter_types! for the Weight type parameter_types! { @@ -1056,7 +1057,7 @@ construct_runtime!( Messages: pallet_messages::{Pallet, Call, Storage, Event} = 61, Schemas: pallet_schemas::{Pallet, Call, Storage, Event, Config} = 62, StatefulStorage: pallet_stateful_storage::{Pallet, Call, Storage, Event} = 63, - Capacity: pallet_capacity::{Pallet, Call, Storage, Event} = 64, + Capacity: pallet_capacity::{Pallet, Call, Storage, Event, FreezeReason} = 64, FrequencyTxPayment: pallet_frequency_tx_payment::{Pallet, Call, Event} = 65, Handles: pallet_handles::{Pallet, Call, Storage, Event} = 66, } From 72543faee6682abba8af16f58e67cc02559eaa54 Mon Sep 17 00:00:00 2001 From: Matthew Orris <--help> Date: Mon, 13 Nov 2023 12:43:28 -0700 Subject: [PATCH 02/26] fix: keep Currency name and update derived trait --- pallets/capacity/src/lib.rs | 31 +++++++++++++++++-------------- pallets/capacity/src/types.rs | 6 ++---- runtime/frequency/src/lib.rs | 2 +- 3 files changed, 20 insertions(+), 19 deletions(-) diff --git a/pallets/capacity/src/lib.rs b/pallets/capacity/src/lib.rs index 2ac309b89a..652da12edb 100644 --- a/pallets/capacity/src/lib.rs +++ b/pallets/capacity/src/lib.rs @@ -51,7 +51,12 @@ use frame_support::{ dispatch::DispatchResult, ensure, - traits::{fungible, Get, Hooks}, + traits::{ + fungible::{ + Inspect as FunInspect, InspectFreeze, MutateFreeze, freeze::Mutate + }, + Get, Hooks + }, weights::{constants::RocksDbWeight, Weight}, }; @@ -90,10 +95,10 @@ pub mod weights; // <::FungibleToken as fungible::Inspect<::AccountId>>::Balance; // REVIEW: Mostly working version, except Balance doesn't have EncodeLike -use codec::EncodeLike; -type BalanceOf = <::FungibleToken as frame_support::traits::fungible::Inspect< - ::AccountId, ->>::Balance; +type BalanceOf = <::Currency as FunInspect<::AccountId>>::Balance; +// ::traits::fungible::Inspect< +// ::AccountId, +// >>::Balance; use frame_system::pallet_prelude::*; #[frame_support::pallet] @@ -113,6 +118,8 @@ pub mod pallet { Staked, } + // REVIEW: Why do we need to add EncodeLike to Balance? + // use codec::EncodeLike; #[pallet::config] pub trait Config: frame_system::Config { /// The overarching event type. @@ -127,9 +134,9 @@ pub mod pallet { /// Function that allows a balance to be locked. // REVIEW: replace LockableCurrency // type Currency: LockableCurrency>; - type FungibleToken: fungible::InspectFreeze - + fungible::MutateFreeze - + fungible::Inspect; + type Currency: InspectFreeze + + MutateFreeze + + FunInspect; /// Function that checks if an MSA is a valid target. type TargetValidator: TargetValidator; @@ -507,9 +514,7 @@ impl Pallet { { // REVIEW: replace LockableCurrency // T::Currency::set_lock(STAKING_ID, &staker, staking_account.total, WithdrawReasons::all()); - <::FungibleToken as frame_support::traits::fungible::freeze::Mutate< - T::AccountId, - >>::set_freeze(&FreezeReason::Staked.into(), staker, staking_account.total); + <::Currency as Mutate< T::AccountId, >>::set_freeze(&FreezeReason::Staked.into(), staker, staking_account.total); StakingAccountLedger::::insert(staker, staking_account.total); } @@ -517,9 +522,7 @@ impl Pallet { fn delete_staking_account(staker: &T::AccountId) { // REVIEW: replace remove_lock with thaw // T::FungibleToken::freeze::Mutate::thaw(STAKING_ID, staker); - <::FungibleToken as frame_support::traits::fungible::freeze::Mutate< - T::AccountId, - >>::thaw(&FreezeReason::Staked.into(), staker); + <::Currency as Mutate< T::AccountId, >>::thaw(&FreezeReason::Staked.into(), staker); // T::Currency::remove_lock(STAKING_ID, &staker); StakingAccountLedger::::remove(&staker); } diff --git a/pallets/capacity/src/types.rs b/pallets/capacity/src/types.rs index a5a9c86a37..64955ac16e 100644 --- a/pallets/capacity/src/types.rs +++ b/pallets/capacity/src/types.rs @@ -54,10 +54,8 @@ impl StakingAccountDetails { // let account_balance = <::FungibleToken as frame_support::traits::fungible::Inspect<_>>::balance(&staker); // let account_balance = T::FungibleToken::fungible::Inspect::balance(&staker); // let account_balance = BalanceOf::::balance(&staker); - let account_balance = - <::FungibleToken as frame_support::traits::fungible::Inspect< - ::AccountId, - >>::balance(&staker); + let account_balance = T::Currency::balance(&staker); + // <::Currency as nspect<::AccountId>>::balance(&staker); let available_staking_balance = account_balance.saturating_sub(self.total); available_staking_balance .saturating_sub(T::MinimumTokenBalance::get()) diff --git a/runtime/frequency/src/lib.rs b/runtime/frequency/src/lib.rs index 37421a6ce1..069266ea88 100644 --- a/runtime/frequency/src/lib.rs +++ b/runtime/frequency/src/lib.rs @@ -407,7 +407,7 @@ impl pallet_capacity::Config for Runtime { type RuntimeEvent = RuntimeEvent; type WeightInfo = pallet_capacity::weights::SubstrateWeight; // REVIEW: Change Currency->Fungible - type FungibleToken = Balances; + type Currency = Balances; type MinimumStakingAmount = CapacityMinimumStakingAmount; type MinimumTokenBalance = CapacityMinimumTokenBalance; type TargetValidator = Msa; From 478ee54934e40681005be6ac930a2c49566cf18b Mon Sep 17 00:00:00 2001 From: Matthew Orris <--help> Date: Wed, 15 Nov 2023 08:42:03 -0700 Subject: [PATCH 03/26] fix: pallet_capacity tests working with correct types/traits --- pallets/capacity/src/lib.rs | 51 ++++++------------------------ pallets/capacity/src/tests/mock.rs | 9 +++--- pallets/capacity/src/types.rs | 6 ---- 3 files changed, 15 insertions(+), 51 deletions(-) diff --git a/pallets/capacity/src/lib.rs b/pallets/capacity/src/lib.rs index 652da12edb..1663f329e5 100644 --- a/pallets/capacity/src/lib.rs +++ b/pallets/capacity/src/lib.rs @@ -52,10 +52,8 @@ use frame_support::{ dispatch::DispatchResult, ensure, traits::{ - fungible::{ - Inspect as FunInspect, InspectFreeze, MutateFreeze, freeze::Mutate - }, - Get, Hooks + tokens::fungible::{Inspect as InspectFungible, MutateFreeze}, + Get, Hooks, }, weights::{constants::RocksDbWeight, Weight}, }; @@ -87,18 +85,8 @@ mod benchmarking; mod tests; pub mod weights; -// REVIEW: original -// type BalanceOf = -// <::Currency as Currency<::AccountId>>::Balance; - -// type BalanceOf = -// <::FungibleToken as fungible::Inspect<::AccountId>>::Balance; - -// REVIEW: Mostly working version, except Balance doesn't have EncodeLike -type BalanceOf = <::Currency as FunInspect<::AccountId>>::Balance; -// ::traits::fungible::Inspect< -// ::AccountId, -// >>::Balance; +type BalanceOf = + <::Currency as InspectFungible<::AccountId>>::Balance; use frame_system::pallet_prelude::*; #[frame_support::pallet] @@ -108,18 +96,13 @@ pub mod pallet { use frame_support::{pallet_prelude::*, Twox64Concat}; use sp_runtime::traits::{AtLeast32BitUnsigned, MaybeDisplay}; - // REVIEW: Can I put the enum here? /// A reason for freezing funds. #[pallet::composite_enum] pub enum FreezeReason { - // REVIEW: If Id is a type like this, will it fix the EncodeLike issue? - // type Id: codec::Encode + TypeInfo + 'static; /// The account is staked. Staked, } - // REVIEW: Why do we need to add EncodeLike to Balance? - // use codec::EncodeLike; #[pallet::config] pub trait Config: frame_system::Config { /// The overarching event type. @@ -132,11 +115,7 @@ pub mod pallet { type WeightInfo: WeightInfo; /// Function that allows a balance to be locked. - // REVIEW: replace LockableCurrency - // type Currency: LockableCurrency>; - type Currency: InspectFreeze - + MutateFreeze - + FunInspect; + type Currency: MutateFreeze; /// Function that checks if an MSA is a valid target. type TargetValidator: TargetValidator; @@ -505,25 +484,15 @@ impl Pallet { } /// Sets staking account details. - fn set_staking_account(staker: &T::AccountId, staking_account: &StakingAccountDetails) - // REVIEW: experimenting with restricting the EncodeLike trait - // where - // <::FungibleToken as frame_support::traits::fungible::Inspect< - // ::AccountId, - // >>::Balance: EncodeLike>, - { - // REVIEW: replace LockableCurrency - // T::Currency::set_lock(STAKING_ID, &staker, staking_account.total, WithdrawReasons::all()); - <::Currency as Mutate< T::AccountId, >>::set_freeze(&FreezeReason::Staked.into(), staker, staking_account.total); - StakingAccountLedger::::insert(staker, staking_account.total); + fn set_staking_account(staker: &T::AccountId, staking_account: &StakingAccountDetails) { + let _ = + T::Currency::set_freeze(&FreezeReason::Staked.into(), staker, staking_account.total); + StakingAccountLedger::::insert(staker, staking_account); } /// Deletes staking account details fn delete_staking_account(staker: &T::AccountId) { - // REVIEW: replace remove_lock with thaw - // T::FungibleToken::freeze::Mutate::thaw(STAKING_ID, staker); - <::Currency as Mutate< T::AccountId, >>::thaw(&FreezeReason::Staked.into(), staker); - // T::Currency::remove_lock(STAKING_ID, &staker); + let _ = T::Currency::thaw(&FreezeReason::Staked.into(), staker); StakingAccountLedger::::remove(&staker); } diff --git a/pallets/capacity/src/tests/mock.rs b/pallets/capacity/src/tests/mock.rs index 1251093e75..c6502ecc0d 100644 --- a/pallets/capacity/src/tests/mock.rs +++ b/pallets/capacity/src/tests/mock.rs @@ -24,7 +24,7 @@ construct_runtime!( System: frame_system::{Pallet, Call, Config, Storage, Event}, Balances: pallet_balances::{Pallet, Call, Storage, Config, Event}, Msa: pallet_msa::{Pallet, Call, Storage, Event}, - Capacity: pallet_capacity::{Pallet, Call, Storage, Event}, + Capacity: pallet_capacity::{Pallet, Call, Storage, Event, FreezeReason}, } ); @@ -64,10 +64,10 @@ impl pallet_balances::Config for Test { type ExistentialDeposit = ConstU64<1>; type AccountStore = System; type WeightInfo = (); - type FreezeIdentifier = (); - type MaxFreezes = ConstU32<0>; - type MaxHolds = ConstU32<0>; + type FreezeIdentifier = RuntimeFreezeReason; + type MaxFreezes = ConstU32<1>; type RuntimeHoldReason = (); + type MaxHolds = ConstU32<0>; } pub type MaxSchemaGrantsPerDelegation = ConstU32<30>; @@ -135,6 +135,7 @@ parameter_types! { impl pallet_capacity::Config for Test { type RuntimeEvent = RuntimeEvent; type WeightInfo = (); + type RuntimeFreezeReason = RuntimeFreezeReason; type Currency = pallet_balances::Pallet; type TargetValidator = Msa; // In test, this must be >= Token:Capacity ratio since unit is plancks diff --git a/pallets/capacity/src/types.rs b/pallets/capacity/src/types.rs index 64955ac16e..c939b2ef6a 100644 --- a/pallets/capacity/src/types.rs +++ b/pallets/capacity/src/types.rs @@ -49,13 +49,7 @@ impl StakingAccountDetails { staker: &T::AccountId, proposed_amount: BalanceOf, ) -> BalanceOf { - // REVIEW: experiments at getting the type correct/shorter - // let account_balance = T::Currency::free_balance(&staker); - // let account_balance = <::FungibleToken as frame_support::traits::fungible::Inspect<_>>::balance(&staker); - // let account_balance = T::FungibleToken::fungible::Inspect::balance(&staker); - // let account_balance = BalanceOf::::balance(&staker); let account_balance = T::Currency::balance(&staker); - // <::Currency as nspect<::AccountId>>::balance(&staker); let available_staking_balance = account_balance.saturating_sub(self.total); available_staking_balance .saturating_sub(T::MinimumTokenBalance::get()) From 1befab1ce992c42b5fdebe4c64b941ab48a39eb5 Mon Sep 17 00:00:00 2001 From: Matthew Orris <--help> Date: Wed, 15 Nov 2023 12:34:46 -0700 Subject: [PATCH 04/26] fix: capacity pallet tests passing; update vscode with rust std source maps; --- .vscode/settings.json | 3 +++ pallets/capacity/src/lib.rs | 7 +++++-- pallets/capacity/src/tests/other_tests.rs | 10 ++++++---- .../capacity/src/tests/stake_and_deposit_tests.rs | 14 +++++--------- .../capacity/src/tests/withdraw_unstaked_tests.rs | 12 +++++------- runtime/frequency/src/lib.rs | 1 + 6 files changed, 25 insertions(+), 22 deletions(-) diff --git a/.vscode/settings.json b/.vscode/settings.json index dc8bb82b31..639f34b040 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -16,5 +16,8 @@ // Set the features to use for cargo commands "rust-analyzer.cargo.features": [ "frequency-no-relay" + ], + "lldb.launch.preRunCommands": [ + "script lldb.debugger.HandleCommand('settings set target.source-map /rustc/{} \"{}/lib/rustlib/src/rust\"'.format(os.popen('rustc --version --verbose').read().split('commit-hash: ')[1].split('\\n')[0].strip(), os.popen('rustc --print sysroot').readline().strip()))" ] } diff --git a/pallets/capacity/src/lib.rs b/pallets/capacity/src/lib.rs index 1663f329e5..ff70702bd9 100644 --- a/pallets/capacity/src/lib.rs +++ b/pallets/capacity/src/lib.rs @@ -52,7 +52,7 @@ use frame_support::{ dispatch::DispatchResult, ensure, traits::{ - tokens::fungible::{Inspect as InspectFungible, MutateFreeze}, + tokens::fungible::{Inspect as InspectFungible, InspectFreeze, MutateFreeze}, Get, Hooks, }, weights::{constants::RocksDbWeight, Weight}, @@ -100,6 +100,7 @@ pub mod pallet { #[pallet::composite_enum] pub enum FreezeReason { /// The account is staked. + #[codec(index = 0)] Staked, } @@ -115,7 +116,9 @@ pub mod pallet { type WeightInfo: WeightInfo; /// Function that allows a balance to be locked. - type Currency: MutateFreeze; + type Currency: MutateFreeze + + InspectFreeze + + InspectFungible; /// Function that checks if an MSA is a valid target. type TargetValidator: TargetValidator; diff --git a/pallets/capacity/src/tests/other_tests.rs b/pallets/capacity/src/tests/other_tests.rs index 7a32c1a87c..cb0822d082 100644 --- a/pallets/capacity/src/tests/other_tests.rs +++ b/pallets/capacity/src/tests/other_tests.rs @@ -1,11 +1,11 @@ -use frame_support::traits::{Currency, Get}; +use frame_support::traits::{fungible::{InspectFreeze, Inspect}, Get}; use frame_system::pallet_prelude::BlockNumberFor; use sp_runtime::traits::Zero; use common_primitives::{capacity::Nontransferable, msa::MessageSourceId}; use crate::{ - BalanceOf, CapacityDetails, Config, CurrentEpoch, CurrentEpochInfo, EpochInfo, + BalanceOf, CapacityDetails, Config, CurrentEpoch, CurrentEpochInfo, EpochInfo, FreezeReason, StakingAccountDetails, StakingTargetDetails, }; @@ -72,7 +72,9 @@ fn set_staking_account_is_succesful() { Capacity::set_staking_account(&staker, &staking_account); - assert_eq!(Balances::locks(&staker)[0].amount, 55); + let frozen_balance = + ::Currency::balance_frozen(&(FreezeReason::Staked).into(), &staker); + assert_eq!(frozen_balance, 55); }); } @@ -127,7 +129,7 @@ fn it_configures_staking_minimum_greater_than_or_equal_to_existential_deposit() new_test_ext().execute_with(|| { let minimum_staking_balance_config: BalanceOf = ::MinimumStakingAmount::get(); - assert!(minimum_staking_balance_config >= ::Currency::minimum_balance()) + assert!(minimum_staking_balance_config >= ::Currency::minimum_balance()); }); } diff --git a/pallets/capacity/src/tests/stake_and_deposit_tests.rs b/pallets/capacity/src/tests/stake_and_deposit_tests.rs index 95e5b94c8d..c6d83ec924 100644 --- a/pallets/capacity/src/tests/stake_and_deposit_tests.rs +++ b/pallets/capacity/src/tests/stake_and_deposit_tests.rs @@ -1,7 +1,7 @@ use super::{mock::*, testing_utils::*}; -use crate::{BalanceOf, CapacityDetails, Error, Event, StakingAccountDetails}; +use crate::{BalanceOf, CapacityDetails, Config, Error, Event, StakingAccountDetails, FreezeReason}; use common_primitives::{capacity::Nontransferable, msa::MessageSourceId}; -use frame_support::{assert_noop, assert_ok, traits::WithdrawReasons}; +use frame_support::{assert_noop, assert_ok, traits::fungible::InspectFreeze}; use sp_runtime::ArithmeticError; #[test] @@ -39,8 +39,7 @@ fn stake_works() { let events = staking_events(); assert_eq!(events.first().unwrap(), &Event::Staked { account, target, amount, capacity }); - assert_eq!(Balances::locks(&account)[0].amount, amount); - assert_eq!(Balances::locks(&account)[0].reasons, WithdrawReasons::all().into()); + assert_eq!(::Currency::balance_frozen(&FreezeReason::Staked.into(), &account), amount); }); } @@ -100,9 +99,7 @@ fn stake_increase_stake_amount_works() { events.first().unwrap(), &Event::Staked { account, target, amount: initial_amount, capacity } ); - - assert_eq!(Balances::locks(&account)[0].amount, 50); - assert_eq!(Balances::locks(&account)[0].reasons, WithdrawReasons::all().into()); + assert_eq!(::Currency::balance_frozen(&FreezeReason::Staked.into(), &account), 50); assert_ok!(Capacity::set_epoch_length(RuntimeOrigin::root(), 10)); @@ -134,8 +131,7 @@ fn stake_increase_stake_amount_works() { &Event::Staked { account, target, amount: additional_amount, capacity } ); - assert_eq!(Balances::locks(&account)[0].amount, 150); - assert_eq!(Balances::locks(&account)[0].reasons, WithdrawReasons::all().into()); + assert_eq!(::Currency::balance_frozen(&FreezeReason::Staked.into(), &account), 150); }); } diff --git a/pallets/capacity/src/tests/withdraw_unstaked_tests.rs b/pallets/capacity/src/tests/withdraw_unstaked_tests.rs index c8356b86e7..7b49bee425 100644 --- a/pallets/capacity/src/tests/withdraw_unstaked_tests.rs +++ b/pallets/capacity/src/tests/withdraw_unstaked_tests.rs @@ -1,8 +1,8 @@ use super::{mock::*, testing_utils::run_to_block}; -use crate as pallet_capacity; +use crate::{self as pallet_capacity, FreezeReason}; use crate::StakingAccountDetails; -use frame_support::{assert_noop, assert_ok}; -use pallet_capacity::{BalanceOf, Error, Event}; +use frame_support::{assert_noop, assert_ok, traits::fungible::InspectFreeze}; +use pallet_capacity::{BalanceOf, Config, Error, Event}; #[test] fn withdraw_unstaked_happy_path() { @@ -52,8 +52,7 @@ fn withdraw_unstaked_correctly_sets_new_lock_state() { assert_eq!(true, staking_account.set_unlock_chunks(&new_unlocks)); Capacity::set_staking_account(&staker, &staking_account); - assert_eq!(1, Balances::locks(&staker).len()); - assert_eq!(10u64, Balances::locks(&staker)[0].amount); + assert_eq!(10u64, ::Currency::balance_frozen(&FreezeReason::Staked.into(), &staker)); assert_ok!(Capacity::set_epoch_length(RuntimeOrigin::root(), 10)); @@ -61,8 +60,7 @@ fn withdraw_unstaked_correctly_sets_new_lock_state() { run_to_block(31); assert_ok!(Capacity::withdraw_unstaked(RuntimeOrigin::signed(staker))); - assert_eq!(1, Balances::locks(&staker).len()); - assert_eq!(7u64, Balances::locks(&staker)[0].amount); + assert_eq!(7u64, ::Currency::balance_frozen(&FreezeReason::Staked.into(), &staker)); }) } diff --git a/runtime/frequency/src/lib.rs b/runtime/frequency/src/lib.rs index 069266ea88..cbc24f690e 100644 --- a/runtime/frequency/src/lib.rs +++ b/runtime/frequency/src/lib.rs @@ -418,6 +418,7 @@ impl pallet_capacity::Config for Runtime { type MaxEpochLength = CapacityMaxEpochLength; type EpochNumber = u32; type CapacityPerToken = CapacityPerToken; + type RuntimeFreezeReason = RuntimeFreezeReason; } impl pallet_schemas::Config for Runtime { From 7fbdf01b2ebd5fa9ad7a1b3c3fe7693d89548ae2 Mon Sep 17 00:00:00 2001 From: Matthew Orris <--help> Date: Wed, 15 Nov 2023 12:42:18 -0700 Subject: [PATCH 05/26] fix: lint changes; --- pallets/capacity/src/tests/other_tests.rs | 5 ++++- .../src/tests/stake_and_deposit_tests.rs | 19 +++++++++++++++---- .../src/tests/withdraw_unstaked_tests.rs | 13 +++++++++---- 3 files changed, 28 insertions(+), 9 deletions(-) diff --git a/pallets/capacity/src/tests/other_tests.rs b/pallets/capacity/src/tests/other_tests.rs index cb0822d082..387baa0f94 100644 --- a/pallets/capacity/src/tests/other_tests.rs +++ b/pallets/capacity/src/tests/other_tests.rs @@ -1,4 +1,7 @@ -use frame_support::traits::{fungible::{InspectFreeze, Inspect}, Get}; +use frame_support::traits::{ + fungible::{Inspect, InspectFreeze}, + Get, +}; use frame_system::pallet_prelude::BlockNumberFor; use sp_runtime::traits::Zero; diff --git a/pallets/capacity/src/tests/stake_and_deposit_tests.rs b/pallets/capacity/src/tests/stake_and_deposit_tests.rs index c6d83ec924..c43b408dbb 100644 --- a/pallets/capacity/src/tests/stake_and_deposit_tests.rs +++ b/pallets/capacity/src/tests/stake_and_deposit_tests.rs @@ -1,5 +1,7 @@ use super::{mock::*, testing_utils::*}; -use crate::{BalanceOf, CapacityDetails, Config, Error, Event, StakingAccountDetails, FreezeReason}; +use crate::{ + BalanceOf, CapacityDetails, Config, Error, Event, FreezeReason, StakingAccountDetails, +}; use common_primitives::{capacity::Nontransferable, msa::MessageSourceId}; use frame_support::{assert_noop, assert_ok, traits::fungible::InspectFreeze}; use sp_runtime::ArithmeticError; @@ -39,7 +41,10 @@ fn stake_works() { let events = staking_events(); assert_eq!(events.first().unwrap(), &Event::Staked { account, target, amount, capacity }); - assert_eq!(::Currency::balance_frozen(&FreezeReason::Staked.into(), &account), amount); + assert_eq!( + ::Currency::balance_frozen(&FreezeReason::Staked.into(), &account), + amount + ); }); } @@ -99,7 +104,10 @@ fn stake_increase_stake_amount_works() { events.first().unwrap(), &Event::Staked { account, target, amount: initial_amount, capacity } ); - assert_eq!(::Currency::balance_frozen(&FreezeReason::Staked.into(), &account), 50); + assert_eq!( + ::Currency::balance_frozen(&FreezeReason::Staked.into(), &account), + 50 + ); assert_ok!(Capacity::set_epoch_length(RuntimeOrigin::root(), 10)); @@ -131,7 +139,10 @@ fn stake_increase_stake_amount_works() { &Event::Staked { account, target, amount: additional_amount, capacity } ); - assert_eq!(::Currency::balance_frozen(&FreezeReason::Staked.into(), &account), 150); + assert_eq!( + ::Currency::balance_frozen(&FreezeReason::Staked.into(), &account), + 150 + ); }); } diff --git a/pallets/capacity/src/tests/withdraw_unstaked_tests.rs b/pallets/capacity/src/tests/withdraw_unstaked_tests.rs index 7b49bee425..5f0b316c49 100644 --- a/pallets/capacity/src/tests/withdraw_unstaked_tests.rs +++ b/pallets/capacity/src/tests/withdraw_unstaked_tests.rs @@ -1,6 +1,5 @@ use super::{mock::*, testing_utils::run_to_block}; -use crate::{self as pallet_capacity, FreezeReason}; -use crate::StakingAccountDetails; +use crate::{self as pallet_capacity, FreezeReason, StakingAccountDetails}; use frame_support::{assert_noop, assert_ok, traits::fungible::InspectFreeze}; use pallet_capacity::{BalanceOf, Config, Error, Event}; @@ -52,7 +51,10 @@ fn withdraw_unstaked_correctly_sets_new_lock_state() { assert_eq!(true, staking_account.set_unlock_chunks(&new_unlocks)); Capacity::set_staking_account(&staker, &staking_account); - assert_eq!(10u64, ::Currency::balance_frozen(&FreezeReason::Staked.into(), &staker)); + assert_eq!( + 10u64, + ::Currency::balance_frozen(&FreezeReason::Staked.into(), &staker) + ); assert_ok!(Capacity::set_epoch_length(RuntimeOrigin::root(), 10)); @@ -60,7 +62,10 @@ fn withdraw_unstaked_correctly_sets_new_lock_state() { run_to_block(31); assert_ok!(Capacity::withdraw_unstaked(RuntimeOrigin::signed(staker))); - assert_eq!(7u64, ::Currency::balance_frozen(&FreezeReason::Staked.into(), &staker)); + assert_eq!( + 7u64, + ::Currency::balance_frozen(&FreezeReason::Staked.into(), &staker) + ); }) } From 7eceac4bd15ff753343d93ae40e653efb70d96a7 Mon Sep 17 00:00:00 2001 From: Matthew Orris <--help> Date: Wed, 15 Nov 2023 14:30:53 -0700 Subject: [PATCH 06/26] fix: benchmarks updates for Currency trait --- pallets/capacity/src/benchmarking.rs | 7 +++---- pallets/capacity/src/lib.rs | 3 ++- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/pallets/capacity/src/benchmarking.rs b/pallets/capacity/src/benchmarking.rs index 6c97e0391f..b85f709734 100644 --- a/pallets/capacity/src/benchmarking.rs +++ b/pallets/capacity/src/benchmarking.rs @@ -2,7 +2,7 @@ use super::*; use crate::Pallet as Capacity; use frame_benchmarking::{account, benchmarks, whitelist_account}; -use frame_support::{assert_ok, traits::Currency}; +use frame_support::assert_ok; use frame_system::RawOrigin; use parity_scale_codec::alloc::vec::Vec; @@ -25,9 +25,8 @@ pub fn create_funded_account( let user = account(string, n, SEED); whitelist_account!(user); let balance = T::Currency::minimum_balance() * balance_factor.into(); - let _ = T::Currency::make_free_balance_be(&user, balance); - // REVIEW: - assert_eq!(T::fungible::Inspect::balance(&user), balance.into()); + let _ = T::Currency::set_balance(&user, balance); + assert_eq!(T::Currency::balance(&user), balance.into()); user } diff --git a/pallets/capacity/src/lib.rs b/pallets/capacity/src/lib.rs index ff70702bd9..6cd02d2d95 100644 --- a/pallets/capacity/src/lib.rs +++ b/pallets/capacity/src/lib.rs @@ -52,7 +52,7 @@ use frame_support::{ dispatch::DispatchResult, ensure, traits::{ - tokens::fungible::{Inspect as InspectFungible, InspectFreeze, MutateFreeze}, + tokens::fungible::{Inspect as InspectFungible, InspectFreeze, Mutate, MutateFreeze}, Get, Hooks, }, weights::{constants::RocksDbWeight, Weight}, @@ -117,6 +117,7 @@ pub mod pallet { /// Function that allows a balance to be locked. type Currency: MutateFreeze + + Mutate + InspectFreeze + InspectFungible; From 1dad90988048a2af4410d7738c9426dbda648627 Mon Sep 17 00:00:00 2001 From: Matthew Orris <--help> Date: Fri, 17 Nov 2023 16:19:57 -0700 Subject: [PATCH 07/26] fix: time-release pallet updated with fungible traits; test working --- pallets/time-release/src/lib.rs | 54 +++++++----- pallets/time-release/src/mock.rs | 10 ++- pallets/time-release/src/tests.rs | 131 ++++++++++++++++++++++-------- runtime/frequency/src/lib.rs | 4 +- 4 files changed, 140 insertions(+), 59 deletions(-) diff --git a/pallets/time-release/src/lib.rs b/pallets/time-release/src/lib.rs index e3048bdcf3..ece108e569 100644 --- a/pallets/time-release/src/lib.rs +++ b/pallets/time-release/src/lib.rs @@ -40,8 +40,11 @@ use frame_support::{ ensure, pallet_prelude::*, traits::{ - BuildGenesisConfig, Currency, EnsureOrigin, ExistenceRequirement, Get, LockIdentifier, - LockableCurrency, WithdrawReasons, + tokens::{ + fungible::{Inspect as InspectFungible, Mutate, MutateFreeze}, + Balance, Preservation, + }, + BuildGenesisConfig, EnsureOrigin, Get, }, BoundedVec, }; @@ -68,15 +71,13 @@ mod benchmarking; pub use module::*; -/// The lock identifier for timed released transfers. -pub const RELEASE_LOCK_ID: LockIdentifier = *b"timeRels"; - #[frame_support::pallet] pub mod module { use super::*; - pub(crate) type BalanceOf = - <::Currency as Currency<::AccountId>>::Balance; + pub(crate) type BalanceOf = <::Currency as InspectFungible< + ::AccountId, + >>::Balance; pub(crate) type ReleaseScheduleOf = ReleaseSchedule, BalanceOf>; /// Scheduled item used for configuring genesis. @@ -88,13 +89,30 @@ pub mod module { BalanceOf, ); + /// A reason for freezing funds. + #[pallet::composite_enum] + pub enum FreezeReason { + /// The account is staked. + #[codec(index = 0)] + Staked, + /// An account with time released assets. + TimeReleased, + } #[pallet::config] pub trait Config: frame_system::Config { /// The overarching event type. type RuntimeEvent: From> + IsType<::RuntimeEvent>; + /// The overarching freeze reason. + type RuntimeFreezeReason: From; + + /// We need MaybeSerializeDeserialize because of the genesis config. + type Balance: Balance + MaybeSerializeDeserialize; + /// The currency trait used to set a lock on a balance. - type Currency: LockableCurrency>; + type Currency: MutateFreeze + + InspectFungible + + Mutate; #[pallet::constant] /// The minimum amount transferred to call `transfer`. @@ -207,15 +225,14 @@ pub mod module { .expect("Invalid release schedule"); assert!( - T::Currency::free_balance(who) >= total_amount, + T::Currency::balance(who) >= total_amount, "Account do not have enough balance" ); - T::Currency::set_lock( - RELEASE_LOCK_ID, + let _ = T::Currency::set_freeze( + &FreezeReason::TimeReleased.into(), who, total_amount, - WithdrawReasons::all(), ); ReleaseSchedules::::insert(who, bounded_schedules); }); @@ -268,7 +285,7 @@ pub mod module { if to == from { ensure!( - T::Currency::free_balance(&from) >= + T::Currency::balance(&from) >= schedule.total_amount().ok_or(ArithmeticError::Overflow)?, Error::::InsufficientBalanceToLock, ); @@ -385,7 +402,7 @@ impl Pallet { .checked_add(&schedule_amount) .ok_or(ArithmeticError::Overflow)?; - T::Currency::transfer(from, to, schedule_amount, ExistenceRequirement::AllowDeath)?; + T::Currency::transfer(from, to, schedule_amount, Preservation::Expendable)?; Self::update_lock(&to, total_amount); @@ -418,10 +435,7 @@ impl Pallet { }, )?; - ensure!( - T::Currency::free_balance(who) >= total_amount, - Error::::InsufficientBalanceToLock, - ); + ensure!(T::Currency::balance(who) >= total_amount, Error::::InsufficientBalanceToLock,); Self::update_lock(&who, total_amount); Self::set_schedules_for(who, bounded_schedules); @@ -430,11 +444,11 @@ impl Pallet { } fn update_lock(who: &T::AccountId, locked: BalanceOf) { - T::Currency::set_lock(RELEASE_LOCK_ID, who, locked, WithdrawReasons::all()); + let _ = T::Currency::set_freeze(&FreezeReason::TimeReleased.into(), who, locked); } fn delete_lock(who: &T::AccountId) { - T::Currency::remove_lock(RELEASE_LOCK_ID, who); + let _ = T::Currency::thaw(&FreezeReason::TimeReleased.into(), who); } fn set_schedules_for( diff --git a/pallets/time-release/src/mock.rs b/pallets/time-release/src/mock.rs index 7234eea925..a55c12b84f 100644 --- a/pallets/time-release/src/mock.rs +++ b/pallets/time-release/src/mock.rs @@ -50,10 +50,10 @@ impl pallet_balances::Config for Test { type MaxReserves = (); type ReserveIdentifier = [u8; 8]; type WeightInfo = (); - type FreezeIdentifier = (); - type MaxHolds = ConstU32<0>; - type MaxFreezes = ConstU32<0>; + type FreezeIdentifier = RuntimeFreezeReason; + type MaxFreezes = ConstU32<1>; type RuntimeHoldReason = (); + type MaxHolds = ConstU32<0>; } pub struct EnsureAliceOrBob; @@ -99,6 +99,8 @@ impl Config for Test { type WeightInfo = (); type MaxReleaseSchedules = ConstU32<50>; type BlockNumberProvider = MockBlockNumberProvider; + type RuntimeFreezeReason = RuntimeFreezeReason; + type Balance = Balance; } type Block = frame_system::mocking::MockBlockU32; @@ -107,7 +109,7 @@ construct_runtime!( pub enum Test { System: frame_system::{Pallet, Call, Storage, Config, Event}, - TimeRelease: pallet_time_release::{Pallet, Storage, Call, Event, Config}, + TimeRelease: pallet_time_release::{Pallet, Storage, Call, Event, Config, FreezeReason}, PalletBalances: pallet_balances::{Pallet, Call, Storage, Config, Event}, } ); diff --git a/pallets/time-release/src/tests.rs b/pallets/time-release/src/tests.rs index 6b7df0fae3..44dc86804f 100644 --- a/pallets/time-release/src/tests.rs +++ b/pallets/time-release/src/tests.rs @@ -1,9 +1,16 @@ //! Unit tests for the time-release module. use super::*; use chrono::{DateTime, Days, Duration, TimeZone, Utc}; -use frame_support::{assert_noop, assert_ok, error::BadOrigin, traits::Imbalance}; +use frame_support::{ + assert_noop, assert_ok, + error::BadOrigin, + traits::{ + fungible::{Inspect, InspectFreeze}, + tokens::Fortitude, + Currency, WithdrawReasons, + }, +}; use mock::*; -use pallet_balances::{BalanceLock, Reasons}; use sp_runtime::{traits::Dispatchable, SaturatedConversion, TokenError}; #[test] @@ -113,8 +120,8 @@ fn add_new_release_schedule_merges_with_current_locked_balance_and_until() { assert_ok!(TimeRelease::transfer(RuntimeOrigin::signed(ALICE), BOB, another_schedule)); assert_eq!( - PalletBalances::locks(&BOB).get(0), - Some(&BalanceLock { id: RELEASE_LOCK_ID, amount: 17u64, reasons: Reasons::All }) + ::Currency::balance_frozen(&FreezeReason::TimeReleased.into(), &BOB), + 17u64 ); }); } @@ -218,10 +225,13 @@ fn claim_works() { assert!(!ReleaseSchedules::::contains_key(BOB)); assert_ok!(PalletBalances::transfer_allow_death(RuntimeOrigin::signed(BOB), ALICE, 10)); // all used up - assert_eq!(PalletBalances::free_balance(BOB), 0); + assert_eq!(::Currency::balance(&BOB), 0); // no locks anymore - assert_eq!(PalletBalances::locks(&BOB), vec![]); + assert_eq!( + ::Currency::balance_frozen(&FreezeReason::TimeReleased.into(), &BOB), + 0 + ); }); } @@ -235,8 +245,8 @@ fn claim_for_works() { assert_ok!(TimeRelease::claim_for(RuntimeOrigin::signed(ALICE), BOB)); assert_eq!( - PalletBalances::locks(&BOB).get(0), - Some(&BalanceLock { id: RELEASE_LOCK_ID, amount: 20u64, reasons: Reasons::All }) + ::Currency::balance_frozen(&FreezeReason::TimeReleased.into(), &BOB), + 20u64 ); assert!(ReleaseSchedules::::contains_key(&BOB)); @@ -245,7 +255,10 @@ fn claim_for_works() { assert_ok!(TimeRelease::claim_for(RuntimeOrigin::signed(ALICE), BOB)); // no locks anymore - assert_eq!(PalletBalances::locks(&BOB), vec![]); + assert_eq!( + ::Currency::balance_frozen(&FreezeReason::TimeReleased.into(), &BOB), + 0 + ); assert!(!ReleaseSchedules::::contains_key(&BOB)); }); } @@ -276,12 +289,15 @@ fn update_release_schedules_works() { // empty release schedules cleanup the storage and unlock the fund assert!(ReleaseSchedules::::contains_key(BOB)); assert_eq!( - PalletBalances::locks(&BOB).get(0), - Some(&BalanceLock { id: RELEASE_LOCK_ID, amount: 10u64, reasons: Reasons::All }) + ::Currency::balance_frozen(&FreezeReason::TimeReleased.into(), &BOB), + 10u64 ); assert_ok!(TimeRelease::update_release_schedules(RuntimeOrigin::root(), BOB, vec![])); assert!(!ReleaseSchedules::::contains_key(BOB)); - assert_eq!(PalletBalances::locks(&BOB), vec![]); + assert_eq!( + ::Currency::balance_frozen(&FreezeReason::TimeReleased.into(), &BOB), + 0 + ); }); } @@ -289,7 +305,8 @@ fn update_release_schedules_works() { fn update_release_schedules_fails_if_unexpected_existing_locks() { ExtBuilder::build().execute_with(|| { assert_ok!(PalletBalances::transfer_allow_death(RuntimeOrigin::signed(ALICE), BOB, 1)); - PalletBalances::set_lock(*b"prelocks", &BOB, 0u64, WithdrawReasons::all()); + let _ = + ::Currency::set_freeze(&FreezeReason::TimeReleased.into(), &BOB, 0u64); }); } @@ -330,7 +347,10 @@ fn multiple_release_schedule_claim_works() { assert!(!ReleaseSchedules::::contains_key(&BOB)); - assert_eq!(PalletBalances::locks(&BOB), vec![]); + assert_eq!( + ::Currency::balance_frozen(&FreezeReason::TimeReleased.into(), &BOB), + 0 + ); }); } @@ -380,19 +400,25 @@ fn cliff_release_works() { per_period: VESTING_AMOUNT, }; - let balance_lock = - BalanceLock { id: RELEASE_LOCK_ID, amount: VESTING_AMOUNT, reasons: Reasons::All }; - - assert_eq!(PalletBalances::free_balance(BOB), 0); + assert_eq!(::Currency::balance(&BOB), 0); assert_ok!(TimeRelease::transfer(RuntimeOrigin::signed(ALICE), BOB, cliff_schedule)); - assert_eq!(PalletBalances::free_balance(BOB), VESTING_AMOUNT); - assert_eq!(PalletBalances::locks(&BOB), vec![balance_lock.clone()]); + assert_eq!(::Currency::balance(&BOB), VESTING_AMOUNT); + assert_eq!( + ::Currency::balance_frozen(&FreezeReason::TimeReleased.into(), &BOB), + VESTING_AMOUNT + ); for i in 1..VESTING_PERIOD { MockBlockNumberProvider::set(i); assert_ok!(TimeRelease::claim(RuntimeOrigin::signed(BOB))); - assert_eq!(PalletBalances::free_balance(BOB), VESTING_AMOUNT); - assert_eq!(PalletBalances::locks(&BOB), vec![balance_lock.clone()]); + assert_eq!(::Currency::balance(&BOB), VESTING_AMOUNT); + assert_eq!( + ::Currency::balance_frozen( + &FreezeReason::TimeReleased.into(), + &BOB + ), + VESTING_AMOUNT + ); assert_noop!( PalletBalances::transfer_allow_death( RuntimeOrigin::signed(BOB), @@ -405,7 +431,10 @@ fn cliff_release_works() { MockBlockNumberProvider::set(VESTING_PERIOD); assert_ok!(TimeRelease::claim(RuntimeOrigin::signed(BOB))); - assert!(PalletBalances::locks(&BOB).is_empty()); + assert_eq!( + ::Currency::balance_frozen(&FreezeReason::TimeReleased.into(), &BOB), + 0 + ); assert_ok!(PalletBalances::transfer_allow_death( RuntimeOrigin::signed(BOB), CHARLIE, @@ -454,19 +483,36 @@ fn alice_time_releases_schedule() { // Bob starts with zero balance and zero locks. assert_eq!(get_balance::(&BOB), 0); - assert!(PalletBalances::locks(&BOB).is_empty()); + assert_eq!( + ::Currency::balance_frozen(&FreezeReason::TimeReleased.into(), &BOB), + 0 + ); // Time release transfer is initiated by Alice to Bob. As a result, Bobs free-balance // increases by the total amount scheduled to be time-released. // However, it cannot spent because a lock is put on the balance. assert_ok!(TimeRelease::transfer(RuntimeOrigin::signed(ALICE), BOB, schedule)); assert_eq!(get_balance::(&BOB), 24_996); - assert_eq!(PalletBalances::locks(&BOB).len(), 1usize); + assert_eq!( + ::Currency::balance_frozen(&FreezeReason::TimeReleased.into(), &BOB), + 24996 + ); + assert_eq!( + ::Currency::reducible_balance( + &BOB, + Preservation::Expendable, + Fortitude::Polite + ), + 0 + ); // Bob naively attempts to claim the transfer before the scheduled release date // and nothing happens because the schedule release has yet to start. assert_ok!(TimeRelease::claim(RuntimeOrigin::signed(BOB))); - assert_eq!(PalletBalances::locks(&BOB).first().unwrap().amount, 24_996); + assert_eq!( + ::Currency::balance_frozen(&FreezeReason::TimeReleased.into(), &BOB), + 24_996 + ); let time_release_transfer_data: Vec<(DateTime, _)> = time_release_transfers_data::(); @@ -494,7 +540,10 @@ fn alice_time_releases_schedule() { // Doing a claim does not do anything assert_ok!(TimeRelease::claim(RuntimeOrigin::signed(BOB))); // Since the first issuance the total amount locked increases by the new transfers: 24_996; - assert_eq!(PalletBalances::locks(&BOB).first().unwrap().amount, total_locked); + assert_eq!( + ::Currency::balance_frozen(&FreezeReason::TimeReleased.into(), &BOB), + total_locked + ); let july_2024_sept_2024: Vec> = vec![ Utc.with_ymd_and_hms(2024, 7, 1, 0, 0, 0).unwrap(), @@ -509,7 +558,13 @@ fn alice_time_releases_schedule() { MockBlockNumberProvider::set(date_to_approximate_block_number(month.clone()).into()); assert_ok!(TimeRelease::claim(RuntimeOrigin::signed(BOB))); total_locked -= 4_166 as u64; - assert_eq!(PalletBalances::locks(&BOB).first().unwrap().amount, total_locked); + assert_eq!( + ::Currency::balance_frozen( + &FreezeReason::TimeReleased.into(), + &BOB + ), + total_locked + ); } // quarter-6: time-release transfer AND monthly claim @@ -530,7 +585,10 @@ fn alice_time_releases_schedule() { // new transfer_total - one_month_of_time_release total_locked += total_transfered; total_locked -= 4_166; - assert_eq!(PalletBalances::locks(&BOB).first().unwrap().amount, total_locked); + assert_eq!( + ::Currency::balance_frozen(&FreezeReason::TimeReleased.into(), &BOB), + total_locked + ); // quarter-7-12: time-release transfer AND monthly claim let jan_2025_to_april_2026_quarterly_data = &time_release_transfer_data[6..]; @@ -557,18 +615,23 @@ fn alice_time_releases_schedule() { .into(), ); assert_ok!(TimeRelease::claim(RuntimeOrigin::signed(BOB))); - assert_eq!(PalletBalances::locks(&BOB).first(), None); + assert_eq!( + ::Currency::balance_frozen(&FreezeReason::TimeReleased.into(), &BOB), + 0 + ); }); } fn get_balance(who: &T::AccountId) -> BalanceOf { - T::Currency::free_balance(who) + T::Currency::balance(who) } fn set_balance(who: &T::AccountId, balance: BalanceOf) { - let deposit_result = T::Currency::deposit_creating(who, balance.saturated_into()); - let actual_deposit = deposit_result.peek(); - assert_eq!(balance, actual_deposit); + let _ = T::Currency::mint_into(&who, balance.saturated_into()); + assert_eq!( + T::Currency::balance(who).saturated_into::(), + balance.saturated_into::() + 100u64 + ); } fn build_time_release_schedule( diff --git a/runtime/frequency/src/lib.rs b/runtime/frequency/src/lib.rs index cbc24f690e..5f3a91aa03 100644 --- a/runtime/frequency/src/lib.rs +++ b/runtime/frequency/src/lib.rs @@ -468,6 +468,7 @@ pub type MaxReleaseSchedules = ConstU32<{ MAX_RELEASE_SCHEDULES }>; // the descriptions of these configs. impl pallet_time_release::Config for Runtime { type RuntimeEvent = RuntimeEvent; + type Balance = Balance; type Currency = Balances; type MinReleaseTransfer = MinReleaseTransfer; type TransferOrigin = EnsureSigned; @@ -477,6 +478,7 @@ impl pallet_time_release::Config for Runtime { type BlockNumberProvider = RelaychainDataProvider; #[cfg(feature = "frequency-no-relay")] type BlockNumberProvider = System; + type RuntimeFreezeReason = RuntimeFreezeReason; } // See https://paritytech.github.io/substrate/master/pallet_timestamp/index.html for @@ -1051,7 +1053,7 @@ construct_runtime!( Multisig: pallet_multisig::{Pallet, Call, Storage, Event} = 30, // FRQC Update - TimeRelease: pallet_time_release::{Pallet, Call, Storage, Event, Config} = 40, + TimeRelease: pallet_time_release::{Pallet, Call, Storage, Event, Config, FreezeReason} = 40, // Frequency related pallets Msa: pallet_msa::{Pallet, Call, Storage, Event} = 60, From 02f57a0b7b5718b13b2d8d89aeea77bc638c819e Mon Sep 17 00:00:00 2001 From: Matthew Orris <--help> Date: Fri, 17 Nov 2023 16:50:22 -0700 Subject: [PATCH 08/26] fix: time-release runtime-benchmarks errors --- pallets/time-release/src/benchmarking.rs | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/pallets/time-release/src/benchmarking.rs b/pallets/time-release/src/benchmarking.rs index 685d0bcb37..dfc25d4864 100644 --- a/pallets/time-release/src/benchmarking.rs +++ b/pallets/time-release/src/benchmarking.rs @@ -4,7 +4,6 @@ use super::*; use crate::Pallet as TimeReleasePallet; use frame_benchmarking::{account, benchmarks, whitelist_account, whitelisted_caller}; -use frame_support::traits::{Currency, Imbalance}; use frame_system::{pallet_prelude::BlockNumberFor, RawOrigin}; use sp_runtime::{traits::TrailingZeroInput, SaturatedConversion}; use sp_std::prelude::*; @@ -16,10 +15,13 @@ pub type Schedule = ReleaseSchedule, BalanceOf>; const SEED: u32 = 0; +// TODO: this function is duplicated in pallets/time-release/src/mock.rs fn set_balance(who: &T::AccountId, balance: BalanceOf) { - let deposit_result = T::Currency::deposit_creating(who, balance.saturated_into()); - let actual_deposit = deposit_result.peek(); - assert_eq!(balance, actual_deposit); + let _ = T::Currency::mint_into(&who, balance.saturated_into()); + assert_eq!( + T::Currency::balance(who).saturated_into::(), + balance.saturated_into::() + 100u64 + ); } fn lookup_of_account( @@ -76,7 +78,7 @@ benchmarks! { }: _(RawOrigin::Signed(to.clone())) verify { assert_eq!( - T::Currency::free_balance(&to), + T::Currency::balance(&to), schedule.total_amount().unwrap() * BalanceOf::::from(i) , ); } @@ -103,7 +105,7 @@ benchmarks! { }: _(RawOrigin::Root, to_lookup, schedules) verify { assert_eq!( - T::Currency::free_balance(&to), + T::Currency::balance(&to), schedule.total_amount().unwrap() * BalanceOf::::from(i) ); } From 225b3456f37abf2bc985fbf90c53cbb645fb2dd4 Mon Sep 17 00:00:00 2001 From: Matthew Orris <--help> Date: Mon, 20 Nov 2023 14:27:31 -0700 Subject: [PATCH 09/26] fix: update comments; rename FreezeReason::TimeReleased --- pallets/capacity/src/lib.rs | 4 ++-- pallets/time-release/src/lib.rs | 12 +++++------ pallets/time-release/src/tests.rs | 36 +++++++++++++++---------------- 3 files changed, 25 insertions(+), 27 deletions(-) diff --git a/pallets/capacity/src/lib.rs b/pallets/capacity/src/lib.rs index 6cd02d2d95..07cd7e9a15 100644 --- a/pallets/capacity/src/lib.rs +++ b/pallets/capacity/src/lib.rs @@ -99,7 +99,7 @@ pub mod pallet { /// A reason for freezing funds. #[pallet::composite_enum] pub enum FreezeReason { - /// The account is staked. + /// The account has staked tokens to the Frequency network. #[codec(index = 0)] Staked, } @@ -115,7 +115,7 @@ pub mod pallet { /// Weight information for extrinsics in this pallet. type WeightInfo: WeightInfo; - /// Function that allows a balance to be locked. + /// Functions that allow a fungible balance to be changed or frozen. type Currency: MutateFreeze + Mutate + InspectFreeze diff --git a/pallets/time-release/src/lib.rs b/pallets/time-release/src/lib.rs index ece108e569..593cf18e0c 100644 --- a/pallets/time-release/src/lib.rs +++ b/pallets/time-release/src/lib.rs @@ -92,11 +92,9 @@ pub mod module { /// A reason for freezing funds. #[pallet::composite_enum] pub enum FreezeReason { - /// The account is staked. + /// Funds are currently locked and are not yet liquid. #[codec(index = 0)] - Staked, - /// An account with time released assets. - TimeReleased, + NotYetVested, } #[pallet::config] pub trait Config: frame_system::Config { @@ -230,7 +228,7 @@ pub mod module { ); let _ = T::Currency::set_freeze( - &FreezeReason::TimeReleased.into(), + &FreezeReason::NotYetVested.into(), who, total_amount, ); @@ -444,11 +442,11 @@ impl Pallet { } fn update_lock(who: &T::AccountId, locked: BalanceOf) { - let _ = T::Currency::set_freeze(&FreezeReason::TimeReleased.into(), who, locked); + let _ = T::Currency::set_freeze(&FreezeReason::NotYetVested.into(), who, locked); } fn delete_lock(who: &T::AccountId) { - let _ = T::Currency::thaw(&FreezeReason::TimeReleased.into(), who); + let _ = T::Currency::thaw(&FreezeReason::NotYetVested.into(), who); } fn set_schedules_for( diff --git a/pallets/time-release/src/tests.rs b/pallets/time-release/src/tests.rs index 44dc86804f..13b1a0f7fe 100644 --- a/pallets/time-release/src/tests.rs +++ b/pallets/time-release/src/tests.rs @@ -120,7 +120,7 @@ fn add_new_release_schedule_merges_with_current_locked_balance_and_until() { assert_ok!(TimeRelease::transfer(RuntimeOrigin::signed(ALICE), BOB, another_schedule)); assert_eq!( - ::Currency::balance_frozen(&FreezeReason::TimeReleased.into(), &BOB), + ::Currency::balance_frozen(&FreezeReason::NotYetVested.into(), &BOB), 17u64 ); }); @@ -229,7 +229,7 @@ fn claim_works() { // no locks anymore assert_eq!( - ::Currency::balance_frozen(&FreezeReason::TimeReleased.into(), &BOB), + ::Currency::balance_frozen(&FreezeReason::NotYetVested.into(), &BOB), 0 ); }); @@ -245,7 +245,7 @@ fn claim_for_works() { assert_ok!(TimeRelease::claim_for(RuntimeOrigin::signed(ALICE), BOB)); assert_eq!( - ::Currency::balance_frozen(&FreezeReason::TimeReleased.into(), &BOB), + ::Currency::balance_frozen(&FreezeReason::NotYetVested.into(), &BOB), 20u64 ); assert!(ReleaseSchedules::::contains_key(&BOB)); @@ -256,7 +256,7 @@ fn claim_for_works() { // no locks anymore assert_eq!( - ::Currency::balance_frozen(&FreezeReason::TimeReleased.into(), &BOB), + ::Currency::balance_frozen(&FreezeReason::NotYetVested.into(), &BOB), 0 ); assert!(!ReleaseSchedules::::contains_key(&BOB)); @@ -289,13 +289,13 @@ fn update_release_schedules_works() { // empty release schedules cleanup the storage and unlock the fund assert!(ReleaseSchedules::::contains_key(BOB)); assert_eq!( - ::Currency::balance_frozen(&FreezeReason::TimeReleased.into(), &BOB), + ::Currency::balance_frozen(&FreezeReason::NotYetVested.into(), &BOB), 10u64 ); assert_ok!(TimeRelease::update_release_schedules(RuntimeOrigin::root(), BOB, vec![])); assert!(!ReleaseSchedules::::contains_key(BOB)); assert_eq!( - ::Currency::balance_frozen(&FreezeReason::TimeReleased.into(), &BOB), + ::Currency::balance_frozen(&FreezeReason::NotYetVested.into(), &BOB), 0 ); }); @@ -306,7 +306,7 @@ fn update_release_schedules_fails_if_unexpected_existing_locks() { ExtBuilder::build().execute_with(|| { assert_ok!(PalletBalances::transfer_allow_death(RuntimeOrigin::signed(ALICE), BOB, 1)); let _ = - ::Currency::set_freeze(&FreezeReason::TimeReleased.into(), &BOB, 0u64); + ::Currency::set_freeze(&FreezeReason::NotYetVested.into(), &BOB, 0u64); }); } @@ -348,7 +348,7 @@ fn multiple_release_schedule_claim_works() { assert!(!ReleaseSchedules::::contains_key(&BOB)); assert_eq!( - ::Currency::balance_frozen(&FreezeReason::TimeReleased.into(), &BOB), + ::Currency::balance_frozen(&FreezeReason::NotYetVested.into(), &BOB), 0 ); }); @@ -404,7 +404,7 @@ fn cliff_release_works() { assert_ok!(TimeRelease::transfer(RuntimeOrigin::signed(ALICE), BOB, cliff_schedule)); assert_eq!(::Currency::balance(&BOB), VESTING_AMOUNT); assert_eq!( - ::Currency::balance_frozen(&FreezeReason::TimeReleased.into(), &BOB), + ::Currency::balance_frozen(&FreezeReason::NotYetVested.into(), &BOB), VESTING_AMOUNT ); @@ -414,7 +414,7 @@ fn cliff_release_works() { assert_eq!(::Currency::balance(&BOB), VESTING_AMOUNT); assert_eq!( ::Currency::balance_frozen( - &FreezeReason::TimeReleased.into(), + &FreezeReason::NotYetVested.into(), &BOB ), VESTING_AMOUNT @@ -432,7 +432,7 @@ fn cliff_release_works() { MockBlockNumberProvider::set(VESTING_PERIOD); assert_ok!(TimeRelease::claim(RuntimeOrigin::signed(BOB))); assert_eq!( - ::Currency::balance_frozen(&FreezeReason::TimeReleased.into(), &BOB), + ::Currency::balance_frozen(&FreezeReason::NotYetVested.into(), &BOB), 0 ); assert_ok!(PalletBalances::transfer_allow_death( @@ -484,7 +484,7 @@ fn alice_time_releases_schedule() { // Bob starts with zero balance and zero locks. assert_eq!(get_balance::(&BOB), 0); assert_eq!( - ::Currency::balance_frozen(&FreezeReason::TimeReleased.into(), &BOB), + ::Currency::balance_frozen(&FreezeReason::NotYetVested.into(), &BOB), 0 ); @@ -494,7 +494,7 @@ fn alice_time_releases_schedule() { assert_ok!(TimeRelease::transfer(RuntimeOrigin::signed(ALICE), BOB, schedule)); assert_eq!(get_balance::(&BOB), 24_996); assert_eq!( - ::Currency::balance_frozen(&FreezeReason::TimeReleased.into(), &BOB), + ::Currency::balance_frozen(&FreezeReason::NotYetVested.into(), &BOB), 24996 ); assert_eq!( @@ -510,7 +510,7 @@ fn alice_time_releases_schedule() { // and nothing happens because the schedule release has yet to start. assert_ok!(TimeRelease::claim(RuntimeOrigin::signed(BOB))); assert_eq!( - ::Currency::balance_frozen(&FreezeReason::TimeReleased.into(), &BOB), + ::Currency::balance_frozen(&FreezeReason::NotYetVested.into(), &BOB), 24_996 ); @@ -541,7 +541,7 @@ fn alice_time_releases_schedule() { assert_ok!(TimeRelease::claim(RuntimeOrigin::signed(BOB))); // Since the first issuance the total amount locked increases by the new transfers: 24_996; assert_eq!( - ::Currency::balance_frozen(&FreezeReason::TimeReleased.into(), &BOB), + ::Currency::balance_frozen(&FreezeReason::NotYetVested.into(), &BOB), total_locked ); @@ -560,7 +560,7 @@ fn alice_time_releases_schedule() { total_locked -= 4_166 as u64; assert_eq!( ::Currency::balance_frozen( - &FreezeReason::TimeReleased.into(), + &FreezeReason::NotYetVested.into(), &BOB ), total_locked @@ -586,7 +586,7 @@ fn alice_time_releases_schedule() { total_locked += total_transfered; total_locked -= 4_166; assert_eq!( - ::Currency::balance_frozen(&FreezeReason::TimeReleased.into(), &BOB), + ::Currency::balance_frozen(&FreezeReason::NotYetVested.into(), &BOB), total_locked ); @@ -616,7 +616,7 @@ fn alice_time_releases_schedule() { ); assert_ok!(TimeRelease::claim(RuntimeOrigin::signed(BOB))); assert_eq!( - ::Currency::balance_frozen(&FreezeReason::TimeReleased.into(), &BOB), + ::Currency::balance_frozen(&FreezeReason::NotYetVested.into(), &BOB), 0 ); }); From 57d7d949a7b28a3c3e2bec231025be4483afa584 Mon Sep 17 00:00:00 2001 From: Matthew Orris <--help> Date: Tue, 21 Nov 2023 08:51:10 -0700 Subject: [PATCH 10/26] fix: enum should be the same; updates; --- pallets/capacity/src/lib.rs | 2 ++ pallets/frequency-tx-payment/src/lib.rs | 5 ++++- pallets/frequency-tx-payment/src/payment.rs | 6 +++--- pallets/frequency-tx-payment/src/tests/mock.rs | 5 +++-- pallets/time-release/src/lib.rs | 5 ++++- pallets/time-release/src/mock.rs | 2 +- runtime/frequency/src/lib.rs | 7 ++++--- 7 files changed, 21 insertions(+), 11 deletions(-) diff --git a/pallets/capacity/src/lib.rs b/pallets/capacity/src/lib.rs index 07cd7e9a15..463d23baa2 100644 --- a/pallets/capacity/src/lib.rs +++ b/pallets/capacity/src/lib.rs @@ -102,6 +102,8 @@ pub mod pallet { /// The account has staked tokens to the Frequency network. #[codec(index = 0)] Staked, + /// Funds are currently locked and are not yet liquid. + NotYetVested, } #[pallet::config] diff --git a/pallets/frequency-tx-payment/src/lib.rs b/pallets/frequency-tx-payment/src/lib.rs index 14b90cd066..ba7d6563a7 100644 --- a/pallets/frequency-tx-payment/src/lib.rs +++ b/pallets/frequency-tx-payment/src/lib.rs @@ -26,7 +26,7 @@ use frame_support::{ dispatch::{DispatchInfo, GetDispatchInfo, PostDispatchInfo}, pallet_prelude::*, - traits::{Currency, IsSubType, IsType}, + traits::{IsSubType, IsType, fungible::Inspect as InspectFungible}, weights::{Weight, WeightToFee}, DefaultNoBound, }; @@ -161,6 +161,9 @@ pub mod pallet { + IsSubType> + IsType<::RuntimeCall>; + /// Functions that allow a fungible balance to be changed or frozen. + type Currency: InspectFungible; + /// The type that replenishes and keeps capacity balances. type Capacity: Replenishable + Nontransferable; diff --git a/pallets/frequency-tx-payment/src/payment.rs b/pallets/frequency-tx-payment/src/payment.rs index a0ce583042..1a6b827610 100644 --- a/pallets/frequency-tx-payment/src/payment.rs +++ b/pallets/frequency-tx-payment/src/payment.rs @@ -1,5 +1,5 @@ use common_primitives::msa::MsaValidator; -use frame_support::traits::tokens::Balance; +use frame_support::traits::tokens::{Balance, fungible::Inspect as InspectFungible}; use sp_std::marker::PhantomData; use super::*; @@ -23,7 +23,7 @@ pub struct CapacityAdapter(PhantomData<(Curr, Msa)>); impl OnChargeCapacityTransaction for CapacityAdapter where T: Config, - Curr: Currency<::AccountId>, + Curr: InspectFungible<::AccountId>, Msa: MsaValidator::AccountId>, BalanceOf: Send + Sync + FixedPointOperand + IsType> + MaxEncodedLen, { @@ -36,7 +36,7 @@ where fee: Self::Balance, ) -> Result { ensure!( - Curr::free_balance(key) >= Curr::minimum_balance(), + Curr::balance(key) >= Curr::minimum_balance(), TransactionValidityError::Invalid(InvalidTransaction::Payment) ); diff --git a/pallets/frequency-tx-payment/src/tests/mock.rs b/pallets/frequency-tx-payment/src/tests/mock.rs index 83a1befab8..168841f93b 100644 --- a/pallets/frequency-tx-payment/src/tests/mock.rs +++ b/pallets/frequency-tx-payment/src/tests/mock.rs @@ -33,7 +33,7 @@ frame_support::construct_runtime!( System: frame_system::{Pallet, Call, Config, Storage, Event}, Balances: pallet_balances::{Pallet, Call, Storage, Config, Event}, Msa: pallet_msa::{Pallet, Call, Storage, Event}, - Capacity: pallet_capacity::{Pallet, Call, Storage, Event}, + Capacity: pallet_capacity::{Pallet, Call, Storage, Event, FreezeReason}, TransactionPayment: pallet_transaction_payment::{Pallet, Storage, Event}, FrequencyTxPayment: pallet_frequency_tx_payment::{Pallet, Call, Event}, Utility: pallet_utility::{Pallet, Call, Storage, Event}, @@ -202,7 +202,7 @@ parameter_types! { impl pallet_capacity::Config for Test { type RuntimeEvent = RuntimeEvent; type WeightInfo = (); - type Currency = pallet_balances::Pallet; + type Currency = Self::Currency; type TargetValidator = (); // In test, this must be >= Token:Capacity ratio since unit is plancks type MinimumStakingAmount = ConstU64<10>; @@ -216,6 +216,7 @@ impl pallet_capacity::Config for Test { type MaxEpochLength = ConstU32<100>; type EpochNumber = u32; type CapacityPerToken = TestCapacityPerToken; + type RuntimeFreezeReason = RuntimeFreezeReason; } use pallet_balances::Call as BalancesCall; diff --git a/pallets/time-release/src/lib.rs b/pallets/time-release/src/lib.rs index 593cf18e0c..83b49b9923 100644 --- a/pallets/time-release/src/lib.rs +++ b/pallets/time-release/src/lib.rs @@ -92,10 +92,13 @@ pub mod module { /// A reason for freezing funds. #[pallet::composite_enum] pub enum FreezeReason { - /// Funds are currently locked and are not yet liquid. #[codec(index = 0)] + /// Funds are staked. + Staked, + /// Funds are currently locked and are not yet liquid. NotYetVested, } + // use crate::pallet_capacity::FreezeReason; #[pallet::config] pub trait Config: frame_system::Config { /// The overarching event type. diff --git a/pallets/time-release/src/mock.rs b/pallets/time-release/src/mock.rs index a55c12b84f..1346f10865 100644 --- a/pallets/time-release/src/mock.rs +++ b/pallets/time-release/src/mock.rs @@ -93,7 +93,7 @@ impl BlockNumberProvider for MockBlockNumberProvider { impl Config for Test { type RuntimeEvent = RuntimeEvent; - type Currency = PalletBalances; + type Currency = Self::Currency; type MinReleaseTransfer = ConstU64<5>; type TransferOrigin = EnsureAliceOrBob; type WeightInfo = (); diff --git a/runtime/frequency/src/lib.rs b/runtime/frequency/src/lib.rs index 5f3a91aa03..1d6113dd44 100644 --- a/runtime/frequency/src/lib.rs +++ b/runtime/frequency/src/lib.rs @@ -261,7 +261,7 @@ pub const VERSION: RuntimeVersion = RuntimeVersion { spec_name: create_runtime_str!("frequency"), impl_name: create_runtime_str!("frequency"), authoring_version: 1, - spec_version: 64, + spec_version: 65, impl_version: 0, apis: RUNTIME_API_VERSIONS, transaction_version: 1, @@ -275,7 +275,7 @@ pub const VERSION: RuntimeVersion = RuntimeVersion { spec_name: create_runtime_str!("frequency-rococo"), impl_name: create_runtime_str!("frequency"), authoring_version: 1, - spec_version: 64, + spec_version: 65, impl_version: 0, apis: RUNTIME_API_VERSIONS, transaction_version: 1, @@ -407,7 +407,7 @@ impl pallet_capacity::Config for Runtime { type RuntimeEvent = RuntimeEvent; type WeightInfo = pallet_capacity::weights::SubstrateWeight; // REVIEW: Change Currency->Fungible - type Currency = Balances; + type Currency = Self::Currency; type MinimumStakingAmount = CapacityMinimumStakingAmount; type MinimumTokenBalance = CapacityMinimumTokenBalance; type TargetValidator = Msa; @@ -794,6 +794,7 @@ impl GetStableWeight for CapacityEligibleCalls { impl pallet_frequency_tx_payment::Config for Runtime { type RuntimeEvent = RuntimeEvent; type RuntimeCall = RuntimeCall; + type Currency = Self::Currency; type Capacity = Capacity; type WeightInfo = pallet_frequency_tx_payment::weights::SubstrateWeight; type CapacityCalls = CapacityEligibleCalls; From 86c6e74a76851460abba87445a7d5b10d369d686 Mon Sep 17 00:00:00 2001 From: Matthew Orris <--help> Date: Tue, 21 Nov 2023 12:05:13 -0700 Subject: [PATCH 11/26] fix: update cargo dependencies for common-runtime; --- pallets/capacity/Cargo.toml | 1 + 1 file changed, 1 insertion(+) diff --git a/pallets/capacity/Cargo.toml b/pallets/capacity/Cargo.toml index 8550f1de76..da119972ea 100644 --- a/pallets/capacity/Cargo.toml +++ b/pallets/capacity/Cargo.toml @@ -39,6 +39,7 @@ default = ["std"] runtime-benchmarks = [ "frame-benchmarking/runtime-benchmarks", "common-primitives/runtime-benchmarks", + "common-runtime/runtime-benchmarks", "pallet-msa/runtime-benchmarks", ] std = [ From bf228b5ef927b3a78a1f0f6bc2f7b624f5ce097e Mon Sep 17 00:00:00 2001 From: Matthew Orris <--help> Date: Tue, 21 Nov 2023 12:39:44 -0700 Subject: [PATCH 12/26] fix: Currency trait was incorrect; --- pallets/frequency-tx-payment/src/tests/mock.rs | 2 +- pallets/time-release/Cargo.toml | 1 + pallets/time-release/src/mock.rs | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/pallets/frequency-tx-payment/src/tests/mock.rs b/pallets/frequency-tx-payment/src/tests/mock.rs index 168841f93b..6c967cff93 100644 --- a/pallets/frequency-tx-payment/src/tests/mock.rs +++ b/pallets/frequency-tx-payment/src/tests/mock.rs @@ -202,7 +202,7 @@ parameter_types! { impl pallet_capacity::Config for Test { type RuntimeEvent = RuntimeEvent; type WeightInfo = (); - type Currency = Self::Currency; + type Currency = pallet_balances::Pallet; type TargetValidator = (); // In test, this must be >= Token:Capacity ratio since unit is plancks type MinimumStakingAmount = ConstU64<10>; diff --git a/pallets/time-release/Cargo.toml b/pallets/time-release/Cargo.toml index df6a05c545..7e209709d8 100644 --- a/pallets/time-release/Cargo.toml +++ b/pallets/time-release/Cargo.toml @@ -42,6 +42,7 @@ std = [ "sp-std/std", "frame-benchmarking/std", "common-primitives/std", + "pallet-balances/std", ] runtime-benchmarks = [ "frame-support/runtime-benchmarks", diff --git a/pallets/time-release/src/mock.rs b/pallets/time-release/src/mock.rs index 1346f10865..a55c12b84f 100644 --- a/pallets/time-release/src/mock.rs +++ b/pallets/time-release/src/mock.rs @@ -93,7 +93,7 @@ impl BlockNumberProvider for MockBlockNumberProvider { impl Config for Test { type RuntimeEvent = RuntimeEvent; - type Currency = Self::Currency; + type Currency = PalletBalances; type MinReleaseTransfer = ConstU64<5>; type TransferOrigin = EnsureAliceOrBob; type WeightInfo = (); From 72feddc64cde2e843c7b85f69a460c99a8af28ea Mon Sep 17 00:00:00 2001 From: Matthew Orris <--help> Date: Tue, 21 Nov 2023 13:19:51 -0700 Subject: [PATCH 13/26] fix: set_balance logic error; --- pallets/time-release/src/benchmarking.rs | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/pallets/time-release/src/benchmarking.rs b/pallets/time-release/src/benchmarking.rs index dfc25d4864..7dafbc1a44 100644 --- a/pallets/time-release/src/benchmarking.rs +++ b/pallets/time-release/src/benchmarking.rs @@ -15,13 +15,9 @@ pub type Schedule = ReleaseSchedule, BalanceOf>; const SEED: u32 = 0; -// TODO: this function is duplicated in pallets/time-release/src/mock.rs fn set_balance(who: &T::AccountId, balance: BalanceOf) { - let _ = T::Currency::mint_into(&who, balance.saturated_into()); - assert_eq!( - T::Currency::balance(who).saturated_into::(), - balance.saturated_into::() + 100u64 - ); + let actual_deposit = T::Currency::mint_into(&who, balance.saturated_into()); + assert_eq!(balance, actual_deposit.unwrap()); } fn lookup_of_account( From 1442a12dfec4186446233aef7e422ce704ea1785 Mon Sep 17 00:00:00 2001 From: Matthew Orris <--help> Date: Tue, 21 Nov 2023 14:44:16 -0700 Subject: [PATCH 14/26] fix: revert new Currency type; set FreezeIdentifier in mock; --- pallets/frequency-tx-payment/src/lib.rs | 5 +---- pallets/frequency-tx-payment/src/tests/mock.rs | 2 +- runtime/frequency/src/lib.rs | 4 +--- 3 files changed, 3 insertions(+), 8 deletions(-) diff --git a/pallets/frequency-tx-payment/src/lib.rs b/pallets/frequency-tx-payment/src/lib.rs index ba7d6563a7..f233dec315 100644 --- a/pallets/frequency-tx-payment/src/lib.rs +++ b/pallets/frequency-tx-payment/src/lib.rs @@ -26,7 +26,7 @@ use frame_support::{ dispatch::{DispatchInfo, GetDispatchInfo, PostDispatchInfo}, pallet_prelude::*, - traits::{IsSubType, IsType, fungible::Inspect as InspectFungible}, + traits::{IsSubType, IsType}, weights::{Weight, WeightToFee}, DefaultNoBound, }; @@ -161,9 +161,6 @@ pub mod pallet { + IsSubType> + IsType<::RuntimeCall>; - /// Functions that allow a fungible balance to be changed or frozen. - type Currency: InspectFungible; - /// The type that replenishes and keeps capacity balances. type Capacity: Replenishable + Nontransferable; diff --git a/pallets/frequency-tx-payment/src/tests/mock.rs b/pallets/frequency-tx-payment/src/tests/mock.rs index 6c967cff93..e0a475a557 100644 --- a/pallets/frequency-tx-payment/src/tests/mock.rs +++ b/pallets/frequency-tx-payment/src/tests/mock.rs @@ -91,7 +91,7 @@ impl pallet_balances::Config for Test { type ExistentialDeposit = ConstU64<1>; type AccountStore = System; type MaxReserves = (); - type FreezeIdentifier = (); + type FreezeIdentifier = RuntimeFreezeReason; type MaxFreezes = ConstU32<0>; type MaxHolds = ConstU32<0>; type RuntimeHoldReason = (); diff --git a/runtime/frequency/src/lib.rs b/runtime/frequency/src/lib.rs index 1d6113dd44..bd0572f23b 100644 --- a/runtime/frequency/src/lib.rs +++ b/runtime/frequency/src/lib.rs @@ -406,8 +406,7 @@ impl pallet_msa::Config for Runtime { impl pallet_capacity::Config for Runtime { type RuntimeEvent = RuntimeEvent; type WeightInfo = pallet_capacity::weights::SubstrateWeight; - // REVIEW: Change Currency->Fungible - type Currency = Self::Currency; + type Currency = Balances; type MinimumStakingAmount = CapacityMinimumStakingAmount; type MinimumTokenBalance = CapacityMinimumTokenBalance; type TargetValidator = Msa; @@ -794,7 +793,6 @@ impl GetStableWeight for CapacityEligibleCalls { impl pallet_frequency_tx_payment::Config for Runtime { type RuntimeEvent = RuntimeEvent; type RuntimeCall = RuntimeCall; - type Currency = Self::Currency; type Capacity = Capacity; type WeightInfo = pallet_frequency_tx_payment::weights::SubstrateWeight; type CapacityCalls = CapacityEligibleCalls; From cda4bc464e076fa8cf5f4d6cfeec30c468f8a99a Mon Sep 17 00:00:00 2001 From: Matthew Orris <--help> Date: Tue, 21 Nov 2023 14:48:52 -0700 Subject: [PATCH 15/26] fix: lints --- pallets/frequency-tx-payment/src/payment.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pallets/frequency-tx-payment/src/payment.rs b/pallets/frequency-tx-payment/src/payment.rs index 1a6b827610..2ccbd99260 100644 --- a/pallets/frequency-tx-payment/src/payment.rs +++ b/pallets/frequency-tx-payment/src/payment.rs @@ -1,5 +1,5 @@ use common_primitives::msa::MsaValidator; -use frame_support::traits::tokens::{Balance, fungible::Inspect as InspectFungible}; +use frame_support::traits::tokens::{fungible::Inspect as InspectFungible, Balance}; use sp_std::marker::PhantomData; use super::*; From d63a55432caf0c078307d437addf61cd63c02323 Mon Sep 17 00:00:00 2001 From: Enddy Dumbrique Date: Wed, 22 Nov 2023 14:01:03 -0800 Subject: [PATCH 16/26] we are erroring silently - Number of freezes exceed MaxFreezes --- e2e/capacity/staking.test.ts | 3 ++- e2e/package-lock.json | 2 +- pallets/capacity/src/lib.rs | 17 ++++++++++------- 3 files changed, 13 insertions(+), 9 deletions(-) diff --git a/e2e/capacity/staking.test.ts b/e2e/capacity/staking.test.ts index 9766ae576c..ebdb5c11fa 100644 --- a/e2e/capacity/staking.test.ts +++ b/e2e/capacity/staking.test.ts @@ -23,7 +23,7 @@ const tokenMinStake: bigint = 1n * CENTS; const capacityMin: bigint = tokenMinStake / 50n; const fundingSource = getFundingSource('capacity-staking'); -describe('Capacity Staking Tests', function () { +describe.only('Capacity Staking Tests', function () { // The frozen balance is initialized and tracked throughout the staking end to end tests // to accommodate for the fact that withdrawing unstaked token tests are not executed // against a relay chain. Since the length of time to wait for an epoch period to roll over could @@ -45,6 +45,7 @@ describe('Capacity Staking Tests', function () { // Confirm that the tokens were locked in the stakeKeys account using the query API const stakedAcctInfo = await ExtrinsicHelper.getAccountInfo(stakeKeys.address); + console.log("stakedAcctInfo.data.frozen", stakedAcctInfo.data.frozen.toHuman()); assert.equal( stakedAcctInfo.data.frozen, tokenMinStake, diff --git a/e2e/package-lock.json b/e2e/package-lock.json index f2b313a7ce..710887d8ab 100644 --- a/e2e/package-lock.json +++ b/e2e/package-lock.json @@ -260,7 +260,7 @@ "node_modules/@frequency-chain/api-augment": { "version": "0.0.0", "resolved": "file:../js/api-augment/dist/frequency-chain-api-augment-0.0.0.tgz", - "integrity": "sha512-SjELGw36ccBPvWV19CU73HAOU1hiYJfQGqY1G3Qd7MJUuH3EaaB7Qr85dqjKcwIt37L7hYZ29LjddBw9//jRkw==", + "integrity": "sha512-5KaqfY1M25g+JRlCHXEiKpKjimlsGOZPXa1qU/FIW27NKKNMykAw08MpUvukn3RjgOu9khWe8fhxTnCK1lVtiw==", "license": "Apache-2.0", "dependencies": { "@polkadot/api": "^10.9.1", diff --git a/pallets/capacity/src/lib.rs b/pallets/capacity/src/lib.rs index 463d23baa2..f1481e96a7 100644 --- a/pallets/capacity/src/lib.rs +++ b/pallets/capacity/src/lib.rs @@ -370,7 +370,7 @@ pub mod pallet { let amount_withdrawn = staking_account.reap_thawed(current_epoch); ensure!(!amount_withdrawn.is_zero(), Error::::NoUnstakedTokensAvailable); - Self::update_or_delete_staking_account(&staker, &mut staking_account); + Self::update_or_delete_staking_account(&staker, &mut staking_account)?; Self::deposit_event(Event::::StakeWithdrawn { account: staker, amount: amount_withdrawn, @@ -482,7 +482,7 @@ impl Pallet { let mut capacity_details = Self::get_capacity_for(target).unwrap_or_default(); capacity_details.deposit(&amount, &capacity).ok_or(ArithmeticError::Overflow)?; - Self::set_staking_account(&staker, staking_account); + Self::set_staking_account(&staker, staking_account)?; Self::set_target_details_for(&staker, target, target_details); Self::set_capacity_for(target, capacity_details); @@ -490,10 +490,11 @@ impl Pallet { } /// Sets staking account details. - fn set_staking_account(staker: &T::AccountId, staking_account: &StakingAccountDetails) { + fn set_staking_account(staker: &T::AccountId, staking_account: &StakingAccountDetails) -> DispatchResult { let _ = - T::Currency::set_freeze(&FreezeReason::Staked.into(), staker, staking_account.total); + T::Currency::set_freeze(&FreezeReason::Staked.into(), staker, staking_account.total)?; StakingAccountLedger::::insert(staker, staking_account); + Ok(()) } /// Deletes staking account details @@ -506,12 +507,14 @@ impl Pallet { fn update_or_delete_staking_account( staker: &T::AccountId, staking_account: &StakingAccountDetails, - ) { + ) -> DispatchResult { if staking_account.total.is_zero() { Self::delete_staking_account(&staker); } else { - Self::set_staking_account(&staker, &staking_account) + Self::set_staking_account(&staker, &staking_account)?; } + + Ok(()) } /// Sets target account details. @@ -546,7 +549,7 @@ impl Pallet { let unstake_result = staking_account.withdraw(amount, thaw_at)?; - Self::set_staking_account(&unstaker, &staking_account); + Self::set_staking_account(&unstaker, &staking_account)?; Ok(unstake_result) } From 09261a63da14a4f268f23c03a8560a98f2d78e45 Mon Sep 17 00:00:00 2001 From: Enddy Dumbrique Date: Wed, 22 Nov 2023 14:06:12 -0800 Subject: [PATCH 17/26] test pass --- runtime/frequency/src/lib.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/runtime/frequency/src/lib.rs b/runtime/frequency/src/lib.rs index bd0572f23b..6f90e47164 100644 --- a/runtime/frequency/src/lib.rs +++ b/runtime/frequency/src/lib.rs @@ -510,7 +510,8 @@ impl pallet_balances::Config for Runtime { type MaxReserves = BalancesMaxReserves; type ReserveIdentifier = [u8; 8]; type MaxHolds = ConstU32<0>; - type MaxFreezes = ConstU32<0>; + // TODO: check what this number should be + type MaxFreezes = ConstU32<100>; type RuntimeHoldReason = RuntimeHoldReason; type FreezeIdentifier = RuntimeFreezeReason; } From e855d93844976dbe11f035699eb50a7f7a861e36 Mon Sep 17 00:00:00 2001 From: Enddy Dumbrique Date: Wed, 22 Nov 2023 14:15:48 -0800 Subject: [PATCH 18/26] lint --- pallets/capacity/src/benchmarking.rs | 4 ++-- pallets/capacity/src/lib.rs | 5 ++++- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/pallets/capacity/src/benchmarking.rs b/pallets/capacity/src/benchmarking.rs index b85f709734..c40335fd17 100644 --- a/pallets/capacity/src/benchmarking.rs +++ b/pallets/capacity/src/benchmarking.rs @@ -65,7 +65,7 @@ benchmarks! { let new_unlocks: Vec<(u32, u32)> = Vec::from([(50u32, 3u32), (50u32, 5u32)]); assert_eq!(true, staking_account.set_unlock_chunks(&new_unlocks)); - Capacity::::set_staking_account(&caller.clone(), &staking_account); + let _ = Capacity::::set_staking_account(&caller.clone(), &staking_account); CurrentEpoch::::set(T::EpochNumber::from(5u32)); }: _ (RawOrigin::Signed(caller.clone())) @@ -99,7 +99,7 @@ benchmarks! { target_details.deposit(staking_amount, capacity_amount); capacity_details.deposit(&staking_amount, &capacity_amount); - Capacity::::set_staking_account(&caller.clone(), &staking_account); + let _ = Capacity::::set_staking_account(&caller.clone(), &staking_account); Capacity::::set_target_details_for(&caller.clone(), target, target_details); Capacity::::set_capacity_for(target, capacity_details); diff --git a/pallets/capacity/src/lib.rs b/pallets/capacity/src/lib.rs index f1481e96a7..b41371da2b 100644 --- a/pallets/capacity/src/lib.rs +++ b/pallets/capacity/src/lib.rs @@ -490,7 +490,10 @@ impl Pallet { } /// Sets staking account details. - fn set_staking_account(staker: &T::AccountId, staking_account: &StakingAccountDetails) -> DispatchResult { + fn set_staking_account( + staker: &T::AccountId, + staking_account: &StakingAccountDetails, + ) -> DispatchResult { let _ = T::Currency::set_freeze(&FreezeReason::Staked.into(), staker, staking_account.total)?; StakingAccountLedger::::insert(staker, staking_account); From 6c4e44aa88e22d52a85f484ce91b21bacadb618e Mon Sep 17 00:00:00 2001 From: Matthew Orris <--help> Date: Mon, 27 Nov 2023 09:14:45 -0700 Subject: [PATCH 19/26] fix: remove .only --- e2e/capacity/staking.test.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/e2e/capacity/staking.test.ts b/e2e/capacity/staking.test.ts index ebdb5c11fa..9766ae576c 100644 --- a/e2e/capacity/staking.test.ts +++ b/e2e/capacity/staking.test.ts @@ -23,7 +23,7 @@ const tokenMinStake: bigint = 1n * CENTS; const capacityMin: bigint = tokenMinStake / 50n; const fundingSource = getFundingSource('capacity-staking'); -describe.only('Capacity Staking Tests', function () { +describe('Capacity Staking Tests', function () { // The frozen balance is initialized and tracked throughout the staking end to end tests // to accommodate for the fact that withdrawing unstaked token tests are not executed // against a relay chain. Since the length of time to wait for an epoch period to roll over could @@ -45,7 +45,6 @@ describe.only('Capacity Staking Tests', function () { // Confirm that the tokens were locked in the stakeKeys account using the query API const stakedAcctInfo = await ExtrinsicHelper.getAccountInfo(stakeKeys.address); - console.log("stakedAcctInfo.data.frozen", stakedAcctInfo.data.frozen.toHuman()); assert.equal( stakedAcctInfo.data.frozen, tokenMinStake, From 9079373d31bdd4d3e684b2b17d25b26b574f4c9a Mon Sep 17 00:00:00 2001 From: Matthew Orris <--help> Date: Mon, 27 Nov 2023 14:32:42 -0700 Subject: [PATCH 20/26] fix: coordinate BalancesMaxXXXXX with existing runtime defaults --- pallets/capacity/src/tests/mock.rs | 8 ++++---- pallets/frequency-tx-payment/src/tests/mock.rs | 8 ++++---- pallets/time-release/src/mock.rs | 8 ++++---- runtime/common/src/constants.rs | 2 ++ runtime/frequency/src/lib.rs | 5 ++--- 5 files changed, 16 insertions(+), 15 deletions(-) diff --git a/pallets/capacity/src/tests/mock.rs b/pallets/capacity/src/tests/mock.rs index c6502ecc0d..daeb995b10 100644 --- a/pallets/capacity/src/tests/mock.rs +++ b/pallets/capacity/src/tests/mock.rs @@ -55,9 +55,7 @@ impl frame_system::Config for Test { } impl pallet_balances::Config for Test { - type MaxReserves = (); type ReserveIdentifier = [u8; 8]; - type MaxLocks = ConstU32<10>; type Balance = u64; type RuntimeEvent = RuntimeEvent; type DustRemoval = (); @@ -65,9 +63,11 @@ impl pallet_balances::Config for Test { type AccountStore = System; type WeightInfo = (); type FreezeIdentifier = RuntimeFreezeReason; - type MaxFreezes = ConstU32<1>; + type MaxLocks = ConstU32<50>; + type MaxReserves = ConstU32<50>; + type MaxFreezes = ConstU32<50>; + type MaxHolds = ConstU32<50>; type RuntimeHoldReason = (); - type MaxHolds = ConstU32<0>; } pub type MaxSchemaGrantsPerDelegation = ConstU32<30>; diff --git a/pallets/frequency-tx-payment/src/tests/mock.rs b/pallets/frequency-tx-payment/src/tests/mock.rs index e0a475a557..1d28d74cfc 100644 --- a/pallets/frequency-tx-payment/src/tests/mock.rs +++ b/pallets/frequency-tx-payment/src/tests/mock.rs @@ -85,15 +85,15 @@ impl pallet_balances::Config for Test { type DustRemoval = (); type RuntimeEvent = RuntimeEvent; type Balance = u64; - type MaxLocks = (); type WeightInfo = (); type ReserveIdentifier = [u8; 8]; type ExistentialDeposit = ConstU64<1>; type AccountStore = System; - type MaxReserves = (); + type MaxLocks = ConstU32<50>; + type MaxReserves = ConstU32<50>; + type MaxFreezes = ConstU32<50>; + type MaxHolds = ConstU32<50>; type FreezeIdentifier = RuntimeFreezeReason; - type MaxFreezes = ConstU32<0>; - type MaxHolds = ConstU32<0>; type RuntimeHoldReason = (); } diff --git a/pallets/time-release/src/mock.rs b/pallets/time-release/src/mock.rs index a55c12b84f..2e9d89f7cc 100644 --- a/pallets/time-release/src/mock.rs +++ b/pallets/time-release/src/mock.rs @@ -46,14 +46,14 @@ impl pallet_balances::Config for Test { type RuntimeEvent = RuntimeEvent; type ExistentialDeposit = ConstU64<1>; type AccountStore = frame_system::Pallet; - type MaxLocks = (); - type MaxReserves = (); type ReserveIdentifier = [u8; 8]; type WeightInfo = (); type FreezeIdentifier = RuntimeFreezeReason; - type MaxFreezes = ConstU32<1>; + type MaxLocks = ConstU32<50>; + type MaxReserves = ConstU32<50>; + type MaxFreezes = ConstU32<50>; + type MaxHolds = ConstU32<50>; type RuntimeHoldReason = (); - type MaxHolds = ConstU32<0>; } pub struct EnsureAliceOrBob; diff --git a/runtime/common/src/constants.rs b/runtime/common/src/constants.rs index c039b939fb..f884133429 100644 --- a/runtime/common/src/constants.rs +++ b/runtime/common/src/constants.rs @@ -135,6 +135,8 @@ pub type AuthorshipUncleGenerations = ZERO; // --- Balances Pallet --- pub type BalancesMaxLocks = FIFTY; pub type BalancesMaxReserves = FIFTY; +pub type BalancesMaxFreezes = FIFTY; +pub type BalancesMaxHolds = FIFTY; // -end- Balances Pallet --- // --- Scheduler Pallet --- diff --git a/runtime/frequency/src/lib.rs b/runtime/frequency/src/lib.rs index 6f90e47164..a8ce27e81b 100644 --- a/runtime/frequency/src/lib.rs +++ b/runtime/frequency/src/lib.rs @@ -509,9 +509,8 @@ impl pallet_balances::Config for Runtime { type WeightInfo = weights::pallet_balances::SubstrateWeight; type MaxReserves = BalancesMaxReserves; type ReserveIdentifier = [u8; 8]; - type MaxHolds = ConstU32<0>; - // TODO: check what this number should be - type MaxFreezes = ConstU32<100>; + type MaxHolds = BalancesMaxHolds; + type MaxFreezes = BalancesMaxFreezes; type RuntimeHoldReason = RuntimeHoldReason; type FreezeIdentifier = RuntimeFreezeReason; } From 52d5ea4858d0213c4cec90802054ab9327160e96 Mon Sep 17 00:00:00 2001 From: Matthew Orris <--help> Date: Mon, 27 Nov 2023 16:11:24 -0700 Subject: [PATCH 21/26] fix: add expect to tests that can fail; cargo update; pass through errors for T::Currency::set_freeze/thaw; --- .cargo-deny.toml | 2 +- Cargo.lock | 1289 +++++++++-------- e2e/package-lock.json | 35 +- pallets/capacity/src/benchmarking.rs | 4 +- pallets/capacity/src/lib.rs | 10 +- pallets/capacity/src/tests/other_tests.rs | 3 +- .../src/tests/withdraw_unstaked_tests.rs | 15 +- 7 files changed, 735 insertions(+), 623 deletions(-) diff --git a/.cargo-deny.toml b/.cargo-deny.toml index 563dc8e7ee..5795d9c0b6 100644 --- a/.cargo-deny.toml +++ b/.cargo-deny.toml @@ -273,7 +273,7 @@ allow-git = [] [sources.allow-org] # 1 or more github.com organizations to allow git sources for -github = ["paritytech", "w3f"] +github = ["paritytech", "w3f", "multiformats"] # 1 or more gitlab.com organizations to allow git sources for # gitlab = [""] # 1 or more bitbucket.org organizations to allow git sources for diff --git a/Cargo.lock b/Cargo.lock index e5ccfe2c8f..e3565139c7 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -27,7 +27,7 @@ version = "0.21.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "8a30b2e23b9e17a9f90641c7ab1549cd9b44f296d3ccbf309d2863cfe398a0cb" dependencies = [ - "gimli 0.28.0", + "gimli 0.28.1", ] [[package]] @@ -159,7 +159,7 @@ version = "0.7.7" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "5a824f2aa7e75a0c98c5a504fceb80649e9c35265d44525b5f94de4771a395cd" dependencies = [ - "getrandom 0.2.10", + "getrandom 0.2.11", "once_cell", "version_check", ] @@ -171,10 +171,10 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "91429305e9f0a25f6205c5b8e0d2db09e0708a7a6df0f42212bb56c32c8ac97a" dependencies = [ "cfg-if", - "getrandom 0.2.10", + "getrandom 0.2.11", "once_cell", "version_check", - "zerocopy 0.7.21", + "zerocopy 0.7.26", ] [[package]] @@ -519,9 +519,9 @@ dependencies = [ [[package]] name = "array-bytes" -version = "6.1.0" +version = "6.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d9b1c5a481ec30a5abd8dfbd94ab5cf1bb4e9a66be7f1b3b322f2f1170c200fd" +checksum = "de17a919934ad8c5cc99a1a74de4e2dab95d6121a8f27f94755ff525b630382c" [[package]] name = "arrayref" @@ -634,17 +634,30 @@ dependencies = [ "futures-core", ] +[[package]] +name = "async-channel" +version = "2.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1ca33f4bc4ed1babef42cad36cc1f51fa88be00420404e5b1e80ab1b18f7678c" +dependencies = [ + "concurrent-queue", + "event-listener 4.0.0", + "event-listener-strategy", + "futures-core", + "pin-project-lite 0.2.13", +] + [[package]] name = "async-executor" -version = "1.6.0" +version = "1.8.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4b0c4a4f319e45986f347ee47fef8bf5e81c9abc3f6f58dc2391439f30df65f0" +checksum = "17ae5ebefcc48e7452b4987947920dac9450be1110cadf34d1b8c116bdbaf97c" dependencies = [ - "async-lock", + "async-lock 3.1.2", "async-task", "concurrent-queue", "fastrand 2.0.1", - "futures-lite", + "futures-lite 2.0.1", "slab", ] @@ -654,10 +667,10 @@ version = "1.6.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "279cf904654eeebfa37ac9bb1598880884924aab82e290aa65c9e77a0e142e06" dependencies = [ - "async-lock", + "async-lock 2.8.0", "autocfg", "blocking", - "futures-lite", + "futures-lite 1.13.0", ] [[package]] @@ -666,11 +679,11 @@ version = "1.13.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "0fc5b45d93ef0529756f812ca52e44c221b35341892d3dcc34132ac02f3dd2af" dependencies = [ - "async-lock", + "async-lock 2.8.0", "autocfg", "cfg-if", "concurrent-queue", - "futures-lite", + "futures-lite 1.13.0", "log", "parking", "polling 2.8.0", @@ -682,22 +695,21 @@ dependencies = [ [[package]] name = "async-io" -version = "2.1.0" +version = "2.2.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "10da8f3146014722c89e7859e1d7bb97873125d7346d10ca642ffab794355828" +checksum = "d6d3b15875ba253d1110c740755e246537483f152fa334f91abd7fe84c88b3ff" dependencies = [ - "async-lock", + "async-lock 3.1.2", "cfg-if", "concurrent-queue", "futures-io", - "futures-lite", + "futures-lite 2.0.1", "parking", - "polling 3.3.0", - "rustix 0.38.21", + "polling 3.3.1", + "rustix 0.38.25", "slab", "tracing", - "waker-fn", - "windows-sys 0.48.0", + "windows-sys 0.52.0", ] [[package]] @@ -709,6 +721,17 @@ dependencies = [ "event-listener 2.5.3", ] +[[package]] +name = "async-lock" +version = "3.1.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "dea8b3453dd7cc96711834b75400d671b73e3656975fa68d9f277163b7f7e316" +dependencies = [ + "event-listener 4.0.0", + "event-listener-strategy", + "pin-project-lite 0.2.13", +] + [[package]] name = "async-net" version = "1.8.0" @@ -717,7 +740,7 @@ checksum = "0434b1ed18ce1cf5769b8ac540e33f01fa9471058b5e89da9e06f3c882a8c12f" dependencies = [ "async-io 1.13.0", "blocking", - "futures-lite", + "futures-lite 1.13.0", ] [[package]] @@ -727,13 +750,13 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "ea6438ba0a08d81529c69b36700fa2f95837bfe3e776ab39cde9c14d9149da88" dependencies = [ "async-io 1.13.0", - "async-lock", + "async-lock 2.8.0", "async-signal", "blocking", "cfg-if", - "event-listener 3.0.1", - "futures-lite", - "rustix 0.38.21", + "event-listener 3.1.0", + "futures-lite 1.13.0", + "rustix 0.38.25", "windows-sys 0.48.0", ] @@ -745,7 +768,7 @@ checksum = "5fd55a5ba1179988837d24ab4c7cc8ed6efdeff578ede0416b4225a5fca35bd0" dependencies = [ "proc-macro2", "quote", - "syn 2.0.38", + "syn 2.0.39", ] [[package]] @@ -754,13 +777,13 @@ version = "0.2.5" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "9e47d90f65a225c4527103a8d747001fc56e375203592b25ad103e1ca13124c5" dependencies = [ - "async-io 2.1.0", - "async-lock", + "async-io 2.2.1", + "async-lock 2.8.0", "atomic-waker", "cfg-if", "futures-core", "futures-io", - "rustix 0.38.21", + "rustix 0.38.25", "signal-hook-registry", "slab", "windows-sys 0.48.0", @@ -780,7 +803,7 @@ checksum = "a66537f1bb974b254c98ed142ff995236e81b9d0fe4db0575f46612cb15eb0f9" dependencies = [ "proc-macro2", "quote", - "syn 2.0.38", + "syn 2.0.39", ] [[package]] @@ -910,7 +933,7 @@ dependencies = [ [[package]] name = "binary-merkle-tree" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#f60318f68687e601c47de5ad5ca88e2c3f8139a7" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#c8d2251cafadc108ba2f1f8a3208dc547ff38901" dependencies = [ "hash-db", "log", @@ -943,7 +966,7 @@ dependencies = [ "regex", "rustc-hash", "shlex", - "syn 2.0.38", + "syn 2.0.39", ] [[package]] @@ -1096,16 +1119,16 @@ checksum = "8d696c370c750c948ada61c69a0ee2cbbb9c50b1019ddb86d9317157a99c2cae" [[package]] name = "blocking" -version = "1.4.1" +version = "1.5.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8c36a4d0d48574b3dd360b4b7d95cc651d2b6557b6402848a27d4b228a473e2a" +checksum = "6a37913e8dc4ddcc604f0c6d3bf2887c995153af3611de9e23c352b44c1b9118" dependencies = [ - "async-channel", - "async-lock", + "async-channel 2.1.1", + "async-lock 3.1.2", "async-task", "fastrand 2.0.1", "futures-io", - "futures-lite", + "futures-lite 2.0.1", "piper", "tracing", ] @@ -1148,9 +1171,9 @@ dependencies = [ [[package]] name = "bstr" -version = "1.7.0" +version = "1.8.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c79ad7fb2dd38f3dabd76b09c6a5a20c038fc0213ef1e9afd30eb777f120f019" +checksum = "542f33a8835a0884b006a0c3df3dadd99c0c3f296ed26c2fdc8028e01ad6230c" dependencies = [ "memchr", "serde", @@ -1223,9 +1246,9 @@ dependencies = [ [[package]] name = "cargo-platform" -version = "0.1.4" +version = "0.1.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "12024c4645c97566567129c204f65d5815a8c9aecf30fcbe682b2fe034996d36" +checksum = "e34637b3140142bdf929fb439e8aa4ebad7651ebf7b1080b3930aa16ac1459ff" dependencies = [ "serde", ] @@ -1295,18 +1318,6 @@ version = "0.1.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "fd16c4719339c4530435d38e511904438d07cce7950afa3718a84ac36c10e89e" -[[package]] -name = "chacha20" -version = "0.8.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5c80e5460aa66fe3b91d40bcbdab953a597b60053e34d684ac6903f863b680a6" -dependencies = [ - "cfg-if", - "cipher 0.3.0", - "cpufeatures", - "zeroize", -] - [[package]] name = "chacha20" version = "0.9.1" @@ -1320,14 +1331,14 @@ dependencies = [ [[package]] name = "chacha20poly1305" -version = "0.9.1" +version = "0.10.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a18446b09be63d457bbec447509e85f662f32952b035ce892290396bc0b0cff5" +checksum = "10cd79432192d1c0f4e1a0fef9527696cc039165d729fb41b3f4f4f354c2dc35" dependencies = [ - "aead 0.4.3", - "chacha20 0.8.2", - "cipher 0.3.0", - "poly1305 0.7.2", + "aead 0.5.2", + "chacha20", + "cipher 0.4.4", + "poly1305", "zeroize", ] @@ -1394,6 +1405,7 @@ checksum = "773f3b9af64447d2ce9850330c473515014aa235e6a783b02db81ff39e4a3dad" dependencies = [ "crypto-common", "inout", + "zeroize", ] [[package]] @@ -1418,9 +1430,9 @@ dependencies = [ [[package]] name = "clap" -version = "4.4.7" +version = "4.4.9" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ac495e00dcec98c83465d5ad66c5c4fabd652fd6686e7c6269b117e729a6f17b" +checksum = "46ca43acc1b21c6cc2d1d3129c19e323a613935b5bc28fb3b33b5b2e5fb00030" dependencies = [ "clap_builder", "clap_derive", @@ -1428,9 +1440,9 @@ dependencies = [ [[package]] name = "clap_builder" -version = "4.4.7" +version = "4.4.9" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c77ed9a32a62e6ca27175d00d29d05ca32e396ea1eb5fb01d8256b669cec7663" +checksum = "63361bae7eef3771745f02d8d892bec2fee5f6e34af316ba556e7f97a7069ff1" dependencies = [ "anstream", "anstyle", @@ -1447,7 +1459,7 @@ dependencies = [ "heck", "proc-macro2", "quote", - "syn 2.0.38", + "syn 2.0.39", ] [[package]] @@ -1465,9 +1477,9 @@ dependencies = [ [[package]] name = "coarsetime" -version = "0.1.29" +version = "0.1.33" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a73ef0d00d14301df35d0f13f5ea32344de6b00837485c358458f1e7f2d27db4" +checksum = "71367d3385c716342014ad17e3d19f7788ae514885a1f4c24f500260fb365e1a" dependencies = [ "libc", "once_cell", @@ -1626,7 +1638,7 @@ version = "0.1.16" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "f9d839f2a20b0aee515dc581a6172f2321f96cab76c1a38a4c584a194955390e" dependencies = [ - "getrandom 0.2.10", + "getrandom 0.2.11", "once_cell", "tiny-keccak", ] @@ -1811,9 +1823,9 @@ dependencies = [ [[package]] name = "crc-catalog" -version = "2.2.0" +version = "2.4.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9cace84e55f07e7301bae1c519df89cdad8cc3cd868413d3fdbdeca9ff3db484" +checksum = "19d374276b40fb8bbdee95aef7c7fa6b5316ec764510eb64b8dd0e2ed0d7e7f5" [[package]] name = "crc32fast" @@ -1887,9 +1899,9 @@ dependencies = [ [[package]] name = "crypto-bigint" -version = "0.5.3" +version = "0.5.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "740fe28e594155f10cfc383984cbefd529d7396050557148f79cb0f621204124" +checksum = "0dc92fb57ca44df6db8059111ab3af99a63d5d0f8375d9972e319a379c6bab76" dependencies = [ "generic-array 0.14.7", "rand_core 0.6.4", @@ -1949,7 +1961,7 @@ dependencies = [ [[package]] name = "cumulus-client-cli" version = "0.1.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#f60318f68687e601c47de5ad5ca88e2c3f8139a7" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#c8d2251cafadc108ba2f1f8a3208dc547ff38901" dependencies = [ "clap", "parity-scale-codec", @@ -1965,7 +1977,7 @@ dependencies = [ [[package]] name = "cumulus-client-collator" version = "0.1.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#f60318f68687e601c47de5ad5ca88e2c3f8139a7" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#c8d2251cafadc108ba2f1f8a3208dc547ff38901" dependencies = [ "cumulus-client-consensus-common", "cumulus-client-network", @@ -1988,7 +2000,7 @@ dependencies = [ [[package]] name = "cumulus-client-consensus-aura" version = "0.1.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#f60318f68687e601c47de5ad5ca88e2c3f8139a7" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#c8d2251cafadc108ba2f1f8a3208dc547ff38901" dependencies = [ "async-trait", "cumulus-client-collator", @@ -2030,7 +2042,7 @@ dependencies = [ [[package]] name = "cumulus-client-consensus-common" version = "0.1.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#f60318f68687e601c47de5ad5ca88e2c3f8139a7" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#c8d2251cafadc108ba2f1f8a3208dc547ff38901" dependencies = [ "async-trait", "cumulus-client-pov-recovery", @@ -2059,7 +2071,7 @@ dependencies = [ [[package]] name = "cumulus-client-consensus-proposer" version = "0.1.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#f60318f68687e601c47de5ad5ca88e2c3f8139a7" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#c8d2251cafadc108ba2f1f8a3208dc547ff38901" dependencies = [ "anyhow", "async-trait", @@ -2074,7 +2086,7 @@ dependencies = [ [[package]] name = "cumulus-client-network" version = "0.1.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#f60318f68687e601c47de5ad5ca88e2c3f8139a7" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#c8d2251cafadc108ba2f1f8a3208dc547ff38901" dependencies = [ "async-trait", "cumulus-relay-chain-interface", @@ -2097,7 +2109,7 @@ dependencies = [ [[package]] name = "cumulus-client-pov-recovery" version = "0.1.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#f60318f68687e601c47de5ad5ca88e2c3f8139a7" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#c8d2251cafadc108ba2f1f8a3208dc547ff38901" dependencies = [ "async-trait", "cumulus-primitives-core", @@ -2121,7 +2133,7 @@ dependencies = [ [[package]] name = "cumulus-client-service" version = "0.1.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#f60318f68687e601c47de5ad5ca88e2c3f8139a7" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#c8d2251cafadc108ba2f1f8a3208dc547ff38901" dependencies = [ "cumulus-client-cli", "cumulus-client-collator", @@ -2156,7 +2168,7 @@ dependencies = [ [[package]] name = "cumulus-pallet-aura-ext" version = "0.1.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#f60318f68687e601c47de5ad5ca88e2c3f8139a7" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#c8d2251cafadc108ba2f1f8a3208dc547ff38901" dependencies = [ "cumulus-pallet-parachain-system", "frame-support", @@ -2174,7 +2186,7 @@ dependencies = [ [[package]] name = "cumulus-pallet-parachain-system" version = "0.1.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#f60318f68687e601c47de5ad5ca88e2c3f8139a7" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#c8d2251cafadc108ba2f1f8a3208dc547ff38901" dependencies = [ "bytes", "cumulus-pallet-parachain-system-proc-macro", @@ -2204,18 +2216,18 @@ dependencies = [ [[package]] name = "cumulus-pallet-parachain-system-proc-macro" version = "0.1.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#f60318f68687e601c47de5ad5ca88e2c3f8139a7" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#c8d2251cafadc108ba2f1f8a3208dc547ff38901" dependencies = [ "proc-macro-crate", "proc-macro2", "quote", - "syn 2.0.38", + "syn 2.0.39", ] [[package]] name = "cumulus-pallet-session-benchmarking" version = "3.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#f60318f68687e601c47de5ad5ca88e2c3f8139a7" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#c8d2251cafadc108ba2f1f8a3208dc547ff38901" dependencies = [ "frame-benchmarking", "frame-support", @@ -2229,7 +2241,7 @@ dependencies = [ [[package]] name = "cumulus-primitives-aura" version = "0.1.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#f60318f68687e601c47de5ad5ca88e2c3f8139a7" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#c8d2251cafadc108ba2f1f8a3208dc547ff38901" dependencies = [ "parity-scale-codec", "polkadot-core-primitives", @@ -2243,7 +2255,7 @@ dependencies = [ [[package]] name = "cumulus-primitives-core" version = "0.1.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#f60318f68687e601c47de5ad5ca88e2c3f8139a7" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#c8d2251cafadc108ba2f1f8a3208dc547ff38901" dependencies = [ "parity-scale-codec", "polkadot-core-primitives", @@ -2260,7 +2272,7 @@ dependencies = [ [[package]] name = "cumulus-primitives-parachain-inherent" version = "0.1.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#f60318f68687e601c47de5ad5ca88e2c3f8139a7" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#c8d2251cafadc108ba2f1f8a3208dc547ff38901" dependencies = [ "async-trait", "cumulus-primitives-core", @@ -2283,7 +2295,7 @@ dependencies = [ [[package]] name = "cumulus-primitives-timestamp" version = "0.1.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#f60318f68687e601c47de5ad5ca88e2c3f8139a7" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#c8d2251cafadc108ba2f1f8a3208dc547ff38901" dependencies = [ "cumulus-primitives-core", "futures", @@ -2296,7 +2308,7 @@ dependencies = [ [[package]] name = "cumulus-relay-chain-inprocess-interface" version = "0.1.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#f60318f68687e601c47de5ad5ca88e2c3f8139a7" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#c8d2251cafadc108ba2f1f8a3208dc547ff38901" dependencies = [ "async-trait", "cumulus-primitives-core", @@ -2320,7 +2332,7 @@ dependencies = [ [[package]] name = "cumulus-relay-chain-interface" version = "0.1.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#f60318f68687e601c47de5ad5ca88e2c3f8139a7" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#c8d2251cafadc108ba2f1f8a3208dc547ff38901" dependencies = [ "async-trait", "cumulus-primitives-core", @@ -2338,7 +2350,7 @@ dependencies = [ [[package]] name = "cumulus-relay-chain-minimal-node" version = "0.1.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#f60318f68687e601c47de5ad5ca88e2c3f8139a7" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#c8d2251cafadc108ba2f1f8a3208dc547ff38901" dependencies = [ "array-bytes", "async-trait", @@ -2373,7 +2385,7 @@ dependencies = [ [[package]] name = "cumulus-relay-chain-rpc-interface" version = "0.1.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#f60318f68687e601c47de5ad5ca88e2c3f8139a7" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#c8d2251cafadc108ba2f1f8a3208dc547ff38901" dependencies = [ "async-trait", "cumulus-primitives-core", @@ -2411,7 +2423,7 @@ dependencies = [ [[package]] name = "cumulus-test-relay-sproof-builder" version = "0.1.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#f60318f68687e601c47de5ad5ca88e2c3f8139a7" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#c8d2251cafadc108ba2f1f8a3208dc547ff38901" dependencies = [ "cumulus-primitives-core", "parity-scale-codec", @@ -2473,7 +2485,7 @@ checksum = "f46882e17999c6cc590af592290432be3bce0428cb0d5f8b6715e4dc7b383eb3" dependencies = [ "proc-macro2", "quote", - "syn 2.0.38", + "syn 2.0.39", ] [[package]] @@ -2513,7 +2525,7 @@ dependencies = [ "proc-macro2", "quote", "scratch", - "syn 2.0.38", + "syn 2.0.39", ] [[package]] @@ -2530,7 +2542,7 @@ checksum = "587663dd5fb3d10932c8aecfe7c844db1bcf0aee93eeab08fac13dc1212c2e7f" dependencies = [ "proc-macro2", "quote", - "syn 2.0.38", + "syn 2.0.39", ] [[package]] @@ -2575,7 +2587,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "978747c1d849a7d2ee5e8adc0159961c48fb7e5db2f06af6723b80123bb53856" dependencies = [ "cfg-if", - "hashbrown 0.14.2", + "hashbrown 0.14.3", "lock_api", "once_cell", "parking_lot_core 0.9.9", @@ -2583,15 +2595,15 @@ dependencies = [ [[package]] name = "data-encoding" -version = "2.4.0" +version = "2.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c2e66c9d817f1720209181c316d28635c050fa304f9c79e47a520882661b7308" +checksum = "7e962a19be5cfc3f3bf6dd8f61eb50107f356ad6270fbb3ed41476571db78be5" [[package]] name = "data-encoding-macro" -version = "0.1.13" +version = "0.1.14" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c904b33cc60130e1aeea4956ab803d08a3f4a0ca82d64ed757afac3891f2bb99" +checksum = "20c01c06f5f429efdf2bae21eb67c28b3df3cf85b7dd2d8ef09c0838dac5d33e" dependencies = [ "data-encoding", "data-encoding-macro-internal", @@ -2599,9 +2611,9 @@ dependencies = [ [[package]] name = "data-encoding-macro-internal" -version = "0.1.11" +version = "0.1.12" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8fdf3fce3ce863539ec1d7fd1b6dcc3c645663376b43ed376bbf887733e4f772" +checksum = "0047d07f2c89b17dd631c80450d69841a6b5d7fb17278cbc43d7e4cfcf2576f3" dependencies = [ "data-encoding", "syn 1.0.109", @@ -2822,7 +2834,7 @@ checksum = "487585f4d0c6655fe74905e2504d8ad6908e4db67f744eb140876906c2f3175d" dependencies = [ "proc-macro2", "quote", - "syn 2.0.38", + "syn 2.0.39", ] [[package]] @@ -2863,7 +2875,7 @@ dependencies = [ "proc-macro2", "quote", "regex", - "syn 2.0.38", + "syn 2.0.39", "termcolor", "toml 0.7.8", "walkdir", @@ -2910,9 +2922,9 @@ dependencies = [ [[package]] name = "dyn-clone" -version = "1.0.14" +version = "1.0.16" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "23d2f3407d9a573d666de4b5bdf10569d73ca9478087346697dcbae6244bfbcd" +checksum = "545b22097d44f8a9581187cdf93de7a71e4722bf51200cfaba810865b49a495d" [[package]] name = "ecdsa" @@ -2928,15 +2940,15 @@ dependencies = [ [[package]] name = "ecdsa" -version = "0.16.8" +version = "0.16.9" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a4b1e0c257a9e9f25f90ff76d7a68360ed497ee519c8e428d1825ef0000799d4" +checksum = "ee27f32b5c5292967d2d4a9d7f1e0b0aed2c15daded5a60300e4abb9d8020bca" dependencies = [ "der 0.7.8", "digest 0.10.7", - "elliptic-curve 0.13.6", + "elliptic-curve 0.13.8", "rfc6979 0.4.0", - "signature 2.1.0", + "signature 2.2.0", "spki 0.7.2", ] @@ -2947,20 +2959,21 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "115531babc129696a58c64a4fef0a8bf9e9698629fb97e9e40767d235cfbcd53" dependencies = [ "pkcs8 0.10.2", - "signature 2.1.0", + "signature 2.2.0", ] [[package]] name = "ed25519-dalek" -version = "2.0.0" +version = "2.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7277392b266383ef8396db7fdeb1e77b6c52fed775f5df15bb24f35b72156980" +checksum = "1f628eaec48bfd21b865dc2950cfa014450c01d2fa2b69a86c2fd5844ec523c0" dependencies = [ "curve25519-dalek 4.1.1", "ed25519", "rand_core 0.6.4", "serde", "sha2 0.10.8", + "subtle", "zeroize", ] @@ -2986,7 +2999,7 @@ checksum = "7d9ce6874da5d4415896cd45ffbc4d1cfc0c4f9c079427bd870742c30f2f65a9" dependencies = [ "curve25519-dalek 4.1.1", "ed25519", - "hashbrown 0.14.2", + "hashbrown 0.14.3", "hex", "rand_core 0.6.4", "sha2 0.10.8", @@ -3023,12 +3036,12 @@ dependencies = [ [[package]] name = "elliptic-curve" -version = "0.13.6" +version = "0.13.8" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d97ca172ae9dc9f9b779a6e3a65d308f2af74e5b8c921299075bdb4a0370e914" +checksum = "b5e6043086bf7973472e0c7dff2142ea0b680d30e18d9cc40f267efbf222bd47" dependencies = [ "base16ct 0.2.0", - "crypto-bigint 0.5.3", + "crypto-bigint 0.5.5", "digest 0.10.7", "ff 0.13.0", "generic-array 0.14.7", @@ -3075,7 +3088,7 @@ checksum = "f95e2801cd355d4a1a3e3953ce6ee5ae9603a5c833455343a8bfe3f44d418246" dependencies = [ "proc-macro2", "quote", - "syn 2.0.38", + "syn 2.0.39", ] [[package]] @@ -3086,7 +3099,7 @@ checksum = "c2ad8cef1d801a4686bfd8919f0b30eac4c8e48968c437a6405ded4fb5272d2b" dependencies = [ "proc-macro2", "quote", - "syn 2.0.38", + "syn 2.0.39", ] [[package]] @@ -3104,9 +3117,9 @@ dependencies = [ [[package]] name = "env_logger" -version = "0.10.0" +version = "0.10.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "85cdab6a89accf66733ad5a1693a4dcced6aeff64602b634530dd73c1f3ee9f0" +checksum = "95b3f3e67048839cb0d0781f445682a35113da7121f7c949db0e2be96a4fbece" dependencies = [ "humantime", "is-terminal", @@ -3129,9 +3142,9 @@ checksum = "5443807d6dff69373d433ab9ef5378ad8df50ca6298caf15de6e52e24aaf54d5" [[package]] name = "errno" -version = "0.3.5" +version = "0.3.7" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ac3e13f66a2f95e32a39eaa81f6b95d42878ca0e1db0c7543723dfe12557e860" +checksum = "f258a7194e7f7c2a7837a8913aeab7fd8c383457034fa20ce4dd3dcb813e8eb8" dependencies = [ "libc", "windows-sys 0.48.0", @@ -3145,15 +3158,36 @@ checksum = "0206175f82b8d6bf6652ff7d71a1e27fd2e4efde587fd368662814d6ec1d9ce0" [[package]] name = "event-listener" -version = "3.0.1" +version = "3.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "01cec0252c2afff729ee6f00e903d479fba81784c8e2bd77447673471fdfaea1" +checksum = "d93877bcde0eb80ca09131a08d23f0a5c18a620b01db137dba666d18cd9b30c2" dependencies = [ "concurrent-queue", "parking", "pin-project-lite 0.2.13", ] +[[package]] +name = "event-listener" +version = "4.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "770d968249b5d99410d61f5bf89057f3199a077a04d087092f58e7d10692baae" +dependencies = [ + "concurrent-queue", + "parking", + "pin-project-lite 0.2.13", +] + +[[package]] +name = "event-listener-strategy" +version = "0.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "958e4d70b6d5e81971bebec42271ec641e7ff4e170a6fa605f2b8a8b65cb97d3" +dependencies = [ + "event-listener 4.0.0", + "pin-project-lite 0.2.13", +] + [[package]] name = "exit-future" version = "0.2.0" @@ -3197,7 +3231,7 @@ dependencies = [ "fs-err", "proc-macro2", "quote", - "syn 2.0.38", + "syn 2.0.39", ] [[package]] @@ -3284,7 +3318,7 @@ dependencies = [ [[package]] name = "fflonk" version = "0.1.0" -source = "git+https://github.com/w3f/fflonk#e141d4b6f42fb481aefe1b479788694945b6940d" +source = "git+https://github.com/w3f/fflonk#1beb0585e1c8488956fac7f05da061f9b41e8948" dependencies = [ "ark-ec", "ark-ff", @@ -3296,9 +3330,9 @@ dependencies = [ [[package]] name = "fiat-crypto" -version = "0.2.2" +version = "0.2.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a481586acf778f1b1455424c343f71124b048ffa5f4fc3f8f6ae9dc432dcb3c7" +checksum = "27573eac26f4dd11e2b1916c3fe1baa56407c83c71a773a8ba17ec0bca03b6b7" [[package]] name = "file-per-thread-logger" @@ -3306,7 +3340,7 @@ version = "0.1.6" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "84f2e425d9790201ba4af4630191feac6dcc98765b118d4d18e91d23c2353866" dependencies = [ - "env_logger 0.10.0", + "env_logger 0.10.1", "log", ] @@ -3385,16 +3419,16 @@ checksum = "3f9eec918d3f24069decb9af1554cad7c880e2da24a9afd88aca000531ab82c1" [[package]] name = "fork-tree" version = "3.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#f60318f68687e601c47de5ad5ca88e2c3f8139a7" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#c8d2251cafadc108ba2f1f8a3208dc547ff38901" dependencies = [ "parity-scale-codec", ] [[package]] name = "form_urlencoded" -version = "1.2.0" +version = "1.2.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a62bc1cf6f830c2ec14a513a9fb124d0a213a629668a4186f329db21fe045652" +checksum = "e13624c2627564efccf4934284bdd98cbaa14e79b0b5a141218e507b3a823456" dependencies = [ "percent-encoding", ] @@ -3408,7 +3442,7 @@ checksum = "6c2141d6d6c8512188a7891b4b01590a45f6dac67afb4f255c4124dbb86d4eaa" [[package]] name = "frame-benchmarking" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#f60318f68687e601c47de5ad5ca88e2c3f8139a7" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#c8d2251cafadc108ba2f1f8a3208dc547ff38901" dependencies = [ "frame-support", "frame-support-procedural", @@ -3433,7 +3467,7 @@ dependencies = [ [[package]] name = "frame-benchmarking-cli" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#f60318f68687e601c47de5ad5ca88e2c3f8139a7" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#c8d2251cafadc108ba2f1f8a3208dc547ff38901" dependencies = [ "Inflector", "array-bytes", @@ -3481,18 +3515,18 @@ dependencies = [ [[package]] name = "frame-election-provider-solution-type" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#f60318f68687e601c47de5ad5ca88e2c3f8139a7" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#c8d2251cafadc108ba2f1f8a3208dc547ff38901" dependencies = [ "proc-macro-crate", "proc-macro2", "quote", - "syn 2.0.38", + "syn 2.0.39", ] [[package]] name = "frame-election-provider-support" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#f60318f68687e601c47de5ad5ca88e2c3f8139a7" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#c8d2251cafadc108ba2f1f8a3208dc547ff38901" dependencies = [ "frame-election-provider-solution-type", "frame-support", @@ -3509,7 +3543,7 @@ dependencies = [ [[package]] name = "frame-executive" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#f60318f68687e601c47de5ad5ca88e2c3f8139a7" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#c8d2251cafadc108ba2f1f8a3208dc547ff38901" dependencies = [ "frame-support", "frame-system", @@ -3539,7 +3573,7 @@ dependencies = [ [[package]] name = "frame-remote-externalities" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#f60318f68687e601c47de5ad5ca88e2c3f8139a7" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#c8d2251cafadc108ba2f1f8a3208dc547ff38901" dependencies = [ "async-recursion", "futures", @@ -3561,7 +3595,7 @@ dependencies = [ [[package]] name = "frame-support" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#f60318f68687e601c47de5ad5ca88e2c3f8139a7" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#c8d2251cafadc108ba2f1f8a3208dc547ff38901" dependencies = [ "aquamarine", "bitflags 1.3.2", @@ -3601,7 +3635,7 @@ dependencies = [ [[package]] name = "frame-support-procedural" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#f60318f68687e601c47de5ad5ca88e2c3f8139a7" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#c8d2251cafadc108ba2f1f8a3208dc547ff38901" dependencies = [ "Inflector", "cfg-expr", @@ -3613,35 +3647,35 @@ dependencies = [ "proc-macro-warning", "proc-macro2", "quote", - "syn 2.0.38", + "syn 2.0.39", ] [[package]] name = "frame-support-procedural-tools" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#f60318f68687e601c47de5ad5ca88e2c3f8139a7" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#c8d2251cafadc108ba2f1f8a3208dc547ff38901" dependencies = [ "frame-support-procedural-tools-derive", "proc-macro-crate", "proc-macro2", "quote", - "syn 2.0.38", + "syn 2.0.39", ] [[package]] name = "frame-support-procedural-tools-derive" version = "3.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#f60318f68687e601c47de5ad5ca88e2c3f8139a7" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#c8d2251cafadc108ba2f1f8a3208dc547ff38901" dependencies = [ "proc-macro2", "quote", - "syn 2.0.38", + "syn 2.0.39", ] [[package]] name = "frame-system" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#f60318f68687e601c47de5ad5ca88e2c3f8139a7" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#c8d2251cafadc108ba2f1f8a3208dc547ff38901" dependencies = [ "cfg-if", "frame-support", @@ -3660,7 +3694,7 @@ dependencies = [ [[package]] name = "frame-system-benchmarking" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#f60318f68687e601c47de5ad5ca88e2c3f8139a7" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#c8d2251cafadc108ba2f1f8a3208dc547ff38901" dependencies = [ "frame-benchmarking", "frame-support", @@ -3675,7 +3709,7 @@ dependencies = [ [[package]] name = "frame-system-rpc-runtime-api" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#f60318f68687e601c47de5ad5ca88e2c3f8139a7" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#c8d2251cafadc108ba2f1f8a3208dc547ff38901" dependencies = [ "parity-scale-codec", "sp-api", @@ -3684,7 +3718,7 @@ dependencies = [ [[package]] name = "frame-try-runtime" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#f60318f68687e601c47de5ad5ca88e2c3f8139a7" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#c8d2251cafadc108ba2f1f8a3208dc547ff38901" dependencies = [ "frame-support", "parity-scale-codec", @@ -3923,9 +3957,12 @@ dependencies = [ [[package]] name = "fs-err" -version = "2.9.0" +version = "2.11.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0845fa252299212f0389d64ba26f34fa32cfe41588355f21ed507c59a0f64541" +checksum = "88a41f105fe1d5b6b34b2055e3dc59bb79b46b48b2040b9e6c7b4b5de097aa41" +dependencies = [ + "autocfg", +] [[package]] name = "fs2" @@ -3943,7 +3980,7 @@ version = "0.6.6" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "2eeb4ed9e12f43b7fa0baae3f9cdda28352770132ef2e09a23760c29cae8bd47" dependencies = [ - "rustix 0.38.21", + "rustix 0.38.25", "windows-sys 0.48.0", ] @@ -4017,6 +4054,20 @@ dependencies = [ "waker-fn", ] +[[package]] +name = "futures-lite" +version = "2.0.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d3831c2651acb5177cbd83943f3d9c8912c5ad03c76afcc0e9511ba568ec5ebb" +dependencies = [ + "fastrand 2.0.1", + "futures-core", + "futures-io", + "memchr", + "parking", + "pin-project-lite 0.2.13", +] + [[package]] name = "futures-macro" version = "0.3.29" @@ -4025,7 +4076,7 @@ checksum = "53b153fd91e4b0147f4aced87be237c98248656bb01050b96bf3ee89220a8ddb" dependencies = [ "proc-macro2", "quote", - "syn 2.0.38", + "syn 2.0.39", ] [[package]] @@ -4127,9 +4178,9 @@ dependencies = [ [[package]] name = "getrandom" -version = "0.2.10" +version = "0.2.11" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "be4136b2a15dd319360be1c07d9933517ccf0be8f16bf62a3bee4f0d618df427" +checksum = "fe9006bed769170c11f845cf00c7c1e9092aeb3f268e007c3e760ac68008070f" dependencies = [ "cfg-if", "libc", @@ -4169,9 +4220,9 @@ dependencies = [ [[package]] name = "gimli" -version = "0.28.0" +version = "0.28.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6fb8d784f27acf97159b40fc4db5ecd8aa23b9ad5ef69cdd136d3bc80665f0c0" +checksum = "4271d37baee1b8c7e4b708028c57d816cf9d2434acb33a549475f78c181f6253" [[package]] name = "glob" @@ -4181,15 +4232,15 @@ checksum = "d2fabcfbdc87f4758337ca535fb41a6d701b65693ce38287d856d1674551ec9b" [[package]] name = "globset" -version = "0.4.13" +version = "0.4.14" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "759c97c1e17c55525b57192c06a267cda0ac5210b222d6b82189a2338fa1c13d" +checksum = "57da3b9b5b85bd66f31093f8c408b90a74431672542466497dcbdfdc02034be1" dependencies = [ "aho-corasick", "bstr", - "fnv", "log", - "regex", + "regex-automata 0.4.3", + "regex-syntax 0.8.2", ] [[package]] @@ -4216,9 +4267,9 @@ dependencies = [ [[package]] name = "h2" -version = "0.3.21" +version = "0.3.22" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "91fc23aa11be92976ef4729127f1a74adf36d8436f7816b185d18df956790833" +checksum = "4d6250322ef6e60f93f9a2162799302cd6f68f79f6e5d85c8c16f14d1d958178" dependencies = [ "bytes", "fnv", @@ -4226,7 +4277,7 @@ dependencies = [ "futures-sink", "futures-util", "http", - "indexmap 1.9.3", + "indexmap 2.1.0", "slab", "tokio", "tokio-util", @@ -4235,9 +4286,9 @@ dependencies = [ [[package]] name = "handlebars" -version = "4.4.0" +version = "4.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c39b3bc2a8f715298032cf5087e58573809374b08160aa7d750582bdb82d2683" +checksum = "faa67bab9ff362228eb3d00bd024a4965d8231bbb7921167f0cfa66c6626b225" dependencies = [ "log", "pest", @@ -4292,9 +4343,9 @@ dependencies = [ [[package]] name = "hashbrown" -version = "0.14.2" +version = "0.14.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f93e7192158dbcda357bdec5fb5788eebf8bbac027f3f33e719d29135ae84156" +checksum = "290f1a1d9242c78d09ce40a5e87e7554ee637af1351968159f4952f028f75604" dependencies = [ "ahash 0.8.6", "allocator-api2", @@ -4405,9 +4456,9 @@ dependencies = [ [[package]] name = "http" -version = "0.2.9" +version = "0.2.11" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bd6effc99afb63425aff9b05836f029929e345a6148a14b7ecd5ab67af944482" +checksum = "8947b1a6fad4393052c7ba1f4cd97bed3e953a95c79c92ad9b051a04611d9fbb" dependencies = [ "bytes", "fnv", @@ -4483,11 +4534,11 @@ dependencies = [ "http", "hyper", "log", - "rustls 0.21.8", + "rustls 0.21.9", "rustls-native-certs", "tokio", "tokio-rustls", - "webpki-roots 0.25.2", + "webpki-roots 0.25.3", ] [[package]] @@ -4532,9 +4583,9 @@ dependencies = [ [[package]] name = "idna" -version = "0.4.0" +version = "0.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7d20d6b07bfbc108882d88ed8e37d39636dcc260e15e30c45e6ba089610b917c" +checksum = "634d9b1461af396cad843f47fdba5597a4f9e6ddd4bfb6ff5d85028c25cb12f6" dependencies = [ "unicode-bidi", "unicode-normalization", @@ -4542,21 +4593,21 @@ dependencies = [ [[package]] name = "if-addrs" -version = "0.7.0" +version = "0.10.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cbc0fa01ffc752e9dbc72818cdb072cd028b86be5e09dd04c5a643704fe101a9" +checksum = "cabb0019d51a643781ff15c9c8a3e5dedc365c47211270f4e8f82812fedd8f0a" dependencies = [ "libc", - "winapi", + "windows-sys 0.48.0", ] [[package]] name = "if-watch" -version = "3.1.0" +version = "3.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bbb892e5777fe09e16f3d44de7802f4daa7267ecbe8c466f19d94e25bb0c303e" +checksum = "d6b0422c86d7ce0e97169cc42e04ae643caf278874a7a3c87b8150a220dc7e1e" dependencies = [ - "async-io 1.13.0", + "async-io 2.2.1", "core-foundation", "fnv", "futures", @@ -4635,7 +4686,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "d530e1a18b1cb4c484e6e34556a0d948706958449fca0cab753d649f2bce3d1f" dependencies = [ "equivalent", - "hashbrown 0.14.2", + "hashbrown 0.14.3", ] [[package]] @@ -4751,7 +4802,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "cb0889898416213fab133e1d33a0e5858a48177452750691bde3666d0fdbaf8b" dependencies = [ "hermit-abi 0.3.3", - "rustix 0.38.21", + "rustix 0.38.25", "windows-sys 0.48.0", ] @@ -4799,9 +4850,9 @@ dependencies = [ [[package]] name = "js-sys" -version = "0.3.64" +version = "0.3.66" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c5f195fe497f702db0f318b07fdd68edb16955aed830df8363d837542f8f935a" +checksum = "cee9c64da59eae3b50095c18d3e74f8b73c0b86d2792824ff01bbce68ba229ca" dependencies = [ "wasm-bindgen", ] @@ -4839,7 +4890,7 @@ dependencies = [ "tokio-rustls", "tokio-util", "tracing", - "webpki-roots 0.25.2", + "webpki-roots 0.25.3", ] [[package]] @@ -4850,7 +4901,7 @@ checksum = "2b5dde66c53d6dcdc8caea1874a45632ec0fcf5b437789f1e45766a1512ce803" dependencies = [ "anyhow", "arrayvec 0.7.4", - "async-lock", + "async-lock 2.8.0", "async-trait", "beef", "futures-channel", @@ -4952,13 +5003,13 @@ dependencies = [ [[package]] name = "k256" -version = "0.13.1" +version = "0.13.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cadb76004ed8e97623117f3df85b17aaa6626ab0b0831e6573f104df16cd1bcc" +checksum = "3f01b677d82ef7a676aa37e099defd83a28e15687112cafdd112d60236b6115b" dependencies = [ "cfg-if", - "ecdsa 0.16.8", - "elliptic-curve 0.13.6", + "ecdsa 0.16.9", + "elliptic-curve 0.13.8", "once_cell", "sha2 0.10.8", ] @@ -4975,7 +5026,7 @@ dependencies = [ [[package]] name = "kusama-runtime-constants" version = "1.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#f60318f68687e601c47de5ad5ca88e2c3f8139a7" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#c8d2251cafadc108ba2f1f8a3208dc547ff38901" dependencies = [ "frame-support", "polkadot-primitives", @@ -5044,9 +5095,9 @@ checksum = "830d08ce1d1d941e6b30645f1a0eb5643013d835ce3779a5fc208261dbe10f55" [[package]] name = "libc" -version = "0.2.149" +version = "0.2.150" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a08173bc88b7955d1b3145aa561539096c421ac8debde8cbc3612ec635fee29b" +checksum = "89d92a4743f9a61002fae18374ed11e7973f530cb3a3255fb354818118b2203c" [[package]] name = "libflate" @@ -5093,7 +5144,7 @@ dependencies = [ "bytes", "futures", "futures-timer", - "getrandom 0.2.10", + "getrandom 0.2.11", "instant", "libp2p-allow-block-list", "libp2p-connection-limits", @@ -5509,6 +5560,17 @@ dependencies = [ "yamux", ] +[[package]] +name = "libredox" +version = "0.0.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "85c833ca1e66078851dba29046874e38f08b2c883700aa29a03ddd3b23814ee8" +dependencies = [ + "bitflags 2.4.1", + "libc", + "redox_syscall 0.4.1", +] + [[package]] name = "librocksdb-sys" version = "0.11.0+8.1.1" @@ -5630,9 +5692,9 @@ checksum = "ef53942eb7bf7ff43a617b3e2c1c4a5ecf5944a7c1bc12d7ee39bbb15e5c1519" [[package]] name = "linux-raw-sys" -version = "0.4.10" +version = "0.4.11" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "da2479e8c062e40bf0066ffa0bc823de0a9368974af99c9f6df941d2c231e03f" +checksum = "969488b55f8ac402214f3f5fd243ebb7206cf82de60d3172994707a4bcc2b829" [[package]] name = "lock_api" @@ -5712,7 +5774,7 @@ dependencies = [ "macro_magic_core", "macro_magic_macros", "quote", - "syn 2.0.38", + "syn 2.0.39", ] [[package]] @@ -5726,7 +5788,7 @@ dependencies = [ "macro_magic_core_macros", "proc-macro2", "quote", - "syn 2.0.38", + "syn 2.0.39", ] [[package]] @@ -5737,7 +5799,7 @@ checksum = "d710e1214dffbab3b5dacb21475dde7d6ed84c69ff722b3a47a782668d44fbac" dependencies = [ "proc-macro2", "quote", - "syn 2.0.38", + "syn 2.0.39", ] [[package]] @@ -5748,7 +5810,7 @@ checksum = "b8fb85ec1620619edf2984a7693497d4ec88a9665d8b87e942856884c92dbf2a" dependencies = [ "macro_magic_core", "quote", - "syn 2.0.38", + "syn 2.0.39", ] [[package]] @@ -5810,7 +5872,7 @@ version = "0.6.4" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "b2cffa4ad52c6f791f4f8b15f0c05f9824b2ced1160e88cc393d64fff9a8ac64" dependencies = [ - "rustix 0.38.21", + "rustix 0.38.25", ] [[package]] @@ -5922,7 +5984,7 @@ dependencies = [ [[package]] name = "mmr-gadget" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#f60318f68687e601c47de5ad5ca88e2c3f8139a7" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#c8d2251cafadc108ba2f1f8a3208dc547ff38901" dependencies = [ "futures", "log", @@ -5941,7 +6003,7 @@ dependencies = [ [[package]] name = "mmr-rpc" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#f60318f68687e601c47de5ad5ca88e2c3f8139a7" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#c8d2251cafadc108ba2f1f8a3208dc547ff38901" dependencies = [ "anyhow", "jsonrpsee", @@ -6444,7 +6506,7 @@ dependencies = [ [[package]] name = "pallet-aura" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#f60318f68687e601c47de5ad5ca88e2c3f8139a7" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#c8d2251cafadc108ba2f1f8a3208dc547ff38901" dependencies = [ "frame-support", "frame-system", @@ -6461,7 +6523,7 @@ dependencies = [ [[package]] name = "pallet-authority-discovery" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#f60318f68687e601c47de5ad5ca88e2c3f8139a7" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#c8d2251cafadc108ba2f1f8a3208dc547ff38901" dependencies = [ "frame-support", "frame-system", @@ -6477,7 +6539,7 @@ dependencies = [ [[package]] name = "pallet-authorship" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#f60318f68687e601c47de5ad5ca88e2c3f8139a7" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#c8d2251cafadc108ba2f1f8a3208dc547ff38901" dependencies = [ "frame-support", "frame-system", @@ -6491,7 +6553,7 @@ dependencies = [ [[package]] name = "pallet-babe" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#f60318f68687e601c47de5ad5ca88e2c3f8139a7" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#c8d2251cafadc108ba2f1f8a3208dc547ff38901" dependencies = [ "frame-benchmarking", "frame-support", @@ -6515,7 +6577,7 @@ dependencies = [ [[package]] name = "pallet-bags-list" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#f60318f68687e601c47de5ad5ca88e2c3f8139a7" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#c8d2251cafadc108ba2f1f8a3208dc547ff38901" dependencies = [ "aquamarine", "docify", @@ -6537,7 +6599,7 @@ dependencies = [ [[package]] name = "pallet-balances" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#f60318f68687e601c47de5ad5ca88e2c3f8139a7" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#c8d2251cafadc108ba2f1f8a3208dc547ff38901" dependencies = [ "frame-benchmarking", "frame-support", @@ -6552,7 +6614,7 @@ dependencies = [ [[package]] name = "pallet-beefy" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#f60318f68687e601c47de5ad5ca88e2c3f8139a7" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#c8d2251cafadc108ba2f1f8a3208dc547ff38901" dependencies = [ "frame-support", "frame-system", @@ -6572,7 +6634,7 @@ dependencies = [ [[package]] name = "pallet-beefy-mmr" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#f60318f68687e601c47de5ad5ca88e2c3f8139a7" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#c8d2251cafadc108ba2f1f8a3208dc547ff38901" dependencies = [ "array-bytes", "binary-merkle-tree", @@ -6597,7 +6659,7 @@ dependencies = [ [[package]] name = "pallet-bounties" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#f60318f68687e601c47de5ad5ca88e2c3f8139a7" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#c8d2251cafadc108ba2f1f8a3208dc547ff38901" dependencies = [ "frame-benchmarking", "frame-support", @@ -6635,7 +6697,7 @@ dependencies = [ [[package]] name = "pallet-child-bounties" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#f60318f68687e601c47de5ad5ca88e2c3f8139a7" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#c8d2251cafadc108ba2f1f8a3208dc547ff38901" dependencies = [ "frame-benchmarking", "frame-support", @@ -6654,7 +6716,7 @@ dependencies = [ [[package]] name = "pallet-collator-selection" version = "3.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#f60318f68687e601c47de5ad5ca88e2c3f8139a7" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#c8d2251cafadc108ba2f1f8a3208dc547ff38901" dependencies = [ "frame-benchmarking", "frame-support", @@ -6673,7 +6735,7 @@ dependencies = [ [[package]] name = "pallet-collective" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#f60318f68687e601c47de5ad5ca88e2c3f8139a7" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#c8d2251cafadc108ba2f1f8a3208dc547ff38901" dependencies = [ "frame-benchmarking", "frame-support", @@ -6690,7 +6752,7 @@ dependencies = [ [[package]] name = "pallet-conviction-voting" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#f60318f68687e601c47de5ad5ca88e2c3f8139a7" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#c8d2251cafadc108ba2f1f8a3208dc547ff38901" dependencies = [ "assert_matches", "frame-benchmarking", @@ -6707,7 +6769,7 @@ dependencies = [ [[package]] name = "pallet-democracy" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#f60318f68687e601c47de5ad5ca88e2c3f8139a7" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#c8d2251cafadc108ba2f1f8a3208dc547ff38901" dependencies = [ "frame-benchmarking", "frame-support", @@ -6725,7 +6787,7 @@ dependencies = [ [[package]] name = "pallet-election-provider-multi-phase" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#f60318f68687e601c47de5ad5ca88e2c3f8139a7" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#c8d2251cafadc108ba2f1f8a3208dc547ff38901" dependencies = [ "frame-benchmarking", "frame-election-provider-support", @@ -6748,7 +6810,7 @@ dependencies = [ [[package]] name = "pallet-election-provider-support-benchmarking" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#f60318f68687e601c47de5ad5ca88e2c3f8139a7" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#c8d2251cafadc108ba2f1f8a3208dc547ff38901" dependencies = [ "frame-benchmarking", "frame-election-provider-support", @@ -6762,7 +6824,7 @@ dependencies = [ [[package]] name = "pallet-elections-phragmen" version = "5.0.0-dev" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#f60318f68687e601c47de5ad5ca88e2c3f8139a7" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#c8d2251cafadc108ba2f1f8a3208dc547ff38901" dependencies = [ "frame-benchmarking", "frame-support", @@ -6781,7 +6843,7 @@ dependencies = [ [[package]] name = "pallet-fast-unstake" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#f60318f68687e601c47de5ad5ca88e2c3f8139a7" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#c8d2251cafadc108ba2f1f8a3208dc547ff38901" dependencies = [ "docify", "frame-benchmarking", @@ -6857,7 +6919,7 @@ dependencies = [ [[package]] name = "pallet-grandpa" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#f60318f68687e601c47de5ad5ca88e2c3f8139a7" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#c8d2251cafadc108ba2f1f8a3208dc547ff38901" dependencies = [ "frame-benchmarking", "frame-support", @@ -6882,7 +6944,7 @@ name = "pallet-handles" version = "0.0.0" dependencies = [ "common-primitives", - "env_logger 0.10.0", + "env_logger 0.10.1", "frame-benchmarking", "frame-support", "frame-system", @@ -6931,7 +6993,7 @@ dependencies = [ [[package]] name = "pallet-identity" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#f60318f68687e601c47de5ad5ca88e2c3f8139a7" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#c8d2251cafadc108ba2f1f8a3208dc547ff38901" dependencies = [ "enumflags2", "frame-benchmarking", @@ -6947,7 +7009,7 @@ dependencies = [ [[package]] name = "pallet-im-online" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#f60318f68687e601c47de5ad5ca88e2c3f8139a7" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#c8d2251cafadc108ba2f1f8a3208dc547ff38901" dependencies = [ "frame-benchmarking", "frame-support", @@ -6967,7 +7029,7 @@ dependencies = [ [[package]] name = "pallet-indices" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#f60318f68687e601c47de5ad5ca88e2c3f8139a7" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#c8d2251cafadc108ba2f1f8a3208dc547ff38901" dependencies = [ "frame-benchmarking", "frame-support", @@ -6984,7 +7046,7 @@ dependencies = [ [[package]] name = "pallet-membership" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#f60318f68687e601c47de5ad5ca88e2c3f8139a7" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#c8d2251cafadc108ba2f1f8a3208dc547ff38901" dependencies = [ "frame-benchmarking", "frame-support", @@ -7001,7 +7063,7 @@ dependencies = [ [[package]] name = "pallet-message-queue" version = "7.0.0-dev" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#f60318f68687e601c47de5ad5ca88e2c3f8139a7" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#c8d2251cafadc108ba2f1f8a3208dc547ff38901" dependencies = [ "frame-benchmarking", "frame-support", @@ -7070,7 +7132,7 @@ dependencies = [ [[package]] name = "pallet-mmr" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#f60318f68687e601c47de5ad5ca88e2c3f8139a7" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#c8d2251cafadc108ba2f1f8a3208dc547ff38901" dependencies = [ "frame-benchmarking", "frame-support", @@ -7143,7 +7205,7 @@ dependencies = [ [[package]] name = "pallet-multisig" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#f60318f68687e601c47de5ad5ca88e2c3f8139a7" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#c8d2251cafadc108ba2f1f8a3208dc547ff38901" dependencies = [ "frame-benchmarking", "frame-support", @@ -7159,7 +7221,7 @@ dependencies = [ [[package]] name = "pallet-nis" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#f60318f68687e601c47de5ad5ca88e2c3f8139a7" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#c8d2251cafadc108ba2f1f8a3208dc547ff38901" dependencies = [ "frame-benchmarking", "frame-support", @@ -7175,7 +7237,7 @@ dependencies = [ [[package]] name = "pallet-nomination-pools" version = "1.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#f60318f68687e601c47de5ad5ca88e2c3f8139a7" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#c8d2251cafadc108ba2f1f8a3208dc547ff38901" dependencies = [ "frame-support", "frame-system", @@ -7194,7 +7256,7 @@ dependencies = [ [[package]] name = "pallet-nomination-pools-benchmarking" version = "1.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#f60318f68687e601c47de5ad5ca88e2c3f8139a7" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#c8d2251cafadc108ba2f1f8a3208dc547ff38901" dependencies = [ "frame-benchmarking", "frame-election-provider-support", @@ -7214,7 +7276,7 @@ dependencies = [ [[package]] name = "pallet-nomination-pools-runtime-api" version = "1.0.0-dev" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#f60318f68687e601c47de5ad5ca88e2c3f8139a7" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#c8d2251cafadc108ba2f1f8a3208dc547ff38901" dependencies = [ "pallet-nomination-pools", "parity-scale-codec", @@ -7225,7 +7287,7 @@ dependencies = [ [[package]] name = "pallet-offences" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#f60318f68687e601c47de5ad5ca88e2c3f8139a7" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#c8d2251cafadc108ba2f1f8a3208dc547ff38901" dependencies = [ "frame-support", "frame-system", @@ -7242,7 +7304,7 @@ dependencies = [ [[package]] name = "pallet-offences-benchmarking" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#f60318f68687e601c47de5ad5ca88e2c3f8139a7" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#c8d2251cafadc108ba2f1f8a3208dc547ff38901" dependencies = [ "frame-benchmarking", "frame-election-provider-support", @@ -7266,7 +7328,7 @@ dependencies = [ [[package]] name = "pallet-preimage" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#f60318f68687e601c47de5ad5ca88e2c3f8139a7" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#c8d2251cafadc108ba2f1f8a3208dc547ff38901" dependencies = [ "frame-benchmarking", "frame-support", @@ -7283,7 +7345,7 @@ dependencies = [ [[package]] name = "pallet-proxy" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#f60318f68687e601c47de5ad5ca88e2c3f8139a7" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#c8d2251cafadc108ba2f1f8a3208dc547ff38901" dependencies = [ "frame-benchmarking", "frame-support", @@ -7298,7 +7360,7 @@ dependencies = [ [[package]] name = "pallet-ranked-collective" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#f60318f68687e601c47de5ad5ca88e2c3f8139a7" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#c8d2251cafadc108ba2f1f8a3208dc547ff38901" dependencies = [ "frame-benchmarking", "frame-support", @@ -7316,7 +7378,7 @@ dependencies = [ [[package]] name = "pallet-recovery" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#f60318f68687e601c47de5ad5ca88e2c3f8139a7" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#c8d2251cafadc108ba2f1f8a3208dc547ff38901" dependencies = [ "frame-benchmarking", "frame-support", @@ -7331,7 +7393,7 @@ dependencies = [ [[package]] name = "pallet-referenda" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#f60318f68687e601c47de5ad5ca88e2c3f8139a7" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#c8d2251cafadc108ba2f1f8a3208dc547ff38901" dependencies = [ "assert_matches", "frame-benchmarking", @@ -7350,7 +7412,7 @@ dependencies = [ [[package]] name = "pallet-scheduler" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#f60318f68687e601c47de5ad5ca88e2c3f8139a7" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#c8d2251cafadc108ba2f1f8a3208dc547ff38901" dependencies = [ "docify", "frame-benchmarking", @@ -7424,7 +7486,7 @@ dependencies = [ [[package]] name = "pallet-session" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#f60318f68687e601c47de5ad5ca88e2c3f8139a7" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#c8d2251cafadc108ba2f1f8a3208dc547ff38901" dependencies = [ "frame-support", "frame-system", @@ -7446,7 +7508,7 @@ dependencies = [ [[package]] name = "pallet-session-benchmarking" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#f60318f68687e601c47de5ad5ca88e2c3f8139a7" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#c8d2251cafadc108ba2f1f8a3208dc547ff38901" dependencies = [ "frame-benchmarking", "frame-support", @@ -7463,7 +7525,7 @@ dependencies = [ [[package]] name = "pallet-society" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#f60318f68687e601c47de5ad5ca88e2c3f8139a7" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#c8d2251cafadc108ba2f1f8a3208dc547ff38901" dependencies = [ "frame-benchmarking", "frame-support", @@ -7481,7 +7543,7 @@ dependencies = [ [[package]] name = "pallet-staking" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#f60318f68687e601c47de5ad5ca88e2c3f8139a7" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#c8d2251cafadc108ba2f1f8a3208dc547ff38901" dependencies = [ "frame-benchmarking", "frame-election-provider-support", @@ -7504,18 +7566,18 @@ dependencies = [ [[package]] name = "pallet-staking-reward-curve" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#f60318f68687e601c47de5ad5ca88e2c3f8139a7" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#c8d2251cafadc108ba2f1f8a3208dc547ff38901" dependencies = [ "proc-macro-crate", "proc-macro2", "quote", - "syn 2.0.38", + "syn 2.0.39", ] [[package]] name = "pallet-staking-reward-fn" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#f60318f68687e601c47de5ad5ca88e2c3f8139a7" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#c8d2251cafadc108ba2f1f8a3208dc547ff38901" dependencies = [ "log", "sp-arithmetic", @@ -7524,7 +7586,7 @@ dependencies = [ [[package]] name = "pallet-staking-runtime-api" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#f60318f68687e601c47de5ad5ca88e2c3f8139a7" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#c8d2251cafadc108ba2f1f8a3208dc547ff38901" dependencies = [ "parity-scale-codec", "sp-api", @@ -7533,7 +7595,7 @@ dependencies = [ [[package]] name = "pallet-state-trie-migration" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#f60318f68687e601c47de5ad5ca88e2c3f8139a7" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#c8d2251cafadc108ba2f1f8a3208dc547ff38901" dependencies = [ "frame-benchmarking", "frame-support", @@ -7552,7 +7614,7 @@ name = "pallet-stateful-storage" version = "0.0.0" dependencies = [ "common-primitives", - "env_logger 0.10.0", + "env_logger 0.10.1", "frame-benchmarking", "frame-support", "frame-system", @@ -7601,7 +7663,7 @@ dependencies = [ [[package]] name = "pallet-sudo" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#f60318f68687e601c47de5ad5ca88e2c3f8139a7" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#c8d2251cafadc108ba2f1f8a3208dc547ff38901" dependencies = [ "frame-benchmarking", "frame-support", @@ -7634,7 +7696,7 @@ dependencies = [ [[package]] name = "pallet-timestamp" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#f60318f68687e601c47de5ad5ca88e2c3f8139a7" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#c8d2251cafadc108ba2f1f8a3208dc547ff38901" dependencies = [ "frame-benchmarking", "frame-support", @@ -7653,7 +7715,7 @@ dependencies = [ [[package]] name = "pallet-tips" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#f60318f68687e601c47de5ad5ca88e2c3f8139a7" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#c8d2251cafadc108ba2f1f8a3208dc547ff38901" dependencies = [ "frame-benchmarking", "frame-support", @@ -7672,7 +7734,7 @@ dependencies = [ [[package]] name = "pallet-transaction-payment" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#f60318f68687e601c47de5ad5ca88e2c3f8139a7" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#c8d2251cafadc108ba2f1f8a3208dc547ff38901" dependencies = [ "frame-support", "frame-system", @@ -7688,7 +7750,7 @@ dependencies = [ [[package]] name = "pallet-transaction-payment-rpc" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#f60318f68687e601c47de5ad5ca88e2c3f8139a7" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#c8d2251cafadc108ba2f1f8a3208dc547ff38901" dependencies = [ "jsonrpsee", "pallet-transaction-payment-rpc-runtime-api", @@ -7704,7 +7766,7 @@ dependencies = [ [[package]] name = "pallet-transaction-payment-rpc-runtime-api" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#f60318f68687e601c47de5ad5ca88e2c3f8139a7" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#c8d2251cafadc108ba2f1f8a3208dc547ff38901" dependencies = [ "pallet-transaction-payment", "parity-scale-codec", @@ -7716,7 +7778,7 @@ dependencies = [ [[package]] name = "pallet-treasury" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#f60318f68687e601c47de5ad5ca88e2c3f8139a7" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#c8d2251cafadc108ba2f1f8a3208dc547ff38901" dependencies = [ "frame-benchmarking", "frame-support", @@ -7733,7 +7795,7 @@ dependencies = [ [[package]] name = "pallet-utility" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#f60318f68687e601c47de5ad5ca88e2c3f8139a7" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#c8d2251cafadc108ba2f1f8a3208dc547ff38901" dependencies = [ "frame-benchmarking", "frame-support", @@ -7749,7 +7811,7 @@ dependencies = [ [[package]] name = "pallet-vesting" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#f60318f68687e601c47de5ad5ca88e2c3f8139a7" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#c8d2251cafadc108ba2f1f8a3208dc547ff38901" dependencies = [ "frame-benchmarking", "frame-support", @@ -7764,7 +7826,7 @@ dependencies = [ [[package]] name = "pallet-whitelist" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#f60318f68687e601c47de5ad5ca88e2c3f8139a7" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#c8d2251cafadc108ba2f1f8a3208dc547ff38901" dependencies = [ "frame-benchmarking", "frame-support", @@ -7779,7 +7841,7 @@ dependencies = [ [[package]] name = "pallet-xcm" version = "1.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#f60318f68687e601c47de5ad5ca88e2c3f8139a7" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#c8d2251cafadc108ba2f1f8a3208dc547ff38901" dependencies = [ "bounded-collections", "frame-benchmarking", @@ -7800,7 +7862,7 @@ dependencies = [ [[package]] name = "pallet-xcm-benchmarks" version = "1.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#f60318f68687e601c47de5ad5ca88e2c3f8139a7" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#c8d2251cafadc108ba2f1f8a3208dc547ff38901" dependencies = [ "frame-benchmarking", "frame-support", @@ -7819,7 +7881,7 @@ dependencies = [ [[package]] name = "parachain-info" version = "0.1.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#f60318f68687e601c47de5ad5ca88e2c3f8139a7" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#c8d2251cafadc108ba2f1f8a3208dc547ff38901" dependencies = [ "cumulus-primitives-core", "frame-support", @@ -8008,9 +8070,9 @@ dependencies = [ [[package]] name = "percent-encoding" -version = "2.3.0" +version = "2.3.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9b2a4787296e9989611394c33f193f676704af1686e70b8f8033ab5ba9a35a94" +checksum = "e3148f5046208a5d56bcfc03053e3ca6334e51da8dfb19b6cdc8b306fae3283e" [[package]] name = "pest" @@ -8043,7 +8105,7 @@ dependencies = [ "pest_meta", "proc-macro2", "quote", - "syn 2.0.38", + "syn 2.0.39", ] [[package]] @@ -8097,7 +8159,7 @@ dependencies = [ "phf_shared", "proc-macro2", "quote", - "syn 2.0.38", + "syn 2.0.39", ] [[package]] @@ -8126,7 +8188,7 @@ checksum = "4359fd9c9171ec6e8c62926d6faaf553a8dc3f64e1507e76da7911b4f6a04405" dependencies = [ "proc-macro2", "quote", - "syn 2.0.38", + "syn 2.0.39", ] [[package]] @@ -8186,14 +8248,14 @@ checksum = "26072860ba924cbfa98ea39c8c19b4dd6a4a25423dbdf219c1eca91aa0cf6964" [[package]] name = "platforms" -version = "3.1.2" +version = "3.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4503fa043bf02cee09a9582e9554b4c6403b2ef55e4612e96561d294419429f8" +checksum = "14e6ab3f592e6fb464fc9712d8d6e6912de6473954635fd76a589d832cffcbb0" [[package]] name = "polkadot-approval-distribution" version = "1.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#f60318f68687e601c47de5ad5ca88e2c3f8139a7" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#c8d2251cafadc108ba2f1f8a3208dc547ff38901" dependencies = [ "futures", "futures-timer", @@ -8211,7 +8273,7 @@ dependencies = [ [[package]] name = "polkadot-availability-bitfield-distribution" version = "1.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#f60318f68687e601c47de5ad5ca88e2c3f8139a7" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#c8d2251cafadc108ba2f1f8a3208dc547ff38901" dependencies = [ "always-assert", "futures", @@ -8227,7 +8289,7 @@ dependencies = [ [[package]] name = "polkadot-availability-distribution" version = "1.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#f60318f68687e601c47de5ad5ca88e2c3f8139a7" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#c8d2251cafadc108ba2f1f8a3208dc547ff38901" dependencies = [ "derive_more", "fatality", @@ -8250,7 +8312,7 @@ dependencies = [ [[package]] name = "polkadot-availability-recovery" version = "1.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#f60318f68687e601c47de5ad5ca88e2c3f8139a7" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#c8d2251cafadc108ba2f1f8a3208dc547ff38901" dependencies = [ "fatality", "futures", @@ -8271,7 +8333,7 @@ dependencies = [ [[package]] name = "polkadot-cli" version = "1.1.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#f60318f68687e601c47de5ad5ca88e2c3f8139a7" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#c8d2251cafadc108ba2f1f8a3208dc547ff38901" dependencies = [ "clap", "frame-benchmarking-cli", @@ -8298,7 +8360,7 @@ dependencies = [ [[package]] name = "polkadot-collator-protocol" version = "1.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#f60318f68687e601c47de5ad5ca88e2c3f8139a7" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#c8d2251cafadc108ba2f1f8a3208dc547ff38901" dependencies = [ "bitvec", "fatality", @@ -8320,7 +8382,7 @@ dependencies = [ [[package]] name = "polkadot-core-primitives" version = "1.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#f60318f68687e601c47de5ad5ca88e2c3f8139a7" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#c8d2251cafadc108ba2f1f8a3208dc547ff38901" dependencies = [ "parity-scale-codec", "scale-info", @@ -8332,7 +8394,7 @@ dependencies = [ [[package]] name = "polkadot-dispute-distribution" version = "1.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#f60318f68687e601c47de5ad5ca88e2c3f8139a7" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#c8d2251cafadc108ba2f1f8a3208dc547ff38901" dependencies = [ "derive_more", "fatality", @@ -8357,7 +8419,7 @@ dependencies = [ [[package]] name = "polkadot-erasure-coding" version = "1.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#f60318f68687e601c47de5ad5ca88e2c3f8139a7" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#c8d2251cafadc108ba2f1f8a3208dc547ff38901" dependencies = [ "parity-scale-codec", "polkadot-node-primitives", @@ -8371,7 +8433,7 @@ dependencies = [ [[package]] name = "polkadot-gossip-support" version = "1.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#f60318f68687e601c47de5ad5ca88e2c3f8139a7" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#c8d2251cafadc108ba2f1f8a3208dc547ff38901" dependencies = [ "futures", "futures-timer", @@ -8392,7 +8454,7 @@ dependencies = [ [[package]] name = "polkadot-network-bridge" version = "1.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#f60318f68687e601c47de5ad5ca88e2c3f8139a7" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#c8d2251cafadc108ba2f1f8a3208dc547ff38901" dependencies = [ "always-assert", "async-trait", @@ -8415,7 +8477,7 @@ dependencies = [ [[package]] name = "polkadot-node-collation-generation" version = "1.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#f60318f68687e601c47de5ad5ca88e2c3f8139a7" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#c8d2251cafadc108ba2f1f8a3208dc547ff38901" dependencies = [ "futures", "parity-scale-codec", @@ -8433,7 +8495,7 @@ dependencies = [ [[package]] name = "polkadot-node-core-approval-voting" version = "1.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#f60318f68687e601c47de5ad5ca88e2c3f8139a7" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#c8d2251cafadc108ba2f1f8a3208dc547ff38901" dependencies = [ "bitvec", "derive_more", @@ -8462,7 +8524,7 @@ dependencies = [ [[package]] name = "polkadot-node-core-av-store" version = "1.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#f60318f68687e601c47de5ad5ca88e2c3f8139a7" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#c8d2251cafadc108ba2f1f8a3208dc547ff38901" dependencies = [ "bitvec", "futures", @@ -8484,7 +8546,7 @@ dependencies = [ [[package]] name = "polkadot-node-core-backing" version = "1.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#f60318f68687e601c47de5ad5ca88e2c3f8139a7" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#c8d2251cafadc108ba2f1f8a3208dc547ff38901" dependencies = [ "bitvec", "fatality", @@ -8503,7 +8565,7 @@ dependencies = [ [[package]] name = "polkadot-node-core-bitfield-signing" version = "1.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#f60318f68687e601c47de5ad5ca88e2c3f8139a7" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#c8d2251cafadc108ba2f1f8a3208dc547ff38901" dependencies = [ "futures", "polkadot-node-subsystem", @@ -8518,7 +8580,7 @@ dependencies = [ [[package]] name = "polkadot-node-core-candidate-validation" version = "1.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#f60318f68687e601c47de5ad5ca88e2c3f8139a7" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#c8d2251cafadc108ba2f1f8a3208dc547ff38901" dependencies = [ "async-trait", "futures", @@ -8539,7 +8601,7 @@ dependencies = [ [[package]] name = "polkadot-node-core-chain-api" version = "1.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#f60318f68687e601c47de5ad5ca88e2c3f8139a7" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#c8d2251cafadc108ba2f1f8a3208dc547ff38901" dependencies = [ "futures", "polkadot-node-metrics", @@ -8554,7 +8616,7 @@ dependencies = [ [[package]] name = "polkadot-node-core-chain-selection" version = "1.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#f60318f68687e601c47de5ad5ca88e2c3f8139a7" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#c8d2251cafadc108ba2f1f8a3208dc547ff38901" dependencies = [ "futures", "futures-timer", @@ -8571,7 +8633,7 @@ dependencies = [ [[package]] name = "polkadot-node-core-dispute-coordinator" version = "1.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#f60318f68687e601c47de5ad5ca88e2c3f8139a7" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#c8d2251cafadc108ba2f1f8a3208dc547ff38901" dependencies = [ "fatality", "futures", @@ -8590,7 +8652,7 @@ dependencies = [ [[package]] name = "polkadot-node-core-parachains-inherent" version = "1.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#f60318f68687e601c47de5ad5ca88e2c3f8139a7" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#c8d2251cafadc108ba2f1f8a3208dc547ff38901" dependencies = [ "async-trait", "futures", @@ -8607,7 +8669,7 @@ dependencies = [ [[package]] name = "polkadot-node-core-prospective-parachains" version = "1.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#f60318f68687e601c47de5ad5ca88e2c3f8139a7" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#c8d2251cafadc108ba2f1f8a3208dc547ff38901" dependencies = [ "bitvec", "fatality", @@ -8624,7 +8686,7 @@ dependencies = [ [[package]] name = "polkadot-node-core-provisioner" version = "1.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#f60318f68687e601c47de5ad5ca88e2c3f8139a7" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#c8d2251cafadc108ba2f1f8a3208dc547ff38901" dependencies = [ "bitvec", "fatality", @@ -8641,7 +8703,7 @@ dependencies = [ [[package]] name = "polkadot-node-core-pvf" version = "1.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#f60318f68687e601c47de5ad5ca88e2c3f8139a7" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#c8d2251cafadc108ba2f1f8a3208dc547ff38901" dependencies = [ "always-assert", "futures", @@ -8669,7 +8731,7 @@ dependencies = [ [[package]] name = "polkadot-node-core-pvf-checker" version = "1.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#f60318f68687e601c47de5ad5ca88e2c3f8139a7" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#c8d2251cafadc108ba2f1f8a3208dc547ff38901" dependencies = [ "futures", "polkadot-node-primitives", @@ -8685,7 +8747,7 @@ dependencies = [ [[package]] name = "polkadot-node-core-pvf-common" version = "1.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#f60318f68687e601c47de5ad5ca88e2c3f8139a7" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#c8d2251cafadc108ba2f1f8a3208dc547ff38901" dependencies = [ "cpu-time", "futures", @@ -8708,7 +8770,7 @@ dependencies = [ [[package]] name = "polkadot-node-core-pvf-prepare-worker" version = "1.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#f60318f68687e601c47de5ad5ca88e2c3f8139a7" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#c8d2251cafadc108ba2f1f8a3208dc547ff38901" dependencies = [ "futures", "libc", @@ -8731,7 +8793,7 @@ dependencies = [ [[package]] name = "polkadot-node-core-runtime-api" version = "1.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#f60318f68687e601c47de5ad5ca88e2c3f8139a7" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#c8d2251cafadc108ba2f1f8a3208dc547ff38901" dependencies = [ "futures", "polkadot-node-metrics", @@ -8746,7 +8808,7 @@ dependencies = [ [[package]] name = "polkadot-node-jaeger" version = "1.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#f60318f68687e601c47de5ad5ca88e2c3f8139a7" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#c8d2251cafadc108ba2f1f8a3208dc547ff38901" dependencies = [ "lazy_static", "log", @@ -8764,7 +8826,7 @@ dependencies = [ [[package]] name = "polkadot-node-metrics" version = "1.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#f60318f68687e601c47de5ad5ca88e2c3f8139a7" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#c8d2251cafadc108ba2f1f8a3208dc547ff38901" dependencies = [ "bs58 0.5.0", "futures", @@ -8783,9 +8845,9 @@ dependencies = [ [[package]] name = "polkadot-node-network-protocol" version = "1.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#f60318f68687e601c47de5ad5ca88e2c3f8139a7" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#c8d2251cafadc108ba2f1f8a3208dc547ff38901" dependencies = [ - "async-channel", + "async-channel 1.9.0", "async-trait", "bitvec", "derive_more", @@ -8807,7 +8869,7 @@ dependencies = [ [[package]] name = "polkadot-node-primitives" version = "1.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#f60318f68687e601c47de5ad5ca88e2c3f8139a7" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#c8d2251cafadc108ba2f1f8a3208dc547ff38901" dependencies = [ "bounded-vec", "futures", @@ -8829,7 +8891,7 @@ dependencies = [ [[package]] name = "polkadot-node-subsystem" version = "1.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#f60318f68687e601c47de5ad5ca88e2c3f8139a7" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#c8d2251cafadc108ba2f1f8a3208dc547ff38901" dependencies = [ "polkadot-node-jaeger", "polkadot-node-subsystem-types", @@ -8839,7 +8901,7 @@ dependencies = [ [[package]] name = "polkadot-node-subsystem-types" version = "1.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#f60318f68687e601c47de5ad5ca88e2c3f8139a7" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#c8d2251cafadc108ba2f1f8a3208dc547ff38901" dependencies = [ "async-trait", "derive_more", @@ -8863,7 +8925,7 @@ dependencies = [ [[package]] name = "polkadot-node-subsystem-util" version = "1.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#f60318f68687e601c47de5ad5ca88e2c3f8139a7" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#c8d2251cafadc108ba2f1f8a3208dc547ff38901" dependencies = [ "async-trait", "derive_more", @@ -8896,7 +8958,7 @@ dependencies = [ [[package]] name = "polkadot-overseer" version = "1.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#f60318f68687e601c47de5ad5ca88e2c3f8139a7" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#c8d2251cafadc108ba2f1f8a3208dc547ff38901" dependencies = [ "async-trait", "futures", @@ -8919,7 +8981,7 @@ dependencies = [ [[package]] name = "polkadot-parachain-primitives" version = "1.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#f60318f68687e601c47de5ad5ca88e2c3f8139a7" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#c8d2251cafadc108ba2f1f8a3208dc547ff38901" dependencies = [ "bounded-collections", "derive_more", @@ -8936,7 +8998,7 @@ dependencies = [ [[package]] name = "polkadot-performance-test" version = "1.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#f60318f68687e601c47de5ad5ca88e2c3f8139a7" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#c8d2251cafadc108ba2f1f8a3208dc547ff38901" dependencies = [ "env_logger 0.9.3", "log", @@ -8954,7 +9016,7 @@ dependencies = [ [[package]] name = "polkadot-primitives" version = "1.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#f60318f68687e601c47de5ad5ca88e2c3f8139a7" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#c8d2251cafadc108ba2f1f8a3208dc547ff38901" dependencies = [ "bitvec", "hex-literal", @@ -8980,7 +9042,7 @@ dependencies = [ [[package]] name = "polkadot-rpc" version = "1.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#f60318f68687e601c47de5ad5ca88e2c3f8139a7" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#c8d2251cafadc108ba2f1f8a3208dc547ff38901" dependencies = [ "jsonrpsee", "mmr-rpc", @@ -9012,7 +9074,7 @@ dependencies = [ [[package]] name = "polkadot-runtime" version = "1.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#f60318f68687e601c47de5ad5ca88e2c3f8139a7" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#c8d2251cafadc108ba2f1f8a3208dc547ff38901" dependencies = [ "bitvec", "frame-benchmarking", @@ -9109,7 +9171,7 @@ dependencies = [ [[package]] name = "polkadot-runtime-common" version = "1.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#f60318f68687e601c47de5ad5ca88e2c3f8139a7" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#c8d2251cafadc108ba2f1f8a3208dc547ff38901" dependencies = [ "bitvec", "frame-benchmarking", @@ -9155,7 +9217,7 @@ dependencies = [ [[package]] name = "polkadot-runtime-constants" version = "1.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#f60318f68687e601c47de5ad5ca88e2c3f8139a7" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#c8d2251cafadc108ba2f1f8a3208dc547ff38901" dependencies = [ "frame-support", "polkadot-primitives", @@ -9169,7 +9231,7 @@ dependencies = [ [[package]] name = "polkadot-runtime-metrics" version = "1.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#f60318f68687e601c47de5ad5ca88e2c3f8139a7" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#c8d2251cafadc108ba2f1f8a3208dc547ff38901" dependencies = [ "bs58 0.5.0", "frame-benchmarking", @@ -9182,7 +9244,7 @@ dependencies = [ [[package]] name = "polkadot-runtime-parachains" version = "1.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#f60318f68687e601c47de5ad5ca88e2c3f8139a7" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#c8d2251cafadc108ba2f1f8a3208dc547ff38901" dependencies = [ "bitflags 1.3.2", "bitvec", @@ -9228,7 +9290,7 @@ dependencies = [ [[package]] name = "polkadot-service" version = "1.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#f60318f68687e601c47de5ad5ca88e2c3f8139a7" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#c8d2251cafadc108ba2f1f8a3208dc547ff38901" dependencies = [ "async-trait", "frame-benchmarking", @@ -9347,7 +9409,7 @@ dependencies = [ [[package]] name = "polkadot-statement-distribution" version = "1.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#f60318f68687e601c47de5ad5ca88e2c3f8139a7" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#c8d2251cafadc108ba2f1f8a3208dc547ff38901" dependencies = [ "arrayvec 0.7.4", "bitvec", @@ -9371,7 +9433,7 @@ dependencies = [ [[package]] name = "polkadot-statement-table" version = "1.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#f60318f68687e601c47de5ad5ca88e2c3f8139a7" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#c8d2251cafadc108ba2f1f8a3208dc547ff38901" dependencies = [ "parity-scale-codec", "polkadot-primitives", @@ -9396,27 +9458,16 @@ dependencies = [ [[package]] name = "polling" -version = "3.3.0" +version = "3.3.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e53b6af1f60f36f8c2ac2aad5459d75a5a9b4be1e8cdd40264f315d78193e531" +checksum = "cf63fa624ab313c11656b4cda960bfc46c410187ad493c41f6ba2d8c1e991c9e" dependencies = [ "cfg-if", "concurrent-queue", "pin-project-lite 0.2.13", - "rustix 0.38.21", + "rustix 0.38.25", "tracing", - "windows-sys 0.48.0", -] - -[[package]] -name = "poly1305" -version = "0.7.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "048aeb476be11a4b6ca432ca569e375810de9294ae78f4774e78ea98a9246ede" -dependencies = [ - "cpufeatures", - "opaque-debug 0.3.0", - "universal-hash 0.4.1", + "windows-sys 0.52.0", ] [[package]] @@ -9529,7 +9580,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "ae005bd773ab59b4725093fd7df83fd7892f7d8eafb48dbd7de6e024e4215f9d" dependencies = [ "proc-macro2", - "syn 2.0.38", + "syn 2.0.39", ] [[package]] @@ -9603,14 +9654,14 @@ checksum = "3d1eaa7fa0aa1929ffdf7eeb6eac234dde6268914a14ad44d23521ab6a9b258e" dependencies = [ "proc-macro2", "quote", - "syn 2.0.38", + "syn 2.0.39", ] [[package]] name = "proc-macro2" -version = "1.0.69" +version = "1.0.70" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "134c189feb4956b20f6f547d2cf727d4c0fe06722b20a0eec87ed445a97f92da" +checksum = "39278fbbf5fb4f646ce651690877f89d1c5811a3d4acb27700c1cb3cdb78fd3b" dependencies = [ "unicode-ident", ] @@ -9649,7 +9700,7 @@ checksum = "440f724eba9f6996b75d63681b0a92b06947f1457076d503a4d2e2c8f56442b8" dependencies = [ "proc-macro2", "quote", - "syn 2.0.38", + "syn 2.0.39", ] [[package]] @@ -9852,7 +9903,7 @@ version = "0.6.4" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "ec0be4795e2f6a28069bec0b5ff3e2ac9bafc99e6a9a7dc3547996c5c816922c" dependencies = [ - "getrandom 0.2.10", + "getrandom 0.2.11", ] [[package]] @@ -9953,12 +10004,12 @@ dependencies = [ [[package]] name = "redox_users" -version = "0.4.3" +version = "0.4.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b033d837a7cf162d7993aded9304e30a83213c648b6e389db233191f891e5c2b" +checksum = "a18479200779601e498ada4e8c1e1f50e3ee19deb0259c25825a98b5603b2cb4" dependencies = [ - "getrandom 0.2.10", - "redox_syscall 0.2.16", + "getrandom 0.2.11", + "libredox", "thiserror", ] @@ -9992,7 +10043,7 @@ checksum = "7f7473c2cfcf90008193dd0e3e16599455cb601a9fce322b5bb55de799664925" dependencies = [ "proc-macro2", "quote", - "syn 2.0.38", + "syn 2.0.39", ] [[package]] @@ -10119,7 +10170,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "fb0205304757e5d899b9c2e448b867ffd03ae7f988002e47cd24954391394d0b" dependencies = [ "cc", - "getrandom 0.2.10", + "getrandom 0.2.11", "libc", "spin 0.9.8", "untrusted 0.9.0", @@ -10145,7 +10196,7 @@ dependencies = [ [[package]] name = "rococo-runtime" version = "1.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#f60318f68687e601c47de5ad5ca88e2c3f8139a7" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#c8d2251cafadc108ba2f1f8a3208dc547ff38901" dependencies = [ "binary-merkle-tree", "frame-benchmarking", @@ -10233,7 +10284,7 @@ dependencies = [ [[package]] name = "rococo-runtime-constants" version = "1.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#f60318f68687e601c47de5ad5ca88e2c3f8139a7" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#c8d2251cafadc108ba2f1f8a3208dc547ff38901" dependencies = [ "frame-support", "polkadot-primitives", @@ -10246,13 +10297,13 @@ dependencies = [ [[package]] name = "rpassword" -version = "7.2.0" +version = "7.3.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6678cf63ab3491898c0d021b493c94c9b221d91295294a2a5746eacbe5928322" +checksum = "80472be3c897911d0137b2d2b9055faf6eeac5b14e324073d83bc17b191d7e3f" dependencies = [ "libc", "rtoolbox", - "winapi", + "windows-sys 0.48.0", ] [[package]] @@ -10283,12 +10334,12 @@ dependencies = [ [[package]] name = "rtoolbox" -version = "0.0.1" +version = "0.0.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "034e22c514f5c0cb8a10ff341b9b048b5ceb21591f31c8f44c43b960f9b3524a" +checksum = "c247d24e63230cdb56463ae328478bd5eac8b8faa8c69461a77e8e323afac90e" dependencies = [ "libc", - "winapi", + "windows-sys 0.48.0", ] [[package]] @@ -10371,14 +10422,14 @@ dependencies = [ [[package]] name = "rustix" -version = "0.38.21" +version = "0.38.25" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2b426b0506e5d50a7d8dafcf2e81471400deb602392c7dd110815afb4eaf02a3" +checksum = "dc99bc2d4f1fed22595588a013687477aedf3cdcfb26558c559edb67b4d9b22e" dependencies = [ "bitflags 2.4.1", "errno", "libc", - "linux-raw-sys 0.4.10", + "linux-raw-sys 0.4.11", "windows-sys 0.48.0", ] @@ -10409,9 +10460,9 @@ dependencies = [ [[package]] name = "rustls" -version = "0.21.8" +version = "0.21.9" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "446e14c5cda4f3f30fe71863c34ec70f5ac79d6087097ad0bb433e1be5edf04c" +checksum = "629648aced5775d558af50b2b4c7b02983a04b312126d45eeead26e7caa498b9" dependencies = [ "log", "ring 0.17.5", @@ -10433,9 +10484,9 @@ dependencies = [ [[package]] name = "rustls-pemfile" -version = "1.0.3" +version = "1.0.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2d3987094b1d07b653b7dfdc3f70ce9a1da9c51ac18c1b06b662e4f9a0e9f4b2" +checksum = "1c74cae0a4cf6ccbbf5f359f08efdf8ee7e1dc532573bf0db71968cb56b1448c" dependencies = [ "base64 0.21.5", ] @@ -10505,7 +10556,7 @@ dependencies = [ [[package]] name = "sc-allocator" version = "4.1.0-dev" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#f60318f68687e601c47de5ad5ca88e2c3f8139a7" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#c8d2251cafadc108ba2f1f8a3208dc547ff38901" dependencies = [ "log", "sp-core", @@ -10516,7 +10567,7 @@ dependencies = [ [[package]] name = "sc-authority-discovery" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#f60318f68687e601c47de5ad5ca88e2c3f8139a7" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#c8d2251cafadc108ba2f1f8a3208dc547ff38901" dependencies = [ "async-trait", "futures", @@ -10544,7 +10595,7 @@ dependencies = [ [[package]] name = "sc-basic-authorship" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#f60318f68687e601c47de5ad5ca88e2c3f8139a7" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#c8d2251cafadc108ba2f1f8a3208dc547ff38901" dependencies = [ "futures", "futures-timer", @@ -10567,7 +10618,7 @@ dependencies = [ [[package]] name = "sc-block-builder" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#f60318f68687e601c47de5ad5ca88e2c3f8139a7" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#c8d2251cafadc108ba2f1f8a3208dc547ff38901" dependencies = [ "parity-scale-codec", "sc-client-api", @@ -10582,7 +10633,7 @@ dependencies = [ [[package]] name = "sc-chain-spec" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#f60318f68687e601c47de5ad5ca88e2c3f8139a7" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#c8d2251cafadc108ba2f1f8a3208dc547ff38901" dependencies = [ "memmap2", "sc-chain-spec-derive", @@ -10601,18 +10652,18 @@ dependencies = [ [[package]] name = "sc-chain-spec-derive" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#f60318f68687e601c47de5ad5ca88e2c3f8139a7" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#c8d2251cafadc108ba2f1f8a3208dc547ff38901" dependencies = [ "proc-macro-crate", "proc-macro2", "quote", - "syn 2.0.38", + "syn 2.0.39", ] [[package]] name = "sc-cli" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#f60318f68687e601c47de5ad5ca88e2c3f8139a7" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#c8d2251cafadc108ba2f1f8a3208dc547ff38901" dependencies = [ "array-bytes", "chrono", @@ -10651,7 +10702,7 @@ dependencies = [ [[package]] name = "sc-client-api" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#f60318f68687e601c47de5ad5ca88e2c3f8139a7" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#c8d2251cafadc108ba2f1f8a3208dc547ff38901" dependencies = [ "fnv", "futures", @@ -10677,7 +10728,7 @@ dependencies = [ [[package]] name = "sc-client-db" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#f60318f68687e601c47de5ad5ca88e2c3f8139a7" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#c8d2251cafadc108ba2f1f8a3208dc547ff38901" dependencies = [ "hash-db", "kvdb", @@ -10703,7 +10754,7 @@ dependencies = [ [[package]] name = "sc-consensus" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#f60318f68687e601c47de5ad5ca88e2c3f8139a7" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#c8d2251cafadc108ba2f1f8a3208dc547ff38901" dependencies = [ "async-trait", "futures", @@ -10728,7 +10779,7 @@ dependencies = [ [[package]] name = "sc-consensus-aura" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#f60318f68687e601c47de5ad5ca88e2c3f8139a7" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#c8d2251cafadc108ba2f1f8a3208dc547ff38901" dependencies = [ "async-trait", "futures", @@ -10757,7 +10808,7 @@ dependencies = [ [[package]] name = "sc-consensus-babe" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#f60318f68687e601c47de5ad5ca88e2c3f8139a7" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#c8d2251cafadc108ba2f1f8a3208dc547ff38901" dependencies = [ "async-trait", "fork-tree", @@ -10793,7 +10844,7 @@ dependencies = [ [[package]] name = "sc-consensus-babe-rpc" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#f60318f68687e601c47de5ad5ca88e2c3f8139a7" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#c8d2251cafadc108ba2f1f8a3208dc547ff38901" dependencies = [ "futures", "jsonrpsee", @@ -10815,10 +10866,10 @@ dependencies = [ [[package]] name = "sc-consensus-beefy" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#f60318f68687e601c47de5ad5ca88e2c3f8139a7" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#c8d2251cafadc108ba2f1f8a3208dc547ff38901" dependencies = [ "array-bytes", - "async-channel", + "async-channel 1.9.0", "async-trait", "fnv", "futures", @@ -10849,7 +10900,7 @@ dependencies = [ [[package]] name = "sc-consensus-beefy-rpc" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#f60318f68687e601c47de5ad5ca88e2c3f8139a7" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#c8d2251cafadc108ba2f1f8a3208dc547ff38901" dependencies = [ "futures", "jsonrpsee", @@ -10868,7 +10919,7 @@ dependencies = [ [[package]] name = "sc-consensus-epochs" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#f60318f68687e601c47de5ad5ca88e2c3f8139a7" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#c8d2251cafadc108ba2f1f8a3208dc547ff38901" dependencies = [ "fork-tree", "parity-scale-codec", @@ -10881,7 +10932,7 @@ dependencies = [ [[package]] name = "sc-consensus-grandpa" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#f60318f68687e601c47de5ad5ca88e2c3f8139a7" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#c8d2251cafadc108ba2f1f8a3208dc547ff38901" dependencies = [ "ahash 0.8.6", "array-bytes", @@ -10922,7 +10973,7 @@ dependencies = [ [[package]] name = "sc-consensus-grandpa-rpc" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#f60318f68687e601c47de5ad5ca88e2c3f8139a7" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#c8d2251cafadc108ba2f1f8a3208dc547ff38901" dependencies = [ "finality-grandpa", "futures", @@ -10942,7 +10993,7 @@ dependencies = [ [[package]] name = "sc-consensus-manual-seal" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#f60318f68687e601c47de5ad5ca88e2c3f8139a7" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#c8d2251cafadc108ba2f1f8a3208dc547ff38901" dependencies = [ "assert_matches", "async-trait", @@ -10977,7 +11028,7 @@ dependencies = [ [[package]] name = "sc-consensus-slots" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#f60318f68687e601c47de5ad5ca88e2c3f8139a7" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#c8d2251cafadc108ba2f1f8a3208dc547ff38901" dependencies = [ "async-trait", "futures", @@ -11000,7 +11051,7 @@ dependencies = [ [[package]] name = "sc-executor" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#f60318f68687e601c47de5ad5ca88e2c3f8139a7" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#c8d2251cafadc108ba2f1f8a3208dc547ff38901" dependencies = [ "parity-scale-codec", "parking_lot 0.12.1", @@ -11022,7 +11073,7 @@ dependencies = [ [[package]] name = "sc-executor-common" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#f60318f68687e601c47de5ad5ca88e2c3f8139a7" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#c8d2251cafadc108ba2f1f8a3208dc547ff38901" dependencies = [ "sc-allocator", "sp-maybe-compressed-blob", @@ -11034,7 +11085,7 @@ dependencies = [ [[package]] name = "sc-executor-wasmtime" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#f60318f68687e601c47de5ad5ca88e2c3f8139a7" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#c8d2251cafadc108ba2f1f8a3208dc547ff38901" dependencies = [ "anyhow", "cfg-if", @@ -11051,7 +11102,7 @@ dependencies = [ [[package]] name = "sc-informant" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#f60318f68687e601c47de5ad5ca88e2c3f8139a7" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#c8d2251cafadc108ba2f1f8a3208dc547ff38901" dependencies = [ "ansi_term", "futures", @@ -11067,7 +11118,7 @@ dependencies = [ [[package]] name = "sc-keystore" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#f60318f68687e601c47de5ad5ca88e2c3f8139a7" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#c8d2251cafadc108ba2f1f8a3208dc547ff38901" dependencies = [ "array-bytes", "parking_lot 0.12.1", @@ -11081,10 +11132,10 @@ dependencies = [ [[package]] name = "sc-network" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#f60318f68687e601c47de5ad5ca88e2c3f8139a7" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#c8d2251cafadc108ba2f1f8a3208dc547ff38901" dependencies = [ "array-bytes", - "async-channel", + "async-channel 1.9.0", "async-trait", "asynchronous-codec", "bytes", @@ -11122,9 +11173,9 @@ dependencies = [ [[package]] name = "sc-network-bitswap" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#f60318f68687e601c47de5ad5ca88e2c3f8139a7" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#c8d2251cafadc108ba2f1f8a3208dc547ff38901" dependencies = [ - "async-channel", + "async-channel 1.9.0", "cid 0.9.0", "futures", "libp2p-identity", @@ -11142,7 +11193,7 @@ dependencies = [ [[package]] name = "sc-network-common" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#f60318f68687e601c47de5ad5ca88e2c3f8139a7" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#c8d2251cafadc108ba2f1f8a3208dc547ff38901" dependencies = [ "async-trait", "bitflags 1.3.2", @@ -11159,7 +11210,7 @@ dependencies = [ [[package]] name = "sc-network-gossip" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#f60318f68687e601c47de5ad5ca88e2c3f8139a7" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#c8d2251cafadc108ba2f1f8a3208dc547ff38901" dependencies = [ "ahash 0.8.6", "futures", @@ -11177,10 +11228,10 @@ dependencies = [ [[package]] name = "sc-network-light" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#f60318f68687e601c47de5ad5ca88e2c3f8139a7" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#c8d2251cafadc108ba2f1f8a3208dc547ff38901" dependencies = [ "array-bytes", - "async-channel", + "async-channel 1.9.0", "futures", "libp2p-identity", "log", @@ -11198,10 +11249,10 @@ dependencies = [ [[package]] name = "sc-network-sync" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#f60318f68687e601c47de5ad5ca88e2c3f8139a7" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#c8d2251cafadc108ba2f1f8a3208dc547ff38901" dependencies = [ "array-bytes", - "async-channel", + "async-channel 1.9.0", "async-trait", "fork-tree", "futures", @@ -11232,7 +11283,7 @@ dependencies = [ [[package]] name = "sc-network-transactions" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#f60318f68687e601c47de5ad5ca88e2c3f8139a7" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#c8d2251cafadc108ba2f1f8a3208dc547ff38901" dependencies = [ "array-bytes", "futures", @@ -11250,7 +11301,7 @@ dependencies = [ [[package]] name = "sc-offchain" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#f60318f68687e601c47de5ad5ca88e2c3f8139a7" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#c8d2251cafadc108ba2f1f8a3208dc547ff38901" dependencies = [ "array-bytes", "bytes", @@ -11284,7 +11335,7 @@ dependencies = [ [[package]] name = "sc-proposer-metrics" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#f60318f68687e601c47de5ad5ca88e2c3f8139a7" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#c8d2251cafadc108ba2f1f8a3208dc547ff38901" dependencies = [ "log", "substrate-prometheus-endpoint", @@ -11293,7 +11344,7 @@ dependencies = [ [[package]] name = "sc-rpc" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#f60318f68687e601c47de5ad5ca88e2c3f8139a7" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#c8d2251cafadc108ba2f1f8a3208dc547ff38901" dependencies = [ "futures", "jsonrpsee", @@ -11324,7 +11375,7 @@ dependencies = [ [[package]] name = "sc-rpc-api" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#f60318f68687e601c47de5ad5ca88e2c3f8139a7" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#c8d2251cafadc108ba2f1f8a3208dc547ff38901" dependencies = [ "jsonrpsee", "parity-scale-codec", @@ -11343,7 +11394,7 @@ dependencies = [ [[package]] name = "sc-rpc-server" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#f60318f68687e601c47de5ad5ca88e2c3f8139a7" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#c8d2251cafadc108ba2f1f8a3208dc547ff38901" dependencies = [ "http", "jsonrpsee", @@ -11358,7 +11409,7 @@ dependencies = [ [[package]] name = "sc-rpc-spec-v2" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#f60318f68687e601c47de5ad5ca88e2c3f8139a7" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#c8d2251cafadc108ba2f1f8a3208dc547ff38901" dependencies = [ "array-bytes", "futures", @@ -11386,7 +11437,7 @@ dependencies = [ [[package]] name = "sc-service" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#f60318f68687e601c47de5ad5ca88e2c3f8139a7" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#c8d2251cafadc108ba2f1f8a3208dc547ff38901" dependencies = [ "async-trait", "directories", @@ -11450,7 +11501,7 @@ dependencies = [ [[package]] name = "sc-state-db" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#f60318f68687e601c47de5ad5ca88e2c3f8139a7" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#c8d2251cafadc108ba2f1f8a3208dc547ff38901" dependencies = [ "log", "parity-scale-codec", @@ -11461,7 +11512,7 @@ dependencies = [ [[package]] name = "sc-storage-monitor" version = "0.1.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#f60318f68687e601c47de5ad5ca88e2c3f8139a7" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#c8d2251cafadc108ba2f1f8a3208dc547ff38901" dependencies = [ "clap", "fs4", @@ -11475,7 +11526,7 @@ dependencies = [ [[package]] name = "sc-sync-state-rpc" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#f60318f68687e601c47de5ad5ca88e2c3f8139a7" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#c8d2251cafadc108ba2f1f8a3208dc547ff38901" dependencies = [ "jsonrpsee", "parity-scale-codec", @@ -11494,7 +11545,7 @@ dependencies = [ [[package]] name = "sc-sysinfo" version = "6.0.0-dev" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#f60318f68687e601c47de5ad5ca88e2c3f8139a7" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#c8d2251cafadc108ba2f1f8a3208dc547ff38901" dependencies = [ "futures", "libc", @@ -11513,7 +11564,7 @@ dependencies = [ [[package]] name = "sc-telemetry" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#f60318f68687e601c47de5ad5ca88e2c3f8139a7" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#c8d2251cafadc108ba2f1f8a3208dc547ff38901" dependencies = [ "chrono", "futures", @@ -11532,7 +11583,7 @@ dependencies = [ [[package]] name = "sc-tracing" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#f60318f68687e601c47de5ad5ca88e2c3f8139a7" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#c8d2251cafadc108ba2f1f8a3208dc547ff38901" dependencies = [ "ansi_term", "atty", @@ -11561,18 +11612,18 @@ dependencies = [ [[package]] name = "sc-tracing-proc-macro" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#f60318f68687e601c47de5ad5ca88e2c3f8139a7" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#c8d2251cafadc108ba2f1f8a3208dc547ff38901" dependencies = [ "proc-macro-crate", "proc-macro2", "quote", - "syn 2.0.38", + "syn 2.0.39", ] [[package]] name = "sc-transaction-pool" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#f60318f68687e601c47de5ad5ca88e2c3f8139a7" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#c8d2251cafadc108ba2f1f8a3208dc547ff38901" dependencies = [ "async-trait", "futures", @@ -11598,7 +11649,7 @@ dependencies = [ [[package]] name = "sc-transaction-pool-api" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#f60318f68687e601c47de5ad5ca88e2c3f8139a7" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#c8d2251cafadc108ba2f1f8a3208dc547ff38901" dependencies = [ "async-trait", "futures", @@ -11614,9 +11665,9 @@ dependencies = [ [[package]] name = "sc-utils" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#f60318f68687e601c47de5ad5ca88e2c3f8139a7" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#c8d2251cafadc108ba2f1f8a3208dc547ff38901" dependencies = [ - "async-channel", + "async-channel 1.9.0", "futures", "futures-timer", "lazy_static", @@ -11854,22 +11905,22 @@ checksum = "388a1df253eca08550bef6c72392cfe7c30914bf41df5269b68cbd6ff8f570a3" [[package]] name = "serde" -version = "1.0.190" +version = "1.0.193" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "91d3c334ca1ee894a2c6f6ad698fe8c435b76d504b13d436f0685d648d6d96f7" +checksum = "25dd9975e68d0cb5aa1120c288333fc98731bd1dd12f561e468ea4728c042b89" dependencies = [ "serde_derive", ] [[package]] name = "serde_derive" -version = "1.0.190" +version = "1.0.193" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "67c5609f394e5c2bd7fc51efda478004ea80ef42fee983d5c67a65e34f32c0e3" +checksum = "43576ca501357b9b071ac53cdc7da8ef0cbd9493d8df094cd821777ea6e894d3" dependencies = [ "proc-macro2", "quote", - "syn 2.0.38", + "syn 2.0.39", ] [[package]] @@ -12022,9 +12073,9 @@ dependencies = [ [[package]] name = "signature" -version = "2.1.0" +version = "2.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5e1788eed21689f9cf370582dfc467ef36ed9c707f073528ddafa8d83e3b8500" +checksum = "77549399552de45a898a580c1b41d445bf730df867cc44e6c0233bbc4b8329de" dependencies = [ "digest 0.10.7", "rand_core 0.6.4", @@ -12067,7 +12118,7 @@ checksum = "826167069c09b99d56f31e9ae5c99049e932a98c9dc2dac47645b08dbbf76ba7" [[package]] name = "slot-range-helper" version = "1.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#f60318f68687e601c47de5ad5ca88e2c3f8139a7" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#c8d2251cafadc108ba2f1f8a3208dc547ff38901" dependencies = [ "enumn", "parity-scale-codec", @@ -12087,9 +12138,9 @@ dependencies = [ [[package]] name = "smallvec" -version = "1.11.1" +version = "1.11.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "942b4a808e05215192e39f4ab80813e599068285906cc91aa64f923db842bd5a" +checksum = "4dccd0940a2dcdf68d092b8cbab7dc0ad8fa938bf95787e1b916b0e3d0e8e970" [[package]] name = "smol" @@ -12097,15 +12148,15 @@ version = "1.3.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "13f2b548cd8447f8de0fdf1c592929f70f4fc7039a05e47404b0d096ec6987a1" dependencies = [ - "async-channel", + "async-channel 1.9.0", "async-executor", "async-fs", "async-io 1.13.0", - "async-lock", + "async-lock 2.8.0", "async-net", "async-process", "blocking", - "futures-lite", + "futures-lite 1.13.0", ] [[package]] @@ -12115,22 +12166,22 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "c0bb30cf57b7b5f6109ce17c3164445e2d6f270af2cb48f6e4d31c2967c9a9f5" dependencies = [ "arrayvec 0.7.4", - "async-lock", + "async-lock 2.8.0", "atomic-take", "base64 0.21.5", "bip39", "blake2-rfc", "bs58 0.5.0", - "chacha20 0.9.1", + "chacha20", "crossbeam-queue", "derive_more", "ed25519-zebra 4.0.3", "either", "event-listener 2.5.3", "fnv", - "futures-lite", + "futures-lite 1.13.0", "futures-util", - "hashbrown 0.14.2", + "hashbrown 0.14.3", "hex", "hmac 0.12.1", "itertools 0.11.0", @@ -12143,7 +12194,7 @@ dependencies = [ "num-traits", "pbkdf2 0.12.2", "pin-project", - "poly1305 0.8.0", + "poly1305", "rand 0.8.5", "rand_chacha 0.3.1", "ruzstd", @@ -12168,8 +12219,8 @@ version = "0.9.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "256b5bad1d6b49045e95fe87492ce73d5af81545d8b4d8318a872d2007024c33" dependencies = [ - "async-channel", - "async-lock", + "async-channel 1.9.0", + "async-lock 2.8.0", "base64 0.21.5", "blake2-rfc", "derive_more", @@ -12177,9 +12228,9 @@ dependencies = [ "event-listener 2.5.3", "fnv", "futures-channel", - "futures-lite", + "futures-lite 1.13.0", "futures-util", - "hashbrown 0.14.2", + "hashbrown 0.14.3", "hex", "itertools 0.11.0", "log", @@ -12206,16 +12257,16 @@ checksum = "5e9f0ab6ef7eb7353d9119c170a436d1bf248eea575ac42d19d12f4e34130831" [[package]] name = "snow" -version = "0.9.3" +version = "0.9.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0c9d1425eb528a21de2755c75af4c9b5d57f50a0d4c3b7f1828a4cd03f8ba155" +checksum = "58021967fd0a5eeeb23b08df6cc244a4d4a5b4aec1d27c9e02fad1a58b4cd74e" dependencies = [ - "aes-gcm 0.9.4", + "aes-gcm 0.10.3", "blake2", "chacha20poly1305", "curve25519-dalek 4.1.1", "rand_core 0.6.4", - "ring 0.16.20", + "ring 0.17.5", "rustc_version", "sha2 0.10.8", "subtle", @@ -12261,7 +12312,7 @@ dependencies = [ [[package]] name = "sp-api" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#f60318f68687e601c47de5ad5ca88e2c3f8139a7" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#c8d2251cafadc108ba2f1f8a3208dc547ff38901" dependencies = [ "hash-db", "log", @@ -12282,7 +12333,7 @@ dependencies = [ [[package]] name = "sp-api-proc-macro" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#f60318f68687e601c47de5ad5ca88e2c3f8139a7" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#c8d2251cafadc108ba2f1f8a3208dc547ff38901" dependencies = [ "Inflector", "blake2", @@ -12290,13 +12341,13 @@ dependencies = [ "proc-macro-crate", "proc-macro2", "quote", - "syn 2.0.38", + "syn 2.0.39", ] [[package]] name = "sp-application-crypto" version = "23.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#f60318f68687e601c47de5ad5ca88e2c3f8139a7" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#c8d2251cafadc108ba2f1f8a3208dc547ff38901" dependencies = [ "parity-scale-codec", "scale-info", @@ -12309,7 +12360,7 @@ dependencies = [ [[package]] name = "sp-arithmetic" version = "16.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#f60318f68687e601c47de5ad5ca88e2c3f8139a7" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#c8d2251cafadc108ba2f1f8a3208dc547ff38901" dependencies = [ "integer-sqrt", "num-traits", @@ -12323,7 +12374,7 @@ dependencies = [ [[package]] name = "sp-authority-discovery" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#f60318f68687e601c47de5ad5ca88e2c3f8139a7" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#c8d2251cafadc108ba2f1f8a3208dc547ff38901" dependencies = [ "parity-scale-codec", "scale-info", @@ -12336,7 +12387,7 @@ dependencies = [ [[package]] name = "sp-block-builder" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#f60318f68687e601c47de5ad5ca88e2c3f8139a7" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#c8d2251cafadc108ba2f1f8a3208dc547ff38901" dependencies = [ "sp-api", "sp-inherents", @@ -12347,7 +12398,7 @@ dependencies = [ [[package]] name = "sp-blockchain" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#f60318f68687e601c47de5ad5ca88e2c3f8139a7" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#c8d2251cafadc108ba2f1f8a3208dc547ff38901" dependencies = [ "futures", "log", @@ -12365,7 +12416,7 @@ dependencies = [ [[package]] name = "sp-consensus" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#f60318f68687e601c47de5ad5ca88e2c3f8139a7" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#c8d2251cafadc108ba2f1f8a3208dc547ff38901" dependencies = [ "async-trait", "futures", @@ -12380,7 +12431,7 @@ dependencies = [ [[package]] name = "sp-consensus-aura" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#f60318f68687e601c47de5ad5ca88e2c3f8139a7" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#c8d2251cafadc108ba2f1f8a3208dc547ff38901" dependencies = [ "async-trait", "parity-scale-codec", @@ -12397,7 +12448,7 @@ dependencies = [ [[package]] name = "sp-consensus-babe" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#f60318f68687e601c47de5ad5ca88e2c3f8139a7" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#c8d2251cafadc108ba2f1f8a3208dc547ff38901" dependencies = [ "async-trait", "parity-scale-codec", @@ -12416,7 +12467,7 @@ dependencies = [ [[package]] name = "sp-consensus-beefy" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#f60318f68687e601c47de5ad5ca88e2c3f8139a7" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#c8d2251cafadc108ba2f1f8a3208dc547ff38901" dependencies = [ "lazy_static", "parity-scale-codec", @@ -12435,7 +12486,7 @@ dependencies = [ [[package]] name = "sp-consensus-grandpa" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#f60318f68687e601c47de5ad5ca88e2c3f8139a7" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#c8d2251cafadc108ba2f1f8a3208dc547ff38901" dependencies = [ "finality-grandpa", "log", @@ -12453,7 +12504,7 @@ dependencies = [ [[package]] name = "sp-consensus-slots" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#f60318f68687e601c47de5ad5ca88e2c3f8139a7" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#c8d2251cafadc108ba2f1f8a3208dc547ff38901" dependencies = [ "parity-scale-codec", "scale-info", @@ -12465,7 +12516,7 @@ dependencies = [ [[package]] name = "sp-core" version = "21.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#f60318f68687e601c47de5ad5ca88e2c3f8139a7" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#c8d2251cafadc108ba2f1f8a3208dc547ff38901" dependencies = [ "array-bytes", "arrayvec 0.7.4", @@ -12512,7 +12563,7 @@ dependencies = [ [[package]] name = "sp-core-hashing" version = "9.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#f60318f68687e601c47de5ad5ca88e2c3f8139a7" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#c8d2251cafadc108ba2f1f8a3208dc547ff38901" dependencies = [ "blake2b_simd", "byteorder", @@ -12525,17 +12576,17 @@ dependencies = [ [[package]] name = "sp-core-hashing-proc-macro" version = "9.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#f60318f68687e601c47de5ad5ca88e2c3f8139a7" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#c8d2251cafadc108ba2f1f8a3208dc547ff38901" dependencies = [ "quote", "sp-core-hashing", - "syn 2.0.38", + "syn 2.0.39", ] [[package]] name = "sp-database" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#f60318f68687e601c47de5ad5ca88e2c3f8139a7" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#c8d2251cafadc108ba2f1f8a3208dc547ff38901" dependencies = [ "kvdb", "parking_lot 0.12.1", @@ -12544,17 +12595,17 @@ dependencies = [ [[package]] name = "sp-debug-derive" version = "8.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#f60318f68687e601c47de5ad5ca88e2c3f8139a7" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#c8d2251cafadc108ba2f1f8a3208dc547ff38901" dependencies = [ "proc-macro2", "quote", - "syn 2.0.38", + "syn 2.0.39", ] [[package]] name = "sp-externalities" version = "0.19.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#f60318f68687e601c47de5ad5ca88e2c3f8139a7" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#c8d2251cafadc108ba2f1f8a3208dc547ff38901" dependencies = [ "environmental", "parity-scale-codec", @@ -12565,7 +12616,7 @@ dependencies = [ [[package]] name = "sp-genesis-builder" version = "0.1.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#f60318f68687e601c47de5ad5ca88e2c3f8139a7" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#c8d2251cafadc108ba2f1f8a3208dc547ff38901" dependencies = [ "serde_json", "sp-api", @@ -12576,7 +12627,7 @@ dependencies = [ [[package]] name = "sp-inherents" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#f60318f68687e601c47de5ad5ca88e2c3f8139a7" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#c8d2251cafadc108ba2f1f8a3208dc547ff38901" dependencies = [ "async-trait", "impl-trait-for-tuples", @@ -12590,7 +12641,7 @@ dependencies = [ [[package]] name = "sp-io" version = "23.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#f60318f68687e601c47de5ad5ca88e2c3f8139a7" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#c8d2251cafadc108ba2f1f8a3208dc547ff38901" dependencies = [ "bytes", "ed25519-dalek", @@ -12614,7 +12665,7 @@ dependencies = [ [[package]] name = "sp-keyring" version = "24.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#f60318f68687e601c47de5ad5ca88e2c3f8139a7" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#c8d2251cafadc108ba2f1f8a3208dc547ff38901" dependencies = [ "lazy_static", "sp-core", @@ -12625,7 +12676,7 @@ dependencies = [ [[package]] name = "sp-keystore" version = "0.27.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#f60318f68687e601c47de5ad5ca88e2c3f8139a7" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#c8d2251cafadc108ba2f1f8a3208dc547ff38901" dependencies = [ "parity-scale-codec", "parking_lot 0.12.1", @@ -12637,7 +12688,7 @@ dependencies = [ [[package]] name = "sp-maybe-compressed-blob" version = "4.1.0-dev" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#f60318f68687e601c47de5ad5ca88e2c3f8139a7" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#c8d2251cafadc108ba2f1f8a3208dc547ff38901" dependencies = [ "thiserror", "zstd 0.12.4", @@ -12646,7 +12697,7 @@ dependencies = [ [[package]] name = "sp-metadata-ir" version = "0.1.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#f60318f68687e601c47de5ad5ca88e2c3f8139a7" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#c8d2251cafadc108ba2f1f8a3208dc547ff38901" dependencies = [ "frame-metadata", "parity-scale-codec", @@ -12657,7 +12708,7 @@ dependencies = [ [[package]] name = "sp-mmr-primitives" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#f60318f68687e601c47de5ad5ca88e2c3f8139a7" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#c8d2251cafadc108ba2f1f8a3208dc547ff38901" dependencies = [ "ckb-merkle-mountain-range", "log", @@ -12675,7 +12726,7 @@ dependencies = [ [[package]] name = "sp-npos-elections" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#f60318f68687e601c47de5ad5ca88e2c3f8139a7" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#c8d2251cafadc108ba2f1f8a3208dc547ff38901" dependencies = [ "parity-scale-codec", "scale-info", @@ -12689,7 +12740,7 @@ dependencies = [ [[package]] name = "sp-offchain" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#f60318f68687e601c47de5ad5ca88e2c3f8139a7" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#c8d2251cafadc108ba2f1f8a3208dc547ff38901" dependencies = [ "sp-api", "sp-core", @@ -12699,7 +12750,7 @@ dependencies = [ [[package]] name = "sp-panic-handler" version = "8.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#f60318f68687e601c47de5ad5ca88e2c3f8139a7" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#c8d2251cafadc108ba2f1f8a3208dc547ff38901" dependencies = [ "backtrace", "lazy_static", @@ -12709,7 +12760,7 @@ dependencies = [ [[package]] name = "sp-rpc" version = "6.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#f60318f68687e601c47de5ad5ca88e2c3f8139a7" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#c8d2251cafadc108ba2f1f8a3208dc547ff38901" dependencies = [ "rustc-hash", "serde", @@ -12719,7 +12770,7 @@ dependencies = [ [[package]] name = "sp-runtime" version = "24.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#f60318f68687e601c47de5ad5ca88e2c3f8139a7" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#c8d2251cafadc108ba2f1f8a3208dc547ff38901" dependencies = [ "either", "hash256-std-hasher", @@ -12741,7 +12792,7 @@ dependencies = [ [[package]] name = "sp-runtime-interface" version = "17.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#f60318f68687e601c47de5ad5ca88e2c3f8139a7" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#c8d2251cafadc108ba2f1f8a3208dc547ff38901" dependencies = [ "bytes", "impl-trait-for-tuples", @@ -12759,19 +12810,19 @@ dependencies = [ [[package]] name = "sp-runtime-interface-proc-macro" version = "11.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#f60318f68687e601c47de5ad5ca88e2c3f8139a7" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#c8d2251cafadc108ba2f1f8a3208dc547ff38901" dependencies = [ "Inflector", "proc-macro-crate", "proc-macro2", "quote", - "syn 2.0.38", + "syn 2.0.39", ] [[package]] name = "sp-session" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#f60318f68687e601c47de5ad5ca88e2c3f8139a7" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#c8d2251cafadc108ba2f1f8a3208dc547ff38901" dependencies = [ "parity-scale-codec", "scale-info", @@ -12786,7 +12837,7 @@ dependencies = [ [[package]] name = "sp-staking" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#f60318f68687e601c47de5ad5ca88e2c3f8139a7" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#c8d2251cafadc108ba2f1f8a3208dc547ff38901" dependencies = [ "impl-trait-for-tuples", "parity-scale-codec", @@ -12800,7 +12851,7 @@ dependencies = [ [[package]] name = "sp-state-machine" version = "0.28.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#f60318f68687e601c47de5ad5ca88e2c3f8139a7" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#c8d2251cafadc108ba2f1f8a3208dc547ff38901" dependencies = [ "hash-db", "log", @@ -12821,7 +12872,7 @@ dependencies = [ [[package]] name = "sp-statement-store" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#f60318f68687e601c47de5ad5ca88e2c3f8139a7" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#c8d2251cafadc108ba2f1f8a3208dc547ff38901" dependencies = [ "aes-gcm 0.10.3", "curve25519-dalek 4.1.1", @@ -12845,12 +12896,12 @@ dependencies = [ [[package]] name = "sp-std" version = "8.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#f60318f68687e601c47de5ad5ca88e2c3f8139a7" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#c8d2251cafadc108ba2f1f8a3208dc547ff38901" [[package]] name = "sp-storage" version = "13.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#f60318f68687e601c47de5ad5ca88e2c3f8139a7" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#c8d2251cafadc108ba2f1f8a3208dc547ff38901" dependencies = [ "impl-serde", "parity-scale-codec", @@ -12863,7 +12914,7 @@ dependencies = [ [[package]] name = "sp-timestamp" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#f60318f68687e601c47de5ad5ca88e2c3f8139a7" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#c8d2251cafadc108ba2f1f8a3208dc547ff38901" dependencies = [ "async-trait", "parity-scale-codec", @@ -12876,7 +12927,7 @@ dependencies = [ [[package]] name = "sp-tracing" version = "10.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#f60318f68687e601c47de5ad5ca88e2c3f8139a7" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#c8d2251cafadc108ba2f1f8a3208dc547ff38901" dependencies = [ "parity-scale-codec", "sp-std", @@ -12888,7 +12939,7 @@ dependencies = [ [[package]] name = "sp-transaction-pool" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#f60318f68687e601c47de5ad5ca88e2c3f8139a7" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#c8d2251cafadc108ba2f1f8a3208dc547ff38901" dependencies = [ "sp-api", "sp-runtime", @@ -12897,7 +12948,7 @@ dependencies = [ [[package]] name = "sp-transaction-storage-proof" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#f60318f68687e601c47de5ad5ca88e2c3f8139a7" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#c8d2251cafadc108ba2f1f8a3208dc547ff38901" dependencies = [ "async-trait", "parity-scale-codec", @@ -12912,7 +12963,7 @@ dependencies = [ [[package]] name = "sp-trie" version = "22.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#f60318f68687e601c47de5ad5ca88e2c3f8139a7" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#c8d2251cafadc108ba2f1f8a3208dc547ff38901" dependencies = [ "ahash 0.8.6", "hash-db", @@ -12935,7 +12986,7 @@ dependencies = [ [[package]] name = "sp-version" version = "22.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#f60318f68687e601c47de5ad5ca88e2c3f8139a7" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#c8d2251cafadc108ba2f1f8a3208dc547ff38901" dependencies = [ "impl-serde", "parity-scale-codec", @@ -12952,18 +13003,18 @@ dependencies = [ [[package]] name = "sp-version-proc-macro" version = "8.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#f60318f68687e601c47de5ad5ca88e2c3f8139a7" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#c8d2251cafadc108ba2f1f8a3208dc547ff38901" dependencies = [ "parity-scale-codec", "proc-macro2", "quote", - "syn 2.0.38", + "syn 2.0.39", ] [[package]] name = "sp-wasm-interface" version = "14.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#f60318f68687e601c47de5ad5ca88e2c3f8139a7" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#c8d2251cafadc108ba2f1f8a3208dc547ff38901" dependencies = [ "anyhow", "impl-trait-for-tuples", @@ -12976,7 +13027,7 @@ dependencies = [ [[package]] name = "sp-weights" version = "20.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#f60318f68687e601c47de5ad5ca88e2c3f8139a7" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#c8d2251cafadc108ba2f1f8a3208dc547ff38901" dependencies = [ "parity-scale-codec", "scale-info", @@ -13002,9 +13053,9 @@ checksum = "6980e8d7511241f8acf4aebddbb1ff938df5eebe98691418c4468d0b72a96a67" [[package]] name = "spinners" -version = "4.1.0" +version = "4.1.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "08615eea740067d9899969bc2891c68a19c315cb1f66640af9a9ecb91b13bcab" +checksum = "a0ef947f358b9c238923f764c72a4a9d42f2d637c46e059dbd319d6e7cfb4f82" dependencies = [ "lazy_static", "maplit", @@ -13033,9 +13084,9 @@ dependencies = [ [[package]] name = "ss58-registry" -version = "1.43.0" +version = "1.44.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5e6915280e2d0db8911e5032a5c275571af6bdded2916abd691a659be25d3439" +checksum = "35935738370302d5e33963665b77541e4b990a3e919ec904c837a56cfc891de1" dependencies = [ "Inflector", "num-format", @@ -13055,7 +13106,7 @@ checksum = "a8f112729512f8e442d81f95a8a7ddf2b7c6b8a1a6f509a95864142b30cab2d3" [[package]] name = "staging-kusama-runtime" version = "1.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#f60318f68687e601c47de5ad5ca88e2c3f8139a7" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#c8d2251cafadc108ba2f1f8a3208dc547ff38901" dependencies = [ "binary-merkle-tree", "bitvec", @@ -13161,7 +13212,7 @@ dependencies = [ [[package]] name = "staging-xcm" version = "1.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#f60318f68687e601c47de5ad5ca88e2c3f8139a7" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#c8d2251cafadc108ba2f1f8a3208dc547ff38901" dependencies = [ "bounded-collections", "derivative", @@ -13178,7 +13229,7 @@ dependencies = [ [[package]] name = "staging-xcm-builder" version = "1.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#f60318f68687e601c47de5ad5ca88e2c3f8139a7" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#c8d2251cafadc108ba2f1f8a3208dc547ff38901" dependencies = [ "frame-support", "frame-system", @@ -13200,7 +13251,7 @@ dependencies = [ [[package]] name = "staging-xcm-executor" version = "1.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#f60318f68687e601c47de5ad5ca88e2c3f8139a7" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#c8d2251cafadc108ba2f1f8a3208dc547ff38901" dependencies = [ "environmental", "frame-benchmarking", @@ -13295,7 +13346,7 @@ dependencies = [ "proc-macro2", "quote", "rustversion", - "syn 2.0.38", + "syn 2.0.39", ] [[package]] @@ -13333,12 +13384,12 @@ dependencies = [ [[package]] name = "substrate-build-script-utils" version = "3.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#f60318f68687e601c47de5ad5ca88e2c3f8139a7" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#c8d2251cafadc108ba2f1f8a3208dc547ff38901" [[package]] name = "substrate-frame-rpc-system" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#f60318f68687e601c47de5ad5ca88e2c3f8139a7" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#c8d2251cafadc108ba2f1f8a3208dc547ff38901" dependencies = [ "frame-system-rpc-runtime-api", "futures", @@ -13357,7 +13408,7 @@ dependencies = [ [[package]] name = "substrate-prometheus-endpoint" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#f60318f68687e601c47de5ad5ca88e2c3f8139a7" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#c8d2251cafadc108ba2f1f8a3208dc547ff38901" dependencies = [ "hyper", "log", @@ -13369,7 +13420,7 @@ dependencies = [ [[package]] name = "substrate-rpc-client" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#f60318f68687e601c47de5ad5ca88e2c3f8139a7" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#c8d2251cafadc108ba2f1f8a3208dc547ff38901" dependencies = [ "async-trait", "jsonrpsee", @@ -13382,7 +13433,7 @@ dependencies = [ [[package]] name = "substrate-state-trie-migration-rpc" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#f60318f68687e601c47de5ad5ca88e2c3f8139a7" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#c8d2251cafadc108ba2f1f8a3208dc547ff38901" dependencies = [ "jsonrpsee", "parity-scale-codec", @@ -13399,7 +13450,7 @@ dependencies = [ [[package]] name = "substrate-test-client" version = "2.0.1" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#f60318f68687e601c47de5ad5ca88e2c3f8139a7" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#c8d2251cafadc108ba2f1f8a3208dc547ff38901" dependencies = [ "array-bytes", "async-trait", @@ -13425,7 +13476,7 @@ dependencies = [ [[package]] name = "substrate-test-runtime" version = "2.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#f60318f68687e601c47de5ad5ca88e2c3f8139a7" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#c8d2251cafadc108ba2f1f8a3208dc547ff38901" dependencies = [ "array-bytes", "frame-executive", @@ -13468,7 +13519,7 @@ dependencies = [ [[package]] name = "substrate-test-runtime-client" version = "2.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#f60318f68687e601c47de5ad5ca88e2c3f8139a7" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#c8d2251cafadc108ba2f1f8a3208dc547ff38901" dependencies = [ "futures", "sc-block-builder", @@ -13486,7 +13537,7 @@ dependencies = [ [[package]] name = "substrate-wasm-builder" version = "5.0.0-dev" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#f60318f68687e601c47de5ad5ca88e2c3f8139a7" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#c8d2251cafadc108ba2f1f8a3208dc547ff38901" dependencies = [ "ansi_term", "build-helper", @@ -13535,9 +13586,9 @@ dependencies = [ [[package]] name = "syn" -version = "2.0.38" +version = "2.0.39" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e96b79aaa137db8f61e26363a0c9b47d8b4ec75da28b7d1d614c2303e232408b" +checksum = "23e78b90f2fcf45d3e842032ce32e3f2d1545ba6636271dcbf24fa306d87be7a" dependencies = [ "proc-macro2", "quote", @@ -13611,15 +13662,15 @@ dependencies = [ "cfg-if", "fastrand 2.0.1", "redox_syscall 0.4.1", - "rustix 0.38.21", + "rustix 0.38.25", "windows-sys 0.48.0", ] [[package]] name = "termcolor" -version = "1.3.0" +version = "1.4.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6093bad37da69aab9d123a8091e4be0aa4a03e4d601ec641c327398315f62b64" +checksum = "ff1bc3d3f05aff0403e8ac0d92ced918ec05b666a43f83297ccef5bea8a3d449" dependencies = [ "winapi-util", ] @@ -13641,22 +13692,22 @@ dependencies = [ [[package]] name = "thiserror-core" -version = "1.0.38" +version = "1.0.50" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0d97345f6437bb2004cd58819d8a9ef8e36cdd7661c2abc4bbde0a7c40d9f497" +checksum = "c001ee18b7e5e3f62cbf58c7fe220119e68d902bb7443179c0c8aef30090e999" dependencies = [ "thiserror-core-impl", ] [[package]] name = "thiserror-core-impl" -version = "1.0.38" +version = "1.0.50" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "10ac1c5050e43014d16b2f94d0d2ce79e65ffdd8b38d8048f9c8f6a8a6da62ac" +checksum = "e4c60d69f36615a077cc7663b9cb8e42275722d23e58a7fa3d2c7f2915d09d04" dependencies = [ "proc-macro2", "quote", - "syn 1.0.109", + "syn 2.0.39", ] [[package]] @@ -13667,7 +13718,7 @@ checksum = "266b2e40bc00e5a6c09c3584011e08b06f123c00362c92b975ba9843aaaa14b8" dependencies = [ "proc-macro2", "quote", - "syn 2.0.38", + "syn 2.0.39", ] [[package]] @@ -13813,9 +13864,9 @@ checksum = "1f3ccbac311fea05f86f61904b462b55fb3df8837a366dfc601a0161d0532f20" [[package]] name = "tokio" -version = "1.33.0" +version = "1.34.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4f38200e3ef7995e5ef13baec2f432a6da0aa9ac495b2c0e8f3b7eec2c92d653" +checksum = "d0c014766411e834f7af5b8f4cf46257aab4036ca95e9d2c144a10f59ad6f5b9" dependencies = [ "backtrace", "bytes", @@ -13832,13 +13883,13 @@ dependencies = [ [[package]] name = "tokio-macros" -version = "2.1.0" +version = "2.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "630bdcf245f78637c13ec01ffae6187cca34625e8c63150d424b59e55af2675e" +checksum = "5b8a1e28f2deaa14e508979454cb3a223b10b938b45af148bc0986de36f1923b" dependencies = [ "proc-macro2", "quote", - "syn 2.0.38", + "syn 2.0.39", ] [[package]] @@ -13858,7 +13909,7 @@ version = "0.24.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "c28327cf380ac148141087fbfb9de9d7bd4e84ab5d2c28fbc911d753de8a7081" dependencies = [ - "rustls 0.21.8", + "rustls 0.21.9", "tokio", ] @@ -13993,7 +14044,7 @@ checksum = "34704c8d6ebcbc939824180af020566b01a7c01f80641264eba0999f6c2b6be7" dependencies = [ "proc-macro2", "quote", - "syn 2.0.38", + "syn 2.0.39", ] [[package]] @@ -14019,7 +14070,7 @@ dependencies = [ [[package]] name = "tracing-gum" version = "1.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#f60318f68687e601c47de5ad5ca88e2c3f8139a7" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#c8d2251cafadc108ba2f1f8a3208dc547ff38901" dependencies = [ "coarsetime", "polkadot-node-jaeger", @@ -14031,13 +14082,13 @@ dependencies = [ [[package]] name = "tracing-gum-proc-macro" version = "1.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#f60318f68687e601c47de5ad5ca88e2c3f8139a7" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#c8d2251cafadc108ba2f1f8a3208dc547ff38901" dependencies = [ "expander 2.0.0", "proc-macro-crate", "proc-macro2", "quote", - "syn 2.0.38", + "syn 2.0.39", ] [[package]] @@ -14161,7 +14212,7 @@ checksum = "3528ecfd12c466c6f163363caf2d02a71161dd5e1cc6ae7b34207ea2d42d81ed" [[package]] name = "try-runtime-cli" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#f60318f68687e601c47de5ad5ca88e2c3f8139a7" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#c8d2251cafadc108ba2f1f8a3208dc547ff38901" dependencies = [ "async-trait", "clap", @@ -14345,12 +14396,12 @@ checksum = "8ecb6da28b8a351d773b68d5825ac39017e680750f980f3a1a85cd8dd28a47c1" [[package]] name = "url" -version = "2.4.1" +version = "2.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "143b538f18257fac9cad154828a57c6bf5157e1aa604d4816b5995bf6de87ae5" +checksum = "31e6302e3bb753d46e83516cae55ae196fc0c309407cf11ab35cc51a4c2a4633" dependencies = [ "form_urlencoded", - "idna 0.4.0", + "idna 0.5.0", "percent-encoding", ] @@ -14362,11 +14413,11 @@ checksum = "711b9620af191e0cdc7468a8d14e709c3dcdb115b36f838e601583af800a370a" [[package]] name = "uuid" -version = "1.5.0" +version = "1.6.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "88ad59a7560b41a70d191093a945f0b87bc1deeda46fb237479708a1d6b6cdfc" +checksum = "5e395fcf16a7a3d8127ec99782007af141946b4795001f876d54fb0d55978560" dependencies = [ - "getrandom 0.2.10", + "getrandom 0.2.11", "serde", ] @@ -14442,9 +14493,9 @@ checksum = "9c8d87e72b64a3b4db28d11ce29237c246188f4f51057d65a7eab63b7987e423" [[package]] name = "wasm-bindgen" -version = "0.2.87" +version = "0.2.89" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7706a72ab36d8cb1f80ffbf0e071533974a60d0a308d01a5d0375bf60499a342" +checksum = "0ed0d4f68a3015cc185aff4db9506a015f4b96f95303897bfa23f846db54064e" dependencies = [ "cfg-if", "wasm-bindgen-macro", @@ -14452,24 +14503,24 @@ dependencies = [ [[package]] name = "wasm-bindgen-backend" -version = "0.2.87" +version = "0.2.89" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5ef2b6d3c510e9625e5fe6f509ab07d66a760f0885d858736483c32ed7809abd" +checksum = "1b56f625e64f3a1084ded111c4d5f477df9f8c92df113852fa5a374dbda78826" dependencies = [ "bumpalo", "log", "once_cell", "proc-macro2", "quote", - "syn 2.0.38", + "syn 2.0.39", "wasm-bindgen-shared", ] [[package]] name = "wasm-bindgen-futures" -version = "0.4.37" +version = "0.4.39" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c02dbc21516f9f1f04f187958890d7e6026df8d16540b7ad9492bc34a67cea03" +checksum = "ac36a15a220124ac510204aec1c3e5db8a22ab06fd6706d881dc6149f8ed9a12" dependencies = [ "cfg-if", "js-sys", @@ -14479,9 +14530,9 @@ dependencies = [ [[package]] name = "wasm-bindgen-macro" -version = "0.2.87" +version = "0.2.89" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "dee495e55982a3bd48105a7b947fd2a9b4a8ae3010041b9e0faab3f9cd028f1d" +checksum = "0162dbf37223cd2afce98f3d0785506dcb8d266223983e4b5b525859e6e182b2" dependencies = [ "quote", "wasm-bindgen-macro-support", @@ -14489,22 +14540,22 @@ dependencies = [ [[package]] name = "wasm-bindgen-macro-support" -version = "0.2.87" +version = "0.2.89" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "54681b18a46765f095758388f2d0cf16eb8d4169b639ab575a8f5693af210c7b" +checksum = "f0eb82fcb7930ae6219a7ecfd55b217f5f0893484b7a13022ebb2b2bf20b5283" dependencies = [ "proc-macro2", "quote", - "syn 2.0.38", + "syn 2.0.39", "wasm-bindgen-backend", "wasm-bindgen-shared", ] [[package]] name = "wasm-bindgen-shared" -version = "0.2.87" +version = "0.2.89" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ca6ad05a4870b2bf5fe995117d3728437bd27d7cd5f06f13c17443ef369775a1" +checksum = "7ab9b36309365056cd639da3134bf87fa8f3d86008abf99e612384a6eecd459f" [[package]] name = "wasm-instrument" @@ -14817,9 +14868,9 @@ dependencies = [ [[package]] name = "web-sys" -version = "0.3.64" +version = "0.3.65" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9b85cbef8c220a6abc02aefd892dfc0fc23afb1c6a426316ec33253a3877249b" +checksum = "5db499c5f66323272151db0e666cd34f78617522fb0c1604d31a27c50c206a85" dependencies = [ "js-sys", "wasm-bindgen", @@ -14856,9 +14907,9 @@ dependencies = [ [[package]] name = "webpki-roots" -version = "0.25.2" +version = "0.25.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "14247bb57be4f377dfb94c72830b8ce8fc6beac03cf4bf7b9732eadd414123fc" +checksum = "1778a42e8b3b90bff8d0f5032bf22250792889a5cdc752aa0020c84abe3aaf10" [[package]] name = "webrtc" @@ -15071,7 +15122,7 @@ dependencies = [ [[package]] name = "westend-runtime" version = "1.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#f60318f68687e601c47de5ad5ca88e2c3f8139a7" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#c8d2251cafadc108ba2f1f8a3208dc547ff38901" dependencies = [ "binary-merkle-tree", "bitvec", @@ -15170,7 +15221,7 @@ dependencies = [ [[package]] name = "westend-runtime-constants" version = "1.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#f60318f68687e601c47de5ad5ca88e2c3f8139a7" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#c8d2251cafadc108ba2f1f8a3208dc547ff38901" dependencies = [ "frame-support", "polkadot-primitives", @@ -15190,7 +15241,7 @@ dependencies = [ "either", "home", "once_cell", - "rustix 0.38.21", + "rustix 0.38.25", ] [[package]] @@ -15277,6 +15328,15 @@ dependencies = [ "windows-targets 0.48.5", ] +[[package]] +name = "windows-sys" +version = "0.52.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "282be5f36a8ce781fad8c8ae18fa3f9beff57ec1b52cb3de0789201425d9a33d" +dependencies = [ + "windows-targets 0.52.0", +] + [[package]] name = "windows-targets" version = "0.42.2" @@ -15307,6 +15367,21 @@ dependencies = [ "windows_x86_64_msvc 0.48.5", ] +[[package]] +name = "windows-targets" +version = "0.52.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8a18201040b24831fbb9e4eb208f8892e1f50a37feb53cc7ff887feb8f50e7cd" +dependencies = [ + "windows_aarch64_gnullvm 0.52.0", + "windows_aarch64_msvc 0.52.0", + "windows_i686_gnu 0.52.0", + "windows_i686_msvc 0.52.0", + "windows_x86_64_gnu 0.52.0", + "windows_x86_64_gnullvm 0.52.0", + "windows_x86_64_msvc 0.52.0", +] + [[package]] name = "windows_aarch64_gnullvm" version = "0.42.2" @@ -15319,6 +15394,12 @@ version = "0.48.5" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "2b38e32f0abccf9987a4e3079dfb67dcd799fb61361e53e2882c3cbaf0d905d8" +[[package]] +name = "windows_aarch64_gnullvm" +version = "0.52.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cb7764e35d4db8a7921e09562a0304bf2f93e0a51bfccee0bd0bb0b666b015ea" + [[package]] name = "windows_aarch64_msvc" version = "0.42.2" @@ -15331,6 +15412,12 @@ version = "0.48.5" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "dc35310971f3b2dbbf3f0690a219f40e2d9afcf64f9ab7cc1be722937c26b4bc" +[[package]] +name = "windows_aarch64_msvc" +version = "0.52.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bbaa0368d4f1d2aaefc55b6fcfee13f41544ddf36801e793edbbfd7d7df075ef" + [[package]] name = "windows_i686_gnu" version = "0.42.2" @@ -15343,6 +15430,12 @@ version = "0.48.5" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "a75915e7def60c94dcef72200b9a8e58e5091744960da64ec734a6c6e9b3743e" +[[package]] +name = "windows_i686_gnu" +version = "0.52.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a28637cb1fa3560a16915793afb20081aba2c92ee8af57b4d5f28e4b3e7df313" + [[package]] name = "windows_i686_msvc" version = "0.42.2" @@ -15355,6 +15448,12 @@ version = "0.48.5" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "8f55c233f70c4b27f66c523580f78f1004e8b5a8b659e05a4eb49d4166cca406" +[[package]] +name = "windows_i686_msvc" +version = "0.52.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ffe5e8e31046ce6230cc7215707b816e339ff4d4d67c65dffa206fd0f7aa7b9a" + [[package]] name = "windows_x86_64_gnu" version = "0.42.2" @@ -15367,6 +15466,12 @@ version = "0.48.5" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "53d40abd2583d23e4718fddf1ebec84dbff8381c07cae67ff7768bbf19c6718e" +[[package]] +name = "windows_x86_64_gnu" +version = "0.52.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3d6fa32db2bc4a2f5abeacf2b69f7992cd09dca97498da74a151a3132c26befd" + [[package]] name = "windows_x86_64_gnullvm" version = "0.42.2" @@ -15379,6 +15484,12 @@ version = "0.48.5" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "0b7b52767868a23d5bab768e390dc5f5c55825b6d30b86c844ff2dc7414044cc" +[[package]] +name = "windows_x86_64_gnullvm" +version = "0.52.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1a657e1e9d3f514745a572a6846d3c7aa7dbe1658c056ed9c3344c4109a6949e" + [[package]] name = "windows_x86_64_msvc" version = "0.42.2" @@ -15391,11 +15502,17 @@ version = "0.48.5" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "ed94fce61571a4006852b7389a063ab983c02eb1bb37b47f8272ce92d06d9538" +[[package]] +name = "windows_x86_64_msvc" +version = "0.52.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "dff9641d1cd4be8d1a070daf9e3773c5f67e78b4d9d42263020c057706765c04" + [[package]] name = "winnow" -version = "0.5.18" +version = "0.5.19" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "176b6138793677221d420fd2f0aeeced263f197688b36484660da767bca2fa32" +checksum = "829846f3e3db426d4cee4510841b71a8e58aa2a76b1132579487ae430ccd9c7b" dependencies = [ "memchr", ] @@ -15482,12 +15599,12 @@ dependencies = [ [[package]] name = "xcm-procedural" version = "1.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#f60318f68687e601c47de5ad5ca88e2c3f8139a7" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#c8d2251cafadc108ba2f1f8a3208dc547ff38901" dependencies = [ "Inflector", "proc-macro2", "quote", - "syn 2.0.38", + "syn 2.0.39", ] [[package]] @@ -15531,11 +15648,11 @@ dependencies = [ [[package]] name = "zerocopy" -version = "0.7.21" +version = "0.7.26" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "686b7e407015242119c33dab17b8f61ba6843534de936d94368856528eae4dcc" +checksum = "e97e415490559a91254a2979b4829267a57d2fcd741a98eee8b722fb57289aa0" dependencies = [ - "zerocopy-derive 0.7.21", + "zerocopy-derive 0.7.26", ] [[package]] @@ -15546,25 +15663,25 @@ checksum = "855e0f6af9cd72b87d8a6c586f3cb583f5cdcc62c2c80869d8cd7e96fdf7ee20" dependencies = [ "proc-macro2", "quote", - "syn 2.0.38", + "syn 2.0.39", ] [[package]] name = "zerocopy-derive" -version = "0.7.21" +version = "0.7.26" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "020f3dfe25dfc38dfea49ce62d5d45ecdd7f0d8a724fa63eb36b6eba4ec76806" +checksum = "dd7e48ccf166952882ca8bd778a43502c64f33bf94c12ebe2a7f08e5a0f6689f" dependencies = [ "proc-macro2", "quote", - "syn 2.0.38", + "syn 2.0.39", ] [[package]] name = "zeroize" -version = "1.6.0" +version = "1.7.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2a0956f1ba7c7909bfb66c2e9e4124ab6f6482560f6628b5aaeba39207c9aad9" +checksum = "525b4ec142c6b68a2d10f01f7bbf6755599ca3f81ea53b8431b7dd348f5fdb2d" dependencies = [ "zeroize_derive", ] @@ -15577,7 +15694,7 @@ checksum = "ce36e65b0d2999d2aafac989fb249189a141aee1f53c612c1f37d72631959f69" dependencies = [ "proc-macro2", "quote", - "syn 2.0.38", + "syn 2.0.39", ] [[package]] diff --git a/e2e/package-lock.json b/e2e/package-lock.json index 710887d8ab..543596b627 100644 --- a/e2e/package-lock.json +++ b/e2e/package-lock.json @@ -257,6 +257,14 @@ "node": "^12.22.0 || ^14.17.0 || >=16.0.0" } }, + "node_modules/@fastify/busboy": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/@fastify/busboy/-/busboy-2.1.0.tgz", + "integrity": "sha512-+KpH+QxZU7O4675t3mnkQKcZZg56u+K/Ct2K+N2AZYNVK8kyeo/bI18tI8aPm3tvNNRyTWfj6s5tnGNlcbQRsA==", + "engines": { + "node": ">=14" + } + }, "node_modules/@frequency-chain/api-augment": { "version": "0.0.0", "resolved": "file:../js/api-augment/dist/frequency-chain-api-augment-0.0.0.tgz", @@ -2159,17 +2167,6 @@ "node": ">=6.14.2" } }, - "node_modules/busboy": { - "version": "1.6.0", - "resolved": "https://registry.npmjs.org/busboy/-/busboy-1.6.0.tgz", - "integrity": "sha512-8SFQbg/0hQ9xy3UNTB0YEnsNBbWfhf7RtnzpL7TkBiTBRfrQ9Fxcnz7VJsleJpyp6rVLvXiuORqjlHi5q+PYuA==", - "dependencies": { - "streamsearch": "^1.1.0" - }, - "engines": { - "node": ">=10.16.0" - } - }, "node_modules/callsites": { "version": "3.1.0", "resolved": "https://registry.npmjs.org/callsites/-/callsites-3.1.0.tgz", @@ -5714,14 +5711,6 @@ "resolved": "https://registry.npmjs.org/get-iterator/-/get-iterator-1.0.2.tgz", "integrity": "sha512-v+dm9bNVfOYsY1OrhaCrmyOcYoSeVvbt+hHZ0Au+T+p1y+0Uyj9aMaGIeUTT6xdpRbWzDeYKvfOslPhggQMcsg==" }, - "node_modules/streamsearch": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/streamsearch/-/streamsearch-1.1.0.tgz", - "integrity": "sha512-Mcc5wHehp9aXz1ax6bZUyY5afg9u2rv5cqQI3mRrYkGC8rW2hM02jWuwjtL++LS5qinSyhj2QfLyNsuc+VsExg==", - "engines": { - "node": ">=10.0.0" - } - }, "node_modules/string_decoder": { "version": "1.3.0", "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.3.0.tgz", @@ -6020,11 +6009,11 @@ } }, "node_modules/undici": { - "version": "5.25.2", - "resolved": "https://registry.npmjs.org/undici/-/undici-5.25.2.tgz", - "integrity": "sha512-tch8RbCfn1UUH1PeVCXva4V8gDpGAud/w0WubD6sHC46vYQ3KDxL+xv1A2UxK0N6jrVedutuPHxe1XIoqerwMw==", + "version": "5.28.1", + "resolved": "https://registry.npmjs.org/undici/-/undici-5.28.1.tgz", + "integrity": "sha512-xcIIvj1LOQH9zAL54iWFkuDEaIVEjLrru7qRpa3GrEEHk6OBhb/LycuUY2m7VCcTuDeLziXCxobQVyKExyGeIA==", "dependencies": { - "busboy": "^1.6.0" + "@fastify/busboy": "^2.0.0" }, "engines": { "node": ">=14.0" diff --git a/pallets/capacity/src/benchmarking.rs b/pallets/capacity/src/benchmarking.rs index c40335fd17..ef52666b36 100644 --- a/pallets/capacity/src/benchmarking.rs +++ b/pallets/capacity/src/benchmarking.rs @@ -25,7 +25,7 @@ pub fn create_funded_account( let user = account(string, n, SEED); whitelist_account!(user); let balance = T::Currency::minimum_balance() * balance_factor.into(); - let _ = T::Currency::set_balance(&user, balance); + T::Currency::set_balance(&user, balance); assert_eq!(T::Currency::balance(&user), balance.into()); user } @@ -99,7 +99,7 @@ benchmarks! { target_details.deposit(staking_amount, capacity_amount); capacity_details.deposit(&staking_amount, &capacity_amount); - let _ = Capacity::::set_staking_account(&caller.clone(), &staking_account); + Capacity::::set_staking_account(&caller.clone(), &staking_account).expect("Failed to set staking account"); Capacity::::set_target_details_for(&caller.clone(), target, target_details); Capacity::::set_capacity_for(target, capacity_details); diff --git a/pallets/capacity/src/lib.rs b/pallets/capacity/src/lib.rs index b41371da2b..2b29306352 100644 --- a/pallets/capacity/src/lib.rs +++ b/pallets/capacity/src/lib.rs @@ -494,16 +494,16 @@ impl Pallet { staker: &T::AccountId, staking_account: &StakingAccountDetails, ) -> DispatchResult { - let _ = - T::Currency::set_freeze(&FreezeReason::Staked.into(), staker, staking_account.total)?; + T::Currency::set_freeze(&FreezeReason::Staked.into(), staker, staking_account.total)?; StakingAccountLedger::::insert(staker, staking_account); Ok(()) } /// Deletes staking account details - fn delete_staking_account(staker: &T::AccountId) { - let _ = T::Currency::thaw(&FreezeReason::Staked.into(), staker); + fn delete_staking_account(staker: &T::AccountId) -> DispatchResult { + T::Currency::thaw(&FreezeReason::Staked.into(), staker)?; StakingAccountLedger::::remove(&staker); + Ok(()) } /// If the staking account total is zero we reap storage, otherwise set the account to the new details. @@ -512,7 +512,7 @@ impl Pallet { staking_account: &StakingAccountDetails, ) -> DispatchResult { if staking_account.total.is_zero() { - Self::delete_staking_account(&staker); + Self::delete_staking_account(&staker)?; } else { Self::set_staking_account(&staker, &staking_account)?; } diff --git a/pallets/capacity/src/tests/other_tests.rs b/pallets/capacity/src/tests/other_tests.rs index 387baa0f94..c964777634 100644 --- a/pallets/capacity/src/tests/other_tests.rs +++ b/pallets/capacity/src/tests/other_tests.rs @@ -73,7 +73,8 @@ fn set_staking_account_is_succesful() { let mut staking_account = StakingAccountDetails::::default(); staking_account.deposit(55); - Capacity::set_staking_account(&staker, &staking_account); + Capacity::set_staking_account(&staker, &staking_account) + .expect("Failed to set staking account"); let frozen_balance = ::Currency::balance_frozen(&(FreezeReason::Staked).into(), &staker); diff --git a/pallets/capacity/src/tests/withdraw_unstaked_tests.rs b/pallets/capacity/src/tests/withdraw_unstaked_tests.rs index 5f0b316c49..ec3cdf84cf 100644 --- a/pallets/capacity/src/tests/withdraw_unstaked_tests.rs +++ b/pallets/capacity/src/tests/withdraw_unstaked_tests.rs @@ -18,7 +18,8 @@ fn withdraw_unstaked_happy_path() { staking_account.deposit(10); assert_eq!(true, staking_account.set_unlock_chunks(&unlocks)); assert_eq!(10u64, staking_account.total); - Capacity::set_staking_account(&staker, &staking_account.into()); + Capacity::set_staking_account(&staker, &staking_account.into()) + .expect("Failed to set staking account"); let starting_account = Capacity::get_staking_account_for(&staker).unwrap(); @@ -50,7 +51,8 @@ fn withdraw_unstaked_correctly_sets_new_lock_state() { let new_unlocks: Vec<(u32, u32)> = vec![(1u32, 2u32), (2u32, 3u32), (3u32, 4u32)]; assert_eq!(true, staking_account.set_unlock_chunks(&new_unlocks)); - Capacity::set_staking_account(&staker, &staking_account); + Capacity::set_staking_account(&staker, &staking_account) + .expect("Failed to set staking account"); assert_eq!( 10u64, ::Currency::balance_frozen(&FreezeReason::Staked.into(), &staker) @@ -81,7 +83,8 @@ fn withdraw_unstaked_cleans_up_storage_and_removes_all_locks_if_no_stake_left() assert_eq!(true, staking_account.set_unlock_chunks(&new_unlocks)); let staker = 500; - Capacity::set_staking_account(&staker, &staking_account); + Capacity::set_staking_account(&staker, &staking_account) + .expect("Failed to set staking account"); assert_ok!(Capacity::set_epoch_length(RuntimeOrigin::root(), 10)); // Epoch Length = 10 and UnstakingThawPeriod = 2 (epochs) @@ -99,7 +102,8 @@ fn withdraw_unstaked_cannot_withdraw_if_no_unstaking_chunks() { let staker = 500; let mut staking_account = StakingAccountDetails::::default(); staking_account.deposit(10); - Capacity::set_staking_account(&staker, &staking_account); + Capacity::set_staking_account(&staker, &staking_account) + .expect("Failed to set staking account"); assert_noop!( Capacity::withdraw_unstaked(RuntimeOrigin::signed(500)), Error::::NoUnstakedTokensAvailable @@ -117,7 +121,8 @@ fn withdraw_unstaked_cannot_withdraw_if_unstaking_chunks_not_thawed() { let new_unlocks: Vec<(u32, u32)> = vec![(1u32, 3u32), (2u32, 40u32), (3u32, 9u32)]; assert_eq!(true, staking_account.set_unlock_chunks(&new_unlocks)); - Capacity::set_staking_account(&staker, &staking_account); + Capacity::set_staking_account(&staker, &staking_account) + .expect("Failed to set staking account"); run_to_block(2); assert_noop!( From da2296f1fda7c778bbbab68497e37bcf0dbe13fb Mon Sep 17 00:00:00 2001 From: Matthew Orris <--help> Date: Tue, 28 Nov 2023 09:58:50 -0700 Subject: [PATCH 22/26] fix: capacity benchmarking should handle errors from set_staking_account() --- pallets/capacity/src/benchmarking.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pallets/capacity/src/benchmarking.rs b/pallets/capacity/src/benchmarking.rs index ef52666b36..ffe28868fa 100644 --- a/pallets/capacity/src/benchmarking.rs +++ b/pallets/capacity/src/benchmarking.rs @@ -65,7 +65,7 @@ benchmarks! { let new_unlocks: Vec<(u32, u32)> = Vec::from([(50u32, 3u32), (50u32, 5u32)]); assert_eq!(true, staking_account.set_unlock_chunks(&new_unlocks)); - let _ = Capacity::::set_staking_account(&caller.clone(), &staking_account); + Capacity::::set_staking_account(&caller.clone(), &staking_account).expect("Failed to set staking account"); CurrentEpoch::::set(T::EpochNumber::from(5u32)); }: _ (RawOrigin::Signed(caller.clone())) From 568582b8164e3a73588d75779403f05722b40032 Mon Sep 17 00:00:00 2001 From: Matthew Orris <--help> Date: Mon, 4 Dec 2023 12:11:49 -0700 Subject: [PATCH 23/26] fix: changes for errors from merge from main --- e2e/package-lock.json | 2 +- pallets/capacity/src/benchmarking.rs | 2 +- pallets/capacity/src/lib.rs | 10 ++++------ pallets/capacity/src/tests/other_tests.rs | 2 +- .../capacity/src/tests/stake_and_deposit_tests.rs | 7 ++----- pallets/capacity/src/tests/unstaking_tests.rs | 12 ++++++++---- .../capacity/src/tests/withdraw_unstaked_tests.rs | 15 ++++++--------- 7 files changed, 23 insertions(+), 27 deletions(-) diff --git a/e2e/package-lock.json b/e2e/package-lock.json index 543596b627..7cb7213c20 100644 --- a/e2e/package-lock.json +++ b/e2e/package-lock.json @@ -268,7 +268,7 @@ "node_modules/@frequency-chain/api-augment": { "version": "0.0.0", "resolved": "file:../js/api-augment/dist/frequency-chain-api-augment-0.0.0.tgz", - "integrity": "sha512-5KaqfY1M25g+JRlCHXEiKpKjimlsGOZPXa1qU/FIW27NKKNMykAw08MpUvukn3RjgOu9khWe8fhxTnCK1lVtiw==", + "integrity": "sha512-JmUFMSfpfcDxIgS+IsBpZsMAQZoWJaKu/SV9YTvieviX7UJkFCsjpY9nwWXB17M+2aUMtdh9GCM6nUddLp41NQ==", "license": "Apache-2.0", "dependencies": { "@polkadot/api": "^10.9.1", diff --git a/pallets/capacity/src/benchmarking.rs b/pallets/capacity/src/benchmarking.rs index f9a1debf92..f7a3294015 100644 --- a/pallets/capacity/src/benchmarking.rs +++ b/pallets/capacity/src/benchmarking.rs @@ -2,7 +2,7 @@ use super::*; use crate::Pallet as Capacity; use frame_benchmarking::{account, benchmarks, whitelist_account}; -use frame_support::assert_ok; +use frame_support::{assert_ok, BoundedVec}; use frame_system::RawOrigin; use parity_scale_codec::alloc::vec::Vec; diff --git a/pallets/capacity/src/lib.rs b/pallets/capacity/src/lib.rs index cf61551ce1..1ffbf3b146 100644 --- a/pallets/capacity/src/lib.rs +++ b/pallets/capacity/src/lib.rs @@ -511,7 +511,7 @@ impl Pallet { .active .checked_add(&unlock_chunks_total::(&unlocks)) .ok_or(ArithmeticError::Overflow)?; - T::Currency::set_freeze(&FreezeReason::Staked, staker, total_to_lock); + T::Currency::set_freeze(&FreezeReason::Staked.into(), staker, total_to_lock)?; Self::set_staking_account(staker, staking_account); Ok(()) } @@ -522,8 +522,6 @@ impl Pallet { } else { StakingAccountLedger::::insert(staker, staking_account); } - - Ok(()) } /// Sets target account details. @@ -581,7 +579,7 @@ impl Pallet { staker: &T::AccountId, proposed_amount: BalanceOf, ) -> BalanceOf { - let account_balance = T::Currency::free_balance(&staker); + let account_balance = T::Currency::balance(&staker); account_balance .saturating_sub(T::MinimumTokenBalance::get()) .min(proposed_amount) @@ -608,9 +606,9 @@ impl Pallet { let staking_account = Self::get_staking_account_for(staker).unwrap_or_default(); let total_locked = staking_account.active.saturating_add(total_unlocking); if total_locked.is_zero() { - T::Currency::remove_lock(STAKING_ID, &staker); + T::Currency::thaw(&FreezeReason::Staked.into(), staker)?; } else { - T::Currency::set_lock(STAKING_ID, &staker, total_locked, WithdrawReasons::all()); + T::Currency::set_freeze(&FreezeReason::Staked.into(), staker, total_locked)?; } Ok(amount_withdrawn) } diff --git a/pallets/capacity/src/tests/other_tests.rs b/pallets/capacity/src/tests/other_tests.rs index 9b1f501a66..91efa28550 100644 --- a/pallets/capacity/src/tests/other_tests.rs +++ b/pallets/capacity/src/tests/other_tests.rs @@ -9,7 +9,7 @@ use common_primitives::{capacity::Nontransferable, msa::MessageSourceId}; use crate::{ BalanceOf, CapacityDetails, Config, CurrentEpoch, CurrentEpochInfo, EpochInfo, FreezeReason, - StakingAccountDetails, StakingTargetDetails, + StakingDetails, StakingTargetDetails, }; use super::{mock::*, testing_utils::*}; diff --git a/pallets/capacity/src/tests/stake_and_deposit_tests.rs b/pallets/capacity/src/tests/stake_and_deposit_tests.rs index ac124831e1..08b2ca18d7 100644 --- a/pallets/capacity/src/tests/stake_and_deposit_tests.rs +++ b/pallets/capacity/src/tests/stake_and_deposit_tests.rs @@ -1,7 +1,5 @@ use super::{mock::*, testing_utils::*}; -use crate::{ - BalanceOf, CapacityDetails, Config, Error, Event, FreezeReason, StakingDetails, -}; +use crate::{BalanceOf, CapacityDetails, Config, Error, Event, FreezeReason, StakingDetails}; use common_primitives::{capacity::Nontransferable, msa::MessageSourceId}; use frame_support::{assert_noop, assert_ok, traits::fungible::InspectFreeze}; use sp_runtime::ArithmeticError; @@ -412,8 +410,7 @@ fn stake_when_there_are_unlocks_sets_lock_correctly() { assert_ok!(Capacity::stake(RuntimeOrigin::signed(staker), target2, 20)); // should all still be locked. - assert_eq!(Balances::locks(&staker)[0].amount, 40); - assert_eq!(Balances::locks(&staker)[0].reasons, WithdrawReasons::all().into()); + assert_eq!(Balances::balance_frozen(&FreezeReason::Staked.into(), &staker), 40); }) } diff --git a/pallets/capacity/src/tests/unstaking_tests.rs b/pallets/capacity/src/tests/unstaking_tests.rs index 8e930cc141..fc7674397b 100644 --- a/pallets/capacity/src/tests/unstaking_tests.rs +++ b/pallets/capacity/src/tests/unstaking_tests.rs @@ -1,8 +1,13 @@ use super::{mock::*, testing_utils::*}; use crate as pallet_capacity; -use crate::{CapacityDetails, StakingDetails, StakingTargetDetails, StakingType, UnlockChunk}; +use crate::{ + CapacityDetails, FreezeReason, StakingDetails, StakingTargetDetails, StakingType, UnlockChunk, +}; use common_primitives::msa::MessageSourceId; -use frame_support::{assert_noop, assert_ok, traits::Get}; +use frame_support::{ + assert_noop, assert_ok, + traits::{fungible::InspectFreeze, Get}, +}; use pallet_capacity::{BalanceOf, Config, Error, Event}; use sp_core::bounded::BoundedVec; @@ -174,8 +179,7 @@ fn unstaking_everything_reaps_staking_account() { run_to_block(1); // unstake everything assert_ok!(Capacity::unstake(RuntimeOrigin::signed(staker), target, 20)); - assert_eq!(1, Balances::locks(&staker).len()); - assert_eq!(20u64, Balances::locks(&staker)[0].amount); + assert_eq!(20u64, Balances::balance_frozen(&FreezeReason::Staked.into(), &staker)); // it should reap the staking account right away assert!(Capacity::get_staking_account_for(&staker).is_none()); diff --git a/pallets/capacity/src/tests/withdraw_unstaked_tests.rs b/pallets/capacity/src/tests/withdraw_unstaked_tests.rs index e7eefdd6d9..82095a4b6a 100644 --- a/pallets/capacity/src/tests/withdraw_unstaked_tests.rs +++ b/pallets/capacity/src/tests/withdraw_unstaked_tests.rs @@ -3,11 +3,11 @@ use super::{ testing_utils::{register_provider, run_to_block}, }; use crate::{ - unlock_chunks_from_vec, CurrentEpoch, CurrentEpochInfo, EpochInfo, Error, Event, UnstakeUnlocks, - self as pallet_capacity, FreezeReason, StakingDetails, + self as pallet_capacity, unlock_chunks_from_vec, CurrentEpoch, CurrentEpochInfo, EpochInfo, + Error, Event, FreezeReason, UnstakeUnlocks, }; use frame_support::{assert_noop, assert_ok, traits::fungible::InspectFreeze}; -use pallet_capacity::{BalanceOf, Config, Error, Event}; +use pallet_capacity::Config; #[test] fn withdraw_unstaked_happy_path() { @@ -47,21 +47,18 @@ fn withdraw_unstaked_correctly_sets_new_lock_state() { run_to_block(1); assert_ok!(Capacity::unstake(RuntimeOrigin::signed(staker), target, 1)); - assert_eq!(1, Balances::locks(&staker).len()); - assert_eq!(20u64, Balances::locks(&staker)[0].amount); + assert_eq!(20, Balances::balance_frozen(&FreezeReason::Staked.into(), &staker)); // thaw period in mock is 2 Epochs * 10 blocks = 20 blocks. run_to_block(21); assert_ok!(Capacity::unstake(RuntimeOrigin::signed(staker), target, 2)); assert_ok!(Capacity::withdraw_unstaked(RuntimeOrigin::signed(staker))); - assert_eq!(1, Balances::locks(&staker).len()); - assert_eq!(19u64, Balances::locks(&staker)[0].amount); + assert_eq!(19u64, Balances::balance_frozen(&FreezeReason::Staked.into(), &staker)); run_to_block(41); assert_ok!(Capacity::unstake(RuntimeOrigin::signed(staker), target, 3)); assert_ok!(Capacity::withdraw_unstaked(RuntimeOrigin::signed(staker))); - assert_eq!(1, Balances::locks(&staker).len()); - assert_eq!(17u64, Balances::locks(&staker)[0].amount); + assert_eq!(17u64, Balances::balance_frozen(&FreezeReason::Staked.into(), &staker)); run_to_block(61); assert_ok!(Capacity::withdraw_unstaked(RuntimeOrigin::signed(staker))); From 60520424559f9cc4e8dae34421920d497bdde7d5 Mon Sep 17 00:00:00 2001 From: Matthew Orris <--help> Date: Mon, 4 Dec 2023 13:03:01 -0700 Subject: [PATCH 24/26] fix: Update spec_version to 66 --- runtime/frequency/src/lib.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/runtime/frequency/src/lib.rs b/runtime/frequency/src/lib.rs index a8728475db..baebc5cd1b 100644 --- a/runtime/frequency/src/lib.rs +++ b/runtime/frequency/src/lib.rs @@ -262,7 +262,7 @@ pub const VERSION: RuntimeVersion = RuntimeVersion { spec_name: create_runtime_str!("frequency"), impl_name: create_runtime_str!("frequency"), authoring_version: 1, - spec_version: 65, + spec_version: 66, impl_version: 0, apis: RUNTIME_API_VERSIONS, transaction_version: 1, @@ -276,7 +276,7 @@ pub const VERSION: RuntimeVersion = RuntimeVersion { spec_name: create_runtime_str!("frequency-rococo"), impl_name: create_runtime_str!("frequency"), authoring_version: 1, - spec_version: 65, + spec_version: 66, impl_version: 0, apis: RUNTIME_API_VERSIONS, transaction_version: 1, From 9384ed3b96c9b1843bd1d0a13c9031c63cd9838b Mon Sep 17 00:00:00 2001 From: Matthew Orris <--help> Date: Tue, 5 Dec 2023 14:58:41 -0700 Subject: [PATCH 25/26] Fix: thaw error handling in delete_lock function --- pallets/time-release/src/lib.rs | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/pallets/time-release/src/lib.rs b/pallets/time-release/src/lib.rs index 83b49b9923..3c2ff9e2d3 100644 --- a/pallets/time-release/src/lib.rs +++ b/pallets/time-release/src/lib.rs @@ -449,7 +449,14 @@ impl Pallet { } fn delete_lock(who: &T::AccountId) { - let _ = T::Currency::thaw(&FreezeReason::NotYetVested.into(), who); + // thaw returns a DispatchResult from frame::balances::lib.rs::update_freezes() + // which returns Ok(()), but mutate()->try_mutate_account() can return an error if: + // 1. account does not exist + // 2. the closure passed to mutate_account() returns an error (data manipulation error, unlikely) + // 3. there is an error in increasing or decreasing the providers or consumers + // 4. the account balance < ED, and reserved balance is zero ==> dust removal + // We can ignore the error here b/c no matter what the lock will be deleted. + T::Currency::thaw(&FreezeReason::NotYetVested.into(), who).ok(); } fn set_schedules_for( From c77dd4141dc44b2d6b5490fa3c8b3e8c80b10013 Mon Sep 17 00:00:00 2001 From: Matthew Orris <--help> Date: Tue, 5 Dec 2023 15:50:26 -0700 Subject: [PATCH 26/26] fix: Update spec_version to 67 --- runtime/frequency/src/lib.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/runtime/frequency/src/lib.rs b/runtime/frequency/src/lib.rs index 91dc53e762..68b8d13515 100644 --- a/runtime/frequency/src/lib.rs +++ b/runtime/frequency/src/lib.rs @@ -258,7 +258,7 @@ pub const VERSION: RuntimeVersion = RuntimeVersion { spec_name: create_runtime_str!("frequency"), impl_name: create_runtime_str!("frequency"), authoring_version: 1, - spec_version: 66, + spec_version: 67, impl_version: 0, apis: RUNTIME_API_VERSIONS, transaction_version: 1, @@ -272,7 +272,7 @@ pub const VERSION: RuntimeVersion = RuntimeVersion { spec_name: create_runtime_str!("frequency-rococo"), impl_name: create_runtime_str!("frequency"), authoring_version: 1, - spec_version: 66, + spec_version: 67, impl_version: 0, apis: RUNTIME_API_VERSIONS, transaction_version: 1,